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}
23 LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
24 AUTOMAKE=${AUTOMAKE-automake}
25 AUTOHEADER=${AUTOHEADER-autoheader}
26 AUTOCONF=${AUTOCONF-autoconf}
28 LIBTOOLIZE_FLAGS="--copy --force"
32 ($GPERF --version) < /dev/null > /dev/null 2>&1 || {
34 echo "You must have gperf installed to compile $PROJECT."
35 echo "Install the appropriate package for your distribution."
36 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
41 if $LIBTOOLIZE --version < /dev/null > /dev/null 2>&1 ; then
42 libtool_version=`$LIBTOOLIZE --version | sed 's/^.* \([0-9][.][0-9.]*\)[^ ]*$/\1/'`
43 case $libtool_version in
44 1.4*|1.5*|1.6*|1.7*|2*)
49 if $have_libtool ; then : ; else
51 echo "You must have libtool 1.4 installed to compile $PROJECT."
52 echo "Install the appropriate package for your distribution,"
53 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
57 ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
59 echo "You must have autoconf installed to compile $PROJECT."
60 echo "libtool the appropriate package for your distribution,"
61 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
67 if $AUTOMAKE --version < /dev/null > /dev/null 2>&1 ; then
68 automake_version=`$AUTOMAKE --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
69 case $automake_version in
81 if $have_automake ; then : ; else
83 echo "You must have automake 1.4-p1 installed to compile $PROJECT."
84 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz"
85 echo "(or a newer version if it is available)"
89 if test "$DIE" -eq 1; then
93 test $TEST_TYPE $FILE || {
94 echo "You must run this script in the top-level $PROJECT directory"
98 if test -z "$AUTOGEN_SUBDIR_MODE" -a -z "$NOCONFIGURE"; then
100 echo "I am going to run ./configure with no arguments - if you wish "
101 echo "to pass any to it, please specify them on the $0 command line."
105 echo Running $ACLOCAL $ACLOCAL_FLAGS
106 $ACLOCAL $ACLOCAL_FLAGS
108 # optionally run autoheader
109 if $AUTOHEADER --version < /dev/null > /dev/null 2>&1; then
110 echo Running $AUTOHEADER
114 case $need_libtoolize in
116 echo Running $LIBTOOLIZE $LIBTOOLIZE_FLAGS
117 $LIBTOOLIZE $LIBTOOLIZE_FLAGS
121 echo Running $AUTOMAKE -a $am_opt
123 echo Running $AUTOCONF
127 if test -z "$AUTOGEN_SUBDIR_MODE" -a -z "$NOCONFIGURE"; then
128 echo Running $srcdir/configure "$@"
129 $srcdir/configure "$@"
132 echo "Now type 'make' to compile $PROJECT."