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