]> git.donarmstrong.com Git - lilypond.git/blob - autogen.sh
* GNUmakefile.in (short-examples):
[lilypond.git] / autogen.sh
1 #!/bin/sh
2 # WARNING WARNING WARNING
3 # do not edit! this is autogen.sh, generated from stepmake/autogen.sh
4 #!/bin/sh
5 # Run this to generate configure and initial GNUmakefiles
6
7 srcdir=`dirname $0`
8
9 # Be paranoid: check for autoconf >= 2.50
10 # Some setups have both autoconf 2.13 and 2.50 available through
11 # a wrapper script: /usr/bin/autoconf.
12 # This wrapper may correctly autoselect autoconf 2.50, but it
13 # advertises itself as autoconf 2.13.
14 # If you have such a setup, invoke this script as:
15 #   autoconf=autoconf ./autogen.sh
16 set -x
17 for i in in autoconf autoconf2.50 false; do
18   version=`$i --version 2>/dev/null | head -1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
19   if test "0$version" -ge 250; then
20     autoconf=$i
21     break
22   fi
23 done
24
25 if test -z "$autoconf"; then
26     echo "ERROR: Please install autoconf 2.50 or newer"
27     exit 1
28 fi
29
30 if test -z "$*"; then
31   echo "WARNING: I am going to run \`configure' with no arguments."
32   echo "If you wish to pass any to it, please specify them on the"
33   echo \`$0\'" command line."
34   echo
35 fi
36
37 for coin in `find $srcdir -name configure.in -print`
38 do 
39   dr=`dirname $coin`
40   echo processing $dr
41   (
42       cd $dr
43       echo "Running autoconf ..."
44       $autoconf
45   )
46 done
47
48 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
49 if test -z "$NOCONFIGURE"; then
50   echo Running $srcdir/configure $conf_flags "$@" ...
51   $srcdir/configure $conf_flags "$@"
52 else
53   echo Skipping configure process.
54 fi