Commit Graph

44 Commits

Author SHA1 Message Date
Yann E. MORIN"
f920df9c09 Recognise bash-4 as a usable bash.
Spotted by "Kim B. Heino" <Kim.Heino@bluegiga.com>

 /trunk/configure |    7     3     4     0 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
2009-02-17 21:05:10 +00:00
Yann E. MORIN"
7eda231a2d Checking for grep and sed has been rationalised, and now emit the same messages as for the other tools.
/trunk/configure |   53    36    17     0 ++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 36 insertions(+), 17 deletions(-)
2009-02-01 18:40:16 +00:00
Yann E. MORIN"
f685a014e7 ./configure: fix the tools pattern recognition
- when a variable name was given, with no regexp, the pattern did not correctly extract the variable name

 /trunk/configure |   11     8     3     0 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
2009-01-25 19:26:40 +00:00
Yann E. MORIN"
363a045e5d ./configure: enable user to specify path to some tools
/trunk/configure |  203   107    96     0 +++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 107 insertions(+), 96 deletions(-)
2009-01-18 15:08:28 +00:00
Yann E. MORIN"
e4d8094edb ./configurei: make FORCE work again:
- removed the --force command line option
- use FORCE from the environment

 /trunk/configure |    9     2     7     0 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
2009-01-07 12:11:37 +00:00
Yann E. MORIN"
a3ffccfeff Further enhance the check for needed tools:
- update the tool_pattern to use ' || ' as a pattern separator
- which allows using | in regexp
- add checks for cut and xargs
- manually check for grep and sed because they are needed when checking for tools
- print why a test failed, with each tested tool and regexp
- move tools checks before options parsing
- apply conttibutions before computing the version string
- inform user to run make && make install

 /trunk/configure |  173   111    62     0 ++++++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 111 insertions(+), 62 deletions(-)
