2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
11 FILE=fontconfig/fontconfig.h
16 if libtool --version < /dev/null > /dev/null 2>&1 ; then
17 libtool_version=`libtoolize --version | libtoolize --version | sed 's/^[^0-9]*\([0-9].[0-9.]*\).*/\1/'`
18 case $libtool_version in
24 if $have_libtool ; then : ; else
26 echo "You must have libtool 1.4 installed to compile $PROJECT."
27 echo "Install the appropriate package for your distribution,"
28 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
32 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
34 echo "You must have autoconf installed to compile $PROJECT."
35 echo "libtool the appropriate package for your distribution,"
36 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
41 if automake --version < /dev/null > /dev/null 2>&1 ; then
42 automake_version=`automake --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
43 case $automake_version in
51 if $have_automake ; then : ; else
53 echo "You must have automake 1.4-p1 installed to compile $PROJECT."
54 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz"
55 echo "(or a newer version if it is available)"
59 if test "$DIE" -eq 1; then
63 test $TEST_TYPE $FILE || {
64 echo "You must run this script in the top-level $PROJECT directory"
68 if test -z "$AUTOGEN_SUBDIR_MODE"; then
70 echo "I am going to run ./configure with no arguments - if you wish "
71 echo "to pass any to it, please specify them on the $0 command line."
75 aclocal $ACLOCAL_FLAGS
77 # optionally run autoheader
78 (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
84 if test -z "$AUTOGEN_SUBDIR_MODE"; then
85 $srcdir/configure --enable-maintainer-mode "$@"
88 echo "Now type 'make' to compile $PROJECT."