* lily/duration.cc (var): backport SCM_ASSERT_TYPE sideeffect fix.
[lilypond.git] / autogen.sh
bloba9b37f531f6bbcdbb24959724c60ff5c3f377762
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
7 srcdir=`dirname $0`
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
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
28 done
30 if test -z "$autoconf"; then
31 echo "ERROR: Please install autoconf 2.13"
32 exit 1
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
42 for coin in `find $srcdir -name configure.in -print`
43 do
44 dr=`dirname $coin`
45 echo processing $dr
47 cd $dr
48 echo "Running autoconf ..."
49 $autoconf
51 done
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.