aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* Check for bash version 4 or higherQuentin Boswank2024-03-081-3/+3
| | | | | | We use bash 4 features in some scripts Signed-off-by: Quentin Boswank <qubos@outlook.de>
* Remove configure time check for rsyncChris Packham2023-12-181-4/+0
| | | | | | | Now that we're checking for rsync in Kconfig we can remove the check from ./configure. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* provide a workaround for a glibc and GNU make incompatibilityChris Packham2023-07-211-0/+7
| | | | | | | | | | | Versions of GNU make newer than 4.4 trigger a hang in versions of glibc older than 2.31. As distros update to the newer GNU make version we'll start seeing more and more reports of this hang. Fortunately we already carry GNU make as a comp tool so all we need to do is select the right version when needed. Fixes #1946, #1932, #1975 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* Revert "Update requirements: autoconf==2.71 and automake>=1.16"Thomas Petazzoni2023-07-211-7/+7
| | | | | | | | | | | | | This reverts commit 658f5e574f4025655da318fb0b688a394b6ff43f, which was made without any justification, and prevents using crosstool-ng even in decently recent distributions like Ubuntu 20.04 (which has autoconf 2.69). We have tested that ./bootstrap && ./configure --enable-local works fine on Ubuntu 18.04, which uses autoconf 2.69 and automake 1.15, so the existing requirements were enough. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* Make checking for python more predictable.Bryan Hundven2023-03-161-13/+5
| | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Switch AC_PROG_YACC to AX_PROG_BISONBryan Hundven2022-10-271-1/+1
| | | | | | | AC_PROG_YACC is kinda buggy. Switch to AX_PROG_BISON from autoconf-archive. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Update requirements: autoconf==2.71 and automake>=1.16Bryan Hundven2022-10-271-7/+7
| | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* binutils: Add binutils 2.39Chris Packham2022-08-141-0/+7
| | | | | | | | | | | | | | | https://sourceware.org/pipermail/binutils/2022-August/122246.html Add binutils 2.39 and regenerate patches. 0008-binutils-2.38-vs.-ppc32-linux-kernel.patch is dropped as it has been applied upstream. Add a milestone for 2.39 which will be handy for Loongarch. Binutils now requires bison >= 3.0.4 to build gprofng for x86/aarch64 so we build our own bison when the host bison does not meet that requirement (which appears to be the case on macOS). Signed-off-by: Chris Packham <judge.packham@gmail.com>
* configure.ac: AC_PROG_LEX set to noyywrapChris Packham2022-07-271-1/+1
| | | | | | | | | | | It appears that noyywrap is actually what is needed for kconfig. Particularly on arclinux where the default flex installation does not provide the yywrap function. Fixes #1790 Fixes 015d039e ("AC_PROG_LEX set to yywrap") Signed-off-by: Chris Packham <judge.packham@gmail.com>
* Bump autoconf requirement to 2.69Bryan Hundven2022-06-271-1/+1
| | | | | | This will help with moving forward with newer 2.70 compatibility. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* M4 quote yywrap in AC_PROG_LEXBryan Hundven2022-06-271-1/+1
| | | | | | It didn't output an error, but it's best practice. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Remove obsolete AC_HEADER_STDCBryan Hundven2022-06-261-1/+0
| | | | | | | | As described in detail here: https://www.gnu.org/software/autoconf/manual/autoconf-2.70/html_node/Particular-Headers.html#index-AC_005fHEADER_005fSTDC-1 We no longer need AC_HEADER_STDC in configure.ac Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* AC_PROG_LEX set to yywrapBryan Hundven2022-06-261-1/+1
| | | | | | | | | | | With autoconf 2.70 and newer, you need to define either `yywrap` or `noyywrap` as an option to AC_PROG_LEX. https://www.gnu.org/software/autoconf/manual/autoconf-2.71/html_node/Particular-Programs.html#index-AC_005fPROG_005fLEX-1 `yywrap` is needed for kconfig. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* configure.ac: bison is required for kconfChris Packham2022-06-131-1/+1
| | | | | | | | | | Make the requirement for bison harder (but not strict). The system bison will be used to build kconf. If the system bison is not GNU bison 2.7 or later crosstool-ng will build GNU bison as a companion tool if necessary (for glibc 2.29 or newer). Fixes #1621 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* configure.ac: Check that patch supports --no-backup-if-mismatchChris Packham2022-01-101-0/+6
| | | | | | | | | BSD patch does not support --no-backup-if-mismatch. When we detect patch check that it supports the option we use. Fixes: #1577 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* linux: Add dependency on rsync for Linux >= 5.3Chris Packham2021-11-301-0/+4
| | | | | | | | | | | As of Linux v5.3 rsync is used as part of the build process. Add Linux 5.3 as a milestone, configure detection of rsync and a dependency on rsync for Linux 5.3 and newer. Add a comment in so that users can tell why they can't select a newer version. Fixes #1628 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* configure.ac: Silence make output when building ct-ngChris Packham2021-02-011-0/+1
| | | | | | Set AM_SILENT_RULES([yes]) to reduce the verbosity from make by default. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* Add picolibc support [v2]Keith Packard2020-09-011-0/+8
| | | | | | | | | | | | This adds support for using picolibc instead of newlib on embedded systems. Signed-off-by: Keith Packard <keithp@keithp.com> v2: Add check for meson and ninja Sync option default values with current picolibc defaults Remove xtensa sys header file install as those aren't in picolibc
* Allow GNU gettext v0.19.7, which is in Ubuntu 16.04 LTSJoachim Nilsson2019-05-211-1/+1
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* CentOS6 cannot use newer GDB releasesAlexey Neyman2019-03-051-0/+3
| | | | | | | | | ... unless one retrofits it with a decent compiler instead of stock GCC 4.4. While here, sync up the ax_*.m4 with autoconf-archive. Signed-off-by: Alexey Neyman <stilor@att.net>
* Meet our new companion tool, bisonAlexey Neyman2019-03-041-1/+6
| | | | | | | Which is here courtesy of CentOS6, which only has bison 2.4 - while new glibc requires 2.7. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix build of glibc 2.29 on systems with obsolete host programsAlexey Neyman2019-03-021-0/+22
| | | | | | | | | | | | - Force building make as a companion tool if host make is older than 4.0 (CentOS 7 currently has 3.82) - Disable 2.29 as a choice if host python is older than 3.4 (CentOS 7 has 2.6 unless python from EPEL is installed) - Python2 emits its version information to STDERR. Ugh. While there, also use the detected host Python for GDB configuration. Signed-off-by: Alexey Neyman <stilor@att.net>
* Make lzip an optional dependencyAlexey Neyman2019-02-281-1/+12
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Check for lzip (some archives are lzipped)Alexey Neyman2019-02-131-0/+1
| | | | | | | | Ideally, we should just skip the archives for which we don't have the utilities; let's leave it until I convert the "trivial checks" part of crosstool-NG.sh into a separate configure script. Signed-off-by: Alexey Neyman <stilor@att.net>
* added the version 5 to the check of bash versionsStephan Conrad2019-01-151-1/+1
| | | | Signed-off-by: Stephan Conrad <stephan@conrad.pics>
* Consider it success if DoForceRmdir removes only the contentAlexey Neyman2018-12-011-2/+0
| | | | | | Fixes #929. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add DTC as a companion toolAlexey Neyman2018-11-281-0/+3
| | | | | | (needed for cross-gdb targeting the moxie-* targets) Signed-off-by: Alexey Neyman <stilor@att.net>
* Still need to check for libtool presenceAlexey Neyman2018-11-091-2/+2
| | | | | | ... as kconfig depends on it. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add an override for bisonRoman Bolshakov2018-11-071-1/+1
| | | | | | | | glibc build requires GNU bison >= 2.7 but Apple ships bison 2.3. If we provide an override for GNU bison it should be possible to use a version from homebrew. Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
* Add a "which" dependency into the configure scriptAnton Maklakov2018-11-051-0/+1
|
* Accept any libtool versionAlexey Neyman2018-10-271-1/+1
| | | | | | | ct-ng will build its own version if a recent enough version is not detected. Signed-off-by: Alexey Neyman <stilor@att.net>
* Check for `file` presence (missing in default CentOS7)Alexey Neyman2018-10-221-0/+1
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Use git-version-gen to generate version infoAlexey Neyman2018-06-061-9/+1
| | | | | Suggested-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Alexey Neyman <stilor@att.net>
* Add checking for *sum and unzipAlexey Neyman2018-04-291-10/+24
| | | | | | | Also improve logging (add an ability to log commands/files/environment variables to config.log) Signed-off-by: Alexey Neyman <stilor@att.net>
* Add compatibility with automake < 1.14Anton Maklakov2018-04-271-0/+2
| | | | | | | | | As we support CentOS, for example, we have a problem there automake: warnings are treated as errors kconfig/Makefile.am:26: warning: compiling 'lxdialog/checklist.c' in subdir requires 'AM_PROG_CC_C_O' in 'configure.ac' autoreconf: automake failed with exit status: 1
* Require libtool be presentAlexey Neyman2018-04-151-1/+1
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Lintian warnings cleanupAlexey Neyman2018-04-071-6/+7
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Install bash completion into new locationAlexey Neyman2018-04-071-18/+10
| | | | | | /share/bash-completion/completions rather than /etc/bash_completion.d Signed-off-by: Alexey Neyman <stilor@att.net>
* Conditionally install bash completionAlexey Neyman2018-04-071-0/+10
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* User manual installationAlexey Neyman2018-04-071-2/+10
| | | | | | ... when running from a release tarball. Signed-off-by: Alexey Neyman <stilor@att.net>
* Cannot ignore 'make install' with automakeAlexey Neyman2018-04-071-17/+1
| | | | | | | | | | | | | | | | | | | | Automake does not allow us to place the hooks before its generated actions, and does not allow us to check MAKECMDGOALS, and does not support a mechanism for disabling make install (such as noinst_SUBDIRS, requested a few times on automake mailing list). The only way I could preserve the current behavior is to have a GNUmakefile wrapper that will convert MAKECMDGOAL into a variable unknown to automake - which seems too convoluted a solution for the problem being solved. Hence the approach is to not override anything for --enable-local. It is now fully handled by selecting different values for CT_xxx_DIR in ct-ng.in; but at the build-system level, all the variables remain the same. We just don't support 'make install' in that case anymore; but the ct-ng in the working copy can be used after a regular 'make' (or 'make all'). Help message for --enable-local updated accordingly. Signed-off-by: Alexey Neyman <stilor@att.net>
* Restore --enable-local useAlexey Neyman2018-04-071-2/+2
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Kill gperf vestigesAlexey Neyman2018-04-071-0/+1
| | | | | | Generate paths.sh by configure, do away with paths.mk. Signed-off-by: Alexey Neyman <stilor@att.net>
* Install "pure data" directoriesAlexey Neyman2018-04-071-1/+5
| | | | | | ... and update .gitignore. Survives 'make distcheck'. Signed-off-by: Alexey Neyman <stilor@att.net>
* Enable mconf buildAlexey Neyman2018-04-071-1/+1
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix install --strip-program check after mergeAlexey Neyman2018-04-071-26/+2
| | | | | | Also, fix the use of AC_CACHE_CHECK in stat format checker. Signed-off-by: Alexey Neyman <stilor@att.net>
* Cleanup after rebase on master:Alexey Neyman2018-04-071-3/+0
| | | | | | gperf detection macros no longer needed, gperf is not used anymore. Signed-off-by: Alexey Neyman <stilor@att.net>
* WIP: autotoolizationAlexey Neyman2018-04-071-20/+23
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Remove special handling of dpkg-buildflagsAlexey Neyman2018-04-071-2/+0
| | | | | | | | Instead, just honor CFLAGS/CPPFLAGS/LDFLAGS as they're passed down from configure. This brings the build process in compliance with the recommended practices. Signed-off-by: Alexey Neyman <stilor@att.net>
* Get rid of sub{lib,doc}dirAlexey Neyman2018-04-071-7/+5
| | | | | | | | | They don't make sense - using same ct-ng won't work with different versions, so they cannot coexist in the same prefix. Also localize other configure variables so that their usage is easier to track. Signed-off-by: Alexey Neyman <stilor@att.net>