2 # Run this to generate all the initial makefiles, etc.
7 test -z "$srcdir" && srcdir=.
11 AUTOGEN_SUBDIR_MODE="true"
20 FILE=fontconfig/fontconfig.h
21 ACLOCAL=${ACLOCAL-aclocal}
22 LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
23 AUTOMAKE=${AUTOMAKE-automake}
24 AUTOHEADER=${AUTOHEADER-autoheader}
25 AUTOCONF=${AUTOCONF-autoconf}
26 LIBTOOLIZE_FLAGS="--copy --force"
31 if $LIBTOOLIZE --version < /dev/null > /dev/null 2>&1 ; then
32 libtool_version=`$LIBTOOLIZE --version | sed 's/^[^0-9]*\([0-9].[0-9.]*\).*/\1/'`
33 case $libtool_version in
34 1.4*|1.5*|1.6*|1.7*|2*)
39 if $have_libtool ; then : ; else
41 echo "You must have libtool 1.4 installed to compile $PROJECT."
42 echo "Install the appropriate package for your distribution,"
43 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
47 ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
49 echo "You must have autoconf installed to compile $PROJECT."
50 echo "libtool the appropriate package for your distribution,"
51 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
57 if $AUTOMAKE --version < /dev/null > /dev/null 2>&1 ; then
58 automake_version=`$AUTOMAKE --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
59 case $automake_version in
71 if $have_automake ; then : ; else
73 echo "You must have automake 1.4-p1 installed to compile $PROJECT."
74 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz"
75 echo "(or a newer version if it is available)"
79 if test "$DIE" -eq 1; then
83 test $TEST_TYPE $FILE || {
84 echo "You must run this script in the top-level $PROJECT directory"
88 if test -z "$AUTOGEN_SUBDIR_MODE"; then
90 echo "I am going to run ./configure with no arguments - if you wish "
91 echo "to pass any to it, please specify them on the $0 command line."
95 echo Running $ACLOCAL $ACLOCAL_FLAGS
96 $ACLOCAL $ACLOCAL_FLAGS
98 # optionally run autoheader
99 if $AUTOHEADER --version < /dev/null > /dev/null 2>&1; then
100 echo Running $AUTOHEADER
104 case $need_libtoolize in
106 echo Running $LIBTOOLIZE $LIBTOOLIZE_FLAGS
107 $LIBTOOLIZE $LIBTOOLIZE_FLAGS
111 echo Running $AUTOMAKE -a $am_opt
113 echo Running $AUTOCONF
117 if test -z "$AUTOGEN_SUBDIR_MODE"; then
118 echo Running $srcdir/configure --enable-maintainer-mode "$@"
119 $srcdir/configure --enable-maintainer-mode "$@"
122 echo "Now type 'make' to compile $PROJECT."