15569331642446be05292e3e1f8a51218827168cdclaireho#!/bin/sh 25569331642446be05292e3e1f8a51218827168cdclaireho# Run this to generate all the initial makefiles, etc. 35569331642446be05292e3e1f8a51218827168cdclaireho 45569331642446be05292e3e1f8a51218827168cdclairehoset -e 55569331642446be05292e3e1f8a51218827168cdclaireho 65569331642446be05292e3e1f8a51218827168cdclairehosrcdir=`dirname $0` 75569331642446be05292e3e1f8a51218827168cdclairehotest -z "$srcdir" && srcdir=. 85569331642446be05292e3e1f8a51218827168cdclaireho 95569331642446be05292e3e1f8a51218827168cdclairehoORIGDIR=`pwd` 105569331642446be05292e3e1f8a51218827168cdclairehocd $srcdir 115569331642446be05292e3e1f8a51218827168cdclairehoPROJECT=harfbuzz 125569331642446be05292e3e1f8a51218827168cdclairehoTEST_TYPE=-f 135569331642446be05292e3e1f8a51218827168cdclairehoFILE=src/harfbuzz.h 145569331642446be05292e3e1f8a51218827168cdclairehoACLOCAL=${ACLOCAL-aclocal} 155569331642446be05292e3e1f8a51218827168cdclairehoLIBTOOLIZE=${LIBTOOLIZE-libtoolize} 165569331642446be05292e3e1f8a51218827168cdclairehoAUTOMAKE=${AUTOMAKE-automake} 175569331642446be05292e3e1f8a51218827168cdclairehoAUTOHEADER=${AUTOHEADER-autoheader} 185569331642446be05292e3e1f8a51218827168cdclairehoAUTOCONF=${AUTOCONF-autoconf} 195569331642446be05292e3e1f8a51218827168cdclairehoLIBTOOLIZE_FLAGS="--copy --force" 205569331642446be05292e3e1f8a51218827168cdclaireho 215569331642446be05292e3e1f8a51218827168cdclairehoDIE=0 225569331642446be05292e3e1f8a51218827168cdclaireho 235569331642446be05292e3e1f8a51218827168cdclairehohave_libtool=false 245569331642446be05292e3e1f8a51218827168cdclairehoif $LIBTOOLIZE --version < /dev/null > /dev/null 2>&1 ; then 255569331642446be05292e3e1f8a51218827168cdclaireho libtool_version=`$LIBTOOLIZE --version | sed 's/^[^0-9]*\([0-9].[0-9.]*\).*/\1/'` 265569331642446be05292e3e1f8a51218827168cdclaireho case $libtool_version in 275569331642446be05292e3e1f8a51218827168cdclaireho 1.4*|1.5*|1.6*|1.7*|2*) 285569331642446be05292e3e1f8a51218827168cdclaireho have_libtool=true 295569331642446be05292e3e1f8a51218827168cdclaireho ;; 305569331642446be05292e3e1f8a51218827168cdclaireho esac 315569331642446be05292e3e1f8a51218827168cdclairehofi 325569331642446be05292e3e1f8a51218827168cdclairehoif $have_libtool ; then : ; else 335569331642446be05292e3e1f8a51218827168cdclaireho echo 345569331642446be05292e3e1f8a51218827168cdclaireho echo "You must have libtool 1.4 installed to compile $PROJECT." 355569331642446be05292e3e1f8a51218827168cdclaireho echo "Install the appropriate package for your distribution," 365569331642446be05292e3e1f8a51218827168cdclaireho echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" 375569331642446be05292e3e1f8a51218827168cdclaireho DIE=1 385569331642446be05292e3e1f8a51218827168cdclairehofi 395569331642446be05292e3e1f8a51218827168cdclaireho 405569331642446be05292e3e1f8a51218827168cdclaireho($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || { 415569331642446be05292e3e1f8a51218827168cdclaireho echo 425569331642446be05292e3e1f8a51218827168cdclaireho echo "You must have autoconf installed to compile $PROJECT." 435569331642446be05292e3e1f8a51218827168cdclaireho echo "libtool the appropriate package for your distribution," 445569331642446be05292e3e1f8a51218827168cdclaireho echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" 455569331642446be05292e3e1f8a51218827168cdclaireho DIE=1 465569331642446be05292e3e1f8a51218827168cdclaireho} 475569331642446be05292e3e1f8a51218827168cdclaireho 485569331642446be05292e3e1f8a51218827168cdclairehohave_automake=false 495569331642446be05292e3e1f8a51218827168cdclairehoneed_libtoolize=true 505569331642446be05292e3e1f8a51218827168cdclairehoif $AUTOMAKE --version < /dev/null > /dev/null 2>&1 ; then 515569331642446be05292e3e1f8a51218827168cdclaireho automake_version=`$AUTOMAKE --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'` 525569331642446be05292e3e1f8a51218827168cdclaireho case $automake_version in 535569331642446be05292e3e1f8a51218827168cdclaireho 1.2*|1.3*|1.4) 545569331642446be05292e3e1f8a51218827168cdclaireho ;; 555569331642446be05292e3e1f8a51218827168cdclaireho 1.4*) 565569331642446be05292e3e1f8a51218827168cdclaireho have_automake=true 575569331642446be05292e3e1f8a51218827168cdclaireho need_libtoolize=false 585569331642446be05292e3e1f8a51218827168cdclaireho ;; 595569331642446be05292e3e1f8a51218827168cdclaireho *) 605569331642446be05292e3e1f8a51218827168cdclaireho have_automake=true 615569331642446be05292e3e1f8a51218827168cdclaireho ;; 625569331642446be05292e3e1f8a51218827168cdclaireho esac 635569331642446be05292e3e1f8a51218827168cdclairehofi 645569331642446be05292e3e1f8a51218827168cdclairehoif $have_automake ; then : ; else 655569331642446be05292e3e1f8a51218827168cdclaireho echo 665569331642446be05292e3e1f8a51218827168cdclaireho echo "You must have automake 1.4-p1 installed to compile $PROJECT." 675569331642446be05292e3e1f8a51218827168cdclaireho echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz" 685569331642446be05292e3e1f8a51218827168cdclaireho echo "(or a newer version if it is available)" 695569331642446be05292e3e1f8a51218827168cdclaireho DIE=1 705569331642446be05292e3e1f8a51218827168cdclairehofi 715569331642446be05292e3e1f8a51218827168cdclaireho 725569331642446be05292e3e1f8a51218827168cdclairehoif test "$DIE" -eq 1; then 735569331642446be05292e3e1f8a51218827168cdclaireho exit 1 745569331642446be05292e3e1f8a51218827168cdclairehofi 755569331642446be05292e3e1f8a51218827168cdclaireho 765569331642446be05292e3e1f8a51218827168cdclairehotest $TEST_TYPE $FILE || { 775569331642446be05292e3e1f8a51218827168cdclaireho echo "You must run this script in the top-level $PROJECT directory" 785569331642446be05292e3e1f8a51218827168cdclaireho exit 1 795569331642446be05292e3e1f8a51218827168cdclaireho} 805569331642446be05292e3e1f8a51218827168cdclaireho 815569331642446be05292e3e1f8a51218827168cdclairehoif test -z "$AUTOGEN_SUBDIR_MODE"; then 825569331642446be05292e3e1f8a51218827168cdclaireho if test -z "$*"; then 835569331642446be05292e3e1f8a51218827168cdclaireho echo "I am going to run ./configure with no arguments - if you wish " 845569331642446be05292e3e1f8a51218827168cdclaireho echo "to pass any to it, please specify them on the $0 command line." 855569331642446be05292e3e1f8a51218827168cdclaireho fi 865569331642446be05292e3e1f8a51218827168cdclairehofi 875569331642446be05292e3e1f8a51218827168cdclaireho 885569331642446be05292e3e1f8a51218827168cdclairehoecho Running $ACLOCAL $ACLOCAL_FLAGS 895569331642446be05292e3e1f8a51218827168cdclaireho$ACLOCAL $ACLOCAL_FLAGS 905569331642446be05292e3e1f8a51218827168cdclaireho 915569331642446be05292e3e1f8a51218827168cdclaireho# optionally run autoheader 925569331642446be05292e3e1f8a51218827168cdclairehoif $AUTOHEADER --version < /dev/null > /dev/null 2>&1; then 935569331642446be05292e3e1f8a51218827168cdclaireho echo Running $AUTOHEADER 945569331642446be05292e3e1f8a51218827168cdclaireho $AUTOHEADER 955569331642446be05292e3e1f8a51218827168cdclairehofi 965569331642446be05292e3e1f8a51218827168cdclaireho 975569331642446be05292e3e1f8a51218827168cdclairehocase $need_libtoolize in 985569331642446be05292e3e1f8a51218827168cdclaireho true) 995569331642446be05292e3e1f8a51218827168cdclaireho echo Running $LIBTOOLIZE $LIBTOOLIZE_FLAGS 1005569331642446be05292e3e1f8a51218827168cdclaireho $LIBTOOLIZE $LIBTOOLIZE_FLAGS 1015569331642446be05292e3e1f8a51218827168cdclaireho ;; 1025569331642446be05292e3e1f8a51218827168cdclairehoesac 1035569331642446be05292e3e1f8a51218827168cdclaireho 1045569331642446be05292e3e1f8a51218827168cdclairehoecho Running $AUTOMAKE -a $am_opt 1055569331642446be05292e3e1f8a51218827168cdclaireho$AUTOMAKE -a $am_opt 1065569331642446be05292e3e1f8a51218827168cdclairehoecho Running $AUTOCONF 1075569331642446be05292e3e1f8a51218827168cdclaireho$AUTOCONF 1085569331642446be05292e3e1f8a51218827168cdclairehocd $ORIGDIR 1095569331642446be05292e3e1f8a51218827168cdclaireho 1105569331642446be05292e3e1f8a51218827168cdclairehoif test -z "$AUTOGEN_SUBDIR_MODE"; then 1115569331642446be05292e3e1f8a51218827168cdclaireho echo Running $srcdir/configure "$@" 1125569331642446be05292e3e1f8a51218827168cdclaireho $srcdir/configure "$@" 1135569331642446be05292e3e1f8a51218827168cdclaireho 1145569331642446be05292e3e1f8a51218827168cdclaireho echo 1155569331642446be05292e3e1f8a51218827168cdclaireho echo "Now type 'make' to compile $PROJECT." 1165569331642446be05292e3e1f8a51218827168cdclairehofi 117