aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
...
* Simplify the macro for checking stat flavor a bitAlexey Neyman2018-04-071-9/+7
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Use autoconfig-archve/automake testsAlexey Neyman2018-04-071-49/+52
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Split local helper macros into separate m4'sAlexey Neyman2018-04-071-232/+67
| | | | | | ... which are then picked up via aclocal. Signed-off-by: Alexey Neyman <stilor@att.net>
* Ncurses fixes for 6.1Alexey Neyman2018-01-291-0/+17
| | | | | | | | | | | - Update to 20180129 - Throw in --disable-db-install if database is disabled; otherwise 'make install' tries to run tic which is not built. - Select appropriate strip utility for the host; otherwise non-x86 architectures fail to install (unless --disable-stripping is also added) Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #784 from bmwiedemann/dateAlexey Neyman2017-09-181-3/+7
|\ | | | | Allow for reproducible builds
| * Allow to override build dateBernhard M. Wiedemann2017-07-211-3/+7
| | | | | | | | | | | | | | | | | | in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. This date call is designed to work with both GNU date and BSD date.
* | Fix typoAlexey Neyman2017-09-031-1/+1
|/ | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix debuild warnings/errorsAlexey Neyman2017-06-071-1/+3
| | | | | | | | | | | | | | | | | | | | - Update .gitignore, do not place .gitignore into directories installed in bulk - Remove executable permissions and shebangs from the scripts that are supposed to be invoked only via ct-ng frontent; prepend them with $(bash). Despite what showSamples.sh said, it already has some bashisms. - Remove --with autotools-dev and override dh_update_autotools_config to avoid having config.{sub,guess} clobbered with older versions - Install bash completion where Debian (now) expects it - Update man page to use .\" as the comment delimiter, instead of undefined macro (."); also, minor text edits. - Install kconfig.mk without execute permission. - Remove shell wrappers from 170-localedef-fix-trampoline.patch, we do not use that for applying patches - Revoke execute permissions on 210-expat.sh - Get flags from dpkg-buildflags if available Signed-off-by: Alexey Neyman <stilor@att.net>
* Generate config/configure.in directlyAlexey Neyman2017-04-221-5/+4
| | | | | | | | from configure rather than substitute it from Makefile. Eventually we might want to get rid of configure.in completely, doing on-the-fly checks at the time of `ct-ng build`, but that is left for another day. Signed-off-by: Alexey Neyman <stilor@att.net>
* Check for ggrep/gegrep in configureAlexey Neyman2017-03-081-0/+4
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Use configure to find the processor countDan McGregor2017-03-011-0/+9
| | | | | | | | configure.ac now finds how to count the CPUs in a system. Currently the getconf method and sysctl methods are supported. Adding more is easy enough. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
* Require xz to be presentAlexey Neyman2017-02-271-8/+1
| | | | | | | | Some software starts to adopt xz-only distribution (strace, gcc-linaro, ...). Better that than deal with cryptic errors like "cannot find strace-.tar.bz2". Signed-off-by: Alexey Neyman <stilor@att.net>
* Sed version may be reported differentlyAlexey Neyman2017-02-271-1/+1
| | | | | | Either "GNU sed, version" or "gsed (GNU sed)". Signed-off-by: Alexey Neyman <stilor@att.net>
* Require GNU sedAlexey Neyman2017-02-261-19/+13
| | | | | | | | | | | | After much struggling with macos (BSD) sed and even getting everything work in crosstool-ng itself, I had to abandon that because some components rely on GNU syntax. Specifically, GNU libc uses '/.../{H;g}' (note absense of the separator after 'g'). So, revert the -r/-E detection and check for sed's being of GNU origin. MacOS people, sorry, but you'd have to install GNU sed. Signed-off-by: Alexey Neyman <stilor@att.net>
* Revert "Determine whether -E/-r option selects extended regexp"Alexey Neyman2017-02-261-21/+9
| | | | This reverts commit 7bcf18bfab84374d3305c7a088f95ac1219ddf93.
* Determine whether -E/-r option selects extended regexpAlexey Neyman2017-02-131-9/+21
| | | | | | | | | | | | | | ... and then use the right option. See the note in scripts/functions on where we should use ${foo} and where just 'foo'; this boils down to whether we can expect the build tools override to be in effect (e.g. in the actual build scripts) or not (i.e. outside of scripts/build). While running in scripts/functions, or in scripts/crosstool-NG.sh the build tools override directory (.build/tools/bin) may have not been set up (yet, or at all). Also, modify the installed scripts (populate, xldd) accordingly. Signed-off-by: Alexey Neyman <stilor@att.net>
* stat: determine whether it is BSD or GNU flavorAlexey Neyman2017-02-121-1/+20
| | | | | | Seems like MacOS may have either in the path. Signed-off-by: Alexey Neyman <stilor@att.net>
* Detect both wget/curl and allow user to select the agentAlexey Neyman2017-02-121-1/+11
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Check for C++ in configureAlexey Neyman2017-02-021-1/+3
| | | | | | Recent GMP/GCC/GDB releases require c++. Signed-off-by: Alexey Neyman <stilor@att.net>
* Bump autoconf requirement to 2.65Alexey Neyman2017-01-291-2/+2
| | | | | | Required by automake 1.15. Signed-off-by: Alexey Neyman <stilor@att.net>
* Rework configure logic wrt GNU autotoolsAlexey Neyman2017-01-271-161/+157
| | | | | | | | | | | | | | | | | | | | | | Rather than requiring them of a certain version, detect if they are present (and have sufficient version) and select an appropriate companion tool otherwise. The reason is that, for example, most recent gettext requires automake 1.15, but the newest available CentOS has 1.13. Hence, the option to "upgrade your system" does not apply, and the warning comment above the companion tools is rather scary. With this approach, it will work out of the box - either by using the host's tools, or by building them as needed. Note that the user can still change the setting in the config. While there, propagate the new version checking macro to awk/bash/host binutils, and switch from --with-foo=xxx to officially blessed FOO=xxx: the latter does not require checking for bogus values (i.e., --with-foo, --without-foo) and AC_PROG_* macros recognize the corresponding settings without further modifications. For now, I kept --with-foo=, if only to complain and steer people to the new way. To be cleaned up after a release. Signed-off-by: Alexey Neyman <stilor@att.net>
* Check for git presenceAlexey Neyman2017-01-231-0/+3
| | | | | | | ... and make the optiont that fetch from Git repositories depend on the git discovery. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add a check for gperf function signature.Alexey Neyman2017-01-121-3/+19
| | | | | | | Loosely based on: https://github.com/systemd/systemd/commit/c9f7b4d356a453a01aa77a6bb74ca7ef49732c08 Signed-off-by: Alexey Neyman <stilor@att.net>
* Give companion tools some love.Alexey Neyman2016-11-211-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow selection of make/m4/... version. Support imports of new versions via addToolVersion.sh. Import newest versions of the companion tools. One non-trivial change is the handling of make versions. Existing code was not handling make companion tool as described (see the previous commit). However, since most modern systems have make 4.x, that previous commit made crosstool-ng always build make as a companion tool. This traces back to the commit dd15c93 from 2014. That commit's log message says that actually it was 3.81 which broke the build for certain component (it was originally breaking eglibc, but I noticed it was breaking current glibc on powerpc64), and introduced an option to force using 3.81 by "components that really need it". It looks like in 2.5 years we haven't seen any such components that really need make 3.81, and (given that make has already had a few releases since 3.81) we're unlikely to see them in the future. Hence, the configure check is changed from "exactly 3.81" to "3.81 or newer". In its current form, configure will accept make 3.80+, and will not require make as a companion tool for 3.81+. We might want to bump the latter check to even newer version given the claim from dd15c93. Killed COMP_TOOLS_make_3_81_NEEDED. Anyway, I retained 3.81 just in case; ditto for m4 1.14.3, autoconf 2.65 and automake 1.11.1. Signed-off-by: Alexey Neyman <stilor@att.net>
* configure: Don't write a.out on static compiler checkBryan Hundven2016-03-031-1/+1
| | | | | | | | | Because I don't pass `-o` to gcc, it makes an a.out file with gcc. For clang it doesn't make the a.out, as that is not the default. It doesn't hurt to output to /dev/null for both. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* configure: Check to see if gcc can static linkBryan Hundven2016-02-261-0/+13
| | | | | | | | This is a semi-nasty-hack to see if gcc can static link. Obviously on Mac OS X this is not possible, so we set CT_CONFIGURE_has_static_link=y if it can. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* configure: Correctly search for tinfo for kconfigBryan Hundven2015-11-141-9/+3
| | | | | | | | | | | | | | | I previously thought that tinfo could only be a link to libncurses in modern ncurses installations. I was wrong. Now we check for ncurses, then check for tinfo. If tinfo is a link to ncurses, it is then not required to link against. But if libtinfo is providing tgetent, and not libncurses, then we must add it to LIBS as well. Also, kconfig shouldn't hardcode -lncurses, it should use what is in $(LIBS). Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* configure: fix search for gpatch for FreeBSDBryan Hundven2015-11-141-1/+1
| | | | | | | | | We require GNU/patch, and when we install patch with `pkg`, crosstool-ng still only finds the BSD/patch in /usr/bin/patch. This commit fixes that and searches for gpatch first. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* configure: Check for libtinfo.soBryan Hundven2015-11-141-0/+9
| | | | | | | | | While usually distributed with ncurses, some distributions distribute this library separately. Check to make sure it is installed. This closes #241 Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* file modes: Set files to be non-executableBryan Hundven2015-11-121-0/+0
| | | | | | | | | | | | | | I was going to start doing some autoconf work, and noticed that configure.in was executable. Then I noticed Makefile.in was executable. o.O So, I ran ```find . -type f -executable``` and found a bunch of files that shouldn't be set executable. This commit makes them normal files again. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Cygwin: Link to libintl for gettextRay Donnelly2015-11-131-1/+5
| | | | Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
* Add help2man as PROGS_REQ and to travisRay Donnelly2015-11-131-0/+1
| | | | | | libtool needs it. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
* Revert the automated build optionJean-Marie Lemetayer2015-10-031-10/+0
| | | | | | | | This reverts commits: * d6413fe29fbdcd72a04b3d5820ba2e134dbaf558. * 4f266e1a8c78cec2c425b17784576db56125bbbd. Signed-off-by: Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>
* configure: Add automated build optionBryan Hundven2015-09-291-0/+10
| | | | | | | | | | This commit introduces a configure time option to let the build know that this is going to be an automated build. This forces the build to disable the progress bar, log tool warnings, and force the log level to debug. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* autoconf: Update sub directory nameJean-Marie Lemetayer2015-06-181-2/+2
| | | | | | | | | | | Due to patch 0e45cdf, the VERSION string has changed. And so, the the sub directory names has changed too: From 'ct-ng.1.21.0' to 'ct-ng.crosstool-ng-1.21.0-xx-yyyyyyy' This patch rename the sub directory to: 'crosstool-ng-1.21.0-xx-yyyyyyy' Signed-off-by: Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>
* autoconf: Update version numberingBryan Hundven2015-06-031-1/+4
| | | | | | | | | | | | | | | This change removes the static .version file, and moves to using the git tag as the version number, the change number if the current commit is newer then the latest tag, and '-dirty' if there are changes to the git repository since the last commit that are uncommitted. This helps us in the troubleshooting process to identify if the user is: * using a released version (i.e.: 1.21.0) * using a clone from git (i.e.: 1.21.0-29-13e14f) * using a clone from git with local uncommitted changes (i.e.: 1.21.0-29-13e14f-dirty) Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* configure: add option to specify grepFabian Freyer2014-08-281-0/+5
| | | | | | | | | | | Allows users for which GNU grep is not the default grep (e.g. BSD folks), or is in a weird location. Reported-by: Fabian Freyer <fabian.freyer@physik.tu-berlin.de> Signed-off-by: "Fabian Freyer" <fabian.freyer@physik.tu-berlin.de> [yann.morin.1998@free.fr: split the original patch] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Fabian Freyer <fabian.freyer@physik.tu-berlin.de>
* configure: use a saner version string for git snapshotsYann E. MORIN2014-06-271-1/+2
| | | | | | | This avoids using an oldish tag as base for the version string. Reported-by: Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* scripts: first batch of hg->git conversionYann E. MORIN2014-06-271-5/+2
| | | | | | Replace calls to 'hg' with as-close-as-possible equivalents in git. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* configure: look for more usual g-variants of some toolsYann E. MORIN"2014-05-051-3/+3
| | | | | Reported-by: Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* configure: prefer g-variantsYann E. MORIN"2014-05-051-2/+2
| | | | | | | | | | | For awk and make, we currently check the standard names as found on a classic GNU-userland system, and then fallback to looking for the g-named variants as found on a *BSD system. But it happens that the usual name might also be available on a *BSD system, so we should first check the g-variant. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* configure.ac: respect 'g' variants of libtool/libtoolizeAndreas Bießmann2014-03-181-2/+2
| | | | | | | | | | | | | BSD OS'es (OS X for me) provide GNU tools with prefixed 'g'. To find correct versions of libtool/libtoolize on those systems search also for glibtool/glibtoolize. Signed-off-by: Andreas Bießmann <andreas@biessmann.de> Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> [yann.morin.1998@free.fr: search for the g-variant first] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <2f1530b54afcb6a00e1d.1395158786@andreas-mbp.er.biessmann.org> Patchwork-Id: 331467
* If GNU make 3.81 is not found then build it as a companion tool.Ray Donnelly2014-02-201-0/+14
| | | | | | | | Signed-off-by: Ray Donnelly <mingw.android@gmail.com> [yann.morin.1998@free.fr: add message "checking for make 3.81"] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <8b8bf6998f3d239f6c74.1392920971@advancedsearch.virginmedia.com> Patchwork-Id: 322302
* configure: s/don't/do not/Yann E. MORIN"2014-01-161-1/+1
| | | | | | | | | | The autoconf manual suggests not to use ' in messages. I don't why they do, but it breaks syntax-highlighting. Just remove the lone quote we have. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* configure: Add --with-gperf optionRay Donnelly2013-09-141-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | On OS X, Apple supply an old gperf (3.0.3) with xcode and xcode commandline tools which causes build failures: ./zconf.hash.c:183:17: error: expected expression {offsetof(struct kconf_id_strings_t, kconf_id_strings_str2), .. upgrading to gperf 3.0.4 was sufficient to fix this, so this option allows the user to specify the gperf program that they wish to use. To install gperf 3.0.4 from homebrew, I did: brew tap homebrew/dupes brew install homebrew/dupes/gperf .. then passed --with-gperf=$BREWFIX/Cellar/gperf/3.0.4/bin/gperf to configure Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Message-Id: <CAOYw7dtCmcJ9WiqmQ81MmZeRPcV-tDOqe9=kRDW4uQGuZNd2Ng@mail.gmail.com> Patchwork-Id: 274892
* configure: remove trailing cruftYann E. MORIN"2012-10-071-29/+0
| | | | | | Remove trailing cruft left after the migration to autoconf. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* configure: also check for installYann E. MORIN"2012-07-171-0/+4
| | | | | | We also need the GNU variant for this one. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* configure: add checks for objcopy and objdumpYann E. MORIN"2012-07-171-0/+19
| | | | | | These two went MIA after the migration to an autoconf-based ./configure. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* configure: check for GNU awk, not any awkYann E. MORIN"2012-07-141-3/+17
| | | | | | | Building glibc requires GNU awk, not any other. Reported-by: Han Sooloo <hansooloo@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* configure: fix check for gettextYann E. MORIN"2012-05-081-2/+4
| | | | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>