2008-12-23 22:20:25 +00:00
Yann E. MORIN"
a228413680 Rationalise ./configure
- borrow a lot of ideas from Michael ABBOTT ( http://sourceware.org/ml/crossgcc/2008-12/msg00030.html )
- should be conforming to POSIX 1003.1-2008, non compliance due to bashsims is to be considered a bug
- as a result, it now works with dash
- make a little easier to read in some places
- enforce 4-space indentation
- get rid of futile 'return $?'
- quote all variables assignments
- save and restore IFS prior to and after using alternate values
- simplify the TOOLS_TO_CHECK listing

What's left:
- provide a mean to actually _compare_ version numbers
- change the TOOLS_TO_CHECK pattern style to be able to use '|' in regexp

 /trunk/configure |  243   127   116     0 ++++++++++++++++++++++++++++++++------------------------------
 1 file changed, 127 insertions(+), 116 deletions(-)
2008-12-22 18:21:51 +00:00
Yann E. MORIN"
54ef20b0f8 Fix testing the automake version:
- previously, only version with a more-than-two-digits minor would match
- make versions starting with major in [2-9] also match

 /trunk/configure |    4     2     2     0 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
2008-12-19 19:04:43 +00:00
Yann E. MORIN"
7915426092 Better check for automake, check for either curl or wget:
- automake must be at least 1.10 to correctly setup MPFR
- either one of curl or wget is needed to retrieve the tarballs

 /trunk/configure |    7     4     3     0 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
2008-12-16 18:03:28 +00:00
Yann E. MORIN"
81f9d4d73e Honor the DESTDIR variable to install out-of-place (Eg. for packaging).
/trunk/configure         |   10    10     0     0 +++++++++
 /trunk/Makefile.in       |   62    36    26     0 +++++++++++++++++++++++++++++++-----------------------
 /trunk/docs/overview.txt |   12    12     0     0 ++++++++++
 3 files changed, 58 insertions(+), 26 deletions(-)
2008-11-16 21:55:46 +00:00
Yann E. MORIN"
a5bbab574f Use 'gawk', not plain 'awk'.
We need GNU Awk? Then check for, and use 'gawk', not plain 'awk'.
Be a little mre verbose if a tool was not found.

 /trunk/configure                     |    7     4     3     0 ++++---
 /trunk/scripts/build/kernel/linux.sh |    2     1     1     0 +-
 /trunk/scripts/functions             |   16     8     8     0 ++++++++--------
 /trunk/scripts/saveSample.sh         |    4     2     2     0 ++--
 4 files changed, 15 insertions(+), 14 deletions(-)
2008-10-29 22:27:30 +00:00
Yann E. MORIN"
7000889861 Fix configure's --with-contrib option.
/trunk/configure |    4     2     2     0 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
2008-10-15 08:08:02 +00:00
Yann E. MORIN"
eb14e45ecb Don't check for autoconf >= 2.50.
It was needed by glibc and eglibc to re-generate their 'configure' files, but they no longer do (in fact never did).

 /trunk/configure |    1     0     1     0 -
 1 file changed, 1 deletion(-)
2008-09-29 11:08:33 +00:00
Yann E. MORIN"
b012bb9f39 Enhance ./configure tools checking.
Add check for compatible autoconf.

 /trunk/configure |   95    61    34     0 ++++++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 61 insertions(+), 34 deletions(-)
2008-09-26 11:31:23 +00:00
Yann E. MORIN"
56ed53c70f Allow fully qulified file name in tools to check for.
Simplify checking for bash.

 /trunk/configure |   30    13    17     0 +++++++++++++-----------------
 1 file changed, 13 insertions(+), 17 deletions(-)
2008-09-23 07:15:06 +00:00
Yann E. MORIN"
09cb865f74 Merge #912 from branches/eglibc:
Don't check for readlink, it is no longer needed.

 /trunk/configure |    1     0     1     0 -
 1 file changed, 1 deletion(-)
2008-08-09 17:44:34 +00:00
Yann E. MORIN"
379ea09dba Michael ABBOTT reported that populate is not relocatable.
Fix this by determining both the cross-readelf and the sys-root at runtime, not at build time.

 /trunk/configure            |    1     1     0     0 +
 /trunk/scripts/crosstool.sh |   14     6     8     0 ++++++--------
 /trunk/tools/populate.in    |    6     4     2     0 ++++--
 3 files changed, 11 insertions(+), 10 deletions(-)
2008-08-04 08:44:54 +00:00
Yann E. MORIN"
a9f3c8fa8b Eye-candy in ./configure.
/trunk/configure |    6     3     3     0 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
2008-07-22 09:17:40 +00:00
Yann E. MORIN"
aad627d11e Add new tools to check presence of at ./configure time. Reported by Laurent Dufrechou <laurent.dufrechou@gmail.com>.
/trunk/configure |    2     2     0     0 ++
 1 file changed, 2 insertions(+)
2008-07-20 09:43:07 +00:00
Yann E. MORIN"
e59ab0f07b ./configure eye-candy.
/trunk/configure |   22    11    11     0 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
2008-07-18 21:03:04 +00:00
Yann E. MORIN"
155a4fb617 Enable forcing ./configure to complete, even if the needed tools are not present.
/trunk/configure |   13    11     2     0 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
2008-07-18 13:26:27 +00:00
Yann E. MORIN"
547eae7750 Remove debug snippet.
/trunk/configure |    1     0     1     0 -
 1 file changed, 1 deletion(-)
2008-07-16 22:10:28 +00:00
Yann E. MORIN"
9efbc1a279 Introduce a list of tools to check for at ./configure time.
Move some functions around (no code change).
Only tell about applying contribs when there are contribs to apply.
Some eye-candy here and there.

 /trunk/configure |   94    75    19     0 +++++++++++++++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 75 insertions(+), 19 deletions(-)
2008-07-16 21:59:49 +00:00
Yann E. MORIN"
48728211f6 POSIXify ./configure, and comment some parts of it.
Thanks to Martin GUY for pointing out that ./configure was not POSIXly correct.

 /trunk/configure |   51    35    16     0 +++++++++++++++++++++++++++++++++++----------------
 1 file changed, 35 insertions(+), 16 deletions(-)
2008-07-07 21:22:25 +00:00
Yann E. MORIN"
128a51705c Eye-candy in the ./configure help.
/trunk/configure |    2     2     0     0 ++
 1 file changed, 2 insertions(+)
2008-06-25 08:38:51 +00:00
Yann E. MORIN"
cecc3e81a9 Enable using contributed code: add a new ./configure option to select which contributions should be applied.
/trunk/configure |   44    43     1     0 +++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 43 insertions(+), 1 deletion(-)
2008-06-25 08:34:47 +00:00
Yann E. MORIN"
62df5c3fed Include the full version number in the directory paths installed.
Change the version string so that it does not break 'make', and so that it has no '/' (it would be a hell if installed directories would mirror the SVN branches... :-/ )
Do not use implicit rules for the Makefile.
Simplify and enc=hance the --local test to refuse (un)installing.
Double-quotes variables, they are based on user input.
Eye-candy in the 'compile' and install messages.

 /trunk/configure   |   26    14    12     0 ++++++++++---------
 /trunk/Makefile.in |   83    45    38     0 +++++++++++++++++++++++++++++++++---------------------------
 2 files changed, 59 insertions(+), 50 deletions(-)
2008-06-11 21:45:57 +00:00
Yann E. MORIN"
b35770100e Print a little bit of progress in ./configure (computing the version string can be long, especially on networked file systems).
/trunk/configure   |    6     6     0     0 ++++++
 /trunk/Makefile.in |   14     8     6     0 ++++++++------
 2 files changed, 14 insertions(+), 6 deletions(-)
2008-06-11 20:40:38 +00:00
Yann E. MORIN"
36f41a9d27 ./configure expects message to be in the C locale, so force that.
/trunk/configure |    6     3     3     0 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
2008-06-01 20:33:41 +00:00
Yann E. MORIN"
fe5dc3db26 Cleanup building the snapshot version number.
configure |   18    10     8     0 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)
2008-04-17 19:21:32 +00:00
Yann E. MORIN"
efa83fdf6e When installing SVN snapshots, include the branch and revision in the version number.
In case some random snapshot is installed and used for production, then this
will ease rewinding.
2008-02-17 22:58:57 +00:00
Yann E. MORIN"
3f9386c0a7 Bail out if /bin/bash does not exist, or if it is not bash>=3.0.
Force make to use /bin/bash as shell.
2008-01-16 21:41:53 +00:00
Yann E. MORIN"
d285ebb248 Simplify a bit more bash detection. 2007-09-16 17:50:27 +00:00
Yann E. MORIN"
26647ee564 Improve (POSIX-wise) determination of bashh version. 2007-09-14 19:30:56 +00:00
Yann E. MORIN"
e7e37942d9 Kill off bashisms in ./configure (thanks to Enrico Weigelt <weigelt@metux.de>). 2007-09-14 15:57:48 +00:00
Yann E. MORIN"
f791f6b6bf Sanitise ./configure a little bit.
Add a check for bash 3.0 or above.
2007-09-12 20:44:15 +00:00
Yann E. MORIN"
ecab7e451f Fix printing the version string when configured with --local. 2007-08-15 15:39:44 +00:00
Yann E. MORIN"
f38b71646a Re-instate the --local configure switch to not install and use the local crosstool-NG copy. 2007-07-22 17:44:27 +00:00
Yann E. MORIN"
439940ab2e Kill "./configure --local", it does not work and it is dangerous if one tries to "make uninstall"! 2007-07-03 22:05:00 +00:00
Yann E. MORIN"
9265403b8b Get rid of eclipse fiels once and for all.
Homogenise the references to crosstool-NG:
  - the project is named "crosstool-NG"
  - the front-end is named "ct-ng"
  - don't use shortcuts (such as "ct-ng" to stand for "crosstool-NG")
Default action is to print help.
Don't speak of make rules when dumping help, just speak of actions.
2007-07-02 19:40:54 +00:00
Yann E. MORIN"
5a9aeaf7a0 Fix handling --prefix. 2007-07-02 17:47:55 +00:00
Yann E. MORIN"
1bb07c805c Fix running without installing.
Update README.
Point help to the man page.
2007-07-01 21:21:11 +00:00
Yann E. MORIN"
5931c4dd26 ./configure gains a help entry. 2007-07-01 20:52:34 +00:00
Yann E. MORIN"
26713d4210 Merge the build system to trunk: ct-ng is now installable:
- ./configure --prefix=/some/place
 - make
 - make install
 - export PATH="${PATH}:/some/place/bin"
 - ct-ng <action>
2007-07-01 19:04:20 +00:00