~swag/armagetronad/0.2.9-sty+ct+ap-fork

1 by luke-jr
Unify tags/branches of modules released together
1
m4_define([_m4_divert(PARSE_ARGS_INIT)], 17)
2
m4_define([_m4_divert(PARSE_ARGS_FOROPTS)], 18)
3
m4_define([_m4_divert(PARSE_ARGS_MOREOPTS)], 19)
4
#m4_define([_m4_divert(PARSE_ARGS)],      20)
5
284 by z-man
Adapted to internal autoconf macro renaming from autoconf 2.59 to 2.60.
6
# old versions of autoconf define _AC_SRCPATHS, new (2.60 and later) use _AC_SRCDIRS.
7
# map the old macro to the new one.
8
m4_pattern_allow([_AC_SRCDIRS])
9
m4_ifdef([_AC_SRCDIRS],,[m4_define([_AC_SRCDIRS],[_AC_SRCPATHS([$1])])])
10
1 by luke-jr
Unify tags/branches of modules released together
11
# _AC_INIT_PARSE_ARGS
12
# -------------------
13
m4_define([_AC_INIT_PARSE_ARGS],
14
[
15
m4_divert_push([PARSE_ARGS_INIT])dnl
16
17
# Initialize some variables set by options.
18
ac_init_help=
19
ac_init_version=false
20
# The variables have the same names as the options, with
21
# dashes changed to underlines.
22
cache_file=/dev/null
23
AC_SUBST(exec_prefix, NONE)dnl
24
no_create=
25
no_recursion=
26
AC_SUBST(prefix, NONE)dnl
27
program_prefix=NONE
28
program_suffix=NONE
29
AC_SUBST(program_transform_name, [s,x,x,])dnl
30
silent=
31
site=
32
srcdir=
33
verbose=
34
x_includes=NONE
35
x_libraries=NONE
36
37
# Installation directory options.
38
# These are left unexpanded so users can "make install exec_prefix=/foo"
39
# and all the variables that are supposed to be based on exec_prefix
40
# by default will actually change.
41
# Use braces instead of parens because sh, perl, etc. also accept them.
42
AC_SUBST([bindir],         ['${exec_prefix}/bin'])dnl
43
AC_SUBST([sbindir],        ['${exec_prefix}/sbin'])dnl
44
AC_SUBST([libexecdir],     ['${exec_prefix}/libexec'])dnl
45
AC_SUBST([datadir],        ['${prefix}/share'])dnl
46
AC_SUBST([sysconfdir],     ['${prefix}/etc'])dnl
47
AC_SUBST([sharedstatedir], ['${prefix}/com'])dnl
48
AC_SUBST([localstatedir],  ['${prefix}/var'])dnl
49
AC_SUBST([libdir],         ['${exec_prefix}/lib'])dnl
50
AC_SUBST([includedir],     ['${prefix}/include'])dnl
51
dnl AC_SUBST([oldincludedir],  ['/usr/include'])dnl
52
dnl AC_SUBST([infodir],        ['${prefix}/info'])dnl
53
dnl AC_SUBST([mandir],         ['${prefix}/man'])dnl
54
m4_divert_pop([PARSE_ARGS_INIT])dnl
55
m4_divert_push([PARSE_ARGS_FOROPTS])dnl
56
57
ac_prev=
58
for ac_option
59
do
60
  # If the previous option needs an argument, assign it.
61
  if test -n "$ac_prev"; then
62
    eval "$ac_prev=\$ac_option"
63
    ac_prev=
64
    continue
65
  fi
66
67
  ac_optarg=`expr "x$ac_option" : 'x[[^=]]*=\(.*\)'`
68
69
  # Accept the important Cygnus configure options, so we can diagnose typos.
70
71
  case $ac_option in
72
73
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
74
    ac_prev=bindir ;;
75
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
76
    bindir=$ac_optarg ;;
77
78
  -build | --build | --buil | --bui | --bu)
79
    ac_prev=build_alias ;;
80
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
81
    build_alias=$ac_optarg ;;
82
83
  -cache-file | --cache-file | --cache-fil | --cache-fi \
84
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
85
    ac_prev=cache_file ;;
86
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
87
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
88
    cache_file=$ac_optarg ;;
89
90
  --config-cache | -C)
