Lines 230-285
m4_define([_AC_INIT_LITERAL],
Link Here
|
230 |
|
230 |
|
231 |
# _AC_INIT_PACKAGE(PACKAGE-NAME, VERSION, BUG-REPORT, [TARNAME], [URL]) |
231 |
# _AC_INIT_PACKAGE(PACKAGE-NAME, VERSION, BUG-REPORT, [TARNAME], [URL]) |
232 |
# --------------------------------------------------------------------- |
232 |
# --------------------------------------------------------------------- |
|
|
233 |
# Set the values of AC_PACKAGE_{NAME,VERSION,STRING,BUGREPORT,TARNAME,URL} |
234 |
# from the arguments. |
233 |
m4_define([_AC_INIT_PACKAGE], |
235 |
m4_define([_AC_INIT_PACKAGE], |
234 |
[m4_pushdef([_ac_init_NAME], m4_normalize([$1])) |
236 |
[_AC_INIT_PACKAGE_N(m4_normalize([$1]), m4_normalize([$2]), m4_normalize([$3]), |
235 |
m4_pushdef([_ac_init_VERSION], m4_normalize([$2])) |
237 |
m4_normalize([$4]), m4_normalize([$5]))]) |
236 |
m4_pushdef([_ac_init_BUGREPORT], m4_normalize([$3])) |
238 |
|
237 |
m4_pushdef([_ac_init_TARNAME], m4_normalize([$4])) |
239 |
# _AC_INIT_PACKAGE_N(PACKAGE-NAME, VERSION, BUG-REPORT, [TARNAME], [URL]) |
238 |
m4_pushdef([_ac_init_URL], m4_normalize([$5])) |
240 |
# ----------------------------------------------------------------------- |
239 |
# NAME, VERSION, BUGREPORT, and URL should all be safe for use in shell |
241 |
# Subroutine of _AC_INIT_PACKAGE. |
240 |
# strings of all kinds. |
242 |
m4_define([_AC_INIT_PACKAGE_N], |
241 |
_AC_INIT_LITERAL(m4_defn([_ac_init_NAME])) |
243 |
[# PACKAGE-NAME, VERSION, BUGREPORT, and URL should all be safe for use |
242 |
_AC_INIT_LITERAL(m4_defn([_ac_init_VERSION])) |
244 |
# in shell strings of all kinds. |
243 |
_AC_INIT_LITERAL(m4_defn([_ac_init_BUGREPORT])) |
245 |
_AC_INIT_LITERAL([$1]) |
244 |
_AC_INIT_LITERAL(m4_defn([_ac_init_URL])) |
246 |
_AC_INIT_LITERAL([$2]) |
|
|
247 |
_AC_INIT_LITERAL([$3]) |
248 |
_AC_INIT_LITERAL([$5]) |
245 |
# TARNAME is even more constrained: it should not contain any shell |
249 |
# TARNAME is even more constrained: it should not contain any shell |
246 |
# metacharacters or whitespace, because it is used to construct |
250 |
# metacharacters or whitespace, because it is used to construct |
247 |
# filenames. |
251 |
# filenames. |
248 |
AS_LITERAL_WORD_IF(m4_defn([_ac_init_TARNAME]), [], |
252 |
AS_LITERAL_WORD_IF([$4], [], |
249 |
[m4_warn([syntax], |
253 |
[m4_warn([syntax], |
250 |
[AC_INIT: unsafe as a filename: "]m4_defn([_ac_init_TARNAME])["])]) |
254 |
[AC_INIT: unsafe as a filename: "$4"])]) |
251 |
# |
255 |
# |
252 |
# These do not use m4_copy because we don't want to copy the pushdef stack. |
256 |
m4_define_default([AC_PACKAGE_NAME], [$1]) |
253 |
m4_ifndef([AC_PACKAGE_NAME], |
257 |
m4_define_default([AC_PACKAGE_VERSION], [$2]) |
254 |
[m4_define([AC_PACKAGE_NAME], |
258 |
# The m4_strip makes AC_PACKAGE_STRING be [], not [ ], when |
255 |
m4_defn([_ac_init_NAME]))]) |
259 |
# both $1 and $2 are empty. |
256 |
m4_ifndef([AC_PACKAGE_VERSION], |
260 |
m4_define_default([AC_PACKAGE_STRING], m4_strip([$1 $2])) |
257 |
[m4_define([AC_PACKAGE_VERSION], |
261 |
m4_define_default([AC_PACKAGE_BUGREPORT], [$3]) |
258 |
m4_defn([_ac_init_VERSION]))]) |
262 |
# |
259 |
m4_ifndef([AC_PACKAGE_STRING], |
263 |
# N.B. m4_ifnblank strips one layer of quotation from whichever of its |
260 |
[m4_define([AC_PACKAGE_STRING], |
264 |
# second and third argument it evaluates to. |
261 |
m4_defn([_ac_init_NAME])[ ]m4_defn([_ac_init_VERSION]))]) |
265 |
m4_define_default([AC_PACKAGE_TARNAME], |
262 |
m4_ifndef([AC_PACKAGE_BUGREPORT], |
266 |
m4_ifnblank([$4], [[$4]], |
263 |
[m4_define([AC_PACKAGE_BUGREPORT], _ac_init_BUGREPORT)]) |
267 |
[m4_quote(m4_bpatsubst(m4_tolower(m4_bpatsubst([$1], [^GNU ], [])), |
264 |
m4_ifndef([AC_PACKAGE_TARNAME], |
268 |
[[^_abcdefghijklmnopqrstuvwxyz0123456789]], [-]))])) |
265 |
[m4_define([AC_PACKAGE_TARNAME], |
269 |
m4_define_default([AC_PACKAGE_URL], |
266 |
m4_default(m4_defn([_ac_init_TARNAME]), |
270 |
m4_ifnblank([$5], [[$5]], |
267 |
[m4_bpatsubst(m4_tolower( |
271 |
[m4_if(m4_index([$1], [GNU ]), [0], |
268 |
m4_bpatsubst(m4_defn([_ac_init_NAME]), |
272 |
[[https://www.gnu.org/software/]m4_defn([AC_PACKAGE_TARNAME])[/]], |
269 |
[GNU ])), |
273 |
[])])) |
270 |
[[^_abcdefghijklmnopqrstuvwxyz0123456789]], |
|
|
271 |
[-])]))]) |
272 |
m4_ifndef([AC_PACKAGE_URL], |
273 |
[m4_define([AC_PACKAGE_URL], |
274 |
m4_default(m4_defn([_ac_init_URL]), |
275 |
[m4_if(m4_index(m4_defn([_ac_init_NAME]), |
276 |
[GNU ]), [0], |
277 |
[[https://www.gnu.org/software/]m4_defn([AC_PACKAGE_TARNAME])[/]])]))]) |
278 |
m4_popdef([_ac_init_NAME]) |
279 |
m4_popdef([_ac_init_VERSION]) |
280 |
m4_popdef([_ac_init_BUGREPORT]) |
281 |
m4_popdef([_ac_init_TARNAME]) |
282 |
m4_popdef([_ac_init_URL]) |
283 |
]) |
274 |
]) |
284 |
|
275 |
|
285 |
|
276 |
|
Lines 363-375
m4_define([_AC_INIT_NOTICE],
Link Here
|
363 |
[m4_divert_text([HEADER-COMMENT], |
354 |
[m4_divert_text([HEADER-COMMENT], |
364 |
[@%:@ Guess values for system-dependent variables and create Makefiles. |
355 |
[@%:@ Guess values for system-dependent variables and create Makefiles. |
365 |
@%:@ Generated by m4_PACKAGE_STRING[]dnl |
356 |
@%:@ Generated by m4_PACKAGE_STRING[]dnl |
366 |
m4_ifset([AC_PACKAGE_STRING], [ for AC_PACKAGE_STRING]).]) |
357 |
m4_ifset([AC_PACKAGE_STRING], [ for m4_defn([AC_PACKAGE_STRING]). |
367 |
|
358 |
])dnl |
368 |
m4_ifset([AC_PACKAGE_BUGREPORT], |
359 |
m4_ifset([AC_PACKAGE_BUGREPORT], |
369 |
[m4_divert_text([HEADER-COMMENT], |
360 |
[m4_divert_text([HEADER-COMMENT], |
370 |
[@%:@ |
361 |
[@%:@ |
371 |
@%:@ Report bugs to <AC_PACKAGE_BUGREPORT>.])]) |
362 |
@%:@ Report bugs to: m4_defn([AC_PACKAGE_BUGREPORT])])]) |
372 |
]) |
363 |
])]) |
373 |
|
364 |
|
374 |
|
365 |
|
375 |
# _AC_INIT_COPYRIGHT |
366 |
# _AC_INIT_COPYRIGHT |
Lines 436-453
AC_SUBST([SHELL])dnl
Link Here
|
436 |
AC_SUBST([PATH_SEPARATOR])dnl |
427 |
AC_SUBST([PATH_SEPARATOR])dnl |
437 |
|
428 |
|
438 |
# Identity of this package. |
429 |
# Identity of this package. |
439 |
AC_SUBST([PACKAGE_NAME], |
430 |
AC_SUBST([PACKAGE_NAME], ['m4_defn([AC_PACKAGE_NAME])'])dnl |
440 |
[m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])dnl |
431 |
AC_SUBST([PACKAGE_TARNAME], ['m4_defn([AC_PACKAGE_TARNAME])'])dnl |
441 |
AC_SUBST([PACKAGE_TARNAME], |
432 |
AC_SUBST([PACKAGE_VERSION], ['m4_defn([AC_PACKAGE_VERSION])'])dnl |
442 |
[m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])dnl |
433 |
AC_SUBST([PACKAGE_STRING], ['m4_defn([AC_PACKAGE_STRING])'])dnl |
443 |
AC_SUBST([PACKAGE_VERSION], |
434 |
AC_SUBST([PACKAGE_BUGREPORT], ['m4_defn([AC_PACKAGE_BUGREPORT])'])dnl |
444 |
[m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])dnl |
435 |
AC_SUBST([PACKAGE_URL], ['m4_defn([AC_PACKAGE_URL])'])dnl |
445 |
AC_SUBST([PACKAGE_STRING], |
|
|
446 |
[m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])dnl |
447 |
AC_SUBST([PACKAGE_BUGREPORT], |
448 |
[m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])dnl |
449 |
AC_SUBST([PACKAGE_URL], |
450 |
[m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])])dnl |
451 |
|
436 |
|
452 |
m4_divert_pop([DEFAULTS])dnl |
437 |
m4_divert_pop([DEFAULTS])dnl |
453 |
m4_wrap_lifo([m4_divert_text([DEFAULTS], |
438 |
m4_wrap_lifo([m4_divert_text([DEFAULTS], |
Lines 1048-1056
if test "$ac_init_help" = "long"; then
Link Here
|
1048 |
# Omit some internal or obsolete options to make the list less imposing. |
1033 |
# Omit some internal or obsolete options to make the list less imposing. |
1049 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1034 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1050 |
cat <<_ACEOF |
1035 |
cat <<_ACEOF |
1051 |
\`configure' configures m4_ifset([AC_PACKAGE_STRING], |
1036 |
\`configure' configures m4_default_nblank(m4_defn([AC_PACKAGE_STRING]), |
1052 |
[AC_PACKAGE_STRING], |
1037 |
[this package])dnl |
1053 |
[this package]) to adapt to many kinds of systems. |
1038 |
to adapt to many kinds of systems. |
1054 |
|
1039 |
|
1055 |
Usage: $[0] [[OPTION]]... [[VAR=VALUE]]... |
1040 |
Usage: $[0] [[OPTION]]... [[VAR=VALUE]]... |
1056 |
|
1041 |
|
Lines 1099-1107
Fine tuning of the installation directories:
Link Here
|
1099 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1084 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1100 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1085 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1101 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1086 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1102 |
]AS_HELP_STRING([--docdir=DIR], |
1087 |
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/]dnl |
1103 |
[documentation root ]@<:@DATAROOTDIR/doc/m4_ifset([AC_PACKAGE_TARNAME], |
1088 |
m4_default_quoted(m4_defn([AC_PACKAGE_TARNAME]), [PACKAGE])[@:>@ |
1104 |
[AC_PACKAGE_TARNAME], [PACKAGE])@:>@)[ |
|
|
1105 |
--htmldir=DIR html documentation [DOCDIR] |
1089 |
--htmldir=DIR html documentation [DOCDIR] |
1106 |
--dvidir=DIR dvi documentation [DOCDIR] |
1090 |
--dvidir=DIR dvi documentation [DOCDIR] |
1107 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1091 |
--pdfdir=DIR pdf documentation [DOCDIR] |
Lines 1139-1156
fi
Link Here
|
1139 |
if test -n "$ac_init_help"; then |
1123 |
if test -n "$ac_init_help"; then |
1140 |
m4_ifset([AC_PACKAGE_STRING], |
1124 |
m4_ifset([AC_PACKAGE_STRING], |
1141 |
[ case $ac_init_help in |
1125 |
[ case $ac_init_help in |
1142 |
short | recursive ) echo "Configuration of AC_PACKAGE_STRING:";; |
1126 |
short | recursive ) |
|
|
1127 |
AS_ECHO(["Configuration of m4_defn([AC_PACKAGE_STRING]):"]);; |
1143 |
esac]) |
1128 |
esac]) |
1144 |
cat <<\_ACEOF |
1129 |
cat <<\_ACEOF |
1145 |
m4_divert_pop([HELP_ENABLE])dnl |
1130 |
m4_divert_pop([HELP_ENABLE])dnl |
1146 |
m4_divert_push([HELP_END])dnl |
1131 |
m4_divert_push([HELP_END])dnl |
1147 |
|
1132 |
|
1148 |
Report bugs to m4_ifset([AC_PACKAGE_BUGREPORT], [<AC_PACKAGE_BUGREPORT>], |
1133 |
m4_ifset([AC_PACKAGE_BUGREPORT], |
1149 |
[the package provider]).dnl |
1134 |
[Report bugs to: m4_defn([AC_PACKAGE_BUGREPORT]) |
1150 |
m4_ifdef([AC_PACKAGE_NAME], [m4_ifset([AC_PACKAGE_URL], [ |
1135 |
])dnl |
1151 |
AC_PACKAGE_NAME home page: <AC_PACKAGE_URL>.])dnl |
1136 |
m4_ifset([AC_PACKAGE_NAME], [m4_ifset([AC_PACKAGE_URL], |
1152 |
m4_if(m4_index(m4_defn([AC_PACKAGE_NAME]), [GNU ]), [0], [ |
1137 |
[m4_defn([AC_PACKAGE_NAME]) home page: m4_defn([AC_PACKAGE_URL]) |
1153 |
General help using GNU software: <https://www.gnu.org/gethelp/>.])]) |
1138 |
])])dnl |
|
|
1139 |
m4_if(m4_index(m4_defn([AC_PACKAGE_NAME]), [GNU ]), [0], |
1140 |
[General help using GNU software: <https://www.gnu.org/gethelp/>. |
1141 |
])dnl |
1154 |
_ACEOF |
1142 |
_ACEOF |
1155 |
ac_status=$? |
1143 |
ac_status=$? |
1156 |
fi |
1144 |
fi |
Lines 1189-1197
m4_define([_AC_INIT_VERSION],
Link Here
|
1189 |
[m4_divert_text([VERSION_BEGIN], |
1177 |
[m4_divert_text([VERSION_BEGIN], |
1190 |
[if $ac_init_version; then |
1178 |
[if $ac_init_version; then |
1191 |
cat <<\_ACEOF |
1179 |
cat <<\_ACEOF |
1192 |
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])configure[]dnl |
1180 |
m4_ifset([AC_PACKAGE_NAME], [m4_defn([AC_PACKAGE_NAME]) ])configure[]dnl |
1193 |
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
1181 |
m4_ifset([AC_PACKAGE_VERSION], [ m4_defn([AC_PACKAGE_VERSION])]) |
1194 |
generated by m4_PACKAGE_STRING]) |
1182 |
generated by m4_defn([m4_PACKAGE_STRING])]) |
1195 |
m4_divert_text([VERSION_END], |
1183 |
m4_divert_text([VERSION_END], |
1196 |
[_ACEOF |
1184 |
[_ACEOF |
1197 |
exit |
1185 |
exit |
Lines 1230-1238
cat >config.log <<_ACEOF
Link Here
|
1230 |
This file contains any messages produced by compilers while |
1218 |
This file contains any messages produced by compilers while |
1231 |
running configure, to aid debugging if configure makes a mistake. |
1219 |
running configure, to aid debugging if configure makes a mistake. |
1232 |
|
1220 |
|
1233 |
It was created by m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])dnl |
1221 |
It was created by m4_ifset([AC_PACKAGE_NAME], [m4_defn([AC_PACKAGE_NAME]) ])dnl |
1234 |
$as_me[]m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]), which was |
1222 |
$as_me[]m4_ifset([AC_PACKAGE_VERSION], |
1235 |
generated by m4_PACKAGE_STRING. Invocation command line was |
1223 |
[ m4_defn([AC_PACKAGE_VERSION])]), which was |
|
|
1224 |
generated by m4_defn([m4_PACKAGE_STRING]). Invocation command line was |
1236 |
|
1225 |
|
1237 |
$ $[0]$ac_configure_args_raw |
1226 |
$ $[0]$ac_configure_args_raw |
1238 |
|
1227 |
|
Lines 1446-1452
m4_define([_AS_FORCE_REEXEC_WITH_CONFIG_SHELL], [yes])
Link Here
|
1446 |
AS_INIT[]dnl |
1435 |
AS_INIT[]dnl |
1447 |
AS_PREPARE[]dnl |
1436 |
AS_PREPARE[]dnl |
1448 |
m4_divert_push([KILL]) |
1437 |
m4_divert_push([KILL]) |
1449 |
m4_ifval([$2], [_AC_INIT_PACKAGE($@)]) |
1438 |
_AC_INIT_PACKAGE($@) |
1450 |
_AC_INIT_DEFAULTS |
1439 |
_AC_INIT_DEFAULTS |
1451 |
_AC_INIT_PARSE_ARGS |
1440 |
_AC_INIT_PARSE_ARGS |
1452 |
_AC_INIT_DIRCHECK |
1441 |
_AC_INIT_DIRCHECK |