on if pre/post autoconf 2.54. In 2.55 --localdir has been removed and replaced
with --include which was introduced in 2.53.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14996
dc483132-0cff-0310-8789-
dd5450dbe970
+2002-11-13 Ezra Peisach <epeisach@bu.edu>
+
+ * aclocal.m4 (CONFIG_RULES): Define AUTOCONFINCFLAGS as --include
+ or --localdir depending on autoconf version. In autoconf 2.55
+ --localdir disappears.
+
2002-11-12 Tom Yu <tlyu@mit.edu>
* aclocal.m4 (tcl_lib): Add RPATH_TAIL to TCL_RPATH to handle AIX
AUTOCONFFLAGS=
AUTOHEADER=autoheader
AUTOHEADERFLAGS=
+dnl Autoconf 2.54+ use --include, --localdir is obsolete and removed
+ifdef([AC_MSG_FAILURE], AUTOCONFINCFLAGS="--include", dnl
+ AUTOCONFINCFLAGS="--localdir")
dnl fi
AC_SUBST(AUTOCONF)
AC_SUBST(AUTOCONFFLAGS)
+AC_SUBST(AUTOCONFINCFLAGS)
AC_SUBST(AUTOHEADER)
AC_SUBST(AUTOHEADERFLAGS)
dnl
+2002-11-13 Ezra Peisach <epeisach@bu.edu>
+
+ * pre.in (AUTOCONFINCFLAGS): Define by configure.
+
+ * post.in (Makefile): Invoke autoconf with AUTOCONFINCFLAGS
+ instead of hardcoding --localdir.
+
2002-11-12 Tom Yu <tlyu@mit.edu>
* shlib.conf: Fix AIX to explicitly include system libraries in
$(SRCTOP)/aclocal.m4
-$(RM) -r $(srcdir)/$(thisconfigdir)/autom4te.cache
cd $(srcdir)/$(thisconfigdir) && \
- $(AUTOCONF) --localdir=$(CONFIG_RELTOPDIR) $(AUTOCONFFLAGS)
+ $(AUTOCONF) ${AUTOCONFINCFLAGS}=$(CONFIG_RELTOPDIR) $(AUTOCONFFLAGS)
-$(RM) -r $(srcdir)/$(thisconfigdir)/autom4te.cache
RECURSE_TARGETS=all-recurse clean-recurse distclean-recurse install-recurse \
YACC = @YACC@
AUTOCONF = @AUTOCONF@
AUTOCONFFLAGS = @AUTOCONFFLAGS@
+AUTOCONFINCFLAGS = @AUTOCONFINCFLAGS@
AUTOHEADER = @AUTOHEADER@
AUTOHEADERFLAGS = @AUTOHEADERFLAGS@
+2002-11-13 Ezra Peisach <epeisach@bu.edu>
+
+ * reconf: For pre autoconf 2.54 - invoke autoreconf with -l for
+ localdir. Posr 2.54 use the -I option.
+
2002-09-27 Tom Yu <tlyu@mit.edu>
* depgen.sed: Solaris sed doesn't like '\(^.*$\)'; replace it with
localdir=.
autoreconfoptions=""
verbose=false
+localdirarg=
autoreconf="/bin/sh $autoreconfprog"
*)
;;
esac
+
+ # Determine the proper argument to autoreconf
+ case "$autoconfversion" in
+ 2.1*)
+ localdirarg="-l"
+ ;;
+ 2.5[23])
+ localdirarg="-l"
+ ;;
+ *)
+ localdirarg="-I"
+ ;;
+ esac
else
echo "Couldn't find autoconf 2.13 or higher in your path."
echo " "
fi
if $verbose ; then
- echo $autoreconf $autoreconfoptions -l $localdir --verbose $force
+ echo $autoreconf $autoreconfoptions $localdirarg $localdir --verbose $force
fi
-$autoreconf $autoreconfoptions -l $localdir --verbose $force || exit 1
+$autoreconf $autoreconfoptions $localdirarg $localdir --verbose $force || exit 1
if test $? = 0 ; then
if test ! -d include/krb5/autoconf.stmp ; then
cp /dev/null include/krb5/autoconf.stmp