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