1 AS_INIT
[]dnl
-*- shell
-script
-*-
2 m4_divert_push
([HEADER
-COPYRIGHT
])dnl
4 # autoconf
-- create
`configure
' using m4 macros
6 # Copyright (C) 1992, 1993, 1994, 1996, 1999, 2000, 2001, 2002, 2003,
7 # 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This program is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 m4_divert_pop([HEADER-COPYRIGHT])dnl back to BODY
27 Usage: $0 [OPTION] ... [TEMPLATE-FILE]
29 Generate a configuration script from a TEMPLATE-FILE if given, or
30 \`configure.ac' if present
, or
else \`configure
.in'. Output is sent
31 to the standard output if TEMPLATE-FILE is given, else into
35 -h
, --help print
this help
, then exit
36 -V
, --version print version number
, then exit
37 -v
, --verbose verbosely report processing
38 -d
, --debug don
't remove temporary files
39 -f, --force consider all files obsolete
40 -o, --output=FILE save output in FILE (stdout is the default)
41 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax]
43 Warning categories include:
44 \`cross' cross compilation issues
45 \`obsolete
' obsolete constructs
46 \`syntax' dubious syntactic constructs
47 \`all
' all the warnings
48 \`no-CATEGORY' turn off the warnings on CATEGORY
49 \`none
' turn off all the warnings
50 \`error' warnings are error
52 The environment variables
\`M4
' and \`WARNINGS' are honored
.
55 -B
, --prepend
-include=DIR prepend directory DIR to search path
56 -I
, --include=DIR append directory DIR to search path
59 -t
, --trace
=MACRO
[:FORMAT
] report the list of calls to MACRO
60 -i
, --initialization also trace Autoconf
's initialization process
62 In tracing mode, no configuration script is created. FORMAT defaults
63 to \`\$f:\$l:\$n:\$%'; see
\`autom4te
--help
' for information about FORMAT.
65 Report bugs to <bug-autoconf@gnu.org>."]
68 autoconf (@PACKAGE_NAME@) @VERSION@
69 Copyright (C) @RELEASE_YEAR@ Free Software Foundation, Inc.
70 License GPLv2+: GNU GPL version 2 or later
71 <http://gnu.org/licenses/old-licenses/gpl-2.0.html>
72 This is free software: you are free to change and redistribute it.
73 There is NO WARRANTY, to the extent permitted by law.
75 Written by David J. MacKenzie and Akim Demaille."]
78 Try \`$as_me --help' for more information
."
81 AS_ECHO(["$as_me
: option
\`$[1]'\'' requires an argument
"]) >&2
82 AS_ECHO(["$help
"]) >&2
84 ' # restore font-lock: "
87 : ${AUTOM4TE
='@bindir@/@autom4te-name@'}
93 while test
$# -gt
0 ; do
94 option
=[`expr
"x$1" : 'x\(--[^=]*\)' \| \
96 optarg
=[`expr
"x$1" : 'x--[^=]*=\(.*\)' \| \
100 echo
"$version" ; exit
;;
102 AS_ECHO
(["$usage"]); exit
;;
106 autom4te_options
="$autom4te_options $1"; shift
;;
108 # Arguments passed
as is to autom4te
.
111 --include=* | -I
?* | \
112 --prepend
-include=* | -B
?* | \
113 --warnings
=* | -W
?* )
115 *\'*) arg
=`AS_ECHO
(["$1"]) | sed
"s/'/'\\\\\\\\''/g"` ;;
118 autom4te_options
="$autom4te_options '$arg'"; shift
;;
119 # Options
with separated arg passed
as is to autom4te
.
121 --prepend
-include | -B
| \
123 test
$# = 1 && eval
"$exit_missing_arg"
125 *\'*) arg
=`AS_ECHO
(["$2"]) | sed
"s/'/'\\\\\\\\''/g"` ;;
128 autom4te_options
="$autom4te_options $option '$arg'"
132 traces
="$traces --trace='"`AS_ECHO
(["$optarg"]) | sed
"s/'/'\\\\\\\\''/g"`"'"
135 test
$# = 1 && eval
"$exit_missing_arg"
136 traces
="$traces --trace='"`AS_ECHO
(["$[2]"]) | sed
"s/'/'\\\\\\\\''/g"`"'"
138 --initialization
| -i
)
139 autom4te_options
="$autom4te_options --melt"
146 test
$# = 1 && eval
"$exit_missing_arg"
150 -- ) # Stop option processing
152 - ) # Use stdin
as input
.
156 AS_ECHO
(["$as_me: invalid option $[1]"])
164 # Find the input file
.
167 if test
-f configure
.ac
; then
168 if test
-f configure
.in; then
169 AS_ECHO
(["$as_me: warning: both \`configure.ac' and \`configure.in' are present."]) >&2
170 AS_ECHO
(["$as_me: warning: proceeding with \`configure.ac'."]) >&2
173 elif test
-f configure
.in; then
176 AS_ECHO
(["$as_me: no input file"]) >&2
179 test
-z
"$traces" && test
-z
"$outfile" && outfile
=configure
;;
183 AS_ECHO
(["$as_me: invalid number of arguments."])
188 # Unless specified
, the output
is stdout
.
189 test
-z
"$outfile" && outfile
=-
191 # Run autom4te
with expansion
.
192 eval
set x
"$autom4te_options" \
193 --language
=autoconf
--output
=\"\$outfile
\" "$traces" \"\$infile
\"
195 $verbose
&& AS_ECHO
(["$as_me: running $AUTOM4TE $*"]) >&2
196 exec
"$AUTOM4TE" "$@"