From: James Henstridge Date: Thu, 28 Oct 2004 09:49:49 +0000 (+0000) Subject: fix up the AC_CONFIG_MACRO_DIR check to work with sub-package X-Git-Tag: gnome-2-12-anchor~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f8e2e6d8f103f543ac31db0403be26243a52902;p=platform%2Fupstream%2Fgnome-common.git fix up the AC_CONFIG_MACRO_DIR check to work with sub-package 2004-10-28 James Henstridge * gnome-autogen.sh (m4dir): fix up the AC_CONFIG_MACRO_DIR check to work with sub-package configure.in's. svn path=/trunk/; revision=3479 --- diff --git a/macros2/ChangeLog b/macros2/ChangeLog index b195cdf..ace54b8 100644 --- a/macros2/ChangeLog +++ b/macros2/ChangeLog @@ -1,3 +1,8 @@ +2004-10-28 James Henstridge + + * gnome-autogen.sh (m4dir): fix up the AC_CONFIG_MACRO_DIR check + to work with sub-package configure.in's. + 2004-10-27 James Henstridge * gnome-autogen.sh (ACLOCAL): if AC_CONFIG_MACRO_DIR() is used in diff --git a/macros2/gnome-autogen.sh b/macros2/gnome-autogen.sh index c3173b2..4ad6b89 100644 --- a/macros2/gnome-autogen.sh +++ b/macros2/gnome-autogen.sh @@ -378,7 +378,7 @@ for configure_ac in $configure_files; do # if the AC_CONFIG_MACRO_DIR() macro is used, pass that # directory to aclocal. - m4dir=`cat "$configure_ac" | grep '^AC_CONFIG_MACRO_DIR' | sed -n -e 's/AC_CONFIG_MACRO_DIR(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q` + m4dir=`cat "$basename" | grep '^AC_CONFIG_MACRO_DIR' | sed -n -e 's/AC_CONFIG_MACRO_DIR(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q` if [ -n "$m4dir" ]; then m4dir="-I $m4dir" fi