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