configure revision 1.108
11.1Stv#! /bin/sh
21.1Stv# Guess values for system-dependent variables and create Makefiles.
31.108Schristos# Generated by GNU Autoconf 2.72 for libnbcompat noversion.
41.1Stv#
51.41Ssalo# Report bugs to <lib-bug-people@NetBSD.org>.
61.1Stv#
71.84Schristos#
81.108Schristos# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
91.108Schristos# Inc.
101.84Schristos#
111.84Schristos#
121.1Stv# This configure script is free software; the Free Software Foundation
131.1Stv# gives unlimited permission to copy, distribute and modify it.
141.84Schristos## -------------------- ##
151.84Schristos## M4sh Initialization. ##
161.84Schristos## -------------------- ##
171.84Schristos
181.84Schristos# Be more Bourne compatible
191.84SchristosDUALCASE=1; export DUALCASE # for MKS sh
201.108Schristosif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
211.108Schristosthen :
221.84Schristos  emulate sh
231.84Schristos  NULLCMD=:
241.84Schristos  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
251.84Schristos  # is contrary to our usage.  Disable this feature.
261.84Schristos  alias -g '${1+"$@"}'='"$@"'
271.84Schristos  setopt NO_GLOB_SUBST
281.108Schristoselse case e in #(
291.108Schristos  e) case `(set -o) 2>/dev/null` in #(
301.84Schristos  *posix*) :
311.84Schristos    set -o posix ;; #(
321.84Schristos  *) :
331.84Schristos     ;;
341.108Schristosesac ;;
351.84Schristosesac
361.84Schristosfi
371.84Schristos
381.84Schristos
391.108Schristos
401.108Schristos# Reset variables that may have inherited troublesome values from
411.108Schristos# the environment.
421.108Schristos
431.108Schristos# IFS needs to be set, to space, tab, and newline, in precisely that order.
441.108Schristos# (If _AS_PATH_WALK were called with IFS unset, it would have the
451.108Schristos# side effect of setting IFS to empty, thus disabling word splitting.)
461.108Schristos# Quoting is to prevent editors from complaining about space-tab.
471.84Schristosas_nl='
481.84Schristos'
491.84Schristosexport as_nl
501.108SchristosIFS=" ""	$as_nl"
511.108Schristos
521.108SchristosPS1='$ '
531.108SchristosPS2='> '
541.108SchristosPS4='+ '
551.108Schristos
561.108Schristos# Ensure predictable behavior from utilities with locale-dependent output.
571.108SchristosLC_ALL=C
581.108Schristosexport LC_ALL
591.108SchristosLANGUAGE=C
601.108Schristosexport LANGUAGE
611.108Schristos
621.108Schristos# We cannot yet rely on "unset" to work, but we need these variables
631.108Schristos# to be unset--not just set to an empty or harmless value--now, to
641.108Schristos# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
651.108Schristos# also avoids known problems related to "unset" and subshell syntax
661.108Schristos# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
671.108Schristosfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
681.108Schristosdo eval test \${$as_var+y} \
691.108Schristos  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
701.108Schristosdone
711.108Schristos
721.108Schristos# Ensure that fds 0, 1, and 2 are open.
731.108Schristosif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
741.108Schristosif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
751.108Schristosif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
761.84Schristos
771.84Schristos# The user is always right.
781.108Schristosif ${PATH_SEPARATOR+false} :; then
791.84Schristos  PATH_SEPARATOR=:
801.84Schristos  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
811.84Schristos    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
821.84Schristos      PATH_SEPARATOR=';'
831.84Schristos  }
841.84Schristosfi
851.74Schristos
861.74Schristos
871.84Schristos# Find who we are.  Look in the path if we contain no directory separator.
881.84Schristosas_myself=
891.84Schristoscase $0 in #((
901.84Schristos  *[\\/]* ) as_myself=$0 ;;
911.84Schristos  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
921.84Schristosfor as_dir in $PATH
931.84Schristosdo
941.84Schristos  IFS=$as_save_IFS
951.108Schristos  case $as_dir in #(((
961.108Schristos    '') as_dir=./ ;;
971.108Schristos    */) ;;
981.108Schristos    *) as_dir=$as_dir/ ;;
991.108Schristos  esac
1001.108Schristos    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1011.84Schristos  done
1021.84SchristosIFS=$as_save_IFS
1031.84Schristos
1041.84Schristos     ;;
1051.84Schristosesac
1061.108Schristos# We did not find ourselves, most probably we were run as 'sh COMMAND'
1071.84Schristos# in which case we are not to be found in the path.
1081.84Schristosif test "x$as_myself" = x; then
1091.84Schristos  as_myself=$0
1101.84Schristosfi
1111.84Schristosif test ! -f "$as_myself"; then
1121.108Schristos  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1131.84Schristos  exit 1
1141.84Schristosfi
1151.84Schristos
1161.65Schristos
1171.84Schristos# Use a proper internal environment variable to ensure we don't fall
1181.84Schristos  # into an infinite loop, continuously re-executing ourselves.
1191.84Schristos  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1201.84Schristos    _as_can_reexec=no; export _as_can_reexec;
1211.84Schristos    # We cannot yet assume a decent shell, so we have to provide a
1221.84Schristos# neutralization value for shells without unset; and this also
1231.84Schristos# works around shells that cannot unset nonexistent variables.
1241.84Schristos# Preserve -v and -x to the replacement shell.
1251.84SchristosBASH_ENV=/dev/null
1261.84SchristosENV=/dev/null
1271.84Schristos(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1281.84Schristoscase $- in # ((((
1291.84Schristos  *v*x* | *x*v* ) as_opts=-vx ;;
1301.84Schristos  *v* ) as_opts=-v ;;
1311.84Schristos  *x* ) as_opts=-x ;;
1321.84Schristos  * ) as_opts= ;;
1331.84Schristosesac
1341.84Schristosexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1351.84Schristos# Admittedly, this is quite paranoid, since all the known shells bail
1361.108Schristos# out after a failed 'exec'.
1371.108Schristosprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1381.108Schristosexit 255
1391.84Schristos  fi
1401.84Schristos  # We don't want this to propagate to other subprocesses.
1411.84Schristos          { _as_can_reexec=; unset _as_can_reexec;}
1421.84Schristosif test "x$CONFIG_SHELL" = x; then
1431.108Schristos  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
1441.108Schristosthen :
1451.65Schristos  emulate sh
1461.65Schristos  NULLCMD=:
1471.84Schristos  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1481.84Schristos  # is contrary to our usage.  Disable this feature.
1491.84Schristos  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1501.84Schristos  setopt NO_GLOB_SUBST
1511.108Schristoselse case e in #(
1521.108Schristos  e) case \`(set -o) 2>/dev/null\` in #(
1531.84Schristos  *posix*) :
1541.84Schristos    set -o posix ;; #(
1551.84Schristos  *) :
1561.84Schristos     ;;
1571.108Schristosesac ;;
1581.84Schristosesac
1591.84Schristosfi
1601.84Schristos"
1611.84Schristos  as_required="as_fn_return () { (exit \$1); }
1621.84Schristosas_fn_success () { as_fn_return 0; }
1631.84Schristosas_fn_failure () { as_fn_return 1; }
1641.84Schristosas_fn_ret_success () { return 0; }
1651.84Schristosas_fn_ret_failure () { return 1; }
1661.84Schristos
1671.84Schristosexitcode=0
1681.84Schristosas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1691.84Schristosas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1701.84Schristosas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1711.84Schristosas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1721.108Schristosif ( set x; as_fn_ret_success y && test x = \"\$1\" )
1731.108Schristosthen :
1741.84Schristos
1751.108Schristoselse case e in #(
1761.108Schristos  e) exitcode=1; echo positional parameters were not saved. ;;
1771.108Schristosesac
1781.84Schristosfi
1791.84Schristostest x\$exitcode = x0 || exit 1
1801.108Schristosblah=\$(echo \$(echo blah))
1811.108Schristostest x\"\$blah\" = xblah || exit 1
1821.84Schristostest -x / || exit 1"
1831.84Schristos  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1841.84Schristos  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1851.84Schristos  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1861.84Schristos  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1871.84Schristostest \$(( 1 + 1 )) = 2 || exit 1"
1881.108Schristos  if (eval "$as_required") 2>/dev/null
1891.108Schristosthen :
1901.84Schristos  as_have_required=yes
1911.108Schristoselse case e in #(
1921.108Schristos  e) as_have_required=no ;;
1931.108Schristosesac
1941.84Schristosfi
1951.108Schristos  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
1961.108Schristosthen :
1971.84Schristos
1981.108Schristoselse case e in #(
1991.108Schristos  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001.84Schristosas_found=false
2011.84Schristosfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2021.84Schristosdo
2031.84Schristos  IFS=$as_save_IFS
2041.108Schristos  case $as_dir in #(((
2051.108Schristos    '') as_dir=./ ;;
2061.108Schristos    */) ;;
2071.108Schristos    *) as_dir=$as_dir/ ;;
2081.108Schristos  esac
2091.84Schristos  as_found=:
2101.84Schristos  case $as_dir in #(
2111.84Schristos	 /*)
2121.84Schristos	   for as_base in sh bash ksh sh5; do
2131.84Schristos	     # Try only shells that exist, to save several forks.
2141.108Schristos	     as_shell=$as_dir$as_base
2151.84Schristos	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2161.108Schristos		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
2171.108Schristosthen :
2181.84Schristos  CONFIG_SHELL=$as_shell as_have_required=yes
2191.108Schristos		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
2201.108Schristosthen :
2211.84Schristos  break 2
2221.84Schristosfi
2231.84Schristosfi
2241.84Schristos	   done;;
2251.84Schristos       esac
2261.84Schristos  as_found=false
2271.84Schristosdone
2281.108SchristosIFS=$as_save_IFS
2291.108Schristosif $as_found
2301.108Schristosthen :
2311.108Schristos
2321.108Schristoselse case e in #(
2331.108Schristos  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2341.108Schristos	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
2351.108Schristosthen :
2361.84Schristos  CONFIG_SHELL=$SHELL as_have_required=yes
2371.108Schristosfi ;;
2381.108Schristosesac
2391.108Schristosfi
2401.84Schristos
2411.84Schristos
2421.108Schristos      if test "x$CONFIG_SHELL" != x
2431.108Schristosthen :
2441.84Schristos  export CONFIG_SHELL
2451.84Schristos             # We cannot yet assume a decent shell, so we have to provide a
2461.84Schristos# neutralization value for shells without unset; and this also
2471.84Schristos# works around shells that cannot unset nonexistent variables.
2481.84Schristos# Preserve -v and -x to the replacement shell.
2491.84SchristosBASH_ENV=/dev/null
2501.84SchristosENV=/dev/null
2511.84Schristos(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2521.84Schristoscase $- in # ((((
2531.84Schristos  *v*x* | *x*v* ) as_opts=-vx ;;
2541.84Schristos  *v* ) as_opts=-v ;;
2551.84Schristos  *x* ) as_opts=-x ;;
2561.84Schristos  * ) as_opts= ;;
2571.84Schristosesac
2581.84Schristosexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2591.84Schristos# Admittedly, this is quite paranoid, since all the known shells bail
2601.108Schristos# out after a failed 'exec'.
2611.108Schristosprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
2621.84Schristosexit 255
2631.65Schristosfi
2641.61Schristos
2651.108Schristos    if test x$as_have_required = xno
2661.108Schristosthen :
2671.108Schristos  printf "%s\n" "$0: This script requires a shell more modern than all"
2681.108Schristos  printf "%s\n" "$0: the shells that I found on your system."
2691.108Schristos  if test ${ZSH_VERSION+y} ; then
2701.108Schristos    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2711.108Schristos    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
2721.84Schristos  else
2731.108Schristos    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
2741.84Schristos$0: lib-bug-people@NetBSD.org about your system, including
2751.84Schristos$0: any error possibly output before this message. Then
2761.84Schristos$0: install a modern shell, or manually run the script
2771.84Schristos$0: under such a shell if you do have one."
2781.84Schristos  fi
2791.84Schristos  exit 1
2801.108Schristosfi ;;
2811.108Schristosesac
2821.84Schristosfi
2831.84Schristosfi
2841.84SchristosSHELL=${CONFIG_SHELL-/bin/sh}
2851.84Schristosexport SHELL
2861.84Schristos# Unset more variables known to interfere with behavior of common tools.
2871.84SchristosCLICOLOR_FORCE= GREP_OPTIONS=
2881.84Schristosunset CLICOLOR_FORCE GREP_OPTIONS
2891.84Schristos
2901.84Schristos## --------------------- ##
2911.84Schristos## M4sh Shell Functions. ##
2921.84Schristos## --------------------- ##
2931.84Schristos# as_fn_unset VAR
2941.84Schristos# ---------------
2951.84Schristos# Portably unset VAR.
2961.84Schristosas_fn_unset ()
2971.84Schristos{
2981.84Schristos  { eval $1=; unset $1;}
2991.84Schristos}
3001.84Schristosas_unset=as_fn_unset
3011.84Schristos
3021.108Schristos
3031.84Schristos# as_fn_set_status STATUS
3041.84Schristos# -----------------------
3051.84Schristos# Set $? to STATUS, without forking.
3061.84Schristosas_fn_set_status ()
3071.84Schristos{
3081.84Schristos  return $1
3091.84Schristos} # as_fn_set_status
3101.84Schristos
3111.84Schristos# as_fn_exit STATUS
3121.84Schristos# -----------------
3131.84Schristos# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3141.84Schristosas_fn_exit ()
3151.84Schristos{
3161.84Schristos  set +e
3171.84Schristos  as_fn_set_status $1
3181.84Schristos  exit $1
3191.84Schristos} # as_fn_exit
3201.84Schristos
3211.84Schristos# as_fn_mkdir_p
3221.84Schristos# -------------
3231.84Schristos# Create "$as_dir" as a directory, including parents if necessary.
3241.84Schristosas_fn_mkdir_p ()
3251.84Schristos{
3261.84Schristos
3271.84Schristos  case $as_dir in #(
3281.84Schristos  -*) as_dir=./$as_dir;;
3291.84Schristos  esac
3301.84Schristos  test -d "$as_dir" || eval $as_mkdir_p || {
3311.84Schristos    as_dirs=
3321.84Schristos    while :; do
3331.84Schristos      case $as_dir in #(
3341.108Schristos      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3351.84Schristos      *) as_qdir=$as_dir;;
3361.84Schristos      esac
3371.84Schristos      as_dirs="'$as_qdir' $as_dirs"
3381.84Schristos      as_dir=`$as_dirname -- "$as_dir" ||
3391.84Schristos$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3401.84Schristos	 X"$as_dir" : 'X\(//\)[^/]' \| \
3411.84Schristos	 X"$as_dir" : 'X\(//\)$' \| \
3421.84Schristos	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3431.108Schristosprintf "%s\n" X"$as_dir" |
3441.84Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3451.84Schristos	    s//\1/
3461.84Schristos	    q
3471.84Schristos	  }
3481.84Schristos	  /^X\(\/\/\)[^/].*/{
3491.84Schristos	    s//\1/
3501.84Schristos	    q
3511.84Schristos	  }
3521.84Schristos	  /^X\(\/\/\)$/{
3531.84Schristos	    s//\1/
3541.84Schristos	    q
3551.84Schristos	  }
3561.84Schristos	  /^X\(\/\).*/{
3571.84Schristos	    s//\1/
3581.84Schristos	    q
3591.84Schristos	  }
3601.84Schristos	  s/.*/./; q'`
3611.84Schristos      test -d "$as_dir" && break
3621.84Schristos    done
3631.84Schristos    test -z "$as_dirs" || eval "mkdir $as_dirs"
3641.84Schristos  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3651.84Schristos
3661.84Schristos
3671.84Schristos} # as_fn_mkdir_p
3681.84Schristos
3691.84Schristos# as_fn_executable_p FILE
3701.84Schristos# -----------------------
3711.84Schristos# Test if FILE is an executable regular file.
3721.84Schristosas_fn_executable_p ()
3731.84Schristos{
3741.84Schristos  test -f "$1" && test -x "$1"
3751.84Schristos} # as_fn_executable_p
3761.84Schristos# as_fn_append VAR VALUE
3771.84Schristos# ----------------------
3781.84Schristos# Append the text in VALUE to the end of the definition contained in VAR. Take
3791.84Schristos# advantage of any shell optimizations that allow amortized linear growth over
3801.84Schristos# repeated appends, instead of the typical quadratic growth present in naive
3811.84Schristos# implementations.
3821.108Schristosif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3831.108Schristosthen :
3841.84Schristos  eval 'as_fn_append ()
3851.84Schristos  {
3861.84Schristos    eval $1+=\$2
3871.84Schristos  }'
3881.108Schristoselse case e in #(
3891.108Schristos  e) as_fn_append ()
3901.84Schristos  {
3911.84Schristos    eval $1=\$$1\$2
3921.108Schristos  } ;;
3931.108Schristosesac
3941.84Schristosfi # as_fn_append
3951.84Schristos
3961.84Schristos# as_fn_arith ARG...
3971.84Schristos# ------------------
3981.84Schristos# Perform arithmetic evaluation on the ARGs, and store the result in the
3991.84Schristos# global $as_val. Take advantage of shells that can avoid forks. The arguments
4001.84Schristos# must be portable across $(()) and expr.
4011.108Schristosif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4021.108Schristosthen :
4031.84Schristos  eval 'as_fn_arith ()
4041.84Schristos  {
4051.84Schristos    as_val=$(( $* ))
4061.84Schristos  }'
4071.108Schristoselse case e in #(
4081.108Schristos  e) as_fn_arith ()
4091.84Schristos  {
4101.84Schristos    as_val=`expr "$@" || test $? -eq 1`
4111.108Schristos  } ;;
4121.108Schristosesac
4131.84Schristosfi # as_fn_arith
4141.84Schristos
4151.84Schristos
4161.84Schristos# as_fn_error STATUS ERROR [LINENO LOG_FD]
4171.84Schristos# ----------------------------------------
4181.84Schristos# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4191.84Schristos# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4201.84Schristos# script with STATUS, using 1 if that was 0.
4211.84Schristosas_fn_error ()
4221.84Schristos{
4231.84Schristos  as_status=$1; test $as_status -eq 0 && as_status=1
4241.84Schristos  if test "$4"; then
4251.84Schristos    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4261.108Schristos    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4271.84Schristos  fi
4281.108Schristos  printf "%s\n" "$as_me: error: $2" >&2
4291.84Schristos  as_fn_exit $as_status
4301.84Schristos} # as_fn_error
4311.61Schristos
4321.84Schristosif expr a : '\(a\)' >/dev/null 2>&1 &&
4331.84Schristos   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4341.1Stv  as_expr=expr
4351.1Stvelse
4361.1Stv  as_expr=false
4371.1Stvfi
4381.1Stv
4391.84Schristosif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4401.84Schristos  as_basename=basename
4411.84Schristoselse
4421.84Schristos  as_basename=false
4431.84Schristosfi
4441.84Schristos
4451.84Schristosif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4461.84Schristos  as_dirname=dirname
4471.84Schristoselse
4481.84Schristos  as_dirname=false
4491.84Schristosfi
4501.84Schristos
4511.84Schristosas_me=`$as_basename -- "$0" ||
4521.84Schristos$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4531.84Schristos	 X"$0" : 'X\(//\)$' \| \
4541.84Schristos	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4551.108Schristosprintf "%s\n" X/"$0" |
4561.84Schristos    sed '/^.*\/\([^/][^/]*\)\/*$/{
4571.84Schristos	    s//\1/
4581.84Schristos	    q
4591.84Schristos	  }
4601.84Schristos	  /^X\/\(\/\/\)$/{
4611.84Schristos	    s//\1/
4621.84Schristos	    q
4631.84Schristos	  }
4641.84Schristos	  /^X\/\(\/\).*/{
4651.84Schristos	    s//\1/
4661.84Schristos	    q
4671.84Schristos	  }
4681.84Schristos	  s/.*/./; q'`
4691.84Schristos
4701.84Schristos# Avoid depending upon Character Ranges.
4711.84Schristosas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4721.84Schristosas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4731.84Schristosas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4741.84Schristosas_cr_digits='0123456789'
4751.84Schristosas_cr_alnum=$as_cr_Letters$as_cr_digits
4761.84Schristos
4771.84Schristos
4781.84Schristos  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4791.84Schristos  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4801.84Schristos  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4811.84Schristos  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4821.84Schristos  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4831.84Schristos  sed -n '
4841.84Schristos    p
4851.84Schristos    /[$]LINENO/=
4861.84Schristos  ' <$as_myself |
4871.84Schristos    sed '
4881.108Schristos      t clear
4891.108Schristos      :clear
4901.84Schristos      s/[$]LINENO.*/&-/
4911.84Schristos      t lineno
4921.84Schristos      b
4931.84Schristos      :lineno
4941.84Schristos      N
4951.84Schristos      :loop
4961.84Schristos      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4971.84Schristos      t loop
4981.84Schristos      s/-\n.*//
4991.84Schristos    ' >$as_me.lineno &&
5001.84Schristos  chmod +x "$as_me.lineno" ||
5011.108Schristos    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5021.84Schristos
5031.84Schristos  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5041.84Schristos  # already done that, so ensure we don't try to do so again and fall
5051.84Schristos  # in an infinite loop.  This has already happened in practice.
5061.84Schristos  _as_can_reexec=no; export _as_can_reexec
5071.84Schristos  # Don't try to exec as it changes $[0], causing all sort of problems
5081.84Schristos  # (the dirname of $[0] is not the place where we might find the
5091.84Schristos  # original and so on.  Autoconf is especially sensitive to this).
5101.84Schristos  . "./$as_me.lineno"
5111.84Schristos  # Exit status is that of the last command.
5121.84Schristos  exit
5131.84Schristos}
5141.84Schristos
5151.108Schristos
5161.108Schristos# Determine whether it's possible to make 'echo' print without a newline.
5171.108Schristos# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5181.108Schristos# for compatibility with existing Makefiles.
5191.84SchristosECHO_C= ECHO_N= ECHO_T=
5201.84Schristoscase `echo -n x` in #(((((
5211.84Schristos-n*)
5221.84Schristos  case `echo 'xy\c'` in
5231.84Schristos  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5241.84Schristos  xy)  ECHO_C='\c';;
5251.84Schristos  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5261.84Schristos       ECHO_T='	';;
5271.84Schristos  esac;;
5281.84Schristos*)
5291.84Schristos  ECHO_N='-n';;
5301.84Schristosesac
5311.84Schristos
5321.108Schristos# For backward compatibility with old third-party macros, we provide
5331.108Schristos# the shell variables $as_echo and $as_echo_n.  New code should use
5341.108Schristos# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5351.108Schristosas_echo='printf %s\n'
5361.108Schristosas_echo_n='printf %s'
5371.108Schristos
5381.1Stvrm -f conf$$ conf$$.exe conf$$.file
5391.84Schristosif test -d conf$$.dir; then
5401.84Schristos  rm -f conf$$.dir/conf$$.file
5411.84Schristoselse
5421.84Schristos  rm -f conf$$.dir
5431.84Schristos  mkdir conf$$.dir 2>/dev/null
5441.84Schristosfi
5451.84Schristosif (echo >conf$$.file) 2>/dev/null; then
5461.84Schristos  if ln -s conf$$.file conf$$ 2>/dev/null; then
5471.84Schristos    as_ln_s='ln -s'
5481.84Schristos    # ... but there are two gotchas:
5491.108Schristos    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
5501.108Schristos    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
5511.108Schristos    # In both cases, we have to default to 'cp -pR'.
5521.84Schristos    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5531.84Schristos      as_ln_s='cp -pR'
5541.84Schristos  elif ln conf$$.file conf$$ 2>/dev/null; then
5551.84Schristos    as_ln_s=ln
5561.76Spooka  else
5571.84Schristos    as_ln_s='cp -pR'
5581.66Stsutsui  fi
5591.1Stvelse
5601.84Schristos  as_ln_s='cp -pR'
5611.1Stvfi
5621.84Schristosrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5631.84Schristosrmdir conf$$.dir 2>/dev/null
5641.63Sapb
5651.84Schristosif mkdir -p . 2>/dev/null; then
5661.84Schristos  as_mkdir_p='mkdir -p "$as_dir"'
5671.61Schristoselse
5681.84Schristos  test -d ./-p && rmdir ./-p
5691.84Schristos  as_mkdir_p=false
5701.61Schristosfi
5711.65Schristos
5721.84Schristosas_test_x='test -x'
5731.84Schristosas_executable_p=as_fn_executable_p
5741.84Schristos
5751.84Schristos# Sed expression to map a string onto a valid CPP name.
5761.108Schristosas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5771.108Schristosas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
5781.84Schristos
5791.84Schristos# Sed expression to map a string onto a valid variable name.
5801.108Schristosas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5811.108Schristosas_tr_sh="eval sed '$as_sed_sh'" # deprecated
5821.74Schristos
5831.74Schristos
5841.84Schristostest -n "$DJDIR" || exec 7<&0 </dev/null
5851.84Schristosexec 6>&1
5861.1Stv
5871.1Stv# Name of the host.
5881.84Schristos# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5891.1Stv# so uname gets run too.
5901.1Stvac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5911.1Stv
5921.1Stv#
5931.1Stv# Initializations.
5941.1Stv#
5951.1Stvac_default_prefix=/usr/local
5961.84Schristosac_clean_files=
5971.84Schristosac_config_libobj_dir=.
5981.84SchristosLIBOBJS=
5991.1Stvcross_compiling=no
6001.1Stvsubdirs=
6011.84SchristosMFLAGS=
6021.84SchristosMAKEFLAGS=
6031.1Stv
6041.84Schristos# Identity of this package.
6051.84SchristosPACKAGE_NAME='libnbcompat'
6061.84SchristosPACKAGE_TARNAME='libnbcompat'
6071.84SchristosPACKAGE_VERSION='noversion'
6081.84SchristosPACKAGE_STRING='libnbcompat noversion'
6091.84SchristosPACKAGE_BUGREPORT='lib-bug-people@NetBSD.org'
6101.84SchristosPACKAGE_URL=''
6111.1Stv
6121.1Stv# Factoring default headers for most tests.
6131.1Stvac_includes_default="\
6141.108Schristos#include <stddef.h>
6151.108Schristos#ifdef HAVE_STDIO_H
6161.108Schristos# include <stdio.h>
6171.1Stv#endif
6181.108Schristos#ifdef HAVE_STDLIB_H
6191.1Stv# include <stdlib.h>
6201.1Stv#endif
6211.84Schristos#ifdef HAVE_STRING_H
6221.1Stv# include <string.h>
6231.1Stv#endif
6241.84Schristos#ifdef HAVE_INTTYPES_H
6251.1Stv# include <inttypes.h>
6261.1Stv#endif
6271.84Schristos#ifdef HAVE_STDINT_H
6281.84Schristos# include <stdint.h>
6291.84Schristos#endif
6301.108Schristos#ifdef HAVE_STRINGS_H
6311.108Schristos# include <strings.h>
6321.108Schristos#endif
6331.108Schristos#ifdef HAVE_SYS_TYPES_H
6341.108Schristos# include <sys/types.h>
6351.108Schristos#endif
6361.108Schristos#ifdef HAVE_SYS_STAT_H
6371.108Schristos# include <sys/stat.h>
6381.108Schristos#endif
6391.84Schristos#ifdef HAVE_UNISTD_H
6401.1Stv# include <unistd.h>
6411.1Stv#endif"
6421.1Stv
6431.108Schristosac_header_c_list=
6441.84Schristosac_subst_vars='LTLIBOBJS
6451.84SchristosLIBOBJS
6461.102SlukemCC_WNO_STRINGOP_TRUNCATION
6471.102SlukemCC_WNO_STRINGOP_OVERFLOW
6481.103SlukemCC_WNO_RETURN_LOCAL_ADDR
6491.102SlukemCC_WNO_MAYBE_UNINITIALIZED
6501.103SlukemCC_WNO_IMPLICIT_FALLTHROUGH
6511.102SlukemCC_WNO_FORMAT_TRUNCATION
6521.103SlukemCC_WNO_FORMAT_OVERFLOW
6531.103SlukemCC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER
6541.103SlukemCC_WNO_CAST_FUNCTION_TYPE
6551.103SlukemCC_WNO_ADDRESS_OF_PACKED_MEMBER
6561.102SlukemCC_NO_CPP_PRECOMP
6571.84SchristosALLOCA
6581.84SchristosEGREP
6591.84SchristosGREP
6601.108SchristosBSHELL
6611.84SchristosCPP
6621.84SchristosOBJEXT
6631.84SchristosEXEEXT
6641.84Schristosac_ct_CC
6651.84SchristosCPPFLAGS
6661.84SchristosLDFLAGS
6671.84SchristosCFLAGS
6681.84SchristosCC
6691.84Schristostarget_alias
6701.84Schristoshost_alias
6711.84Schristosbuild_alias
6721.84SchristosLIBS
6731.84SchristosECHO_T
6741.84SchristosECHO_N
6751.84SchristosECHO_C
6761.84SchristosDEFS
6771.84Schristosmandir
6781.84Schristoslocaledir
6791.84Schristoslibdir
6801.84Schristospsdir
6811.84Schristospdfdir
6821.84Schristosdvidir
6831.84Schristoshtmldir
6841.84Schristosinfodir
6851.84Schristosdocdir
6861.84Schristosoldincludedir
6871.84Schristosincludedir
6881.108Schristosrunstatedir
6891.84Schristoslocalstatedir
6901.84Schristossharedstatedir
6911.84Schristossysconfdir
6921.84Schristosdatadir
6931.84Schristosdatarootdir
6941.84Schristoslibexecdir
6951.84Schristossbindir
6961.84Schristosbindir
6971.84Schristosprogram_transform_name
6981.84Schristosprefix
6991.84Schristosexec_prefix
7001.84SchristosPACKAGE_URL
7011.84SchristosPACKAGE_BUGREPORT
7021.84SchristosPACKAGE_STRING
7031.84SchristosPACKAGE_VERSION
7041.84SchristosPACKAGE_TARNAME
7051.84SchristosPACKAGE_NAME
7061.84SchristosPATH_SEPARATOR
7071.84SchristosSHELL'
7081.84Schristosac_subst_files=''
7091.84Schristosac_user_opts='
7101.84Schristosenable_option_checking
7111.84Schristos'
7121.84Schristos      ac_precious_vars='build_alias
7131.84Schristoshost_alias
7141.84Schristostarget_alias
7151.84SchristosCC
7161.84SchristosCFLAGS
7171.84SchristosLDFLAGS
7181.84SchristosLIBS
7191.84SchristosCPPFLAGS
7201.84SchristosCPP'
7211.84Schristos
7221.84Schristos
7231.1Stv# Initialize some variables set by options.
7241.1Stvac_init_help=
7251.1Stvac_init_version=false
7261.84Schristosac_unrecognized_opts=
7271.84Schristosac_unrecognized_sep=
7281.1Stv# The variables have the same names as the options, with
7291.1Stv# dashes changed to underlines.
7301.1Stvcache_file=/dev/null
7311.1Stvexec_prefix=NONE
7321.1Stvno_create=
7331.1Stvno_recursion=
7341.1Stvprefix=NONE
7351.1Stvprogram_prefix=NONE
7361.1Stvprogram_suffix=NONE
7371.1Stvprogram_transform_name=s,x,x,
7381.1Stvsilent=
7391.1Stvsite=
7401.1Stvsrcdir=
7411.1Stvverbose=
7421.1Stvx_includes=NONE
7431.1Stvx_libraries=NONE
7441.1Stv
7451.1Stv# Installation directory options.
7461.1Stv# These are left unexpanded so users can "make install exec_prefix=/foo"
7471.1Stv# and all the variables that are supposed to be based on exec_prefix
7481.1Stv# by default will actually change.
7491.1Stv# Use braces instead of parens because sh, perl, etc. also accept them.
7501.84Schristos# (The list follows the same order as the GNU Coding Standards.)
7511.1Stvbindir='${exec_prefix}/bin'
7521.1Stvsbindir='${exec_prefix}/sbin'
7531.1Stvlibexecdir='${exec_prefix}/libexec'
7541.84Schristosdatarootdir='${prefix}/share'
7551.84Schristosdatadir='${datarootdir}'
7561.1Stvsysconfdir='${prefix}/etc'
7571.1Stvsharedstatedir='${prefix}/com'
7581.1Stvlocalstatedir='${prefix}/var'
7591.108Schristosrunstatedir='${localstatedir}/run'
7601.1Stvincludedir='${prefix}/include'
7611.1Stvoldincludedir='/usr/include'
7621.84Schristosdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7631.84Schristosinfodir='${datarootdir}/info'
7641.84Schristoshtmldir='${docdir}'
7651.84Schristosdvidir='${docdir}'
7661.84Schristospdfdir='${docdir}'
7671.84Schristospsdir='${docdir}'
7681.84Schristoslibdir='${exec_prefix}/lib'
7691.84Schristoslocaledir='${datarootdir}/locale'
7701.84Schristosmandir='${datarootdir}/man'
7711.63Sapb
7721.1Stvac_prev=
7731.84Schristosac_dashdash=
7741.1Stvfor ac_option
7751.1Stvdo
7761.1Stv  # If the previous option needs an argument, assign it.
7771.1Stv  if test -n "$ac_prev"; then
7781.84Schristos    eval $ac_prev=\$ac_option
7791.1Stv    ac_prev=
7801.1Stv    continue
7811.1Stv  fi
7821.1Stv
7831.84Schristos  case $ac_option in
7841.84Schristos  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
7851.84Schristos  *=)   ac_optarg= ;;
7861.84Schristos  *)    ac_optarg=yes ;;
7871.84Schristos  esac
7881.1Stv
7891.84Schristos  case $ac_dashdash$ac_option in
7901.84Schristos  --)
7911.84Schristos    ac_dashdash=yes ;;
7921.1Stv
7931.1Stv  -bindir | --bindir | --bindi | --bind | --bin | --bi)
7941.1Stv    ac_prev=bindir ;;
7951.1Stv  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
7961.1Stv    bindir=$ac_optarg ;;
7971.1Stv
7981.1Stv  -build | --build | --buil | --bui | --bu)
7991.1Stv    ac_prev=build_alias ;;
8001.1Stv  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8011.1Stv    build_alias=$ac_optarg ;;
8021.1Stv
8031.1Stv  -cache-file | --cache-file | --cache-fil | --cache-fi \
8041.1Stv  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8051.1Stv    ac_prev=cache_file ;;
8061.1Stv  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8071.1Stv  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8081.1Stv    cache_file=$ac_optarg ;;
8091.1Stv
8101.1Stv  --config-cache | -C)
8111.1Stv    cache_file=config.cache ;;
8121.1Stv
8131.84Schristos  -datadir | --datadir | --datadi | --datad)
8141.1Stv    ac_prev=datadir ;;
8151.84Schristos  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8161.1Stv    datadir=$ac_optarg ;;
8171.1Stv
8181.84Schristos  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8191.84Schristos  | --dataroo | --dataro | --datar)
8201.84Schristos    ac_prev=datarootdir ;;
8211.84Schristos  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8221.84Schristos  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8231.84Schristos    datarootdir=$ac_optarg ;;
8241.84Schristos
8251.1Stv  -disable-* | --disable-*)
8261.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8271.1Stv    # Reject names that are not valid shell variable names.
8281.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8291.108Schristos      as_fn_error $? "invalid feature name: '$ac_useropt'"
8301.84Schristos    ac_useropt_orig=$ac_useropt
8311.108Schristos    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
8321.84Schristos    case $ac_user_opts in
8331.84Schristos      *"
8341.84Schristos"enable_$ac_useropt"
8351.84Schristos"*) ;;
8361.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8371.84Schristos	 ac_unrecognized_sep=', ';;
8381.84Schristos    esac
8391.84Schristos    eval enable_$ac_useropt=no ;;
8401.84Schristos
8411.84Schristos  -docdir | --docdir | --docdi | --doc | --do)
8421.84Schristos    ac_prev=docdir ;;
8431.84Schristos  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8441.84Schristos    docdir=$ac_optarg ;;
8451.84Schristos
8461.84Schristos  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8471.84Schristos    ac_prev=dvidir ;;
8481.84Schristos  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
8491.84Schristos    dvidir=$ac_optarg ;;
8501.1Stv
8511.1Stv  -enable-* | --enable-*)
8521.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8531.1Stv    # Reject names that are not valid shell variable names.
8541.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8551.108Schristos      as_fn_error $? "invalid feature name: '$ac_useropt'"
8561.84Schristos    ac_useropt_orig=$ac_useropt
8571.108Schristos    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
8581.84Schristos    case $ac_user_opts in
8591.84Schristos      *"
8601.84Schristos"enable_$ac_useropt"
8611.84Schristos"*) ;;
8621.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8631.84Schristos	 ac_unrecognized_sep=', ';;
8641.66Stsutsui    esac
8651.84Schristos    eval enable_$ac_useropt=\$ac_optarg ;;
8661.1Stv
8671.1Stv  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8681.1Stv  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8691.1Stv  | --exec | --exe | --ex)
8701.1Stv    ac_prev=exec_prefix ;;
8711.1Stv  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8721.1Stv  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8731.1Stv  | --exec=* | --exe=* | --ex=*)
8741.1Stv    exec_prefix=$ac_optarg ;;
8751.1Stv
8761.1Stv  -gas | --gas | --ga | --g)
8771.1Stv    # Obsolete; use --with-gas.
8781.1Stv    with_gas=yes ;;
8791.1Stv
8801.1Stv  -help | --help | --hel | --he | -h)
8811.1Stv    ac_init_help=long ;;
8821.1Stv  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
8831.1Stv    ac_init_help=recursive ;;
8841.1Stv  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
8851.1Stv    ac_init_help=short ;;
8861.1Stv
8871.1Stv  -host | --host | --hos | --ho)
8881.1Stv    ac_prev=host_alias ;;
8891.1Stv  -host=* | --host=* | --hos=* | --ho=*)
8901.1Stv    host_alias=$ac_optarg ;;
8911.1Stv
8921.84Schristos  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
8931.84Schristos    ac_prev=htmldir ;;
8941.84Schristos  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
8951.84Schristos  | --ht=*)
8961.84Schristos    htmldir=$ac_optarg ;;
8971.84Schristos
8981.1Stv  -includedir | --includedir | --includedi | --included | --include \
8991.1Stv  | --includ | --inclu | --incl | --inc)
9001.1Stv    ac_prev=includedir ;;
9011.1Stv  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9021.1Stv  | --includ=* | --inclu=* | --incl=* | --inc=*)
9031.1Stv    includedir=$ac_optarg ;;
9041.1Stv
9051.1Stv  -infodir | --infodir | --infodi | --infod | --info | --inf)
9061.1Stv    ac_prev=infodir ;;
9071.1Stv  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9081.1Stv    infodir=$ac_optarg ;;
9091.1Stv
9101.1Stv  -libdir | --libdir | --libdi | --libd)
9111.1Stv    ac_prev=libdir ;;
9121.1Stv  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9131.1Stv    libdir=$ac_optarg ;;
9141.1Stv
9151.1Stv  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9161.1Stv  | --libexe | --libex | --libe)
9171.1Stv    ac_prev=libexecdir ;;
9181.1Stv  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9191.1Stv  | --libexe=* | --libex=* | --libe=*)
9201.1Stv    libexecdir=$ac_optarg ;;
9211.1Stv
9221.84Schristos  -localedir | --localedir | --localedi | --localed | --locale)
9231.84Schristos    ac_prev=localedir ;;
9241.84Schristos  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9251.84Schristos    localedir=$ac_optarg ;;
9261.84Schristos
9271.1Stv  -localstatedir | --localstatedir | --localstatedi | --localstated \
9281.84Schristos  | --localstate | --localstat | --localsta | --localst | --locals)
9291.1Stv    ac_prev=localstatedir ;;
9301.1Stv  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9311.84Schristos  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9321.1Stv    localstatedir=$ac_optarg ;;
9331.1Stv
9341.1Stv  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9351.1Stv    ac_prev=mandir ;;
9361.1Stv  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9371.1Stv    mandir=$ac_optarg ;;
9381.1Stv
9391.1Stv  -nfp | --nfp | --nf)
9401.1Stv    # Obsolete; use --without-fp.
9411.1Stv    with_fp=no ;;
9421.1Stv
9431.1Stv  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9441.84Schristos  | --no-cr | --no-c | -n)
9451.1Stv    no_create=yes ;;
9461.1Stv
9471.1Stv  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9481.1Stv  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9491.1Stv    no_recursion=yes ;;
9501.1Stv
9511.1Stv  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9521.1Stv  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9531.1Stv  | --oldin | --oldi | --old | --ol | --o)
9541.1Stv    ac_prev=oldincludedir ;;
9551.1Stv  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9561.1Stv  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9571.1Stv  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9581.1Stv    oldincludedir=$ac_optarg ;;
9591.1Stv
9601.1Stv  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9611.1Stv    ac_prev=prefix ;;
9621.1Stv  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9631.1Stv    prefix=$ac_optarg ;;
9641.1Stv
9651.1Stv  -program-prefix | --program-prefix | --program-prefi | --program-pref \
9661.1Stv  | --program-pre | --program-pr | --program-p)
9671.1Stv    ac_prev=program_prefix ;;
9681.1Stv  -program-prefix=* | --program-prefix=* | --program-prefi=* \
9691.1Stv  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9701.1Stv    program_prefix=$ac_optarg ;;
9711.1Stv
9721.1Stv  -program-suffix | --program-suffix | --program-suffi | --program-suff \
9731.1Stv  | --program-suf | --program-su | --program-s)
9741.1Stv    ac_prev=program_suffix ;;
9751.1Stv  -program-suffix=* | --program-suffix=* | --program-suffi=* \
9761.1Stv  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9771.1Stv    program_suffix=$ac_optarg ;;
9781.1Stv
9791.1Stv  -program-transform-name | --program-transform-name \
9801.1Stv  | --program-transform-nam | --program-transform-na \
9811.1Stv  | --program-transform-n | --program-transform- \
9821.1Stv  | --program-transform | --program-transfor \
9831.1Stv  | --program-transfo | --program-transf \
9841.1Stv  | --program-trans | --program-tran \
9851.1Stv  | --progr-tra | --program-tr | --program-t)
9861.1Stv    ac_prev=program_transform_name ;;
9871.1Stv  -program-transform-name=* | --program-transform-name=* \
9881.1Stv  | --program-transform-nam=* | --program-transform-na=* \
9891.1Stv  | --program-transform-n=* | --program-transform-=* \
9901.1Stv  | --program-transform=* | --program-transfor=* \
9911.1Stv  | --program-transfo=* | --program-transf=* \
9921.1Stv  | --program-trans=* | --program-tran=* \
9931.1Stv  | --progr-tra=* | --program-tr=* | --program-t=*)
9941.1Stv    program_transform_name=$ac_optarg ;;
9951.1Stv
9961.84Schristos  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
9971.84Schristos    ac_prev=pdfdir ;;
9981.84Schristos  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
9991.84Schristos    pdfdir=$ac_optarg ;;
10001.84Schristos
10011.84Schristos  -psdir | --psdir | --psdi | --psd | --ps)
10021.84Schristos    ac_prev=psdir ;;
10031.84Schristos  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10041.84Schristos    psdir=$ac_optarg ;;
10051.84Schristos
10061.1Stv  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10071.1Stv  | -silent | --silent | --silen | --sile | --sil)
10081.1Stv    silent=yes ;;
10091.1Stv
10101.108Schristos  -runstatedir | --runstatedir | --runstatedi | --runstated \
10111.108Schristos  | --runstate | --runstat | --runsta | --runst | --runs \
10121.108Schristos  | --run | --ru | --r)
10131.108Schristos    ac_prev=runstatedir ;;
10141.108Schristos  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
10151.108Schristos  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
10161.108Schristos  | --run=* | --ru=* | --r=*)
10171.108Schristos    runstatedir=$ac_optarg ;;
10181.108Schristos
10191.1Stv  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10201.1Stv    ac_prev=sbindir ;;
10211.1Stv  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10221.1Stv  | --sbi=* | --sb=*)
10231.1Stv    sbindir=$ac_optarg ;;
10241.1Stv
10251.1Stv  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10261.1Stv  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10271.1Stv  | --sharedst | --shareds | --shared | --share | --shar \
10281.1Stv  | --sha | --sh)
10291.1Stv    ac_prev=sharedstatedir ;;
10301.1Stv  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10311.1Stv  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10321.1Stv  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10331.1Stv  | --sha=* | --sh=*)
10341.1Stv    sharedstatedir=$ac_optarg ;;
10351.1Stv
10361.1Stv  -site | --site | --sit)
10371.1Stv    ac_prev=site ;;
10381.1Stv  -site=* | --site=* | --sit=*)
10391.1Stv    site=$ac_optarg ;;
10401.1Stv
10411.1Stv  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10421.1Stv    ac_prev=srcdir ;;
10431.1Stv  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10441.1Stv    srcdir=$ac_optarg ;;
10451.1Stv
10461.1Stv  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10471.1Stv  | --syscon | --sysco | --sysc | --sys | --sy)
10481.1Stv    ac_prev=sysconfdir ;;
10491.1Stv  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10501.1Stv  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10511.1Stv    sysconfdir=$ac_optarg ;;
10521.1Stv
10531.1Stv  -target | --target | --targe | --targ | --tar | --ta | --t)
10541.1Stv    ac_prev=target_alias ;;
10551.1Stv  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10561.1Stv    target_alias=$ac_optarg ;;
10571.1Stv
10581.1Stv  -v | -verbose | --verbose | --verbos | --verbo | --verb)
10591.1Stv    verbose=yes ;;
10601.1Stv
10611.1Stv  -version | --version | --versio | --versi | --vers | -V)
10621.1Stv    ac_init_version=: ;;
10631.1Stv
10641.1Stv  -with-* | --with-*)
10651.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10661.1Stv    # Reject names that are not valid shell variable names.
10671.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10681.108Schristos      as_fn_error $? "invalid package name: '$ac_useropt'"
10691.84Schristos    ac_useropt_orig=$ac_useropt
10701.108Schristos    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
10711.84Schristos    case $ac_user_opts in
10721.84Schristos      *"
10731.84Schristos"with_$ac_useropt"
10741.84Schristos"*) ;;
10751.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10761.84Schristos	 ac_unrecognized_sep=', ';;
10771.66Stsutsui    esac
10781.84Schristos    eval with_$ac_useropt=\$ac_optarg ;;
10791.1Stv
10801.1Stv  -without-* | --without-*)
10811.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10821.1Stv    # Reject names that are not valid shell variable names.
10831.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10841.108Schristos      as_fn_error $? "invalid package name: '$ac_useropt'"
10851.84Schristos    ac_useropt_orig=$ac_useropt
10861.108Schristos    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
10871.84Schristos    case $ac_user_opts in
10881.84Schristos      *"
10891.84Schristos"with_$ac_useropt"
10901.84Schristos"*) ;;
10911.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
10921.84Schristos	 ac_unrecognized_sep=', ';;
10931.84Schristos    esac
10941.84Schristos    eval with_$ac_useropt=no ;;
10951.1Stv
10961.1Stv  --x)
10971.1Stv    # Obsolete; use --with-x.
10981.1Stv    with_x=yes ;;
10991.1Stv
11001.1Stv  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11011.1Stv  | --x-incl | --x-inc | --x-in | --x-i)
11021.1Stv    ac_prev=x_includes ;;
11031.1Stv  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11041.1Stv  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11051.1Stv    x_includes=$ac_optarg ;;
11061.1Stv
11071.1Stv  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11081.1Stv  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11091.1Stv    ac_prev=x_libraries ;;
11101.1Stv  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11111.1Stv  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11121.1Stv    x_libraries=$ac_optarg ;;
11131.1Stv
11141.108Schristos  -*) as_fn_error $? "unrecognized option: '$ac_option'
11151.108SchristosTry '$0 --help' for more information"
11161.1Stv    ;;
11171.1Stv
11181.1Stv  *=*)
11191.1Stv    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11201.1Stv    # Reject names that are not valid shell variable names.
11211.84Schristos    case $ac_envvar in #(
11221.84Schristos      '' | [0-9]* | *[!_$as_cr_alnum]* )
11231.108Schristos      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
11241.84Schristos    esac
11251.84Schristos    eval $ac_envvar=\$ac_optarg
11261.1Stv    export $ac_envvar ;;
11271.1Stv
11281.1Stv  *)
11291.1Stv    # FIXME: should be removed in autoconf 3.0.
11301.108Schristos    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
11311.1Stv    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11321.108Schristos      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
11331.84Schristos    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11341.1Stv    ;;
11351.1Stv
11361.1Stv  esac
11371.1Stvdone
11381.1Stv
11391.1Stvif test -n "$ac_prev"; then
11401.1Stv  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11411.84Schristos  as_fn_error $? "missing argument to $ac_option"
11421.84Schristosfi
11431.84Schristos
11441.84Schristosif test -n "$ac_unrecognized_opts"; then
11451.84Schristos  case $enable_option_checking in
11461.84Schristos    no) ;;
11471.84Schristos    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11481.108Schristos    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11491.84Schristos  esac
11501.74Schristosfi
11511.74Schristos
11521.84Schristos# Check all directory arguments for consistency.
11531.84Schristosfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11541.84Schristos		datadir sysconfdir sharedstatedir localstatedir includedir \
11551.84Schristos		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11561.108Schristos		libdir localedir mandir runstatedir
11571.76Spookado
11581.84Schristos  eval ac_val=\$$ac_var
11591.84Schristos  # Remove trailing slashes.
11601.76Spooka  case $ac_val in
11611.84Schristos    */ )
11621.84Schristos      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11631.84Schristos      eval $ac_var=\$ac_val;;
11641.74Schristos  esac
11651.84Schristos  # Be sure to have absolute directory names.
11661.1Stv  case $ac_val in
11671.84Schristos    [\\/$]* | ?:[\\/]* )  continue;;
11681.84Schristos    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11691.1Stv  esac
11701.84Schristos  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
11711.1Stvdone
11721.1Stv
11731.108Schristos# There might be people who depend on the old broken behavior: '$host'
11741.1Stv# used to hold the argument of --host etc.
11751.84Schristos# FIXME: To remove some day.
11761.1Stvbuild=$build_alias
11771.1Stvhost=$host_alias
11781.1Stvtarget=$target_alias
11791.1Stv
11801.84Schristos# FIXME: To remove some day.
11811.1Stvif test "x$host_alias" != x; then
11821.1Stv  if test "x$build_alias" = x; then
11831.1Stv    cross_compiling=maybe
11841.1Stv  elif test "x$build_alias" != "x$host_alias"; then
11851.1Stv    cross_compiling=yes
11861.1Stv  fi
11871.1Stvfi
11881.1Stv
11891.1Stvac_tool_prefix=
11901.1Stvtest -n "$host_alias" && ac_tool_prefix=$host_alias-
11911.1Stv
11921.1Stvtest "$silent" = yes && exec 6>/dev/null
11931.1Stv
11941.84Schristos
11951.84Schristosac_pwd=`pwd` && test -n "$ac_pwd" &&
11961.84Schristosac_ls_di=`ls -di .` &&
11971.84Schristosac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
11981.84Schristos  as_fn_error $? "working directory cannot be determined"
11991.84Schristostest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12001.84Schristos  as_fn_error $? "pwd does not report name of working directory"
12011.84Schristos
12021.84Schristos
12031.1Stv# Find the source files, if location was not specified.
12041.1Stvif test -z "$srcdir"; then
12051.1Stv  ac_srcdir_defaulted=yes
12061.84Schristos  # Try the directory containing this script, then the parent directory.
12071.84Schristos  ac_confdir=`$as_dirname -- "$as_myself" ||
12081.84Schristos$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12091.84Schristos	 X"$as_myself" : 'X\(//\)[^/]' \| \
12101.84Schristos	 X"$as_myself" : 'X\(//\)$' \| \
12111.84Schristos	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12121.108Schristosprintf "%s\n" X"$as_myself" |
12131.84Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12141.84Schristos	    s//\1/
12151.84Schristos	    q
12161.84Schristos	  }
12171.84Schristos	  /^X\(\/\/\)[^/].*/{
12181.84Schristos	    s//\1/
12191.84Schristos	    q
12201.84Schristos	  }
12211.84Schristos	  /^X\(\/\/\)$/{
12221.84Schristos	    s//\1/
12231.84Schristos	    q
12241.84Schristos	  }
12251.84Schristos	  /^X\(\/\).*/{
12261.84Schristos	    s//\1/
12271.84Schristos	    q
12281.84Schristos	  }
12291.84Schristos	  s/.*/./; q'`
12301.1Stv  srcdir=$ac_confdir
12311.84Schristos  if test ! -r "$srcdir/$ac_unique_file"; then
12321.1Stv    srcdir=..
12331.1Stv  fi
12341.1Stvelse
12351.1Stv  ac_srcdir_defaulted=no
12361.1Stvfi
12371.84Schristosif test ! -r "$srcdir/$ac_unique_file"; then
12381.84Schristos  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12391.84Schristos  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12401.84Schristosfi
12411.108Schristosac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
12421.84Schristosac_abs_confdir=`(
12431.84Schristos	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12441.84Schristos	pwd)`
12451.84Schristos# When building in place, set srcdir=.
12461.84Schristosif test "$ac_abs_confdir" = "$ac_pwd"; then
12471.84Schristos  srcdir=.
12481.84Schristosfi
12491.84Schristos# Remove unnecessary trailing slashes from srcdir.
12501.84Schristos# Double slashes in file names in object file debugging info
12511.84Schristos# mess up M-x gdb in Emacs.
12521.84Schristoscase $srcdir in
12531.84Schristos*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12541.84Schristosesac
12551.84Schristosfor ac_var in $ac_precious_vars; do
12561.84Schristos  eval ac_env_${ac_var}_set=\${${ac_var}+set}
12571.84Schristos  eval ac_env_${ac_var}_value=\$${ac_var}
12581.84Schristos  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12591.84Schristos  eval ac_cv_env_${ac_var}_value=\$${ac_var}
12601.84Schristosdone
12611.1Stv
12621.1Stv#
12631.1Stv# Report the --help message.
12641.1Stv#
12651.1Stvif test "$ac_init_help" = "long"; then
12661.1Stv  # Omit some internal or obsolete options to make the list less imposing.
12671.1Stv  # This message is too long to be a string in the A/UX 3.1 sh.
12681.84Schristos  cat <<_ACEOF
12691.108Schristos'configure' configures libnbcompat noversion to adapt to many kinds of systems.
12701.1Stv
12711.1StvUsage: $0 [OPTION]... [VAR=VALUE]...
12721.1Stv
12731.1StvTo assign environment variables (e.g., CC, CFLAGS...), specify them as
12741.1StvVAR=VALUE.  See below for descriptions of some of the useful variables.
12751.1Stv
12761.1StvDefaults for the options are specified in brackets.
12771.1Stv
12781.1StvConfiguration:
12791.1Stv  -h, --help              display this help and exit
12801.1Stv      --help=short        display options specific to this package
12811.1Stv      --help=recursive    display the short help of all the included packages
12821.1Stv  -V, --version           display version information and exit
12831.108Schristos  -q, --quiet, --silent   do not print 'checking ...' messages
12841.1Stv      --cache-file=FILE   cache test results in FILE [disabled]
12851.108Schristos  -C, --config-cache      alias for '--cache-file=config.cache'
12861.1Stv  -n, --no-create         do not create output files
12871.108Schristos      --srcdir=DIR        find the sources in DIR [configure dir or '..']
12881.1Stv
12891.1StvInstallation directories:
12901.1Stv  --prefix=PREFIX         install architecture-independent files in PREFIX
12911.66Stsutsui                          [$ac_default_prefix]
12921.1Stv  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
12931.66Stsutsui                          [PREFIX]
12941.1Stv
12951.108SchristosBy default, 'make install' will install all the files in
12961.108Schristos'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
12971.108Schristosan installation prefix other than '$ac_default_prefix' using '--prefix',
12981.108Schristosfor instance '--prefix=\$HOME'.
12991.1Stv
13001.1StvFor better control, use the options below.
13011.1Stv
13021.1StvFine tuning of the installation directories:
13031.84Schristos  --bindir=DIR            user executables [EPREFIX/bin]
13041.84Schristos  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13051.84Schristos  --libexecdir=DIR        program executables [EPREFIX/libexec]
13061.84Schristos  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13071.84Schristos  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13081.84Schristos  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13091.108Schristos  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
13101.84Schristos  --libdir=DIR            object code libraries [EPREFIX/lib]
13111.84Schristos  --includedir=DIR        C header files [PREFIX/include]
13121.84Schristos  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13131.84Schristos  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13141.84Schristos  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13151.84Schristos  --infodir=DIR           info documentation [DATAROOTDIR/info]
13161.84Schristos  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13171.84Schristos  --mandir=DIR            man documentation [DATAROOTDIR/man]
13181.84Schristos  --docdir=DIR            documentation root [DATAROOTDIR/doc/libnbcompat]
13191.84Schristos  --htmldir=DIR           html documentation [DOCDIR]
13201.84Schristos  --dvidir=DIR            dvi documentation [DOCDIR]
13211.84Schristos  --pdfdir=DIR            pdf documentation [DOCDIR]
13221.84Schristos  --psdir=DIR             ps documentation [DOCDIR]
13231.84Schristos_ACEOF
13241.1Stv
13251.84Schristos  cat <<\_ACEOF
13261.84Schristos_ACEOF
13271.1Stvfi
13281.1Stv
13291.1Stvif test -n "$ac_init_help"; then
13301.1Stv  case $ac_init_help in
13311.1Stv     short | recursive ) echo "Configuration of libnbcompat noversion:";;
13321.1Stv   esac
13331.84Schristos  cat <<\_ACEOF
13341.1Stv
13351.1StvSome influential environment variables:
13361.1Stv  CC          C compiler command
13371.1Stv  CFLAGS      C compiler flags
13381.1Stv  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
13391.1Stv              nonstandard directory <lib dir>
13401.84Schristos  LIBS        libraries to pass to the linker, e.g. -l<library>
13411.84Schristos  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13421.84Schristos              you have headers in a nonstandard directory <include dir>
13431.1Stv  CPP         C preprocessor
13441.1Stv
13451.108SchristosUse these variables to override the choices made by 'configure' or to help
13461.1Stvit to find libraries and programs with nonstandard names/locations.
13471.1Stv
13481.41SsaloReport bugs to <lib-bug-people@NetBSD.org>.
13491.84Schristos_ACEOF
13501.84Schristosac_status=$?
13511.1Stvfi
13521.1Stv
13531.1Stvif test "$ac_init_help" = "recursive"; then
13541.1Stv  # If there are subdirs, report their specific --help.
13551.84Schristos  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
13561.84Schristos    test -d "$ac_dir" ||
13571.84Schristos      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
13581.84Schristos      continue
13591.84Schristos    ac_builddir=.
13601.84Schristos
13611.84Schristoscase "$ac_dir" in
13621.84Schristos.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13631.84Schristos*)
13641.108Schristos  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13651.84Schristos  # A ".." for each directory in $ac_dir_suffix.
13661.108Schristos  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13671.84Schristos  case $ac_top_builddir_sub in
13681.84Schristos  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13691.84Schristos  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13701.84Schristos  esac ;;
13711.84Schristosesac
13721.84Schristosac_abs_top_builddir=$ac_pwd
13731.84Schristosac_abs_builddir=$ac_pwd$ac_dir_suffix
13741.84Schristos# for backward compatibility:
13751.84Schristosac_top_builddir=$ac_top_build_prefix
13761.84Schristos
13771.84Schristoscase $srcdir in
13781.84Schristos  .)  # We are building in place.
13791.84Schristos    ac_srcdir=.
13801.84Schristos    ac_top_srcdir=$ac_top_builddir_sub
13811.84Schristos    ac_abs_top_srcdir=$ac_pwd ;;
13821.84Schristos  [\\/]* | ?:[\\/]* )  # Absolute name.
13831.84Schristos    ac_srcdir=$srcdir$ac_dir_suffix;
13841.84Schristos    ac_top_srcdir=$srcdir
13851.84Schristos    ac_abs_top_srcdir=$srcdir ;;
13861.84Schristos  *) # Relative name.
13871.84Schristos    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13881.84Schristos    ac_top_srcdir=$ac_top_build_prefix$srcdir
13891.84Schristos    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13901.84Schristosesac
13911.84Schristosac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13921.1Stv
13931.84Schristos    cd "$ac_dir" || { ac_status=$?; continue; }
13941.108Schristos    # Check for configure.gnu first; this name is used for a wrapper for
13951.108Schristos    # Metaconfig's "Configure" on case-insensitive file systems.
13961.84Schristos    if test -f "$ac_srcdir/configure.gnu"; then
13971.84Schristos      echo &&
13981.84Schristos      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
13991.84Schristos    elif test -f "$ac_srcdir/configure"; then
14001.84Schristos      echo &&
14011.84Schristos      $SHELL "$ac_srcdir/configure" --help=recursive
14021.65Schristos    else
14031.108Schristos      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14041.84Schristos    fi || ac_status=$?
14051.84Schristos    cd "$ac_pwd" || { ac_status=$?; break; }
14061.65Schristos  done
14071.1Stvfi
14081.1Stv
14091.84Schristostest -n "$ac_init_help" && exit $ac_status
14101.1Stvif $ac_init_version; then
14111.84Schristos  cat <<\_ACEOF
14121.1Stvlibnbcompat configure noversion
14131.108Schristosgenerated by GNU Autoconf 2.72
14141.1Stv
14151.108SchristosCopyright (C) 2023 Free Software Foundation, Inc.
14161.1StvThis configure script is free software; the Free Software Foundation
14171.1Stvgives unlimited permission to copy, distribute and modify it.
14181.84Schristos_ACEOF
14191.84Schristos  exit
14201.1Stvfi
14211.1Stv
14221.84Schristos## ------------------------ ##
14231.84Schristos## Autoconf initialization. ##
14241.84Schristos## ------------------------ ##
14251.84Schristos
14261.84Schristos# ac_fn_c_try_compile LINENO
14271.84Schristos# --------------------------
14281.84Schristos# Try to compile conftest.$ac_ext, and return whether this succeeded.
14291.84Schristosac_fn_c_try_compile ()
14301.84Schristos{
14311.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14321.108Schristos  rm -f conftest.$ac_objext conftest.beam
14331.84Schristos  if { { ac_try="$ac_compile"
14341.84Schristoscase "(($ac_try" in
14351.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361.84Schristos  *) ac_try_echo=$ac_try;;
14371.84Schristosesac
14381.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14391.108Schristosprintf "%s\n" "$ac_try_echo"; } >&5
14401.84Schristos  (eval "$ac_compile") 2>conftest.err
14411.84Schristos  ac_status=$?
14421.84Schristos  if test -s conftest.err; then
14431.84Schristos    grep -v '^ *+' conftest.err >conftest.er1
14441.84Schristos    cat conftest.er1 >&5
14451.84Schristos    mv -f conftest.er1 conftest.err
14461.84Schristos  fi
14471.108Schristos  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14481.84Schristos  test $ac_status = 0; } && {
14491.84Schristos	 test -z "$ac_c_werror_flag" ||
14501.84Schristos	 test ! -s conftest.err
14511.108Schristos       } && test -s conftest.$ac_objext
14521.108Schristosthen :
14531.84Schristos  ac_retval=0
14541.108Schristoselse case e in #(
14551.108Schristos  e) printf "%s\n" "$as_me: failed program was:" >&5
14561.84Schristossed 's/^/| /' conftest.$ac_ext >&5
14571.84Schristos
14581.108Schristos	ac_retval=1 ;;
14591.108Schristosesac
14601.84Schristosfi
14611.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14621.84Schristos  as_fn_set_status $ac_retval
14631.84Schristos
14641.84Schristos} # ac_fn_c_try_compile
14651.84Schristos
14661.84Schristos# ac_fn_c_try_cpp LINENO
14671.84Schristos# ----------------------
14681.84Schristos# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
14691.84Schristosac_fn_c_try_cpp ()
14701.84Schristos{
14711.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14721.84Schristos  if { { ac_try="$ac_cpp conftest.$ac_ext"
14731.84Schristoscase "(($ac_try" in
14741.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751.84Schristos  *) ac_try_echo=$ac_try;;
14761.84Schristosesac
14771.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14781.108Schristosprintf "%s\n" "$ac_try_echo"; } >&5
14791.84Schristos  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
14801.84Schristos  ac_status=$?
14811.84Schristos  if test -s conftest.err; then
14821.84Schristos    grep -v '^ *+' conftest.err >conftest.er1
14831.84Schristos    cat conftest.er1 >&5
14841.84Schristos    mv -f conftest.er1 conftest.err
14851.84Schristos  fi
14861.108Schristos  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14871.84Schristos  test $ac_status = 0; } > conftest.i && {
14881.84Schristos	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14891.84Schristos	 test ! -s conftest.err
14901.108Schristos       }
14911.108Schristosthen :
14921.84Schristos  ac_retval=0
14931.108Schristoselse case e in #(
14941.108Schristos  e) printf "%s\n" "$as_me: failed program was:" >&5
14951.84Schristossed 's/^/| /' conftest.$ac_ext >&5
14961.84Schristos
14971.108Schristos    ac_retval=1 ;;
14981.108Schristosesac
14991.84Schristosfi
15001.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15011.84Schristos  as_fn_set_status $ac_retval
15021.84Schristos
15031.84Schristos} # ac_fn_c_try_cpp
15041.84Schristos
15051.108Schristos# ac_fn_c_try_link LINENO
15061.108Schristos# -----------------------
15071.108Schristos# Try to link conftest.$ac_ext, and return whether this succeeded.
15081.108Schristosac_fn_c_try_link ()
15091.108Schristos{
15101.108Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15111.108Schristos  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
15121.108Schristos  if { { ac_try="$ac_link"
15131.108Schristoscase "(($ac_try" in
15141.108Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151.108Schristos  *) ac_try_echo=$ac_try;;
15161.108Schristosesac
15171.108Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15181.108Schristosprintf "%s\n" "$ac_try_echo"; } >&5
15191.108Schristos  (eval "$ac_link") 2>conftest.err
15201.108Schristos  ac_status=$?
15211.108Schristos  if test -s conftest.err; then
15221.108Schristos    grep -v '^ *+' conftest.err >conftest.er1
15231.108Schristos    cat conftest.er1 >&5
15241.108Schristos    mv -f conftest.er1 conftest.err
15251.108Schristos  fi
15261.108Schristos  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15271.108Schristos  test $ac_status = 0; } && {
15281.108Schristos	 test -z "$ac_c_werror_flag" ||
15291.108Schristos	 test ! -s conftest.err
15301.108Schristos       } && test -s conftest$ac_exeext && {
15311.108Schristos	 test "$cross_compiling" = yes ||
15321.108Schristos	 test -x conftest$ac_exeext
15331.108Schristos       }
15341.108Schristosthen :
15351.108Schristos  ac_retval=0
15361.108Schristoselse case e in #(
15371.108Schristos  e) printf "%s\n" "$as_me: failed program was:" >&5
15381.108Schristossed 's/^/| /' conftest.$ac_ext >&5
15391.108Schristos
15401.108Schristos	ac_retval=1 ;;
15411.108Schristosesac
15421.108Schristosfi
15431.108Schristos  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
15441.108Schristos  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
15451.108Schristos  # interfere with the next link command; also delete a directory that is
15461.108Schristos  # left behind by Apple's compiler.  We do this before executing the actions.
15471.108Schristos  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
15481.108Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15491.108Schristos  as_fn_set_status $ac_retval
15501.108Schristos
15511.108Schristos} # ac_fn_c_try_link
15521.108Schristos
15531.84Schristos# ac_fn_c_try_run LINENO
15541.84Schristos# ----------------------
15551.108Schristos# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
15561.108Schristos# executables *can* be run.
15571.84Schristosac_fn_c_try_run ()
15581.84Schristos{
15591.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15601.84Schristos  if { { ac_try="$ac_link"
15611.84Schristoscase "(($ac_try" in
15621.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631.84Schristos  *) ac_try_echo=$ac_try;;
15641.84Schristosesac
15651.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15661.108Schristosprintf "%s\n" "$ac_try_echo"; } >&5
15671.84Schristos  (eval "$ac_link") 2>&5
15681.84Schristos  ac_status=$?
15691.108Schristos  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15701.84Schristos  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
15711.84Schristos  { { case "(($ac_try" in
15721.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731.84Schristos  *) ac_try_echo=$ac_try;;
15741.84Schristosesac
15751.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15761.108Schristosprintf "%s\n" "$ac_try_echo"; } >&5
15771.84Schristos  (eval "$ac_try") 2>&5
15781.84Schristos  ac_status=$?
15791.108Schristos  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15801.108Schristos  test $ac_status = 0; }; }
15811.108Schristosthen :
15821.84Schristos  ac_retval=0
15831.108Schristoselse case e in #(
15841.108Schristos  e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
15851.108Schristos       printf "%s\n" "$as_me: failed program was:" >&5
15861.84Schristossed 's/^/| /' conftest.$ac_ext >&5
15871.84Schristos
15881.108Schristos       ac_retval=$ac_status ;;
15891.108Schristosesac
15901.84Schristosfi
15911.84Schristos  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
15921.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15931.84Schristos  as_fn_set_status $ac_retval
15941.84Schristos
15951.84Schristos} # ac_fn_c_try_run
15961.84Schristos
15971.84Schristos# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
15981.84Schristos# -------------------------------------------------------
15991.84Schristos# Tests whether HEADER exists and can be compiled using the include files in
16001.84Schristos# INCLUDES, setting the cache variable VAR accordingly.
16011.84Schristosac_fn_c_check_header_compile ()
16021.84Schristos{
16031.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16041.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16051.108Schristosprintf %s "checking for $2... " >&6; }
16061.108Schristosif eval test \${$3+y}
16071.108Schristosthen :
16081.108Schristos  printf %s "(cached) " >&6
16091.108Schristoselse case e in #(
16101.108Schristos  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111.84Schristos/* end confdefs.h.  */
16121.84Schristos$4
16131.84Schristos#include <$2>
16141.84Schristos_ACEOF
16151.108Schristosif ac_fn_c_try_compile "$LINENO"
16161.108Schristosthen :
16171.84Schristos  eval "$3=yes"
16181.108Schristoselse case e in #(
16191.108Schristos  e) eval "$3=no" ;;
16201.108Schristosesac
16211.84Schristosfi
16221.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16231.108Schristosesac
16241.84Schristosfi
16251.84Schristoseval ac_res=\$$3
16261.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16271.108Schristosprintf "%s\n" "$ac_res" >&6; }
16281.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16291.84Schristos
16301.84Schristos} # ac_fn_c_check_header_compile
16311.84Schristos
16321.84Schristos# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
16331.84Schristos# -------------------------------------------
16341.84Schristos# Tests whether TYPE exists after having included INCLUDES, setting cache
16351.84Schristos# variable VAR accordingly.
16361.84Schristosac_fn_c_check_type ()
16371.84Schristos{
16381.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16391.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16401.108Schristosprintf %s "checking for $2... " >&6; }
16411.108Schristosif eval test \${$3+y}
16421.108Schristosthen :
16431.108Schristos  printf %s "(cached) " >&6
16441.108Schristoselse case e in #(
16451.108Schristos  e) eval "$3=no"
16461.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471.84Schristos/* end confdefs.h.  */
16481.84Schristos$4
16491.84Schristosint
16501.108Schristosmain (void)
16511.84Schristos{
16521.84Schristosif (sizeof ($2))
16531.84Schristos	 return 0;
16541.84Schristos  ;
16551.84Schristos  return 0;
16561.84Schristos}
16571.84Schristos_ACEOF
16581.108Schristosif ac_fn_c_try_compile "$LINENO"
16591.108Schristosthen :
16601.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611.84Schristos/* end confdefs.h.  */
16621.84Schristos$4
16631.84Schristosint
16641.108Schristosmain (void)
16651.74Schristos{
16661.84Schristosif (sizeof (($2)))
16671.84Schristos	    return 0;
16681.84Schristos  ;
16691.84Schristos  return 0;
16701.84Schristos}
16711.84Schristos_ACEOF
16721.108Schristosif ac_fn_c_try_compile "$LINENO"
16731.108Schristosthen :
16741.84Schristos
16751.108Schristoselse case e in #(
16761.108Schristos  e) eval "$3=yes" ;;
16771.108Schristosesac
16781.84Schristosfi
16791.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16801.84Schristosfi
16811.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16821.108Schristosesac
16831.84Schristosfi
16841.84Schristoseval ac_res=\$$3
16851.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16861.108Schristosprintf "%s\n" "$ac_res" >&6; }
16871.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16881.84Schristos
16891.84Schristos} # ac_fn_c_check_type
16901.74Schristos
16911.84Schristos# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
16921.84Schristos# ----------------------------------------------------
16931.84Schristos# Tries to find if the field MEMBER exists in type AGGR, after including
16941.84Schristos# INCLUDES, setting cache variable VAR accordingly.
16951.84Schristosac_fn_c_check_member ()
16961.84Schristos{
16971.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16981.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
16991.108Schristosprintf %s "checking for $2.$3... " >&6; }
17001.108Schristosif eval test \${$4+y}
17011.108Schristosthen :
17021.108Schristos  printf %s "(cached) " >&6
17031.108Schristoselse case e in #(
17041.108Schristos  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051.84Schristos/* end confdefs.h.  */
17061.84Schristos$5
17071.84Schristosint
17081.108Schristosmain (void)
17091.84Schristos{
17101.84Schristosstatic $2 ac_aggr;
17111.84Schristosif (ac_aggr.$3)
17121.84Schristosreturn 0;
17131.84Schristos  ;
17141.84Schristos  return 0;
17151.84Schristos}
17161.84Schristos_ACEOF
17171.108Schristosif ac_fn_c_try_compile "$LINENO"
17181.108Schristosthen :
17191.84Schristos  eval "$4=yes"
17201.108Schristoselse case e in #(
17211.108Schristos  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17221.84Schristos/* end confdefs.h.  */
17231.84Schristos$5
17241.84Schristosint
17251.108Schristosmain (void)
17261.84Schristos{
17271.84Schristosstatic $2 ac_aggr;
17281.84Schristosif (sizeof ac_aggr.$3)
17291.84Schristosreturn 0;
17301.84Schristos  ;
17311.84Schristos  return 0;
17321.84Schristos}
17331.84Schristos_ACEOF
17341.108Schristosif ac_fn_c_try_compile "$LINENO"
17351.108Schristosthen :
17361.84Schristos  eval "$4=yes"
17371.108Schristoselse case e in #(
17381.108Schristos  e) eval "$4=no" ;;
17391.108Schristosesac
17401.84Schristosfi
17411.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17421.108Schristosesac
17431.84Schristosfi
17441.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17451.108Schristosesac
17461.84Schristosfi
17471.84Schristoseval ac_res=\$$4
17481.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17491.108Schristosprintf "%s\n" "$ac_res" >&6; }
17501.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17511.74Schristos
17521.84Schristos} # ac_fn_c_check_member
17531.1Stv
17541.108Schristos# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
17551.108Schristos# ------------------------------------------------------------------
17561.84Schristos# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
17571.108Schristos# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
17581.108Schristosac_fn_check_decl ()
17591.84Schristos{
17601.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17611.84Schristos  as_decl_name=`echo $2|sed 's/ *(.*//'`
17621.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
17631.108Schristosprintf %s "checking whether $as_decl_name is declared... " >&6; }
17641.108Schristosif eval test \${$3+y}
17651.108Schristosthen :
17661.108Schristos  printf %s "(cached) " >&6
17671.108Schristoselse case e in #(
17681.108Schristos  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
17691.108Schristos  eval ac_save_FLAGS=\$$6
17701.108Schristos  as_fn_append $6 " $5"
17711.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721.84Schristos/* end confdefs.h.  */
17731.84Schristos$4
17741.84Schristosint
17751.108Schristosmain (void)
17761.84Schristos{
17771.84Schristos#ifndef $as_decl_name
17781.84Schristos#ifdef __cplusplus
17791.84Schristos  (void) $as_decl_use;
17801.84Schristos#else
17811.84Schristos  (void) $as_decl_name;
17821.84Schristos#endif
17831.84Schristos#endif
17841.1Stv
17851.84Schristos  ;
17861.84Schristos  return 0;
17871.84Schristos}
17881.84Schristos_ACEOF
17891.108Schristosif ac_fn_c_try_compile "$LINENO"
17901.108Schristosthen :
17911.84Schristos  eval "$3=yes"
17921.108Schristoselse case e in #(
17931.108Schristos  e) eval "$3=no" ;;
17941.108Schristosesac
17951.84Schristosfi
17961.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17971.108Schristos  eval $6=\$ac_save_FLAGS
17981.108Schristos ;;
17991.108Schristosesac
18001.84Schristosfi
18011.84Schristoseval ac_res=\$$3
18021.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18031.108Schristosprintf "%s\n" "$ac_res" >&6; }
18041.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18051.1Stv
18061.108Schristos} # ac_fn_check_decl
18071.1Stv
18081.84Schristos# ac_fn_c_check_func LINENO FUNC VAR
18091.84Schristos# ----------------------------------
18101.84Schristos# Tests whether FUNC exists, setting the cache variable VAR accordingly
18111.84Schristosac_fn_c_check_func ()
18121.84Schristos{
18131.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18141.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18151.108Schristosprintf %s "checking for $2... " >&6; }
18161.108Schristosif eval test \${$3+y}
18171.108Schristosthen :
18181.108Schristos  printf %s "(cached) " >&6
18191.108Schristoselse case e in #(
18201.108Schristos  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211.84Schristos/* end confdefs.h.  */
18221.84Schristos/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18231.84Schristos   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18241.84Schristos#define $2 innocuous_$2
18251.84Schristos
18261.84Schristos/* System header to define __stub macros and hopefully few prototypes,
18271.108Schristos   which can conflict with char $2 (void); below.  */
18281.84Schristos
18291.108Schristos#include <limits.h>
18301.84Schristos#undef $2
18311.84Schristos
18321.84Schristos/* Override any GCC internal prototype to avoid an error.
18331.84Schristos   Use char because int might match the return type of a GCC
18341.84Schristos   builtin and then its argument prototype would still apply.  */
18351.84Schristos#ifdef __cplusplus
18361.84Schristosextern "C"
18371.84Schristos#endif
18381.108Schristoschar $2 (void);
18391.84Schristos/* The GNU C library defines this for functions which it implements
18401.84Schristos    to always fail with ENOSYS.  Some functions are actually named
18411.84Schristos    something starting with __ and the normal name is an alias.  */
18421.84Schristos#if defined __stub_$2 || defined __stub___$2
18431.84Schristoschoke me
18441.84Schristos#endif
18451.84Schristos
18461.84Schristosint
18471.108Schristosmain (void)
18481.84Schristos{
18491.84Schristosreturn $2 ();
18501.84Schristos  ;
18511.84Schristos  return 0;
18521.84Schristos}
18531.84Schristos_ACEOF
18541.108Schristosif ac_fn_c_try_link "$LINENO"
18551.108Schristosthen :
18561.84Schristos  eval "$3=yes"
18571.108Schristoselse case e in #(
18581.108Schristos  e) eval "$3=no" ;;
18591.108Schristosesac
18601.84Schristosfi
18611.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam \
18621.108Schristos    conftest$ac_exeext conftest.$ac_ext ;;
18631.108Schristosesac
18641.84Schristosfi
18651.84Schristoseval ac_res=\$$3
18661.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18671.108Schristosprintf "%s\n" "$ac_res" >&6; }
18681.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18691.84Schristos
18701.84Schristos} # ac_fn_c_check_func
18711.108Schristosac_configure_args_raw=
18721.108Schristosfor ac_arg
18731.108Schristosdo
18741.108Schristos  case $ac_arg in
18751.108Schristos  *\'*)
18761.108Schristos    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18771.108Schristos  esac
18781.108Schristos  as_fn_append ac_configure_args_raw " '$ac_arg'"
18791.108Schristosdone
18801.108Schristos
18811.108Schristoscase $ac_configure_args_raw in
18821.108Schristos  *$as_nl*)
18831.108Schristos    ac_safe_unquote= ;;
18841.108Schristos  *)
18851.108Schristos    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
18861.108Schristos    ac_unsafe_a="$ac_unsafe_z#~"
18871.108Schristos    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
18881.108Schristos    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
18891.108Schristosesac
18901.108Schristos
18911.84Schristoscat >config.log <<_ACEOF
18921.84SchristosThis file contains any messages produced by compilers while
18931.84Schristosrunning configure, to aid debugging if configure makes a mistake.
18941.84Schristos
18951.84SchristosIt was created by libnbcompat $as_me noversion, which was
18961.108Schristosgenerated by GNU Autoconf 2.72.  Invocation command line was
18971.84Schristos
18981.108Schristos  $ $0$ac_configure_args_raw
18991.84Schristos
19001.84Schristos_ACEOF
19011.84Schristosexec 5>>config.log
19021.84Schristos{
19031.84Schristoscat <<_ASUNAME
19041.84Schristos## --------- ##
19051.84Schristos## Platform. ##
19061.84Schristos## --------- ##
19071.84Schristos
19081.84Schristoshostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
19091.84Schristosuname -m = `(uname -m) 2>/dev/null || echo unknown`
19101.84Schristosuname -r = `(uname -r) 2>/dev/null || echo unknown`
19111.84Schristosuname -s = `(uname -s) 2>/dev/null || echo unknown`
19121.84Schristosuname -v = `(uname -v) 2>/dev/null || echo unknown`
19131.84Schristos
19141.84Schristos/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
19151.84Schristos/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
19161.84Schristos
19171.84Schristos/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
19181.84Schristos/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
19191.84Schristos/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
19201.84Schristos/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
19211.84Schristos/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
19221.84Schristos/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
19231.84Schristos/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
19241.84Schristos
19251.84Schristos_ASUNAME
19261.84Schristos
19271.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19281.84Schristosfor as_dir in $PATH
19291.84Schristosdo
19301.84Schristos  IFS=$as_save_IFS
19311.108Schristos  case $as_dir in #(((
19321.108Schristos    '') as_dir=./ ;;
19331.108Schristos    */) ;;
19341.108Schristos    *) as_dir=$as_dir/ ;;
19351.108Schristos  esac
19361.108Schristos    printf "%s\n" "PATH: $as_dir"
19371.84Schristos  done
19381.84SchristosIFS=$as_save_IFS
19391.84Schristos
19401.84Schristos} >&5
19411.84Schristos
19421.84Schristoscat >&5 <<_ACEOF
19431.84Schristos
19441.84Schristos
19451.84Schristos## ----------- ##
19461.84Schristos## Core tests. ##
19471.84Schristos## ----------- ##
19481.84Schristos
19491.84Schristos_ACEOF
19501.66Stsutsui
19511.1Stv
19521.76Spooka# Keep a trace of the command line.
19531.76Spooka# Strip out --no-create and --no-recursion so they do not pile up.
19541.84Schristos# Strip out --silent because we don't want to record it for future runs.
19551.76Spooka# Also quote any args containing shell meta-characters.
19561.84Schristos# Make two passes to allow for proper duplicate-argument suppression.
19571.76Spookaac_configure_args=
19581.84Schristosac_configure_args0=
19591.84Schristosac_configure_args1=
19601.84Schristosac_must_keep_next=false
19611.84Schristosfor ac_pass in 1 2
19621.76Spookado
19631.84Schristos  for ac_arg
19641.84Schristos  do
19651.84Schristos    case $ac_arg in
19661.84Schristos    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
19671.84Schristos    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19681.84Schristos    | -silent | --silent | --silen | --sile | --sil)
19691.84Schristos      continue ;;
19701.84Schristos    *\'*)
19711.108Schristos      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19721.84Schristos    esac
19731.84Schristos    case $ac_pass in
19741.84Schristos    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
19751.84Schristos    2)
19761.84Schristos      as_fn_append ac_configure_args1 " '$ac_arg'"
19771.84Schristos      if test $ac_must_keep_next = true; then
19781.84Schristos	ac_must_keep_next=false # Got value, back to normal.
19791.84Schristos      else
19801.84Schristos	case $ac_arg in
19811.84Schristos	  *=* | --config-cache | -C | -disable-* | --disable-* \
19821.84Schristos	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
19831.84Schristos	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
19841.84Schristos	  | -with-* | --with-* | -without-* | --without-* | --x)
19851.84Schristos	    case "$ac_configure_args0 " in
19861.84Schristos	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
19871.84Schristos	    esac
19881.84Schristos	    ;;
19891.84Schristos	  -* ) ac_must_keep_next=true ;;
19901.84Schristos	esac
19911.84Schristos      fi
19921.84Schristos      as_fn_append ac_configure_args " '$ac_arg'"
19931.84Schristos      ;;
19941.84Schristos    esac
19951.84Schristos  done
19961.1Stvdone
19971.84Schristos{ ac_configure_args0=; unset ac_configure_args0;}
19981.84Schristos{ ac_configure_args1=; unset ac_configure_args1;}
19991.1Stv
20001.1Stv# When interrupted or exit'd, cleanup temporary files, and complete
20011.1Stv# config.log.  We remove comments because anyway the quotes in there
20021.1Stv# would cause problems or look ugly.
20031.84Schristos# WARNING: Use '\'' to represent an apostrophe within the trap.
20041.84Schristos# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
20051.1Stvtrap 'exit_status=$?
20061.108Schristos  # Sanitize IFS.
20071.108Schristos  IFS=" ""	$as_nl"
20081.1Stv  # Save into config.log some information that might help in debugging.
20091.84Schristos  {
20101.84Schristos    echo
20111.84Schristos
20121.108Schristos    printf "%s\n" "## ---------------- ##
20131.84Schristos## Cache variables. ##
20141.84Schristos## ---------------- ##"
20151.84Schristos    echo
20161.84Schristos    # The following way of writing the cache mishandles newlines in values,
20171.84Schristos(
20181.84Schristos  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
20191.84Schristos    eval ac_val=\$$ac_var
20201.84Schristos    case $ac_val in #(
20211.84Schristos    *${as_nl}*)
20221.84Schristos      case $ac_var in #(
20231.108Schristos      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20241.108Schristosprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20251.84Schristos      esac
20261.84Schristos      case $ac_var in #(
20271.84Schristos      _ | IFS | as_nl) ;; #(
20281.84Schristos      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20291.84Schristos      *) { eval $ac_var=; unset $ac_var;} ;;
20301.84Schristos      esac ;;
20311.84Schristos    esac
20321.84Schristos  done
20331.1Stv  (set) 2>&1 |
20341.84Schristos    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
20351.84Schristos    *${as_nl}ac_space=\ *)
20361.1Stv      sed -n \
20371.84Schristos	"s/'\''/'\''\\\\'\'''\''/g;
20381.84Schristos	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
20391.84Schristos      ;; #(
20401.1Stv    *)
20411.84Schristos      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20421.1Stv      ;;
20431.84Schristos    esac |
20441.84Schristos    sort
20451.84Schristos)
20461.84Schristos    echo
20471.84Schristos
20481.108Schristos    printf "%s\n" "## ----------------- ##
20491.84Schristos## Output variables. ##
20501.84Schristos## ----------------- ##"
20511.84Schristos    echo
20521.84Schristos    for ac_var in $ac_subst_vars
20531.84Schristos    do
20541.84Schristos      eval ac_val=\$$ac_var
20551.84Schristos      case $ac_val in
20561.108Schristos      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20571.84Schristos      esac
20581.108Schristos      printf "%s\n" "$ac_var='\''$ac_val'\''"
20591.84Schristos    done | sort
20601.84Schristos    echo
20611.84Schristos
20621.84Schristos    if test -n "$ac_subst_files"; then
20631.108Schristos      printf "%s\n" "## ------------------- ##
20641.84Schristos## File substitutions. ##
20651.84Schristos## ------------------- ##"
20661.84Schristos      echo
20671.84Schristos      for ac_var in $ac_subst_files
20681.84Schristos      do
20691.84Schristos	eval ac_val=\$$ac_var
20701.84Schristos	case $ac_val in
20711.108Schristos	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20721.84Schristos	esac
20731.108Schristos	printf "%s\n" "$ac_var='\''$ac_val'\''"
20741.84Schristos      done | sort
20751.84Schristos      echo
20761.84Schristos    fi
20771.84Schristos
20781.84Schristos    if test -s confdefs.h; then
20791.108Schristos      printf "%s\n" "## ----------- ##
20801.84Schristos## confdefs.h. ##
20811.84Schristos## ----------- ##"
20821.84Schristos      echo
20831.84Schristos      cat confdefs.h
20841.84Schristos      echo
20851.84Schristos    fi
20861.84Schristos    test "$ac_signal" != 0 &&
20871.108Schristos      printf "%s\n" "$as_me: caught signal $ac_signal"
20881.108Schristos    printf "%s\n" "$as_me: exit $exit_status"
20891.84Schristos  } >&5
20901.84Schristos  rm -f core *.core core.conftest.* &&
20911.84Schristos    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
20921.1Stv    exit $exit_status
20931.84Schristos' 0
20941.1Stvfor ac_signal in 1 2 13 15; do
20951.84Schristos  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
20961.1Stvdone
20971.1Stvac_signal=0
20981.1Stv
20991.1Stv# confdefs.h avoids OS command line length limits that DEFS can exceed.
21001.84Schristosrm -f -r conftest* confdefs.h
21011.84Schristos
21021.108Schristosprintf "%s\n" "/* confdefs.h */" > confdefs.h
21031.84Schristos
21041.84Schristos# Predefined preprocessor variables.
21051.84Schristos
21061.108Schristosprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
21071.84Schristos
21081.108Schristosprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
21091.84Schristos
21101.108Schristosprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
21111.84Schristos
21121.108Schristosprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
21131.84Schristos
21141.108Schristosprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
21151.84Schristos
21161.108Schristosprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
21171.84Schristos
21181.1Stv
21191.1Stv# Let the site file select an alternate cache file if it wants to.
21201.84Schristos# Prefer an explicitly selected file to automatically selected ones.
21211.84Schristosif test -n "$CONFIG_SITE"; then
21221.108Schristos  ac_site_files="$CONFIG_SITE"
21231.84Schristoselif test "x$prefix" != xNONE; then
21241.108Schristos  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
21251.84Schristoselse
21261.108Schristos  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
21271.1Stvfi
21281.108Schristos
21291.108Schristosfor ac_site_file in $ac_site_files
21301.84Schristosdo
21311.108Schristos  case $ac_site_file in #(
21321.108Schristos  */*) :
21331.108Schristos     ;; #(
21341.108Schristos  *) :
21351.108Schristos    ac_site_file=./$ac_site_file ;;
21361.108Schristosesac
21371.108Schristos  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
21381.108Schristos    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
21391.108Schristosprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
21401.84Schristos    sed 's/^/| /' "$ac_site_file" >&5
21411.84Schristos    . "$ac_site_file" \
21421.108Schristos      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21431.108Schristosprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21441.84Schristosas_fn_error $? "failed to load site script $ac_site_file
21451.108SchristosSee 'config.log' for more details" "$LINENO" 5; }
21461.1Stv  fi
21471.1Stvdone
21481.1Stv
21491.1Stvif test -r "$cache_file"; then
21501.84Schristos  # Some versions of bash will fail to source /dev/null (special files
21511.84Schristos  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
21521.84Schristos  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
21531.108Schristos    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
21541.108Schristosprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
21551.1Stv    case $cache_file in
21561.84Schristos      [\\/]* | ?:[\\/]* ) . "$cache_file";;
21571.84Schristos      *)                      . "./$cache_file";;
21581.1Stv    esac
21591.1Stv  fi
21601.1Stvelse
21611.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
21621.108Schristosprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
21631.1Stv  >$cache_file
21641.1Stvfi
21651.1Stv
21661.108Schristos# Test code for whether the C compiler supports C89 (global declarations)
21671.108Schristosac_c_conftest_c89_globals='
21681.108Schristos/* Does the compiler advertise C89 conformance?
21691.108Schristos   Do not test the value of __STDC__, because some compilers set it to 0
21701.108Schristos   while being otherwise adequately conformant. */
21711.108Schristos#if !defined __STDC__
21721.108Schristos# error "Compiler does not advertise C89 conformance"
21731.108Schristos#endif
21741.108Schristos
21751.108Schristos#include <stddef.h>
21761.108Schristos#include <stdarg.h>
21771.108Schristosstruct stat;
21781.108Schristos/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
21791.108Schristosstruct buf { int x; };
21801.108Schristosstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
21811.108Schristosstatic char *e (char **p, int i)
21821.108Schristos{
21831.108Schristos  return p[i];
21841.108Schristos}
21851.108Schristosstatic char *f (char * (*g) (char **, int), char **p, ...)
21861.108Schristos{
21871.108Schristos  char *s;
21881.108Schristos  va_list v;
21891.108Schristos  va_start (v,p);
21901.108Schristos  s = g (p, va_arg (v,int));
21911.108Schristos  va_end (v);
21921.108Schristos  return s;
21931.108Schristos}
21941.108Schristos
21951.108Schristos/* C89 style stringification. */
21961.108Schristos#define noexpand_stringify(a) #a
21971.108Schristosconst char *stringified = noexpand_stringify(arbitrary+token=sequence);
21981.108Schristos
21991.108Schristos/* C89 style token pasting.  Exercises some of the corner cases that
22001.108Schristos   e.g. old MSVC gets wrong, but not very hard. */
22011.108Schristos#define noexpand_concat(a,b) a##b
22021.108Schristos#define expand_concat(a,b) noexpand_concat(a,b)
22031.108Schristosextern int vA;
22041.108Schristosextern int vbee;
22051.108Schristos#define aye A
22061.108Schristos#define bee B
22071.108Schristosint *pvA = &expand_concat(v,aye);
22081.108Schristosint *pvbee = &noexpand_concat(v,bee);
22091.108Schristos
22101.108Schristos/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22111.108Schristos   function prototypes and stuff, but not \xHH hex character constants.
22121.108Schristos   These do not provoke an error unfortunately, instead are silently treated
22131.108Schristos   as an "x".  The following induces an error, until -std is added to get
22141.108Schristos   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
22151.108Schristos   array size at least.  It is necessary to write \x00 == 0 to get something
22161.108Schristos   that is true only with -std.  */
22171.108Schristosint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
22181.108Schristos
22191.108Schristos/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
22201.108Schristos   inside strings and character constants.  */
22211.108Schristos#define FOO(x) '\''x'\''
22221.108Schristosint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
22231.108Schristos
22241.108Schristosint test (int i, double x);
22251.108Schristosstruct s1 {int (*f) (int a);};
22261.108Schristosstruct s2 {int (*f) (double a);};
22271.108Schristosint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
22281.108Schristos               int, int);'
22291.108Schristos
22301.108Schristos# Test code for whether the C compiler supports C89 (body of main).
22311.108Schristosac_c_conftest_c89_main='
22321.108Schristosok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
22331.108Schristos'
22341.108Schristos
22351.108Schristos# Test code for whether the C compiler supports C99 (global declarations)
22361.108Schristosac_c_conftest_c99_globals='
22371.108Schristos/* Does the compiler advertise C99 conformance? */
22381.108Schristos#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
22391.108Schristos# error "Compiler does not advertise C99 conformance"
22401.108Schristos#endif
22411.108Schristos
22421.108Schristos// See if C++-style comments work.
22431.108Schristos
22441.108Schristos#include <stdbool.h>
22451.108Schristosextern int puts (const char *);
22461.108Schristosextern int printf (const char *, ...);
22471.108Schristosextern int dprintf (int, const char *, ...);
22481.108Schristosextern void *malloc (size_t);
22491.108Schristosextern void free (void *);
22501.108Schristos
22511.108Schristos// Check varargs macros.  These examples are taken from C99 6.10.3.5.
22521.108Schristos// dprintf is used instead of fprintf to avoid needing to declare
22531.108Schristos// FILE and stderr.
22541.108Schristos#define debug(...) dprintf (2, __VA_ARGS__)
22551.108Schristos#define showlist(...) puts (#__VA_ARGS__)
22561.108Schristos#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
22571.108Schristosstatic void
22581.108Schristostest_varargs_macros (void)
22591.108Schristos{
22601.108Schristos  int x = 1234;
22611.108Schristos  int y = 5678;
22621.108Schristos  debug ("Flag");
22631.108Schristos  debug ("X = %d\n", x);
22641.108Schristos  showlist (The first, second, and third items.);
22651.108Schristos  report (x>y, "x is %d but y is %d", x, y);
22661.108Schristos}
22671.108Schristos
22681.108Schristos// Check long long types.
22691.108Schristos#define BIG64 18446744073709551615ull
22701.108Schristos#define BIG32 4294967295ul
22711.108Schristos#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
22721.108Schristos#if !BIG_OK
22731.108Schristos  #error "your preprocessor is broken"
22741.108Schristos#endif
22751.108Schristos#if BIG_OK
22761.108Schristos#else
22771.108Schristos  #error "your preprocessor is broken"
22781.108Schristos#endif
22791.108Schristosstatic long long int bignum = -9223372036854775807LL;
22801.108Schristosstatic unsigned long long int ubignum = BIG64;
22811.108Schristos
22821.108Schristosstruct incomplete_array
22831.108Schristos{
22841.108Schristos  int datasize;
22851.108Schristos  double data[];
22861.108Schristos};
22871.108Schristos
22881.108Schristosstruct named_init {
22891.108Schristos  int number;
22901.108Schristos  const wchar_t *name;
22911.108Schristos  double average;
22921.108Schristos};
22931.108Schristos
22941.108Schristostypedef const char *ccp;
22951.108Schristos
22961.108Schristosstatic inline int
22971.108Schristostest_restrict (ccp restrict text)
22981.108Schristos{
22991.108Schristos  // Iterate through items via the restricted pointer.
23001.108Schristos  // Also check for declarations in for loops.
23011.108Schristos  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
23021.108Schristos    continue;
23031.108Schristos  return 0;
23041.108Schristos}
23051.108Schristos
23061.108Schristos// Check varargs and va_copy.
23071.108Schristosstatic bool
23081.108Schristostest_varargs (const char *format, ...)
23091.108Schristos{
23101.108Schristos  va_list args;
23111.108Schristos  va_start (args, format);
23121.108Schristos  va_list args_copy;
23131.108Schristos  va_copy (args_copy, args);
23141.108Schristos
23151.108Schristos  const char *str = "";
23161.108Schristos  int number = 0;
23171.108Schristos  float fnumber = 0;
23181.108Schristos
23191.108Schristos  while (*format)
23201.108Schristos    {
23211.108Schristos      switch (*format++)
23221.108Schristos	{
23231.108Schristos	case '\''s'\'': // string
23241.108Schristos	  str = va_arg (args_copy, const char *);
23251.108Schristos	  break;
23261.108Schristos	case '\''d'\'': // int
23271.108Schristos	  number = va_arg (args_copy, int);
23281.108Schristos	  break;
23291.108Schristos	case '\''f'\'': // float
23301.108Schristos	  fnumber = va_arg (args_copy, double);
23311.108Schristos	  break;
23321.108Schristos	default:
23331.108Schristos	  break;
23341.108Schristos	}
23351.108Schristos    }
23361.108Schristos  va_end (args_copy);
23371.108Schristos  va_end (args);
23381.108Schristos
23391.108Schristos  return *str && number && fnumber;
23401.108Schristos}
23411.108Schristos'
23421.108Schristos
23431.108Schristos# Test code for whether the C compiler supports C99 (body of main).
23441.108Schristosac_c_conftest_c99_main='
23451.108Schristos  // Check bool.
23461.108Schristos  _Bool success = false;
23471.108Schristos  success |= (argc != 0);
23481.108Schristos
23491.108Schristos  // Check restrict.
23501.108Schristos  if (test_restrict ("String literal") == 0)
23511.108Schristos    success = true;
23521.108Schristos  char *restrict newvar = "Another string";
23531.108Schristos
23541.108Schristos  // Check varargs.
23551.108Schristos  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
23561.108Schristos  test_varargs_macros ();
23571.108Schristos
23581.108Schristos  // Check flexible array members.
23591.108Schristos  struct incomplete_array *ia =
23601.108Schristos    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
23611.108Schristos  ia->datasize = 10;
23621.108Schristos  for (int i = 0; i < ia->datasize; ++i)
23631.108Schristos    ia->data[i] = i * 1.234;
23641.108Schristos  // Work around memory leak warnings.
23651.108Schristos  free (ia);
23661.108Schristos
23671.108Schristos  // Check named initializers.
23681.108Schristos  struct named_init ni = {
23691.108Schristos    .number = 34,
23701.108Schristos    .name = L"Test wide string",
23711.108Schristos    .average = 543.34343,
23721.108Schristos  };
23731.108Schristos
23741.108Schristos  ni.number = 58;
23751.108Schristos
23761.108Schristos  int dynamic_array[ni.number];
23771.108Schristos  dynamic_array[0] = argv[0][0];
23781.108Schristos  dynamic_array[ni.number - 1] = 543;
23791.108Schristos
23801.108Schristos  // work around unused variable warnings
23811.108Schristos  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
23821.108Schristos	 || dynamic_array[ni.number - 1] != 543);
23831.108Schristos'
23841.108Schristos
23851.108Schristos# Test code for whether the C compiler supports C11 (global declarations)
23861.108Schristosac_c_conftest_c11_globals='
23871.108Schristos/* Does the compiler advertise C11 conformance? */
23881.108Schristos#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
23891.108Schristos# error "Compiler does not advertise C11 conformance"
23901.108Schristos#endif
23911.108Schristos
23921.108Schristos// Check _Alignas.
23931.108Schristoschar _Alignas (double) aligned_as_double;
23941.108Schristoschar _Alignas (0) no_special_alignment;
23951.108Schristosextern char aligned_as_int;
23961.108Schristoschar _Alignas (0) _Alignas (int) aligned_as_int;
23971.108Schristos
23981.108Schristos// Check _Alignof.
23991.108Schristosenum
24001.108Schristos{
24011.108Schristos  int_alignment = _Alignof (int),
24021.108Schristos  int_array_alignment = _Alignof (int[100]),
24031.108Schristos  char_alignment = _Alignof (char)
24041.108Schristos};
24051.108Schristos_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
24061.108Schristos
24071.108Schristos// Check _Noreturn.
24081.108Schristosint _Noreturn does_not_return (void) { for (;;) continue; }
24091.108Schristos
24101.108Schristos// Check _Static_assert.
24111.108Schristosstruct test_static_assert
24121.108Schristos{
24131.108Schristos  int x;
24141.108Schristos  _Static_assert (sizeof (int) <= sizeof (long int),
24151.108Schristos                  "_Static_assert does not work in struct");
24161.108Schristos  long int y;
24171.108Schristos};
24181.108Schristos
24191.108Schristos// Check UTF-8 literals.
24201.108Schristos#define u8 syntax error!
24211.108Schristoschar const utf8_literal[] = u8"happens to be ASCII" "another string";
24221.108Schristos
24231.108Schristos// Check duplicate typedefs.
24241.108Schristostypedef long *long_ptr;
24251.108Schristostypedef long int *long_ptr;
24261.108Schristostypedef long_ptr long_ptr;
24271.108Schristos
24281.108Schristos// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
24291.108Schristosstruct anonymous
24301.108Schristos{
24311.108Schristos  union {
24321.108Schristos    struct { int i; int j; };
24331.108Schristos    struct { int k; long int l; } w;
24341.108Schristos  };
24351.108Schristos  int m;
24361.108Schristos} v1;
24371.108Schristos'
24381.108Schristos
24391.108Schristos# Test code for whether the C compiler supports C11 (body of main).
24401.108Schristosac_c_conftest_c11_main='
24411.108Schristos  _Static_assert ((offsetof (struct anonymous, i)
24421.108Schristos		   == offsetof (struct anonymous, w.k)),
24431.108Schristos		  "Anonymous union alignment botch");
24441.108Schristos  v1.i = 2;
24451.108Schristos  v1.w.k = 5;
24461.108Schristos  ok |= v1.i != 5;
24471.108Schristos'
24481.108Schristos
24491.108Schristos# Test code for whether the C compiler supports C11 (complete).
24501.108Schristosac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
24511.108Schristos${ac_c_conftest_c99_globals}
24521.108Schristos${ac_c_conftest_c11_globals}
24531.108Schristos
24541.108Schristosint
24551.108Schristosmain (int argc, char **argv)
24561.108Schristos{
24571.108Schristos  int ok = 0;
24581.108Schristos  ${ac_c_conftest_c89_main}
24591.108Schristos  ${ac_c_conftest_c99_main}
24601.108Schristos  ${ac_c_conftest_c11_main}
24611.108Schristos  return ok;
24621.108Schristos}
24631.108Schristos"
24641.108Schristos
24651.108Schristos# Test code for whether the C compiler supports C99 (complete).
24661.108Schristosac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
24671.108Schristos${ac_c_conftest_c99_globals}
24681.108Schristos
24691.108Schristosint
24701.108Schristosmain (int argc, char **argv)
24711.108Schristos{
24721.108Schristos  int ok = 0;
24731.108Schristos  ${ac_c_conftest_c89_main}
24741.108Schristos  ${ac_c_conftest_c99_main}
24751.108Schristos  return ok;
24761.108Schristos}
24771.108Schristos"
24781.108Schristos
24791.108Schristos# Test code for whether the C compiler supports C89 (complete).
24801.108Schristosac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
24811.108Schristos
24821.108Schristosint
24831.108Schristosmain (int argc, char **argv)
24841.108Schristos{
24851.108Schristos  int ok = 0;
24861.108Schristos  ${ac_c_conftest_c89_main}
24871.108Schristos  return ok;
24881.108Schristos}
24891.108Schristos"
24901.108Schristos
24911.108Schristosas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
24921.108Schristosas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
24931.108Schristosas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
24941.108Schristosas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
24951.108Schristosas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
24961.108Schristosas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
24971.108Schristosas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
24981.108Schristosas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
24991.108Schristosas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
25001.1Stv# Check that the precious variables saved in the cache have kept the same
25011.1Stv# value.
25021.1Stvac_cache_corrupted=false
25031.84Schristosfor ac_var in $ac_precious_vars; do
25041.1Stv  eval ac_old_set=\$ac_cv_env_${ac_var}_set
25051.1Stv  eval ac_new_set=\$ac_env_${ac_var}_set
25061.84Schristos  eval ac_old_val=\$ac_cv_env_${ac_var}_value
25071.84Schristos  eval ac_new_val=\$ac_env_${ac_var}_value
25081.1Stv  case $ac_old_set,$ac_new_set in
25091.1Stv    set,)
25101.108Schristos      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
25111.108Schristosprintf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
25121.1Stv      ac_cache_corrupted=: ;;
25131.1Stv    ,set)
25141.108Schristos      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
25151.108Schristosprintf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
25161.1Stv      ac_cache_corrupted=: ;;
25171.1Stv    ,);;
25181.1Stv    *)
25191.1Stv      if test "x$ac_old_val" != "x$ac_new_val"; then
25201.84Schristos	# differences in whitespace do not lead to failure.
25211.84Schristos	ac_old_val_w=`echo x $ac_old_val`
25221.84Schristos	ac_new_val_w=`echo x $ac_new_val`
25231.84Schristos	if test "$ac_old_val_w" != "$ac_new_val_w"; then
25241.108Schristos	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
25251.108Schristosprintf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
25261.84Schristos	  ac_cache_corrupted=:
25271.84Schristos	else
25281.108Schristos	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
25291.108Schristosprintf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
25301.84Schristos	  eval $ac_var=\$ac_old_val
25311.84Schristos	fi
25321.108Schristos	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
25331.108Schristosprintf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
25341.108Schristos	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
25351.108Schristosprintf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
25361.1Stv      fi;;
25371.1Stv  esac
25381.84Schristos  # Pass precious variables to config.status.
25391.1Stv  if test "$ac_new_set" = set; then
25401.1Stv    case $ac_new_val in
25411.108Schristos    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
25421.84Schristos    *) ac_arg=$ac_var=$ac_new_val ;;
25431.84Schristos    esac
25441.84Schristos    case " $ac_configure_args " in
25451.84Schristos      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
25461.84Schristos      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
25471.1Stv    esac
25481.1Stv  fi
25491.1Stvdone
25501.1Stvif $ac_cache_corrupted; then
25511.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25521.108Schristosprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25531.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
25541.108Schristosprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
25551.108Schristos  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
25561.108Schristos	    and start over" "$LINENO" 5
25571.84Schristosfi
25581.84Schristos## -------------------- ##
25591.84Schristos## Main body of script. ##
25601.84Schristos## -------------------- ##
25611.1Stv
25621.1Stvac_ext=c
25631.1Stvac_cpp='$CPP $CPPFLAGS'
25641.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25651.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25661.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
25671.1Stv
25681.1Stv
25691.63Sapbac_config_headers="$ac_config_headers nbtool_config.h"
25701.1Stv
25711.63Sapbac_config_files="$ac_config_files defs.mk"
25721.1Stv
25731.84Schristos
25741.101Slukem
25751.101Slukem
25761.102Slukem
25771.102Slukem
25781.57Swiz# Autoheader header and footer
25791.57Swiz
25801.84Schristos
25811.84Schristos
25821.84Schristos
25831.20Sbjh21
25841.108Schristos
25851.108Schristos
25861.108Schristos
25871.108Schristos
25881.108Schristos
25891.108Schristos
25901.108Schristos
25911.108Schristos
25921.108Schristos
25931.1Stvac_ext=c
25941.1Stvac_cpp='$CPP $CPPFLAGS'
25951.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25961.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25971.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
25981.1Stvif test -n "$ac_tool_prefix"; then
25991.1Stv  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
26001.1Stvset dummy ${ac_tool_prefix}gcc; ac_word=$2
26011.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26021.108Schristosprintf %s "checking for $ac_word... " >&6; }
26031.108Schristosif test ${ac_cv_prog_CC+y}
26041.108Schristosthen :
26051.108Schristos  printf %s "(cached) " >&6
26061.108Schristoselse case e in #(
26071.108Schristos  e) if test -n "$CC"; then
26081.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
26091.1Stvelse
26101.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26111.84Schristosfor as_dir in $PATH
26121.84Schristosdo
26131.84Schristos  IFS=$as_save_IFS
26141.108Schristos  case $as_dir in #(((
26151.108Schristos    '') as_dir=./ ;;
26161.108Schristos    */) ;;
26171.108Schristos    *) as_dir=$as_dir/ ;;
26181.108Schristos  esac
26191.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
26201.108Schristos  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26211.84Schristos    ac_cv_prog_CC="${ac_tool_prefix}gcc"
26221.108Schristos    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26231.84Schristos    break 2
26241.84Schristos  fi
26251.1Stvdone
26261.84Schristos  done
26271.84SchristosIFS=$as_save_IFS
26281.1Stv
26291.108Schristosfi ;;
26301.108Schristosesac
26311.1Stvfi
26321.1StvCC=$ac_cv_prog_CC
26331.1Stvif test -n "$CC"; then
26341.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
26351.108Schristosprintf "%s\n" "$CC" >&6; }
26361.1Stvelse
26371.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26381.108Schristosprintf "%s\n" "no" >&6; }
26391.1Stvfi
26401.1Stv
26411.84Schristos
26421.1Stvfi
26431.1Stvif test -z "$ac_cv_prog_CC"; then
26441.1Stv  ac_ct_CC=$CC
26451.1Stv  # Extract the first word of "gcc", so it can be a program name with args.
26461.1Stvset dummy gcc; ac_word=$2
26471.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26481.108Schristosprintf %s "checking for $ac_word... " >&6; }
26491.108Schristosif test ${ac_cv_prog_ac_ct_CC+y}
26501.108Schristosthen :
26511.108Schristos  printf %s "(cached) " >&6
26521.108Schristoselse case e in #(
26531.108Schristos  e) if test -n "$ac_ct_CC"; then
26541.1Stv  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
26551.1Stvelse
26561.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26571.84Schristosfor as_dir in $PATH
26581.84Schristosdo
26591.84Schristos  IFS=$as_save_IFS
26601.108Schristos  case $as_dir in #(((
26611.108Schristos    '') as_dir=./ ;;
26621.108Schristos    */) ;;
26631.108Schristos    *) as_dir=$as_dir/ ;;
26641.108Schristos  esac
26651.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
26661.108Schristos  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26671.84Schristos    ac_cv_prog_ac_ct_CC="gcc"
26681.108Schristos    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26691.84Schristos    break 2
26701.84Schristos  fi
26711.1Stvdone
26721.84Schristos  done
26731.84SchristosIFS=$as_save_IFS
26741.1Stv
26751.108Schristosfi ;;
26761.108Schristosesac
26771.1Stvfi
26781.1Stvac_ct_CC=$ac_cv_prog_ac_ct_CC
26791.1Stvif test -n "$ac_ct_CC"; then
26801.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
26811.108Schristosprintf "%s\n" "$ac_ct_CC" >&6; }
26821.1Stvelse
26831.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26841.108Schristosprintf "%s\n" "no" >&6; }
26851.1Stvfi
26861.1Stv
26871.84Schristos  if test "x$ac_ct_CC" = x; then
26881.84Schristos    CC=""
26891.84Schristos  else
26901.84Schristos    case $cross_compiling:$ac_tool_warned in
26911.84Schristosyes:)
26921.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26931.108Schristosprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26941.84Schristosac_tool_warned=yes ;;
26951.84Schristosesac
26961.84Schristos    CC=$ac_ct_CC
26971.84Schristos  fi
26981.1Stvelse
26991.1Stv  CC="$ac_cv_prog_CC"
27001.1Stvfi
27011.1Stv
27021.1Stvif test -z "$CC"; then
27031.84Schristos          if test -n "$ac_tool_prefix"; then
27041.84Schristos    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27051.1Stvset dummy ${ac_tool_prefix}cc; ac_word=$2
27061.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27071.108Schristosprintf %s "checking for $ac_word... " >&6; }
27081.108Schristosif test ${ac_cv_prog_CC+y}
27091.108Schristosthen :
27101.108Schristos  printf %s "(cached) " >&6
27111.108Schristoselse case e in #(
27121.108Schristos  e) if test -n "$CC"; then
27131.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
27141.1Stvelse
27151.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27161.84Schristosfor as_dir in $PATH
27171.84Schristosdo
27181.84Schristos  IFS=$as_save_IFS
27191.108Schristos  case $as_dir in #(((
27201.108Schristos    '') as_dir=./ ;;
27211.108Schristos    */) ;;
27221.108Schristos    *) as_dir=$as_dir/ ;;
27231.108Schristos  esac
27241.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
27251.108Schristos  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27261.84Schristos    ac_cv_prog_CC="${ac_tool_prefix}cc"
27271.108Schristos    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27281.84Schristos    break 2
27291.84Schristos  fi
27301.65Schristosdone
27311.84Schristos  done
27321.84SchristosIFS=$as_save_IFS
27331.1Stv
27341.108Schristosfi ;;
27351.108Schristosesac
27361.1Stvfi
27371.1StvCC=$ac_cv_prog_CC
27381.1Stvif test -n "$CC"; then
27391.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
27401.108Schristosprintf "%s\n" "$CC" >&6; }
27411.76Spookaelse
27421.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27431.108Schristosprintf "%s\n" "no" >&6; }
27441.76Spookafi
27451.76Spooka
27461.1Stv
27471.84Schristos  fi
27481.1Stvfi
27491.1Stvif test -z "$CC"; then
27501.1Stv  # Extract the first word of "cc", so it can be a program name with args.
27511.1Stvset dummy cc; ac_word=$2
27521.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27531.108Schristosprintf %s "checking for $ac_word... " >&6; }
27541.108Schristosif test ${ac_cv_prog_CC+y}
27551.108Schristosthen :
27561.108Schristos  printf %s "(cached) " >&6
27571.108Schristoselse case e in #(
27581.108Schristos  e) if test -n "$CC"; then
27591.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
27601.1Stvelse
27611.1Stv  ac_prog_rejected=no
27621.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27631.84Schristosfor as_dir in $PATH
27641.84Schristosdo
27651.84Schristos  IFS=$as_save_IFS
27661.108Schristos  case $as_dir in #(((
27671.108Schristos    '') as_dir=./ ;;
27681.108Schristos    */) ;;
27691.108Schristos    *) as_dir=$as_dir/ ;;
27701.108Schristos  esac
27711.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
27721.108Schristos  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27731.108Schristos    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
27741.84Schristos       ac_prog_rejected=yes
27751.84Schristos       continue
27761.84Schristos     fi
27771.84Schristos    ac_cv_prog_CC="cc"
27781.108Schristos    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27791.84Schristos    break 2
27801.84Schristos  fi
27811.65Schristosdone
27821.84Schristos  done
27831.84SchristosIFS=$as_save_IFS
27841.1Stv
27851.1Stvif test $ac_prog_rejected = yes; then
27861.1Stv  # We found a bogon in the path, so make sure we never use it.
27871.1Stv  set dummy $ac_cv_prog_CC
27881.1Stv  shift
27891.1Stv  if test $# != 0; then
27901.1Stv    # We chose a different compiler from the bogus one.
27911.1Stv    # However, it has the same basename, so the bogon will be chosen
27921.1Stv    # first if we set CC to just the basename; use the full file name.
27931.1Stv    shift
27941.108Schristos    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
27951.1Stv  fi
27961.1Stvfi
27971.108Schristosfi ;;
27981.108Schristosesac
27991.1Stvfi
28001.1StvCC=$ac_cv_prog_CC
28011.1Stvif test -n "$CC"; then
28021.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28031.108Schristosprintf "%s\n" "$CC" >&6; }
28041.1Stvelse
28051.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28061.108Schristosprintf "%s\n" "no" >&6; }
28071.1Stvfi
28081.1Stv
28091.84Schristos
28101.1Stvfi
28111.1Stvif test -z "$CC"; then
28121.1Stv  if test -n "$ac_tool_prefix"; then
28131.84Schristos  for ac_prog in cl.exe
28141.1Stv  do
28151.1Stv    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28161.1Stvset dummy $ac_tool_prefix$ac_prog; ac_word=$2
28171.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28181.108Schristosprintf %s "checking for $ac_word... " >&6; }
28191.108Schristosif test ${ac_cv_prog_CC+y}
28201.108Schristosthen :
28211.108Schristos  printf %s "(cached) " >&6
28221.108Schristoselse case e in #(
28231.108Schristos  e) if test -n "$CC"; then
28241.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
28251.1Stvelse
28261.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28271.84Schristosfor as_dir in $PATH
28281.84Schristosdo
28291.84Schristos  IFS=$as_save_IFS
28301.108Schristos  case $as_dir in #(((
28311.108Schristos    '') as_dir=./ ;;
28321.108Schristos    */) ;;
28331.108Schristos    *) as_dir=$as_dir/ ;;
28341.108Schristos  esac
28351.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
28361.108Schristos  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28371.84Schristos    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
28381.108Schristos    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28391.84Schristos    break 2
28401.84Schristos  fi
28411.1Stvdone
28421.84Schristos  done
28431.84SchristosIFS=$as_save_IFS
28441.1Stv
28451.108Schristosfi ;;
28461.108Schristosesac
28471.1Stvfi
28481.1StvCC=$ac_cv_prog_CC
28491.1Stvif test -n "$CC"; then
28501.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28511.108Schristosprintf "%s\n" "$CC" >&6; }
28521.1Stvelse
28531.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28541.108Schristosprintf "%s\n" "no" >&6; }
28551.1Stvfi
28561.1Stv
28571.84Schristos
28581.1Stv    test -n "$CC" && break
28591.1Stv  done
28601.1Stvfi
28611.1Stvif test -z "$CC"; then
28621.1Stv  ac_ct_CC=$CC
28631.84Schristos  for ac_prog in cl.exe
28641.1Stvdo
28651.1Stv  # Extract the first word of "$ac_prog", so it can be a program name with args.
28661.1Stvset dummy $ac_prog; ac_word=$2
28671.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28681.108Schristosprintf %s "checking for $ac_word... " >&6; }
28691.108Schristosif test ${ac_cv_prog_ac_ct_CC+y}
28701.108Schristosthen :
28711.108Schristos  printf %s "(cached) " >&6
28721.108Schristoselse case e in #(
28731.108Schristos  e) if test -n "$ac_ct_CC"; then
28741.1Stv  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28751.1Stvelse
28761.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28771.84Schristosfor as_dir in $PATH
28781.84Schristosdo
28791.84Schristos  IFS=$as_save_IFS
28801.108Schristos  case $as_dir in #(((
28811.108Schristos    '') as_dir=./ ;;
28821.108Schristos    */) ;;
28831.108Schristos    *) as_dir=$as_dir/ ;;
28841.108Schristos  esac
28851.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
28861.108Schristos  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28871.84Schristos    ac_cv_prog_ac_ct_CC="$ac_prog"
28881.108Schristos    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28891.84Schristos    break 2
28901.84Schristos  fi
28911.1Stvdone
28921.84Schristos  done
28931.84SchristosIFS=$as_save_IFS
28941.1Stv
28951.108Schristosfi ;;
28961.108Schristosesac
28971.1Stvfi
28981.1Stvac_ct_CC=$ac_cv_prog_ac_ct_CC
28991.1Stvif test -n "$ac_ct_CC"; then
29001.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
29011.108Schristosprintf "%s\n" "$ac_ct_CC" >&6; }
29021.1Stvelse
29031.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29041.108Schristosprintf "%s\n" "no" >&6; }
29051.1Stvfi
29061.1Stv
29071.84Schristos
29081.1Stv  test -n "$ac_ct_CC" && break
29091.1Stvdone
29101.1Stv
29111.84Schristos  if test "x$ac_ct_CC" = x; then
29121.84Schristos    CC=""
29131.84Schristos  else
29141.84Schristos    case $cross_compiling:$ac_tool_warned in
29151.84Schristosyes:)
29161.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29171.108Schristosprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29181.108Schristosac_tool_warned=yes ;;
29191.108Schristosesac
29201.108Schristos    CC=$ac_ct_CC
29211.108Schristos  fi
29221.108Schristosfi
29231.108Schristos
29241.108Schristosfi
29251.108Schristosif test -z "$CC"; then
29261.108Schristos  if test -n "$ac_tool_prefix"; then
29271.108Schristos  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
29281.108Schristosset dummy ${ac_tool_prefix}clang; ac_word=$2
29291.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29301.108Schristosprintf %s "checking for $ac_word... " >&6; }
29311.108Schristosif test ${ac_cv_prog_CC+y}
29321.108Schristosthen :
29331.108Schristos  printf %s "(cached) " >&6
29341.108Schristoselse case e in #(
29351.108Schristos  e) if test -n "$CC"; then
29361.108Schristos  ac_cv_prog_CC="$CC" # Let the user override the test.
29371.108Schristoselse
29381.108Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29391.108Schristosfor as_dir in $PATH
29401.108Schristosdo
29411.108Schristos  IFS=$as_save_IFS
29421.108Schristos  case $as_dir in #(((
29431.108Schristos    '') as_dir=./ ;;
29441.108Schristos    */) ;;
29451.108Schristos    *) as_dir=$as_dir/ ;;
29461.108Schristos  esac
29471.108Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
29481.108Schristos  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29491.108Schristos    ac_cv_prog_CC="${ac_tool_prefix}clang"
29501.108Schristos    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29511.108Schristos    break 2
29521.108Schristos  fi
29531.108Schristosdone
29541.108Schristos  done
29551.108SchristosIFS=$as_save_IFS
29561.108Schristos
29571.108Schristosfi ;;
29581.108Schristosesac
29591.108Schristosfi
29601.108SchristosCC=$ac_cv_prog_CC
29611.108Schristosif test -n "$CC"; then
29621.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29631.108Schristosprintf "%s\n" "$CC" >&6; }
29641.108Schristoselse
29651.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29661.108Schristosprintf "%s\n" "no" >&6; }
29671.108Schristosfi
29681.108Schristos
29691.108Schristos
29701.108Schristosfi
29711.108Schristosif test -z "$ac_cv_prog_CC"; then
29721.108Schristos  ac_ct_CC=$CC
29731.108Schristos  # Extract the first word of "clang", so it can be a program name with args.
29741.108Schristosset dummy clang; ac_word=$2
29751.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29761.108Schristosprintf %s "checking for $ac_word... " >&6; }
29771.108Schristosif test ${ac_cv_prog_ac_ct_CC+y}
29781.108Schristosthen :
29791.108Schristos  printf %s "(cached) " >&6
29801.108Schristoselse case e in #(
29811.108Schristos  e) if test -n "$ac_ct_CC"; then
29821.108Schristos  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29831.108Schristoselse
29841.108Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29851.108Schristosfor as_dir in $PATH
29861.108Schristosdo
29871.108Schristos  IFS=$as_save_IFS
29881.108Schristos  case $as_dir in #(((
29891.108Schristos    '') as_dir=./ ;;
29901.108Schristos    */) ;;
29911.108Schristos    *) as_dir=$as_dir/ ;;
29921.108Schristos  esac
29931.108Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
29941.108Schristos  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29951.108Schristos    ac_cv_prog_ac_ct_CC="clang"
29961.108Schristos    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29971.108Schristos    break 2
29981.108Schristos  fi
29991.108Schristosdone
30001.108Schristos  done
30011.108SchristosIFS=$as_save_IFS
30021.108Schristos
30031.108Schristosfi ;;
30041.108Schristosesac
30051.108Schristosfi
30061.108Schristosac_ct_CC=$ac_cv_prog_ac_ct_CC
30071.108Schristosif test -n "$ac_ct_CC"; then
30081.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30091.108Schristosprintf "%s\n" "$ac_ct_CC" >&6; }
30101.108Schristoselse
30111.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30121.108Schristosprintf "%s\n" "no" >&6; }
30131.108Schristosfi
30141.108Schristos
30151.108Schristos  if test "x$ac_ct_CC" = x; then
30161.108Schristos    CC=""
30171.108Schristos  else
30181.108Schristos    case $cross_compiling:$ac_tool_warned in
30191.108Schristosyes:)
30201.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30211.108Schristosprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30221.84Schristosac_tool_warned=yes ;;
30231.84Schristosesac
30241.84Schristos    CC=$ac_ct_CC
30251.84Schristos  fi
30261.108Schristoselse
30271.108Schristos  CC="$ac_cv_prog_CC"
30281.1Stvfi
30291.1Stv
30301.1Stvfi
30311.1Stv
30321.84Schristos
30331.108Schristostest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
30341.108Schristosprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
30351.84Schristosas_fn_error $? "no acceptable C compiler found in \$PATH
30361.108SchristosSee 'config.log' for more details" "$LINENO" 5; }
30371.1Stv
30381.1Stv# Provide some information about the compiler.
30391.108Schristosprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
30401.84Schristosset X $ac_compile
30411.84Schristosac_compiler=$2
30421.108Schristosfor ac_option in --version -v -V -qversion -version; do
30431.84Schristos  { { ac_try="$ac_compiler $ac_option >&5"
30441.84Schristoscase "(($ac_try" in
30451.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30461.84Schristos  *) ac_try_echo=$ac_try;;
30471.84Schristosesac
30481.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30491.108Schristosprintf "%s\n" "$ac_try_echo"; } >&5
30501.84Schristos  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
30511.76Spooka  ac_status=$?
30521.84Schristos  if test -s conftest.err; then
30531.84Schristos    sed '10a\
30541.84Schristos... rest of stderr output deleted ...
30551.84Schristos         10q' conftest.err >conftest.er1
30561.84Schristos    cat conftest.er1 >&5
30571.84Schristos  fi
30581.84Schristos  rm -f conftest.er1 conftest.err
30591.108Schristos  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30601.84Schristos  test $ac_status = 0; }
30611.84Schristosdone
30621.1Stv
30631.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
30641.84Schristos/* end confdefs.h.  */
30651.1Stv
30661.1Stvint
30671.108Schristosmain (void)
30681.1Stv{
30691.1Stv
30701.1Stv  ;
30711.1Stv  return 0;
30721.1Stv}
30731.1Stv_ACEOF
30741.1Stvac_clean_files_save=$ac_clean_files
30751.84Schristosac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
30761.1Stv# Try to create an executable without -o first, disregard a.out.
30771.1Stv# It will help us diagnose broken compilers, and finding out an intuition
30781.1Stv# of exeext.
30791.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
30801.108Schristosprintf %s "checking whether the C compiler works... " >&6; }
30811.108Schristosac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
30821.84Schristos
30831.84Schristos# The possible output files:
30841.84Schristosac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
30851.84Schristos
30861.84Schristosac_rmfiles=
30871.84Schristosfor ac_file in $ac_files
30881.84Schristosdo
30891.84Schristos  case $ac_file in
30901.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
30911.84Schristos    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
30921.84Schristos  esac
30931.84Schristosdone
30941.84Schristosrm -f $ac_rmfiles
30951.84Schristos
30961.84Schristosif { { ac_try="$ac_link_default"
30971.84Schristoscase "(($ac_try" in
30981.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30991.84Schristos  *) ac_try_echo=$ac_try;;
31001.84Schristosesac
31011.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31021.108Schristosprintf "%s\n" "$ac_try_echo"; } >&5
31031.84Schristos  (eval "$ac_link_default") 2>&5
31041.84Schristos  ac_status=$?
31051.108Schristos  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31061.108Schristos  test $ac_status = 0; }
31071.108Schristosthen :
31081.108Schristos  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
31091.108Schristos# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
31101.84Schristos# in a Makefile.  We should not override ac_cv_exeext if it was cached,
31111.84Schristos# so that the user can short-circuit this test for compilers unknown to
31121.84Schristos# Autoconf.
31131.84Schristosfor ac_file in $ac_files ''
31141.84Schristosdo
31151.84Schristos  test -f "$ac_file" || continue
31161.74Schristos  case $ac_file in
31171.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
31181.84Schristos	;;
31191.84Schristos    [ab].out )
31201.84Schristos	# We found the default executable, but exeext='' is most
31211.84Schristos	# certainly right.
31221.84Schristos	break;;
31231.84Schristos    *.* )
31241.108Schristos	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
31251.84Schristos	then :; else
31261.84Schristos	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31271.84Schristos	fi
31281.84Schristos	# We set ac_cv_exeext here because the later test for it is not
31291.108Schristos	# safe: cross compilers may not add the suffix if given an '-o'
31301.84Schristos	# argument, so we may need to know it at that point already.
31311.84Schristos	# Even if this section looks crufty: it has the advantage of
31321.84Schristos	# actually working.
31331.84Schristos	break;;
31341.84Schristos    * )
31351.84Schristos	break;;
31361.1Stv  esac
31371.1Stvdone
31381.84Schristostest "$ac_cv_exeext" = no && ac_cv_exeext=
31391.84Schristos
31401.108Schristoselse case e in #(
31411.108Schristos  e) ac_file='' ;;
31421.108Schristosesac
31431.1Stvfi
31441.108Schristosif test -z "$ac_file"
31451.108Schristosthen :
31461.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31471.108Schristosprintf "%s\n" "no" >&6; }
31481.108Schristosprintf "%s\n" "$as_me: failed program was:" >&5
31491.84Schristossed 's/^/| /' conftest.$ac_ext >&5
31501.1Stv
31511.108Schristos{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
31521.108Schristosprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
31531.84Schristosas_fn_error 77 "C compiler cannot create executables
31541.108SchristosSee 'config.log' for more details" "$LINENO" 5; }
31551.108Schristoselse case e in #(
31561.108Schristos  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31571.108Schristosprintf "%s\n" "yes" >&6; } ;;
31581.108Schristosesac
31591.84Schristosfi
31601.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
31611.108Schristosprintf %s "checking for C compiler default output file name... " >&6; }
31621.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
31631.108Schristosprintf "%s\n" "$ac_file" >&6; }
31641.76Spookaac_exeext=$ac_cv_exeext
31651.1Stv
31661.84Schristosrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
31671.1Stvac_clean_files=$ac_clean_files_save
31681.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
31691.108Schristosprintf %s "checking for suffix of executables... " >&6; }
31701.84Schristosif { { ac_try="$ac_link"
31711.84Schristoscase "(($ac_try" in
31721.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731.84Schristos  *) ac_try_echo=$ac_try;;
31741.84Schristosesac
31751.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31761.108Schristosprintf "%s\n" "$ac_try_echo"; } >&5
31771.84Schristos  (eval "$ac_link") 2>&5
31781.1Stv  ac_status=$?
31791.108Schristos  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31801.108Schristos  test $ac_status = 0; }
31811.108Schristosthen :
31821.108Schristos  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
31831.108Schristos# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
31841.108Schristos# work properly (i.e., refer to 'conftest.exe'), while it won't with
31851.108Schristos# 'rm'.
31861.84Schristosfor ac_file in conftest.exe conftest conftest.*; do
31871.84Schristos  test -f "$ac_file" || continue
31881.1Stv  case $ac_file in
31891.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
31901.1Stv    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31911.84Schristos	  break;;
31921.1Stv    * ) break;;
31931.1Stv  esac
31941.1Stvdone
31951.108Schristoselse case e in #(
31961.108Schristos  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
31971.108Schristosprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
31981.84Schristosas_fn_error $? "cannot compute suffix of executables: cannot compile and link
31991.108SchristosSee 'config.log' for more details" "$LINENO" 5; } ;;
32001.108Schristosesac
32011.84Schristosfi
32021.84Schristosrm -f conftest conftest$ac_cv_exeext
32031.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
32041.108Schristosprintf "%s\n" "$ac_cv_exeext" >&6; }
32051.1Stv
32061.1Stvrm -f conftest.$ac_ext
32071.1StvEXEEXT=$ac_cv_exeext
32081.1Stvac_exeext=$EXEEXT
32091.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
32101.84Schristos/* end confdefs.h.  */
32111.84Schristos#include <stdio.h>
32121.1Stvint
32131.108Schristosmain (void)
32141.1Stv{
32151.84SchristosFILE *f = fopen ("conftest.out", "w");
32161.108Schristos if (!f)
32171.108Schristos  return 1;
32181.84Schristos return ferror (f) || fclose (f) != 0;
32191.1Stv
32201.1Stv  ;
32211.1Stv  return 0;
32221.1Stv}
32231.1Stv_ACEOF
32241.84Schristosac_clean_files="$ac_clean_files conftest.out"
32251.84Schristos# Check that the compiler produces executables we can run.  If not, either
32261.84Schristos# the compiler is broken, or we cross compile.
32271.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
32281.108Schristosprintf %s "checking whether we are cross compiling... " >&6; }
32291.84Schristosif test "$cross_compiling" != yes; then
32301.84Schristos  { { ac_try="$ac_link"
32311.84Schristoscase "(($ac_try" in
32321.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32331.84Schristos  *) ac_try_echo=$ac_try;;
32341.84Schristosesac
32351.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32361.108Schristosprintf "%s\n" "$ac_try_echo"; } >&5
32371.84Schristos  (eval "$ac_link") 2>&5
32381.84Schristos  ac_status=$?
32391.108Schristos  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32401.84Schristos  test $ac_status = 0; }
32411.84Schristos  if { ac_try='./conftest$ac_cv_exeext'
32421.84Schristos  { { case "(($ac_try" in
32431.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32441.84Schristos  *) ac_try_echo=$ac_try;;
32451.84Schristosesac
32461.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32471.108Schristosprintf "%s\n" "$ac_try_echo"; } >&5
32481.84Schristos  (eval "$ac_try") 2>&5
32491.1Stv  ac_status=$?
32501.108Schristos  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32511.84Schristos  test $ac_status = 0; }; }; then
32521.84Schristos    cross_compiling=no
32531.84Schristos  else
32541.84Schristos    if test "$cross_compiling" = maybe; then
32551.84Schristos	cross_compiling=yes
32561.84Schristos    else
32571.108Schristos	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
32581.108Schristosprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
32591.108Schristosas_fn_error 77 "cannot run C compiled programs.
32601.108SchristosIf you meant to cross compile, use '--host'.
32611.108SchristosSee 'config.log' for more details" "$LINENO" 5; }
32621.84Schristos    fi
32631.84Schristos  fi
32641.84Schristosfi
32651.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
32661.108Schristosprintf "%s\n" "$cross_compiling" >&6; }
32671.84Schristos
32681.108Schristosrm -f conftest.$ac_ext conftest$ac_cv_exeext \
32691.108Schristos  conftest.o conftest.obj conftest.out
32701.84Schristosac_clean_files=$ac_clean_files_save
32711.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
32721.108Schristosprintf %s "checking for suffix of object files... " >&6; }
32731.108Schristosif test ${ac_cv_objext+y}
32741.108Schristosthen :
32751.108Schristos  printf %s "(cached) " >&6
32761.108Schristoselse case e in #(
32771.108Schristos  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32781.84Schristos/* end confdefs.h.  */
32791.74Schristos
32801.84Schristosint
32811.108Schristosmain (void)
32821.84Schristos{
32831.84Schristos
32841.84Schristos  ;
32851.84Schristos  return 0;
32861.84Schristos}
32871.84Schristos_ACEOF
32881.84Schristosrm -f conftest.o conftest.obj
32891.84Schristosif { { ac_try="$ac_compile"
32901.84Schristoscase "(($ac_try" in
32911.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32921.84Schristos  *) ac_try_echo=$ac_try;;
32931.84Schristosesac
32941.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32951.108Schristosprintf "%s\n" "$ac_try_echo"; } >&5
32961.84Schristos  (eval "$ac_compile") 2>&5
32971.84Schristos  ac_status=$?
32981.108Schristos  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32991.108Schristos  test $ac_status = 0; }
33001.108Schristosthen :
33011.84Schristos  for ac_file in conftest.o conftest.obj conftest.*; do
33021.84Schristos  test -f "$ac_file" || continue;
33031.84Schristos  case $ac_file in
33041.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
33051.84Schristos    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
33061.84Schristos       break;;
33071.84Schristos  esac
33081.84Schristosdone
33091.108Schristoselse case e in #(
33101.108Schristos  e) printf "%s\n" "$as_me: failed program was:" >&5
33111.84Schristossed 's/^/| /' conftest.$ac_ext >&5
33121.84Schristos
33131.108Schristos{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
33141.108Schristosprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
33151.84Schristosas_fn_error $? "cannot compute suffix of object files: cannot compile
33161.108SchristosSee 'config.log' for more details" "$LINENO" 5; } ;;
33171.108Schristosesac
33181.84Schristosfi
33191.108Schristosrm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
33201.108Schristosesac
33211.1Stvfi
33221.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
33231.108Schristosprintf "%s\n" "$ac_cv_objext" >&6; }
33241.1StvOBJEXT=$ac_cv_objext
33251.1Stvac_objext=$OBJEXT
33261.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
33271.108Schristosprintf %s "checking whether the compiler supports GNU C... " >&6; }
33281.108Schristosif test ${ac_cv_c_compiler_gnu+y}
33291.108Schristosthen :
33301.108Schristos  printf %s "(cached) " >&6
33311.108Schristoselse case e in #(
33321.108Schristos  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33331.84Schristos/* end confdefs.h.  */
33341.1Stv
33351.1Stvint
33361.108Schristosmain (void)
33371.1Stv{
33381.1Stv#ifndef __GNUC__
33391.1Stv       choke me
33401.1Stv#endif
33411.1Stv
33421.1Stv  ;
33431.1Stv  return 0;
33441.1Stv}
33451.1Stv_ACEOF
33461.108Schristosif ac_fn_c_try_compile "$LINENO"
33471.108Schristosthen :
33481.1Stv  ac_compiler_gnu=yes
33491.108Schristoselse case e in #(
33501.108Schristos  e) ac_compiler_gnu=no ;;
33511.108Schristosesac
33521.1Stvfi
33531.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33541.1Stvac_cv_c_compiler_gnu=$ac_compiler_gnu
33551.108Schristos ;;
33561.108Schristosesac
33571.108Schristosfi
33581.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
33591.108Schristosprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
33601.108Schristosac_compiler_gnu=$ac_cv_c_compiler_gnu
33611.1Stv
33621.84Schristosif test $ac_compiler_gnu = yes; then
33631.84Schristos  GCC=yes
33641.84Schristoselse
33651.84Schristos  GCC=
33661.84Schristosfi
33671.108Schristosac_test_CFLAGS=${CFLAGS+y}
33681.1Stvac_save_CFLAGS=$CFLAGS
33691.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
33701.108Schristosprintf %s "checking whether $CC accepts -g... " >&6; }
33711.108Schristosif test ${ac_cv_prog_cc_g+y}
33721.108Schristosthen :
33731.108Schristos  printf %s "(cached) " >&6
33741.108Schristoselse case e in #(
33751.108Schristos  e) ac_save_c_werror_flag=$ac_c_werror_flag
33761.84Schristos   ac_c_werror_flag=yes
33771.84Schristos   ac_cv_prog_cc_g=no
33781.84Schristos   CFLAGS="-g"
33791.84Schristos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33801.84Schristos/* end confdefs.h.  */
33811.1Stv
33821.1Stvint
33831.108Schristosmain (void)
33841.1Stv{
33851.1Stv
33861.1Stv  ;
33871.1Stv  return 0;
33881.1Stv}
33891.1Stv_ACEOF
33901.108Schristosif ac_fn_c_try_compile "$LINENO"
33911.108Schristosthen :
33921.1Stv  ac_cv_prog_cc_g=yes
33931.108Schristoselse case e in #(
33941.108Schristos  e) CFLAGS=""
33951.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33961.84Schristos/* end confdefs.h.  */
33971.84Schristos
33981.84Schristosint
33991.108Schristosmain (void)
34001.84Schristos{
34011.84Schristos
34021.84Schristos  ;
34031.84Schristos  return 0;
34041.84Schristos}
34051.84Schristos_ACEOF
34061.108Schristosif ac_fn_c_try_compile "$LINENO"
34071.108Schristosthen :
34081.84Schristos
34091.108Schristoselse case e in #(
34101.108Schristos  e) ac_c_werror_flag=$ac_save_c_werror_flag
34111.84Schristos	 CFLAGS="-g"
34121.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34131.84Schristos/* end confdefs.h.  */
34141.84Schristos
34151.84Schristosint
34161.108Schristosmain (void)
34171.84Schristos{
34181.84Schristos
34191.84Schristos  ;
34201.84Schristos  return 0;
34211.84Schristos}
34221.84Schristos_ACEOF
34231.108Schristosif ac_fn_c_try_compile "$LINENO"
34241.108Schristosthen :
34251.84Schristos  ac_cv_prog_cc_g=yes
34261.84Schristosfi
34271.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
34281.108Schristosesac
34291.66Stsutsuifi
34301.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
34311.108Schristosesac
34321.66Stsutsuifi
34331.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34341.108Schristos   ac_c_werror_flag=$ac_save_c_werror_flag ;;
34351.108Schristosesac
34361.84Schristosfi
34371.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
34381.108Schristosprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
34391.108Schristosif test $ac_test_CFLAGS; then
34401.66Stsutsui  CFLAGS=$ac_save_CFLAGS
34411.66Stsutsuielif test $ac_cv_prog_cc_g = yes; then
34421.66Stsutsui  if test "$GCC" = yes; then
34431.66Stsutsui    CFLAGS="-g -O2"
34441.66Stsutsui  else
34451.66Stsutsui    CFLAGS="-g"
34461.66Stsutsui  fi
34471.66Stsutsuielse
34481.66Stsutsui  if test "$GCC" = yes; then
34491.66Stsutsui    CFLAGS="-O2"
34501.66Stsutsui  else
34511.66Stsutsui    CFLAGS=
34521.66Stsutsui  fi
34531.66Stsutsuifi
34541.108Schristosac_prog_cc_stdc=no
34551.108Schristosif test x$ac_prog_cc_stdc = xno
34561.108Schristosthen :
34571.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
34581.108Schristosprintf %s "checking for $CC option to enable C11 features... " >&6; }
34591.108Schristosif test ${ac_cv_prog_cc_c11+y}
34601.108Schristosthen :
34611.108Schristos  printf %s "(cached) " >&6
34621.108Schristoselse case e in #(
34631.108Schristos  e) ac_cv_prog_cc_c11=no
34641.84Schristosac_save_CC=$CC
34651.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
34661.84Schristos/* end confdefs.h.  */
34671.108Schristos$ac_c_conftest_c11_program
34681.1Stv_ACEOF
34691.108Schristosfor ac_arg in '' -std=gnu11
34701.84Schristosdo
34711.84Schristos  CC="$ac_save_CC $ac_arg"
34721.108Schristos  if ac_fn_c_try_compile "$LINENO"
34731.108Schristosthen :
34741.108Schristos  ac_cv_prog_cc_c11=$ac_arg
34751.65Schristosfi
34761.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam
34771.108Schristos  test "x$ac_cv_prog_cc_c11" != "xno" && break
34781.66Stsutsuidone
34791.84Schristosrm -f conftest.$ac_ext
34801.108SchristosCC=$ac_save_CC ;;
34811.108Schristosesac
34821.108Schristosfi
34831.84Schristos
34841.108Schristosif test "x$ac_cv_prog_cc_c11" = xno
34851.108Schristosthen :
34861.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
34871.108Schristosprintf "%s\n" "unsupported" >&6; }
34881.108Schristoselse case e in #(
34891.108Schristos  e) if test "x$ac_cv_prog_cc_c11" = x
34901.108Schristosthen :
34911.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
34921.108Schristosprintf "%s\n" "none needed" >&6; }
34931.108Schristoselse case e in #(
34941.108Schristos  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
34951.108Schristosprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
34961.108Schristos     CC="$CC $ac_cv_prog_cc_c11" ;;
34971.108Schristosesac
34981.108Schristosfi
34991.108Schristos  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
35001.108Schristos  ac_prog_cc_stdc=c11 ;;
35011.108Schristosesac
35021.108Schristosfi
35031.108Schristosfi
35041.108Schristosif test x$ac_prog_cc_stdc = xno
35051.108Schristosthen :
35061.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
35071.108Schristosprintf %s "checking for $CC option to enable C99 features... " >&6; }
35081.108Schristosif test ${ac_cv_prog_cc_c99+y}
35091.108Schristosthen :
35101.108Schristos  printf %s "(cached) " >&6
35111.108Schristoselse case e in #(
35121.108Schristos  e) ac_cv_prog_cc_c99=no
35131.108Schristosac_save_CC=$CC
35141.108Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
35151.108Schristos/* end confdefs.h.  */
35161.108Schristos$ac_c_conftest_c99_program
35171.108Schristos_ACEOF
35181.108Schristosfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
35191.108Schristosdo
35201.108Schristos  CC="$ac_save_CC $ac_arg"
35211.108Schristos  if ac_fn_c_try_compile "$LINENO"
35221.108Schristosthen :
35231.108Schristos  ac_cv_prog_cc_c99=$ac_arg
35241.1Stvfi
35251.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam
35261.108Schristos  test "x$ac_cv_prog_cc_c99" != "xno" && break
35271.108Schristosdone
35281.108Schristosrm -f conftest.$ac_ext
35291.108SchristosCC=$ac_save_CC ;;
35301.84Schristosesac
35311.108Schristosfi
35321.108Schristos
35331.108Schristosif test "x$ac_cv_prog_cc_c99" = xno
35341.108Schristosthen :
35351.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
35361.108Schristosprintf "%s\n" "unsupported" >&6; }
35371.108Schristoselse case e in #(
35381.108Schristos  e) if test "x$ac_cv_prog_cc_c99" = x
35391.108Schristosthen :
35401.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
35411.108Schristosprintf "%s\n" "none needed" >&6; }
35421.108Schristoselse case e in #(
35431.108Schristos  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
35441.108Schristosprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
35451.108Schristos     CC="$CC $ac_cv_prog_cc_c99" ;;
35461.108Schristosesac
35471.108Schristosfi
35481.108Schristos  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
35491.108Schristos  ac_prog_cc_stdc=c99 ;;
35501.108Schristosesac
35511.108Schristosfi
35521.108Schristosfi
35531.108Schristosif test x$ac_prog_cc_stdc = xno
35541.108Schristosthen :
35551.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
35561.108Schristosprintf %s "checking for $CC option to enable C89 features... " >&6; }
35571.108Schristosif test ${ac_cv_prog_cc_c89+y}
35581.108Schristosthen :
35591.108Schristos  printf %s "(cached) " >&6
35601.108Schristoselse case e in #(
35611.108Schristos  e) ac_cv_prog_cc_c89=no
35621.108Schristosac_save_CC=$CC
35631.108Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
35641.108Schristos/* end confdefs.h.  */
35651.108Schristos$ac_c_conftest_c89_program
35661.108Schristos_ACEOF
35671.108Schristosfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
35681.108Schristosdo
35691.108Schristos  CC="$ac_save_CC $ac_arg"
35701.108Schristos  if ac_fn_c_try_compile "$LINENO"
35711.108Schristosthen :
35721.108Schristos  ac_cv_prog_cc_c89=$ac_arg
35731.108Schristosfi
35741.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam
35751.108Schristos  test "x$ac_cv_prog_cc_c89" != "xno" && break
35761.108Schristosdone
35771.108Schristosrm -f conftest.$ac_ext
35781.108SchristosCC=$ac_save_CC ;;
35791.108Schristosesac
35801.108Schristosfi
35811.108Schristos
35821.108Schristosif test "x$ac_cv_prog_cc_c89" = xno
35831.108Schristosthen :
35841.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
35851.108Schristosprintf "%s\n" "unsupported" >&6; }
35861.108Schristoselse case e in #(
35871.108Schristos  e) if test "x$ac_cv_prog_cc_c89" = x
35881.108Schristosthen :
35891.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
35901.108Schristosprintf "%s\n" "none needed" >&6; }
35911.108Schristoselse case e in #(
35921.108Schristos  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
35931.108Schristosprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
35941.108Schristos     CC="$CC $ac_cv_prog_cc_c89" ;;
35951.108Schristosesac
35961.108Schristosfi
35971.108Schristos  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
35981.108Schristos  ac_prog_cc_stdc=c89 ;;
35991.108Schristosesac
36001.108Schristosfi
36011.65Schristosfi
36021.84Schristos
36031.1Stvac_ext=c
36041.1Stvac_cpp='$CPP $CPPFLAGS'
36051.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36061.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36071.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
36081.1Stv
36091.84Schristos
36101.1Stvac_ext=c
36111.1Stvac_cpp='$CPP $CPPFLAGS'
36121.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36131.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36141.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
36151.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
36161.108Schristosprintf %s "checking how to run the C preprocessor... " >&6; }
36171.1Stv# On Suns, sometimes $CPP names a directory.
36181.1Stvif test -n "$CPP" && test -d "$CPP"; then
36191.1Stv  CPP=
36201.1Stvfi
36211.1Stvif test -z "$CPP"; then
36221.108Schristos  if test ${ac_cv_prog_CPP+y}
36231.108Schristosthen :
36241.108Schristos  printf %s "(cached) " >&6
36251.108Schristoselse case e in #(
36261.108Schristos  e)     # Double quotes because $CC needs to be expanded
36271.108Schristos    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
36281.1Stv    do
36291.1Stv      ac_preproc_ok=false
36301.1Stvfor ac_c_preproc_warn_flag in '' yes
36311.1Stvdo
36321.1Stv  # Use a header file that comes with gcc, so configuring glibc
36331.1Stv  # with a fresh cross-compiler works.
36341.1Stv  # On the NeXT, cc -E runs the code through the compiler's parser,
36351.1Stv  # not just through cpp. "Syntax error" is here to catch this case.
36361.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36371.84Schristos/* end confdefs.h.  */
36381.108Schristos#include <limits.h>
36391.84Schristos		     Syntax error
36401.48Sjmc_ACEOF
36411.108Schristosif ac_fn_c_try_cpp "$LINENO"
36421.108Schristosthen :
36431.84Schristos
36441.108Schristoselse case e in #(
36451.108Schristos  e) # Broken: fails on valid input.
36461.108Schristoscontinue ;;
36471.108Schristosesac
36481.1Stvfi
36491.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
36501.1Stv
36511.84Schristos  # OK, works on sane cases.  Now check whether nonexistent headers
36521.1Stv  # can be detected and how.
36531.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36541.84Schristos/* end confdefs.h.  */
36551.1Stv#include <ac_nonexistent.h>
36561.1Stv_ACEOF
36571.108Schristosif ac_fn_c_try_cpp "$LINENO"
36581.108Schristosthen :
36591.1Stv  # Broken: success on invalid input.
36601.1Stvcontinue
36611.108Schristoselse case e in #(
36621.108Schristos  e) # Passes both tests.
36631.1Stvac_preproc_ok=:
36641.108Schristosbreak ;;
36651.108Schristosesac
36661.1Stvfi
36671.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
36681.1Stv
36691.1Stvdone
36701.108Schristos# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36711.84Schristosrm -f conftest.i conftest.err conftest.$ac_ext
36721.108Schristosif $ac_preproc_ok
36731.108Schristosthen :
36741.1Stv  break
36751.1Stvfi
36761.1Stv
36771.1Stv    done
36781.1Stv    ac_cv_prog_CPP=$CPP
36791.108Schristos   ;;
36801.108Schristosesac
36811.1Stvfi
36821.1Stv  CPP=$ac_cv_prog_CPP
36831.1Stvelse
36841.1Stv  ac_cv_prog_CPP=$CPP
36851.1Stvfi
36861.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
36871.108Schristosprintf "%s\n" "$CPP" >&6; }
36881.1Stvac_preproc_ok=false
36891.1Stvfor ac_c_preproc_warn_flag in '' yes
36901.1Stvdo
36911.1Stv  # Use a header file that comes with gcc, so configuring glibc
36921.1Stv  # with a fresh cross-compiler works.
36931.1Stv  # On the NeXT, cc -E runs the code through the compiler's parser,
36941.1Stv  # not just through cpp. "Syntax error" is here to catch this case.
36951.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36961.84Schristos/* end confdefs.h.  */
36971.108Schristos#include <limits.h>
36981.84Schristos		     Syntax error
36991.53Sdogcow_ACEOF
37001.108Schristosif ac_fn_c_try_cpp "$LINENO"
37011.108Schristosthen :
37021.84Schristos
37031.108Schristoselse case e in #(
37041.108Schristos  e) # Broken: fails on valid input.
37051.108Schristoscontinue ;;
37061.108Schristosesac
37071.1Stvfi
37081.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
37091.1Stv
37101.84Schristos  # OK, works on sane cases.  Now check whether nonexistent headers
37111.1Stv  # can be detected and how.
37121.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37131.84Schristos/* end confdefs.h.  */
37141.1Stv#include <ac_nonexistent.h>
37151.1Stv_ACEOF
37161.108Schristosif ac_fn_c_try_cpp "$LINENO"
37171.108Schristosthen :
37181.45Sjmc  # Broken: success on invalid input.
37191.45Sjmccontinue
37201.108Schristoselse case e in #(
37211.108Schristos  e) # Passes both tests.
37221.45Sjmcac_preproc_ok=:
37231.108Schristosbreak ;;
37241.108Schristosesac
37251.45Sjmcfi
37261.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
37271.45Sjmc
37281.45Sjmcdone
37291.108Schristos# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
37301.84Schristosrm -f conftest.i conftest.err conftest.$ac_ext
37311.108Schristosif $ac_preproc_ok
37321.108Schristosthen :
37331.84Schristos
37341.108Schristoselse case e in #(
37351.108Schristos  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
37361.108Schristosprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
37371.84Schristosas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
37381.108SchristosSee 'config.log' for more details" "$LINENO" 5; } ;;
37391.108Schristosesac
37401.45Sjmcfi
37411.45Sjmc
37421.45Sjmcac_ext=c
37431.45Sjmcac_cpp='$CPP $CPPFLAGS'
37441.45Sjmcac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37451.45Sjmcac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37461.45Sjmcac_compiler_gnu=$ac_cv_c_compiler_gnu
37471.45Sjmc
37481.84Schristos
37491.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
37501.108Schristosprintf %s "checking for egrep -e... " >&6; }
37511.108Schristosif test ${ac_cv_path_EGREP_TRADITIONAL+y}
37521.108Schristosthen :
37531.108Schristos  printf %s "(cached) " >&6
37541.108Schristoselse case e in #(
37551.108Schristos  e) if test -z "$EGREP_TRADITIONAL"; then
37561.108Schristos  ac_path_EGREP_TRADITIONAL_found=false
37571.84Schristos  # Loop through the user's path and test for each of PROGNAME-LIST
37581.84Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37591.84Schristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
37601.84Schristosdo
37611.84Schristos  IFS=$as_save_IFS
37621.108Schristos  case $as_dir in #(((
37631.108Schristos    '') as_dir=./ ;;
37641.108Schristos    */) ;;
37651.108Schristos    *) as_dir=$as_dir/ ;;
37661.108Schristos  esac
37671.108Schristos    for ac_prog in grep ggrep
37681.108Schristos   do
37691.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
37701.108Schristos      ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
37711.108Schristos      as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
37721.108Schristos# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
37731.108Schristos  # Check for GNU $ac_path_EGREP_TRADITIONAL
37741.108Schristoscase `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
37751.84Schristos*GNU*)
37761.108Schristos  ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
37771.108Schristos#(
37781.84Schristos*)
37791.84Schristos  ac_count=0
37801.108Schristos  printf %s 0123456789 >"conftest.in"
37811.84Schristos  while :
37821.84Schristos  do
37831.84Schristos    cat "conftest.in" "conftest.in" >"conftest.tmp"
37841.84Schristos    mv "conftest.tmp" "conftest.in"
37851.84Schristos    cp "conftest.in" "conftest.nl"
37861.108Schristos    printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
37871.108Schristos    "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
37881.84Schristos    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
37891.84Schristos    as_fn_arith $ac_count + 1 && ac_count=$as_val
37901.108Schristos    if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
37911.84Schristos      # Best one so far, save it but keep looking for a better one
37921.108Schristos      ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
37931.108Schristos      ac_path_EGREP_TRADITIONAL_max=$ac_count
37941.84Schristos    fi
37951.84Schristos    # 10*(2^10) chars as input seems more than enough
37961.84Schristos    test $ac_count -gt 10 && break
37971.84Schristos  done
37981.84Schristos  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
37991.84Schristosesac
38001.84Schristos
38011.108Schristos      $ac_path_EGREP_TRADITIONAL_found && break 3
38021.84Schristos    done
38031.84Schristos  done
38041.84Schristos  done
38051.84SchristosIFS=$as_save_IFS
38061.108Schristos  if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
38071.108Schristos    :
38081.84Schristos  fi
38091.84Schristoselse
38101.108Schristos  ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
38111.84Schristosfi
38121.84Schristos
38131.108Schristos    if test "$ac_cv_path_EGREP_TRADITIONAL"
38141.108Schristosthen :
38151.108Schristos  ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
38161.108Schristoselse case e in #(
38171.108Schristos  e) if test -z "$EGREP_TRADITIONAL"; then
38181.108Schristos  ac_path_EGREP_TRADITIONAL_found=false
38191.84Schristos  # Loop through the user's path and test for each of PROGNAME-LIST
38201.84Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38211.84Schristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
38221.84Schristosdo
38231.84Schristos  IFS=$as_save_IFS
38241.108Schristos  case $as_dir in #(((
38251.108Schristos    '') as_dir=./ ;;
38261.108Schristos    */) ;;
38271.108Schristos    *) as_dir=$as_dir/ ;;
38281.108Schristos  esac
38291.108Schristos    for ac_prog in egrep
38301.108Schristos   do
38311.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
38321.108Schristos      ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
38331.108Schristos      as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
38341.108Schristos# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
38351.108Schristos  # Check for GNU $ac_path_EGREP_TRADITIONAL
38361.108Schristoscase `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
38371.84Schristos*GNU*)
38381.108Schristos  ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
38391.108Schristos#(
38401.84Schristos*)
38411.84Schristos  ac_count=0
38421.108Schristos  printf %s 0123456789 >"conftest.in"
38431.84Schristos  while :
38441.84Schristos  do
38451.84Schristos    cat "conftest.in" "conftest.in" >"conftest.tmp"
38461.84Schristos    mv "conftest.tmp" "conftest.in"
38471.84Schristos    cp "conftest.in" "conftest.nl"
38481.108Schristos    printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
38491.108Schristos    "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
38501.84Schristos    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
38511.84Schristos    as_fn_arith $ac_count + 1 && ac_count=$as_val
38521.108Schristos    if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
38531.84Schristos      # Best one so far, save it but keep looking for a better one
38541.108Schristos      ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
38551.108Schristos      ac_path_EGREP_TRADITIONAL_max=$ac_count
38561.84Schristos    fi
38571.84Schristos    # 10*(2^10) chars as input seems more than enough
38581.84Schristos    test $ac_count -gt 10 && break
38591.84Schristos  done
38601.84Schristos  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
38611.84Schristosesac
38621.84Schristos
38631.108Schristos      $ac_path_EGREP_TRADITIONAL_found && break 3
38641.84Schristos    done
38651.84Schristos  done
38661.84Schristos  done
38671.84SchristosIFS=$as_save_IFS
38681.108Schristos  if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
38691.84Schristos    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
38701.84Schristos  fi
38711.84Schristoselse
38721.108Schristos  ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
38731.84Schristosfi
38741.108Schristos ;;
38751.108Schristosesac
38761.108Schristosfi ;;
38771.108Schristosesac
38781.84Schristosfi
38791.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
38801.108Schristosprintf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
38811.108Schristos EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
38821.84Schristos
38831.108Schristos                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetBSD" >&5
38841.108Schristosprintf %s "checking for NetBSD... " >&6; }
38851.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38861.84Schristos/* end confdefs.h.  */
38871.45Sjmc#ifdef __NetBSD__
38881.45Sjmc	yes
38891.45Sjmc	#endif
38901.45Sjmc
38911.45Sjmc_ACEOF
38921.45Sjmcif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38931.108Schristos  $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
38941.108Schristosthen :
38951.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38961.108Schristosprintf "%s\n" "yes" >&6; }
38971.84Schristos
38981.108Schristosprintf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
38991.84Schristos
39001.74Schristos
39011.108Schristosprintf "%s\n" "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
39021.74Schristos
39031.54Swiz
39041.108Schristosprintf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
39051.45Sjmc
39061.108Schristoselse case e in #(
39071.108Schristos  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39081.108Schristosprintf "%s\n" "no" >&6; } ;;
39091.108Schristosesac
39101.45Sjmcfi
39111.108Schristosrm -rf conftest*
39121.45Sjmc
39131.84Schristos
39141.45Sjmc# Extract the first word of "sh", so it can be a program name with args.
39151.45Sjmcset dummy sh; ac_word=$2
39161.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39171.108Schristosprintf %s "checking for $ac_word... " >&6; }
39181.108Schristosif test ${ac_cv_path_BSHELL+y}
39191.108Schristosthen :
39201.108Schristos  printf %s "(cached) " >&6
39211.108Schristoselse case e in #(
39221.108Schristos  e) case $BSHELL in
39231.45Sjmc  [\\/]* | ?:[\\/]*)
39241.45Sjmc  ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
39251.45Sjmc  ;;
39261.45Sjmc  *)
39271.84Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39281.84Schristosfor as_dir in $PATH
39291.84Schristosdo
39301.84Schristos  IFS=$as_save_IFS
39311.108Schristos  case $as_dir in #(((
39321.108Schristos    '') as_dir=./ ;;
39331.108Schristos    */) ;;
39341.108Schristos    *) as_dir=$as_dir/ ;;
39351.108Schristos  esac
39361.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
39371.108Schristos  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39381.108Schristos    ac_cv_path_BSHELL="$as_dir$ac_word$ac_exec_ext"
39391.108Schristos    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39401.84Schristos    break 2
39411.84Schristos  fi
39421.65Schristosdone
39431.84Schristos  done
39441.84SchristosIFS=$as_save_IFS
39451.45Sjmc
39461.45Sjmc  ;;
39471.108Schristosesac ;;
39481.45Sjmcesac
39491.45Sjmcfi
39501.45SjmcBSHELL=$ac_cv_path_BSHELL
39511.45Sjmcif test -n "$BSHELL"; then
39521.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BSHELL" >&5
39531.108Schristosprintf "%s\n" "$BSHELL" >&6; }
39541.45Sjmcelse
39551.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39561.108Schristosprintf "%s\n" "no" >&6; }
39571.45Sjmcfi
39581.45Sjmc
39591.84Schristos
39601.45Sjmcif test x"$BSHELL" = x; then
39611.84Schristos	as_fn_error $? "sh must be somewhere on \$PATH" "$LINENO" 5
39621.45Sjmcfi
39631.54Swiz
39641.108Schristosprintf "%s\n" "#define PATH_BSHELL \"$BSHELL\"" >>confdefs.h
39651.84Schristos
39661.76Spooka
39671.108Schristosac_header= ac_cache=
39681.108Schristosfor ac_item in $ac_header_c_list
39691.108Schristosdo
39701.108Schristos  if test $ac_cache; then
39711.108Schristos    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
39721.108Schristos    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
39731.108Schristos      printf "%s\n" "#define $ac_item 1" >> confdefs.h
39741.108Schristos    fi
39751.108Schristos    ac_header= ac_cache=
39761.108Schristos  elif test $ac_header; then
39771.108Schristos    ac_cache=$ac_item
39781.108Schristos  else
39791.108Schristos    ac_header=$ac_item
39801.108Schristos  fi
39811.108Schristosdone
39821.84Schristos
39831.6Stv
39841.6Stv
39851.6Stv
39861.84Schristos
39871.84Schristos
39881.6Stv
39891.6Stv
39901.108Schristosif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
39911.108Schristosthen :
39921.6Stv
39931.108Schristosprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
39941.84Schristos
39951.74Schristosfi
39961.108Schristos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
39971.108Schristosprintf %s "checking whether byte ordering is bigendian... " >&6; }
39981.108Schristosif test ${ac_cv_c_bigendian+y}
39991.108Schristosthen :
40001.108Schristos  printf %s "(cached) " >&6
40011.108Schristoselse case e in #(
40021.108Schristos  e) ac_cv_c_bigendian=unknown
40031.84Schristos    # See if we're dealing with a universal compiler.
40041.84Schristos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40051.84Schristos/* end confdefs.h.  */
40061.84Schristos#ifndef __APPLE_CC__
40071.84Schristos	       not a universal capable compiler
40081.84Schristos	     #endif
40091.84Schristos	     typedef int dummy;
40101.84Schristos
40111.84Schristos_ACEOF
40121.108Schristosif ac_fn_c_try_compile "$LINENO"
40131.108Schristosthen :
40141.84Schristos
40151.84Schristos	# Check for potential -arch flags.  It is not universal unless
40161.84Schristos	# there are at least two -arch flags with different values.
40171.84Schristos	ac_arch=
40181.84Schristos	ac_prev=
40191.84Schristos	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
40201.84Schristos	 if test -n "$ac_prev"; then
40211.84Schristos	   case $ac_word in
40221.84Schristos	     i?86 | x86_64 | ppc | ppc64)
40231.84Schristos	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
40241.84Schristos		 ac_arch=$ac_word
40251.84Schristos	       else
40261.84Schristos		 ac_cv_c_bigendian=universal
40271.84Schristos		 break
40281.84Schristos	       fi
40291.84Schristos	       ;;
40301.84Schristos	   esac
40311.84Schristos	   ac_prev=
40321.84Schristos	 elif test "x$ac_word" = "x-arch"; then
40331.84Schristos	   ac_prev=arch
40341.84Schristos	 fi
40351.84Schristos       done
40361.84Schristosfi
40371.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40381.84Schristos    if test $ac_cv_c_bigendian = unknown; then
40391.84Schristos      # See if sys/param.h defines the BYTE_ORDER macro.
40401.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40411.84Schristos/* end confdefs.h.  */
40421.76Spooka#include <sys/types.h>
40431.84Schristos	     #include <sys/param.h>
40441.76Spooka
40451.76Spookaint
40461.108Schristosmain (void)
40471.76Spooka{
40481.108Schristos#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
40491.108Schristos		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
40501.84Schristos		     && LITTLE_ENDIAN)
40511.84Schristos	      bogus endian macros
40521.84Schristos	     #endif
40531.76Spooka
40541.76Spooka  ;
40551.76Spooka  return 0;
40561.76Spooka}
40571.76Spooka_ACEOF
40581.108Schristosif ac_fn_c_try_compile "$LINENO"
40591.108Schristosthen :
40601.84Schristos  # It does; now see whether it defined to BIG_ENDIAN or not.
40611.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40621.84Schristos/* end confdefs.h.  */
40631.84Schristos#include <sys/types.h>
40641.84Schristos		#include <sys/param.h>
40651.76Spooka
40661.76Spookaint
40671.108Schristosmain (void)
40681.76Spooka{
40691.84Schristos#if BYTE_ORDER != BIG_ENDIAN
40701.84Schristos		 not big endian
40711.84Schristos		#endif
40721.76Spooka
40731.76Spooka  ;
40741.76Spooka  return 0;
40751.76Spooka}
40761.76Spooka_ACEOF
40771.108Schristosif ac_fn_c_try_compile "$LINENO"
40781.108Schristosthen :
40791.84Schristos  ac_cv_c_bigendian=yes
40801.108Schristoselse case e in #(
40811.108Schristos  e) ac_cv_c_bigendian=no ;;
40821.108Schristosesac
40831.76Spookafi
40841.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40851.76Spookafi
40861.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40871.84Schristos    fi
40881.84Schristos    if test $ac_cv_c_bigendian = unknown; then
40891.84Schristos      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
40901.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40911.84Schristos/* end confdefs.h.  */
40921.84Schristos#include <limits.h>
40931.76Spooka
40941.76Spookaint
40951.108Schristosmain (void)
40961.76Spooka{
40971.84Schristos#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
40981.84Schristos	      bogus endian macros
40991.84Schristos	     #endif
41001.76Spooka
41011.76Spooka  ;
41021.76Spooka  return 0;
41031.76Spooka}
41041.76Spooka_ACEOF
41051.108Schristosif ac_fn_c_try_compile "$LINENO"
41061.108Schristosthen :
41071.84Schristos  # It does; now see whether it defined to _BIG_ENDIAN or not.
41081.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41091.84Schristos/* end confdefs.h.  */
41101.84Schristos#include <limits.h>
41111.76Spooka
41121.76Spookaint
41131.108Schristosmain (void)
41141.76Spooka{
41151.84Schristos#ifndef _BIG_ENDIAN
41161.84Schristos		 not big endian
41171.84Schristos		#endif
41181.84Schristos
41191.76Spooka  ;
41201.76Spooka  return 0;
41211.76Spooka}
41221.76Spooka_ACEOF
41231.108Schristosif ac_fn_c_try_compile "$LINENO"
41241.108Schristosthen :
41251.84Schristos  ac_cv_c_bigendian=yes
41261.108Schristoselse case e in #(
41271.108Schristos  e) ac_cv_c_bigendian=no ;;
41281.108Schristosesac
41291.76Spookafi
41301.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41311.76Spookafi
41321.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41331.84Schristos    fi
41341.84Schristos    if test $ac_cv_c_bigendian = unknown; then
41351.84Schristos      # Compile a test program.
41361.108Schristos      if test "$cross_compiling" = yes
41371.108Schristosthen :
41381.84Schristos  # Try to guess by grepping values from an object file.
41391.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41401.84Schristos/* end confdefs.h.  */
41411.108Schristosunsigned short int ascii_mm[] =
41421.84Schristos		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
41431.108Schristos		unsigned short int ascii_ii[] =
41441.84Schristos		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
41451.84Schristos		int use_ascii (int i) {
41461.84Schristos		  return ascii_mm[i] + ascii_ii[i];
41471.84Schristos		}
41481.108Schristos		unsigned short int ebcdic_ii[] =
41491.84Schristos		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
41501.108Schristos		unsigned short int ebcdic_mm[] =
41511.84Schristos		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
41521.84Schristos		int use_ebcdic (int i) {
41531.84Schristos		  return ebcdic_mm[i] + ebcdic_ii[i];
41541.84Schristos		}
41551.108Schristos		int
41561.108Schristos		main (int argc, char **argv)
41571.108Schristos		{
41581.108Schristos		  /* Intimidate the compiler so that it does not
41591.108Schristos		     optimize the arrays away.  */
41601.108Schristos		  char *p = argv[0];
41611.108Schristos		  ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
41621.108Schristos		  ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
41631.108Schristos		  return use_ascii (argc) == use_ebcdic (*p);
41641.108Schristos		}
41651.76Spooka_ACEOF
41661.108Schristosif ac_fn_c_try_link "$LINENO"
41671.108Schristosthen :
41681.108Schristos  if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
41691.84Schristos	      ac_cv_c_bigendian=yes
41701.84Schristos	    fi
41711.108Schristos	    if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
41721.84Schristos	      if test "$ac_cv_c_bigendian" = unknown; then
41731.84Schristos		ac_cv_c_bigendian=no
41741.84Schristos	      else
41751.84Schristos		# finding both strings is unlikely to happen, but who knows?
41761.84Schristos		ac_cv_c_bigendian=unknown
41771.84Schristos	      fi
41781.84Schristos	    fi
41791.76Spookafi
41801.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam \
41811.108Schristos    conftest$ac_exeext conftest.$ac_ext
41821.108Schristoselse case e in #(
41831.108Schristos  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41841.84Schristos/* end confdefs.h.  */
41851.84Schristos$ac_includes_default
41861.76Spookaint
41871.108Schristosmain (void)
41881.76Spooka{
41891.84Schristos
41901.84Schristos	     /* Are we little or big endian?  From Harbison&Steele.  */
41911.84Schristos	     union
41921.84Schristos	     {
41931.84Schristos	       long int l;
41941.84Schristos	       char c[sizeof (long int)];
41951.84Schristos	     } u;
41961.84Schristos	     u.l = 1;
41971.84Schristos	     return u.c[sizeof (long int) - 1] == 1;
41981.76Spooka
41991.76Spooka  ;
42001.76Spooka  return 0;
42011.76Spooka}
42021.76Spooka_ACEOF
42031.108Schristosif ac_fn_c_try_run "$LINENO"
42041.108Schristosthen :
42051.84Schristos  ac_cv_c_bigendian=no
42061.108Schristoselse case e in #(
42071.108Schristos  e) ac_cv_c_bigendian=yes ;;
42081.108Schristosesac
42091.76Spookafi
42101.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42111.108Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
42121.108Schristosesac
42131.76Spookafi
42141.76Spooka
42151.108Schristos    fi ;;
42161.108Schristosesac
42171.76Spookafi
42181.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
42191.108Schristosprintf "%s\n" "$ac_cv_c_bigendian" >&6; }
42201.84Schristos case $ac_cv_c_bigendian in #(
42211.84Schristos   yes)
42221.108Schristos     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
42231.84Schristos;; #(
42241.84Schristos   no)
42251.84Schristos      ;; #(
42261.84Schristos   universal)
42271.84Schristos
42281.108Schristosprintf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
42291.84Schristos
42301.84Schristos     ;; #(
42311.84Schristos   *)
42321.84Schristos     as_fn_error $? "unknown endianness
42331.84Schristos presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
42341.84Schristos esac
42351.84Schristos
42361.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
42371.108Schristosprintf %s "checking for grep that handles long lines and -e... " >&6; }
42381.108Schristosif test ${ac_cv_path_GREP+y}
42391.108Schristosthen :
42401.108Schristos  printf %s "(cached) " >&6
42411.108Schristoselse case e in #(
42421.108Schristos  e) if test -z "$GREP"; then
42431.108Schristos  ac_path_GREP_found=false
42441.108Schristos  # Loop through the user's path and test for each of PROGNAME-LIST
42451.108Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42461.108Schristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
42471.108Schristosdo
42481.108Schristos  IFS=$as_save_IFS
42491.108Schristos  case $as_dir in #(((
42501.108Schristos    '') as_dir=./ ;;
42511.108Schristos    */) ;;
42521.108Schristos    *) as_dir=$as_dir/ ;;
42531.108Schristos  esac
42541.108Schristos    for ac_prog in grep ggrep
42551.108Schristos   do
42561.108Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
42571.108Schristos      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
42581.108Schristos      as_fn_executable_p "$ac_path_GREP" || continue
42591.108Schristos# Check for GNU ac_path_GREP and select it if it is found.
42601.108Schristos  # Check for GNU $ac_path_GREP
42611.108Schristoscase `"$ac_path_GREP" --version 2>&1` in #(
42621.108Schristos*GNU*)
42631.108Schristos  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
42641.108Schristos#(
42651.108Schristos*)
42661.108Schristos  ac_count=0
42671.108Schristos  printf %s 0123456789 >"conftest.in"
42681.108Schristos  while :
42691.108Schristos  do
42701.108Schristos    cat "conftest.in" "conftest.in" >"conftest.tmp"
42711.108Schristos    mv "conftest.tmp" "conftest.in"
42721.108Schristos    cp "conftest.in" "conftest.nl"
42731.108Schristos    printf "%s\n" 'GREP' >> "conftest.nl"
42741.108Schristos    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
42751.108Schristos    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42761.108Schristos    as_fn_arith $ac_count + 1 && ac_count=$as_val
42771.108Schristos    if test $ac_count -gt ${ac_path_GREP_max-0}; then
42781.108Schristos      # Best one so far, save it but keep looking for a better one
42791.108Schristos      ac_cv_path_GREP="$ac_path_GREP"
42801.108Schristos      ac_path_GREP_max=$ac_count
42811.108Schristos    fi
42821.108Schristos    # 10*(2^10) chars as input seems more than enough
42831.108Schristos    test $ac_count -gt 10 && break
42841.108Schristos  done
42851.108Schristos  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
42861.108Schristosesac
42871.76Spooka
42881.108Schristos      $ac_path_GREP_found && break 3
42891.108Schristos    done
42901.108Schristos  done
42911.108Schristos  done
42921.108SchristosIFS=$as_save_IFS
42931.108Schristos  if test -z "$ac_cv_path_GREP"; then
42941.108Schristos    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
42951.108Schristos  fi
42961.76Spookaelse
42971.108Schristos  ac_cv_path_GREP=$GREP
42981.108Schristosfi
42991.108Schristos ;;
43001.108Schristosesac
43011.76Spookafi
43021.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
43031.108Schristosprintf "%s\n" "$ac_cv_path_GREP" >&6; }
43041.108Schristos GREP="$ac_cv_path_GREP"
43051.76Spooka
43061.76Spooka
43071.108Schristos# Autoupdate added the next two lines to ensure that your configure
43081.108Schristos# script's behavior did not change.  They are probably safe to remove.
43091.76Spooka
43101.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
43111.108Schristosprintf %s "checking for egrep... " >&6; }
43121.108Schristosif test ${ac_cv_path_EGREP+y}
43131.108Schristosthen :
43141.108Schristos  printf %s "(cached) " >&6
43151.108Schristoselse case e in #(
43161.108Schristos  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
43171.108Schristos   then ac_cv_path_EGREP="$GREP -E"
43181.108Schristos   else
43191.108Schristos     if test -z "$EGREP"; then
43201.108Schristos  ac_path_EGREP_found=false
43211.108Schristos  # Loop through the user's path and test for each of PROGNAME-LIST
43221.108Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43231.108Schristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
43241.108Schristosdo
43251.108Schristos  IFS=$as_save_IFS
43261.108Schristos  case $as_dir in #(((
43271.108Schristos    '') as_dir=./ ;;
43281.108Schristos    */) ;;
43291.108Schristos    *) as_dir=$as_dir/ ;;
43301.108Schristos  esac
43311.108Schristos    for ac_prog in egrep
43321.108Schristos   do
43331.108Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
43341.108Schristos      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
43351.108Schristos      as_fn_executable_p "$ac_path_EGREP" || continue
43361.108Schristos# Check for GNU ac_path_EGREP and select it if it is found.
43371.108Schristos  # Check for GNU $ac_path_EGREP
43381.108Schristoscase `"$ac_path_EGREP" --version 2>&1` in #(
43391.108Schristos*GNU*)
43401.108Schristos  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
43411.108Schristos#(
43421.108Schristos*)
43431.108Schristos  ac_count=0
43441.108Schristos  printf %s 0123456789 >"conftest.in"
43451.108Schristos  while :
43461.108Schristos  do
43471.108Schristos    cat "conftest.in" "conftest.in" >"conftest.tmp"
43481.108Schristos    mv "conftest.tmp" "conftest.in"
43491.108Schristos    cp "conftest.in" "conftest.nl"
43501.108Schristos    printf "%s\n" 'EGREP' >> "conftest.nl"
43511.108Schristos    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
43521.108Schristos    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
43531.108Schristos    as_fn_arith $ac_count + 1 && ac_count=$as_val
43541.108Schristos    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
43551.108Schristos      # Best one so far, save it but keep looking for a better one
43561.108Schristos      ac_cv_path_EGREP="$ac_path_EGREP"
43571.108Schristos      ac_path_EGREP_max=$ac_count
43581.108Schristos    fi
43591.108Schristos    # 10*(2^10) chars as input seems more than enough
43601.108Schristos    test $ac_count -gt 10 && break
43611.108Schristos  done
43621.108Schristos  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
43631.108Schristosesac
43641.76Spooka
43651.108Schristos      $ac_path_EGREP_found && break 3
43661.108Schristos    done
43671.108Schristos  done
43681.108Schristos  done
43691.108SchristosIFS=$as_save_IFS
43701.108Schristos  if test -z "$ac_cv_path_EGREP"; then
43711.108Schristos    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
43721.108Schristos  fi
43731.76Spookaelse
43741.108Schristos  ac_cv_path_EGREP=$EGREP
43751.76Spookafi
43761.84Schristos
43771.108Schristos   fi ;;
43781.108Schristosesac
43791.76Spookafi
43801.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
43811.108Schristosprintf "%s\n" "$ac_cv_path_EGREP" >&6; }
43821.108Schristos EGREP="$ac_cv_path_EGREP"
43831.76Spooka
43841.108Schristos         EGREP_TRADITIONAL=$EGREP
43851.108Schristos ac_cv_path_EGREP_TRADITIONAL=$EGREP
43861.76Spooka
43871.76Spooka
43881.76Spooka
43891.84Schristos# Confirm existence of zlib.  (This is available as a default install
43901.84Schristos# option on many OS's; this could be added as a reachover build in the
43911.84Schristos# future.)
43921.108Schristosac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
43931.108Schristosif test "x$ac_cv_header_zlib_h" = xyes
43941.108Schristosthen :
43951.76Spooka
43961.108Schristoselse case e in #(
43971.108Schristos  e) as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5 ;;
43981.108Schristosesac
43991.76Spookafi
44001.76Spooka
44011.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
44021.108Schristosprintf %s "checking for gzdopen in -lz... " >&6; }
44031.108Schristosif test ${ac_cv_lib_z_gzdopen+y}
44041.108Schristosthen :
44051.108Schristos  printf %s "(cached) " >&6
44061.108Schristoselse case e in #(
44071.108Schristos  e) ac_check_lib_save_LIBS=$LIBS
44081.84SchristosLIBS="-lz  $LIBS"
44091.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
44101.84Schristos/* end confdefs.h.  */
44111.76Spooka
44121.84Schristos/* Override any GCC internal prototype to avoid an error.
44131.84Schristos   Use char because int might match the return type of a GCC
44141.108Schristos   builtin and then its argument prototype would still apply.
44151.108Schristos   The 'extern "C"' is for builds by C++ compilers;
44161.108Schristos   although this is not generally supported in C code supporting it here
44171.108Schristos   has little cost and some practical benefit (sr 110532).  */
44181.84Schristos#ifdef __cplusplus
44191.84Schristosextern "C"
44201.84Schristos#endif
44211.108Schristoschar gzdopen (void);
44221.76Spookaint
44231.108Schristosmain (void)
44241.76Spooka{
44251.84Schristosreturn gzdopen ();
44261.76Spooka  ;
44271.76Spooka  return 0;
44281.76Spooka}
44291.76Spooka_ACEOF
44301.108Schristosif ac_fn_c_try_link "$LINENO"
44311.108Schristosthen :
44321.84Schristos  ac_cv_lib_z_gzdopen=yes
44331.108Schristoselse case e in #(
44341.108Schristos  e) ac_cv_lib_z_gzdopen=no ;;
44351.108Schristosesac
44361.76Spookafi
44371.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam \
44381.84Schristos    conftest$ac_exeext conftest.$ac_ext
44391.108SchristosLIBS=$ac_check_lib_save_LIBS ;;
44401.108Schristosesac
44411.76Spookafi
44421.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
44431.108Schristosprintf "%s\n" "$ac_cv_lib_z_gzdopen" >&6; }
44441.108Schristosif test "x$ac_cv_lib_z_gzdopen" = xyes
44451.108Schristosthen :
44461.108Schristos  printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
44471.76Spooka
44481.84Schristos  LIBS="-lz $LIBS"
44491.76Spooka
44501.108Schristoselse case e in #(
44511.108Schristos  e) as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5 ;;
44521.108Schristosesac
44531.76Spookafi
44541.76Spooka
44551.76Spooka
44561.84Schristos# Make sure certain required headers are available.
44571.84Schristos# These are not necessarily required by the code, but they are not
44581.84Schristos# currently conditionalized.
44591.108Schristos       for ac_header in sys/ioctl.h sys/mman.h sys/param.h sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h termios.h unistd.h
44601.84Schristosdo :
44611.108Schristos  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
44621.108Schristosac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44631.108Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"
44641.108Schristosthen :
44651.84Schristos  cat >>confdefs.h <<_ACEOF
44661.108Schristos#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
44671.84Schristos_ACEOF
44681.76Spooka
44691.108Schristoselse case e in #(
44701.108Schristos  e) as_fn_error $? "standard system header file not found" "$LINENO" 5 ;;
44711.108Schristosesac
44721.76Spookafi
44731.76Spooka
44741.84Schristosdone
44751.76Spooka
44761.84Schristos# Find headers that may not be available.
44771.84Schristosac_header_dirent=no
44781.84Schristosfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
44791.108Schristos  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
44801.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
44811.108Schristosprintf %s "checking for $ac_hdr that defines DIR... " >&6; }
44821.108Schristosif eval test \${$as_ac_Header+y}
44831.108Schristosthen :
44841.108Schristos  printf %s "(cached) " >&6
44851.108Schristoselse case e in #(
44861.108Schristos  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44871.84Schristos/* end confdefs.h.  */
44881.84Schristos#include <sys/types.h>
44891.84Schristos#include <$ac_hdr>
44901.76Spooka
44911.76Spookaint
44921.108Schristosmain (void)
44931.76Spooka{
44941.84Schristosif ((DIR *) 0)
44951.84Schristosreturn 0;
44961.76Spooka  ;
44971.76Spooka  return 0;
44981.76Spooka}
44991.76Spooka_ACEOF
45001.108Schristosif ac_fn_c_try_compile "$LINENO"
45011.108Schristosthen :
45021.84Schristos  eval "$as_ac_Header=yes"
45031.108Schristoselse case e in #(
45041.108Schristos  e) eval "$as_ac_Header=no" ;;
45051.108Schristosesac
45061.76Spookafi
45071.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
45081.108Schristosesac
45091.76Spookafi
45101.84Schristoseval ac_res=\$$as_ac_Header
45111.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
45121.108Schristosprintf "%s\n" "$ac_res" >&6; }
45131.108Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"
45141.108Schristosthen :
45151.84Schristos  cat >>confdefs.h <<_ACEOF
45161.108Schristos#define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
45171.84Schristos_ACEOF
45181.74Schristos
45191.84Schristosac_header_dirent=$ac_hdr; break
45201.76Spookafi
45211.66Stsutsui
45221.84Schristosdone
45231.84Schristos# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
45241.84Schristosif test $ac_header_dirent = dirent.h; then
45251.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
45261.108Schristosprintf %s "checking for library containing opendir... " >&6; }
45271.108Schristosif test ${ac_cv_search_opendir+y}
45281.108Schristosthen :
45291.108Schristos  printf %s "(cached) " >&6
45301.108Schristoselse case e in #(
45311.108Schristos  e) ac_func_search_save_LIBS=$LIBS
45321.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
45331.84Schristos/* end confdefs.h.  */
45341.76Spooka
45351.84Schristos/* Override any GCC internal prototype to avoid an error.
45361.84Schristos   Use char because int might match the return type of a GCC
45371.108Schristos   builtin and then its argument prototype would still apply.
45381.108Schristos   The 'extern "C"' is for builds by C++ compilers;
45391.108Schristos   although this is not generally supported in C code supporting it here
45401.108Schristos   has little cost and some practical benefit (sr 110532).  */
45411.84Schristos#ifdef __cplusplus
45421.84Schristosextern "C"
45431.84Schristos#endif
45441.108Schristoschar opendir (void);
45451.76Spookaint
45461.108Schristosmain (void)
45471.76Spooka{
45481.84Schristosreturn opendir ();
45491.76Spooka  ;
45501.76Spooka  return 0;
45511.76Spooka}
45521.6Stv_ACEOF
45531.108Schristosfor ac_lib in '' dir
45541.108Schristosdo
45551.84Schristos  if test -z "$ac_lib"; then
45561.84Schristos    ac_res="none required"
45571.84Schristos  else
45581.84Schristos    ac_res=-l$ac_lib
45591.84Schristos    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
45601.84Schristos  fi
45611.108Schristos  if ac_fn_c_try_link "$LINENO"
45621.108Schristosthen :
45631.84Schristos  ac_cv_search_opendir=$ac_res
45641.84Schristosfi
45651.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam \
45661.84Schristos    conftest$ac_exeext
45671.108Schristos  if test ${ac_cv_search_opendir+y}
45681.108Schristosthen :
45691.84Schristos  break
45701.84Schristosfi
45711.84Schristosdone
45721.108Schristosif test ${ac_cv_search_opendir+y}
45731.108Schristosthen :
45741.84Schristos
45751.108Schristoselse case e in #(
45761.108Schristos  e) ac_cv_search_opendir=no ;;
45771.108Schristosesac
45781.76Spookafi
45791.84Schristosrm conftest.$ac_ext
45801.108SchristosLIBS=$ac_func_search_save_LIBS ;;
45811.108Schristosesac
45821.6Stvfi
45831.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
45841.108Schristosprintf "%s\n" "$ac_cv_search_opendir" >&6; }
45851.84Schristosac_res=$ac_cv_search_opendir
45861.108Schristosif test "$ac_res" != no
45871.108Schristosthen :
45881.84Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45891.6Stv
45901.84Schristosfi
45911.38Sfredb
45921.76Spookaelse
45931.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
45941.108Schristosprintf %s "checking for library containing opendir... " >&6; }
45951.108Schristosif test ${ac_cv_search_opendir+y}
45961.108Schristosthen :
45971.108Schristos  printf %s "(cached) " >&6
45981.108Schristoselse case e in #(
45991.108Schristos  e) ac_func_search_save_LIBS=$LIBS
46001.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
46011.84Schristos/* end confdefs.h.  */
46021.80Sapb
46031.84Schristos/* Override any GCC internal prototype to avoid an error.
46041.84Schristos   Use char because int might match the return type of a GCC
46051.108Schristos   builtin and then its argument prototype would still apply.
46061.108Schristos   The 'extern "C"' is for builds by C++ compilers;
46071.108Schristos   although this is not generally supported in C code supporting it here
46081.108Schristos   has little cost and some practical benefit (sr 110532).  */
46091.84Schristos#ifdef __cplusplus
46101.84Schristosextern "C"
46111.84Schristos#endif
46121.108Schristoschar opendir (void);
46131.80Sapbint
46141.108Schristosmain (void)
46151.80Sapb{
46161.84Schristosreturn opendir ();
46171.80Sapb  ;
46181.80Sapb  return 0;
46191.80Sapb}
46201.80Sapb_ACEOF
46211.108Schristosfor ac_lib in '' x
46221.108Schristosdo
46231.84Schristos  if test -z "$ac_lib"; then
46241.84Schristos    ac_res="none required"
46251.84Schristos  else
46261.84Schristos    ac_res=-l$ac_lib
46271.84Schristos    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
46281.84Schristos  fi
46291.108Schristos  if ac_fn_c_try_link "$LINENO"
46301.108Schristosthen :
46311.84Schristos  ac_cv_search_opendir=$ac_res
46321.84Schristosfi
46331.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam \
46341.84Schristos    conftest$ac_exeext
46351.108Schristos  if test ${ac_cv_search_opendir+y}
46361.108Schristosthen :
46371.84Schristos  break
46381.84Schristosfi
46391.84Schristosdone
46401.108Schristosif test ${ac_cv_search_opendir+y}
46411.108Schristosthen :
46421.84Schristos
46431.108Schristoselse case e in #(
46441.108Schristos  e) ac_cv_search_opendir=no ;;
46451.108Schristosesac
46461.80Sapbfi
46471.84Schristosrm conftest.$ac_ext
46481.108SchristosLIBS=$ac_func_search_save_LIBS ;;
46491.108Schristosesac
46501.84Schristosfi
46511.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
46521.108Schristosprintf "%s\n" "$ac_cv_search_opendir" >&6; }
46531.84Schristosac_res=$ac_cv_search_opendir
46541.108Schristosif test "$ac_res" != no
46551.108Schristosthen :
46561.84Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46571.84Schristos
46581.80Sapbfi
46591.80Sapb
46601.84Schristosfi
46611.80Sapb
46621.108Schristosac_fn_c_check_header_compile "$LINENO" "sys/mtio.h" "ac_cv_header_sys_mtio_h" "$ac_includes_default"
46631.108Schristosif test "x$ac_cv_header_sys_mtio_h" = xyes
46641.108Schristosthen :
46651.108Schristos  printf "%s\n" "#define HAVE_SYS_MTIO_H 1" >>confdefs.h
46661.108Schristos
46671.108Schristosfi
46681.108Schristosac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
46691.108Schristosif test "x$ac_cv_header_sys_sysmacros_h" = xyes
46701.108Schristosthen :
46711.108Schristos  printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
46721.108Schristos
46731.108Schristosfi
46741.108Schristosac_fn_c_check_header_compile "$LINENO" "sys/syslimits.h" "ac_cv_header_sys_syslimits_h" "$ac_includes_default"
46751.108Schristosif test "x$ac_cv_header_sys_syslimits_h" = xyes
46761.108Schristosthen :
46771.108Schristos  printf "%s\n" "#define HAVE_SYS_SYSLIMITS_H 1" >>confdefs.h
46781.108Schristos
46791.108Schristosfi
46801.108Schristosac_fn_c_check_header_compile "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default"
46811.108Schristosif test "x$ac_cv_header_stdio_ext_h" = xyes
46821.108Schristosthen :
46831.108Schristos  printf "%s\n" "#define HAVE_STDIO_EXT_H 1" >>confdefs.h
46841.108Schristos
46851.108Schristosfi
46861.108Schristosac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
46871.108Schristosif test "x$ac_cv_header_getopt_h" = xyes
46881.108Schristosthen :
46891.108Schristos  printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
46901.108Schristos
46911.108Schristosfi
46921.108Schristosac_fn_c_check_header_compile "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
46931.108Schristosif test "x$ac_cv_header_features_h" = xyes
46941.108Schristosthen :
46951.108Schristos  printf "%s\n" "#define HAVE_FEATURES_H 1" >>confdefs.h
46961.108Schristos
46971.108Schristosfi
46981.108Schristosac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
46991.108Schristosif test "x$ac_cv_header_malloc_h" = xyes
47001.108Schristosthen :
47011.108Schristos  printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
47021.108Schristos
47031.108Schristosfi
47041.108Schristosac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
47051.108Schristosif test "x$ac_cv_header_sys_poll_h" = xyes
47061.108Schristosthen :
47071.108Schristos  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
47081.108Schristos
47091.108Schristosfi
47101.108Schristosac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
47111.108Schristosif test "x$ac_cv_header_pthread_h" = xyes
47121.108Schristosthen :
47131.108Schristos  printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
47141.108Schristos
47151.108Schristosfi
47161.108Schristosac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
47171.108Schristosif test "x$ac_cv_header_stddef_h" = xyes
47181.108Schristosthen :
47191.108Schristos  printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
47201.80Sapb
47211.80Sapbfi
47221.108Schristosac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
47231.108Schristosif test "x$ac_cv_header_sys_uio_h" = xyes
47241.108Schristosthen :
47251.108Schristos  printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
47261.45Sjmc
47271.108Schristosfi
47281.84Schristos
47291.108Schristos       for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h libgen.h stdint.h util.h resolv.h arpa/nameser.h
47301.84Schristosdo :
47311.108Schristos  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
47321.108Schristosac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47331.108Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"
47341.108Schristosthen :
47351.84Schristos  cat >>confdefs.h <<_ACEOF
47361.108Schristos#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
47371.84Schristos_ACEOF
47381.84Schristos
47391.108Schristoselse case e in #(
47401.108Schristos  e) test -f include/$ac_header || touch include/$ac_header ;;
47411.108Schristosesac
47421.84Schristosfi
47431.7Stv
47441.84Schristosdone
47451.108Schristos       for ac_header in rpc/types.h
47461.84Schristosdo :
47471.108Schristos  ac_fn_c_check_header_compile "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default"
47481.108Schristosif test "x$ac_cv_header_rpc_types_h" = xyes
47491.108Schristosthen :
47501.108Schristos  printf "%s\n" "#define HAVE_RPC_TYPES_H 1" >>confdefs.h
47511.96Shannken
47521.108Schristoselse case e in #(
47531.108Schristos  e) echo '#include "nbtool_config.h"' >include/$ac_header.new
47541.96Shannken	echo '#include "'$srcdir/../../common/include/$ac_header'"' \
47551.96Shannken		>>include/$ac_header.new
47561.96Shannken	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
47571.96Shannken		rm -f include/$ac_header.new
47581.96Shannken	else
47591.96Shannken		mv -f include/$ac_header.new include/$ac_header
47601.108Schristos	fi ;;
47611.108Schristosesac
47621.96Shannkenfi
47631.96Shannken
47641.96Shannkendone
47651.108Schristos       for ac_header in netconfig.h
47661.96Shannkendo :
47671.108Schristos  ac_fn_c_check_header_compile "$LINENO" "netconfig.h" "ac_cv_header_netconfig_h" "$ac_includes_default"
47681.108Schristosif test "x$ac_cv_header_netconfig_h" = xyes
47691.108Schristosthen :
47701.108Schristos  printf "%s\n" "#define HAVE_NETCONFIG_H 1" >>confdefs.h
47711.84Schristos
47721.108Schristoselse case e in #(
47731.108Schristos  e) echo '#include "nbtool_config.h"' >include/$ac_header.new
47741.84Schristos	echo '#include "'$srcdir/../../include/$ac_header'"' \
47751.84Schristos		>>include/$ac_header.new
47761.84Schristos	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
47771.84Schristos		rm -f include/$ac_header.new
47781.84Schristos	else
47791.84Schristos		mv -f include/$ac_header.new include/$ac_header
47801.108Schristos	fi ;;
47811.108Schristosesac
47821.76Spookafi
47831.35Sthorpej
47841.84Schristosdone
47851.84Schristos
47861.84Schristos# Typedefs.
47871.84Schristosac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
47881.108Schristosif test "x$ac_cv_type_size_t" = xyes
47891.108Schristosthen :
47901.9Stv
47911.108Schristoselse case e in #(
47921.108Schristos  e)
47931.108Schristosprintf "%s\n" "#define size_t unsigned int" >>confdefs.h
47941.108Schristos ;;
47951.108Schristosesac
47961.63Sapbfi
47971.65Schristos
47981.84Schristosac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
47991.108Schristosif test "x$ac_cv_type_id_t" = xyes
48001.108Schristosthen :
48011.84Schristos
48021.108Schristosprintf "%s\n" "#define HAVE_ID_T 1" >>confdefs.h
48031.76Spooka
48041.63Sapb
48051.84Schristosfi
48061.84Schristosac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
48071.108Schristosif test "x$ac_cv_type_long_long" = xyes
48081.108Schristosthen :
48091.63Sapb
48101.108Schristosprintf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
48111.84Schristos
48121.84Schristos
48131.63Sapbfi
48141.84Schristosac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
48151.108Schristosif test "x$ac_cv_type_u_long" = xyes
48161.108Schristosthen :
48171.84Schristos
48181.108Schristosprintf "%s\n" "#define HAVE_U_LONG 1" >>confdefs.h
48191.84Schristos
48201.84Schristos
48211.76Spookafi
48221.84Schristosac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
48231.108Schristosif test "x$ac_cv_type_u_char" = xyes
48241.108Schristosthen :
48251.74Schristos
48261.108Schristosprintf "%s\n" "#define HAVE_U_CHAR 1" >>confdefs.h
48271.65Schristos
48281.65Schristos
48291.74Schristosfi
48301.84Schristosac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
48311.108Schristosif test "x$ac_cv_type_u_short" = xyes
48321.108Schristosthen :
48331.84Schristos
48341.108Schristosprintf "%s\n" "#define HAVE_U_SHORT 1" >>confdefs.h
48351.63Sapb
48361.74Schristos
48371.84Schristosfi
48381.84Schristosac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
48391.108Schristosif test "x$ac_cv_type_u_int" = xyes
48401.108Schristosthen :
48411.74Schristos
48421.108Schristosprintf "%s\n" "#define HAVE_U_INT 1" >>confdefs.h
48431.84Schristos
48441.84Schristos
48451.76Spookafi
48461.84Schristosac_fn_c_check_type "$LINENO" "u_quad_t" "ac_cv_type_u_quad_t" "$ac_includes_default"
48471.108Schristosif test "x$ac_cv_type_u_quad_t" = xyes
48481.108Schristosthen :
48491.65Schristos
48501.108Schristosprintf "%s\n" "#define HAVE_U_QUAD_T 1" >>confdefs.h
48511.53Sdogcow
48521.40Satatat
48531.40Satatatfi
48541.63Sapb
48551.95Skamilac_fn_c_check_type "$LINENO" "uchar_t" "ac_cv_type_uchar_t" "$ac_includes_default"
48561.108Schristosif test "x$ac_cv_type_uchar_t" = xyes
48571.108Schristosthen :
48581.95Skamil
48591.108Schristosprintf "%s\n" "#define HAVE_UCHAR_T 1" >>confdefs.h
48601.95Skamil
48611.95Skamil
48621.95Skamilfi
48631.95Skamilac_fn_c_check_type "$LINENO" "ushort_t" "ac_cv_type_ushort_t" "$ac_includes_default"
48641.108Schristosif test "x$ac_cv_type_ushort_t" = xyes
48651.108Schristosthen :
48661.95Skamil
48671.108Schristosprintf "%s\n" "#define HAVE_USHORT_T 1" >>confdefs.h
48681.95Skamil
48691.95Skamil
48701.95Skamilfi
48711.95Skamilac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
48721.108Schristosif test "x$ac_cv_type_uint_t" = xyes
48731.108Schristosthen :
48741.95Skamil
48751.108Schristosprintf "%s\n" "#define HAVE_UINT_T 1" >>confdefs.h
48761.95Skamil
48771.95Skamil
48781.95Skamilfi
48791.95Skamilac_fn_c_check_type "$LINENO" "ulong_t" "ac_cv_type_ulong_t" "$ac_includes_default"
48801.108Schristosif test "x$ac_cv_type_ulong_t" = xyes
48811.108Schristosthen :
48821.95Skamil
48831.108Schristosprintf "%s\n" "#define HAVE_ULONG_T 1" >>confdefs.h
48841.95Skamil
48851.95Skamil
48861.95Skamilfi
48871.95Skamil
48881.84Schristosac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
48891.84Schristos#ifdef HAVE_RPC_TYPES_H
48901.84Schristos#include <rpc/types.h>
48911.84Schristos#endif
48921.84Schristos#include <sys/socket.h>
48931.84Schristos"
48941.108Schristosif test "x$ac_cv_type_socklen_t" = xyes
48951.108Schristosthen :
48961.65Schristos
48971.108Schristosprintf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
48981.65Schristos
48991.63Sapbfi
49001.65Schristos
49011.65Schristos
49021.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for enum uio_rw" >&5
49031.108Schristosprintf %s "checking for enum uio_rw... " >&6; }
49041.94Skamilcat confdefs.h - <<_ACEOF >conftest.$ac_ext
49051.94Skamil/* end confdefs.h.  */
49061.94Skamil
49071.94Skamil#include <sys/types.h>
49081.94Skamil#ifdef HAVE_SYS_UIO_H
49091.94Skamil#include <sys/uio.h>
49101.94Skamil#endif
49111.94Skamilint
49121.108Schristosmain (void)
49131.94Skamil{
49141.94Skamilenum uio_rw rw;
49151.94Skamil  ;
49161.94Skamil  return 0;
49171.94Skamil}
49181.94Skamil_ACEOF
49191.108Schristosif ac_fn_c_try_compile "$LINENO"
49201.108Schristosthen :
49211.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49221.108Schristosprintf "%s\n" "yes" >&6; }
49231.108Schristos
49241.108Schristosprintf "%s\n" "#define HAVE_ENUM_UIO_RW 1" >>confdefs.h
49251.108Schristos
49261.108Schristoselse case e in #(
49271.108Schristos  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
49281.108Schristosprintf "%s\n" "no" >&6; } ;;
49291.108Schristosesac
49301.94Skamilfi
49311.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
49321.94Skamil
49331.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for enum uio_seg" >&5
49341.108Schristosprintf %s "checking for enum uio_seg... " >&6; }
49351.94Skamilcat confdefs.h - <<_ACEOF >conftest.$ac_ext
49361.94Skamil/* end confdefs.h.  */
49371.94Skamil
49381.94Skamil#include <sys/types.h>
49391.94Skamil#ifdef HAVE_SYS_UIO_H
49401.94Skamil#include <sys/uio.h>
49411.94Skamil#endif
49421.94Skamilint
49431.108Schristosmain (void)
49441.94Skamil{
49451.94Skamilenum uio_seg seg;
49461.94Skamil  ;
49471.94Skamil  return 0;
49481.94Skamil}
49491.94Skamil_ACEOF
49501.108Schristosif ac_fn_c_try_compile "$LINENO"
49511.108Schristosthen :
49521.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49531.108Schristosprintf "%s\n" "yes" >&6; }
49541.108Schristos
49551.108Schristosprintf "%s\n" "#define HAVE_ENUM_UIO_SEG 1" >>confdefs.h
49561.108Schristos
49571.108Schristoselse case e in #(
49581.108Schristos  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
49591.108Schristosprintf "%s\n" "no" >&6; } ;;
49601.108Schristosesac
49611.94Skamilfi
49621.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
49631.94Skamil
49641.60Sapb
49651.84Schristos	ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
49661.108Schristosif test "x$ac_cv_type_uint8_t" = xyes
49671.108Schristosthen :
49681.81Schristos
49691.108Schristoselse case e in #(
49701.108Schristos  e)
49711.84Schristos		ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
49721.108Schristosif test "x$ac_cv_type_u_int8_t" = xyes
49731.108Schristosthen :
49741.81Schristos
49751.108Schristosprintf "%s\n" "#define uint8_t u_int8_t" >>confdefs.h
49761.81Schristos
49771.108Schristoselse case e in #(
49781.108Schristos  e) as_fn_error $? "cannot find a suitable type for uint8_t" "$LINENO" 5 ;;
49791.108Schristosesac
49801.81Schristosfi
49811.84Schristos
49821.108Schristos	 ;;
49831.108Schristosesac
49841.81Schristosfi
49851.81Schristos
49861.84Schristos	ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
49871.108Schristosif test "x$ac_cv_type_u_int8_t" = xyes
49881.108Schristosthen :
49891.81Schristos
49901.108Schristoselse case e in #(
49911.108Schristos  e)
49921.84Schristos		ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
49931.108Schristosif test "x$ac_cv_type_uint8_t" = xyes
49941.108Schristosthen :
49951.81Schristos
49961.108Schristosprintf "%s\n" "#define u_int8_t uint8_t" >>confdefs.h
49971.81Schristos
49981.108Schristoselse case e in #(
49991.108Schristos  e) as_fn_error $? "cannot find a suitable type for u_int8_t" "$LINENO" 5 ;;
50001.108Schristosesac
50011.81Schristosfi
50021.84Schristos
50031.108Schristos	 ;;
50041.108Schristosesac
50051.81Schristosfi
50061.81Schristos
50071.107Shans	ac_fn_c_check_type "$LINENO" "__uint8_t" "ac_cv_type___uint8_t" "$ac_includes_default"
50081.108Schristosif test "x$ac_cv_type___uint8_t" = xyes
50091.108Schristosthen :
50101.107Shans
50111.108Schristoselse case e in #(
50121.108Schristos  e)
50131.107Shans		ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
50141.108Schristosif test "x$ac_cv_type_uint8_t" = xyes
50151.108Schristosthen :
50161.107Shans
50171.108Schristosprintf "%s\n" "#define __uint8_t uint8_t" >>confdefs.h
50181.107Shans
50191.108Schristoselse case e in #(
50201.108Schristos  e) ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
50211.108Schristosif test "x$ac_cv_type_u_int8_t" = xyes
50221.108Schristosthen :
50231.107Shans
50241.108Schristosprintf "%s\n" "#define uint8_t u_int8_t" >>confdefs.h
50251.107Shans
50261.108Schristoselse case e in #(
50271.108Schristos  e) as_fn_error $? "cannot find a suitable type for __uint8_t" "$LINENO" 5 ;;
50281.108Schristosesac
50291.107Shansfi
50301.108Schristos ;;
50311.108Schristosesac
50321.107Shansfi
50331.107Shans
50341.108Schristos	 ;;
50351.108Schristosesac
50361.107Shansfi
50371.107Shans
50381.107Shans	ac_fn_c_check_type "$LINENO" "__int8_t" "ac_cv_type___int8_t" "$ac_includes_default"
50391.108Schristosif test "x$ac_cv_type___int8_t" = xyes
50401.108Schristosthen :
50411.107Shans
50421.108Schristoselse case e in #(
50431.108Schristos  e)
50441.107Shans		ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
50451.108Schristosif test "x$ac_cv_type_int8_t" = xyes
50461.108Schristosthen :
50471.107Shans
50481.108Schristosprintf "%s\n" "#define __int8_t int8_t" >>confdefs.h
50491.107Shans
50501.108Schristoselse case e in #(
50511.108Schristos  e) as_fn_error $? "cannot find a suitable type for __int8_t" "$LINENO" 5 ;;
50521.108Schristosesac
50531.107Shansfi
50541.107Shans
50551.108Schristos	 ;;
50561.108Schristosesac
50571.107Shansfi
50581.107Shans
50591.81Schristos
50601.84Schristos	ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
50611.108Schristosif test "x$ac_cv_type_uint16_t" = xyes
50621.108Schristosthen :
50631.81Schristos
50641.108Schristoselse case e in #(
50651.108Schristos  e)
50661.84Schristos		ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
50671.108Schristosif test "x$ac_cv_type_u_int16_t" = xyes
50681.108Schristosthen :
50691.81Schristos
50701.108Schristosprintf "%s\n" "#define uint16_t u_int16_t" >>confdefs.h
50711.81Schristos
50721.108Schristoselse case e in #(
50731.108Schristos  e) as_fn_error $? "cannot find a suitable type for uint16_t" "$LINENO" 5 ;;
50741.108Schristosesac
50751.81Schristosfi
50761.84Schristos
50771.108Schristos	 ;;
50781.108Schristosesac
50791.81Schristosfi
50801.81Schristos
50811.84Schristos	ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
50821.108Schristosif test "x$ac_cv_type_u_int16_t" = xyes
50831.108Schristosthen :
50841.81Schristos
50851.108Schristoselse case e in #(
50861.108Schristos  e)
50871.84Schristos		ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
50881.108Schristosif test "x$ac_cv_type_uint16_t" = xyes
50891.108Schristosthen :
50901.81Schristos
50911.108Schristosprintf "%s\n" "#define u_int16_t uint16_t" >>confdefs.h
50921.81Schristos
50931.108Schristoselse case e in #(
50941.108Schristos  e) as_fn_error $? "cannot find a suitable type for u_int16_t" "$LINENO" 5 ;;
50951.108Schristosesac
50961.81Schristosfi
50971.84Schristos
50981.108Schristos	 ;;
50991.108Schristosesac
51001.81Schristosfi
51011.81Schristos
51021.107Shans	ac_fn_c_check_type "$LINENO" "__uint16_t" "ac_cv_type___uint16_t" "$ac_includes_default"
51031.108Schristosif test "x$ac_cv_type___uint16_t" = xyes
51041.108Schristosthen :
51051.107Shans
51061.108Schristoselse case e in #(
51071.108Schristos  e)
51081.107Shans		ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
51091.108Schristosif test "x$ac_cv_type_uint16_t" = xyes
51101.108Schristosthen :
51111.107Shans
51121.108Schristosprintf "%s\n" "#define __uint16_t uint16_t" >>confdefs.h
51131.107Shans
51141.108Schristoselse case e in #(
51151.108Schristos  e) ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
51161.108Schristosif test "x$ac_cv_type_u_int16_t" = xyes
51171.108Schristosthen :
51181.107Shans
51191.108Schristosprintf "%s\n" "#define uint16_t u_int16_t" >>confdefs.h
51201.107Shans
51211.108Schristoselse case e in #(
51221.108Schristos  e) as_fn_error $? "cannot find a suitable type for __uint16_t" "$LINENO" 5 ;;
51231.108Schristosesac
51241.107Shansfi
51251.108Schristos ;;
51261.108Schristosesac
51271.107Shansfi
51281.107Shans
51291.108Schristos	 ;;
51301.108Schristosesac
51311.107Shansfi
51321.107Shans
51331.107Shans	ac_fn_c_check_type "$LINENO" "__int16_t" "ac_cv_type___int16_t" "$ac_includes_default"
51341.108Schristosif test "x$ac_cv_type___int16_t" = xyes
51351.108Schristosthen :
51361.107Shans
51371.108Schristoselse case e in #(
51381.108Schristos  e)
51391.107Shans		ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
51401.108Schristosif test "x$ac_cv_type_int16_t" = xyes
51411.108Schristosthen :
51421.107Shans
51431.108Schristosprintf "%s\n" "#define __int16_t int16_t" >>confdefs.h
51441.107Shans
51451.108Schristoselse case e in #(
51461.108Schristos  e) as_fn_error $? "cannot find a suitable type for __int16_t" "$LINENO" 5 ;;
51471.108Schristosesac
51481.107Shansfi
51491.107Shans
51501.108Schristos	 ;;
51511.108Schristosesac
51521.107Shansfi
51531.107Shans
51541.81Schristos
51551.84Schristos	ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
51561.108Schristosif test "x$ac_cv_type_uint32_t" = xyes
51571.108Schristosthen :
51581.53Sdogcow
51591.108Schristoselse case e in #(
51601.108Schristos  e)
51611.84Schristos		ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
51621.108Schristosif test "x$ac_cv_type_u_int32_t" = xyes
51631.108Schristosthen :
51641.84Schristos
51651.108Schristosprintf "%s\n" "#define uint32_t u_int32_t" >>confdefs.h
51661.65Schristos
51671.108Schristoselse case e in #(
51681.108Schristos  e) as_fn_error $? "cannot find a suitable type for uint32_t" "$LINENO" 5 ;;
51691.108Schristosesac
51701.40Satatatfi
51711.84Schristos
51721.108Schristos	 ;;
51731.108Schristosesac
51741.74Schristosfi
51751.61Schristos
51761.84Schristos	ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
51771.108Schristosif test "x$ac_cv_type_u_int32_t" = xyes
51781.108Schristosthen :
51791.7Stv
51801.108Schristoselse case e in #(
51811.108Schristos  e)
51821.84Schristos		ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
51831.108Schristosif test "x$ac_cv_type_uint32_t" = xyes
51841.108Schristosthen :
51851.60Sapb
51861.108Schristosprintf "%s\n" "#define u_int32_t uint32_t" >>confdefs.h
51871.63Sapb
51881.108Schristoselse case e in #(
51891.108Schristos  e) as_fn_error $? "cannot find a suitable type for u_int32_t" "$LINENO" 5 ;;
51901.108Schristosesac
51911.7Stvfi
51921.84Schristos
51931.108Schristos	 ;;
51941.108Schristosesac
51951.7Stvfi
51961.7Stv
51971.107Shans	ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
51981.108Schristosif test "x$ac_cv_type___uint32_t" = xyes
51991.108Schristosthen :
52001.107Shans
52011.108Schristoselse case e in #(
52021.108Schristos  e)
52031.107Shans		ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
52041.108Schristosif test "x$ac_cv_type_uint32_t" = xyes
52051.108Schristosthen :
52061.107Shans
52071.108Schristosprintf "%s\n" "#define __uint32_t uint32_t" >>confdefs.h
52081.107Shans
52091.108Schristoselse case e in #(
52101.108Schristos  e) ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
52111.108Schristosif test "x$ac_cv_type_u_int32_t" = xyes
52121.108Schristosthen :
52131.107Shans
52141.108Schristosprintf "%s\n" "#define uint32_t u_int32_t" >>confdefs.h
52151.107Shans
52161.108Schristoselse case e in #(
52171.108Schristos  e) as_fn_error $? "cannot find a suitable type for __uint32_t" "$LINENO" 5 ;;
52181.108Schristosesac
52191.107Shansfi
52201.108Schristos ;;
52211.108Schristosesac
52221.107Shansfi
52231.107Shans
52241.108Schristos	 ;;
52251.108Schristosesac
52261.107Shansfi
52271.107Shans
52281.107Shans	ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
52291.108Schristosif test "x$ac_cv_type___int32_t" = xyes
52301.108Schristosthen :
52311.107Shans
52321.108Schristoselse case e in #(
52331.108Schristos  e)
52341.107Shans		ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
52351.108Schristosif test "x$ac_cv_type_int32_t" = xyes
52361.108Schristosthen :
52371.107Shans
52381.108Schristosprintf "%s\n" "#define __int32_t int32_t" >>confdefs.h
52391.107Shans
52401.108Schristoselse case e in #(
52411.108Schristos  e) as_fn_error $? "cannot find a suitable type for __int32_t" "$LINENO" 5 ;;
52421.108Schristosesac
52431.107Shansfi
52441.107Shans
52451.108Schristos	 ;;
52461.108Schristosesac
52471.107Shansfi
52481.107Shans
52491.84Schristos
52501.84Schristos	ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
52511.108Schristosif test "x$ac_cv_type_uint64_t" = xyes
52521.108Schristosthen :
52531.63Sapb
52541.108Schristoselse case e in #(
52551.108Schristos  e)
52561.84Schristos		ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
52571.108Schristosif test "x$ac_cv_type_u_int64_t" = xyes
52581.108Schristosthen :
52591.65Schristos
52601.108Schristosprintf "%s\n" "#define uint64_t u_int64_t" >>confdefs.h
52611.63Sapb
52621.108Schristoselse case e in #(
52631.108Schristos  e) as_fn_error $? "cannot find a suitable type for uint64_t" "$LINENO" 5 ;;
52641.108Schristosesac
52651.53Sdogcowfi
52661.84Schristos
52671.108Schristos	 ;;
52681.108Schristosesac
52691.61Schristosfi
52701.65Schristos
52711.84Schristos	ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
52721.108Schristosif test "x$ac_cv_type_u_int64_t" = xyes
52731.108Schristosthen :
52741.53Sdogcow
52751.108Schristoselse case e in #(
52761.108Schristos  e)
52771.84Schristos		ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
52781.108Schristosif test "x$ac_cv_type_uint64_t" = xyes
52791.108Schristosthen :
52801.65Schristos
52811.108Schristosprintf "%s\n" "#define u_int64_t uint64_t" >>confdefs.h
52821.53Sdogcow
52831.108Schristoselse case e in #(
52841.108Schristos  e) as_fn_error $? "cannot find a suitable type for u_int64_t" "$LINENO" 5 ;;
52851.108Schristosesac
52861.7Stvfi
52871.84Schristos
52881.108Schristos	 ;;
52891.108Schristosesac
52901.7Stvfi
52911.65Schristos
52921.107Shans	ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
52931.108Schristosif test "x$ac_cv_type___uint64_t" = xyes
52941.108Schristosthen :
52951.107Shans
52961.108Schristoselse case e in #(
52971.108Schristos  e)
52981.107Shans		ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
52991.108Schristosif test "x$ac_cv_type_uint64_t" = xyes
53001.108Schristosthen :
53011.107Shans
53021.108Schristosprintf "%s\n" "#define __uint64_t uint64_t" >>confdefs.h
53031.107Shans
53041.108Schristoselse case e in #(
53051.108Schristos  e) ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
53061.108Schristosif test "x$ac_cv_type_u_int64_t" = xyes
53071.108Schristosthen :
53081.107Shans
53091.108Schristosprintf "%s\n" "#define uint64_t u_int64_t" >>confdefs.h
53101.107Shans
53111.108Schristoselse case e in #(
53121.108Schristos  e) as_fn_error $? "cannot find a suitable type for __uint64_t" "$LINENO" 5 ;;
53131.108Schristosesac
53141.107Shansfi
53151.108Schristos ;;
53161.108Schristosesac
53171.107Shansfi
53181.107Shans
53191.108Schristos	 ;;
53201.108Schristosesac
53211.107Shansfi
53221.107Shans
53231.107Shans	ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
53241.108Schristosif test "x$ac_cv_type___int64_t" = xyes
53251.108Schristosthen :
53261.107Shans
53271.108Schristoselse case e in #(
53281.108Schristos  e)
53291.107Shans		ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
53301.108Schristosif test "x$ac_cv_type_int64_t" = xyes
53311.108Schristosthen :
53321.107Shans
53331.108Schristosprintf "%s\n" "#define __int64_t int64_t" >>confdefs.h
53341.107Shans
53351.108Schristoselse case e in #(
53361.108Schristos  e) as_fn_error $? "cannot find a suitable type for __int64_t" "$LINENO" 5 ;;
53371.108Schristosesac
53381.107Shansfi
53391.107Shans
53401.108Schristos	 ;;
53411.108Schristosesac
53421.107Shansfi
53431.107Shans
53441.7Stv
53451.84Schristos
53461.84Schristos# Struct members.
53471.84Schristosac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" "#include <sys/types.h>
53481.84Schristos#include <dirent.h>
53491.84Schristos"
53501.108Schristosif test "x$ac_cv_member_DIR_dd_fd" = xyes
53511.108Schristosthen :
53521.84Schristos
53531.108Schristosprintf "%s\n" "#define HAVE_DIR_DD_FD 1" >>confdefs.h
53541.84Schristos
53551.61Schristos
53561.76Spookafi
53571.84Schristosac_fn_c_check_member "$LINENO" "DIR" "__dd_fd" "ac_cv_member_DIR___dd_fd" "#include <sys/types.h>
53581.84Schristos#include <dirent.h>
53591.84Schristos"
53601.108Schristosif test "x$ac_cv_member_DIR___dd_fd" = xyes
53611.108Schristosthen :
53621.84Schristos
53631.108Schristosprintf "%s\n" "#define HAVE_DIR___DD_FD 1" >>confdefs.h
53641.61Schristos
53651.7Stv
53661.7Stvfi
53671.84Schristosac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#include <sys/types.h>
53681.84Schristos#include <dirent.h>
53691.84Schristos"
53701.108Schristosif test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
53711.108Schristosthen :
53721.61Schristos
53731.108Schristosprintf "%s\n" "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
53741.7Stv
53751.7Stv
53761.76Spookafi
53771.4Stv
53781.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "#include <sys/stat.h>
53791.84Schristos"
53801.108Schristosif test "x$ac_cv_member_struct_stat_st_flags" = xyes
53811.108Schristosthen :
53821.4Stv
53831.108Schristosprintf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
53841.84Schristos
53851.84Schristos
53861.4Stvfi
53871.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "#include <sys/stat.h>
53881.84Schristos"
53891.108Schristosif test "x$ac_cv_member_struct_stat_st_gen" = xyes
53901.108Schristosthen :
53911.84Schristos
53921.108Schristosprintf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h
53931.84Schristos
53941.84Schristos
53951.4Stvfi
53961.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "#include <sys/stat.h>
53971.84Schristos"
53981.108Schristosif test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
53991.108Schristosthen :
54001.61Schristos
54011.108Schristosprintf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
54021.74Schristos
54031.74Schristos
54041.76Spookafi
54051.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/stat.h>
54061.84Schristos"
54071.108Schristosif test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
54081.108Schristosthen :
54091.84Schristos
54101.108Schristosprintf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
54111.84Schristos
54121.4Stv
54131.84Schristosfi
54141.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "#include <sys/stat.h>
54151.84Schristos"
54161.108Schristosif test "x$ac_cv_member_struct_stat_st_atim" = xyes
54171.108Schristosthen :
54181.63Sapb
54191.108Schristosprintf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
54201.84Schristos
54211.84Schristos
54221.19Sbjh21fi
54231.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
54241.84Schristos"
54251.108Schristosif test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes
54261.108Schristosthen :
54271.84Schristos
54281.108Schristosprintf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h
54291.84Schristos
54301.84Schristos
54311.19Sbjh21fi
54321.63Sapb
54331.84Schristosac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "#include <sys/statvfs.h>
54341.84Schristos"
54351.108Schristosif test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes
54361.108Schristosthen :
54371.84Schristos
54381.108Schristosprintf "%s\n" "#define HAVE_STRUCT_STATVFS_F_IOSIZE 1" >>confdefs.h
54391.19Sbjh21
54401.19Sbjh21
54411.76Spookafi
54421.63Sapb
54431.84Schristosac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
54441.84Schristos"
54451.108Schristosif test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
54461.108Schristosthen :
54471.19Sbjh21
54481.108Schristosprintf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
54491.84Schristos
54501.84Schristos
54511.19Sbjh21fi
54521.76Spooka
54531.74Schristos
54541.84Schristos# Global variable decls.
54551.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
54561.108Schristosprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
54571.108Schristosif test ${ac_cv_c_undeclared_builtin_options+y}
54581.108Schristosthen :
54591.108Schristos  printf %s "(cached) " >&6
54601.108Schristoselse case e in #(
54611.108Schristos  e) ac_save_CFLAGS=$CFLAGS
54621.108Schristos   ac_cv_c_undeclared_builtin_options='cannot detect'
54631.108Schristos   for ac_arg in '' -fno-builtin; do
54641.108Schristos     CFLAGS="$ac_save_CFLAGS $ac_arg"
54651.108Schristos     # This test program should *not* compile successfully.
54661.108Schristos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54671.108Schristos/* end confdefs.h.  */
54681.108Schristos
54691.108Schristosint
54701.108Schristosmain (void)
54711.108Schristos{
54721.108Schristos(void) strchr;
54731.108Schristos  ;
54741.108Schristos  return 0;
54751.108Schristos}
54761.108Schristos_ACEOF
54771.108Schristosif ac_fn_c_try_compile "$LINENO"
54781.108Schristosthen :
54791.108Schristos
54801.108Schristoselse case e in #(
54811.108Schristos  e) # This test program should compile successfully.
54821.108Schristos        # No library function is consistently available on
54831.108Schristos        # freestanding implementations, so test against a dummy
54841.108Schristos        # declaration.  Include always-available headers on the
54851.108Schristos        # off chance that they somehow elicit warnings.
54861.108Schristos        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54871.108Schristos/* end confdefs.h.  */
54881.108Schristos#include <float.h>
54891.108Schristos#include <limits.h>
54901.108Schristos#include <stdarg.h>
54911.108Schristos#include <stddef.h>
54921.108Schristosextern void ac_decl (int, char *);
54931.108Schristos
54941.108Schristosint
54951.108Schristosmain (void)
54961.108Schristos{
54971.108Schristos(void) ac_decl (0, (char *) 0);
54981.108Schristos  (void) ac_decl;
54991.108Schristos
55001.108Schristos  ;
55011.108Schristos  return 0;
55021.108Schristos}
55031.108Schristos_ACEOF
55041.108Schristosif ac_fn_c_try_compile "$LINENO"
55051.108Schristosthen :
55061.108Schristos  if test x"$ac_arg" = x
55071.108Schristosthen :
55081.108Schristos  ac_cv_c_undeclared_builtin_options='none needed'
55091.108Schristoselse case e in #(
55101.108Schristos  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
55111.108Schristosesac
55121.108Schristosfi
55131.108Schristos          break
55141.108Schristosfi
55151.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
55161.108Schristosesac
55171.108Schristosfi
55181.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55191.108Schristos    done
55201.108Schristos    CFLAGS=$ac_save_CFLAGS
55211.108Schristos   ;;
55221.108Schristosesac
55231.108Schristosfi
55241.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
55251.108Schristosprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
55261.108Schristos  case $ac_cv_c_undeclared_builtin_options in #(
55271.108Schristos  'cannot detect') :
55281.108Schristos    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
55291.108Schristosprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
55301.108Schristosas_fn_error $? "cannot make $CC report undeclared builtins
55311.108SchristosSee 'config.log' for more details" "$LINENO" 5; } ;; #(
55321.108Schristos  'none needed') :
55331.108Schristos    ac_c_undeclared_builtin_options='' ;; #(
55341.108Schristos  *) :
55351.108Schristos    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
55361.108Schristosesac
55371.108Schristos
55381.108Schristosac_fn_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "
55391.86Schristos#include <stdio.h>
55401.86Schristos
55411.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
55421.108Schristosif test "x$ac_cv_have_decl_asprintf" = xyes
55431.108Schristosthen :
55441.86Schristos  ac_have_decl=1
55451.108Schristoselse case e in #(
55461.108Schristos  e) ac_have_decl=0 ;;
55471.108Schristosesac
55481.86Schristosfi
55491.108Schristosprintf "%s\n" "#define HAVE_DECL_ASPRINTF $ac_have_decl" >>confdefs.h
55501.108Schristosac_fn_check_decl "$LINENO" "asnprintf" "ac_cv_have_decl_asnprintf" "
55511.88Ssevan#include <stdio.h>
55521.88Ssevan
55531.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
55541.108Schristosif test "x$ac_cv_have_decl_asnprintf" = xyes
55551.108Schristosthen :
55561.88Ssevan  ac_have_decl=1
55571.108Schristoselse case e in #(
55581.108Schristos  e) ac_have_decl=0 ;;
55591.108Schristosesac
55601.88Ssevanfi
55611.108Schristosprintf "%s\n" "#define HAVE_DECL_ASNPRINTF $ac_have_decl" >>confdefs.h
55621.108Schristosac_fn_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "
55631.86Schristos#include <stdio.h>
55641.86Schristos
55651.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
55661.108Schristosif test "x$ac_cv_have_decl_vasprintf" = xyes
55671.108Schristosthen :
55681.86Schristos  ac_have_decl=1
55691.108Schristoselse case e in #(
55701.108Schristos  e) ac_have_decl=0 ;;
55711.108Schristosesac
55721.86Schristosfi
55731.108Schristosprintf "%s\n" "#define HAVE_DECL_VASPRINTF $ac_have_decl" >>confdefs.h
55741.108Schristosac_fn_check_decl "$LINENO" "vasnprintf" "ac_cv_have_decl_vasnprintf" "
55751.86Schristos#include <stdio.h>
55761.86Schristos
55771.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
55781.108Schristosif test "x$ac_cv_have_decl_vasnprintf" = xyes
55791.108Schristosthen :
55801.86Schristos  ac_have_decl=1
55811.108Schristoselse case e in #(
55821.108Schristos  e) ac_have_decl=0 ;;
55831.108Schristosesac
55841.86Schristosfi
55851.108Schristosprintf "%s\n" "#define HAVE_DECL_VASNPRINTF $ac_have_decl" >>confdefs.h
55861.108Schristosac_fn_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
55871.86Schristos#include <stdio.h>
55881.86Schristos
55891.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
55901.108Schristosif test "x$ac_cv_have_decl_vsnprintf" = xyes
55911.108Schristosthen :
55921.86Schristos  ac_have_decl=1
55931.108Schristoselse case e in #(
55941.108Schristos  e) ac_have_decl=0 ;;
55951.108Schristosesac
55961.86Schristosfi
55971.108Schristosprintf "%s\n" "#define HAVE_DECL_VSNPRINTF $ac_have_decl" >>confdefs.h
55981.108Schristosac_fn_check_decl "$LINENO" "fgetln" "ac_cv_have_decl_fgetln" "
55991.86Schristos#include <stdio.h>
56001.86Schristos
56011.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
56021.108Schristosif test "x$ac_cv_have_decl_fgetln" = xyes
56031.108Schristosthen :
56041.86Schristos  ac_have_decl=1
56051.108Schristoselse case e in #(
56061.108Schristos  e) ac_have_decl=0 ;;
56071.108Schristosesac
56081.86Schristosfi
56091.108Schristosprintf "%s\n" "#define HAVE_DECL_FGETLN $ac_have_decl" >>confdefs.h
56101.108Schristosac_fn_check_decl "$LINENO" "fparseln" "ac_cv_have_decl_fparseln" "
56111.86Schristos#include <stdio.h>
56121.86Schristos
56131.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
56141.108Schristosif test "x$ac_cv_have_decl_fparseln" = xyes
56151.108Schristosthen :
56161.86Schristos  ac_have_decl=1
56171.108Schristoselse case e in #(
56181.108Schristos  e) ac_have_decl=0 ;;
56191.108Schristosesac
56201.86Schristosfi
56211.108Schristosprintf "%s\n" "#define HAVE_DECL_FPARSELN $ac_have_decl" >>confdefs.h
56221.108Schristosac_fn_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "
56231.87Schristos#include <stdio.h>
56241.87Schristos
56251.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
56261.108Schristosif test "x$ac_cv_have_decl_fpurge" = xyes
56271.108Schristosthen :
56281.87Schristos  ac_have_decl=1
56291.108Schristoselse case e in #(
56301.108Schristos  e) ac_have_decl=0 ;;
56311.108Schristosesac
56321.87Schristosfi
56331.108Schristosprintf "%s\n" "#define HAVE_DECL_FPURGE $ac_have_decl" >>confdefs.h
56341.108Schristosac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "
56351.87Schristos#include <stdio.h>
56361.87Schristos
56371.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
56381.108Schristosif test "x$ac_cv_have_decl_getdelim" = xyes
56391.108Schristosthen :
56401.87Schristos  ac_have_decl=1
56411.108Schristoselse case e in #(
56421.108Schristos  e) ac_have_decl=0 ;;
56431.108Schristosesac
56441.87Schristosfi
56451.108Schristosprintf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h
56461.108Schristosac_fn_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "
56471.86Schristos#include <stdio.h>
56481.86Schristos
56491.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
56501.108Schristosif test "x$ac_cv_have_decl_getline" = xyes
56511.108Schristosthen :
56521.86Schristos  ac_have_decl=1
56531.108Schristoselse case e in #(
56541.108Schristos  e) ac_have_decl=0 ;;
56551.108Schristosesac
56561.86Schristosfi
56571.108Schristosprintf "%s\n" "#define HAVE_DECL_GETLINE $ac_have_decl" >>confdefs.h
56581.108Schristosac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "
56591.86Schristos#include <stdio.h>
56601.86Schristos
56611.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
56621.108Schristosif test "x$ac_cv_have_decl_snprintf" = xyes
56631.108Schristosthen :
56641.86Schristos  ac_have_decl=1
56651.108Schristoselse case e in #(
56661.108Schristos  e) ac_have_decl=0 ;;
56671.108Schristosesac
56681.86Schristosfi
56691.108Schristosprintf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h
56701.86Schristos
56711.86Schristos
56721.108Schristosac_fn_check_decl "$LINENO" "atoll" "ac_cv_have_decl_atoll" "
56731.108Schristos#include <stdlib.h>
56741.86Schristos
56751.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
56761.108Schristosif test "x$ac_cv_have_decl_atoll" = xyes
56771.108Schristosthen :
56781.108Schristos  ac_have_decl=1
56791.108Schristoselse case e in #(
56801.108Schristos  e) ac_have_decl=0 ;;
56811.108Schristosesac
56821.108Schristosfi
56831.108Schristosprintf "%s\n" "#define HAVE_DECL_ATOLL $ac_have_decl" >>confdefs.h
56841.108Schristosac_fn_check_decl "$LINENO" "getsubopt" "ac_cv_have_decl_getsubopt" "
56851.86Schristos#include <stdlib.h>
56861.86Schristos
56871.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
56881.108Schristosif test "x$ac_cv_have_decl_getsubopt" = xyes
56891.108Schristosthen :
56901.86Schristos  ac_have_decl=1
56911.108Schristoselse case e in #(
56921.108Schristos  e) ac_have_decl=0 ;;
56931.108Schristosesac
56941.86Schristosfi
56951.108Schristosprintf "%s\n" "#define HAVE_DECL_GETSUBOPT $ac_have_decl" >>confdefs.h
56961.108Schristosac_fn_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "
56971.108Schristos#include <stdlib.h>
56981.86Schristos
56991.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
57001.108Schristosif test "x$ac_cv_have_decl_getprogname" = xyes
57011.108Schristosthen :
57021.108Schristos  ac_have_decl=1
57031.108Schristoselse case e in #(
57041.108Schristos  e) ac_have_decl=0 ;;
57051.108Schristosesac
57061.108Schristosfi
57071.108Schristosprintf "%s\n" "#define HAVE_DECL_GETPROGNAME $ac_have_decl" >>confdefs.h
57081.108Schristosac_fn_check_decl "$LINENO" "heapsort" "ac_cv_have_decl_heapsort" "
57091.86Schristos#include <stdlib.h>
57101.86Schristos
57111.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
57121.108Schristosif test "x$ac_cv_have_decl_heapsort" = xyes
57131.108Schristosthen :
57141.86Schristos  ac_have_decl=1
57151.108Schristoselse case e in #(
57161.108Schristos  e) ac_have_decl=0 ;;
57171.108Schristosesac
57181.86Schristosfi
57191.108Schristosprintf "%s\n" "#define HAVE_DECL_HEAPSORT $ac_have_decl" >>confdefs.h
57201.108Schristosac_fn_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "
57211.86Schristos#include <stdlib.h>
57221.86Schristos
57231.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
57241.108Schristosif test "x$ac_cv_have_decl_mkdtemp" = xyes
57251.108Schristosthen :
57261.86Schristos  ac_have_decl=1
57271.108Schristoselse case e in #(
57281.108Schristos  e) ac_have_decl=0 ;;
57291.108Schristosesac
57301.86Schristosfi
57311.108Schristosprintf "%s\n" "#define HAVE_DECL_MKDTEMP $ac_have_decl" >>confdefs.h
57321.108Schristosac_fn_check_decl "$LINENO" "mkstemp" "ac_cv_have_decl_mkstemp" "
57331.86Schristos#include <stdlib.h>
57341.86Schristos
57351.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
57361.108Schristosif test "x$ac_cv_have_decl_mkstemp" = xyes
57371.108Schristosthen :
57381.86Schristos  ac_have_decl=1
57391.108Schristoselse case e in #(
57401.108Schristos  e) ac_have_decl=0 ;;
57411.108Schristosesac
57421.86Schristosfi
57431.108Schristosprintf "%s\n" "#define HAVE_DECL_MKSTEMP $ac_have_decl" >>confdefs.h
57441.108Schristosac_fn_check_decl "$LINENO" "mkstemps" "ac_cv_have_decl_mkstemps" "
57451.86Schristos#include <stdlib.h>
57461.86Schristos
57471.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
57481.108Schristosif test "x$ac_cv_have_decl_mkstemps" = xyes
57491.108Schristosthen :
57501.86Schristos  ac_have_decl=1
57511.108Schristoselse case e in #(
57521.108Schristos  e) ac_have_decl=0 ;;
57531.108Schristosesac
57541.86Schristosfi
57551.108Schristosprintf "%s\n" "#define HAVE_DECL_MKSTEMPS $ac_have_decl" >>confdefs.h
57561.108Schristosac_fn_check_decl "$LINENO" "reallocarr" "ac_cv_have_decl_reallocarr" "
57571.99Schristos#include <stdlib.h>
57581.99Schristos
57591.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
57601.108Schristosif test "x$ac_cv_have_decl_reallocarr" = xyes
57611.108Schristosthen :
57621.99Schristos  ac_have_decl=1
57631.108Schristoselse case e in #(
57641.108Schristos  e) ac_have_decl=0 ;;
57651.108Schristosesac
57661.99Schristosfi
57671.108Schristosprintf "%s\n" "#define HAVE_DECL_REALLOCARR $ac_have_decl" >>confdefs.h
57681.108Schristosac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "
57691.93Schristos#include <stdlib.h>
57701.93Schristos
57711.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
57721.108Schristosif test "x$ac_cv_have_decl_reallocarray" = xyes
57731.108Schristosthen :
57741.93Schristos  ac_have_decl=1
57751.108Schristoselse case e in #(
57761.108Schristos  e) ac_have_decl=0 ;;
57771.108Schristosesac
57781.93Schristosfi
57791.108Schristosprintf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h
57801.108Schristosac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "
57811.86Schristos#include <stdlib.h>
57821.86Schristos
57831.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
57841.108Schristosif test "x$ac_cv_have_decl_setenv" = xyes
57851.108Schristosthen :
57861.86Schristos  ac_have_decl=1
57871.108Schristoselse case e in #(
57881.108Schristos  e) ac_have_decl=0 ;;
57891.108Schristosesac
57901.86Schristosfi
57911.108Schristosprintf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h
57921.108Schristosac_fn_check_decl "$LINENO" "strtonum" "ac_cv_have_decl_strtonum" "
57931.86Schristos#include <stdlib.h>
57941.86Schristos
57951.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
57961.108Schristosif test "x$ac_cv_have_decl_strtonum" = xyes
57971.108Schristosthen :
57981.86Schristos  ac_have_decl=1
57991.108Schristoselse case e in #(
58001.108Schristos  e) ac_have_decl=0 ;;
58011.108Schristosesac
58021.86Schristosfi
58031.108Schristosprintf "%s\n" "#define HAVE_DECL_STRTONUM $ac_have_decl" >>confdefs.h
58041.108Schristosac_fn_check_decl "$LINENO" "strtoi" "ac_cv_have_decl_strtoi" "
58051.86Schristos#include <stdlib.h>
58061.86Schristos
58071.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
58081.108Schristosif test "x$ac_cv_have_decl_strtoi" = xyes
58091.108Schristosthen :
58101.86Schristos  ac_have_decl=1
58111.108Schristoselse case e in #(
58121.108Schristos  e) ac_have_decl=0 ;;
58131.108Schristosesac
58141.86Schristosfi
58151.108Schristosprintf "%s\n" "#define HAVE_DECL_STRTOI $ac_have_decl" >>confdefs.h
58161.108Schristosac_fn_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "
58171.86Schristos#include <stdlib.h>
58181.86Schristos
58191.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
58201.108Schristosif test "x$ac_cv_have_decl_strtoll" = xyes
58211.108Schristosthen :
58221.86Schristos  ac_have_decl=1
58231.108Schristoselse case e in #(
58241.108Schristos  e) ac_have_decl=0 ;;
58251.108Schristosesac
58261.86Schristosfi
58271.108Schristosprintf "%s\n" "#define HAVE_DECL_STRTOLL $ac_have_decl" >>confdefs.h
58281.108Schristosac_fn_check_decl "$LINENO" "strtou" "ac_cv_have_decl_strtou" "
58291.86Schristos#include <stdlib.h>
58301.86Schristos
58311.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
58321.108Schristosif test "x$ac_cv_have_decl_strtou" = xyes
58331.108Schristosthen :
58341.86Schristos  ac_have_decl=1
58351.108Schristoselse case e in #(
58361.108Schristos  e) ac_have_decl=0 ;;
58371.108Schristosesac
58381.86Schristosfi
58391.108Schristosprintf "%s\n" "#define HAVE_DECL_STRTOU $ac_have_decl" >>confdefs.h
58401.108Schristosac_fn_check_decl "$LINENO" "setprogname" "ac_cv_have_decl_setprogname" "
58411.106Skre#include <stdlib.h>
58421.106Skre
58431.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
58441.108Schristosif test "x$ac_cv_have_decl_setprogname" = xyes
58451.108Schristosthen :
58461.106Skre  ac_have_decl=1
58471.108Schristoselse case e in #(
58481.108Schristos  e) ac_have_decl=0 ;;
58491.108Schristosesac
58501.106Skrefi
58511.108Schristosprintf "%s\n" "#define HAVE_DECL_SETPROGNAME $ac_have_decl" >>confdefs.h
58521.108Schristosac_fn_check_decl "$LINENO" "shquote" "ac_cv_have_decl_shquote" "
58531.86Schristos#include <stdlib.h>
58541.86Schristos
58551.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
58561.108Schristosif test "x$ac_cv_have_decl_shquote" = xyes
58571.108Schristosthen :
58581.86Schristos  ac_have_decl=1
58591.108Schristoselse case e in #(
58601.108Schristos  e) ac_have_decl=0 ;;
58611.108Schristosesac
58621.86Schristosfi
58631.108Schristosprintf "%s\n" "#define HAVE_DECL_SHQUOTE $ac_have_decl" >>confdefs.h
58641.86Schristos
58651.86Schristos
58661.108Schristosac_fn_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "
58671.86Schristos#include <libgen.h>
58681.86Schristos
58691.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
58701.108Schristosif test "x$ac_cv_have_decl_basename" = xyes
58711.108Schristosthen :
58721.86Schristos  ac_have_decl=1
58731.108Schristoselse case e in #(
58741.108Schristos  e) ac_have_decl=0 ;;
58751.108Schristosesac
58761.86Schristosfi
58771.108Schristosprintf "%s\n" "#define HAVE_DECL_BASENAME $ac_have_decl" >>confdefs.h
58781.108Schristosac_fn_check_decl "$LINENO" "dirname" "ac_cv_have_decl_dirname" "
58791.86Schristos#include <libgen.h>
58801.86Schristos
58811.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
58821.108Schristosif test "x$ac_cv_have_decl_dirname" = xyes
58831.108Schristosthen :
58841.86Schristos  ac_have_decl=1
58851.108Schristoselse case e in #(
58861.108Schristos  e) ac_have_decl=0 ;;
58871.108Schristosesac
58881.86Schristosfi
58891.108Schristosprintf "%s\n" "#define HAVE_DECL_DIRNAME $ac_have_decl" >>confdefs.h
58901.86Schristos
58911.86Schristos
58921.108Schristosac_fn_check_decl "$LINENO" "raise_default_signal" "ac_cv_have_decl_raise_default_signal" "
58931.86Schristos#include <util.h>
58941.86Schristos
58951.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
58961.108Schristosif test "x$ac_cv_have_decl_raise_default_signal" = xyes
58971.108Schristosthen :
58981.86Schristos  ac_have_decl=1
58991.108Schristoselse case e in #(
59001.108Schristos  e) ac_have_decl=0 ;;
59011.108Schristosesac
59021.86Schristosfi
59031.108Schristosprintf "%s\n" "#define HAVE_DECL_RAISE_DEFAULT_SIGNAL $ac_have_decl" >>confdefs.h
59041.86Schristos
59051.86Schristos
59061.108Schristosac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "
59071.86Schristos#include <unistd.h>
59081.86Schristos
59091.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
59101.108Schristosif test "x$ac_cv_have_decl_issetugid" = xyes
59111.108Schristosthen :
59121.86Schristos  ac_have_decl=1
59131.108Schristoselse case e in #(
59141.108Schristos  e) ac_have_decl=0 ;;
59151.108Schristosesac
59161.86Schristosfi
59171.108Schristosprintf "%s\n" "#define HAVE_DECL_ISSETUGID $ac_have_decl" >>confdefs.h
59181.108Schristosac_fn_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
59191.86Schristos#include <unistd.h>
59201.86Schristos
59211.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
59221.108Schristosif test "x$ac_cv_have_decl_pread" = xyes
59231.108Schristosthen :
59241.86Schristos  ac_have_decl=1
59251.108Schristoselse case e in #(
59261.108Schristos  e) ac_have_decl=0 ;;
59271.108Schristosesac
59281.86Schristosfi
59291.108Schristosprintf "%s\n" "#define HAVE_DECL_PREAD $ac_have_decl" >>confdefs.h
59301.108Schristosac_fn_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
59311.86Schristos#include <unistd.h>
59321.86Schristos
59331.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
59341.108Schristosif test "x$ac_cv_have_decl_pwrite" = xyes
59351.108Schristosthen :
59361.86Schristos  ac_have_decl=1
59371.108Schristoselse case e in #(
59381.108Schristos  e) ac_have_decl=0 ;;
59391.108Schristosesac
59401.86Schristosfi
59411.108Schristosprintf "%s\n" "#define HAVE_DECL_PWRITE $ac_have_decl" >>confdefs.h
59421.86Schristos
59431.86Schristos
59441.108Schristosac_fn_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "
59451.86Schristos#include <unistd.h>
59461.86Schristos#include <string.h>
59471.86Schristos
59481.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
59491.108Schristosif test "x$ac_cv_have_decl_strmode" = xyes
59501.108Schristosthen :
59511.86Schristos  ac_have_decl=1
59521.108Schristoselse case e in #(
59531.108Schristos  e) ac_have_decl=0 ;;
59541.108Schristosesac
59551.86Schristosfi
59561.108Schristosprintf "%s\n" "#define HAVE_DECL_STRMODE $ac_have_decl" >>confdefs.h
59571.86Schristos
59581.86Schristos
59591.108Schristosac_fn_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "
59601.86Schristos#include <ctype.h>
59611.86Schristos
59621.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
59631.108Schristosif test "x$ac_cv_have_decl_isblank" = xyes
59641.108Schristosthen :
59651.86Schristos  ac_have_decl=1
59661.108Schristoselse case e in #(
59671.108Schristos  e) ac_have_decl=0 ;;
59681.108Schristosesac
59691.86Schristosfi
59701.108Schristosprintf "%s\n" "#define HAVE_DECL_ISBLANK $ac_have_decl" >>confdefs.h
59711.86Schristos
59721.86Schristos
59731.86Schristos
59741.108Schristosac_fn_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
59751.84Schristos#include <stdio.h>
59761.84Schristos#include <stdlib.h>
59771.84Schristos#include <unistd.h>
59781.84Schristos#ifdef HAVE_GETOPT_H
59791.84Schristos#include <getopt.h>
59801.84Schristos#endif
59811.84Schristos
59821.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
59831.108Schristosif test "x$ac_cv_have_decl_optind" = xyes
59841.108Schristosthen :
59851.84Schristos  ac_have_decl=1
59861.108Schristoselse case e in #(
59871.108Schristos  e) ac_have_decl=0 ;;
59881.108Schristosesac
59891.19Sbjh21fi
59901.108Schristosprintf "%s\n" "#define HAVE_DECL_OPTIND $ac_have_decl" >>confdefs.h
59911.108Schristosac_fn_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "
59921.84Schristos#include <stdio.h>
59931.84Schristos#include <stdlib.h>
59941.84Schristos#include <unistd.h>
59951.84Schristos#ifdef HAVE_GETOPT_H
59961.84Schristos#include <getopt.h>
59971.76Spooka#endif
59981.19Sbjh21
59991.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
60001.108Schristosif test "x$ac_cv_have_decl_optreset" = xyes
60011.108Schristosthen :
60021.84Schristos  ac_have_decl=1
60031.108Schristoselse case e in #(
60041.108Schristos  e) ac_have_decl=0 ;;
60051.108Schristosesac
60061.84Schristosfi
60071.108Schristosprintf "%s\n" "#define HAVE_DECL_OPTRESET $ac_have_decl" >>confdefs.h
60081.84Schristos
60091.108Schristosac_fn_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "#include <signal.h>
60101.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
60111.108Schristosif test "x$ac_cv_have_decl_sys_signame" = xyes
60121.108Schristosthen :
60131.84Schristos  ac_have_decl=1
60141.108Schristoselse case e in #(
60151.108Schristos  e) ac_have_decl=0 ;;
60161.108Schristosesac
60171.63Sapbfi
60181.108Schristosprintf "%s\n" "#define HAVE_DECL_SYS_SIGNAME $ac_have_decl" >>confdefs.h
60191.63Sapb
60201.61Schristos
60211.84Schristos# Library functions (where a .h check isn't enough).
60221.84Schristos# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
60231.84Schristos# for constant arguments.  Useless!
60241.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
60251.108Schristosprintf %s "checking for working alloca.h... " >&6; }
60261.108Schristosif test ${ac_cv_working_alloca_h+y}
60271.108Schristosthen :
60281.108Schristos  printf %s "(cached) " >&6
60291.108Schristoselse case e in #(
60301.108Schristos  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60311.84Schristos/* end confdefs.h.  */
60321.84Schristos#include <alloca.h>
60331.76Spookaint
60341.108Schristosmain (void)
60351.76Spooka{
60361.84Schristoschar *p = (char *) alloca (2 * sizeof (int));
60371.84Schristos			  if (p) return 0;
60381.76Spooka  ;
60391.76Spooka  return 0;
60401.76Spooka}
60411.19Sbjh21_ACEOF
60421.108Schristosif ac_fn_c_try_link "$LINENO"
60431.108Schristosthen :
60441.84Schristos  ac_cv_working_alloca_h=yes
60451.108Schristoselse case e in #(
60461.108Schristos  e) ac_cv_working_alloca_h=no ;;
60471.108Schristosesac
60481.76Spookafi
60491.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam \
60501.108Schristos    conftest$ac_exeext conftest.$ac_ext ;;
60511.108Schristosesac
60521.19Sbjh21fi
60531.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
60541.108Schristosprintf "%s\n" "$ac_cv_working_alloca_h" >&6; }
60551.84Schristosif test $ac_cv_working_alloca_h = yes; then
60561.63Sapb
60571.108Schristosprintf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
60581.63Sapb
60591.84Schristosfi
60601.19Sbjh21
60611.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
60621.108Schristosprintf %s "checking for alloca... " >&6; }
60631.108Schristosif test ${ac_cv_func_alloca_works+y}
60641.108Schristosthen :
60651.108Schristos  printf %s "(cached) " >&6
60661.108Schristoselse case e in #(
60671.108Schristos  e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
60681.108Schristosif test "$ac_cv_func_alloca_works" != yes
60691.108Schristosthen :
60701.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60711.84Schristos/* end confdefs.h.  */
60721.108Schristos#include <stdlib.h>
60731.108Schristos#include <stddef.h>
60741.108Schristos#ifndef alloca
60751.108Schristos# ifdef __GNUC__
60761.108Schristos#  define alloca __builtin_alloca
60771.108Schristos# elif defined _MSC_VER
60781.84Schristos#  include <malloc.h>
60791.84Schristos#  define alloca _alloca
60801.84Schristos# else
60811.108Schristos#  ifdef  __cplusplus
60821.108Schristosextern "C"
60831.108Schristos#  endif
60841.84Schristosvoid *alloca (size_t);
60851.84Schristos# endif
60861.84Schristos#endif
60871.76Spooka
60881.76Spookaint
60891.108Schristosmain (void)
60901.76Spooka{
60911.84Schristoschar *p = (char *) alloca (1);
60921.84Schristos				    if (p) return 0;
60931.76Spooka  ;
60941.76Spooka  return 0;
60951.76Spooka}
60961.74Schristos_ACEOF
60971.108Schristosif ac_fn_c_try_link "$LINENO"
60981.108Schristosthen :
60991.84Schristos  ac_cv_func_alloca_works=yes
61001.76Spookafi
61011.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam \
61021.84Schristos    conftest$ac_exeext conftest.$ac_ext
61031.108Schristosfi ;;
61041.108Schristosesac
61051.19Sbjh21fi
61061.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
61071.108Schristosprintf "%s\n" "$ac_cv_func_alloca_works" >&6; }
61081.19Sbjh21
61091.84Schristosif test $ac_cv_func_alloca_works = yes; then
61101.84Schristos
61111.108Schristosprintf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
61121.19Sbjh21
61131.76Spookaelse
61141.84Schristos  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
61151.84Schristos# that cause trouble.  Some versions do not even contain alloca or
61161.84Schristos# contain a buggy version.  If you still want to use their alloca,
61171.84Schristos# use ar to extract alloca.o from them instead of compiling alloca.c.
61181.84Schristos
61191.84SchristosALLOCA=\${LIBOBJDIR}alloca.$ac_objext
61201.84Schristos
61211.108Schristosprintf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
61221.19Sbjh21
61231.84Schristos
61241.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
61251.108Schristosprintf %s "checking stack direction for C alloca... " >&6; }
61261.108Schristosif test ${ac_cv_c_stack_direction+y}
61271.108Schristosthen :
61281.108Schristos  printf %s "(cached) " >&6
61291.108Schristoselse case e in #(
61301.108Schristos  e) if test "$cross_compiling" = yes
61311.108Schristosthen :
61321.84Schristos  ac_cv_c_stack_direction=0
61331.108Schristoselse case e in #(
61341.108Schristos  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61351.84Schristos/* end confdefs.h.  */
61361.84Schristos$ac_includes_default
61371.84Schristosint
61381.84Schristosfind_stack_direction (int *addr, int depth)
61391.84Schristos{
61401.84Schristos  int dir, dummy = 0;
61411.84Schristos  if (! addr)
61421.84Schristos    addr = &dummy;
61431.84Schristos  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
61441.84Schristos  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
61451.84Schristos  return dir + dummy;
61461.84Schristos}
61471.61Schristos
61481.76Spookaint
61491.84Schristosmain (int argc, char **argv)
61501.76Spooka{
61511.84Schristos  return find_stack_direction (0, argc + !argv + 20) < 0;
61521.76Spooka}
61531.76Spooka_ACEOF
61541.108Schristosif ac_fn_c_try_run "$LINENO"
61551.108Schristosthen :
61561.84Schristos  ac_cv_c_stack_direction=1
61571.108Schristoselse case e in #(
61581.108Schristos  e) ac_cv_c_stack_direction=-1 ;;
61591.108Schristosesac
61601.76Spookafi
61611.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
61621.108Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
61631.108Schristosesac
61641.108Schristosfi
61651.108Schristos ;;
61661.108Schristosesac
61671.108Schristosfi
61681.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
61691.108Schristosprintf "%s\n" "$ac_cv_c_stack_direction" >&6; }
61701.108Schristosprintf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
61711.108Schristos
61721.108Schristos
61731.108Schristosfi
61741.108Schristos
61751.108Schristosac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
61761.108Schristosif test "x$ac_cv_func_atoll" = xyes
61771.108Schristosthen :
61781.108Schristos  printf "%s\n" "#define HAVE_ATOLL 1" >>confdefs.h
61791.108Schristos
61801.108Schristosfi
61811.108Schristosac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
61821.108Schristosif test "x$ac_cv_func_asprintf" = xyes
61831.108Schristosthen :
61841.108Schristos  printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
61851.108Schristos
61861.108Schristosfi
61871.108Schristosac_fn_c_check_func "$LINENO" "asnprintf" "ac_cv_func_asnprintf"
61881.108Schristosif test "x$ac_cv_func_asnprintf" = xyes
61891.108Schristosthen :
61901.108Schristos  printf "%s\n" "#define HAVE_ASNPRINTF 1" >>confdefs.h
61911.108Schristos
61921.108Schristosfi
61931.108Schristosac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
61941.108Schristosif test "x$ac_cv_func_basename" = xyes
61951.108Schristosthen :
61961.108Schristos  printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
61971.108Schristos
61981.108Schristosfi
61991.108Schristosac_fn_c_check_func "$LINENO" "devname" "ac_cv_func_devname"
62001.108Schristosif test "x$ac_cv_func_devname" = xyes
62011.108Schristosthen :
62021.108Schristos  printf "%s\n" "#define HAVE_DEVNAME 1" >>confdefs.h
62031.108Schristos
62041.108Schristosfi
62051.108Schristosac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
62061.108Schristosif test "x$ac_cv_func_dirfd" = xyes
62071.108Schristosthen :
62081.108Schristos  printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
62091.108Schristos
62101.108Schristosfi
62111.108Schristosac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
62121.108Schristosif test "x$ac_cv_func_dirname" = xyes
62131.108Schristosthen :
62141.108Schristos  printf "%s\n" "#define HAVE_DIRNAME 1" >>confdefs.h
62151.108Schristos
62161.108Schristosfi
62171.108Schristosac_fn_c_check_func "$LINENO" "dispatch_semaphore_create" "ac_cv_func_dispatch_semaphore_create"
62181.108Schristosif test "x$ac_cv_func_dispatch_semaphore_create" = xyes
62191.108Schristosthen :
62201.108Schristos  printf "%s\n" "#define HAVE_DISPATCH_SEMAPHORE_CREATE 1" >>confdefs.h
62211.108Schristos
62221.108Schristosfi
62231.108Schristosac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
62241.108Schristosif test "x$ac_cv_func_dprintf" = xyes
62251.108Schristosthen :
62261.108Schristos  printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
62271.108Schristos
62281.108Schristosfi
62291.108Schristosac_fn_c_check_func "$LINENO" "esetfunc" "ac_cv_func_esetfunc"
62301.108Schristosif test "x$ac_cv_func_esetfunc" = xyes
62311.108Schristosthen :
62321.108Schristos  printf "%s\n" "#define HAVE_ESETFUNC 1" >>confdefs.h
62331.108Schristos
62341.108Schristosfi
62351.108Schristosac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
62361.108Schristosif test "x$ac_cv_func_fgetln" = xyes
62371.108Schristosthen :
62381.108Schristos  printf "%s\n" "#define HAVE_FGETLN 1" >>confdefs.h
62391.108Schristos
62401.108Schristosfi
62411.108Schristosac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
62421.108Schristosif test "x$ac_cv_func_flock" = xyes
62431.108Schristosthen :
62441.108Schristos  printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
62451.108Schristos
62461.108Schristosfi
62471.108Schristosac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
62481.108Schristosif test "x$ac_cv_func_fpurge" = xyes
62491.108Schristosthen :
62501.108Schristos  printf "%s\n" "#define HAVE_FPURGE 1" >>confdefs.h
62511.108Schristos
62521.108Schristosfi
62531.108Schristosac_fn_c_check_func "$LINENO" "__fpurge" "ac_cv_func___fpurge"
62541.108Schristosif test "x$ac_cv_func___fpurge" = xyes
62551.108Schristosthen :
62561.108Schristos  printf "%s\n" "#define HAVE___FPURGE 1" >>confdefs.h
62571.108Schristos
62581.108Schristosfi
62591.108Schristosac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
62601.108Schristosif test "x$ac_cv_func_futimes" = xyes
62611.108Schristosthen :
62621.108Schristos  printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
62631.108Schristos
62641.108Schristosfi
62651.108Schristosac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
62661.108Schristosif test "x$ac_cv_func_getline" = xyes
62671.108Schristosthen :
62681.108Schristos  printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
62691.108Schristos
62701.108Schristosfi
62711.108Schristosac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
62721.108Schristosif test "x$ac_cv_func_getopt" = xyes
62731.108Schristosthen :
62741.108Schristos  printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
62751.108Schristos
62761.108Schristosfi
62771.108Schristosac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
62781.108Schristosif test "x$ac_cv_func_getopt_long" = xyes
62791.108Schristosthen :
62801.108Schristos  printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
62811.108Schristos
62821.108Schristosfi
62831.108Schristosac_fn_c_check_func "$LINENO" "group_from_gid" "ac_cv_func_group_from_gid"
62841.108Schristosif test "x$ac_cv_func_group_from_gid" = xyes
62851.108Schristosthen :
62861.108Schristos  printf "%s\n" "#define HAVE_GROUP_FROM_GID 1" >>confdefs.h
62871.108Schristos
62881.108Schristosfi
62891.108Schristosac_fn_c_check_func "$LINENO" "gid_from_group" "ac_cv_func_gid_from_group"
62901.108Schristosif test "x$ac_cv_func_gid_from_group" = xyes
62911.108Schristosthen :
62921.108Schristos  printf "%s\n" "#define HAVE_GID_FROM_GROUP 1" >>confdefs.h
62931.108Schristos
62941.108Schristosfi
62951.108Schristosac_fn_c_check_func "$LINENO" "heapsort" "ac_cv_func_heapsort"
62961.108Schristosif test "x$ac_cv_func_heapsort" = xyes
62971.108Schristosthen :
62981.108Schristos  printf "%s\n" "#define HAVE_HEAPSORT 1" >>confdefs.h
62991.108Schristos
63001.108Schristosfi
63011.108Schristosac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
63021.108Schristosif test "x$ac_cv_func_isblank" = xyes
63031.108Schristosthen :
63041.108Schristos  printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
63051.108Schristos
63061.108Schristosfi
63071.108Schristosac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
63081.108Schristosif test "x$ac_cv_func_issetugid" = xyes
63091.108Schristosthen :
63101.108Schristos  printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
63111.108Schristos
63121.108Schristosfi
63131.108Schristosac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
63141.108Schristosif test "x$ac_cv_func_lchflags" = xyes
63151.108Schristosthen :
63161.108Schristos  printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
63171.108Schristos
63181.108Schristosfi
63191.108Schristosac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
63201.108Schristosif test "x$ac_cv_func_lchmod" = xyes
63211.108Schristosthen :
63221.108Schristos  printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
63231.108Schristos
63241.108Schristosfi
63251.108Schristosac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
63261.108Schristosif test "x$ac_cv_func_lchown" = xyes
63271.108Schristosthen :
63281.108Schristos  printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
63291.108Schristos
63301.108Schristosfi
63311.108Schristosac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
63321.108Schristosif test "x$ac_cv_func_lutimes" = xyes
63331.108Schristosthen :
63341.108Schristos  printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
63351.108Schristos
63361.108Schristosfi
63371.108Schristosac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
63381.108Schristosif test "x$ac_cv_func_mkstemp" = xyes
63391.108Schristosthen :
63401.108Schristos  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
63411.108Schristos
63421.108Schristosfi
63431.108Schristosac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
63441.108Schristosif test "x$ac_cv_func_mkstemps" = xyes
63451.108Schristosthen :
63461.108Schristos  printf "%s\n" "#define HAVE_MKSTEMPS 1" >>confdefs.h
63471.108Schristos
63481.108Schristosfi
63491.108Schristosac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
63501.108Schristosif test "x$ac_cv_func_mkdtemp" = xyes
63511.108Schristosthen :
63521.108Schristos  printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
63531.108Schristos
63541.108Schristosfi
63551.108Schristosac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
63561.108Schristosif test "x$ac_cv_func_poll" = xyes
63571.108Schristosthen :
63581.108Schristos  printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
63591.108Schristos
63601.108Schristosfi
63611.108Schristosac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
63621.108Schristosif test "x$ac_cv_func_posix_spawn" = xyes
63631.108Schristosthen :
63641.108Schristos  printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
63651.108Schristos
63661.108Schristosfi
63671.108Schristosac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
63681.108Schristosif test "x$ac_cv_func_pread" = xyes
63691.108Schristosthen :
63701.108Schristos  printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
63711.108Schristos
63721.108Schristosfi
63731.108Schristosac_fn_c_check_func "$LINENO" "putc_unlocked" "ac_cv_func_putc_unlocked"
63741.108Schristosif test "x$ac_cv_func_putc_unlocked" = xyes
63751.108Schristosthen :
63761.108Schristos  printf "%s\n" "#define HAVE_PUTC_UNLOCKED 1" >>confdefs.h
63771.108Schristos
63781.108Schristosfi
63791.108Schristosac_fn_c_check_func "$LINENO" "pwcache_userdb" "ac_cv_func_pwcache_userdb"
63801.108Schristosif test "x$ac_cv_func_pwcache_userdb" = xyes
63811.108Schristosthen :
63821.108Schristos  printf "%s\n" "#define HAVE_PWCACHE_USERDB 1" >>confdefs.h
63831.108Schristos
63841.108Schristosfi
63851.108Schristosac_fn_c_check_func "$LINENO" "pwcache_groupdb" "ac_cv_func_pwcache_groupdb"
63861.108Schristosif test "x$ac_cv_func_pwcache_groupdb" = xyes
63871.108Schristosthen :
63881.108Schristos  printf "%s\n" "#define HAVE_PWCACHE_GROUPDB 1" >>confdefs.h
63891.108Schristos
63901.108Schristosfi
63911.108Schristosac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
63921.108Schristosif test "x$ac_cv_func_pwrite" = xyes
63931.108Schristosthen :
63941.108Schristos  printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
63951.108Schristos
63961.108Schristosfi
63971.108Schristosac_fn_c_check_func "$LINENO" "raise_default_signal" "ac_cv_func_raise_default_signal"
63981.108Schristosif test "x$ac_cv_func_raise_default_signal" = xyes
63991.108Schristosthen :
64001.108Schristos  printf "%s\n" "#define HAVE_RAISE_DEFAULT_SIGNAL 1" >>confdefs.h
64011.108Schristos
64021.108Schristosfi
64031.108Schristosac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
64041.108Schristosif test "x$ac_cv_func_random" = xyes
64051.108Schristosthen :
64061.108Schristos  printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
64071.108Schristos
64081.108Schristosfi
64091.108Schristosac_fn_c_check_func "$LINENO" "reallocarr" "ac_cv_func_reallocarr"
64101.108Schristosif test "x$ac_cv_func_reallocarr" = xyes
64111.108Schristosthen :
64121.108Schristos  printf "%s\n" "#define HAVE_REALLOCARR 1" >>confdefs.h
64131.108Schristos
64141.108Schristosfi
64151.108Schristosac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
64161.108Schristosif test "x$ac_cv_func_reallocarray" = xyes
64171.108Schristosthen :
64181.108Schristos  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
64191.108Schristos
64201.108Schristosfi
64211.108Schristosac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
64221.108Schristosif test "x$ac_cv_func_setenv" = xyes
64231.108Schristosthen :
64241.108Schristos  printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
64251.108Schristos
64261.108Schristosfi
64271.108Schristosac_fn_c_check_func "$LINENO" "setgroupent" "ac_cv_func_setgroupent"
64281.108Schristosif test "x$ac_cv_func_setgroupent" = xyes
64291.108Schristosthen :
64301.108Schristos  printf "%s\n" "#define HAVE_SETGROUPENT 1" >>confdefs.h
64311.108Schristos
64321.108Schristosfi
64331.108Schristosac_fn_c_check_func "$LINENO" "setprogname" "ac_cv_func_setprogname"
64341.108Schristosif test "x$ac_cv_func_setprogname" = xyes
64351.108Schristosthen :
64361.108Schristos  printf "%s\n" "#define HAVE_SETPROGNAME 1" >>confdefs.h
64371.108Schristos
64381.108Schristosfi
64391.108Schristosac_fn_c_check_func "$LINENO" "setpassent" "ac_cv_func_setpassent"
64401.108Schristosif test "x$ac_cv_func_setpassent" = xyes
64411.108Schristosthen :
64421.108Schristos  printf "%s\n" "#define HAVE_SETPASSENT 1" >>confdefs.h
64431.108Schristos
64441.108Schristosfi
64451.108Schristosac_fn_c_check_func "$LINENO" "snprintb_m" "ac_cv_func_snprintb_m"
64461.108Schristosif test "x$ac_cv_func_snprintb_m" = xyes
64471.108Schristosthen :
64481.108Schristos  printf "%s\n" "#define HAVE_SNPRINTB_M 1" >>confdefs.h
64491.108Schristos
64501.63Sapbfi
64511.108Schristosac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
64521.108Schristosif test "x$ac_cv_func_snprintf" = xyes
64531.108Schristosthen :
64541.108Schristos  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
64551.61Schristos
64561.84Schristosfi
64571.108Schristosac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
64581.108Schristosif test "x$ac_cv_func_strlcat" = xyes
64591.108Schristosthen :
64601.108Schristos  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
64611.108Schristos
64621.108Schristosfi
64631.108Schristosac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
64641.108Schristosif test "x$ac_cv_func_strlcpy" = xyes
64651.108Schristosthen :
64661.108Schristos  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
64671.108Schristos
64681.108Schristosfi
64691.108Schristosac_fn_c_check_func "$LINENO" "strmode" "ac_cv_func_strmode"
64701.108Schristosif test "x$ac_cv_func_strmode" = xyes
64711.108Schristosthen :
64721.108Schristos  printf "%s\n" "#define HAVE_STRMODE 1" >>confdefs.h
64731.108Schristos
64741.108Schristosfi
64751.108Schristosac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
64761.108Schristosif test "x$ac_cv_func_strcasecmp" = xyes
64771.108Schristosthen :
64781.108Schristos  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
64791.108Schristos
64801.108Schristosfi
64811.108Schristosac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
64821.108Schristosif test "x$ac_cv_func_strncasecmp" = xyes
64831.108Schristosthen :
64841.108Schristos  printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
64851.108Schristos
64861.108Schristosfi
64871.108Schristosac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
64881.108Schristosif test "x$ac_cv_func_strcasestr" = xyes
64891.108Schristosthen :
64901.108Schristos  printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
64911.108Schristos
64921.108Schristosfi
64931.108Schristosac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
64941.108Schristosif test "x$ac_cv_func_strndup" = xyes
64951.108Schristosthen :
64961.108Schristos  printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
64971.108Schristos
64981.108Schristosfi
64991.108Schristosac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
65001.108Schristosif test "x$ac_cv_func_strnlen" = xyes
65011.108Schristosthen :
65021.108Schristos  printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
65031.108Schristos
65041.108Schristosfi
65051.108Schristosac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
65061.108Schristosif test "x$ac_cv_func_strsep" = xyes
65071.108Schristosthen :
65081.108Schristos  printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
65091.108Schristos
65101.108Schristosfi
65111.108Schristosac_fn_c_check_func "$LINENO" "strsuftoll" "ac_cv_func_strsuftoll"
65121.108Schristosif test "x$ac_cv_func_strsuftoll" = xyes
65131.108Schristosthen :
65141.108Schristos  printf "%s\n" "#define HAVE_STRSUFTOLL 1" >>confdefs.h
65151.108Schristos
65161.108Schristosfi
65171.108Schristosac_fn_c_check_func "$LINENO" "strtoi" "ac_cv_func_strtoi"
65181.108Schristosif test "x$ac_cv_func_strtoi" = xyes
65191.108Schristosthen :
65201.108Schristos  printf "%s\n" "#define HAVE_STRTOI 1" >>confdefs.h
65211.108Schristos
65221.108Schristosfi
65231.108Schristosac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
65241.108Schristosif test "x$ac_cv_func_strtoll" = xyes
65251.108Schristosthen :
65261.108Schristos  printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
65271.108Schristos
65281.108Schristosfi
65291.108Schristosac_fn_c_check_func "$LINENO" "strtou" "ac_cv_func_strtou"
65301.108Schristosif test "x$ac_cv_func_strtou" = xyes
65311.108Schristosthen :
65321.108Schristos  printf "%s\n" "#define HAVE_STRTOU 1" >>confdefs.h
65331.108Schristos
65341.108Schristosfi
65351.108Schristosac_fn_c_check_func "$LINENO" "strtonum" "ac_cv_func_strtonum"
65361.108Schristosif test "x$ac_cv_func_strtonum" = xyes
65371.108Schristosthen :
65381.108Schristos  printf "%s\n" "#define HAVE_STRTONUM 1" >>confdefs.h
65391.108Schristos
65401.108Schristosfi
65411.108Schristosac_fn_c_check_func "$LINENO" "user_from_uid" "ac_cv_func_user_from_uid"
65421.108Schristosif test "x$ac_cv_func_user_from_uid" = xyes
65431.108Schristosthen :
65441.108Schristos  printf "%s\n" "#define HAVE_USER_FROM_UID 1" >>confdefs.h
65451.108Schristos
65461.108Schristosfi
65471.108Schristosac_fn_c_check_func "$LINENO" "uid_from_user" "ac_cv_func_uid_from_user"
65481.108Schristosif test "x$ac_cv_func_uid_from_user" = xyes
65491.108Schristosthen :
65501.108Schristos  printf "%s\n" "#define HAVE_UID_FROM_USER 1" >>confdefs.h
65511.61Schristos
65521.108Schristosfi
65531.108Schristosac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
65541.108Schristosif test "x$ac_cv_func_vasprintf" = xyes
65551.108Schristosthen :
65561.108Schristos  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
65571.76Spooka
65581.63Sapbfi
65591.108Schristosac_fn_c_check_func "$LINENO" "vasnprintf" "ac_cv_func_vasnprintf"
65601.108Schristosif test "x$ac_cv_func_vasnprintf" = xyes
65611.108Schristosthen :
65621.108Schristos  printf "%s\n" "#define HAVE_VASNPRINTF 1" >>confdefs.h
65631.76Spooka
65641.108Schristosfi
65651.108Schristosac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
65661.108Schristosif test "x$ac_cv_func_vsnprintf" = xyes
65671.108Schristosthen :
65681.108Schristos  printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
65691.61Schristos
65701.76Spookafi
65711.84Schristos
65721.45Sjmc
65731.108Schristosac_fn_check_decl "$LINENO" "user_from_uid" "ac_cv_have_decl_user_from_uid" "
65741.84Schristos#include <pwd.h>
65751.45Sjmc
65761.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
65771.108Schristosif test "x$ac_cv_have_decl_user_from_uid" = xyes
65781.108Schristosthen :
65791.84Schristos  ac_have_decl=1
65801.108Schristoselse case e in #(
65811.108Schristos  e) ac_have_decl=0 ;;
65821.108Schristosesac
65831.76Spookafi
65841.108Schristosprintf "%s\n" "#define HAVE_DECL_USER_FROM_UID $ac_have_decl" >>confdefs.h
65851.108Schristosac_fn_check_decl "$LINENO" "uid_from_user" "ac_cv_have_decl_uid_from_user" "
65861.84Schristos#include <pwd.h>
65871.76Spooka
65881.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
65891.108Schristosif test "x$ac_cv_have_decl_uid_from_user" = xyes
65901.108Schristosthen :
65911.84Schristos  ac_have_decl=1
65921.108Schristoselse case e in #(
65931.108Schristos  e) ac_have_decl=0 ;;
65941.108Schristosesac
65951.55Swizfi
65961.108Schristosprintf "%s\n" "#define HAVE_DECL_UID_FROM_USER $ac_have_decl" >>confdefs.h
65971.108Schristosac_fn_check_decl "$LINENO" "pwcache_userdb" "ac_cv_have_decl_pwcache_userdb" "
65981.84Schristos#include <pwd.h>
65991.55Swiz
66001.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
66011.108Schristosif test "x$ac_cv_have_decl_pwcache_userdb" = xyes
66021.108Schristosthen :
66031.84Schristos  ac_have_decl=1
66041.108Schristoselse case e in #(
66051.108Schristos  e) ac_have_decl=0 ;;
66061.108Schristosesac
66071.55Swizfi
66081.108Schristosprintf "%s\n" "#define HAVE_DECL_PWCACHE_USERDB $ac_have_decl" >>confdefs.h
66091.55Swiz
66101.108Schristosac_fn_check_decl "$LINENO" "group_from_gid" "ac_cv_have_decl_group_from_gid" "
66111.84Schristos#include <grp.h>
66121.76Spooka
66131.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
66141.108Schristosif test "x$ac_cv_have_decl_group_from_gid" = xyes
66151.108Schristosthen :
66161.84Schristos  ac_have_decl=1
66171.108Schristoselse case e in #(
66181.108Schristos  e) ac_have_decl=0 ;;
66191.108Schristosesac
66201.48Sjmcfi
66211.108Schristosprintf "%s\n" "#define HAVE_DECL_GROUP_FROM_GID $ac_have_decl" >>confdefs.h
66221.108Schristosac_fn_check_decl "$LINENO" "gid_from_group" "ac_cv_have_decl_gid_from_group" "
66231.84Schristos#include <grp.h>
66241.53Sdogcow
66251.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
66261.108Schristosif test "x$ac_cv_have_decl_gid_from_group" = xyes
66271.108Schristosthen :
66281.84Schristos  ac_have_decl=1
66291.108Schristoselse case e in #(
66301.108Schristos  e) ac_have_decl=0 ;;
66311.108Schristosesac
66321.76Spookafi
66331.108Schristosprintf "%s\n" "#define HAVE_DECL_GID_FROM_GROUP $ac_have_decl" >>confdefs.h
66341.108Schristosac_fn_check_decl "$LINENO" "pwcache_groupdb" "ac_cv_have_decl_pwcache_groupdb" "
66351.84Schristos#include <grp.h>
66361.53Sdogcow
66371.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
66381.108Schristosif test "x$ac_cv_have_decl_pwcache_groupdb" = xyes
66391.108Schristosthen :
66401.84Schristos  ac_have_decl=1
66411.108Schristoselse case e in #(
66421.108Schristos  e) ac_have_decl=0 ;;
66431.108Schristosesac
66441.53Sdogcowfi
66451.108Schristosprintf "%s\n" "#define HAVE_DECL_PWCACHE_GROUPDB $ac_have_decl" >>confdefs.h
66461.61Schristos
66471.108Schristosac_fn_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "
66481.108Schristos#include <string.h>
66491.53Sdogcow
66501.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
66511.108Schristosif test "x$ac_cv_have_decl_strcasecmp" = xyes
66521.108Schristosthen :
66531.108Schristos  ac_have_decl=1
66541.108Schristoselse case e in #(
66551.108Schristos  e) ac_have_decl=0 ;;
66561.108Schristosesac
66571.108Schristosfi
66581.108Schristosprintf "%s\n" "#define HAVE_DECL_STRCASECMP $ac_have_decl" >>confdefs.h
66591.108Schristosac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "
66601.91Schristos#include <string.h>
66611.91Schristos
66621.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
66631.108Schristosif test "x$ac_cv_have_decl_strncasecmp" = xyes
66641.108Schristosthen :
66651.91Schristos  ac_have_decl=1
66661.108Schristoselse case e in #(
66671.108Schristos  e) ac_have_decl=0 ;;
66681.108Schristosesac
66691.91Schristosfi
66701.108Schristosprintf "%s\n" "#define HAVE_DECL_STRNCASECMP $ac_have_decl" >>confdefs.h
66711.108Schristosac_fn_check_decl "$LINENO" "strcasestr" "ac_cv_have_decl_strcasestr" "
66721.92Schristos#include <string.h>
66731.92Schristos
66741.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
66751.108Schristosif test "x$ac_cv_have_decl_strcasestr" = xyes
66761.108Schristosthen :
66771.92Schristos  ac_have_decl=1
66781.108Schristoselse case e in #(
66791.108Schristos  e) ac_have_decl=0 ;;
66801.108Schristosesac
66811.92Schristosfi
66821.108Schristosprintf "%s\n" "#define HAVE_DECL_STRCASESTR $ac_have_decl" >>confdefs.h
66831.108Schristosac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
66841.85Schristos#include <string.h>
66851.85Schristos
66861.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
66871.108Schristosif test "x$ac_cv_have_decl_strlcpy" = xyes
66881.108Schristosthen :
66891.85Schristos  ac_have_decl=1
66901.108Schristoselse case e in #(
66911.108Schristos  e) ac_have_decl=0 ;;
66921.108Schristosesac
66931.85Schristosfi
66941.108Schristosprintf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h
66951.108Schristosac_fn_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "
66961.85Schristos#include <string.h>
66971.85Schristos
66981.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
66991.108Schristosif test "x$ac_cv_have_decl_strlcat" = xyes
67001.108Schristosthen :
67011.85Schristos  ac_have_decl=1
67021.108Schristoselse case e in #(
67031.108Schristos  e) ac_have_decl=0 ;;
67041.108Schristosesac
67051.85Schristosfi
67061.108Schristosprintf "%s\n" "#define HAVE_DECL_STRLCAT $ac_have_decl" >>confdefs.h
67071.108Schristosac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "
67081.85Schristos#include <string.h>
67091.85Schristos
67101.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
67111.108Schristosif test "x$ac_cv_have_decl_strndup" = xyes
67121.108Schristosthen :
67131.84Schristos  ac_have_decl=1
67141.108Schristoselse case e in #(
67151.108Schristos  e) ac_have_decl=0 ;;
67161.108Schristosesac
67171.63Sapbfi
67181.108Schristosprintf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h
67191.108Schristosac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "
67201.85Schristos#include <string.h>
67211.85Schristos
67221.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
67231.108Schristosif test "x$ac_cv_have_decl_strnlen" = xyes
67241.108Schristosthen :
67251.84Schristos  ac_have_decl=1
67261.108Schristoselse case e in #(
67271.108Schristos  e) ac_have_decl=0 ;;
67281.108Schristosesac
67291.74Schristosfi
67301.108Schristosprintf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h
67311.108Schristosac_fn_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
67321.86Schristos#include <string.h>
67331.86Schristos
67341.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
67351.108Schristosif test "x$ac_cv_have_decl_strsep" = xyes
67361.108Schristosthen :
67371.86Schristos  ac_have_decl=1
67381.108Schristoselse case e in #(
67391.108Schristos  e) ac_have_decl=0 ;;
67401.108Schristosesac
67411.86Schristosfi
67421.108Schristosprintf "%s\n" "#define HAVE_DECL_STRSEP $ac_have_decl" >>confdefs.h
67431.86Schristos
67441.108Schristosac_fn_check_decl "$LINENO" "strsuftoll" "ac_cv_have_decl_strsuftoll" "#include <stdlib.h>
67451.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
67461.108Schristosif test "x$ac_cv_have_decl_strsuftoll" = xyes
67471.108Schristosthen :
67481.84Schristos  ac_have_decl=1
67491.108Schristoselse case e in #(
67501.108Schristos  e) ac_have_decl=0 ;;
67511.108Schristosesac
67521.84Schristosfi
67531.108Schristosprintf "%s\n" "#define HAVE_DECL_STRSUFTOLL $ac_have_decl" >>confdefs.h
67541.108Schristosac_fn_check_decl "$LINENO" "mi_vector_hash" "ac_cv_have_decl_mi_vector_hash" "#include <stdlib.h>
67551.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
67561.108Schristosif test "x$ac_cv_have_decl_mi_vector_hash" = xyes
67571.108Schristosthen :
67581.85Schristos  ac_have_decl=1
67591.108Schristoselse case e in #(
67601.108Schristos  e) ac_have_decl=0 ;;
67611.108Schristosesac
67621.85Schristosfi
67631.108Schristosprintf "%s\n" "#define HAVE_DECL_MI_VECTOR_HASH $ac_have_decl" >>confdefs.h
67641.85Schristos
67651.108Schristosac_fn_check_decl "$LINENO" "lchflags" "ac_cv_have_decl_lchflags" "
67661.84Schristos#include <sys/stat.h>
67671.84Schristos#include <unistd.h>
67681.61Schristos
67691.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
67701.108Schristosif test "x$ac_cv_have_decl_lchflags" = xyes
67711.108Schristosthen :
67721.84Schristos  ac_have_decl=1
67731.108Schristoselse case e in #(
67741.108Schristos  e) ac_have_decl=0 ;;
67751.108Schristosesac
67761.76Spookafi
67771.108Schristosprintf "%s\n" "#define HAVE_DECL_LCHFLAGS $ac_have_decl" >>confdefs.h
67781.108Schristosac_fn_check_decl "$LINENO" "lchmod" "ac_cv_have_decl_lchmod" "
67791.84Schristos#include <sys/stat.h>
67801.84Schristos#include <unistd.h>
67811.53Sdogcow
67821.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
67831.108Schristosif test "x$ac_cv_have_decl_lchmod" = xyes
67841.108Schristosthen :
67851.84Schristos  ac_have_decl=1
67861.108Schristoselse case e in #(
67871.108Schristos  e) ac_have_decl=0 ;;
67881.108Schristosesac
67891.53Sdogcowfi
67901.108Schristosprintf "%s\n" "#define HAVE_DECL_LCHMOD $ac_have_decl" >>confdefs.h
67911.108Schristosac_fn_check_decl "$LINENO" "lchown" "ac_cv_have_decl_lchown" "
67921.84Schristos#include <sys/stat.h>
67931.84Schristos#include <unistd.h>
67941.61Schristos
67951.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
67961.108Schristosif test "x$ac_cv_have_decl_lchown" = xyes
67971.108Schristosthen :
67981.84Schristos  ac_have_decl=1
67991.108Schristoselse case e in #(
68001.108Schristos  e) ac_have_decl=0 ;;
68011.108Schristosesac
68021.76Spookafi
68031.108Schristosprintf "%s\n" "#define HAVE_DECL_LCHOWN $ac_have_decl" >>confdefs.h
68041.84Schristos
68051.84Schristos
68061.108Schristosac_fn_check_decl "$LINENO" "err" "ac_cv_have_decl_err" "
68071.85Schristos#ifdef HAVE_ERR_H
68081.85Schristos#include <err.h>
68091.85Schristos#endif
68101.85Schristos
68111.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
68121.108Schristosif test "x$ac_cv_have_decl_err" = xyes
68131.108Schristosthen :
68141.85Schristos  ac_have_decl=1
68151.108Schristoselse case e in #(
68161.108Schristos  e) ac_have_decl=0 ;;
68171.108Schristosesac
68181.85Schristosfi
68191.108Schristosprintf "%s\n" "#define HAVE_DECL_ERR $ac_have_decl" >>confdefs.h
68201.108Schristosac_fn_check_decl "$LINENO" "errc" "ac_cv_have_decl_errc" "
68211.84Schristos#ifdef HAVE_ERR_H
68221.84Schristos#include <err.h>
68231.84Schristos#endif
68241.61Schristos
68251.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
68261.108Schristosif test "x$ac_cv_have_decl_errc" = xyes
68271.108Schristosthen :
68281.84Schristos  ac_have_decl=1
68291.108Schristoselse case e in #(
68301.108Schristos  e) ac_have_decl=0 ;;
68311.108Schristosesac
68321.76Spookafi
68331.108Schristosprintf "%s\n" "#define HAVE_DECL_ERRC $ac_have_decl" >>confdefs.h
68341.108Schristosac_fn_check_decl "$LINENO" "errx" "ac_cv_have_decl_errx" "
68351.85Schristos#ifdef HAVE_ERR_H
68361.85Schristos#include <err.h>
68371.85Schristos#endif
68381.85Schristos
68391.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
68401.108Schristosif test "x$ac_cv_have_decl_errx" = xyes
68411.108Schristosthen :
68421.85Schristos  ac_have_decl=1
68431.108Schristoselse case e in #(
68441.108Schristos  e) ac_have_decl=0 ;;
68451.108Schristosesac
68461.85Schristosfi
68471.108Schristosprintf "%s\n" "#define HAVE_DECL_ERRX $ac_have_decl" >>confdefs.h
68481.108Schristosac_fn_check_decl "$LINENO" "verrc" "ac_cv_have_decl_verrc" "
68491.84Schristos#ifdef HAVE_ERR_H
68501.84Schristos#include <err.h>
68511.76Spooka#endif
68521.53Sdogcow
68531.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
68541.108Schristosif test "x$ac_cv_have_decl_verrc" = xyes
68551.108Schristosthen :
68561.84Schristos  ac_have_decl=1
68571.108Schristoselse case e in #(
68581.108Schristos  e) ac_have_decl=0 ;;
68591.108Schristosesac
68601.53Sdogcowfi
68611.108Schristosprintf "%s\n" "#define HAVE_DECL_VERRC $ac_have_decl" >>confdefs.h
68621.108Schristosac_fn_check_decl "$LINENO" "verrx" "ac_cv_have_decl_verrx" "
68631.85Schristos#ifdef HAVE_ERR_H
68641.85Schristos#include <err.h>
68651.85Schristos#endif
68661.85Schristos
68671.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
68681.108Schristosif test "x$ac_cv_have_decl_verrx" = xyes
68691.108Schristosthen :
68701.85Schristos  ac_have_decl=1
68711.108Schristoselse case e in #(
68721.108Schristos  e) ac_have_decl=0 ;;
68731.108Schristosesac
68741.85Schristosfi
68751.108Schristosprintf "%s\n" "#define HAVE_DECL_VERRX $ac_have_decl" >>confdefs.h
68761.108Schristosac_fn_check_decl "$LINENO" "warn" "ac_cv_have_decl_warn" "
68771.85Schristos#ifdef HAVE_ERR_H
68781.85Schristos#include <err.h>
68791.85Schristos#endif
68801.85Schristos
68811.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
68821.108Schristosif test "x$ac_cv_have_decl_warn" = xyes
68831.108Schristosthen :
68841.85Schristos  ac_have_decl=1
68851.108Schristoselse case e in #(
68861.108Schristos  e) ac_have_decl=0 ;;
68871.108Schristosesac
68881.85Schristosfi
68891.108Schristosprintf "%s\n" "#define HAVE_DECL_WARN $ac_have_decl" >>confdefs.h
68901.108Schristosac_fn_check_decl "$LINENO" "warnc" "ac_cv_have_decl_warnc" "
68911.84Schristos#ifdef HAVE_ERR_H
68921.84Schristos#include <err.h>
68931.84Schristos#endif
68941.53Sdogcow
68951.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
68961.108Schristosif test "x$ac_cv_have_decl_warnc" = xyes
68971.108Schristosthen :
68981.84Schristos  ac_have_decl=1
68991.108Schristoselse case e in #(
69001.108Schristos  e) ac_have_decl=0 ;;
69011.108Schristosesac
69021.53Sdogcowfi
69031.108Schristosprintf "%s\n" "#define HAVE_DECL_WARNC $ac_have_decl" >>confdefs.h
69041.108Schristosac_fn_check_decl "$LINENO" "warnx" "ac_cv_have_decl_warnx" "
69051.85Schristos#ifdef HAVE_ERR_H
69061.85Schristos#include <err.h>
69071.85Schristos#endif
69081.85Schristos
69091.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
69101.108Schristosif test "x$ac_cv_have_decl_warnx" = xyes
69111.108Schristosthen :
69121.85Schristos  ac_have_decl=1
69131.108Schristoselse case e in #(
69141.108Schristos  e) ac_have_decl=0 ;;
69151.108Schristosesac
69161.85Schristosfi
69171.108Schristosprintf "%s\n" "#define HAVE_DECL_WARNX $ac_have_decl" >>confdefs.h
69181.108Schristosac_fn_check_decl "$LINENO" "vwarnc" "ac_cv_have_decl_vwarnc" "
69191.84Schristos#ifdef HAVE_ERR_H
69201.84Schristos#include <err.h>
69211.76Spooka#endif
69221.53Sdogcow
69231.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
69241.108Schristosif test "x$ac_cv_have_decl_vwarnc" = xyes
69251.108Schristosthen :
69261.84Schristos  ac_have_decl=1
69271.108Schristoselse case e in #(
69281.108Schristos  e) ac_have_decl=0 ;;
69291.108Schristosesac
69301.76Spookafi
69311.108Schristosprintf "%s\n" "#define HAVE_DECL_VWARNC $ac_have_decl" >>confdefs.h
69321.108Schristosac_fn_check_decl "$LINENO" "vwarnx" "ac_cv_have_decl_vwarnx" "
69331.85Schristos#ifdef HAVE_ERR_H
69341.85Schristos#include <err.h>
69351.85Schristos#endif
69361.85Schristos
69371.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
69381.108Schristosif test "x$ac_cv_have_decl_vwarnx" = xyes
69391.108Schristosthen :
69401.85Schristos  ac_have_decl=1
69411.108Schristoselse case e in #(
69421.108Schristos  e) ac_have_decl=0 ;;
69431.108Schristosesac
69441.85Schristosfi
69451.108Schristosprintf "%s\n" "#define HAVE_DECL_VWARNX $ac_have_decl" >>confdefs.h
69461.84Schristos
69471.53Sdogcow
69481.108Schristosac_fn_check_decl "$LINENO" "htobe16" "ac_cv_have_decl_htobe16" "#include <sys/types.h>
69491.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
69501.108Schristosif test "x$ac_cv_have_decl_htobe16" = xyes
69511.108Schristosthen :
69521.84Schristos  ac_have_decl=1
69531.108Schristoselse case e in #(
69541.108Schristos  e) ac_have_decl=0 ;;
69551.108Schristosesac
69561.84Schristosfi
69571.108Schristosprintf "%s\n" "#define HAVE_DECL_HTOBE16 $ac_have_decl" >>confdefs.h
69581.108Schristosac_fn_check_decl "$LINENO" "htobe32" "ac_cv_have_decl_htobe32" "#include <sys/types.h>
69591.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
69601.108Schristosif test "x$ac_cv_have_decl_htobe32" = xyes
69611.108Schristosthen :
69621.84Schristos  ac_have_decl=1
69631.108Schristoselse case e in #(
69641.108Schristos  e) ac_have_decl=0 ;;
69651.108Schristosesac
69661.74Schristosfi
69671.108Schristosprintf "%s\n" "#define HAVE_DECL_HTOBE32 $ac_have_decl" >>confdefs.h
69681.108Schristosac_fn_check_decl "$LINENO" "htobe64" "ac_cv_have_decl_htobe64" "#include <sys/types.h>
69691.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
69701.108Schristosif test "x$ac_cv_have_decl_htobe64" = xyes
69711.108Schristosthen :
69721.84Schristos  ac_have_decl=1
69731.108Schristoselse case e in #(
69741.108Schristos  e) ac_have_decl=0 ;;
69751.108Schristosesac
69761.84Schristosfi
69771.108Schristosprintf "%s\n" "#define HAVE_DECL_HTOBE64 $ac_have_decl" >>confdefs.h
69781.108Schristosac_fn_check_decl "$LINENO" "htole16" "ac_cv_have_decl_htole16" "#include <sys/types.h>
69791.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
69801.108Schristosif test "x$ac_cv_have_decl_htole16" = xyes
69811.108Schristosthen :
69821.84Schristos  ac_have_decl=1
69831.108Schristoselse case e in #(
69841.108Schristos  e) ac_have_decl=0 ;;
69851.108Schristosesac
69861.84Schristosfi
69871.108Schristosprintf "%s\n" "#define HAVE_DECL_HTOLE16 $ac_have_decl" >>confdefs.h
69881.108Schristosac_fn_check_decl "$LINENO" "htole32" "ac_cv_have_decl_htole32" "#include <sys/types.h>
69891.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
69901.108Schristosif test "x$ac_cv_have_decl_htole32" = xyes
69911.108Schristosthen :
69921.84Schristos  ac_have_decl=1
69931.108Schristoselse case e in #(
69941.108Schristos  e) ac_have_decl=0 ;;
69951.108Schristosesac
69961.76Spookafi
69971.108Schristosprintf "%s\n" "#define HAVE_DECL_HTOLE32 $ac_have_decl" >>confdefs.h
69981.108Schristosac_fn_check_decl "$LINENO" "htole64" "ac_cv_have_decl_htole64" "#include <sys/types.h>
69991.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
70001.108Schristosif test "x$ac_cv_have_decl_htole64" = xyes
70011.108Schristosthen :
70021.84Schristos  ac_have_decl=1
70031.108Schristoselse case e in #(
70041.108Schristos  e) ac_have_decl=0 ;;
70051.108Schristosesac
70061.53Sdogcowfi
70071.108Schristosprintf "%s\n" "#define HAVE_DECL_HTOLE64 $ac_have_decl" >>confdefs.h
70081.108Schristosac_fn_check_decl "$LINENO" "be16toh" "ac_cv_have_decl_be16toh" "#include <sys/types.h>
70091.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
70101.108Schristosif test "x$ac_cv_have_decl_be16toh" = xyes
70111.108Schristosthen :
70121.84Schristos  ac_have_decl=1
70131.108Schristoselse case e in #(
70141.108Schristos  e) ac_have_decl=0 ;;
70151.108Schristosesac
70161.84Schristosfi
70171.108Schristosprintf "%s\n" "#define HAVE_DECL_BE16TOH $ac_have_decl" >>confdefs.h
70181.108Schristosac_fn_check_decl "$LINENO" "be32toh" "ac_cv_have_decl_be32toh" "#include <sys/types.h>
70191.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
70201.108Schristosif test "x$ac_cv_have_decl_be32toh" = xyes
70211.108Schristosthen :
70221.84Schristos  ac_have_decl=1
70231.108Schristoselse case e in #(
70241.108Schristos  e) ac_have_decl=0 ;;
70251.108Schristosesac
70261.84Schristosfi
70271.108Schristosprintf "%s\n" "#define HAVE_DECL_BE32TOH $ac_have_decl" >>confdefs.h
70281.108Schristosac_fn_check_decl "$LINENO" "be64toh" "ac_cv_have_decl_be64toh" "#include <sys/types.h>
70291.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
70301.108Schristosif test "x$ac_cv_have_decl_be64toh" = xyes
70311.108Schristosthen :
70321.84Schristos  ac_have_decl=1
70331.108Schristoselse case e in #(
70341.108Schristos  e) ac_have_decl=0 ;;
70351.108Schristosesac
70361.53Sdogcowfi
70371.108Schristosprintf "%s\n" "#define HAVE_DECL_BE64TOH $ac_have_decl" >>confdefs.h
70381.108Schristosac_fn_check_decl "$LINENO" "le16toh" "ac_cv_have_decl_le16toh" "#include <sys/types.h>
70391.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
70401.108Schristosif test "x$ac_cv_have_decl_le16toh" = xyes
70411.108Schristosthen :
70421.84Schristos  ac_have_decl=1
70431.108Schristoselse case e in #(
70441.108Schristos  e) ac_have_decl=0 ;;
70451.108Schristosesac
70461.84Schristosfi
70471.108Schristosprintf "%s\n" "#define HAVE_DECL_LE16TOH $ac_have_decl" >>confdefs.h
70481.108Schristosac_fn_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <sys/types.h>
70491.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
70501.108Schristosif test "x$ac_cv_have_decl_le32toh" = xyes
70511.108Schristosthen :
70521.84Schristos  ac_have_decl=1
70531.108Schristoselse case e in #(
70541.108Schristos  e) ac_have_decl=0 ;;
70551.108Schristosesac
70561.84Schristosfi
70571.108Schristosprintf "%s\n" "#define HAVE_DECL_LE32TOH $ac_have_decl" >>confdefs.h
70581.108Schristosac_fn_check_decl "$LINENO" "le64toh" "ac_cv_have_decl_le64toh" "#include <sys/types.h>
70591.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
70601.108Schristosif test "x$ac_cv_have_decl_le64toh" = xyes
70611.108Schristosthen :
70621.84Schristos  ac_have_decl=1
70631.108Schristoselse case e in #(
70641.108Schristos  e) ac_have_decl=0 ;;
70651.108Schristosesac
70661.53Sdogcowfi
70671.108Schristosprintf "%s\n" "#define HAVE_DECL_LE64TOH $ac_have_decl" >>confdefs.h
70681.84Schristos
70691.53Sdogcow
70701.108Schristosac_fn_check_decl "$LINENO" "bswap16" "ac_cv_have_decl_bswap16" "#include <machine/bswap.h>
70711.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
70721.108Schristosif test "x$ac_cv_have_decl_bswap16" = xyes
70731.108Schristosthen :
70741.84Schristos  ac_have_decl=1
70751.108Schristoselse case e in #(
70761.108Schristos  e) ac_have_decl=0 ;;
70771.108Schristosesac
70781.84Schristosfi
70791.108Schristosprintf "%s\n" "#define HAVE_DECL_BSWAP16 $ac_have_decl" >>confdefs.h
70801.108Schristosac_fn_check_decl "$LINENO" "bswap32" "ac_cv_have_decl_bswap32" "#include <machine/bswap.h>
70811.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
70821.108Schristosif test "x$ac_cv_have_decl_bswap32" = xyes
70831.108Schristosthen :
70841.84Schristos  ac_have_decl=1
70851.108Schristoselse case e in #(
70861.108Schristos  e) ac_have_decl=0 ;;
70871.108Schristosesac
70881.74Schristosfi
70891.108Schristosprintf "%s\n" "#define HAVE_DECL_BSWAP32 $ac_have_decl" >>confdefs.h
70901.108Schristosac_fn_check_decl "$LINENO" "bswap64" "ac_cv_have_decl_bswap64" "#include <machine/bswap.h>
70911.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
70921.108Schristosif test "x$ac_cv_have_decl_bswap64" = xyes
70931.108Schristosthen :
70941.84Schristos  ac_have_decl=1
70951.108Schristoselse case e in #(
70961.108Schristos  e) ac_have_decl=0 ;;
70971.108Schristosesac
70981.74Schristosfi
70991.108Schristosprintf "%s\n" "#define HAVE_DECL_BSWAP64 $ac_have_decl" >>confdefs.h
71001.84Schristos
71011.61Schristos
71021.108Schristosac_fn_check_decl "$LINENO" "be16enc" "ac_cv_have_decl_be16enc" "#include <sys/endian.h>
71031.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
71041.108Schristosif test "x$ac_cv_have_decl_be16enc" = xyes
71051.108Schristosthen :
71061.84Schristos  ac_have_decl=1
71071.108Schristoselse case e in #(
71081.108Schristos  e) ac_have_decl=0 ;;
71091.108Schristosesac
71101.84Schristosfi
71111.108Schristosprintf "%s\n" "#define HAVE_DECL_BE16ENC $ac_have_decl" >>confdefs.h
71121.108Schristosac_fn_check_decl "$LINENO" "le16enc" "ac_cv_have_decl_le16enc" "#include <sys/endian.h>
71131.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
71141.108Schristosif test "x$ac_cv_have_decl_le16enc" = xyes
71151.108Schristosthen :
71161.84Schristos  ac_have_decl=1
71171.108Schristoselse case e in #(
71181.108Schristos  e) ac_have_decl=0 ;;
71191.108Schristosesac
71201.74Schristosfi
71211.108Schristosprintf "%s\n" "#define HAVE_DECL_LE16ENC $ac_have_decl" >>confdefs.h
71221.108Schristosac_fn_check_decl "$LINENO" "be16dec" "ac_cv_have_decl_be16dec" "#include <sys/endian.h>
71231.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
71241.108Schristosif test "x$ac_cv_have_decl_be16dec" = xyes
71251.108Schristosthen :
71261.84Schristos  ac_have_decl=1
71271.108Schristoselse case e in #(
71281.108Schristos  e) ac_have_decl=0 ;;
71291.108Schristosesac
71301.84Schristosfi
71311.108Schristosprintf "%s\n" "#define HAVE_DECL_BE16DEC $ac_have_decl" >>confdefs.h
71321.108Schristosac_fn_check_decl "$LINENO" "le16dec" "ac_cv_have_decl_le16dec" "#include <sys/endian.h>
71331.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
71341.108Schristosif test "x$ac_cv_have_decl_le16dec" = xyes
71351.108Schristosthen :
71361.84Schristos  ac_have_decl=1
71371.108Schristoselse case e in #(
71381.108Schristos  e) ac_have_decl=0 ;;
71391.108Schristosesac
71401.84Schristosfi
71411.108Schristosprintf "%s\n" "#define HAVE_DECL_LE16DEC $ac_have_decl" >>confdefs.h
71421.108Schristosac_fn_check_decl "$LINENO" "be32enc" "ac_cv_have_decl_be32enc" "#include <sys/endian.h>
71431.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
71441.108Schristosif test "x$ac_cv_have_decl_be32enc" = xyes
71451.108Schristosthen :
71461.84Schristos  ac_have_decl=1
71471.108Schristoselse case e in #(
71481.108Schristos  e) ac_have_decl=0 ;;
71491.108Schristosesac
71501.74Schristosfi
71511.108Schristosprintf "%s\n" "#define HAVE_DECL_BE32ENC $ac_have_decl" >>confdefs.h
71521.108Schristosac_fn_check_decl "$LINENO" "le32enc" "ac_cv_have_decl_le32enc" "#include <sys/endian.h>
71531.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
71541.108Schristosif test "x$ac_cv_have_decl_le32enc" = xyes
71551.108Schristosthen :
71561.84Schristos  ac_have_decl=1
71571.108Schristoselse case e in #(
71581.108Schristos  e) ac_have_decl=0 ;;
71591.108Schristosesac
71601.54Swizfi
71611.108Schristosprintf "%s\n" "#define HAVE_DECL_LE32ENC $ac_have_decl" >>confdefs.h
71621.108Schristosac_fn_check_decl "$LINENO" "be32dec" "ac_cv_have_decl_be32dec" "#include <sys/endian.h>
71631.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
71641.108Schristosif test "x$ac_cv_have_decl_be32dec" = xyes
71651.108Schristosthen :
71661.84Schristos  ac_have_decl=1
71671.108Schristoselse case e in #(
71681.108Schristos  e) ac_have_decl=0 ;;
71691.108Schristosesac
71701.84Schristosfi
71711.108Schristosprintf "%s\n" "#define HAVE_DECL_BE32DEC $ac_have_decl" >>confdefs.h
71721.108Schristosac_fn_check_decl "$LINENO" "le32dec" "ac_cv_have_decl_le32dec" "#include <sys/endian.h>
71731.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
71741.108Schristosif test "x$ac_cv_have_decl_le32dec" = xyes
71751.108Schristosthen :
71761.84Schristos  ac_have_decl=1
71771.108Schristoselse case e in #(
71781.108Schristos  e) ac_have_decl=0 ;;
71791.108Schristosesac
71801.76Spookafi
71811.108Schristosprintf "%s\n" "#define HAVE_DECL_LE32DEC $ac_have_decl" >>confdefs.h
71821.108Schristosac_fn_check_decl "$LINENO" "be64enc" "ac_cv_have_decl_be64enc" "#include <sys/endian.h>
71831.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
71841.108Schristosif test "x$ac_cv_have_decl_be64enc" = xyes
71851.108Schristosthen :
71861.84Schristos  ac_have_decl=1
71871.108Schristoselse case e in #(
71881.108Schristos  e) ac_have_decl=0 ;;
71891.108Schristosesac
71901.54Swizfi
71911.108Schristosprintf "%s\n" "#define HAVE_DECL_BE64ENC $ac_have_decl" >>confdefs.h
71921.108Schristosac_fn_check_decl "$LINENO" "le64enc" "ac_cv_have_decl_le64enc" "#include <sys/endian.h>
71931.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
71941.108Schristosif test "x$ac_cv_have_decl_le64enc" = xyes
71951.108Schristosthen :
71961.84Schristos  ac_have_decl=1
71971.108Schristoselse case e in #(
71981.108Schristos  e) ac_have_decl=0 ;;
71991.108Schristosesac
72001.74Schristosfi
72011.108Schristosprintf "%s\n" "#define HAVE_DECL_LE64ENC $ac_have_decl" >>confdefs.h
72021.108Schristosac_fn_check_decl "$LINENO" "be64dec" "ac_cv_have_decl_be64dec" "#include <sys/endian.h>
72031.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
72041.108Schristosif test "x$ac_cv_have_decl_be64dec" = xyes
72051.108Schristosthen :
72061.84Schristos  ac_have_decl=1
72071.108Schristoselse case e in #(
72081.108Schristos  e) ac_have_decl=0 ;;
72091.108Schristosesac
72101.84Schristosfi
72111.108Schristosprintf "%s\n" "#define HAVE_DECL_BE64DEC $ac_have_decl" >>confdefs.h
72121.108Schristosac_fn_check_decl "$LINENO" "le64dec" "ac_cv_have_decl_le64dec" "#include <sys/endian.h>
72131.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
72141.108Schristosif test "x$ac_cv_have_decl_le64dec" = xyes
72151.108Schristosthen :
72161.84Schristos  ac_have_decl=1
72171.108Schristoselse case e in #(
72181.108Schristos  e) ac_have_decl=0 ;;
72191.108Schristosesac
72201.74Schristosfi
72211.108Schristosprintf "%s\n" "#define HAVE_DECL_LE64DEC $ac_have_decl" >>confdefs.h
72221.84Schristos
72231.74Schristos
72241.108Schristosac_fn_check_decl "$LINENO" "fstatvfs" "ac_cv_have_decl_fstatvfs" "#include <sys/statvfs.h>
72251.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
72261.108Schristosif test "x$ac_cv_have_decl_fstatvfs" = xyes
72271.108Schristosthen :
72281.84Schristos  ac_have_decl=1
72291.108Schristoselse case e in #(
72301.108Schristos  e) ac_have_decl=0 ;;
72311.108Schristosesac
72321.84Schristosfi
72331.108Schristosprintf "%s\n" "#define HAVE_DECL_FSTATVFS $ac_have_decl" >>confdefs.h
72341.54Swiz
72351.54Swiz
72361.108Schristosac_fn_check_decl "$LINENO" "setgroupent" "ac_cv_have_decl_setgroupent" "
72371.76Spooka#include <sys/types.h>
72381.76Spooka#include <grp.h>
72391.76Spooka#include <pwd.h>
72401.45Sjmc
72411.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
72421.108Schristosif test "x$ac_cv_have_decl_setgroupent" = xyes
72431.108Schristosthen :
72441.84Schristos  ac_have_decl=1
72451.108Schristoselse case e in #(
72461.108Schristos  e) ac_have_decl=0 ;;
72471.108Schristosesac
72481.1Stvfi
72491.108Schristosprintf "%s\n" "#define HAVE_DECL_SETGROUPENT $ac_have_decl" >>confdefs.h
72501.108Schristosac_fn_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" "
72511.33Sthorpej#include <sys/types.h>
72521.8Stv#include <grp.h>
72531.8Stv#include <pwd.h>
72541.8Stv
72551.108Schristos" "$ac_c_undeclared_builtin_options" "CFLAGS"
72561.108Schristosif test "x$ac_cv_have_decl_setpassent" = xyes
72571.108Schristosthen :
72581.84Schristos  ac_have_decl=1
72591.108Schristoselse case e in #(
72601.108Schristos  e) ac_have_decl=0 ;;
72611.108Schristosesac
72621.8Stvfi
72631.108Schristosprintf "%s\n" "#define HAVE_DECL_SETPASSENT $ac_have_decl" >>confdefs.h
72641.76Spooka
72651.8Stv
72661.4Stv# regcomp() and regexec() are also names of functions in the old V8
72671.4Stv# regexp package.  To avoid them, we need to find out who has regfree().
72681.4Stv
72691.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regfree in -lregex" >&5
72701.108Schristosprintf %s "checking for regfree in -lregex... " >&6; }
72711.108Schristosif test ${ac_cv_lib_regex_regfree+y}
72721.108Schristosthen :
72731.108Schristos  printf %s "(cached) " >&6
72741.108Schristoselse case e in #(
72751.108Schristos  e) ac_check_lib_save_LIBS=$LIBS
72761.4StvLIBS="-lregex  $LIBS"
72771.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
72781.84Schristos/* end confdefs.h.  */
72791.4Stv
72801.84Schristos/* Override any GCC internal prototype to avoid an error.
72811.84Schristos   Use char because int might match the return type of a GCC
72821.108Schristos   builtin and then its argument prototype would still apply.
72831.108Schristos   The 'extern "C"' is for builds by C++ compilers;
72841.108Schristos   although this is not generally supported in C code supporting it here
72851.108Schristos   has little cost and some practical benefit (sr 110532).  */
72861.4Stv#ifdef __cplusplus
72871.4Stvextern "C"
72881.4Stv#endif
72891.108Schristoschar regfree (void);
72901.4Stvint
72911.108Schristosmain (void)
72921.4Stv{
72931.84Schristosreturn regfree ();
72941.4Stv  ;
72951.4Stv  return 0;
72961.4Stv}
72971.4Stv_ACEOF
72981.108Schristosif ac_fn_c_try_link "$LINENO"
72991.108Schristosthen :
73001.4Stv  ac_cv_lib_regex_regfree=yes
73011.108Schristoselse case e in #(
73021.108Schristos  e) ac_cv_lib_regex_regfree=no ;;
73031.108Schristosesac
73041.4Stvfi
73051.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam \
73061.84Schristos    conftest$ac_exeext conftest.$ac_ext
73071.108SchristosLIBS=$ac_check_lib_save_LIBS ;;
73081.108Schristosesac
73091.4Stvfi
73101.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regfree" >&5
73111.108Schristosprintf "%s\n" "$ac_cv_lib_regex_regfree" >&6; }
73121.108Schristosif test "x$ac_cv_lib_regex_regfree" = xyes
73131.108Schristosthen :
73141.108Schristos  printf "%s\n" "#define HAVE_LIBREGEX 1" >>confdefs.h
73151.4Stv
73161.4Stv  LIBS="-lregex $LIBS"
73171.4Stv
73181.4Stvfi
73191.4Stv
73201.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
73211.108Schristosprintf %s "checking for library containing regfree... " >&6; }
73221.108Schristosif test ${ac_cv_search_regfree+y}
73231.108Schristosthen :
73241.108Schristos  printf %s "(cached) " >&6
73251.108Schristoselse case e in #(
73261.108Schristos  e) ac_func_search_save_LIBS=$LIBS
73271.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
73281.84Schristos/* end confdefs.h.  */
73291.1Stv
73301.84Schristos/* Override any GCC internal prototype to avoid an error.
73311.84Schristos   Use char because int might match the return type of a GCC
73321.108Schristos   builtin and then its argument prototype would still apply.
73331.108Schristos   The 'extern "C"' is for builds by C++ compilers;
73341.108Schristos   although this is not generally supported in C code supporting it here
73351.108Schristos   has little cost and some practical benefit (sr 110532).  */
73361.1Stv#ifdef __cplusplus
73371.1Stvextern "C"
73381.1Stv#endif
73391.108Schristoschar regfree (void);
73401.1Stvint
73411.108Schristosmain (void)
73421.1Stv{
73431.84Schristosreturn regfree ();
73441.1Stv  ;
73451.1Stv  return 0;
73461.1Stv}
73471.1Stv_ACEOF
73481.108Schristosfor ac_lib in '' rx posix
73491.108Schristosdo
73501.84Schristos  if test -z "$ac_lib"; then
73511.84Schristos    ac_res="none required"
73521.84Schristos  else
73531.84Schristos    ac_res=-l$ac_lib
73541.66Stsutsui    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
73551.84Schristos  fi
73561.108Schristos  if ac_fn_c_try_link "$LINENO"
73571.108Schristosthen :
73581.84Schristos  ac_cv_search_regfree=$ac_res
73591.84Schristosfi
73601.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam \
73611.84Schristos    conftest$ac_exeext
73621.108Schristos  if test ${ac_cv_search_regfree+y}
73631.108Schristosthen :
73641.84Schristos  break
73651.84Schristosfi
73661.84Schristosdone
73671.108Schristosif test ${ac_cv_search_regfree+y}
73681.108Schristosthen :
73691.1Stv
73701.108Schristoselse case e in #(
73711.108Schristos  e) ac_cv_search_regfree=no ;;
73721.108Schristosesac
73731.1Stvfi
73741.84Schristosrm conftest.$ac_ext
73751.108SchristosLIBS=$ac_func_search_save_LIBS ;;
73761.108Schristosesac
73771.1Stvfi
73781.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
73791.108Schristosprintf "%s\n" "$ac_cv_search_regfree" >&6; }
73801.84Schristosac_res=$ac_cv_search_regfree
73811.108Schristosif test "$ac_res" != no
73821.108Schristosthen :
73831.84Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
73841.1Stv
73851.1Stvfi
73861.1Stv
73871.84Schristos
73881.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
73891.108Schristosprintf %s "checking for clock_gettime in -lrt... " >&6; }
73901.108Schristosif test ${ac_cv_lib_rt_clock_gettime+y}
73911.108Schristosthen :
73921.108Schristos  printf %s "(cached) " >&6
73931.108Schristoselse case e in #(
73941.108Schristos  e) ac_check_lib_save_LIBS=$LIBS
73951.78SjmcneillLIBS="-lrt  $LIBS"
73961.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
73971.84Schristos/* end confdefs.h.  */
73981.78Sjmcneill
73991.84Schristos/* Override any GCC internal prototype to avoid an error.
74001.84Schristos   Use char because int might match the return type of a GCC
74011.108Schristos   builtin and then its argument prototype would still apply.
74021.108Schristos   The 'extern "C"' is for builds by C++ compilers;
74031.108Schristos   although this is not generally supported in C code supporting it here
74041.108Schristos   has little cost and some practical benefit (sr 110532).  */
74051.78Sjmcneill#ifdef __cplusplus
74061.78Sjmcneillextern "C"
74071.78Sjmcneill#endif
74081.108Schristoschar clock_gettime (void);
74091.78Sjmcneillint
74101.108Schristosmain (void)
74111.78Sjmcneill{
74121.84Schristosreturn clock_gettime ();
74131.78Sjmcneill  ;
74141.78Sjmcneill  return 0;
74151.78Sjmcneill}
74161.78Sjmcneill_ACEOF
74171.108Schristosif ac_fn_c_try_link "$LINENO"
74181.108Schristosthen :
74191.78Sjmcneill  ac_cv_lib_rt_clock_gettime=yes
74201.108Schristoselse case e in #(
74211.108Schristos  e) ac_cv_lib_rt_clock_gettime=no ;;
74221.108Schristosesac
74231.78Sjmcneillfi
74241.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam \
74251.84Schristos    conftest$ac_exeext conftest.$ac_ext
74261.108SchristosLIBS=$ac_check_lib_save_LIBS ;;
74271.108Schristosesac
74281.78Sjmcneillfi
74291.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
74301.108Schristosprintf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
74311.108Schristosif test "x$ac_cv_lib_rt_clock_gettime" = xyes
74321.108Schristosthen :
74331.108Schristos  printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
74341.78Sjmcneill
74351.78Sjmcneill  LIBS="-lrt $LIBS"
74361.78Sjmcneill
74371.78Sjmcneillfi
74381.78Sjmcneill
74391.84Schristos
74401.108Schristos
74411.108Schristos  for ac_func in fparseln
74421.84Schristosdo :
74431.84Schristos  ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln"
74441.108Schristosif test "x$ac_cv_func_fparseln" = xyes
74451.108Schristosthen :
74461.108Schristos  printf "%s\n" "#define HAVE_FPARSELN 1" >>confdefs.h
74471.108Schristos
74481.108Schristos    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fparseln seems to work" >&5
74491.108Schristosprintf %s "checking if fparseln seems to work... " >&6; }
74501.108Schristos    if test "$cross_compiling" = yes
74511.108Schristosthen :
74521.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking farseln" >&5
74531.108Schristosprintf "%s\n" "$as_me: WARNING: cross compiling: not checking farseln" >&2;}
74541.84Schristos
74551.108Schristoselse case e in #(
74561.108Schristos  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74571.84Schristos/* end confdefs.h.  */
74581.68Stnozaki
74591.68Stnozaki#define _NETBSD_SOURCE
74601.68Stnozaki#include <stdio.h>
74611.68Stnozaki#include <stdlib.h>
74621.68Stnozaki#define CONFTEST	"conftest.fparseln"
74631.68Stnozaki#define COMMENT		'#'
74641.68Stnozakiint
74651.68Stnozakimain(void)
74661.68Stnozaki{
74671.68Stnozaki	static const char delim[3] = { '\0', '\0', COMMENT };
74681.68Stnozaki	FILE *fp;
74691.68Stnozaki	char *ptr;
74701.68Stnozaki	fp = fopen(CONFTEST, "w+");
74711.68Stnozaki	if (fp != NULL) {
74721.68Stnozaki		unlink(CONFTEST);
74731.68Stnozaki		ungetc(COMMENT, fp);
74741.68Stnozaki		ptr = fparseln(fp, NULL, NULL, delim,
74751.68Stnozaki		    FPARSELN_UNESCALL);
74761.68Stnozaki		fclose(fp);
74771.68Stnozaki		if (ptr == NULL)
74781.68Stnozaki			exit(0);
74791.68Stnozaki	}
74801.68Stnozaki	exit(1);
74811.68Stnozaki}
74821.68Stnozaki
74831.68Stnozaki_ACEOF
74841.108Schristosif ac_fn_c_try_run "$LINENO"
74851.108Schristosthen :
74861.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74871.108Schristosprintf "%s\n" "yes" >&6; }
74881.108Schristoselse case e in #(
74891.108Schristos  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
74901.108Schristosprintf "%s\n" "no" >&6; }
74911.68Stnozaki
74921.108Schristosprintf "%s\n" "#define BROKEN_FPARSELN 1" >>confdefs.h
74931.108Schristos ;;
74941.108Schristosesac
74951.68Stnozakifi
74961.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
74971.108Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
74981.108Schristosesac
74991.68Stnozakifi
75001.68Stnozaki
75011.84Schristos
75021.68Stnozakifi
75031.108Schristos
75041.68Stnozakidone
75051.68Stnozaki
75061.84Schristos
75071.104Slukemnb_cv_check_cc_flags=
75081.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
75091.108Schristosprintf %s "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
75101.108Schristosif test ${ax_cv_check_cflags___Werror_unknown_warning_option+y}
75111.108Schristosthen :
75121.108Schristos  printf %s "(cached) " >&6
75131.108Schristoselse case e in #(
75141.108Schristos  e)
75151.102Slukem  ax_check_save_flags=$CFLAGS
75161.102Slukem  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
75171.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75181.102Slukem/* end confdefs.h.  */
75191.102Slukem
75201.102Slukemint
75211.108Schristosmain (void)
75221.102Slukem{
75231.102Slukem
75241.102Slukem  ;
75251.102Slukem  return 0;
75261.102Slukem}
75271.102Slukem_ACEOF
75281.108Schristosif ac_fn_c_try_compile "$LINENO"
75291.108Schristosthen :
75301.102Slukem  ax_cv_check_cflags___Werror_unknown_warning_option=yes
75311.108Schristoselse case e in #(
75321.108Schristos  e) ax_cv_check_cflags___Werror_unknown_warning_option=no ;;
75331.108Schristosesac
75341.102Slukemfi
75351.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
75361.108Schristos  CFLAGS=$ax_check_save_flags ;;
75371.108Schristosesac
75381.102Slukemfi
75391.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
75401.108Schristosprintf "%s\n" "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
75411.108Schristosif test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes
75421.108Schristosthen :
75431.104Slukem  nb_cv_check_cc_flags=-Werror=unknown-warning-option
75441.108Schristoselse case e in #(
75451.108Schristos  e) : ;;
75461.108Schristosesac
75471.102Slukemfi
75481.102Slukem
75491.102Slukem
75501.108Schristosas_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-no-cpp-precomp" | sed "$as_sed_sh"`
75511.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-cpp-precomp" >&5
75521.108Schristosprintf %s "checking whether C compiler accepts -no-cpp-precomp... " >&6; }
75531.108Schristosif eval test \${$as_CACHEVAR+y}
75541.108Schristosthen :
75551.108Schristos  printf %s "(cached) " >&6
75561.108Schristoselse case e in #(
75571.108Schristos  e)
75581.102Slukem  ax_check_save_flags=$CFLAGS
75591.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -no-cpp-precomp"
75601.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75611.102Slukem/* end confdefs.h.  */
75621.102Slukem
75631.102Slukemint
75641.108Schristosmain (void)
75651.102Slukem{
75661.102Slukem
75671.102Slukem  ;
75681.102Slukem  return 0;
75691.102Slukem}
75701.102Slukem_ACEOF
75711.108Schristosif ac_fn_c_try_compile "$LINENO"
75721.108Schristosthen :
75731.102Slukem  eval "$as_CACHEVAR=yes"
75741.108Schristoselse case e in #(
75751.108Schristos  e) eval "$as_CACHEVAR=no" ;;
75761.108Schristosesac
75771.102Slukemfi
75781.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
75791.108Schristos  CFLAGS=$ax_check_save_flags ;;
75801.108Schristosesac
75811.102Slukemfi
75821.102Slukemeval ac_res=\$$as_CACHEVAR
75831.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
75841.108Schristosprintf "%s\n" "$ac_res" >&6; }
75851.108Schristosif eval test \"x\$"$as_CACHEVAR"\" = x"yes"
75861.108Schristosthen :
75871.102Slukem  CC_NO_CPP_PRECOMP=-no-cpp-precomp
75881.108Schristoselse case e in #(
75891.108Schristos  e) : ;;
75901.108Schristosesac
75911.102Slukemfi
75921.102Slukem
75931.102Slukem
75941.102Slukem
75951.102Slukem
75961.108Schristosas_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Waddress-of-packed-member" | sed "$as_sed_sh"`
75971.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress-of-packed-member" >&5
75981.108Schristosprintf %s "checking whether C compiler accepts -Waddress-of-packed-member... " >&6; }
75991.108Schristosif eval test \${$as_CACHEVAR+y}
76001.108Schristosthen :
76011.108Schristos  printf %s "(cached) " >&6
76021.108Schristoselse case e in #(
76031.108Schristos  e)
76041.103Slukem  ax_check_save_flags=$CFLAGS
76051.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Waddress-of-packed-member"
76061.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76071.103Slukem/* end confdefs.h.  */
76081.103Slukem
76091.103Slukemint
76101.108Schristosmain (void)
76111.103Slukem{
76121.103Slukem
76131.103Slukem  ;
76141.103Slukem  return 0;
76151.103Slukem}
76161.103Slukem_ACEOF
76171.108Schristosif ac_fn_c_try_compile "$LINENO"
76181.108Schristosthen :
76191.103Slukem  eval "$as_CACHEVAR=yes"
76201.108Schristoselse case e in #(
76211.108Schristos  e) eval "$as_CACHEVAR=no" ;;
76221.108Schristosesac
76231.103Slukemfi
76241.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
76251.108Schristos  CFLAGS=$ax_check_save_flags ;;
76261.108Schristosesac
76271.103Slukemfi
76281.103Slukemeval ac_res=\$$as_CACHEVAR
76291.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
76301.108Schristosprintf "%s\n" "$ac_res" >&6; }
76311.108Schristosif eval test \"x\$"$as_CACHEVAR"\" = x"yes"
76321.108Schristosthen :
76331.103Slukem  CC_WNO_ADDRESS_OF_PACKED_MEMBER=-Wno-address-of-packed-member
76341.108Schristoselse case e in #(
76351.108Schristos  e) : ;;
76361.108Schristosesac
76371.103Slukemfi
76381.103Slukem
76391.103Slukem
76401.103Slukem
76411.108Schristosas_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wcast-function-type" | sed "$as_sed_sh"`
76421.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-function-type" >&5
76431.108Schristosprintf %s "checking whether C compiler accepts -Wcast-function-type... " >&6; }
76441.108Schristosif eval test \${$as_CACHEVAR+y}
76451.108Schristosthen :
76461.108Schristos  printf %s "(cached) " >&6
76471.108Schristoselse case e in #(
76481.108Schristos  e)
76491.103Slukem  ax_check_save_flags=$CFLAGS
76501.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wcast-function-type"
76511.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76521.103Slukem/* end confdefs.h.  */
76531.103Slukem
76541.103Slukemint
76551.108Schristosmain (void)
76561.103Slukem{
76571.103Slukem
76581.103Slukem  ;
76591.103Slukem  return 0;
76601.103Slukem}
76611.103Slukem_ACEOF
76621.108Schristosif ac_fn_c_try_compile "$LINENO"
76631.108Schristosthen :
76641.103Slukem  eval "$as_CACHEVAR=yes"
76651.108Schristoselse case e in #(
76661.108Schristos  e) eval "$as_CACHEVAR=no" ;;
76671.108Schristosesac
76681.103Slukemfi
76691.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
76701.108Schristos  CFLAGS=$ax_check_save_flags ;;
76711.108Schristosesac
76721.103Slukemfi
76731.103Slukemeval ac_res=\$$as_CACHEVAR
76741.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
76751.108Schristosprintf "%s\n" "$ac_res" >&6; }
76761.108Schristosif eval test \"x\$"$as_CACHEVAR"\" = x"yes"
76771.108Schristosthen :
76781.103Slukem  CC_WNO_CAST_FUNCTION_TYPE=-Wno-cast-function-type
76791.108Schristoselse case e in #(
76801.108Schristos  e) : ;;
76811.108Schristosesac
76821.103Slukemfi
76831.103Slukem
76841.103Slukem
76851.103Slukem
76861.108Schristosas_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Werror=address-of-packed-member" | sed "$as_sed_sh"`
76871.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=address-of-packed-member" >&5
76881.108Schristosprintf %s "checking whether C compiler accepts -Werror=address-of-packed-member... " >&6; }
76891.108Schristosif eval test \${$as_CACHEVAR+y}
76901.108Schristosthen :
76911.108Schristos  printf %s "(cached) " >&6
76921.108Schristoselse case e in #(
76931.108Schristos  e)
76941.103Slukem  ax_check_save_flags=$CFLAGS
76951.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Werror=address-of-packed-member"
76961.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76971.103Slukem/* end confdefs.h.  */
76981.103Slukem
76991.103Slukemint
77001.108Schristosmain (void)
77011.103Slukem{
77021.103Slukem
77031.103Slukem  ;
77041.103Slukem  return 0;
77051.103Slukem}
77061.103Slukem_ACEOF
77071.108Schristosif ac_fn_c_try_compile "$LINENO"
77081.108Schristosthen :
77091.103Slukem  eval "$as_CACHEVAR=yes"
77101.108Schristoselse case e in #(
77111.108Schristos  e) eval "$as_CACHEVAR=no" ;;
77121.108Schristosesac
77131.103Slukemfi
77141.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
77151.108Schristos  CFLAGS=$ax_check_save_flags ;;
77161.108Schristosesac
77171.103Slukemfi
77181.103Slukemeval ac_res=\$$as_CACHEVAR
77191.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
77201.108Schristosprintf "%s\n" "$ac_res" >&6; }
77211.108Schristosif eval test \"x\$"$as_CACHEVAR"\" = x"yes"
77221.108Schristosthen :
77231.103Slukem  CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER=-Wno-error=address-of-packed-member
77241.108Schristoselse case e in #(
77251.108Schristos  e) : ;;
77261.108Schristosesac
77271.103Slukemfi
77281.103Slukem
77291.103Slukem
77301.103Slukem
77311.108Schristosas_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wformat-overflow" | sed "$as_sed_sh"`
77321.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-overflow" >&5
77331.108Schristosprintf %s "checking whether C compiler accepts -Wformat-overflow... " >&6; }
77341.108Schristosif eval test \${$as_CACHEVAR+y}
77351.108Schristosthen :
77361.108Schristos  printf %s "(cached) " >&6
77371.108Schristoselse case e in #(
77381.108Schristos  e)
77391.103Slukem  ax_check_save_flags=$CFLAGS
77401.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wformat-overflow"
77411.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77421.103Slukem/* end confdefs.h.  */
77431.103Slukem
77441.103Slukemint
77451.108Schristosmain (void)
77461.103Slukem{
77471.103Slukem
77481.103Slukem  ;
77491.103Slukem  return 0;
77501.103Slukem}
77511.103Slukem_ACEOF
77521.108Schristosif ac_fn_c_try_compile "$LINENO"
77531.108Schristosthen :
77541.103Slukem  eval "$as_CACHEVAR=yes"
77551.108Schristoselse case e in #(
77561.108Schristos  e) eval "$as_CACHEVAR=no" ;;
77571.108Schristosesac
77581.103Slukemfi
77591.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
77601.108Schristos  CFLAGS=$ax_check_save_flags ;;
77611.108Schristosesac
77621.103Slukemfi
77631.103Slukemeval ac_res=\$$as_CACHEVAR
77641.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
77651.108Schristosprintf "%s\n" "$ac_res" >&6; }
77661.108Schristosif eval test \"x\$"$as_CACHEVAR"\" = x"yes"
77671.108Schristosthen :
77681.103Slukem  CC_WNO_FORMAT_OVERFLOW=-Wno-format-overflow
77691.108Schristoselse case e in #(
77701.108Schristos  e) : ;;
77711.108Schristosesac
77721.103Slukemfi
77731.103Slukem
77741.103Slukem
77751.103Slukem
77761.108Schristosas_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wformat-truncation" | sed "$as_sed_sh"`
77771.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5
77781.108Schristosprintf %s "checking whether C compiler accepts -Wformat-truncation... " >&6; }
77791.108Schristosif eval test \${$as_CACHEVAR+y}
77801.108Schristosthen :
77811.108Schristos  printf %s "(cached) " >&6
77821.108Schristoselse case e in #(
77831.108Schristos  e)
77841.102Slukem  ax_check_save_flags=$CFLAGS
77851.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wformat-truncation"
77861.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77871.102Slukem/* end confdefs.h.  */
77881.102Slukem
77891.102Slukemint
77901.108Schristosmain (void)
77911.102Slukem{
77921.102Slukem
77931.102Slukem  ;
77941.102Slukem  return 0;
77951.102Slukem}
77961.102Slukem_ACEOF
77971.108Schristosif ac_fn_c_try_compile "$LINENO"
77981.108Schristosthen :
77991.102Slukem  eval "$as_CACHEVAR=yes"
78001.108Schristoselse case e in #(
78011.108Schristos  e) eval "$as_CACHEVAR=no" ;;
78021.108Schristosesac
78031.102Slukemfi
78041.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
78051.108Schristos  CFLAGS=$ax_check_save_flags ;;
78061.108Schristosesac
78071.102Slukemfi
78081.102Slukemeval ac_res=\$$as_CACHEVAR
78091.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
78101.108Schristosprintf "%s\n" "$ac_res" >&6; }
78111.108Schristosif eval test \"x\$"$as_CACHEVAR"\" = x"yes"
78121.108Schristosthen :
78131.102Slukem  CC_WNO_FORMAT_TRUNCATION=-Wno-format-truncation
78141.108Schristoselse case e in #(
78151.108Schristos  e) : ;;
78161.108Schristosesac
78171.102Slukemfi
78181.102Slukem
78191.102Slukem
78201.102Slukem
78211.108Schristosas_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wimplicit-fallthrough" | sed "$as_sed_sh"`
78221.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wimplicit-fallthrough" >&5
78231.108Schristosprintf %s "checking whether C compiler accepts -Wimplicit-fallthrough... " >&6; }
78241.108Schristosif eval test \${$as_CACHEVAR+y}
78251.108Schristosthen :
78261.108Schristos  printf %s "(cached) " >&6
78271.108Schristoselse case e in #(
78281.108Schristos  e)
78291.103Slukem  ax_check_save_flags=$CFLAGS
78301.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wimplicit-fallthrough"
78311.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78321.103Slukem/* end confdefs.h.  */
78331.103Slukem
78341.103Slukemint
78351.108Schristosmain (void)
78361.103Slukem{
78371.103Slukem
78381.103Slukem  ;
78391.103Slukem  return 0;
78401.103Slukem}
78411.103Slukem_ACEOF
78421.108Schristosif ac_fn_c_try_compile "$LINENO"
78431.108Schristosthen :
78441.103Slukem  eval "$as_CACHEVAR=yes"
78451.108Schristoselse case e in #(
78461.108Schristos  e) eval "$as_CACHEVAR=no" ;;
78471.108Schristosesac
78481.103Slukemfi
78491.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
78501.108Schristos  CFLAGS=$ax_check_save_flags ;;
78511.108Schristosesac
78521.103Slukemfi
78531.103Slukemeval ac_res=\$$as_CACHEVAR
78541.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
78551.108Schristosprintf "%s\n" "$ac_res" >&6; }
78561.108Schristosif eval test \"x\$"$as_CACHEVAR"\" = x"yes"
78571.108Schristosthen :
78581.103Slukem  CC_WNO_IMPLICIT_FALLTHROUGH=-Wno-implicit-fallthrough
78591.108Schristoselse case e in #(
78601.108Schristos  e) : ;;
78611.108Schristosesac
78621.103Slukemfi
78631.103Slukem
78641.103Slukem
78651.103Slukem
78661.108Schristosas_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wmaybe-uninitialized" | sed "$as_sed_sh"`
78671.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmaybe-uninitialized" >&5
78681.108Schristosprintf %s "checking whether C compiler accepts -Wmaybe-uninitialized... " >&6; }
78691.108Schristosif eval test \${$as_CACHEVAR+y}
78701.108Schristosthen :
78711.108Schristos  printf %s "(cached) " >&6
78721.108Schristoselse case e in #(
78731.108Schristos  e)
78741.102Slukem  ax_check_save_flags=$CFLAGS
78751.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wmaybe-uninitialized"
78761.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78771.102Slukem/* end confdefs.h.  */
78781.102Slukem
78791.102Slukemint
78801.108Schristosmain (void)
78811.102Slukem{
78821.102Slukem
78831.102Slukem  ;
78841.102Slukem  return 0;
78851.102Slukem}
78861.102Slukem_ACEOF
78871.108Schristosif ac_fn_c_try_compile "$LINENO"
78881.108Schristosthen :
78891.102Slukem  eval "$as_CACHEVAR=yes"
78901.108Schristoselse case e in #(
78911.108Schristos  e) eval "$as_CACHEVAR=no" ;;
78921.108Schristosesac
78931.102Slukemfi
78941.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
78951.108Schristos  CFLAGS=$ax_check_save_flags ;;
78961.108Schristosesac
78971.102Slukemfi
78981.102Slukemeval ac_res=\$$as_CACHEVAR
78991.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
79001.108Schristosprintf "%s\n" "$ac_res" >&6; }
79011.108Schristosif eval test \"x\$"$as_CACHEVAR"\" = x"yes"
79021.108Schristosthen :
79031.102Slukem  CC_WNO_MAYBE_UNINITIALIZED=-Wno-maybe-uninitialized
79041.108Schristoselse case e in #(
79051.108Schristos  e) : ;;
79061.108Schristosesac
79071.102Slukemfi
79081.102Slukem
79091.102Slukem
79101.102Slukem
79111.108Schristosas_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wreturn-local-addr" | sed "$as_sed_sh"`
79121.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wreturn-local-addr" >&5
79131.108Schristosprintf %s "checking whether C compiler accepts -Wreturn-local-addr... " >&6; }
79141.108Schristosif eval test \${$as_CACHEVAR+y}
79151.108Schristosthen :
79161.108Schristos  printf %s "(cached) " >&6
79171.108Schristoselse case e in #(
79181.108Schristos  e)
79191.103Slukem  ax_check_save_flags=$CFLAGS
79201.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wreturn-local-addr"
79211.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79221.103Slukem/* end confdefs.h.  */
79231.103Slukem
79241.103Slukemint
79251.108Schristosmain (void)
79261.103Slukem{
79271.103Slukem
79281.103Slukem  ;
79291.103Slukem  return 0;
79301.103Slukem}
79311.103Slukem_ACEOF
79321.108Schristosif ac_fn_c_try_compile "$LINENO"
79331.108Schristosthen :
79341.103Slukem  eval "$as_CACHEVAR=yes"
79351.108Schristoselse case e in #(
79361.108Schristos  e) eval "$as_CACHEVAR=no" ;;
79371.108Schristosesac
79381.103Slukemfi
79391.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
79401.108Schristos  CFLAGS=$ax_check_save_flags ;;
79411.108Schristosesac
79421.103Slukemfi
79431.103Slukemeval ac_res=\$$as_CACHEVAR
79441.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
79451.108Schristosprintf "%s\n" "$ac_res" >&6; }
79461.108Schristosif eval test \"x\$"$as_CACHEVAR"\" = x"yes"
79471.108Schristosthen :
79481.103Slukem  CC_WNO_RETURN_LOCAL_ADDR=-Wno-return-local-addr
79491.108Schristoselse case e in #(
79501.108Schristos  e) : ;;
79511.108Schristosesac
79521.103Slukemfi
79531.103Slukem
79541.103Slukem
79551.103Slukem
79561.108Schristosas_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wstringop-overflow" | sed "$as_sed_sh"`
79571.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overflow" >&5
79581.108Schristosprintf %s "checking whether C compiler accepts -Wstringop-overflow... " >&6; }
79591.108Schristosif eval test \${$as_CACHEVAR+y}
79601.108Schristosthen :
79611.108Schristos  printf %s "(cached) " >&6
79621.108Schristoselse case e in #(
79631.108Schristos  e)
79641.102Slukem  ax_check_save_flags=$CFLAGS
79651.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wstringop-overflow"
79661.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79671.102Slukem/* end confdefs.h.  */
79681.102Slukem
79691.102Slukemint
79701.108Schristosmain (void)
79711.102Slukem{
79721.102Slukem
79731.102Slukem  ;
79741.102Slukem  return 0;
79751.102Slukem}
79761.102Slukem_ACEOF
79771.108Schristosif ac_fn_c_try_compile "$LINENO"
79781.108Schristosthen :
79791.102Slukem  eval "$as_CACHEVAR=yes"
79801.108Schristoselse case e in #(
79811.108Schristos  e) eval "$as_CACHEVAR=no" ;;
79821.108Schristosesac
79831.102Slukemfi
79841.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
79851.108Schristos  CFLAGS=$ax_check_save_flags ;;
79861.108Schristosesac
79871.102Slukemfi
79881.102Slukemeval ac_res=\$$as_CACHEVAR
79891.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
79901.108Schristosprintf "%s\n" "$ac_res" >&6; }
79911.108Schristosif eval test \"x\$"$as_CACHEVAR"\" = x"yes"
79921.108Schristosthen :
79931.102Slukem  CC_WNO_STRINGOP_OVERFLOW=-Wno-stringop-overflow
79941.108Schristoselse case e in #(
79951.108Schristos  e) : ;;
79961.108Schristosesac
79971.102Slukemfi
79981.102Slukem
79991.102Slukem
80001.102Slukem
80011.108Schristosas_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wstringop-truncation" | sed "$as_sed_sh"`
80021.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-truncation" >&5
80031.108Schristosprintf %s "checking whether C compiler accepts -Wstringop-truncation... " >&6; }
80041.108Schristosif eval test \${$as_CACHEVAR+y}
80051.108Schristosthen :
80061.108Schristos  printf %s "(cached) " >&6
80071.108Schristoselse case e in #(
80081.108Schristos  e)
80091.102Slukem  ax_check_save_flags=$CFLAGS
80101.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wstringop-truncation"
80111.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80121.102Slukem/* end confdefs.h.  */
80131.102Slukem
80141.102Slukemint
80151.108Schristosmain (void)
80161.102Slukem{
80171.102Slukem
80181.102Slukem  ;
80191.102Slukem  return 0;
80201.102Slukem}
80211.102Slukem_ACEOF
80221.108Schristosif ac_fn_c_try_compile "$LINENO"
80231.108Schristosthen :
80241.102Slukem  eval "$as_CACHEVAR=yes"
80251.108Schristoselse case e in #(
80261.108Schristos  e) eval "$as_CACHEVAR=no" ;;
80271.108Schristosesac
80281.102Slukemfi
80291.108Schristosrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
80301.108Schristos  CFLAGS=$ax_check_save_flags ;;
80311.108Schristosesac
80321.102Slukemfi
80331.102Slukemeval ac_res=\$$as_CACHEVAR
80341.108Schristos	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
80351.108Schristosprintf "%s\n" "$ac_res" >&6; }
80361.108Schristosif eval test \"x\$"$as_CACHEVAR"\" = x"yes"
80371.108Schristosthen :
80381.102Slukem  CC_WNO_STRINGOP_TRUNCATION=-Wno-stringop-truncation
80391.108Schristoselse case e in #(
80401.108Schristos  e) : ;;
80411.108Schristosesac
80421.102Slukemfi
80431.102Slukem
80441.102Slukem
80451.102Slukem
80461.102Slukem
80471.1Stvcat >confcache <<\_ACEOF
80481.1Stv# This file is a shell script that caches the results of configure
80491.1Stv# tests run on this system so they can be shared between configure
80501.1Stv# scripts and configure runs, see configure's option --config-cache.
80511.1Stv# It is not useful on other systems.  If it contains results you don't
80521.1Stv# want to keep, you may remove or edit it.
80531.1Stv#
80541.1Stv# config.status only pays attention to the cache file if you give it
80551.1Stv# the --recheck option to rerun configure.
80561.1Stv#
80571.108Schristos# 'ac_cv_env_foo' variables (set or unset) will be overridden when
80581.108Schristos# loading this file, other *unset* 'ac_cv_foo' will be assigned the
80591.1Stv# following values.
80601.1Stv
80611.1Stv_ACEOF
80621.1Stv
80631.1Stv# The following way of writing the cache mishandles newlines in values,
80641.1Stv# but we know of no workaround that is simple, portable, and efficient.
80651.84Schristos# So, we kill variables containing newlines.
80661.84Schristos# Ultrix sh set writes to stderr and can't be redirected directly,
80671.84Schristos# and sets the high bit in the cache file unless we assign to the vars.
80681.84Schristos(
80691.84Schristos  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
80701.84Schristos    eval ac_val=\$$ac_var
80711.84Schristos    case $ac_val in #(
80721.84Schristos    *${as_nl}*)
80731.84Schristos      case $ac_var in #(
80741.108Schristos      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
80751.108Schristosprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
80761.84Schristos      esac
80771.84Schristos      case $ac_var in #(
80781.84Schristos      _ | IFS | as_nl) ;; #(
80791.84Schristos      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
80801.84Schristos      *) { eval $ac_var=; unset $ac_var;} ;;
80811.84Schristos      esac ;;
80821.84Schristos    esac
80831.84Schristos  done
80841.84Schristos
80851.65Schristos  (set) 2>&1 |
80861.84Schristos    case $as_nl`(ac_space=' '; set) 2>&1` in #(
80871.84Schristos    *${as_nl}ac_space=\ *)
80881.108Schristos      # 'set' does not quote correctly, so add quotes: double-quote
80891.84Schristos      # substitution turns \\\\ into \\, and sed turns \\ into \.
80901.65Schristos      sed -n \
80911.84Schristos	"s/'/'\\\\''/g;
80921.84Schristos	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
80931.84Schristos      ;; #(
80941.65Schristos    *)
80951.108Schristos      # 'set' quotes correctly as required by POSIX, so do not add quotes.
80961.84Schristos      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
80971.65Schristos      ;;
80981.84Schristos    esac |
80991.84Schristos    sort
81001.84Schristos) |
81011.65Schristos  sed '
81021.84Schristos     /^ac_cv_env_/b end
81031.65Schristos     t clear
81041.84Schristos     :clear
81051.108Schristos     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
81061.65Schristos     t end
81071.84Schristos     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
81081.84Schristos     :end' >>confcache
81091.84Schristosif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
81101.84Schristos  if test -w "$cache_file"; then
81111.84Schristos    if test "x$cache_file" != "x/dev/null"; then
81121.108Schristos      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
81131.108Schristosprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
81141.84Schristos      if test ! -f "$cache_file" || test -h "$cache_file"; then
81151.84Schristos	cat confcache >"$cache_file"
81161.84Schristos      else
81171.84Schristos        case $cache_file in #(
81181.84Schristos        */* | ?:*)
81191.84Schristos	  mv -f confcache "$cache_file"$$ &&
81201.84Schristos	  mv -f "$cache_file"$$ "$cache_file" ;; #(
81211.84Schristos        *)
81221.84Schristos	  mv -f confcache "$cache_file" ;;
81231.84Schristos	esac
81241.84Schristos      fi
81251.84Schristos    fi
81261.65Schristos  else
81271.108Schristos    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
81281.108Schristosprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
81291.65Schristos  fi
81301.65Schristosfi
81311.66Stsutsuirm -f confcache
81321.65Schristos
81331.66Stsutsuitest "x$prefix" = xNONE && prefix=$ac_default_prefix
81341.66Stsutsui# Let make expand exec_prefix.
81351.66Stsutsuitest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
81361.65Schristos
81371.84SchristosDEFS=-DHAVE_CONFIG_H
81381.84Schristos
81391.84Schristosac_libobjs=
81401.84Schristosac_ltlibobjs=
81411.84SchristosU=
81421.84Schristosfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
81431.84Schristos  # 1. Remove the extension, and $U if already installed.
81441.84Schristos  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
81451.108Schristos  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
81461.84Schristos  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
81471.84Schristos  #    will be set to the directory where LIBOBJS objects are built.
81481.84Schristos  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
81491.84Schristos  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
81501.84Schristosdone
81511.84SchristosLIBOBJS=$ac_libobjs
81521.84Schristos
81531.84SchristosLTLIBOBJS=$ac_ltlibobjs
81541.84Schristos
81551.84Schristos
81561.76Spooka
81571.74Schristos
81581.84Schristos: "${CONFIG_STATUS=./config.status}"
81591.84Schristosac_write_fail=0
81601.66Stsutsuiac_clean_files_save=$ac_clean_files
81611.66Stsutsuiac_clean_files="$ac_clean_files $CONFIG_STATUS"
81621.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
81631.108Schristosprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
81641.84Schristosas_write_fail=0
81651.84Schristoscat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
81661.66Stsutsui#! $SHELL
81671.84Schristos# Generated by $as_me.
81681.66Stsutsui# Run this file to recreate the current configuration.
81691.66Stsutsui# Compiler output produced by configure, useful for debugging
81701.66Stsutsui# configure, is in config.log if it exists.
81711.65Schristos
81721.66Stsutsuidebug=false
81731.84Schristosac_cs_recheck=false
81741.84Schristosac_cs_silent=false
81751.84Schristos
81761.76SpookaSHELL=\${CONFIG_SHELL-$SHELL}
81771.84Schristosexport SHELL
81781.84Schristos_ASEOF
81791.84Schristoscat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
81801.84Schristos## -------------------- ##
81811.84Schristos## M4sh Initialization. ##
81821.84Schristos## -------------------- ##
81831.84Schristos
81841.84Schristos# Be more Bourne compatible
81851.84SchristosDUALCASE=1; export DUALCASE # for MKS sh
81861.108Schristosif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
81871.108Schristosthen :
81881.84Schristos  emulate sh
81891.84Schristos  NULLCMD=:
81901.84Schristos  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
81911.84Schristos  # is contrary to our usage.  Disable this feature.
81921.84Schristos  alias -g '${1+"$@"}'='"$@"'
81931.84Schristos  setopt NO_GLOB_SUBST
81941.108Schristoselse case e in #(
81951.108Schristos  e) case `(set -o) 2>/dev/null` in #(
81961.84Schristos  *posix*) :
81971.84Schristos    set -o posix ;; #(
81981.84Schristos  *) :
81991.84Schristos     ;;
82001.108Schristosesac ;;
82011.84Schristosesac
82021.84Schristosfi
82031.84Schristos
82041.76Spooka
82051.108Schristos
82061.108Schristos# Reset variables that may have inherited troublesome values from
82071.108Schristos# the environment.
82081.108Schristos
82091.108Schristos# IFS needs to be set, to space, tab, and newline, in precisely that order.
82101.108Schristos# (If _AS_PATH_WALK were called with IFS unset, it would have the
82111.108Schristos# side effect of setting IFS to empty, thus disabling word splitting.)
82121.108Schristos# Quoting is to prevent editors from complaining about space-tab.
82131.84Schristosas_nl='
82141.84Schristos'
82151.84Schristosexport as_nl
82161.108SchristosIFS=" ""	$as_nl"
82171.108Schristos
82181.108SchristosPS1='$ '
82191.108SchristosPS2='> '
82201.108SchristosPS4='+ '
82211.108Schristos
82221.108Schristos# Ensure predictable behavior from utilities with locale-dependent output.
82231.108SchristosLC_ALL=C
82241.108Schristosexport LC_ALL
82251.108SchristosLANGUAGE=C
82261.108Schristosexport LANGUAGE
82271.108Schristos
82281.108Schristos# We cannot yet rely on "unset" to work, but we need these variables
82291.108Schristos# to be unset--not just set to an empty or harmless value--now, to
82301.108Schristos# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
82311.108Schristos# also avoids known problems related to "unset" and subshell syntax
82321.108Schristos# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
82331.108Schristosfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
82341.108Schristosdo eval test \${$as_var+y} \
82351.108Schristos  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
82361.108Schristosdone
82371.108Schristos
82381.108Schristos# Ensure that fds 0, 1, and 2 are open.
82391.108Schristosif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
82401.108Schristosif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
82411.108Schristosif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
82421.74Schristos
82431.84Schristos# The user is always right.
82441.108Schristosif ${PATH_SEPARATOR+false} :; then
82451.84Schristos  PATH_SEPARATOR=:
82461.84Schristos  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82471.84Schristos    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82481.84Schristos      PATH_SEPARATOR=';'
82491.84Schristos  }
82501.74Schristosfi
82511.65Schristos
82521.74Schristos
82531.84Schristos# Find who we are.  Look in the path if we contain no directory separator.
82541.84Schristosas_myself=
82551.84Schristoscase $0 in #((
82561.84Schristos  *[\\/]* ) as_myself=$0 ;;
82571.84Schristos  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
82581.84Schristosfor as_dir in $PATH
82591.84Schristosdo
82601.84Schristos  IFS=$as_save_IFS
82611.108Schristos  case $as_dir in #(((
82621.108Schristos    '') as_dir=./ ;;
82631.108Schristos    */) ;;
82641.108Schristos    *) as_dir=$as_dir/ ;;
82651.108Schristos  esac
82661.108Schristos    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
82671.84Schristos  done
82681.84SchristosIFS=$as_save_IFS
82691.84Schristos
82701.84Schristos     ;;
82711.84Schristosesac
82721.108Schristos# We did not find ourselves, most probably we were run as 'sh COMMAND'
82731.84Schristos# in which case we are not to be found in the path.
82741.84Schristosif test "x$as_myself" = x; then
82751.84Schristos  as_myself=$0
82761.84Schristosfi
82771.84Schristosif test ! -f "$as_myself"; then
82781.108Schristos  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
82791.84Schristos  exit 1
82801.84Schristosfi
82811.84Schristos
82821.84Schristos
82831.84Schristos
82841.84Schristos# as_fn_error STATUS ERROR [LINENO LOG_FD]
82851.84Schristos# ----------------------------------------
82861.84Schristos# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
82871.84Schristos# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
82881.84Schristos# script with STATUS, using 1 if that was 0.
82891.84Schristosas_fn_error ()
82901.84Schristos{
82911.84Schristos  as_status=$1; test $as_status -eq 0 && as_status=1
82921.84Schristos  if test "$4"; then
82931.84Schristos    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
82941.108Schristos    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
82951.84Schristos  fi
82961.108Schristos  printf "%s\n" "$as_me: error: $2" >&2
82971.84Schristos  as_fn_exit $as_status
82981.84Schristos} # as_fn_error
82991.84Schristos
83001.84Schristos
83011.84Schristos# as_fn_set_status STATUS
83021.84Schristos# -----------------------
83031.84Schristos# Set $? to STATUS, without forking.
83041.84Schristosas_fn_set_status ()
83051.84Schristos{
83061.84Schristos  return $1
83071.84Schristos} # as_fn_set_status
83081.84Schristos
83091.84Schristos# as_fn_exit STATUS
83101.84Schristos# -----------------
83111.84Schristos# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
83121.84Schristosas_fn_exit ()
83131.84Schristos{
83141.84Schristos  set +e
83151.84Schristos  as_fn_set_status $1
83161.84Schristos  exit $1
83171.84Schristos} # as_fn_exit
83181.84Schristos
83191.84Schristos# as_fn_unset VAR
83201.84Schristos# ---------------
83211.84Schristos# Portably unset VAR.
83221.84Schristosas_fn_unset ()
83231.84Schristos{
83241.84Schristos  { eval $1=; unset $1;}
83251.84Schristos}
83261.84Schristosas_unset=as_fn_unset
83271.108Schristos
83281.84Schristos# as_fn_append VAR VALUE
83291.84Schristos# ----------------------
83301.84Schristos# Append the text in VALUE to the end of the definition contained in VAR. Take
83311.84Schristos# advantage of any shell optimizations that allow amortized linear growth over
83321.84Schristos# repeated appends, instead of the typical quadratic growth present in naive
83331.84Schristos# implementations.
83341.108Schristosif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
83351.108Schristosthen :
83361.84Schristos  eval 'as_fn_append ()
83371.84Schristos  {
83381.84Schristos    eval $1+=\$2
83391.84Schristos  }'
83401.108Schristoselse case e in #(
83411.108Schristos  e) as_fn_append ()
83421.84Schristos  {
83431.84Schristos    eval $1=\$$1\$2
83441.108Schristos  } ;;
83451.108Schristosesac
83461.84Schristosfi # as_fn_append
83471.84Schristos
83481.84Schristos# as_fn_arith ARG...
83491.84Schristos# ------------------
83501.84Schristos# Perform arithmetic evaluation on the ARGs, and store the result in the
83511.84Schristos# global $as_val. Take advantage of shells that can avoid forks. The arguments
83521.84Schristos# must be portable across $(()) and expr.
83531.108Schristosif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
83541.108Schristosthen :
83551.84Schristos  eval 'as_fn_arith ()
83561.84Schristos  {
83571.84Schristos    as_val=$(( $* ))
83581.84Schristos  }'
83591.108Schristoselse case e in #(
83601.108Schristos  e) as_fn_arith ()
83611.84Schristos  {
83621.84Schristos    as_val=`expr "$@" || test $? -eq 1`
83631.108Schristos  } ;;
83641.108Schristosesac
83651.84Schristosfi # as_fn_arith
83661.84Schristos
83671.84Schristos
83681.84Schristosif expr a : '\(a\)' >/dev/null 2>&1 &&
83691.84Schristos   test "X`expr 00001 : '.*\(...\)'`" = X001; then
83701.1Stv  as_expr=expr
83711.1Stvelse
83721.1Stv  as_expr=false
83731.1Stvfi
83741.1Stv
83751.84Schristosif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
83761.84Schristos  as_basename=basename
83771.84Schristoselse
83781.84Schristos  as_basename=false
83791.84Schristosfi
83801.84Schristos
83811.84Schristosif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
83821.84Schristos  as_dirname=dirname
83831.84Schristoselse
83841.84Schristos  as_dirname=false
83851.84Schristosfi
83861.84Schristos
83871.84Schristosas_me=`$as_basename -- "$0" ||
83881.84Schristos$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
83891.84Schristos	 X"$0" : 'X\(//\)$' \| \
83901.84Schristos	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
83911.108Schristosprintf "%s\n" X/"$0" |
83921.84Schristos    sed '/^.*\/\([^/][^/]*\)\/*$/{
83931.84Schristos	    s//\1/
83941.84Schristos	    q
83951.84Schristos	  }
83961.84Schristos	  /^X\/\(\/\/\)$/{
83971.84Schristos	    s//\1/
83981.84Schristos	    q
83991.84Schristos	  }
84001.84Schristos	  /^X\/\(\/\).*/{
84011.84Schristos	    s//\1/
84021.84Schristos	    q
84031.84Schristos	  }
84041.84Schristos	  s/.*/./; q'`
84051.84Schristos
84061.84Schristos# Avoid depending upon Character Ranges.
84071.84Schristosas_cr_letters='abcdefghijklmnopqrstuvwxyz'
84081.84Schristosas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84091.84Schristosas_cr_Letters=$as_cr_letters$as_cr_LETTERS
84101.84Schristosas_cr_digits='0123456789'
84111.84Schristosas_cr_alnum=$as_cr_Letters$as_cr_digits
84121.84Schristos
84131.108Schristos
84141.108Schristos# Determine whether it's possible to make 'echo' print without a newline.
84151.108Schristos# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
84161.108Schristos# for compatibility with existing Makefiles.
84171.84SchristosECHO_C= ECHO_N= ECHO_T=
84181.84Schristoscase `echo -n x` in #(((((
84191.84Schristos-n*)
84201.84Schristos  case `echo 'xy\c'` in
84211.84Schristos  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
84221.84Schristos  xy)  ECHO_C='\c';;
84231.84Schristos  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
84241.84Schristos       ECHO_T='	';;
84251.84Schristos  esac;;
84261.84Schristos*)
84271.84Schristos  ECHO_N='-n';;
84281.84Schristosesac
84291.84Schristos
84301.108Schristos# For backward compatibility with old third-party macros, we provide
84311.108Schristos# the shell variables $as_echo and $as_echo_n.  New code should use
84321.108Schristos# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
84331.108Schristosas_echo='printf %s\n'
84341.108Schristosas_echo_n='printf %s'
84351.108Schristos
84361.1Stvrm -f conf$$ conf$$.exe conf$$.file
84371.84Schristosif test -d conf$$.dir; then
84381.84Schristos  rm -f conf$$.dir/conf$$.file
84391.84Schristoselse
84401.84Schristos  rm -f conf$$.dir
84411.84Schristos  mkdir conf$$.dir 2>/dev/null
84421.84Schristosfi
84431.84Schristosif (echo >conf$$.file) 2>/dev/null; then
84441.84Schristos  if ln -s conf$$.file conf$$ 2>/dev/null; then
84451.84Schristos    as_ln_s='ln -s'
84461.84Schristos    # ... but there are two gotchas:
84471.108Schristos    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
84481.108Schristos    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
84491.108Schristos    # In both cases, we have to default to 'cp -pR'.
84501.84Schristos    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
84511.84Schristos      as_ln_s='cp -pR'
84521.84Schristos  elif ln conf$$.file conf$$ 2>/dev/null; then
84531.84Schristos    as_ln_s=ln
84541.76Spooka  else
84551.84Schristos    as_ln_s='cp -pR'
84561.66Stsutsui  fi
84571.1Stvelse
84581.84Schristos  as_ln_s='cp -pR'
84591.1Stvfi
84601.84Schristosrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
84611.84Schristosrmdir conf$$.dir 2>/dev/null
84621.84Schristos
84631.84Schristos
84641.84Schristos# as_fn_mkdir_p
84651.84Schristos# -------------
84661.84Schristos# Create "$as_dir" as a directory, including parents if necessary.
84671.84Schristosas_fn_mkdir_p ()
84681.84Schristos{
84691.84Schristos
84701.84Schristos  case $as_dir in #(
84711.84Schristos  -*) as_dir=./$as_dir;;
84721.84Schristos  esac
84731.84Schristos  test -d "$as_dir" || eval $as_mkdir_p || {
84741.84Schristos    as_dirs=
84751.84Schristos    while :; do
84761.84Schristos      case $as_dir in #(
84771.108Schristos      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
84781.84Schristos      *) as_qdir=$as_dir;;
84791.84Schristos      esac
84801.84Schristos      as_dirs="'$as_qdir' $as_dirs"
84811.84Schristos      as_dir=`$as_dirname -- "$as_dir" ||
84821.84Schristos$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
84831.84Schristos	 X"$as_dir" : 'X\(//\)[^/]' \| \
84841.84Schristos	 X"$as_dir" : 'X\(//\)$' \| \
84851.84Schristos	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
84861.108Schristosprintf "%s\n" X"$as_dir" |
84871.84Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
84881.84Schristos	    s//\1/
84891.84Schristos	    q
84901.84Schristos	  }
84911.84Schristos	  /^X\(\/\/\)[^/].*/{
84921.84Schristos	    s//\1/
84931.84Schristos	    q
84941.84Schristos	  }
84951.84Schristos	  /^X\(\/\/\)$/{
84961.84Schristos	    s//\1/
84971.84Schristos	    q
84981.84Schristos	  }
84991.84Schristos	  /^X\(\/\).*/{
85001.84Schristos	    s//\1/
85011.84Schristos	    q
85021.84Schristos	  }
85031.84Schristos	  s/.*/./; q'`
85041.84Schristos      test -d "$as_dir" && break
85051.84Schristos    done
85061.84Schristos    test -z "$as_dirs" || eval "mkdir $as_dirs"
85071.84Schristos  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
85081.1Stv
85091.63Sapb
85101.84Schristos} # as_fn_mkdir_p
85111.84Schristosif mkdir -p . 2>/dev/null; then
85121.84Schristos  as_mkdir_p='mkdir -p "$as_dir"'
85131.61Schristoselse
85141.84Schristos  test -d ./-p && rmdir ./-p
85151.84Schristos  as_mkdir_p=false
85161.61Schristosfi
85171.61Schristos
85181.1Stv
85191.84Schristos# as_fn_executable_p FILE
85201.84Schristos# -----------------------
85211.84Schristos# Test if FILE is an executable regular file.
85221.84Schristosas_fn_executable_p ()
85231.84Schristos{
85241.84Schristos  test -f "$1" && test -x "$1"
85251.84Schristos} # as_fn_executable_p
85261.84Schristosas_test_x='test -x'
85271.84Schristosas_executable_p=as_fn_executable_p
85281.84Schristos
85291.84Schristos# Sed expression to map a string onto a valid CPP name.
85301.108Schristosas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
85311.108Schristosas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
85321.84Schristos
85331.84Schristos# Sed expression to map a string onto a valid variable name.
85341.108Schristosas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
85351.108Schristosas_tr_sh="eval sed '$as_sed_sh'" # deprecated
85361.1Stv
85371.1Stv
85381.1Stvexec 6>&1
85391.84Schristos## ----------------------------------- ##
85401.84Schristos## Main body of $CONFIG_STATUS script. ##
85411.84Schristos## ----------------------------------- ##
85421.84Schristos_ASEOF
85431.84Schristostest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
85441.84Schristos
85451.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
85461.84Schristos# Save the log message, to keep $0 and so on meaningful, and to
85471.84Schristos# report actual input values of CONFIG_FILES etc. instead of their
85481.84Schristos# values after options handling.
85491.84Schristosac_log="
85501.84SchristosThis file was extended by libnbcompat $as_me noversion, which was
85511.108Schristosgenerated by GNU Autoconf 2.72.  Invocation command line was
85521.84Schristos
85531.84Schristos  CONFIG_FILES    = $CONFIG_FILES
85541.84Schristos  CONFIG_HEADERS  = $CONFIG_HEADERS
85551.84Schristos  CONFIG_LINKS    = $CONFIG_LINKS
85561.84Schristos  CONFIG_COMMANDS = $CONFIG_COMMANDS
85571.84Schristos  $ $0 $@
85581.84Schristos
85591.84Schristoson `(hostname || uname -n) 2>/dev/null | sed 1q`
85601.84Schristos"
85611.1Stv
85621.66Stsutsui_ACEOF
85631.1Stv
85641.84Schristoscase $ac_config_files in *"
85651.84Schristos"*) set x $ac_config_files; shift; ac_config_files=$*;;
85661.84Schristosesac
85671.1Stv
85681.84Schristoscase $ac_config_headers in *"
85691.84Schristos"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
85701.84Schristosesac
85711.1Stv
85721.1Stv
85731.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
85741.84Schristos# Files that config.status was made for.
85751.84Schristosconfig_files="$ac_config_files"
85761.84Schristosconfig_headers="$ac_config_headers"
85771.1Stv
85781.84Schristos_ACEOF
85791.1Stv
85801.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
85811.1Stvac_cs_usage="\
85821.108Schristos'$as_me' instantiates files and other configuration actions
85831.84Schristosfrom templates according to the current configuration.  Unless the files
85841.84Schristosand actions are specified as TAGs, all are instantiated by default.
85851.1Stv
85861.84SchristosUsage: $0 [OPTION]... [TAG]...
85871.1Stv
85881.1Stv  -h, --help       print this help, then exit
85891.84Schristos  -V, --version    print version number and configuration settings, then exit
85901.84Schristos      --config     print configuration, then exit
85911.84Schristos  -q, --quiet, --silent
85921.84Schristos                   do not print progress messages
85931.1Stv  -d, --debug      don't remove temporary files
85941.1Stv      --recheck    update $as_me by reconfiguring in the same conditions
85951.84Schristos      --file=FILE[:TEMPLATE]
85961.66Stsutsui                   instantiate the configuration file FILE
85971.84Schristos      --header=FILE[:TEMPLATE]
85981.66Stsutsui                   instantiate the configuration header FILE
85991.1Stv
86001.1StvConfiguration files:
86011.1Stv$config_files
86021.1Stv
86031.1StvConfiguration headers:
86041.1Stv$config_headers
86051.1Stv
86061.84SchristosReport bugs to <lib-bug-people@NetBSD.org>."
86071.1Stv
86081.84Schristos_ACEOF
86091.108Schristosac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
86101.108Schristosac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
86111.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
86121.108Schristosac_cs_config='$ac_cs_config_escaped'
86131.1Stvac_cs_version="\\
86141.1Stvlibnbcompat config.status noversion
86151.108Schristosconfigured by $0, generated by GNU Autoconf 2.72,
86161.84Schristos  with options \\"\$ac_cs_config\\"
86171.1Stv
86181.108SchristosCopyright (C) 2023 Free Software Foundation, Inc.
86191.1StvThis config.status script is free software; the Free Software Foundation
86201.1Stvgives unlimited permission to copy, distribute and modify it."
86211.1Stv
86221.84Schristosac_pwd='$ac_pwd'
86231.84Schristossrcdir='$srcdir'
86241.84Schristostest -n "\$AWK" || AWK=awk
86251.84Schristos_ACEOF
86261.84Schristos
86271.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
86281.84Schristos# The default lists apply if the user does not specify any file.
86291.1Stvac_need_defaults=:
86301.1Stvwhile test $# != 0
86311.1Stvdo
86321.1Stv  case $1 in
86331.84Schristos  --*=?*)
86341.84Schristos    ac_option=`expr "X$1" : 'X\([^=]*\)='`
86351.84Schristos    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
86361.84Schristos    ac_shift=:
86371.84Schristos    ;;
86381.84Schristos  --*=)
86391.84Schristos    ac_option=`expr "X$1" : 'X\([^=]*\)='`
86401.84Schristos    ac_optarg=
86411.84Schristos    ac_shift=:
86421.84Schristos    ;;
86431.84Schristos  *)
86441.84Schristos    ac_option=$1
86451.84Schristos    ac_optarg=$2
86461.84Schristos    ac_shift=shift
86471.1Stv    ;;
86481.1Stv  esac
86491.1Stv
86501.84Schristos  case $ac_option in
86511.1Stv  # Handling of the options.
86521.1Stv  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
86531.84Schristos    ac_cs_recheck=: ;;
86541.84Schristos  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
86551.108Schristos    printf "%s\n" "$ac_cs_version"; exit ;;
86561.84Schristos  --config | --confi | --conf | --con | --co | --c )
86571.108Schristos    printf "%s\n" "$ac_cs_config"; exit ;;
86581.84Schristos  --debug | --debu | --deb | --de | --d | -d )
86591.1Stv    debug=: ;;
86601.1Stv  --file | --fil | --fi | --f )
86611.84Schristos    $ac_shift
86621.84Schristos    case $ac_optarg in
86631.108Schristos    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
86641.84Schristos    '') as_fn_error $? "missing file argument" ;;
86651.84Schristos    esac
86661.84Schristos    as_fn_append CONFIG_FILES " '$ac_optarg'"
86671.1Stv    ac_need_defaults=false;;
86681.1Stv  --header | --heade | --head | --hea )
86691.84Schristos    $ac_shift
86701.84Schristos    case $ac_optarg in
86711.108Schristos    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
86721.84Schristos    esac
86731.84Schristos    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
86741.1Stv    ac_need_defaults=false;;
86751.84Schristos  --he | --h)
86761.84Schristos    # Conflict between --help and --header
86771.108Schristos    as_fn_error $? "ambiguous option: '$1'
86781.108SchristosTry '$0 --help' for more information.";;
86791.84Schristos  --help | --hel | -h )
86801.108Schristos    printf "%s\n" "$ac_cs_usage"; exit ;;
86811.84Schristos  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
86821.84Schristos  | -silent | --silent | --silen | --sile | --sil | --si | --s)
86831.84Schristos    ac_cs_silent=: ;;
86841.1Stv
86851.1Stv  # This is an error.
86861.108Schristos  -*) as_fn_error $? "unrecognized option: '$1'
86871.108SchristosTry '$0 --help' for more information." ;;
86881.1Stv
86891.84Schristos  *) as_fn_append ac_config_targets " $1"
86901.84Schristos     ac_need_defaults=false ;;
86911.1Stv
86921.1Stv  esac
86931.1Stv  shift
86941.1Stvdone
86951.1Stv
86961.84Schristosac_configure_extra_args=
86971.84Schristos
86981.84Schristosif $ac_cs_silent; then
86991.84Schristos  exec 6>/dev/null
87001.84Schristos  ac_configure_extra_args="$ac_configure_extra_args --silent"
87011.84Schristosfi
87021.74Schristos
87031.84Schristos_ACEOF
87041.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
87051.84Schristosif \$ac_cs_recheck; then
87061.84Schristos  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
87071.84Schristos  shift
87081.108Schristos  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
87091.84Schristos  CONFIG_SHELL='$SHELL'
87101.84Schristos  export CONFIG_SHELL
87111.84Schristos  exec "\$@"
87121.84Schristosfi
87131.1Stv
87141.84Schristos_ACEOF
87151.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
87161.84Schristosexec 5>>config.log
87171.84Schristos{
87181.84Schristos  echo
87191.84Schristos  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
87201.84Schristos## Running $as_me. ##
87211.84Schristos_ASBOX
87221.108Schristos  printf "%s\n" "$ac_log"
87231.84Schristos} >&5
87241.1Stv
87251.1Stv_ACEOF
87261.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
87271.84Schristos_ACEOF
87281.84Schristos
87291.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
87301.1Stv
87311.84Schristos# Handling of arguments.
87321.1Stvfor ac_config_target in $ac_config_targets
87331.1Stvdo
87341.84Schristos  case $ac_config_target in
87351.84Schristos    "nbtool_config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
87361.84Schristos    "defs.mk") CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
87371.84Schristos
87381.108Schristos  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
87391.1Stv  esac
87401.1Stvdone
87411.1Stv
87421.84Schristos
87431.1Stv# If the user did not use the arguments to specify the items to instantiate,
87441.1Stv# then the envvar interface is used.  Set only those that are not.
87451.1Stv# We use the long form for the default assignment because of an extremely
87461.1Stv# bizarre bug on SunOS 4.1.3.
87471.1Stvif $ac_need_defaults; then
87481.108Schristos  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
87491.108Schristos  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
87501.1Stvfi
87511.1Stv
87521.84Schristos# Have a temporary directory for convenience.  Make it in the build tree
87531.84Schristos# simply because there is no reason against having it here, and in addition,
87541.84Schristos# creating and moving files from /tmp can sometimes cause problems.
87551.84Schristos# Hook for its removal unless debugging.
87561.84Schristos# Note that there is a small window in which the directory will not be cleaned:
87571.108Schristos# after its creation but before its name has been assigned to '$tmp'.
87581.1Stv$debug ||
87591.1Stv{
87601.84Schristos  tmp= ac_tmp=
87611.84Schristos  trap 'exit_status=$?
87621.84Schristos  : "${ac_tmp:=$tmp}"
87631.84Schristos  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
87641.84Schristos' 0
87651.84Schristos  trap 'as_fn_exit 1' 1 2 13 15
87661.1Stv}
87671.84Schristos# Create a (secure) tmp directory for tmp files.
87681.76Spooka
87691.1Stv{
87701.84Schristos  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
87711.84Schristos  test -d "$tmp"
87721.1Stv}  ||
87731.1Stv{
87741.84Schristos  tmp=./conf$$-$RANDOM
87751.84Schristos  (umask 077 && mkdir "$tmp")
87761.84Schristos} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
87771.84Schristosac_tmp=$tmp
87781.1Stv
87791.84Schristos# Set up the scripts for CONFIG_FILES section.
87801.84Schristos# No need to generate them if there are no CONFIG_FILES.
87811.108Schristos# This happens for instance with './config.status config.h'.
87821.84Schristosif test -n "$CONFIG_FILES"; then
87831.66Stsutsui
87841.66Stsutsui
87851.84Schristosac_cr=`echo X | tr X '\015'`
87861.84Schristos# On cygwin, bash can eat \r inside `` if the user requested igncr.
87871.84Schristos# But we know of no other shell where ac_cr would be empty at this
87881.84Schristos# point, so we can use a bashism as a fallback.
87891.84Schristosif test "x$ac_cr" = x; then
87901.84Schristos  eval ac_cr=\$\'\\r\'
87911.84Schristosfi
87921.84Schristosac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
87931.84Schristosif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
87941.84Schristos  ac_cs_awk_cr='\\r'
87951.84Schristoselse
87961.84Schristos  ac_cs_awk_cr=$ac_cr
87971.84Schristosfi
87981.1Stv
87991.84Schristosecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
88001.84Schristos_ACEOF
88011.65Schristos
88021.65Schristos
88031.84Schristos{
88041.84Schristos  echo "cat >conf$$subs.awk <<_ACEOF" &&
88051.84Schristos  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
88061.84Schristos  echo "_ACEOF"
88071.84Schristos} >conf$$subs.sh ||
88081.84Schristos  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
88091.84Schristosac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
88101.84Schristosac_delim='%!_!# '
88111.84Schristosfor ac_last_try in false false false false false :; do
88121.84Schristos  . ./conf$$subs.sh ||
88131.84Schristos    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
88141.65Schristos
88151.84Schristos  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
88161.84Schristos  if test $ac_delim_n = $ac_delim_num; then
88171.84Schristos    break
88181.84Schristos  elif $ac_last_try; then
88191.84Schristos    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
88201.65Schristos  else
88211.84Schristos    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
88221.1Stv  fi
88231.84Schristosdone
88241.84Schristosrm -f conf$$subs.sh
88251.65Schristos
88261.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
88271.84Schristoscat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
88281.84Schristos_ACEOF
88291.84Schristossed -n '
88301.84Schristosh
88311.84Schristoss/^/S["/; s/!.*/"]=/
88321.84Schristosp
88331.84Schristosg
88341.84Schristoss/^[^!]*!//
88351.84Schristos:repl
88361.84Schristost repl
88371.84Schristoss/'"$ac_delim"'$//
88381.84Schristost delim
88391.84Schristos:nl
88401.84Schristosh
88411.84Schristoss/\(.\{148\}\)..*/\1/
88421.84Schristost more1
88431.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
88441.84Schristosp
88451.84Schristosn
88461.84Schristosb repl
88471.84Schristos:more1
88481.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"\\/
88491.84Schristosp
88501.84Schristosg
88511.84Schristoss/.\{148\}//
88521.84Schristost nl
88531.84Schristos:delim
88541.84Schristosh
88551.84Schristoss/\(.\{148\}\)..*/\1/
88561.84Schristost more2
88571.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"/
88581.84Schristosp
88591.84Schristosb
88601.84Schristos:more2
88611.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"\\/
88621.84Schristosp
88631.84Schristosg
88641.84Schristoss/.\{148\}//
88651.84Schristost delim
88661.84Schristos' <conf$$subs.awk | sed '
88671.84Schristos/^[^""]/{
88681.84Schristos  N
88691.84Schristos  s/\n//
88701.84Schristos}
88711.84Schristos' >>$CONFIG_STATUS || ac_write_fail=1
88721.84Schristosrm -f conf$$subs.awk
88731.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
88741.84Schristos_ACAWK
88751.84Schristoscat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
88761.84Schristos  for (key in S) S_is_set[key] = 1
88771.84Schristos  FS = ""
88781.84Schristos
88791.84Schristos}
88801.84Schristos{
88811.84Schristos  line = $ 0
88821.84Schristos  nfields = split(line, field, "@")
88831.84Schristos  substed = 0
88841.84Schristos  len = length(field[1])
88851.84Schristos  for (i = 2; i < nfields; i++) {
88861.84Schristos    key = field[i]
88871.84Schristos    keylen = length(key)
88881.84Schristos    if (S_is_set[key]) {
88891.84Schristos      value = S[key]
88901.84Schristos      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
88911.84Schristos      len += length(value) + length(field[++i])
88921.84Schristos      substed = 1
88931.84Schristos    } else
88941.84Schristos      len += 1 + keylen
88951.84Schristos  }
88961.84Schristos
88971.84Schristos  print line
88981.84Schristos}
88991.84Schristos
89001.84Schristos_ACAWK
89011.84Schristos_ACEOF
89021.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
89031.84Schristosif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
89041.84Schristos  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
89051.84Schristoselse
89061.84Schristos  cat
89071.84Schristosfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
89081.84Schristos  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
89091.84Schristos_ACEOF
89101.84Schristos
89111.84Schristos# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
89121.84Schristos# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
89131.84Schristos# trailing colons and then remove the whole line if VPATH becomes empty
89141.84Schristos# (actually we leave an empty line to preserve line numbers).
89151.84Schristosif test "x$srcdir" = x.; then
89161.84Schristos  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
89171.84Schristosh
89181.84Schristoss///
89191.84Schristoss/^/:/
89201.84Schristoss/[	 ]*$/:/
89211.84Schristoss/:\$(srcdir):/:/g
89221.84Schristoss/:\${srcdir}:/:/g
89231.84Schristoss/:@srcdir@:/:/g
89241.84Schristoss/^:*//
89251.84Schristoss/:*$//
89261.84Schristosx
89271.84Schristoss/\(=[	 ]*\).*/\1/
89281.84SchristosG
89291.84Schristoss/\n//
89301.84Schristoss/^[^=]*=[	 ]*$//
89311.84Schristos}'
89321.84Schristosfi
89331.84Schristos
89341.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
89351.84Schristosfi # test -n "$CONFIG_FILES"
89361.74Schristos
89371.84Schristos# Set up the scripts for CONFIG_HEADERS section.
89381.84Schristos# No need to generate them if there are no CONFIG_HEADERS.
89391.108Schristos# This happens for instance with './config.status Makefile'.
89401.84Schristosif test -n "$CONFIG_HEADERS"; then
89411.84Schristoscat >"$ac_tmp/defines.awk" <<\_ACAWK ||
89421.84SchristosBEGIN {
89431.84Schristos_ACEOF
89441.84Schristos
89451.108Schristos# Transform confdefs.h into an awk script 'defines.awk', embedded as
89461.84Schristos# here-document in config.status, that substitutes the proper values into
89471.84Schristos# config.h.in to produce config.h.
89481.84Schristos
89491.84Schristos# Create a delimiter string that does not exist in confdefs.h, to ease
89501.84Schristos# handling of long lines.
89511.84Schristosac_delim='%!_!# '
89521.84Schristosfor ac_last_try in false false :; do
89531.84Schristos  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
89541.84Schristos  if test -z "$ac_tt"; then
89551.84Schristos    break
89561.84Schristos  elif $ac_last_try; then
89571.84Schristos    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
89581.66Stsutsui  else
89591.84Schristos    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
89601.66Stsutsui  fi
89611.66Stsutsuidone
89621.66Stsutsui
89631.84Schristos# For the awk script, D is an array of macro values keyed by name,
89641.84Schristos# likewise P contains macro parameters if any.  Preserve backslash
89651.84Schristos# newline sequences.
89661.84Schristos
89671.84Schristosac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
89681.84Schristossed -n '
89691.84Schristoss/.\{148\}/&'"$ac_delim"'/g
89701.84Schristost rset
89711.84Schristos:rset
89721.84Schristoss/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
89731.84Schristost def
89741.84Schristosd
89751.84Schristos:def
89761.84Schristoss/\\$//
89771.84Schristost bsnl
89781.84Schristoss/["\\]/\\&/g
89791.84Schristoss/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
89801.84SchristosD["\1"]=" \3"/p
89811.84Schristoss/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
89821.84Schristosd
89831.84Schristos:bsnl
89841.84Schristoss/["\\]/\\&/g
89851.84Schristoss/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
89861.84SchristosD["\1"]=" \3\\\\\\n"\\/p
89871.84Schristost cont
89881.84Schristoss/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
89891.84Schristost cont
89901.84Schristosd
89911.84Schristos:cont
89921.84Schristosn
89931.84Schristoss/.\{148\}/&'"$ac_delim"'/g
89941.84Schristost clear
89951.84Schristos:clear
89961.84Schristoss/\\$//
89971.84Schristost bsnlc
89981.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"/p
89991.84Schristosd
90001.84Schristos:bsnlc
90011.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
90021.84Schristosb cont
90031.84Schristos' <confdefs.h | sed '
90041.84Schristoss/'"$ac_delim"'/"\\\
90051.84Schristos"/g' >>$CONFIG_STATUS || ac_write_fail=1
90061.84Schristos
90071.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
90081.84Schristos  for (key in D) D_is_set[key] = 1
90091.84Schristos  FS = ""
90101.84Schristos}
90111.84Schristos/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
90121.84Schristos  line = \$ 0
90131.84Schristos  split(line, arg, " ")
90141.84Schristos  if (arg[1] == "#") {
90151.84Schristos    defundef = arg[2]
90161.84Schristos    mac1 = arg[3]
90171.84Schristos  } else {
90181.84Schristos    defundef = substr(arg[1], 2)
90191.84Schristos    mac1 = arg[2]
90201.84Schristos  }
90211.84Schristos  split(mac1, mac2, "(") #)
90221.84Schristos  macro = mac2[1]
90231.84Schristos  prefix = substr(line, 1, index(line, defundef) - 1)
90241.84Schristos  if (D_is_set[macro]) {
90251.84Schristos    # Preserve the white space surrounding the "#".
90261.84Schristos    print prefix "define", macro P[macro] D[macro]
90271.84Schristos    next
90281.84Schristos  } else {
90291.84Schristos    # Replace #undef with comments.  This is necessary, for example,
90301.84Schristos    # in the case of _POSIX_SOURCE, which is predefined and required
90311.84Schristos    # on some systems where configure will not decide to define it.
90321.84Schristos    if (defundef == "undef") {
90331.84Schristos      print "/*", prefix defundef, macro, "*/"
90341.84Schristos      next
90351.84Schristos    }
90361.84Schristos  }
90371.84Schristos}
90381.84Schristos{ print }
90391.84Schristos_ACAWK
90401.84Schristos_ACEOF
90411.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
90421.84Schristos  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
90431.84Schristosfi # test -n "$CONFIG_HEADERS"
90441.66Stsutsui
90451.1Stv
90461.84Schristoseval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
90471.84Schristosshift
90481.84Schristosfor ac_tag
90491.84Schristosdo
90501.84Schristos  case $ac_tag in
90511.84Schristos  :[FHLC]) ac_mode=$ac_tag; continue;;
90521.84Schristos  esac
90531.84Schristos  case $ac_mode$ac_tag in
90541.84Schristos  :[FHL]*:*);;
90551.108Schristos  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
90561.84Schristos  :[FH]-) ac_tag=-:-;;
90571.84Schristos  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
90581.74Schristos  esac
90591.84Schristos  ac_save_IFS=$IFS
90601.84Schristos  IFS=:
90611.84Schristos  set x $ac_tag
90621.84Schristos  IFS=$ac_save_IFS
90631.84Schristos  shift
90641.84Schristos  ac_file=$1
90651.84Schristos  shift
90661.84Schristos
90671.84Schristos  case $ac_mode in
90681.84Schristos  :L) ac_source=$1;;
90691.84Schristos  :[FH])
90701.84Schristos    ac_file_inputs=
90711.84Schristos    for ac_f
90721.84Schristos    do
90731.84Schristos      case $ac_f in
90741.84Schristos      -) ac_f="$ac_tmp/stdin";;
90751.84Schristos      *) # Look for the file first in the build tree, then in the source tree
90761.84Schristos	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
90771.108Schristos	 # because $ac_f cannot contain ':'.
90781.84Schristos	 test -f "$ac_f" ||
90791.84Schristos	   case $ac_f in
90801.84Schristos	   [\\/$]*) false;;
90811.84Schristos	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
90821.84Schristos	   esac ||
90831.108Schristos	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
90841.84Schristos      esac
90851.108Schristos      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
90861.84Schristos      as_fn_append ac_file_inputs " '$ac_f'"
90871.84Schristos    done
90881.74Schristos
90891.108Schristos    # Let's still pretend it is 'configure' which instantiates (i.e., don't
90901.84Schristos    # use $as_me), people would be surprised to read:
90911.84Schristos    #    /* config.h.  Generated by config.status.  */
90921.84Schristos    configure_input='Generated from '`
90931.108Schristos	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
90941.84Schristos	`' by configure.'
90951.84Schristos    if test x"$ac_file" != x-; then
90961.84Schristos      configure_input="$ac_file.  $configure_input"
90971.108Schristos      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
90981.108Schristosprintf "%s\n" "$as_me: creating $ac_file" >&6;}
90991.84Schristos    fi
91001.84Schristos    # Neutralize special characters interpreted by sed in replacement strings.
91011.84Schristos    case $configure_input in #(
91021.84Schristos    *\&* | *\|* | *\\* )
91031.108Schristos       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
91041.84Schristos       sed 's/[\\\\&|]/\\\\&/g'`;; #(
91051.84Schristos    *) ac_sed_conf_input=$configure_input;;
91061.84Schristos    esac
91071.76Spooka
91081.84Schristos    case $ac_tag in
91091.84Schristos    *:-:* | *:-) cat >"$ac_tmp/stdin" \
91101.84Schristos      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
91111.84Schristos    esac
91121.66Stsutsui    ;;
91131.66Stsutsui  esac
91141.66Stsutsui
91151.84Schristos  ac_dir=`$as_dirname -- "$ac_file" ||
91161.84Schristos$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
91171.84Schristos	 X"$ac_file" : 'X\(//\)[^/]' \| \
91181.84Schristos	 X"$ac_file" : 'X\(//\)$' \| \
91191.84Schristos	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
91201.108Schristosprintf "%s\n" X"$ac_file" |
91211.84Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
91221.84Schristos	    s//\1/
91231.84Schristos	    q
91241.84Schristos	  }
91251.84Schristos	  /^X\(\/\/\)[^/].*/{
91261.84Schristos	    s//\1/
91271.84Schristos	    q
91281.84Schristos	  }
91291.84Schristos	  /^X\(\/\/\)$/{
91301.84Schristos	    s//\1/
91311.84Schristos	    q
91321.84Schristos	  }
91331.84Schristos	  /^X\(\/\).*/{
91341.84Schristos	    s//\1/
91351.84Schristos	    q
91361.84Schristos	  }
91371.84Schristos	  s/.*/./; q'`
91381.84Schristos  as_dir="$ac_dir"; as_fn_mkdir_p
91391.84Schristos  ac_builddir=.
91401.84Schristos
91411.84Schristoscase "$ac_dir" in
91421.84Schristos.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
91431.84Schristos*)
91441.108Schristos  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
91451.84Schristos  # A ".." for each directory in $ac_dir_suffix.
91461.108Schristos  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
91471.84Schristos  case $ac_top_builddir_sub in
91481.84Schristos  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
91491.84Schristos  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
91501.84Schristos  esac ;;
91511.84Schristosesac
91521.84Schristosac_abs_top_builddir=$ac_pwd
91531.84Schristosac_abs_builddir=$ac_pwd$ac_dir_suffix
91541.84Schristos# for backward compatibility:
91551.84Schristosac_top_builddir=$ac_top_build_prefix
91561.84Schristos
91571.84Schristoscase $srcdir in
91581.84Schristos  .)  # We are building in place.
91591.84Schristos    ac_srcdir=.
91601.84Schristos    ac_top_srcdir=$ac_top_builddir_sub
91611.84Schristos    ac_abs_top_srcdir=$ac_pwd ;;
91621.84Schristos  [\\/]* | ?:[\\/]* )  # Absolute name.
91631.84Schristos    ac_srcdir=$srcdir$ac_dir_suffix;
91641.84Schristos    ac_top_srcdir=$srcdir
91651.84Schristos    ac_abs_top_srcdir=$srcdir ;;
91661.84Schristos  *) # Relative name.
91671.84Schristos    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
91681.84Schristos    ac_top_srcdir=$ac_top_build_prefix$srcdir
91691.84Schristos    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
91701.84Schristosesac
91711.84Schristosac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
91721.84Schristos
91731.84Schristos
91741.84Schristos  case $ac_mode in
91751.84Schristos  :F)
91761.84Schristos  #
91771.84Schristos  # CONFIG_FILE
91781.84Schristos  #
91791.84Schristos
91801.84Schristos_ACEOF
91811.84Schristos
91821.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
91831.84Schristos# If the template does not know about datarootdir, expand it.
91841.84Schristos# FIXME: This hack should be removed a few years after 2.60.
91851.84Schristosac_datarootdir_hack=; ac_datarootdir_seen=
91861.84Schristosac_sed_dataroot='
91871.84Schristos/datarootdir/ {
91881.84Schristos  p
91891.84Schristos  q
91901.84Schristos}
91911.84Schristos/@datadir@/p
91921.84Schristos/@docdir@/p
91931.84Schristos/@infodir@/p
91941.84Schristos/@localedir@/p
91951.84Schristos/@mandir@/p'
91961.84Schristoscase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
91971.84Schristos*datarootdir*) ac_datarootdir_seen=yes;;
91981.84Schristos*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
91991.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
92001.108Schristosprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
92011.84Schristos_ACEOF
92021.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
92031.84Schristos  ac_datarootdir_hack='
92041.84Schristos  s&@datadir@&$datadir&g
92051.84Schristos  s&@docdir@&$docdir&g
92061.84Schristos  s&@infodir@&$infodir&g
92071.84Schristos  s&@localedir@&$localedir&g
92081.84Schristos  s&@mandir@&$mandir&g
92091.84Schristos  s&\\\${datarootdir}&$datarootdir&g' ;;
92101.84Schristosesac
92111.84Schristos_ACEOF
92121.84Schristos
92131.108Schristos# Neutralize VPATH when '$srcdir' = '.'.
92141.84Schristos# Shell code in configure.ac might set extrasub.
92151.84Schristos# FIXME: do we really want to maintain this feature?
92161.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
92171.84Schristosac_sed_extra="$ac_vpsub
92181.84Schristos$extrasub
92191.84Schristos_ACEOF
92201.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
92211.84Schristos:t
92221.84Schristos/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
92231.84Schristoss|@configure_input@|$ac_sed_conf_input|;t t
92241.84Schristoss&@top_builddir@&$ac_top_builddir_sub&;t t
92251.84Schristoss&@top_build_prefix@&$ac_top_build_prefix&;t t
92261.84Schristoss&@srcdir@&$ac_srcdir&;t t
92271.84Schristoss&@abs_srcdir@&$ac_abs_srcdir&;t t
92281.84Schristoss&@top_srcdir@&$ac_top_srcdir&;t t
92291.84Schristoss&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
92301.84Schristoss&@builddir@&$ac_builddir&;t t
92311.84Schristoss&@abs_builddir@&$ac_abs_builddir&;t t
92321.84Schristoss&@abs_top_builddir@&$ac_abs_top_builddir&;t t
92331.84Schristos$ac_datarootdir_hack
92341.84Schristos"
92351.84Schristoseval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
92361.84Schristos  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
92371.84Schristos
92381.84Schristostest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
92391.84Schristos  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
92401.84Schristos  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
92411.84Schristos      "$ac_tmp/out"`; test -z "$ac_out"; } &&
92421.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
92431.84Schristoswhich seems to be undefined.  Please make sure it is defined" >&5
92441.108Schristosprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
92451.84Schristoswhich seems to be undefined.  Please make sure it is defined" >&2;}
92461.84Schristos
92471.84Schristos  rm -f "$ac_tmp/stdin"
92481.84Schristos  case $ac_file in
92491.84Schristos  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
92501.84Schristos  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
92511.84Schristos  esac \
92521.84Schristos  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
92531.84Schristos ;;
92541.84Schristos  :H)
92551.84Schristos  #
92561.84Schristos  # CONFIG_HEADER
92571.84Schristos  #
92581.84Schristos  if test x"$ac_file" != x-; then
92591.84Schristos    {
92601.108Schristos      printf "%s\n" "/* $configure_input  */" >&1 \
92611.84Schristos      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
92621.84Schristos    } >"$ac_tmp/config.h" \
92631.84Schristos      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
92641.84Schristos    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
92651.108Schristos      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
92661.108Schristosprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
92671.84Schristos    else
92681.84Schristos      rm -f "$ac_file"
92691.84Schristos      mv "$ac_tmp/config.h" "$ac_file" \
92701.84Schristos	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
92711.1Stv    fi
92721.1Stv  else
92731.108Schristos    printf "%s\n" "/* $configure_input  */" >&1 \
92741.84Schristos      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
92751.84Schristos      || as_fn_error $? "could not create -" "$LINENO" 5
92761.1Stv  fi
92771.84Schristos ;;
92781.84Schristos
92791.84Schristos
92801.84Schristos  esac
92811.84Schristos
92821.84Schristosdone # for ac_tag
92831.74Schristos
92841.74Schristos
92851.84Schristosas_fn_exit 0
92861.84Schristos_ACEOF
92871.1Stvac_clean_files=$ac_clean_files_save
92881.1Stv
92891.84Schristostest $ac_write_fail = 0 ||
92901.84Schristos  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
92911.84Schristos
92921.84Schristos
92931.1Stv# configure is writing to config.log, and then calls config.status.
92941.1Stv# config.status does its own redirection, appending to config.log.
92951.1Stv# Unfortunately, on DOS this fails, as config.log is still kept open
92961.1Stv# by configure, so config.status won't be able to write to it; its
92971.1Stv# output is simply discarded.  So we exec the FD to /dev/null,
92981.1Stv# effectively closing config.log, so it can be properly (re)opened and
92991.1Stv# appended to by config.status.  When coming back to configure, we
93001.1Stv# need to make the FD available again.
93011.1Stvif test "$no_create" != yes; then
93021.1Stv  ac_cs_success=:
93031.84Schristos  ac_config_status_args=
93041.84Schristos  test "$silent" = yes &&
93051.84Schristos    ac_config_status_args="$ac_config_status_args --quiet"
93061.1Stv  exec 5>/dev/null
93071.84Schristos  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
93081.1Stv  exec 5>>config.log
93091.1Stv  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
93101.1Stv  # would make configure fail if this is the last instruction.
93111.84Schristos  $ac_cs_success || as_fn_exit 1
93121.84Schristosfi
93131.84Schristosif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
93141.108Schristos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
93151.108Schristosprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
93161.1Stvfi
93171.96Shannken
93181.102Slukem
93191.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ========= configure results for compat ==========" >&5
93201.108Schristosprintf "%s\n" "$as_me: ========= configure results for compat ==========" >&6;}
93211.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC                                      $CC" >&5
93221.108Schristosprintf "%s\n" "$as_me: CC                                      $CC" >&6;}
93231.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS                                    $LIBS" >&5
93241.108Schristosprintf "%s\n" "$as_me: LIBS                                    $LIBS" >&6;}
93251.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_NO_CPP_PRECOMP                       $CC_NO_CPP_PRECOMP" >&5
93261.108Schristosprintf "%s\n" "$as_me: CC_NO_CPP_PRECOMP                       $CC_NO_CPP_PRECOMP" >&6;}
93271.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_ADDRESS_OF_PACKED_MEMBER         $CC_WNO_ADDRESS_OF_PACKED_MEMBER" >&5
93281.108Schristosprintf "%s\n" "$as_me: CC_WNO_ADDRESS_OF_PACKED_MEMBER         $CC_WNO_ADDRESS_OF_PACKED_MEMBER" >&6;}
93291.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_CAST_FUNCTION_TYPE               $CC_WNO_CAST_FUNCTION_TYPE" >&5
93301.108Schristosprintf "%s\n" "$as_me: CC_WNO_CAST_FUNCTION_TYPE               $CC_WNO_CAST_FUNCTION_TYPE" >&6;}
93311.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER   $CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER" >&5
93321.108Schristosprintf "%s\n" "$as_me: CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER   $CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER" >&6;}
93331.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_OVERFLOW                  $CC_WNO_FORMAT_OVERFLOW" >&5
93341.108Schristosprintf "%s\n" "$as_me: CC_WNO_FORMAT_OVERFLOW                  $CC_WNO_FORMAT_OVERFLOW" >&6;}
93351.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_TRUNCATION                $CC_WNO_FORMAT_TRUNCATION" >&5
93361.108Schristosprintf "%s\n" "$as_me: CC_WNO_FORMAT_TRUNCATION                $CC_WNO_FORMAT_TRUNCATION" >&6;}
93371.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_IMPLICIT_FALLTHROUGH             $CC_WNO_IMPLICIT_FALLTHROUGH" >&5
93381.108Schristosprintf "%s\n" "$as_me: CC_WNO_IMPLICIT_FALLTHROUGH             $CC_WNO_IMPLICIT_FALLTHROUGH" >&6;}
93391.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_MAYBE_UNINITIALIZED              $CC_WNO_MAYBE_UNINITIALIZED" >&5
93401.108Schristosprintf "%s\n" "$as_me: CC_WNO_MAYBE_UNINITIALIZED              $CC_WNO_MAYBE_UNINITIALIZED" >&6;}
93411.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_RETURN_LOCAL_ADDR                $CC_WNO_RETURN_LOCAL_ADDR" >&5
93421.108Schristosprintf "%s\n" "$as_me: CC_WNO_RETURN_LOCAL_ADDR                $CC_WNO_RETURN_LOCAL_ADDR" >&6;}
93431.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_OVERFLOW                $CC_WNO_STRINGOP_OVERFLOW" >&5
93441.108Schristosprintf "%s\n" "$as_me: CC_WNO_STRINGOP_OVERFLOW                $CC_WNO_STRINGOP_OVERFLOW" >&6;}
93451.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_TRUNCATION              $CC_WNO_STRINGOP_TRUNCATION" >&5
93461.108Schristosprintf "%s\n" "$as_me: CC_WNO_STRINGOP_TRUNCATION              $CC_WNO_STRINGOP_TRUNCATION" >&6;}
93471.108Schristos
93481.108Schristos{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ================================================" >&5
93491.108Schristosprintf "%s\n" "$as_me: ================================================" >&6;}
93501.103Slukem
9351