91
    cache_file=config.cache ;;
92
93
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94
    ac_prev=datadir ;;
95
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96
  | --da=*)
97
    datadir=$ac_optarg ;;
98
99
  -disable-* | --disable-*)
100
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
101
    # Reject names that are not valid shell variable names.
102
    expr "x$ac_feature" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
103
      AC_MSG_ERROR([invalid feature name: $ac_feature])
104
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
105
    eval "enable_$ac_feature=no" ;;
106
107
  -enable-* | --enable-*)
108
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([[^=]]*\)'`
109
    # Reject names that are not valid shell variable names.
110
    expr "x$ac_feature" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
111
      AC_MSG_ERROR([invalid feature name: $ac_feature])
112
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
113
    case $ac_option in
114
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
115
      *) ac_optarg=yes ;;
116
    esac
117
    eval "enable_$ac_feature='$ac_optarg'" ;;
118
119
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
120
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
121
  | --exec | --exe | --ex)
122
    ac_prev=exec_prefix ;;
123
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
124
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
125
  | --exec=* | --exe=* | --ex=*)
126
    exec_prefix=$ac_optarg ;;
127
128
  -gas | --gas | --ga | --g)
129
    # Obsolete; use --with-gas.
130
    with_gas=yes ;;
131
132
  -help | --help | --hel | --he | -h)
133
    ac_init_help=long ;;
134
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
135
    ac_init_help=recursive ;;
136
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
137
    ac_init_help=short ;;
138
139
  -host | --host | --hos | --ho)
140
    ac_prev=host_alias ;;
141
  -host=* | --host=* | --hos=* | --ho=*)
142
    host_alias=$ac_optarg ;;
143
144
  -includedir | --includedir | --includedi | --included | --include \
145
  | --includ | --inclu | --incl | --inc)
146
    ac_prev=includedir ;;
147
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
148
  | --includ=* | --inclu=* | --incl=* | --inc=*)
149
    includedir=$ac_optarg ;;
150
151
  -infodir | --infodir | --infodi | --infod | --info | --inf)
152
    ac_prev=infodir ;;
153
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
154
    infodir=$ac_optarg ;;
155
156
  -libdir | --libdir | --libdi | --libd)
157
    ac_prev=libdir ;;
158
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
159
    libdir=$ac_optarg ;;
160
161
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
162
  | --libexe | --libex | --libe)
163
    ac_prev=libexecdir ;;
164
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
165
  | --libexe=* | --libex=* | --libe=*)
166
    libexecdir=$ac_optarg ;;
167
168
  -localstatedir | --localstatedir | --localstatedi | --localstated \
169
  | --localstate | --localstat | --localsta | --localst \
170
  | --locals | --local | --loca | --loc | --lo)
171
    ac_prev=localstatedir ;;
172
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
173
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
174
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
175
    localstatedir=$ac_optarg ;;
176
177
dnl   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
178
dnl     ac_prev=mandir ;;
179
dnl   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
180
dnl     mandir=$ac_optarg ;;
181
182
  -nfp | --nfp | --nf)
183
    # Obsolete; use --without-fp.
184
    with_fp=no ;;
185
186
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
187
  | --no-cr | --no-c | -n)
188
    no_create=yes ;;
189
190
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
191
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
192
    no_recursion=yes ;;
193
194
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
195
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
196
  | --oldin | --oldi | --old | --ol | --o)
197
    ac_prev=oldincludedir ;;
198
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
199
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
200
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
201
    oldincludedir=$ac_optarg ;;
202
203
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
204
    ac_prev=prefix ;;
205
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
206
    prefix=$ac_optarg ;;
207
208
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
209
  | --program-pre | --program-pr | --program-p)
