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