In fact, rename this option as -A, --autoconf-dir.
* autoconf.sh: Complain when -m, --macrodir is used.
Accept -A, --autoconf-dir.
Use $autoconf_dir instead of $AC_MACRODIR.
Adjust --help.
* autoheader.sh: Likewise.
* autoscan.sh: Likewise.
* autoupdate.sh: Likewise.
Use $optarg.
* autoreconf.sh: Likewise.
* doc/autoconf.texi: Adjust.
* tests: Adjust the test suite.
+2000-07-19 Akim Demaille <akim@epita.fr>
+
+ Make it clear that the regular user does not need --macrodir.
+ In fact, rename this option as -A, --autoconf-dir.
+
+ * autoconf.sh: Complain when -m, --macrodir is used.
+ Accept -A, --autoconf-dir.
+ Use $autoconf_dir instead of $AC_MACRODIR.
+ Adjust --help.
+ * autoheader.sh: Likewise.
+ * autoscan.sh: Likewise.
+ * autoupdate.sh: Likewise.
+ Use $optarg.
+ * autoreconf.sh: Likewise.
+ * doc/autoconf.texi: Adjust.
+ * tests: Adjust the test suite.
+
2000-07-19 Akim Demaille <akim@epita.fr>
* autoreconf.sh: Forward --debug to sub tools.
esac
# Variables.
-: ${AC_MACRODIR=@datadir@}
+: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
: ${AC_ACLOCALDIR=`(aclocal --print-ac-dir) 2>/dev/null`}
: ${AWK=@AWK@}
debug=false
localdir=$1
shift ;;
+ --autoconf-dir=*)
+ autoconf_dir=$optarg
+ shift ;;
+ --autoconf-dir | -A* )
+ test $# = 1 && eval "$exit_missing_arg"
+ shift
+ autoconf_dir=$1
+ shift ;;
--macrodir=* | --m*=* )
- AC_MACRODIR=$optarg
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
+ autoconf_dir=$optarg
shift ;;
--macrodir | --m* | -m )
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
test $# = 1 && eval "$exit_missing_arg"
shift
- AC_MACRODIR=$1
+ autoconf_dir=$1
shift ;;
--trace | -t )
}
# Running m4.
-test -f "$AC_MACRODIR/acsite.m4" && acsite_m4="$AC_MACRODIR/acsite.m4"
+test -f "$autoconf_dir/acsite.m4" && acsite_m4="$autoconf_dir/acsite.m4"
test -f "$localdir/aclocal.m4" && aclocal_m4="$localdir/aclocal.m4"
-m4_common="$acsite_m4 $aclocal_m4 -I $AC_MACRODIR -I $localdir"
-run_m4="$M4 $AC_MACRODIR/autoconf.m4 $m4_common"
-run_m4f="$M4 --reload $AC_MACRODIR/autoconf.m4f $m4_common"
+m4_common="$acsite_m4 $aclocal_m4 -I $autoconf_dir -I $localdir"
+run_m4="$M4 $autoconf_dir/autoconf.m4 $m4_common"
+run_m4f="$M4 --reload $autoconf_dir/autoconf.m4f $m4_common"
# Find the input file.
case $# in
esac
# Variables.
-: ${AC_MACRODIR=@datadir@}
+: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
: ${AC_ACLOCALDIR=`(aclocal --print-ac-dir) 2>/dev/null`}
: ${AWK=@AWK@}
debug=false
localdir=$1
shift ;;
+ --autoconf-dir=*)
+ autoconf_dir=$optarg
+ shift ;;
+ --autoconf-dir | -A* )
+ test $# = 1 && eval "$exit_missing_arg"
+ shift
+ autoconf_dir=$1
+ shift ;;
--macrodir=* | --m*=* )
- AC_MACRODIR=$optarg
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
+ autoconf_dir=$optarg
shift ;;
--macrodir | --m* | -m )
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
test $# = 1 && eval "$exit_missing_arg"
shift
- AC_MACRODIR=$1
+ autoconf_dir=$1
shift ;;
--trace | -t )
}
# Running m4.
-test -f "$AC_MACRODIR/acsite.m4" && acsite_m4="$AC_MACRODIR/acsite.m4"
+test -f "$autoconf_dir/acsite.m4" && acsite_m4="$autoconf_dir/acsite.m4"
test -f "$localdir/aclocal.m4" && aclocal_m4="$localdir/aclocal.m4"
-m4_common="$acsite_m4 $aclocal_m4 -I $AC_MACRODIR -I $localdir"
-run_m4="$M4 $AC_MACRODIR/autoconf.m4 $m4_common"
-run_m4f="$M4 --reload $AC_MACRODIR/autoconf.m4f $m4_common"
+m4_common="$acsite_m4 $aclocal_m4 -I $autoconf_dir -I $localdir"
+run_m4="$M4 $autoconf_dir/autoconf.m4 $m4_common"
+run_m4f="$M4 --reload $autoconf_dir/autoconf.m4f $m4_common"
# Find the input file.
case $# in
-V, --version print version number, then exit
-v, --verbose verbosely report processing
-d, --debug don't remove temporary files
- -m, --macrodir=DIR directory storing Autoconf's macro files
- -l, --localdir=DIR directory storing \`aclocal.m4' and \`acconfig.h'
-W, --warnings=CATEGORY report the warnings falling in CATEGORY
Warning categories include:
\`obsolete' obsolete constructs
\`all' all the warnings
\`error' warnings are error
+
+Library directories:
+ -A, --autoconf-dir=ACDIR Autoconf's macro files location (rarely needed)
+ -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
+
Report bugs to <bug-autoconf@gnu.org>."
version="\
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
# Variables.
-: ${AC_MACRODIR=@datadir@}
+: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
dir=`echo "$0" | sed -e 's/[^/]*$//'`
# We test "$dir/autoconf" in case we are in the build tree, in which case
# the names are not transformed yet.
# Parse command line.
while test $# -gt 0 ; do
- case "$1" in
+ optarg=`expr "$1" : '-[^=]*=\(.*\)'`
+ case $1 in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
--help | --h* | -h )
shift;;
--localdir=* | --l*=* )
- localdir=`echo "$1" | sed -e 's/^[^=]*=//'`
+ localdir=$optarg
shift ;;
--localdir | --l* | -l )
test $# = 1 && eval "$exit_missing_arg"
localdir=$1
shift ;;
+ --autoconf-dir=*)
+ autoconf_dir=$optarg
+ shift ;;
+ --autoconf-dir | -A* )
+ test $# = 1 && eval "$exit_missing_arg"
+ shift
+ autoconf_dir=$1
+ shift ;;
--macrodir=* | --m*=* )
- AC_MACRODIR=`echo "$1" | sed -e 's/^[^=]*=//'`
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
+ autoconf_dir=$optarg
shift ;;
--macrodir | --m* | -m )
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
test $# = 1 && eval "$exit_missing_arg"
shift
- AC_MACRODIR=$1
+ autoconf_dir=$1
shift ;;
--warnings | -W )
shift
warnings="$warnings "`echo $1 | sed -e 's/,/ /g'`
shift ;;
- --warnings=* )
- warnings="$warnings "`echo "$1" | sed -e 's/^[^=]*=//;s/,/ /g'`
- shift ;;
- -W* ) # People are used to -Wall, -Werror etc.
- warnings="$warnings "`echo "$1" | sed -e 's/^-W//;s/,/ /g'`
+ --warnings=* | -W*)
+ warnings="$warnings "`echo "$optarg" | sed -e 's/,/ /g'`
shift ;;
-- ) # Stop option processing
(test -f $config_h.top ||
test -f $config_h.bot ||
test -f $localdir/acconfig.h); then
- sed -e "s/^ //;s/^/$me: WARNING: /" >&2 <<\EOF
+ sed -e "s/^ /$me: WARNING: /" >&2 <<\EOF
Using auxiliary files such as `acconfig.h', `config.h.bot'
and `config.h.top', to define templates for `config.h.in'
is deprecated and discouraged.
# Set up autoconf.
autoconf="$autoconf -l $localdir"
-export AC_MACRODIR
+export autoconf_dir
# ----------------------- #
# Real work starts here. #
-V, --version print version number, then exit
-v, --verbose verbosely report processing
-d, --debug don't remove temporary files
- -m, --macrodir=DIR directory storing Autoconf's macro files
- -l, --localdir=DIR directory storing \`aclocal.m4' and \`acconfig.h'
-W, --warnings=CATEGORY report the warnings falling in CATEGORY
Warning categories include:
\`obsolete' obsolete constructs
\`all' all the warnings
\`error' warnings are error
+
+Library directories:
+ -A, --autoconf-dir=ACDIR Autoconf's macro files location (rarely needed)
+ -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
+
Report bugs to <bug-autoconf@gnu.org>."
version="\
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
# Variables.
-: ${AC_MACRODIR=@datadir@}
+: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
dir=`echo "$0" | sed -e 's/[^/]*$//'`
# We test "$dir/autoconf" in case we are in the build tree, in which case
# the names are not transformed yet.
# Parse command line.
while test $# -gt 0 ; do
- case "$1" in
+ optarg=`expr "$1" : '-[^=]*=\(.*\)'`
+ case $1 in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
--help | --h* | -h )
shift;;
--localdir=* | --l*=* )
- localdir=`echo "$1" | sed -e 's/^[^=]*=//'`
+ localdir=$optarg
shift ;;
--localdir | --l* | -l )
test $# = 1 && eval "$exit_missing_arg"
localdir=$1
shift ;;
+ --autoconf-dir=*)
+ autoconf_dir=$optarg
+ shift ;;
+ --autoconf-dir | -A* )
+ test $# = 1 && eval "$exit_missing_arg"
+ shift
+ autoconf_dir=$1
+ shift ;;
--macrodir=* | --m*=* )
- AC_MACRODIR=`echo "$1" | sed -e 's/^[^=]*=//'`
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
+ autoconf_dir=$optarg
shift ;;
--macrodir | --m* | -m )
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
test $# = 1 && eval "$exit_missing_arg"
shift
- AC_MACRODIR=$1
+ autoconf_dir=$1
shift ;;
--warnings | -W )
shift
warnings="$warnings "`echo $1 | sed -e 's/,/ /g'`
shift ;;
- --warnings=* )
- warnings="$warnings "`echo "$1" | sed -e 's/^[^=]*=//;s/,/ /g'`
- shift ;;
- -W* ) # People are used to -Wall, -Werror etc.
- warnings="$warnings "`echo "$1" | sed -e 's/^-W//;s/,/ /g'`
+ --warnings=* | -W*)
+ warnings="$warnings "`echo "$optarg" | sed -e 's/,/ /g'`
shift ;;
-- ) # Stop option processing
(test -f $config_h.top ||
test -f $config_h.bot ||
test -f $localdir/acconfig.h); then
- sed -e "s/^ //;s/^/$me: WARNING: /" >&2 <<\EOF
+ sed -e "s/^ /$me: WARNING: /" >&2 <<\EOF
Using auxiliary files such as `acconfig.h', `config.h.bot'
and `config.h.top', to define templates for `config.h.in'
is deprecated and discouraged.
# Set up autoconf.
autoconf="$autoconf -l $localdir"
-export AC_MACRODIR
+export autoconf_dir
# ----------------------- #
# Real work starts here. #
other tools.
Library directories:
- -m, --macrodir=ACDIR Autoconf's macro files location (rarely needed)
- -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
- -M, --m4dir=M4DIR this package's Autoconf extensions
+ -A, --autoconf-dir=ACDIR Autoconf's macro files location (rarely needed)
+ -m, --macro-path=PATH library extensions files
+ -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
+ -M, --m4dir=M4DIR this package's Autoconf extensions
Unless specified, heuristics try to compute \`M4DIR' from the \`Makefile.am',
or defaults to \`m4' if it exists.
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
# Variables.
-: ${AC_MACRODIR=@datadir@}
+: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
debug=false
dir=`echo "$0" | sed -e 's/[^/]*$//'`
force=false
shift ;;
--macrodir=* )
- AC_MACRODIR=$optarg
+ autoconf_dir=$optarg
shift ;;
--macrodir | -m )
test $# = 1 && eval "$exit_missing_arg"
shift
- AC_MACRODIR=$1
+ autoconf_dir=$1
shift ;;
--m4dir=* )
autoheader="$autoheader --debug"
}
# --macrodir
-export AC_MACRODIR
+export autoconf_dir
# --install and --symlink
if $install; then
automake="$automake --add-missing `$symlink || echo --copy`"
# user needs the FILES, check that there is an exact correspondence.
# Use yourself to get the list of the included files.
export AC_ACLOCALDIR
- export AC_MACRODIR
+ export autoconf_dir
$autoconf -t include:'$1' -t m4_include:'$1' -t m4_sinclude:'$1' configure.in |
sort |
uniq >$tmp/included
other tools.
Library directories:
- -m, --macrodir=ACDIR Autoconf's macro files location (rarely needed)
- -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
- -M, --m4dir=M4DIR this package's Autoconf extensions
+ -A, --autoconf-dir=ACDIR Autoconf's macro files location (rarely needed)
+ -m, --macro-path=PATH library extensions files
+ -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
+ -M, --m4dir=M4DIR this package's Autoconf extensions
Unless specified, heuristics try to compute \`M4DIR' from the \`Makefile.am',
or defaults to \`m4' if it exists.
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
# Variables.
-: ${AC_MACRODIR=@datadir@}
+: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
debug=false
dir=`echo "$0" | sed -e 's/[^/]*$//'`
force=false
shift ;;
--macrodir=* )
- AC_MACRODIR=$optarg
+ autoconf_dir=$optarg
shift ;;
--macrodir | -m )
test $# = 1 && eval "$exit_missing_arg"
shift
- AC_MACRODIR=$1
+ autoconf_dir=$1
shift ;;
--m4dir=* )
autoheader="$autoheader --debug"
}
# --macrodir
-export AC_MACRODIR
+export autoconf_dir
# --install and --symlink
if $install; then
automake="$automake --add-missing `$symlink || echo --copy`"
# user needs the FILES, check that there is an exact correspondence.
# Use yourself to get the list of the included files.
export AC_ACLOCALDIR
- export AC_MACRODIR
+ export autoconf_dir
$autoconf -t include:'$1' -t m4_include:'$1' -t m4_sinclude:'$1' configure.in |
sort |
uniq >$tmp/included
-h, --help print this help, then exit
-V, --version print version number, then exit
-v, --verbose verbosely report processing
- -m, --macrodir=DIR directory storing data files
+
+Library directories:
+ -A, --autoconf-dir=ACDIR Autoconf's files location (rarely needed)
+ -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
Report bugs to <bug-autoconf\@gnu.org>.
EOD
local $need_datadir = 0;
foreach $_ (@ARGV) {
- if (/^--m[a-z]*=(.*)/) {
+ if (/^--autoconf-dir=(.*)/) {
+ $datadir = $1;
+ } elsif (/^--autoconf-dir/ || /^-A$/) {
+ $need_datadir = 1;
+ } elsif (/^--m[a-z]*=(.*)/) {
$datadir = $1;
} elsif (/^-m$/) {
$need_datadir = 1;
-h, --help print this help, then exit
-V, --version print version number, then exit
-v, --verbose verbosely report processing
- -m, --macrodir=DIR directory storing data files
+
+Library directories:
+ -A, --autoconf-dir=ACDIR Autoconf's files location (rarely needed)
+ -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
Report bugs to <bug-autoconf\@gnu.org>.
EOD
local $need_datadir = 0;
foreach $_ (@ARGV) {
- if (/^--m[a-z]*=(.*)/) {
+ if (/^--autoconf-dir=(.*)/) {
+ $datadir = $1;
+ } elsif (/^--autoconf-dir/ || /^-A$/) {
+ $need_datadir = 1;
+ } elsif (/^--m[a-z]*=(.*)/) {
$datadir = $1;
} elsif (/^-m$/) {
$need_datadir = 1;
esac
# Variables.
-: ${AC_MACRODIR=@datadir@}
+: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
: ${AC_ACLOCALDIR=`(aclocal --print-ac-dir) 2>/dev/null`}
: ${AWK=@AWK@}
debug=false
localdir=$1
shift ;;
+ --autoconf-dir=*)
+ autoconf_dir=$optarg
+ shift ;;
+ --autoconf-dir | -A* )
+ test $# = 1 && eval "$exit_missing_arg"
+ shift
+ autoconf_dir=$1
+ shift ;;
--macrodir=* | --m*=* )
- AC_MACRODIR=$optarg
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
+ autoconf_dir=$optarg
shift ;;
--macrodir | --m* | -m )
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
test $# = 1 && eval "$exit_missing_arg"
shift
- AC_MACRODIR=$1
+ autoconf_dir=$1
shift ;;
--trace | -t )
}
# Running m4.
-test -f "$AC_MACRODIR/acsite.m4" && acsite_m4="$AC_MACRODIR/acsite.m4"
+test -f "$autoconf_dir/acsite.m4" && acsite_m4="$autoconf_dir/acsite.m4"
test -f "$localdir/aclocal.m4" && aclocal_m4="$localdir/aclocal.m4"
-m4_common="$acsite_m4 $aclocal_m4 -I $AC_MACRODIR -I $localdir"
-run_m4="$M4 $AC_MACRODIR/autoconf.m4 $m4_common"
-run_m4f="$M4 --reload $AC_MACRODIR/autoconf.m4f $m4_common"
+m4_common="$acsite_m4 $aclocal_m4 -I $autoconf_dir -I $localdir"
+run_m4="$M4 $autoconf_dir/autoconf.m4 $m4_common"
+run_m4f="$M4 --reload $autoconf_dir/autoconf.m4f $m4_common"
# Find the input file.
case $# in
-V, --version print version number, then exit
-v, --verbose verbosely report processing
-d, --debug don't remove temporary files
- -m, --macrodir=DIR directory storing Autoconf's macro files
- -l, --localdir=DIR directory storing \`aclocal.m4' and \`acconfig.h'
-W, --warnings=CATEGORY report the warnings falling in CATEGORY
Warning categories include:
\`obsolete' obsolete constructs
\`all' all the warnings
\`error' warnings are error
+
+Library directories:
+ -A, --autoconf-dir=ACDIR Autoconf's macro files location (rarely needed)
+ -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
+
Report bugs to <bug-autoconf@gnu.org>."
version="\
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
# Variables.
-: ${AC_MACRODIR=@datadir@}
+: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
dir=`echo "$0" | sed -e 's/[^/]*$//'`
# We test "$dir/autoconf" in case we are in the build tree, in which case
# the names are not transformed yet.
# Parse command line.
while test $# -gt 0 ; do
- case "$1" in
+ optarg=`expr "$1" : '-[^=]*=\(.*\)'`
+ case $1 in
--version | --vers* | -V )
echo "$version" ; exit 0 ;;
--help | --h* | -h )
shift;;
--localdir=* | --l*=* )
- localdir=`echo "$1" | sed -e 's/^[^=]*=//'`
+ localdir=$optarg
shift ;;
--localdir | --l* | -l )
test $# = 1 && eval "$exit_missing_arg"
localdir=$1
shift ;;
+ --autoconf-dir=*)
+ autoconf_dir=$optarg
+ shift ;;
+ --autoconf-dir | -A* )
+ test $# = 1 && eval "$exit_missing_arg"
+ shift
+ autoconf_dir=$1
+ shift ;;
--macrodir=* | --m*=* )
- AC_MACRODIR=`echo "$1" | sed -e 's/^[^=]*=//'`
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
+ autoconf_dir=$optarg
shift ;;
--macrodir | --m* | -m )
+ echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&1
test $# = 1 && eval "$exit_missing_arg"
shift
- AC_MACRODIR=$1
+ autoconf_dir=$1
shift ;;
--warnings | -W )
shift
warnings="$warnings "`echo $1 | sed -e 's/,/ /g'`
shift ;;
- --warnings=* )
- warnings="$warnings "`echo "$1" | sed -e 's/^[^=]*=//;s/,/ /g'`
- shift ;;
- -W* ) # People are used to -Wall, -Werror etc.
- warnings="$warnings "`echo "$1" | sed -e 's/^-W//;s/,/ /g'`
+ --warnings=* | -W*)
+ warnings="$warnings "`echo "$optarg" | sed -e 's/,/ /g'`
shift ;;
-- ) # Stop option processing
(test -f $config_h.top ||
test -f $config_h.bot ||
test -f $localdir/acconfig.h); then
- sed -e "s/^ //;s/^/$me: WARNING: /" >&2 <<\EOF
+ sed -e "s/^ /$me: WARNING: /" >&2 <<\EOF
Using auxiliary files such as `acconfig.h', `config.h.bot'
and `config.h.top', to define templates for `config.h.in'
is deprecated and discouraged.
# Set up autoconf.
autoconf="$autoconf -l $localdir"
-export AC_MACRODIR
+export autoconf_dir
# ----------------------- #
# Real work starts here. #
other tools.
Library directories:
- -m, --macrodir=ACDIR Autoconf's macro files location (rarely needed)
- -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
- -M, --m4dir=M4DIR this package's Autoconf extensions
+ -A, --autoconf-dir=ACDIR Autoconf's macro files location (rarely needed)
+ -m, --macro-path=PATH library extensions files
+ -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
+ -M, --m4dir=M4DIR this package's Autoconf extensions
Unless specified, heuristics try to compute \`M4DIR' from the \`Makefile.am',
or defaults to \`m4' if it exists.
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
# Variables.
-: ${AC_MACRODIR=@datadir@}
+: ${autoconf_dir=${AC_MACRODIR=@datadir@}}
debug=false
dir=`echo "$0" | sed -e 's/[^/]*$//'`
force=false
shift ;;
--macrodir=* )
- AC_MACRODIR=$optarg
+ autoconf_dir=$optarg
shift ;;
--macrodir | -m )
test $# = 1 && eval "$exit_missing_arg"
shift
- AC_MACRODIR=$1
+ autoconf_dir=$1
shift ;;
--m4dir=* )
autoheader="$autoheader --debug"
}
# --macrodir
-export AC_MACRODIR
+export autoconf_dir
# --install and --symlink
if $install; then
automake="$automake --add-missing `$symlink || echo --copy`"
# user needs the FILES, check that there is an exact correspondence.
# Use yourself to get the list of the included files.
export AC_ACLOCALDIR
- export AC_MACRODIR
+ export autoconf_dir
$autoconf -t include:'$1' -t m4_include:'$1' -t m4_sinclude:'$1' configure.in |
sort |
uniq >$tmp/included
-h, --help print this help, then exit
-V, --version print version number, then exit
-v, --verbose verbosely report processing
- -m, --macrodir=DIR directory storing data files
+
+Library directories:
+ -A, --autoconf-dir=ACDIR Autoconf's files location (rarely needed)
+ -l, --localdir=DIR location of \`aclocal.m4' and \`acconfig.h'
Report bugs to <bug-autoconf\@gnu.org>.
EOD
local $need_datadir = 0;
foreach $_ (@ARGV) {
- if (/^--m[a-z]*=(.*)/) {
+ if (/^--autoconf-dir=(.*)/) {
+ $datadir = $1;
+ } elsif (/^--autoconf-dir/ || /^-A$/) {
+ $need_datadir = 1;
+ } elsif (/^--m[a-z]*=(.*)/) {
$datadir = $1;
} elsif (/^-m$/) {
$need_datadir = 1;
@table @option
@item --help
+@itemx -h
Print a summary of the command line options and exit.
@item --version
Print the version number of Autoconf and exit.
@item --verbose
+@itemx -v
Print the names of the files it examines and the potentially interesting
symbols it finds in them. This output can be voluminous.
-@item --macrodir=@var{dir}
+@item --autoconf-dir=@var{dir}
+@itemx -A
@evindex AC_MACRODIR
-Look for the data files in directory @var{dir} instead of the default
-installation directory. You can also set the @code{AC_MACRODIR}
-environment variable to a directory; this option overrides the
-environment variable.
+Overwrite the location where Autoconf files were installed. You can
+also set the @code{AC_MACRODIR} environment variable to a directory;
+this option overrides the environment variable.
+
+This option is rarely needed and dangerous: only when you play with
+different versions of Autoconf.
@end table
@node ifnames Invocation, autoconf Invocation, autoscan Invocation, Making configure Scripts
@itemx -d
Don't remove the temporary files.
-@item --macrodir=@var{dir}
-@itemx -m @var{dir}
+@item --autoconf-dir=@var{dir}
+@itemx -A
@evindex AC_MACRODIR
-Look for the installed macro files in directory @var{dir}. You can also
-set the @code{AC_MACRODIR} environment variable to a directory; this
-option overrides the environment variable.
+Overwrite the location where Autoconf files were installed. You can
+also set the @code{AC_MACRODIR} environment variable to a directory;
+this option overrides the environment variable.
+
+This option is rarely needed and dangerous: only when you play with
+different versions of Autoconf.
@item --localdir=@var{dir}
@itemx -l @var{dir}
@code{autoreconf} remake @emph{all} of the files by giving it the
@option{--force} option.
-If you give @code{autoreconf} the @option{--macrodir=@var{dir}} or
+If you give @code{autoreconf} the @option{--autoconf-dir=@var{dir}} or
@option{--localdir=@var{dir}} options, it passes them down to
@code{autoconf} and @code{autoheader} (with relative paths adjusted
properly).
@xref{Automatic Remaking}, for @file{Makefile} rules to automatically
remake @code{configure} scripts when their source files change. That
method handles the timestamps of configuration header templates
-properly, but does not pass @option{--macrodir=@var{dir}} or
+properly, but does not pass @option{--autoconf-dir=@var{dir}} or
@option{--localdir=@var{dir}}.
@noindent
not @file{@var{file}.top} and @file{@var{file}.bot}) in directory
@var{dir} instead of in the directory containing each @file{configure.in}.
-@item --macrodir=@var{dir}
-@itemx -m @var{dir}
+@item --autoconf-dir=@var{dir}
+@itemx -A
@evindex AC_MACRODIR
-Look for the Autoconf macro files in directory @var{dir} instead of the
-default installation directory. You can also set the @code{AC_MACRODIR}
-environment variable to a directory; this option overrides the
-environment variable.
+Overwrite the location where Autoconf files were installed. You can
+also set the @code{AC_MACRODIR} environment variable to a directory;
+this option overrides the environment variable.
+
+This option is rarely needed and dangerous: only when you play with
+different versions of Autoconf.
@end table
@itemx -d
Don't remove the temporary files.
-@item --macrodir=@var{dir}
-@itemx -m @var{dir}
+@item --autoconf-dir=@var{dir}
+@itemx -A
@evindex AC_MACRODIR
-Look for the installed macro files and @file{acconfig.h} in directory
-@var{dir}. You can also set the @code{AC_MACRODIR} environment variable
-to a directory; this option overrides the environment variable.
+Overwrite the location where Autoconf files were installed. You can
+also set the @code{AC_MACRODIR} environment variable to a directory;
+this option overrides the environment variable.
+
+This option is rarely needed and dangerous: only when you play with
+different versions of Autoconf.
@item --localdir=@var{dir}
@itemx -l @var{dir}
@itemx -d
Don't remove the temporary files.
-@item --macrodir=@var{dir}
-@itemx -m @var{dir}
+@item --autoconf-dir=@var{dir}
+@itemx -A
@evindex AC_MACRODIR
-Look for the installed macro files in directory @var{dir}. You can also
-set the @code{AC_MACRODIR} environment variable to a directory; this
-option overrides the environment variable.
+Overwrite the location where Autoconf files were installed. You can
+also set the @code{AC_MACRODIR} environment variable to a directory;
+this option overrides the environment variable.
+
+This option is rarely needed and dangerous: only when you play with
+different versions of Autoconf.
@item --localdir=@var{dir}
@itemx -l @var{dir}
Roland McGrath got it to configure the @sc{gnu} C Library, wrote the
@code{autoheader} script to automate the creation of C header file
templates, and added a @option{--verbose} option to @code{configure}.
-Noah Friedman added the @option{--macrodir} option and
+Noah Friedman added the @option{--autoconf-dir} option and
@code{AC_MACRODIR} environment variable. (He also coined the term
@dfn{autoconfiscate} to mean ``adapt a software package to use
Autoconf''.) Roland and Noah improved the quoting protection in
\fB\-d\fR, \fB\-\-debug\fR
don't remove temporary files
.TP
-\fB\-m\fR, \fB\-\-macrodir\fR=\fIDIR\fR
-directory storing Autoconf's macro files
-.TP
-\fB\-l\fR, \fB\-\-localdir\fR=\fIDIR\fR
-directory storing `aclocal.m4' and `acconfig.h'
-.TP
\fB\-W\fR, \fB\-\-warnings\fR=\fICATEGORY\fR
report the warnings falling in CATEGORY
.SS "Warning categories include:"
.TP
`error'
warnings are error
+.SS "Library directories:"
+.TP
+\fB\-A\fR, \fB\-\-autoconf\-dir\fR=\fIACDIR\fR
+Autoconf's macro files location (rarely needed)
+.TP
+\fB\-l\fR, \fB\-\-localdir\fR=\fIDIR\fR
+location of `aclocal.m4' and `acconfig.h'
.SH AUTHOR
Written by Roland McGrath.
.SH "REPORTING BUGS"
other tools.
.SS "Library directories:"
.TP
-\fB\-m\fR, \fB\-\-macrodir\fR=\fIACDIR\fR
+\fB\-A\fR, \fB\-\-autoconf\-dir\fR=\fIACDIR\fR
Autoconf's macro files location (rarely needed)
.TP
+\fB\-m\fR, \fB\-\-macro\-path\fR=\fIPATH\fR
+library extensions files
+.TP
\fB\-l\fR, \fB\-\-localdir\fR=\fIDIR\fR
location of `aclocal.m4' and `acconfig.h'
.TP
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.020.
-.TH AUTOSCAN "1" "May 2000" "GNU autoconf 2.14a" FSF
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.022.
+.TH AUTOSCAN "1" "July 2000" "GNU autoconf 2.14a" FSF
.SH NAME
autoscan \- Generate a preliminary configure.in
.SH SYNOPSIS
.TP
\fB\-v\fR, \fB\-\-verbose\fR
verbosely report processing
+.SS "Library directories:"
.TP
-\fB\-m\fR, \fB\-\-macrodir\fR=\fIDIR\fR
-directory storing data files
+\fB\-A\fR, \fB\-\-autoconf\-dir\fR=\fIACDIR\fR
+Autoconf's files location (rarely needed)
+.TP
+\fB\-l\fR, \fB\-\-localdir\fR=\fIDIR\fR
+location of `aclocal.m4' and `acconfig.h'
.SH AUTHOR
Written by David J. MacKenzie.
.SH "REPORTING BUGS"
.TP
\fB\-d\fR, \fB\-\-debug\fR
don't remove temporary files
+.SS "Library directories:"
.TP
-\fB\-m\fR, \fB\-\-macrodir\fR=\fIDIR\fR
-directory storing Autoconf's macro files
+\fB\-A\fR, \fB\-\-autoconf\-dir\fR=\fIACDIR\fR
+Autoconf's macro files location (rarely needed)
.TP
\fB\-l\fR, \fB\-\-localdir\fR=\fIDIR\fR
-directory storing the `aclocal.m4' file
+location of `aclocal.m4' and `acconfig.h'
.SH AUTHOR
Written by David J. MacKenzie.
.SH "REPORTING BUGS"
dnl Maybe some day we could be more precise and filter out warnings.
dnl The problem is that currently some warnings are spread on several
dnl lines, so grepping -v warning is not enough.
-AT_CHECK([../autoconf -m .. -l $at_srcdir], 0,, ignore)
-AT_CHECK([../autoheader -m .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoheader --autoconf-dir .. -l $at_srcdir], 0,, ignore)
AT_CHECK([top_srcdir=$top_srcdir ./configure], 0, ignore, ignore)
test -n "$at_verbose" && echo "--- config.log" && cat config.log
First, second , third, [,quoted]
]])
-AT_CHECK([../autoconf -m .. -l $at_srcdir -o-], 0, expout)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir -o-], 0, expout)
AT_CLEANUP()
exit 0
]])
-AT_CHECK([../autoconf -m .. -l $at_srcdir], 0, [], [])
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure], 0)
AT_CLEANUP(configure)
exit 0
]])
-AT_CHECK([../autoconf -m .. -l $at_srcdir], 0, [], [])
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure], 0)
AT_CLEANUP(configure 1)
AC_OUTPUT
]])
-AT_CHECK([../autoconf -m .. -l $at_srcdir], 0,,
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,,
[configure.in:10: warning: AC_CHECK_TYPE: assuming `uint65536_t' is not a type
])
AT_CHECK([[sed -e '/^#(cut-from-here/,/^#to-here)/!d' -e '/^#/d' configure]],
exit $fail
]])
-AT_CHECK([../autoconf -m .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
AT_CHECK([./configure], 0, ignore)
exit $fail
]])
-AT_CHECK([../autoconf -m .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
AT_CHECK([./configure], 0, ignore)
AT_CLEANUP(path config.log config.cache configure)
AC_OUTPUT
]])
-AT_CHECK([../autoconf -m .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
# Create a header
AT_CHECK([./configure what_to_test=header], 0, ignore)
AC_DEFINE(this, "whatever you want.")
]])
-AT_CHECK([../autoheader -m .. -<configure.in], 0,
+AT_CHECK([../autoheader --autoconf-dir .. -<configure.in], 0,
[[/* config.h.in. Generated automatically from - by autoheader. */
/* Define this to whatever you want. */
#undef this
AC_DEFINE(that, "whatever you want.")
]])
-AT_CHECK([../autoheader -m .. -<configure.in], 1, ignore, ignore)
+AT_CHECK([../autoheader --autoconf-dir .. -<configure.in], 1, ignore, ignore)
# 3. Check TOP and BOTTOM.
# Yes, that's right: the `middle' part of `acconfig.h' is still before
# the AH_TOP part. But so what, you're not supposed to use the two
# together.
-AT_CHECK([../autoheader -m .. -<configure.in], 0,
+AT_CHECK([../autoheader --autoconf-dir .. -<configure.in], 0,
[[/* config.h.in. Generated automatically from - by autoheader. */
/* Top from acconfig.h. */
]])
# Checking `autoupdate'.
-AT_CHECK([../autoupdate -m $top_srcdir -<configure.in], 0,
+AT_CHECK([../autoupdate --autoconf-dir $top_srcdir -<configure.in], 0,
[[AC_INIT
dnl The doc says 27 is a valid fubar.
fubar=27
]])
# Several --traces.
-AT_CHECK([../autoconf -m .. -l $at_srcdir -t TRACE1 -t TRACE2], 0,
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir -t TRACE1 -t TRACE2], 0,
[[configure.in:4:TRACE1:foo:bar:baz
configure.in:4:TRACE2:bar:baz
configure.in:5:TRACE1:foo:AC_TRACE1(bar, baz)
]])
# Several line requests.
-AT_CHECK([[../autoconf -m .. -l $at_srcdir -t TRACE1:'
+AT_CHECK([[../autoconf --autoconf-dir .. -l $at_srcdir -t TRACE1:'
[$1], [$2], [$3].']], 0,
[[
[foo], [bar], [baz].
]])
# ${sep}@.
-AT_CHECK([../autoconf -m .. -l $at_srcdir -t TRACE2:'${)===(}@'], 0,
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir -t TRACE2:'${)===(}@'], 0,
[[[bar])===([baz]
[AC_TRACE1(bar, baz)]
[ACTIVE])===([baz]
AC_OUTPUT
])
-AT_CHECK([../autoconf -m .. -l $at_srcdir], 0,, ignore)
-AT_CHECK([../autoheader -m .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoheader --autoconf-dir .. -l $at_srcdir], 0,, ignore)
AT_CHECK([./configure], 0, ignore)
# Checking that AC_DEFINE worked properly.
AC_OUTPUT
]])
-AT_CHECK([../autoconf -m .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
AT_CHECK([./configure one=one --enable-two=two --with-three=three |
sed -n -e 's/^result=//p'], 0,
#undef aaa
]])
-AT_CHECK([../autoconf -m .. -l $at_srcdir], 0)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0)
AT_CHECK([./configure], 0, ignore)
AT_DATA(expout,