* configure.ac: Also find tested executables in bin.
* bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
* bin/autoscan.in, autoupdate.in: Use exclusively the name of the
installed peer executables, only PATH is allowed to resolve it.
Pass `autoconf_dir' via options, not via invisible envvars.
* lib/Autom4te/General.pm (&find_peer): Remove.
* lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
`abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
* man/Makefile.am: Let help2man rely on PATH instead of trying to
find the executables for it.
* tests/Makefile.am: Major cleanup. Too lazy to document...
* tests/atlocal.in: Remove all the obscure envvar manipulations.
We only need PERL.
* tests/atspecific.m4, tests/tools.at: Passing --localdir is
indeed related to running the test suite, while passing
--autoconf-dir and others is related to running non installed
Autoconf executables. So don't do that, leave it to...
* tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
* tests/autoscan: New.
* tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
refer to library files: rely on --language.
2001-08-31 21:30:11 +08:00
|
|
|
#! /bin/sh
|
2002-04-12 17:56:10 +08:00
|
|
|
## --------------------- ##
|
|
|
|
## M4sh Initialization. ##
|
|
|
|
## --------------------- ##
|
|
|
|
|
|
|
|
# Be Bourne compatible
|
|
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
|
|
emulate sh
|
|
|
|
NULLCMD=:
|
|
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
|
|
# is contrary to our usage. Disable this feature.
|
|
|
|
alias -g '${1+"$@"}'='"$@"'
|
|
|
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
|
|
|
set -o posix
|
|
|
|
fi
|
|
|
|
|
|
|
|
# NLS nuisances.
|
|
|
|
# Support unset when possible.
|
|
|
|
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
|
|
|
|
as_unset=unset
|
|
|
|
else
|
|
|
|
as_unset=false
|
|
|
|
fi
|
|
|
|
|
|
|
|
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
|
|
|
|
{ $as_unset LANG || test "${LANG+set}" != set; } ||
|
|
|
|
{ LANG=C; export LANG; }
|
|
|
|
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
|
|
|
|
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
|
|
|
|
{ LC_ALL=C; export LC_ALL; }
|
|
|
|
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
|
|
|
|
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
|
|
|
|
{ LC_TIME=C; export LC_TIME; }
|
|
|
|
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
|
|
|
|
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
|
|
|
|
{ LC_CTYPE=C; export LC_CTYPE; }
|
|
|
|
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
|
|
|
|
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
|
|
|
|
{ LANGUAGE=C; export LANGUAGE; }
|
|
|
|
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
|
|
|
|
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
|
|
|
|
{ LC_COLLATE=C; export LC_COLLATE; }
|
|
|
|
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
|
|
|
|
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
|
|
|
|
{ LC_NUMERIC=C; export LC_NUMERIC; }
|
|
|
|
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
|
|
|
|
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
|
|
|
|
{ LC_MESSAGES=C; export LC_MESSAGES; }
|
|
|
|
|
|
|
|
|
|
|
|
# Required to use basename.
|
|
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then
|
|
|
|
as_expr=expr
|
|
|
|
else
|
|
|
|
as_expr=false
|
|
|
|
fi
|
|
|
|
|
|
|
|
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
|
|
|
as_basename=basename
|
|
|
|
else
|
|
|
|
as_basename=false
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Name of the executable.
|
|
|
|
as_me=`$as_basename "$0" ||
|
|
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
|
|
X"$0" : 'X\(//\)$' \| \
|
|
|
|
X"$0" : 'X\(/\)$' \| \
|
|
|
|
. : '\(.\)' 2>/dev/null ||
|
|
|
|
echo X/"$0" |
|
|
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
|
|
|
/^X\/\(\/\/\)$/{ s//\1/; q; }
|
|
|
|
/^X\/\(\/\).*/{ s//\1/; q; }
|
|
|
|
s/.*/./; q'`
|
|
|
|
|
|
|
|
|
2001-11-26 18:52:31 +08:00
|
|
|
# @configure_input@
|
* lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
(_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
builddir, buildpath, top_builddir, and top_buildpath.
(_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
the current directory.
* lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
variables *before* changing the current directory.
Skip nonexistent dirs.
* doc/autoconf.texi (Preset Output Variables): Document these
variables.
* lib/autotest/general.m4: Do not reset AT_victims.
Don't compute at_srcdir nor at_top_srcdir.
* tests/tools.at: Hence use top_srcdir.
* tests/Makefile.am, tests/autoconf, tests/autoheader,
* tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
Remove.
* tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
* tests/wrapsh.in, tests/autoupdate.in: New.
* tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
* configure.ac: Build the position independent wrappers.
* man/Makefile.am: Now that test wrappers are position
independent, use them and drop dark envvar magic.
2001-09-24 01:17:46 +08:00
|
|
|
# Running `$0' as if it were installed.
|
* configure.ac: Also find tested executables in bin.
* bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
* bin/autoscan.in, autoupdate.in: Use exclusively the name of the
installed peer executables, only PATH is allowed to resolve it.
Pass `autoconf_dir' via options, not via invisible envvars.
* lib/Autom4te/General.pm (&find_peer): Remove.
* lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
`abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
* man/Makefile.am: Let help2man rely on PATH instead of trying to
find the executables for it.
* tests/Makefile.am: Major cleanup. Too lazy to document...
* tests/atlocal.in: Remove all the obscure envvar manipulations.
We only need PERL.
* tests/atspecific.m4, tests/tools.at: Passing --localdir is
indeed related to running the test suite, while passing
--autoconf-dir and others is related to running non installed
Autoconf executables. So don't do that, leave it to...
* tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
* tests/autoscan: New.
* tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
refer to library files: rely on --language.
2001-08-31 21:30:11 +08:00
|
|
|
|
2002-07-17 18:13:32 +08:00
|
|
|
AUTOCONF=@abs_top_builddir@/bin/autoconf
|
|
|
|
AUTOHEADER=@abs_top_builddir@/bin/autoheader
|
|
|
|
AUTOM4TE=@abs_top_builddir@/bin/autom4te
|
|
|
|
AUTOM4TE_CFG=@abs_top_builddir@/lib/autom4te.cfg
|
* lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
abs_builddir, top_buildpath to abs_top_builddir, srcpath to
abs_srcdir, top_srcpath to abs_top_srcdir.
(_AC_OUTPUT_FILES): Adjust.
* NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
* tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
* tests/wrappl.in, tests/wrapsh.in: Adjust.
2001-12-15 01:57:27 +08:00
|
|
|
autom4te_perllibdir=@abs_top_srcdir@/lib
|
2002-07-17 18:13:32 +08:00
|
|
|
export AUTOCONF AUTOHEADER AUTOM4TE AUTOM4TE_CFG autom4te_perllibdir
|
2001-08-31 21:32:13 +08:00
|
|
|
|
2002-04-12 17:56:10 +08:00
|
|
|
case $as_me in
|
2001-11-26 18:52:31 +08:00
|
|
|
ifnames)
|
|
|
|
# Does not have lib files.
|
2002-04-12 17:56:10 +08:00
|
|
|
exec @abs_top_builddir@/bin/$as_me ${1+"$@"}
|
2001-11-26 18:52:31 +08:00
|
|
|
;;
|
2002-07-17 18:13:32 +08:00
|
|
|
*)
|
|
|
|
# We might need files from the build tree (frozen files), in
|
|
|
|
# addition of src files.
|
|
|
|
exec @abs_top_builddir@/bin/$as_me \
|
|
|
|
-B @abs_top_builddir@/lib \
|
|
|
|
-B @abs_top_srcdir@/lib ${1+"$@"}
|
2002-04-12 18:10:10 +08:00
|
|
|
esac
|
2002-07-17 18:13:32 +08:00
|
|
|
exit 1
|