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