chromeos: dbus: add Bluetooth properties support
[chromium-blink-merge.git] / third_party / harfbuzz / autogen.sh
blob7fa1c3df61a55d89cd1e37f324becbf2eafec850
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 set -e
6 srcdir=`dirname $0`
7 test -z "$srcdir" && srcdir=.
9 ORIGDIR=`pwd`
10 cd $srcdir
11 PROJECT=harfbuzz
12 TEST_TYPE=-f
13 FILE=src/harfbuzz.h
14 ACLOCAL=${ACLOCAL-aclocal}
15 LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
16 AUTOMAKE=${AUTOMAKE-automake}
17 AUTOHEADER=${AUTOHEADER-autoheader}
18 AUTOCONF=${AUTOCONF-autoconf}
19 LIBTOOLIZE_FLAGS="--copy --force"
21 DIE=0
23 have_libtool=false
24 if $LIBTOOLIZE --version < /dev/null > /dev/null 2>&1 ; then
25 libtool_version=`$LIBTOOLIZE --version | sed 's/^[^0-9]*\([0-9].[0-9.]*\).*/\1/'`
26 case $libtool_version in
27 1.4*|1.5*|1.6*|1.7*|2*)
28 have_libtool=true
30 esac
32 if $have_libtool ; then : ; else
33 echo
34 echo "You must have libtool 1.4 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/"
37 DIE=1
40 ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
41 echo
42 echo "You must have autoconf installed to compile $PROJECT."
43 echo "libtool the appropriate package for your distribution,"
44 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
45 DIE=1
48 have_automake=false
49 need_libtoolize=true
50 if $AUTOMAKE --version < /dev/null > /dev/null 2>&1 ; then
51 automake_version=`$AUTOMAKE --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
52 case $automake_version in
53 1.2*|1.3*|1.4)
55 1.4*)
56 have_automake=true
57 need_libtoolize=false
60 have_automake=true
62 esac
64 if $have_automake ; then : ; else
65 echo
66 echo "You must have automake 1.4-p1 installed to compile $PROJECT."
67 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz"
68 echo "(or a newer version if it is available)"
69 DIE=1
72 if test "$DIE" -eq 1; then
73 exit 1
76 test $TEST_TYPE $FILE || {
77 echo "You must run this script in the top-level $PROJECT directory"
78 exit 1
81 if test -z "$AUTOGEN_SUBDIR_MODE"; then
82 if test -z "$*"; then
83 echo "I am going to run ./configure with no arguments - if you wish "
84 echo "to pass any to it, please specify them on the $0 command line."
88 echo Running $ACLOCAL $ACLOCAL_FLAGS
89 $ACLOCAL $ACLOCAL_FLAGS
91 # optionally run autoheader
92 if $AUTOHEADER --version < /dev/null > /dev/null 2>&1; then
93 echo Running $AUTOHEADER
94 $AUTOHEADER
97 case $need_libtoolize in
98 true)
99 echo Running $LIBTOOLIZE $LIBTOOLIZE_FLAGS
100 $LIBTOOLIZE $LIBTOOLIZE_FLAGS
102 esac
104 echo Running $AUTOMAKE -a $am_opt
105 $AUTOMAKE -a $am_opt
106 echo Running $AUTOCONF
107 $AUTOCONF
108 cd $ORIGDIR
110 if test -z "$AUTOGEN_SUBDIR_MODE"; then
111 echo Running $srcdir/configure "$@"
112 $srcdir/configure "$@"
114 echo
115 echo "Now type 'make' to compile $PROJECT."