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