nrelease: Clean up a bit the 'clean' target
[dragonfly.git] / contrib / bmake / configure
blob44f016b249e1390e21e84f2036c0574338c4db60
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for bmake 20220909.
5 # Report bugs to <sjg@NetBSD.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
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 ## -------------------- ##
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 *) :
35 esac
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
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='
49 export as_nl
50 IFS=" "" $as_nl"
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
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
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
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=';'
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
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
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
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
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
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 *) :
158 esac
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; }
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 :
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
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
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
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
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 #(
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
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
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
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
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."
275 exit 1
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
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
303 return $1
304 } # as_fn_set_status
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 ()
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 ()
320 return $?
322 as_nop=as_fn_nop
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
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/
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
355 /^X\(\/\/\)$/{
356 s//\1/
359 /^X\(\/\).*/{
360 s//\1/
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"
370 } # as_fn_mkdir_p
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
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 ()
389 eval $1+=\$2
391 else $as_nop
392 as_fn_append ()
394 eval $1=\$$1\$2
396 fi # as_fn_append
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 ()
407 as_val=$(( $* ))
409 else $as_nop
410 as_fn_arith ()
412 as_val=`expr "$@" || test $? -eq 1`
414 fi # as_fn_arith
416 # as_fn_nop
417 # ---------
418 # Do nothing but, unlike ":", preserve the value of $?.
419 as_fn_nop ()
421 return $?
423 as_nop=as_fn_nop
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 ()
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
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
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
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
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
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/
469 /^X\/\(\/\/\)$/{
470 s//\1/
473 /^X\/\(\/\).*/{
474 s//\1/
477 s/.*/./; q'`
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
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 '
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 s/[$]LINENO.*/&-/
498 t lineno
500 :lineno
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; }
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
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;;
536 ECHO_N='-n';;
537 esac
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'
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
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'
567 else
568 as_ln_s='cp -pR'
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
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
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
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'"
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'"
590 test -n "$DJDIR" || exec 7<&0 </dev/null
591 exec 6>&1
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`
599 # Initializations.
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=
610 # Identity of this package.
611 PACKAGE_NAME='bmake'
612 PACKAGE_TARNAME='bmake'
613 PACKAGE_VERSION='20220909'
614 PACKAGE_STRING='bmake 20220909'
615 PACKAGE_BUGREPORT='sjg@NetBSD.org'
616 PACKAGE_URL=''
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"
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
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
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
737 ac_precious_vars='build_alias
738 host_alias
739 target_alias
741 CFLAGS
742 LDFLAGS
743 LIBS
744 CPPFLAGS'
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
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'
796 ac_prev=
797 ac_dashdash=
798 for ac_option
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
807 case $ac_option in
808 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *=) ac_optarg= ;;
810 *) ac_optarg=yes ;;
811 esac
813 case $ac_dashdash$ac_option in
815 ac_dashdash=yes ;;
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 ac_prev=bindir ;;
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820 bindir=$ac_optarg ;;
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
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 ;;
834 --config-cache | -C)
835 cache_file=config.cache ;;
837 -datadir | --datadir | --datadi | --datad)
838 ac_prev=datadir ;;
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
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 ;;
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
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 ;;
865 -docdir | --docdir | --docdi | --doc | --do)
866 ac_prev=docdir ;;
867 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
868 docdir=$ac_optarg ;;
870 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871 ac_prev=dvidir ;;
872 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
873 dvidir=$ac_optarg ;;
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
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 ;;
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 ;;
900 -gas | --gas | --ga | --g)
901 # Obsolete; use --with-gas.
902 with_gas=yes ;;
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 ;;
911 -host | --host | --hos | --ho)
912 ac_prev=host_alias ;;
913 -host=* | --host=* | --hos=* | --ho=*)
914 host_alias=$ac_optarg ;;
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 ;;
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 ;;
929 -infodir | --infodir | --infodi | --infod | --info | --inf)
930 ac_prev=infodir ;;
931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932 infodir=$ac_optarg ;;
934 -libdir | --libdir | --libdi | --libd)
935 ac_prev=libdir ;;
936 -libdir=* | --libdir=* | --libdi=* | --libd=*)
937 libdir=$ac_optarg ;;
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 ;;
946 -localedir | --localedir | --localedi | --localed | --locale)
947 ac_prev=localedir ;;
948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949 localedir=$ac_optarg ;;
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 ;;
958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959 ac_prev=mandir ;;
960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961 mandir=$ac_optarg ;;
963 -nfp | --nfp | --nf)
964 # Obsolete; use --without-fp.
965 with_fp=no ;;
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c | -n)
969 no_create=yes ;;
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 ;;
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 ;;
984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985 ac_prev=prefix ;;
986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021 ac_prev=pdfdir ;;
1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023 pdfdir=$ac_optarg ;;
1025 -psdir | --psdir | --psdi | --psd | --ps)
1026 ac_prev=psdir ;;
1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028 psdir=$ac_optarg ;;
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1032 silent=yes ;;
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 ;;
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 ;;
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 ;;
1060 -site | --site | --sit)
1061 ac_prev=site ;;
1062 -site=* | --site=* | --sit=*)
1063 site=$ac_optarg ;;
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 ac_prev=srcdir ;;
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
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 ;;
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 ;;
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083 verbose=yes ;;
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
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
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 ;;
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
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 ;;
1120 --x)
1121 # Obsolete; use --with-x.
1122 with_x=yes ;;
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 ;;
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 ;;
1138 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
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 ;;
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}"
1160 esac
1161 done
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"
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
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
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
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
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
1213 ac_tool_prefix=
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216 test "$silent" = yes && exec 6>/dev/null
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"
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/
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1245 /^X\(\/\/\)$/{
1246 s//\1/
1249 /^X\(\/\).*/{
1250 s//\1/
1253 s/.*/./; q'`
1254 srcdir=$ac_confdir
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 srcdir=..
1258 else
1259 ac_srcdir_defaulted=no
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"
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=.
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
1287 # Report the --help message.
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 20220909 to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1300 Defaults for the options are specified in brackets.
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 \`..']
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]
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'.
1324 For better control, use the options below.
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
1349 cat <<\_ACEOF
1350 _ACEOF
1353 if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive ) echo "Configuration of bmake 20220909:";;
1356 esac
1357 cat <<\_ACEOF
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}
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=SHELL use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions
1371 --without-makefile disable use of generated makefile
1372 --without-meta disable use of meta-mode
1373 --with-filemon={no,dev,ktrace,path/filemon.h} indicate filemon method for meta-mode. Path to filemon.h implies dev
1374 --with-machine=MACHINE explicitly set MACHINE
1375 --with-force-machine=MACHINE set FORCE_MACHINE
1376 --with-force-machine-arch=MACHINE set FORCE_MACHINE_ARCH
1377 --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH
1378 --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH
1379 MAKESYSPATH is a ':' separated list of directories
1380 that bmake will search for system .mk files.
1381 _PATH_DEFSYSPATH is its default value.
1382 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX
1383 --with-mksrc=PATH tell makefile.boot where to find mk src
1385 Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
1391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1392 you have headers in a nonstandard directory <include dir>
1394 Use these variables to override the choices made by `configure' or to help
1395 it to find libraries and programs with nonstandard names/locations.
1397 Report bugs to <sjg@NetBSD.org>.
1398 _ACEOF
1399 ac_status=$?
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" ||
1406 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1407 continue
1408 ac_builddir=.
1410 case "$ac_dir" in
1411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1414 # A ".." for each directory in $ac_dir_suffix.
1415 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1416 case $ac_top_builddir_sub in
1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 esac ;;
1420 esac
1421 ac_abs_top_builddir=$ac_pwd
1422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1423 # for backward compatibility:
1424 ac_top_builddir=$ac_top_build_prefix
1426 case $srcdir in
1427 .) # We are building in place.
1428 ac_srcdir=.
1429 ac_top_srcdir=$ac_top_builddir_sub
1430 ac_abs_top_srcdir=$ac_pwd ;;
1431 [\\/]* | ?:[\\/]* ) # Absolute name.
1432 ac_srcdir=$srcdir$ac_dir_suffix;
1433 ac_top_srcdir=$srcdir
1434 ac_abs_top_srcdir=$srcdir ;;
1435 *) # Relative name.
1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1437 ac_top_srcdir=$ac_top_build_prefix$srcdir
1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1439 esac
1440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442 cd "$ac_dir" || { ac_status=$?; continue; }
1443 # Check for configure.gnu first; this name is used for a wrapper for
1444 # Metaconfig's "Configure" on case-insensitive file systems.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1451 else
1452 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453 fi || ac_status=$?
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1455 done
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1460 cat <<\_ACEOF
1461 bmake configure 20220909
1462 generated by GNU Autoconf 2.71
1464 Copyright (C) 2021 Free Software Foundation, Inc.
1465 This configure script is free software; the Free Software Foundation
1466 gives unlimited permission to copy, distribute and modify it.
1467 _ACEOF
1468 exit
1471 ## ------------------------ ##
1472 ## Autoconf initialization. ##
1473 ## ------------------------ ##
1475 # ac_fn_c_try_compile LINENO
1476 # --------------------------
1477 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1478 ac_fn_c_try_compile ()
1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481 rm -f conftest.$ac_objext conftest.beam
1482 if { { ac_try="$ac_compile"
1483 case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486 esac
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 printf "%s\n" "$ac_try_echo"; } >&5
1489 (eval "$ac_compile") 2>conftest.err
1490 ac_status=$?
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } && {
1498 test -z "$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1500 } && test -s conftest.$ac_objext
1501 then :
1502 ac_retval=0
1503 else $as_nop
1504 printf "%s\n" "$as_me: failed program was:" >&5
1505 sed 's/^/| /' conftest.$ac_ext >&5
1507 ac_retval=1
1509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1510 as_fn_set_status $ac_retval
1512 } # ac_fn_c_try_compile
1514 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1515 # -------------------------------------------------------
1516 # Tests whether HEADER exists and can be compiled using the include files in
1517 # INCLUDES, setting the cache variable VAR accordingly.
1518 ac_fn_c_check_header_compile ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1522 printf %s "checking for $2... " >&6; }
1523 if eval test \${$3+y}
1524 then :
1525 printf %s "(cached) " >&6
1526 else $as_nop
1527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1528 /* end confdefs.h. */
1530 #include <$2>
1531 _ACEOF
1532 if ac_fn_c_try_compile "$LINENO"
1533 then :
1534 eval "$3=yes"
1535 else $as_nop
1536 eval "$3=no"
1538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1540 eval ac_res=\$$3
1541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1542 printf "%s\n" "$ac_res" >&6; }
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1545 } # ac_fn_c_check_header_compile
1547 # ac_fn_c_try_link LINENO
1548 # -----------------------
1549 # Try to link conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_link ()
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1554 if { { ac_try="$ac_link"
1555 case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 printf "%s\n" "$ac_try_echo"; } >&5
1561 (eval "$ac_link") 2>conftest.err
1562 ac_status=$?
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest$ac_exeext && {
1573 test "$cross_compiling" = yes ||
1574 test -x conftest$ac_exeext
1576 then :
1577 ac_retval=0
1578 else $as_nop
1579 printf "%s\n" "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1582 ac_retval=1
1584 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586 # interfere with the next link command; also delete a directory that is
1587 # left behind by Apple's compiler. We do this before executing the actions.
1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_link
1594 # ac_fn_c_try_run LINENO
1595 # ----------------------
1596 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1597 # executables *can* be run.
1598 ac_fn_c_try_run ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_link"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 printf "%s\n" "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>&5
1609 ac_status=$?
1610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1612 { { case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 printf "%s\n" "$ac_try_echo"; } >&5
1618 (eval "$ac_try") 2>&5
1619 ac_status=$?
1620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; }; }
1622 then :
1623 ac_retval=0
1624 else $as_nop
1625 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1626 printf "%s\n" "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1629 ac_retval=$ac_status
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_c_try_run
1637 # ac_fn_c_find_intX_t LINENO BITS VAR
1638 # -----------------------------------
1639 # Finds a signed integer type with width BITS, setting cache variable VAR
1640 # accordingly.
1641 ac_fn_c_find_intX_t ()
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1645 printf %s "checking for int$2_t... " >&6; }
1646 if eval test \${$3+y}
1647 then :
1648 printf %s "(cached) " >&6
1649 else $as_nop
1650 eval "$3=no"
1651 # Order is important - never check a type that is potentially smaller
1652 # than half of the expected target width.
1653 for ac_type in int$2_t 'int' 'long int' \
1654 'long long int' 'short int' 'signed char'; do
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 $ac_includes_default
1658 enum { N = $2 / 2 - 1 };
1660 main (void)
1662 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1663 test_array [0] = 0;
1664 return test_array [0];
1667 return 0;
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"
1671 then :
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 $ac_includes_default
1675 enum { N = $2 / 2 - 1 };
1677 main (void)
1679 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1680 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1681 test_array [0] = 0;
1682 return test_array [0];
1685 return 0;
1687 _ACEOF
1688 if ac_fn_c_try_compile "$LINENO"
1689 then :
1691 else $as_nop
1692 case $ac_type in #(
1693 int$2_t) :
1694 eval "$3=yes" ;; #(
1695 *) :
1696 eval "$3=\$ac_type" ;;
1697 esac
1699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1702 if eval test \"x\$"$3"\" = x"no"
1703 then :
1705 else $as_nop
1706 break
1708 done
1710 eval ac_res=\$$3
1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 printf "%s\n" "$ac_res" >&6; }
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 } # ac_fn_c_find_intX_t
1717 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1718 # -------------------------------------------
1719 # Tests whether TYPE exists after having included INCLUDES, setting cache
1720 # variable VAR accordingly.
1721 ac_fn_c_check_type ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 printf %s "checking for $2... " >&6; }
1726 if eval test \${$3+y}
1727 then :
1728 printf %s "(cached) " >&6
1729 else $as_nop
1730 eval "$3=no"
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1735 main (void)
1737 if (sizeof ($2))
1738 return 0;
1740 return 0;
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"
1744 then :
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1749 main (void)
1751 if (sizeof (($2)))
1752 return 0;
1754 return 0;
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"
1758 then :
1760 else $as_nop
1761 eval "$3=yes"
1763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1767 eval ac_res=\$$3
1768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 printf "%s\n" "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 } # ac_fn_c_check_type
1774 # ac_fn_c_find_uintX_t LINENO BITS VAR
1775 # ------------------------------------
1776 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1777 # accordingly.
1778 ac_fn_c_find_uintX_t ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1782 printf %s "checking for uint$2_t... " >&6; }
1783 if eval test \${$3+y}
1784 then :
1785 printf %s "(cached) " >&6
1786 else $as_nop
1787 eval "$3=no"
1788 # Order is important - never check a type that is potentially smaller
1789 # than half of the expected target width.
1790 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1791 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 $ac_includes_default
1796 main (void)
1798 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1799 test_array [0] = 0;
1800 return test_array [0];
1803 return 0;
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"
1807 then :
1808 case $ac_type in #(
1809 uint$2_t) :
1810 eval "$3=yes" ;; #(
1811 *) :
1812 eval "$3=\$ac_type" ;;
1813 esac
1815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1816 if eval test \"x\$"$3"\" = x"no"
1817 then :
1819 else $as_nop
1820 break
1822 done
1824 eval ac_res=\$$3
1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 printf "%s\n" "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_find_uintX_t
1831 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1832 # ------------------------------------------------------------------
1833 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1834 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1835 ac_fn_check_decl ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 as_decl_name=`echo $2|sed 's/ *(.*//'`
1839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1840 printf %s "checking whether $as_decl_name is declared... " >&6; }
1841 if eval test \${$3+y}
1842 then :
1843 printf %s "(cached) " >&6
1844 else $as_nop
1845 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1846 eval ac_save_FLAGS=\$$6
1847 as_fn_append $6 " $5"
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 main (void)
1854 #ifndef $as_decl_name
1855 #ifdef __cplusplus
1856 (void) $as_decl_use;
1857 #else
1858 (void) $as_decl_name;
1859 #endif
1860 #endif
1863 return 0;
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"
1867 then :
1868 eval "$3=yes"
1869 else $as_nop
1870 eval "$3=no"
1872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1873 eval $6=\$ac_save_FLAGS
1876 eval ac_res=\$$3
1877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 printf "%s\n" "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_check_decl
1883 # ac_fn_c_check_func LINENO FUNC VAR
1884 # ----------------------------------
1885 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1886 ac_fn_c_check_func ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 printf %s "checking for $2... " >&6; }
1891 if eval test \${$3+y}
1892 then :
1893 printf %s "(cached) " >&6
1894 else $as_nop
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1899 #define $2 innocuous_$2
1901 /* System header to define __stub macros and hopefully few prototypes,
1902 which can conflict with char $2 (); below. */
1904 #include <limits.h>
1905 #undef $2
1907 /* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1910 #ifdef __cplusplus
1911 extern "C"
1912 #endif
1913 char $2 ();
1914 /* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917 #if defined __stub_$2 || defined __stub___$2
1918 choke me
1919 #endif
1922 main (void)
1924 return $2 ();
1926 return 0;
1928 _ACEOF
1929 if ac_fn_c_try_link "$LINENO"
1930 then :
1931 eval "$3=yes"
1932 else $as_nop
1933 eval "$3=no"
1935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1936 conftest$ac_exeext conftest.$ac_ext
1938 eval ac_res=\$$3
1939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 printf "%s\n" "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_func
1944 ac_configure_args_raw=
1945 for ac_arg
1947 case $ac_arg in
1948 *\'*)
1949 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950 esac
1951 as_fn_append ac_configure_args_raw " '$ac_arg'"
1952 done
1954 case $ac_configure_args_raw in
1955 *$as_nl*)
1956 ac_safe_unquote= ;;
1958 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1959 ac_unsafe_a="$ac_unsafe_z#~"
1960 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1961 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1962 esac
1964 cat >config.log <<_ACEOF
1965 This file contains any messages produced by compilers while
1966 running configure, to aid debugging if configure makes a mistake.
1968 It was created by bmake $as_me 20220909, which was
1969 generated by GNU Autoconf 2.71. Invocation command line was
1971 $ $0$ac_configure_args_raw
1973 _ACEOF
1974 exec 5>>config.log
1976 cat <<_ASUNAME
1977 ## --------- ##
1978 ## Platform. ##
1979 ## --------- ##
1981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1993 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1998 _ASUNAME
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2003 IFS=$as_save_IFS
2004 case $as_dir in #(((
2005 '') as_dir=./ ;;
2006 */) ;;
2007 *) as_dir=$as_dir/ ;;
2008 esac
2009 printf "%s\n" "PATH: $as_dir"
2010 done
2011 IFS=$as_save_IFS
2013 } >&5
2015 cat >&5 <<_ACEOF
2018 ## ----------- ##
2019 ## Core tests. ##
2020 ## ----------- ##
2022 _ACEOF
2025 # Keep a trace of the command line.
2026 # Strip out --no-create and --no-recursion so they do not pile up.
2027 # Strip out --silent because we don't want to record it for future runs.
2028 # Also quote any args containing shell meta-characters.
2029 # Make two passes to allow for proper duplicate-argument suppression.
2030 ac_configure_args=
2031 ac_configure_args0=
2032 ac_configure_args1=
2033 ac_must_keep_next=false
2034 for ac_pass in 1 2
2036 for ac_arg
2038 case $ac_arg in
2039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2041 | -silent | --silent | --silen | --sile | --sil)
2042 continue ;;
2043 *\'*)
2044 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2045 esac
2046 case $ac_pass in
2047 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2049 as_fn_append ac_configure_args1 " '$ac_arg'"
2050 if test $ac_must_keep_next = true; then
2051 ac_must_keep_next=false # Got value, back to normal.
2052 else
2053 case $ac_arg in
2054 *=* | --config-cache | -C | -disable-* | --disable-* \
2055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2057 | -with-* | --with-* | -without-* | --without-* | --x)
2058 case "$ac_configure_args0 " in
2059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2060 esac
2062 -* ) ac_must_keep_next=true ;;
2063 esac
2065 as_fn_append ac_configure_args " '$ac_arg'"
2067 esac
2068 done
2069 done
2070 { ac_configure_args0=; unset ac_configure_args0;}
2071 { ac_configure_args1=; unset ac_configure_args1;}
2073 # When interrupted or exit'd, cleanup temporary files, and complete
2074 # config.log. We remove comments because anyway the quotes in there
2075 # would cause problems or look ugly.
2076 # WARNING: Use '\'' to represent an apostrophe within the trap.
2077 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2078 trap 'exit_status=$?
2079 # Sanitize IFS.
2080 IFS=" "" $as_nl"
2081 # Save into config.log some information that might help in debugging.
2083 echo
2085 printf "%s\n" "## ---------------- ##
2086 ## Cache variables. ##
2087 ## ---------------- ##"
2088 echo
2089 # The following way of writing the cache mishandles newlines in values,
2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in #(
2094 *${as_nl}*)
2095 case $ac_var in #(
2096 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098 esac
2099 case $ac_var in #(
2100 _ | IFS | as_nl) ;; #(
2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102 *) { eval $ac_var=; unset $ac_var;} ;;
2103 esac ;;
2104 esac
2105 done
2106 (set) 2>&1 |
2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108 *${as_nl}ac_space=\ *)
2109 sed -n \
2110 "s/'\''/'\''\\\\'\'''\''/g;
2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112 ;; #(
2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2116 esac |
2117 sort
2119 echo
2121 printf "%s\n" "## ----------------- ##
2122 ## Output variables. ##
2123 ## ----------------- ##"
2124 echo
2125 for ac_var in $ac_subst_vars
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 printf "%s\n" "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2135 if test -n "$ac_subst_files"; then
2136 printf "%s\n" "## ------------------- ##
2137 ## File substitutions. ##
2138 ## ------------------- ##"
2139 echo
2140 for ac_var in $ac_subst_files
2142 eval ac_val=\$$ac_var
2143 case $ac_val in
2144 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 esac
2146 printf "%s\n" "$ac_var='\''$ac_val'\''"
2147 done | sort
2148 echo
2151 if test -s confdefs.h; then
2152 printf "%s\n" "## ----------- ##
2153 ## confdefs.h. ##
2154 ## ----------- ##"
2155 echo
2156 cat confdefs.h
2157 echo
2159 test "$ac_signal" != 0 &&
2160 printf "%s\n" "$as_me: caught signal $ac_signal"
2161 printf "%s\n" "$as_me: exit $exit_status"
2162 } >&5
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165 exit $exit_status
2167 for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169 done
2170 ac_signal=0
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest* confdefs.h
2175 printf "%s\n" "/* confdefs.h */" > confdefs.h
2177 # Predefined preprocessor variables.
2179 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2181 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2183 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2185 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2187 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2189 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2194 if test -n "$CONFIG_SITE"; then
2195 ac_site_files="$CONFIG_SITE"
2196 elif test "x$prefix" != xNONE; then
2197 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2198 else
2199 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2202 for ac_site_file in $ac_site_files
2204 case $ac_site_file in #(
2205 */*) :
2206 ;; #(
2207 *) :
2208 ac_site_file=./$ac_site_file ;;
2209 esac
2210 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2213 sed 's/^/| /' "$ac_site_file" >&5
2214 . "$ac_site_file" \
2215 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2217 as_fn_error $? "failed to load site script $ac_site_file
2218 See \`config.log' for more details" "$LINENO" 5; }
2220 done
2222 if test -r "$cache_file"; then
2223 # Some versions of bash will fail to source /dev/null (special files
2224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2228 case $cache_file in
2229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230 *) . "./$cache_file";;
2231 esac
2233 else
2234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2236 >$cache_file
2239 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2240 # Test code for whether the C compiler supports C89 (global declarations)
2241 ac_c_conftest_c89_globals='
2242 /* Does the compiler advertise C89 conformance?
2243 Do not test the value of __STDC__, because some compilers set it to 0
2244 while being otherwise adequately conformant. */
2245 #if !defined __STDC__
2246 # error "Compiler does not advertise C89 conformance"
2247 #endif
2249 #include <stddef.h>
2250 #include <stdarg.h>
2251 struct stat;
2252 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2253 struct buf { int x; };
2254 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2255 static char *e (p, i)
2256 char **p;
2257 int i;
2259 return p[i];
2261 static char *f (char * (*g) (char **, int), char **p, ...)
2263 char *s;
2264 va_list v;
2265 va_start (v,p);
2266 s = g (p, va_arg (v,int));
2267 va_end (v);
2268 return s;
2271 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2272 function prototypes and stuff, but not \xHH hex character constants.
2273 These do not provoke an error unfortunately, instead are silently treated
2274 as an "x". The following induces an error, until -std is added to get
2275 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2276 array size at least. It is necessary to write \x00 == 0 to get something
2277 that is true only with -std. */
2278 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2280 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2281 inside strings and character constants. */
2282 #define FOO(x) '\''x'\''
2283 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2285 int test (int i, double x);
2286 struct s1 {int (*f) (int a);};
2287 struct s2 {int (*f) (double a);};
2288 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2289 int, int);'
2291 # Test code for whether the C compiler supports C89 (body of main).
2292 ac_c_conftest_c89_main='
2293 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2296 # Test code for whether the C compiler supports C99 (global declarations)
2297 ac_c_conftest_c99_globals='
2298 // Does the compiler advertise C99 conformance?
2299 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2300 # error "Compiler does not advertise C99 conformance"
2301 #endif
2303 #include <stdbool.h>
2304 extern int puts (const char *);
2305 extern int printf (const char *, ...);
2306 extern int dprintf (int, const char *, ...);
2307 extern void *malloc (size_t);
2309 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2310 // dprintf is used instead of fprintf to avoid needing to declare
2311 // FILE and stderr.
2312 #define debug(...) dprintf (2, __VA_ARGS__)
2313 #define showlist(...) puts (#__VA_ARGS__)
2314 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2315 static void
2316 test_varargs_macros (void)
2318 int x = 1234;
2319 int y = 5678;
2320 debug ("Flag");
2321 debug ("X = %d\n", x);
2322 showlist (The first, second, and third items.);
2323 report (x>y, "x is %d but y is %d", x, y);
2326 // Check long long types.
2327 #define BIG64 18446744073709551615ull
2328 #define BIG32 4294967295ul
2329 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2330 #if !BIG_OK
2331 #error "your preprocessor is broken"
2332 #endif
2333 #if BIG_OK
2334 #else
2335 #error "your preprocessor is broken"
2336 #endif
2337 static long long int bignum = -9223372036854775807LL;
2338 static unsigned long long int ubignum = BIG64;
2340 struct incomplete_array
2342 int datasize;
2343 double data[];
2346 struct named_init {
2347 int number;
2348 const wchar_t *name;
2349 double average;
2352 typedef const char *ccp;
2354 static inline int
2355 test_restrict (ccp restrict text)
2357 // See if C++-style comments work.
2358 // Iterate through items via the restricted pointer.
2359 // Also check for declarations in for loops.
2360 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2361 continue;
2362 return 0;
2365 // Check varargs and va_copy.
2366 static bool
2367 test_varargs (const char *format, ...)
2369 va_list args;
2370 va_start (args, format);
2371 va_list args_copy;
2372 va_copy (args_copy, args);
2374 const char *str = "";
2375 int number = 0;
2376 float fnumber = 0;
2378 while (*format)
2380 switch (*format++)
2382 case '\''s'\'': // string
2383 str = va_arg (args_copy, const char *);
2384 break;
2385 case '\''d'\'': // int
2386 number = va_arg (args_copy, int);
2387 break;
2388 case '\''f'\'': // float
2389 fnumber = va_arg (args_copy, double);
2390 break;
2391 default:
2392 break;
2395 va_end (args_copy);
2396 va_end (args);
2398 return *str && number && fnumber;
2402 # Test code for whether the C compiler supports C99 (body of main).
2403 ac_c_conftest_c99_main='
2404 // Check bool.
2405 _Bool success = false;
2406 success |= (argc != 0);
2408 // Check restrict.
2409 if (test_restrict ("String literal") == 0)
2410 success = true;
2411 char *restrict newvar = "Another string";
2413 // Check varargs.
2414 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2415 test_varargs_macros ();
2417 // Check flexible array members.
2418 struct incomplete_array *ia =
2419 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2420 ia->datasize = 10;
2421 for (int i = 0; i < ia->datasize; ++i)
2422 ia->data[i] = i * 1.234;
2424 // Check named initializers.
2425 struct named_init ni = {
2426 .number = 34,
2427 .name = L"Test wide string",
2428 .average = 543.34343,
2431 ni.number = 58;
2433 int dynamic_array[ni.number];
2434 dynamic_array[0] = argv[0][0];
2435 dynamic_array[ni.number - 1] = 543;
2437 // work around unused variable warnings
2438 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2439 || dynamic_array[ni.number - 1] != 543);
2442 # Test code for whether the C compiler supports C11 (global declarations)
2443 ac_c_conftest_c11_globals='
2444 // Does the compiler advertise C11 conformance?
2445 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2446 # error "Compiler does not advertise C11 conformance"
2447 #endif
2449 // Check _Alignas.
2450 char _Alignas (double) aligned_as_double;
2451 char _Alignas (0) no_special_alignment;
2452 extern char aligned_as_int;
2453 char _Alignas (0) _Alignas (int) aligned_as_int;
2455 // Check _Alignof.
2456 enum
2458 int_alignment = _Alignof (int),
2459 int_array_alignment = _Alignof (int[100]),
2460 char_alignment = _Alignof (char)
2462 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2464 // Check _Noreturn.
2465 int _Noreturn does_not_return (void) { for (;;) continue; }
2467 // Check _Static_assert.
2468 struct test_static_assert
2470 int x;
2471 _Static_assert (sizeof (int) <= sizeof (long int),
2472 "_Static_assert does not work in struct");
2473 long int y;
2476 // Check UTF-8 literals.
2477 #define u8 syntax error!
2478 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2480 // Check duplicate typedefs.
2481 typedef long *long_ptr;
2482 typedef long int *long_ptr;
2483 typedef long_ptr long_ptr;
2485 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2486 struct anonymous
2488 union {
2489 struct { int i; int j; };
2490 struct { int k; long int l; } w;
2492 int m;
2493 } v1;
2496 # Test code for whether the C compiler supports C11 (body of main).
2497 ac_c_conftest_c11_main='
2498 _Static_assert ((offsetof (struct anonymous, i)
2499 == offsetof (struct anonymous, w.k)),
2500 "Anonymous union alignment botch");
2501 v1.i = 2;
2502 v1.w.k = 5;
2503 ok |= v1.i != 5;
2506 # Test code for whether the C compiler supports C11 (complete).
2507 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2508 ${ac_c_conftest_c99_globals}
2509 ${ac_c_conftest_c11_globals}
2512 main (int argc, char **argv)
2514 int ok = 0;
2515 ${ac_c_conftest_c89_main}
2516 ${ac_c_conftest_c99_main}
2517 ${ac_c_conftest_c11_main}
2518 return ok;
2522 # Test code for whether the C compiler supports C99 (complete).
2523 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2524 ${ac_c_conftest_c99_globals}
2527 main (int argc, char **argv)
2529 int ok = 0;
2530 ${ac_c_conftest_c89_main}
2531 ${ac_c_conftest_c99_main}
2532 return ok;
2536 # Test code for whether the C compiler supports C89 (complete).
2537 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2540 main (int argc, char **argv)
2542 int ok = 0;
2543 ${ac_c_conftest_c89_main}
2544 return ok;
2548 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2549 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2550 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2551 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2552 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2553 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2554 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2555 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2556 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2557 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2558 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2559 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2560 as_fn_append ac_func_c_list " fork HAVE_FORK"
2561 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2562 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2564 # Auxiliary files required by this configure script.
2565 ac_aux_files="install-sh"
2567 # Locations in which to look for auxiliary files.
2568 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2570 # Search for a directory containing all of the required auxiliary files,
2571 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2572 # If we don't find one directory that contains all the files we need,
2573 # we report the set of missing files from the *first* directory in
2574 # $ac_aux_dir_candidates and give up.
2575 ac_missing_aux_files=""
2576 ac_first_candidate=:
2577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 as_found=false
2580 for as_dir in $ac_aux_dir_candidates
2582 IFS=$as_save_IFS
2583 case $as_dir in #(((
2584 '') as_dir=./ ;;
2585 */) ;;
2586 *) as_dir=$as_dir/ ;;
2587 esac
2588 as_found=:
2590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2591 ac_aux_dir_found=yes
2592 ac_install_sh=
2593 for ac_aux in $ac_aux_files
2595 # As a special case, if "install-sh" is required, that requirement
2596 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2597 # and $ac_install_sh is set appropriately for whichever one is found.
2598 if test x"$ac_aux" = x"install-sh"
2599 then
2600 if test -f "${as_dir}install-sh"; then
2601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2602 ac_install_sh="${as_dir}install-sh -c"
2603 elif 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}shtool"; then
2607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2608 ac_install_sh="${as_dir}shtool install -c"
2609 else
2610 ac_aux_dir_found=no
2611 if $ac_first_candidate; then
2612 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2613 else
2614 break
2617 else
2618 if test -f "${as_dir}${ac_aux}"; then
2619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2620 else
2621 ac_aux_dir_found=no
2622 if $ac_first_candidate; then
2623 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2624 else
2625 break
2629 done
2630 if test "$ac_aux_dir_found" = yes; then
2631 ac_aux_dir="$as_dir"
2632 break
2634 ac_first_candidate=false
2636 as_found=false
2637 done
2638 IFS=$as_save_IFS
2639 if $as_found
2640 then :
2642 else $as_nop
2643 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2647 # These three variables are undocumented and unsupported,
2648 # and are intended to be withdrawn in a future Autoconf release.
2649 # They can cause serious problems if a builder's source tree is in a directory
2650 # whose full name contains unusual characters.
2651 if test -f "${ac_aux_dir}config.guess"; then
2652 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2654 if test -f "${ac_aux_dir}config.sub"; then
2655 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2657 if test -f "$ac_aux_dir/configure"; then
2658 ac_configure="$SHELL ${ac_aux_dir}configure"
2661 # Check that the precious variables saved in the cache have kept the same
2662 # value.
2663 ac_cache_corrupted=false
2664 for ac_var in $ac_precious_vars; do
2665 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2666 eval ac_new_set=\$ac_env_${ac_var}_set
2667 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2668 eval ac_new_val=\$ac_env_${ac_var}_value
2669 case $ac_old_set,$ac_new_set in
2670 set,)
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2672 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2673 ac_cache_corrupted=: ;;
2674 ,set)
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2676 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2677 ac_cache_corrupted=: ;;
2678 ,);;
2680 if test "x$ac_old_val" != "x$ac_new_val"; then
2681 # differences in whitespace do not lead to failure.
2682 ac_old_val_w=`echo x $ac_old_val`
2683 ac_new_val_w=`echo x $ac_new_val`
2684 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2686 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2687 ac_cache_corrupted=:
2688 else
2689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2690 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2691 eval $ac_var=\$ac_old_val
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2694 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2696 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2697 fi;;
2698 esac
2699 # Pass precious variables to config.status.
2700 if test "$ac_new_set" = set; then
2701 case $ac_new_val in
2702 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2703 *) ac_arg=$ac_var=$ac_new_val ;;
2704 esac
2705 case " $ac_configure_args " in
2706 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2707 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2708 esac
2710 done
2711 if $ac_cache_corrupted; then
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2715 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2716 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2717 and start over" "$LINENO" 5
2719 ## -------------------- ##
2720 ## Main body of script. ##
2721 ## -------------------- ##
2723 ac_ext=c
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 ac_config_headers="$ac_config_headers config.h"
2733 case "$srcdir" in
2734 /*) ;;
2735 *) srcdir=`cd $srcdir && 'pwd'`;;
2736 esac
2738 . $srcdir/VERSION
2739 OS=`uname -s`
2741 use_defshell() {
2742 case "$defshell_path$DEFSHELL_INDEX" in
2743 "") ;;
2744 *) return 0;;
2745 esac
2746 case "$1" in
2747 *csh) # we must be desperate
2748 DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;;
2749 *ksh)
2750 DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
2751 sh|/bin/sh)
2752 DEFSHELL_INDEX=DEFSHELL_INDEX_SH;;
2753 *) DEFSHELL_INDEX=DEFSHELL_INDEX_CUSTOM
2754 defshell_path=$1
2756 esac
2757 case "$1" in
2758 /bin/*) ;;
2759 */*) defshell_path=$1;;
2760 esac
2763 # Check whether --with-defshell was given.
2764 if test ${with_defshell+y}
2765 then :
2766 withval=$with_defshell; case "${withval}" in
2767 yes) as_fn_error $? "bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
2768 no) ;;
2769 *) use_defshell $with_defshell;;
2770 esac
2773 case "$OS" in
2774 CYGWIN*|MINGW*) use_makefile=no;;
2775 *) use_makefile=yes;;
2776 esac
2778 # Check whether --with-makefile was given.
2779 if test ${with_makefile+y}
2780 then :
2781 withval=$with_makefile; case "${withval}" in
2782 yes|no) use_makefile=${withval};;
2783 *) as_fn_error $? "bad value ${withval} given for makefile" "$LINENO" 5 ;;
2784 esac
2787 use_meta=yes
2789 # Check whether --with-meta was given.
2790 if test ${with_meta+y}
2791 then :
2792 withval=$with_meta; case "${withval}" in
2793 yes|no) use_meta=${withval};;
2794 *) as_fn_error $? "bad value ${withval} given for meta" "$LINENO" 5 ;;
2795 esac
2799 # Check whether --with-filemon was given.
2800 if test ${with_filemon+y}
2801 then :
2802 withval=$with_filemon; case "/${withval}" in
2803 /no) use_filemon=no;;
2804 /*trace) filemon_h=no use_filemon="${withval}";;
2805 */filemon.h) filemon_h="${withval}";;
2806 */filemon*) filemon_h="${withval}/filemon.h";;
2807 *) as_fn_error $? "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2808 esac
2809 case "$use_filemon,$filemon_h" in
2810 ,*.h) use_filemon=dev;;
2811 esac
2813 else $as_nop
2815 case "$OS" in
2816 NetBSD) filemon_h=no use_filemon=ktrace;;
2818 for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
2820 for x in "/$OS" ""
2822 filemon_h="$d$x/filemon.h"
2823 test -s "$filemon_h" && break
2824 done
2825 test -s "$filemon_h" && { use_filemon=dev; break; }
2826 done
2828 esac
2829 use_filemon=${use_filemon:-no}
2830 case "$use_filemon" in
2831 dev) ;;
2832 *) filemon_h=no;;
2833 esac
2837 case "$use_meta" in
2838 yes)
2839 case "$use_filemon" in
2840 no) ;;
2841 *) echo "Using: filemon_${use_filemon}.c" >&6;;
2842 esac
2844 esac
2845 case "$OS" in
2846 Minix) CPPFLAGS="${CPPFLAGS} -D_NETBSD_SOURCE"
2847 test -x /usr/pkg/bin/clang && CC=${CC:-clang}
2849 SCO_SV) # /bin/sh is not usable
2850 ALT_DEF_SHELLS="/bin/lsh /usr/bin/bash /bin/ksh"
2851 CPPFLAGS="${CPPFLAGS} -DFORCE_USE_SHELL"
2853 esac
2854 echo $ECHO_N "checking whether system has timezone Europe/Berlin... $ECHO_C" >&6
2855 if test -f /usr/share/zoneinfo/Europe/Berlin; then
2856 echo yes >&6
2857 # seems a safe bet
2858 UTC_1=Europe/Berlin
2859 else
2860 utcH=`TZ=UTC date +%H 2> /dev/null`
2861 utc_1H=`TZ=UTC-1 date +%H 2> /dev/null`
2862 if test ${utcH-0} -lt ${utc_1H-0}; then
2863 UTC_1=UTC-1
2864 echo no, using UTC-1 >&6
2865 else
2866 echo no >&6
2869 oldPATH=$PATH
2870 for d in /usr/gnu/bin
2872 test -d $d || continue
2873 PATH=$PATH:$d
2874 done
2875 export PATH
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 printf %s "checking for $ac_word... " >&6; }
2895 if test ${ac_cv_prog_CC+y}
2896 then :
2897 printf %s "(cached) " >&6
2898 else $as_nop
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 case $as_dir in #(((
2907 '') as_dir=./ ;;
2908 */) ;;
2909 *) as_dir=$as_dir/ ;;
2910 esac
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2919 IFS=$as_save_IFS
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926 printf "%s\n" "$CC" >&6; }
2927 else
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 printf "%s\n" "no" >&6; }
2934 if test -z "$ac_cv_prog_CC"; then
2935 ac_ct_CC=$CC
2936 # Extract the first word of "gcc", so it can be a program name with args.
2937 set dummy gcc; ac_word=$2
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 printf %s "checking for $ac_word... " >&6; }
2940 if test ${ac_cv_prog_ac_ct_CC+y}
2941 then :
2942 printf %s "(cached) " >&6
2943 else $as_nop
2944 if test -n "$ac_ct_CC"; then
2945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 case $as_dir in #(((
2952 '') as_dir=./ ;;
2953 */) ;;
2954 *) as_dir=$as_dir/ ;;
2955 esac
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_ac_ct_CC="gcc"
2959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2960 break 2
2962 done
2963 done
2964 IFS=$as_save_IFS
2968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969 if test -n "$ac_ct_CC"; then
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971 printf "%s\n" "$ac_ct_CC" >&6; }
2972 else
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 printf "%s\n" "no" >&6; }
2977 if test "x$ac_ct_CC" = x; then
2978 CC=""
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981 yes:)
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984 ac_tool_warned=yes ;;
2985 esac
2986 CC=$ac_ct_CC
2988 else
2989 CC="$ac_cv_prog_CC"
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}cc; ac_word=$2
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 printf %s "checking for $ac_word... " >&6; }
2998 if test ${ac_cv_prog_CC+y}
2999 then :
3000 printf %s "(cached) " >&6
3001 else $as_nop
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 case $as_dir in #(((
3010 '') as_dir=./ ;;
3011 */) ;;
3012 *) as_dir=$as_dir/ ;;
3013 esac
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_CC="${ac_tool_prefix}cc"
3017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3018 break 2
3020 done
3021 done
3022 IFS=$as_save_IFS
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 printf "%s\n" "$CC" >&6; }
3030 else
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 printf "%s\n" "no" >&6; }
3038 if test -z "$CC"; then
3039 # Extract the first word of "cc", so it can be a program name with args.
3040 set dummy cc; ac_word=$2
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 printf %s "checking for $ac_word... " >&6; }
3043 if test ${ac_cv_prog_CC+y}
3044 then :
3045 printf %s "(cached) " >&6
3046 else $as_nop
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050 ac_prog_rejected=no
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3054 IFS=$as_save_IFS
3055 case $as_dir in #(((
3056 '') as_dir=./ ;;
3057 */) ;;
3058 *) as_dir=$as_dir/ ;;
3059 esac
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3062 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3063 ac_prog_rejected=yes
3064 continue
3066 ac_cv_prog_CC="cc"
3067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3068 break 2
3070 done
3071 done
3072 IFS=$as_save_IFS
3074 if test $ac_prog_rejected = yes; then
3075 # We found a bogon in the path, so make sure we never use it.
3076 set dummy $ac_cv_prog_CC
3077 shift
3078 if test $# != 0; then
3079 # We chose a different compiler from the bogus one.
3080 # However, it has the same basename, so the bogon will be chosen
3081 # first if we set CC to just the basename; use the full file name.
3082 shift
3083 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 printf "%s\n" "$CC" >&6; }
3092 else
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 printf "%s\n" "no" >&6; }
3099 if test -z "$CC"; then
3100 if test -n "$ac_tool_prefix"; then
3101 for ac_prog in cl.exe
3103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 printf %s "checking for $ac_word... " >&6; }
3107 if test ${ac_cv_prog_CC+y}
3108 then :
3109 printf %s "(cached) " >&6
3110 else $as_nop
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC="$CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3117 IFS=$as_save_IFS
3118 case $as_dir in #(((
3119 '') as_dir=./ ;;
3120 */) ;;
3121 *) as_dir=$as_dir/ ;;
3122 esac
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3127 break 2
3129 done
3130 done
3131 IFS=$as_save_IFS
3135 CC=$ac_cv_prog_CC
3136 if test -n "$CC"; then
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138 printf "%s\n" "$CC" >&6; }
3139 else
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 printf "%s\n" "no" >&6; }
3145 test -n "$CC" && break
3146 done
3148 if test -z "$CC"; then
3149 ac_ct_CC=$CC
3150 for ac_prog in cl.exe
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 printf %s "checking for $ac_word... " >&6; }
3156 if test ${ac_cv_prog_ac_ct_CC+y}
3157 then :
3158 printf %s "(cached) " >&6
3159 else $as_nop
3160 if test -n "$ac_ct_CC"; then
3161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3166 IFS=$as_save_IFS
3167 case $as_dir in #(((
3168 '') as_dir=./ ;;
3169 */) ;;
3170 *) as_dir=$as_dir/ ;;
3171 esac
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_ac_ct_CC="$ac_prog"
3175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3176 break 2
3178 done
3179 done
3180 IFS=$as_save_IFS
3184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3185 if test -n "$ac_ct_CC"; then
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3187 printf "%s\n" "$ac_ct_CC" >&6; }
3188 else
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 printf "%s\n" "no" >&6; }
3194 test -n "$ac_ct_CC" && break
3195 done
3197 if test "x$ac_ct_CC" = x; then
3198 CC=""
3199 else
3200 case $cross_compiling:$ac_tool_warned in
3201 yes:)
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned=yes ;;
3205 esac
3206 CC=$ac_ct_CC
3211 if test -z "$CC"; then
3212 if test -n "$ac_tool_prefix"; then
3213 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3214 set dummy ${ac_tool_prefix}clang; ac_word=$2
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 printf %s "checking for $ac_word... " >&6; }
3217 if test ${ac_cv_prog_CC+y}
3218 then :
3219 printf %s "(cached) " >&6
3220 else $as_nop
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3227 IFS=$as_save_IFS
3228 case $as_dir in #(((
3229 '') as_dir=./ ;;
3230 */) ;;
3231 *) as_dir=$as_dir/ ;;
3232 esac
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_CC="${ac_tool_prefix}clang"
3236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3237 break 2
3239 done
3240 done
3241 IFS=$as_save_IFS
3245 CC=$ac_cv_prog_CC
3246 if test -n "$CC"; then
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248 printf "%s\n" "$CC" >&6; }
3249 else
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 printf "%s\n" "no" >&6; }
3256 if test -z "$ac_cv_prog_CC"; then
3257 ac_ct_CC=$CC
3258 # Extract the first word of "clang", so it can be a program name with args.
3259 set dummy clang; ac_word=$2
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 printf %s "checking for $ac_word... " >&6; }
3262 if test ${ac_cv_prog_ac_ct_CC+y}
3263 then :
3264 printf %s "(cached) " >&6
3265 else $as_nop
3266 if test -n "$ac_ct_CC"; then
3267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3272 IFS=$as_save_IFS
3273 case $as_dir in #(((
3274 '') as_dir=./ ;;
3275 */) ;;
3276 *) as_dir=$as_dir/ ;;
3277 esac
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_ac_ct_CC="clang"
3281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3282 break 2
3284 done
3285 done
3286 IFS=$as_save_IFS
3290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291 if test -n "$ac_ct_CC"; then
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3293 printf "%s\n" "$ac_ct_CC" >&6; }
3294 else
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 printf "%s\n" "no" >&6; }
3299 if test "x$ac_ct_CC" = x; then
3300 CC=""
3301 else
3302 case $cross_compiling:$ac_tool_warned in
3303 yes:)
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306 ac_tool_warned=yes ;;
3307 esac
3308 CC=$ac_ct_CC
3310 else
3311 CC="$ac_cv_prog_CC"
3317 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "no acceptable C compiler found in \$PATH
3320 See \`config.log' for more details" "$LINENO" 5; }
3322 # Provide some information about the compiler.
3323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3324 set X $ac_compile
3325 ac_compiler=$2
3326 for ac_option in --version -v -V -qversion -version; do
3327 { { ac_try="$ac_compiler $ac_option >&5"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 printf "%s\n" "$ac_try_echo"; } >&5
3334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3335 ac_status=$?
3336 if test -s conftest.err; then
3337 sed '10a\
3338 ... rest of stderr output deleted ...
3339 10q' conftest.err >conftest.er1
3340 cat conftest.er1 >&5
3342 rm -f conftest.er1 conftest.err
3343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }
3345 done
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3351 main (void)
3355 return 0;
3357 _ACEOF
3358 ac_clean_files_save=$ac_clean_files
3359 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3360 # Try to create an executable without -o first, disregard a.out.
3361 # It will help us diagnose broken compilers, and finding out an intuition
3362 # of exeext.
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3364 printf %s "checking whether the C compiler works... " >&6; }
3365 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3367 # The possible output files:
3368 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3370 ac_rmfiles=
3371 for ac_file in $ac_files
3373 case $ac_file in
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3376 esac
3377 done
3378 rm -f $ac_rmfiles
3380 if { { ac_try="$ac_link_default"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 printf "%s\n" "$ac_try_echo"; } >&5
3387 (eval "$ac_link_default") 2>&5
3388 ac_status=$?
3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3391 then :
3392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3395 # so that the user can short-circuit this test for compilers unknown to
3396 # Autoconf.
3397 for ac_file in $ac_files ''
3399 test -f "$ac_file" || continue
3400 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3403 [ab].out )
3404 # We found the default executable, but exeext='' is most
3405 # certainly right.
3406 break;;
3407 *.* )
3408 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3409 then :; else
3410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 # We set ac_cv_exeext here because the later test for it is not
3413 # safe: cross compilers may not add the suffix if given an `-o'
3414 # argument, so we may need to know it at that point already.
3415 # Even if this section looks crufty: it has the advantage of
3416 # actually working.
3417 break;;
3419 break;;
3420 esac
3421 done
3422 test "$ac_cv_exeext" = no && ac_cv_exeext=
3424 else $as_nop
3425 ac_file=''
3427 if test -z "$ac_file"
3428 then :
3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 printf "%s\n" "no" >&6; }
3431 printf "%s\n" "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error 77 "C compiler cannot create executables
3437 See \`config.log' for more details" "$LINENO" 5; }
3438 else $as_nop
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440 printf "%s\n" "yes" >&6; }
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3443 printf %s "checking for C compiler default output file name... " >&6; }
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3445 printf "%s\n" "$ac_file" >&6; }
3446 ac_exeext=$ac_cv_exeext
3448 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3449 ac_clean_files=$ac_clean_files_save
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3451 printf %s "checking for suffix of executables... " >&6; }
3452 if { { ac_try="$ac_link"
3453 case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 printf "%s\n" "$ac_try_echo"; } >&5
3459 (eval "$ac_link") 2>&5
3460 ac_status=$?
3461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }
3463 then :
3464 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3465 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3466 # work properly (i.e., refer to `conftest.exe'), while it won't with
3467 # `rm'.
3468 for ac_file in conftest.exe conftest conftest.*; do
3469 test -f "$ac_file" || continue
3470 case $ac_file in
3471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3472 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3473 break;;
3474 * ) break;;
3475 esac
3476 done
3477 else $as_nop
3478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3481 See \`config.log' for more details" "$LINENO" 5; }
3483 rm -f conftest conftest$ac_cv_exeext
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3485 printf "%s\n" "$ac_cv_exeext" >&6; }
3487 rm -f conftest.$ac_ext
3488 EXEEXT=$ac_cv_exeext
3489 ac_exeext=$EXEEXT
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492 #include <stdio.h>
3494 main (void)
3496 FILE *f = fopen ("conftest.out", "w");
3497 return ferror (f) || fclose (f) != 0;
3500 return 0;
3502 _ACEOF
3503 ac_clean_files="$ac_clean_files conftest.out"
3504 # Check that the compiler produces executables we can run. If not, either
3505 # the compiler is broken, or we cross compile.
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3507 printf %s "checking whether we are cross compiling... " >&6; }
3508 if test "$cross_compiling" != yes; then
3509 { { ac_try="$ac_link"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 printf "%s\n" "$ac_try_echo"; } >&5
3516 (eval "$ac_link") 2>&5
3517 ac_status=$?
3518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }
3520 if { ac_try='./conftest$ac_cv_exeext'
3521 { { case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 printf "%s\n" "$ac_try_echo"; } >&5
3527 (eval "$ac_try") 2>&5
3528 ac_status=$?
3529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }; }; then
3531 cross_compiling=no
3532 else
3533 if test "$cross_compiling" = maybe; then
3534 cross_compiling=yes
3535 else
3536 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3538 as_fn_error 77 "cannot run C compiled programs.
3539 If you meant to cross compile, use \`--host'.
3540 See \`config.log' for more details" "$LINENO" 5; }
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3545 printf "%s\n" "$cross_compiling" >&6; }
3547 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3548 ac_clean_files=$ac_clean_files_save
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3550 printf %s "checking for suffix of object files... " >&6; }
3551 if test ${ac_cv_objext+y}
3552 then :
3553 printf %s "(cached) " >&6
3554 else $as_nop
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3559 main (void)
3563 return 0;
3565 _ACEOF
3566 rm -f conftest.o conftest.obj
3567 if { { ac_try="$ac_compile"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 printf "%s\n" "$ac_try_echo"; } >&5
3574 (eval "$ac_compile") 2>&5
3575 ac_status=$?
3576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }
3578 then :
3579 for ac_file in conftest.o conftest.obj conftest.*; do
3580 test -f "$ac_file" || continue;
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584 break;;
3585 esac
3586 done
3587 else $as_nop
3588 printf "%s\n" "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "cannot compute suffix of object files: cannot compile
3594 See \`config.log' for more details" "$LINENO" 5; }
3596 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3599 printf "%s\n" "$ac_cv_objext" >&6; }
3600 OBJEXT=$ac_cv_objext
3601 ac_objext=$OBJEXT
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3603 printf %s "checking whether the compiler supports GNU C... " >&6; }
3604 if test ${ac_cv_c_compiler_gnu+y}
3605 then :
3606 printf %s "(cached) " >&6
3607 else $as_nop
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3612 main (void)
3614 #ifndef __GNUC__
3615 choke me
3616 #endif
3619 return 0;
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"
3623 then :
3624 ac_compiler_gnu=yes
3625 else $as_nop
3626 ac_compiler_gnu=no
3628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3629 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3633 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 if test $ac_compiler_gnu = yes; then
3637 GCC=yes
3638 else
3639 GCC=
3641 ac_test_CFLAGS=${CFLAGS+y}
3642 ac_save_CFLAGS=$CFLAGS
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3644 printf %s "checking whether $CC accepts -g... " >&6; }
3645 if test ${ac_cv_prog_cc_g+y}
3646 then :
3647 printf %s "(cached) " >&6
3648 else $as_nop
3649 ac_save_c_werror_flag=$ac_c_werror_flag
3650 ac_c_werror_flag=yes
3651 ac_cv_prog_cc_g=no
3652 CFLAGS="-g"
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3657 main (void)
3661 return 0;
3663 _ACEOF
3664 if ac_fn_c_try_compile "$LINENO"
3665 then :
3666 ac_cv_prog_cc_g=yes
3667 else $as_nop
3668 CFLAGS=""
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3673 main (void)
3677 return 0;
3679 _ACEOF
3680 if ac_fn_c_try_compile "$LINENO"
3681 then :
3683 else $as_nop
3684 ac_c_werror_flag=$ac_save_c_werror_flag
3685 CFLAGS="-g"
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3690 main (void)
3694 return 0;
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"
3698 then :
3699 ac_cv_prog_cc_g=yes
3701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3706 ac_c_werror_flag=$ac_save_c_werror_flag
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3709 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3710 if test $ac_test_CFLAGS; then
3711 CFLAGS=$ac_save_CFLAGS
3712 elif test $ac_cv_prog_cc_g = yes; then
3713 if test "$GCC" = yes; then
3714 CFLAGS="-g -O2"
3715 else
3716 CFLAGS="-g"
3718 else
3719 if test "$GCC" = yes; then
3720 CFLAGS="-O2"
3721 else
3722 CFLAGS=
3725 ac_prog_cc_stdc=no
3726 if test x$ac_prog_cc_stdc = xno
3727 then :
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3729 printf %s "checking for $CC option to enable C11 features... " >&6; }
3730 if test ${ac_cv_prog_cc_c11+y}
3731 then :
3732 printf %s "(cached) " >&6
3733 else $as_nop
3734 ac_cv_prog_cc_c11=no
3735 ac_save_CC=$CC
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 $ac_c_conftest_c11_program
3739 _ACEOF
3740 for ac_arg in '' -std=gnu11
3742 CC="$ac_save_CC $ac_arg"
3743 if ac_fn_c_try_compile "$LINENO"
3744 then :
3745 ac_cv_prog_cc_c11=$ac_arg
3747 rm -f core conftest.err conftest.$ac_objext conftest.beam
3748 test "x$ac_cv_prog_cc_c11" != "xno" && break
3749 done
3750 rm -f conftest.$ac_ext
3751 CC=$ac_save_CC
3754 if test "x$ac_cv_prog_cc_c11" = xno
3755 then :
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3757 printf "%s\n" "unsupported" >&6; }
3758 else $as_nop
3759 if test "x$ac_cv_prog_cc_c11" = x
3760 then :
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3762 printf "%s\n" "none needed" >&6; }
3763 else $as_nop
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3765 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3766 CC="$CC $ac_cv_prog_cc_c11"
3768 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3769 ac_prog_cc_stdc=c11
3772 if test x$ac_prog_cc_stdc = xno
3773 then :
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3775 printf %s "checking for $CC option to enable C99 features... " >&6; }
3776 if test ${ac_cv_prog_cc_c99+y}
3777 then :
3778 printf %s "(cached) " >&6
3779 else $as_nop
3780 ac_cv_prog_cc_c99=no
3781 ac_save_CC=$CC
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784 $ac_c_conftest_c99_program
3785 _ACEOF
3786 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3788 CC="$ac_save_CC $ac_arg"
3789 if ac_fn_c_try_compile "$LINENO"
3790 then :
3791 ac_cv_prog_cc_c99=$ac_arg
3793 rm -f core conftest.err conftest.$ac_objext conftest.beam
3794 test "x$ac_cv_prog_cc_c99" != "xno" && break
3795 done
3796 rm -f conftest.$ac_ext
3797 CC=$ac_save_CC
3800 if test "x$ac_cv_prog_cc_c99" = xno
3801 then :
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3803 printf "%s\n" "unsupported" >&6; }
3804 else $as_nop
3805 if test "x$ac_cv_prog_cc_c99" = x
3806 then :
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3808 printf "%s\n" "none needed" >&6; }
3809 else $as_nop
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3811 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3812 CC="$CC $ac_cv_prog_cc_c99"
3814 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3815 ac_prog_cc_stdc=c99
3818 if test x$ac_prog_cc_stdc = xno
3819 then :
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3821 printf %s "checking for $CC option to enable C89 features... " >&6; }
3822 if test ${ac_cv_prog_cc_c89+y}
3823 then :
3824 printf %s "(cached) " >&6
3825 else $as_nop
3826 ac_cv_prog_cc_c89=no
3827 ac_save_CC=$CC
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830 $ac_c_conftest_c89_program
3831 _ACEOF
3832 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3834 CC="$ac_save_CC $ac_arg"
3835 if ac_fn_c_try_compile "$LINENO"
3836 then :
3837 ac_cv_prog_cc_c89=$ac_arg
3839 rm -f core conftest.err conftest.$ac_objext conftest.beam
3840 test "x$ac_cv_prog_cc_c89" != "xno" && break
3841 done
3842 rm -f conftest.$ac_ext
3843 CC=$ac_save_CC
3846 if test "x$ac_cv_prog_cc_c89" = xno
3847 then :
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3849 printf "%s\n" "unsupported" >&6; }
3850 else $as_nop
3851 if test "x$ac_cv_prog_cc_c89" = x
3852 then :
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3854 printf "%s\n" "none needed" >&6; }
3855 else $as_nop
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3857 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3858 CC="$CC $ac_cv_prog_cc_c89"
3860 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3861 ac_prog_cc_stdc=c89
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872 ac_header= ac_cache=
3873 for ac_item in $ac_header_c_list
3875 if test $ac_cache; then
3876 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3877 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3878 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3880 ac_header= ac_cache=
3881 elif test $ac_header; then
3882 ac_cache=$ac_item
3883 else
3884 ac_header=$ac_item
3886 done
3895 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3896 then :
3898 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3908 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3909 if test ${ac_cv_safe_to_define___extensions__+y}
3910 then :
3911 printf %s "(cached) " >&6
3912 else $as_nop
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3916 # define __EXTENSIONS__ 1
3917 $ac_includes_default
3919 main (void)
3923 return 0;
3925 _ACEOF
3926 if ac_fn_c_try_compile "$LINENO"
3927 then :
3928 ac_cv_safe_to_define___extensions__=yes
3929 else $as_nop
3930 ac_cv_safe_to_define___extensions__=no
3932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3935 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3938 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3939 if test ${ac_cv_should_define__xopen_source+y}
3940 then :
3941 printf %s "(cached) " >&6
3942 else $as_nop
3943 ac_cv_should_define__xopen_source=no
3944 if test $ac_cv_header_wchar_h = yes
3945 then :
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3949 #include <wchar.h>
3950 mbstate_t x;
3952 main (void)
3956 return 0;
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"
3960 then :
3962 else $as_nop
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3966 #define _XOPEN_SOURCE 500
3967 #include <wchar.h>
3968 mbstate_t x;
3970 main (void)
3974 return 0;
3976 _ACEOF
3977 if ac_fn_c_try_compile "$LINENO"
3978 then :
3979 ac_cv_should_define__xopen_source=yes
3981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3987 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3989 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3991 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3993 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3995 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3997 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3999 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4001 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4003 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4005 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4007 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4009 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4011 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4013 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4015 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4017 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4019 if test $ac_cv_header_minix_config_h = yes
4020 then :
4021 MINIX=yes
4022 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4024 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4026 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4028 else $as_nop
4029 MINIX=
4031 if test $ac_cv_safe_to_define___extensions__ = yes
4032 then :
4033 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4036 if test $ac_cv_should_define__xopen_source = yes
4037 then :
4038 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4042 ac_ext=c
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047 if test -n "$ac_tool_prefix"; then
4048 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4049 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 printf %s "checking for $ac_word... " >&6; }
4052 if test ${ac_cv_prog_CC+y}
4053 then :
4054 printf %s "(cached) " >&6
4055 else $as_nop
4056 if test -n "$CC"; then
4057 ac_cv_prog_CC="$CC" # Let the user override the test.
4058 else
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4062 IFS=$as_save_IFS
4063 case $as_dir in #(((
4064 '') as_dir=./ ;;
4065 */) ;;
4066 *) as_dir=$as_dir/ ;;
4067 esac
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4072 break 2
4074 done
4075 done
4076 IFS=$as_save_IFS
4080 CC=$ac_cv_prog_CC
4081 if test -n "$CC"; then
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 printf "%s\n" "$CC" >&6; }
4084 else
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 printf "%s\n" "no" >&6; }
4091 if test -z "$ac_cv_prog_CC"; then
4092 ac_ct_CC=$CC
4093 # Extract the first word of "gcc", so it can be a program name with args.
4094 set dummy gcc; ac_word=$2
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 printf %s "checking for $ac_word... " >&6; }
4097 if test ${ac_cv_prog_ac_ct_CC+y}
4098 then :
4099 printf %s "(cached) " >&6
4100 else $as_nop
4101 if test -n "$ac_ct_CC"; then
4102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4107 IFS=$as_save_IFS
4108 case $as_dir in #(((
4109 '') as_dir=./ ;;
4110 */) ;;
4111 *) as_dir=$as_dir/ ;;
4112 esac
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_ac_ct_CC="gcc"
4116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4117 break 2
4119 done
4120 done
4121 IFS=$as_save_IFS
4125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4126 if test -n "$ac_ct_CC"; then
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4128 printf "%s\n" "$ac_ct_CC" >&6; }
4129 else
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 printf "%s\n" "no" >&6; }
4134 if test "x$ac_ct_CC" = x; then
4135 CC=""
4136 else
4137 case $cross_compiling:$ac_tool_warned in
4138 yes:)
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4140 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4141 ac_tool_warned=yes ;;
4142 esac
4143 CC=$ac_ct_CC
4145 else
4146 CC="$ac_cv_prog_CC"
4149 if test -z "$CC"; then
4150 if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4152 set dummy ${ac_tool_prefix}cc; ac_word=$2
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 printf %s "checking for $ac_word... " >&6; }
4155 if test ${ac_cv_prog_CC+y}
4156 then :
4157 printf %s "(cached) " >&6
4158 else $as_nop
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4165 IFS=$as_save_IFS
4166 case $as_dir in #(((
4167 '') as_dir=./ ;;
4168 */) ;;
4169 *) as_dir=$as_dir/ ;;
4170 esac
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_CC="${ac_tool_prefix}cc"
4174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4179 IFS=$as_save_IFS
4183 CC=$ac_cv_prog_CC
4184 if test -n "$CC"; then
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 printf "%s\n" "$CC" >&6; }
4187 else
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 printf "%s\n" "no" >&6; }
4195 if test -z "$CC"; then
4196 # Extract the first word of "cc", so it can be a program name with args.
4197 set dummy cc; ac_word=$2
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 printf %s "checking for $ac_word... " >&6; }
4200 if test ${ac_cv_prog_CC+y}
4201 then :
4202 printf %s "(cached) " >&6
4203 else $as_nop
4204 if test -n "$CC"; then
4205 ac_cv_prog_CC="$CC" # Let the user override the test.
4206 else
4207 ac_prog_rejected=no
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 case $as_dir in #(((
4213 '') as_dir=./ ;;
4214 */) ;;
4215 *) as_dir=$as_dir/ ;;
4216 esac
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4219 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4220 ac_prog_rejected=yes
4221 continue
4223 ac_cv_prog_CC="cc"
4224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4229 IFS=$as_save_IFS
4231 if test $ac_prog_rejected = yes; then
4232 # We found a bogon in the path, so make sure we never use it.
4233 set dummy $ac_cv_prog_CC
4234 shift
4235 if test $# != 0; then
4236 # We chose a different compiler from the bogus one.
4237 # However, it has the same basename, so the bogon will be chosen
4238 # first if we set CC to just the basename; use the full file name.
4239 shift
4240 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 printf "%s\n" "$CC" >&6; }
4249 else
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 printf "%s\n" "no" >&6; }
4256 if test -z "$CC"; then
4257 if test -n "$ac_tool_prefix"; then
4258 for ac_prog in cl.exe
4260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 printf %s "checking for $ac_word... " >&6; }
4264 if test ${ac_cv_prog_CC+y}
4265 then :
4266 printf %s "(cached) " >&6
4267 else $as_nop
4268 if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 case $as_dir in #(((
4276 '') as_dir=./ ;;
4277 */) ;;
4278 *) as_dir=$as_dir/ ;;
4279 esac
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4292 CC=$ac_cv_prog_CC
4293 if test -n "$CC"; then
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4295 printf "%s\n" "$CC" >&6; }
4296 else
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 printf "%s\n" "no" >&6; }
4302 test -n "$CC" && break
4303 done
4305 if test -z "$CC"; then
4306 ac_ct_CC=$CC
4307 for ac_prog in cl.exe
4309 # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy $ac_prog; ac_word=$2
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 printf %s "checking for $ac_word... " >&6; }
4313 if test ${ac_cv_prog_ac_ct_CC+y}
4314 then :
4315 printf %s "(cached) " >&6
4316 else $as_nop
4317 if test -n "$ac_ct_CC"; then
4318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4323 IFS=$as_save_IFS
4324 case $as_dir in #(((
4325 '') as_dir=./ ;;
4326 */) ;;
4327 *) as_dir=$as_dir/ ;;
4328 esac
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_ac_ct_CC="$ac_prog"
4332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4337 IFS=$as_save_IFS
4341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4342 if test -n "$ac_ct_CC"; then
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4344 printf "%s\n" "$ac_ct_CC" >&6; }
4345 else
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 printf "%s\n" "no" >&6; }
4351 test -n "$ac_ct_CC" && break
4352 done
4354 if test "x$ac_ct_CC" = x; then
4355 CC=""
4356 else
4357 case $cross_compiling:$ac_tool_warned in
4358 yes:)
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4362 esac
4363 CC=$ac_ct_CC
4368 if test -z "$CC"; then
4369 if test -n "$ac_tool_prefix"; then
4370 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4371 set dummy ${ac_tool_prefix}clang; ac_word=$2
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 printf %s "checking for $ac_word... " >&6; }
4374 if test ${ac_cv_prog_CC+y}
4375 then :
4376 printf %s "(cached) " >&6
4377 else $as_nop
4378 if test -n "$CC"; then
4379 ac_cv_prog_CC="$CC" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4384 IFS=$as_save_IFS
4385 case $as_dir in #(((
4386 '') as_dir=./ ;;
4387 */) ;;
4388 *) as_dir=$as_dir/ ;;
4389 esac
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4392 ac_cv_prog_CC="${ac_tool_prefix}clang"
4393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4394 break 2
4396 done
4397 done
4398 IFS=$as_save_IFS
4402 CC=$ac_cv_prog_CC
4403 if test -n "$CC"; then
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4405 printf "%s\n" "$CC" >&6; }
4406 else
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 printf "%s\n" "no" >&6; }
4413 if test -z "$ac_cv_prog_CC"; then
4414 ac_ct_CC=$CC
4415 # Extract the first word of "clang", so it can be a program name with args.
4416 set dummy clang; ac_word=$2
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 printf %s "checking for $ac_word... " >&6; }
4419 if test ${ac_cv_prog_ac_ct_CC+y}
4420 then :
4421 printf %s "(cached) " >&6
4422 else $as_nop
4423 if test -n "$ac_ct_CC"; then
4424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4429 IFS=$as_save_IFS
4430 case $as_dir in #(((
4431 '') as_dir=./ ;;
4432 */) ;;
4433 *) as_dir=$as_dir/ ;;
4434 esac
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_ac_ct_CC="clang"
4438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4443 IFS=$as_save_IFS
4447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4448 if test -n "$ac_ct_CC"; then
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4450 printf "%s\n" "$ac_ct_CC" >&6; }
4451 else
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 printf "%s\n" "no" >&6; }
4456 if test "x$ac_ct_CC" = x; then
4457 CC=""
4458 else
4459 case $cross_compiling:$ac_tool_warned in
4460 yes:)
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463 ac_tool_warned=yes ;;
4464 esac
4465 CC=$ac_ct_CC
4467 else
4468 CC="$ac_cv_prog_CC"
4474 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error $? "no acceptable C compiler found in \$PATH
4477 See \`config.log' for more details" "$LINENO" 5; }
4479 # Provide some information about the compiler.
4480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4481 set X $ac_compile
4482 ac_compiler=$2
4483 for ac_option in --version -v -V -qversion -version; do
4484 { { ac_try="$ac_compiler $ac_option >&5"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 printf "%s\n" "$ac_try_echo"; } >&5
4491 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4492 ac_status=$?
4493 if test -s conftest.err; then
4494 sed '10a\
4495 ... rest of stderr output deleted ...
4496 10q' conftest.err >conftest.er1
4497 cat conftest.er1 >&5
4499 rm -f conftest.er1 conftest.err
4500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4501 test $ac_status = 0; }
4502 done
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4505 printf %s "checking whether the compiler supports GNU C... " >&6; }
4506 if test ${ac_cv_c_compiler_gnu+y}
4507 then :
4508 printf %s "(cached) " >&6
4509 else $as_nop
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4514 main (void)
4516 #ifndef __GNUC__
4517 choke me
4518 #endif
4521 return 0;
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"
4525 then :
4526 ac_compiler_gnu=yes
4527 else $as_nop
4528 ac_compiler_gnu=no
4530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4531 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4535 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 if test $ac_compiler_gnu = yes; then
4539 GCC=yes
4540 else
4541 GCC=
4543 ac_test_CFLAGS=${CFLAGS+y}
4544 ac_save_CFLAGS=$CFLAGS
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4546 printf %s "checking whether $CC accepts -g... " >&6; }
4547 if test ${ac_cv_prog_cc_g+y}
4548 then :
4549 printf %s "(cached) " >&6
4550 else $as_nop
4551 ac_save_c_werror_flag=$ac_c_werror_flag
4552 ac_c_werror_flag=yes
4553 ac_cv_prog_cc_g=no
4554 CFLAGS="-g"
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4559 main (void)
4563 return 0;
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"
4567 then :
4568 ac_cv_prog_cc_g=yes
4569 else $as_nop
4570 CFLAGS=""
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4575 main (void)
4579 return 0;
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"
4583 then :
4585 else $as_nop
4586 ac_c_werror_flag=$ac_save_c_werror_flag
4587 CFLAGS="-g"
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4592 main (void)
4596 return 0;
4598 _ACEOF
4599 if ac_fn_c_try_compile "$LINENO"
4600 then :
4601 ac_cv_prog_cc_g=yes
4603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4608 ac_c_werror_flag=$ac_save_c_werror_flag
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4611 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4612 if test $ac_test_CFLAGS; then
4613 CFLAGS=$ac_save_CFLAGS
4614 elif test $ac_cv_prog_cc_g = yes; then
4615 if test "$GCC" = yes; then
4616 CFLAGS="-g -O2"
4617 else
4618 CFLAGS="-g"
4620 else
4621 if test "$GCC" = yes; then
4622 CFLAGS="-O2"
4623 else
4624 CFLAGS=
4627 ac_prog_cc_stdc=no
4628 if test x$ac_prog_cc_stdc = xno
4629 then :
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4631 printf %s "checking for $CC option to enable C11 features... " >&6; }
4632 if test ${ac_cv_prog_cc_c11+y}
4633 then :
4634 printf %s "(cached) " >&6
4635 else $as_nop
4636 ac_cv_prog_cc_c11=no
4637 ac_save_CC=$CC
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 $ac_c_conftest_c11_program
4641 _ACEOF
4642 for ac_arg in '' -std=gnu11
4644 CC="$ac_save_CC $ac_arg"
4645 if ac_fn_c_try_compile "$LINENO"
4646 then :
4647 ac_cv_prog_cc_c11=$ac_arg
4649 rm -f core conftest.err conftest.$ac_objext conftest.beam
4650 test "x$ac_cv_prog_cc_c11" != "xno" && break
4651 done
4652 rm -f conftest.$ac_ext
4653 CC=$ac_save_CC
4656 if test "x$ac_cv_prog_cc_c11" = xno
4657 then :
4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4659 printf "%s\n" "unsupported" >&6; }
4660 else $as_nop
4661 if test "x$ac_cv_prog_cc_c11" = x
4662 then :
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4664 printf "%s\n" "none needed" >&6; }
4665 else $as_nop
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4667 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4668 CC="$CC $ac_cv_prog_cc_c11"
4670 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4671 ac_prog_cc_stdc=c11
4674 if test x$ac_prog_cc_stdc = xno
4675 then :
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4677 printf %s "checking for $CC option to enable C99 features... " >&6; }
4678 if test ${ac_cv_prog_cc_c99+y}
4679 then :
4680 printf %s "(cached) " >&6
4681 else $as_nop
4682 ac_cv_prog_cc_c99=no
4683 ac_save_CC=$CC
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 $ac_c_conftest_c99_program
4687 _ACEOF
4688 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4690 CC="$ac_save_CC $ac_arg"
4691 if ac_fn_c_try_compile "$LINENO"
4692 then :
4693 ac_cv_prog_cc_c99=$ac_arg
4695 rm -f core conftest.err conftest.$ac_objext conftest.beam
4696 test "x$ac_cv_prog_cc_c99" != "xno" && break
4697 done
4698 rm -f conftest.$ac_ext
4699 CC=$ac_save_CC
4702 if test "x$ac_cv_prog_cc_c99" = xno
4703 then :
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4705 printf "%s\n" "unsupported" >&6; }
4706 else $as_nop
4707 if test "x$ac_cv_prog_cc_c99" = x
4708 then :
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4710 printf "%s\n" "none needed" >&6; }
4711 else $as_nop
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4713 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4714 CC="$CC $ac_cv_prog_cc_c99"
4716 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4717 ac_prog_cc_stdc=c99
4720 if test x$ac_prog_cc_stdc = xno
4721 then :
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4723 printf %s "checking for $CC option to enable C89 features... " >&6; }
4724 if test ${ac_cv_prog_cc_c89+y}
4725 then :
4726 printf %s "(cached) " >&6
4727 else $as_nop
4728 ac_cv_prog_cc_c89=no
4729 ac_save_CC=$CC
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4732 $ac_c_conftest_c89_program
4733 _ACEOF
4734 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4736 CC="$ac_save_CC $ac_arg"
4737 if ac_fn_c_try_compile "$LINENO"
4738 then :
4739 ac_cv_prog_cc_c89=$ac_arg
4741 rm -f core conftest.err conftest.$ac_objext conftest.beam
4742 test "x$ac_cv_prog_cc_c89" != "xno" && break
4743 done
4744 rm -f conftest.$ac_ext
4745 CC=$ac_save_CC
4748 if test "x$ac_cv_prog_cc_c89" = xno
4749 then :
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4751 printf "%s\n" "unsupported" >&6; }
4752 else $as_nop
4753 if test "x$ac_cv_prog_cc_c89" = x
4754 then :
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4756 printf "%s\n" "none needed" >&6; }
4757 else $as_nop
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4759 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4760 CC="$CC $ac_cv_prog_cc_c89"
4762 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4763 ac_prog_cc_stdc=c89
4767 ac_ext=c
4768 ac_cpp='$CPP $CPPFLAGS'
4769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775 # Find a good install program. We prefer a C program (faster),
4776 # so one script is as good as another. But avoid the broken or
4777 # incompatible versions:
4778 # SysV /etc/install, /usr/sbin/install
4779 # SunOS /usr/etc/install
4780 # IRIX /sbin/install
4781 # AIX /bin/install
4782 # AmigaOS /C/install, which installs bootblocks on floppy discs
4783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4786 # OS/2's system install, which has a completely different semantic
4787 # ./install, which can be erroneously created by make from ./install.sh.
4788 # Reject install programs that cannot install multiple files.
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4790 printf %s "checking for a BSD-compatible install... " >&6; }
4791 if test -z "$INSTALL"; then
4792 if test ${ac_cv_path_install+y}
4793 then :
4794 printf %s "(cached) " >&6
4795 else $as_nop
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4799 IFS=$as_save_IFS
4800 case $as_dir in #(((
4801 '') as_dir=./ ;;
4802 */) ;;
4803 *) as_dir=$as_dir/ ;;
4804 esac
4805 # Account for fact that we put trailing slashes in our PATH walk.
4806 case $as_dir in #((
4807 ./ | /[cC]/* | \
4808 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4809 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4810 /usr/ucb/* ) ;;
4812 # OSF1 and SCO ODT 3.0 have their own names for install.
4813 # Don't use installbsd from OSF since it installs stuff as root
4814 # by default.
4815 for ac_prog in ginstall scoinst install; do
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4818 if test $ac_prog = install &&
4819 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4820 # AIX install. It has an incompatible calling convention.
4822 elif test $ac_prog = install &&
4823 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4824 # program-specific install script used by HP pwplus--don't use.
4826 else
4827 rm -rf conftest.one conftest.two conftest.dir
4828 echo one > conftest.one
4829 echo two > conftest.two
4830 mkdir conftest.dir
4831 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4832 test -s conftest.one && test -s conftest.two &&
4833 test -s conftest.dir/conftest.one &&
4834 test -s conftest.dir/conftest.two
4835 then
4836 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4837 break 3
4841 done
4842 done
4844 esac
4846 done
4847 IFS=$as_save_IFS
4849 rm -rf conftest.one conftest.two conftest.dir
4852 if test ${ac_cv_path_install+y}; then
4853 INSTALL=$ac_cv_path_install
4854 else
4855 # As a last resort, use the slow shell script. Don't cache a
4856 # value for INSTALL within a source directory, because that will
4857 # break other packages using the cache if that directory is
4858 # removed, or if the value is a relative name.
4859 INSTALL=$ac_install_sh
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4863 printf "%s\n" "$INSTALL" >&6; }
4865 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4866 # It thinks the first close brace ends the variable substitution.
4867 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4869 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4871 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4873 if test -x /usr/bin/getconf; then
4874 bmake_path_max=`getconf PATH_MAX / 2> /dev/null`
4875 # only a numeric response is useful
4876 test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max=
4878 bmake_path_max=${bmake_path_max:-1024}
4879 if test $bmake_path_max -gt 1024; then
4880 # this is all we expect
4881 bmake_path_max=1024
4883 echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
4884 if (type cat) > /dev/null 2>&1; then
4885 : which
4886 which() {
4887 type "$@" | sed 's,[()],,g;s,^[^/][^/]*,,;q'
4890 case "$CC" in
4891 /*) ;;
4893 for x in $CC
4895 _cc=`which $x`
4896 break
4897 done
4898 if test -x ${_cc:-/dev/null}; then
4899 _cc_dir=`dirname $_cc`
4900 case ":$oldPATH:" in
4901 *:$_cc_dir:*) ;;
4902 *) CC=$_cc_dir/$CC;;
4903 esac
4906 esac
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4908 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4909 if test ${ac_cv_header_sys_wait_h+y}
4910 then :
4911 printf %s "(cached) " >&6
4912 else $as_nop
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 #include <sys/types.h>
4916 #include <sys/wait.h>
4917 #ifndef WEXITSTATUS
4918 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4919 #endif
4920 #ifndef WIFEXITED
4921 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4922 #endif
4925 main (void)
4927 int s;
4928 wait (&s);
4929 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4931 return 0;
4933 _ACEOF
4934 if ac_fn_c_try_compile "$LINENO"
4935 then :
4936 ac_cv_header_sys_wait_h=yes
4937 else $as_nop
4938 ac_cv_header_sys_wait_h=no
4940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4943 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
4944 if test $ac_cv_header_sys_wait_h = yes; then
4946 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4950 ac_header_dirent=no
4951 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4952 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4954 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
4955 if eval test \${$as_ac_Header+y}
4956 then :
4957 printf %s "(cached) " >&6
4958 else $as_nop
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 #include <sys/types.h>
4962 #include <$ac_hdr>
4965 main (void)
4967 if ((DIR *) 0)
4968 return 0;
4970 return 0;
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"
4974 then :
4975 eval "$as_ac_Header=yes"
4976 else $as_nop
4977 eval "$as_ac_Header=no"
4979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4981 eval ac_res=\$$as_ac_Header
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4983 printf "%s\n" "$ac_res" >&6; }
4984 if eval test \"x\$"$as_ac_Header"\" = x"yes"
4985 then :
4986 cat >>confdefs.h <<_ACEOF
4987 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
4988 _ACEOF
4990 ac_header_dirent=$ac_hdr; break
4993 done
4994 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4995 if test $ac_header_dirent = dirent.h; then
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4997 printf %s "checking for library containing opendir... " >&6; }
4998 if test ${ac_cv_search_opendir+y}
4999 then :
5000 printf %s "(cached) " >&6
5001 else $as_nop
5002 ac_func_search_save_LIBS=$LIBS
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5006 /* Override any GCC internal prototype to avoid an error.
5007 Use char because int might match the return type of a GCC
5008 builtin and then its argument prototype would still apply. */
5009 char opendir ();
5011 main (void)
5013 return opendir ();
5015 return 0;
5017 _ACEOF
5018 for ac_lib in '' dir
5020 if test -z "$ac_lib"; then
5021 ac_res="none required"
5022 else
5023 ac_res=-l$ac_lib
5024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5026 if ac_fn_c_try_link "$LINENO"
5027 then :
5028 ac_cv_search_opendir=$ac_res
5030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5031 conftest$ac_exeext
5032 if test ${ac_cv_search_opendir+y}
5033 then :
5034 break
5036 done
5037 if test ${ac_cv_search_opendir+y}
5038 then :
5040 else $as_nop
5041 ac_cv_search_opendir=no
5043 rm conftest.$ac_ext
5044 LIBS=$ac_func_search_save_LIBS
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5047 printf "%s\n" "$ac_cv_search_opendir" >&6; }
5048 ac_res=$ac_cv_search_opendir
5049 if test "$ac_res" != no
5050 then :
5051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5055 else
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5057 printf %s "checking for library containing opendir... " >&6; }
5058 if test ${ac_cv_search_opendir+y}
5059 then :
5060 printf %s "(cached) " >&6
5061 else $as_nop
5062 ac_func_search_save_LIBS=$LIBS
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5066 /* Override any GCC internal prototype to avoid an error.
5067 Use char because int might match the return type of a GCC
5068 builtin and then its argument prototype would still apply. */
5069 char opendir ();
5071 main (void)
5073 return opendir ();
5075 return 0;
5077 _ACEOF
5078 for ac_lib in '' x
5080 if test -z "$ac_lib"; then
5081 ac_res="none required"
5082 else
5083 ac_res=-l$ac_lib
5084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5086 if ac_fn_c_try_link "$LINENO"
5087 then :
5088 ac_cv_search_opendir=$ac_res
5090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5091 conftest$ac_exeext
5092 if test ${ac_cv_search_opendir+y}
5093 then :
5094 break
5096 done
5097 if test ${ac_cv_search_opendir+y}
5098 then :
5100 else $as_nop
5101 ac_cv_search_opendir=no
5103 rm conftest.$ac_ext
5104 LIBS=$ac_func_search_save_LIBS
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5107 printf "%s\n" "$ac_cv_search_opendir" >&6; }
5108 ac_res=$ac_cv_search_opendir
5109 if test "$ac_res" != no
5110 then :
5111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5117 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5118 if test "x$ac_cv_header_sys_param_h" = xyes
5119 then :
5120 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5124 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H
5125 # include <sys/param.h>
5126 # endif
5129 if test "x$ac_cv_header_sys_sysctl_h" = xyes
5130 then :
5131 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
5136 ac_fn_c_check_header_compile "$LINENO" "ar.h" "ac_cv_header_ar_h" "$ac_includes_default"
5137 if test "x$ac_cv_header_ar_h" = xyes
5138 then :
5139 printf "%s\n" "#define HAVE_AR_H 1" >>confdefs.h
5142 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
5143 if test "x$ac_cv_header_err_h" = xyes
5144 then :
5145 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
5148 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
5149 if test "x$ac_cv_header_fcntl_h" = xyes
5150 then :
5151 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
5154 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
5155 if test "x$ac_cv_header_libgen_h" = xyes
5156 then :
5157 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
5160 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5161 if test "x$ac_cv_header_limits_h" = xyes
5162 then :
5163 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
5166 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
5167 if test "x$ac_cv_header_paths_h" = xyes
5168 then :
5169 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
5172 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
5173 if test "x$ac_cv_header_poll_h" = xyes
5174 then :
5175 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
5178 ac_fn_c_check_header_compile "$LINENO" "ranlib.h" "ac_cv_header_ranlib_h" "$ac_includes_default"
5179 if test "x$ac_cv_header_ranlib_h" = xyes
5180 then :
5181 printf "%s\n" "#define HAVE_RANLIB_H 1" >>confdefs.h
5184 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
5185 if test "x$ac_cv_header_sys_mman_h" = xyes
5186 then :
5187 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
5190 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5191 if test "x$ac_cv_header_sys_select_h" = xyes
5192 then :
5193 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
5196 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
5197 if test "x$ac_cv_header_sys_socket_h" = xyes
5198 then :
5199 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
5202 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5203 if test "x$ac_cv_header_sys_time_h" = xyes
5204 then :
5205 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
5208 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
5209 if test "x$ac_cv_header_sys_uio_h" = xyes
5210 then :
5211 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
5214 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
5215 if test "x$ac_cv_header_utime_h" = xyes
5216 then :
5217 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
5222 ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
5223 if test "x$ac_cv_header_sys_cdefs_h" = xyes
5224 then :
5226 else $as_nop
5227 CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`"
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
5233 printf %s "checking for __attribute__... " >&6; }
5234 if test ${ac_cv___attribute__+y}
5235 then :
5236 printf %s "(cached) " >&6
5237 else $as_nop
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5242 #include <stdlib.h>
5244 static void foo(void) __attribute__ ((noreturn));
5246 static void
5247 foo(void)
5249 exit(1);
5253 main(int argc, char **argv)
5255 foo();
5258 _ACEOF
5259 if ac_fn_c_try_link "$LINENO"
5260 then :
5261 ac_cv___attribute__=yes
5262 else $as_nop
5263 ac_cv___attribute__=no
5265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5266 conftest$ac_exeext conftest.$ac_ext
5269 if test "$ac_cv___attribute__" = "yes"; then
5271 printf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
5275 printf "%s\n" "$ac_cv___attribute__" >&6; }
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5278 printf %s "checking whether byte ordering is bigendian... " >&6; }
5279 if test ${ac_cv_c_bigendian+y}
5280 then :
5281 printf %s "(cached) " >&6
5282 else $as_nop
5283 ac_cv_c_bigendian=unknown
5284 # See if we're dealing with a universal compiler.
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #ifndef __APPLE_CC__
5288 not a universal capable compiler
5289 #endif
5290 typedef int dummy;
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"
5294 then :
5296 # Check for potential -arch flags. It is not universal unless
5297 # there are at least two -arch flags with different values.
5298 ac_arch=
5299 ac_prev=
5300 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5301 if test -n "$ac_prev"; then
5302 case $ac_word in
5303 i?86 | x86_64 | ppc | ppc64)
5304 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5305 ac_arch=$ac_word
5306 else
5307 ac_cv_c_bigendian=universal
5308 break
5311 esac
5312 ac_prev=
5313 elif test "x$ac_word" = "x-arch"; then
5314 ac_prev=arch
5316 done
5318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5319 if test $ac_cv_c_bigendian = unknown; then
5320 # See if sys/param.h defines the BYTE_ORDER macro.
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include <sys/types.h>
5324 #include <sys/param.h>
5327 main (void)
5329 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5330 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5331 && LITTLE_ENDIAN)
5332 bogus endian macros
5333 #endif
5336 return 0;
5338 _ACEOF
5339 if ac_fn_c_try_compile "$LINENO"
5340 then :
5341 # It does; now see whether it defined to BIG_ENDIAN or not.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <sys/types.h>
5345 #include <sys/param.h>
5348 main (void)
5350 #if BYTE_ORDER != BIG_ENDIAN
5351 not big endian
5352 #endif
5355 return 0;
5357 _ACEOF
5358 if ac_fn_c_try_compile "$LINENO"
5359 then :
5360 ac_cv_c_bigendian=yes
5361 else $as_nop
5362 ac_cv_c_bigendian=no
5364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5368 if test $ac_cv_c_bigendian = unknown; then
5369 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372 #include <limits.h>
5375 main (void)
5377 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5378 bogus endian macros
5379 #endif
5382 return 0;
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"
5386 then :
5387 # It does; now see whether it defined to _BIG_ENDIAN or not.
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390 #include <limits.h>
5393 main (void)
5395 #ifndef _BIG_ENDIAN
5396 not big endian
5397 #endif
5400 return 0;
5402 _ACEOF
5403 if ac_fn_c_try_compile "$LINENO"
5404 then :
5405 ac_cv_c_bigendian=yes
5406 else $as_nop
5407 ac_cv_c_bigendian=no
5409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5413 if test $ac_cv_c_bigendian = unknown; then
5414 # Compile a test program.
5415 if test "$cross_compiling" = yes
5416 then :
5417 # Try to guess by grepping values from an object file.
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 unsigned short int ascii_mm[] =
5421 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5422 unsigned short int ascii_ii[] =
5423 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5424 int use_ascii (int i) {
5425 return ascii_mm[i] + ascii_ii[i];
5427 unsigned short int ebcdic_ii[] =
5428 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5429 unsigned short int ebcdic_mm[] =
5430 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5431 int use_ebcdic (int i) {
5432 return ebcdic_mm[i] + ebcdic_ii[i];
5434 extern int foo;
5437 main (void)
5439 return use_ascii (foo) == use_ebcdic (foo);
5441 return 0;
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"
5445 then :
5446 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5447 ac_cv_c_bigendian=yes
5449 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5450 if test "$ac_cv_c_bigendian" = unknown; then
5451 ac_cv_c_bigendian=no
5452 else
5453 # finding both strings is unlikely to happen, but who knows?
5454 ac_cv_c_bigendian=unknown
5458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5459 else $as_nop
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 $ac_includes_default
5464 main (void)
5467 /* Are we little or big endian? From Harbison&Steele. */
5468 union
5470 long int l;
5471 char c[sizeof (long int)];
5472 } u;
5473 u.l = 1;
5474 return u.c[sizeof (long int) - 1] == 1;
5477 return 0;
5479 _ACEOF
5480 if ac_fn_c_try_run "$LINENO"
5481 then :
5482 ac_cv_c_bigendian=no
5483 else $as_nop
5484 ac_cv_c_bigendian=yes
5486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5487 conftest.$ac_objext conftest.beam conftest.$ac_ext
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5493 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5494 case $ac_cv_c_bigendian in #(
5495 yes)
5496 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5497 ;; #(
5499 ;; #(
5500 universal)
5502 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5504 ;; #(
5506 as_fn_error $? "unknown endianness
5507 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5508 esac
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5511 printf %s "checking for an ANSI C-conforming const... " >&6; }
5512 if test ${ac_cv_c_const+y}
5513 then :
5514 printf %s "(cached) " >&6
5515 else $as_nop
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5520 main (void)
5523 #ifndef __cplusplus
5524 /* Ultrix mips cc rejects this sort of thing. */
5525 typedef int charset[2];
5526 const charset cs = { 0, 0 };
5527 /* SunOS 4.1.1 cc rejects this. */
5528 char const *const *pcpcc;
5529 char **ppc;
5530 /* NEC SVR4.0.2 mips cc rejects this. */
5531 struct point {int x, y;};
5532 static struct point const zero = {0,0};
5533 /* IBM XL C 1.02.0.0 rejects this.
5534 It does not let you subtract one const X* pointer from another in
5535 an arm of an if-expression whose if-part is not a constant
5536 expression */
5537 const char *g = "string";
5538 pcpcc = &g + (g ? g-g : 0);
5539 /* HPUX 7.0 cc rejects these. */
5540 ++pcpcc;
5541 ppc = (char**) pcpcc;
5542 pcpcc = (char const *const *) ppc;
5543 { /* SCO 3.2v4 cc rejects this sort of thing. */
5544 char tx;
5545 char *t = &tx;
5546 char const *s = 0 ? (char *) 0 : (char const *) 0;
5548 *t++ = 0;
5549 if (s) return 0;
5551 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5552 int x[] = {25, 17};
5553 const int *foo = &x[0];
5554 ++foo;
5556 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5557 typedef const int *iptr;
5558 iptr p = 0;
5559 ++p;
5561 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5562 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5563 struct s { int j; const int *ap[3]; } bx;
5564 struct s *b = &bx; b->j = 5;
5566 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5567 const int foo = 10;
5568 if (!foo) return 0;
5570 return !cs[0] && !zero.x;
5571 #endif
5574 return 0;
5576 _ACEOF
5577 if ac_fn_c_try_compile "$LINENO"
5578 then :
5579 ac_cv_c_const=yes
5580 else $as_nop
5581 ac_cv_c_const=no
5583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5586 printf "%s\n" "$ac_cv_c_const" >&6; }
5587 if test $ac_cv_c_const = no; then
5589 printf "%s\n" "#define const /**/" >>confdefs.h
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5594 printf %s "checking for inline... " >&6; }
5595 if test ${ac_cv_c_inline+y}
5596 then :
5597 printf %s "(cached) " >&6
5598 else $as_nop
5599 ac_cv_c_inline=no
5600 for ac_kw in inline __inline__ __inline; do
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #ifndef __cplusplus
5604 typedef int foo_t;
5605 static $ac_kw foo_t static_foo (void) {return 0; }
5606 $ac_kw foo_t foo (void) {return 0; }
5607 #endif
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"
5611 then :
5612 ac_cv_c_inline=$ac_kw
5614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5615 test "$ac_cv_c_inline" != no && break
5616 done
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5620 printf "%s\n" "$ac_cv_c_inline" >&6; }
5622 case $ac_cv_c_inline in
5623 inline | yes) ;;
5625 case $ac_cv_c_inline in
5626 no) ac_val=;;
5627 *) ac_val=$ac_cv_c_inline;;
5628 esac
5629 cat >>confdefs.h <<_ACEOF
5630 #ifndef __cplusplus
5631 #define inline $ac_val
5632 #endif
5633 _ACEOF
5635 esac
5637 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5638 case $ac_cv_c_int64_t in #(
5639 no|yes) ;; #(
5642 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
5644 esac
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5648 printf %s "checking for unsigned long long int... " >&6; }
5649 if test ${ac_cv_type_unsigned_long_long_int+y}
5650 then :
5651 printf %s "(cached) " >&6
5652 else $as_nop
5653 ac_cv_type_unsigned_long_long_int=yes
5654 case $ac_prog_cc_stdc in
5655 no | c89) ;;
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5660 /* For now, do not test the preprocessor; as of 2007 there are too many
5661 implementations with broken preprocessors. Perhaps this can
5662 be revisited in 2012. In the meantime, code should not expect
5663 #if to work with literals wider than 32 bits. */
5664 /* Test literals. */
5665 long long int ll = 9223372036854775807ll;
5666 long long int nll = -9223372036854775807LL;
5667 unsigned long long int ull = 18446744073709551615ULL;
5668 /* Test constant expressions. */
5669 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5670 ? 1 : -1)];
5671 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5672 ? 1 : -1)];
5673 int i = 63;
5675 main (void)
5677 /* Test availability of runtime routines for shift and division. */
5678 long long int llmax = 9223372036854775807ll;
5679 unsigned long long int ullmax = 18446744073709551615ull;
5680 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5681 | (llmax / ll) | (llmax % ll)
5682 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5683 | (ullmax / ull) | (ullmax % ull));
5685 return 0;
5688 _ACEOF
5689 if ac_fn_c_try_link "$LINENO"
5690 then :
5692 else $as_nop
5693 ac_cv_type_unsigned_long_long_int=no
5695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5696 conftest$ac_exeext conftest.$ac_ext;;
5697 esac
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5700 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
5701 if test $ac_cv_type_unsigned_long_long_int = yes; then
5703 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5710 printf %s "checking for long long int... " >&6; }
5711 if test ${ac_cv_type_long_long_int+y}
5712 then :
5713 printf %s "(cached) " >&6
5714 else $as_nop
5715 ac_cv_type_long_long_int=yes
5716 case $ac_prog_cc_stdc in
5717 no | c89) ;;
5719 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5720 if test $ac_cv_type_long_long_int = yes; then
5721 if test "$cross_compiling" = yes
5722 then :
5724 else $as_nop
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <limits.h>
5728 #ifndef LLONG_MAX
5729 # define HALF \
5730 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5731 # define LLONG_MAX (HALF - 1 + HALF)
5732 #endif
5734 main (void)
5736 long long int n = 1;
5737 int i;
5738 for (i = 0; ; i++)
5740 long long int m = n << i;
5741 if (m >> i != n)
5742 return 1;
5743 if (LLONG_MAX / 2 < m)
5744 break;
5746 return 0;
5748 return 0;
5750 _ACEOF
5751 if ac_fn_c_try_run "$LINENO"
5752 then :
5754 else $as_nop
5755 ac_cv_type_long_long_int=no
5757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5758 conftest.$ac_objext conftest.beam conftest.$ac_ext
5761 fi;;
5762 esac
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5765 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
5766 if test $ac_cv_type_long_long_int = yes; then
5768 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5772 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5773 if test "x$ac_cv_type_mode_t" = xyes
5774 then :
5776 else $as_nop
5778 printf "%s\n" "#define mode_t int" >>confdefs.h
5782 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5783 if test "x$ac_cv_type_off_t" = xyes
5784 then :
5786 else $as_nop
5788 printf "%s\n" "#define off_t long int" >>confdefs.h
5793 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
5795 if test "x$ac_cv_type_pid_t" = xyes
5796 then :
5798 else $as_nop
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5802 #if defined _WIN64 && !defined __CYGWIN__
5803 LLP64
5804 #endif
5807 main (void)
5811 return 0;
5814 _ACEOF
5815 if ac_fn_c_try_compile "$LINENO"
5816 then :
5817 ac_pid_type='int'
5818 else $as_nop
5819 ac_pid_type='__int64'
5821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5823 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
5829 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5830 if test "x$ac_cv_type_size_t" = xyes
5831 then :
5833 else $as_nop
5835 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5839 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5840 case $ac_cv_c_uint32_t in #(
5841 no|yes) ;; #(
5844 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
5847 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
5849 esac
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5852 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5853 if test ${ac_cv_c_undeclared_builtin_options+y}
5854 then :
5855 printf %s "(cached) " >&6
5856 else $as_nop
5857 ac_save_CFLAGS=$CFLAGS
5858 ac_cv_c_undeclared_builtin_options='cannot detect'
5859 for ac_arg in '' -fno-builtin; do
5860 CFLAGS="$ac_save_CFLAGS $ac_arg"
5861 # This test program should *not* compile successfully.
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5866 main (void)
5868 (void) strchr;
5870 return 0;
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"
5874 then :
5876 else $as_nop
5877 # This test program should compile successfully.
5878 # No library function is consistently available on
5879 # freestanding implementations, so test against a dummy
5880 # declaration. Include always-available headers on the
5881 # off chance that they somehow elicit warnings.
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 #include <float.h>
5885 #include <limits.h>
5886 #include <stdarg.h>
5887 #include <stddef.h>
5888 extern void ac_decl (int, char *);
5891 main (void)
5893 (void) ac_decl (0, (char *) 0);
5894 (void) ac_decl;
5897 return 0;
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"
5901 then :
5902 if test x"$ac_arg" = x
5903 then :
5904 ac_cv_c_undeclared_builtin_options='none needed'
5905 else $as_nop
5906 ac_cv_c_undeclared_builtin_options=$ac_arg
5908 break
5910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5913 done
5914 CFLAGS=$ac_save_CFLAGS
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5918 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5919 case $ac_cv_c_undeclared_builtin_options in #(
5920 'cannot detect') :
5921 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5922 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5923 as_fn_error $? "cannot make $CC report undeclared builtins
5924 See \`config.log' for more details" "$LINENO" 5; } ;; #(
5925 'none needed') :
5926 ac_c_undeclared_builtin_options='' ;; #(
5927 *) :
5928 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5929 esac
5931 ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5932 /* NetBSD declares sys_siglist in unistd.h. */
5933 #ifdef HAVE_UNISTD_H
5934 # include <unistd.h>
5935 #endif
5937 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5938 if test "x$ac_cv_have_decl_sys_siglist" = xyes
5939 then :
5940 ac_have_decl=1
5941 else $as_nop
5942 ac_have_decl=0
5944 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5951 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5952 if test ${ac_cv_struct_tm+y}
5953 then :
5954 printf %s "(cached) " >&6
5955 else $as_nop
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5958 #include <sys/types.h>
5959 #include <time.h>
5962 main (void)
5964 struct tm tm;
5965 int *p = &tm.tm_sec;
5966 return !p;
5968 return 0;
5970 _ACEOF
5971 if ac_fn_c_try_compile "$LINENO"
5972 then :
5973 ac_cv_struct_tm=time.h
5974 else $as_nop
5975 ac_cv_struct_tm=sys/time.h
5977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5980 printf "%s\n" "$ac_cv_struct_tm" >&6; }
5981 if test $ac_cv_struct_tm = sys/time.h; then
5983 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
5989 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
5990 #ifdef HAVE_SYS_TYPES_H
5991 #include <sys/types.h>
5992 #endif
5993 #include <signal.h>
5996 if test "x$ac_cv_type_sig_atomic_t" = xyes
5997 then :
5999 printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
6006 ac_func=
6007 for ac_item in $ac_func_c_list
6009 if test $ac_func; then
6010 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
6011 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
6012 echo "#define $ac_item 1" >> confdefs.h
6014 ac_func=
6015 else
6016 ac_func=$ac_item
6018 done
6022 if test "x$ac_cv_func_fork" = xyes; then
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6024 printf %s "checking for working fork... " >&6; }
6025 if test ${ac_cv_func_fork_works+y}
6026 then :
6027 printf %s "(cached) " >&6
6028 else $as_nop
6029 if test "$cross_compiling" = yes
6030 then :
6031 ac_cv_func_fork_works=cross
6032 else $as_nop
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 $ac_includes_default
6037 main (void)
6040 /* By Ruediger Kuhlmann. */
6041 return fork () < 0;
6044 return 0;
6046 _ACEOF
6047 if ac_fn_c_try_run "$LINENO"
6048 then :
6049 ac_cv_func_fork_works=yes
6050 else $as_nop
6051 ac_cv_func_fork_works=no
6053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6054 conftest.$ac_objext conftest.beam conftest.$ac_ext
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6059 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
6061 else
6062 ac_cv_func_fork_works=$ac_cv_func_fork
6064 if test "x$ac_cv_func_fork_works" = xcross; then
6065 case $host in
6066 *-*-amigaos* | *-*-msdosdjgpp*)
6067 # Override, as these systems have only a dummy fork() stub
6068 ac_cv_func_fork_works=no
6071 ac_cv_func_fork_works=yes
6073 esac
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6075 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6077 ac_cv_func_vfork_works=$ac_cv_func_vfork
6078 if test "x$ac_cv_func_vfork" = xyes; then
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6080 printf %s "checking for working vfork... " >&6; }
6081 if test ${ac_cv_func_vfork_works+y}
6082 then :
6083 printf %s "(cached) " >&6
6084 else $as_nop
6085 if test "$cross_compiling" = yes
6086 then :
6087 ac_cv_func_vfork_works=cross
6088 else $as_nop
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 /* Thanks to Paul Eggert for this test. */
6092 $ac_includes_default
6093 #include <signal.h>
6094 #include <sys/wait.h>
6095 #ifdef HAVE_VFORK_H
6096 # include <vfork.h>
6097 #endif
6099 static void
6100 do_nothing (int sig)
6102 (void) sig;
6105 /* On some sparc systems, changes by the child to local and incoming
6106 argument registers are propagated back to the parent. The compiler
6107 is told about this with #include <vfork.h>, but some compilers
6108 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6109 static variable whose address is put into a register that is
6110 clobbered by the vfork. */
6111 static void
6112 sparc_address_test (int arg)
6114 static pid_t child;
6115 if (!child) {
6116 child = vfork ();
6117 if (child < 0) {
6118 perror ("vfork");
6119 _exit(2);
6121 if (!child) {
6122 arg = getpid();
6123 write(-1, "", 0);
6124 _exit (arg);
6130 main (void)
6132 pid_t parent = getpid ();
6133 pid_t child;
6135 sparc_address_test (0);
6137 /* On Solaris 2.4, changes by the child to the signal handler
6138 also munge signal handlers in the parent. To detect this,
6139 start by putting the parent's handler in a known state. */
6140 signal (SIGTERM, SIG_DFL);
6142 child = vfork ();
6144 if (child == 0) {
6145 /* Here is another test for sparc vfork register problems. This
6146 test uses lots of local variables, at least as many local
6147 variables as main has allocated so far including compiler
6148 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6149 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6150 reuse the register of parent for one of the local variables,
6151 since it will think that parent can't possibly be used any more
6152 in this routine. Assigning to the local variable will thus
6153 munge parent in the parent process. */
6154 pid_t
6155 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6156 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6157 /* Convince the compiler that p..p7 are live; otherwise, it might
6158 use the same hardware register for all 8 local variables. */
6159 if (p != p1 || p != p2 || p != p3 || p != p4
6160 || p != p5 || p != p6 || p != p7)
6161 _exit(1);
6163 /* Alter the child's signal handler. */
6164 if (signal (SIGTERM, do_nothing) != SIG_DFL)
6165 _exit(1);
6167 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6168 from child file descriptors. If the child closes a descriptor
6169 before it execs or exits, this munges the parent's descriptor
6170 as well. Test for this by closing stdout in the child. */
6171 _exit(close(fileno(stdout)) != 0);
6172 } else {
6173 int status;
6174 struct stat st;
6176 while (wait(&status) != child)
6178 return (
6179 /* Was there some problem with vforking? */
6180 child < 0
6182 /* Did the child munge the parent's signal handler? */
6183 || signal (SIGTERM, SIG_DFL) != SIG_DFL
6185 /* Did the child fail? (This shouldn't happen.) */
6186 || status
6188 /* Did the vfork/compiler bug occur? */
6189 || parent != getpid()
6191 /* Did the file descriptor bug occur? */
6192 || fstat(fileno(stdout), &st) != 0
6196 _ACEOF
6197 if ac_fn_c_try_run "$LINENO"
6198 then :
6199 ac_cv_func_vfork_works=yes
6200 else $as_nop
6201 ac_cv_func_vfork_works=no
6203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6204 conftest.$ac_objext conftest.beam conftest.$ac_ext
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6209 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
6212 if test "x$ac_cv_func_fork_works" = xcross; then
6213 ac_cv_func_vfork_works=$ac_cv_func_vfork
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6215 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6218 if test "x$ac_cv_func_vfork_works" = xyes; then
6220 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6222 else
6224 printf "%s\n" "#define vfork fork" >>confdefs.h
6227 if test "x$ac_cv_func_fork_works" = xyes; then
6229 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
6235 if test "x$ac_cv_func_vprintf" = xno
6236 then :
6237 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6238 if test "x$ac_cv_func__doprnt" = xyes
6239 then :
6241 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
6247 printf %s "checking for wait3 that fills in rusage... " >&6; }
6248 if test ${ac_cv_func_wait3_rusage+y}
6249 then :
6250 printf %s "(cached) " >&6
6251 else $as_nop
6252 if test "$cross_compiling" = yes
6253 then :
6254 ac_cv_func_wait3_rusage=no
6255 else $as_nop
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258 $ac_includes_default
6259 #include <sys/time.h>
6260 #include <sys/resource.h>
6261 #include <sys/wait.h>
6262 /* HP-UX has wait3 but does not fill in rusage at all. */
6264 main (void)
6266 struct rusage r;
6267 int i;
6268 /* Use a field that we can force nonzero --
6269 voluntary context switches.
6270 For systems like NeXT and OSF/1 that don't set it,
6271 also use the system CPU time. And page faults (I/O) for Linux. */
6272 r.ru_nvcsw = 0;
6273 r.ru_stime.tv_sec = 0;
6274 r.ru_stime.tv_usec = 0;
6275 r.ru_majflt = r.ru_minflt = 0;
6276 switch (fork ())
6278 case 0: /* Child. */
6279 sleep(1); /* Give up the CPU. */
6280 _exit(0);
6281 break;
6282 case -1: /* What can we do? */
6283 _exit(0);
6284 break;
6285 default: /* Parent. */
6286 wait3(&i, 0, &r);
6287 /* Avoid "text file busy" from rm on fast HP-UX machines. */
6288 sleep(2);
6289 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
6290 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
6293 _ACEOF
6294 if ac_fn_c_try_run "$LINENO"
6295 then :
6296 ac_cv_func_wait3_rusage=yes
6297 else $as_nop
6298 ac_cv_func_wait3_rusage=no
6300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6301 conftest.$ac_objext conftest.beam conftest.$ac_ext
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
6306 printf "%s\n" "$ac_cv_func_wait3_rusage" >&6; }
6307 if test $ac_cv_func_wait3_rusage = yes; then
6309 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
6313 ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
6314 if test "x$ac_cv_func_err" = xyes
6315 then :
6316 printf "%s\n" "#define HAVE_ERR 1" >>confdefs.h
6319 ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
6320 if test "x$ac_cv_func_errx" = xyes
6321 then :
6322 printf "%s\n" "#define HAVE_ERRX 1" >>confdefs.h
6325 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
6326 if test "x$ac_cv_func_getcwd" = xyes
6327 then :
6328 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
6331 ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
6332 if test "x$ac_cv_func_getenv" = xyes
6333 then :
6334 printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
6337 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
6338 if test "x$ac_cv_func_getwd" = xyes
6339 then :
6340 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
6343 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
6344 if test "x$ac_cv_func_killpg" = xyes
6345 then :
6346 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
6349 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
6350 if test "x$ac_cv_func_mmap" = xyes
6351 then :
6352 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
6355 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
6356 if test "x$ac_cv_func_putenv" = xyes
6357 then :
6358 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
6361 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
6362 if test "x$ac_cv_func_select" = xyes
6363 then :
6364 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
6367 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
6368 if test "x$ac_cv_func_setenv" = xyes
6369 then :
6370 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
6373 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
6374 if test "x$ac_cv_func_setpgid" = xyes
6375 then :
6376 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
6379 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
6380 if test "x$ac_cv_func_setrlimit" = xyes
6381 then :
6382 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
6385 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
6386 if test "x$ac_cv_func_setsid" = xyes
6387 then :
6388 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
6391 ac_fn_c_check_func "$LINENO" "sigaddset" "ac_cv_func_sigaddset"
6392 if test "x$ac_cv_func_sigaddset" = xyes
6393 then :
6394 printf "%s\n" "#define HAVE_SIGADDSET 1" >>confdefs.h
6397 ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending"
6398 if test "x$ac_cv_func_sigpending" = xyes
6399 then :
6400 printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h
6403 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
6404 if test "x$ac_cv_func_sigprocmask" = xyes
6405 then :
6406 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
6409 ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask"
6410 if test "x$ac_cv_func_sigsetmask" = xyes
6411 then :
6412 printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h
6415 ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
6416 if test "x$ac_cv_func_sigsuspend" = xyes
6417 then :
6418 printf "%s\n" "#define HAVE_SIGSUSPEND 1" >>confdefs.h
6421 ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
6422 if test "x$ac_cv_func_sigvec" = xyes
6423 then :
6424 printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h
6427 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
6428 if test "x$ac_cv_func_snprintf" = xyes
6429 then :
6430 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
6433 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
6434 if test "x$ac_cv_func_strerror" = xyes
6435 then :
6436 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
6439 ac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
6440 if test "x$ac_cv_func_stresep" = xyes
6441 then :
6442 printf "%s\n" "#define HAVE_STRESEP 1" >>confdefs.h
6445 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
6446 if test "x$ac_cv_func_strftime" = xyes
6447 then :
6448 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
6451 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
6452 if test "x$ac_cv_func_strsep" = xyes
6453 then :
6454 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
6457 ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
6458 if test "x$ac_cv_func_strtod" = xyes
6459 then :
6460 printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
6463 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
6464 if test "x$ac_cv_func_strtol" = xyes
6465 then :
6466 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
6469 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
6470 if test "x$ac_cv_func_strtoll" = xyes
6471 then :
6472 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
6475 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
6476 if test "x$ac_cv_func_strtoul" = xyes
6477 then :
6478 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
6481 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
6482 if test "x$ac_cv_func_sysctl" = xyes
6483 then :
6484 printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h
6487 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6488 if test "x$ac_cv_func_unsetenv" = xyes
6489 then :
6490 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
6493 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6494 if test "x$ac_cv_func_vsnprintf" = xyes
6495 then :
6496 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
6499 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
6500 if test "x$ac_cv_func_wait3" = xyes
6501 then :
6502 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
6505 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
6506 if test "x$ac_cv_func_wait4" = xyes
6507 then :
6508 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
6511 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
6512 if test "x$ac_cv_func_waitpid" = xyes
6513 then :
6514 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
6517 ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
6518 if test "x$ac_cv_func_warn" = xyes
6519 then :
6520 printf "%s\n" "#define HAVE_WARN 1" >>confdefs.h
6523 ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
6524 if test "x$ac_cv_func_warnx" = xyes
6525 then :
6526 printf "%s\n" "#define HAVE_WARNX 1" >>confdefs.h
6531 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6532 if test "x$ac_cv_func_getopt" = xyes
6533 then :
6534 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
6536 else $as_nop
6537 case " $LIBOBJS " in
6538 *" getopt.$ac_objext "* ) ;;
6539 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
6541 esac
6544 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
6545 if test "x$ac_cv_func_realpath" = xyes
6546 then :
6547 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
6549 else $as_nop
6550 case " $LIBOBJS " in
6551 *" realpath.$ac_objext "* ) ;;
6552 *) LIBOBJS="$LIBOBJS realpath.$ac_objext"
6554 esac
6557 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
6558 if test "x$ac_cv_func_dirname" = xyes
6559 then :
6560 printf "%s\n" "#define HAVE_DIRNAME 1" >>confdefs.h
6562 else $as_nop
6563 case " $LIBOBJS " in
6564 *" dirname.$ac_objext "* ) ;;
6565 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
6567 esac
6570 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
6571 if test "x$ac_cv_func_sigaction" = xyes
6572 then :
6573 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
6575 else $as_nop
6576 case " $LIBOBJS " in
6577 *" sigaction.$ac_objext "* ) ;;
6578 *) LIBOBJS="$LIBOBJS sigaction.$ac_objext"
6580 esac
6583 ac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
6584 if test "x$ac_cv_func_stresep" = xyes
6585 then :
6586 printf "%s\n" "#define HAVE_STRESEP 1" >>confdefs.h
6588 else $as_nop
6589 case " $LIBOBJS " in
6590 *" stresep.$ac_objext "* ) ;;
6591 *) LIBOBJS="$LIBOBJS stresep.$ac_objext"
6593 esac
6596 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6597 if test "x$ac_cv_func_strlcpy" = xyes
6598 then :
6599 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
6601 else $as_nop
6602 case " $LIBOBJS " in
6603 *" strlcpy.$ac_objext "* ) ;;
6604 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
6606 esac
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
6612 printf %s "checking for emalloc in -lutil... " >&6; }
6613 if test ${ac_cv_lib_util_emalloc+y}
6614 then :
6615 printf %s "(cached) " >&6
6616 else $as_nop
6617 ac_check_lib_save_LIBS=$LIBS
6618 LIBS="-lutil $LIBS"
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6622 /* Override any GCC internal prototype to avoid an error.
6623 Use char because int might match the return type of a GCC
6624 builtin and then its argument prototype would still apply. */
6625 char emalloc ();
6627 main (void)
6629 return emalloc ();
6631 return 0;
6633 _ACEOF
6634 if ac_fn_c_try_link "$LINENO"
6635 then :
6636 ac_cv_lib_util_emalloc=yes
6637 else $as_nop
6638 ac_cv_lib_util_emalloc=no
6640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6641 conftest$ac_exeext conftest.$ac_ext
6642 LIBS=$ac_check_lib_save_LIBS
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
6645 printf "%s\n" "$ac_cv_lib_util_emalloc" >&6; }
6646 if test "x$ac_cv_lib_util_emalloc" = xyes
6647 then :
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
6649 printf %s "checking for erealloc in -lutil... " >&6; }
6650 if test ${ac_cv_lib_util_erealloc+y}
6651 then :
6652 printf %s "(cached) " >&6
6653 else $as_nop
6654 ac_check_lib_save_LIBS=$LIBS
6655 LIBS="-lutil $LIBS"
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6659 /* Override any GCC internal prototype to avoid an error.
6660 Use char because int might match the return type of a GCC
6661 builtin and then its argument prototype would still apply. */
6662 char erealloc ();
6664 main (void)
6666 return erealloc ();
6668 return 0;
6670 _ACEOF
6671 if ac_fn_c_try_link "$LINENO"
6672 then :
6673 ac_cv_lib_util_erealloc=yes
6674 else $as_nop
6675 ac_cv_lib_util_erealloc=no
6677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6678 conftest$ac_exeext conftest.$ac_ext
6679 LIBS=$ac_check_lib_save_LIBS
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
6682 printf "%s\n" "$ac_cv_lib_util_erealloc" >&6; }
6683 if test "x$ac_cv_lib_util_erealloc" = xyes
6684 then :
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
6686 printf %s "checking for estrdup in -lutil... " >&6; }
6687 if test ${ac_cv_lib_util_estrdup+y}
6688 then :
6689 printf %s "(cached) " >&6
6690 else $as_nop
6691 ac_check_lib_save_LIBS=$LIBS
6692 LIBS="-lutil $LIBS"
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6696 /* Override any GCC internal prototype to avoid an error.
6697 Use char because int might match the return type of a GCC
6698 builtin and then its argument prototype would still apply. */
6699 char estrdup ();
6701 main (void)
6703 return estrdup ();
6705 return 0;
6707 _ACEOF
6708 if ac_fn_c_try_link "$LINENO"
6709 then :
6710 ac_cv_lib_util_estrdup=yes
6711 else $as_nop
6712 ac_cv_lib_util_estrdup=no
6714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6715 conftest$ac_exeext conftest.$ac_ext
6716 LIBS=$ac_check_lib_save_LIBS
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
6719 printf "%s\n" "$ac_cv_lib_util_estrdup" >&6; }
6720 if test "x$ac_cv_lib_util_estrdup" = xyes
6721 then :
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
6723 printf %s "checking for estrndup in -lutil... " >&6; }
6724 if test ${ac_cv_lib_util_estrndup+y}
6725 then :
6726 printf %s "(cached) " >&6
6727 else $as_nop
6728 ac_check_lib_save_LIBS=$LIBS
6729 LIBS="-lutil $LIBS"
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6733 /* Override any GCC internal prototype to avoid an error.
6734 Use char because int might match the return type of a GCC
6735 builtin and then its argument prototype would still apply. */
6736 char estrndup ();
6738 main (void)
6740 return estrndup ();
6742 return 0;
6744 _ACEOF
6745 if ac_fn_c_try_link "$LINENO"
6746 then :
6747 ac_cv_lib_util_estrndup=yes
6748 else $as_nop
6749 ac_cv_lib_util_estrndup=no
6751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6752 conftest$ac_exeext conftest.$ac_ext
6753 LIBS=$ac_check_lib_save_LIBS
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
6756 printf "%s\n" "$ac_cv_lib_util_estrndup" >&6; }
6757 if test "x$ac_cv_lib_util_estrndup" = xyes
6758 then :
6759 LIBS="$LIBS -lutil"
6760 CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6771 printf %s "checking whether stat file-mode macros are broken... " >&6; }
6772 if test ${ac_cv_header_stat_broken+y}
6773 then :
6774 printf %s "(cached) " >&6
6775 else $as_nop
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 #include <sys/types.h>
6779 #include <sys/stat.h>
6781 #if defined S_ISBLK && defined S_IFDIR
6782 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6783 #endif
6785 #if defined S_ISBLK && defined S_IFCHR
6786 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6787 #endif
6789 #if defined S_ISLNK && defined S_IFREG
6790 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6791 #endif
6793 #if defined S_ISSOCK && defined S_IFREG
6794 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6795 #endif
6797 _ACEOF
6798 if ac_fn_c_try_compile "$LINENO"
6799 then :
6800 ac_cv_header_stat_broken=no
6801 else $as_nop
6802 ac_cv_header_stat_broken=yes
6804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6807 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
6808 if test $ac_cv_header_stat_broken = yes; then
6810 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6814 echo "checking if compiler supports __func__" >&6
6815 ac_ext=c
6816 ac_cpp='$CPP $CPPFLAGS'
6817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6825 main (void)
6827 const char *func = __func__;
6829 return 0;
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"
6833 then :
6835 else $as_nop
6837 printf "%s\n" "#define __func__ __FUNCTION__" >>confdefs.h
6840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6841 if test -x /usr/gnu/bin/diff; then
6842 diff=/usr/gnu/bin/diff
6843 diff_u=-u
6844 else
6845 diff=${diff:-diff}
6846 echo $ECHO_N "checking if $diff -u works... $ECHO_C" >&6
6847 if $diff -u /dev/null /dev/null > /dev/null 2>&1; then
6848 diff_u=-u
6849 echo yes >&6
6850 else
6851 diff_u=
6852 echo no >&6
6855 echo "checking for MACHINE & MACHINE_ARCH..." >&6
6856 cat > conftest.$ac_ext <<EOF
6857 #include "confdefs.h"
6858 #include <sys/param.h>
6859 #ifdef MACHINE
6860 machine=MACHINE
6861 #endif
6862 #ifdef MACHINE_ARCH
6863 machine_arch=MACHINE_ARCH
6864 #endif
6867 default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868 grep machine= | tr -d ' "'`
6869 rm -rf conftest*
6870 if test "$default_machine"; then
6871 eval "$default_machine"
6873 machine=${machine:-`$srcdir/machine.sh`}
6874 machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
6875 echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
6877 # Check whether --with-machine was given.
6878 if test ${with_machine+y}
6879 then :
6880 withval=$with_machine; case "${withval}" in
6881 yes) as_fn_error $? "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
6882 no) ;;
6883 generic) machine=`$srcdir/machine.sh`;;
6884 *) machine=$with_machine;;
6885 esac
6888 force_machine=
6890 # Check whether --with-force_machine was given.
6891 if test ${with_force_machine+y}
6892 then :
6893 withval=$with_force_machine; case "${withval}" in
6894 yes) force_machine=FORCE_;;
6895 no) ;;
6896 *) force_machine=FORCE_; machine=$with_force_machine;;
6897 esac
6900 force_machine_arch=
6902 # Check whether --with-force_machine_arch was given.
6903 if test ${with_force_machine_arch+y}
6904 then :
6905 withval=$with_force_machine_arch; case "${withval}" in
6906 yes) force_machine_arch=FORCE_;;
6907 no) ;;
6908 *) force_machine_arch=FORCE_; machine_arch=$with_force_machine_arch;;
6909 esac
6913 # Check whether --with-machine_arch was given.
6914 if test ${with_machine_arch+y}
6915 then :
6916 withval=$with_machine_arch; case "${withval}" in
6917 yes) as_fn_error $? "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
6918 no) ;;
6919 *) machine_arch=$with_machine_arch;;
6920 esac
6923 echo "Using: ${force_machine}MACHINE=$machine, ${force_machine_arch}MACHINE_ARCH=$machine_arch" 1>&6
6924 default_sys_path=\${prefix}/share/mk
6926 # Check whether --with-default-sys-path was given.
6927 if test ${with_default_sys_path+y}
6928 then :
6929 withval=$with_default_sys_path; case "${withval}" in
6930 yes) as_fn_error $? "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
6931 no) ;;
6932 *) default_sys_path="$with_default_sys_path"
6934 esac
6938 # Check whether --with-path-objdirprefix was given.
6939 if test ${with_path_objdirprefix+y}
6940 then :
6941 withval=$with_path_objdirprefix; case "${withval}" in
6942 yes) as_fn_error $? "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
6943 no) CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
6944 *) CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
6945 esac
6948 # Check whether --enable-pwd-override was given.
6949 if test ${enable_pwd_override+y}
6950 then :
6951 enableval=$enable_pwd_override; case "${enableval}" in
6952 yes) ;;
6953 no) CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
6954 *) as_fn_error $? "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
6955 esac
6958 # Check whether --enable-check-make-chdir was given.
6959 if test ${enable_check_make_chdir+y}
6960 then :
6961 enableval=$enable_check_make_chdir; case "${enableval}" in
6962 yes) ;;
6963 no) CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
6964 *) as_fn_error $? "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
6965 esac
6969 # Check whether --with-mksrc was given.
6970 if test ${with_mksrc+y}
6971 then :
6972 withval=$with_mksrc; case "${withval}" in
6973 ""|yes|no) ;;
6974 *) test -s $withval/install-mk && mksrc=$withval ||
6975 as_fn_error $? "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
6977 esac
6981 srcdir=`cd $srcdir && pwd`
6982 for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
6984 test -s $mksrc/install-mk || continue
6985 mksrc=`cd $mksrc && pwd`
6986 break
6987 done
6988 mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
6989 echo "Using: MKSRC=$mksrc" 1>&6
6990 for sh in /usr/xpg4/bin/sh $ALT_DEF_SHELLS
6992 test -x $sh || continue
6993 use_defshell $sh
6994 break
6995 done
6996 case "$defshell_path$DEFSHELL_INDEX" in
6997 "") ;;
6998 *DEFSHELL_INDEX_CUSTOM)
6999 echo "Using: SHELL=$defshell_path" >&6
7001 printf "%s\n" "#define DEFSHELL_CUSTOM \"$defshell_path\"" >>confdefs.h
7004 /*INDEX*)
7005 echo "Using: SHELL=$DEFSHELL_INDEX ($defshell_path)" | sed 's,DEFSHELL_INDEX_,,' >&6
7007 printf "%s\n" "#define DEFSHELL_INDEX $DEFSHELL_INDEX" >>confdefs.h
7010 printf "%s\n" "#define DEFSHELL_PATH \"$defshell_path\"" >>confdefs.h
7014 echo "Using: SHELL=$DEFSHELL_INDEX" | sed 's,DEFSHELL_INDEX_,,' >&6
7016 printf "%s\n" "#define DEFSHELL_INDEX $DEFSHELL_INDEX" >>confdefs.h
7019 esac
7020 case "`echo bmake | egrep 'a|b' 2>&1`" in
7021 bmake) egrep=egrep;;
7022 *) egrep='grep -E';;
7023 esac
7040 bm_outfiles="Makefile.config unit-tests/Makefile.config make-bootstrap.sh"
7041 if test $use_makefile = yes; then
7042 bm_outfiles="makefile $bm_outfiles"
7045 here=`'pwd'`
7046 : srcdir=$srcdir
7047 : here= $here
7048 case "$here" in
7049 $srcdir/obj*) # make sure we put unit-tests/Makefile.config in the right place
7050 obj=`basename $here`
7051 mkdir -p $srcdir/unit-tests/$obj
7052 test -d unit-tests || ln -s ../unit-tests/$obj unit-tests
7054 esac
7056 ac_config_files="$ac_config_files $bm_outfiles"
7058 cat >confcache <<\_ACEOF
7059 # This file is a shell script that caches the results of configure
7060 # tests run on this system so they can be shared between configure
7061 # scripts and configure runs, see configure's option --config-cache.
7062 # It is not useful on other systems. If it contains results you don't
7063 # want to keep, you may remove or edit it.
7065 # config.status only pays attention to the cache file if you give it
7066 # the --recheck option to rerun configure.
7068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7070 # following values.
7072 _ACEOF
7074 # The following way of writing the cache mishandles newlines in values,
7075 # but we know of no workaround that is simple, portable, and efficient.
7076 # So, we kill variables containing newlines.
7077 # Ultrix sh set writes to stderr and can't be redirected directly,
7078 # and sets the high bit in the cache file unless we assign to the vars.
7080 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7081 eval ac_val=\$$ac_var
7082 case $ac_val in #(
7083 *${as_nl}*)
7084 case $ac_var in #(
7085 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7086 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7087 esac
7088 case $ac_var in #(
7089 _ | IFS | as_nl) ;; #(
7090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7091 *) { eval $ac_var=; unset $ac_var;} ;;
7092 esac ;;
7093 esac
7094 done
7096 (set) 2>&1 |
7097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7098 *${as_nl}ac_space=\ *)
7099 # `set' does not quote correctly, so add quotes: double-quote
7100 # substitution turns \\\\ into \\, and sed turns \\ into \.
7101 sed -n \
7102 "s/'/'\\\\''/g;
7103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7104 ;; #(
7106 # `set' quotes correctly as required by POSIX, so do not add quotes.
7107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7109 esac |
7110 sort
7112 sed '
7113 /^ac_cv_env_/b end
7114 t clear
7115 :clear
7116 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7117 t end
7118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7119 :end' >>confcache
7120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7121 if test -w "$cache_file"; then
7122 if test "x$cache_file" != "x/dev/null"; then
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7124 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7125 if test ! -f "$cache_file" || test -h "$cache_file"; then
7126 cat confcache >"$cache_file"
7127 else
7128 case $cache_file in #(
7129 */* | ?:*)
7130 mv -f confcache "$cache_file"$$ &&
7131 mv -f "$cache_file"$$ "$cache_file" ;; #(
7133 mv -f confcache "$cache_file" ;;
7134 esac
7137 else
7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7139 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7142 rm -f confcache
7144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7145 # Let make expand exec_prefix.
7146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7148 DEFS=-DHAVE_CONFIG_H
7150 ac_libobjs=
7151 ac_ltlibobjs=
7153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7154 # 1. Remove the extension, and $U if already installed.
7155 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7156 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7157 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7158 # will be set to the directory where LIBOBJS objects are built.
7159 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7160 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7161 done
7162 LIBOBJS=$ac_libobjs
7164 LTLIBOBJS=$ac_ltlibobjs
7169 : "${CONFIG_STATUS=./config.status}"
7170 ac_write_fail=0
7171 ac_clean_files_save=$ac_clean_files
7172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7174 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7175 as_write_fail=0
7176 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7177 #! $SHELL
7178 # Generated by $as_me.
7179 # Run this file to recreate the current configuration.
7180 # Compiler output produced by configure, useful for debugging
7181 # configure, is in config.log if it exists.
7183 debug=false
7184 ac_cs_recheck=false
7185 ac_cs_silent=false
7187 SHELL=\${CONFIG_SHELL-$SHELL}
7188 export SHELL
7189 _ASEOF
7190 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7191 ## -------------------- ##
7192 ## M4sh Initialization. ##
7193 ## -------------------- ##
7195 # Be more Bourne compatible
7196 DUALCASE=1; export DUALCASE # for MKS sh
7197 as_nop=:
7198 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7199 then :
7200 emulate sh
7201 NULLCMD=:
7202 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7203 # is contrary to our usage. Disable this feature.
7204 alias -g '${1+"$@"}'='"$@"'
7205 setopt NO_GLOB_SUBST
7206 else $as_nop
7207 case `(set -o) 2>/dev/null` in #(
7208 *posix*) :
7209 set -o posix ;; #(
7210 *) :
7212 esac
7217 # Reset variables that may have inherited troublesome values from
7218 # the environment.
7220 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7221 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7222 # side effect of setting IFS to empty, thus disabling word splitting.)
7223 # Quoting is to prevent editors from complaining about space-tab.
7224 as_nl='
7226 export as_nl
7227 IFS=" "" $as_nl"
7229 PS1='$ '
7230 PS2='> '
7231 PS4='+ '
7233 # Ensure predictable behavior from utilities with locale-dependent output.
7234 LC_ALL=C
7235 export LC_ALL
7236 LANGUAGE=C
7237 export LANGUAGE
7239 # We cannot yet rely on "unset" to work, but we need these variables
7240 # to be unset--not just set to an empty or harmless value--now, to
7241 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7242 # also avoids known problems related to "unset" and subshell syntax
7243 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7244 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7245 do eval test \${$as_var+y} \
7246 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7247 done
7249 # Ensure that fds 0, 1, and 2 are open.
7250 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7251 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7252 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7254 # The user is always right.
7255 if ${PATH_SEPARATOR+false} :; then
7256 PATH_SEPARATOR=:
7257 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7258 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7259 PATH_SEPARATOR=';'
7264 # Find who we are. Look in the path if we contain no directory separator.
7265 as_myself=
7266 case $0 in #((
7267 *[\\/]* ) as_myself=$0 ;;
7268 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7271 IFS=$as_save_IFS
7272 case $as_dir in #(((
7273 '') as_dir=./ ;;
7274 */) ;;
7275 *) as_dir=$as_dir/ ;;
7276 esac
7277 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7278 done
7279 IFS=$as_save_IFS
7282 esac
7283 # We did not find ourselves, most probably we were run as `sh COMMAND'
7284 # in which case we are not to be found in the path.
7285 if test "x$as_myself" = x; then
7286 as_myself=$0
7288 if test ! -f "$as_myself"; then
7289 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7290 exit 1
7295 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7296 # ----------------------------------------
7297 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7298 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7299 # script with STATUS, using 1 if that was 0.
7300 as_fn_error ()
7302 as_status=$1; test $as_status -eq 0 && as_status=1
7303 if test "$4"; then
7304 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7307 printf "%s\n" "$as_me: error: $2" >&2
7308 as_fn_exit $as_status
7309 } # as_fn_error
7313 # as_fn_set_status STATUS
7314 # -----------------------
7315 # Set $? to STATUS, without forking.
7316 as_fn_set_status ()
7318 return $1
7319 } # as_fn_set_status
7321 # as_fn_exit STATUS
7322 # -----------------
7323 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7324 as_fn_exit ()
7326 set +e
7327 as_fn_set_status $1
7328 exit $1
7329 } # as_fn_exit
7331 # as_fn_unset VAR
7332 # ---------------
7333 # Portably unset VAR.
7334 as_fn_unset ()
7336 { eval $1=; unset $1;}
7338 as_unset=as_fn_unset
7340 # as_fn_append VAR VALUE
7341 # ----------------------
7342 # Append the text in VALUE to the end of the definition contained in VAR. Take
7343 # advantage of any shell optimizations that allow amortized linear growth over
7344 # repeated appends, instead of the typical quadratic growth present in naive
7345 # implementations.
7346 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7347 then :
7348 eval 'as_fn_append ()
7350 eval $1+=\$2
7352 else $as_nop
7353 as_fn_append ()
7355 eval $1=\$$1\$2
7357 fi # as_fn_append
7359 # as_fn_arith ARG...
7360 # ------------------
7361 # Perform arithmetic evaluation on the ARGs, and store the result in the
7362 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7363 # must be portable across $(()) and expr.
7364 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7365 then :
7366 eval 'as_fn_arith ()
7368 as_val=$(( $* ))
7370 else $as_nop
7371 as_fn_arith ()
7373 as_val=`expr "$@" || test $? -eq 1`
7375 fi # as_fn_arith
7378 if expr a : '\(a\)' >/dev/null 2>&1 &&
7379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7380 as_expr=expr
7381 else
7382 as_expr=false
7385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7386 as_basename=basename
7387 else
7388 as_basename=false
7391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7392 as_dirname=dirname
7393 else
7394 as_dirname=false
7397 as_me=`$as_basename -- "$0" ||
7398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7399 X"$0" : 'X\(//\)$' \| \
7400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7401 printf "%s\n" X/"$0" |
7402 sed '/^.*\/\([^/][^/]*\)\/*$/{
7403 s//\1/
7406 /^X\/\(\/\/\)$/{
7407 s//\1/
7410 /^X\/\(\/\).*/{
7411 s//\1/
7414 s/.*/./; q'`
7416 # Avoid depending upon Character Ranges.
7417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7420 as_cr_digits='0123456789'
7421 as_cr_alnum=$as_cr_Letters$as_cr_digits
7424 # Determine whether it's possible to make 'echo' print without a newline.
7425 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7426 # for compatibility with existing Makefiles.
7427 ECHO_C= ECHO_N= ECHO_T=
7428 case `echo -n x` in #(((((
7429 -n*)
7430 case `echo 'xy\c'` in
7431 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7432 xy) ECHO_C='\c';;
7433 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7434 ECHO_T=' ';;
7435 esac;;
7437 ECHO_N='-n';;
7438 esac
7440 # For backward compatibility with old third-party macros, we provide
7441 # the shell variables $as_echo and $as_echo_n. New code should use
7442 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7443 as_echo='printf %s\n'
7444 as_echo_n='printf %s'
7446 rm -f conf$$ conf$$.exe conf$$.file
7447 if test -d conf$$.dir; then
7448 rm -f conf$$.dir/conf$$.file
7449 else
7450 rm -f conf$$.dir
7451 mkdir conf$$.dir 2>/dev/null
7453 if (echo >conf$$.file) 2>/dev/null; then
7454 if ln -s conf$$.file conf$$ 2>/dev/null; then
7455 as_ln_s='ln -s'
7456 # ... but there are two gotchas:
7457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7459 # In both cases, we have to default to `cp -pR'.
7460 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7461 as_ln_s='cp -pR'
7462 elif ln conf$$.file conf$$ 2>/dev/null; then
7463 as_ln_s=ln
7464 else
7465 as_ln_s='cp -pR'
7467 else
7468 as_ln_s='cp -pR'
7470 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7471 rmdir conf$$.dir 2>/dev/null
7474 # as_fn_mkdir_p
7475 # -------------
7476 # Create "$as_dir" as a directory, including parents if necessary.
7477 as_fn_mkdir_p ()
7480 case $as_dir in #(
7481 -*) as_dir=./$as_dir;;
7482 esac
7483 test -d "$as_dir" || eval $as_mkdir_p || {
7484 as_dirs=
7485 while :; do
7486 case $as_dir in #(
7487 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7488 *) as_qdir=$as_dir;;
7489 esac
7490 as_dirs="'$as_qdir' $as_dirs"
7491 as_dir=`$as_dirname -- "$as_dir" ||
7492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7493 X"$as_dir" : 'X\(//\)[^/]' \| \
7494 X"$as_dir" : 'X\(//\)$' \| \
7495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7496 printf "%s\n" X"$as_dir" |
7497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7498 s//\1/
7501 /^X\(\/\/\)[^/].*/{
7502 s//\1/
7505 /^X\(\/\/\)$/{
7506 s//\1/
7509 /^X\(\/\).*/{
7510 s//\1/
7513 s/.*/./; q'`
7514 test -d "$as_dir" && break
7515 done
7516 test -z "$as_dirs" || eval "mkdir $as_dirs"
7517 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7520 } # as_fn_mkdir_p
7521 if mkdir -p . 2>/dev/null; then
7522 as_mkdir_p='mkdir -p "$as_dir"'
7523 else
7524 test -d ./-p && rmdir ./-p
7525 as_mkdir_p=false
7529 # as_fn_executable_p FILE
7530 # -----------------------
7531 # Test if FILE is an executable regular file.
7532 as_fn_executable_p ()
7534 test -f "$1" && test -x "$1"
7535 } # as_fn_executable_p
7536 as_test_x='test -x'
7537 as_executable_p=as_fn_executable_p
7539 # Sed expression to map a string onto a valid CPP name.
7540 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7542 # Sed expression to map a string onto a valid variable name.
7543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7546 exec 6>&1
7547 ## ----------------------------------- ##
7548 ## Main body of $CONFIG_STATUS script. ##
7549 ## ----------------------------------- ##
7550 _ASEOF
7551 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7554 # Save the log message, to keep $0 and so on meaningful, and to
7555 # report actual input values of CONFIG_FILES etc. instead of their
7556 # values after options handling.
7557 ac_log="
7558 This file was extended by bmake $as_me 20220909, which was
7559 generated by GNU Autoconf 2.71. Invocation command line was
7561 CONFIG_FILES = $CONFIG_FILES
7562 CONFIG_HEADERS = $CONFIG_HEADERS
7563 CONFIG_LINKS = $CONFIG_LINKS
7564 CONFIG_COMMANDS = $CONFIG_COMMANDS
7565 $ $0 $@
7567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7570 _ACEOF
7572 case $ac_config_files in *"
7573 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7574 esac
7576 case $ac_config_headers in *"
7577 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7578 esac
7581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7582 # Files that config.status was made for.
7583 config_files="$ac_config_files"
7584 config_headers="$ac_config_headers"
7586 _ACEOF
7588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7589 ac_cs_usage="\
7590 \`$as_me' instantiates files and other configuration actions
7591 from templates according to the current configuration. Unless the files
7592 and actions are specified as TAGs, all are instantiated by default.
7594 Usage: $0 [OPTION]... [TAG]...
7596 -h, --help print this help, then exit
7597 -V, --version print version number and configuration settings, then exit
7598 --config print configuration, then exit
7599 -q, --quiet, --silent
7600 do not print progress messages
7601 -d, --debug don't remove temporary files
7602 --recheck update $as_me by reconfiguring in the same conditions
7603 --file=FILE[:TEMPLATE]
7604 instantiate the configuration file FILE
7605 --header=FILE[:TEMPLATE]
7606 instantiate the configuration header FILE
7608 Configuration files:
7609 $config_files
7611 Configuration headers:
7612 $config_headers
7614 Report bugs to <sjg@NetBSD.org>."
7616 _ACEOF
7617 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7618 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7620 ac_cs_config='$ac_cs_config_escaped'
7621 ac_cs_version="\\
7622 bmake config.status 20220909
7623 configured by $0, generated by GNU Autoconf 2.71,
7624 with options \\"\$ac_cs_config\\"
7626 Copyright (C) 2021 Free Software Foundation, Inc.
7627 This config.status script is free software; the Free Software Foundation
7628 gives unlimited permission to copy, distribute and modify it."
7630 ac_pwd='$ac_pwd'
7631 srcdir='$srcdir'
7632 INSTALL='$INSTALL'
7633 test -n "\$AWK" || AWK=awk
7634 _ACEOF
7636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7637 # The default lists apply if the user does not specify any file.
7638 ac_need_defaults=:
7639 while test $# != 0
7641 case $1 in
7642 --*=?*)
7643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7644 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7645 ac_shift=:
7647 --*=)
7648 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7649 ac_optarg=
7650 ac_shift=:
7653 ac_option=$1
7654 ac_optarg=$2
7655 ac_shift=shift
7657 esac
7659 case $ac_option in
7660 # Handling of the options.
7661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7662 ac_cs_recheck=: ;;
7663 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7664 printf "%s\n" "$ac_cs_version"; exit ;;
7665 --config | --confi | --conf | --con | --co | --c )
7666 printf "%s\n" "$ac_cs_config"; exit ;;
7667 --debug | --debu | --deb | --de | --d | -d )
7668 debug=: ;;
7669 --file | --fil | --fi | --f )
7670 $ac_shift
7671 case $ac_optarg in
7672 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7673 '') as_fn_error $? "missing file argument" ;;
7674 esac
7675 as_fn_append CONFIG_FILES " '$ac_optarg'"
7676 ac_need_defaults=false;;
7677 --header | --heade | --head | --hea )
7678 $ac_shift
7679 case $ac_optarg in
7680 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7681 esac
7682 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7683 ac_need_defaults=false;;
7684 --he | --h)
7685 # Conflict between --help and --header
7686 as_fn_error $? "ambiguous option: \`$1'
7687 Try \`$0 --help' for more information.";;
7688 --help | --hel | -h )
7689 printf "%s\n" "$ac_cs_usage"; exit ;;
7690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7691 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7692 ac_cs_silent=: ;;
7694 # This is an error.
7695 -*) as_fn_error $? "unrecognized option: \`$1'
7696 Try \`$0 --help' for more information." ;;
7698 *) as_fn_append ac_config_targets " $1"
7699 ac_need_defaults=false ;;
7701 esac
7702 shift
7703 done
7705 ac_configure_extra_args=
7707 if $ac_cs_silent; then
7708 exec 6>/dev/null
7709 ac_configure_extra_args="$ac_configure_extra_args --silent"
7712 _ACEOF
7713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7714 if \$ac_cs_recheck; then
7715 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7716 shift
7717 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7718 CONFIG_SHELL='$SHELL'
7719 export CONFIG_SHELL
7720 exec "\$@"
7723 _ACEOF
7724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7725 exec 5>>config.log
7727 echo
7728 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7729 ## Running $as_me. ##
7730 _ASBOX
7731 printf "%s\n" "$ac_log"
7732 } >&5
7734 _ACEOF
7735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7736 _ACEOF
7738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7740 # Handling of arguments.
7741 for ac_config_target in $ac_config_targets
7743 case $ac_config_target in
7744 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7745 "$bm_outfiles") CONFIG_FILES="$CONFIG_FILES $bm_outfiles" ;;
7747 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7748 esac
7749 done
7752 # If the user did not use the arguments to specify the items to instantiate,
7753 # then the envvar interface is used. Set only those that are not.
7754 # We use the long form for the default assignment because of an extremely
7755 # bizarre bug on SunOS 4.1.3.
7756 if $ac_need_defaults; then
7757 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7758 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7761 # Have a temporary directory for convenience. Make it in the build tree
7762 # simply because there is no reason against having it here, and in addition,
7763 # creating and moving files from /tmp can sometimes cause problems.
7764 # Hook for its removal unless debugging.
7765 # Note that there is a small window in which the directory will not be cleaned:
7766 # after its creation but before its name has been assigned to `$tmp'.
7767 $debug ||
7769 tmp= ac_tmp=
7770 trap 'exit_status=$?
7771 : "${ac_tmp:=$tmp}"
7772 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7774 trap 'as_fn_exit 1' 1 2 13 15
7776 # Create a (secure) tmp directory for tmp files.
7779 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7780 test -d "$tmp"
7781 } ||
7783 tmp=./conf$$-$RANDOM
7784 (umask 077 && mkdir "$tmp")
7785 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7786 ac_tmp=$tmp
7788 # Set up the scripts for CONFIG_FILES section.
7789 # No need to generate them if there are no CONFIG_FILES.
7790 # This happens for instance with `./config.status config.h'.
7791 if test -n "$CONFIG_FILES"; then
7794 ac_cr=`echo X | tr X '\015'`
7795 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7796 # But we know of no other shell where ac_cr would be empty at this
7797 # point, so we can use a bashism as a fallback.
7798 if test "x$ac_cr" = x; then
7799 eval ac_cr=\$\'\\r\'
7801 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7802 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7803 ac_cs_awk_cr='\\r'
7804 else
7805 ac_cs_awk_cr=$ac_cr
7808 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7809 _ACEOF
7813 echo "cat >conf$$subs.awk <<_ACEOF" &&
7814 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7815 echo "_ACEOF"
7816 } >conf$$subs.sh ||
7817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7818 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7819 ac_delim='%!_!# '
7820 for ac_last_try in false false false false false :; do
7821 . ./conf$$subs.sh ||
7822 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7824 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7825 if test $ac_delim_n = $ac_delim_num; then
7826 break
7827 elif $ac_last_try; then
7828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7829 else
7830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7832 done
7833 rm -f conf$$subs.sh
7835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7836 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7837 _ACEOF
7838 sed -n '
7840 s/^/S["/; s/!.*/"]=/
7843 s/^[^!]*!//
7844 :repl
7845 t repl
7846 s/'"$ac_delim"'$//
7847 t delim
7850 s/\(.\{148\}\)..*/\1/
7851 t more1
7852 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7855 b repl
7856 :more1
7857 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7860 s/.\{148\}//
7861 t nl
7862 :delim
7864 s/\(.\{148\}\)..*/\1/
7865 t more2
7866 s/["\\]/\\&/g; s/^/"/; s/$/"/
7869 :more2
7870 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7873 s/.\{148\}//
7874 t delim
7875 ' <conf$$subs.awk | sed '
7876 /^[^""]/{
7878 s/\n//
7880 ' >>$CONFIG_STATUS || ac_write_fail=1
7881 rm -f conf$$subs.awk
7882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7883 _ACAWK
7884 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7885 for (key in S) S_is_set[key] = 1
7886 FS = "\a"
7890 line = $ 0
7891 nfields = split(line, field, "@")
7892 substed = 0
7893 len = length(field[1])
7894 for (i = 2; i < nfields; i++) {
7895 key = field[i]
7896 keylen = length(key)
7897 if (S_is_set[key]) {
7898 value = S[key]
7899 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7900 len += length(value) + length(field[++i])
7901 substed = 1
7902 } else
7903 len += 1 + keylen
7906 print line
7909 _ACAWK
7910 _ACEOF
7911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7912 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7913 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7914 else
7916 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7917 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7918 _ACEOF
7920 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7921 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7922 # trailing colons and then remove the whole line if VPATH becomes empty
7923 # (actually we leave an empty line to preserve line numbers).
7924 if test "x$srcdir" = x.; then
7925 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7927 s///
7928 s/^/:/
7929 s/[ ]*$/:/
7930 s/:\$(srcdir):/:/g
7931 s/:\${srcdir}:/:/g
7932 s/:@srcdir@:/:/g
7933 s/^:*//
7934 s/:*$//
7936 s/\(=[ ]*\).*/\1/
7938 s/\n//
7939 s/^[^=]*=[ ]*$//
7943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7944 fi # test -n "$CONFIG_FILES"
7946 # Set up the scripts for CONFIG_HEADERS section.
7947 # No need to generate them if there are no CONFIG_HEADERS.
7948 # This happens for instance with `./config.status Makefile'.
7949 if test -n "$CONFIG_HEADERS"; then
7950 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7951 BEGIN {
7952 _ACEOF
7954 # Transform confdefs.h into an awk script `defines.awk', embedded as
7955 # here-document in config.status, that substitutes the proper values into
7956 # config.h.in to produce config.h.
7958 # Create a delimiter string that does not exist in confdefs.h, to ease
7959 # handling of long lines.
7960 ac_delim='%!_!# '
7961 for ac_last_try in false false :; do
7962 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7963 if test -z "$ac_tt"; then
7964 break
7965 elif $ac_last_try; then
7966 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7967 else
7968 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7970 done
7972 # For the awk script, D is an array of macro values keyed by name,
7973 # likewise P contains macro parameters if any. Preserve backslash
7974 # newline sequences.
7976 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7977 sed -n '
7978 s/.\{148\}/&'"$ac_delim"'/g
7979 t rset
7980 :rset
7981 s/^[ ]*#[ ]*define[ ][ ]*/ /
7982 t def
7984 :def
7985 s/\\$//
7986 t bsnl
7987 s/["\\]/\\&/g
7988 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7989 D["\1"]=" \3"/p
7990 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7992 :bsnl
7993 s/["\\]/\\&/g
7994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7995 D["\1"]=" \3\\\\\\n"\\/p
7996 t cont
7997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7998 t cont
8000 :cont
8002 s/.\{148\}/&'"$ac_delim"'/g
8003 t clear
8004 :clear
8005 s/\\$//
8006 t bsnlc
8007 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8009 :bsnlc
8010 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8011 b cont
8012 ' <confdefs.h | sed '
8013 s/'"$ac_delim"'/"\\\
8014 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8017 for (key in D) D_is_set[key] = 1
8018 FS = "\a"
8020 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8021 line = \$ 0
8022 split(line, arg, " ")
8023 if (arg[1] == "#") {
8024 defundef = arg[2]
8025 mac1 = arg[3]
8026 } else {
8027 defundef = substr(arg[1], 2)
8028 mac1 = arg[2]
8030 split(mac1, mac2, "(") #)
8031 macro = mac2[1]
8032 prefix = substr(line, 1, index(line, defundef) - 1)
8033 if (D_is_set[macro]) {
8034 # Preserve the white space surrounding the "#".
8035 print prefix "define", macro P[macro] D[macro]
8036 next
8037 } else {
8038 # Replace #undef with comments. This is necessary, for example,
8039 # in the case of _POSIX_SOURCE, which is predefined and required
8040 # on some systems where configure will not decide to define it.
8041 if (defundef == "undef") {
8042 print "/*", prefix defundef, macro, "*/"
8043 next
8047 { print }
8048 _ACAWK
8049 _ACEOF
8050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8051 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8052 fi # test -n "$CONFIG_HEADERS"
8055 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8056 shift
8057 for ac_tag
8059 case $ac_tag in
8060 :[FHLC]) ac_mode=$ac_tag; continue;;
8061 esac
8062 case $ac_mode$ac_tag in
8063 :[FHL]*:*);;
8064 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8065 :[FH]-) ac_tag=-:-;;
8066 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8067 esac
8068 ac_save_IFS=$IFS
8069 IFS=:
8070 set x $ac_tag
8071 IFS=$ac_save_IFS
8072 shift
8073 ac_file=$1
8074 shift
8076 case $ac_mode in
8077 :L) ac_source=$1;;
8078 :[FH])
8079 ac_file_inputs=
8080 for ac_f
8082 case $ac_f in
8083 -) ac_f="$ac_tmp/stdin";;
8084 *) # Look for the file first in the build tree, then in the source tree
8085 # (if the path is not absolute). The absolute path cannot be DOS-style,
8086 # because $ac_f cannot contain `:'.
8087 test -f "$ac_f" ||
8088 case $ac_f in
8089 [\\/$]*) false;;
8090 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8091 esac ||
8092 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8093 esac
8094 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8095 as_fn_append ac_file_inputs " '$ac_f'"
8096 done
8098 # Let's still pretend it is `configure' which instantiates (i.e., don't
8099 # use $as_me), people would be surprised to read:
8100 # /* config.h. Generated by config.status. */
8101 configure_input='Generated from '`
8102 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8103 `' by configure.'
8104 if test x"$ac_file" != x-; then
8105 configure_input="$ac_file. $configure_input"
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8107 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8109 # Neutralize special characters interpreted by sed in replacement strings.
8110 case $configure_input in #(
8111 *\&* | *\|* | *\\* )
8112 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8113 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8114 *) ac_sed_conf_input=$configure_input;;
8115 esac
8117 case $ac_tag in
8118 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8120 esac
8122 esac
8124 ac_dir=`$as_dirname -- "$ac_file" ||
8125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8126 X"$ac_file" : 'X\(//\)[^/]' \| \
8127 X"$ac_file" : 'X\(//\)$' \| \
8128 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8129 printf "%s\n" X"$ac_file" |
8130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8131 s//\1/
8134 /^X\(\/\/\)[^/].*/{
8135 s//\1/
8138 /^X\(\/\/\)$/{
8139 s//\1/
8142 /^X\(\/\).*/{
8143 s//\1/
8146 s/.*/./; q'`
8147 as_dir="$ac_dir"; as_fn_mkdir_p
8148 ac_builddir=.
8150 case "$ac_dir" in
8151 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8153 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8154 # A ".." for each directory in $ac_dir_suffix.
8155 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8156 case $ac_top_builddir_sub in
8157 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8158 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8159 esac ;;
8160 esac
8161 ac_abs_top_builddir=$ac_pwd
8162 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8163 # for backward compatibility:
8164 ac_top_builddir=$ac_top_build_prefix
8166 case $srcdir in
8167 .) # We are building in place.
8168 ac_srcdir=.
8169 ac_top_srcdir=$ac_top_builddir_sub
8170 ac_abs_top_srcdir=$ac_pwd ;;
8171 [\\/]* | ?:[\\/]* ) # Absolute name.
8172 ac_srcdir=$srcdir$ac_dir_suffix;
8173 ac_top_srcdir=$srcdir
8174 ac_abs_top_srcdir=$srcdir ;;
8175 *) # Relative name.
8176 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8177 ac_top_srcdir=$ac_top_build_prefix$srcdir
8178 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8179 esac
8180 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8183 case $ac_mode in
8186 # CONFIG_FILE
8189 case $INSTALL in
8190 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8191 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8192 esac
8193 _ACEOF
8195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8196 # If the template does not know about datarootdir, expand it.
8197 # FIXME: This hack should be removed a few years after 2.60.
8198 ac_datarootdir_hack=; ac_datarootdir_seen=
8199 ac_sed_dataroot='
8200 /datarootdir/ {
8204 /@datadir@/p
8205 /@docdir@/p
8206 /@infodir@/p
8207 /@localedir@/p
8208 /@mandir@/p'
8209 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8210 *datarootdir*) ac_datarootdir_seen=yes;;
8211 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8213 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8214 _ACEOF
8215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8216 ac_datarootdir_hack='
8217 s&@datadir@&$datadir&g
8218 s&@docdir@&$docdir&g
8219 s&@infodir@&$infodir&g
8220 s&@localedir@&$localedir&g
8221 s&@mandir@&$mandir&g
8222 s&\\\${datarootdir}&$datarootdir&g' ;;
8223 esac
8224 _ACEOF
8226 # Neutralize VPATH when `$srcdir' = `.'.
8227 # Shell code in configure.ac might set extrasub.
8228 # FIXME: do we really want to maintain this feature?
8229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8230 ac_sed_extra="$ac_vpsub
8231 $extrasub
8232 _ACEOF
8233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8236 s|@configure_input@|$ac_sed_conf_input|;t t
8237 s&@top_builddir@&$ac_top_builddir_sub&;t t
8238 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8239 s&@srcdir@&$ac_srcdir&;t t
8240 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8241 s&@top_srcdir@&$ac_top_srcdir&;t t
8242 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8243 s&@builddir@&$ac_builddir&;t t
8244 s&@abs_builddir@&$ac_abs_builddir&;t t
8245 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8246 s&@INSTALL@&$ac_INSTALL&;t t
8247 $ac_datarootdir_hack
8249 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8250 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8252 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8253 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8254 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8255 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8257 which seems to be undefined. Please make sure it is defined" >&5
8258 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8259 which seems to be undefined. Please make sure it is defined" >&2;}
8261 rm -f "$ac_tmp/stdin"
8262 case $ac_file in
8263 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8264 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8265 esac \
8266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8270 # CONFIG_HEADER
8272 if test x"$ac_file" != x-; then
8274 printf "%s\n" "/* $configure_input */" >&1 \
8275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8276 } >"$ac_tmp/config.h" \
8277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8278 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8280 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8281 else
8282 rm -f "$ac_file"
8283 mv "$ac_tmp/config.h" "$ac_file" \
8284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8286 else
8287 printf "%s\n" "/* $configure_input */" >&1 \
8288 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8289 || as_fn_error $? "could not create -" "$LINENO" 5
8294 esac
8296 done # for ac_tag
8299 as_fn_exit 0
8300 _ACEOF
8301 ac_clean_files=$ac_clean_files_save
8303 test $ac_write_fail = 0 ||
8304 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8307 # configure is writing to config.log, and then calls config.status.
8308 # config.status does its own redirection, appending to config.log.
8309 # Unfortunately, on DOS this fails, as config.log is still kept open
8310 # by configure, so config.status won't be able to write to it; its
8311 # output is simply discarded. So we exec the FD to /dev/null,
8312 # effectively closing config.log, so it can be properly (re)opened and
8313 # appended to by config.status. When coming back to configure, we
8314 # need to make the FD available again.
8315 if test "$no_create" != yes; then
8316 ac_cs_success=:
8317 ac_config_status_args=
8318 test "$silent" = yes &&
8319 ac_config_status_args="$ac_config_status_args --quiet"
8320 exec 5>/dev/null
8321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8322 exec 5>>config.log
8323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8324 # would make configure fail if this is the last instruction.
8325 $ac_cs_success || as_fn_exit 1
8327 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8329 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8332 cat <<EOF
8334 You can now run
8336 sh ./make-bootstrap.sh
8338 to produce a fully functional bmake.