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