* lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
[autoconf.git] / lib / autoconf / general.m4
blob0e2c8eb496388a79f4c487ae6c4024ffd78dd9e9
1 # This file is part of Autoconf.                       -*- Autoconf -*-
2 # Parameterized macros.
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
4 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 # 02110-1301, USA.
21 # As a special exception, the Free Software Foundation gives unlimited
22 # permission to copy, distribute and modify the configure scripts that
23 # are the output of Autoconf.  You need not follow the terms of the GNU
24 # General Public License when using or distributing such scripts, even
25 # though portions of the text of Autoconf appear in them.  The GNU
26 # General Public License (GPL) does govern all other use of the material
27 # that constitutes the Autoconf program.
29 # Certain portions of the Autoconf source text are designed to be copied
30 # (in certain cases, depending on the input) into the output of
31 # Autoconf.  We call these the "data" portions.  The rest of the Autoconf
32 # source text consists of comments plus executable code that decides which
33 # of the data portions to output in any given case.  We call these
34 # comments and executable code the "non-data" portions.  Autoconf never
35 # copies any of the non-data portions into its output.
37 # This special exception to the GPL applies to versions of Autoconf
38 # released by the Free Software Foundation.  When you make and
39 # distribute a modified version of Autoconf, you may extend this special
40 # exception to the GPL to apply to your modified version as well, *unless*
41 # your modified version has the potential to copy into its output some
42 # of the text that was the non-data portion of the version that you started
43 # with.  (In other words, unless your change moves or copies text from
44 # the non-data portions to the data portions.)  If your modification has
45 # such potential, you must delete any notice of this special exception
46 # to the GPL from your modified version.
48 # Written by David MacKenzie, with help from
49 # Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor,
50 # Roland McGrath, Noah Friedman, david d zuhn, and many others.
53 ## ---------------- ##
54 ## The diversions.  ##
55 ## ---------------- ##
58 # We heavily use m4's diversions both for the initializations and for
59 # required macros (see AC_REQUIRE), because in both cases we have to
60 # issue high in `configure' something which is discovered late.
62 # KILL is only used to suppress output.
64 # The layers of `configure'.  We let m4 undivert them by itself, when
65 # it reaches the end of `configure.ac'.
67 # - BINSH
68 #   #! /bin/sh
69 # - HEADER-REVISION
70 #   Sent by AC_REVISION
71 # - HEADER-COMMENT
72 #   Purpose of the script.
73 # - HEADER-COPYRIGHT
74 #   Copyright notice(s)
75 # - M4SH-INIT
76 #   Initialization of bottom layers.
78 # - DEFAULTS
79 #   early initializations (defaults)
80 # - PARSE_ARGS
81 #   initialization code, option handling loop.
83 # - HELP_BEGIN
84 #   Handling `configure --help'.
85 # - HELP_CANON
86 #   Help msg for AC_CANONICAL_*
87 # - HELP_ENABLE
88 #   Help msg from AC_ARG_ENABLE.
89 # - HELP_WITH
90 #   Help msg from AC_ARG_WITH.
91 # - HELP_VAR
92 #   Help msg from AC_ARG_VAR.
93 # - HELP_VAR_END
94 #   A small paragraph on the use of the variables.
95 # - HELP_END
96 #   Tail of the handling of --help.
98 # - VERSION_BEGIN
99 #   Head of the handling of --version.
100 # - VERSION_FSF
101 #   FSF copyright notice for --version.
102 # - VERSION_USER
103 #   User copyright notice for --version.
104 # - VERSION_END
105 #   Tail of the handling of --version.
107 # - INIT_PREPARE
108 #   Tail of initialization code.
110 # - BODY
111 #   the tests and output code
115 # _m4_divert(DIVERSION-NAME)
116 # --------------------------
117 # Convert a diversion name into its number.  Otherwise, return
118 # DIVERSION-NAME which is supposed to be an actual diversion number.
119 # Of course it would be nicer to use m4_case here, instead of zillions
120 # of little macros, but it then takes twice longer to run `autoconf'!
122 # From M4sugar:
123 #    -1. KILL
124 # 10000. GROW
126 # From M4sh:
127 #    0. BINSH
128 #    1. HEADER-REVISION
129 #    2. HEADER-COMMENT
130 #    3. HEADER-COPYRIGHT
131 #    4. M4SH-INIT
132 # 1000. BODY
133 m4_define([_m4_divert(DEFAULTS)],        10)
134 m4_define([_m4_divert(PARSE_ARGS)],      20)
136 m4_define([_m4_divert(HELP_BEGIN)],     100)
137 m4_define([_m4_divert(HELP_CANON)],     101)
138 m4_define([_m4_divert(HELP_ENABLE)],    102)
139 m4_define([_m4_divert(HELP_WITH)],      103)
140 m4_define([_m4_divert(HELP_VAR)],       104)
141 m4_define([_m4_divert(HELP_VAR_END)],   105)
142 m4_define([_m4_divert(HELP_END)],       106)
144 m4_define([_m4_divert(VERSION_BEGIN)],  200)
145 m4_define([_m4_divert(VERSION_FSF)],    201)
146 m4_define([_m4_divert(VERSION_USER)],   202)
147 m4_define([_m4_divert(VERSION_END)],    203)
149 m4_define([_m4_divert(INIT_PREPARE)],   300)
153 # AC_DIVERT_PUSH(DIVERSION-NAME)
154 # AC_DIVERT_POP
155 # ------------------------------
156 m4_copy([m4_divert_push],[AC_DIVERT_PUSH])
157 m4_copy([m4_divert_pop], [AC_DIVERT_POP])
161 ## ------------------------------------ ##
162 ## Defining/requiring Autoconf macros.  ##
163 ## ------------------------------------ ##
166 # AC_DEFUN(NAME, EXPANSION)
167 # AC_DEFUN_ONCE(NAME, EXPANSION)
168 # AC_BEFORE(THIS-MACRO-NAME, CALLED-MACRO-NAME)
169 # AC_REQUIRE(STRING)
170 # AC_PROVIDE(MACRO-NAME)
171 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
172 # -----------------------------------------------------------
173 m4_copy([m4_defun],       [AC_DEFUN])
174 m4_copy([m4_defun_once],  [AC_DEFUN_ONCE])
175 m4_copy([m4_before],      [AC_BEFORE])
176 m4_copy([m4_require],     [AC_REQUIRE])
177 m4_copy([m4_provide],     [AC_PROVIDE])
178 m4_copy([m4_provide_if],  [AC_PROVIDE_IFELSE])
181 # AC_OBSOLETE(THIS-MACRO-NAME, [SUGGESTION])
182 # ------------------------------------------
183 m4_define([AC_OBSOLETE],
184 [AC_DIAGNOSE([obsolete], [$1 is obsolete$2])])
188 ## ----------------------------- ##
189 ## Implementing Autoconf loops.  ##
190 ## ----------------------------- ##
193 # AU::AC_FOREACH(VARIABLE, LIST, EXPRESSION)
194 # ------------------------------------------
195 AU_DEFUN([AC_FOREACH], [[m4_foreach_w($@)]])
196 AC_DEFUN([AC_FOREACH], [m4_foreach_w($@)dnl
197 AC_DIAGNOSE([obsolete], [The macro `AC_FOREACH' is obsolete.
198 You should run autoupdate.])])
202 ## ----------------------------------- ##
203 ## Helping macros to display strings.  ##
204 ## ----------------------------------- ##
207 # AU::AC_HELP_STRING(LHS, RHS, [COLUMN])
208 # --------------------------------------
209 AU_ALIAS([AC_HELP_STRING], [AS_HELP_STRING])
213 ## ---------------------------------------------- ##
214 ## Information on the package being Autoconf'ed.  ##
215 ## ---------------------------------------------- ##
218 # It is suggested that the macros in this section appear before
219 # AC_INIT in `configure.ac'.  Nevertheless, this is just stylistic,
220 # and from the implementation point of view, AC_INIT *must* be expanded
221 # beforehand: it puts data in diversions which must appear before the
222 # data provided by the macros of this section.
224 # The solution is to require AC_INIT in each of these macros.  AC_INIT
225 # has the needed magic so that it can't be expanded twice.
229 # _AC_INIT_PACKAGE(PACKAGE-NAME, VERSION, BUG-REPORT, [TARNAME])
230 # --------------------------------------------------------------
231 m4_define([_AC_INIT_PACKAGE],
232 [AS_LITERAL_IF([$1], [], [m4_warn([syntax], [AC_INIT: not a literal: $1])])
233 AS_LITERAL_IF([$2], [],  [m4_warn([syntax], [AC_INIT: not a literal: $2])])
234 AS_LITERAL_IF([$3], [],  [m4_warn([syntax], [AC_INIT: not a literal: $3])])
235 m4_ifndef([AC_PACKAGE_NAME],
236           [m4_define([AC_PACKAGE_NAME],     [$1])])
237 m4_ifndef([AC_PACKAGE_TARNAME],
238           [m4_define([AC_PACKAGE_TARNAME],
239                      m4_default([$4],
240                                 [m4_bpatsubst(m4_tolower(m4_bpatsubst([[[$1]]],
241                                                                      [GNU ])),
242                                  [[^_abcdefghijklmnopqrstuvwxyz0123456789]],
243                                  [-])]))])
244 m4_ifndef([AC_PACKAGE_VERSION],
245           [m4_define([AC_PACKAGE_VERSION],   [$2])])
246 m4_ifndef([AC_PACKAGE_STRING],
247           [m4_define([AC_PACKAGE_STRING],    [$1 $2])])
248 m4_ifndef([AC_PACKAGE_BUGREPORT],
249           [m4_define([AC_PACKAGE_BUGREPORT], [$3])])
253 # AC_COPYRIGHT(TEXT, [VERSION-DIVERSION = VERSION_USER])
254 # ------------------------------------------------------
255 # Emit TEXT, a copyright notice, in the top of `configure' and in
256 # --version output.  Macros in TEXT are evaluated once.
257 m4_define([AC_COPYRIGHT],
258 [AS_COPYRIGHT([$1])[]dnl
259 m4_divert_text(m4_default([$2], [VERSION_USER]),
261 $1])dnl
262 ])# AC_COPYRIGHT
265 # AC_REVISION(REVISION-INFO)
266 # --------------------------
267 # The second quote in the translit is just to cope with font-lock-mode
268 # which sees the opening of a string.
269 m4_define([AC_REVISION],
270 [m4_divert_text([HEADER-REVISION],
271                 [@%:@ From __file__ m4_translit([$1], [$""]).])dnl
277 ## ---------------------------------------- ##
278 ## Requirements over the Autoconf version.  ##
279 ## ---------------------------------------- ##
282 # AU::AC_PREREQ(VERSION)
283 # ----------------------
284 # Update this `AC_PREREQ' statement to require the current version of
285 # Autoconf.  But fail if ever this autoupdate is too old.
287 # Note that `m4_defn([m4_PACKAGE_VERSION])' below are expanded before
288 # calling `AU_DEFUN', i.e., it is hard coded.  Otherwise it would be
289 # quite complex for autoupdate to import the value of
290 # `m4_PACKAGE_VERSION'.  We could `AU_DEFUN' `m4_PACKAGE_VERSION', but
291 # this would replace all its occurrences with the current version of
292 # Autoconf, which is certainly not what the user intended.
293 AU_DEFUN([AC_PREREQ],
294 [m4_version_prereq([$1])[]dnl
295 [AC_PREREQ(]]m4_defn([m4_PACKAGE_VERSION])[[)]])
298 # AC_PREREQ(VERSION)
299 # ------------------
300 # Complain and exit if the Autoconf version is less than VERSION.
301 m4_copy([m4_version_prereq], [AC_PREREQ])
308 ## ---------------- ##
309 ## Initialization.  ##
310 ## ---------------- ##
313 # All the following macros are used by AC_INIT.  Ideally, they should
314 # be presented in the order in which they are output.  Please, help us
315 # sorting it, or at least, don't augment the entropy.
318 # _AC_INIT_NOTICE
319 # ---------------
320 m4_define([_AC_INIT_NOTICE],
321 [m4_divert_text([HEADER-COMMENT],
322 [@%:@ Guess values for system-dependent variables and create Makefiles.
323 @%:@ Generated by m4_PACKAGE_STRING[]dnl
324 m4_ifset([AC_PACKAGE_STRING], [ for AC_PACKAGE_STRING]).])
326 m4_ifset([AC_PACKAGE_BUGREPORT],
327          [m4_divert_text([HEADER-COMMENT],
328                          [@%:@
329 @%:@ Report bugs to <AC_PACKAGE_BUGREPORT>.])])
333 # _AC_INIT_COPYRIGHT
334 # ------------------
335 # We dump to VERSION_FSF to make sure we are inserted before the
336 # user copyrights, and after the setup of the --version handling.
337 m4_define([_AC_INIT_COPYRIGHT],
338 [AC_COPYRIGHT(
339 [Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
340 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
341 This configure script is free software; the Free Software Foundation
342 gives unlimited permission to copy, distribute and modify it.],
343               [VERSION_FSF])dnl
347 # File Descriptors
348 # ----------------
349 # Set up the file descriptors used by `configure'.
350 # File descriptor usage:
351 # 0 standard input (/dev/null)
352 # 1 file creation
353 # 2 errors and warnings
354 # AS_MESSAGE_LOG_FD compiler messages saved in config.log
355 # AS_MESSAGE_FD checking for... messages and results
356 # AS_ORIGINAL_STDIN_FD original standard input (still open)
358 # stdin is /dev/null because checks that run programs may
359 # inadvertently run interactive ones, which would stop configuration
360 # until someone typed an EOF.
361 m4_define([AS_MESSAGE_FD], 6)
362 m4_define([AS_ORIGINAL_STDIN_FD], 7)
363 # That's how they used to be named.
364 AU_ALIAS([AC_FD_CC],  [AS_MESSAGE_LOG_FD])
365 AU_ALIAS([AC_FD_MSG], [AS_MESSAGE_FD])
368 # _AC_INIT_DEFAULTS
369 # -----------------
370 # Values which defaults can be set from `configure.ac'.
371 # `/bin/machine' is used in `glibcbug'.  The others are used in config.*
372 m4_define([_AC_INIT_DEFAULTS],
373 [m4_divert_push([DEFAULTS])dnl
375 exec AS_ORIGINAL_STDIN_FD<&0 </dev/null AS_MESSAGE_FD>&1
377 # Name of the host.
378 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
379 # so uname gets run too.
380 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
383 # Initializations.
385 ac_default_prefix=/usr/local
386 ac_clean_files=
387 ac_config_libobj_dir=.
388 LIB@&t@OBJS=
389 cross_compiling=no
390 subdirs=
391 MFLAGS=
392 MAKEFLAGS=
393 AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])dnl
394 AC_SUBST([PATH_SEPARATOR])dnl
396 # Identity of this package.
397 AC_SUBST([PACKAGE_NAME],
398          [m4_ifdef([AC_PACKAGE_NAME],      ['AC_PACKAGE_NAME'])])dnl
399 AC_SUBST([PACKAGE_TARNAME],
400          [m4_ifdef([AC_PACKAGE_TARNAME],   ['AC_PACKAGE_TARNAME'])])dnl
401 AC_SUBST([PACKAGE_VERSION],
402          [m4_ifdef([AC_PACKAGE_VERSION],   ['AC_PACKAGE_VERSION'])])dnl
403 AC_SUBST([PACKAGE_STRING],
404          [m4_ifdef([AC_PACKAGE_STRING],    ['AC_PACKAGE_STRING'])])dnl
405 AC_SUBST([PACKAGE_BUGREPORT],
406          [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])dnl
408 m4_divert_pop([DEFAULTS])dnl
409 m4_wrap([m4_divert_text([DEFAULTS],
410 [ac_subst_vars='m4_ifdef([_AC_SUBST_VARS],  [m4_defn([_AC_SUBST_VARS])])'
411 ac_subst_files='m4_ifdef([_AC_SUBST_FILES], [m4_defn([_AC_SUBST_FILES])])'
412 ac_user_opts=':enable_option_checking:m4_ifdef([_AC_USER_OPTS], [m4_defn([_AC_USER_OPTS]):])'
413 m4_ifdef([_AC_PRECIOUS_VARS],
414   [_AC_ARG_VAR_STORE[]dnl
415    _AC_ARG_VAR_VALIDATE[]dnl
416    ac_precious_vars='m4_defn([_AC_PRECIOUS_VARS])'])
417 m4_ifdef([_AC_LIST_SUBDIRS],
418   [ac_subdirs_all='m4_defn([_AC_LIST_SUBDIRS])'])dnl
419 ])])dnl
420 ])# _AC_INIT_DEFAULTS
423 # AC_PREFIX_DEFAULT(PREFIX)
424 # -------------------------
425 AC_DEFUN([AC_PREFIX_DEFAULT],
426 [m4_divert_text([DEFAULTS], [ac_default_prefix=$1])])
429 # AC_PREFIX_PROGRAM(PROGRAM)
430 # --------------------------
431 # Guess the value for the `prefix' variable by looking for
432 # the argument program along PATH and taking its parent.
433 # Example: if the argument is `gcc' and we find /usr/local/gnu/bin/gcc,
434 # set `prefix' to /usr/local/gnu.
435 # This comes too late to find a site file based on the prefix,
436 # and it might use a cached value for the path.
437 # No big loss, I think, since most configures don't use this macro anyway.
438 AC_DEFUN([AC_PREFIX_PROGRAM],
439 [if test "x$prefix" = xNONE; then
440 dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle.
441   _AS_ECHO_N([checking for prefix by ])
442   AC_PATH_PROG(ac_prefix_program, [$1])
443   if test -n "$ac_prefix_program"; then
444     prefix=`AS_DIRNAME(["$ac_prefix_program"])`
445     prefix=`AS_DIRNAME(["$prefix"])`
446   fi
448 ])# AC_PREFIX_PROGRAM
451 # AC_CONFIG_SRCDIR([UNIQUE-FILE-IN-SOURCE-DIR])
452 # ---------------------------------------------
453 # UNIQUE-FILE-IN-SOURCE-DIR is a file name unique to this package,
454 # relative to the directory that configure is in, which we can look
455 # for to find out if srcdir is correct.
456 AC_DEFUN([AC_CONFIG_SRCDIR],
457 [m4_divert_text([DEFAULTS], [ac_unique_file="$1"])])
460 # _AC_INIT_DIRCHECK
461 # -----------------
462 # Set ac_pwd, and sanity-check it and the source and installation directories.
464 # (This macro is AC_REQUIREd by _AC_INIT_SRCDIR, so it has to be AC_DEFUNed.)
466 AC_DEFUN([_AC_INIT_DIRCHECK],
467 [m4_divert_push([PARSE_ARGS])dnl
469 ac_pwd=`pwd` && test -n "$ac_pwd" &&
470 ac_ls_di=`ls -di .` &&
471 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
472   AC_MSG_ERROR([Working directory cannot be determined])
473 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
474   AC_MSG_ERROR([pwd does not report name of working directory])
476 m4_divert_pop([PARSE_ARGS])dnl
477 ])# _AC_INIT_DIRCHECK
479 # _AC_INIT_SRCDIR
480 # ---------------
481 # Compute `srcdir' based on `$ac_unique_file'.
483 # (We have to AC_DEFUN it, since we use AC_REQUIRE.)
485 AC_DEFUN([_AC_INIT_SRCDIR],
486 [AC_REQUIRE([_AC_INIT_DIRCHECK])dnl
487 m4_divert_push([PARSE_ARGS])dnl
489 # Find the source files, if location was not specified.
490 if test -z "$srcdir"; then
491   ac_srcdir_defaulted=yes
492   # Try the directory containing this script, then the parent directory.
493   ac_confdir=`AS_DIRNAME(["$[0]"])`
494   srcdir=$ac_confdir
495   if test ! -r "$srcdir/$ac_unique_file"; then
496     srcdir=..
497   fi
498 else
499   ac_srcdir_defaulted=no
501 if test ! -r "$srcdir/$ac_unique_file"; then
502   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
503   AC_MSG_ERROR([cannot find sources ($ac_unique_file) in $srcdir])
505 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
506 ac_abs_confdir=`(
507         cd "$srcdir" && test -r "./$ac_unique_file" || AC_MSG_ERROR([$ac_msg])
508         pwd)`
509 # When building in place, set srcdir=.
510 if test "$ac_abs_confdir" = "$ac_pwd"; then
511   srcdir=.
513 # Remove unnecessary trailing slashes from srcdir.
514 # Double slashes in file names in object file debugging info
515 # mess up M-x gdb in Emacs.
516 case $srcdir in
517 */) srcdir=`expr "X$srcdir" : 'X\(.*[[^/]]\)' \| "X$srcdir" : 'X\(.*\)'`;;
518 esac
519 m4_divert_pop([PARSE_ARGS])dnl
520 ])# _AC_INIT_SRCDIR
523 # _AC_INIT_PARSE_ARGS
524 # -------------------
525 m4_define([_AC_INIT_PARSE_ARGS],
526 [m4_divert_push([PARSE_ARGS])dnl
528 # Initialize some variables set by options.
529 ac_init_help=
530 ac_init_version=false
531 ac_unrecognized_opts=
532 ac_unrecognized_sep=
533 # The variables have the same names as the options, with
534 # dashes changed to underlines.
535 cache_file=/dev/null
536 AC_SUBST(exec_prefix, NONE)dnl
537 no_create=
538 no_recursion=
539 AC_SUBST(prefix, NONE)dnl
540 program_prefix=NONE
541 program_suffix=NONE
542 AC_SUBST(program_transform_name, [s,x,x,])dnl
543 silent=
544 site=
545 srcdir=
546 verbose=
547 x_includes=NONE
548 x_libraries=NONE
550 # Installation directory options.
551 # These are left unexpanded so users can "make install exec_prefix=/foo"
552 # and all the variables that are supposed to be based on exec_prefix
553 # by default will actually change.
554 # Use braces instead of parens because sh, perl, etc. also accept them.
555 # (The list follows the same order as the GNU Coding Standards.)
556 AC_SUBST([bindir],         ['${exec_prefix}/bin'])dnl
557 AC_SUBST([sbindir],        ['${exec_prefix}/sbin'])dnl
558 AC_SUBST([libexecdir],     ['${exec_prefix}/libexec'])dnl
559 AC_SUBST([datarootdir],    ['${prefix}/share'])dnl
560 AC_SUBST([datadir],        ['${datarootdir}'])dnl
561 AC_SUBST([sysconfdir],     ['${prefix}/etc'])dnl
562 AC_SUBST([sharedstatedir], ['${prefix}/com'])dnl
563 AC_SUBST([localstatedir],  ['${prefix}/var'])dnl
564 AC_SUBST([includedir],     ['${prefix}/include'])dnl
565 AC_SUBST([oldincludedir],  ['/usr/include'])dnl
566 AC_SUBST([docdir],         [m4_ifset([AC_PACKAGE_TARNAME],
567                                      ['${datarootdir}/doc/${PACKAGE_TARNAME}'],
568                                      ['${datarootdir}/doc/${PACKAGE}'])])dnl
569 AC_SUBST([infodir],        ['${datarootdir}/info'])dnl
570 AC_SUBST([htmldir],        ['${docdir}'])dnl
571 AC_SUBST([dvidir],         ['${docdir}'])dnl
572 AC_SUBST([pdfdir],         ['${docdir}'])dnl
573 AC_SUBST([psdir],          ['${docdir}'])dnl
574 AC_SUBST([libdir],         ['${exec_prefix}/lib'])dnl
575 AC_SUBST([localedir],      ['${datarootdir}/locale'])dnl
576 AC_SUBST([mandir],         ['${datarootdir}/man'])dnl
578 ac_prev=
579 ac_dashdash=
580 for ac_option
582   # If the previous option needs an argument, assign it.
583   if test -n "$ac_prev"; then
584     eval $ac_prev=\$ac_option
585     ac_prev=
586     continue
587   fi
589   case $ac_option in
590   *=*)  ac_optarg=`expr "X$ac_option" : '[[^=]]*=\(.*\)'` ;;
591   *)    ac_optarg=yes ;;
592   esac
594   # Accept the important Cygnus configure options, so we can diagnose typos.
596   case $ac_dashdash$ac_option in
597   --)
598     ac_dashdash=yes ;;
600   -bindir | --bindir | --bindi | --bind | --bin | --bi)
601     ac_prev=bindir ;;
602   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
603     bindir=$ac_optarg ;;
605   -build | --build | --buil | --bui | --bu)
606     ac_prev=build_alias ;;
607   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
608     build_alias=$ac_optarg ;;
610   -cache-file | --cache-file | --cache-fil | --cache-fi \
611   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
612     ac_prev=cache_file ;;
613   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
614   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
615     cache_file=$ac_optarg ;;
617   --config-cache | -C)
618     cache_file=config.cache ;;
620   -datadir | --datadir | --datadi | --datad)
621     ac_prev=datadir ;;
622   -datadir=* | --datadir=* | --datadi=* | --datad=*)
623     datadir=$ac_optarg ;;
625   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
626   | --dataroo | --dataro | --datar)
627     ac_prev=datarootdir ;;
628   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
629   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
630     datarootdir=$ac_optarg ;;
632   _AC_INIT_PARSE_ENABLE([disable])
634   -docdir | --docdir | --docdi | --doc | --do)
635     ac_prev=docdir ;;
636   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
637     docdir=$ac_optarg ;;
639   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
640     ac_prev=dvidir ;;
641   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
642     dvidir=$ac_optarg ;;
644   _AC_INIT_PARSE_ENABLE([enable])
646   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
647   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
648   | --exec | --exe | --ex)
649     ac_prev=exec_prefix ;;
650   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
651   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
652   | --exec=* | --exe=* | --ex=*)
653     exec_prefix=$ac_optarg ;;
655   -gas | --gas | --ga | --g)
656     # Obsolete; use --with-gas.
657     with_gas=yes ;;
659   -help | --help | --hel | --he | -h)
660     ac_init_help=long ;;
661   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
662     ac_init_help=recursive ;;
663   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
664     ac_init_help=short ;;
666   -host | --host | --hos | --ho)
667     ac_prev=host_alias ;;
668   -host=* | --host=* | --hos=* | --ho=*)
669     host_alias=$ac_optarg ;;
671   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
672     ac_prev=htmldir ;;
673   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
674   | --ht=*)
675     htmldir=$ac_optarg ;;
677   -includedir | --includedir | --includedi | --included | --include \
678   | --includ | --inclu | --incl | --inc)
679     ac_prev=includedir ;;
680   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
681   | --includ=* | --inclu=* | --incl=* | --inc=*)
682     includedir=$ac_optarg ;;
684   -infodir | --infodir | --infodi | --infod | --info | --inf)
685     ac_prev=infodir ;;
686   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
687     infodir=$ac_optarg ;;
689   -libdir | --libdir | --libdi | --libd)
690     ac_prev=libdir ;;
691   -libdir=* | --libdir=* | --libdi=* | --libd=*)
692     libdir=$ac_optarg ;;
694   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
695   | --libexe | --libex | --libe)
696     ac_prev=libexecdir ;;
697   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
698   | --libexe=* | --libex=* | --libe=*)
699     libexecdir=$ac_optarg ;;
701   -localedir | --localedir | --localedi | --localed | --locale)
702     ac_prev=localedir ;;
703   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
704     localedir=$ac_optarg ;;
706   -localstatedir | --localstatedir | --localstatedi | --localstated \
707   | --localstate | --localstat | --localsta | --localst | --locals)
708     ac_prev=localstatedir ;;
709   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
710   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
711     localstatedir=$ac_optarg ;;
713   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
714     ac_prev=mandir ;;
715   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
716     mandir=$ac_optarg ;;
718   -nfp | --nfp | --nf)
719     # Obsolete; use --without-fp.
720     with_fp=no ;;
722   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
723   | --no-cr | --no-c | -n)
724     no_create=yes ;;
726   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
727   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
728     no_recursion=yes ;;
730   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
731   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
732   | --oldin | --oldi | --old | --ol | --o)
733     ac_prev=oldincludedir ;;
734   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
735   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
736   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
737     oldincludedir=$ac_optarg ;;
739   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
740     ac_prev=prefix ;;
741   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
742     prefix=$ac_optarg ;;
744   -program-prefix | --program-prefix | --program-prefi | --program-pref \
745   | --program-pre | --program-pr | --program-p)
746     ac_prev=program_prefix ;;
747   -program-prefix=* | --program-prefix=* | --program-prefi=* \
748   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
749     program_prefix=$ac_optarg ;;
751   -program-suffix | --program-suffix | --program-suffi | --program-suff \
752   | --program-suf | --program-su | --program-s)
753     ac_prev=program_suffix ;;
754   -program-suffix=* | --program-suffix=* | --program-suffi=* \
755   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
756     program_suffix=$ac_optarg ;;
758   -program-transform-name | --program-transform-name \
759   | --program-transform-nam | --program-transform-na \
760   | --program-transform-n | --program-transform- \
761   | --program-transform | --program-transfor \
762   | --program-transfo | --program-transf \
763   | --program-trans | --program-tran \
764   | --progr-tra | --program-tr | --program-t)
765     ac_prev=program_transform_name ;;
766   -program-transform-name=* | --program-transform-name=* \
767   | --program-transform-nam=* | --program-transform-na=* \
768   | --program-transform-n=* | --program-transform-=* \
769   | --program-transform=* | --program-transfor=* \
770   | --program-transfo=* | --program-transf=* \
771   | --program-trans=* | --program-tran=* \
772   | --progr-tra=* | --program-tr=* | --program-t=*)
773     program_transform_name=$ac_optarg ;;
775   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
776     ac_prev=pdfdir ;;
777   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
778     pdfdir=$ac_optarg ;;
780   -psdir | --psdir | --psdi | --psd | --ps)
781     ac_prev=psdir ;;
782   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
783     psdir=$ac_optarg ;;
785   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
786   | -silent | --silent | --silen | --sile | --sil)
787     silent=yes ;;
789   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
790     ac_prev=sbindir ;;
791   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
792   | --sbi=* | --sb=*)
793     sbindir=$ac_optarg ;;
795   -sharedstatedir | --sharedstatedir | --sharedstatedi \
796   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
797   | --sharedst | --shareds | --shared | --share | --shar \
798   | --sha | --sh)
799     ac_prev=sharedstatedir ;;
800   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
801   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
802   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
803   | --sha=* | --sh=*)
804     sharedstatedir=$ac_optarg ;;
806   -site | --site | --sit)
807     ac_prev=site ;;
808   -site=* | --site=* | --sit=*)
809     site=$ac_optarg ;;
811   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
812     ac_prev=srcdir ;;
813   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
814     srcdir=$ac_optarg ;;
816   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
817   | --syscon | --sysco | --sysc | --sys | --sy)
818     ac_prev=sysconfdir ;;
819   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
820   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
821     sysconfdir=$ac_optarg ;;
823   -target | --target | --targe | --targ | --tar | --ta | --t)
824     ac_prev=target_alias ;;
825   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
826     target_alias=$ac_optarg ;;
828   -v | -verbose | --verbose | --verbos | --verbo | --verb)
829     verbose=yes ;;
831   -version | --version | --versio | --versi | --vers | -V)
832     ac_init_version=: ;;
834   _AC_INIT_PARSE_ENABLE([with])
836   _AC_INIT_PARSE_ENABLE([without])
838   --x)
839     # Obsolete; use --with-x.
840     with_x=yes ;;
842   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
843   | --x-incl | --x-inc | --x-in | --x-i)
844     ac_prev=x_includes ;;
845   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
846   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
847     x_includes=$ac_optarg ;;
849   -x-libraries | --x-libraries | --x-librarie | --x-librari \
850   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
851     ac_prev=x_libraries ;;
852   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
853   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
854     x_libraries=$ac_optarg ;;
856   -*) AC_MSG_ERROR([unrecognized option: $ac_option
857 Try `$[0] --help' for more information.])
858     ;;
860   *=*)
861     ac_envvar=`expr "x$ac_option" : 'x\([[^=]]*\)='`
862     # Reject names that are not valid shell variable names.
863     expr "x$ac_envvar" : "[.*[^_$as_cr_alnum]]" >/dev/null &&
864       AC_MSG_ERROR([invalid variable name: $ac_envvar])
865     eval $ac_envvar=\$ac_optarg
866     export $ac_envvar ;;
868   *)
869     # FIXME: should be removed in autoconf 3.0.
870     AC_MSG_WARN([you should use --build, --host, --target])
871     expr "x$ac_option" : "[.*[^-._$as_cr_alnum]]" >/dev/null &&
872       AC_MSG_WARN([invalid host type: $ac_option])
873     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
874     ;;
876   esac
877 done
879 if test -n "$ac_prev"; then
880   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
881   AC_MSG_ERROR([missing argument to $ac_option])
884 if test -n "$ac_unrecognized_opts"; then
885   case $enable_option_checking in
886     no) ;;
887     fatal) AC_MSG_ERROR([Unrecognized options: $ac_unrecognized_opts]) ;;
888     *)     AC_MSG_WARN( [Unrecognized options: $ac_unrecognized_opts]) ;;
889   esac
892 # Be sure to have absolute directory names.
893 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
894                 datadir sysconfdir sharedstatedir localstatedir includedir \
895                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
896                 libdir localedir mandir
898   eval ac_val=\$$ac_var
899   case $ac_val in
900     [[\\/$]]* | ?:[[\\/]]* )  continue;;
901     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
902   esac
903   AC_MSG_ERROR([expected an absolute directory name for --$ac_var: $ac_val])
904 done
906 # There might be people who depend on the old broken behavior: `$host'
907 # used to hold the argument of --host etc.
908 # FIXME: To remove some day.
909 build=$build_alias
910 host=$host_alias
911 target=$target_alias
913 # FIXME: To remove some day.
914 if test "x$host_alias" != x; then
915   if test "x$build_alias" = x; then
916     cross_compiling=maybe
917     AC_MSG_WARN([If you wanted to set the --build type, don't use --host.
918     If a cross compiler is detected then cross compile mode will be used.])
919   elif test "x$build_alias" != "x$host_alias"; then
920     cross_compiling=yes
921   fi
924 ac_tool_prefix=
925 test -n "$host_alias" && ac_tool_prefix=$host_alias-
927 test "$silent" = yes && exec AS_MESSAGE_FD>/dev/null
929 m4_divert_pop([PARSE_ARGS])dnl
930 ])# _AC_INIT_PARSE_ARGS
933 # _AC_INIT_PARSE_ENABLE(OPTION-NAME)
934 # ----------------------------------
935 # A trivial front-end for _AC_INIT_PARSE_ENABLE2.
937 m4_define([_AC_INIT_PARSE_ENABLE],
938 [m4_bmatch([$1], [^with],
939            [_AC_INIT_PARSE_ENABLE2([$1], [with])],
940            [_AC_INIT_PARSE_ENABLE2([$1], [enable])])])
943 # _AC_INIT_PARSE_ENABLE2(OPTION-NAME, POSITIVE-NAME)
944 # --------------------------------------------------
945 # Handle an `--enable' or a `--with' option.
947 # OPTION-NAME is `enable', `disable', `with', or `without'.
948 # POSITIVE-NAME is the corresponding positive variant, i.e. `enable' or `with'.
950 # Positive variant of the option is recognized by the condition
951 #       OPTION-NAME == POSITIVE-NAME .
953 m4_define([_AC_INIT_PARSE_ENABLE2],
954 [-$1-* | --$1-*)
955     ac_useropt=`expr "x$ac_option" : 'x-*$1-\(m4_if([$1], [$2], [[[^=]]], [.])*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_useropt" : "[.*[^-._$as_cr_alnum]]" >/dev/null &&
958       AC_MSG_ERROR(
959         [invalid ]m4_if([$2], [with], [package], [feature])[ name: $ac_useropt])
960     ac_useropt_orig=$ac_useropt
961     ac_useropt=`AS_ECHO(["$ac_useropt"]) | sed 's/[[-.]]/_/g'`
962     case $ac_user_opts in
963       *:$2_$ac_useropt:*) ;;
964       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--$1-$ac_useropt_orig"
965          ac_unrecognized_sep=', ';;
966     esac
967     eval $2_$ac_useropt=m4_if([$1], [$2], [\$ac_optarg], [no]) ;;dnl
971 # _AC_INIT_HELP
972 # -------------
973 # Handle the `configure --help' message.
974 m4_define([_AC_INIT_HELP],
975 [m4_divert_push([HELP_BEGIN])dnl
978 # Report the --help message.
980 if test "$ac_init_help" = "long"; then
981   # Omit some internal or obsolete options to make the list less imposing.
982   # This message is too long to be a string in the A/UX 3.1 sh.
983   cat <<_ACEOF
984 \`configure' configures m4_ifset([AC_PACKAGE_STRING],
985                         [AC_PACKAGE_STRING],
986                         [this package]) to adapt to many kinds of systems.
988 Usage: $[0] [[OPTION]]... [[VAR=VALUE]]...
990 [To assign environment variables (e.g., CC, CFLAGS...), specify them as
991 VAR=VALUE.  See below for descriptions of some of the useful variables.
993 Defaults for the options are specified in brackets.
995 Configuration:
996   -h, --help              display this help and exit
997       --help=short        display options specific to this package
998       --help=recursive    display the short help of all the included packages
999   -V, --version           display version information and exit
1000   -q, --quiet, --silent   do not print \`checking...' messages
1001       --cache-file=FILE   cache test results in FILE [disabled]
1002   -C, --config-cache      alias for \`--cache-file=config.cache'
1003   -n, --no-create         do not create output files
1004       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1006 Installation directories:
1007   --prefix=PREFIX         install architecture-independent files in PREFIX
1008                           [$ac_default_prefix]
1009   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1010                           [PREFIX]
1012 By default, \`make install' will install all the files in
1013 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1014 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1015 for instance \`--prefix=\$HOME'.
1017 For better control, use the options below.
1019 Fine tuning of the installation directories:
1020   --bindir=DIR           user executables [EPREFIX/bin]
1021   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1022   --libexecdir=DIR       program executables [EPREFIX/libexec]
1023   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1024   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1025   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1026   --libdir=DIR           object code libraries [EPREFIX/lib]
1027   --includedir=DIR       C header files [PREFIX/include]
1028   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1029   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1030   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1031   --infodir=DIR          info documentation [DATAROOTDIR/info]
1032   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1033   --mandir=DIR           man documentation [DATAROOTDIR/man]
1034   --docdir=DIR           documentation root ]@<:@DATAROOTDIR/doc/m4_ifset([AC_PACKAGE_TARNAME], [AC_PACKAGE_TARNAME], [PACKAGE])@:>@[
1035   --htmldir=DIR          html documentation [DOCDIR]
1036   --dvidir=DIR           dvi documentation [DOCDIR]
1037   --pdfdir=DIR           pdf documentation [DOCDIR]
1038   --psdir=DIR            ps documentation [DOCDIR]
1039 _ACEOF
1041   cat <<\_ACEOF]
1042 m4_divert_pop([HELP_BEGIN])dnl
1043 dnl The order of the diversions here is
1044 dnl - HELP_BEGIN
1045 dnl   which may be extended by extra generic options such as with X or
1046 dnl   AC_ARG_PROGRAM.  Displayed only in long --help.
1048 dnl - HELP_CANON
1049 dnl   Support for cross compilation (--build, --host and --target).
1050 dnl   Display only in long --help.
1052 dnl - HELP_ENABLE
1053 dnl   which starts with the trailer of the HELP_BEGIN, HELP_CANON section,
1054 dnl   then implements the header of the non generic options.
1056 dnl - HELP_WITH
1058 dnl - HELP_VAR
1060 dnl - HELP_VAR_END
1062 dnl - HELP_END
1063 dnl   initialized below, in which we dump the trailer (handling of the
1064 dnl   recursion for instance).
1065 m4_divert_push([HELP_ENABLE])dnl
1066 _ACEOF
1069 if test -n "$ac_init_help"; then
1070 m4_ifset([AC_PACKAGE_STRING],
1071 [  case $ac_init_help in
1072      short | recursive ) echo "Configuration of AC_PACKAGE_STRING:";;
1073    esac])
1074   cat <<\_ACEOF
1075 m4_divert_pop([HELP_ENABLE])dnl
1076 m4_divert_push([HELP_END])dnl
1077 m4_ifset([AC_PACKAGE_BUGREPORT], [
1078 Report bugs to <AC_PACKAGE_BUGREPORT>.])
1079 _ACEOF
1080 ac_status=$?
1083 if test "$ac_init_help" = "recursive"; then
1084   # If there are subdirs, report their specific --help.
1085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086     test -d "$ac_dir" || continue
1087     _AC_SRCDIRS(["$ac_dir"])
1088     cd "$ac_dir" || { ac_status=$?; continue; }
1089     # Check for guested configure.
1090     if test -f "$ac_srcdir/configure.gnu"; then
1091       echo &&
1092       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1093     elif test -f "$ac_srcdir/configure"; then
1094       echo &&
1095       $SHELL "$ac_srcdir/configure" --help=recursive
1096     else
1097       AC_MSG_WARN([no configuration information is in $ac_dir])
1098     fi || ac_status=$?
1099     cd "$ac_pwd" || { ac_status=$?; break; }
1100   done
1103 test -n "$ac_init_help" && exit $ac_status
1104 m4_divert_pop([HELP_END])dnl
1105 ])# _AC_INIT_HELP
1108 # _AC_INIT_VERSION
1109 # ----------------
1110 # Handle the `configure --version' message.
1111 m4_define([_AC_INIT_VERSION],
1112 [m4_divert_text([VERSION_BEGIN],
1113 [if $ac_init_version; then
1114   cat <<\_ACEOF
1115 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])configure[]dnl
1116 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1117 generated by m4_PACKAGE_STRING])
1118 m4_divert_text([VERSION_END],
1119 [_ACEOF
1120   exit
1121 fi])dnl
1122 ])# _AC_INIT_VERSION
1125 # _AC_INIT_CONFIG_LOG
1126 # -------------------
1127 # Initialize the config.log file descriptor and write header to it.
1128 m4_define([_AC_INIT_CONFIG_LOG],
1129 [m4_divert_text([INIT_PREPARE],
1130 [m4_define([AS_MESSAGE_LOG_FD], 5)dnl
1131 cat >config.log <<_ACEOF
1132 This file contains any messages produced by compilers while
1133 running configure, to aid debugging if configure makes a mistake.
1135 It was created by m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])dnl
1136 $as_me[]m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]), which was
1137 generated by m4_PACKAGE_STRING.  Invocation command line was
1139   $ $[0] $[@]
1141 _ACEOF
1142 exec AS_MESSAGE_LOG_FD>>config.log
1143 AS_UNAME >&AS_MESSAGE_LOG_FD
1145 cat >&AS_MESSAGE_LOG_FD <<_ACEOF
1148 m4_text_box([Core tests.])
1150 _ACEOF
1151 ])])# _AC_INIT_CONFIG_LOG
1154 # _AC_INIT_PREPARE
1155 # ----------------
1156 # Called by AC_INIT to build the preamble of the `configure' scripts.
1157 # 1. Trap and clean up various tmp files.
1158 # 2. Set up the fd and output files
1159 # 3. Remember the options given to `configure' for `config.status --recheck'.
1160 # 4. Initiates confdefs.h
1161 # 5. Loads site and cache files
1162 m4_define([_AC_INIT_PREPARE],
1163 [m4_divert_push([INIT_PREPARE])dnl
1165 # Keep a trace of the command line.
1166 # Strip out --no-create and --no-recursion so they do not pile up.
1167 # Strip out --silent because we don't want to record it for future runs.
1168 # Also quote any args containing shell meta-characters.
1169 # Make two passes to allow for proper duplicate-argument suppression.
1170 ac_configure_args=
1171 ac_configure_args0=
1172 ac_configure_args1=
1173 ac_must_keep_next=false
1174 for ac_pass in 1 2
1176   for ac_arg
1177   do
1178     case $ac_arg in
1179     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1180     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181     | -silent | --silent | --silen | --sile | --sil)
1182       continue ;;
1183     *\'*)
1184       ac_arg=`AS_ECHO(["$ac_arg"]) | sed "s/'/'\\\\\\\\''/g"` ;;
1185     esac
1186     case $ac_pass in
1187     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1188     2)
1189       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1190 dnl If trying to remove duplicates, be sure to (i) keep the *last*
1191 dnl value (e.g. --prefix=1 --prefix=2 --prefix=1 might keep 2 only),
1192 dnl and (ii) not to strip long options (--prefix foo --prefix bar might
1193 dnl give --prefix foo bar).
1194       if test $ac_must_keep_next = true; then
1195         ac_must_keep_next=false # Got value, back to normal.
1196       else
1197         case $ac_arg in
1198 dnl Use broad patterns, as arguments that would have already made configure
1199 dnl exit don't matter.
1200           *=* | --config-cache | -C | -disable-* | --disable-* \
1201           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1202           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1203           | -with-* | --with-* | -without-* | --without-* | --x)
1204             case "$ac_configure_args0 " in
1205               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1206             esac
1207             ;;
1208           -* ) ac_must_keep_next=true ;;
1209         esac
1210       fi
1211       ac_configure_args="$ac_configure_args '$ac_arg'"
1212       ;;
1213     esac
1214   done
1215 done
1216 AS_UNSET(ac_configure_args0)
1217 AS_UNSET(ac_configure_args1)
1219 # When interrupted or exit'd, cleanup temporary files, and complete
1220 # config.log.  We remove comments because anyway the quotes in there
1221 # would cause problems or look ugly.
1222 # WARNING: Use '\'' to represent an apostrophe within the trap.
1223 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1224 trap 'exit_status=$?
1225   # Save into config.log some information that might help in debugging.
1226   {
1227     echo
1229     AS_BOX([Cache variables.])
1230     echo
1231     m4_bpatsubsts(m4_defn([_AC_CACHE_DUMP]),
1232                   [^ *\(#.*\)?
1233 ],                [],
1234                   ['], ['\\''])
1235     echo
1237     AS_BOX([Output variables.])
1238     echo
1239     for ac_var in $ac_subst_vars
1240     do
1241       eval ac_val=\$$ac_var
1242       case $ac_val in
1243       *\'\''*) ac_val=`AS_ECHO(["$ac_val"]) | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1244       esac
1245       AS_ECHO(["$ac_var='\''$ac_val'\''"])
1246     done | sort
1247     echo
1249     if test -n "$ac_subst_files"; then
1250       AS_BOX([File substitutions.])
1251       echo
1252       for ac_var in $ac_subst_files
1253       do
1254         eval ac_val=\$$ac_var
1255         case $ac_val in
1256         *\'\''*) ac_val=`AS_ECHO(["$ac_val"]) | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1257         esac
1258         AS_ECHO(["$ac_var='\''$ac_val'\''"])
1259       done | sort
1260       echo
1261     fi
1263     if test -s confdefs.h; then
1264       AS_BOX([confdefs.h.])
1265       echo
1266       cat confdefs.h
1267       echo
1268     fi
1269     test "$ac_signal" != 0 &&
1270       AS_ECHO(["$as_me: caught signal $ac_signal"])
1271     AS_ECHO(["$as_me: exit $exit_status"])
1272   } >&AS_MESSAGE_LOG_FD
1273   rm -f core *.core core.conftest.* &&
1274     rm -f -r conftest* confdefs* conf$[$]* $ac_clean_files &&
1275     exit $exit_status
1276 ' 0
1277 for ac_signal in 1 2 13 15; do
1278   trap 'ac_signal='$ac_signal'; AS_EXIT([1])' $ac_signal
1279 done
1280 ac_signal=0
1282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1283 rm -f -r conftest* confdefs.h
1284 dnl AIX cpp loses on an empty file, NextStep 3.3 (patch 3) loses on a file
1285 dnl containing less than 14 bytes (including the newline).
1286 dnl But the defines below solve this problem.
1288 # Predefined preprocessor variables.
1289 AC_DEFINE_UNQUOTED([PACKAGE_NAME], ["$PACKAGE_NAME"],
1290                    [Define to the full name of this package.])
1291 AC_DEFINE_UNQUOTED([PACKAGE_TARNAME], ["$PACKAGE_TARNAME"],
1292                    [Define to the one symbol short name of this package.])
1293 AC_DEFINE_UNQUOTED([PACKAGE_VERSION], ["$PACKAGE_VERSION"],
1294                    [Define to the version of this package.])
1295 AC_DEFINE_UNQUOTED([PACKAGE_STRING], ["$PACKAGE_STRING"],
1296                    [Define to the full name and version of this package.])
1297 AC_DEFINE_UNQUOTED([PACKAGE_BUGREPORT], ["$PACKAGE_BUGREPORT"],
1298                    [Define to the address where bug reports for this package
1299                     should be sent.])
1301 # Let the site file select an alternate cache file if it wants to.
1302 AC_SITE_LOAD
1303 AC_CACHE_LOAD
1304 m4_divert_pop([INIT_PREPARE])dnl
1305 ])# _AC_INIT_PREPARE
1308 # AU::AC_INIT([UNIQUE-FILE-IN-SOURCE-DIR])
1309 # ----------------------------------------
1310 # This macro is used only for Autoupdate.
1311 AU_DEFUN([AC_INIT],
1312 [m4_ifval([$2], [[AC_INIT($@)]],
1313           [m4_ifval([$1],
1314 [[AC_INIT]
1315 AC_CONFIG_SRCDIR([$1])], [[AC_INIT]])])[]dnl
1319 # AC_INIT([PACKAGE, VERSION, [BUG-REPORT])
1320 # ----------------------------------------
1321 # Include the user macro files, prepare the diversions, and output the
1322 # preamble of the `configure' script.
1323 # Note that the order is important: first initialize, then set the
1324 # AC_CONFIG_SRCDIR.
1325 m4_define([AC_INIT],
1326 [# Forbidden tokens and exceptions.
1327 m4_pattern_forbid([^_?A[CHUM]_])
1328 m4_pattern_forbid([_AC_])
1329 m4_pattern_forbid([^LIBOBJS$],
1330                   [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
1331 # Actually reserved by M4sh.
1332 m4_pattern_allow([^AS_FLAGS$])
1333 AS_INIT
1334 AS_PREPARE
1335 m4_ifval([$2], [_AC_INIT_PACKAGE($@)])
1336 _AC_INIT_DEFAULTS
1337 _AC_INIT_PARSE_ARGS
1338 _AC_INIT_DIRCHECK
1339 _AC_INIT_SRCDIR
1340 _AC_INIT_HELP
1341 _AC_INIT_VERSION
1342 _AC_INIT_CONFIG_LOG
1343 _AC_INIT_PREPARE
1344 _AC_INIT_NOTICE
1345 _AC_INIT_COPYRIGHT
1346 m4_ifval([$2], , [m4_ifval([$1], [AC_CONFIG_SRCDIR([$1])])])dnl
1348 dnl Substitute for predefined variables.
1349 AC_SUBST([DEFS])dnl
1350 AC_SUBST([ECHO_C])dnl
1351 AC_SUBST([ECHO_N])dnl
1352 AC_SUBST([ECHO_T])dnl
1353 AC_SUBST([LIBS])dnl
1354 _AC_ARG_VAR_PRECIOUS([build_alias])AC_SUBST([build_alias])dnl
1355 _AC_ARG_VAR_PRECIOUS([host_alias])AC_SUBST([host_alias])dnl
1356 _AC_ARG_VAR_PRECIOUS([target_alias])AC_SUBST([target_alias])dnl
1358 AC_LANG_PUSH(C)
1364 ## ------------------------------------------------------------- ##
1365 ## Selecting optional features, working with optional software.  ##
1366 ## ------------------------------------------------------------- ##
1368 # AC_PRESERVE_HELP_ORDER
1369 # ----------------------
1370 # Emit help strings in the order given, rather than grouping all --enable-FOO
1371 # and all --with-BAR.
1372 AC_DEFUN([AC_PRESERVE_HELP_ORDER],
1373 [m4_divert_once([HELP_ENABLE], [[
1374 Optional Features and Packages:
1375   --disable-option-checking  ignore unrecognized --enable/--with options
1376   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1379   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)]])
1380 m4_define([_m4_divert(HELP_ENABLE)],    _m4_divert(HELP_WITH))
1381 ])# AC_PRESERVE_HELP_ORDER
1383 # _AC_ENABLE_IF(OPTION, FEATURE, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
1384 # -------------------------------------------------------------------
1385 # Common code for AC_ARG_ENABLE and AC_ARG_WITH.
1386 # OPTION is either "enable" or "with".
1388 m4_define([_AC_ENABLE_IF],
1389 [# Check whether --$1-$2 was given.
1390 _AC_ENABLE_IF_ACTION([$1], m4_translit([$2], [-.], [__]), [$3], [$4])[]dnl
1393 m4_define([_AC_ENABLE_IF_ACTION],
1394 [m4_append_uniq([_AC_USER_OPTS], [$1_$2], [:])dnl
1395 AS_IF([test "${$1_$2+set}" = set], [$1val=$$1_$2; $3], [$4])dnl
1398 # AC_ARG_ENABLE(FEATURE, HELP-STRING, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
1399 # ------------------------------------------------------------------------
1400 AC_DEFUN([AC_ARG_ENABLE],
1401 [AC_PROVIDE_IFELSE([AC_PRESERVE_HELP_ORDER],
1403 [m4_divert_once([HELP_ENABLE], [[
1404 Optional Features:
1405   --disable-option-checking  ignore unrecognized --enable/--with options
1406   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1407   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]]])])dnl
1408 m4_divert_once([HELP_ENABLE], [$2])dnl
1409 _AC_ENABLE_IF([enable], [$1], [$3], [$4])dnl
1410 ])# AC_ARG_ENABLE
1413 AU_DEFUN([AC_ENABLE],
1414 [AC_ARG_ENABLE([$1], [  --enable-$1], [$2], [$3])])
1417 # AC_ARG_WITH(PACKAGE, HELP-STRING, ACTION-IF-TRUE, [ACTION-IF-FALSE])
1418 # --------------------------------------------------------------------
1419 AC_DEFUN([AC_ARG_WITH],
1420 [AC_PROVIDE_IFELSE([AC_PRESERVE_HELP_ORDER],
1422 [m4_divert_once([HELP_WITH], [[
1423 Optional Packages:
1424   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)]])])
1426 m4_divert_once([HELP_WITH], [$2])dnl
1427 _AC_ENABLE_IF([with], [$1], [$3], [$4])dnl
1428 ])# AC_ARG_WITH
1430 AU_DEFUN([AC_WITH],
1431 [AC_ARG_WITH([$1], [  --with-$1], [$2], [$3])])
1433 # AC_DISABLE_OPTION_CHECKING
1434 # --------------------------------------------------------------------
1435 AC_DEFUN([AC_DISABLE_OPTION_CHECKING],
1436 [m4_divert_once([DEFAULTS], [enable_option_checking=no])
1437 ])# AC_DISABLE_OPTION_CHECKING
1440 ## ----------------------------------------- ##
1441 ## Remembering variables for reconfiguring.  ##
1442 ## ----------------------------------------- ##
1445 # AC_ARG_VAR(VARNAME, DOCUMENTATION)
1446 # ----------------------------------
1447 # Register VARNAME as a precious variable, and document it in
1448 # `configure --help' (but only once).
1449 AC_DEFUN([AC_ARG_VAR],
1450 [m4_divert_once([HELP_VAR], [[
1451 Some influential environment variables:]])dnl
1452 m4_divert_once([HELP_VAR_END], [[
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.]])dnl
1455 m4_expand_once([m4_divert_text([HELP_VAR],
1456                                [AS_HELP_STRING([$1], [$2], [              ])])],
1457                [$0($1)])dnl
1458 AC_SUBST([$1])dnl
1459 _AC_ARG_VAR_PRECIOUS([$1])dnl
1460 ])# AC_ARG_VAR
1463 # _AC_ARG_VAR_PRECIOUS(VARNAME)
1464 # -----------------------------
1465 # Declare VARNAME is precious.
1466 m4_define([_AC_ARG_VAR_PRECIOUS],
1467 [m4_append_uniq([_AC_PRECIOUS_VARS], [$1], [
1468 ])dnl
1472 # _AC_ARG_VAR_STORE
1473 # -----------------
1474 # We try to diagnose when precious variables have changed.  To do this,
1475 # make two early snapshots (after the option processing to take
1476 # explicit variables into account) of those variables: one (ac_env_)
1477 # which represents the current run, and a second (ac_cv_env_) which,
1478 # at the first run, will be saved in the cache.  As an exception to
1479 # the cache mechanism, its loading will override these variables (non
1480 # `ac_cv_env_' cache value are only set when unset).
1482 # In subsequent runs, after having loaded the cache, compare
1483 # ac_cv_env_foo against ac_env_foo.  See _AC_ARG_VAR_VALIDATE.
1484 m4_define([_AC_ARG_VAR_STORE],
1485 [m4_divert_text([PARSE_ARGS],
1486 [for ac_var in $ac_precious_vars; do
1487   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488   eval ac_env_${ac_var}_value=\$${ac_var}
1489   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1491 done])dnl
1495 # _AC_ARG_VAR_VALIDATE
1496 # --------------------
1497 # The precious variables are saved twice at the beginning of
1498 # configure.  E.g., PRECIOUS is saved as `ac_env_PRECIOUS_set' and
1499 # `ac_env_PRECIOUS_value' on the one hand and `ac_cv_env_PRECIOUS_set'
1500 # and `ac_cv_env_PRECIOUS_value' on the other hand.
1502 # Now the cache has just been loaded, so `ac_cv_env_' represents the
1503 # content of the cached values, while `ac_env_' represents that of the
1504 # current values.
1506 # So we check that `ac_env_' and `ac_cv_env_' are consistent.  If
1507 # they aren't, die.
1508 m4_define([_AC_ARG_VAR_VALIDATE],
1509 [m4_divert_text([INIT_PREPARE],
1510 [# Check that the precious variables saved in the cache have kept the same
1511 # value.
1512 ac_cache_corrupted=false
1513 for ac_var in $ac_precious_vars; do
1514   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1515   eval ac_new_set=\$ac_env_${ac_var}_set
1516   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1517   eval ac_new_val=\$ac_env_${ac_var}_value
1518   case $ac_old_set,$ac_new_set in
1519     set,)
1520       AS_MESSAGE([error: `$ac_var' was set to `$ac_old_val' in the previous run], 2)
1521       ac_cache_corrupted=: ;;
1522     ,set)
1523       AS_MESSAGE([error: `$ac_var' was not set in the previous run], 2)
1524       ac_cache_corrupted=: ;;
1525     ,);;
1526     *)
1527       if test "x$ac_old_val" != "x$ac_new_val"; then
1528         AS_MESSAGE([error: `$ac_var' has changed since the previous run:], 2)
1529         AS_MESSAGE([  former value:  $ac_old_val], 2)
1530         AS_MESSAGE([  current value: $ac_new_val], 2)
1531         ac_cache_corrupted=:
1532       fi;;
1533   esac
1534   # Pass precious variables to config.status.
1535   if test "$ac_new_set" = set; then
1536     case $ac_new_val in
1537     *\'*) ac_arg=$ac_var=`AS_ECHO(["$ac_new_val"]) | sed "s/'/'\\\\\\\\''/g"` ;;
1538     *) ac_arg=$ac_var=$ac_new_val ;;
1539     esac
1540     case " $ac_configure_args " in
1541       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1542       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1543     esac
1544   fi
1545 done
1546 if $ac_cache_corrupted; then
1547   AS_MESSAGE([error: changes in the environment can compromise the build], 2)
1548   AS_ERROR([run `make distclean' and/or `rm $cache_file' and start over])
1549 fi])dnl
1550 ])# _AC_ARG_VAR_VALIDATE
1556 ## ---------------------------- ##
1557 ## Transforming program names.  ##
1558 ## ---------------------------- ##
1561 # AC_ARG_PROGRAM
1562 # --------------
1563 # This macro is expanded only once, to avoid that `foo' ends up being
1564 # installed as `ggfoo'.
1565 AC_DEFUN_ONCE([AC_ARG_PROGRAM],
1566 [dnl Document the options.
1567 m4_divert_push([HELP_BEGIN])dnl
1569 Program names:
1570   --program-prefix=PREFIX            prepend PREFIX to installed program names
1571   --program-suffix=SUFFIX            append SUFFIX to installed program names
1572   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1573 m4_divert_pop([HELP_BEGIN])dnl
1574 test "$program_prefix" != NONE &&
1575   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1576 # Use a double $ so make ignores it.
1577 test "$program_suffix" != NONE &&
1578   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1579 # Double any \ or $.
1580 # By default was `s,x,x', remove it if useless.
1581 [ac_script='s/[\\$]/&&/g;s/;s,x,x,$//']
1582 program_transform_name=`AS_ECHO(["$program_transform_name"]) | sed "$ac_script"`
1583 ])# AC_ARG_PROGRAM
1589 ## ------------------------- ##
1590 ## Finding auxiliary files.  ##
1591 ## ------------------------- ##
1594 # AC_CONFIG_AUX_DIR(DIR)
1595 # ----------------------
1596 # Find install-sh, config.sub, config.guess, and Cygnus configure
1597 # in directory DIR.  These are auxiliary files used in configuration.
1598 # DIR can be either absolute or relative to $srcdir.
1599 AC_DEFUN([AC_CONFIG_AUX_DIR],
1600 [AC_CONFIG_AUX_DIRS($1 "$srcdir"/$1)])
1603 # AC_CONFIG_AUX_DIR_DEFAULT
1604 # -------------------------
1605 # The default is `$srcdir' or `$srcdir/..' or `$srcdir/../..'.
1606 # There's no need to call this macro explicitly; just AC_REQUIRE it.
1607 AC_DEFUN([AC_CONFIG_AUX_DIR_DEFAULT],
1608 [AC_CONFIG_AUX_DIRS("$srcdir" "$srcdir/.." "$srcdir/../..")])
1611 # AC_CONFIG_AUX_DIRS(DIR ...)
1612 # ---------------------------
1613 # Internal subroutine.
1614 # Search for the configuration auxiliary files in directory list $1.
1615 # We look only for install-sh, so users of AC_PROG_INSTALL
1616 # do not automatically need to distribute the other auxiliary files.
1617 AC_DEFUN([AC_CONFIG_AUX_DIRS],
1618 [ac_aux_dir=
1619 for ac_dir in $1; do
1620   if test -f "$ac_dir/install-sh"; then
1621     ac_aux_dir=$ac_dir
1622     ac_install_sh="$ac_aux_dir/install-sh -c"
1623     break
1624   elif test -f "$ac_dir/install.sh"; then
1625     ac_aux_dir=$ac_dir
1626     ac_install_sh="$ac_aux_dir/install.sh -c"
1627     break
1628   elif test -f "$ac_dir/shtool"; then
1629     ac_aux_dir=$ac_dir
1630     ac_install_sh="$ac_aux_dir/shtool install -c"
1631     break
1632   fi
1633 done
1634 if test -z "$ac_aux_dir"; then
1635   AC_MSG_ERROR([cannot find install-sh or install.sh in $1])
1638 # These three variables are undocumented and unsupported,
1639 # and are intended to be withdrawn in a future Autoconf release.
1640 # They can cause serious problems if a builder's source tree is in a directory
1641 # whose full name contains unusual characters.
1642 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1643 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1644 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1646 AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1647 ])# AC_CONFIG_AUX_DIRS
1652 ## ------------------------ ##
1653 ## Finding aclocal macros.  ##
1654 ## ------------------------ ##
1657 # AC_CONFIG_MACRO_DIR(DIR)
1658 # ------------------------
1659 # Declare directory containing additional macros for aclocal.
1660 AC_DEFUN([AC_CONFIG_MACRO_DIR], [])
1664 ## --------------------- ##
1665 ## Requiring aux files.  ##
1666 ## --------------------- ##
1668 # AC_REQUIRE_AUX_FILE(FILE)
1669 # -------------------------
1670 # This macro does nothing, it's a hook to be read with `autoconf --trace'.
1671 # It announces FILE is required in the auxdir.
1672 m4_define([AC_REQUIRE_AUX_FILE],
1673 [AS_LITERAL_IF([$1], [],
1674                [AC_FATAL([$0: requires a literal argument])])])
1678 ## ----------------------------------- ##
1679 ## Getting the canonical system type.  ##
1680 ## ----------------------------------- ##
1682 # The inputs are:
1683 #    configure --host=HOST --target=TARGET --build=BUILD
1685 # The rules are:
1686 # 1. Build defaults to the current platform, as determined by config.guess.
1687 # 2. Host defaults to build.
1688 # 3. Target defaults to host.
1691 # _AC_CANONICAL_SPLIT(THING)
1692 # --------------------------
1693 # Generate the variables THING, THING_{alias cpu vendor os}.
1694 m4_define([_AC_CANONICAL_SPLIT],
1695 [case $ac_cv_$1 in
1696 *-*-*) ;;
1697 *) AC_MSG_ERROR([invalid value of canonical $1]);;
1698 esac
1699 AC_SUBST([$1], [$ac_cv_$1])dnl
1700 ac_save_IFS=$IFS; IFS='-'
1701 set x $ac_cv_$1
1702 shift
1703 AC_SUBST([$1_cpu], [$[1]])dnl
1704 AC_SUBST([$1_vendor], [$[2]])dnl
1705 shift; shift
1706 [# Remember, the first character of IFS is used to create $]*,
1707 # except with old shells:
1708 $1_os=$[*]
1709 IFS=$ac_save_IFS
1710 case $$1_os in *\ *) $1_os=`echo "$$1_os" | sed 's/ /-/g'`;; esac
1711 AC_SUBST([$1_os])dnl
1712 ])# _AC_CANONICAL_SPLIT
1715 # AC_CANONICAL_BUILD
1716 # ------------------
1717 AC_DEFUN([AC_CANONICAL_BUILD],
1718 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1719 AC_REQUIRE_AUX_FILE([config.sub])dnl
1720 AC_REQUIRE_AUX_FILE([config.guess])dnl
1721 m4_divert_once([HELP_CANON],
1723 System types:
1724   --build=BUILD     configure for building on BUILD [guessed]]])dnl
1725 # Make sure we can run config.sub.
1726 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1727   AC_MSG_ERROR([cannot run $SHELL $ac_aux_dir/config.sub])
1729 AC_CACHE_CHECK([build system type], [ac_cv_build],
1730 [ac_build_alias=$build_alias
1731 test "x$ac_build_alias" = x &&
1732   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1733 test "x$ac_build_alias" = x &&
1734   AC_MSG_ERROR([cannot guess build type; you must specify one])
1735 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1736   AC_MSG_ERROR([$SHELL $ac_aux_dir/config.sub $ac_build_alias failed])
1738 _AC_CANONICAL_SPLIT(build)
1739 ])# AC_CANONICAL_BUILD
1742 # AC_CANONICAL_HOST
1743 # -----------------
1744 AC_DEFUN([AC_CANONICAL_HOST],
1745 [AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1746 m4_divert_once([HELP_CANON],
1747 [[  --host=HOST       cross-compile to build programs to run on HOST [BUILD]]])dnl
1748 AC_CACHE_CHECK([host system type], [ac_cv_host],
1749 [if test "x$host_alias" = x; then
1750   ac_cv_host=$ac_cv_build
1751 else
1752   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1753     AC_MSG_ERROR([$SHELL $ac_aux_dir/config.sub $host_alias failed])
1756 _AC_CANONICAL_SPLIT([host])
1757 ])# AC_CANONICAL_HOST
1760 # AC_CANONICAL_TARGET
1761 # -------------------
1762 AC_DEFUN([AC_CANONICAL_TARGET],
1763 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1764 AC_BEFORE([$0], [AC_ARG_PROGRAM])dnl
1765 m4_divert_once([HELP_CANON],
1766 [[  --target=TARGET   configure for building compilers for TARGET [HOST]]])dnl
1767 AC_CACHE_CHECK([target system type], [ac_cv_target],
1768 [if test "x$target_alias" = x; then
1769   ac_cv_target=$ac_cv_host
1770 else
1771   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1772     AC_MSG_ERROR([$SHELL $ac_aux_dir/config.sub $target_alias failed])
1775 _AC_CANONICAL_SPLIT([target])
1777 # The aliases save the names the user supplied, while $host etc.
1778 # will get canonicalized.
1779 test -n "$target_alias" &&
1780   test "$program_prefix$program_suffix$program_transform_name" = \
1781     NONENONEs,x,x, &&
1782   program_prefix=${target_alias}-[]dnl
1783 ])# AC_CANONICAL_TARGET
1786 AU_ALIAS([AC_CANONICAL_SYSTEM], [AC_CANONICAL_TARGET])
1789 # AU::AC_VALIDATE_CACHED_SYSTEM_TUPLE([CMD])
1790 # ------------------------------------------
1791 # If the cache file is inconsistent with the current host,
1792 # target and build system types, execute CMD or print a default
1793 # error message.  Now handled via _AC_ARG_VAR_PRECIOUS.
1794 AU_DEFUN([AC_VALIDATE_CACHED_SYSTEM_TUPLE], [])
1797 ## ---------------------- ##
1798 ## Caching test results.  ##
1799 ## ---------------------- ##
1802 # AC_SITE_LOAD
1803 # ------------
1804 # Look for site or system specific initialization scripts.
1805 m4_define([AC_SITE_LOAD],
1806 [# Prefer explicitly selected file to automatically selected ones.
1807 if test -n "$CONFIG_SITE"; then
1808   set x "$CONFIG_SITE"
1809 elif test "x$prefix" != xNONE; then
1810   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1811 else
1812   set x "$ac_default_prefix/share/config.site" \
1813         "$ac_default_prefix/etc/config.site"
1815 shift
1816 for ac_site_file
1818   if test -r "$ac_site_file"; then
1819     AC_MSG_NOTICE([loading site script $ac_site_file])
1820     sed 's/^/| /' "$ac_site_file" >&AS_MESSAGE_LOG_FD
1821     . "$ac_site_file"
1822   fi
1823 done
1827 # AC_CACHE_LOAD
1828 # -------------
1829 m4_define([AC_CACHE_LOAD],
1830 [if test -r "$cache_file"; then
1831   # Some versions of bash will fail to source /dev/null (special
1832   # files actually), so we avoid doing that.
1833   if test -f "$cache_file"; then
1834     AC_MSG_NOTICE([loading cache $cache_file])
1835     case $cache_file in
1836       [[\\/]]* | ?:[[\\/]]* ) . "$cache_file";;
1837       *)                      . "./$cache_file";;
1838     esac
1839   fi
1840 else
1841   AC_MSG_NOTICE([creating cache $cache_file])
1842   >$cache_file
1844 ])# AC_CACHE_LOAD
1847 # _AC_CACHE_DUMP
1848 # --------------
1849 # Dump the cache to stdout.  It can be in a pipe (this is a requirement).
1850 m4_define([_AC_CACHE_DUMP],
1851 [# The following way of writing the cache mishandles newlines in values,
1852 # but we know of no workaround that is simple, portable, and efficient.
1853 # So, we kill variables containing newlines.
1854 # Ultrix sh set writes to stderr and can't be redirected directly,
1855 # and sets the high bit in the cache file unless we assign to the vars.
1857   for ac_var in `(set) 2>&1 | sed -n ['s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p']`; do
1858     eval ac_val=\$$ac_var
1859     case $ac_val in #(
1860     *${as_nl}*)
1861       case $ac_var in #(
1862       *_cv_*) AC_MSG_WARN([Cache variable $ac_var contains a newline.]) ;;
1863       esac
1864       case $ac_var in #(
1865       _ | IFS | as_nl) ;; #(
1866       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867       *) $as_unset $ac_var ;;
1868       esac ;;
1869     esac
1870   done
1872   (set) 2>&1 |
1873     case $as_nl`(ac_space=' '; set) 2>&1` in #(
1874     *${as_nl}ac_space=\ *)
1875       # `set' does not quote correctly, so add quotes (double-quote
1876       # substitution turns \\\\ into \\, and sed turns \\ into \).
1877       sed -n \
1878         ["s/'/'\\\\''/g;
1879           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"]
1880       ;; #(
1881     *)
1882       # `set' quotes correctly as required by POSIX, so do not add quotes.
1883       sed -n ["/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"]
1884       ;;
1885     esac |
1886     sort
1887 )dnl
1888 ])# _AC_CACHE_DUMP
1891 # AC_CACHE_SAVE
1892 # -------------
1893 # Save the cache.
1894 # Allow a site initialization script to override cache values.
1895 m4_define([AC_CACHE_SAVE],
1896 [cat >confcache <<\_ACEOF
1897 # This file is a shell script that caches the results of configure
1898 # tests run on this system so they can be shared between configure
1899 # scripts and configure runs, see configure's option --config-cache.
1900 # It is not useful on other systems.  If it contains results you don't
1901 # want to keep, you may remove or edit it.
1903 # config.status only pays attention to the cache file if you give it
1904 # the --recheck option to rerun configure.
1906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
1907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
1908 # following values.
1910 _ACEOF
1912 _AC_CACHE_DUMP() |
1913   sed ['
1914      /^ac_cv_env_/b end
1915      t clear
1916      :clear
1917      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1918      t end
1919      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1920      :end'] >>confcache
1921 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1922   if test -w "$cache_file"; then
1923     test "x$cache_file" != "x/dev/null" &&
1924       AC_MSG_NOTICE([updating cache $cache_file])
1925     cat confcache >$cache_file
1926   else
1927     AC_MSG_NOTICE([not updating unwritable cache $cache_file])
1928   fi
1930 rm -f confcache[]dnl
1931 ])# AC_CACHE_SAVE
1934 # AC_CACHE_VAL(CACHE-ID, COMMANDS-TO-SET-IT)
1935 # ------------------------------------------
1936 # The name of shell var CACHE-ID must contain `_cv_' in order to get saved.
1937 # Should be dnl'ed.  Try to catch common mistakes.
1938 m4_defun([AC_CACHE_VAL],
1939 [m4_bmatch([$2], [AC_DEFINE],
1940            [AC_DIAGNOSE([syntax],
1941 [$0($1, ...): suspicious presence of an AC_DEFINE in the second argument, ]dnl
1942 [where no actions should be taken])])dnl
1943 AS_VAR_SET_IF([$1],
1944               [_AS_ECHO_N([(cached) ])],
1945               [$2])])
1948 # AC_CACHE_CHECK(MESSAGE, CACHE-ID, COMMANDS)
1949 # -------------------------------------------
1950 # Do not call this macro with a dnl right behind.
1951 m4_defun([AC_CACHE_CHECK],
1952 [AC_MSG_CHECKING([$1])
1953 AC_CACHE_VAL([$2], [$3])dnl
1954 AS_LITERAL_IF([$2],
1955               [AC_MSG_RESULT([$$2])],
1956               [ac_res=AS_VAR_GET([$2])
1957                AC_MSG_RESULT([$ac_res])])dnl
1960 # _AC_CACHE_CHECK_INT(MESSAGE, CACHE-ID, EXPRESSION,
1961 #                     [PROLOGUE = DEFAULT-INCLUDES], [IF-FAILS])
1962 # -------------------------------------------------------------
1963 AC_DEFUN([_AC_CACHE_CHECK_INT],
1964 [AC_CACHE_CHECK([$1], [$2],
1965    [AC_COMPUTE_INT([$2], [$3], [$4], [$5])])
1966 ])# _AC_CACHE_CHECK_INT
1970 ## ---------------------- ##
1971 ## Defining CPP symbols.  ##
1972 ## ---------------------- ##
1975 # AC_DEFINE_TRACE_LITERAL(LITERAL-CPP-SYMBOL)
1976 # -------------------------------------------
1977 # Used by --trace to collect the list of AC_DEFINEd macros.
1978 m4_define([AC_DEFINE_TRACE_LITERAL],
1979 [m4_pattern_allow([^$1$])dnl
1980 m4_bmatch([$1], ^m4_defn([m4_re_word])$, [],
1981   [m4_warn([syntax], [AC_DEFINE: not an identifier: $1])])dnl
1982 ])# AC_DEFINE_TRACE_LITERAL
1985 # AC_DEFINE_TRACE(CPP-SYMBOL)
1986 # ---------------------------
1987 # This macro is a wrapper around AC_DEFINE_TRACE_LITERAL which filters
1988 # out non literal symbols.
1989 m4_define([AC_DEFINE_TRACE],
1990 [AS_LITERAL_IF([$1], [AC_DEFINE_TRACE_LITERAL(m4_bpatsubst([[$1]], [(.*)]))])])
1993 # AC_DEFINE(VARIABLE, [VALUE], [DESCRIPTION])
1994 # -------------------------------------------
1995 # Set VARIABLE to VALUE, verbatim, or 1.  Remember the value
1996 # and if VARIABLE is affected the same VALUE, do nothing, else
1997 # die.  The third argument is used by autoheader.
1998 m4_define([AC_DEFINE], [_AC_DEFINE_Q([\], $@)])
2001 # AC_DEFINE_UNQUOTED(VARIABLE, [VALUE], [DESCRIPTION])
2002 # ----------------------------------------------------
2003 # Similar, but perform shell substitutions $ ` \ once on VALUE.
2004 m4_define([AC_DEFINE_UNQUOTED], [_AC_DEFINE_Q([], $@)])
2007 # _AC_DEFINE_Q(QUOTE, VARIABLE, [VALUE], [DESCRIPTION])
2008 # -----------------------------------------------------
2009 m4_define([_AC_DEFINE_Q],
2010 [AC_DEFINE_TRACE([$2])dnl
2011 m4_ifval([$4], [AH_TEMPLATE(m4_bpatsubst([[$2]], [(.*)]), [$4])])dnl
2012 cat >>confdefs.h <<$1_ACEOF
2013 [@%:@define] $2 m4_if($#, 2, 1, [$3])
2014 _ACEOF
2019 ## -------------------------- ##
2020 ## Setting output variables.  ##
2021 ## -------------------------- ##
2024 # AC_SUBST_TRACE(VARIABLE)
2025 # ------------------------
2026 # This macro is used with --trace to collect the list of substituted variables.
2027 m4_define([AC_SUBST_TRACE])
2030 # AC_SUBST(VARIABLE, [VALUE])
2031 # ---------------------------
2032 # Create an output variable from a shell VARIABLE.  If VALUE is given
2033 # assign it to VARIABLE.  Use `""' is you want to set VARIABLE to an
2034 # empty value, not an empty second argument.
2036 m4_define([AC_SUBST],
2037 [AC_SUBST_TRACE([$1])dnl
2038 m4_pattern_allow([^$1$])dnl
2039 m4_ifvaln([$2], [$1=$2])[]dnl
2040 m4_append_uniq([_AC_SUBST_VARS], [$1], [
2041 ])dnl
2042 ])# AC_SUBST
2045 # AC_SUBST_FILE(VARIABLE)
2046 # -----------------------
2047 # Read the comments of the preceding macro.
2048 m4_define([AC_SUBST_FILE],
2049 [m4_pattern_allow([^$1$])dnl
2050 m4_append_uniq([_AC_SUBST_FILES], [$1], [
2051 ])])
2055 ## --------------------------------------- ##
2056 ## Printing messages at autoconf runtime.  ##
2057 ## --------------------------------------- ##
2059 # In fact, I think we should promote the use of m4_warn and m4_fatal
2060 # directly.  This will also avoid to some people to get it wrong
2061 # between AC_FATAL and AC_MSG_ERROR.
2064 # AC_DIAGNOSE(CATEGORY, MESSAGE)
2065 # AC_FATAL(MESSAGE, [EXIT-STATUS])
2066 # --------------------------------
2067 m4_define([AC_DIAGNOSE], [m4_warn($@)])
2068 m4_define([AC_FATAL],    [m4_fatal($@)])
2071 # AC_WARNING(MESSAGE)
2072 # -------------------
2073 # Report a MESSAGE to the user of autoconf if `-W' or `-W all' was
2074 # specified.
2075 m4_define([AC_WARNING],
2076 [AC_DIAGNOSE([syntax], [$1])])
2081 ## ---------------------------------------- ##
2082 ## Printing messages at configure runtime.  ##
2083 ## ---------------------------------------- ##
2086 # AC_MSG_CHECKING(FEATURE)
2087 # ------------------------
2088 m4_define([AC_MSG_CHECKING],
2089 [{ _AS_ECHO_LOG([checking $1])
2090 _AS_ECHO_N([checking $1... ]); }dnl
2094 # AC_MSG_RESULT(RESULT)
2095 # ---------------------
2096 m4_define([AC_MSG_RESULT],
2097 [{ _AS_ECHO_LOG([result: $1])
2098 _AS_ECHO([$1]); }dnl
2102 # AC_MSG_WARN(PROBLEM)
2103 # AC_MSG_NOTICE(STRING)
2104 # AC_MSG_ERROR(ERROR, [EXIT-STATUS = 1])
2105 # AC_MSG_FAILURE(ERROR, [EXIT-STATUS = 1])
2106 # ----------------------------------------
2107 m4_copy([AS_WARN],    [AC_MSG_WARN])
2108 m4_copy([AS_MESSAGE], [AC_MSG_NOTICE])
2109 m4_copy([AS_ERROR],   [AC_MSG_ERROR])
2110 m4_define([AC_MSG_FAILURE],
2111 [AC_MSG_ERROR([$1
2112 See `config.log' for more details.], [$2])])
2115 # _AC_MSG_LOG_CONFTEST
2116 # --------------------
2117 m4_define([_AC_MSG_LOG_CONFTEST],
2118 [AS_ECHO(["$as_me: failed program was:"]) >&AS_MESSAGE_LOG_FD
2119 sed 's/^/| /' conftest.$ac_ext >&AS_MESSAGE_LOG_FD
2123 # AU::AC_CHECKING(FEATURE)
2124 # ------------------------
2125 AU_DEFUN([AC_CHECKING],
2126 [AS_MESSAGE([checking $1...])])
2129 # AU::AC_MSG_RESULT_UNQUOTED(RESULT)
2130 # ----------------------------------
2131 # No escaping, so it performed also backtick substitution.
2132 AU_DEFUN([AC_MSG_RESULT_UNQUOTED],
2133 [_AS_ECHO_UNQUOTED([$as_me:$LINENO: result: $1], AS_MESSAGE_LOG_FD)
2134 _AS_ECHO_UNQUOTED([$1])[]dnl
2138 # AU::AC_VERBOSE(STRING)
2139 # ----------------------
2140 AU_ALIAS([AC_VERBOSE], [AC_MSG_RESULT])
2147 ## ---------------------------- ##
2148 ## Compiler-running mechanics.  ##
2149 ## ---------------------------- ##
2152 # _AC_RUN_LOG(COMMAND, LOG-COMMANDS)
2153 # ----------------------------------
2154 # Eval COMMAND, save the exit status in ac_status, and log it.
2155 AC_DEFUN([_AC_RUN_LOG],
2156 [{ ($2) >&AS_MESSAGE_LOG_FD
2157   ($1) 2>&AS_MESSAGE_LOG_FD
2158   ac_status=$?
2159   _AS_ECHO_LOG([\$? = $ac_status])
2160   (exit $ac_status); }])
2163 # _AC_RUN_LOG_STDERR(COMMAND, LOG-COMMANDS)
2164 # -----------------------------------------
2165 # Run COMMAND, save its stderr into conftest.err, save the exit status
2166 # in ac_status, and log it.  Don't forget to clean up conftest.err after
2167 # use.
2168 # Note that when tracing, most shells will leave the traces in stderr
2169 # starting with "+": that's what this macro tries to address.
2170 AC_DEFUN([_AC_RUN_LOG_STDERR],
2171 [{ ($2) >&AS_MESSAGE_LOG_FD
2172   ($1) 2>conftest.er1
2173   ac_status=$?
2174   grep -v '^ *+' conftest.er1 >conftest.err
2175   rm -f conftest.er1
2176   cat conftest.err >&AS_MESSAGE_LOG_FD
2177   _AS_ECHO_LOG([\$? = $ac_status])
2178   (exit $ac_status); }])
2180 # _AC_DO_ECHO(COMMAND)
2181 # --------------------
2182 # Echo COMMAND.  This is designed to be used just before evaluating COMMAND.
2183 AC_DEFUN([_AC_DO_ECHO],
2184 [m4_if([$1], [$ac_try], [], [ac_try="$1"
2185 ])dnl
2186 dnl If the string contains '"', '`', or '\', then just echo it rather
2187 dnl than expanding it.  This is a hack, but it is safer, while also
2188 dnl typically expanding simple substrings like '$CC', which is what we want.
2190 dnl Much of this macro body is quoted, to work around misuses like
2191 dnl `AC_CHECK_FUNC(sigblock, , AC_CHECK_LIB(bsd, sigblock))',
2192 dnl which underquotes the 3rd arg and would misbehave if we didn't quote here.
2193 dnl The "(($ac_try" instead of $ac_try avoids problems with even-worse
2194 dnl underquoting misuses, such as
2195 dnl `AC_CHECK_FUNC(foo, , AC_CHECK_LIB(a, foo, , AC_CHECK_LIB(b, foo)))'.
2196 dnl We normally wouldn't bother with this kind of workaround for invalid code
2197 dnl but this change was put in just before Autoconf 2.60 and we wanted to
2198 dnl minimize the integration hassle.
2199 [case "(($ac_try" in
2200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201   *) ac_try_echo=$ac_try;;
2202 esac
2203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""]
2204 AS_ECHO(["$ac_try_echo"])])
2206 # _AC_DO(COMMAND)
2207 # ---------------
2208 # Eval COMMAND, save the exit status in ac_status, and log it.
2209 # For internal use only.
2210 AC_DEFUN([_AC_DO],
2211 [_AC_RUN_LOG([eval "$1"],
2212              [_AC_DO_ECHO([$1])])])
2215 # _AC_DO_STDERR(COMMAND)
2216 # ----------------------
2217 # Like _AC_RUN_LOG_STDERR, but eval (instead of running) COMMAND.
2218 AC_DEFUN([_AC_DO_STDERR],
2219 [_AC_RUN_LOG_STDERR([eval "$1"],
2220                     [_AC_DO_ECHO([$1])])])
2223 # _AC_DO_VAR(VARIABLE)
2224 # --------------------
2225 # Evaluate "$VARIABLE", which should be a valid shell command.
2226 # The purpose of this macro is to write "configure:123: command line"
2227 # into config.log for every test run.
2228 AC_DEFUN([_AC_DO_VAR],
2229 [_AC_DO([$$1])])
2232 # _AC_DO_TOKENS(COMMAND)
2233 # ----------------------
2234 # Like _AC_DO_VAR, but execute COMMAND instead, where COMMAND is a series of
2235 # tokens of the shell command language.
2236 AC_DEFUN([_AC_DO_TOKENS],
2237 [{ ac_try='$1'
2238   _AC_DO([$ac_try]); }])
2241 # _AC_EVAL(COMMAND)
2242 # -----------------
2243 # Eval COMMAND, save the exit status in ac_status, and log it.
2244 # Unlike _AC_DO, this macro mishandles quoted arguments in some cases.
2245 # It is present only for backward compatibility with previous Autoconf versions.
2246 AC_DEFUN([_AC_EVAL],
2247 [_AC_RUN_LOG([eval $1],
2248              [eval echo "$as_me:$LINENO: \"$1\""])])
2251 # _AC_EVAL_STDERR(COMMAND)
2252 # ------------------------
2253 # Like _AC_RUN_LOG_STDERR, but eval (instead of running) COMMAND.
2254 # Unlike _AC_DO_STDERR, this macro mishandles quoted arguments in some cases.
2255 # It is present only for backward compatibility with previous Autoconf versions.
2256 AC_DEFUN([_AC_EVAL_STDERR],
2257 [_AC_RUN_LOG_STDERR([eval $1],
2258                     [eval echo "$as_me:$LINENO: \"$1\""])])
2261 # AC_TRY_EVAL(VARIABLE)
2262 # ---------------------
2263 # Evaluate $VARIABLE, which should be a valid shell command.
2264 # The purpose of this macro is to write "configure:123: command line"
2265 # into config.log for every test run.
2267 # The AC_TRY_EVAL and AC_TRY_COMMAND macros are dangerous and
2268 # undocumented, and should not be used.
2269 # They may be removed or their API changed in a future release.
2270 # Autoconf itself no longer uses these two macros; they are present
2271 # only for backward compatibility with previous versions of Autoconf.
2272 # Not every shell command will work due to problems with eval
2273 # and quoting, and the rules for exactly what does work are tricky.
2274 # Worse, due to double-expansion during evaluation, arbitrary unintended
2275 # shell commands could be executed in some situations.
2276 AC_DEFUN([AC_TRY_EVAL],
2277 [_AC_EVAL([$$1])])
2280 # AC_TRY_COMMAND(COMMAND)
2281 # -----------------------
2282 # Like AC_TRY_EVAL, but execute COMMAND instead, where COMMAND is a series of
2283 # tokens of the shell command language.
2284 # This macro should not be used; see the comments under AC_TRY_EVAL for why.
2285 AC_DEFUN([AC_TRY_COMMAND],
2286 [{ ac_try='$1'
2287   _AC_EVAL([$ac_try]); }])
2290 # AC_RUN_LOG(COMMAND)
2291 # -------------------
2292 AC_DEFUN([AC_RUN_LOG],
2293 [_AC_RUN_LOG([$1],
2294              [AS_ECHO(["$as_me:$LINENO: AS_ESCAPE([$1])"])])])
2299 ## ------------------------ ##
2300 ## Examining declarations.  ##
2301 ## ------------------------ ##
2305 # _AC_PREPROC_IFELSE(PROGRAM, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2306 # ----------------------------------------------------------------
2307 # Try to preprocess PROGRAM.
2309 # This macro can be used during the selection of a preprocessor.
2310 # eval is necessary to expand ac_cpp.
2311 AC_DEFUN([_AC_PREPROC_IFELSE],
2312 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl
2313 AS_IF([_AC_DO_STDERR([$ac_cpp conftest.$ac_ext]) >/dev/null && {
2314          test -z "$ac_[]_AC_LANG_ABBREV[]_preproc_warn_flag$ac_[]_AC_LANG_ABBREV[]_werror_flag" ||
2315          test ! -s conftest.err
2316        }],
2317   [$2],
2318   [_AC_MSG_LOG_CONFTEST
2319   $3])
2320 rm -f conftest.err m4_ifval([$1], [conftest.$ac_ext])[]dnl
2321 ])# _AC_PREPROC_IFELSE
2324 # AC_PREPROC_IFELSE(PROGRAM, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2325 # ---------------------------------------------------------------
2326 # Try to preprocess PROGRAM.  Requires that the preprocessor for the
2327 # current language was checked for, hence do not use this macro in macros
2328 # looking for a preprocessor.
2329 AC_DEFUN([AC_PREPROC_IFELSE],
2330 [AC_LANG_PREPROC_REQUIRE()dnl
2331 _AC_PREPROC_IFELSE($@)])
2334 # AC_TRY_CPP(INCLUDES, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2335 # ---------------------------------------------------------
2336 # AC_TRY_CPP is used to check whether particular header files exist.
2337 # (But it actually tests whether INCLUDES produces no CPP errors.)
2339 # INCLUDES are not defaulted and are double quoted.
2340 AU_DEFUN([AC_TRY_CPP],
2341 [AC_PREPROC_IFELSE([AC_LANG_SOURCE([[$1]])], [$2], [$3])])
2344 # AC_EGREP_CPP(PATTERN, PROGRAM,
2345 #              [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2346 # ------------------------------------------------------
2347 # Because this macro is used by AC_PROG_GCC_TRADITIONAL, which must
2348 # come early, it is not included in AC_BEFORE checks.
2349 AC_DEFUN([AC_EGREP_CPP],
2350 [AC_LANG_PREPROC_REQUIRE()dnl
2351 AC_REQUIRE([AC_PROG_EGREP])dnl
2352 AC_LANG_CONFTEST([AC_LANG_SOURCE([[$2]])])
2353 AS_IF([dnl eval is necessary to expand ac_cpp.
2354 dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
2355 (eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD |
2356 dnl Quote $1 to prevent m4 from eating character classes
2357   $EGREP "[$1]" >/dev/null 2>&1],
2358   [$3],
2359   [$4])dnl
2360 rm -f conftest*
2361 ])# AC_EGREP_CPP
2364 # AC_EGREP_HEADER(PATTERN, HEADER-FILE,
2365 #                 [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2366 # ---------------------------------------------------------
2367 AC_DEFUN([AC_EGREP_HEADER],
2368 [AC_EGREP_CPP([$1],
2369 [#include <$2>
2370 ], [$3], [$4])])
2375 ## ------------------ ##
2376 ## Examining syntax.  ##
2377 ## ------------------ ##
2380 # _AC_COMPILE_IFELSE(PROGRAM, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2381 # ----------------------------------------------------------------
2382 # Try to compile PROGRAM.
2383 # This macro can be used during the selection of a compiler.
2384 m4_define([_AC_COMPILE_IFELSE],
2385 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl
2386 rm -f conftest.$ac_objext
2387 AS_IF([_AC_DO_STDERR($ac_compile) && {
2388          test -z "$ac_[]_AC_LANG_ABBREV[]_werror_flag" ||
2389          test ! -s conftest.err
2390        } && test -s conftest.$ac_objext],
2391       [$2],
2392       [_AC_MSG_LOG_CONFTEST
2393         $3])
2394 rm -f core conftest.err conftest.$ac_objext m4_ifval([$1], [conftest.$ac_ext])[]dnl
2395 ])# _AC_COMPILE_IFELSE
2398 # AC_COMPILE_IFELSE(PROGRAM, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2399 # ---------------------------------------------------------------
2400 # Try to compile PROGRAM.  Requires that the compiler for the current
2401 # language was checked for, hence do not use this macro in macros looking
2402 # for a compiler.
2403 AC_DEFUN([AC_COMPILE_IFELSE],
2404 [AC_LANG_COMPILER_REQUIRE()dnl
2405 _AC_COMPILE_IFELSE($@)])
2408 # AC_TRY_COMPILE(INCLUDES, FUNCTION-BODY,
2409 #                [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2410 # ---------------------------------------------------
2411 AU_DEFUN([AC_TRY_COMPILE],
2412 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$1]], [[$2]])], [$3], [$4])])
2416 ## --------------------- ##
2417 ## Examining libraries.  ##
2418 ## --------------------- ##
2421 # _AC_LINK_IFELSE(PROGRAM, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2422 # -------------------------------------------------------------
2423 # Try to link PROGRAM.
2424 # This macro can be used during the selection of a compiler.
2425 m4_define([_AC_LINK_IFELSE],
2426 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl
2427 rm -f conftest.$ac_objext conftest$ac_exeext
2428 AS_IF([_AC_DO_STDERR($ac_link) && {
2429          test -z "$ac_[]_AC_LANG_ABBREV[]_werror_flag" ||
2430          test ! -s conftest.err
2431        } && test -s conftest$ac_exeext &&
2432        AS_TEST_X([conftest$ac_exeext])],
2433       [$2],
2434       [_AC_MSG_LOG_CONFTEST
2435         $3])
2436 dnl Delete also the IPA/IPO (Inter Procedural Analysis/Optimization)
2437 dnl information created by the PGI compiler (conftest_ipa8_conftest.oo),
2438 dnl as it would interfere with the next link command.
2439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2440       conftest$ac_exeext m4_ifval([$1], [conftest.$ac_ext])[]dnl
2441 ])# _AC_LINK_IFELSE
2444 # AC_LINK_IFELSE(PROGRAM, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2445 # ------------------------------------------------------------
2446 # Try to link PROGRAM.  Requires that the compiler for the current
2447 # language was checked for, hence do not use this macro in macros looking
2448 # for a compiler.
2449 AC_DEFUN([AC_LINK_IFELSE],
2450 [AC_LANG_COMPILER_REQUIRE()dnl
2451 _AC_LINK_IFELSE($@)])
2454 # AC_TRY_LINK(INCLUDES, FUNCTION-BODY,
2455 #             [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2456 # ------------------------------------------------
2457 # Contrarily to AC_LINK_IFELSE, this macro double quote its first two args.
2458 AU_DEFUN([AC_TRY_LINK],
2459 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[$1]], [[$2]])], [$3], [$4])])
2462 # AC_COMPILE_CHECK(ECHO-TEXT, INCLUDES, FUNCTION-BODY,
2463 #                  ACTION-IF-TRUE, [ACTION-IF-FALSE])
2464 # ---------------------------------------------------
2465 AU_DEFUN([AC_COMPILE_CHECK],
2466 [m4_ifvaln([$1], [AC_MSG_CHECKING([for $1])])dnl
2467 AC_LINK_IFELSE([AC_LANG_PROGRAM([[$2]], [[$3]])], [$4], [$5])])
2472 ## ------------------------------- ##
2473 ## Checking for runtime features.  ##
2474 ## ------------------------------- ##
2477 # _AC_RUN_IFELSE(PROGRAM, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2478 # ------------------------------------------------------------
2479 # Compile, link, and run.
2480 # This macro can be used during the selection of a compiler.
2481 # We also remove conftest.o as if the compilation fails, some compilers
2482 # don't remove it.  We remove gmon.out and bb.out, which may be
2483 # created during the run if the program is built with profiling support.
2484 m4_define([_AC_RUN_IFELSE],
2485 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl
2486 rm -f conftest$ac_exeext
2487 AS_IF([_AC_DO_VAR(ac_link) && _AC_DO_TOKENS(./conftest$ac_exeext)],
2488       [$2],
2489       [AS_ECHO(["$as_me: program exited with status $ac_status"]) >&AS_MESSAGE_LOG_FD
2490 _AC_MSG_LOG_CONFTEST
2491 m4_ifvaln([$3],
2492           [( exit $ac_status )
2493 $3])dnl])[]dnl
2494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext m4_ifval([$1],
2495                                                      [conftest.$ac_ext])[]dnl
2496 ])# _AC_RUN_IFELSE
2499 # AC_RUN_IFELSE(PROGRAM,
2500 #               [ACTION-IF-TRUE], [ACTION-IF-FALSE],
2501 #               [ACTION-IF-CROSS-COMPILING = RUNTIME-ERROR])
2502 # ----------------------------------------------------------
2503 # Compile, link, and run. Requires that the compiler for the current
2504 # language was checked for, hence do not use this macro in macros looking
2505 # for a compiler.
2506 AC_DEFUN([AC_RUN_IFELSE],
2507 [AC_LANG_COMPILER_REQUIRE()dnl
2508 m4_ifval([$4], [],
2509          [AC_DIAGNOSE([cross],
2510                      [$0 called without default to allow cross compiling])])dnl
2511 AS_IF([test "$cross_compiling" = yes],
2512   [m4_default([$4],
2513            [AC_MSG_FAILURE([cannot run test program while cross compiling])])],
2514   [_AC_RUN_IFELSE($@)])
2518 # AC_TRY_RUN(PROGRAM,
2519 #            [ACTION-IF-TRUE], [ACTION-IF-FALSE],
2520 #            [ACTION-IF-CROSS-COMPILING = RUNTIME-ERROR])
2521 # --------------------------------------------------------
2522 AU_DEFUN([AC_TRY_RUN],
2523 [AC_RUN_IFELSE([AC_LANG_SOURCE([[$1]])], [$2], [$3], [$4])])
2527 ## ------------------------------------- ##
2528 ## Checking for the existence of files.  ##
2529 ## ------------------------------------- ##
2531 # AC_CHECK_FILE(FILE, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2532 # -------------------------------------------------------------
2534 # Check for the existence of FILE.
2535 AC_DEFUN([AC_CHECK_FILE],
2536 [AC_DIAGNOSE([cross],
2537              [cannot check for file existence when cross compiling])dnl
2538 AS_VAR_PUSHDEF([ac_File], [ac_cv_file_$1])dnl
2539 AC_CACHE_CHECK([for $1], [ac_File],
2540 [test "$cross_compiling" = yes &&
2541   AC_MSG_ERROR([cannot check for file existence when cross compiling])
2542 if test -r "$1"; then
2543   AS_VAR_SET([ac_File], [yes])
2544 else
2545   AS_VAR_SET([ac_File], [no])
2546 fi])
2547 AS_IF([test AS_VAR_GET([ac_File]) = yes], [$2], [$3])[]dnl
2548 AS_VAR_POPDEF([ac_File])dnl
2549 ])# AC_CHECK_FILE
2552 # AC_CHECK_FILES(FILE..., [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2553 # -----------------------------------------------------------------
2554 AC_DEFUN([AC_CHECK_FILES],
2555 [m4_foreach_w([AC_FILE_NAME], [$1],
2556   [AC_CHECK_FILE(AC_FILE_NAME,
2557                  [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]AC_FILE_NAME), 1,
2558                                     [Define to 1 if you have the
2559                                      file `]AC_File['.])
2560 $2],
2561                  [$3])])])
2564 ## ------------------------------- ##
2565 ## Checking for declared symbols.  ##
2566 ## ------------------------------- ##
2569 # AC_CHECK_DECL(SYMBOL,
2570 #               [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
2571 #               [INCLUDES = DEFAULT-INCLUDES])
2572 # -------------------------------------------------------
2573 # Check whether SYMBOL (a function, variable, or constant) is declared.
2574 AC_DEFUN([AC_CHECK_DECL],
2575 [AS_VAR_PUSHDEF([ac_Symbol], [ac_cv_have_decl_$1])dnl
2576 AC_CACHE_CHECK([whether $1 is declared], [ac_Symbol],
2577 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])],
2578 [#ifndef $1
2579   (void) $1;
2580 #endif
2581 ])],
2582                    [AS_VAR_SET([ac_Symbol], [yes])],
2583                    [AS_VAR_SET([ac_Symbol], [no])])])
2584 AS_IF([test AS_VAR_GET([ac_Symbol]) = yes], [$2], [$3])[]dnl
2585 AS_VAR_POPDEF([ac_Symbol])dnl
2586 ])# AC_CHECK_DECL
2589 # AC_CHECK_DECLS(SYMBOLS,
2590 #                [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
2591 #                [INCLUDES = DEFAULT-INCLUDES])
2592 # --------------------------------------------------------
2593 # Defines HAVE_DECL_SYMBOL to 1 if declared, 0 otherwise.  See the
2594 # documentation for a detailed explanation of this difference with
2595 # other AC_CHECK_*S macros.  SYMBOLS is an m4 list.
2596 AC_DEFUN([AC_CHECK_DECLS],
2597 [m4_foreach([AC_Symbol], [$1],
2598   [AC_CHECK_DECL(AC_Symbol,
2599                  [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_DECL_]AC_Symbol), 1,
2600                                      [Define to 1 if you have the declaration
2601                                      of `]AC_Symbol[', and to 0 if you don't.])
2602 $2],
2603                  [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_DECL_]AC_Symbol), 0)
2604 $3],
2605                  [$4])])
2606 ])# AC_CHECK_DECLS
2609 # AC_CHECK_DECLS_ONCE(SYMBOLS)
2610 # ----------------------------
2611 # Like AC_CHECK_DECLS(SYMBOLS), but do it at most once.
2612 AC_DEFUN([AC_CHECK_DECLS_ONCE],
2614   m4_foreach([AC_Symbol], [$1],
2615     [AC_DEFUN([_AC_Check_Decl_]m4_defn([AC_Symbol]),
2616        [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2617      AC_REQUIRE([_AC_Check_Decl_]m4_defn([AC_Symbol]))])
2622 ## ---------------------------------- ##
2623 ## Replacement of library functions.  ##
2624 ## ---------------------------------- ##
2627 # AC_CONFIG_LIBOBJ_DIR(DIRNAME)
2628 # -----------------------------
2629 # Announce LIBOBJ replacement files are in $top_srcdir/DIRNAME.
2630 AC_DEFUN_ONCE([AC_CONFIG_LIBOBJ_DIR],
2631 [m4_divert_text([DEFAULTS], [ac_config_libobj_dir=$1])])
2634 # AC_LIBSOURCE(FILE-NAME)
2635 # -----------------------
2636 # Announce we might need the file `FILE-NAME'.
2637 m4_define([AC_LIBSOURCE], [])
2640 # AC_LIBSOURCES([FILE-NAME1, ...])
2641 # -------------------------------
2642 # Announce we might need these files.
2643 m4_define([AC_LIBSOURCES],
2644 [m4_foreach([_AC_FILE_NAME], [$1],
2645             [AC_LIBSOURCE(_AC_FILE_NAME)])])
2648 # _AC_LIBOBJ(FILE-NAME-NOEXT, ACTION-IF-INDIR)
2649 # --------------------------------------------
2650 # We need `FILE-NAME-NOEXT.o', save this into `LIBOBJS'.
2651 m4_define([_AC_LIBOBJ],
2652 [AS_LITERAL_IF([$1],
2653                [AC_LIBSOURCE([$1.c])],
2654                [$2])dnl
2655 case " $LIB@&t@OBJS " in
2656   *" $1.$ac_objext "* ) ;;
2657   *) AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS $1.$ac_objext"]) ;;
2658 esac
2662 # AC_LIBOBJ(FILE-NAME-NOEXT)
2663 # -------------------------
2664 # We need `FILE-NAME-NOEXT.o', save this into `LIBOBJS'.
2665 m4_define([AC_LIBOBJ],
2666 [_AC_LIBOBJ([$1],
2667             [AC_DIAGNOSE(syntax,
2668                          [$0($1): you should use literals])])dnl
2672 # _AC_LIBOBJS_NORMALIZE
2673 # ---------------------
2674 # Clean up LIBOBJS and LTLIBOBJS so that they work with 1. ac_objext,
2675 # 2. Automake's ANSI2KNR, 3. Libtool, 4. combination of the three.
2676 # Used with AC_CONFIG_COMMANDS_PRE.
2677 AC_DEFUN([_AC_LIBOBJS_NORMALIZE],
2678 [ac_libobjs=
2679 ac_ltlibobjs=
2680 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
2681   # 1. Remove the extension, and $U if already installed.
2682   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2683   ac_i=`AS_ECHO(["$ac_i"]) | sed "$ac_script"`
2684   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
2685   #    will be set to the directory where LIBOBJS objects are built.
2686   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2687   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2688 done
2689 AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
2690 AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
2694 ## ----------------------------------- ##
2695 ## Checking compiler characteristics.  ##
2696 ## ----------------------------------- ##
2699 # _AC_COMPUTE_INT_COMPILE(EXPRESSION, VARIABLE, PROLOGUE, [IF-FAILS])
2700 # -------------------------------------------------------------------
2701 # Compute the integer EXPRESSION and store the result in the VARIABLE.
2702 # Works OK if cross compiling, but assumes twos-complement arithmetic.
2703 m4_define([_AC_COMPUTE_INT_COMPILE],
2704 [# Depending upon the size, compute the lo and hi bounds.
2705 _AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) >= 0])],
2706  [ac_lo=0 ac_mid=0
2707   while :; do
2708     _AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_mid])],
2709                        [ac_hi=$ac_mid; break],
2710                        [ac_lo=`expr $ac_mid + 1`
2711                         if test $ac_lo -le $ac_mid; then
2712                           ac_lo= ac_hi=
2713                           break
2714                         fi
2715                         ac_mid=`expr 2 '*' $ac_mid + 1`])
2716   done],
2717 [AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) < 0])],
2718  [ac_hi=-1 ac_mid=-1
2719   while :; do
2720     _AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) >= $ac_mid])],
2721                        [ac_lo=$ac_mid; break],
2722                        [ac_hi=`expr '(' $ac_mid ')' - 1`
2723                         if test $ac_mid -le $ac_hi; then
2724                           ac_lo= ac_hi=
2725                           break
2726                         fi
2727                         ac_mid=`expr 2 '*' $ac_mid`])
2728   done],
2729  [ac_lo= ac_hi=])])
2730 # Binary search between lo and hi bounds.
2731 while test "x$ac_lo" != "x$ac_hi"; do
2732   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2733   _AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_mid])],
2734                      [ac_hi=$ac_mid], [ac_lo=`expr '(' $ac_mid ')' + 1`])
2735 done
2736 case $ac_lo in
2737 ?*) $2=$ac_lo;;
2738 '') $4 ;;
2739 esac[]dnl
2740 ])# _AC_COMPUTE_INT_COMPILE
2743 # _AC_COMPUTE_INT_RUN(EXPRESSION, VARIABLE, PROLOGUE, [IF-FAILS])
2744 # ---------------------------------------------------------------
2745 # Store the evaluation of the integer EXPRESSION in VARIABLE.
2746 m4_define([_AC_COMPUTE_INT_RUN],
2747 [_AC_RUN_IFELSE([AC_LANG_INT_SAVE([$3], [$1])],
2748                 [$2=`cat conftest.val`], [$4])])
2751 # AC_COMPUTE_INT(VARIABLE, EXPRESSION, PROLOGUE, [IF-FAILS])
2752 # ----------------------------------------------------------
2753 AC_DEFUN([AC_COMPUTE_INT],
2754 [AC_LANG_COMPILER_REQUIRE()dnl
2755 if test "$cross_compiling" = yes; then
2756   _AC_COMPUTE_INT_COMPILE([$2], [$1], [$3], [$4])
2757 else
2758   _AC_COMPUTE_INT_RUN([$2], [$1], [$3], [$4])
2760 rm -f conftest.val[]dnl
2761 ])# _AC_COMPUTE_INT
2763 # _AC_COMPUTE_INT(EXPRESSION, VARIABLE, PROLOGUE, [IF-FAILS])
2764 # -----------------------------------------------------------
2765 # FIXME: this private interface was used by several packages.
2766 # Give them time to transition to AC_COMPUTE_INT and then delete this one.
2767 AC_DEFUN([_AC_COMPUTE_INT],
2768 [AC_COMPUTE_INT([$2], [$1], [$3], [$4])
2769 AC_DIAGNOSE([obsolete],
2770 [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a
2771 future version or Autoconf.  Hence, it is suggested that you use
2772 instead the public AC_COMPUTE_INT macro.  Note that the arguments are
2773 slightly different between the two.])dnl
2774 ])# _AC_COMPUTE_INT