Bug 39763 - autogen.sh should check pkg-config availability
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 2 Aug 2011 15:25:13 +0000 (11:25 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 2 Aug 2011 15:25:13 +0000 (11:25 -0400)
(and revert change have_icu change I mistakenly pushed out)

autogen.sh
configure.ac

index cdebe07..833a621 100755 (executable)
@@ -13,14 +13,20 @@ which ragel || {
        exit 1
 }
 
+echo -n "checking for pkg-config... "
+which pkg-config || {
+       echo "*** No pkg-config found, please install it ***"
+       exit 1
+}
+
 echo -n "checking for autoreconf... "
 which autoreconf || {
        echo "*** No autoreconf found, please install it ***"
        exit 1
 }
 
-echo "running autoreconf"
-autoreconf --force --install || exit $?
+echo "running autoreconf --force --install --verbose"
+autoreconf --force --install --verbose || exit $?
 
 cd $olddir
 echo "running configure $@"
index 882d218..d2a2331 100644 (file)
@@ -104,7 +104,6 @@ dnl ==========================================================================
 
 PKG_CHECK_MODULES(ICU, icu, have_icu=true, [
        AC_CHECK_PROG([have_icu], [icu-config], [true], [false])
-       have_icu=false
        if $have_icu; then
                icu_cflags=`icu-config --cppflags`
                icu_libs=`icu-config --ldflags-libsonly`