From: Edward M. Lee Date: Fri, 30 Mar 2001 22:12:30 +0000 (+0000) Subject: * libtoolize.in: Check configure.ac and prefer configure.ac to X-Git-Tag: release-1-3d~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6d9a7ea10817b6830e19291ae6ba8b61adff52b;p=thirdparty%2Flibtool.git * libtoolize.in: Check configure.ac and prefer configure.ac to configure.in. --- diff --git a/ChangeLog b/ChangeLog index c00588093..ad5b083fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-03-29 Edward M. Lee + + * libtoolize.in: Check configure.ac and prefer configure.ac to + configure.in. + 2001-03-16 Albert Chin * libtool.m4 (save_CPPFLAGS): Fix typo. diff --git a/libtoolize.in b/libtoolize.in index 1ec56580b..e5716adf1 100644 --- a/libtoolize.in +++ b/libtoolize.in @@ -53,6 +53,7 @@ copy= force= ltdl= ltdl_tar= +configure_ac= status=0 for arg @@ -134,8 +135,12 @@ EOF esac done -if test ! -f configure.in; then - echo "$progname: \`configure.in' does not exist" 1>&2 +if test -f configure.ac; then + configure_ac=configure.ac +elif test -f configure.in; then + configure_ac=configure.in +else + echo "$progname: \`configure.ac' does not exist" 1>&2 echo "$help" 1>&2 exit 1 fi @@ -184,12 +189,12 @@ else fi if test -z "$automake"; then - if egrep '^A[MC]_PROG_LIBTOOL' configure.in >/dev/null 2>&1; then : + if egrep '^A[MC]_PROG_LIBTOOL' $configure_ac >/dev/null 2>&1; then : else - echo "Remember to add \`AM_PROG_LIBTOOL' to \`configure.in'." + echo "Remember to add \`AM_PROG_LIBTOOL' to \`$configure_ac'." fi - if egrep '^AC_PROG_RANLIB' configure.in >/dev/null 2>&1; then + if egrep '^AC_PROG_RANLIB' $configure_ac >/dev/null 2>&1; then echo "Using \`AC_PROG_RANLIB' is rendered obsolete by \`AM_PROG_LIBTOOL'" fi @@ -226,7 +231,7 @@ if test -z "$automake"; then echo "You should $updatemsg." fi - if grep '^AC_LIB_LTDL' configure.in >/dev/null 2>&1; then + if grep '^AC_LIB_LTDL' $configure_ac >/dev/null 2>&1; then if grep 'generated automatically by aclocal' aclocal.m4 >/dev/null 2>&1; then updatemsg="update your \`aclocal.m4' by running aclocal" else