]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/configure
Merge commit '93bf91b4012a28610672d2266366dfa0a663b70f' into HEAD
[FreeBSD/FreeBSD.git] / contrib / bmake / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bmake 20211020.
4 #
5 # Report bugs to <sjg@NetBSD.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and sjg@NetBSD.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='bmake'
582 PACKAGE_TARNAME='bmake'
583 PACKAGE_VERSION='20211020'
584 PACKAGE_STRING='bmake 20211020'
585 PACKAGE_BUGREPORT='sjg@NetBSD.org'
586 PACKAGE_URL=''
587
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 #  include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #  include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 ac_subst_vars='LTLIBOBJS
625 UTC_1
626 _MAKE_VERSION
627 filemon_h
628 use_filemon
629 use_meta
630 diff_u
631 diff
632 GCC
633 INSTALL
634 default_sys_path
635 mksrc
636 force_machine_arch
637 machine_arch
638 force_machine
639 machine
640 LIBOBJS
641 bmake_path_max
642 ac_exe_suffix
643 INSTALL_DATA
644 INSTALL_SCRIPT
645 INSTALL_PROGRAM
646 EGREP
647 GREP
648 CPP
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
655 CC
656 target_alias
657 host_alias
658 build_alias
659 LIBS
660 ECHO_T
661 ECHO_N
662 ECHO_C
663 DEFS
664 mandir
665 localedir
666 libdir
667 psdir
668 pdfdir
669 dvidir
670 htmldir
671 infodir
672 docdir
673 oldincludedir
674 includedir
675 localstatedir
676 sharedstatedir
677 sysconfdir
678 datadir
679 datarootdir
680 libexecdir
681 sbindir
682 bindir
683 program_transform_name
684 prefix
685 exec_prefix
686 PACKAGE_URL
687 PACKAGE_BUGREPORT
688 PACKAGE_STRING
689 PACKAGE_VERSION
690 PACKAGE_TARNAME
691 PACKAGE_NAME
692 PATH_SEPARATOR
693 SHELL'
694 ac_subst_files=''
695 ac_user_opts='
696 enable_option_checking
697 with_defshell
698 with_makefile
699 with_meta
700 with_filemon
701 with_machine
702 with_force_machine
703 with_force_machine_arch
704 with_machine_arch
705 with_default_sys_path
706 with_path_objdirprefix
707 enable_pwd_override
708 enable_check_make_chdir
709 with_mksrc
710 '
711       ac_precious_vars='build_alias
712 host_alias
713 target_alias
714 CC
715 CFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS
719 CPP'
720
721
722 # Initialize some variables set by options.
723 ac_init_help=
724 ac_init_version=false
725 ac_unrecognized_opts=
726 ac_unrecognized_sep=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
729 cache_file=/dev/null
730 exec_prefix=NONE
731 no_create=
732 no_recursion=
733 prefix=NONE
734 program_prefix=NONE
735 program_suffix=NONE
736 program_transform_name=s,x,x,
737 silent=
738 site=
739 srcdir=
740 verbose=
741 x_includes=NONE
742 x_libraries=NONE
743
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir='${exec_prefix}/bin'
751 sbindir='${exec_prefix}/sbin'
752 libexecdir='${exec_prefix}/libexec'
753 datarootdir='${prefix}/share'
754 datadir='${datarootdir}'
755 sysconfdir='${prefix}/etc'
756 sharedstatedir='${prefix}/com'
757 localstatedir='${prefix}/var'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir='${datarootdir}/info'
762 htmldir='${docdir}'
763 dvidir='${docdir}'
764 pdfdir='${docdir}'
765 psdir='${docdir}'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
769
770 ac_prev=
771 ac_dashdash=
772 for ac_option
773 do
774   # If the previous option needs an argument, assign it.
775   if test -n "$ac_prev"; then
776     eval $ac_prev=\$ac_option
777     ac_prev=
778     continue
779   fi
780
781   case $ac_option in
782   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783   *=)   ac_optarg= ;;
784   *)    ac_optarg=yes ;;
785   esac
786
787   # Accept the important Cygnus configure options, so we can diagnose typos.
788
789   case $ac_dashdash$ac_option in
790   --)
791     ac_dashdash=yes ;;
792
793   -bindir | --bindir | --bindi | --bind | --bin | --bi)
794     ac_prev=bindir ;;
795   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
796     bindir=$ac_optarg ;;
797
798   -build | --build | --buil | --bui | --bu)
799     ac_prev=build_alias ;;
800   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
801     build_alias=$ac_optarg ;;
802
803   -cache-file | --cache-file | --cache-fil | --cache-fi \
804   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805     ac_prev=cache_file ;;
806   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
808     cache_file=$ac_optarg ;;
809
810   --config-cache | -C)
811     cache_file=config.cache ;;
812
813   -datadir | --datadir | --datadi | --datad)
814     ac_prev=datadir ;;
815   -datadir=* | --datadir=* | --datadi=* | --datad=*)
816     datadir=$ac_optarg ;;
817
818   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819   | --dataroo | --dataro | --datar)
820     ac_prev=datarootdir ;;
821   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823     datarootdir=$ac_optarg ;;
824
825   -disable-* | --disable-*)
826     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827     # Reject names that are not valid shell variable names.
828     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
829       as_fn_error $? "invalid feature name: $ac_useropt"
830     ac_useropt_orig=$ac_useropt
831     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832     case $ac_user_opts in
833       *"
834 "enable_$ac_useropt"
835 "*) ;;
836       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837          ac_unrecognized_sep=', ';;
838     esac
839     eval enable_$ac_useropt=no ;;
840
841   -docdir | --docdir | --docdi | --doc | --do)
842     ac_prev=docdir ;;
843   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844     docdir=$ac_optarg ;;
845
846   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847     ac_prev=dvidir ;;
848   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849     dvidir=$ac_optarg ;;
850
851   -enable-* | --enable-*)
852     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853     # Reject names that are not valid shell variable names.
854     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855       as_fn_error $? "invalid feature name: $ac_useropt"
856     ac_useropt_orig=$ac_useropt
857     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858     case $ac_user_opts in
859       *"
860 "enable_$ac_useropt"
861 "*) ;;
862       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863          ac_unrecognized_sep=', ';;
864     esac
865     eval enable_$ac_useropt=\$ac_optarg ;;
866
867   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869   | --exec | --exe | --ex)
870     ac_prev=exec_prefix ;;
871   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873   | --exec=* | --exe=* | --ex=*)
874     exec_prefix=$ac_optarg ;;
875
876   -gas | --gas | --ga | --g)
877     # Obsolete; use --with-gas.
878     with_gas=yes ;;
879
880   -help | --help | --hel | --he | -h)
881     ac_init_help=long ;;
882   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883     ac_init_help=recursive ;;
884   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885     ac_init_help=short ;;
886
887   -host | --host | --hos | --ho)
888     ac_prev=host_alias ;;
889   -host=* | --host=* | --hos=* | --ho=*)
890     host_alias=$ac_optarg ;;
891
892   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893     ac_prev=htmldir ;;
894   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895   | --ht=*)
896     htmldir=$ac_optarg ;;
897
898   -includedir | --includedir | --includedi | --included | --include \
899   | --includ | --inclu | --incl | --inc)
900     ac_prev=includedir ;;
901   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902   | --includ=* | --inclu=* | --incl=* | --inc=*)
903     includedir=$ac_optarg ;;
904
905   -infodir | --infodir | --infodi | --infod | --info | --inf)
906     ac_prev=infodir ;;
907   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
908     infodir=$ac_optarg ;;
909
910   -libdir | --libdir | --libdi | --libd)
911     ac_prev=libdir ;;
912   -libdir=* | --libdir=* | --libdi=* | --libd=*)
913     libdir=$ac_optarg ;;
914
915   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916   | --libexe | --libex | --libe)
917     ac_prev=libexecdir ;;
918   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919   | --libexe=* | --libex=* | --libe=*)
920     libexecdir=$ac_optarg ;;
921
922   -localedir | --localedir | --localedi | --localed | --locale)
923     ac_prev=localedir ;;
924   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925     localedir=$ac_optarg ;;
926
927   -localstatedir | --localstatedir | --localstatedi | --localstated \
928   | --localstate | --localstat | --localsta | --localst | --locals)
929     ac_prev=localstatedir ;;
930   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
931   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
932     localstatedir=$ac_optarg ;;
933
934   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935     ac_prev=mandir ;;
936   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937     mandir=$ac_optarg ;;
938
939   -nfp | --nfp | --nf)
940     # Obsolete; use --without-fp.
941     with_fp=no ;;
942
943   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944   | --no-cr | --no-c | -n)
945     no_create=yes ;;
946
947   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949     no_recursion=yes ;;
950
951   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953   | --oldin | --oldi | --old | --ol | --o)
954     ac_prev=oldincludedir ;;
955   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
958     oldincludedir=$ac_optarg ;;
959
960   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961     ac_prev=prefix ;;
962   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
963     prefix=$ac_optarg ;;
964
965   -program-prefix | --program-prefix | --program-prefi | --program-pref \
966   | --program-pre | --program-pr | --program-p)
967     ac_prev=program_prefix ;;
968   -program-prefix=* | --program-prefix=* | --program-prefi=* \
969   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
970     program_prefix=$ac_optarg ;;
971
972   -program-suffix | --program-suffix | --program-suffi | --program-suff \
973   | --program-suf | --program-su | --program-s)
974     ac_prev=program_suffix ;;
975   -program-suffix=* | --program-suffix=* | --program-suffi=* \
976   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
977     program_suffix=$ac_optarg ;;
978
979   -program-transform-name | --program-transform-name \
980   | --program-transform-nam | --program-transform-na \
981   | --program-transform-n | --program-transform- \
982   | --program-transform | --program-transfor \
983   | --program-transfo | --program-transf \
984   | --program-trans | --program-tran \
985   | --progr-tra | --program-tr | --program-t)
986     ac_prev=program_transform_name ;;
987   -program-transform-name=* | --program-transform-name=* \
988   | --program-transform-nam=* | --program-transform-na=* \
989   | --program-transform-n=* | --program-transform-=* \
990   | --program-transform=* | --program-transfor=* \
991   | --program-transfo=* | --program-transf=* \
992   | --program-trans=* | --program-tran=* \
993   | --progr-tra=* | --program-tr=* | --program-t=*)
994     program_transform_name=$ac_optarg ;;
995
996   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997     ac_prev=pdfdir ;;
998   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999     pdfdir=$ac_optarg ;;
1000
1001   -psdir | --psdir | --psdi | --psd | --ps)
1002     ac_prev=psdir ;;
1003   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004     psdir=$ac_optarg ;;
1005
1006   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007   | -silent | --silent | --silen | --sile | --sil)
1008     silent=yes ;;
1009
1010   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011     ac_prev=sbindir ;;
1012   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013   | --sbi=* | --sb=*)
1014     sbindir=$ac_optarg ;;
1015
1016   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018   | --sharedst | --shareds | --shared | --share | --shar \
1019   | --sha | --sh)
1020     ac_prev=sharedstatedir ;;
1021   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024   | --sha=* | --sh=*)
1025     sharedstatedir=$ac_optarg ;;
1026
1027   -site | --site | --sit)
1028     ac_prev=site ;;
1029   -site=* | --site=* | --sit=*)
1030     site=$ac_optarg ;;
1031
1032   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033     ac_prev=srcdir ;;
1034   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035     srcdir=$ac_optarg ;;
1036
1037   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038   | --syscon | --sysco | --sysc | --sys | --sy)
1039     ac_prev=sysconfdir ;;
1040   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042     sysconfdir=$ac_optarg ;;
1043
1044   -target | --target | --targe | --targ | --tar | --ta | --t)
1045     ac_prev=target_alias ;;
1046   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047     target_alias=$ac_optarg ;;
1048
1049   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050     verbose=yes ;;
1051
1052   -version | --version | --versio | --versi | --vers | -V)
1053     ac_init_version=: ;;
1054
1055   -with-* | --with-*)
1056     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057     # Reject names that are not valid shell variable names.
1058     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059       as_fn_error $? "invalid package name: $ac_useropt"
1060     ac_useropt_orig=$ac_useropt
1061     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062     case $ac_user_opts in
1063       *"
1064 "with_$ac_useropt"
1065 "*) ;;
1066       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067          ac_unrecognized_sep=', ';;
1068     esac
1069     eval with_$ac_useropt=\$ac_optarg ;;
1070
1071   -without-* | --without-*)
1072     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075       as_fn_error $? "invalid package name: $ac_useropt"
1076     ac_useropt_orig=$ac_useropt
1077     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078     case $ac_user_opts in
1079       *"
1080 "with_$ac_useropt"
1081 "*) ;;
1082       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083          ac_unrecognized_sep=', ';;
1084     esac
1085     eval with_$ac_useropt=no ;;
1086
1087   --x)
1088     # Obsolete; use --with-x.
1089     with_x=yes ;;
1090
1091   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092   | --x-incl | --x-inc | --x-in | --x-i)
1093     ac_prev=x_includes ;;
1094   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096     x_includes=$ac_optarg ;;
1097
1098   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100     ac_prev=x_libraries ;;
1101   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103     x_libraries=$ac_optarg ;;
1104
1105   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1106 Try \`$0 --help' for more information"
1107     ;;
1108
1109   *=*)
1110     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111     # Reject names that are not valid shell variable names.
1112     case $ac_envvar in #(
1113       '' | [0-9]* | *[!_$as_cr_alnum]* )
1114       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1115     esac
1116     eval $ac_envvar=\$ac_optarg
1117     export $ac_envvar ;;
1118
1119   *)
1120     # FIXME: should be removed in autoconf 3.0.
1121     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1125     ;;
1126
1127   esac
1128 done
1129
1130 if test -n "$ac_prev"; then
1131   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132   as_fn_error $? "missing argument to $ac_option"
1133 fi
1134
1135 if test -n "$ac_unrecognized_opts"; then
1136   case $enable_option_checking in
1137     no) ;;
1138     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1139     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1140   esac
1141 fi
1142
1143 # Check all directory arguments for consistency.
1144 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145                 datadir sysconfdir sharedstatedir localstatedir includedir \
1146                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147                 libdir localedir mandir
1148 do
1149   eval ac_val=\$$ac_var
1150   # Remove trailing slashes.
1151   case $ac_val in
1152     */ )
1153       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154       eval $ac_var=\$ac_val;;
1155   esac
1156   # Be sure to have absolute directory names.
1157   case $ac_val in
1158     [\\/$]* | ?:[\\/]* )  continue;;
1159     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1160   esac
1161   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1162 done
1163
1164 # There might be people who depend on the old broken behavior: `$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1167 build=$build_alias
1168 host=$host_alias
1169 target=$target_alias
1170
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x; then
1173   if test "x$build_alias" = x; then
1174     cross_compiling=maybe
1175   elif test "x$build_alias" != "x$host_alias"; then
1176     cross_compiling=yes
1177   fi
1178 fi
1179
1180 ac_tool_prefix=
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182
1183 test "$silent" = yes && exec 6>/dev/null
1184
1185
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189   as_fn_error $? "working directory cannot be determined"
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191   as_fn_error $? "pwd does not report name of working directory"
1192
1193
1194 # Find the source files, if location was not specified.
1195 if test -z "$srcdir"; then
1196   ac_srcdir_defaulted=yes
1197   # Try the directory containing this script, then the parent directory.
1198   ac_confdir=`$as_dirname -- "$as_myself" ||
1199 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200          X"$as_myself" : 'X\(//\)[^/]' \| \
1201          X"$as_myself" : 'X\(//\)$' \| \
1202          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203 $as_echo X"$as_myself" |
1204     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205             s//\1/
1206             q
1207           }
1208           /^X\(\/\/\)[^/].*/{
1209             s//\1/
1210             q
1211           }
1212           /^X\(\/\/\)$/{
1213             s//\1/
1214             q
1215           }
1216           /^X\(\/\).*/{
1217             s//\1/
1218             q
1219           }
1220           s/.*/./; q'`
1221   srcdir=$ac_confdir
1222   if test ! -r "$srcdir/$ac_unique_file"; then
1223     srcdir=..
1224   fi
1225 else
1226   ac_srcdir_defaulted=no
1227 fi
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1230   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1231 fi
1232 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1233 ac_abs_confdir=`(
1234         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1235         pwd)`
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1238   srcdir=.
1239 fi
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1243 case $srcdir in
1244 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 esac
1246 for ac_var in $ac_precious_vars; do
1247   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248   eval ac_env_${ac_var}_value=\$${ac_var}
1249   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1251 done
1252
1253 #
1254 # Report the --help message.
1255 #
1256 if test "$ac_init_help" = "long"; then
1257   # Omit some internal or obsolete options to make the list less imposing.
1258   # This message is too long to be a string in the A/UX 3.1 sh.
1259   cat <<_ACEOF
1260 \`configure' configures bmake 20211020 to adapt to many kinds of systems.
1261
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1263
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE.  See below for descriptions of some of the useful variables.
1266
1267 Defaults for the options are specified in brackets.
1268
1269 Configuration:
1270   -h, --help              display this help and exit
1271       --help=short        display options specific to this package
1272       --help=recursive    display the short help of all the included packages
1273   -V, --version           display version information and exit
1274   -q, --quiet, --silent   do not print \`checking ...' messages
1275       --cache-file=FILE   cache test results in FILE [disabled]
1276   -C, --config-cache      alias for \`--cache-file=config.cache'
1277   -n, --no-create         do not create output files
1278       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1279
1280 Installation directories:
1281   --prefix=PREFIX         install architecture-independent files in PREFIX
1282                           [$ac_default_prefix]
1283   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1284                           [PREFIX]
1285
1286 By default, \`make install' will install all the files in
1287 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1288 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289 for instance \`--prefix=\$HOME'.
1290
1291 For better control, use the options below.
1292
1293 Fine tuning of the installation directories:
1294   --bindir=DIR            user executables [EPREFIX/bin]
1295   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1296   --libexecdir=DIR        program executables [EPREFIX/libexec]
1297   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1298   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1299   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1300   --libdir=DIR            object code libraries [EPREFIX/lib]
1301   --includedir=DIR        C header files [PREFIX/include]
1302   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1303   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1304   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1305   --infodir=DIR           info documentation [DATAROOTDIR/info]
1306   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1307   --mandir=DIR            man documentation [DATAROOTDIR/man]
1308   --docdir=DIR            documentation root [DATAROOTDIR/doc/bmake]
1309   --htmldir=DIR           html documentation [DOCDIR]
1310   --dvidir=DIR            dvi documentation [DOCDIR]
1311   --pdfdir=DIR            pdf documentation [DOCDIR]
1312   --psdir=DIR             ps documentation [DOCDIR]
1313 _ACEOF
1314
1315   cat <<\_ACEOF
1316 _ACEOF
1317 fi
1318
1319 if test -n "$ac_init_help"; then
1320   case $ac_init_help in
1321      short | recursive ) echo "Configuration of bmake 20211020:";;
1322    esac
1323   cat <<\_ACEOF
1324
1325 Optional Features:
1326   --disable-option-checking  ignore unrecognized --enable/--with options
1327   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1328   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1329   --disable-pwd-override  disable $PWD overriding getcwd()
1330   --disable-check-make-chdir disable make trying to guess
1331         when it should automatically cd ${.CURDIR}
1332
1333 Optional Packages:
1334   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1335   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1336   --with-defshell=SHELL  use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions
1337   --without-makefile disable use of generated makefile
1338   --without-meta disable use of meta-mode
1339   --with-filemon={no,dev,ktrace,path/filemon.h} indicate filemon method for meta-mode. Path to filemon.h implies dev
1340   --with-machine=MACHINE  explicitly set MACHINE
1341   --with-force-machine=MACHINE  set FORCE_MACHINE
1342   --with-force-machine-arch=MACHINE  set FORCE_MACHINE_ARCH
1343   --with-machine_arch=MACHINE_ARCH  explicitly set MACHINE_ARCH
1344   --with-default-sys-path=PATH:DIR:LIST  use an explicit _PATH_DEFSYSPATH
1345         MAKESYSPATH is a ':' separated list of directories
1346         that bmake will search for system .mk files.
1347         _PATH_DEFSYSPATH is its default value.
1348   --with-path-objdirprefix=PATH  override _PATH_OBJDIRPREFIX
1349   --with-mksrc=PATH tell makefile.boot where to find mk src
1350
1351 Some influential environment variables:
1352   CC          C compiler command
1353   CFLAGS      C compiler flags
1354   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1355               nonstandard directory <lib dir>
1356   LIBS        libraries to pass to the linker, e.g. -l<library>
1357   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1358               you have headers in a nonstandard directory <include dir>
1359   CPP         C preprocessor
1360
1361 Use these variables to override the choices made by `configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1363
1364 Report bugs to <sjg@NetBSD.org>.
1365 _ACEOF
1366 ac_status=$?
1367 fi
1368
1369 if test "$ac_init_help" = "recursive"; then
1370   # If there are subdirs, report their specific --help.
1371   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372     test -d "$ac_dir" ||
1373       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1374       continue
1375     ac_builddir=.
1376
1377 case "$ac_dir" in
1378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 *)
1380   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1381   # A ".." for each directory in $ac_dir_suffix.
1382   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1383   case $ac_top_builddir_sub in
1384   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386   esac ;;
1387 esac
1388 ac_abs_top_builddir=$ac_pwd
1389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390 # for backward compatibility:
1391 ac_top_builddir=$ac_top_build_prefix
1392
1393 case $srcdir in
1394   .)  # We are building in place.
1395     ac_srcdir=.
1396     ac_top_srcdir=$ac_top_builddir_sub
1397     ac_abs_top_srcdir=$ac_pwd ;;
1398   [\\/]* | ?:[\\/]* )  # Absolute name.
1399     ac_srcdir=$srcdir$ac_dir_suffix;
1400     ac_top_srcdir=$srcdir
1401     ac_abs_top_srcdir=$srcdir ;;
1402   *) # Relative name.
1403     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404     ac_top_srcdir=$ac_top_build_prefix$srcdir
1405     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 esac
1407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408
1409     cd "$ac_dir" || { ac_status=$?; continue; }
1410     # Check for guested configure.
1411     if test -f "$ac_srcdir/configure.gnu"; then
1412       echo &&
1413       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414     elif test -f "$ac_srcdir/configure"; then
1415       echo &&
1416       $SHELL "$ac_srcdir/configure" --help=recursive
1417     else
1418       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419     fi || ac_status=$?
1420     cd "$ac_pwd" || { ac_status=$?; break; }
1421   done
1422 fi
1423
1424 test -n "$ac_init_help" && exit $ac_status
1425 if $ac_init_version; then
1426   cat <<\_ACEOF
1427 bmake configure 20211020
1428 generated by GNU Autoconf 2.69
1429
1430 Copyright (C) 2012 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1433 _ACEOF
1434   exit
1435 fi
1436
1437 ## ------------------------ ##
1438 ## Autoconf initialization. ##
1439 ## ------------------------ ##
1440
1441 # ac_fn_c_try_compile LINENO
1442 # --------------------------
1443 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1444 ac_fn_c_try_compile ()
1445 {
1446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1447   rm -f conftest.$ac_objext
1448   if { { ac_try="$ac_compile"
1449 case "(($ac_try" in
1450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1451   *) ac_try_echo=$ac_try;;
1452 esac
1453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454 $as_echo "$ac_try_echo"; } >&5
1455   (eval "$ac_compile") 2>conftest.err
1456   ac_status=$?
1457   if test -s conftest.err; then
1458     grep -v '^ *+' conftest.err >conftest.er1
1459     cat conftest.er1 >&5
1460     mv -f conftest.er1 conftest.err
1461   fi
1462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463   test $ac_status = 0; } && {
1464          test -z "$ac_c_werror_flag" ||
1465          test ! -s conftest.err
1466        } && test -s conftest.$ac_objext; then :
1467   ac_retval=0
1468 else
1469   $as_echo "$as_me: failed program was:" >&5
1470 sed 's/^/| /' conftest.$ac_ext >&5
1471
1472         ac_retval=1
1473 fi
1474   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1475   as_fn_set_status $ac_retval
1476
1477 } # ac_fn_c_try_compile
1478
1479 # ac_fn_c_try_cpp LINENO
1480 # ----------------------
1481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_c_try_cpp ()
1483 {
1484   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485   if { { ac_try="$ac_cpp conftest.$ac_ext"
1486 case "(($ac_try" in
1487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488   *) ac_try_echo=$ac_try;;
1489 esac
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1493   ac_status=$?
1494   if test -s conftest.err; then
1495     grep -v '^ *+' conftest.err >conftest.er1
1496     cat conftest.er1 >&5
1497     mv -f conftest.er1 conftest.err
1498   fi
1499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500   test $ac_status = 0; } > conftest.i && {
1501          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1502          test ! -s conftest.err
1503        }; then :
1504   ac_retval=0
1505 else
1506   $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1508
1509     ac_retval=1
1510 fi
1511   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512   as_fn_set_status $ac_retval
1513
1514 } # ac_fn_c_try_cpp
1515
1516 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1517 # -------------------------------------------------------
1518 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1519 # the include files in INCLUDES and setting the cache variable VAR
1520 # accordingly.
1521 ac_fn_c_check_header_mongrel ()
1522 {
1523   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524   if eval \${$3+:} false; then :
1525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1526 $as_echo_n "checking for $2... " >&6; }
1527 if eval \${$3+:} false; then :
1528   $as_echo_n "(cached) " >&6
1529 fi
1530 eval ac_res=\$$3
1531                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1532 $as_echo "$ac_res" >&6; }
1533 else
1534   # Is the header compilable?
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1536 $as_echo_n "checking $2 usability... " >&6; }
1537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1538 /* end confdefs.h.  */
1539 $4
1540 #include <$2>
1541 _ACEOF
1542 if ac_fn_c_try_compile "$LINENO"; then :
1543   ac_header_compiler=yes
1544 else
1545   ac_header_compiler=no
1546 fi
1547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1549 $as_echo "$ac_header_compiler" >&6; }
1550
1551 # Is the header present?
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1553 $as_echo_n "checking $2 presence... " >&6; }
1554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1555 /* end confdefs.h.  */
1556 #include <$2>
1557 _ACEOF
1558 if ac_fn_c_try_cpp "$LINENO"; then :
1559   ac_header_preproc=yes
1560 else
1561   ac_header_preproc=no
1562 fi
1563 rm -f conftest.err conftest.i conftest.$ac_ext
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1565 $as_echo "$ac_header_preproc" >&6; }
1566
1567 # So?  What about this header?
1568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1569   yes:no: )
1570     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1571 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1572     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1573 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1574     ;;
1575   no:yes:* )
1576     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1577 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1578     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1579 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1580     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1581 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1582     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1583 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1584     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1585 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1586 ( $as_echo "## ----------------------------- ##
1587 ## Report this to sjg@NetBSD.org ##
1588 ## ----------------------------- ##"
1589      ) | sed "s/^/$as_me: WARNING:     /" >&2
1590     ;;
1591 esac
1592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593 $as_echo_n "checking for $2... " >&6; }
1594 if eval \${$3+:} false; then :
1595   $as_echo_n "(cached) " >&6
1596 else
1597   eval "$3=\$ac_header_compiler"
1598 fi
1599 eval ac_res=\$$3
1600                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601 $as_echo "$ac_res" >&6; }
1602 fi
1603   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604
1605 } # ac_fn_c_check_header_mongrel
1606
1607 # ac_fn_c_try_run LINENO
1608 # ----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1610 # that executables *can* be run.
1611 ac_fn_c_try_run ()
1612 {
1613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614   if { { ac_try="$ac_link"
1615 case "(($ac_try" in
1616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617   *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621   (eval "$ac_link") 2>&5
1622   ac_status=$?
1623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1625   { { case "(($ac_try" in
1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627   *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631   (eval "$ac_try") 2>&5
1632   ac_status=$?
1633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634   test $ac_status = 0; }; }; then :
1635   ac_retval=0
1636 else
1637   $as_echo "$as_me: program exited with status $ac_status" >&5
1638        $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641        ac_retval=$ac_status
1642 fi
1643   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645   as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_run
1648
1649 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists and can be compiled using the include files in
1652 # INCLUDES, setting the cache variable VAR accordingly.
1653 ac_fn_c_check_header_compile ()
1654 {
1655   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 $as_echo_n "checking for $2... " >&6; }
1658 if eval \${$3+:} false; then :
1659   $as_echo_n "(cached) " >&6
1660 else
1661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h.  */
1663 $4
1664 #include <$2>
1665 _ACEOF
1666 if ac_fn_c_try_compile "$LINENO"; then :
1667   eval "$3=yes"
1668 else
1669   eval "$3=no"
1670 fi
1671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672 fi
1673 eval ac_res=\$$3
1674                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1676   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678 } # ac_fn_c_check_header_compile
1679
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   rm -f conftest.$ac_objext conftest$ac_exeext
1687   if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_link") 2>conftest.err
1695   ac_status=$?
1696   if test -s conftest.err; then
1697     grep -v '^ *+' conftest.err >conftest.er1
1698     cat conftest.er1 >&5
1699     mv -f conftest.er1 conftest.err
1700   fi
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } && {
1703          test -z "$ac_c_werror_flag" ||
1704          test ! -s conftest.err
1705        } && test -s conftest$ac_exeext && {
1706          test "$cross_compiling" = yes ||
1707          test -x conftest$ac_exeext
1708        }; then :
1709   ac_retval=0
1710 else
1711   $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714         ac_retval=1
1715 fi
1716   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718   # interfere with the next link command; also delete a directory that is
1719   # left behind by Apple's compiler.  We do this before executing the actions.
1720   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722   as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_link
1725
1726 # ac_fn_c_find_intX_t LINENO BITS VAR
1727 # -----------------------------------
1728 # Finds a signed integer type with width BITS, setting cache variable VAR
1729 # accordingly.
1730 ac_fn_c_find_intX_t ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1734 $as_echo_n "checking for int$2_t... " >&6; }
1735 if eval \${$3+:} false; then :
1736   $as_echo_n "(cached) " >&6
1737 else
1738   eval "$3=no"
1739      # Order is important - never check a type that is potentially smaller
1740      # than half of the expected target width.
1741      for ac_type in int$2_t 'int' 'long int' \
1742          'long long int' 'short int' 'signed char'; do
1743        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h.  */
1745 $ac_includes_default
1746              enum { N = $2 / 2 - 1 };
1747 int
1748 main ()
1749 {
1750 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1751 test_array [0] = 0;
1752 return test_array [0];
1753
1754   ;
1755   return 0;
1756 }
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h.  */
1761 $ac_includes_default
1762                 enum { N = $2 / 2 - 1 };
1763 int
1764 main ()
1765 {
1766 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1767                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1768 test_array [0] = 0;
1769 return test_array [0];
1770
1771   ;
1772   return 0;
1773 }
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776
1777 else
1778   case $ac_type in #(
1779   int$2_t) :
1780     eval "$3=yes" ;; #(
1781   *) :
1782     eval "$3=\$ac_type" ;;
1783 esac
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788        if eval test \"x\$"$3"\" = x"no"; then :
1789
1790 else
1791   break
1792 fi
1793      done
1794 fi
1795 eval ac_res=\$$3
1796                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_find_intX_t
1801
1802 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1803 # -------------------------------------------
1804 # Tests whether TYPE exists after having included INCLUDES, setting cache
1805 # variable VAR accordingly.
1806 ac_fn_c_check_type ()
1807 {
1808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812   $as_echo_n "(cached) " >&6
1813 else
1814   eval "$3=no"
1815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h.  */
1817 $4
1818 int
1819 main ()
1820 {
1821 if (sizeof ($2))
1822          return 0;
1823   ;
1824   return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h.  */
1830 $4
1831 int
1832 main ()
1833 {
1834 if (sizeof (($2)))
1835             return 0;
1836   ;
1837   return 0;
1838 }
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841
1842 else
1843   eval "$3=yes"
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 fi
1849 eval ac_res=\$$3
1850                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_type
1855
1856 # ac_fn_c_find_uintX_t LINENO BITS VAR
1857 # ------------------------------------
1858 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1859 # accordingly.
1860 ac_fn_c_find_uintX_t ()
1861 {
1862   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1864 $as_echo_n "checking for uint$2_t... " >&6; }
1865 if eval \${$3+:} false; then :
1866   $as_echo_n "(cached) " >&6
1867 else
1868   eval "$3=no"
1869      # Order is important - never check a type that is potentially smaller
1870      # than half of the expected target width.
1871      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1872          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1873        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h.  */
1875 $ac_includes_default
1876 int
1877 main ()
1878 {
1879 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1880 test_array [0] = 0;
1881 return test_array [0];
1882
1883   ;
1884   return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888   case $ac_type in #(
1889   uint$2_t) :
1890     eval "$3=yes" ;; #(
1891   *) :
1892     eval "$3=\$ac_type" ;;
1893 esac
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896        if eval test \"x\$"$3"\" = x"no"; then :
1897
1898 else
1899   break
1900 fi
1901      done
1902 fi
1903 eval ac_res=\$$3
1904                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908 } # ac_fn_c_find_uintX_t
1909
1910 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1911 # ---------------------------------------------
1912 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1913 # accordingly.
1914 ac_fn_c_check_decl ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   as_decl_name=`echo $2|sed 's/ *(.*//'`
1918   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1920 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1921 if eval \${$3+:} false; then :
1922   $as_echo_n "(cached) " >&6
1923 else
1924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 $4
1927 int
1928 main ()
1929 {
1930 #ifndef $as_decl_name
1931 #ifdef __cplusplus
1932   (void) $as_decl_use;
1933 #else
1934   (void) $as_decl_name;
1935 #endif
1936 #endif
1937
1938   ;
1939   return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   eval "$3=yes"
1944 else
1945   eval "$3=no"
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 fi
1949 eval ac_res=\$$3
1950                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954 } # ac_fn_c_check_decl
1955
1956 # ac_fn_c_check_func LINENO FUNC VAR
1957 # ----------------------------------
1958 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1959 ac_fn_c_check_func ()
1960 {
1961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965   $as_echo_n "(cached) " >&6
1966 else
1967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h.  */
1969 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1971 #define $2 innocuous_$2
1972
1973 /* System header to define __stub macros and hopefully few prototypes,
1974     which can conflict with char $2 (); below.
1975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1976     <limits.h> exists even on freestanding compilers.  */
1977
1978 #ifdef __STDC__
1979 # include <limits.h>
1980 #else
1981 # include <assert.h>
1982 #endif
1983
1984 #undef $2
1985
1986 /* Override any GCC internal prototype to avoid an error.
1987    Use char because int might match the return type of a GCC
1988    builtin and then its argument prototype would still apply.  */
1989 #ifdef __cplusplus
1990 extern "C"
1991 #endif
1992 char $2 ();
1993 /* The GNU C library defines this for functions which it implements
1994     to always fail with ENOSYS.  Some functions are actually named
1995     something starting with __ and the normal name is an alias.  */
1996 #if defined __stub_$2 || defined __stub___$2
1997 choke me
1998 #endif
1999
2000 int
2001 main ()
2002 {
2003 return $2 ();
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_link "$LINENO"; then :
2009   eval "$3=yes"
2010 else
2011   eval "$3=no"
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext \
2014     conftest$ac_exeext conftest.$ac_ext
2015 fi
2016 eval ac_res=\$$3
2017                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_c_check_func
2022
2023 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2024 # ----------------------------------------------------
2025 # Tries to find if the field MEMBER exists in type AGGR, after including
2026 # INCLUDES, setting cache variable VAR accordingly.
2027 ac_fn_c_check_member ()
2028 {
2029   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2031 $as_echo_n "checking for $2.$3... " >&6; }
2032 if eval \${$4+:} false; then :
2033   $as_echo_n "(cached) " >&6
2034 else
2035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $5
2038 int
2039 main ()
2040 {
2041 static $2 ac_aggr;
2042 if (ac_aggr.$3)
2043 return 0;
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049   eval "$4=yes"
2050 else
2051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h.  */
2053 $5
2054 int
2055 main ()
2056 {
2057 static $2 ac_aggr;
2058 if (sizeof ac_aggr.$3)
2059 return 0;
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065   eval "$4=yes"
2066 else
2067   eval "$4=no"
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 eval ac_res=\$$4
2074                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078 } # ac_fn_c_check_member
2079 cat >config.log <<_ACEOF
2080 This file contains any messages produced by compilers while
2081 running configure, to aid debugging if configure makes a mistake.
2082
2083 It was created by bmake $as_me 20211020, which was
2084 generated by GNU Autoconf 2.69.  Invocation command line was
2085
2086   $ $0 $@
2087
2088 _ACEOF
2089 exec 5>>config.log
2090 {
2091 cat <<_ASUNAME
2092 ## --------- ##
2093 ## Platform. ##
2094 ## --------- ##
2095
2096 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2097 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2098 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2099 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2100 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2101
2102 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2103 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2104
2105 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2106 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2107 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2108 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2109 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2110 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2111 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2112
2113 _ASUNAME
2114
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118   IFS=$as_save_IFS
2119   test -z "$as_dir" && as_dir=.
2120     $as_echo "PATH: $as_dir"
2121   done
2122 IFS=$as_save_IFS
2123
2124 } >&5
2125
2126 cat >&5 <<_ACEOF
2127
2128
2129 ## ----------- ##
2130 ## Core tests. ##
2131 ## ----------- ##
2132
2133 _ACEOF
2134
2135
2136 # Keep a trace of the command line.
2137 # Strip out --no-create and --no-recursion so they do not pile up.
2138 # Strip out --silent because we don't want to record it for future runs.
2139 # Also quote any args containing shell meta-characters.
2140 # Make two passes to allow for proper duplicate-argument suppression.
2141 ac_configure_args=
2142 ac_configure_args0=
2143 ac_configure_args1=
2144 ac_must_keep_next=false
2145 for ac_pass in 1 2
2146 do
2147   for ac_arg
2148   do
2149     case $ac_arg in
2150     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2151     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2152     | -silent | --silent | --silen | --sile | --sil)
2153       continue ;;
2154     *\'*)
2155       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2156     esac
2157     case $ac_pass in
2158     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2159     2)
2160       as_fn_append ac_configure_args1 " '$ac_arg'"
2161       if test $ac_must_keep_next = true; then
2162         ac_must_keep_next=false # Got value, back to normal.
2163       else
2164         case $ac_arg in
2165           *=* | --config-cache | -C | -disable-* | --disable-* \
2166           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2167           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2168           | -with-* | --with-* | -without-* | --without-* | --x)
2169             case "$ac_configure_args0 " in
2170               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2171             esac
2172             ;;
2173           -* ) ac_must_keep_next=true ;;
2174         esac
2175       fi
2176       as_fn_append ac_configure_args " '$ac_arg'"
2177       ;;
2178     esac
2179   done
2180 done
2181 { ac_configure_args0=; unset ac_configure_args0;}
2182 { ac_configure_args1=; unset ac_configure_args1;}
2183
2184 # When interrupted or exit'd, cleanup temporary files, and complete
2185 # config.log.  We remove comments because anyway the quotes in there
2186 # would cause problems or look ugly.
2187 # WARNING: Use '\'' to represent an apostrophe within the trap.
2188 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2189 trap 'exit_status=$?
2190   # Save into config.log some information that might help in debugging.
2191   {
2192     echo
2193
2194     $as_echo "## ---------------- ##
2195 ## Cache variables. ##
2196 ## ---------------- ##"
2197     echo
2198     # The following way of writing the cache mishandles newlines in values,
2199 (
2200   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2201     eval ac_val=\$$ac_var
2202     case $ac_val in #(
2203     *${as_nl}*)
2204       case $ac_var in #(
2205       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2206 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2207       esac
2208       case $ac_var in #(
2209       _ | IFS | as_nl) ;; #(
2210       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2211       *) { eval $ac_var=; unset $ac_var;} ;;
2212       esac ;;
2213     esac
2214   done
2215   (set) 2>&1 |
2216     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2217     *${as_nl}ac_space=\ *)
2218       sed -n \
2219         "s/'\''/'\''\\\\'\'''\''/g;
2220           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2221       ;; #(
2222     *)
2223       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2224       ;;
2225     esac |
2226     sort
2227 )
2228     echo
2229
2230     $as_echo "## ----------------- ##
2231 ## Output variables. ##
2232 ## ----------------- ##"
2233     echo
2234     for ac_var in $ac_subst_vars
2235     do
2236       eval ac_val=\$$ac_var
2237       case $ac_val in
2238       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239       esac
2240       $as_echo "$ac_var='\''$ac_val'\''"
2241     done | sort
2242     echo
2243
2244     if test -n "$ac_subst_files"; then
2245       $as_echo "## ------------------- ##
2246 ## File substitutions. ##
2247 ## ------------------- ##"
2248       echo
2249       for ac_var in $ac_subst_files
2250       do
2251         eval ac_val=\$$ac_var
2252         case $ac_val in
2253         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254         esac
2255         $as_echo "$ac_var='\''$ac_val'\''"
2256       done | sort
2257       echo
2258     fi
2259
2260     if test -s confdefs.h; then
2261       $as_echo "## ----------- ##
2262 ## confdefs.h. ##
2263 ## ----------- ##"
2264       echo
2265       cat confdefs.h
2266       echo
2267     fi
2268     test "$ac_signal" != 0 &&
2269       $as_echo "$as_me: caught signal $ac_signal"
2270     $as_echo "$as_me: exit $exit_status"
2271   } >&5
2272   rm -f core *.core core.conftest.* &&
2273     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2274     exit $exit_status
2275 ' 0
2276 for ac_signal in 1 2 13 15; do
2277   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2278 done
2279 ac_signal=0
2280
2281 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2282 rm -f -r conftest* confdefs.h
2283
2284 $as_echo "/* confdefs.h */" > confdefs.h
2285
2286 # Predefined preprocessor variables.
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_NAME "$PACKAGE_NAME"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2294 _ACEOF
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2298 _ACEOF
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_STRING "$PACKAGE_STRING"
2302 _ACEOF
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2306 _ACEOF
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_URL "$PACKAGE_URL"
2310 _ACEOF
2311
2312
2313 # Let the site file select an alternate cache file if it wants to.
2314 # Prefer an explicitly selected file to automatically selected ones.
2315 ac_site_file1=NONE
2316 ac_site_file2=NONE
2317 if test -n "$CONFIG_SITE"; then
2318   # We do not want a PATH search for config.site.
2319   case $CONFIG_SITE in #((
2320     -*)  ac_site_file1=./$CONFIG_SITE;;
2321     */*) ac_site_file1=$CONFIG_SITE;;
2322     *)   ac_site_file1=./$CONFIG_SITE;;
2323   esac
2324 elif test "x$prefix" != xNONE; then
2325   ac_site_file1=$prefix/share/config.site
2326   ac_site_file2=$prefix/etc/config.site
2327 else
2328   ac_site_file1=$ac_default_prefix/share/config.site
2329   ac_site_file2=$ac_default_prefix/etc/config.site
2330 fi
2331 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2332 do
2333   test "x$ac_site_file" = xNONE && continue
2334   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2335     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2336 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2337     sed 's/^/| /' "$ac_site_file" >&5
2338     . "$ac_site_file" \
2339       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 as_fn_error $? "failed to load site script $ac_site_file
2342 See \`config.log' for more details" "$LINENO" 5; }
2343   fi
2344 done
2345
2346 if test -r "$cache_file"; then
2347   # Some versions of bash will fail to source /dev/null (special files
2348   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2349   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2350     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2351 $as_echo "$as_me: loading cache $cache_file" >&6;}
2352     case $cache_file in
2353       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2354       *)                      . "./$cache_file";;
2355     esac
2356   fi
2357 else
2358   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2359 $as_echo "$as_me: creating cache $cache_file" >&6;}
2360   >$cache_file
2361 fi
2362
2363 # Check that the precious variables saved in the cache have kept the same
2364 # value.
2365 ac_cache_corrupted=false
2366 for ac_var in $ac_precious_vars; do
2367   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2368   eval ac_new_set=\$ac_env_${ac_var}_set
2369   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2370   eval ac_new_val=\$ac_env_${ac_var}_value
2371   case $ac_old_set,$ac_new_set in
2372     set,)
2373       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2374 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2375       ac_cache_corrupted=: ;;
2376     ,set)
2377       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2378 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2379       ac_cache_corrupted=: ;;
2380     ,);;
2381     *)
2382       if test "x$ac_old_val" != "x$ac_new_val"; then
2383         # differences in whitespace do not lead to failure.
2384         ac_old_val_w=`echo x $ac_old_val`
2385         ac_new_val_w=`echo x $ac_new_val`
2386         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2387           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2388 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2389           ac_cache_corrupted=:
2390         else
2391           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2392 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2393           eval $ac_var=\$ac_old_val
2394         fi
2395         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2396 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2397         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2398 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2399       fi;;
2400   esac
2401   # Pass precious variables to config.status.
2402   if test "$ac_new_set" = set; then
2403     case $ac_new_val in
2404     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2405     *) ac_arg=$ac_var=$ac_new_val ;;
2406     esac
2407     case " $ac_configure_args " in
2408       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2409       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2410     esac
2411   fi
2412 done
2413 if $ac_cache_corrupted; then
2414   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2417 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2418   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2419 fi
2420 ## -------------------- ##
2421 ## Main body of script. ##
2422 ## -------------------- ##
2423
2424 ac_ext=c
2425 ac_cpp='$CPP $CPPFLAGS'
2426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429
2430
2431 ac_config_headers="$ac_config_headers config.h"
2432
2433
2434 case "$srcdir" in
2435 /*) ;;
2436 *) srcdir=`cd $srcdir && 'pwd'`;;
2437 esac
2438
2439 . $srcdir/VERSION
2440 OS=`uname -s`
2441
2442 use_defshell() {
2443         case "$defshell_path$DEFSHELL_INDEX" in
2444         "") ;;
2445         *) return 0;;
2446         esac
2447         case "$1" in
2448         *csh) # we must be desperate
2449                 DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;;
2450         *ksh)
2451                 DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
2452         sh|/bin/sh)
2453                 DEFSHELL_INDEX=DEFSHELL_INDEX_SH;;
2454         *)      DEFSHELL_INDEX=DEFSHELL_INDEX_CUSTOM
2455                 defshell_path=$1
2456                 ;;
2457         esac
2458         case "$1" in
2459         /bin/*) ;;
2460         */*) defshell_path=$1;;
2461         esac
2462 }
2463
2464 # Check whether --with-defshell was given.
2465 if test "${with_defshell+set}" = set; then :
2466   withval=$with_defshell; case "${withval}" in
2467 yes)   as_fn_error $? "bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
2468 no)    ;;
2469 *)     use_defshell $with_defshell;;
2470 esac
2471 fi
2472
2473 case "$OS" in
2474 CYGWIN*|MINGW*) use_makefile=no;;
2475 *) use_makefile=yes;;
2476 esac
2477
2478 # Check whether --with-makefile was given.
2479 if test "${with_makefile+set}" = set; then :
2480   withval=$with_makefile; case "${withval}" in
2481 yes|no) use_makefile=${withval};;
2482 *) as_fn_error $? "bad value ${withval} given for makefile" "$LINENO" 5 ;;
2483 esac
2484 fi
2485
2486 use_meta=yes
2487
2488 # Check whether --with-meta was given.
2489 if test "${with_meta+set}" = set; then :
2490   withval=$with_meta; case "${withval}" in
2491 yes|no) use_meta=${withval};;
2492 *) as_fn_error $? "bad value ${withval} given for meta" "$LINENO" 5 ;;
2493 esac
2494 fi
2495
2496
2497 # Check whether --with-filemon was given.
2498 if test "${with_filemon+set}" = set; then :
2499   withval=$with_filemon;  case "/${withval}" in
2500 /no) use_filemon=no;;
2501 /*trace) filemon_h=no use_filemon="${withval}";;
2502 */filemon.h) filemon_h="${withval}";;
2503 */filemon*) filemon_h="${withval}/filemon.h";;
2504 *) as_fn_error $? "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2505 esac
2506 case "$use_filemon,$filemon_h" in
2507 ,*.h) use_filemon=dev;;
2508 esac
2509
2510 else
2511
2512 case "$OS" in
2513 NetBSD) filemon_h=no use_filemon=ktrace;;
2514 *)
2515     for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
2516     do
2517         for x in "/$OS" ""
2518         do
2519             filemon_h="$d$x/filemon.h"
2520             test -s "$filemon_h" && break
2521         done
2522         test -s "$filemon_h" && { use_filemon=dev; break; }
2523     done
2524     ;;
2525 esac
2526 use_filemon=${use_filemon:-no}
2527 case "$use_filemon" in
2528 dev) ;;
2529 *) filemon_h=no;;
2530 esac
2531
2532 fi
2533
2534 case "$use_meta" in
2535 yes)
2536         case "$use_filemon" in
2537         no) ;;
2538         *) echo "Using: filemon_${use_filemon}.c" >&6;;
2539         esac
2540         ;;
2541 esac
2542 case "$OS" in
2543 Minix)  CPPFLAGS="${CPPFLAGS} -D_NETBSD_SOURCE"
2544         test -x /usr/pkg/bin/clang && CC=${CC:-clang}
2545         ;;
2546 SCO_SV) # /bin/sh is not usable
2547         ALT_DEF_SHELLS="/bin/lsh /usr/bin/bash /bin/ksh"
2548         CPPFLAGS="${CPPFLAGS} -DFORCE_USE_SHELL"
2549         ;;
2550 esac
2551 echo $ECHO_N "checking whether system has timezone Europe/Berlin... $ECHO_C" >&6
2552 if test -f /usr/share/zoneinfo/Europe/Berlin; then
2553         echo yes  >&6
2554         # seems a safe bet
2555         UTC_1=Europe/Berlin
2556 else
2557         utcH=`TZ=UTC date +%H 2> /dev/null`
2558         utc_1H=`TZ=UTC-1 date +%H 2> /dev/null`
2559         if test ${utcH-0} -lt ${utc_1H-0}; then
2560                 UTC_1=UTC-1
2561                 echo no, using UTC-1 >&6
2562         else
2563                 echo no >&6
2564         fi
2565 fi
2566 oldPATH=$PATH
2567 for d in /usr/gnu/bin
2568 do
2569         test -d $d || continue
2570         PATH=$PATH:$d
2571 done
2572 export PATH
2573 ac_ext=c
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578 if test -n "$ac_tool_prefix"; then
2579   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2580 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_CC+:} false; then :
2584   $as_echo_n "(cached) " >&6
2585 else
2586   if test -n "$CC"; then
2587   ac_cv_prog_CC="$CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594     for ac_exec_ext in '' $ac_executable_extensions; do
2595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598     break 2
2599   fi
2600 done
2601   done
2602 IFS=$as_save_IFS
2603
2604 fi
2605 fi
2606 CC=$ac_cv_prog_CC
2607 if test -n "$CC"; then
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2609 $as_echo "$CC" >&6; }
2610 else
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2613 fi
2614
2615
2616 fi
2617 if test -z "$ac_cv_prog_CC"; then
2618   ac_ct_CC=$CC
2619   # Extract the first word of "gcc", so it can be a program name with args.
2620 set dummy gcc; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   if test -n "$ac_ct_CC"; then
2627   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634     for ac_exec_ext in '' $ac_executable_extensions; do
2635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636     ac_cv_prog_ac_ct_CC="gcc"
2637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641   done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2647 if test -n "$ac_ct_CC"; then
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2649 $as_echo "$ac_ct_CC" >&6; }
2650 else
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653 fi
2654
2655   if test "x$ac_ct_CC" = x; then
2656     CC=""
2657   else
2658     case $cross_compiling:$ac_tool_warned in
2659 yes:)
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2662 ac_tool_warned=yes ;;
2663 esac
2664     CC=$ac_ct_CC
2665   fi
2666 else
2667   CC="$ac_cv_prog_CC"
2668 fi
2669
2670 if test -z "$CC"; then
2671           if test -n "$ac_tool_prefix"; then
2672     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}cc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_CC+:} false; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   if test -n "$CC"; then
2680   ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685   IFS=$as_save_IFS
2686   test -z "$as_dir" && as_dir=.
2687     for ac_exec_ext in '' $ac_executable_extensions; do
2688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689     ac_cv_prog_CC="${ac_tool_prefix}cc"
2690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691     break 2
2692   fi
2693 done
2694   done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 CC=$ac_cv_prog_CC
2700 if test -n "$CC"; then
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2703 else
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708
2709   fi
2710 fi
2711 if test -z "$CC"; then
2712   # Extract the first word of "cc", so it can be a program name with args.
2713 set dummy cc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717   $as_echo_n "(cached) " >&6
2718 else
2719   if test -n "$CC"; then
2720   ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722   ac_prog_rejected=no
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726   IFS=$as_save_IFS
2727   test -z "$as_dir" && as_dir=.
2728     for ac_exec_ext in '' $ac_executable_extensions; do
2729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2731        ac_prog_rejected=yes
2732        continue
2733      fi
2734     ac_cv_prog_CC="cc"
2735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739   done
2740 IFS=$as_save_IFS
2741
2742 if test $ac_prog_rejected = yes; then
2743   # We found a bogon in the path, so make sure we never use it.
2744   set dummy $ac_cv_prog_CC
2745   shift
2746   if test $# != 0; then
2747     # We chose a different compiler from the bogus one.
2748     # However, it has the same basename, so the bogon will be chosen
2749     # first if we set CC to just the basename; use the full file name.
2750     shift
2751     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2752   fi
2753 fi
2754 fi
2755 fi
2756 CC=$ac_cv_prog_CC
2757 if test -n "$CC"; then
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2760 else
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2763 fi
2764
2765
2766 fi
2767 if test -z "$CC"; then
2768   if test -n "$ac_tool_prefix"; then
2769   for ac_prog in cl.exe
2770   do
2771     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_CC+:} false; then :
2776   $as_echo_n "(cached) " >&6
2777 else
2778   if test -n "$CC"; then
2779   ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786     for ac_exec_ext in '' $ac_executable_extensions; do
2787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793   done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2802 else
2803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808     test -n "$CC" && break
2809   done
2810 fi
2811 if test -z "$CC"; then
2812   ac_ct_CC=$CC
2813   for ac_prog in cl.exe
2814 do
2815   # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2820   $as_echo_n "(cached) " >&6
2821 else
2822   if test -n "$ac_ct_CC"; then
2823   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830     for ac_exec_ext in '' $ac_executable_extensions; do
2831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832     ac_cv_prog_ac_ct_CC="$ac_prog"
2833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837   done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843 if test -n "$ac_ct_CC"; then
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2845 $as_echo "$ac_ct_CC" >&6; }
2846 else
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852   test -n "$ac_ct_CC" && break
2853 done
2854
2855   if test "x$ac_ct_CC" = x; then
2856     CC=""
2857   else
2858     case $cross_compiling:$ac_tool_warned in
2859 yes:)
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864     CC=$ac_ct_CC
2865   fi
2866 fi
2867
2868 fi
2869
2870
2871 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873 as_fn_error $? "no acceptable C compiler found in \$PATH
2874 See \`config.log' for more details" "$LINENO" 5; }
2875
2876 # Provide some information about the compiler.
2877 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2878 set X $ac_compile
2879 ac_compiler=$2
2880 for ac_option in --version -v -V -qversion; do
2881   { { ac_try="$ac_compiler $ac_option >&5"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2887 $as_echo "$ac_try_echo"; } >&5
2888   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2889   ac_status=$?
2890   if test -s conftest.err; then
2891     sed '10a\
2892 ... rest of stderr output deleted ...
2893          10q' conftest.err >conftest.er1
2894     cat conftest.er1 >&5
2895   fi
2896   rm -f conftest.er1 conftest.err
2897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2898   test $ac_status = 0; }
2899 done
2900
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h.  */
2903
2904 int
2905 main ()
2906 {
2907
2908   ;
2909   return 0;
2910 }
2911 _ACEOF
2912 ac_clean_files_save=$ac_clean_files
2913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2914 # Try to create an executable without -o first, disregard a.out.
2915 # It will help us diagnose broken compilers, and finding out an intuition
2916 # of exeext.
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2918 $as_echo_n "checking whether the C compiler works... " >&6; }
2919 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2920
2921 # The possible output files:
2922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2923
2924 ac_rmfiles=
2925 for ac_file in $ac_files
2926 do
2927   case $ac_file in
2928     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2929     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2930   esac
2931 done
2932 rm -f $ac_rmfiles
2933
2934 if { { ac_try="$ac_link_default"
2935 case "(($ac_try" in
2936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937   *) ac_try_echo=$ac_try;;
2938 esac
2939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2940 $as_echo "$ac_try_echo"; } >&5
2941   (eval "$ac_link_default") 2>&5
2942   ac_status=$?
2943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2944   test $ac_status = 0; }; then :
2945   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2947 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2948 # so that the user can short-circuit this test for compilers unknown to
2949 # Autoconf.
2950 for ac_file in $ac_files ''
2951 do
2952   test -f "$ac_file" || continue
2953   case $ac_file in
2954     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2955         ;;
2956     [ab].out )
2957         # We found the default executable, but exeext='' is most
2958         # certainly right.
2959         break;;
2960     *.* )
2961         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2962         then :; else
2963            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2964         fi
2965         # We set ac_cv_exeext here because the later test for it is not
2966         # safe: cross compilers may not add the suffix if given an `-o'
2967         # argument, so we may need to know it at that point already.
2968         # Even if this section looks crufty: it has the advantage of
2969         # actually working.
2970         break;;
2971     * )
2972         break;;
2973   esac
2974 done
2975 test "$ac_cv_exeext" = no && ac_cv_exeext=
2976
2977 else
2978   ac_file=''
2979 fi
2980 if test -z "$ac_file"; then :
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 $as_echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 as_fn_error 77 "C compiler cannot create executables
2989 See \`config.log' for more details" "$LINENO" 5; }
2990 else
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2992 $as_echo "yes" >&6; }
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2995 $as_echo_n "checking for C compiler default output file name... " >&6; }
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2997 $as_echo "$ac_file" >&6; }
2998 ac_exeext=$ac_cv_exeext
2999
3000 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3001 ac_clean_files=$ac_clean_files_save
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3003 $as_echo_n "checking for suffix of executables... " >&6; }
3004 if { { ac_try="$ac_link"
3005 case "(($ac_try" in
3006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007   *) ac_try_echo=$ac_try;;
3008 esac
3009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010 $as_echo "$ac_try_echo"; } >&5
3011   (eval "$ac_link") 2>&5
3012   ac_status=$?
3013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014   test $ac_status = 0; }; then :
3015   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3016 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3017 # work properly (i.e., refer to `conftest.exe'), while it won't with
3018 # `rm'.
3019 for ac_file in conftest.exe conftest conftest.*; do
3020   test -f "$ac_file" || continue
3021   case $ac_file in
3022     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3023     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3024           break;;
3025     * ) break;;
3026   esac
3027 done
3028 else
3029   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3032 See \`config.log' for more details" "$LINENO" 5; }
3033 fi
3034 rm -f conftest conftest$ac_cv_exeext
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3036 $as_echo "$ac_cv_exeext" >&6; }
3037
3038 rm -f conftest.$ac_ext
3039 EXEEXT=$ac_cv_exeext
3040 ac_exeext=$EXEEXT
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h.  */
3043 #include <stdio.h>
3044 int
3045 main ()
3046 {
3047 FILE *f = fopen ("conftest.out", "w");
3048  return ferror (f) || fclose (f) != 0;
3049
3050   ;
3051   return 0;
3052 }
3053 _ACEOF
3054 ac_clean_files="$ac_clean_files conftest.out"
3055 # Check that the compiler produces executables we can run.  If not, either
3056 # the compiler is broken, or we cross compile.
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3058 $as_echo_n "checking whether we are cross compiling... " >&6; }
3059 if test "$cross_compiling" != yes; then
3060   { { ac_try="$ac_link"
3061 case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067   (eval "$ac_link") 2>&5
3068   ac_status=$?
3069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070   test $ac_status = 0; }
3071   if { ac_try='./conftest$ac_cv_exeext'
3072   { { case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078   (eval "$ac_try") 2>&5
3079   ac_status=$?
3080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081   test $ac_status = 0; }; }; then
3082     cross_compiling=no
3083   else
3084     if test "$cross_compiling" = maybe; then
3085         cross_compiling=yes
3086     else
3087         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 as_fn_error $? "cannot run C compiled programs.
3090 If you meant to cross compile, use \`--host'.
3091 See \`config.log' for more details" "$LINENO" 5; }
3092     fi
3093   fi
3094 fi
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3096 $as_echo "$cross_compiling" >&6; }
3097
3098 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3099 ac_clean_files=$ac_clean_files_save
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3101 $as_echo_n "checking for suffix of object files... " >&6; }
3102 if ${ac_cv_objext+:} false; then :
3103   $as_echo_n "(cached) " >&6
3104 else
3105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.o conftest.obj
3117 if { { ac_try="$ac_compile"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 $as_echo "$ac_try_echo"; } >&5
3124   (eval "$ac_compile") 2>&5
3125   ac_status=$?
3126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127   test $ac_status = 0; }; then :
3128   for ac_file in conftest.o conftest.obj conftest.*; do
3129   test -f "$ac_file" || continue;
3130   case $ac_file in
3131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3132     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3133        break;;
3134   esac
3135 done
3136 else
3137   $as_echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "cannot compute suffix of object files: cannot compile
3143 See \`config.log' for more details" "$LINENO" 5; }
3144 fi
3145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3148 $as_echo "$ac_cv_objext" >&6; }
3149 OBJEXT=$ac_cv_objext
3150 ac_objext=$OBJEXT
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3152 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3153 if ${ac_cv_c_compiler_gnu+:} false; then :
3154   $as_echo_n "(cached) " >&6
3155 else
3156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162 #ifndef __GNUC__
3163        choke me
3164 #endif
3165
3166   ;
3167   return 0;
3168 }
3169 _ACEOF
3170 if ac_fn_c_try_compile "$LINENO"; then :
3171   ac_compiler_gnu=yes
3172 else
3173   ac_compiler_gnu=no
3174 fi
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3177
3178 fi
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3180 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3181 if test $ac_compiler_gnu = yes; then
3182   GCC=yes
3183 else
3184   GCC=
3185 fi
3186 ac_test_CFLAGS=${CFLAGS+set}
3187 ac_save_CFLAGS=$CFLAGS
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3189 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3190 if ${ac_cv_prog_cc_g+:} false; then :
3191   $as_echo_n "(cached) " >&6
3192 else
3193   ac_save_c_werror_flag=$ac_c_werror_flag
3194    ac_c_werror_flag=yes
3195    ac_cv_prog_cc_g=no
3196    CFLAGS="-g"
3197    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h.  */
3199
3200 int
3201 main ()
3202 {
3203
3204   ;
3205   return 0;
3206 }
3207 _ACEOF
3208 if ac_fn_c_try_compile "$LINENO"; then :
3209   ac_cv_prog_cc_g=yes
3210 else
3211   CFLAGS=""
3212       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 if ac_fn_c_try_compile "$LINENO"; then :
3224
3225 else
3226   ac_c_werror_flag=$ac_save_c_werror_flag
3227          CFLAGS="-g"
3228          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h.  */
3230
3231 int
3232 main ()
3233 {
3234
3235   ;
3236   return 0;
3237 }
3238 _ACEOF
3239 if ac_fn_c_try_compile "$LINENO"; then :
3240   ac_cv_prog_cc_g=yes
3241 fi
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 fi
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 fi
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247    ac_c_werror_flag=$ac_save_c_werror_flag
3248 fi
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3250 $as_echo "$ac_cv_prog_cc_g" >&6; }
3251 if test "$ac_test_CFLAGS" = set; then
3252   CFLAGS=$ac_save_CFLAGS
3253 elif test $ac_cv_prog_cc_g = yes; then
3254   if test "$GCC" = yes; then
3255     CFLAGS="-g -O2"
3256   else
3257     CFLAGS="-g"
3258   fi
3259 else
3260   if test "$GCC" = yes; then
3261     CFLAGS="-O2"
3262   else
3263     CFLAGS=
3264   fi
3265 fi
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3267 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3268 if ${ac_cv_prog_cc_c89+:} false; then :
3269   $as_echo_n "(cached) " >&6
3270 else
3271   ac_cv_prog_cc_c89=no
3272 ac_save_CC=$CC
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h.  */
3275 #include <stdarg.h>
3276 #include <stdio.h>
3277 struct stat;
3278 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3279 struct buf { int x; };
3280 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3281 static char *e (p, i)
3282      char **p;
3283      int i;
3284 {
3285   return p[i];
3286 }
3287 static char *f (char * (*g) (char **, int), char **p, ...)
3288 {
3289   char *s;
3290   va_list v;
3291   va_start (v,p);
3292   s = g (p, va_arg (v,int));
3293   va_end (v);
3294   return s;
3295 }
3296
3297 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3298    function prototypes and stuff, but not '\xHH' hex character constants.
3299    These don't provoke an error unfortunately, instead are silently treated
3300    as 'x'.  The following induces an error, until -std is added to get
3301    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3302    array size at least.  It's necessary to write '\x00'==0 to get something
3303    that's true only with -std.  */
3304 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3305
3306 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3307    inside strings and character constants.  */
3308 #define FOO(x) 'x'
3309 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3310
3311 int test (int i, double x);
3312 struct s1 {int (*f) (int a);};
3313 struct s2 {int (*f) (double a);};
3314 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3315 int argc;
3316 char **argv;
3317 int
3318 main ()
3319 {
3320 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3326         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3327 do
3328   CC="$ac_save_CC $ac_arg"
3329   if ac_fn_c_try_compile "$LINENO"; then :
3330   ac_cv_prog_cc_c89=$ac_arg
3331 fi
3332 rm -f core conftest.err conftest.$ac_objext
3333   test "x$ac_cv_prog_cc_c89" != "xno" && break
3334 done
3335 rm -f conftest.$ac_ext
3336 CC=$ac_save_CC
3337
3338 fi
3339 # AC_CACHE_VAL
3340 case "x$ac_cv_prog_cc_c89" in
3341   x)
3342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3343 $as_echo "none needed" >&6; } ;;
3344   xno)
3345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3346 $as_echo "unsupported" >&6; } ;;
3347   *)
3348     CC="$CC $ac_cv_prog_cc_c89"
3349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3350 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3351 esac
3352 if test "x$ac_cv_prog_cc_c89" != xno; then :
3353
3354 fi
3355
3356 ac_ext=c
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361
3362
3363 ac_ext=c
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3369 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3370 # On Suns, sometimes $CPP names a directory.
3371 if test -n "$CPP" && test -d "$CPP"; then
3372   CPP=
3373 fi
3374 if test -z "$CPP"; then
3375   if ${ac_cv_prog_CPP+:} false; then :
3376   $as_echo_n "(cached) " >&6
3377 else
3378       # Double quotes because CPP needs to be expanded
3379     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3380     do
3381       ac_preproc_ok=false
3382 for ac_c_preproc_warn_flag in '' yes
3383 do
3384   # Use a header file that comes with gcc, so configuring glibc
3385   # with a fresh cross-compiler works.
3386   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3387   # <limits.h> exists even on freestanding compilers.
3388   # On the NeXT, cc -E runs the code through the compiler's parser,
3389   # not just through cpp. "Syntax error" is here to catch this case.
3390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h.  */
3392 #ifdef __STDC__
3393 # include <limits.h>
3394 #else
3395 # include <assert.h>
3396 #endif
3397                      Syntax error
3398 _ACEOF
3399 if ac_fn_c_try_cpp "$LINENO"; then :
3400
3401 else
3402   # Broken: fails on valid input.
3403 continue
3404 fi
3405 rm -f conftest.err conftest.i conftest.$ac_ext
3406
3407   # OK, works on sane cases.  Now check whether nonexistent headers
3408   # can be detected and how.
3409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h.  */
3411 #include <ac_nonexistent.h>
3412 _ACEOF
3413 if ac_fn_c_try_cpp "$LINENO"; then :
3414   # Broken: success on invalid input.
3415 continue
3416 else
3417   # Passes both tests.
3418 ac_preproc_ok=:
3419 break
3420 fi
3421 rm -f conftest.err conftest.i conftest.$ac_ext
3422
3423 done
3424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3425 rm -f conftest.i conftest.err conftest.$ac_ext
3426 if $ac_preproc_ok; then :
3427   break
3428 fi
3429
3430     done
3431     ac_cv_prog_CPP=$CPP
3432
3433 fi
3434   CPP=$ac_cv_prog_CPP
3435 else
3436   ac_cv_prog_CPP=$CPP
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3439 $as_echo "$CPP" >&6; }
3440 ac_preproc_ok=false
3441 for ac_c_preproc_warn_flag in '' yes
3442 do
3443   # Use a header file that comes with gcc, so configuring glibc
3444   # with a fresh cross-compiler works.
3445   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3446   # <limits.h> exists even on freestanding compilers.
3447   # On the NeXT, cc -E runs the code through the compiler's parser,
3448   # not just through cpp. "Syntax error" is here to catch this case.
3449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h.  */
3451 #ifdef __STDC__
3452 # include <limits.h>
3453 #else
3454 # include <assert.h>
3455 #endif
3456                      Syntax error
3457 _ACEOF
3458 if ac_fn_c_try_cpp "$LINENO"; then :
3459
3460 else
3461   # Broken: fails on valid input.
3462 continue
3463 fi
3464 rm -f conftest.err conftest.i conftest.$ac_ext
3465
3466   # OK, works on sane cases.  Now check whether nonexistent headers
3467   # can be detected and how.
3468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h.  */
3470 #include <ac_nonexistent.h>
3471 _ACEOF
3472 if ac_fn_c_try_cpp "$LINENO"; then :
3473   # Broken: success on invalid input.
3474 continue
3475 else
3476   # Passes both tests.
3477 ac_preproc_ok=:
3478 break
3479 fi
3480 rm -f conftest.err conftest.i conftest.$ac_ext
3481
3482 done
3483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484 rm -f conftest.i conftest.err conftest.$ac_ext
3485 if $ac_preproc_ok; then :
3486
3487 else
3488   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 fi
3493
3494 ac_ext=c
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499
3500
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3502 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3503 if ${ac_cv_path_GREP+:} false; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   if test -z "$GREP"; then
3507   ac_path_GREP_found=false
3508   # Loop through the user's path and test for each of PROGNAME-LIST
3509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3511 do
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514     for ac_prog in grep ggrep; do
3515     for ac_exec_ext in '' $ac_executable_extensions; do
3516       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3517       as_fn_executable_p "$ac_path_GREP" || continue
3518 # Check for GNU ac_path_GREP and select it if it is found.
3519   # Check for GNU $ac_path_GREP
3520 case `"$ac_path_GREP" --version 2>&1` in
3521 *GNU*)
3522   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3523 *)
3524   ac_count=0
3525   $as_echo_n 0123456789 >"conftest.in"
3526   while :
3527   do
3528     cat "conftest.in" "conftest.in" >"conftest.tmp"
3529     mv "conftest.tmp" "conftest.in"
3530     cp "conftest.in" "conftest.nl"
3531     $as_echo 'GREP' >> "conftest.nl"
3532     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3533     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3534     as_fn_arith $ac_count + 1 && ac_count=$as_val
3535     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3536       # Best one so far, save it but keep looking for a better one
3537       ac_cv_path_GREP="$ac_path_GREP"
3538       ac_path_GREP_max=$ac_count
3539     fi
3540     # 10*(2^10) chars as input seems more than enough
3541     test $ac_count -gt 10 && break
3542   done
3543   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3544 esac
3545
3546       $ac_path_GREP_found && break 3
3547     done
3548   done
3549   done
3550 IFS=$as_save_IFS
3551   if test -z "$ac_cv_path_GREP"; then
3552     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3553   fi
3554 else
3555   ac_cv_path_GREP=$GREP
3556 fi
3557
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3560 $as_echo "$ac_cv_path_GREP" >&6; }
3561  GREP="$ac_cv_path_GREP"
3562
3563
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3565 $as_echo_n "checking for egrep... " >&6; }
3566 if ${ac_cv_path_EGREP+:} false; then :
3567   $as_echo_n "(cached) " >&6
3568 else
3569   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3570    then ac_cv_path_EGREP="$GREP -E"
3571    else
3572      if test -z "$EGREP"; then
3573   ac_path_EGREP_found=false
3574   # Loop through the user's path and test for each of PROGNAME-LIST
3575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3577 do
3578   IFS=$as_save_IFS
3579   test -z "$as_dir" && as_dir=.
3580     for ac_prog in egrep; do
3581     for ac_exec_ext in '' $ac_executable_extensions; do
3582       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3583       as_fn_executable_p "$ac_path_EGREP" || continue
3584 # Check for GNU ac_path_EGREP and select it if it is found.
3585   # Check for GNU $ac_path_EGREP
3586 case `"$ac_path_EGREP" --version 2>&1` in
3587 *GNU*)
3588   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3589 *)
3590   ac_count=0
3591   $as_echo_n 0123456789 >"conftest.in"
3592   while :
3593   do
3594     cat "conftest.in" "conftest.in" >"conftest.tmp"
3595     mv "conftest.tmp" "conftest.in"
3596     cp "conftest.in" "conftest.nl"
3597     $as_echo 'EGREP' >> "conftest.nl"
3598     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3599     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3600     as_fn_arith $ac_count + 1 && ac_count=$as_val
3601     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3602       # Best one so far, save it but keep looking for a better one
3603       ac_cv_path_EGREP="$ac_path_EGREP"
3604       ac_path_EGREP_max=$ac_count
3605     fi
3606     # 10*(2^10) chars as input seems more than enough
3607     test $ac_count -gt 10 && break
3608   done
3609   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3610 esac
3611
3612       $ac_path_EGREP_found && break 3
3613     done
3614   done
3615   done
3616 IFS=$as_save_IFS
3617   if test -z "$ac_cv_path_EGREP"; then
3618     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3619   fi
3620 else
3621   ac_cv_path_EGREP=$EGREP
3622 fi
3623
3624    fi
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3627 $as_echo "$ac_cv_path_EGREP" >&6; }
3628  EGREP="$ac_cv_path_EGREP"
3629
3630
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3632 $as_echo_n "checking for ANSI C header files... " >&6; }
3633 if ${ac_cv_header_stdc+:} false; then :
3634   $as_echo_n "(cached) " >&6
3635 else
3636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h.  */
3638 #include <stdlib.h>
3639 #include <stdarg.h>
3640 #include <string.h>
3641 #include <float.h>
3642
3643 int
3644 main ()
3645 {
3646
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652   ac_cv_header_stdc=yes
3653 else
3654   ac_cv_header_stdc=no
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657
3658 if test $ac_cv_header_stdc = yes; then
3659   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h.  */
3662 #include <string.h>
3663
3664 _ACEOF
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666   $EGREP "memchr" >/dev/null 2>&1; then :
3667
3668 else
3669   ac_cv_header_stdc=no
3670 fi
3671 rm -f conftest*
3672
3673 fi
3674
3675 if test $ac_cv_header_stdc = yes; then
3676   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h.  */
3679 #include <stdlib.h>
3680
3681 _ACEOF
3682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683   $EGREP "free" >/dev/null 2>&1; then :
3684
3685 else
3686   ac_cv_header_stdc=no
3687 fi
3688 rm -f conftest*
3689
3690 fi
3691
3692 if test $ac_cv_header_stdc = yes; then
3693   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3694   if test "$cross_compiling" = yes; then :
3695   :
3696 else
3697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h.  */
3699 #include <ctype.h>
3700 #include <stdlib.h>
3701 #if ((' ' & 0x0FF) == 0x020)
3702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3704 #else
3705 # define ISLOWER(c) \
3706                    (('a' <= (c) && (c) <= 'i') \
3707                      || ('j' <= (c) && (c) <= 'r') \
3708                      || ('s' <= (c) && (c) <= 'z'))
3709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3710 #endif
3711
3712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3713 int
3714 main ()
3715 {
3716   int i;
3717   for (i = 0; i < 256; i++)
3718     if (XOR (islower (i), ISLOWER (i))
3719         || toupper (i) != TOUPPER (i))
3720       return 2;
3721   return 0;
3722 }
3723 _ACEOF
3724 if ac_fn_c_try_run "$LINENO"; then :
3725
3726 else
3727   ac_cv_header_stdc=no
3728 fi
3729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3730   conftest.$ac_objext conftest.beam conftest.$ac_ext
3731 fi
3732
3733 fi
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3736 $as_echo "$ac_cv_header_stdc" >&6; }
3737 if test $ac_cv_header_stdc = yes; then
3738
3739 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3740
3741 fi
3742
3743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3744 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3745                   inttypes.h stdint.h unistd.h
3746 do :
3747   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3748 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3749 "
3750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3751   cat >>confdefs.h <<_ACEOF
3752 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3753 _ACEOF
3754
3755 fi
3756
3757 done
3758
3759
3760
3761   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3762 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3763   MINIX=yes
3764 else
3765   MINIX=
3766 fi
3767
3768
3769   if test "$MINIX" = yes; then
3770
3771 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3772
3773
3774 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3775
3776
3777 $as_echo "#define _MINIX 1" >>confdefs.h
3778
3779   fi
3780
3781
3782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3783 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3784 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3785   $as_echo_n "(cached) " >&6
3786 else
3787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h.  */
3789
3790 #         define __EXTENSIONS__ 1
3791           $ac_includes_default
3792 int
3793 main ()
3794 {
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801   ac_cv_safe_to_define___extensions__=yes
3802 else
3803   ac_cv_safe_to_define___extensions__=no
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3808 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3809   test $ac_cv_safe_to_define___extensions__ = yes &&
3810     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3811
3812   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3813
3814   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3815
3816   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3817
3818   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3819
3820
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 if test -n "$ac_tool_prefix"; then
3827   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if ${ac_cv_prog_CC+:} false; then :
3832   $as_echo_n "(cached) " >&6
3833 else
3834   if test -n "$CC"; then
3835   ac_cv_prog_CC="$CC" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840   IFS=$as_save_IFS
3841   test -z "$as_dir" && as_dir=.
3842     for ac_exec_ext in '' $ac_executable_extensions; do
3843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846     break 2
3847   fi
3848 done
3849   done
3850 IFS=$as_save_IFS
3851
3852 fi
3853 fi
3854 CC=$ac_cv_prog_CC
3855 if test -n "$CC"; then
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 $as_echo "$CC" >&6; }
3858 else
3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3861 fi
3862
3863
3864 fi
3865 if test -z "$ac_cv_prog_CC"; then
3866   ac_ct_CC=$CC
3867   # Extract the first word of "gcc", so it can be a program name with args.
3868 set dummy gcc; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3872   $as_echo_n "(cached) " >&6
3873 else
3874   if test -n "$ac_ct_CC"; then
3875   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880   IFS=$as_save_IFS
3881   test -z "$as_dir" && as_dir=.
3882     for ac_exec_ext in '' $ac_executable_extensions; do
3883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884     ac_cv_prog_ac_ct_CC="gcc"
3885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886     break 2
3887   fi
3888 done
3889   done
3890 IFS=$as_save_IFS
3891
3892 fi
3893 fi
3894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3895 if test -n "$ac_ct_CC"; then
3896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3897 $as_echo "$ac_ct_CC" >&6; }
3898 else
3899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 fi
3902
3903   if test "x$ac_ct_CC" = x; then
3904     CC=""
3905   else
3906     case $cross_compiling:$ac_tool_warned in
3907 yes:)
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910 ac_tool_warned=yes ;;
3911 esac
3912     CC=$ac_ct_CC
3913   fi
3914 else
3915   CC="$ac_cv_prog_CC"
3916 fi
3917
3918 if test -z "$CC"; then
3919           if test -n "$ac_tool_prefix"; then
3920     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}cc; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_CC+:} false; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   if test -n "$CC"; then
3928   ac_cv_prog_CC="$CC" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935     for ac_exec_ext in '' $ac_executable_extensions; do
3936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937     ac_cv_prog_CC="${ac_tool_prefix}cc"
3938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942   done
3943 IFS=$as_save_IFS
3944
3945 fi
3946 fi
3947 CC=$ac_cv_prog_CC
3948 if test -n "$CC"; then
3949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 $as_echo "$CC" >&6; }
3951 else
3952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 fi
3955
3956
3957   fi
3958 fi
3959 if test -z "$CC"; then
3960   # Extract the first word of "cc", so it can be a program name with args.
3961 set dummy cc; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_CC+:} false; then :
3965   $as_echo_n "(cached) " >&6
3966 else
3967   if test -n "$CC"; then
3968   ac_cv_prog_CC="$CC" # Let the user override the test.
3969 else
3970   ac_prog_rejected=no
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976     for ac_exec_ext in '' $ac_executable_extensions; do
3977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3979        ac_prog_rejected=yes
3980        continue
3981      fi
3982     ac_cv_prog_CC="cc"
3983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984     break 2
3985   fi
3986 done
3987   done
3988 IFS=$as_save_IFS
3989
3990 if test $ac_prog_rejected = yes; then
3991   # We found a bogon in the path, so make sure we never use it.
3992   set dummy $ac_cv_prog_CC
3993   shift
3994   if test $# != 0; then
3995     # We chose a different compiler from the bogus one.
3996     # However, it has the same basename, so the bogon will be chosen
3997     # first if we set CC to just the basename; use the full file name.
3998     shift
3999     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4000   fi
4001 fi
4002 fi
4003 fi
4004 CC=$ac_cv_prog_CC
4005 if test -n "$CC"; then
4006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4007 $as_echo "$CC" >&6; }
4008 else
4009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4011 fi
4012
4013
4014 fi
4015 if test -z "$CC"; then
4016   if test -n "$ac_tool_prefix"; then
4017   for ac_prog in cl.exe
4018   do
4019     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if ${ac_cv_prog_CC+:} false; then :
4024   $as_echo_n "(cached) " >&6
4025 else
4026   if test -n "$CC"; then
4027   ac_cv_prog_CC="$CC" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032   IFS=$as_save_IFS
4033   test -z "$as_dir" && as_dir=.
4034     for ac_exec_ext in '' $ac_executable_extensions; do
4035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038     break 2
4039   fi
4040 done
4041   done
4042 IFS=$as_save_IFS
4043
4044 fi
4045 fi
4046 CC=$ac_cv_prog_CC
4047 if test -n "$CC"; then
4048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4049 $as_echo "$CC" >&6; }
4050 else
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4053 fi
4054
4055
4056     test -n "$CC" && break
4057   done
4058 fi
4059 if test -z "$CC"; then
4060   ac_ct_CC=$CC
4061   for ac_prog in cl.exe
4062 do
4063   # Extract the first word of "$ac_prog", so it can be a program name with args.
4064 set dummy $ac_prog; ac_word=$2
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 $as_echo_n "checking for $ac_word... " >&6; }
4067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070   if test -n "$ac_ct_CC"; then
4071   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076   IFS=$as_save_IFS
4077   test -z "$as_dir" && as_dir=.
4078     for ac_exec_ext in '' $ac_executable_extensions; do
4079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080     ac_cv_prog_ac_ct_CC="$ac_prog"
4081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082     break 2
4083   fi
4084 done
4085   done
4086 IFS=$as_save_IFS
4087
4088 fi
4089 fi
4090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091 if test -n "$ac_ct_CC"; then
4092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093 $as_echo "$ac_ct_CC" >&6; }
4094 else
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097 fi
4098
4099
4100   test -n "$ac_ct_CC" && break
4101 done
4102
4103   if test "x$ac_ct_CC" = x; then
4104     CC=""
4105   else
4106     case $cross_compiling:$ac_tool_warned in
4107 yes:)
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4110 ac_tool_warned=yes ;;
4111 esac
4112     CC=$ac_ct_CC
4113   fi
4114 fi
4115
4116 fi
4117
4118
4119 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4121 as_fn_error $? "no acceptable C compiler found in \$PATH
4122 See \`config.log' for more details" "$LINENO" 5; }
4123
4124 # Provide some information about the compiler.
4125 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4126 set X $ac_compile
4127 ac_compiler=$2
4128 for ac_option in --version -v -V -qversion; do
4129   { { ac_try="$ac_compiler $ac_option >&5"
4130 case "(($ac_try" in
4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132   *) ac_try_echo=$ac_try;;
4133 esac
4134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4137   ac_status=$?
4138   if test -s conftest.err; then
4139     sed '10a\
4140 ... rest of stderr output deleted ...
4141          10q' conftest.err >conftest.er1
4142     cat conftest.er1 >&5
4143   fi
4144   rm -f conftest.er1 conftest.err
4145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146   test $ac_status = 0; }
4147 done
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4150 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4151 if ${ac_cv_c_compiler_gnu+:} false; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h.  */
4156
4157 int
4158 main ()
4159 {
4160 #ifndef __GNUC__
4161        choke me
4162 #endif
4163
4164   ;
4165   return 0;
4166 }
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169   ac_compiler_gnu=yes
4170 else
4171   ac_compiler_gnu=no
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4175
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4178 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4179 if test $ac_compiler_gnu = yes; then
4180   GCC=yes
4181 else
4182   GCC=
4183 fi
4184 ac_test_CFLAGS=${CFLAGS+set}
4185 ac_save_CFLAGS=$CFLAGS
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4187 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4188 if ${ac_cv_prog_cc_g+:} false; then :
4189   $as_echo_n "(cached) " >&6
4190 else
4191   ac_save_c_werror_flag=$ac_c_werror_flag
4192    ac_c_werror_flag=yes
4193    ac_cv_prog_cc_g=no
4194    CFLAGS="-g"
4195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h.  */
4197
4198 int
4199 main ()
4200 {
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"; then :
4207   ac_cv_prog_cc_g=yes
4208 else
4209   CFLAGS=""
4210       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h.  */
4212
4213 int
4214 main ()
4215 {
4216
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222
4223 else
4224   ac_c_werror_flag=$ac_save_c_werror_flag
4225          CFLAGS="-g"
4226          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h.  */
4228
4229 int
4230 main ()
4231 {
4232
4233   ;
4234   return 0;
4235 }
4236 _ACEOF
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238   ac_cv_prog_cc_g=yes
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 fi
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245    ac_c_werror_flag=$ac_save_c_werror_flag
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4248 $as_echo "$ac_cv_prog_cc_g" >&6; }
4249 if test "$ac_test_CFLAGS" = set; then
4250   CFLAGS=$ac_save_CFLAGS
4251 elif test $ac_cv_prog_cc_g = yes; then
4252   if test "$GCC" = yes; then
4253     CFLAGS="-g -O2"
4254   else
4255     CFLAGS="-g"
4256   fi
4257 else
4258   if test "$GCC" = yes; then
4259     CFLAGS="-O2"
4260   else
4261     CFLAGS=
4262   fi
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4265 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4266 if ${ac_cv_prog_cc_c89+:} false; then :
4267   $as_echo_n "(cached) " >&6
4268 else
4269   ac_cv_prog_cc_c89=no
4270 ac_save_CC=$CC
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273 #include <stdarg.h>
4274 #include <stdio.h>
4275 struct stat;
4276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4277 struct buf { int x; };
4278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4279 static char *e (p, i)
4280      char **p;
4281      int i;
4282 {
4283   return p[i];
4284 }
4285 static char *f (char * (*g) (char **, int), char **p, ...)
4286 {
4287   char *s;
4288   va_list v;
4289   va_start (v,p);
4290   s = g (p, va_arg (v,int));
4291   va_end (v);
4292   return s;
4293 }
4294
4295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4296    function prototypes and stuff, but not '\xHH' hex character constants.
4297    These don't provoke an error unfortunately, instead are silently treated
4298    as 'x'.  The following induces an error, until -std is added to get
4299    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4300    array size at least.  It's necessary to write '\x00'==0 to get something
4301    that's true only with -std.  */
4302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4303
4304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4305    inside strings and character constants.  */
4306 #define FOO(x) 'x'
4307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4308
4309 int test (int i, double x);
4310 struct s1 {int (*f) (int a);};
4311 struct s2 {int (*f) (double a);};
4312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4313 int argc;
4314 char **argv;
4315 int
4316 main ()
4317 {
4318 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4324         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4325 do
4326   CC="$ac_save_CC $ac_arg"
4327   if ac_fn_c_try_compile "$LINENO"; then :
4328   ac_cv_prog_cc_c89=$ac_arg
4329 fi
4330 rm -f core conftest.err conftest.$ac_objext
4331   test "x$ac_cv_prog_cc_c89" != "xno" && break
4332 done
4333 rm -f conftest.$ac_ext
4334 CC=$ac_save_CC
4335
4336 fi
4337 # AC_CACHE_VAL
4338 case "x$ac_cv_prog_cc_c89" in
4339   x)
4340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4341 $as_echo "none needed" >&6; } ;;
4342   xno)
4343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4344 $as_echo "unsupported" >&6; } ;;
4345   *)
4346     CC="$CC $ac_cv_prog_cc_c89"
4347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4348 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4349 esac
4350 if test "x$ac_cv_prog_cc_c89" != xno; then :
4351
4352 fi
4353
4354 ac_ext=c
4355 ac_cpp='$CPP $CPPFLAGS'
4356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4359
4360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4361 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4362 if ${ac_cv_prog_cc_c99+:} false; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   ac_cv_prog_cc_c99=no
4366 ac_save_CC=$CC
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h.  */
4369 #include <stdarg.h>
4370 #include <stdbool.h>
4371 #include <stdlib.h>
4372 #include <wchar.h>
4373 #include <stdio.h>
4374
4375 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4376 #define debug(...) fprintf (stderr, __VA_ARGS__)
4377 #define showlist(...) puts (#__VA_ARGS__)
4378 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4379 static void
4380 test_varargs_macros (void)
4381 {
4382   int x = 1234;
4383   int y = 5678;
4384   debug ("Flag");
4385   debug ("X = %d\n", x);
4386   showlist (The first, second, and third items.);
4387   report (x>y, "x is %d but y is %d", x, y);
4388 }
4389
4390 // Check long long types.
4391 #define BIG64 18446744073709551615ull
4392 #define BIG32 4294967295ul
4393 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4394 #if !BIG_OK
4395   your preprocessor is broken;
4396 #endif
4397 #if BIG_OK
4398 #else
4399   your preprocessor is broken;
4400 #endif
4401 static long long int bignum = -9223372036854775807LL;
4402 static unsigned long long int ubignum = BIG64;
4403
4404 struct incomplete_array
4405 {
4406   int datasize;
4407   double data[];
4408 };
4409
4410 struct named_init {
4411   int number;
4412   const wchar_t *name;
4413   double average;
4414 };
4415
4416 typedef const char *ccp;
4417
4418 static inline int
4419 test_restrict (ccp restrict text)
4420 {
4421   // See if C++-style comments work.
4422   // Iterate through items via the restricted pointer.
4423   // Also check for declarations in for loops.
4424   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4425     continue;
4426   return 0;
4427 }
4428
4429 // Check varargs and va_copy.
4430 static void
4431 test_varargs (const char *format, ...)
4432 {
4433   va_list args;
4434   va_start (args, format);
4435   va_list args_copy;
4436   va_copy (args_copy, args);
4437
4438   const char *str;
4439   int number;
4440   float fnumber;
4441
4442   while (*format)
4443     {
4444       switch (*format++)
4445         {
4446         case 's': // string
4447           str = va_arg (args_copy, const char *);
4448           break;
4449         case 'd': // int
4450           number = va_arg (args_copy, int);
4451           break;
4452         case 'f': // float
4453           fnumber = va_arg (args_copy, double);
4454           break;
4455         default:
4456           break;
4457         }
4458     }
4459   va_end (args_copy);
4460   va_end (args);
4461 }
4462
4463 int
4464 main ()
4465 {
4466
4467   // Check bool.
4468   _Bool success = false;
4469
4470   // Check restrict.
4471   if (test_restrict ("String literal") == 0)
4472     success = true;
4473   char *restrict newvar = "Another string";
4474
4475   // Check varargs.
4476   test_varargs ("s, d' f .", "string", 65, 34.234);
4477   test_varargs_macros ();
4478
4479   // Check flexible array members.
4480   struct incomplete_array *ia =
4481     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4482   ia->datasize = 10;
4483   for (int i = 0; i < ia->datasize; ++i)
4484     ia->data[i] = i * 1.234;
4485
4486   // Check named initializers.
4487   struct named_init ni = {
4488     .number = 34,
4489     .name = L"Test wide string",
4490     .average = 543.34343,
4491   };
4492
4493   ni.number = 58;
4494
4495   int dynamic_array[ni.number];
4496   dynamic_array[ni.number - 1] = 543;
4497
4498   // work around unused variable warnings
4499   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4500           || dynamic_array[ni.number - 1] != 543);
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4507 do
4508   CC="$ac_save_CC $ac_arg"
4509   if ac_fn_c_try_compile "$LINENO"; then :
4510   ac_cv_prog_cc_c99=$ac_arg
4511 fi
4512 rm -f core conftest.err conftest.$ac_objext
4513   test "x$ac_cv_prog_cc_c99" != "xno" && break
4514 done
4515 rm -f conftest.$ac_ext
4516 CC=$ac_save_CC
4517
4518 fi
4519 # AC_CACHE_VAL
4520 case "x$ac_cv_prog_cc_c99" in
4521   x)
4522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4523 $as_echo "none needed" >&6; } ;;
4524   xno)
4525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4526 $as_echo "unsupported" >&6; } ;;
4527   *)
4528     CC="$CC $ac_cv_prog_cc_c99"
4529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4530 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4531 esac
4532 if test "x$ac_cv_prog_cc_c99" != xno; then :
4533
4534 fi
4535
4536
4537 ac_aux_dir=
4538 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4539   if test -f "$ac_dir/install-sh"; then
4540     ac_aux_dir=$ac_dir
4541     ac_install_sh="$ac_aux_dir/install-sh -c"
4542     break
4543   elif test -f "$ac_dir/install.sh"; then
4544     ac_aux_dir=$ac_dir
4545     ac_install_sh="$ac_aux_dir/install.sh -c"
4546     break
4547   elif test -f "$ac_dir/shtool"; then
4548     ac_aux_dir=$ac_dir
4549     ac_install_sh="$ac_aux_dir/shtool install -c"
4550     break
4551   fi
4552 done
4553 if test -z "$ac_aux_dir"; then
4554   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4555 fi
4556
4557 # These three variables are undocumented and unsupported,
4558 # and are intended to be withdrawn in a future Autoconf release.
4559 # They can cause serious problems if a builder's source tree is in a directory
4560 # whose full name contains unusual characters.
4561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4563 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4564
4565
4566 # Find a good install program.  We prefer a C program (faster),
4567 # so one script is as good as another.  But avoid the broken or
4568 # incompatible versions:
4569 # SysV /etc/install, /usr/sbin/install
4570 # SunOS /usr/etc/install
4571 # IRIX /sbin/install
4572 # AIX /bin/install
4573 # AmigaOS /C/install, which installs bootblocks on floppy discs
4574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4577 # OS/2's system install, which has a completely different semantic
4578 # ./install, which can be erroneously created by make from ./install.sh.
4579 # Reject install programs that cannot install multiple files.
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4581 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4582 if test -z "$INSTALL"; then
4583 if ${ac_cv_path_install+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591     # Account for people who put trailing slashes in PATH elements.
4592 case $as_dir/ in #((
4593   ./ | .// | /[cC]/* | \
4594   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4595   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4596   /usr/ucb/* ) ;;
4597   *)
4598     # OSF1 and SCO ODT 3.0 have their own names for install.
4599     # Don't use installbsd from OSF since it installs stuff as root
4600     # by default.
4601     for ac_prog in ginstall scoinst install; do
4602       for ac_exec_ext in '' $ac_executable_extensions; do
4603         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4604           if test $ac_prog = install &&
4605             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4606             # AIX install.  It has an incompatible calling convention.
4607             :
4608           elif test $ac_prog = install &&
4609             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4610             # program-specific install script used by HP pwplus--don't use.
4611             :
4612           else
4613             rm -rf conftest.one conftest.two conftest.dir
4614             echo one > conftest.one
4615             echo two > conftest.two
4616             mkdir conftest.dir
4617             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4618               test -s conftest.one && test -s conftest.two &&
4619               test -s conftest.dir/conftest.one &&
4620               test -s conftest.dir/conftest.two
4621             then
4622               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4623               break 3
4624             fi
4625           fi
4626         fi
4627       done
4628     done
4629     ;;
4630 esac
4631
4632   done
4633 IFS=$as_save_IFS
4634
4635 rm -rf conftest.one conftest.two conftest.dir
4636
4637 fi
4638   if test "${ac_cv_path_install+set}" = set; then
4639     INSTALL=$ac_cv_path_install
4640   else
4641     # As a last resort, use the slow shell script.  Don't cache a
4642     # value for INSTALL within a source directory, because that will
4643     # break other packages using the cache if that directory is
4644     # removed, or if the value is a relative name.
4645     INSTALL=$ac_install_sh
4646   fi
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4649 $as_echo "$INSTALL" >&6; }
4650
4651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4652 # It thinks the first close brace ends the variable substitution.
4653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4654
4655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4656
4657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4658
4659 if test -x /usr/bin/getconf; then
4660    bmake_path_max=`getconf PATH_MAX / 2> /dev/null`
4661    # only a numeric response is useful
4662    test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max=
4663 fi
4664 bmake_path_max=${bmake_path_max:-1024}
4665 if test $bmake_path_max -gt 1024; then
4666    # this is all we expect
4667    bmake_path_max=1024
4668 fi
4669 echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
4670 if (type cat) > /dev/null 2>&1; then
4671 : which
4672 which() {
4673         type "$@" | sed 's,[()],,g;s,^[^/][^/]*,,;q'
4674 }
4675 fi
4676 case "$CC" in
4677 /*) ;;
4678 *)
4679     for x in $CC
4680     do
4681         _cc=`which $x`
4682         break
4683     done
4684     if test -x ${_cc:-/dev/null}; then
4685         _cc_dir=`dirname $_cc`
4686         case ":$oldPATH:" in
4687         *:$_cc_dir:*) ;;
4688         *) CC=$_cc_dir/$CC;;
4689         esac
4690     fi
4691     ;;
4692 esac
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4694 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4695 if ${ac_cv_header_sys_wait_h+:} false; then :
4696   $as_echo_n "(cached) " >&6
4697 else
4698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h.  */
4700 #include <sys/types.h>
4701 #include <sys/wait.h>
4702 #ifndef WEXITSTATUS
4703 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4704 #endif
4705 #ifndef WIFEXITED
4706 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4707 #endif
4708
4709 int
4710 main ()
4711 {
4712   int s;
4713   wait (&s);
4714   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 if ac_fn_c_try_compile "$LINENO"; then :
4720   ac_cv_header_sys_wait_h=yes
4721 else
4722   ac_cv_header_sys_wait_h=no
4723 fi
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4727 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4728 if test $ac_cv_header_sys_wait_h = yes; then
4729
4730 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4731
4732 fi
4733
4734 ac_header_dirent=no
4735 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4736   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4738 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4739 if eval \${$as_ac_Header+:} false; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h.  */
4744 #include <sys/types.h>
4745 #include <$ac_hdr>
4746
4747 int
4748 main ()
4749 {
4750 if ((DIR *) 0)
4751 return 0;
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757   eval "$as_ac_Header=yes"
4758 else
4759   eval "$as_ac_Header=no"
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763 eval ac_res=\$$as_ac_Header
4764                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4765 $as_echo "$ac_res" >&6; }
4766 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4767   cat >>confdefs.h <<_ACEOF
4768 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4769 _ACEOF
4770
4771 ac_header_dirent=$ac_hdr; break
4772 fi
4773
4774 done
4775 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4776 if test $ac_header_dirent = dirent.h; then
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4778 $as_echo_n "checking for library containing opendir... " >&6; }
4779 if ${ac_cv_search_opendir+:} false; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782   ac_func_search_save_LIBS=$LIBS
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h.  */
4785
4786 /* Override any GCC internal prototype to avoid an error.
4787    Use char because int might match the return type of a GCC
4788    builtin and then its argument prototype would still apply.  */
4789 #ifdef __cplusplus
4790 extern "C"
4791 #endif
4792 char opendir ();
4793 int
4794 main ()
4795 {
4796 return opendir ();
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 for ac_lib in '' dir; do
4802   if test -z "$ac_lib"; then
4803     ac_res="none required"
4804   else
4805     ac_res=-l$ac_lib
4806     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4807   fi
4808   if ac_fn_c_try_link "$LINENO"; then :
4809   ac_cv_search_opendir=$ac_res
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext \
4812     conftest$ac_exeext
4813   if ${ac_cv_search_opendir+:} false; then :
4814   break
4815 fi
4816 done
4817 if ${ac_cv_search_opendir+:} false; then :
4818
4819 else
4820   ac_cv_search_opendir=no
4821 fi
4822 rm conftest.$ac_ext
4823 LIBS=$ac_func_search_save_LIBS
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4826 $as_echo "$ac_cv_search_opendir" >&6; }
4827 ac_res=$ac_cv_search_opendir
4828 if test "$ac_res" != no; then :
4829   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4830
4831 fi
4832
4833 else
4834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4835 $as_echo_n "checking for library containing opendir... " >&6; }
4836 if ${ac_cv_search_opendir+:} false; then :
4837   $as_echo_n "(cached) " >&6
4838 else
4839   ac_func_search_save_LIBS=$LIBS
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h.  */
4842
4843 /* Override any GCC internal prototype to avoid an error.
4844    Use char because int might match the return type of a GCC
4845    builtin and then its argument prototype would still apply.  */
4846 #ifdef __cplusplus
4847 extern "C"
4848 #endif
4849 char opendir ();
4850 int
4851 main ()
4852 {
4853 return opendir ();
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 for ac_lib in '' x; do
4859   if test -z "$ac_lib"; then
4860     ac_res="none required"
4861   else
4862     ac_res=-l$ac_lib
4863     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4864   fi
4865   if ac_fn_c_try_link "$LINENO"; then :
4866   ac_cv_search_opendir=$ac_res
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext \
4869     conftest$ac_exeext
4870   if ${ac_cv_search_opendir+:} false; then :
4871   break
4872 fi
4873 done
4874 if ${ac_cv_search_opendir+:} false; then :
4875
4876 else
4877   ac_cv_search_opendir=no
4878 fi
4879 rm conftest.$ac_ext
4880 LIBS=$ac_func_search_save_LIBS
4881 fi
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4883 $as_echo "$ac_cv_search_opendir" >&6; }
4884 ac_res=$ac_cv_search_opendir
4885 if test "$ac_res" != no; then :
4886   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4887
4888 fi
4889
4890 fi
4891
4892 for ac_header in sys/param.h
4893 do :
4894   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4895 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4896   cat >>confdefs.h <<_ACEOF
4897 #define HAVE_SYS_PARAM_H 1
4898 _ACEOF
4899
4900 fi
4901
4902 done
4903
4904 for ac_header in sys/sysctl.h
4905 do :
4906   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H
4907 # include <sys/param.h>
4908 # endif
4909
4910 "
4911 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
4912   cat >>confdefs.h <<_ACEOF
4913 #define HAVE_SYS_SYSCTL_H 1
4914 _ACEOF
4915
4916 fi
4917
4918 done
4919
4920
4921 for ac_header in \
4922         ar.h \
4923         err.h \
4924         fcntl.h \
4925         libgen.h \
4926         limits.h \
4927         paths.h \
4928         poll.h \
4929         ranlib.h \
4930         sys/mman.h \
4931         sys/select.h \
4932         sys/socket.h \
4933         sys/time.h \
4934         sys/uio.h \
4935         utime.h \
4936
4937 do :
4938   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4939 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4941   cat >>confdefs.h <<_ACEOF
4942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943 _ACEOF
4944
4945 fi
4946
4947 done
4948
4949
4950 ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
4951 if test "x$ac_cv_header_sys_cdefs_h" = xyes; then :
4952
4953 else
4954   CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`"
4955 fi
4956
4957
4958
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4961 $as_echo_n "checking for __attribute__... " >&6; }
4962 if ${ac_cv___attribute__+:} false; then :
4963   $as_echo_n "(cached) " >&6
4964 else
4965
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h.  */
4968
4969 #include <stdlib.h>
4970
4971 static void foo(void) __attribute__ ((noreturn));
4972
4973 static void
4974 foo(void)
4975 {
4976   exit(1);
4977 }
4978
4979 int
4980 main(int argc, char **argv)
4981 {
4982         foo();
4983 }
4984
4985 _ACEOF
4986 if ac_fn_c_try_link "$LINENO"; then :
4987   ac_cv___attribute__=yes
4988 else
4989   ac_cv___attribute__=no
4990 fi
4991 rm -f core conftest.err conftest.$ac_objext \
4992     conftest$ac_exeext conftest.$ac_ext
4993 fi
4994
4995 if test "$ac_cv___attribute__" = "yes"; then
4996
4997 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4998
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
5001 $as_echo "$ac_cv___attribute__" >&6; }
5002
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5004 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5005 if ${ac_cv_c_bigendian+:} false; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   ac_cv_c_bigendian=unknown
5009     # See if we're dealing with a universal compiler.
5010     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h.  */
5012 #ifndef __APPLE_CC__
5013                not a universal capable compiler
5014              #endif
5015              typedef int dummy;
5016
5017 _ACEOF
5018 if ac_fn_c_try_compile "$LINENO"; then :
5019
5020         # Check for potential -arch flags.  It is not universal unless
5021         # there are at least two -arch flags with different values.
5022         ac_arch=
5023         ac_prev=
5024         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5025          if test -n "$ac_prev"; then
5026            case $ac_word in
5027              i?86 | x86_64 | ppc | ppc64)
5028                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5029                  ac_arch=$ac_word
5030                else
5031                  ac_cv_c_bigendian=universal
5032                  break
5033                fi
5034                ;;
5035            esac
5036            ac_prev=
5037          elif test "x$ac_word" = "x-arch"; then
5038            ac_prev=arch
5039          fi
5040        done
5041 fi
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043     if test $ac_cv_c_bigendian = unknown; then
5044       # See if sys/param.h defines the BYTE_ORDER macro.
5045       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h.  */
5047 #include <sys/types.h>
5048              #include <sys/param.h>
5049
5050 int
5051 main ()
5052 {
5053 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5054                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5055                      && LITTLE_ENDIAN)
5056               bogus endian macros
5057              #endif
5058
5059   ;
5060   return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_c_try_compile "$LINENO"; then :
5064   # It does; now see whether it defined to BIG_ENDIAN or not.
5065          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h.  */
5067 #include <sys/types.h>
5068                 #include <sys/param.h>
5069
5070 int
5071 main ()
5072 {
5073 #if BYTE_ORDER != BIG_ENDIAN
5074                  not big endian
5075                 #endif
5076
5077   ;
5078   return 0;
5079 }
5080 _ACEOF
5081 if ac_fn_c_try_compile "$LINENO"; then :
5082   ac_cv_c_bigendian=yes
5083 else
5084   ac_cv_c_bigendian=no
5085 fi
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089     fi
5090     if test $ac_cv_c_bigendian = unknown; then
5091       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5092       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h.  */
5094 #include <limits.h>
5095
5096 int
5097 main ()
5098 {
5099 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5100               bogus endian macros
5101              #endif
5102
5103   ;
5104   return 0;
5105 }
5106 _ACEOF
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108   # It does; now see whether it defined to _BIG_ENDIAN or not.
5109          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h.  */
5111 #include <limits.h>
5112
5113 int
5114 main ()
5115 {
5116 #ifndef _BIG_ENDIAN
5117                  not big endian
5118                 #endif
5119
5120   ;
5121   return 0;
5122 }
5123 _ACEOF
5124 if ac_fn_c_try_compile "$LINENO"; then :
5125   ac_cv_c_bigendian=yes
5126 else
5127   ac_cv_c_bigendian=no
5128 fi
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132     fi
5133     if test $ac_cv_c_bigendian = unknown; then
5134       # Compile a test program.
5135       if test "$cross_compiling" = yes; then :
5136   # Try to guess by grepping values from an object file.
5137          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h.  */
5139 short int ascii_mm[] =
5140                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5141                 short int ascii_ii[] =
5142                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5143                 int use_ascii (int i) {
5144                   return ascii_mm[i] + ascii_ii[i];
5145                 }
5146                 short int ebcdic_ii[] =
5147                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5148                 short int ebcdic_mm[] =
5149                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5150                 int use_ebcdic (int i) {
5151                   return ebcdic_mm[i] + ebcdic_ii[i];
5152                 }
5153                 extern int foo;
5154
5155 int
5156 main ()
5157 {
5158 return use_ascii (foo) == use_ebcdic (foo);
5159   ;
5160   return 0;
5161 }
5162 _ACEOF
5163 if ac_fn_c_try_compile "$LINENO"; then :
5164   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5165               ac_cv_c_bigendian=yes
5166             fi
5167             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5168               if test "$ac_cv_c_bigendian" = unknown; then
5169                 ac_cv_c_bigendian=no
5170               else
5171                 # finding both strings is unlikely to happen, but who knows?
5172                 ac_cv_c_bigendian=unknown
5173               fi
5174             fi
5175 fi
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 else
5178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h.  */
5180 $ac_includes_default
5181 int
5182 main ()
5183 {
5184
5185              /* Are we little or big endian?  From Harbison&Steele.  */
5186              union
5187              {
5188                long int l;
5189                char c[sizeof (long int)];
5190              } u;
5191              u.l = 1;
5192              return u.c[sizeof (long int) - 1] == 1;
5193
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 if ac_fn_c_try_run "$LINENO"; then :
5199   ac_cv_c_bigendian=no
5200 else
5201   ac_cv_c_bigendian=yes
5202 fi
5203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5204   conftest.$ac_objext conftest.beam conftest.$ac_ext
5205 fi
5206
5207     fi
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5210 $as_echo "$ac_cv_c_bigendian" >&6; }
5211  case $ac_cv_c_bigendian in #(
5212    yes)
5213      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5214 ;; #(
5215    no)
5216       ;; #(
5217    universal)
5218
5219 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5220
5221      ;; #(
5222    *)
5223      as_fn_error $? "unknown endianness
5224  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5225  esac
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5228 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5229 if ${ac_cv_c_const+:} false; then :
5230   $as_echo_n "(cached) " >&6
5231 else
5232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h.  */
5234
5235 int
5236 main ()
5237 {
5238
5239 #ifndef __cplusplus
5240   /* Ultrix mips cc rejects this sort of thing.  */
5241   typedef int charset[2];
5242   const charset cs = { 0, 0 };
5243   /* SunOS 4.1.1 cc rejects this.  */
5244   char const *const *pcpcc;
5245   char **ppc;
5246   /* NEC SVR4.0.2 mips cc rejects this.  */
5247   struct point {int x, y;};
5248   static struct point const zero = {0,0};
5249   /* AIX XL C 1.02.0.0 rejects this.
5250      It does not let you subtract one const X* pointer from another in
5251      an arm of an if-expression whose if-part is not a constant
5252      expression */
5253   const char *g = "string";
5254   pcpcc = &g + (g ? g-g : 0);
5255   /* HPUX 7.0 cc rejects these. */
5256   ++pcpcc;
5257   ppc = (char**) pcpcc;
5258   pcpcc = (char const *const *) ppc;
5259   { /* SCO 3.2v4 cc rejects this sort of thing.  */
5260     char tx;
5261     char *t = &tx;
5262     char const *s = 0 ? (char *) 0 : (char const *) 0;
5263
5264     *t++ = 0;
5265     if (s) return 0;
5266   }
5267   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5268     int x[] = {25, 17};
5269     const int *foo = &x[0];
5270     ++foo;
5271   }
5272   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5273     typedef const int *iptr;
5274     iptr p = 0;
5275     ++p;
5276   }
5277   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5278        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5279     struct s { int j; const int *ap[3]; } bx;
5280     struct s *b = &bx; b->j = 5;
5281   }
5282   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5283     const int foo = 10;
5284     if (!foo) return 0;
5285   }
5286   return !cs[0] && !zero.x;
5287 #endif
5288
5289   ;
5290   return 0;
5291 }
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"; then :
5294   ac_cv_c_const=yes
5295 else
5296   ac_cv_c_const=no
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 fi
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5301 $as_echo "$ac_cv_c_const" >&6; }
5302 if test $ac_cv_c_const = no; then
5303
5304 $as_echo "#define const /**/" >>confdefs.h
5305
5306 fi
5307
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5309 $as_echo_n "checking for inline... " >&6; }
5310 if ${ac_cv_c_inline+:} false; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   ac_cv_c_inline=no
5314 for ac_kw in inline __inline__ __inline; do
5315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h.  */
5317 #ifndef __cplusplus
5318 typedef int foo_t;
5319 static $ac_kw foo_t static_foo () {return 0; }
5320 $ac_kw foo_t foo () {return 0; }
5321 #endif
5322
5323 _ACEOF
5324 if ac_fn_c_try_compile "$LINENO"; then :
5325   ac_cv_c_inline=$ac_kw
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328   test "$ac_cv_c_inline" != no && break
5329 done
5330
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5333 $as_echo "$ac_cv_c_inline" >&6; }
5334
5335 case $ac_cv_c_inline in
5336   inline | yes) ;;
5337   *)
5338     case $ac_cv_c_inline in
5339       no) ac_val=;;
5340       *) ac_val=$ac_cv_c_inline;;
5341     esac
5342     cat >>confdefs.h <<_ACEOF
5343 #ifndef __cplusplus
5344 #define inline $ac_val
5345 #endif
5346 _ACEOF
5347     ;;
5348 esac
5349
5350 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5351 case $ac_cv_c_int64_t in #(
5352   no|yes) ;; #(
5353   *)
5354
5355 cat >>confdefs.h <<_ACEOF
5356 #define int64_t $ac_cv_c_int64_t
5357 _ACEOF
5358 ;;
5359 esac
5360
5361
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5363 $as_echo_n "checking for unsigned long long int... " >&6; }
5364 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5365   $as_echo_n "(cached) " >&6
5366 else
5367   ac_cv_type_unsigned_long_long_int=yes
5368      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5369        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h.  */
5371
5372   /* For now, do not test the preprocessor; as of 2007 there are too many
5373          implementations with broken preprocessors.  Perhaps this can
5374          be revisited in 2012.  In the meantime, code should not expect
5375          #if to work with literals wider than 32 bits.  */
5376       /* Test literals.  */
5377       long long int ll = 9223372036854775807ll;
5378       long long int nll = -9223372036854775807LL;
5379       unsigned long long int ull = 18446744073709551615ULL;
5380       /* Test constant expressions.   */
5381       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5382                      ? 1 : -1)];
5383       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5384                      ? 1 : -1)];
5385       int i = 63;
5386 int
5387 main ()
5388 {
5389 /* Test availability of runtime routines for shift and division.  */
5390       long long int llmax = 9223372036854775807ll;
5391       unsigned long long int ullmax = 18446744073709551615ull;
5392       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5393               | (llmax / ll) | (llmax % ll)
5394               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5395               | (ullmax / ull) | (ullmax % ull));
5396   ;
5397   return 0;
5398 }
5399
5400 _ACEOF
5401 if ac_fn_c_try_link "$LINENO"; then :
5402
5403 else
5404   ac_cv_type_unsigned_long_long_int=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext \
5407     conftest$ac_exeext conftest.$ac_ext
5408      fi
5409 fi
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5411 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5412   if test $ac_cv_type_unsigned_long_long_int = yes; then
5413
5414 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5415
5416   fi
5417
5418
5419
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5421 $as_echo_n "checking for long long int... " >&6; }
5422 if ${ac_cv_type_long_long_int+:} false; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   ac_cv_type_long_long_int=yes
5426       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5427         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5428         if test $ac_cv_type_long_long_int = yes; then
5429                                   if test "$cross_compiling" = yes; then :
5430   :
5431 else
5432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h.  */
5434 #include <limits.h>
5435                  #ifndef LLONG_MAX
5436                  # define HALF \
5437                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5438                  # define LLONG_MAX (HALF - 1 + HALF)
5439                  #endif
5440 int
5441 main ()
5442 {
5443 long long int n = 1;
5444                  int i;
5445                  for (i = 0; ; i++)
5446                    {
5447                      long long int m = n << i;
5448                      if (m >> i != n)
5449                        return 1;
5450                      if (LLONG_MAX / 2 < m)
5451                        break;
5452                    }
5453                  return 0;
5454   ;
5455   return 0;
5456 }
5457 _ACEOF
5458 if ac_fn_c_try_run "$LINENO"; then :
5459
5460 else
5461   ac_cv_type_long_long_int=no
5462 fi
5463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5464   conftest.$ac_objext conftest.beam conftest.$ac_ext
5465 fi
5466
5467         fi
5468       fi
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5471 $as_echo "$ac_cv_type_long_long_int" >&6; }
5472   if test $ac_cv_type_long_long_int = yes; then
5473
5474 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5475
5476   fi
5477
5478 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5479 if test "x$ac_cv_type_mode_t" = xyes; then :
5480
5481 else
5482
5483 cat >>confdefs.h <<_ACEOF
5484 #define mode_t int
5485 _ACEOF
5486
5487 fi
5488
5489 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5490 if test "x$ac_cv_type_off_t" = xyes; then :
5491
5492 else
5493
5494 cat >>confdefs.h <<_ACEOF
5495 #define off_t long int
5496 _ACEOF
5497
5498 fi
5499
5500 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5501 if test "x$ac_cv_type_pid_t" = xyes; then :
5502
5503 else
5504
5505 cat >>confdefs.h <<_ACEOF
5506 #define pid_t int
5507 _ACEOF
5508
5509 fi
5510
5511 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5512 if test "x$ac_cv_type_size_t" = xyes; then :
5513
5514 else
5515
5516 cat >>confdefs.h <<_ACEOF
5517 #define size_t unsigned int
5518 _ACEOF
5519
5520 fi
5521
5522 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5523 case $ac_cv_c_uint32_t in #(
5524   no|yes) ;; #(
5525   *)
5526
5527 $as_echo "#define _UINT32_T 1" >>confdefs.h
5528
5529
5530 cat >>confdefs.h <<_ACEOF
5531 #define uint32_t $ac_cv_c_uint32_t
5532 _ACEOF
5533 ;;
5534   esac
5535
5536 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5537 /* NetBSD declares sys_siglist in unistd.h.  */
5538 #ifdef HAVE_UNISTD_H
5539 # include <unistd.h>
5540 #endif
5541
5542 "
5543 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
5544   ac_have_decl=1
5545 else
5546   ac_have_decl=0
5547 fi
5548
5549 cat >>confdefs.h <<_ACEOF
5550 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
5551 _ACEOF
5552
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5555 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5556 if ${ac_cv_header_time+:} false; then :
5557   $as_echo_n "(cached) " >&6
5558 else
5559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h.  */
5561 #include <sys/types.h>
5562 #include <sys/time.h>
5563 #include <time.h>
5564
5565 int
5566 main ()
5567 {
5568 if ((struct tm *) 0)
5569 return 0;
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575   ac_cv_header_time=yes
5576 else
5577   ac_cv_header_time=no
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5582 $as_echo "$ac_cv_header_time" >&6; }
5583 if test $ac_cv_header_time = yes; then
5584
5585 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5586
5587 fi
5588
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5590 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5591 if ${ac_cv_struct_tm+:} false; then :
5592   $as_echo_n "(cached) " >&6
5593 else
5594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h.  */
5596 #include <sys/types.h>
5597 #include <time.h>
5598
5599 int
5600 main ()
5601 {
5602 struct tm tm;
5603                                      int *p = &tm.tm_sec;
5604                                      return !p;
5605   ;
5606   return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"; then :
5610   ac_cv_struct_tm=time.h
5611 else
5612   ac_cv_struct_tm=sys/time.h
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5617 $as_echo "$ac_cv_struct_tm" >&6; }
5618 if test $ac_cv_struct_tm = sys/time.h; then
5619
5620 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5621
5622 fi
5623
5624
5625
5626 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
5627 #ifdef HAVE_SYS_TYPES_H
5628 #include <sys/types.h>
5629 #endif
5630 #include <signal.h>
5631
5632 "
5633 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
5634
5635 cat >>confdefs.h <<_ACEOF
5636 #define HAVE_SIG_ATOMIC_T 1
5637 _ACEOF
5638
5639
5640 fi
5641
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5644 $as_echo_n "checking return type of signal handlers... " >&6; }
5645 if ${ac_cv_type_signal+:} false; then :
5646   $as_echo_n "(cached) " >&6
5647 else
5648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h.  */
5650 #include <sys/types.h>
5651 #include <signal.h>
5652
5653 int
5654 main ()
5655 {
5656 return *(signal (0, 0)) (0) == 1;
5657   ;
5658   return 0;
5659 }
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662   ac_cv_type_signal=int
5663 else
5664   ac_cv_type_signal=void
5665 fi
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5669 $as_echo "$ac_cv_type_signal" >&6; }
5670
5671 cat >>confdefs.h <<_ACEOF
5672 #define RETSIGTYPE $ac_cv_type_signal
5673 _ACEOF
5674
5675
5676 for ac_header in vfork.h
5677 do :
5678   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5679 if test "x$ac_cv_header_vfork_h" = xyes; then :
5680   cat >>confdefs.h <<_ACEOF
5681 #define HAVE_VFORK_H 1
5682 _ACEOF
5683
5684 fi
5685
5686 done
5687
5688 for ac_func in fork vfork
5689 do :
5690   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5691 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5692 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5693   cat >>confdefs.h <<_ACEOF
5694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5695 _ACEOF
5696
5697 fi
5698 done
5699
5700 if test "x$ac_cv_func_fork" = xyes; then
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5702 $as_echo_n "checking for working fork... " >&6; }
5703 if ${ac_cv_func_fork_works+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   if test "$cross_compiling" = yes; then :
5707   ac_cv_func_fork_works=cross
5708 else
5709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h.  */
5711 $ac_includes_default
5712 int
5713 main ()
5714 {
5715
5716           /* By Ruediger Kuhlmann. */
5717           return fork () < 0;
5718
5719   ;
5720   return 0;
5721 }
5722 _ACEOF
5723 if ac_fn_c_try_run "$LINENO"; then :
5724   ac_cv_func_fork_works=yes
5725 else
5726   ac_cv_func_fork_works=no
5727 fi
5728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5729   conftest.$ac_objext conftest.beam conftest.$ac_ext
5730 fi
5731
5732 fi
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5734 $as_echo "$ac_cv_func_fork_works" >&6; }
5735
5736 else
5737   ac_cv_func_fork_works=$ac_cv_func_fork
5738 fi
5739 if test "x$ac_cv_func_fork_works" = xcross; then
5740   case $host in
5741     *-*-amigaos* | *-*-msdosdjgpp*)
5742       # Override, as these systems have only a dummy fork() stub
5743       ac_cv_func_fork_works=no
5744       ;;
5745     *)
5746       ac_cv_func_fork_works=yes
5747       ;;
5748   esac
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5750 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5751 fi
5752 ac_cv_func_vfork_works=$ac_cv_func_vfork
5753 if test "x$ac_cv_func_vfork" = xyes; then
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5755 $as_echo_n "checking for working vfork... " >&6; }
5756 if ${ac_cv_func_vfork_works+:} false; then :
5757   $as_echo_n "(cached) " >&6
5758 else
5759   if test "$cross_compiling" = yes; then :
5760   ac_cv_func_vfork_works=cross
5761 else
5762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h.  */
5764 /* Thanks to Paul Eggert for this test.  */
5765 $ac_includes_default
5766 #include <sys/wait.h>
5767 #ifdef HAVE_VFORK_H
5768 # include <vfork.h>
5769 #endif
5770 /* On some sparc systems, changes by the child to local and incoming
5771    argument registers are propagated back to the parent.  The compiler
5772    is told about this with #include <vfork.h>, but some compilers
5773    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5774    static variable whose address is put into a register that is
5775    clobbered by the vfork.  */
5776 static void
5777 #ifdef __cplusplus
5778 sparc_address_test (int arg)
5779 # else
5780 sparc_address_test (arg) int arg;
5781 #endif
5782 {
5783   static pid_t child;
5784   if (!child) {
5785     child = vfork ();
5786     if (child < 0) {
5787       perror ("vfork");
5788       _exit(2);
5789     }
5790     if (!child) {
5791       arg = getpid();
5792       write(-1, "", 0);
5793       _exit (arg);
5794     }
5795   }
5796 }
5797
5798 int
5799 main ()
5800 {
5801   pid_t parent = getpid ();
5802   pid_t child;
5803
5804   sparc_address_test (0);
5805
5806   child = vfork ();
5807
5808   if (child == 0) {
5809     /* Here is another test for sparc vfork register problems.  This
5810        test uses lots of local variables, at least as many local
5811        variables as main has allocated so far including compiler
5812        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5813        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5814        reuse the register of parent for one of the local variables,
5815        since it will think that parent can't possibly be used any more
5816        in this routine.  Assigning to the local variable will thus
5817        munge parent in the parent process.  */
5818     pid_t
5819       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5820       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5821     /* Convince the compiler that p..p7 are live; otherwise, it might
5822        use the same hardware register for all 8 local variables.  */
5823     if (p != p1 || p != p2 || p != p3 || p != p4
5824         || p != p5 || p != p6 || p != p7)
5825       _exit(1);
5826
5827     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5828        from child file descriptors.  If the child closes a descriptor
5829        before it execs or exits, this munges the parent's descriptor
5830        as well.  Test for this by closing stdout in the child.  */
5831     _exit(close(fileno(stdout)) != 0);
5832   } else {
5833     int status;
5834     struct stat st;
5835
5836     while (wait(&status) != child)
5837       ;
5838     return (
5839          /* Was there some problem with vforking?  */
5840          child < 0
5841
5842          /* Did the child fail?  (This shouldn't happen.)  */
5843          || status
5844
5845          /* Did the vfork/compiler bug occur?  */
5846          || parent != getpid()
5847
5848          /* Did the file descriptor bug occur?  */
5849          || fstat(fileno(stdout), &st) != 0
5850          );
5851   }
5852 }
5853 _ACEOF
5854 if ac_fn_c_try_run "$LINENO"; then :
5855   ac_cv_func_vfork_works=yes
5856 else
5857   ac_cv_func_vfork_works=no
5858 fi
5859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5860   conftest.$ac_objext conftest.beam conftest.$ac_ext
5861 fi
5862
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5865 $as_echo "$ac_cv_func_vfork_works" >&6; }
5866
5867 fi;
5868 if test "x$ac_cv_func_fork_works" = xcross; then
5869   ac_cv_func_vfork_works=$ac_cv_func_vfork
5870   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5871 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5872 fi
5873
5874 if test "x$ac_cv_func_vfork_works" = xyes; then
5875
5876 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5877
5878 else
5879
5880 $as_echo "#define vfork fork" >>confdefs.h
5881
5882 fi
5883 if test "x$ac_cv_func_fork_works" = xyes; then
5884
5885 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5886
5887 fi
5888
5889 for ac_func in vprintf
5890 do :
5891   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5892 if test "x$ac_cv_func_vprintf" = xyes; then :
5893   cat >>confdefs.h <<_ACEOF
5894 #define HAVE_VPRINTF 1
5895 _ACEOF
5896
5897 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5898 if test "x$ac_cv_func__doprnt" = xyes; then :
5899
5900 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5901
5902 fi
5903
5904 fi
5905 done
5906
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
5909 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
5910 if ${ac_cv_func_wait3_rusage+:} false; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   if test "$cross_compiling" = yes; then :
5914   ac_cv_func_wait3_rusage=no
5915 else
5916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h.  */
5918 $ac_includes_default
5919 #include <sys/time.h>
5920 #include <sys/resource.h>
5921 #include <sys/wait.h>
5922 /* HP-UX has wait3 but does not fill in rusage at all.  */
5923 int
5924 main ()
5925 {
5926   struct rusage r;
5927   int i;
5928   /* Use a field that we can force nonzero --
5929      voluntary context switches.
5930      For systems like NeXT and OSF/1 that don't set it,
5931      also use the system CPU time.  And page faults (I/O) for Linux.  */
5932   r.ru_nvcsw = 0;
5933   r.ru_stime.tv_sec = 0;
5934   r.ru_stime.tv_usec = 0;
5935   r.ru_majflt = r.ru_minflt = 0;
5936   switch (fork ())
5937     {
5938     case 0: /* Child.  */
5939       sleep(1); /* Give up the CPU.  */
5940       _exit(0);
5941       break;
5942     case -1: /* What can we do?  */
5943       _exit(0);
5944       break;
5945     default: /* Parent.  */
5946       wait3(&i, 0, &r);
5947       /* Avoid "text file busy" from rm on fast HP-UX machines.  */
5948       sleep(2);
5949       return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5950               && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5951     }
5952 }
5953 _ACEOF
5954 if ac_fn_c_try_run "$LINENO"; then :
5955   ac_cv_func_wait3_rusage=yes
5956 else
5957   ac_cv_func_wait3_rusage=no
5958 fi
5959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5960   conftest.$ac_objext conftest.beam conftest.$ac_ext
5961 fi
5962
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
5965 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
5966 if test $ac_cv_func_wait3_rusage = yes; then
5967
5968 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
5969
5970 fi
5971
5972 for ac_func in \
5973         err \
5974         errx \
5975         getcwd \
5976         getenv \
5977         getwd \
5978         killpg \
5979         mmap \
5980         putenv \
5981         select \
5982         setenv \
5983         setpgid \
5984         setrlimit \
5985         setsid \
5986         sigaddset \
5987         sigpending \
5988         sigprocmask \
5989         sigsetmask \
5990         sigsuspend \
5991         sigvec \
5992         snprintf \
5993         strerror \
5994         stresep \
5995         strftime \
5996         strsep \
5997         strtod \
5998         strtol \
5999         strtoll \
6000         strtoul \
6001         sysctl \
6002         unsetenv \
6003         vsnprintf \
6004         wait3 \
6005         wait4 \
6006         waitpid \
6007         warn \
6008         warnx \
6009
6010 do :
6011   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6012 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6013 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6014   cat >>confdefs.h <<_ACEOF
6015 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6016 _ACEOF
6017
6018 fi
6019 done
6020
6021
6022 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6023 if test "x$ac_cv_func_getopt" = xyes; then :
6024   $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
6025
6026 else
6027   case " $LIBOBJS " in
6028   *" getopt.$ac_objext "* ) ;;
6029   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
6030  ;;
6031 esac
6032
6033 fi
6034
6035 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
6036 if test "x$ac_cv_func_realpath" = xyes; then :
6037   $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
6038
6039 else
6040   case " $LIBOBJS " in
6041   *" realpath.$ac_objext "* ) ;;
6042   *) LIBOBJS="$LIBOBJS realpath.$ac_objext"
6043  ;;
6044 esac
6045
6046 fi
6047
6048 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
6049 if test "x$ac_cv_func_dirname" = xyes; then :
6050   $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
6051
6052 else
6053   case " $LIBOBJS " in
6054   *" dirname.$ac_objext "* ) ;;
6055   *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
6056  ;;
6057 esac
6058
6059 fi
6060
6061 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
6062 if test "x$ac_cv_func_sigaction" = xyes; then :
6063   $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
6064
6065 else
6066   case " $LIBOBJS " in
6067   *" sigaction.$ac_objext "* ) ;;
6068   *) LIBOBJS="$LIBOBJS sigaction.$ac_objext"
6069  ;;
6070 esac
6071
6072 fi
6073
6074 ac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
6075 if test "x$ac_cv_func_stresep" = xyes; then :
6076   $as_echo "#define HAVE_STRESEP 1" >>confdefs.h
6077
6078 else
6079   case " $LIBOBJS " in
6080   *" stresep.$ac_objext "* ) ;;
6081   *) LIBOBJS="$LIBOBJS stresep.$ac_objext"
6082  ;;
6083 esac
6084
6085 fi
6086
6087 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6088 if test "x$ac_cv_func_strlcpy" = xyes; then :
6089   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
6090
6091 else
6092   case " $LIBOBJS " in
6093   *" strlcpy.$ac_objext "* ) ;;
6094   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
6095  ;;
6096 esac
6097
6098 fi
6099
6100
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
6103 $as_echo_n "checking for emalloc in -lutil... " >&6; }
6104 if ${ac_cv_lib_util_emalloc+:} false; then :
6105   $as_echo_n "(cached) " >&6
6106 else
6107   ac_check_lib_save_LIBS=$LIBS
6108 LIBS="-lutil  $LIBS"
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h.  */
6111
6112 /* Override any GCC internal prototype to avoid an error.
6113    Use char because int might match the return type of a GCC
6114    builtin and then its argument prototype would still apply.  */
6115 #ifdef __cplusplus
6116 extern "C"
6117 #endif
6118 char emalloc ();
6119 int
6120 main ()
6121 {
6122 return emalloc ();
6123   ;
6124   return 0;
6125 }
6126 _ACEOF
6127 if ac_fn_c_try_link "$LINENO"; then :
6128   ac_cv_lib_util_emalloc=yes
6129 else
6130   ac_cv_lib_util_emalloc=no
6131 fi
6132 rm -f core conftest.err conftest.$ac_objext \
6133     conftest$ac_exeext conftest.$ac_ext
6134 LIBS=$ac_check_lib_save_LIBS
6135 fi
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
6137 $as_echo "$ac_cv_lib_util_emalloc" >&6; }
6138 if test "x$ac_cv_lib_util_emalloc" = xyes; then :
6139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
6140 $as_echo_n "checking for erealloc in -lutil... " >&6; }
6141 if ${ac_cv_lib_util_erealloc+:} false; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   ac_check_lib_save_LIBS=$LIBS
6145 LIBS="-lutil  $LIBS"
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h.  */
6148
6149 /* Override any GCC internal prototype to avoid an error.
6150    Use char because int might match the return type of a GCC
6151    builtin and then its argument prototype would still apply.  */
6152 #ifdef __cplusplus
6153 extern "C"
6154 #endif
6155 char erealloc ();
6156 int
6157 main ()
6158 {
6159 return erealloc ();
6160   ;
6161   return 0;
6162 }
6163 _ACEOF
6164 if ac_fn_c_try_link "$LINENO"; then :
6165   ac_cv_lib_util_erealloc=yes
6166 else
6167   ac_cv_lib_util_erealloc=no
6168 fi
6169 rm -f core conftest.err conftest.$ac_objext \
6170     conftest$ac_exeext conftest.$ac_ext
6171 LIBS=$ac_check_lib_save_LIBS
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
6174 $as_echo "$ac_cv_lib_util_erealloc" >&6; }
6175 if test "x$ac_cv_lib_util_erealloc" = xyes; then :
6176    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
6177 $as_echo_n "checking for estrdup in -lutil... " >&6; }
6178 if ${ac_cv_lib_util_estrdup+:} false; then :
6179   $as_echo_n "(cached) " >&6
6180 else
6181   ac_check_lib_save_LIBS=$LIBS
6182 LIBS="-lutil  $LIBS"
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h.  */
6185
6186 /* Override any GCC internal prototype to avoid an error.
6187    Use char because int might match the return type of a GCC
6188    builtin and then its argument prototype would still apply.  */
6189 #ifdef __cplusplus
6190 extern "C"
6191 #endif
6192 char estrdup ();
6193 int
6194 main ()
6195 {
6196 return estrdup ();
6197   ;
6198   return 0;
6199 }
6200 _ACEOF
6201 if ac_fn_c_try_link "$LINENO"; then :
6202   ac_cv_lib_util_estrdup=yes
6203 else
6204   ac_cv_lib_util_estrdup=no
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext \
6207     conftest$ac_exeext conftest.$ac_ext
6208 LIBS=$ac_check_lib_save_LIBS
6209 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
6211 $as_echo "$ac_cv_lib_util_estrdup" >&6; }
6212 if test "x$ac_cv_lib_util_estrdup" = xyes; then :
6213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
6214 $as_echo_n "checking for estrndup in -lutil... " >&6; }
6215 if ${ac_cv_lib_util_estrndup+:} false; then :
6216   $as_echo_n "(cached) " >&6
6217 else
6218   ac_check_lib_save_LIBS=$LIBS
6219 LIBS="-lutil  $LIBS"
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h.  */
6222
6223 /* Override any GCC internal prototype to avoid an error.
6224    Use char because int might match the return type of a GCC
6225    builtin and then its argument prototype would still apply.  */
6226 #ifdef __cplusplus
6227 extern "C"
6228 #endif
6229 char estrndup ();
6230 int
6231 main ()
6232 {
6233 return estrndup ();
6234   ;
6235   return 0;
6236 }
6237 _ACEOF
6238 if ac_fn_c_try_link "$LINENO"; then :
6239   ac_cv_lib_util_estrndup=yes
6240 else
6241   ac_cv_lib_util_estrndup=no
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext \
6244     conftest$ac_exeext conftest.$ac_ext
6245 LIBS=$ac_check_lib_save_LIBS
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
6248 $as_echo "$ac_cv_lib_util_estrndup" >&6; }
6249 if test "x$ac_cv_lib_util_estrndup" = xyes; then :
6250    LIBS="$LIBS -lutil"
6251             CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
6252 fi
6253
6254 fi
6255
6256 fi
6257
6258 fi
6259
6260
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6262 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6263 if ${ac_cv_header_stat_broken+:} false; then :
6264   $as_echo_n "(cached) " >&6
6265 else
6266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h.  */
6268 #include <sys/types.h>
6269 #include <sys/stat.h>
6270
6271 #if defined S_ISBLK && defined S_IFDIR
6272 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6273 #endif
6274
6275 #if defined S_ISBLK && defined S_IFCHR
6276 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6277 #endif
6278
6279 #if defined S_ISLNK && defined S_IFREG
6280 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6281 #endif
6282
6283 #if defined S_ISSOCK && defined S_IFREG
6284 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6285 #endif
6286
6287 _ACEOF
6288 if ac_fn_c_try_compile "$LINENO"; then :
6289   ac_cv_header_stat_broken=no
6290 else
6291   ac_cv_header_stat_broken=yes
6292 fi
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 fi
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6296 $as_echo "$ac_cv_header_stat_broken" >&6; }
6297 if test $ac_cv_header_stat_broken = yes; then
6298
6299 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6300
6301 fi
6302
6303 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6304 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6305
6306 cat >>confdefs.h <<_ACEOF
6307 #define HAVE_STRUCT_STAT_ST_RDEV 1
6308 _ACEOF
6309
6310
6311 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6312
6313 fi
6314
6315
6316 echo "checking if compiler supports __func__" >&6
6317 ac_ext=c
6318 ac_cpp='$CPP $CPPFLAGS'
6319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h.  */
6325
6326 int
6327 main ()
6328 {
6329 const char *func = __func__;
6330   ;
6331   return 0;
6332 }
6333 _ACEOF
6334 if ac_fn_c_try_compile "$LINENO"; then :
6335
6336 else
6337
6338 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
6339
6340 fi
6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342 if test -x /usr/gnu/bin/diff; then
6343         diff=/usr/gnu/bin/diff
6344         diff_u=-u
6345 else
6346         diff=${diff:-diff}
6347         echo $ECHO_N "checking if $diff -u works... $ECHO_C" >&6
6348         if $diff -u /dev/null /dev/null > /dev/null 2>&1; then
6349                 diff_u=-u
6350                 echo yes >&6
6351         else
6352                 diff_u=
6353                 echo no >&6
6354         fi
6355 fi
6356 echo "checking for MACHINE & MACHINE_ARCH..." >&6
6357 cat > conftest.$ac_ext <<EOF
6358 #include "confdefs.h"
6359 #include <sys/param.h>
6360 #ifdef MACHINE
6361 machine=MACHINE
6362 #endif
6363 #ifdef MACHINE_ARCH
6364 machine_arch=MACHINE_ARCH
6365 #endif
6366 EOF
6367
6368 default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6369         egrep machine= | tr -d ' "'`
6370 rm -rf conftest*
6371 if test "$default_machine"; then
6372         eval "$default_machine"
6373 fi
6374 machine=${machine:-`$srcdir/machine.sh`}
6375 machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
6376 echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
6377
6378 # Check whether --with-machine was given.
6379 if test "${with_machine+set}" = set; then :
6380   withval=$with_machine; case "${withval}" in
6381 yes)   as_fn_error $? "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
6382 no)    ;;
6383 generic) machine=`$srcdir/machine.sh`;;
6384 *)     machine=$with_machine;;
6385 esac
6386 fi
6387
6388 force_machine=
6389
6390 # Check whether --with-force_machine was given.
6391 if test "${with_force_machine+set}" = set; then :
6392   withval=$with_force_machine; case "${withval}" in
6393 yes)   force_machine=FORCE_;;
6394 no)    ;;
6395 *)     force_machine=FORCE_; machine=$with_force_machine;;
6396 esac
6397 fi
6398
6399 force_machine_arch=
6400
6401 # Check whether --with-force_machine_arch was given.
6402 if test "${with_force_machine_arch+set}" = set; then :
6403   withval=$with_force_machine_arch; case "${withval}" in
6404 yes)   force_machine_arch=FORCE_;;
6405 no)    ;;
6406 *)     force_machine_arch=FORCE_; machine_arch=$with_force_machine_arch;;
6407 esac
6408 fi
6409
6410
6411 # Check whether --with-machine_arch was given.
6412 if test "${with_machine_arch+set}" = set; then :
6413   withval=$with_machine_arch; case "${withval}" in
6414 yes)   as_fn_error $? "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
6415 no)    ;;
6416 *)     machine_arch=$with_machine_arch;;
6417 esac
6418 fi
6419
6420 echo "Using: ${force_machine}MACHINE=$machine, ${force_machine_arch}MACHINE_ARCH=$machine_arch" 1>&6
6421 default_sys_path=\${prefix}/share/mk
6422
6423 # Check whether --with-default-sys-path was given.
6424 if test "${with_default_sys_path+set}" = set; then :
6425   withval=$with_default_sys_path; case "${withval}" in
6426 yes)    as_fn_error $? "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
6427 no)     ;;
6428 *)      default_sys_path="$with_default_sys_path"
6429         ;;
6430 esac
6431 fi
6432
6433
6434 # Check whether --with-path-objdirprefix was given.
6435 if test "${with_path_objdirprefix+set}" = set; then :
6436   withval=$with_path_objdirprefix; case "${withval}" in
6437 yes)   as_fn_error $? "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
6438 no)    CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
6439 *)     CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
6440 esac
6441 fi
6442
6443 # Check whether --enable-pwd-override was given.
6444 if test "${enable_pwd_override+set}" = set; then :
6445   enableval=$enable_pwd_override; case "${enableval}" in
6446 yes)   ;;
6447 no)    CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
6448 *)     as_fn_error $? "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
6449 esac
6450 fi
6451
6452 # Check whether --enable-check-make-chdir was given.
6453 if test "${enable_check_make_chdir+set}" = set; then :
6454   enableval=$enable_check_make_chdir; case "${enableval}" in
6455 yes)   ;;
6456 no)    CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
6457 *)     as_fn_error $? "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
6458 esac
6459 fi
6460
6461
6462 # Check whether --with-mksrc was given.
6463 if test "${with_mksrc+set}" = set; then :
6464   withval=$with_mksrc; case "${withval}" in
6465 ""|yes|no) ;;
6466 *) test -s $withval/install-mk && mksrc=$withval ||
6467 as_fn_error $? "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
6468 ;;
6469 esac
6470
6471 fi
6472
6473 srcdir=`cd $srcdir && pwd`
6474 for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
6475 do
6476         test -s $mksrc/install-mk || continue
6477         mksrc=`cd $mksrc && pwd`
6478         break
6479 done
6480 mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
6481 echo "Using: MKSRC=$mksrc" 1>&6
6482 for sh in /usr/xpg4/bin/sh $ALT_DEF_SHELLS
6483 do
6484         test -x $sh || continue
6485         use_defshell $sh
6486         break
6487 done
6488 case "$defshell_path$DEFSHELL_INDEX" in
6489 "")     ;;
6490 *DEFSHELL_INDEX_CUSTOM)
6491         echo "Using: SHELL=$defshell_path"  >&6
6492
6493 cat >>confdefs.h <<_ACEOF
6494 #define DEFSHELL_CUSTOM "$defshell_path"
6495 _ACEOF
6496
6497         ;;
6498 /*INDEX*)
6499         echo "Using: SHELL=$DEFSHELL_INDEX ($defshell_path)" | sed 's,DEFSHELL_INDEX_,,' >&6
6500
6501 cat >>confdefs.h <<_ACEOF
6502 #define DEFSHELL_INDEX $DEFSHELL_INDEX
6503 _ACEOF
6504
6505
6506 cat >>confdefs.h <<_ACEOF
6507 #define DEFSHELL_PATH "$defshell_path"
6508 _ACEOF
6509
6510         ;;
6511 *)
6512         echo "Using: SHELL=$DEFSHELL_INDEX" | sed 's,DEFSHELL_INDEX_,,' >&6
6513
6514 cat >>confdefs.h <<_ACEOF
6515 #define DEFSHELL_INDEX $DEFSHELL_INDEX
6516 _ACEOF
6517
6518         ;;
6519 esac
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535 bm_outfiles="Makefile.config unit-tests/Makefile.config make-bootstrap.sh"
6536 if test $use_makefile = yes; then
6537    bm_outfiles="makefile $bm_outfiles"
6538 fi
6539
6540 here=`'pwd'`
6541 : srcdir=$srcdir
6542 : here=  $here
6543 case "$here" in
6544 $srcdir/obj*) # make sure we put unit-tests/Makefile.config in the right place
6545         obj=`basename $here`
6546         mkdir -p $srcdir/unit-tests/$obj
6547         test -d unit-tests || ln -s ../unit-tests/$obj unit-tests
6548         ;;
6549 esac
6550
6551 ac_config_files="$ac_config_files $bm_outfiles"
6552
6553 cat >confcache <<\_ACEOF
6554 # This file is a shell script that caches the results of configure
6555 # tests run on this system so they can be shared between configure
6556 # scripts and configure runs, see configure's option --config-cache.
6557 # It is not useful on other systems.  If it contains results you don't
6558 # want to keep, you may remove or edit it.
6559 #
6560 # config.status only pays attention to the cache file if you give it
6561 # the --recheck option to rerun configure.
6562 #
6563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6565 # following values.
6566
6567 _ACEOF
6568
6569 # The following way of writing the cache mishandles newlines in values,
6570 # but we know of no workaround that is simple, portable, and efficient.
6571 # So, we kill variables containing newlines.
6572 # Ultrix sh set writes to stderr and can't be redirected directly,
6573 # and sets the high bit in the cache file unless we assign to the vars.
6574 (
6575   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6576     eval ac_val=\$$ac_var
6577     case $ac_val in #(
6578     *${as_nl}*)
6579       case $ac_var in #(
6580       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6582       esac
6583       case $ac_var in #(
6584       _ | IFS | as_nl) ;; #(
6585       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6586       *) { eval $ac_var=; unset $ac_var;} ;;
6587       esac ;;
6588     esac
6589   done
6590
6591   (set) 2>&1 |
6592     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6593     *${as_nl}ac_space=\ *)
6594       # `set' does not quote correctly, so add quotes: double-quote
6595       # substitution turns \\\\ into \\, and sed turns \\ into \.
6596       sed -n \
6597         "s/'/'\\\\''/g;
6598           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6599       ;; #(
6600     *)
6601       # `set' quotes correctly as required by POSIX, so do not add quotes.
6602       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6603       ;;
6604     esac |
6605     sort
6606 ) |
6607   sed '
6608      /^ac_cv_env_/b end
6609      t clear
6610      :clear
6611      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6612      t end
6613      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6614      :end' >>confcache
6615 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6616   if test -w "$cache_file"; then
6617     if test "x$cache_file" != "x/dev/null"; then
6618       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6619 $as_echo "$as_me: updating cache $cache_file" >&6;}
6620       if test ! -f "$cache_file" || test -h "$cache_file"; then
6621         cat confcache >"$cache_file"
6622       else
6623         case $cache_file in #(
6624         */* | ?:*)
6625           mv -f confcache "$cache_file"$$ &&
6626           mv -f "$cache_file"$$ "$cache_file" ;; #(
6627         *)
6628           mv -f confcache "$cache_file" ;;
6629         esac
6630       fi
6631     fi
6632   else
6633     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6634 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6635   fi
6636 fi
6637 rm -f confcache
6638
6639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6640 # Let make expand exec_prefix.
6641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6642
6643 DEFS=-DHAVE_CONFIG_H
6644
6645 ac_libobjs=
6646 ac_ltlibobjs=
6647 U=
6648 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6649   # 1. Remove the extension, and $U if already installed.
6650   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6651   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6652   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6653   #    will be set to the directory where LIBOBJS objects are built.
6654   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6655   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6656 done
6657 LIBOBJS=$ac_libobjs
6658
6659 LTLIBOBJS=$ac_ltlibobjs
6660
6661
6662
6663
6664 : "${CONFIG_STATUS=./config.status}"
6665 ac_write_fail=0
6666 ac_clean_files_save=$ac_clean_files
6667 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6669 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6670 as_write_fail=0
6671 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6672 #! $SHELL
6673 # Generated by $as_me.
6674 # Run this file to recreate the current configuration.
6675 # Compiler output produced by configure, useful for debugging
6676 # configure, is in config.log if it exists.
6677
6678 debug=false
6679 ac_cs_recheck=false
6680 ac_cs_silent=false
6681
6682 SHELL=\${CONFIG_SHELL-$SHELL}
6683 export SHELL
6684 _ASEOF
6685 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6686 ## -------------------- ##
6687 ## M4sh Initialization. ##
6688 ## -------------------- ##
6689
6690 # Be more Bourne compatible
6691 DUALCASE=1; export DUALCASE # for MKS sh
6692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6693   emulate sh
6694   NULLCMD=:
6695   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6696   # is contrary to our usage.  Disable this feature.
6697   alias -g '${1+"$@"}'='"$@"'
6698   setopt NO_GLOB_SUBST
6699 else
6700   case `(set -o) 2>/dev/null` in #(
6701   *posix*) :
6702     set -o posix ;; #(
6703   *) :
6704      ;;
6705 esac
6706 fi
6707
6708
6709 as_nl='
6710 '
6711 export as_nl
6712 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6713 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6716 # Prefer a ksh shell builtin over an external printf program on Solaris,
6717 # but without wasting forks for bash or zsh.
6718 if test -z "$BASH_VERSION$ZSH_VERSION" \
6719     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6720   as_echo='print -r --'
6721   as_echo_n='print -rn --'
6722 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6723   as_echo='printf %s\n'
6724   as_echo_n='printf %s'
6725 else
6726   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6727     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6728     as_echo_n='/usr/ucb/echo -n'
6729   else
6730     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6731     as_echo_n_body='eval
6732       arg=$1;
6733       case $arg in #(
6734       *"$as_nl"*)
6735         expr "X$arg" : "X\\(.*\\)$as_nl";
6736         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6737       esac;
6738       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6739     '
6740     export as_echo_n_body
6741     as_echo_n='sh -c $as_echo_n_body as_echo'
6742   fi
6743   export as_echo_body
6744   as_echo='sh -c $as_echo_body as_echo'
6745 fi
6746
6747 # The user is always right.
6748 if test "${PATH_SEPARATOR+set}" != set; then
6749   PATH_SEPARATOR=:
6750   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6751     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6752       PATH_SEPARATOR=';'
6753   }
6754 fi
6755
6756
6757 # IFS
6758 # We need space, tab and new line, in precisely that order.  Quoting is
6759 # there to prevent editors from complaining about space-tab.
6760 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6761 # splitting by setting IFS to empty value.)
6762 IFS=" ""        $as_nl"
6763
6764 # Find who we are.  Look in the path if we contain no directory separator.
6765 as_myself=
6766 case $0 in #((
6767   *[\\/]* ) as_myself=$0 ;;
6768   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6774   done
6775 IFS=$as_save_IFS
6776
6777      ;;
6778 esac
6779 # We did not find ourselves, most probably we were run as `sh COMMAND'
6780 # in which case we are not to be found in the path.
6781 if test "x$as_myself" = x; then
6782   as_myself=$0
6783 fi
6784 if test ! -f "$as_myself"; then
6785   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6786   exit 1
6787 fi
6788
6789 # Unset variables that we do not need and which cause bugs (e.g. in
6790 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6791 # suppresses any "Segmentation fault" message there.  '((' could
6792 # trigger a bug in pdksh 5.2.14.
6793 for as_var in BASH_ENV ENV MAIL MAILPATH
6794 do eval test x\${$as_var+set} = xset \
6795   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6796 done
6797 PS1='$ '
6798 PS2='> '
6799 PS4='+ '
6800
6801 # NLS nuisances.
6802 LC_ALL=C
6803 export LC_ALL
6804 LANGUAGE=C
6805 export LANGUAGE
6806
6807 # CDPATH.
6808 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6809
6810
6811 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6812 # ----------------------------------------
6813 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6814 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6815 # script with STATUS, using 1 if that was 0.
6816 as_fn_error ()
6817 {
6818   as_status=$1; test $as_status -eq 0 && as_status=1
6819   if test "$4"; then
6820     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6821     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6822   fi
6823   $as_echo "$as_me: error: $2" >&2
6824   as_fn_exit $as_status
6825 } # as_fn_error
6826
6827
6828 # as_fn_set_status STATUS
6829 # -----------------------
6830 # Set $? to STATUS, without forking.
6831 as_fn_set_status ()
6832 {
6833   return $1
6834 } # as_fn_set_status
6835
6836 # as_fn_exit STATUS
6837 # -----------------
6838 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6839 as_fn_exit ()
6840 {
6841   set +e
6842   as_fn_set_status $1
6843   exit $1
6844 } # as_fn_exit
6845
6846 # as_fn_unset VAR
6847 # ---------------
6848 # Portably unset VAR.
6849 as_fn_unset ()
6850 {
6851   { eval $1=; unset $1;}
6852 }
6853 as_unset=as_fn_unset
6854 # as_fn_append VAR VALUE
6855 # ----------------------
6856 # Append the text in VALUE to the end of the definition contained in VAR. Take
6857 # advantage of any shell optimizations that allow amortized linear growth over
6858 # repeated appends, instead of the typical quadratic growth present in naive
6859 # implementations.
6860 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6861   eval 'as_fn_append ()
6862   {
6863     eval $1+=\$2
6864   }'
6865 else
6866   as_fn_append ()
6867   {
6868     eval $1=\$$1\$2
6869   }
6870 fi # as_fn_append
6871
6872 # as_fn_arith ARG...
6873 # ------------------
6874 # Perform arithmetic evaluation on the ARGs, and store the result in the
6875 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6876 # must be portable across $(()) and expr.
6877 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6878   eval 'as_fn_arith ()
6879   {
6880     as_val=$(( $* ))
6881   }'
6882 else
6883   as_fn_arith ()
6884   {
6885     as_val=`expr "$@" || test $? -eq 1`
6886   }
6887 fi # as_fn_arith
6888
6889
6890 if expr a : '\(a\)' >/dev/null 2>&1 &&
6891    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6892   as_expr=expr
6893 else
6894   as_expr=false
6895 fi
6896
6897 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6898   as_basename=basename
6899 else
6900   as_basename=false
6901 fi
6902
6903 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6904   as_dirname=dirname
6905 else
6906   as_dirname=false
6907 fi
6908
6909 as_me=`$as_basename -- "$0" ||
6910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6911          X"$0" : 'X\(//\)$' \| \
6912          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6913 $as_echo X/"$0" |
6914     sed '/^.*\/\([^/][^/]*\)\/*$/{
6915             s//\1/
6916             q
6917           }
6918           /^X\/\(\/\/\)$/{
6919             s//\1/
6920             q
6921           }
6922           /^X\/\(\/\).*/{
6923             s//\1/
6924             q
6925           }
6926           s/.*/./; q'`
6927
6928 # Avoid depending upon Character Ranges.
6929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6932 as_cr_digits='0123456789'
6933 as_cr_alnum=$as_cr_Letters$as_cr_digits
6934
6935 ECHO_C= ECHO_N= ECHO_T=
6936 case `echo -n x` in #(((((
6937 -n*)
6938   case `echo 'xy\c'` in
6939   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6940   xy)  ECHO_C='\c';;
6941   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6942        ECHO_T=' ';;
6943   esac;;
6944 *)
6945   ECHO_N='-n';;
6946 esac
6947
6948 rm -f conf$$ conf$$.exe conf$$.file
6949 if test -d conf$$.dir; then
6950   rm -f conf$$.dir/conf$$.file
6951 else
6952   rm -f conf$$.dir
6953   mkdir conf$$.dir 2>/dev/null
6954 fi
6955 if (echo >conf$$.file) 2>/dev/null; then
6956   if ln -s conf$$.file conf$$ 2>/dev/null; then
6957     as_ln_s='ln -s'
6958     # ... but there are two gotchas:
6959     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6960     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6961     # In both cases, we have to default to `cp -pR'.
6962     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6963       as_ln_s='cp -pR'
6964   elif ln conf$$.file conf$$ 2>/dev/null; then
6965     as_ln_s=ln
6966   else
6967     as_ln_s='cp -pR'
6968   fi
6969 else
6970   as_ln_s='cp -pR'
6971 fi
6972 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6973 rmdir conf$$.dir 2>/dev/null
6974
6975
6976 # as_fn_mkdir_p
6977 # -------------
6978 # Create "$as_dir" as a directory, including parents if necessary.
6979 as_fn_mkdir_p ()
6980 {
6981
6982   case $as_dir in #(
6983   -*) as_dir=./$as_dir;;
6984   esac
6985   test -d "$as_dir" || eval $as_mkdir_p || {
6986     as_dirs=
6987     while :; do
6988       case $as_dir in #(
6989       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6990       *) as_qdir=$as_dir;;
6991       esac
6992       as_dirs="'$as_qdir' $as_dirs"
6993       as_dir=`$as_dirname -- "$as_dir" ||
6994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6995          X"$as_dir" : 'X\(//\)[^/]' \| \
6996          X"$as_dir" : 'X\(//\)$' \| \
6997          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6998 $as_echo X"$as_dir" |
6999     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7000             s//\1/
7001             q
7002           }
7003           /^X\(\/\/\)[^/].*/{
7004             s//\1/
7005             q
7006           }
7007           /^X\(\/\/\)$/{
7008             s//\1/
7009             q
7010           }
7011           /^X\(\/\).*/{
7012             s//\1/
7013             q
7014           }
7015           s/.*/./; q'`
7016       test -d "$as_dir" && break
7017     done
7018     test -z "$as_dirs" || eval "mkdir $as_dirs"
7019   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7020
7021
7022 } # as_fn_mkdir_p
7023 if mkdir -p . 2>/dev/null; then
7024   as_mkdir_p='mkdir -p "$as_dir"'
7025 else
7026   test -d ./-p && rmdir ./-p
7027   as_mkdir_p=false
7028 fi
7029
7030
7031 # as_fn_executable_p FILE
7032 # -----------------------
7033 # Test if FILE is an executable regular file.
7034 as_fn_executable_p ()
7035 {
7036   test -f "$1" && test -x "$1"
7037 } # as_fn_executable_p
7038 as_test_x='test -x'
7039 as_executable_p=as_fn_executable_p
7040
7041 # Sed expression to map a string onto a valid CPP name.
7042 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7043
7044 # Sed expression to map a string onto a valid variable name.
7045 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7046
7047
7048 exec 6>&1
7049 ## ----------------------------------- ##
7050 ## Main body of $CONFIG_STATUS script. ##
7051 ## ----------------------------------- ##
7052 _ASEOF
7053 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7054
7055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7056 # Save the log message, to keep $0 and so on meaningful, and to
7057 # report actual input values of CONFIG_FILES etc. instead of their
7058 # values after options handling.
7059 ac_log="
7060 This file was extended by bmake $as_me 20211020, which was
7061 generated by GNU Autoconf 2.69.  Invocation command line was
7062
7063   CONFIG_FILES    = $CONFIG_FILES
7064   CONFIG_HEADERS  = $CONFIG_HEADERS
7065   CONFIG_LINKS    = $CONFIG_LINKS
7066   CONFIG_COMMANDS = $CONFIG_COMMANDS
7067   $ $0 $@
7068
7069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7070 "
7071
7072 _ACEOF
7073
7074 case $ac_config_files in *"
7075 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7076 esac
7077
7078 case $ac_config_headers in *"
7079 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7080 esac
7081
7082
7083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7084 # Files that config.status was made for.
7085 config_files="$ac_config_files"
7086 config_headers="$ac_config_headers"
7087
7088 _ACEOF
7089
7090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7091 ac_cs_usage="\
7092 \`$as_me' instantiates files and other configuration actions
7093 from templates according to the current configuration.  Unless the files
7094 and actions are specified as TAGs, all are instantiated by default.
7095
7096 Usage: $0 [OPTION]... [TAG]...
7097
7098   -h, --help       print this help, then exit
7099   -V, --version    print version number and configuration settings, then exit
7100       --config     print configuration, then exit
7101   -q, --quiet, --silent
7102                    do not print progress messages
7103   -d, --debug      don't remove temporary files
7104       --recheck    update $as_me by reconfiguring in the same conditions
7105       --file=FILE[:TEMPLATE]
7106                    instantiate the configuration file FILE
7107       --header=FILE[:TEMPLATE]
7108                    instantiate the configuration header FILE
7109
7110 Configuration files:
7111 $config_files
7112
7113 Configuration headers:
7114 $config_headers
7115
7116 Report bugs to <sjg@NetBSD.org>."
7117
7118 _ACEOF
7119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7120 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7121 ac_cs_version="\\
7122 bmake config.status 20211020
7123 configured by $0, generated by GNU Autoconf 2.69,
7124   with options \\"\$ac_cs_config\\"
7125
7126 Copyright (C) 2012 Free Software Foundation, Inc.
7127 This config.status script is free software; the Free Software Foundation
7128 gives unlimited permission to copy, distribute and modify it."
7129
7130 ac_pwd='$ac_pwd'
7131 srcdir='$srcdir'
7132 INSTALL='$INSTALL'
7133 test -n "\$AWK" || AWK=awk
7134 _ACEOF
7135
7136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7137 # The default lists apply if the user does not specify any file.
7138 ac_need_defaults=:
7139 while test $# != 0
7140 do
7141   case $1 in
7142   --*=?*)
7143     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7144     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7145     ac_shift=:
7146     ;;
7147   --*=)
7148     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7149     ac_optarg=
7150     ac_shift=:
7151     ;;
7152   *)
7153     ac_option=$1
7154     ac_optarg=$2
7155     ac_shift=shift
7156     ;;
7157   esac
7158
7159   case $ac_option in
7160   # Handling of the options.
7161   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7162     ac_cs_recheck=: ;;
7163   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7164     $as_echo "$ac_cs_version"; exit ;;
7165   --config | --confi | --conf | --con | --co | --c )
7166     $as_echo "$ac_cs_config"; exit ;;
7167   --debug | --debu | --deb | --de | --d | -d )
7168     debug=: ;;
7169   --file | --fil | --fi | --f )
7170     $ac_shift
7171     case $ac_optarg in
7172     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7173     '') as_fn_error $? "missing file argument" ;;
7174     esac
7175     as_fn_append CONFIG_FILES " '$ac_optarg'"
7176     ac_need_defaults=false;;
7177   --header | --heade | --head | --hea )
7178     $ac_shift
7179     case $ac_optarg in
7180     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7181     esac
7182     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7183     ac_need_defaults=false;;
7184   --he | --h)
7185     # Conflict between --help and --header
7186     as_fn_error $? "ambiguous option: \`$1'
7187 Try \`$0 --help' for more information.";;
7188   --help | --hel | -h )
7189     $as_echo "$ac_cs_usage"; exit ;;
7190   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7191   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7192     ac_cs_silent=: ;;
7193
7194   # This is an error.
7195   -*) as_fn_error $? "unrecognized option: \`$1'
7196 Try \`$0 --help' for more information." ;;
7197
7198   *) as_fn_append ac_config_targets " $1"
7199      ac_need_defaults=false ;;
7200
7201   esac
7202   shift
7203 done
7204
7205 ac_configure_extra_args=
7206
7207 if $ac_cs_silent; then
7208   exec 6>/dev/null
7209   ac_configure_extra_args="$ac_configure_extra_args --silent"
7210 fi
7211
7212 _ACEOF
7213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7214 if \$ac_cs_recheck; then
7215   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7216   shift
7217   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7218   CONFIG_SHELL='$SHELL'
7219   export CONFIG_SHELL
7220   exec "\$@"
7221 fi
7222
7223 _ACEOF
7224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7225 exec 5>>config.log
7226 {
7227   echo
7228   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7229 ## Running $as_me. ##
7230 _ASBOX
7231   $as_echo "$ac_log"
7232 } >&5
7233
7234 _ACEOF
7235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7236 _ACEOF
7237
7238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7239
7240 # Handling of arguments.
7241 for ac_config_target in $ac_config_targets
7242 do
7243   case $ac_config_target in
7244     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7245     "$bm_outfiles") CONFIG_FILES="$CONFIG_FILES $bm_outfiles" ;;
7246
7247   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7248   esac
7249 done
7250
7251
7252 # If the user did not use the arguments to specify the items to instantiate,
7253 # then the envvar interface is used.  Set only those that are not.
7254 # We use the long form for the default assignment because of an extremely
7255 # bizarre bug on SunOS 4.1.3.
7256 if $ac_need_defaults; then
7257   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7258   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7259 fi
7260
7261 # Have a temporary directory for convenience.  Make it in the build tree
7262 # simply because there is no reason against having it here, and in addition,
7263 # creating and moving files from /tmp can sometimes cause problems.
7264 # Hook for its removal unless debugging.
7265 # Note that there is a small window in which the directory will not be cleaned:
7266 # after its creation but before its name has been assigned to `$tmp'.
7267 $debug ||
7268 {
7269   tmp= ac_tmp=
7270   trap 'exit_status=$?
7271   : "${ac_tmp:=$tmp}"
7272   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7273 ' 0
7274   trap 'as_fn_exit 1' 1 2 13 15
7275 }
7276 # Create a (secure) tmp directory for tmp files.
7277
7278 {
7279   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7280   test -d "$tmp"
7281 }  ||
7282 {
7283   tmp=./conf$$-$RANDOM
7284   (umask 077 && mkdir "$tmp")
7285 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7286 ac_tmp=$tmp
7287
7288 # Set up the scripts for CONFIG_FILES section.
7289 # No need to generate them if there are no CONFIG_FILES.
7290 # This happens for instance with `./config.status config.h'.
7291 if test -n "$CONFIG_FILES"; then
7292
7293
7294 ac_cr=`echo X | tr X '\015'`
7295 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7296 # But we know of no other shell where ac_cr would be empty at this
7297 # point, so we can use a bashism as a fallback.
7298 if test "x$ac_cr" = x; then
7299   eval ac_cr=\$\'\\r\'
7300 fi
7301 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7302 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7303   ac_cs_awk_cr='\\r'
7304 else
7305   ac_cs_awk_cr=$ac_cr
7306 fi
7307
7308 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7309 _ACEOF
7310
7311
7312 {
7313   echo "cat >conf$$subs.awk <<_ACEOF" &&
7314   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7315   echo "_ACEOF"
7316 } >conf$$subs.sh ||
7317   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7318 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7319 ac_delim='%!_!# '
7320 for ac_last_try in false false false false false :; do
7321   . ./conf$$subs.sh ||
7322     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7323
7324   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7325   if test $ac_delim_n = $ac_delim_num; then
7326     break
7327   elif $ac_last_try; then
7328     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7329   else
7330     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7331   fi
7332 done
7333 rm -f conf$$subs.sh
7334
7335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7336 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7337 _ACEOF
7338 sed -n '
7339 h
7340 s/^/S["/; s/!.*/"]=/
7341 p
7342 g
7343 s/^[^!]*!//
7344 :repl
7345 t repl
7346 s/'"$ac_delim"'$//
7347 t delim
7348 :nl
7349 h
7350 s/\(.\{148\}\)..*/\1/
7351 t more1
7352 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7353 p
7354 n
7355 b repl
7356 :more1
7357 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7358 p
7359 g
7360 s/.\{148\}//
7361 t nl
7362 :delim
7363 h
7364 s/\(.\{148\}\)..*/\1/
7365 t more2
7366 s/["\\]/\\&/g; s/^/"/; s/$/"/
7367 p
7368 b
7369 :more2
7370 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7371 p
7372 g
7373 s/.\{148\}//
7374 t delim
7375 ' <conf$$subs.awk | sed '
7376 /^[^""]/{
7377   N
7378   s/\n//
7379 }
7380 ' >>$CONFIG_STATUS || ac_write_fail=1
7381 rm -f conf$$subs.awk
7382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7383 _ACAWK
7384 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7385   for (key in S) S_is_set[key] = 1
7386   FS = "\a"
7387
7388 }
7389 {
7390   line = $ 0
7391   nfields = split(line, field, "@")
7392   substed = 0
7393   len = length(field[1])
7394   for (i = 2; i < nfields; i++) {
7395     key = field[i]
7396     keylen = length(key)
7397     if (S_is_set[key]) {
7398       value = S[key]
7399       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7400       len += length(value) + length(field[++i])
7401       substed = 1
7402     } else
7403       len += 1 + keylen
7404   }
7405
7406   print line
7407 }
7408
7409 _ACAWK
7410 _ACEOF
7411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7412 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7413   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7414 else
7415   cat
7416 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7417   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7418 _ACEOF
7419
7420 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7421 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7422 # trailing colons and then remove the whole line if VPATH becomes empty
7423 # (actually we leave an empty line to preserve line numbers).
7424 if test "x$srcdir" = x.; then
7425   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7426 h
7427 s///
7428 s/^/:/
7429 s/[      ]*$/:/
7430 s/:\$(srcdir):/:/g
7431 s/:\${srcdir}:/:/g
7432 s/:@srcdir@:/:/g
7433 s/^:*//
7434 s/:*$//
7435 x
7436 s/\(=[   ]*\).*/\1/
7437 G
7438 s/\n//
7439 s/^[^=]*=[       ]*$//
7440 }'
7441 fi
7442
7443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7444 fi # test -n "$CONFIG_FILES"
7445
7446 # Set up the scripts for CONFIG_HEADERS section.
7447 # No need to generate them if there are no CONFIG_HEADERS.
7448 # This happens for instance with `./config.status Makefile'.
7449 if test -n "$CONFIG_HEADERS"; then
7450 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7451 BEGIN {
7452 _ACEOF
7453
7454 # Transform confdefs.h into an awk script `defines.awk', embedded as
7455 # here-document in config.status, that substitutes the proper values into
7456 # config.h.in to produce config.h.
7457
7458 # Create a delimiter string that does not exist in confdefs.h, to ease
7459 # handling of long lines.
7460 ac_delim='%!_!# '
7461 for ac_last_try in false false :; do
7462   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7463   if test -z "$ac_tt"; then
7464     break
7465   elif $ac_last_try; then
7466     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7467   else
7468     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7469   fi
7470 done
7471
7472 # For the awk script, D is an array of macro values keyed by name,
7473 # likewise P contains macro parameters if any.  Preserve backslash
7474 # newline sequences.
7475
7476 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7477 sed -n '
7478 s/.\{148\}/&'"$ac_delim"'/g
7479 t rset
7480 :rset
7481 s/^[     ]*#[    ]*define[       ][      ]*/ /
7482 t def
7483 d
7484 :def
7485 s/\\$//
7486 t bsnl
7487 s/["\\]/\\&/g
7488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7489 D["\1"]=" \3"/p
7490 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
7491 d
7492 :bsnl
7493 s/["\\]/\\&/g
7494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7495 D["\1"]=" \3\\\\\\n"\\/p
7496 t cont
7497 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7498 t cont
7499 d
7500 :cont
7501 n
7502 s/.\{148\}/&'"$ac_delim"'/g
7503 t clear
7504 :clear
7505 s/\\$//
7506 t bsnlc
7507 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7508 d
7509 :bsnlc
7510 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7511 b cont
7512 ' <confdefs.h | sed '
7513 s/'"$ac_delim"'/"\\\
7514 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7515
7516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7517   for (key in D) D_is_set[key] = 1
7518   FS = "\a"
7519 }
7520 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7521   line = \$ 0
7522   split(line, arg, " ")
7523   if (arg[1] == "#") {
7524     defundef = arg[2]
7525     mac1 = arg[3]
7526   } else {
7527     defundef = substr(arg[1], 2)
7528     mac1 = arg[2]
7529   }
7530   split(mac1, mac2, "(") #)
7531   macro = mac2[1]
7532   prefix = substr(line, 1, index(line, defundef) - 1)
7533   if (D_is_set[macro]) {
7534     # Preserve the white space surrounding the "#".
7535     print prefix "define", macro P[macro] D[macro]
7536     next
7537   } else {
7538     # Replace #undef with comments.  This is necessary, for example,
7539     # in the case of _POSIX_SOURCE, which is predefined and required
7540     # on some systems where configure will not decide to define it.
7541     if (defundef == "undef") {
7542       print "/*", prefix defundef, macro, "*/"
7543       next
7544     }
7545   }
7546 }
7547 { print }
7548 _ACAWK
7549 _ACEOF
7550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7551   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7552 fi # test -n "$CONFIG_HEADERS"
7553
7554
7555 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
7556 shift
7557 for ac_tag
7558 do
7559   case $ac_tag in
7560   :[FHLC]) ac_mode=$ac_tag; continue;;
7561   esac
7562   case $ac_mode$ac_tag in
7563   :[FHL]*:*);;
7564   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7565   :[FH]-) ac_tag=-:-;;
7566   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7567   esac
7568   ac_save_IFS=$IFS
7569   IFS=:
7570   set x $ac_tag
7571   IFS=$ac_save_IFS
7572   shift
7573   ac_file=$1
7574   shift
7575
7576   case $ac_mode in
7577   :L) ac_source=$1;;
7578   :[FH])
7579     ac_file_inputs=
7580     for ac_f
7581     do
7582       case $ac_f in
7583       -) ac_f="$ac_tmp/stdin";;
7584       *) # Look for the file first in the build tree, then in the source tree
7585          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7586          # because $ac_f cannot contain `:'.
7587          test -f "$ac_f" ||
7588            case $ac_f in
7589            [\\/$]*) false;;
7590            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7591            esac ||
7592            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7593       esac
7594       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7595       as_fn_append ac_file_inputs " '$ac_f'"
7596     done
7597
7598     # Let's still pretend it is `configure' which instantiates (i.e., don't
7599     # use $as_me), people would be surprised to read:
7600     #    /* config.h.  Generated by config.status.  */
7601     configure_input='Generated from '`
7602           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7603         `' by configure.'
7604     if test x"$ac_file" != x-; then
7605       configure_input="$ac_file.  $configure_input"
7606       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7607 $as_echo "$as_me: creating $ac_file" >&6;}
7608     fi
7609     # Neutralize special characters interpreted by sed in replacement strings.
7610     case $configure_input in #(
7611     *\&* | *\|* | *\\* )
7612        ac_sed_conf_input=`$as_echo "$configure_input" |
7613        sed 's/[\\\\&|]/\\\\&/g'`;; #(
7614     *) ac_sed_conf_input=$configure_input;;
7615     esac
7616
7617     case $ac_tag in
7618     *:-:* | *:-) cat >"$ac_tmp/stdin" \
7619       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7620     esac
7621     ;;
7622   esac
7623
7624   ac_dir=`$as_dirname -- "$ac_file" ||
7625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7626          X"$ac_file" : 'X\(//\)[^/]' \| \
7627          X"$ac_file" : 'X\(//\)$' \| \
7628          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7629 $as_echo X"$ac_file" |
7630     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7631             s//\1/
7632             q
7633           }
7634           /^X\(\/\/\)[^/].*/{
7635             s//\1/
7636             q
7637           }
7638           /^X\(\/\/\)$/{
7639             s//\1/
7640             q
7641           }
7642           /^X\(\/\).*/{
7643             s//\1/
7644             q
7645           }
7646           s/.*/./; q'`
7647   as_dir="$ac_dir"; as_fn_mkdir_p
7648   ac_builddir=.
7649
7650 case "$ac_dir" in
7651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7652 *)
7653   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7654   # A ".." for each directory in $ac_dir_suffix.
7655   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7656   case $ac_top_builddir_sub in
7657   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7658   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7659   esac ;;
7660 esac
7661 ac_abs_top_builddir=$ac_pwd
7662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7663 # for backward compatibility:
7664 ac_top_builddir=$ac_top_build_prefix
7665
7666 case $srcdir in
7667   .)  # We are building in place.
7668     ac_srcdir=.
7669     ac_top_srcdir=$ac_top_builddir_sub
7670     ac_abs_top_srcdir=$ac_pwd ;;
7671   [\\/]* | ?:[\\/]* )  # Absolute name.
7672     ac_srcdir=$srcdir$ac_dir_suffix;
7673     ac_top_srcdir=$srcdir
7674     ac_abs_top_srcdir=$srcdir ;;
7675   *) # Relative name.
7676     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7677     ac_top_srcdir=$ac_top_build_prefix$srcdir
7678     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7679 esac
7680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7681
7682
7683   case $ac_mode in
7684   :F)
7685   #
7686   # CONFIG_FILE
7687   #
7688
7689   case $INSTALL in
7690   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7691   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7692   esac
7693 _ACEOF
7694
7695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7696 # If the template does not know about datarootdir, expand it.
7697 # FIXME: This hack should be removed a few years after 2.60.
7698 ac_datarootdir_hack=; ac_datarootdir_seen=
7699 ac_sed_dataroot='
7700 /datarootdir/ {
7701   p
7702   q
7703 }
7704 /@datadir@/p
7705 /@docdir@/p
7706 /@infodir@/p
7707 /@localedir@/p
7708 /@mandir@/p'
7709 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7710 *datarootdir*) ac_datarootdir_seen=yes;;
7711 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7713 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7714 _ACEOF
7715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7716   ac_datarootdir_hack='
7717   s&@datadir@&$datadir&g
7718   s&@docdir@&$docdir&g
7719   s&@infodir@&$infodir&g
7720   s&@localedir@&$localedir&g
7721   s&@mandir@&$mandir&g
7722   s&\\\${datarootdir}&$datarootdir&g' ;;
7723 esac
7724 _ACEOF
7725
7726 # Neutralize VPATH when `$srcdir' = `.'.
7727 # Shell code in configure.ac might set extrasub.
7728 # FIXME: do we really want to maintain this feature?
7729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7730 ac_sed_extra="$ac_vpsub
7731 $extrasub
7732 _ACEOF
7733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7734 :t
7735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7736 s|@configure_input@|$ac_sed_conf_input|;t t
7737 s&@top_builddir@&$ac_top_builddir_sub&;t t
7738 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7739 s&@srcdir@&$ac_srcdir&;t t
7740 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7741 s&@top_srcdir@&$ac_top_srcdir&;t t
7742 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7743 s&@builddir@&$ac_builddir&;t t
7744 s&@abs_builddir@&$ac_abs_builddir&;t t
7745 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7746 s&@INSTALL@&$ac_INSTALL&;t t
7747 $ac_datarootdir_hack
7748 "
7749 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7750   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7751
7752 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7753   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7754   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
7755       "$ac_tmp/out"`; test -z "$ac_out"; } &&
7756   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7757 which seems to be undefined.  Please make sure it is defined" >&5
7758 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7759 which seems to be undefined.  Please make sure it is defined" >&2;}
7760
7761   rm -f "$ac_tmp/stdin"
7762   case $ac_file in
7763   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7764   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7765   esac \
7766   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7767  ;;
7768   :H)
7769   #
7770   # CONFIG_HEADER
7771   #
7772   if test x"$ac_file" != x-; then
7773     {
7774       $as_echo "/* $configure_input  */" \
7775       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7776     } >"$ac_tmp/config.h" \
7777       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7778     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7779       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7780 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7781     else
7782       rm -f "$ac_file"
7783       mv "$ac_tmp/config.h" "$ac_file" \
7784         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7785     fi
7786   else
7787     $as_echo "/* $configure_input  */" \
7788       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7789       || as_fn_error $? "could not create -" "$LINENO" 5
7790   fi
7791  ;;
7792
7793
7794   esac
7795
7796 done # for ac_tag
7797
7798
7799 as_fn_exit 0
7800 _ACEOF
7801 ac_clean_files=$ac_clean_files_save
7802
7803 test $ac_write_fail = 0 ||
7804   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7805
7806
7807 # configure is writing to config.log, and then calls config.status.
7808 # config.status does its own redirection, appending to config.log.
7809 # Unfortunately, on DOS this fails, as config.log is still kept open
7810 # by configure, so config.status won't be able to write to it; its
7811 # output is simply discarded.  So we exec the FD to /dev/null,
7812 # effectively closing config.log, so it can be properly (re)opened and
7813 # appended to by config.status.  When coming back to configure, we
7814 # need to make the FD available again.
7815 if test "$no_create" != yes; then
7816   ac_cs_success=:
7817   ac_config_status_args=
7818   test "$silent" = yes &&
7819     ac_config_status_args="$ac_config_status_args --quiet"
7820   exec 5>/dev/null
7821   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7822   exec 5>>config.log
7823   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7824   # would make configure fail if this is the last instruction.
7825   $ac_cs_success || as_fn_exit 1
7826 fi
7827 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7828   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7829 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7830 fi
7831
7832 cat <<EOF
7833
7834 You can now run
7835
7836         sh ./make-bootstrap.sh
7837
7838 to produce a fully functional bmake.
7839
7840 EOF