210
    ac_prev=program_prefix ;;
211
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
212
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
213
    program_prefix=$ac_optarg ;;
214
215
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
216
  | --program-suf | --program-su | --program-s)
217
    ac_prev=program_suffix ;;
218
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
219
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
220
    program_suffix=$ac_optarg ;;
221
222
  -program-transform-name | --program-transform-name \
223
  | --program-transform-nam | --program-transform-na \
224
  | --program-transform-n | --program-transform- \
225
  | --program-transform | --program-transfor \
226
  | --program-transfo | --program-transf \
227
  | --program-trans | --program-tran \
228
  | --progr-tra | --program-tr | --program-t)
229
    ac_prev=program_transform_name ;;
230
  -program-transform-name=* | --program-transform-name=* \
231
  | --program-transform-nam=* | --program-transform-na=* \
232
  | --program-transform-n=* | --program-transform-=* \
233
  | --program-transform=* | --program-transfor=* \
234
  | --program-transfo=* | --program-transf=* \
235
  | --program-trans=* | --program-tran=* \
236
  | --progr-tra=* | --program-tr=* | --program-t=*)
237
    program_transform_name=$ac_optarg ;;
238
239
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
240
  | -silent | --silent | --silen | --sile | --sil)
241
    silent=yes ;;
242
243
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
244
    ac_prev=sbindir ;;
245
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
246
  | --sbi=* | --sb=*)
247
    sbindir=$ac_optarg ;;
248
249
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
250
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
251
  | --sharedst | --shareds | --shared | --share | --shar \
252
  | --sha | --sh)
253
    ac_prev=sharedstatedir ;;
254
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
255
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
256
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
257
  | --sha=* | --sh=*)
258
    sharedstatedir=$ac_optarg ;;
259
260
  -site | --site | --sit)
261
    ac_prev=site ;;
262
  -site=* | --site=* | --sit=*)
263
    site=$ac_optarg ;;
264
265
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
266
    ac_prev=srcdir ;;
267
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
268
    srcdir=$ac_optarg ;;
269
270
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
271
  | --syscon | --sysco | --sysc | --sys | --sy)
272
    ac_prev=sysconfdir ;;
273
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
274
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
275
    sysconfdir=$ac_optarg ;;
276
277
  -target | --target | --targe | --targ | --tar | --ta | --t)
278
    ac_prev=target_alias ;;
279
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
280
    target_alias=$ac_optarg ;;
281
282
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
283
    verbose=yes ;;
284
285
  -version | --version | --versio | --versi | --vers | -V)
286
    ac_init_version=: ;;
287
288
  -with-* | --with-*)
289
    ac_package=`expr "x$ac_option" : 'x-*with-\([[^=]]*\)'`
290
    # Reject names that are not valid shell variable names.
291
    expr "x$ac_package" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
292
      AC_MSG_ERROR([invalid package name: $ac_package])
293
    ac_package=`echo $ac_package| sed 's/-/_/g'`
294
    case $ac_option in
295
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
296
      *) ac_optarg=yes ;;
297
    esac
298
    eval "with_$ac_package='$ac_optarg'" ;;
299
300
  -without-* | --without-*)
301
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
302
    # Reject names that are not valid shell variable names.
303
    expr "x$ac_package" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
304
      AC_MSG_ERROR([invalid package name: $ac_package])
305
    ac_package=`echo $ac_package | sed 's/-/_/g'`
306
    eval "with_$ac_package=no" ;;
307
308
  --x)
309
    # Obsolete; use --with-x.
310
    with_x=yes ;;
311
312
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
313
  | --x-incl | --x-inc | --x-in | --x-i)
314
    ac_prev=x_includes ;;
315
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
316
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
317
    x_includes=$ac_optarg ;;
318
319
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
320
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
321
    ac_prev=x_libraries ;;
322
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
323
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
324
    x_libraries=$ac_optarg ;;
325
326
m4_divert_pop([PARSE_ARGS_FOROPTS])dnl
327
m4_divert_push([PARSE_ARGS_MOREOPTS])dnl
328
  -*)
