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