From 2bdb0230e5c94b497b932f2cd6a4fb6f21d9433d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Tue, 27 Aug 2002 23:00:04 +0000 Subject: Implement an alternative method to provide missing aclocal files: Check if a development file for the package is present and install the corresponding m4 file in aclocal-missing if it isn't. Add glib, glib-2.0 and gtk-2.0 to the fallback directory. svn path=/trunk/; revision=6102 --- autogen.sh | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 58c1a246f1..5a672184c9 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,7 +2,7 @@ # # Run this to generate all the initial makefiles. # -# $Id: autogen.sh,v 1.17 2002/08/26 02:14:55 jmayer Exp $ +# $Id: autogen.sh,v 1.18 2002/08/27 23:00:02 jmayer Exp $ DIE=true PROJECT="Ethereal" @@ -89,6 +89,27 @@ fi aclocal_flags="`./aclocal-flags`" +if glib-config --version >/dev/null 2>&1 ; then + echo glib OK +else + cp aclocal-fallback/glib.m4 aclocal-missing/ +fi +if gtk-config --version >/dev/null 2>&1 ; then + echo gtk OK +else + cp aclocal-fallback/gtk.m4 aclocal-missing/ +fi +if pkg-config glib-2.0 >/dev/null 2>&1 ; then + echo glib-2.0 OK +else + cp aclocal-fallback/glib-2.0.m4 aclocal-missing/ +fi +if pkg-config gtk+-2.0 >/dev/null 2>&1 ; then + echo gtk-2.0 OK +else + cp aclocal-fallback/gtk-2.0.m4 aclocal-missing/ +fi + for dir in . epan wiretap ; do echo processing $dir ( @@ -98,18 +119,8 @@ for dir in . epan wiretap ; do else topdir=.. fi - VER=`aclocal --version | head -1` - case $VER in - aclocal*1.4 | aclocal*1.4[^0-9]* ) - echo "Automake 1.4 detected Disabling aclocal-fallback" - aclocal_fallback="" - ;; - * ) - aclocal_fallback="-I $topdir/aclocal-fallback" - ;; - esac - - aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags $aclocal_fallback"; \ + aclocal_missing="-I $topdir/aclocal-missing" + aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags $aclocal_missing"; echo aclocal $aclocalinclude aclocal $aclocalinclude || exit 1 echo autoheader -- cgit v1.2.1