329
# ljr: TODO: should check if we've defined this path as valid...
330
    ac_destvar=`expr "x$ac_option" : 'x-*\([[^=]]*\)'`
331
    # Reject names that are not valid shell variable names.
332
    expr "x$ac_destvar" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
333
      AC_MSG_ERROR([invalid variable name: $ac_destvar])
334
    case $ac_option in
335
      *=*) eval "${ac_destvar}='\$ac_optarg'" ;;
336
      *) ac_prev=${ac_destvar} ;;
337
    esac
338
    ;;
339
340
341
  -*) AC_MSG_ERROR([unrecognized option: $ac_option
342
Try `$[0] --help' for more information.])
343
    ;;
344
345
  *=*)
346
    ac_envvar=`expr "x$ac_option" : 'x\([[^=]]*\)='`
347
    # Reject names that are not valid shell variable names.
348
    expr "x$ac_envvar" : "[.*[^_$as_cr_alnum]]" >/dev/null &&
349
      AC_MSG_ERROR([invalid variable name: $ac_envvar])
350
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
351
    eval "$ac_envvar='$ac_optarg'"
352
    export $ac_envvar ;;
353
354
  *)
355
    # FIXME: should be removed in autoconf 3.0.
356
    AC_MSG_WARN([you should use --build, --host, --target])
357
    expr "x$ac_option" : "[.*[^-._$as_cr_alnum]]" >/dev/null &&
358
      AC_MSG_WARN([invalid host type: $ac_option])
359
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
360
    ;;
361
362
  esac
363
done
364
365
if test -n "$ac_prev"; then
366
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
367
  AC_MSG_ERROR([missing argument to $ac_option])
368
fi
369
370
# Be sure to have absolute paths.
371
for ac_var in exec_prefix prefix
372
do
373
  eval ac_val=$`echo $ac_var`
374
  case $ac_val in
375
    [[\\/$]]* | ?:[[\\/]]* | NONE | '' ) ;;
376
    *)  AC_MSG_ERROR([expected an absolute directory name for --$ac_var: $ac_val]);;
377
  esac
378
done
379
380
# Be sure to have absolute paths.
381
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
382
	      localstatedir libdir includedir \
383
dnl oldincludedir infodir mandir \
384
m4_divert_pop([PARSE_ARGS_MOREOPTS])dnl
385
m4_divert_push([PARSE_ARGS])dnl
386
387
do
388
  eval ac_val=$`echo $ac_var`
389
  case $ac_val in
390
    [[\\/$]]* | ?:[[\\/]]* ) ;;
391
    *)  AC_MSG_ERROR([expected an absolute directory name for --$ac_var: $ac_val]);;
392
  esac
393
done
394
395
# There might be people who depend on the old broken behavior: `$host'
396
# used to hold the argument of --host etc.
397
# FIXME: To remove some day.
398
build=$build_alias
399
host=$host_alias
400
target=$target_alias
401
402
# FIXME: To remove some day.
403
if test "x$host_alias" != x; then
404
  if test "x$build_alias" = x; then
405
    cross_compiling=maybe
406
    AC_MSG_WARN([If you wanted to set the --build type, don't use --host.
407
    If a cross compiler is detected then cross compile mode will be used.])
408
  elif test "x$build_alias" != "x$host_alias"; then
409
    cross_compiling=yes
410
  fi
411
fi
412
413
ac_tool_prefix=
414
test -n "$host_alias" && ac_tool_prefix=$host_alias-
415
416
test "$silent" = yes && exec AS_MESSAGE_FD>/dev/null
417
418
m4_divert_pop([PARSE_ARGS])dnl
419
])# _AC_INIT_PARSE_ARGS
420
421
m4_define([_m4_divert(HELP_DIR)],       99)
422
m4_define([_m4_divert(HELP_PRE)],       98)
423
424
# _AC_INIT_HELP
425
# -------------
426
# Handle the `configure --help' message.
427
m4_define([_AC_INIT_HELP],
428
[m4_divert_push([HELP_PRE])dnl
429
430
#
431
# Report the --help message.
432
#
433
if test "$ac_init_help" = "long"; then
434
  # Omit some internal or obsolete options to make the list less imposing.
435
  # This message is too long to be a string in the A/UX 3.1 sh.
436
  cat <<_ACEOF
437
\`configure' configures m4_ifset([AC_PACKAGE_STRING],
438
			[AC_PACKAGE_STRING],
439
			[this package]) to adapt to many kinds of systems.
440
441
Usage: $[0] [[OPTION]]... [[VAR=VALUE]]...
442
443
[To assign environment variables (e.g., CC, CFLAGS...), specify them as
444
VAR=VALUE.  See below for descriptions of some of the useful variables.
445
446
Defaults for the options are specified in brackets.
447
448
Configuration:
449
  -h, --help              display this help and exit
450
      --help=short        display options specific to this package
451
      --help=recursive    display the short help of all the included packages
452
  -V, --version           display version information and exit
453
  -q, --quiet, --silent   do not print \`checking...' messages
454
      --cache-file=FILE   cache test results in FILE [disabled]
455
  -C, --config-cache      alias for \`--cache-file=config.cache'
456
  -n, --no-create         do not create output files
457
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
458
459
_ACEOF]
460
m4_divert_pop([HELP_PRE])dnl
461
462
m4_divert_push([HELP_DIR])dnl
463
[
464
  cat <<_ACEOF
465
Installation directories:
466
  --prefix=PREFIX         install architecture-independent files in PREFIX
467
			  [$ac_default_prefix]
468
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
469
			  [PREFIX]
470
471
By default, \`make install' will install all the files in
472
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
473
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
474
for instance \`--prefix=\$HOME'.
475
476
For better control, use the options below.
477
478
Fine tuning of the installation directories:
479
  --bindir=DIR           user executables [EPREFIX/bin]
480
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
481
  --libexecdir=DIR       program executables [EPREFIX/libexec]
482
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
483
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
484
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
485
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
486
  --libdir=DIR           object code libraries [EPREFIX/lib]
487
  --includedir=DIR       C header files [PREFIX/include]
488
]m4_divert_pop([HELP_DIR])dnl
489
dnl AS_HELP_STRING([--bindir=DIR],[user executables [EPREFIX/bin]])
490
dnl AS_HELP_STRING([--sbindir=DIR],[system admin executables [EPREFIX/sbin]])
491
dnl AS_HELP_STRING([--libexecdir=DIR],[program executables [EPREFIX/libexec]])
492
dnl AS_HELP_STRING([--datadir=DIR],[read-only architecture-independent data [PREFIX/share]])
493
dnl AS_HELP_STRING([--sysconfdir=DIR],[read-only single-machine data [PREFIX/etc]])
494
dnl AS_HELP_STRING([--sharedstatedir=DIR],[modifiable architecture-independent data [PREFIX/com]])
495
dnl AS_HELP_STRING([--localstatedir=DIR],[modifiable single-machine data [PREFIX/var]])
496
dnl AS_HELP_STRING([--libdir=DIR],[object code libraries [EPREFIX/lib]])
497
dnl AS_HELP_STRING([--includedir=DIR],[C header files [PREFIX/include]])
498
dnl  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
499
dnl  --infodir=DIR          info documentation [PREFIX/info]
500
dnl  --mandir=DIR           man documentation [PREFIX/man]
501
502
m4_divert_push([HELP_BEGIN])dnl
503
[_ACEOF
504
505
  cat <<\_ACEOF]
506
m4_divert_pop([HELP_BEGIN])dnl
507
dnl The order of the diversions here is
508
dnl - HELP_PRE
509
dnl   General usage and configure options.  Displayed only in long --help.
510
dnl
511
dnl - HELP_DIR
512
dnl   Directory options.  Displayed only in long --help.
513
dnl
514
dnl - HELP_BEGIN
515
dnl   which may be extended by extra generic options such as with X or
516
dnl   AC_ARG_PROGRAM.  Displayed only in long --help.
517
dnl
518
dnl - HELP_CANON
519
dnl   Support for cross compilation (--build, --host and --target).
520
dnl   Display only in long --help.
521
dnl
522
dnl - HELP_ENABLE
523
dnl   which starts with the trailer of the HELP_BEGIN, HELP_CANON section,
524
dnl   then implements the header of the non generic options.
525
dnl
526
dnl - HELP_WITH
527
dnl
528
dnl - HELP_VAR
529
dnl
530
dnl - HELP_VAR_END
531
dnl
532
dnl - HELP_END
533
dnl   initialized below, in which we dump the trailer (handling of the
534
dnl   recursion for instance).
535
m4_divert_push([HELP_ENABLE])dnl
536
_ACEOF
537
fi
538
539
if test -n "$ac_init_help"; then
540
m4_ifset([AC_PACKAGE_STRING],
541
[  case $ac_init_help in
542
     short | recursive ) echo "Configuration of AC_PACKAGE_STRING:";;
543
   esac])
544
  cat <<\_ACEOF
545
m4_divert_pop([HELP_ENABLE])dnl
546
m4_divert_push([HELP_END])dnl
547
m4_ifset([AC_PACKAGE_BUGREPORT], [
548
Report bugs to <AC_PACKAGE_BUGREPORT>.])
549
_ACEOF
550
fi
551
552
if test "$ac_init_help" = "recursive"; then
553
  # If there are subdirs, report their specific --help.
554
  ac_popdir=`pwd`
555
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
556
    test -d $ac_dir || continue
284 by z-man
Adapted to internal autoconf macro renaming from autoconf 2.59 to 2.60.
557
    _AC_SRCDIRS(["$ac_dir"])
1 by luke-jr
Unify tags/branches of modules released together
558
    cd $ac_dir
559
    # Check for guested configure; otherwise get Cygnus style configure.
560
    if test -f $ac_srcdir/configure.gnu; then
561
      echo
562
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
563
    elif test -f $ac_srcdir/configure; then
564
      echo
565
      $SHELL $ac_srcdir/configure  --help=recursive
566
    elif test -f $ac_srcdir/configure.ac ||
567
	   test -f $ac_srcdir/configure.in; then
568
      echo
569
      $ac_configure --help
570
    else
571
      AC_MSG_WARN([no configuration information is in $ac_dir])
572
    fi
573
    cd $ac_popdir
574
  done
575
fi
576
577
test -n "$ac_init_help" && exit 0
578
m4_divert_pop([HELP_END])dnl
579
])# _AC_INIT_HELP
580
581
# Arguments:
582
# 1. the name of the directory configuration variable
583
# 2. the default value
584
# 3. a description of the purpose of the directory
585
# 4. human-form of the default value
586
AC_DEFUN([AC_ARG_DIR],
587
[
588
m4_divert_once([HELP_DIR], [[
589
Yet even more specific tuning of install directories:]])dnl
590
591
m4_divert_once([HELP_DIR], AS_HELP_STRING([--$1=DIR],[$3 [[$4]]]))
592
m4_divert_push(PARSE_ARGS_INIT)dnl
593
AC_SUBST([$1], ['$2'])dnl
594
m4_divert_pop(PARSE_ARGS_INIT)
595
596
m4_divert_once([PARSE_ARGS_FOROPTS], [dnl
597
  -$1 | --$1 | -with-$1 | --with-$1)
598
dnl | --datadi | --datad | --data | --dat | --da)
599
    ac_prev=$1 ;;
600
  -$1=* | --$1=* | -with-$1=* | --with-$1=*)
601
dnl | --datadi=* | --datad=* | --data=* | --dat=* \
602
dnl  | --da=*)
603
    $1=$ac_optarg ;;
604
])
605
m4_divert_once([PARSE_ARGS_MOREOPTS], [$1 \])
606
607
]
608
)