xref: /freebsd/contrib/bmake/configure (revision 1f4bcc459a76b7aa664f3fd557684cd0ba6da352)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for bmake 20151022.
4#
5# Report bugs to <sjg@NetBSD.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
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='20151022'
553PACKAGE_STRING='bmake 20151022'
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 20151022 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 20151022:";;
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 20151022
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 20151022, 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" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5059if test "x$ac_cv_type_off_t" = x""yes; then :
5060
5061else
5062
5063cat >>confdefs.h <<_ACEOF
5064#define off_t long int
5065_ACEOF
5066
5067fi
5068
5069ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5070if test "x$ac_cv_type_pid_t" = x""yes; then :
5071
5072else
5073
5074cat >>confdefs.h <<_ACEOF
5075#define pid_t int
5076_ACEOF
5077
5078fi
5079
5080ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5081if test "x$ac_cv_type_size_t" = x""yes; then :
5082
5083else
5084
5085cat >>confdefs.h <<_ACEOF
5086#define size_t unsigned int
5087_ACEOF
5088
5089fi
5090
5091ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5092case $ac_cv_c_uint32_t in #(
5093  no|yes) ;; #(
5094  *)
5095
5096$as_echo "#define _UINT32_T 1" >>confdefs.h
5097
5098
5099cat >>confdefs.h <<_ACEOF
5100#define uint32_t $ac_cv_c_uint32_t
5101_ACEOF
5102;;
5103  esac
5104
5105ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5106/* NetBSD declares sys_siglist in unistd.h.  */
5107#ifdef HAVE_UNISTD_H
5108# include <unistd.h>
5109#endif
5110
5111"
5112if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
5113  ac_have_decl=1
5114else
5115  ac_have_decl=0
5116fi
5117
5118cat >>confdefs.h <<_ACEOF
5119#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
5120_ACEOF
5121
5122
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5124$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5125if test "${ac_cv_header_time+set}" = set; then :
5126  $as_echo_n "(cached) " >&6
5127else
5128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h.  */
5130#include <sys/types.h>
5131#include <sys/time.h>
5132#include <time.h>
5133
5134int
5135main ()
5136{
5137if ((struct tm *) 0)
5138return 0;
5139  ;
5140  return 0;
5141}
5142_ACEOF
5143if ac_fn_c_try_compile "$LINENO"; then :
5144  ac_cv_header_time=yes
5145else
5146  ac_cv_header_time=no
5147fi
5148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149fi
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5151$as_echo "$ac_cv_header_time" >&6; }
5152if test $ac_cv_header_time = yes; then
5153
5154$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5155
5156fi
5157
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5159$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5160if test "${ac_cv_struct_tm+set}" = set; then :
5161  $as_echo_n "(cached) " >&6
5162else
5163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164/* end confdefs.h.  */
5165#include <sys/types.h>
5166#include <time.h>
5167
5168int
5169main ()
5170{
5171struct tm tm;
5172				     int *p = &tm.tm_sec;
5173				     return !p;
5174  ;
5175  return 0;
5176}
5177_ACEOF
5178if ac_fn_c_try_compile "$LINENO"; then :
5179  ac_cv_struct_tm=time.h
5180else
5181  ac_cv_struct_tm=sys/time.h
5182fi
5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184fi
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5186$as_echo "$ac_cv_struct_tm" >&6; }
5187if test $ac_cv_struct_tm = sys/time.h; then
5188
5189$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5190
5191fi
5192
5193
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5195$as_echo_n "checking return type of signal handlers... " >&6; }
5196if test "${ac_cv_type_signal+set}" = set; then :
5197  $as_echo_n "(cached) " >&6
5198else
5199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h.  */
5201#include <sys/types.h>
5202#include <signal.h>
5203
5204int
5205main ()
5206{
5207return *(signal (0, 0)) (0) == 1;
5208  ;
5209  return 0;
5210}
5211_ACEOF
5212if ac_fn_c_try_compile "$LINENO"; then :
5213  ac_cv_type_signal=int
5214else
5215  ac_cv_type_signal=void
5216fi
5217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218fi
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5220$as_echo "$ac_cv_type_signal" >&6; }
5221
5222cat >>confdefs.h <<_ACEOF
5223#define RETSIGTYPE $ac_cv_type_signal
5224_ACEOF
5225
5226
5227for ac_header in vfork.h
5228do :
5229  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5230if test "x$ac_cv_header_vfork_h" = x""yes; then :
5231  cat >>confdefs.h <<_ACEOF
5232#define HAVE_VFORK_H 1
5233_ACEOF
5234
5235fi
5236
5237done
5238
5239for ac_func in fork vfork
5240do :
5241  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5242ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5243eval as_val=\$$as_ac_var
5244   if test "x$as_val" = x""yes; then :
5245  cat >>confdefs.h <<_ACEOF
5246#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5247_ACEOF
5248
5249fi
5250done
5251
5252if test "x$ac_cv_func_fork" = xyes; then
5253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5254$as_echo_n "checking for working fork... " >&6; }
5255if test "${ac_cv_func_fork_works+set}" = set; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258  if test "$cross_compiling" = yes; then :
5259  ac_cv_func_fork_works=cross
5260else
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263$ac_includes_default
5264int
5265main ()
5266{
5267
5268	  /* By Ruediger Kuhlmann. */
5269	  return fork () < 0;
5270
5271  ;
5272  return 0;
5273}
5274_ACEOF
5275if ac_fn_c_try_run "$LINENO"; then :
5276  ac_cv_func_fork_works=yes
5277else
5278  ac_cv_func_fork_works=no
5279fi
5280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5281  conftest.$ac_objext conftest.beam conftest.$ac_ext
5282fi
5283
5284fi
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5286$as_echo "$ac_cv_func_fork_works" >&6; }
5287
5288else
5289  ac_cv_func_fork_works=$ac_cv_func_fork
5290fi
5291if test "x$ac_cv_func_fork_works" = xcross; then
5292  case $host in
5293    *-*-amigaos* | *-*-msdosdjgpp*)
5294      # Override, as these systems have only a dummy fork() stub
5295      ac_cv_func_fork_works=no
5296      ;;
5297    *)
5298      ac_cv_func_fork_works=yes
5299      ;;
5300  esac
5301  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5302$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5303fi
5304ac_cv_func_vfork_works=$ac_cv_func_vfork
5305if test "x$ac_cv_func_vfork" = xyes; then
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5307$as_echo_n "checking for working vfork... " >&6; }
5308if test "${ac_cv_func_vfork_works+set}" = set; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  if test "$cross_compiling" = yes; then :
5312  ac_cv_func_vfork_works=cross
5313else
5314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h.  */
5316/* Thanks to Paul Eggert for this test.  */
5317$ac_includes_default
5318#include <sys/wait.h>
5319#ifdef HAVE_VFORK_H
5320# include <vfork.h>
5321#endif
5322/* On some sparc systems, changes by the child to local and incoming
5323   argument registers are propagated back to the parent.  The compiler
5324   is told about this with #include <vfork.h>, but some compilers
5325   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5326   static variable whose address is put into a register that is
5327   clobbered by the vfork.  */
5328static void
5329#ifdef __cplusplus
5330sparc_address_test (int arg)
5331# else
5332sparc_address_test (arg) int arg;
5333#endif
5334{
5335  static pid_t child;
5336  if (!child) {
5337    child = vfork ();
5338    if (child < 0) {
5339      perror ("vfork");
5340      _exit(2);
5341    }
5342    if (!child) {
5343      arg = getpid();
5344      write(-1, "", 0);
5345      _exit (arg);
5346    }
5347  }
5348}
5349
5350int
5351main ()
5352{
5353  pid_t parent = getpid ();
5354  pid_t child;
5355
5356  sparc_address_test (0);
5357
5358  child = vfork ();
5359
5360  if (child == 0) {
5361    /* Here is another test for sparc vfork register problems.  This
5362       test uses lots of local variables, at least as many local
5363       variables as main has allocated so far including compiler
5364       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5365       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5366       reuse the register of parent for one of the local variables,
5367       since it will think that parent can't possibly be used any more
5368       in this routine.  Assigning to the local variable will thus
5369       munge parent in the parent process.  */
5370    pid_t
5371      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5372      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5373    /* Convince the compiler that p..p7 are live; otherwise, it might
5374       use the same hardware register for all 8 local variables.  */
5375    if (p != p1 || p != p2 || p != p3 || p != p4
5376	|| p != p5 || p != p6 || p != p7)
5377      _exit(1);
5378
5379    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5380       from child file descriptors.  If the child closes a descriptor
5381       before it execs or exits, this munges the parent's descriptor
5382       as well.  Test for this by closing stdout in the child.  */
5383    _exit(close(fileno(stdout)) != 0);
5384  } else {
5385    int status;
5386    struct stat st;
5387
5388    while (wait(&status) != child)
5389      ;
5390    return (
5391	 /* Was there some problem with vforking?  */
5392	 child < 0
5393
5394	 /* Did the child fail?  (This shouldn't happen.)  */
5395	 || status
5396
5397	 /* Did the vfork/compiler bug occur?  */
5398	 || parent != getpid()
5399
5400	 /* Did the file descriptor bug occur?  */
5401	 || fstat(fileno(stdout), &st) != 0
5402	 );
5403  }
5404}
5405_ACEOF
5406if ac_fn_c_try_run "$LINENO"; then :
5407  ac_cv_func_vfork_works=yes
5408else
5409  ac_cv_func_vfork_works=no
5410fi
5411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5412  conftest.$ac_objext conftest.beam conftest.$ac_ext
5413fi
5414
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5417$as_echo "$ac_cv_func_vfork_works" >&6; }
5418
5419fi;
5420if test "x$ac_cv_func_fork_works" = xcross; then
5421  ac_cv_func_vfork_works=$ac_cv_func_vfork
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5423$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5424fi
5425
5426if test "x$ac_cv_func_vfork_works" = xyes; then
5427
5428$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5429
5430else
5431
5432$as_echo "#define vfork fork" >>confdefs.h
5433
5434fi
5435if test "x$ac_cv_func_fork_works" = xyes; then
5436
5437$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5438
5439fi
5440
5441for ac_func in vprintf
5442do :
5443  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5444if test "x$ac_cv_func_vprintf" = x""yes; then :
5445  cat >>confdefs.h <<_ACEOF
5446#define HAVE_VPRINTF 1
5447_ACEOF
5448
5449ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5450if test "x$ac_cv_func__doprnt" = x""yes; then :
5451
5452$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5453
5454fi
5455
5456fi
5457done
5458
5459
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
5461$as_echo_n "checking for wait3 that fills in rusage... " >&6; }
5462if test "${ac_cv_func_wait3_rusage+set}" = set; then :
5463  $as_echo_n "(cached) " >&6
5464else
5465  if test "$cross_compiling" = yes; then :
5466  ac_cv_func_wait3_rusage=no
5467else
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470$ac_includes_default
5471#include <sys/time.h>
5472#include <sys/resource.h>
5473#include <sys/wait.h>
5474/* HP-UX has wait3 but does not fill in rusage at all.  */
5475int
5476main ()
5477{
5478  struct rusage r;
5479  int i;
5480  /* Use a field that we can force nonzero --
5481     voluntary context switches.
5482     For systems like NeXT and OSF/1 that don't set it,
5483     also use the system CPU time.  And page faults (I/O) for Linux.  */
5484  r.ru_nvcsw = 0;
5485  r.ru_stime.tv_sec = 0;
5486  r.ru_stime.tv_usec = 0;
5487  r.ru_majflt = r.ru_minflt = 0;
5488  switch (fork ())
5489    {
5490    case 0: /* Child.  */
5491      sleep(1); /* Give up the CPU.  */
5492      _exit(0);
5493      break;
5494    case -1: /* What can we do?  */
5495      _exit(0);
5496      break;
5497    default: /* Parent.  */
5498      wait3(&i, 0, &r);
5499      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
5500      sleep(2);
5501      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5502	      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5503    }
5504}
5505_ACEOF
5506if ac_fn_c_try_run "$LINENO"; then :
5507  ac_cv_func_wait3_rusage=yes
5508else
5509  ac_cv_func_wait3_rusage=no
5510fi
5511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5512  conftest.$ac_objext conftest.beam conftest.$ac_ext
5513fi
5514
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
5517$as_echo "$ac_cv_func_wait3_rusage" >&6; }
5518if test $ac_cv_func_wait3_rusage = yes; then
5519
5520$as_echo "#define HAVE_WAIT3 1" >>confdefs.h
5521
5522fi
5523
5524for ac_func in \
5525	err \
5526	errx \
5527	getcwd \
5528	getenv \
5529	getopt \
5530	getwd \
5531	killpg \
5532	mmap \
5533	putenv \
5534	select \
5535	setenv \
5536	setpgid \
5537	setsid \
5538	sigaction \
5539	sigvec \
5540	snprintf \
5541	strerror \
5542	strftime \
5543	strsep \
5544	strtod \
5545	strtol \
5546	sysctl \
5547	unsetenv \
5548	vsnprintf \
5549	wait3 \
5550	wait4 \
5551	waitpid \
5552	warn \
5553	warnx \
5554
5555do :
5556  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5557ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5558eval as_val=\$$as_ac_var
5559   if test "x$as_val" = x""yes; then :
5560  cat >>confdefs.h <<_ACEOF
5561#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5562_ACEOF
5563
5564fi
5565done
5566
5567
5568for ac_func in \
5569	realpath \
5570	dirname \
5571	stresep \
5572	strlcpy \
5573
5574do :
5575  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5576ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5577eval as_val=\$$as_ac_var
5578   if test "x$as_val" = x""yes; then :
5579  cat >>confdefs.h <<_ACEOF
5580#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5581_ACEOF
5582
5583else
5584  case " $LIBOBJS " in
5585  *" $ac_func.$ac_objext "* ) ;;
5586  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5587 ;;
5588esac
5589
5590fi
5591done
5592
5593
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
5596$as_echo_n "checking for emalloc in -lutil... " >&6; }
5597if test "${ac_cv_lib_util_emalloc+set}" = set; then :
5598  $as_echo_n "(cached) " >&6
5599else
5600  ac_check_lib_save_LIBS=$LIBS
5601LIBS="-lutil  $LIBS"
5602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603/* end confdefs.h.  */
5604
5605/* Override any GCC internal prototype to avoid an error.
5606   Use char because int might match the return type of a GCC
5607   builtin and then its argument prototype would still apply.  */
5608#ifdef __cplusplus
5609extern "C"
5610#endif
5611char emalloc ();
5612int
5613main ()
5614{
5615return emalloc ();
5616  ;
5617  return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_link "$LINENO"; then :
5621  ac_cv_lib_util_emalloc=yes
5622else
5623  ac_cv_lib_util_emalloc=no
5624fi
5625rm -f core conftest.err conftest.$ac_objext \
5626    conftest$ac_exeext conftest.$ac_ext
5627LIBS=$ac_check_lib_save_LIBS
5628fi
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
5630$as_echo "$ac_cv_lib_util_emalloc" >&6; }
5631if test "x$ac_cv_lib_util_emalloc" = x""yes; then :
5632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
5633$as_echo_n "checking for erealloc in -lutil... " >&6; }
5634if test "${ac_cv_lib_util_erealloc+set}" = set; then :
5635  $as_echo_n "(cached) " >&6
5636else
5637  ac_check_lib_save_LIBS=$LIBS
5638LIBS="-lutil  $LIBS"
5639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640/* end confdefs.h.  */
5641
5642/* Override any GCC internal prototype to avoid an error.
5643   Use char because int might match the return type of a GCC
5644   builtin and then its argument prototype would still apply.  */
5645#ifdef __cplusplus
5646extern "C"
5647#endif
5648char erealloc ();
5649int
5650main ()
5651{
5652return erealloc ();
5653  ;
5654  return 0;
5655}
5656_ACEOF
5657if ac_fn_c_try_link "$LINENO"; then :
5658  ac_cv_lib_util_erealloc=yes
5659else
5660  ac_cv_lib_util_erealloc=no
5661fi
5662rm -f core conftest.err conftest.$ac_objext \
5663    conftest$ac_exeext conftest.$ac_ext
5664LIBS=$ac_check_lib_save_LIBS
5665fi
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
5667$as_echo "$ac_cv_lib_util_erealloc" >&6; }
5668if test "x$ac_cv_lib_util_erealloc" = x""yes; then :
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
5670$as_echo_n "checking for estrdup in -lutil... " >&6; }
5671if test "${ac_cv_lib_util_estrdup+set}" = set; then :
5672  $as_echo_n "(cached) " >&6
5673else
5674  ac_check_lib_save_LIBS=$LIBS
5675LIBS="-lutil  $LIBS"
5676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h.  */
5678
5679/* Override any GCC internal prototype to avoid an error.
5680   Use char because int might match the return type of a GCC
5681   builtin and then its argument prototype would still apply.  */
5682#ifdef __cplusplus
5683extern "C"
5684#endif
5685char estrdup ();
5686int
5687main ()
5688{
5689return estrdup ();
5690  ;
5691  return 0;
5692}
5693_ACEOF
5694if ac_fn_c_try_link "$LINENO"; then :
5695  ac_cv_lib_util_estrdup=yes
5696else
5697  ac_cv_lib_util_estrdup=no
5698fi
5699rm -f core conftest.err conftest.$ac_objext \
5700    conftest$ac_exeext conftest.$ac_ext
5701LIBS=$ac_check_lib_save_LIBS
5702fi
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
5704$as_echo "$ac_cv_lib_util_estrdup" >&6; }
5705if test "x$ac_cv_lib_util_estrdup" = x""yes; then :
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
5707$as_echo_n "checking for estrndup in -lutil... " >&6; }
5708if test "${ac_cv_lib_util_estrndup+set}" = set; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  ac_check_lib_save_LIBS=$LIBS
5712LIBS="-lutil  $LIBS"
5713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714/* end confdefs.h.  */
5715
5716/* Override any GCC internal prototype to avoid an error.
5717   Use char because int might match the return type of a GCC
5718   builtin and then its argument prototype would still apply.  */
5719#ifdef __cplusplus
5720extern "C"
5721#endif
5722char estrndup ();
5723int
5724main ()
5725{
5726return estrndup ();
5727  ;
5728  return 0;
5729}
5730_ACEOF
5731if ac_fn_c_try_link "$LINENO"; then :
5732  ac_cv_lib_util_estrndup=yes
5733else
5734  ac_cv_lib_util_estrndup=no
5735fi
5736rm -f core conftest.err conftest.$ac_objext \
5737    conftest$ac_exeext conftest.$ac_ext
5738LIBS=$ac_check_lib_save_LIBS
5739fi
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
5741$as_echo "$ac_cv_lib_util_estrndup" >&6; }
5742if test "x$ac_cv_lib_util_estrndup" = x""yes; then :
5743   LIBS="$LIBS -lutil"
5744	    CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
5745fi
5746
5747fi
5748
5749fi
5750
5751fi
5752
5753
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5755$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5756if test "${ac_cv_header_stat_broken+set}" = set; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761#include <sys/types.h>
5762#include <sys/stat.h>
5763
5764#if defined S_ISBLK && defined S_IFDIR
5765extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5766#endif
5767
5768#if defined S_ISBLK && defined S_IFCHR
5769extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5770#endif
5771
5772#if defined S_ISLNK && defined S_IFREG
5773extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5774#endif
5775
5776#if defined S_ISSOCK && defined S_IFREG
5777extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5778#endif
5779
5780_ACEOF
5781if ac_fn_c_try_compile "$LINENO"; then :
5782  ac_cv_header_stat_broken=no
5783else
5784  ac_cv_header_stat_broken=yes
5785fi
5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787fi
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5789$as_echo "$ac_cv_header_stat_broken" >&6; }
5790if test $ac_cv_header_stat_broken = yes; then
5791
5792$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5793
5794fi
5795
5796ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5797if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5798
5799cat >>confdefs.h <<_ACEOF
5800#define HAVE_STRUCT_STAT_ST_RDEV 1
5801_ACEOF
5802
5803
5804$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5805
5806fi
5807
5808
5809echo "checking if compiler supports __func__" >&6
5810ac_ext=c
5811ac_cpp='$CPP $CPPFLAGS'
5812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815
5816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817/* end confdefs.h.  */
5818
5819int
5820main ()
5821{
5822const char *func = __func__;
5823  ;
5824  return 0;
5825}
5826_ACEOF
5827if ac_fn_c_try_compile "$LINENO"; then :
5828
5829else
5830
5831$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
5832
5833fi
5834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835echo $ECHO_N "checking if diff -u works... $ECHO_C" >&6
5836if diff -u /dev/null /dev/null > /dev/null 2>&1; then
5837   diff_u=-u
5838   echo yes >&6
5839else
5840   diff_u=
5841   echo no >&6
5842fi
5843echo "checking for MACHINE & MACHINE_ARCH..." >&6
5844cat > conftest.$ac_ext <<EOF
5845#include "confdefs.h"
5846#include <sys/param.h>
5847#ifdef MACHINE
5848machine=MACHINE
5849#endif
5850#ifdef MACHINE_ARCH
5851machine_arch=MACHINE_ARCH
5852#endif
5853EOF
5854
5855default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5856	egrep machine= | tr -d ' "'`
5857rm -rf conftest*
5858if test "$default_machine"; then
5859	eval "$default_machine"
5860fi
5861machine=${machine:-`$srcdir/machine.sh`}
5862machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
5863echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
5864
5865# Check whether --with-machine was given.
5866if test "${with_machine+set}" = set; then :
5867  withval=$with_machine; case "${withval}" in
5868yes)   as_fn_error "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
5869no)    ;;
5870generic) machine=`$srcdir/machine.sh`;;
5871*)     machine=$with_machine;;
5872esac
5873fi
5874
5875force_machine=
5876
5877# Check whether --with-force_machine was given.
5878if test "${with_force_machine+set}" = set; then :
5879  withval=$with_force_machine; case "${withval}" in
5880yes)   force_machine=FORCE_;;
5881no)    ;;
5882*)     force_machine=FORCE_; machine=$with_force_machine;;
5883esac
5884fi
5885
5886force_machine_arch=
5887
5888# Check whether --with-force_machine_arch was given.
5889if test "${with_force_machine_arch+set}" = set; then :
5890  withval=$with_force_machine_arch; case "${withval}" in
5891yes)   force_machine_arch=FORCE_;;
5892no)    ;;
5893*)     force_machine_arch=FORCE_; machine_arch=$with_force_machine;;
5894esac
5895fi
5896
5897
5898# Check whether --with-machine_arch was given.
5899if test "${with_machine_arch+set}" = set; then :
5900  withval=$with_machine_arch; case "${withval}" in
5901yes)   as_fn_error "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
5902no)    ;;
5903*)     machine_arch=$with_machine_arch;;
5904esac
5905fi
5906
5907echo "Using: ${force_machine}MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
5908default_sys_path=\${prefix}/share/mk
5909
5910# Check whether --with-default-sys-path was given.
5911if test "${with_default_sys_path+set}" = set; then :
5912  withval=$with_default_sys_path; case "${withval}" in
5913yes)	as_fn_error "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
5914no)	;;
5915*)	default_sys_path="$with_default_sys_path"
5916	;;
5917esac
5918fi
5919
5920
5921# Check whether --with-path-objdirprefix was given.
5922if test "${with_path_objdirprefix+set}" = set; then :
5923  withval=$with_path_objdirprefix; case "${withval}" in
5924yes)   as_fn_error "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
5925no)    CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
5926*)     CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
5927esac
5928fi
5929
5930# Check whether --enable-pwd-override was given.
5931if test "${enable_pwd_override+set}" = set; then :
5932  enableval=$enable_pwd_override; case "${enableval}" in
5933yes)   ;;
5934no)    CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
5935*)     as_fn_error "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
5936esac
5937fi
5938
5939# Check whether --enable-check-make-chdir was given.
5940if test "${enable_check_make_chdir+set}" = set; then :
5941  enableval=$enable_check_make_chdir; case "${enableval}" in
5942yes)   ;;
5943no)    CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
5944*)     as_fn_error "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
5945esac
5946fi
5947
5948
5949# Check whether --with-mksrc was given.
5950if test "${with_mksrc+set}" = set; then :
5951  withval=$with_mksrc; case "${withval}" in
5952""|yes|no) ;;
5953*) test -s $withval/install-mk && mksrc=$withval ||
5954as_fn_error "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
5955;;
5956esac
5957
5958fi
5959
5960srcdir=`cd $srcdir && pwd`
5961for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
5962do
5963	test -s $mksrc/install-mk || continue
5964	mksrc=`cd $mksrc && pwd`
5965	break
5966done
5967mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
5968echo "Using: MKSRC=$mksrc" 1>&6
5969if test -x /usr/xpg4/bin/sh; then
5970        defshell_path=${defshell_path:-/usr/xpg4/bin/sh}
5971fi
5972if test -n "$defshell_path"; then
5973	echo "Using: SHELL=$defshell_path"  >&6
5974
5975cat >>confdefs.h <<_ACEOF
5976#define DEFSHELL_CUSTOM "$defshell_path"
5977_ACEOF
5978
5979fi
5980if test -n "$DEFSHELL_INDEX"; then
5981
5982cat >>confdefs.h <<_ACEOF
5983#define DEFSHELL_INDEX $DEFSHELL_INDEX
5984_ACEOF
5985
5986fi
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997ac_config_files="$ac_config_files makefile Makefile.config make-bootstrap.sh unit-tests/Makefile"
5998
5999cat >confcache <<\_ACEOF
6000# This file is a shell script that caches the results of configure
6001# tests run on this system so they can be shared between configure
6002# scripts and configure runs, see configure's option --config-cache.
6003# It is not useful on other systems.  If it contains results you don't
6004# want to keep, you may remove or edit it.
6005#
6006# config.status only pays attention to the cache file if you give it
6007# the --recheck option to rerun configure.
6008#
6009# `ac_cv_env_foo' variables (set or unset) will be overridden when
6010# loading this file, other *unset* `ac_cv_foo' will be assigned the
6011# following values.
6012
6013_ACEOF
6014
6015# The following way of writing the cache mishandles newlines in values,
6016# but we know of no workaround that is simple, portable, and efficient.
6017# So, we kill variables containing newlines.
6018# Ultrix sh set writes to stderr and can't be redirected directly,
6019# and sets the high bit in the cache file unless we assign to the vars.
6020(
6021  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6022    eval ac_val=\$$ac_var
6023    case $ac_val in #(
6024    *${as_nl}*)
6025      case $ac_var in #(
6026      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6027$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6028      esac
6029      case $ac_var in #(
6030      _ | IFS | as_nl) ;; #(
6031      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6032      *) { eval $ac_var=; unset $ac_var;} ;;
6033      esac ;;
6034    esac
6035  done
6036
6037  (set) 2>&1 |
6038    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6039    *${as_nl}ac_space=\ *)
6040      # `set' does not quote correctly, so add quotes: double-quote
6041      # substitution turns \\\\ into \\, and sed turns \\ into \.
6042      sed -n \
6043	"s/'/'\\\\''/g;
6044	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6045      ;; #(
6046    *)
6047      # `set' quotes correctly as required by POSIX, so do not add quotes.
6048      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6049      ;;
6050    esac |
6051    sort
6052) |
6053  sed '
6054     /^ac_cv_env_/b end
6055     t clear
6056     :clear
6057     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6058     t end
6059     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6060     :end' >>confcache
6061if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6062  if test -w "$cache_file"; then
6063    test "x$cache_file" != "x/dev/null" &&
6064      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6065$as_echo "$as_me: updating cache $cache_file" >&6;}
6066    cat confcache >$cache_file
6067  else
6068    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6069$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6070  fi
6071fi
6072rm -f confcache
6073
6074test "x$prefix" = xNONE && prefix=$ac_default_prefix
6075# Let make expand exec_prefix.
6076test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6077
6078DEFS=-DHAVE_CONFIG_H
6079
6080ac_libobjs=
6081ac_ltlibobjs=
6082for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6083  # 1. Remove the extension, and $U if already installed.
6084  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6085  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6086  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6087  #    will be set to the directory where LIBOBJS objects are built.
6088  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6089  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6090done
6091LIBOBJS=$ac_libobjs
6092
6093LTLIBOBJS=$ac_ltlibobjs
6094
6095
6096
6097
6098: ${CONFIG_STATUS=./config.status}
6099ac_write_fail=0
6100ac_clean_files_save=$ac_clean_files
6101ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6103$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6104as_write_fail=0
6105cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6106#! $SHELL
6107# Generated by $as_me.
6108# Run this file to recreate the current configuration.
6109# Compiler output produced by configure, useful for debugging
6110# configure, is in config.log if it exists.
6111
6112debug=false
6113ac_cs_recheck=false
6114ac_cs_silent=false
6115
6116SHELL=\${CONFIG_SHELL-$SHELL}
6117export SHELL
6118_ASEOF
6119cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6120## -------------------- ##
6121## M4sh Initialization. ##
6122## -------------------- ##
6123
6124# Be more Bourne compatible
6125DUALCASE=1; export DUALCASE # for MKS sh
6126if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6127  emulate sh
6128  NULLCMD=:
6129  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6130  # is contrary to our usage.  Disable this feature.
6131  alias -g '${1+"$@"}'='"$@"'
6132  setopt NO_GLOB_SUBST
6133else
6134  case `(set -o) 2>/dev/null` in #(
6135  *posix*) :
6136    set -o posix ;; #(
6137  *) :
6138     ;;
6139esac
6140fi
6141
6142
6143as_nl='
6144'
6145export as_nl
6146# Printing a long string crashes Solaris 7 /usr/bin/printf.
6147as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6148as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6149as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6150# Prefer a ksh shell builtin over an external printf program on Solaris,
6151# but without wasting forks for bash or zsh.
6152if test -z "$BASH_VERSION$ZSH_VERSION" \
6153    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6154  as_echo='print -r --'
6155  as_echo_n='print -rn --'
6156elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6157  as_echo='printf %s\n'
6158  as_echo_n='printf %s'
6159else
6160  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6161    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6162    as_echo_n='/usr/ucb/echo -n'
6163  else
6164    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6165    as_echo_n_body='eval
6166      arg=$1;
6167      case $arg in #(
6168      *"$as_nl"*)
6169	expr "X$arg" : "X\\(.*\\)$as_nl";
6170	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6171      esac;
6172      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6173    '
6174    export as_echo_n_body
6175    as_echo_n='sh -c $as_echo_n_body as_echo'
6176  fi
6177  export as_echo_body
6178  as_echo='sh -c $as_echo_body as_echo'
6179fi
6180
6181# The user is always right.
6182if test "${PATH_SEPARATOR+set}" != set; then
6183  PATH_SEPARATOR=:
6184  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6185    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6186      PATH_SEPARATOR=';'
6187  }
6188fi
6189
6190
6191# IFS
6192# We need space, tab and new line, in precisely that order.  Quoting is
6193# there to prevent editors from complaining about space-tab.
6194# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6195# splitting by setting IFS to empty value.)
6196IFS=" ""	$as_nl"
6197
6198# Find who we are.  Look in the path if we contain no directory separator.
6199case $0 in #((
6200  *[\\/]* ) as_myself=$0 ;;
6201  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204  IFS=$as_save_IFS
6205  test -z "$as_dir" && as_dir=.
6206    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6207  done
6208IFS=$as_save_IFS
6209
6210     ;;
6211esac
6212# We did not find ourselves, most probably we were run as `sh COMMAND'
6213# in which case we are not to be found in the path.
6214if test "x$as_myself" = x; then
6215  as_myself=$0
6216fi
6217if test ! -f "$as_myself"; then
6218  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6219  exit 1
6220fi
6221
6222# Unset variables that we do not need and which cause bugs (e.g. in
6223# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6224# suppresses any "Segmentation fault" message there.  '((' could
6225# trigger a bug in pdksh 5.2.14.
6226for as_var in BASH_ENV ENV MAIL MAILPATH
6227do eval test x\${$as_var+set} = xset \
6228  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6229done
6230PS1='$ '
6231PS2='> '
6232PS4='+ '
6233
6234# NLS nuisances.
6235LC_ALL=C
6236export LC_ALL
6237LANGUAGE=C
6238export LANGUAGE
6239
6240# CDPATH.
6241(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6242
6243
6244# as_fn_error ERROR [LINENO LOG_FD]
6245# ---------------------------------
6246# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6247# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6248# script with status $?, using 1 if that was 0.
6249as_fn_error ()
6250{
6251  as_status=$?; test $as_status -eq 0 && as_status=1
6252  if test "$3"; then
6253    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6254    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6255  fi
6256  $as_echo "$as_me: error: $1" >&2
6257  as_fn_exit $as_status
6258} # as_fn_error
6259
6260
6261# as_fn_set_status STATUS
6262# -----------------------
6263# Set $? to STATUS, without forking.
6264as_fn_set_status ()
6265{
6266  return $1
6267} # as_fn_set_status
6268
6269# as_fn_exit STATUS
6270# -----------------
6271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6272as_fn_exit ()
6273{
6274  set +e
6275  as_fn_set_status $1
6276  exit $1
6277} # as_fn_exit
6278
6279# as_fn_unset VAR
6280# ---------------
6281# Portably unset VAR.
6282as_fn_unset ()
6283{
6284  { eval $1=; unset $1;}
6285}
6286as_unset=as_fn_unset
6287# as_fn_append VAR VALUE
6288# ----------------------
6289# Append the text in VALUE to the end of the definition contained in VAR. Take
6290# advantage of any shell optimizations that allow amortized linear growth over
6291# repeated appends, instead of the typical quadratic growth present in naive
6292# implementations.
6293if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6294  eval 'as_fn_append ()
6295  {
6296    eval $1+=\$2
6297  }'
6298else
6299  as_fn_append ()
6300  {
6301    eval $1=\$$1\$2
6302  }
6303fi # as_fn_append
6304
6305# as_fn_arith ARG...
6306# ------------------
6307# Perform arithmetic evaluation on the ARGs, and store the result in the
6308# global $as_val. Take advantage of shells that can avoid forks. The arguments
6309# must be portable across $(()) and expr.
6310if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6311  eval 'as_fn_arith ()
6312  {
6313    as_val=$(( $* ))
6314  }'
6315else
6316  as_fn_arith ()
6317  {
6318    as_val=`expr "$@" || test $? -eq 1`
6319  }
6320fi # as_fn_arith
6321
6322
6323if expr a : '\(a\)' >/dev/null 2>&1 &&
6324   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6325  as_expr=expr
6326else
6327  as_expr=false
6328fi
6329
6330if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6331  as_basename=basename
6332else
6333  as_basename=false
6334fi
6335
6336if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6337  as_dirname=dirname
6338else
6339  as_dirname=false
6340fi
6341
6342as_me=`$as_basename -- "$0" ||
6343$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6344	 X"$0" : 'X\(//\)$' \| \
6345	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6346$as_echo X/"$0" |
6347    sed '/^.*\/\([^/][^/]*\)\/*$/{
6348	    s//\1/
6349	    q
6350	  }
6351	  /^X\/\(\/\/\)$/{
6352	    s//\1/
6353	    q
6354	  }
6355	  /^X\/\(\/\).*/{
6356	    s//\1/
6357	    q
6358	  }
6359	  s/.*/./; q'`
6360
6361# Avoid depending upon Character Ranges.
6362as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6363as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6364as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6365as_cr_digits='0123456789'
6366as_cr_alnum=$as_cr_Letters$as_cr_digits
6367
6368ECHO_C= ECHO_N= ECHO_T=
6369case `echo -n x` in #(((((
6370-n*)
6371  case `echo 'xy\c'` in
6372  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6373  xy)  ECHO_C='\c';;
6374  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6375       ECHO_T='	';;
6376  esac;;
6377*)
6378  ECHO_N='-n';;
6379esac
6380
6381rm -f conf$$ conf$$.exe conf$$.file
6382if test -d conf$$.dir; then
6383  rm -f conf$$.dir/conf$$.file
6384else
6385  rm -f conf$$.dir
6386  mkdir conf$$.dir 2>/dev/null
6387fi
6388if (echo >conf$$.file) 2>/dev/null; then
6389  if ln -s conf$$.file conf$$ 2>/dev/null; then
6390    as_ln_s='ln -s'
6391    # ... but there are two gotchas:
6392    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6393    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6394    # In both cases, we have to default to `cp -p'.
6395    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6396      as_ln_s='cp -p'
6397  elif ln conf$$.file conf$$ 2>/dev/null; then
6398    as_ln_s=ln
6399  else
6400    as_ln_s='cp -p'
6401  fi
6402else
6403  as_ln_s='cp -p'
6404fi
6405rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6406rmdir conf$$.dir 2>/dev/null
6407
6408
6409# as_fn_mkdir_p
6410# -------------
6411# Create "$as_dir" as a directory, including parents if necessary.
6412as_fn_mkdir_p ()
6413{
6414
6415  case $as_dir in #(
6416  -*) as_dir=./$as_dir;;
6417  esac
6418  test -d "$as_dir" || eval $as_mkdir_p || {
6419    as_dirs=
6420    while :; do
6421      case $as_dir in #(
6422      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6423      *) as_qdir=$as_dir;;
6424      esac
6425      as_dirs="'$as_qdir' $as_dirs"
6426      as_dir=`$as_dirname -- "$as_dir" ||
6427$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6428	 X"$as_dir" : 'X\(//\)[^/]' \| \
6429	 X"$as_dir" : 'X\(//\)$' \| \
6430	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6431$as_echo X"$as_dir" |
6432    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6433	    s//\1/
6434	    q
6435	  }
6436	  /^X\(\/\/\)[^/].*/{
6437	    s//\1/
6438	    q
6439	  }
6440	  /^X\(\/\/\)$/{
6441	    s//\1/
6442	    q
6443	  }
6444	  /^X\(\/\).*/{
6445	    s//\1/
6446	    q
6447	  }
6448	  s/.*/./; q'`
6449      test -d "$as_dir" && break
6450    done
6451    test -z "$as_dirs" || eval "mkdir $as_dirs"
6452  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6453
6454
6455} # as_fn_mkdir_p
6456if mkdir -p . 2>/dev/null; then
6457  as_mkdir_p='mkdir -p "$as_dir"'
6458else
6459  test -d ./-p && rmdir ./-p
6460  as_mkdir_p=false
6461fi
6462
6463if test -x / >/dev/null 2>&1; then
6464  as_test_x='test -x'
6465else
6466  if ls -dL / >/dev/null 2>&1; then
6467    as_ls_L_option=L
6468  else
6469    as_ls_L_option=
6470  fi
6471  as_test_x='
6472    eval sh -c '\''
6473      if test -d "$1"; then
6474	test -d "$1/.";
6475      else
6476	case $1 in #(
6477	-*)set "./$1";;
6478	esac;
6479	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6480	???[sx]*):;;*)false;;esac;fi
6481    '\'' sh
6482  '
6483fi
6484as_executable_p=$as_test_x
6485
6486# Sed expression to map a string onto a valid CPP name.
6487as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6488
6489# Sed expression to map a string onto a valid variable name.
6490as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6491
6492
6493exec 6>&1
6494## ----------------------------------- ##
6495## Main body of $CONFIG_STATUS script. ##
6496## ----------------------------------- ##
6497_ASEOF
6498test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6499
6500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6501# Save the log message, to keep $0 and so on meaningful, and to
6502# report actual input values of CONFIG_FILES etc. instead of their
6503# values after options handling.
6504ac_log="
6505This file was extended by bmake $as_me 20151022, which was
6506generated by GNU Autoconf 2.64.  Invocation command line was
6507
6508  CONFIG_FILES    = $CONFIG_FILES
6509  CONFIG_HEADERS  = $CONFIG_HEADERS
6510  CONFIG_LINKS    = $CONFIG_LINKS
6511  CONFIG_COMMANDS = $CONFIG_COMMANDS
6512  $ $0 $@
6513
6514on `(hostname || uname -n) 2>/dev/null | sed 1q`
6515"
6516
6517_ACEOF
6518
6519case $ac_config_files in *"
6520"*) set x $ac_config_files; shift; ac_config_files=$*;;
6521esac
6522
6523case $ac_config_headers in *"
6524"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6525esac
6526
6527
6528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6529# Files that config.status was made for.
6530config_files="$ac_config_files"
6531config_headers="$ac_config_headers"
6532
6533_ACEOF
6534
6535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6536ac_cs_usage="\
6537\`$as_me' instantiates files and other configuration actions
6538from templates according to the current configuration.  Unless the files
6539and actions are specified as TAGs, all are instantiated by default.
6540
6541Usage: $0 [OPTION]... [TAG]...
6542
6543  -h, --help       print this help, then exit
6544  -V, --version    print version number and configuration settings, then exit
6545  -q, --quiet, --silent
6546                   do not print progress messages
6547  -d, --debug      don't remove temporary files
6548      --recheck    update $as_me by reconfiguring in the same conditions
6549      --file=FILE[:TEMPLATE]
6550                   instantiate the configuration file FILE
6551      --header=FILE[:TEMPLATE]
6552                   instantiate the configuration header FILE
6553
6554Configuration files:
6555$config_files
6556
6557Configuration headers:
6558$config_headers
6559
6560Report bugs to <sjg@NetBSD.org>."
6561
6562_ACEOF
6563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6564ac_cs_version="\\
6565bmake config.status 20151022
6566configured by $0, generated by GNU Autoconf 2.64,
6567  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6568
6569Copyright (C) 2009 Free Software Foundation, Inc.
6570This config.status script is free software; the Free Software Foundation
6571gives unlimited permission to copy, distribute and modify it."
6572
6573ac_pwd='$ac_pwd'
6574srcdir='$srcdir'
6575INSTALL='$INSTALL'
6576test -n "\$AWK" || AWK=awk
6577_ACEOF
6578
6579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6580# The default lists apply if the user does not specify any file.
6581ac_need_defaults=:
6582while test $# != 0
6583do
6584  case $1 in
6585  --*=*)
6586    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6587    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6588    ac_shift=:
6589    ;;
6590  *)
6591    ac_option=$1
6592    ac_optarg=$2
6593    ac_shift=shift
6594    ;;
6595  esac
6596
6597  case $ac_option in
6598  # Handling of the options.
6599  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6600    ac_cs_recheck=: ;;
6601  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6602    $as_echo "$ac_cs_version"; exit ;;
6603  --debug | --debu | --deb | --de | --d | -d )
6604    debug=: ;;
6605  --file | --fil | --fi | --f )
6606    $ac_shift
6607    case $ac_optarg in
6608    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6609    esac
6610    as_fn_append CONFIG_FILES " '$ac_optarg'"
6611    ac_need_defaults=false;;
6612  --header | --heade | --head | --hea )
6613    $ac_shift
6614    case $ac_optarg in
6615    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6616    esac
6617    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6618    ac_need_defaults=false;;
6619  --he | --h)
6620    # Conflict between --help and --header
6621    as_fn_error "ambiguous option: \`$1'
6622Try \`$0 --help' for more information.";;
6623  --help | --hel | -h )
6624    $as_echo "$ac_cs_usage"; exit ;;
6625  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6626  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6627    ac_cs_silent=: ;;
6628
6629  # This is an error.
6630  -*) as_fn_error "unrecognized option: \`$1'
6631Try \`$0 --help' for more information." ;;
6632
6633  *) as_fn_append ac_config_targets " $1"
6634     ac_need_defaults=false ;;
6635
6636  esac
6637  shift
6638done
6639
6640ac_configure_extra_args=
6641
6642if $ac_cs_silent; then
6643  exec 6>/dev/null
6644  ac_configure_extra_args="$ac_configure_extra_args --silent"
6645fi
6646
6647_ACEOF
6648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6649if \$ac_cs_recheck; then
6650  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6651  shift
6652  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6653  CONFIG_SHELL='$SHELL'
6654  export CONFIG_SHELL
6655  exec "\$@"
6656fi
6657
6658_ACEOF
6659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6660exec 5>>config.log
6661{
6662  echo
6663  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6664## Running $as_me. ##
6665_ASBOX
6666  $as_echo "$ac_log"
6667} >&5
6668
6669_ACEOF
6670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6671_ACEOF
6672
6673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6674
6675# Handling of arguments.
6676for ac_config_target in $ac_config_targets
6677do
6678  case $ac_config_target in
6679    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6680    "makefile") CONFIG_FILES="$CONFIG_FILES makefile" ;;
6681    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
6682    "make-bootstrap.sh") CONFIG_FILES="$CONFIG_FILES make-bootstrap.sh" ;;
6683    "unit-tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/Makefile" ;;
6684
6685  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6686  esac
6687done
6688
6689
6690# If the user did not use the arguments to specify the items to instantiate,
6691# then the envvar interface is used.  Set only those that are not.
6692# We use the long form for the default assignment because of an extremely
6693# bizarre bug on SunOS 4.1.3.
6694if $ac_need_defaults; then
6695  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6696  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6697fi
6698
6699# Have a temporary directory for convenience.  Make it in the build tree
6700# simply because there is no reason against having it here, and in addition,
6701# creating and moving files from /tmp can sometimes cause problems.
6702# Hook for its removal unless debugging.
6703# Note that there is a small window in which the directory will not be cleaned:
6704# after its creation but before its name has been assigned to `$tmp'.
6705$debug ||
6706{
6707  tmp=
6708  trap 'exit_status=$?
6709  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6710' 0
6711  trap 'as_fn_exit 1' 1 2 13 15
6712}
6713# Create a (secure) tmp directory for tmp files.
6714
6715{
6716  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6717  test -n "$tmp" && test -d "$tmp"
6718}  ||
6719{
6720  tmp=./conf$$-$RANDOM
6721  (umask 077 && mkdir "$tmp")
6722} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6723
6724# Set up the scripts for CONFIG_FILES section.
6725# No need to generate them if there are no CONFIG_FILES.
6726# This happens for instance with `./config.status config.h'.
6727if test -n "$CONFIG_FILES"; then
6728
6729
6730ac_cr=`echo X | tr X '\015'`
6731# On cygwin, bash can eat \r inside `` if the user requested igncr.
6732# But we know of no other shell where ac_cr would be empty at this
6733# point, so we can use a bashism as a fallback.
6734if test "x$ac_cr" = x; then
6735  eval ac_cr=\$\'\\r\'
6736fi
6737ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6738if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6739  ac_cs_awk_cr='\r'
6740else
6741  ac_cs_awk_cr=$ac_cr
6742fi
6743
6744echo 'BEGIN {' >"$tmp/subs1.awk" &&
6745_ACEOF
6746
6747
6748{
6749  echo "cat >conf$$subs.awk <<_ACEOF" &&
6750  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6751  echo "_ACEOF"
6752} >conf$$subs.sh ||
6753  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6754ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6755ac_delim='%!_!# '
6756for ac_last_try in false false false false false :; do
6757  . ./conf$$subs.sh ||
6758    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6759
6760  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6761  if test $ac_delim_n = $ac_delim_num; then
6762    break
6763  elif $ac_last_try; then
6764    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6765  else
6766    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6767  fi
6768done
6769rm -f conf$$subs.sh
6770
6771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6772cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6773_ACEOF
6774sed -n '
6775h
6776s/^/S["/; s/!.*/"]=/
6777p
6778g
6779s/^[^!]*!//
6780:repl
6781t repl
6782s/'"$ac_delim"'$//
6783t delim
6784:nl
6785h
6786s/\(.\{148\}\).*/\1/
6787t more1
6788s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6789p
6790n
6791b repl
6792:more1
6793s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6794p
6795g
6796s/.\{148\}//
6797t nl
6798:delim
6799h
6800s/\(.\{148\}\).*/\1/
6801t more2
6802s/["\\]/\\&/g; s/^/"/; s/$/"/
6803p
6804b
6805:more2
6806s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6807p
6808g
6809s/.\{148\}//
6810t delim
6811' <conf$$subs.awk | sed '
6812/^[^""]/{
6813  N
6814  s/\n//
6815}
6816' >>$CONFIG_STATUS || ac_write_fail=1
6817rm -f conf$$subs.awk
6818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6819_ACAWK
6820cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6821  for (key in S) S_is_set[key] = 1
6822  FS = ""
6823
6824}
6825{
6826  line = $ 0
6827  nfields = split(line, field, "@")
6828  substed = 0
6829  len = length(field[1])
6830  for (i = 2; i < nfields; i++) {
6831    key = field[i]
6832    keylen = length(key)
6833    if (S_is_set[key]) {
6834      value = S[key]
6835      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6836      len += length(value) + length(field[++i])
6837      substed = 1
6838    } else
6839      len += 1 + keylen
6840  }
6841
6842  print line
6843}
6844
6845_ACAWK
6846_ACEOF
6847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6848if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6849  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6850else
6851  cat
6852fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6853  || as_fn_error "could not setup config files machinery" "$LINENO" 5
6854_ACEOF
6855
6856# VPATH may cause trouble with some makes, so we remove $(srcdir),
6857# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6858# trailing colons and then remove the whole line if VPATH becomes empty
6859# (actually we leave an empty line to preserve line numbers).
6860if test "x$srcdir" = x.; then
6861  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6862s/:*\$(srcdir):*/:/
6863s/:*\${srcdir}:*/:/
6864s/:*@srcdir@:*/:/
6865s/^\([^=]*=[	 ]*\):*/\1/
6866s/:*$//
6867s/^[^=]*=[	 ]*$//
6868}'
6869fi
6870
6871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6872fi # test -n "$CONFIG_FILES"
6873
6874# Set up the scripts for CONFIG_HEADERS section.
6875# No need to generate them if there are no CONFIG_HEADERS.
6876# This happens for instance with `./config.status Makefile'.
6877if test -n "$CONFIG_HEADERS"; then
6878cat >"$tmp/defines.awk" <<\_ACAWK ||
6879BEGIN {
6880_ACEOF
6881
6882# Transform confdefs.h into an awk script `defines.awk', embedded as
6883# here-document in config.status, that substitutes the proper values into
6884# config.h.in to produce config.h.
6885
6886# Create a delimiter string that does not exist in confdefs.h, to ease
6887# handling of long lines.
6888ac_delim='%!_!# '
6889for ac_last_try in false false :; do
6890  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6891  if test -z "$ac_t"; then
6892    break
6893  elif $ac_last_try; then
6894    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6895  else
6896    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6897  fi
6898done
6899
6900# For the awk script, D is an array of macro values keyed by name,
6901# likewise P contains macro parameters if any.  Preserve backslash
6902# newline sequences.
6903
6904ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6905sed -n '
6906s/.\{148\}/&'"$ac_delim"'/g
6907t rset
6908:rset
6909s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6910t def
6911d
6912:def
6913s/\\$//
6914t bsnl
6915s/["\\]/\\&/g
6916s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6917D["\1"]=" \3"/p
6918s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6919d
6920:bsnl
6921s/["\\]/\\&/g
6922s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6923D["\1"]=" \3\\\\\\n"\\/p
6924t cont
6925s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6926t cont
6927d
6928:cont
6929n
6930s/.\{148\}/&'"$ac_delim"'/g
6931t clear
6932:clear
6933s/\\$//
6934t bsnlc
6935s/["\\]/\\&/g; s/^/"/; s/$/"/p
6936d
6937:bsnlc
6938s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6939b cont
6940' <confdefs.h | sed '
6941s/'"$ac_delim"'/"\\\
6942"/g' >>$CONFIG_STATUS || ac_write_fail=1
6943
6944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6945  for (key in D) D_is_set[key] = 1
6946  FS = ""
6947}
6948/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6949  line = \$ 0
6950  split(line, arg, " ")
6951  if (arg[1] == "#") {
6952    defundef = arg[2]
6953    mac1 = arg[3]
6954  } else {
6955    defundef = substr(arg[1], 2)
6956    mac1 = arg[2]
6957  }
6958  split(mac1, mac2, "(") #)
6959  macro = mac2[1]
6960  prefix = substr(line, 1, index(line, defundef) - 1)
6961  if (D_is_set[macro]) {
6962    # Preserve the white space surrounding the "#".
6963    print prefix "define", macro P[macro] D[macro]
6964    next
6965  } else {
6966    # Replace #undef with comments.  This is necessary, for example,
6967    # in the case of _POSIX_SOURCE, which is predefined and required
6968    # on some systems where configure will not decide to define it.
6969    if (defundef == "undef") {
6970      print "/*", prefix defundef, macro, "*/"
6971      next
6972    }
6973  }
6974}
6975{ print }
6976_ACAWK
6977_ACEOF
6978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6979  as_fn_error "could not setup config headers machinery" "$LINENO" 5
6980fi # test -n "$CONFIG_HEADERS"
6981
6982
6983eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6984shift
6985for ac_tag
6986do
6987  case $ac_tag in
6988  :[FHLC]) ac_mode=$ac_tag; continue;;
6989  esac
6990  case $ac_mode$ac_tag in
6991  :[FHL]*:*);;
6992  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6993  :[FH]-) ac_tag=-:-;;
6994  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6995  esac
6996  ac_save_IFS=$IFS
6997  IFS=:
6998  set x $ac_tag
6999  IFS=$ac_save_IFS
7000  shift
7001  ac_file=$1
7002  shift
7003
7004  case $ac_mode in
7005  :L) ac_source=$1;;
7006  :[FH])
7007    ac_file_inputs=
7008    for ac_f
7009    do
7010      case $ac_f in
7011      -) ac_f="$tmp/stdin";;
7012      *) # Look for the file first in the build tree, then in the source tree
7013	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7014	 # because $ac_f cannot contain `:'.
7015	 test -f "$ac_f" ||
7016	   case $ac_f in
7017	   [\\/$]*) false;;
7018	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7019	   esac ||
7020	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7021      esac
7022      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7023      as_fn_append ac_file_inputs " '$ac_f'"
7024    done
7025
7026    # Let's still pretend it is `configure' which instantiates (i.e., don't
7027    # use $as_me), people would be surprised to read:
7028    #    /* config.h.  Generated by config.status.  */
7029    configure_input='Generated from '`
7030	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7031	`' by configure.'
7032    if test x"$ac_file" != x-; then
7033      configure_input="$ac_file.  $configure_input"
7034      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7035$as_echo "$as_me: creating $ac_file" >&6;}
7036    fi
7037    # Neutralize special characters interpreted by sed in replacement strings.
7038    case $configure_input in #(
7039    *\&* | *\|* | *\\* )
7040       ac_sed_conf_input=`$as_echo "$configure_input" |
7041       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7042    *) ac_sed_conf_input=$configure_input;;
7043    esac
7044
7045    case $ac_tag in
7046    *:-:* | *:-) cat >"$tmp/stdin" \
7047      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7048    esac
7049    ;;
7050  esac
7051
7052  ac_dir=`$as_dirname -- "$ac_file" ||
7053$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7054	 X"$ac_file" : 'X\(//\)[^/]' \| \
7055	 X"$ac_file" : 'X\(//\)$' \| \
7056	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7057$as_echo X"$ac_file" |
7058    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7059	    s//\1/
7060	    q
7061	  }
7062	  /^X\(\/\/\)[^/].*/{
7063	    s//\1/
7064	    q
7065	  }
7066	  /^X\(\/\/\)$/{
7067	    s//\1/
7068	    q
7069	  }
7070	  /^X\(\/\).*/{
7071	    s//\1/
7072	    q
7073	  }
7074	  s/.*/./; q'`
7075  as_dir="$ac_dir"; as_fn_mkdir_p
7076  ac_builddir=.
7077
7078case "$ac_dir" in
7079.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7080*)
7081  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7082  # A ".." for each directory in $ac_dir_suffix.
7083  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7084  case $ac_top_builddir_sub in
7085  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7086  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7087  esac ;;
7088esac
7089ac_abs_top_builddir=$ac_pwd
7090ac_abs_builddir=$ac_pwd$ac_dir_suffix
7091# for backward compatibility:
7092ac_top_builddir=$ac_top_build_prefix
7093
7094case $srcdir in
7095  .)  # We are building in place.
7096    ac_srcdir=.
7097    ac_top_srcdir=$ac_top_builddir_sub
7098    ac_abs_top_srcdir=$ac_pwd ;;
7099  [\\/]* | ?:[\\/]* )  # Absolute name.
7100    ac_srcdir=$srcdir$ac_dir_suffix;
7101    ac_top_srcdir=$srcdir
7102    ac_abs_top_srcdir=$srcdir ;;
7103  *) # Relative name.
7104    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7105    ac_top_srcdir=$ac_top_build_prefix$srcdir
7106    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7107esac
7108ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7109
7110
7111  case $ac_mode in
7112  :F)
7113  #
7114  # CONFIG_FILE
7115  #
7116
7117  case $INSTALL in
7118  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7119  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7120  esac
7121_ACEOF
7122
7123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7124# If the template does not know about datarootdir, expand it.
7125# FIXME: This hack should be removed a few years after 2.60.
7126ac_datarootdir_hack=; ac_datarootdir_seen=
7127ac_sed_dataroot='
7128/datarootdir/ {
7129  p
7130  q
7131}
7132/@datadir@/p
7133/@docdir@/p
7134/@infodir@/p
7135/@localedir@/p
7136/@mandir@/p'
7137case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7138*datarootdir*) ac_datarootdir_seen=yes;;
7139*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7140  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7141$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7142_ACEOF
7143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7144  ac_datarootdir_hack='
7145  s&@datadir@&$datadir&g
7146  s&@docdir@&$docdir&g
7147  s&@infodir@&$infodir&g
7148  s&@localedir@&$localedir&g
7149  s&@mandir@&$mandir&g
7150  s&\\\${datarootdir}&$datarootdir&g' ;;
7151esac
7152_ACEOF
7153
7154# Neutralize VPATH when `$srcdir' = `.'.
7155# Shell code in configure.ac might set extrasub.
7156# FIXME: do we really want to maintain this feature?
7157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7158ac_sed_extra="$ac_vpsub
7159$extrasub
7160_ACEOF
7161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7162:t
7163/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7164s|@configure_input@|$ac_sed_conf_input|;t t
7165s&@top_builddir@&$ac_top_builddir_sub&;t t
7166s&@top_build_prefix@&$ac_top_build_prefix&;t t
7167s&@srcdir@&$ac_srcdir&;t t
7168s&@abs_srcdir@&$ac_abs_srcdir&;t t
7169s&@top_srcdir@&$ac_top_srcdir&;t t
7170s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7171s&@builddir@&$ac_builddir&;t t
7172s&@abs_builddir@&$ac_abs_builddir&;t t
7173s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7174s&@INSTALL@&$ac_INSTALL&;t t
7175$ac_datarootdir_hack
7176"
7177eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7178  || as_fn_error "could not create $ac_file" "$LINENO" 5
7179
7180test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7181  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7182  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7183  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7184which seems to be undefined.  Please make sure it is defined." >&5
7185$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7186which seems to be undefined.  Please make sure it is defined." >&2;}
7187
7188  rm -f "$tmp/stdin"
7189  case $ac_file in
7190  -) cat "$tmp/out" && rm -f "$tmp/out";;
7191  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7192  esac \
7193  || as_fn_error "could not create $ac_file" "$LINENO" 5
7194 ;;
7195  :H)
7196  #
7197  # CONFIG_HEADER
7198  #
7199  if test x"$ac_file" != x-; then
7200    {
7201      $as_echo "/* $configure_input  */" \
7202      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7203    } >"$tmp/config.h" \
7204      || as_fn_error "could not create $ac_file" "$LINENO" 5
7205    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7206      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7207$as_echo "$as_me: $ac_file is unchanged" >&6;}
7208    else
7209      rm -f "$ac_file"
7210      mv "$tmp/config.h" "$ac_file" \
7211	|| as_fn_error "could not create $ac_file" "$LINENO" 5
7212    fi
7213  else
7214    $as_echo "/* $configure_input  */" \
7215      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7216      || as_fn_error "could not create -" "$LINENO" 5
7217  fi
7218 ;;
7219
7220
7221  esac
7222
7223done # for ac_tag
7224
7225
7226as_fn_exit 0
7227_ACEOF
7228ac_clean_files=$ac_clean_files_save
7229
7230test $ac_write_fail = 0 ||
7231  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7232
7233
7234# configure is writing to config.log, and then calls config.status.
7235# config.status does its own redirection, appending to config.log.
7236# Unfortunately, on DOS this fails, as config.log is still kept open
7237# by configure, so config.status won't be able to write to it; its
7238# output is simply discarded.  So we exec the FD to /dev/null,
7239# effectively closing config.log, so it can be properly (re)opened and
7240# appended to by config.status.  When coming back to configure, we
7241# need to make the FD available again.
7242if test "$no_create" != yes; then
7243  ac_cs_success=:
7244  ac_config_status_args=
7245  test "$silent" = yes &&
7246    ac_config_status_args="$ac_config_status_args --quiet"
7247  exec 5>/dev/null
7248  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7249  exec 5>>config.log
7250  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7251  # would make configure fail if this is the last instruction.
7252  $ac_cs_success || as_fn_exit $?
7253fi
7254if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7256$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7257fi
7258
7259
7260cat <<EOF
7261
7262You can now run
7263
7264	sh ./make-bootstrap.sh
7265
7266to produce a fully functional bmake.
7267
7268EOF
7269