summaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)AuthorFilesLines
2011-11-07configure: use autoconf to generate configureYann E. MORIN"1-645/+0
Create configure.ac, an autoconf script to generate ./configure This will be needed by a subsequent patch to properly handle --build and --host, and more tests, when the kconfig stuff will be installed pre-built. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-11-07scripts: use wget, not curlYann E. MORIN"1-1/+1
It seems wget is more popular than curl. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-11-17configure: do not use '@' in version stringYann E. MORIN"1-1/+1
Using an '@' in the version string breaks the gcc/glibc/gdb manuals. Use a scheme similar to Debian, with a plus '+' instead of the '@', as suggested by Michael Hope. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-11-14configure: fix version string breakageYann E. MORIN"1-2/+2
As we use the directory names as Makefile targets, they can not contain any column ':', or else make will complain about 'multiple target patterns'. Replace the offending ':' with a dash '-', as Titus suggested. Reported-by: Erdem Budak <erdembudak@hotmail.com> Reported-by: Titus von Boxberg <titus@v9g.de> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-11-13configure: compute a simpler version stringYann E. MORIN"1-11/+9
Compute a simpler, yet still completely descriptive, version string. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-11-13configure: add support for helper script to compute version stringYann E. MORIN"1-15/+29
Some projects are using (or planning to use) crosstool-NG, and are storing it in their VCS, which might not be Mercurial. At the same time, those projects may want to track development snapshots versions the way we do with the Hg identity string (hg id). Provide a way for these project to do so, without having to patch ./configure, and maintain that patch over-and-over again. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-10-16configure: don't check for host systemYann E. MORIN"1-14/+0
This is no longer used. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-10-14scripts: check host features with host compilerYann E. MORIN"1-69/+1
Currently, we check host feature in ./configure. This works only for cross toolchains, but not for canadian toolchains. ./configure has absolutely no way to know what the host for the toolchain will be; only the build scripts know. So, move the headers & libraries checks from ./configure to the build scripts, early enough in the build, but not before we know the host compiler and other tools. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-10-08debug/gdb: new option to enable/disable use of pythonYann E. MORIN"1-0/+1
Add a new option to enable/disable the Python scripting in gdb. Hide the option (ie. disable it) when statically linking the cross-gdb. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-09-09scripts/functions: only use one download programYann E. MORIN"1-1/+1
Currently, we use either wget or curl, whichever is installed. In case both are installed, both are used. This means that it takes a while trying all extensions. Remove use of wget, and use only curl. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-25configure: xz-utils alone can also handle LZMA-compressed tarballsYann E. MORIN"1-0/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-25configure: check for lzmaYann E. MORIN"1-0/+3
Some packages are available as LZMA tarballs. LZMA is a relatively recent compression algorithm; it's slightly better than bzip2, but offers much faster decompression. LZMA is now deprecated in favor of XZ, but some packages switched to LZMA when XZ was not yet available, or still in its infancy. Latest XZ (which totaly obsoletes LZMA) offers a backward LZMA- compatible utility, so we can check for 'lzma' nonetheless. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-25configure: fix typo in xz-utils warning messageYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-22configure: require libtoolize, create wrapper to itTitus von Boxberg"1-0/+4
libtoolize must be checked_for and there needs to be a wrapper that points to GNU libtoolize since that may be installed as glibtoolize. This fixes a problem with building Cloog/PPL that was Reported-by: "Pierrick Brossin" <pierrick@bs-network.net> Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
2011-08-22configure: fix --with-prog=[...]Titus von Boxberg"1-0/+1
check_for didn't set variable 'where' when the path to a prog was passed manually "(cached)". Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
2011-08-21configure: recognise and handle --program-transform-nameYann E. MORIN"1-0/+11
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-19configure: recognise and handle --program-suffixYann E. MORIN"1-0/+14
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-17configure: handle --program-prefixYann E. MORIN"1-4/+14
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-17configure: document ignored switchesYann E. MORIN"1-0/+20
Autostuff tradiotionnally have some switches to set host, build and target systems, static or shared libs, and a bunch of others... In the crosstool-NG case, they do not matter, as crosstool-NG is just a set of scripts (there are C files, but they are compiled after installation, at runtime, so it does not count). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-10configure: add test for xz-utilsYann E. MORIN"1-0/+3
Some upstream now release tarballs compressed with xz, along with the more traditional bzip2 and/or gzip tarballs. xz (and its predecessor lzma) achieves better compression, so is a good candidate to shorten the time it takes to download the source tarballs. Enable downloading xz-cmopressed tarballs if the user has xz-utils. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-14configure: do not require lzmaYann E. MORIN"1-1/+0
Nothing uses lzma now, so we can get rid of it. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-09configure: more autostuff compatibilityYann E. MORIN"1-0/+2
Ignore --program-prefix=... Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-01configure: do not require svnYann E. MORIN"1-1/+1
svn is needed to download eglibc from the upstream repository. In some situations, though, it can happen that: - the developpers' machines do not have svn - a LAN mirror has been set-up with pre-downloaded eglibc tarballs In this case, it makes sense not to hard-depend on svn. So, if svn is missing, just say so, and add a comment in the menuconfig. Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-14configure: add yet a bit more of autostuff compatibilityYann E. MORIN"1-0/+1
Well, at least it helps buildroot! :-) Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-04configure: add check for svnYann E. MORIN"1-0/+3
svn is needed to downlod eglibc, so we require it. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-04configure: do not require cvsYann E. MORIN"1-1/+3
cvs is used to get newlib directly from its repository. Missing cvs will only allow getting newlib from the released tarballs. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-04configure: portability fixes - take 2Yann E. MORIN"1-2/+2
It is useful to sometime run on a strictly POSIX-compliant shell... :-/ And it is sometime interesting to refresh Q-patches before finishing the series... :-( Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-27configure: do not test for static libs if static link is impossibleYann E. MORIN"1-12/+31
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-27configure: pass the allowed lib extensions to check_for()Yann E. MORIN"1-36/+39
Rather than building all possible library names in the caller, lets just do it once in check_for. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-27configure: disable static linking on DarwinYann E. MORIN"1-0/+24
Static liunking is not supported on Darwin, so hide the corresponding options when the build machine is Darwin. Reported-by: Andrea Franceschini <therealmorpheu5@gmail.com> Reported-by: Bryan Hundven <bryanhundven@gmail.com> Reported-by: "Titus von Boxberg" <titus@v9g.de> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-28configure: check host systemYann E. MORIN"1-0/+14
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-03configure: indent error/warning messageYann E. MORIN"1-4/+4
Indent the error/warning message so that it is explicit that the second line is giving details for the first general hint. Reported-by: Titus von Boxberg <titus@v9g.de> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-08configure: check for ncurses libs + headers in one goYann E. MORIN"1-4/+3
./configure now has the possibility to check for libraries and headers in one go, so we can use it! :-) Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-08debug/cross-gdb: check host dependenciesYann E. MORIN"1-0/+28
Cross-gdb depends on expat and python. If either is missing, cross-gdb will build successfully, but lacking some features. Especially, if expat is missing, cross-gdb will be unable to parse the target description, which may lead to runtime malfunctions and the following GDB warning: "Can not parse XML target description; XML support was disabled at compile time" Hence, expat should be considered mandatory. On the other hand, the features missing without python are not critical, so python should not be considered mandatory. This patch does the following: - At configure time, warn the user if either expat or python is missing. - In menuconfig, disable the static build options regarding cross-gdb if no static version of expat is available, and disable cross-gdb if expat is missing. Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [yann.morin.1998@anciens.enib.fr: add comment for impossible static cross-gdb] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-08configure: give check_for() the ability to test several item types at onceBenoît THÉBAUDEAU"1-56/+74
Currently, check_for() can only test one of prog, inc or lib at once. This patch removes this limitation. Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
2011-06-04configure: rationalise error messages with meaningful textsYann E. MORIN"1-5/+4
Currently, error messages just state the obvious: a required component is required. While in some cases, there is not much else to say, in some other cases we could tell much more. For example, a missing libstdc++ means no static toolchain. Also, format error and warning messages in a similar fashion, with a {error,warning} intro, followed by the message specified by the caller. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-02cc/gcc: CC_STATIC_LIBSTDCXX 'depends on' CONFIGURE_has_static_libstdcppYann E. MORIN"1-0/+8
Hide the staticaly linked libstdc++ option if the static libstdc++ is not present, detected at configure time. Add a blind option that says whether static linking is possible at all. It defaults to 'y', but depends on the needed CONFIGURE_* options. For now, it only depends on static libtdc++, but new dependencies can be easily added. Hide the global static toolchain option behind this new option. Original patch by Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-02configure: check for libstdc++.{so,dylib,a}Yann E. MORIN"1-0/+7
It's probably a good thing to check for at least one instance of libstdc++.{so,dylib,a} at configure time. At least one is needed by the companion libraries and gcc. Original patch by Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-02configure: add prefix to err messages in has_or_{abort,warn}Yann E. MORIN"1-7/+8
Make it easier to spot messages spewed out by has_or_{abort,warn}. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-02configure: maintain single quotes in error messagesYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-05-26configure: add possibility to set arbitrary variable in check_forYann E. MORIN"1-13/+44
If check_for is able to find the required prog/inc/lib, allow it to set an arbitrary variable to 'y'. This variable is then pushed down to the kconfig definition. For example: has_or_abort prog=foobar kconfig=has_foobar If foobar is available, it yields a kconfig variable defaulting to y: config CONFIGURE_has_foobar bool default y If foobar is missing, it yields a kconfig variable defaulting to n: config CONFIGURE_has_foobar bool Thus it is possible to depends on that variabel to show/hide options: config SOME_FEATURE bool prompt "Some feature" depends on CONFIGURE_has_foobar Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-05-26configure: add has_or_warnYann E. MORIN"1-0/+18
By popular request, add a function to only warn on missing stuff. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-05-26configure: move error message down to has_or_abortYann E. MORIN"1-11/+15
When has_or_warn will come, we do want to print the error message only in has_or_abort, so move it down there. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-11-16scripts: remove aria2c as downloader, retain only curl and wgetYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-07-15configure: fix --mandirYann E. MORIN"1-1/+1
--mandir points to the base dir of the man pages, so we have to append our man section below given dir.
2010-05-23configure: add path to libtool to pathlistTitus von Boxberg1-0/+1
forgot var=libtool
2010-05-17ct-ng: Add ability to configure and use some GNU toolsTitus von Boxberg1-0/+4
Make the paths to libtool, objcopy, objdump, readelf, patch configurable.
2010-05-17configure: make call to readlink portable to non-GNU (BSD) systemsTitus von Boxberg1-1/+1
The argument '-e' for readlink is a GNU extension. In setting the variable 'where' the argument '-e' is not necessary, thus eliminated.
2010-05-17configure: Do not require stat to be of GNU coreutilsTitus von Boxberg1-1/+1
calls to stat have been made portable, thus it is not necessary that the GNU version is present on the user's system.
2010-01-17configure: do not require hg when configuring in an hg cloneYann E. MORIN"1-4/+3
When configuring in an hg clone, we need hg to compute the version string. It can happen that users do not have Mercurial (eg. if they got a snapshot rather that they did a full clone). In this case, we can still run, of course, so simply fill the version string with a sufficiently explicit value, that does not require hg. The date is a good candidate.