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