]> git.donarmstrong.com Git - lilypond.git/blob - autogen.sh
Check for autoconf2.13, and abort if not
[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 DIE=0
9
10 version=`autoconf --version 2>/dev/null | awk '{print $3}'`
11 if test "$version" != "2.13"; then
12   echo "ERROR: Please install autoconf 2.13"
13   exit 1
14 fi
15
16 if test -z "$*"; then
17   echo "WARNING: I am going to run \`configure' with no arguments."
18   echo "If you wish to pass any to it, please specify them on the"
19   echo \`$0\'" command line."
20   echo
21 fi
22
23 for coin in `find $srcdir -name configure.in -print`
24 do 
25   dr=`dirname $coin`
26   echo processing $dr
27   (
28       cd $dr
29       echo "Running autoconf ..."
30       autoconf
31   )
32 done
33
34 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
35 if test -z "$NOCONFIGURE"; then
36   echo Running $srcdir/configure $conf_flags "$@" ...
37   $srcdir/configure $conf_flags "$@"
38 else
39   echo Skipping configure process.
40 fi