+2001-07-25 Akim Demaille <akim@epita.fr>
+
+ * autoconf.in: Try to define the variables before using them.
+ * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
+ instead of `$perllibdir'.
+ * tests/atconfig.in ($autom4te_perllibdir): Export it.
+
2001-07-25 Akim Demaille <akim@epita.fr>
* autoconf.in (ac_LF_and_DOT): Remove, unused.
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+# Variables.
+: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
+debug=false
+dir=`echo "$0" | sed -e 's,[^\\/]*$,,'`
+# Trace Autoconf's initialization?
+initialization=false
+localdir=.
+outfile=
+# Exit status.
+status=0
+verbose=:
+
# Find GNU m4.
# Handle the case that m4 has moved since we were configured.
# It may have been found originally in a build directory.
done
-# Variables.
-: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
-test -z "$AC_ACLOCALDIR" &&
- AC_ACLOCALDIR=`(aclocal --print-ac-dir) 2>/dev/null`
-debug=false
-# Trace Autoconf's initialization?
-initialization=false
-localdir=.
-outfile=
-# Exit status.
-status=0
-verbose=:
-
# Parse command line.
while test $# -gt 0 ; do
optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
{
my $prefix = "@prefix@";
# FIXME: Import Struct into Autoconf.
- my $perllibdir = $ENV{'perllibdir'} || "@datadir@";
+ my $perllibdir = $ENV{'autom4te_perllibdir'} || "@datadir@";
unshift @INC, "$perllibdir";
}
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+# Variables.
+: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
+debug=false
+dir=`echo "$0" | sed -e 's,[^\\/]*$,,'`
+# Trace Autoconf's initialization?
+initialization=false
+localdir=.
+outfile=
+# Exit status.
+status=0
+verbose=:
+
# Find GNU m4.
# Handle the case that m4 has moved since we were configured.
# It may have been found originally in a build directory.
done
-# Variables.
-: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
-test -z "$AC_ACLOCALDIR" &&
- AC_ACLOCALDIR=`(aclocal --print-ac-dir) 2>/dev/null`
-debug=false
-# Trace Autoconf's initialization?
-initialization=false
-localdir=.
-outfile=
-# Exit status.
-status=0
-verbose=:
-
# Parse command line.
while test $# -gt 0 ; do
optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
{
my $prefix = "@prefix@";
# FIXME: Import Struct into Autoconf.
- my $perllibdir = $ENV{'perllibdir'} || "@datadir@";
+ my $perllibdir = $ENV{'autom4te_perllibdir'} || "@datadir@";
unshift @INC, "$perllibdir";
}
# We need GNU m4.
M4='@M4@'
+
+# Be sure to use the non installed Perl modules.
+# We need no special protection for the subtools (e.g., autoheader runs
+# autoconf which runs autom4te) because by themselves, they try to use
+# subtools from the same directory (i.e., foo/autoheader will run
+# foo/autoconf etc.).
+autom4te_perllibdir=$top_srcdir/lib
+export autom4te_perllibdir