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