configure revision 1.74
11.1Stv#! /bin/sh
21.1Stv# Guess values for system-dependent variables and create Makefiles.
31.74Schristos# Generated by GNU Autoconf 2.69 for libnbcompat noversion.
41.1Stv#
51.41Ssalo# Report bugs to <lib-bug-people@NetBSD.org>.
61.1Stv#
71.74Schristos#
81.74Schristos# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
91.74Schristos#
101.74Schristos#
111.1Stv# This configure script is free software; the Free Software Foundation
121.1Stv# gives unlimited permission to copy, distribute and modify it.
131.74Schristos## -------------------- ##
141.74Schristos## M4sh Initialization. ##
151.74Schristos## -------------------- ##
161.74Schristos
171.74Schristos# Be more Bourne compatible
181.74SchristosDUALCASE=1; export DUALCASE # for MKS sh
191.74Schristosif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
201.74Schristos  emulate sh
211.74Schristos  NULLCMD=:
221.74Schristos  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
231.74Schristos  # is contrary to our usage.  Disable this feature.
241.74Schristos  alias -g '${1+"$@"}'='"$@"'
251.74Schristos  setopt NO_GLOB_SUBST
261.74Schristoselse
271.74Schristos  case `(set -o) 2>/dev/null` in #(
281.74Schristos  *posix*) :
291.74Schristos    set -o posix ;; #(
301.74Schristos  *) :
311.74Schristos     ;;
321.74Schristosesac
331.74Schristosfi
341.74Schristos
351.74Schristos
361.74Schristosas_nl='
371.74Schristos'
381.74Schristosexport as_nl
391.74Schristos# Printing a long string crashes Solaris 7 /usr/bin/printf.
401.74Schristosas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
411.74Schristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
421.74Schristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
431.74Schristos# Prefer a ksh shell builtin over an external printf program on Solaris,
441.74Schristos# but without wasting forks for bash or zsh.
451.74Schristosif test -z "$BASH_VERSION$ZSH_VERSION" \
461.74Schristos    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
471.74Schristos  as_echo='print -r --'
481.74Schristos  as_echo_n='print -rn --'
491.74Schristoselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
501.74Schristos  as_echo='printf %s\n'
511.74Schristos  as_echo_n='printf %s'
521.74Schristoselse
531.74Schristos  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
541.74Schristos    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
551.74Schristos    as_echo_n='/usr/ucb/echo -n'
561.74Schristos  else
571.74Schristos    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
581.74Schristos    as_echo_n_body='eval
591.74Schristos      arg=$1;
601.74Schristos      case $arg in #(
611.74Schristos      *"$as_nl"*)
621.74Schristos	expr "X$arg" : "X\\(.*\\)$as_nl";
631.74Schristos	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
641.74Schristos      esac;
651.74Schristos      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
661.74Schristos    '
671.74Schristos    export as_echo_n_body
681.74Schristos    as_echo_n='sh -c $as_echo_n_body as_echo'
691.74Schristos  fi
701.74Schristos  export as_echo_body
711.74Schristos  as_echo='sh -c $as_echo_body as_echo'
721.74Schristosfi
731.74Schristos
741.74Schristos# The user is always right.
751.74Schristosif test "${PATH_SEPARATOR+set}" != set; then
761.74Schristos  PATH_SEPARATOR=:
771.74Schristos  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
781.74Schristos    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
791.74Schristos      PATH_SEPARATOR=';'
801.74Schristos  }
811.74Schristosfi
821.1Stv
831.1Stv
841.74Schristos# IFS
851.74Schristos# We need space, tab and new line, in precisely that order.  Quoting is
861.74Schristos# there to prevent editors from complaining about space-tab.
871.74Schristos# (If _AS_PATH_WALK were called with IFS unset, it would disable word
881.74Schristos# splitting by setting IFS to empty value.)
891.74SchristosIFS=" ""	$as_nl"
901.74Schristos
911.74Schristos# Find who we are.  Look in the path if we contain no directory separator.
921.74Schristosas_myself=
931.74Schristoscase $0 in #((
941.74Schristos  *[\\/]* ) as_myself=$0 ;;
951.74Schristos  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
961.74Schristosfor as_dir in $PATH
971.74Schristosdo
981.74Schristos  IFS=$as_save_IFS
991.74Schristos  test -z "$as_dir" && as_dir=.
1001.74Schristos    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1011.74Schristos  done
1021.74SchristosIFS=$as_save_IFS
1031.74Schristos
1041.74Schristos     ;;
1051.74Schristosesac
1061.74Schristos# We did not find ourselves, most probably we were run as `sh COMMAND'
1071.74Schristos# in which case we are not to be found in the path.
1081.74Schristosif test "x$as_myself" = x; then
1091.74Schristos  as_myself=$0
1101.74Schristosfi
1111.74Schristosif test ! -f "$as_myself"; then
1121.74Schristos  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1131.74Schristos  exit 1
1141.74Schristosfi
1151.74Schristos
1161.74Schristos# Unset variables that we do not need and which cause bugs (e.g. in
1171.74Schristos# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1181.74Schristos# suppresses any "Segmentation fault" message there.  '((' could
1191.74Schristos# trigger a bug in pdksh 5.2.14.
1201.74Schristosfor as_var in BASH_ENV ENV MAIL MAILPATH
1211.74Schristosdo eval test x\${$as_var+set} = xset \
1221.74Schristos  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1231.74Schristosdone
1241.74SchristosPS1='$ '
1251.74SchristosPS2='> '
1261.74SchristosPS4='+ '
1271.74Schristos
1281.74Schristos# NLS nuisances.
1291.74SchristosLC_ALL=C
1301.74Schristosexport LC_ALL
1311.74SchristosLANGUAGE=C
1321.74Schristosexport LANGUAGE
1331.65Schristos
1341.74Schristos# CDPATH.
1351.74Schristos(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1361.65Schristos
1371.74Schristos# Use a proper internal environment variable to ensure we don't fall
1381.74Schristos  # into an infinite loop, continuously re-executing ourselves.
1391.74Schristos  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1401.74Schristos    _as_can_reexec=no; export _as_can_reexec;
1411.74Schristos    # We cannot yet assume a decent shell, so we have to provide a
1421.74Schristos# neutralization value for shells without unset; and this also
1431.74Schristos# works around shells that cannot unset nonexistent variables.
1441.74Schristos# Preserve -v and -x to the replacement shell.
1451.74SchristosBASH_ENV=/dev/null
1461.74SchristosENV=/dev/null
1471.74Schristos(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1481.74Schristoscase $- in # ((((
1491.74Schristos  *v*x* | *x*v* ) as_opts=-vx ;;
1501.74Schristos  *v* ) as_opts=-v ;;
1511.74Schristos  *x* ) as_opts=-x ;;
1521.74Schristos  * ) as_opts= ;;
1531.74Schristosesac
1541.74Schristosexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1551.74Schristos# Admittedly, this is quite paranoid, since all the known shells bail
1561.74Schristos# out after a failed `exec'.
1571.74Schristos$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
1581.74Schristosas_fn_exit 255
1591.74Schristos  fi
1601.74Schristos  # We don't want this to propagate to other subprocesses.
1611.74Schristos          { _as_can_reexec=; unset _as_can_reexec;}
1621.74Schristosif test "x$CONFIG_SHELL" = x; then
1631.74Schristos  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1641.65Schristos  emulate sh
1651.65Schristos  NULLCMD=:
1661.74Schristos  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1671.74Schristos  # is contrary to our usage.  Disable this feature.
1681.74Schristos  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1691.74Schristos  setopt NO_GLOB_SUBST
1701.74Schristoselse
1711.74Schristos  case \`(set -o) 2>/dev/null\` in #(
1721.74Schristos  *posix*) :
1731.74Schristos    set -o posix ;; #(
1741.74Schristos  *) :
1751.74Schristos     ;;
1761.74Schristosesac
1771.74Schristosfi
1781.74Schristos"
1791.74Schristos  as_required="as_fn_return () { (exit \$1); }
1801.74Schristosas_fn_success () { as_fn_return 0; }
1811.74Schristosas_fn_failure () { as_fn_return 1; }
1821.74Schristosas_fn_ret_success () { return 0; }
1831.74Schristosas_fn_ret_failure () { return 1; }
1841.74Schristos
1851.74Schristosexitcode=0
1861.74Schristosas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1871.74Schristosas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1881.74Schristosas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1891.74Schristosas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1901.74Schristosif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1911.74Schristos
1921.74Schristoselse
1931.74Schristos  exitcode=1; echo positional parameters were not saved.
1941.74Schristosfi
1951.74Schristostest x\$exitcode = x0 || exit 1
1961.74Schristostest -x / || exit 1"
1971.74Schristos  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1981.74Schristos  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1991.74Schristos  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
2001.74Schristos  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
2011.74Schristostest \$(( 1 + 1 )) = 2 || exit 1"
2021.74Schristos  if (eval "$as_required") 2>/dev/null; then :
2031.74Schristos  as_have_required=yes
2041.74Schristoselse
2051.74Schristos  as_have_required=no
2061.74Schristosfi
2071.74Schristos  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
2081.74Schristos
2091.74Schristoselse
2101.74Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111.74Schristosas_found=false
2121.74Schristosfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2131.74Schristosdo
2141.74Schristos  IFS=$as_save_IFS
2151.74Schristos  test -z "$as_dir" && as_dir=.
2161.74Schristos  as_found=:
2171.74Schristos  case $as_dir in #(
2181.74Schristos	 /*)
2191.74Schristos	   for as_base in sh bash ksh sh5; do
2201.74Schristos	     # Try only shells that exist, to save several forks.
2211.74Schristos	     as_shell=$as_dir/$as_base
2221.74Schristos	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2231.74Schristos		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2241.74Schristos  CONFIG_SHELL=$as_shell as_have_required=yes
2251.74Schristos		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2261.74Schristos  break 2
2271.74Schristosfi
2281.74Schristosfi
2291.74Schristos	   done;;
2301.74Schristos       esac
2311.74Schristos  as_found=false
2321.74Schristosdone
2331.74Schristos$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2341.74Schristos	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2351.74Schristos  CONFIG_SHELL=$SHELL as_have_required=yes
2361.74Schristosfi; }
2371.74SchristosIFS=$as_save_IFS
2381.74Schristos
2391.74Schristos
2401.74Schristos      if test "x$CONFIG_SHELL" != x; then :
2411.74Schristos  export CONFIG_SHELL
2421.74Schristos             # We cannot yet assume a decent shell, so we have to provide a
2431.74Schristos# neutralization value for shells without unset; and this also
2441.74Schristos# works around shells that cannot unset nonexistent variables.
2451.74Schristos# Preserve -v and -x to the replacement shell.
2461.74SchristosBASH_ENV=/dev/null
2471.74SchristosENV=/dev/null
2481.74Schristos(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2491.74Schristoscase $- in # ((((
2501.74Schristos  *v*x* | *x*v* ) as_opts=-vx ;;
2511.74Schristos  *v* ) as_opts=-v ;;
2521.74Schristos  *x* ) as_opts=-x ;;
2531.74Schristos  * ) as_opts= ;;
2541.74Schristosesac
2551.74Schristosexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2561.74Schristos# Admittedly, this is quite paranoid, since all the known shells bail
2571.74Schristos# out after a failed `exec'.
2581.74Schristos$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
2591.74Schristosexit 255
2601.65Schristosfi
2611.61Schristos
2621.74Schristos    if test x$as_have_required = xno; then :
2631.74Schristos  $as_echo "$0: This script requires a shell more modern than all"
2641.74Schristos  $as_echo "$0: the shells that I found on your system."
2651.74Schristos  if test x${ZSH_VERSION+set} = xset ; then
2661.74Schristos    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2671.74Schristos    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2681.74Schristos  else
2691.74Schristos    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2701.74Schristos$0: lib-bug-people@NetBSD.org about your system, including
2711.74Schristos$0: any error possibly output before this message. Then
2721.74Schristos$0: install a modern shell, or manually run the script
2731.74Schristos$0: under such a shell if you do have one."
2741.74Schristos  fi
2751.74Schristos  exit 1
2761.74Schristosfi
2771.74Schristosfi
2781.74Schristosfi
2791.74SchristosSHELL=${CONFIG_SHELL-/bin/sh}
2801.74Schristosexport SHELL
2811.74Schristos# Unset more variables known to interfere with behavior of common tools.
2821.74SchristosCLICOLOR_FORCE= GREP_OPTIONS=
2831.74Schristosunset CLICOLOR_FORCE GREP_OPTIONS
2841.74Schristos
2851.74Schristos## --------------------- ##
2861.74Schristos## M4sh Shell Functions. ##
2871.74Schristos## --------------------- ##
2881.74Schristos# as_fn_unset VAR
2891.74Schristos# ---------------
2901.74Schristos# Portably unset VAR.
2911.74Schristosas_fn_unset ()
2921.74Schristos{
2931.74Schristos  { eval $1=; unset $1;}
2941.74Schristos}
2951.74Schristosas_unset=as_fn_unset
2961.74Schristos
2971.74Schristos# as_fn_set_status STATUS
2981.74Schristos# -----------------------
2991.74Schristos# Set $? to STATUS, without forking.
3001.74Schristosas_fn_set_status ()
3011.74Schristos{
3021.74Schristos  return $1
3031.74Schristos} # as_fn_set_status
3041.74Schristos
3051.74Schristos# as_fn_exit STATUS
3061.74Schristos# -----------------
3071.74Schristos# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3081.74Schristosas_fn_exit ()
3091.74Schristos{
3101.74Schristos  set +e
3111.74Schristos  as_fn_set_status $1
3121.74Schristos  exit $1
3131.74Schristos} # as_fn_exit
3141.74Schristos
3151.74Schristos# as_fn_mkdir_p
3161.74Schristos# -------------
3171.74Schristos# Create "$as_dir" as a directory, including parents if necessary.
3181.74Schristosas_fn_mkdir_p ()
3191.74Schristos{
3201.74Schristos
3211.74Schristos  case $as_dir in #(
3221.74Schristos  -*) as_dir=./$as_dir;;
3231.74Schristos  esac
3241.74Schristos  test -d "$as_dir" || eval $as_mkdir_p || {
3251.74Schristos    as_dirs=
3261.74Schristos    while :; do
3271.74Schristos      case $as_dir in #(
3281.74Schristos      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3291.74Schristos      *) as_qdir=$as_dir;;
3301.74Schristos      esac
3311.74Schristos      as_dirs="'$as_qdir' $as_dirs"
3321.74Schristos      as_dir=`$as_dirname -- "$as_dir" ||
3331.74Schristos$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3341.74Schristos	 X"$as_dir" : 'X\(//\)[^/]' \| \
3351.74Schristos	 X"$as_dir" : 'X\(//\)$' \| \
3361.74Schristos	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3371.74Schristos$as_echo X"$as_dir" |
3381.74Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3391.74Schristos	    s//\1/
3401.74Schristos	    q
3411.74Schristos	  }
3421.74Schristos	  /^X\(\/\/\)[^/].*/{
3431.74Schristos	    s//\1/
3441.74Schristos	    q
3451.74Schristos	  }
3461.74Schristos	  /^X\(\/\/\)$/{
3471.74Schristos	    s//\1/
3481.74Schristos	    q
3491.74Schristos	  }
3501.74Schristos	  /^X\(\/\).*/{
3511.74Schristos	    s//\1/
3521.74Schristos	    q
3531.74Schristos	  }
3541.74Schristos	  s/.*/./; q'`
3551.74Schristos      test -d "$as_dir" && break
3561.74Schristos    done
3571.74Schristos    test -z "$as_dirs" || eval "mkdir $as_dirs"
3581.74Schristos  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3591.74Schristos
3601.74Schristos
3611.74Schristos} # as_fn_mkdir_p
3621.74Schristos
3631.74Schristos# as_fn_executable_p FILE
3641.74Schristos# -----------------------
3651.74Schristos# Test if FILE is an executable regular file.
3661.74Schristosas_fn_executable_p ()
3671.74Schristos{
3681.74Schristos  test -f "$1" && test -x "$1"
3691.74Schristos} # as_fn_executable_p
3701.74Schristos# as_fn_append VAR VALUE
3711.74Schristos# ----------------------
3721.74Schristos# Append the text in VALUE to the end of the definition contained in VAR. Take
3731.74Schristos# advantage of any shell optimizations that allow amortized linear growth over
3741.74Schristos# repeated appends, instead of the typical quadratic growth present in naive
3751.74Schristos# implementations.
3761.74Schristosif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3771.74Schristos  eval 'as_fn_append ()
3781.74Schristos  {
3791.74Schristos    eval $1+=\$2
3801.74Schristos  }'
3811.74Schristoselse
3821.74Schristos  as_fn_append ()
3831.74Schristos  {
3841.74Schristos    eval $1=\$$1\$2
3851.74Schristos  }
3861.74Schristosfi # as_fn_append
3871.74Schristos
3881.74Schristos# as_fn_arith ARG...
3891.74Schristos# ------------------
3901.74Schristos# Perform arithmetic evaluation on the ARGs, and store the result in the
3911.74Schristos# global $as_val. Take advantage of shells that can avoid forks. The arguments
3921.74Schristos# must be portable across $(()) and expr.
3931.74Schristosif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3941.74Schristos  eval 'as_fn_arith ()
3951.74Schristos  {
3961.74Schristos    as_val=$(( $* ))
3971.74Schristos  }'
3981.74Schristoselse
3991.74Schristos  as_fn_arith ()
4001.74Schristos  {
4011.74Schristos    as_val=`expr "$@" || test $? -eq 1`
4021.74Schristos  }
4031.74Schristosfi # as_fn_arith
4041.74Schristos
4051.74Schristos
4061.74Schristos# as_fn_error STATUS ERROR [LINENO LOG_FD]
4071.74Schristos# ----------------------------------------
4081.74Schristos# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4091.74Schristos# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4101.74Schristos# script with STATUS, using 1 if that was 0.
4111.74Schristosas_fn_error ()
4121.74Schristos{
4131.74Schristos  as_status=$1; test $as_status -eq 0 && as_status=1
4141.74Schristos  if test "$4"; then
4151.74Schristos    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4161.74Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4171.74Schristos  fi
4181.74Schristos  $as_echo "$as_me: error: $2" >&2
4191.74Schristos  as_fn_exit $as_status
4201.74Schristos} # as_fn_error
4211.61Schristos
4221.74Schristosif expr a : '\(a\)' >/dev/null 2>&1 &&
4231.74Schristos   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4241.1Stv  as_expr=expr
4251.1Stvelse
4261.1Stv  as_expr=false
4271.1Stvfi
4281.1Stv
4291.74Schristosif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4301.74Schristos  as_basename=basename
4311.74Schristoselse
4321.74Schristos  as_basename=false
4331.74Schristosfi
4341.74Schristos
4351.74Schristosif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4361.74Schristos  as_dirname=dirname
4371.74Schristoselse
4381.74Schristos  as_dirname=false
4391.74Schristosfi
4401.74Schristos
4411.74Schristosas_me=`$as_basename -- "$0" ||
4421.74Schristos$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4431.74Schristos	 X"$0" : 'X\(//\)$' \| \
4441.74Schristos	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4451.74Schristos$as_echo X/"$0" |
4461.74Schristos    sed '/^.*\/\([^/][^/]*\)\/*$/{
4471.74Schristos	    s//\1/
4481.74Schristos	    q
4491.74Schristos	  }
4501.74Schristos	  /^X\/\(\/\/\)$/{
4511.74Schristos	    s//\1/
4521.74Schristos	    q
4531.74Schristos	  }
4541.74Schristos	  /^X\/\(\/\).*/{
4551.74Schristos	    s//\1/
4561.74Schristos	    q
4571.74Schristos	  }
4581.74Schristos	  s/.*/./; q'`
4591.74Schristos
4601.74Schristos# Avoid depending upon Character Ranges.
4611.74Schristosas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4621.74Schristosas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4631.74Schristosas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4641.74Schristosas_cr_digits='0123456789'
4651.74Schristosas_cr_alnum=$as_cr_Letters$as_cr_digits
4661.74Schristos
4671.74Schristos
4681.74Schristos  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4691.74Schristos  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4701.74Schristos  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4711.74Schristos  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4721.74Schristos  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4731.74Schristos  sed -n '
4741.74Schristos    p
4751.74Schristos    /[$]LINENO/=
4761.74Schristos  ' <$as_myself |
4771.74Schristos    sed '
4781.74Schristos      s/[$]LINENO.*/&-/
4791.74Schristos      t lineno
4801.74Schristos      b
4811.74Schristos      :lineno
4821.74Schristos      N
4831.74Schristos      :loop
4841.74Schristos      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4851.74Schristos      t loop
4861.74Schristos      s/-\n.*//
4871.74Schristos    ' >$as_me.lineno &&
4881.74Schristos  chmod +x "$as_me.lineno" ||
4891.74Schristos    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4901.74Schristos
4911.74Schristos  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
4921.74Schristos  # already done that, so ensure we don't try to do so again and fall
4931.74Schristos  # in an infinite loop.  This has already happened in practice.
4941.74Schristos  _as_can_reexec=no; export _as_can_reexec
4951.74Schristos  # Don't try to exec as it changes $[0], causing all sort of problems
4961.74Schristos  # (the dirname of $[0] is not the place where we might find the
4971.74Schristos  # original and so on.  Autoconf is especially sensitive to this).
4981.74Schristos  . "./$as_me.lineno"
4991.74Schristos  # Exit status is that of the last command.
5001.74Schristos  exit
5011.74Schristos}
5021.74Schristos
5031.74SchristosECHO_C= ECHO_N= ECHO_T=
5041.74Schristoscase `echo -n x` in #(((((
5051.74Schristos-n*)
5061.74Schristos  case `echo 'xy\c'` in
5071.74Schristos  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5081.74Schristos  xy)  ECHO_C='\c';;
5091.74Schristos  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5101.74Schristos       ECHO_T='	';;
5111.74Schristos  esac;;
5121.74Schristos*)
5131.74Schristos  ECHO_N='-n';;
5141.74Schristosesac
5151.74Schristos
5161.1Stvrm -f conf$$ conf$$.exe conf$$.file
5171.74Schristosif test -d conf$$.dir; then
5181.74Schristos  rm -f conf$$.dir/conf$$.file
5191.74Schristoselse
5201.74Schristos  rm -f conf$$.dir
5211.74Schristos  mkdir conf$$.dir 2>/dev/null
5221.74Schristosfi
5231.74Schristosif (echo >conf$$.file) 2>/dev/null; then
5241.74Schristos  if ln -s conf$$.file conf$$ 2>/dev/null; then
5251.74Schristos    as_ln_s='ln -s'
5261.74Schristos    # ... but there are two gotchas:
5271.74Schristos    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5281.74Schristos    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5291.74Schristos    # In both cases, we have to default to `cp -pR'.
5301.74Schristos    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5311.74Schristos      as_ln_s='cp -pR'
5321.74Schristos  elif ln conf$$.file conf$$ 2>/dev/null; then
5331.74Schristos    as_ln_s=ln
5341.66Stsutsui  else
5351.74Schristos    as_ln_s='cp -pR'
5361.66Stsutsui  fi
5371.1Stvelse
5381.74Schristos  as_ln_s='cp -pR'
5391.1Stvfi
5401.74Schristosrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5411.74Schristosrmdir conf$$.dir 2>/dev/null
5421.63Sapb
5431.74Schristosif mkdir -p . 2>/dev/null; then
5441.74Schristos  as_mkdir_p='mkdir -p "$as_dir"'
5451.61Schristoselse
5461.74Schristos  test -d ./-p && rmdir ./-p
5471.74Schristos  as_mkdir_p=false
5481.61Schristosfi
5491.65Schristos
5501.74Schristosas_test_x='test -x'
5511.74Schristosas_executable_p=as_fn_executable_p
5521.74Schristos
5531.74Schristos# Sed expression to map a string onto a valid CPP name.
5541.74Schristosas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5551.74Schristos
5561.74Schristos# Sed expression to map a string onto a valid variable name.
5571.74Schristosas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5581.65Schristos
5591.61Schristos
5601.74Schristostest -n "$DJDIR" || exec 7<&0 </dev/null
5611.74Schristosexec 6>&1
5621.1Stv
5631.1Stv# Name of the host.
5641.74Schristos# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5651.1Stv# so uname gets run too.
5661.1Stvac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5671.1Stv
5681.1Stv#
5691.1Stv# Initializations.
5701.1Stv#
5711.1Stvac_default_prefix=/usr/local
5721.74Schristosac_clean_files=
5731.74Schristosac_config_libobj_dir=.
5741.74SchristosLIBOBJS=
5751.1Stvcross_compiling=no
5761.1Stvsubdirs=
5771.74SchristosMFLAGS=
5781.74SchristosMAKEFLAGS=
5791.1Stv
5801.74Schristos# Identity of this package.
5811.74SchristosPACKAGE_NAME='libnbcompat'
5821.74SchristosPACKAGE_TARNAME='libnbcompat'
5831.74SchristosPACKAGE_VERSION='noversion'
5841.74SchristosPACKAGE_STRING='libnbcompat noversion'
5851.74SchristosPACKAGE_BUGREPORT='lib-bug-people@NetBSD.org'
5861.74SchristosPACKAGE_URL=''
5871.1Stv
5881.1Stv# Factoring default headers for most tests.
5891.1Stvac_includes_default="\
5901.1Stv#include <stdio.h>
5911.74Schristos#ifdef HAVE_SYS_TYPES_H
5921.1Stv# include <sys/types.h>
5931.1Stv#endif
5941.74Schristos#ifdef HAVE_SYS_STAT_H
5951.1Stv# include <sys/stat.h>
5961.1Stv#endif
5971.74Schristos#ifdef STDC_HEADERS
5981.1Stv# include <stdlib.h>
5991.1Stv# include <stddef.h>
6001.1Stv#else
6011.74Schristos# ifdef HAVE_STDLIB_H
6021.1Stv#  include <stdlib.h>
6031.1Stv# endif
6041.1Stv#endif
6051.74Schristos#ifdef HAVE_STRING_H
6061.74Schristos# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6071.1Stv#  include <memory.h>
6081.1Stv# endif
6091.1Stv# include <string.h>
6101.1Stv#endif
6111.74Schristos#ifdef HAVE_STRINGS_H
6121.1Stv# include <strings.h>
6131.1Stv#endif
6141.74Schristos#ifdef HAVE_INTTYPES_H
6151.1Stv# include <inttypes.h>
6161.1Stv#endif
6171.74Schristos#ifdef HAVE_STDINT_H
6181.74Schristos# include <stdint.h>
6191.74Schristos#endif
6201.74Schristos#ifdef HAVE_UNISTD_H
6211.1Stv# include <unistd.h>
6221.1Stv#endif"
6231.1Stv
6241.74Schristosac_subst_vars='LTLIBOBJS
6251.74SchristosLIBOBJS
6261.74SchristosHAVE_PTHREAD_H
6271.74SchristosALLOCA
6281.74SchristosBSHELL
6291.74SchristosEGREP
6301.74SchristosGREP
6311.74SchristosCPP
6321.74SchristosOBJEXT
6331.74SchristosEXEEXT
6341.74Schristosac_ct_CC
6351.74SchristosCPPFLAGS
6361.74SchristosLDFLAGS
6371.74SchristosCFLAGS
6381.74SchristosCC
6391.74Schristostarget_alias
6401.74Schristoshost_alias
6411.74Schristosbuild_alias
6421.74SchristosLIBS
6431.74SchristosECHO_T
6441.74SchristosECHO_N
6451.74SchristosECHO_C
6461.74SchristosDEFS
6471.74Schristosmandir
6481.74Schristoslocaledir
6491.74Schristoslibdir
6501.74Schristospsdir
6511.74Schristospdfdir
6521.74Schristosdvidir
6531.74Schristoshtmldir
6541.74Schristosinfodir
6551.74Schristosdocdir
6561.74Schristosoldincludedir
6571.74Schristosincludedir
6581.74Schristoslocalstatedir
6591.74Schristossharedstatedir
6601.74Schristossysconfdir
6611.74Schristosdatadir
6621.74Schristosdatarootdir
6631.74Schristoslibexecdir
6641.74Schristossbindir
6651.74Schristosbindir
6661.74Schristosprogram_transform_name
6671.74Schristosprefix
6681.74Schristosexec_prefix
6691.74SchristosPACKAGE_URL
6701.74SchristosPACKAGE_BUGREPORT
6711.74SchristosPACKAGE_STRING
6721.74SchristosPACKAGE_VERSION
6731.74SchristosPACKAGE_TARNAME
6741.74SchristosPACKAGE_NAME
6751.74SchristosPATH_SEPARATOR
6761.74SchristosSHELL'
6771.74Schristosac_subst_files=''
6781.74Schristosac_user_opts='
6791.74Schristosenable_option_checking
6801.74Schristos'
6811.74Schristos      ac_precious_vars='build_alias
6821.74Schristoshost_alias
6831.74Schristostarget_alias
6841.74SchristosCC
6851.74SchristosCFLAGS
6861.74SchristosLDFLAGS
6871.74SchristosLIBS
6881.74SchristosCPPFLAGS
6891.74SchristosCPP'
6901.74Schristos
6911.74Schristos
6921.1Stv# Initialize some variables set by options.
6931.1Stvac_init_help=
6941.1Stvac_init_version=false
6951.74Schristosac_unrecognized_opts=
6961.74Schristosac_unrecognized_sep=
6971.1Stv# The variables have the same names as the options, with
6981.1Stv# dashes changed to underlines.
6991.1Stvcache_file=/dev/null
7001.1Stvexec_prefix=NONE
7011.1Stvno_create=
7021.1Stvno_recursion=
7031.1Stvprefix=NONE
7041.1Stvprogram_prefix=NONE
7051.1Stvprogram_suffix=NONE
7061.1Stvprogram_transform_name=s,x,x,
7071.1Stvsilent=
7081.1Stvsite=
7091.1Stvsrcdir=
7101.1Stvverbose=
7111.1Stvx_includes=NONE
7121.1Stvx_libraries=NONE
7131.1Stv
7141.1Stv# Installation directory options.
7151.1Stv# These are left unexpanded so users can "make install exec_prefix=/foo"
7161.1Stv# and all the variables that are supposed to be based on exec_prefix
7171.1Stv# by default will actually change.
7181.1Stv# Use braces instead of parens because sh, perl, etc. also accept them.
7191.74Schristos# (The list follows the same order as the GNU Coding Standards.)
7201.1Stvbindir='${exec_prefix}/bin'
7211.1Stvsbindir='${exec_prefix}/sbin'
7221.1Stvlibexecdir='${exec_prefix}/libexec'
7231.74Schristosdatarootdir='${prefix}/share'
7241.74Schristosdatadir='${datarootdir}'
7251.1Stvsysconfdir='${prefix}/etc'
7261.1Stvsharedstatedir='${prefix}/com'
7271.1Stvlocalstatedir='${prefix}/var'
7281.1Stvincludedir='${prefix}/include'
7291.1Stvoldincludedir='/usr/include'
7301.74Schristosdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7311.74Schristosinfodir='${datarootdir}/info'
7321.74Schristoshtmldir='${docdir}'
7331.74Schristosdvidir='${docdir}'
7341.74Schristospdfdir='${docdir}'
7351.74Schristospsdir='${docdir}'
7361.74Schristoslibdir='${exec_prefix}/lib'
7371.74Schristoslocaledir='${datarootdir}/locale'
7381.74Schristosmandir='${datarootdir}/man'
7391.63Sapb
7401.1Stvac_prev=
7411.74Schristosac_dashdash=
7421.1Stvfor ac_option
7431.1Stvdo
7441.1Stv  # If the previous option needs an argument, assign it.
7451.1Stv  if test -n "$ac_prev"; then
7461.74Schristos    eval $ac_prev=\$ac_option
7471.1Stv    ac_prev=
7481.1Stv    continue
7491.1Stv  fi
7501.1Stv
7511.74Schristos  case $ac_option in
7521.74Schristos  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
7531.74Schristos  *=)   ac_optarg= ;;
7541.74Schristos  *)    ac_optarg=yes ;;
7551.74Schristos  esac
7561.1Stv
7571.1Stv  # Accept the important Cygnus configure options, so we can diagnose typos.
7581.1Stv
7591.74Schristos  case $ac_dashdash$ac_option in
7601.74Schristos  --)
7611.74Schristos    ac_dashdash=yes ;;
7621.1Stv
7631.1Stv  -bindir | --bindir | --bindi | --bind | --bin | --bi)
7641.1Stv    ac_prev=bindir ;;
7651.1Stv  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
7661.1Stv    bindir=$ac_optarg ;;
7671.1Stv
7681.1Stv  -build | --build | --buil | --bui | --bu)
7691.1Stv    ac_prev=build_alias ;;
7701.1Stv  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
7711.1Stv    build_alias=$ac_optarg ;;
7721.1Stv
7731.1Stv  -cache-file | --cache-file | --cache-fil | --cache-fi \
7741.1Stv  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7751.1Stv    ac_prev=cache_file ;;
7761.1Stv  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7771.1Stv  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7781.1Stv    cache_file=$ac_optarg ;;
7791.1Stv
7801.1Stv  --config-cache | -C)
7811.1Stv    cache_file=config.cache ;;
7821.1Stv
7831.74Schristos  -datadir | --datadir | --datadi | --datad)
7841.1Stv    ac_prev=datadir ;;
7851.74Schristos  -datadir=* | --datadir=* | --datadi=* | --datad=*)
7861.1Stv    datadir=$ac_optarg ;;
7871.1Stv
7881.74Schristos  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
7891.74Schristos  | --dataroo | --dataro | --datar)
7901.74Schristos    ac_prev=datarootdir ;;
7911.74Schristos  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
7921.74Schristos  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
7931.74Schristos    datarootdir=$ac_optarg ;;
7941.74Schristos
7951.1Stv  -disable-* | --disable-*)
7961.74Schristos    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
7971.1Stv    # Reject names that are not valid shell variable names.
7981.74Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
7991.74Schristos      as_fn_error $? "invalid feature name: $ac_useropt"
8001.74Schristos    ac_useropt_orig=$ac_useropt
8011.74Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8021.74Schristos    case $ac_user_opts in
8031.74Schristos      *"
8041.74Schristos"enable_$ac_useropt"
8051.74Schristos"*) ;;
8061.74Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8071.74Schristos	 ac_unrecognized_sep=', ';;
8081.74Schristos    esac
8091.74Schristos    eval enable_$ac_useropt=no ;;
8101.74Schristos
8111.74Schristos  -docdir | --docdir | --docdi | --doc | --do)
8121.74Schristos    ac_prev=docdir ;;
8131.74Schristos  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8141.74Schristos    docdir=$ac_optarg ;;
8151.74Schristos
8161.74Schristos  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8171.74Schristos    ac_prev=dvidir ;;
8181.74Schristos  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
8191.74Schristos    dvidir=$ac_optarg ;;
8201.1Stv
8211.1Stv  -enable-* | --enable-*)
8221.74Schristos    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8231.1Stv    # Reject names that are not valid shell variable names.
8241.74Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8251.74Schristos      as_fn_error $? "invalid feature name: $ac_useropt"
8261.74Schristos    ac_useropt_orig=$ac_useropt
8271.74Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8281.74Schristos    case $ac_user_opts in
8291.74Schristos      *"
8301.74Schristos"enable_$ac_useropt"
8311.74Schristos"*) ;;
8321.74Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8331.74Schristos	 ac_unrecognized_sep=', ';;
8341.66Stsutsui    esac
8351.74Schristos    eval enable_$ac_useropt=\$ac_optarg ;;
8361.1Stv
8371.1Stv  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8381.1Stv  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8391.1Stv  | --exec | --exe | --ex)
8401.1Stv    ac_prev=exec_prefix ;;
8411.1Stv  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8421.1Stv  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8431.1Stv  | --exec=* | --exe=* | --ex=*)
8441.1Stv    exec_prefix=$ac_optarg ;;
8451.1Stv
8461.1Stv  -gas | --gas | --ga | --g)
8471.1Stv    # Obsolete; use --with-gas.
8481.1Stv    with_gas=yes ;;
8491.1Stv
8501.1Stv  -help | --help | --hel | --he | -h)
8511.1Stv    ac_init_help=long ;;
8521.1Stv  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
8531.1Stv    ac_init_help=recursive ;;
8541.1Stv  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
8551.1Stv    ac_init_help=short ;;
8561.1Stv
8571.1Stv  -host | --host | --hos | --ho)
8581.1Stv    ac_prev=host_alias ;;
8591.1Stv  -host=* | --host=* | --hos=* | --ho=*)
8601.1Stv    host_alias=$ac_optarg ;;
8611.1Stv
8621.74Schristos  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
8631.74Schristos    ac_prev=htmldir ;;
8641.74Schristos  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
8651.74Schristos  | --ht=*)
8661.74Schristos    htmldir=$ac_optarg ;;
8671.74Schristos
8681.1Stv  -includedir | --includedir | --includedi | --included | --include \
8691.1Stv  | --includ | --inclu | --incl | --inc)
8701.1Stv    ac_prev=includedir ;;
8711.1Stv  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
8721.1Stv  | --includ=* | --inclu=* | --incl=* | --inc=*)
8731.1Stv    includedir=$ac_optarg ;;
8741.1Stv
8751.1Stv  -infodir | --infodir | --infodi | --infod | --info | --inf)
8761.1Stv    ac_prev=infodir ;;
8771.1Stv  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
8781.1Stv    infodir=$ac_optarg ;;
8791.1Stv
8801.1Stv  -libdir | --libdir | --libdi | --libd)
8811.1Stv    ac_prev=libdir ;;
8821.1Stv  -libdir=* | --libdir=* | --libdi=* | --libd=*)
8831.1Stv    libdir=$ac_optarg ;;
8841.1Stv
8851.1Stv  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
8861.1Stv  | --libexe | --libex | --libe)
8871.1Stv    ac_prev=libexecdir ;;
8881.1Stv  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
8891.1Stv  | --libexe=* | --libex=* | --libe=*)
8901.1Stv    libexecdir=$ac_optarg ;;
8911.1Stv
8921.74Schristos  -localedir | --localedir | --localedi | --localed | --locale)
8931.74Schristos    ac_prev=localedir ;;
8941.74Schristos  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
8951.74Schristos    localedir=$ac_optarg ;;
8961.74Schristos
8971.1Stv  -localstatedir | --localstatedir | --localstatedi | --localstated \
8981.74Schristos  | --localstate | --localstat | --localsta | --localst | --locals)
8991.1Stv    ac_prev=localstatedir ;;
9001.1Stv  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9011.74Schristos  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9021.1Stv    localstatedir=$ac_optarg ;;
9031.1Stv
9041.1Stv  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9051.1Stv    ac_prev=mandir ;;
9061.1Stv  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9071.1Stv    mandir=$ac_optarg ;;
9081.1Stv
9091.1Stv  -nfp | --nfp | --nf)
9101.1Stv    # Obsolete; use --without-fp.
9111.1Stv    with_fp=no ;;
9121.1Stv
9131.1Stv  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9141.74Schristos  | --no-cr | --no-c | -n)
9151.1Stv    no_create=yes ;;
9161.1Stv
9171.1Stv  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9181.1Stv  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9191.1Stv    no_recursion=yes ;;
9201.1Stv
9211.1Stv  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9221.1Stv  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9231.1Stv  | --oldin | --oldi | --old | --ol | --o)
9241.1Stv    ac_prev=oldincludedir ;;
9251.1Stv  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9261.1Stv  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9271.1Stv  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9281.1Stv    oldincludedir=$ac_optarg ;;
9291.1Stv
9301.1Stv  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9311.1Stv    ac_prev=prefix ;;
9321.1Stv  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9331.1Stv    prefix=$ac_optarg ;;
9341.1Stv
9351.1Stv  -program-prefix | --program-prefix | --program-prefi | --program-pref \
9361.1Stv  | --program-pre | --program-pr | --program-p)
9371.1Stv    ac_prev=program_prefix ;;
9381.1Stv  -program-prefix=* | --program-prefix=* | --program-prefi=* \
9391.1Stv  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9401.1Stv    program_prefix=$ac_optarg ;;
9411.1Stv
9421.1Stv  -program-suffix | --program-suffix | --program-suffi | --program-suff \
9431.1Stv  | --program-suf | --program-su | --program-s)
9441.1Stv    ac_prev=program_suffix ;;
9451.1Stv  -program-suffix=* | --program-suffix=* | --program-suffi=* \
9461.1Stv  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9471.1Stv    program_suffix=$ac_optarg ;;
9481.1Stv
9491.1Stv  -program-transform-name | --program-transform-name \
9501.1Stv  | --program-transform-nam | --program-transform-na \
9511.1Stv  | --program-transform-n | --program-transform- \
9521.1Stv  | --program-transform | --program-transfor \
9531.1Stv  | --program-transfo | --program-transf \
9541.1Stv  | --program-trans | --program-tran \
9551.1Stv  | --progr-tra | --program-tr | --program-t)
9561.1Stv    ac_prev=program_transform_name ;;
9571.1Stv  -program-transform-name=* | --program-transform-name=* \
9581.1Stv  | --program-transform-nam=* | --program-transform-na=* \
9591.1Stv  | --program-transform-n=* | --program-transform-=* \
9601.1Stv  | --program-transform=* | --program-transfor=* \
9611.1Stv  | --program-transfo=* | --program-transf=* \
9621.1Stv  | --program-trans=* | --program-tran=* \
9631.1Stv  | --progr-tra=* | --program-tr=* | --program-t=*)
9641.1Stv    program_transform_name=$ac_optarg ;;
9651.1Stv
9661.74Schristos  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
9671.74Schristos    ac_prev=pdfdir ;;
9681.74Schristos  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
9691.74Schristos    pdfdir=$ac_optarg ;;
9701.74Schristos
9711.74Schristos  -psdir | --psdir | --psdi | --psd | --ps)
9721.74Schristos    ac_prev=psdir ;;
9731.74Schristos  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
9741.74Schristos    psdir=$ac_optarg ;;
9751.74Schristos
9761.1Stv  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9771.1Stv  | -silent | --silent | --silen | --sile | --sil)
9781.1Stv    silent=yes ;;
9791.1Stv
9801.1Stv  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
9811.1Stv    ac_prev=sbindir ;;
9821.1Stv  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
9831.1Stv  | --sbi=* | --sb=*)
9841.1Stv    sbindir=$ac_optarg ;;
9851.1Stv
9861.1Stv  -sharedstatedir | --sharedstatedir | --sharedstatedi \
9871.1Stv  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
9881.1Stv  | --sharedst | --shareds | --shared | --share | --shar \
9891.1Stv  | --sha | --sh)
9901.1Stv    ac_prev=sharedstatedir ;;
9911.1Stv  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
9921.1Stv  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
9931.1Stv  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
9941.1Stv  | --sha=* | --sh=*)
9951.1Stv    sharedstatedir=$ac_optarg ;;
9961.1Stv
9971.1Stv  -site | --site | --sit)
9981.1Stv    ac_prev=site ;;
9991.1Stv  -site=* | --site=* | --sit=*)
10001.1Stv    site=$ac_optarg ;;
10011.1Stv
10021.1Stv  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10031.1Stv    ac_prev=srcdir ;;
10041.1Stv  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10051.1Stv    srcdir=$ac_optarg ;;
10061.1Stv
10071.1Stv  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10081.1Stv  | --syscon | --sysco | --sysc | --sys | --sy)
10091.1Stv    ac_prev=sysconfdir ;;
10101.1Stv  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10111.1Stv  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10121.1Stv    sysconfdir=$ac_optarg ;;
10131.1Stv
10141.1Stv  -target | --target | --targe | --targ | --tar | --ta | --t)
10151.1Stv    ac_prev=target_alias ;;
10161.1Stv  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10171.1Stv    target_alias=$ac_optarg ;;
10181.1Stv
10191.1Stv  -v | -verbose | --verbose | --verbos | --verbo | --verb)
10201.1Stv    verbose=yes ;;
10211.1Stv
10221.1Stv  -version | --version | --versio | --versi | --vers | -V)
10231.1Stv    ac_init_version=: ;;
10241.1Stv
10251.1Stv  -with-* | --with-*)
10261.74Schristos    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10271.1Stv    # Reject names that are not valid shell variable names.
10281.74Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10291.74Schristos      as_fn_error $? "invalid package name: $ac_useropt"
10301.74Schristos    ac_useropt_orig=$ac_useropt
10311.74Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10321.74Schristos    case $ac_user_opts in
10331.74Schristos      *"
10341.74Schristos"with_$ac_useropt"
10351.74Schristos"*) ;;
10361.74Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10371.74Schristos	 ac_unrecognized_sep=', ';;
10381.66Stsutsui    esac
10391.74Schristos    eval with_$ac_useropt=\$ac_optarg ;;
10401.1Stv
10411.1Stv  -without-* | --without-*)
10421.74Schristos    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10431.1Stv    # Reject names that are not valid shell variable names.
10441.74Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10451.74Schristos      as_fn_error $? "invalid package name: $ac_useropt"
10461.74Schristos    ac_useropt_orig=$ac_useropt
10471.74Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10481.74Schristos    case $ac_user_opts in
10491.74Schristos      *"
10501.74Schristos"with_$ac_useropt"
10511.74Schristos"*) ;;
10521.74Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
10531.74Schristos	 ac_unrecognized_sep=', ';;
10541.74Schristos    esac
10551.74Schristos    eval with_$ac_useropt=no ;;
10561.1Stv
10571.1Stv  --x)
10581.1Stv    # Obsolete; use --with-x.
10591.1Stv    with_x=yes ;;
10601.1Stv
10611.1Stv  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
10621.1Stv  | --x-incl | --x-inc | --x-in | --x-i)
10631.1Stv    ac_prev=x_includes ;;
10641.1Stv  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
10651.1Stv  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
10661.1Stv    x_includes=$ac_optarg ;;
10671.1Stv
10681.1Stv  -x-libraries | --x-libraries | --x-librarie | --x-librari \
10691.1Stv  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
10701.1Stv    ac_prev=x_libraries ;;
10711.1Stv  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
10721.1Stv  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
10731.1Stv    x_libraries=$ac_optarg ;;
10741.1Stv
10751.74Schristos  -*) as_fn_error $? "unrecognized option: \`$ac_option'
10761.74SchristosTry \`$0 --help' for more information"
10771.1Stv    ;;
10781.1Stv
10791.1Stv  *=*)
10801.1Stv    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
10811.1Stv    # Reject names that are not valid shell variable names.
10821.74Schristos    case $ac_envvar in #(
10831.74Schristos      '' | [0-9]* | *[!_$as_cr_alnum]* )
10841.74Schristos      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
10851.74Schristos    esac
10861.74Schristos    eval $ac_envvar=\$ac_optarg
10871.1Stv    export $ac_envvar ;;
10881.1Stv
10891.1Stv  *)
10901.1Stv    # FIXME: should be removed in autoconf 3.0.
10911.74Schristos    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
10921.1Stv    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
10931.74Schristos      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
10941.74Schristos    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
10951.1Stv    ;;
10961.1Stv
10971.1Stv  esac
10981.1Stvdone
10991.1Stv
11001.1Stvif test -n "$ac_prev"; then
11011.1Stv  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11021.74Schristos  as_fn_error $? "missing argument to $ac_option"
11031.74Schristosfi
11041.74Schristos
11051.74Schristosif test -n "$ac_unrecognized_opts"; then
11061.74Schristos  case $enable_option_checking in
11071.74Schristos    no) ;;
11081.74Schristos    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11091.74Schristos    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11101.74Schristos  esac
11111.1Stvfi
11121.1Stv
11131.74Schristos# Check all directory arguments for consistency.
11141.74Schristosfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11151.74Schristos		datadir sysconfdir sharedstatedir localstatedir includedir \
11161.74Schristos		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11171.74Schristos		libdir localedir mandir
11181.66Stsutsuido
11191.74Schristos  eval ac_val=\$$ac_var
11201.74Schristos  # Remove trailing slashes.
11211.66Stsutsui  case $ac_val in
11221.74Schristos    */ )
11231.74Schristos      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11241.74Schristos      eval $ac_var=\$ac_val;;
11251.66Stsutsui  esac
11261.74Schristos  # Be sure to have absolute directory names.
11271.1Stv  case $ac_val in
11281.74Schristos    [\\/$]* | ?:[\\/]* )  continue;;
11291.74Schristos    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11301.1Stv  esac
11311.74Schristos  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
11321.1Stvdone
11331.1Stv
11341.1Stv# There might be people who depend on the old broken behavior: `$host'
11351.1Stv# used to hold the argument of --host etc.
11361.74Schristos# FIXME: To remove some day.
11371.1Stvbuild=$build_alias
11381.1Stvhost=$host_alias
11391.1Stvtarget=$target_alias
11401.1Stv
11411.74Schristos# FIXME: To remove some day.
11421.1Stvif test "x$host_alias" != x; then
11431.1Stv  if test "x$build_alias" = x; then
11441.1Stv    cross_compiling=maybe
11451.1Stv  elif test "x$build_alias" != "x$host_alias"; then
11461.1Stv    cross_compiling=yes
11471.1Stv  fi
11481.1Stvfi
11491.1Stv
11501.1Stvac_tool_prefix=
11511.1Stvtest -n "$host_alias" && ac_tool_prefix=$host_alias-
11521.1Stv
11531.1Stvtest "$silent" = yes && exec 6>/dev/null
11541.1Stv
11551.74Schristos
11561.74Schristosac_pwd=`pwd` && test -n "$ac_pwd" &&
11571.74Schristosac_ls_di=`ls -di .` &&
11581.74Schristosac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
11591.74Schristos  as_fn_error $? "working directory cannot be determined"
11601.74Schristostest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
11611.74Schristos  as_fn_error $? "pwd does not report name of working directory"
11621.74Schristos
11631.74Schristos
11641.1Stv# Find the source files, if location was not specified.
11651.1Stvif test -z "$srcdir"; then
11661.1Stv  ac_srcdir_defaulted=yes
11671.74Schristos  # Try the directory containing this script, then the parent directory.
11681.74Schristos  ac_confdir=`$as_dirname -- "$as_myself" ||
11691.74Schristos$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11701.74Schristos	 X"$as_myself" : 'X\(//\)[^/]' \| \
11711.74Schristos	 X"$as_myself" : 'X\(//\)$' \| \
11721.74Schristos	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
11731.74Schristos$as_echo X"$as_myself" |
11741.74Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11751.74Schristos	    s//\1/
11761.74Schristos	    q
11771.74Schristos	  }
11781.74Schristos	  /^X\(\/\/\)[^/].*/{
11791.74Schristos	    s//\1/
11801.74Schristos	    q
11811.74Schristos	  }
11821.74Schristos	  /^X\(\/\/\)$/{
11831.74Schristos	    s//\1/
11841.74Schristos	    q
11851.74Schristos	  }
11861.74Schristos	  /^X\(\/\).*/{
11871.74Schristos	    s//\1/
11881.74Schristos	    q
11891.74Schristos	  }
11901.74Schristos	  s/.*/./; q'`
11911.1Stv  srcdir=$ac_confdir
11921.74Schristos  if test ! -r "$srcdir/$ac_unique_file"; then
11931.1Stv    srcdir=..
11941.1Stv  fi
11951.1Stvelse
11961.1Stv  ac_srcdir_defaulted=no
11971.1Stvfi
11981.74Schristosif test ! -r "$srcdir/$ac_unique_file"; then
11991.74Schristos  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12001.74Schristos  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12011.74Schristosfi
12021.74Schristosac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12031.74Schristosac_abs_confdir=`(
12041.74Schristos	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12051.74Schristos	pwd)`
12061.74Schristos# When building in place, set srcdir=.
12071.74Schristosif test "$ac_abs_confdir" = "$ac_pwd"; then
12081.74Schristos  srcdir=.
12091.74Schristosfi
12101.74Schristos# Remove unnecessary trailing slashes from srcdir.
12111.74Schristos# Double slashes in file names in object file debugging info
12121.74Schristos# mess up M-x gdb in Emacs.
12131.74Schristoscase $srcdir in
12141.74Schristos*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12151.74Schristosesac
12161.74Schristosfor ac_var in $ac_precious_vars; do
12171.74Schristos  eval ac_env_${ac_var}_set=\${${ac_var}+set}
12181.74Schristos  eval ac_env_${ac_var}_value=\$${ac_var}
12191.74Schristos  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12201.74Schristos  eval ac_cv_env_${ac_var}_value=\$${ac_var}
12211.74Schristosdone
12221.1Stv
12231.1Stv#
12241.1Stv# Report the --help message.
12251.1Stv#
12261.1Stvif test "$ac_init_help" = "long"; then
12271.1Stv  # Omit some internal or obsolete options to make the list less imposing.
12281.1Stv  # This message is too long to be a string in the A/UX 3.1 sh.
12291.74Schristos  cat <<_ACEOF
12301.1Stv\`configure' configures libnbcompat noversion to adapt to many kinds of systems.
12311.1Stv
12321.1StvUsage: $0 [OPTION]... [VAR=VALUE]...
12331.1Stv
12341.1StvTo assign environment variables (e.g., CC, CFLAGS...), specify them as
12351.1StvVAR=VALUE.  See below for descriptions of some of the useful variables.
12361.1Stv
12371.1StvDefaults for the options are specified in brackets.
12381.1Stv
12391.1StvConfiguration:
12401.1Stv  -h, --help              display this help and exit
12411.1Stv      --help=short        display options specific to this package
12421.1Stv      --help=recursive    display the short help of all the included packages
12431.1Stv  -V, --version           display version information and exit
12441.74Schristos  -q, --quiet, --silent   do not print \`checking ...' messages
12451.1Stv      --cache-file=FILE   cache test results in FILE [disabled]
12461.1Stv  -C, --config-cache      alias for \`--cache-file=config.cache'
12471.1Stv  -n, --no-create         do not create output files
12481.1Stv      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
12491.1Stv
12501.1StvInstallation directories:
12511.1Stv  --prefix=PREFIX         install architecture-independent files in PREFIX
12521.66Stsutsui                          [$ac_default_prefix]
12531.1Stv  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
12541.66Stsutsui                          [PREFIX]
12551.1Stv
12561.1StvBy default, \`make install' will install all the files in
12571.1Stv\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
12581.1Stvan installation prefix other than \`$ac_default_prefix' using \`--prefix',
12591.1Stvfor instance \`--prefix=\$HOME'.
12601.1Stv
12611.1StvFor better control, use the options below.
12621.1Stv
12631.1StvFine tuning of the installation directories:
12641.74Schristos  --bindir=DIR            user executables [EPREFIX/bin]
12651.74Schristos  --sbindir=DIR           system admin executables [EPREFIX/sbin]
12661.74Schristos  --libexecdir=DIR        program executables [EPREFIX/libexec]
12671.74Schristos  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
12681.74Schristos  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
12691.74Schristos  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
12701.74Schristos  --libdir=DIR            object code libraries [EPREFIX/lib]
12711.74Schristos  --includedir=DIR        C header files [PREFIX/include]
12721.74Schristos  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
12731.74Schristos  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
12741.74Schristos  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
12751.74Schristos  --infodir=DIR           info documentation [DATAROOTDIR/info]
12761.74Schristos  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
12771.74Schristos  --mandir=DIR            man documentation [DATAROOTDIR/man]
12781.74Schristos  --docdir=DIR            documentation root [DATAROOTDIR/doc/libnbcompat]
12791.74Schristos  --htmldir=DIR           html documentation [DOCDIR]
12801.74Schristos  --dvidir=DIR            dvi documentation [DOCDIR]
12811.74Schristos  --pdfdir=DIR            pdf documentation [DOCDIR]
12821.74Schristos  --psdir=DIR             ps documentation [DOCDIR]
12831.74Schristos_ACEOF
12841.1Stv
12851.74Schristos  cat <<\_ACEOF
12861.74Schristos_ACEOF
12871.1Stvfi
12881.1Stv
12891.1Stvif test -n "$ac_init_help"; then
12901.1Stv  case $ac_init_help in
12911.1Stv     short | recursive ) echo "Configuration of libnbcompat noversion:";;
12921.1Stv   esac
12931.74Schristos  cat <<\_ACEOF
12941.1Stv
12951.1StvSome influential environment variables:
12961.1Stv  CC          C compiler command
12971.1Stv  CFLAGS      C compiler flags
12981.1Stv  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
12991.1Stv              nonstandard directory <lib dir>
13001.74Schristos  LIBS        libraries to pass to the linker, e.g. -l<library>
13011.74Schristos  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13021.74Schristos              you have headers in a nonstandard directory <include dir>
13031.1Stv  CPP         C preprocessor
13041.1Stv
13051.1StvUse these variables to override the choices made by `configure' or to help
13061.1Stvit to find libraries and programs with nonstandard names/locations.
13071.1Stv
13081.41SsaloReport bugs to <lib-bug-people@NetBSD.org>.
13091.74Schristos_ACEOF
13101.74Schristosac_status=$?
13111.1Stvfi
13121.1Stv
13131.1Stvif test "$ac_init_help" = "recursive"; then
13141.1Stv  # If there are subdirs, report their specific --help.
13151.74Schristos  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
13161.74Schristos    test -d "$ac_dir" ||
13171.74Schristos      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
13181.74Schristos      continue
13191.74Schristos    ac_builddir=.
13201.74Schristos
13211.74Schristoscase "$ac_dir" in
13221.74Schristos.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13231.74Schristos*)
13241.74Schristos  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13251.74Schristos  # A ".." for each directory in $ac_dir_suffix.
13261.74Schristos  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13271.74Schristos  case $ac_top_builddir_sub in
13281.74Schristos  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13291.74Schristos  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13301.74Schristos  esac ;;
13311.74Schristosesac
13321.74Schristosac_abs_top_builddir=$ac_pwd
13331.74Schristosac_abs_builddir=$ac_pwd$ac_dir_suffix
13341.74Schristos# for backward compatibility:
13351.74Schristosac_top_builddir=$ac_top_build_prefix
13361.74Schristos
13371.74Schristoscase $srcdir in
13381.74Schristos  .)  # We are building in place.
13391.74Schristos    ac_srcdir=.
13401.74Schristos    ac_top_srcdir=$ac_top_builddir_sub
13411.74Schristos    ac_abs_top_srcdir=$ac_pwd ;;
13421.74Schristos  [\\/]* | ?:[\\/]* )  # Absolute name.
13431.74Schristos    ac_srcdir=$srcdir$ac_dir_suffix;
13441.74Schristos    ac_top_srcdir=$srcdir
13451.74Schristos    ac_abs_top_srcdir=$srcdir ;;
13461.74Schristos  *) # Relative name.
13471.74Schristos    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13481.74Schristos    ac_top_srcdir=$ac_top_build_prefix$srcdir
13491.74Schristos    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13501.74Schristosesac
13511.74Schristosac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13521.1Stv
13531.74Schristos    cd "$ac_dir" || { ac_status=$?; continue; }
13541.74Schristos    # Check for guested configure.
13551.74Schristos    if test -f "$ac_srcdir/configure.gnu"; then
13561.74Schristos      echo &&
13571.74Schristos      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
13581.74Schristos    elif test -f "$ac_srcdir/configure"; then
13591.74Schristos      echo &&
13601.74Schristos      $SHELL "$ac_srcdir/configure" --help=recursive
13611.65Schristos    else
13621.74Schristos      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
13631.74Schristos    fi || ac_status=$?
13641.74Schristos    cd "$ac_pwd" || { ac_status=$?; break; }
13651.65Schristos  done
13661.1Stvfi
13671.1Stv
13681.74Schristostest -n "$ac_init_help" && exit $ac_status
13691.1Stvif $ac_init_version; then
13701.74Schristos  cat <<\_ACEOF
13711.1Stvlibnbcompat configure noversion
13721.74Schristosgenerated by GNU Autoconf 2.69
13731.1Stv
13741.74SchristosCopyright (C) 2012 Free Software Foundation, Inc.
13751.1StvThis configure script is free software; the Free Software Foundation
13761.1Stvgives unlimited permission to copy, distribute and modify it.
13771.74Schristos_ACEOF
13781.74Schristos  exit
13791.1Stvfi
13801.1Stv
13811.74Schristos## ------------------------ ##
13821.74Schristos## Autoconf initialization. ##
13831.74Schristos## ------------------------ ##
13841.74Schristos
13851.74Schristos# ac_fn_c_try_compile LINENO
13861.74Schristos# --------------------------
13871.74Schristos# Try to compile conftest.$ac_ext, and return whether this succeeded.
13881.74Schristosac_fn_c_try_compile ()
13891.74Schristos{
13901.74Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13911.74Schristos  rm -f conftest.$ac_objext
13921.74Schristos  if { { ac_try="$ac_compile"
13931.74Schristoscase "(($ac_try" in
13941.74Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951.74Schristos  *) ac_try_echo=$ac_try;;
13961.74Schristosesac
13971.74Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13981.74Schristos$as_echo "$ac_try_echo"; } >&5
13991.74Schristos  (eval "$ac_compile") 2>conftest.err
14001.74Schristos  ac_status=$?
14011.74Schristos  if test -s conftest.err; then
14021.74Schristos    grep -v '^ *+' conftest.err >conftest.er1
14031.74Schristos    cat conftest.er1 >&5
14041.74Schristos    mv -f conftest.er1 conftest.err
14051.74Schristos  fi
14061.74Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071.74Schristos  test $ac_status = 0; } && {
14081.74Schristos	 test -z "$ac_c_werror_flag" ||
14091.74Schristos	 test ! -s conftest.err
14101.74Schristos       } && test -s conftest.$ac_objext; then :
14111.74Schristos  ac_retval=0
14121.74Schristoselse
14131.74Schristos  $as_echo "$as_me: failed program was:" >&5
14141.74Schristossed 's/^/| /' conftest.$ac_ext >&5
14151.74Schristos
14161.74Schristos	ac_retval=1
14171.74Schristosfi
14181.74Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14191.74Schristos  as_fn_set_status $ac_retval
14201.74Schristos
14211.74Schristos} # ac_fn_c_try_compile
14221.74Schristos
14231.74Schristos# ac_fn_c_try_cpp LINENO
14241.74Schristos# ----------------------
14251.74Schristos# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
14261.74Schristosac_fn_c_try_cpp ()
14271.74Schristos{
14281.74Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14291.74Schristos  if { { ac_try="$ac_cpp conftest.$ac_ext"
14301.74Schristoscase "(($ac_try" in
14311.74Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321.74Schristos  *) ac_try_echo=$ac_try;;
14331.74Schristosesac
14341.74Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14351.74Schristos$as_echo "$ac_try_echo"; } >&5
14361.74Schristos  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
14371.74Schristos  ac_status=$?
14381.74Schristos  if test -s conftest.err; then
14391.74Schristos    grep -v '^ *+' conftest.err >conftest.er1
14401.74Schristos    cat conftest.er1 >&5
14411.74Schristos    mv -f conftest.er1 conftest.err
14421.74Schristos  fi
14431.74Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14441.74Schristos  test $ac_status = 0; } > conftest.i && {
14451.74Schristos	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14461.74Schristos	 test ! -s conftest.err
14471.74Schristos       }; then :
14481.74Schristos  ac_retval=0
14491.74Schristoselse
14501.74Schristos  $as_echo "$as_me: failed program was:" >&5
14511.74Schristossed 's/^/| /' conftest.$ac_ext >&5
14521.74Schristos
14531.74Schristos    ac_retval=1
14541.74Schristosfi
14551.74Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14561.74Schristos  as_fn_set_status $ac_retval
14571.74Schristos
14581.74Schristos} # ac_fn_c_try_cpp
14591.74Schristos
14601.74Schristos# ac_fn_c_try_run LINENO
14611.74Schristos# ----------------------
14621.74Schristos# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
14631.74Schristos# that executables *can* be run.
14641.74Schristosac_fn_c_try_run ()
14651.74Schristos{
14661.74Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14671.74Schristos  if { { ac_try="$ac_link"
14681.74Schristoscase "(($ac_try" in
14691.74Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701.74Schristos  *) ac_try_echo=$ac_try;;
14711.74Schristosesac
14721.74Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14731.74Schristos$as_echo "$ac_try_echo"; } >&5
14741.74Schristos  (eval "$ac_link") 2>&5
14751.74Schristos  ac_status=$?
14761.74Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14771.74Schristos  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
14781.74Schristos  { { case "(($ac_try" in
14791.74Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801.74Schristos  *) ac_try_echo=$ac_try;;
14811.74Schristosesac
14821.74Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14831.74Schristos$as_echo "$ac_try_echo"; } >&5
14841.74Schristos  (eval "$ac_try") 2>&5
14851.74Schristos  ac_status=$?
14861.74Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14871.74Schristos  test $ac_status = 0; }; }; then :
14881.74Schristos  ac_retval=0
14891.74Schristoselse
14901.74Schristos  $as_echo "$as_me: program exited with status $ac_status" >&5
14911.74Schristos       $as_echo "$as_me: failed program was:" >&5
14921.74Schristossed 's/^/| /' conftest.$ac_ext >&5
14931.74Schristos
14941.74Schristos       ac_retval=$ac_status
14951.74Schristosfi
14961.74Schristos  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
14971.74Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14981.74Schristos  as_fn_set_status $ac_retval
14991.74Schristos
15001.74Schristos} # ac_fn_c_try_run
15011.74Schristos
15021.74Schristos# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
15031.74Schristos# -------------------------------------------------------
15041.74Schristos# Tests whether HEADER exists and can be compiled using the include files in
15051.74Schristos# INCLUDES, setting the cache variable VAR accordingly.
15061.74Schristosac_fn_c_check_header_compile ()
15071.74Schristos{
15081.74Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15091.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
15101.74Schristos$as_echo_n "checking for $2... " >&6; }
15111.74Schristosif eval \${$3+:} false; then :
15121.74Schristos  $as_echo_n "(cached) " >&6
15131.74Schristoselse
15141.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151.74Schristos/* end confdefs.h.  */
15161.74Schristos$4
15171.74Schristos#include <$2>
15181.74Schristos_ACEOF
15191.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
15201.74Schristos  eval "$3=yes"
15211.74Schristoselse
15221.74Schristos  eval "$3=no"
15231.74Schristosfi
15241.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251.74Schristosfi
15261.74Schristoseval ac_res=\$$3
15271.74Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15281.74Schristos$as_echo "$ac_res" >&6; }
15291.74Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15301.74Schristos
15311.74Schristos} # ac_fn_c_check_header_compile
15321.74Schristos
15331.74Schristos# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
15341.74Schristos# -------------------------------------------------------
15351.74Schristos# Tests whether HEADER exists, giving a warning if it cannot be compiled using
15361.74Schristos# the include files in INCLUDES and setting the cache variable VAR
15371.74Schristos# accordingly.
15381.74Schristosac_fn_c_check_header_mongrel ()
15391.74Schristos{
15401.74Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15411.74Schristos  if eval \${$3+:} false; then :
15421.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
15431.74Schristos$as_echo_n "checking for $2... " >&6; }
15441.74Schristosif eval \${$3+:} false; then :
15451.74Schristos  $as_echo_n "(cached) " >&6
15461.74Schristosfi
15471.74Schristoseval ac_res=\$$3
15481.74Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15491.74Schristos$as_echo "$ac_res" >&6; }
15501.74Schristoselse
15511.74Schristos  # Is the header compilable?
15521.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
15531.74Schristos$as_echo_n "checking $2 usability... " >&6; }
15541.74Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551.74Schristos/* end confdefs.h.  */
15561.74Schristos$4
15571.74Schristos#include <$2>
15581.74Schristos_ACEOF
15591.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
15601.74Schristos  ac_header_compiler=yes
15611.74Schristoselse
15621.74Schristos  ac_header_compiler=no
15631.74Schristosfi
15641.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
15661.74Schristos$as_echo "$ac_header_compiler" >&6; }
15671.74Schristos
15681.74Schristos# Is the header present?
15691.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
15701.74Schristos$as_echo_n "checking $2 presence... " >&6; }
15711.74Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721.74Schristos/* end confdefs.h.  */
15731.74Schristos#include <$2>
15741.74Schristos_ACEOF
15751.74Schristosif ac_fn_c_try_cpp "$LINENO"; then :
15761.74Schristos  ac_header_preproc=yes
15771.74Schristoselse
15781.74Schristos  ac_header_preproc=no
15791.74Schristosfi
15801.74Schristosrm -f conftest.err conftest.i conftest.$ac_ext
15811.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
15821.74Schristos$as_echo "$ac_header_preproc" >&6; }
15831.74Schristos
15841.74Schristos# So?  What about this header?
15851.74Schristoscase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
15861.74Schristos  yes:no: )
15871.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
15881.74Schristos$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
15891.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
15901.74Schristos$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
15911.74Schristos    ;;
15921.74Schristos  no:yes:* )
15931.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
15941.74Schristos$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
15951.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
15961.74Schristos$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
15971.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
15981.74Schristos$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
15991.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
16001.74Schristos$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
16011.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
16021.74Schristos$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
16031.74Schristos( $as_echo "## ---------------------------------------- ##
16041.74Schristos## Report this to lib-bug-people@NetBSD.org ##
16051.74Schristos## ---------------------------------------- ##"
16061.74Schristos     ) | sed "s/^/$as_me: WARNING:     /" >&2
16071.74Schristos    ;;
16081.74Schristosesac
16091.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16101.74Schristos$as_echo_n "checking for $2... " >&6; }
16111.74Schristosif eval \${$3+:} false; then :
16121.74Schristos  $as_echo_n "(cached) " >&6
16131.74Schristoselse
16141.74Schristos  eval "$3=\$ac_header_compiler"
16151.74Schristosfi
16161.74Schristoseval ac_res=\$$3
16171.74Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16181.74Schristos$as_echo "$ac_res" >&6; }
16191.74Schristosfi
16201.74Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16211.74Schristos
16221.74Schristos} # ac_fn_c_check_header_mongrel
16231.74Schristos
16241.74Schristos# ac_fn_c_try_link LINENO
16251.74Schristos# -----------------------
16261.74Schristos# Try to link conftest.$ac_ext, and return whether this succeeded.
16271.74Schristosac_fn_c_try_link ()
16281.74Schristos{
16291.74Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16301.74Schristos  rm -f conftest.$ac_objext conftest$ac_exeext
16311.74Schristos  if { { ac_try="$ac_link"
16321.74Schristoscase "(($ac_try" in
16331.74Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341.74Schristos  *) ac_try_echo=$ac_try;;
16351.74Schristosesac
16361.74Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16371.74Schristos$as_echo "$ac_try_echo"; } >&5
16381.74Schristos  (eval "$ac_link") 2>conftest.err
16391.74Schristos  ac_status=$?
16401.74Schristos  if test -s conftest.err; then
16411.74Schristos    grep -v '^ *+' conftest.err >conftest.er1
16421.74Schristos    cat conftest.er1 >&5
16431.74Schristos    mv -f conftest.er1 conftest.err
16441.74Schristos  fi
16451.74Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16461.74Schristos  test $ac_status = 0; } && {
16471.74Schristos	 test -z "$ac_c_werror_flag" ||
16481.74Schristos	 test ! -s conftest.err
16491.74Schristos       } && test -s conftest$ac_exeext && {
16501.74Schristos	 test "$cross_compiling" = yes ||
16511.74Schristos	 test -x conftest$ac_exeext
16521.74Schristos       }; then :
16531.74Schristos  ac_retval=0
16541.74Schristoselse
16551.74Schristos  $as_echo "$as_me: failed program was:" >&5
16561.74Schristossed 's/^/| /' conftest.$ac_ext >&5
16571.74Schristos
16581.74Schristos	ac_retval=1
16591.74Schristosfi
16601.74Schristos  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
16611.74Schristos  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
16621.74Schristos  # interfere with the next link command; also delete a directory that is
16631.74Schristos  # left behind by Apple's compiler.  We do this before executing the actions.
16641.74Schristos  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16651.74Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16661.74Schristos  as_fn_set_status $ac_retval
16671.1Stv
16681.74Schristos} # ac_fn_c_try_link
16691.1Stv
16701.74Schristos# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
16711.74Schristos# -------------------------------------------
16721.74Schristos# Tests whether TYPE exists after having included INCLUDES, setting cache
16731.74Schristos# variable VAR accordingly.
16741.74Schristosac_fn_c_check_type ()
16751.74Schristos{
16761.74Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16771.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16781.74Schristos$as_echo_n "checking for $2... " >&6; }
16791.74Schristosif eval \${$3+:} false; then :
16801.74Schristos  $as_echo_n "(cached) " >&6
16811.74Schristoselse
16821.74Schristos  eval "$3=no"
16831.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841.74Schristos/* end confdefs.h.  */
16851.74Schristos$4
16861.74Schristosint
16871.74Schristosmain ()
16881.74Schristos{
16891.74Schristosif (sizeof ($2))
16901.74Schristos	 return 0;
16911.74Schristos  ;
16921.74Schristos  return 0;
16931.74Schristos}
16941.74Schristos_ACEOF
16951.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
16961.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971.74Schristos/* end confdefs.h.  */
16981.74Schristos$4
16991.74Schristosint
17001.74Schristosmain ()
17011.1Stv{
17021.74Schristosif (sizeof (($2)))
17031.74Schristos	    return 0;
17041.74Schristos  ;
17051.74Schristos  return 0;
17061.74Schristos}
17071.74Schristos_ACEOF
17081.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
17091.74Schristos
17101.74Schristoselse
17111.74Schristos  eval "$3=yes"
17121.74Schristosfi
17131.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141.74Schristosfi
17151.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161.74Schristosfi
17171.74Schristoseval ac_res=\$$3
17181.74Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17191.74Schristos$as_echo "$ac_res" >&6; }
17201.74Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17211.74Schristos
17221.74Schristos} # ac_fn_c_check_type
17231.1Stv
17241.74Schristos# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
17251.74Schristos# ----------------------------------------------------
17261.74Schristos# Tries to find if the field MEMBER exists in type AGGR, after including
17271.74Schristos# INCLUDES, setting cache variable VAR accordingly.
17281.74Schristosac_fn_c_check_member ()
17291.74Schristos{
17301.74Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17311.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
17321.74Schristos$as_echo_n "checking for $2.$3... " >&6; }
17331.74Schristosif eval \${$4+:} false; then :
17341.74Schristos  $as_echo_n "(cached) " >&6
17351.74Schristoselse
17361.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371.74Schristos/* end confdefs.h.  */
17381.74Schristos$5
17391.74Schristosint
17401.74Schristosmain ()
17411.74Schristos{
17421.74Schristosstatic $2 ac_aggr;
17431.74Schristosif (ac_aggr.$3)
17441.74Schristosreturn 0;
17451.74Schristos  ;
17461.74Schristos  return 0;
17471.74Schristos}
17481.74Schristos_ACEOF
17491.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
17501.74Schristos  eval "$4=yes"
17511.74Schristoselse
17521.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531.74Schristos/* end confdefs.h.  */
17541.74Schristos$5
17551.74Schristosint
17561.74Schristosmain ()
17571.74Schristos{
17581.74Schristosstatic $2 ac_aggr;
17591.74Schristosif (sizeof ac_aggr.$3)
17601.74Schristosreturn 0;
17611.74Schristos  ;
17621.74Schristos  return 0;
17631.74Schristos}
17641.74Schristos_ACEOF
17651.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
17661.74Schristos  eval "$4=yes"
17671.74Schristoselse
17681.74Schristos  eval "$4=no"
17691.74Schristosfi
17701.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17711.74Schristosfi
17721.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17731.74Schristosfi
17741.74Schristoseval ac_res=\$$4
17751.74Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17761.74Schristos$as_echo "$ac_res" >&6; }
17771.74Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17781.1Stv
17791.74Schristos} # ac_fn_c_check_member
17801.1Stv
17811.74Schristos# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
17821.74Schristos# ---------------------------------------------
17831.74Schristos# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
17841.74Schristos# accordingly.
17851.74Schristosac_fn_c_check_decl ()
17861.74Schristos{
17871.74Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17881.74Schristos  as_decl_name=`echo $2|sed 's/ *(.*//'`
17891.74Schristos  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
17901.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
17911.74Schristos$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
17921.74Schristosif eval \${$3+:} false; then :
17931.74Schristos  $as_echo_n "(cached) " >&6
17941.74Schristoselse
17951.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961.74Schristos/* end confdefs.h.  */
17971.74Schristos$4
17981.74Schristosint
17991.74Schristosmain ()
18001.74Schristos{
18011.74Schristos#ifndef $as_decl_name
18021.74Schristos#ifdef __cplusplus
18031.74Schristos  (void) $as_decl_use;
18041.74Schristos#else
18051.74Schristos  (void) $as_decl_name;
18061.74Schristos#endif
18071.74Schristos#endif
18081.1Stv
18091.74Schristos  ;
18101.74Schristos  return 0;
18111.74Schristos}
18121.74Schristos_ACEOF
18131.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
18141.74Schristos  eval "$3=yes"
18151.74Schristoselse
18161.74Schristos  eval "$3=no"
18171.74Schristosfi
18181.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18191.74Schristosfi
18201.74Schristoseval ac_res=\$$3
18211.74Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18221.74Schristos$as_echo "$ac_res" >&6; }
18231.74Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18241.66Stsutsui
18251.74Schristos} # ac_fn_c_check_decl
18261.1Stv
18271.74Schristos# ac_fn_c_check_func LINENO FUNC VAR
18281.74Schristos# ----------------------------------
18291.74Schristos# Tests whether FUNC exists, setting the cache variable VAR accordingly
18301.74Schristosac_fn_c_check_func ()
18311.74Schristos{
18321.74Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18331.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18341.74Schristos$as_echo_n "checking for $2... " >&6; }
18351.74Schristosif eval \${$3+:} false; then :
18361.74Schristos  $as_echo_n "(cached) " >&6
18371.74Schristoselse
18381.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391.74Schristos/* end confdefs.h.  */
18401.74Schristos/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18411.74Schristos   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18421.74Schristos#define $2 innocuous_$2
18431.74Schristos
18441.74Schristos/* System header to define __stub macros and hopefully few prototypes,
18451.74Schristos    which can conflict with char $2 (); below.
18461.74Schristos    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18471.74Schristos    <limits.h> exists even on freestanding compilers.  */
18481.74Schristos
18491.74Schristos#ifdef __STDC__
18501.74Schristos# include <limits.h>
18511.74Schristos#else
18521.74Schristos# include <assert.h>
18531.74Schristos#endif
18541.74Schristos
18551.74Schristos#undef $2
18561.74Schristos
18571.74Schristos/* Override any GCC internal prototype to avoid an error.
18581.74Schristos   Use char because int might match the return type of a GCC
18591.74Schristos   builtin and then its argument prototype would still apply.  */
18601.74Schristos#ifdef __cplusplus
18611.74Schristosextern "C"
18621.74Schristos#endif
18631.74Schristoschar $2 ();
18641.74Schristos/* The GNU C library defines this for functions which it implements
18651.74Schristos    to always fail with ENOSYS.  Some functions are actually named
18661.74Schristos    something starting with __ and the normal name is an alias.  */
18671.74Schristos#if defined __stub_$2 || defined __stub___$2
18681.74Schristoschoke me
18691.74Schristos#endif
18701.74Schristos
18711.74Schristosint
18721.74Schristosmain ()
18731.74Schristos{
18741.74Schristosreturn $2 ();
18751.74Schristos  ;
18761.74Schristos  return 0;
18771.74Schristos}
18781.74Schristos_ACEOF
18791.74Schristosif ac_fn_c_try_link "$LINENO"; then :
18801.74Schristos  eval "$3=yes"
18811.74Schristoselse
18821.74Schristos  eval "$3=no"
18831.74Schristosfi
18841.74Schristosrm -f core conftest.err conftest.$ac_objext \
18851.74Schristos    conftest$ac_exeext conftest.$ac_ext
18861.74Schristosfi
18871.74Schristoseval ac_res=\$$3
18881.74Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18891.74Schristos$as_echo "$ac_res" >&6; }
18901.74Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18911.74Schristos
18921.74Schristos} # ac_fn_c_check_func
18931.74Schristoscat >config.log <<_ACEOF
18941.74SchristosThis file contains any messages produced by compilers while
18951.74Schristosrunning configure, to aid debugging if configure makes a mistake.
18961.74Schristos
18971.74SchristosIt was created by libnbcompat $as_me noversion, which was
18981.74Schristosgenerated by GNU Autoconf 2.69.  Invocation command line was
18991.74Schristos
19001.74Schristos  $ $0 $@
19011.74Schristos
19021.74Schristos_ACEOF
19031.74Schristosexec 5>>config.log
19041.74Schristos{
19051.74Schristoscat <<_ASUNAME
19061.74Schristos## --------- ##
19071.74Schristos## Platform. ##
19081.74Schristos## --------- ##
19091.74Schristos
19101.74Schristoshostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
19111.74Schristosuname -m = `(uname -m) 2>/dev/null || echo unknown`
19121.74Schristosuname -r = `(uname -r) 2>/dev/null || echo unknown`
19131.74Schristosuname -s = `(uname -s) 2>/dev/null || echo unknown`
19141.74Schristosuname -v = `(uname -v) 2>/dev/null || echo unknown`
19151.74Schristos
19161.74Schristos/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
19171.74Schristos/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
19181.74Schristos
19191.74Schristos/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
19201.74Schristos/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
19211.74Schristos/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
19221.74Schristos/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
19231.74Schristos/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
19241.74Schristos/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
19251.74Schristos/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
19261.74Schristos
19271.74Schristos_ASUNAME
19281.74Schristos
19291.74Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19301.74Schristosfor as_dir in $PATH
19311.74Schristosdo
19321.74Schristos  IFS=$as_save_IFS
19331.74Schristos  test -z "$as_dir" && as_dir=.
19341.74Schristos    $as_echo "PATH: $as_dir"
19351.74Schristos  done
19361.74SchristosIFS=$as_save_IFS
19371.74Schristos
19381.74Schristos} >&5
19391.74Schristos
19401.74Schristoscat >&5 <<_ACEOF
19411.74Schristos
19421.74Schristos
19431.74Schristos## ----------- ##
19441.74Schristos## Core tests. ##
19451.74Schristos## ----------- ##
19461.74Schristos
19471.74Schristos_ACEOF
19481.1Stv
19491.1Stv
19501.1Stv# Keep a trace of the command line.
19511.1Stv# Strip out --no-create and --no-recursion so they do not pile up.
19521.74Schristos# Strip out --silent because we don't want to record it for future runs.
19531.1Stv# Also quote any args containing shell meta-characters.
19541.74Schristos# Make two passes to allow for proper duplicate-argument suppression.
19551.1Stvac_configure_args=
19561.74Schristosac_configure_args0=
19571.74Schristosac_configure_args1=
19581.74Schristosac_must_keep_next=false
19591.74Schristosfor ac_pass in 1 2
19601.1Stvdo
19611.74Schristos  for ac_arg
19621.74Schristos  do
19631.74Schristos    case $ac_arg in
19641.74Schristos    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
19651.74Schristos    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19661.74Schristos    | -silent | --silent | --silen | --sile | --sil)
19671.74Schristos      continue ;;
19681.74Schristos    *\'*)
19691.74Schristos      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19701.74Schristos    esac
19711.74Schristos    case $ac_pass in
19721.74Schristos    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
19731.74Schristos    2)
19741.74Schristos      as_fn_append ac_configure_args1 " '$ac_arg'"
19751.74Schristos      if test $ac_must_keep_next = true; then
19761.74Schristos	ac_must_keep_next=false # Got value, back to normal.
19771.74Schristos      else
19781.74Schristos	case $ac_arg in
19791.74Schristos	  *=* | --config-cache | -C | -disable-* | --disable-* \
19801.74Schristos	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
19811.74Schristos	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
19821.74Schristos	  | -with-* | --with-* | -without-* | --without-* | --x)
19831.74Schristos	    case "$ac_configure_args0 " in
19841.74Schristos	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
19851.74Schristos	    esac
19861.74Schristos	    ;;
19871.74Schristos	  -* ) ac_must_keep_next=true ;;
19881.74Schristos	esac
19891.74Schristos      fi
19901.74Schristos      as_fn_append ac_configure_args " '$ac_arg'"
19911.74Schristos      ;;
19921.74Schristos    esac
19931.74Schristos  done
19941.1Stvdone
19951.74Schristos{ ac_configure_args0=; unset ac_configure_args0;}
19961.74Schristos{ ac_configure_args1=; unset ac_configure_args1;}
19971.1Stv
19981.1Stv# When interrupted or exit'd, cleanup temporary files, and complete
19991.1Stv# config.log.  We remove comments because anyway the quotes in there
20001.1Stv# would cause problems or look ugly.
20011.74Schristos# WARNING: Use '\'' to represent an apostrophe within the trap.
20021.74Schristos# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
20031.1Stvtrap 'exit_status=$?
20041.1Stv  # Save into config.log some information that might help in debugging.
20051.74Schristos  {
20061.74Schristos    echo
20071.74Schristos
20081.74Schristos    $as_echo "## ---------------- ##
20091.74Schristos## Cache variables. ##
20101.74Schristos## ---------------- ##"
20111.74Schristos    echo
20121.74Schristos    # The following way of writing the cache mishandles newlines in values,
20131.74Schristos(
20141.74Schristos  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
20151.74Schristos    eval ac_val=\$$ac_var
20161.74Schristos    case $ac_val in #(
20171.74Schristos    *${as_nl}*)
20181.74Schristos      case $ac_var in #(
20191.74Schristos      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20201.74Schristos$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20211.74Schristos      esac
20221.74Schristos      case $ac_var in #(
20231.74Schristos      _ | IFS | as_nl) ;; #(
20241.74Schristos      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20251.74Schristos      *) { eval $ac_var=; unset $ac_var;} ;;
20261.74Schristos      esac ;;
20271.74Schristos    esac
20281.74Schristos  done
20291.1Stv  (set) 2>&1 |
20301.74Schristos    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
20311.74Schristos    *${as_nl}ac_space=\ *)
20321.1Stv      sed -n \
20331.74Schristos	"s/'\''/'\''\\\\'\'''\''/g;
20341.74Schristos	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
20351.74Schristos      ;; #(
20361.1Stv    *)
20371.74Schristos      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20381.1Stv      ;;
20391.74Schristos    esac |
20401.74Schristos    sort
20411.74Schristos)
20421.74Schristos    echo
20431.74Schristos
20441.74Schristos    $as_echo "## ----------------- ##
20451.74Schristos## Output variables. ##
20461.74Schristos## ----------------- ##"
20471.74Schristos    echo
20481.74Schristos    for ac_var in $ac_subst_vars
20491.74Schristos    do
20501.74Schristos      eval ac_val=\$$ac_var
20511.74Schristos      case $ac_val in
20521.74Schristos      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20531.74Schristos      esac
20541.74Schristos      $as_echo "$ac_var='\''$ac_val'\''"
20551.74Schristos    done | sort
20561.74Schristos    echo
20571.74Schristos
20581.74Schristos    if test -n "$ac_subst_files"; then
20591.74Schristos      $as_echo "## ------------------- ##
20601.74Schristos## File substitutions. ##
20611.74Schristos## ------------------- ##"
20621.74Schristos      echo
20631.74Schristos      for ac_var in $ac_subst_files
20641.74Schristos      do
20651.74Schristos	eval ac_val=\$$ac_var
20661.74Schristos	case $ac_val in
20671.74Schristos	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20681.74Schristos	esac
20691.74Schristos	$as_echo "$ac_var='\''$ac_val'\''"
20701.74Schristos      done | sort
20711.74Schristos      echo
20721.74Schristos    fi
20731.74Schristos
20741.74Schristos    if test -s confdefs.h; then
20751.74Schristos      $as_echo "## ----------- ##
20761.74Schristos## confdefs.h. ##
20771.74Schristos## ----------- ##"
20781.74Schristos      echo
20791.74Schristos      cat confdefs.h
20801.74Schristos      echo
20811.74Schristos    fi
20821.74Schristos    test "$ac_signal" != 0 &&
20831.74Schristos      $as_echo "$as_me: caught signal $ac_signal"
20841.74Schristos    $as_echo "$as_me: exit $exit_status"
20851.74Schristos  } >&5
20861.74Schristos  rm -f core *.core core.conftest.* &&
20871.74Schristos    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
20881.1Stv    exit $exit_status
20891.74Schristos' 0
20901.1Stvfor ac_signal in 1 2 13 15; do
20911.74Schristos  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
20921.1Stvdone
20931.1Stvac_signal=0
20941.1Stv
20951.1Stv# confdefs.h avoids OS command line length limits that DEFS can exceed.
20961.74Schristosrm -f -r conftest* confdefs.h
20971.74Schristos
20981.74Schristos$as_echo "/* confdefs.h */" > confdefs.h
20991.74Schristos
21001.74Schristos# Predefined preprocessor variables.
21011.74Schristos
21021.74Schristoscat >>confdefs.h <<_ACEOF
21031.74Schristos#define PACKAGE_NAME "$PACKAGE_NAME"
21041.74Schristos_ACEOF
21051.74Schristos
21061.74Schristoscat >>confdefs.h <<_ACEOF
21071.74Schristos#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
21081.74Schristos_ACEOF
21091.74Schristos
21101.74Schristoscat >>confdefs.h <<_ACEOF
21111.74Schristos#define PACKAGE_VERSION "$PACKAGE_VERSION"
21121.74Schristos_ACEOF
21131.74Schristos
21141.74Schristoscat >>confdefs.h <<_ACEOF
21151.74Schristos#define PACKAGE_STRING "$PACKAGE_STRING"
21161.74Schristos_ACEOF
21171.74Schristos
21181.74Schristoscat >>confdefs.h <<_ACEOF
21191.74Schristos#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
21201.74Schristos_ACEOF
21211.74Schristos
21221.74Schristoscat >>confdefs.h <<_ACEOF
21231.74Schristos#define PACKAGE_URL "$PACKAGE_URL"
21241.74Schristos_ACEOF
21251.74Schristos
21261.1Stv
21271.1Stv# Let the site file select an alternate cache file if it wants to.
21281.74Schristos# Prefer an explicitly selected file to automatically selected ones.
21291.74Schristosac_site_file1=NONE
21301.74Schristosac_site_file2=NONE
21311.74Schristosif test -n "$CONFIG_SITE"; then
21321.74Schristos  # We do not want a PATH search for config.site.
21331.74Schristos  case $CONFIG_SITE in #((
21341.74Schristos    -*)  ac_site_file1=./$CONFIG_SITE;;
21351.74Schristos    */*) ac_site_file1=$CONFIG_SITE;;
21361.74Schristos    *)   ac_site_file1=./$CONFIG_SITE;;
21371.74Schristos  esac
21381.74Schristoselif test "x$prefix" != xNONE; then
21391.74Schristos  ac_site_file1=$prefix/share/config.site
21401.74Schristos  ac_site_file2=$prefix/etc/config.site
21411.74Schristoselse
21421.74Schristos  ac_site_file1=$ac_default_prefix/share/config.site
21431.74Schristos  ac_site_file2=$ac_default_prefix/etc/config.site
21441.1Stvfi
21451.74Schristosfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
21461.74Schristosdo
21471.74Schristos  test "x$ac_site_file" = xNONE && continue
21481.74Schristos  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
21491.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
21501.74Schristos$as_echo "$as_me: loading site script $ac_site_file" >&6;}
21511.74Schristos    sed 's/^/| /' "$ac_site_file" >&5
21521.74Schristos    . "$ac_site_file" \
21531.74Schristos      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21541.74Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21551.74Schristosas_fn_error $? "failed to load site script $ac_site_file
21561.74SchristosSee \`config.log' for more details" "$LINENO" 5; }
21571.1Stv  fi
21581.1Stvdone
21591.1Stv
21601.1Stvif test -r "$cache_file"; then
21611.74Schristos  # Some versions of bash will fail to source /dev/null (special files
21621.74Schristos  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
21631.74Schristos  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
21641.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
21651.74Schristos$as_echo "$as_me: loading cache $cache_file" >&6;}
21661.1Stv    case $cache_file in
21671.74Schristos      [\\/]* | ?:[\\/]* ) . "$cache_file";;
21681.74Schristos      *)                      . "./$cache_file";;
21691.1Stv    esac
21701.1Stv  fi
21711.1Stvelse
21721.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
21731.74Schristos$as_echo "$as_me: creating cache $cache_file" >&6;}
21741.1Stv  >$cache_file
21751.1Stvfi
21761.1Stv
21771.1Stv# Check that the precious variables saved in the cache have kept the same
21781.1Stv# value.
21791.1Stvac_cache_corrupted=false
21801.74Schristosfor ac_var in $ac_precious_vars; do
21811.1Stv  eval ac_old_set=\$ac_cv_env_${ac_var}_set
21821.1Stv  eval ac_new_set=\$ac_env_${ac_var}_set
21831.74Schristos  eval ac_old_val=\$ac_cv_env_${ac_var}_value
21841.74Schristos  eval ac_new_val=\$ac_env_${ac_var}_value
21851.1Stv  case $ac_old_set,$ac_new_set in
21861.1Stv    set,)
21871.74Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
21881.74Schristos$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
21891.1Stv      ac_cache_corrupted=: ;;
21901.1Stv    ,set)
21911.74Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
21921.74Schristos$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
21931.1Stv      ac_cache_corrupted=: ;;
21941.1Stv    ,);;
21951.1Stv    *)
21961.1Stv      if test "x$ac_old_val" != "x$ac_new_val"; then
21971.74Schristos	# differences in whitespace do not lead to failure.
21981.74Schristos	ac_old_val_w=`echo x $ac_old_val`
21991.74Schristos	ac_new_val_w=`echo x $ac_new_val`
22001.74Schristos	if test "$ac_old_val_w" != "$ac_new_val_w"; then
22011.74Schristos	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
22021.74Schristos$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
22031.74Schristos	  ac_cache_corrupted=:
22041.74Schristos	else
22051.74Schristos	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
22061.74Schristos$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
22071.74Schristos	  eval $ac_var=\$ac_old_val
22081.74Schristos	fi
22091.74Schristos	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
22101.74Schristos$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
22111.74Schristos	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
22121.74Schristos$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
22131.1Stv      fi;;
22141.1Stv  esac
22151.74Schristos  # Pass precious variables to config.status.
22161.1Stv  if test "$ac_new_set" = set; then
22171.1Stv    case $ac_new_val in
22181.74Schristos    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
22191.74Schristos    *) ac_arg=$ac_var=$ac_new_val ;;
22201.74Schristos    esac
22211.74Schristos    case " $ac_configure_args " in
22221.74Schristos      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
22231.74Schristos      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
22241.1Stv    esac
22251.1Stv  fi
22261.1Stvdone
22271.1Stvif $ac_cache_corrupted; then
22281.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22291.74Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22301.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
22311.74Schristos$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22321.74Schristos  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
22331.74Schristosfi
22341.74Schristos## -------------------- ##
22351.74Schristos## Main body of script. ##
22361.74Schristos## -------------------- ##
22371.1Stv
22381.1Stvac_ext=c
22391.1Stvac_cpp='$CPP $CPPFLAGS'
22401.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22411.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22421.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
22431.1Stv
22441.1Stv
22451.63Sapbac_config_headers="$ac_config_headers nbtool_config.h"
22461.1Stv
22471.63Sapbac_config_files="$ac_config_files defs.mk"
22481.1Stv
22491.74Schristos
22501.57Swiz# Autoheader header and footer
22511.57Swiz
22521.74Schristos
22531.74Schristos
22541.74Schristos
22551.45Sjmc# AC_NETBSD
22561.20Sbjh21
22571.1Stvac_ext=c
22581.1Stvac_cpp='$CPP $CPPFLAGS'
22591.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22601.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22611.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
22621.1Stvif test -n "$ac_tool_prefix"; then
22631.1Stv  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22641.1Stvset dummy ${ac_tool_prefix}gcc; ac_word=$2
22651.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22661.74Schristos$as_echo_n "checking for $ac_word... " >&6; }
22671.74Schristosif ${ac_cv_prog_CC+:} false; then :
22681.74Schristos  $as_echo_n "(cached) " >&6
22691.1Stvelse
22701.1Stv  if test -n "$CC"; then
22711.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
22721.1Stvelse
22731.74Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22741.74Schristosfor as_dir in $PATH
22751.74Schristosdo
22761.74Schristos  IFS=$as_save_IFS
22771.74Schristos  test -z "$as_dir" && as_dir=.
22781.74Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
22791.74Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22801.74Schristos    ac_cv_prog_CC="${ac_tool_prefix}gcc"
22811.74Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22821.74Schristos    break 2
22831.74Schristos  fi
22841.1Stvdone
22851.74Schristos  done
22861.74SchristosIFS=$as_save_IFS
22871.1Stv
22881.1Stvfi
22891.1Stvfi
22901.1StvCC=$ac_cv_prog_CC
22911.1Stvif test -n "$CC"; then
22921.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
22931.74Schristos$as_echo "$CC" >&6; }
22941.1Stvelse
22951.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22961.74Schristos$as_echo "no" >&6; }
22971.1Stvfi
22981.1Stv
22991.74Schristos
23001.1Stvfi
23011.1Stvif test -z "$ac_cv_prog_CC"; then
23021.1Stv  ac_ct_CC=$CC
23031.1Stv  # Extract the first word of "gcc", so it can be a program name with args.
23041.1Stvset dummy gcc; ac_word=$2
23051.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23061.74Schristos$as_echo_n "checking for $ac_word... " >&6; }
23071.74Schristosif ${ac_cv_prog_ac_ct_CC+:} false; then :
23081.74Schristos  $as_echo_n "(cached) " >&6
23091.1Stvelse
23101.1Stv  if test -n "$ac_ct_CC"; then
23111.1Stv  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
23121.1Stvelse
23131.74Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23141.74Schristosfor as_dir in $PATH
23151.74Schristosdo
23161.74Schristos  IFS=$as_save_IFS
23171.74Schristos  test -z "$as_dir" && as_dir=.
23181.74Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
23191.74Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23201.74Schristos    ac_cv_prog_ac_ct_CC="gcc"
23211.74Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23221.74Schristos    break 2
23231.74Schristos  fi
23241.1Stvdone
23251.74Schristos  done
23261.74SchristosIFS=$as_save_IFS
23271.1Stv
23281.1Stvfi
23291.1Stvfi
23301.1Stvac_ct_CC=$ac_cv_prog_ac_ct_CC
23311.1Stvif test -n "$ac_ct_CC"; then
23321.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
23331.74Schristos$as_echo "$ac_ct_CC" >&6; }
23341.1Stvelse
23351.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23361.74Schristos$as_echo "no" >&6; }
23371.1Stvfi
23381.1Stv
23391.74Schristos  if test "x$ac_ct_CC" = x; then
23401.74Schristos    CC=""
23411.74Schristos  else
23421.74Schristos    case $cross_compiling:$ac_tool_warned in
23431.74Schristosyes:)
23441.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23451.74Schristos$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23461.74Schristosac_tool_warned=yes ;;
23471.74Schristosesac
23481.74Schristos    CC=$ac_ct_CC
23491.74Schristos  fi
23501.1Stvelse
23511.1Stv  CC="$ac_cv_prog_CC"
23521.1Stvfi
23531.1Stv
23541.1Stvif test -z "$CC"; then
23551.74Schristos          if test -n "$ac_tool_prefix"; then
23561.74Schristos    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
23571.1Stvset dummy ${ac_tool_prefix}cc; ac_word=$2
23581.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23591.74Schristos$as_echo_n "checking for $ac_word... " >&6; }
23601.74Schristosif ${ac_cv_prog_CC+:} false; then :
23611.74Schristos  $as_echo_n "(cached) " >&6
23621.1Stvelse
23631.1Stv  if test -n "$CC"; then
23641.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
23651.1Stvelse
23661.74Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23671.74Schristosfor as_dir in $PATH
23681.74Schristosdo
23691.74Schristos  IFS=$as_save_IFS
23701.74Schristos  test -z "$as_dir" && as_dir=.
23711.74Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
23721.74Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23731.74Schristos    ac_cv_prog_CC="${ac_tool_prefix}cc"
23741.74Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23751.74Schristos    break 2
23761.74Schristos  fi
23771.65Schristosdone
23781.74Schristos  done
23791.74SchristosIFS=$as_save_IFS
23801.1Stv
23811.1Stvfi
23821.1Stvfi
23831.1StvCC=$ac_cv_prog_CC
23841.1Stvif test -n "$CC"; then
23851.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
23861.74Schristos$as_echo "$CC" >&6; }
23871.66Stsutsuielse
23881.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23891.74Schristos$as_echo "no" >&6; }
23901.66Stsutsuifi
23911.66Stsutsui
23921.1Stv
23931.74Schristos  fi
23941.1Stvfi
23951.1Stvif test -z "$CC"; then
23961.1Stv  # Extract the first word of "cc", so it can be a program name with args.
23971.1Stvset dummy cc; ac_word=$2
23981.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23991.74Schristos$as_echo_n "checking for $ac_word... " >&6; }
24001.74Schristosif ${ac_cv_prog_CC+:} false; then :
24011.74Schristos  $as_echo_n "(cached) " >&6
24021.1Stvelse
24031.1Stv  if test -n "$CC"; then
24041.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
24051.1Stvelse
24061.1Stv  ac_prog_rejected=no
24071.74Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24081.74Schristosfor as_dir in $PATH
24091.74Schristosdo
24101.74Schristos  IFS=$as_save_IFS
24111.74Schristos  test -z "$as_dir" && as_dir=.
24121.74Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
24131.74Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24141.74Schristos    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
24151.74Schristos       ac_prog_rejected=yes
24161.74Schristos       continue
24171.74Schristos     fi
24181.74Schristos    ac_cv_prog_CC="cc"
24191.74Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24201.74Schristos    break 2
24211.74Schristos  fi
24221.65Schristosdone
24231.74Schristos  done
24241.74SchristosIFS=$as_save_IFS
24251.1Stv
24261.1Stvif test $ac_prog_rejected = yes; then
24271.1Stv  # We found a bogon in the path, so make sure we never use it.
24281.1Stv  set dummy $ac_cv_prog_CC
24291.1Stv  shift
24301.1Stv  if test $# != 0; then
24311.1Stv    # We chose a different compiler from the bogus one.
24321.1Stv    # However, it has the same basename, so the bogon will be chosen
24331.1Stv    # first if we set CC to just the basename; use the full file name.
24341.1Stv    shift
24351.74Schristos    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
24361.1Stv  fi
24371.1Stvfi
24381.1Stvfi
24391.1Stvfi
24401.1StvCC=$ac_cv_prog_CC
24411.1Stvif test -n "$CC"; then
24421.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
24431.74Schristos$as_echo "$CC" >&6; }
24441.1Stvelse
24451.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24461.74Schristos$as_echo "no" >&6; }
24471.1Stvfi
24481.1Stv
24491.74Schristos
24501.1Stvfi
24511.1Stvif test -z "$CC"; then
24521.1Stv  if test -n "$ac_tool_prefix"; then
24531.74Schristos  for ac_prog in cl.exe
24541.1Stv  do
24551.1Stv    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24561.1Stvset dummy $ac_tool_prefix$ac_prog; ac_word=$2
24571.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24581.74Schristos$as_echo_n "checking for $ac_word... " >&6; }
24591.74Schristosif ${ac_cv_prog_CC+:} false; then :
24601.74Schristos  $as_echo_n "(cached) " >&6
24611.1Stvelse
24621.1Stv  if test -n "$CC"; then
24631.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
24641.1Stvelse
24651.74Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24661.74Schristosfor as_dir in $PATH
24671.74Schristosdo
24681.74Schristos  IFS=$as_save_IFS
24691.74Schristos  test -z "$as_dir" && as_dir=.
24701.74Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
24711.74Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24721.74Schristos    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
24731.74Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24741.74Schristos    break 2
24751.74Schristos  fi
24761.1Stvdone
24771.74Schristos  done
24781.74SchristosIFS=$as_save_IFS
24791.1Stv
24801.1Stvfi
24811.1Stvfi
24821.1StvCC=$ac_cv_prog_CC
24831.1Stvif test -n "$CC"; then
24841.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
24851.74Schristos$as_echo "$CC" >&6; }
24861.1Stvelse
24871.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24881.74Schristos$as_echo "no" >&6; }
24891.1Stvfi
24901.1Stv
24911.74Schristos
24921.1Stv    test -n "$CC" && break
24931.1Stv  done
24941.1Stvfi
24951.1Stvif test -z "$CC"; then
24961.1Stv  ac_ct_CC=$CC
24971.74Schristos  for ac_prog in cl.exe
24981.1Stvdo
24991.1Stv  # Extract the first word of "$ac_prog", so it can be a program name with args.
25001.1Stvset dummy $ac_prog; ac_word=$2
25011.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25021.74Schristos$as_echo_n "checking for $ac_word... " >&6; }
25031.74Schristosif ${ac_cv_prog_ac_ct_CC+:} false; then :
25041.74Schristos  $as_echo_n "(cached) " >&6
25051.1Stvelse
25061.1Stv  if test -n "$ac_ct_CC"; then
25071.1Stv  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
25081.1Stvelse
25091.74Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25101.74Schristosfor as_dir in $PATH
25111.74Schristosdo
25121.74Schristos  IFS=$as_save_IFS
25131.74Schristos  test -z "$as_dir" && as_dir=.
25141.74Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
25151.74Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25161.74Schristos    ac_cv_prog_ac_ct_CC="$ac_prog"
25171.74Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25181.74Schristos    break 2
25191.74Schristos  fi
25201.1Stvdone
25211.74Schristos  done
25221.74SchristosIFS=$as_save_IFS
25231.1Stv
25241.1Stvfi
25251.1Stvfi
25261.1Stvac_ct_CC=$ac_cv_prog_ac_ct_CC
25271.1Stvif test -n "$ac_ct_CC"; then
25281.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
25291.74Schristos$as_echo "$ac_ct_CC" >&6; }
25301.1Stvelse
25311.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25321.74Schristos$as_echo "no" >&6; }
25331.1Stvfi
25341.1Stv
25351.74Schristos
25361.1Stv  test -n "$ac_ct_CC" && break
25371.1Stvdone
25381.1Stv
25391.74Schristos  if test "x$ac_ct_CC" = x; then
25401.74Schristos    CC=""
25411.74Schristos  else
25421.74Schristos    case $cross_compiling:$ac_tool_warned in
25431.74Schristosyes:)
25441.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25451.74Schristos$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25461.74Schristosac_tool_warned=yes ;;
25471.74Schristosesac
25481.74Schristos    CC=$ac_ct_CC
25491.74Schristos  fi
25501.1Stvfi
25511.1Stv
25521.1Stvfi
25531.1Stv
25541.74Schristos
25551.74Schristostest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25561.74Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25571.74Schristosas_fn_error $? "no acceptable C compiler found in \$PATH
25581.74SchristosSee \`config.log' for more details" "$LINENO" 5; }
25591.1Stv
25601.1Stv# Provide some information about the compiler.
25611.74Schristos$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
25621.74Schristosset X $ac_compile
25631.74Schristosac_compiler=$2
25641.74Schristosfor ac_option in --version -v -V -qversion; do
25651.74Schristos  { { ac_try="$ac_compiler $ac_option >&5"
25661.74Schristoscase "(($ac_try" in
25671.74Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25681.74Schristos  *) ac_try_echo=$ac_try;;
25691.74Schristosesac
25701.74Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25711.74Schristos$as_echo "$ac_try_echo"; } >&5
25721.74Schristos  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25731.1Stv  ac_status=$?
25741.74Schristos  if test -s conftest.err; then
25751.74Schristos    sed '10a\
25761.74Schristos... rest of stderr output deleted ...
25771.74Schristos         10q' conftest.err >conftest.er1
25781.74Schristos    cat conftest.er1 >&5
25791.74Schristos  fi
25801.74Schristos  rm -f conftest.er1 conftest.err
25811.74Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25821.74Schristos  test $ac_status = 0; }
25831.74Schristosdone
25841.1Stv
25851.74Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
25861.74Schristos/* end confdefs.h.  */
25871.1Stv
25881.1Stvint
25891.1Stvmain ()
25901.1Stv{
25911.1Stv
25921.1Stv  ;
25931.1Stv  return 0;
25941.1Stv}
25951.1Stv_ACEOF
25961.1Stvac_clean_files_save=$ac_clean_files
25971.74Schristosac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
25981.1Stv# Try to create an executable without -o first, disregard a.out.
25991.1Stv# It will help us diagnose broken compilers, and finding out an intuition
26001.1Stv# of exeext.
26011.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
26021.74Schristos$as_echo_n "checking whether the C compiler works... " >&6; }
26031.74Schristosac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
26041.74Schristos
26051.74Schristos# The possible output files:
26061.74Schristosac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
26071.74Schristos
26081.74Schristosac_rmfiles=
26091.74Schristosfor ac_file in $ac_files
26101.74Schristosdo
26111.74Schristos  case $ac_file in
26121.74Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
26131.74Schristos    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
26141.74Schristos  esac
26151.74Schristosdone
26161.74Schristosrm -f $ac_rmfiles
26171.74Schristos
26181.74Schristosif { { ac_try="$ac_link_default"
26191.74Schristoscase "(($ac_try" in
26201.74Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26211.74Schristos  *) ac_try_echo=$ac_try;;
26221.74Schristosesac
26231.74Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26241.74Schristos$as_echo "$ac_try_echo"; } >&5
26251.74Schristos  (eval "$ac_link_default") 2>&5
26261.74Schristos  ac_status=$?
26271.74Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26281.74Schristos  test $ac_status = 0; }; then :
26291.74Schristos  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
26301.74Schristos# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
26311.74Schristos# in a Makefile.  We should not override ac_cv_exeext if it was cached,
26321.74Schristos# so that the user can short-circuit this test for compilers unknown to
26331.74Schristos# Autoconf.
26341.74Schristosfor ac_file in $ac_files ''
26351.74Schristosdo
26361.74Schristos  test -f "$ac_file" || continue
26371.1Stv  case $ac_file in
26381.74Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
26391.74Schristos	;;
26401.74Schristos    [ab].out )
26411.74Schristos	# We found the default executable, but exeext='' is most
26421.74Schristos	# certainly right.
26431.74Schristos	break;;
26441.74Schristos    *.* )
26451.74Schristos	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
26461.74Schristos	then :; else
26471.74Schristos	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
26481.74Schristos	fi
26491.74Schristos	# We set ac_cv_exeext here because the later test for it is not
26501.74Schristos	# safe: cross compilers may not add the suffix if given an `-o'
26511.74Schristos	# argument, so we may need to know it at that point already.
26521.74Schristos	# Even if this section looks crufty: it has the advantage of
26531.74Schristos	# actually working.
26541.74Schristos	break;;
26551.74Schristos    * )
26561.74Schristos	break;;
26571.1Stv  esac
26581.1Stvdone
26591.74Schristostest "$ac_cv_exeext" = no && ac_cv_exeext=
26601.74Schristos
26611.1Stvelse
26621.74Schristos  ac_file=''
26631.1Stvfi
26641.74Schristosif test -z "$ac_file"; then :
26651.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26661.74Schristos$as_echo "no" >&6; }
26671.74Schristos$as_echo "$as_me: failed program was:" >&5
26681.74Schristossed 's/^/| /' conftest.$ac_ext >&5
26691.1Stv
26701.74Schristos{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26711.74Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26721.74Schristosas_fn_error 77 "C compiler cannot create executables
26731.74SchristosSee \`config.log' for more details" "$LINENO" 5; }
26741.74Schristoselse
26751.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26761.74Schristos$as_echo "yes" >&6; }
26771.74Schristosfi
26781.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
26791.74Schristos$as_echo_n "checking for C compiler default output file name... " >&6; }
26801.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
26811.74Schristos$as_echo "$ac_file" >&6; }
26821.1Stvac_exeext=$ac_cv_exeext
26831.1Stv
26841.74Schristosrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
26851.1Stvac_clean_files=$ac_clean_files_save
26861.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
26871.74Schristos$as_echo_n "checking for suffix of executables... " >&6; }
26881.74Schristosif { { ac_try="$ac_link"
26891.74Schristoscase "(($ac_try" in
26901.74Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26911.74Schristos  *) ac_try_echo=$ac_try;;
26921.74Schristosesac
26931.74Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26941.74Schristos$as_echo "$ac_try_echo"; } >&5
26951.74Schristos  (eval "$ac_link") 2>&5
26961.1Stv  ac_status=$?
26971.74Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26981.74Schristos  test $ac_status = 0; }; then :
26991.1Stv  # If both `conftest.exe' and `conftest' are `present' (well, observable)
27001.1Stv# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
27011.1Stv# work properly (i.e., refer to `conftest.exe'), while it won't with
27021.1Stv# `rm'.
27031.74Schristosfor ac_file in conftest.exe conftest conftest.*; do
27041.74Schristos  test -f "$ac_file" || continue
27051.1Stv  case $ac_file in
27061.74Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
27071.1Stv    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
27081.74Schristos	  break;;
27091.1Stv    * ) break;;
27101.1Stv  esac
27111.1Stvdone
27121.1Stvelse
27131.74Schristos  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27141.74Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27151.74Schristosas_fn_error $? "cannot compute suffix of executables: cannot compile and link
27161.74SchristosSee \`config.log' for more details" "$LINENO" 5; }
27171.74Schristosfi
27181.74Schristosrm -f conftest conftest$ac_cv_exeext
27191.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
27201.74Schristos$as_echo "$ac_cv_exeext" >&6; }
27211.1Stv
27221.1Stvrm -f conftest.$ac_ext
27231.1StvEXEEXT=$ac_cv_exeext
27241.1Stvac_exeext=$EXEEXT
27251.74Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
27261.74Schristos/* end confdefs.h.  */
27271.74Schristos#include <stdio.h>
27281.1Stvint
27291.1Stvmain ()
27301.1Stv{
27311.74SchristosFILE *f = fopen ("conftest.out", "w");
27321.74Schristos return ferror (f) || fclose (f) != 0;
27331.1Stv
27341.1Stv  ;
27351.1Stv  return 0;
27361.1Stv}
27371.1Stv_ACEOF
27381.74Schristosac_clean_files="$ac_clean_files conftest.out"
27391.74Schristos# Check that the compiler produces executables we can run.  If not, either
27401.74Schristos# the compiler is broken, or we cross compile.
27411.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
27421.74Schristos$as_echo_n "checking whether we are cross compiling... " >&6; }
27431.74Schristosif test "$cross_compiling" != yes; then
27441.74Schristos  { { ac_try="$ac_link"
27451.74Schristoscase "(($ac_try" in
27461.74Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27471.74Schristos  *) ac_try_echo=$ac_try;;
27481.74Schristosesac
27491.74Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27501.74Schristos$as_echo "$ac_try_echo"; } >&5
27511.74Schristos  (eval "$ac_link") 2>&5
27521.74Schristos  ac_status=$?
27531.74Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27541.74Schristos  test $ac_status = 0; }
27551.74Schristos  if { ac_try='./conftest$ac_cv_exeext'
27561.74Schristos  { { case "(($ac_try" in
27571.74Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27581.74Schristos  *) ac_try_echo=$ac_try;;
27591.74Schristosesac
27601.74Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27611.74Schristos$as_echo "$ac_try_echo"; } >&5
27621.74Schristos  (eval "$ac_try") 2>&5
27631.1Stv  ac_status=$?
27641.74Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27651.74Schristos  test $ac_status = 0; }; }; then
27661.74Schristos    cross_compiling=no
27671.74Schristos  else
27681.74Schristos    if test "$cross_compiling" = maybe; then
27691.74Schristos	cross_compiling=yes
27701.74Schristos    else
27711.74Schristos	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27721.74Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27731.74Schristosas_fn_error $? "cannot run C compiled programs.
27741.74SchristosIf you meant to cross compile, use \`--host'.
27751.74SchristosSee \`config.log' for more details" "$LINENO" 5; }
27761.74Schristos    fi
27771.74Schristos  fi
27781.74Schristosfi
27791.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
27801.74Schristos$as_echo "$cross_compiling" >&6; }
27811.74Schristos
27821.74Schristosrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
27831.74Schristosac_clean_files=$ac_clean_files_save
27841.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
27851.74Schristos$as_echo_n "checking for suffix of object files... " >&6; }
27861.74Schristosif ${ac_cv_objext+:} false; then :
27871.74Schristos  $as_echo_n "(cached) " >&6
27881.1Stvelse
27891.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27901.74Schristos/* end confdefs.h.  */
27911.1Stv
27921.74Schristosint
27931.74Schristosmain ()
27941.74Schristos{
27951.74Schristos
27961.74Schristos  ;
27971.74Schristos  return 0;
27981.74Schristos}
27991.74Schristos_ACEOF
28001.74Schristosrm -f conftest.o conftest.obj
28011.74Schristosif { { ac_try="$ac_compile"
28021.74Schristoscase "(($ac_try" in
28031.74Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28041.74Schristos  *) ac_try_echo=$ac_try;;
28051.74Schristosesac
28061.74Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28071.74Schristos$as_echo "$ac_try_echo"; } >&5
28081.74Schristos  (eval "$ac_compile") 2>&5
28091.74Schristos  ac_status=$?
28101.74Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28111.74Schristos  test $ac_status = 0; }; then :
28121.74Schristos  for ac_file in conftest.o conftest.obj conftest.*; do
28131.74Schristos  test -f "$ac_file" || continue;
28141.74Schristos  case $ac_file in
28151.74Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
28161.74Schristos    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
28171.74Schristos       break;;
28181.74Schristos  esac
28191.74Schristosdone
28201.74Schristoselse
28211.74Schristos  $as_echo "$as_me: failed program was:" >&5
28221.74Schristossed 's/^/| /' conftest.$ac_ext >&5
28231.74Schristos
28241.74Schristos{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28251.74Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28261.74Schristosas_fn_error $? "cannot compute suffix of object files: cannot compile
28271.74SchristosSee \`config.log' for more details" "$LINENO" 5; }
28281.74Schristosfi
28291.1Stvrm -f conftest.$ac_cv_objext conftest.$ac_ext
28301.1Stvfi
28311.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
28321.74Schristos$as_echo "$ac_cv_objext" >&6; }
28331.1StvOBJEXT=$ac_cv_objext
28341.1Stvac_objext=$OBJEXT
28351.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
28361.74Schristos$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
28371.74Schristosif ${ac_cv_c_compiler_gnu+:} false; then :
28381.74Schristos  $as_echo_n "(cached) " >&6
28391.74Schristoselse
28401.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28411.74Schristos/* end confdefs.h.  */
28421.1Stv
28431.1Stvint
28441.1Stvmain ()
28451.1Stv{
28461.1Stv#ifndef __GNUC__
28471.1Stv       choke me
28481.1Stv#endif
28491.1Stv
28501.1Stv  ;
28511.1Stv  return 0;
28521.1Stv}
28531.1Stv_ACEOF
28541.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
28551.1Stv  ac_compiler_gnu=yes
28561.1Stvelse
28571.74Schristos  ac_compiler_gnu=no
28581.1Stvfi
28591.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28601.1Stvac_cv_c_compiler_gnu=$ac_compiler_gnu
28611.1Stv
28621.1Stvfi
28631.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
28641.74Schristos$as_echo "$ac_cv_c_compiler_gnu" >&6; }
28651.74Schristosif test $ac_compiler_gnu = yes; then
28661.74Schristos  GCC=yes
28671.74Schristoselse
28681.74Schristos  GCC=
28691.74Schristosfi
28701.1Stvac_test_CFLAGS=${CFLAGS+set}
28711.1Stvac_save_CFLAGS=$CFLAGS
28721.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
28731.74Schristos$as_echo_n "checking whether $CC accepts -g... " >&6; }
28741.74Schristosif ${ac_cv_prog_cc_g+:} false; then :
28751.74Schristos  $as_echo_n "(cached) " >&6
28761.74Schristoselse
28771.74Schristos  ac_save_c_werror_flag=$ac_c_werror_flag
28781.74Schristos   ac_c_werror_flag=yes
28791.74Schristos   ac_cv_prog_cc_g=no
28801.74Schristos   CFLAGS="-g"
28811.74Schristos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28821.74Schristos/* end confdefs.h.  */
28831.1Stv
28841.1Stvint
28851.1Stvmain ()
28861.1Stv{
28871.1Stv
28881.1Stv  ;
28891.1Stv  return 0;
28901.1Stv}
28911.1Stv_ACEOF
28921.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
28931.1Stv  ac_cv_prog_cc_g=yes
28941.1Stvelse
28951.74Schristos  CFLAGS=""
28961.74Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28971.74Schristos/* end confdefs.h.  */
28981.74Schristos
28991.74Schristosint
29001.74Schristosmain ()
29011.74Schristos{
29021.74Schristos
29031.74Schristos  ;
29041.74Schristos  return 0;
29051.74Schristos}
29061.74Schristos_ACEOF
29071.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
29081.74Schristos
29091.74Schristoselse
29101.74Schristos  ac_c_werror_flag=$ac_save_c_werror_flag
29111.74Schristos	 CFLAGS="-g"
29121.74Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29131.74Schristos/* end confdefs.h.  */
29141.74Schristos
29151.74Schristosint
29161.74Schristosmain ()
29171.74Schristos{
29181.74Schristos
29191.74Schristos  ;
29201.74Schristos  return 0;
29211.74Schristos}
29221.74Schristos_ACEOF
29231.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
29241.74Schristos  ac_cv_prog_cc_g=yes
29251.74Schristosfi
29261.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29271.66Stsutsuifi
29281.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29291.66Stsutsuifi
29301.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29311.74Schristos   ac_c_werror_flag=$ac_save_c_werror_flag
29321.74Schristosfi
29331.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
29341.74Schristos$as_echo "$ac_cv_prog_cc_g" >&6; }
29351.66Stsutsuiif test "$ac_test_CFLAGS" = set; then
29361.66Stsutsui  CFLAGS=$ac_save_CFLAGS
29371.66Stsutsuielif test $ac_cv_prog_cc_g = yes; then
29381.66Stsutsui  if test "$GCC" = yes; then
29391.66Stsutsui    CFLAGS="-g -O2"
29401.66Stsutsui  else
29411.66Stsutsui    CFLAGS="-g"
29421.66Stsutsui  fi
29431.66Stsutsuielse
29441.66Stsutsui  if test "$GCC" = yes; then
29451.66Stsutsui    CFLAGS="-O2"
29461.66Stsutsui  else
29471.66Stsutsui    CFLAGS=
29481.66Stsutsui  fi
29491.66Stsutsuifi
29501.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
29511.74Schristos$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
29521.74Schristosif ${ac_cv_prog_cc_c89+:} false; then :
29531.74Schristos  $as_echo_n "(cached) " >&6
29541.74Schristoselse
29551.74Schristos  ac_cv_prog_cc_c89=no
29561.74Schristosac_save_CC=$CC
29571.74Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
29581.74Schristos/* end confdefs.h.  */
29591.74Schristos#include <stdarg.h>
29601.74Schristos#include <stdio.h>
29611.74Schristosstruct stat;
29621.74Schristos/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
29631.74Schristosstruct buf { int x; };
29641.74SchristosFILE * (*rcsopen) (struct buf *, struct stat *, int);
29651.74Schristosstatic char *e (p, i)
29661.74Schristos     char **p;
29671.74Schristos     int i;
29681.74Schristos{
29691.74Schristos  return p[i];
29701.74Schristos}
29711.74Schristosstatic char *f (char * (*g) (char **, int), char **p, ...)
29721.1Stv{
29731.74Schristos  char *s;
29741.74Schristos  va_list v;
29751.74Schristos  va_start (v,p);
29761.74Schristos  s = g (p, va_arg (v,int));
29771.74Schristos  va_end (v);
29781.74Schristos  return s;
29791.1Stv}
29801.74Schristos
29811.74Schristos/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
29821.74Schristos   function prototypes and stuff, but not '\xHH' hex character constants.
29831.74Schristos   These don't provoke an error unfortunately, instead are silently treated
29841.74Schristos   as 'x'.  The following induces an error, until -std is added to get
29851.74Schristos   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
29861.74Schristos   array size at least.  It's necessary to write '\x00'==0 to get something
29871.74Schristos   that's true only with -std.  */
29881.74Schristosint osf4_cc_array ['\x00' == 0 ? 1 : -1];
29891.74Schristos
29901.74Schristos/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
29911.74Schristos   inside strings and character constants.  */
29921.74Schristos#define FOO(x) 'x'
29931.74Schristosint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
29941.74Schristos
29951.74Schristosint test (int i, double x);
29961.74Schristosstruct s1 {int (*f) (int a);};
29971.74Schristosstruct s2 {int (*f) (double a);};
29981.74Schristosint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
29991.74Schristosint argc;
30001.74Schristoschar **argv;
30011.1Stvint
30021.1Stvmain ()
30031.1Stv{
30041.74Schristosreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
30051.1Stv  ;
30061.1Stv  return 0;
30071.1Stv}
30081.1Stv_ACEOF
30091.74Schristosfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
30101.74Schristos	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30111.74Schristosdo
30121.74Schristos  CC="$ac_save_CC $ac_arg"
30131.74Schristos  if ac_fn_c_try_compile "$LINENO"; then :
30141.74Schristos  ac_cv_prog_cc_c89=$ac_arg
30151.65Schristosfi
30161.74Schristosrm -f core conftest.err conftest.$ac_objext
30171.74Schristos  test "x$ac_cv_prog_cc_c89" != "xno" && break
30181.66Stsutsuidone
30191.74Schristosrm -f conftest.$ac_ext
30201.74SchristosCC=$ac_save_CC
30211.74Schristos
30221.1Stvfi
30231.74Schristos# AC_CACHE_VAL
30241.74Schristoscase "x$ac_cv_prog_cc_c89" in
30251.74Schristos  x)
30261.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
30271.74Schristos$as_echo "none needed" >&6; } ;;
30281.74Schristos  xno)
30291.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
30301.74Schristos$as_echo "unsupported" >&6; } ;;
30311.74Schristos  *)
30321.74Schristos    CC="$CC $ac_cv_prog_cc_c89"
30331.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
30341.74Schristos$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
30351.74Schristosesac
30361.74Schristosif test "x$ac_cv_prog_cc_c89" != xno; then :
30371.1Stv
30381.65Schristosfi
30391.74Schristos
30401.1Stvac_ext=c
30411.1Stvac_cpp='$CPP $CPPFLAGS'
30421.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30431.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30441.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
30451.1Stv
30461.74Schristos
30471.1Stvac_ext=c
30481.1Stvac_cpp='$CPP $CPPFLAGS'
30491.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30501.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30511.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
30521.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
30531.74Schristos$as_echo_n "checking how to run the C preprocessor... " >&6; }
30541.1Stv# On Suns, sometimes $CPP names a directory.
30551.1Stvif test -n "$CPP" && test -d "$CPP"; then
30561.1Stv  CPP=
30571.1Stvfi
30581.1Stvif test -z "$CPP"; then
30591.74Schristos  if ${ac_cv_prog_CPP+:} false; then :
30601.74Schristos  $as_echo_n "(cached) " >&6
30611.1Stvelse
30621.1Stv      # Double quotes because CPP needs to be expanded
30631.1Stv    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
30641.1Stv    do
30651.1Stv      ac_preproc_ok=false
30661.1Stvfor ac_c_preproc_warn_flag in '' yes
30671.1Stvdo
30681.1Stv  # Use a header file that comes with gcc, so configuring glibc
30691.1Stv  # with a fresh cross-compiler works.
30701.74Schristos  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30711.74Schristos  # <limits.h> exists even on freestanding compilers.
30721.1Stv  # On the NeXT, cc -E runs the code through the compiler's parser,
30731.1Stv  # not just through cpp. "Syntax error" is here to catch this case.
30741.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30751.74Schristos/* end confdefs.h.  */
30761.74Schristos#ifdef __STDC__
30771.74Schristos# include <limits.h>
30781.74Schristos#else
30791.74Schristos# include <assert.h>
30801.74Schristos#endif
30811.74Schristos		     Syntax error
30821.48Sjmc_ACEOF
30831.74Schristosif ac_fn_c_try_cpp "$LINENO"; then :
30841.74Schristos
30851.1Stvelse
30861.1Stv  # Broken: fails on valid input.
30871.1Stvcontinue
30881.1Stvfi
30891.74Schristosrm -f conftest.err conftest.i conftest.$ac_ext
30901.1Stv
30911.74Schristos  # OK, works on sane cases.  Now check whether nonexistent headers
30921.1Stv  # can be detected and how.
30931.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30941.74Schristos/* end confdefs.h.  */
30951.1Stv#include <ac_nonexistent.h>
30961.1Stv_ACEOF
30971.74Schristosif ac_fn_c_try_cpp "$LINENO"; then :
30981.1Stv  # Broken: success on invalid input.
30991.1Stvcontinue
31001.1Stvelse
31011.1Stv  # Passes both tests.
31021.1Stvac_preproc_ok=:
31031.1Stvbreak
31041.1Stvfi
31051.74Schristosrm -f conftest.err conftest.i conftest.$ac_ext
31061.1Stv
31071.1Stvdone
31081.1Stv# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
31091.74Schristosrm -f conftest.i conftest.err conftest.$ac_ext
31101.74Schristosif $ac_preproc_ok; then :
31111.1Stv  break
31121.1Stvfi
31131.1Stv
31141.1Stv    done
31151.1Stv    ac_cv_prog_CPP=$CPP
31161.1Stv
31171.1Stvfi
31181.1Stv  CPP=$ac_cv_prog_CPP
31191.1Stvelse
31201.1Stv  ac_cv_prog_CPP=$CPP
31211.1Stvfi
31221.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
31231.74Schristos$as_echo "$CPP" >&6; }
31241.1Stvac_preproc_ok=false
31251.1Stvfor ac_c_preproc_warn_flag in '' yes
31261.1Stvdo
31271.1Stv  # Use a header file that comes with gcc, so configuring glibc
31281.1Stv  # with a fresh cross-compiler works.
31291.74Schristos  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31301.74Schristos  # <limits.h> exists even on freestanding compilers.
31311.1Stv  # On the NeXT, cc -E runs the code through the compiler's parser,
31321.1Stv  # not just through cpp. "Syntax error" is here to catch this case.
31331.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31341.74Schristos/* end confdefs.h.  */
31351.74Schristos#ifdef __STDC__
31361.74Schristos# include <limits.h>
31371.74Schristos#else
31381.74Schristos# include <assert.h>
31391.74Schristos#endif
31401.74Schristos		     Syntax error
31411.53Sdogcow_ACEOF
31421.74Schristosif ac_fn_c_try_cpp "$LINENO"; then :
31431.74Schristos
31441.1Stvelse
31451.1Stv  # Broken: fails on valid input.
31461.1Stvcontinue
31471.1Stvfi
31481.74Schristosrm -f conftest.err conftest.i conftest.$ac_ext
31491.1Stv
31501.74Schristos  # OK, works on sane cases.  Now check whether nonexistent headers
31511.1Stv  # can be detected and how.
31521.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31531.74Schristos/* end confdefs.h.  */
31541.1Stv#include <ac_nonexistent.h>
31551.1Stv_ACEOF
31561.74Schristosif ac_fn_c_try_cpp "$LINENO"; then :
31571.45Sjmc  # Broken: success on invalid input.
31581.45Sjmccontinue
31591.45Sjmcelse
31601.45Sjmc  # Passes both tests.
31611.45Sjmcac_preproc_ok=:
31621.45Sjmcbreak
31631.45Sjmcfi
31641.74Schristosrm -f conftest.err conftest.i conftest.$ac_ext
31651.45Sjmc
31661.45Sjmcdone
31671.45Sjmc# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
31681.74Schristosrm -f conftest.i conftest.err conftest.$ac_ext
31691.74Schristosif $ac_preproc_ok; then :
31701.74Schristos
31711.45Sjmcelse
31721.74Schristos  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31731.74Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31741.74Schristosas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
31751.74SchristosSee \`config.log' for more details" "$LINENO" 5; }
31761.45Sjmcfi
31771.45Sjmc
31781.45Sjmcac_ext=c
31791.45Sjmcac_cpp='$CPP $CPPFLAGS'
31801.45Sjmcac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31811.45Sjmcac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31821.45Sjmcac_compiler_gnu=$ac_cv_c_compiler_gnu
31831.45Sjmc
31841.74Schristos
31851.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
31861.74Schristos$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
31871.74Schristosif ${ac_cv_path_GREP+:} false; then :
31881.74Schristos  $as_echo_n "(cached) " >&6
31891.74Schristoselse
31901.74Schristos  if test -z "$GREP"; then
31911.74Schristos  ac_path_GREP_found=false
31921.74Schristos  # Loop through the user's path and test for each of PROGNAME-LIST
31931.74Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31941.74Schristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
31951.74Schristosdo
31961.74Schristos  IFS=$as_save_IFS
31971.74Schristos  test -z "$as_dir" && as_dir=.
31981.74Schristos    for ac_prog in grep ggrep; do
31991.74Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
32001.74Schristos      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
32011.74Schristos      as_fn_executable_p "$ac_path_GREP" || continue
32021.74Schristos# Check for GNU ac_path_GREP and select it if it is found.
32031.74Schristos  # Check for GNU $ac_path_GREP
32041.74Schristoscase `"$ac_path_GREP" --version 2>&1` in
32051.74Schristos*GNU*)
32061.74Schristos  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
32071.74Schristos*)
32081.74Schristos  ac_count=0
32091.74Schristos  $as_echo_n 0123456789 >"conftest.in"
32101.74Schristos  while :
32111.74Schristos  do
32121.74Schristos    cat "conftest.in" "conftest.in" >"conftest.tmp"
32131.74Schristos    mv "conftest.tmp" "conftest.in"
32141.74Schristos    cp "conftest.in" "conftest.nl"
32151.74Schristos    $as_echo 'GREP' >> "conftest.nl"
32161.74Schristos    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32171.74Schristos    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32181.74Schristos    as_fn_arith $ac_count + 1 && ac_count=$as_val
32191.74Schristos    if test $ac_count -gt ${ac_path_GREP_max-0}; then
32201.74Schristos      # Best one so far, save it but keep looking for a better one
32211.74Schristos      ac_cv_path_GREP="$ac_path_GREP"
32221.74Schristos      ac_path_GREP_max=$ac_count
32231.74Schristos    fi
32241.74Schristos    # 10*(2^10) chars as input seems more than enough
32251.74Schristos    test $ac_count -gt 10 && break
32261.74Schristos  done
32271.74Schristos  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32281.74Schristosesac
32291.74Schristos
32301.74Schristos      $ac_path_GREP_found && break 3
32311.74Schristos    done
32321.74Schristos  done
32331.74Schristos  done
32341.74SchristosIFS=$as_save_IFS
32351.74Schristos  if test -z "$ac_cv_path_GREP"; then
32361.74Schristos    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
32371.74Schristos  fi
32381.74Schristoselse
32391.74Schristos  ac_cv_path_GREP=$GREP
32401.74Schristosfi
32411.74Schristos
32421.74Schristosfi
32431.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
32441.74Schristos$as_echo "$ac_cv_path_GREP" >&6; }
32451.74Schristos GREP="$ac_cv_path_GREP"
32461.74Schristos
32471.74Schristos
32481.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
32491.74Schristos$as_echo_n "checking for egrep... " >&6; }
32501.74Schristosif ${ac_cv_path_EGREP+:} false; then :
32511.74Schristos  $as_echo_n "(cached) " >&6
32521.74Schristoselse
32531.74Schristos  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
32541.74Schristos   then ac_cv_path_EGREP="$GREP -E"
32551.74Schristos   else
32561.74Schristos     if test -z "$EGREP"; then
32571.74Schristos  ac_path_EGREP_found=false
32581.74Schristos  # Loop through the user's path and test for each of PROGNAME-LIST
32591.74Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32601.74Schristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32611.74Schristosdo
32621.74Schristos  IFS=$as_save_IFS
32631.74Schristos  test -z "$as_dir" && as_dir=.
32641.74Schristos    for ac_prog in egrep; do
32651.74Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
32661.74Schristos      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
32671.74Schristos      as_fn_executable_p "$ac_path_EGREP" || continue
32681.74Schristos# Check for GNU ac_path_EGREP and select it if it is found.
32691.74Schristos  # Check for GNU $ac_path_EGREP
32701.74Schristoscase `"$ac_path_EGREP" --version 2>&1` in
32711.74Schristos*GNU*)
32721.74Schristos  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
32731.74Schristos*)
32741.74Schristos  ac_count=0
32751.74Schristos  $as_echo_n 0123456789 >"conftest.in"
32761.74Schristos  while :
32771.74Schristos  do
32781.74Schristos    cat "conftest.in" "conftest.in" >"conftest.tmp"
32791.74Schristos    mv "conftest.tmp" "conftest.in"
32801.74Schristos    cp "conftest.in" "conftest.nl"
32811.74Schristos    $as_echo 'EGREP' >> "conftest.nl"
32821.74Schristos    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32831.74Schristos    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32841.74Schristos    as_fn_arith $ac_count + 1 && ac_count=$as_val
32851.74Schristos    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
32861.74Schristos      # Best one so far, save it but keep looking for a better one
32871.74Schristos      ac_cv_path_EGREP="$ac_path_EGREP"
32881.74Schristos      ac_path_EGREP_max=$ac_count
32891.74Schristos    fi
32901.74Schristos    # 10*(2^10) chars as input seems more than enough
32911.74Schristos    test $ac_count -gt 10 && break
32921.74Schristos  done
32931.74Schristos  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32941.74Schristosesac
32951.74Schristos
32961.74Schristos      $ac_path_EGREP_found && break 3
32971.74Schristos    done
32981.74Schristos  done
32991.74Schristos  done
33001.74SchristosIFS=$as_save_IFS
33011.74Schristos  if test -z "$ac_cv_path_EGREP"; then
33021.74Schristos    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
33031.74Schristos  fi
33041.74Schristoselse
33051.74Schristos  ac_cv_path_EGREP=$EGREP
33061.74Schristosfi
33071.74Schristos
33081.74Schristos   fi
33091.74Schristosfi
33101.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
33111.74Schristos$as_echo "$ac_cv_path_EGREP" >&6; }
33121.74Schristos EGREP="$ac_cv_path_EGREP"
33131.74Schristos
33141.74Schristos
33151.74Schristos            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetBSD" >&5
33161.74Schristos$as_echo_n "checking for NetBSD... " >&6; }
33171.74Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33181.74Schristos/* end confdefs.h.  */
33191.45Sjmc#ifdef __NetBSD__
33201.45Sjmc	yes
33211.45Sjmc	#endif
33221.45Sjmc
33231.45Sjmc_ACEOF
33241.45Sjmcif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33251.74Schristos  $EGREP "yes" >/dev/null 2>&1; then :
33261.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33271.74Schristos$as_echo "yes" >&6; }
33281.74Schristos
33291.74Schristos$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
33301.74Schristos
33311.54Swiz
33321.74Schristos$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
33331.54Swiz
33341.54Swiz
33351.74Schristos$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
33361.45Sjmc
33371.45Sjmcelse
33381.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33391.74Schristos$as_echo "no" >&6; }
33401.45Sjmcfi
33411.45Sjmcrm -f conftest*
33421.45Sjmc
33431.74Schristos
33441.45Sjmc# Extract the first word of "sh", so it can be a program name with args.
33451.45Sjmcset dummy sh; ac_word=$2
33461.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33471.74Schristos$as_echo_n "checking for $ac_word... " >&6; }
33481.74Schristosif ${ac_cv_path_BSHELL+:} false; then :
33491.74Schristos  $as_echo_n "(cached) " >&6
33501.45Sjmcelse
33511.45Sjmc  case $BSHELL in
33521.45Sjmc  [\\/]* | ?:[\\/]*)
33531.45Sjmc  ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
33541.45Sjmc  ;;
33551.45Sjmc  *)
33561.74Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33571.74Schristosfor as_dir in $PATH
33581.74Schristosdo
33591.74Schristos  IFS=$as_save_IFS
33601.74Schristos  test -z "$as_dir" && as_dir=.
33611.74Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
33621.74Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33631.74Schristos    ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext"
33641.74Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33651.74Schristos    break 2
33661.74Schristos  fi
33671.65Schristosdone
33681.74Schristos  done
33691.74SchristosIFS=$as_save_IFS
33701.45Sjmc
33711.45Sjmc  ;;
33721.45Sjmcesac
33731.45Sjmcfi
33741.45SjmcBSHELL=$ac_cv_path_BSHELL
33751.45Sjmcif test -n "$BSHELL"; then
33761.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BSHELL" >&5
33771.74Schristos$as_echo "$BSHELL" >&6; }
33781.45Sjmcelse
33791.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33801.74Schristos$as_echo "no" >&6; }
33811.45Sjmcfi
33821.45Sjmc
33831.74Schristos
33841.45Sjmcif test x"$BSHELL" = x; then
33851.74Schristos	as_fn_error $? "sh must be somewhere on \$PATH" "$LINENO" 5
33861.45Sjmcfi
33871.54Swiz
33881.74Schristoscat >>confdefs.h <<_ACEOF
33891.45Sjmc#define PATH_BSHELL "$BSHELL"
33901.74Schristos_ACEOF
33911.74Schristos
33921.53Sdogcow
33931.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
33941.74Schristos$as_echo_n "checking for ANSI C header files... " >&6; }
33951.74Schristosif ${ac_cv_header_stdc+:} false; then :
33961.74Schristos  $as_echo_n "(cached) " >&6
33971.45Sjmcelse
33981.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33991.74Schristos/* end confdefs.h.  */
34001.74Schristos#include <stdlib.h>
34011.74Schristos#include <stdarg.h>
34021.74Schristos#include <string.h>
34031.74Schristos#include <float.h>
34041.45Sjmc
34051.45Sjmcint
34061.45Sjmcmain ()
34071.45Sjmc{
34081.45Sjmc
34091.45Sjmc  ;
34101.45Sjmc  return 0;
34111.45Sjmc}
34121.45Sjmc_ACEOF
34131.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
34141.6Stv  ac_cv_header_stdc=yes
34151.6Stvelse
34161.66Stsutsui  ac_cv_header_stdc=no
34171.6Stvfi
34181.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34191.6Stv
34201.6Stvif test $ac_cv_header_stdc = yes; then
34211.6Stv  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
34221.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34231.74Schristos/* end confdefs.h.  */
34241.6Stv#include <string.h>
34251.6Stv
34261.6Stv_ACEOF
34271.6Stvif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34281.74Schristos  $EGREP "memchr" >/dev/null 2>&1; then :
34291.74Schristos
34301.6Stvelse
34311.6Stv  ac_cv_header_stdc=no
34321.6Stvfi
34331.6Stvrm -f conftest*
34341.6Stv
34351.6Stvfi
34361.6Stv
34371.6Stvif test $ac_cv_header_stdc = yes; then
34381.6Stv  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
34391.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34401.74Schristos/* end confdefs.h.  */
34411.6Stv#include <stdlib.h>
34421.6Stv
34431.6Stv_ACEOF
34441.6Stvif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34451.74Schristos  $EGREP "free" >/dev/null 2>&1; then :
34461.74Schristos
34471.6Stvelse
34481.6Stv  ac_cv_header_stdc=no
34491.6Stvfi
34501.6Stvrm -f conftest*
34511.6Stv
34521.6Stvfi
34531.6Stv
34541.6Stvif test $ac_cv_header_stdc = yes; then
34551.6Stv  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
34561.74Schristos  if test "$cross_compiling" = yes; then :
34571.6Stv  :
34581.6Stvelse
34591.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34601.74Schristos/* end confdefs.h.  */
34611.6Stv#include <ctype.h>
34621.74Schristos#include <stdlib.h>
34631.6Stv#if ((' ' & 0x0FF) == 0x020)
34641.6Stv# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
34651.6Stv# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
34661.6Stv#else
34671.74Schristos# define ISLOWER(c) \
34681.74Schristos		   (('a' <= (c) && (c) <= 'i') \
34691.74Schristos		     || ('j' <= (c) && (c) <= 'r') \
34701.74Schristos		     || ('s' <= (c) && (c) <= 'z'))
34711.6Stv# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
34721.6Stv#endif
34731.6Stv
34741.6Stv#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
34751.6Stvint
34761.6Stvmain ()
34771.6Stv{
34781.6Stv  int i;
34791.6Stv  for (i = 0; i < 256; i++)
34801.6Stv    if (XOR (islower (i), ISLOWER (i))
34811.74Schristos	|| toupper (i) != TOUPPER (i))
34821.74Schristos      return 2;
34831.74Schristos  return 0;
34841.6Stv}
34851.6Stv_ACEOF
34861.74Schristosif ac_fn_c_try_run "$LINENO"; then :
34871.74Schristos
34881.6Stvelse
34891.74Schristos  ac_cv_header_stdc=no
34901.6Stvfi
34911.74Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34921.74Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
34931.6Stvfi
34941.74Schristos
34951.6Stvfi
34961.6Stvfi
34971.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
34981.74Schristos$as_echo "$ac_cv_header_stdc" >&6; }
34991.6Stvif test $ac_cv_header_stdc = yes; then
35001.6Stv
35011.74Schristos$as_echo "#define STDC_HEADERS 1" >>confdefs.h
35021.6Stv
35031.6Stvfi
35041.6Stv
35051.74Schristos# On IRIX 5.3, sys/types and inttypes.h are conflicting.
35061.74Schristosfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
35071.74Schristos		  inttypes.h stdint.h unistd.h
35081.74Schristosdo :
35091.74Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35101.74Schristosac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
35111.74Schristos"
35121.74Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35131.74Schristos  cat >>confdefs.h <<_ACEOF
35141.74Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35151.61Schristos_ACEOF
35161.74Schristos
35171.6Stvfi
35181.6Stv
35191.74Schristosdone
35201.74Schristos
35211.74Schristos
35221.74Schristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
35231.74Schristos$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
35241.74Schristosif ${ac_cv_c_bigendian+:} false; then :
35251.74Schristos  $as_echo_n "(cached) " >&6
35261.74Schristoselse
35271.74Schristos  ac_cv_c_bigendian=unknown
35281.74Schristos    # See if we're dealing with a universal compiler.
35291.74Schristos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35301.74Schristos/* end confdefs.h.  */
35311.74Schristos#ifndef __APPLE_CC__
35321.74Schristos	       not a universal capable compiler
35331.74Schristos	     #endif
35341.74Schristos	     typedef int dummy;
35351.74Schristos
35361.74Schristos_ACEOF
35371.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
35381.74Schristos
35391.74Schristos	# Check for potential -arch flags.  It is not universal unless
35401.74Schristos	# there are at least two -arch flags with different values.
35411.74Schristos	ac_arch=
35421.74Schristos	ac_prev=
35431.74Schristos	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
35441.74Schristos	 if test -n "$ac_prev"; then
35451.74Schristos	   case $ac_word in
35461.74Schristos	     i?86 | x86_64 | ppc | ppc64)
35471.74Schristos	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
35481.74Schristos		 ac_arch=$ac_word
35491.74Schristos	       else
35501.74Schristos		 ac_cv_c_bigendian=universal
35511.74Schristos		 break
35521.74Schristos	       fi
35531.74Schristos	       ;;
35541.74Schristos	   esac
35551.74Schristos	   ac_prev=
35561.74Schristos	 elif test "x$ac_word" = "x-arch"; then
35571.74Schristos	   ac_prev=arch
35581.74Schristos	 fi
35591.74Schristos       done
35601.74Schristosfi
35611.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35621.74Schristos    if test $ac_cv_c_bigendian = unknown; then
35631.74Schristos      # See if sys/param.h defines the BYTE_ORDER macro.
35641.74Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35651.74Schristos/* end confdefs.h.  */
35661.74Schristos#include <sys/types.h>
35671.74Schristos	     #include <sys/param.h>
35681.74Schristos
35691.74Schristosint
35701.74Schristosmain ()
35711.74Schristos{
35721.74Schristos#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
35731.74Schristos		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
35741.74Schristos		     && LITTLE_ENDIAN)
35751.74Schristos	      bogus endian macros
35761.74Schristos	     #endif
35771.74Schristos
35781.74Schristos  ;
35791.74Schristos  return 0;
35801.74Schristos}
35811.74Schristos_ACEOF
35821.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
35831.74Schristos  # It does; now see whether it defined to BIG_ENDIAN or not.
35841.74Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35851.74Schristos/* end confdefs.h.  */
35861.74Schristos#include <sys/types.h>
35871.74Schristos		#include <sys/param.h>
35881.74Schristos
35891.74Schristosint
35901.74Schristosmain ()
35911.74Schristos{
35921.74Schristos#if BYTE_ORDER != BIG_ENDIAN
35931.74Schristos		 not big endian
35941.74Schristos		#endif
35951.74Schristos
35961.74Schristos  ;
35971.74Schristos  return 0;
35981.74Schristos}
35991.74Schristos_ACEOF
36001.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
36011.74Schristos  ac_cv_c_bigendian=yes
36021.74Schristoselse
36031.74Schristos  ac_cv_c_bigendian=no
36041.74Schristosfi
36051.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36061.74Schristosfi
36071.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36081.74Schristos    fi
36091.74Schristos    if test $ac_cv_c_bigendian = unknown; then
36101.74Schristos      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
36111.74Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36121.74Schristos/* end confdefs.h.  */
36131.74Schristos#include <limits.h>
36141.74Schristos
36151.74Schristosint
36161.74Schristosmain ()
36171.74Schristos{
36181.74Schristos#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
36191.74Schristos	      bogus endian macros
36201.74Schristos	     #endif
36211.74Schristos
36221.74Schristos  ;
36231.74Schristos  return 0;
36241.74Schristos}
36251.74Schristos_ACEOF
36261.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
36271.74Schristos  # It does; now see whether it defined to _BIG_ENDIAN or not.
36281.74Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36291.74Schristos/* end confdefs.h.  */
36301.74Schristos#include <limits.h>
36311.74Schristos
36321.74Schristosint
36331.74Schristosmain ()
36341.74Schristos{
36351.74Schristos#ifndef _BIG_ENDIAN
36361.74Schristos		 not big endian
36371.74Schristos		#endif
36381.74Schristos
36391.74Schristos  ;
36401.74Schristos  return 0;
36411.74Schristos}
36421.74Schristos_ACEOF
36431.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
36441.74Schristos  ac_cv_c_bigendian=yes
36451.74Schristoselse
36461.74Schristos  ac_cv_c_bigendian=no
36471.74Schristosfi
36481.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36491.74Schristosfi
36501.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36511.74Schristos    fi
36521.74Schristos    if test $ac_cv_c_bigendian = unknown; then
36531.74Schristos      # Compile a test program.
36541.74Schristos      if test "$cross_compiling" = yes; then :
36551.74Schristos  # Try to guess by grepping values from an object file.
36561.74Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36571.74Schristos/* end confdefs.h.  */
36581.74Schristosshort int ascii_mm[] =
36591.74Schristos		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
36601.74Schristos		short int ascii_ii[] =
36611.74Schristos		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
36621.74Schristos		int use_ascii (int i) {
36631.74Schristos		  return ascii_mm[i] + ascii_ii[i];
36641.74Schristos		}
36651.74Schristos		short int ebcdic_ii[] =
36661.74Schristos		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
36671.74Schristos		short int ebcdic_mm[] =
36681.74Schristos		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
36691.74Schristos		int use_ebcdic (int i) {
36701.74Schristos		  return ebcdic_mm[i] + ebcdic_ii[i];
36711.74Schristos		}
36721.74Schristos		extern int foo;
36731.74Schristos
36741.74Schristosint
36751.74Schristosmain ()
36761.74Schristos{
36771.74Schristosreturn use_ascii (foo) == use_ebcdic (foo);
36781.74Schristos  ;
36791.74Schristos  return 0;
36801.74Schristos}
36811.74Schristos_ACEOF
36821.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
36831.74Schristos  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
36841.74Schristos	      ac_cv_c_bigendian=yes
36851.74Schristos	    fi
36861.74Schristos	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
36871.74Schristos	      if test "$ac_cv_c_bigendian" = unknown; then
36881.74Schristos		ac_cv_c_bigendian=no
36891.74Schristos	      else
36901.74Schristos		# finding both strings is unlikely to happen, but who knows?
36911.74Schristos		ac_cv_c_bigendian=unknown
36921.74Schristos	      fi
36931.74Schristos	    fi
36941.74Schristosfi
36951.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36961.74Schristoselse
36971.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36981.74Schristos/* end confdefs.h.  */
36991.74Schristos$ac_includes_default
37001.74Schristosint
37011.74Schristosmain ()
37021.74Schristos{
37031.74Schristos
37041.74Schristos	     /* Are we little or big endian?  From Harbison&Steele.  */
37051.74Schristos	     union
37061.74Schristos	     {
37071.74Schristos	       long int l;
37081.74Schristos	       char c[sizeof (long int)];
37091.74Schristos	     } u;
37101.74Schristos	     u.l = 1;
37111.74Schristos	     return u.c[sizeof (long int) - 1] == 1;
37121.74Schristos
37131.74Schristos  ;
37141.74Schristos  return 0;
37151.74Schristos}
37161.74Schristos_ACEOF
37171.74Schristosif ac_fn_c_try_run "$LINENO"; then :
37181.74Schristos  ac_cv_c_bigendian=no
37191.74Schristoselse
37201.74Schristos  ac_cv_c_bigendian=yes
37211.74Schristosfi
37221.74Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37231.74Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
37241.74Schristosfi
37251.74Schristos
37261.74Schristos    fi
37271.74Schristosfi
37281.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
37291.74Schristos$as_echo "$ac_cv_c_bigendian" >&6; }
37301.74Schristos case $ac_cv_c_bigendian in #(
37311.74Schristos   yes)
37321.74Schristos     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
37331.74Schristos;; #(
37341.74Schristos   no)
37351.74Schristos      ;; #(
37361.74Schristos   universal)
37371.74Schristos
37381.74Schristos$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
37391.74Schristos
37401.74Schristos     ;; #(
37411.74Schristos   *)
37421.74Schristos     as_fn_error $? "unknown endianness
37431.74Schristos presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
37441.74Schristos esac
37451.74Schristos
37461.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
37471.74Schristos$as_echo_n "checking for ANSI C header files... " >&6; }
37481.74Schristosif ${ac_cv_header_stdc+:} false; then :
37491.74Schristos  $as_echo_n "(cached) " >&6
37501.74Schristoselse
37511.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37521.74Schristos/* end confdefs.h.  */
37531.74Schristos#include <stdlib.h>
37541.74Schristos#include <stdarg.h>
37551.74Schristos#include <string.h>
37561.74Schristos#include <float.h>
37571.74Schristos
37581.74Schristosint
37591.74Schristosmain ()
37601.74Schristos{
37611.74Schristos
37621.74Schristos  ;
37631.74Schristos  return 0;
37641.74Schristos}
37651.74Schristos_ACEOF
37661.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
37671.74Schristos  ac_cv_header_stdc=yes
37681.74Schristoselse
37691.74Schristos  ac_cv_header_stdc=no
37701.74Schristosfi
37711.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37721.74Schristos
37731.74Schristosif test $ac_cv_header_stdc = yes; then
37741.74Schristos  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
37751.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37761.74Schristos/* end confdefs.h.  */
37771.74Schristos#include <string.h>
37781.74Schristos
37791.74Schristos_ACEOF
37801.74Schristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37811.74Schristos  $EGREP "memchr" >/dev/null 2>&1; then :
37821.74Schristos
37831.74Schristoselse
37841.74Schristos  ac_cv_header_stdc=no
37851.74Schristosfi
37861.74Schristosrm -f conftest*
37871.74Schristos
37881.74Schristosfi
37891.74Schristos
37901.74Schristosif test $ac_cv_header_stdc = yes; then
37911.74Schristos  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
37921.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37931.74Schristos/* end confdefs.h.  */
37941.74Schristos#include <stdlib.h>
37951.74Schristos
37961.74Schristos_ACEOF
37971.74Schristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37981.74Schristos  $EGREP "free" >/dev/null 2>&1; then :
37991.74Schristos
38001.74Schristoselse
38011.74Schristos  ac_cv_header_stdc=no
38021.74Schristosfi
38031.74Schristosrm -f conftest*
38041.74Schristos
38051.74Schristosfi
38061.74Schristos
38071.74Schristosif test $ac_cv_header_stdc = yes; then
38081.74Schristos  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
38091.74Schristos  if test "$cross_compiling" = yes; then :
38101.74Schristos  :
38111.74Schristoselse
38121.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38131.74Schristos/* end confdefs.h.  */
38141.74Schristos#include <ctype.h>
38151.74Schristos#include <stdlib.h>
38161.74Schristos#if ((' ' & 0x0FF) == 0x020)
38171.74Schristos# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
38181.74Schristos# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
38191.74Schristos#else
38201.74Schristos# define ISLOWER(c) \
38211.74Schristos		   (('a' <= (c) && (c) <= 'i') \
38221.74Schristos		     || ('j' <= (c) && (c) <= 'r') \
38231.74Schristos		     || ('s' <= (c) && (c) <= 'z'))
38241.74Schristos# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
38251.74Schristos#endif
38261.74Schristos
38271.74Schristos#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
38281.74Schristosint
38291.74Schristosmain ()
38301.74Schristos{
38311.74Schristos  int i;
38321.74Schristos  for (i = 0; i < 256; i++)
38331.74Schristos    if (XOR (islower (i), ISLOWER (i))
38341.74Schristos	|| toupper (i) != TOUPPER (i))
38351.74Schristos      return 2;
38361.74Schristos  return 0;
38371.74Schristos}
38381.74Schristos_ACEOF
38391.74Schristosif ac_fn_c_try_run "$LINENO"; then :
38401.74Schristos
38411.74Schristoselse
38421.74Schristos  ac_cv_header_stdc=no
38431.74Schristosfi
38441.74Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38451.74Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
38461.74Schristosfi
38471.74Schristos
38481.74Schristosfi
38491.74Schristosfi
38501.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
38511.74Schristos$as_echo "$ac_cv_header_stdc" >&6; }
38521.74Schristosif test $ac_cv_header_stdc = yes; then
38531.74Schristos
38541.74Schristos$as_echo "#define STDC_HEADERS 1" >>confdefs.h
38551.74Schristos
38561.74Schristosfi
38571.74Schristos
38581.74Schristos
38591.74Schristos# Confirm existence of zlib.  (This is available as a default install
38601.74Schristos# option on many OS's; this could be added as a reachover build in the
38611.74Schristos# future.)
38621.74Schristosac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
38631.74Schristosif test "x$ac_cv_header_zlib_h" = xyes; then :
38641.74Schristos
38651.74Schristoselse
38661.74Schristos  as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5
38671.74Schristosfi
38681.74Schristos
38691.74Schristos
38701.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
38711.74Schristos$as_echo_n "checking for gzdopen in -lz... " >&6; }
38721.74Schristosif ${ac_cv_lib_z_gzdopen+:} false; then :
38731.74Schristos  $as_echo_n "(cached) " >&6
38741.52Sdbjelse
38751.52Sdbj  ac_check_lib_save_LIBS=$LIBS
38761.52SdbjLIBS="-lz  $LIBS"
38771.74Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
38781.74Schristos/* end confdefs.h.  */
38791.48Sjmc
38801.74Schristos/* Override any GCC internal prototype to avoid an error.
38811.74Schristos   Use char because int might match the return type of a GCC
38821.74Schristos   builtin and then its argument prototype would still apply.  */
38831.6Stv#ifdef __cplusplus
38841.6Stvextern "C"
38851.6Stv#endif
38861.6Stvchar gzdopen ();
38871.6Stvint
38881.6Stvmain ()
38891.6Stv{
38901.74Schristosreturn gzdopen ();
38911.6Stv  ;
38921.6Stv  return 0;
38931.6Stv}
38941.6Stv_ACEOF
38951.74Schristosif ac_fn_c_try_link "$LINENO"; then :
38961.6Stv  ac_cv_lib_z_gzdopen=yes
38971.6Stvelse
38981.74Schristos  ac_cv_lib_z_gzdopen=no
38991.6Stvfi
39001.74Schristosrm -f core conftest.err conftest.$ac_objext \
39011.74Schristos    conftest$ac_exeext conftest.$ac_ext
39021.6StvLIBS=$ac_check_lib_save_LIBS
39031.6Stvfi
39041.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
39051.74Schristos$as_echo "$ac_cv_lib_z_gzdopen" >&6; }
39061.74Schristosif test "x$ac_cv_lib_z_gzdopen" = xyes; then :
39071.74Schristos  cat >>confdefs.h <<_ACEOF
39081.6Stv#define HAVE_LIBZ 1
39091.74Schristos_ACEOF
39101.4Stv
39111.6Stv  LIBS="-lz $LIBS"
39121.6Stv
39131.4Stvelse
39141.74Schristos  as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5
39151.4Stvfi
39161.4Stv
39171.74Schristos
39181.6Stv# Make sure certain required headers are available.
39191.6Stv# These are not necessarily required by the code, but they are not
39201.6Stv# currently conditionalized.
39211.69Sdbjfor ac_header in sys/ioctl.h sys/mman.h sys/param.h \
39221.43Sdbj	sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
39231.43Sdbj	sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
39241.43Sdbj	netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
39251.43Sdbj	termios.h unistd.h
39261.74Schristosdo :
39271.74Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39281.74Schristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39291.74Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39301.74Schristos  cat >>confdefs.h <<_ACEOF
39311.74Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39321.48Sjmc_ACEOF
39331.74Schristos
39341.6Stvelse
39351.74Schristos  as_fn_error $? "standard system header file not found" "$LINENO" 5
39361.6Stvfi
39371.6Stv
39381.6Stvdone
39391.6Stv
39401.74Schristos
39411.6Stv# Find headers that may not be available.
39421.6Stvac_header_dirent=no
39431.6Stvfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
39441.74Schristos  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
39451.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
39461.74Schristos$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
39471.74Schristosif eval \${$as_ac_Header+:} false; then :
39481.74Schristos  $as_echo_n "(cached) " >&6
39491.74Schristoselse
39501.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39511.74Schristos/* end confdefs.h.  */
39521.6Stv#include <sys/types.h>
39531.6Stv#include <$ac_hdr>
39541.6Stv
39551.6Stvint
39561.6Stvmain ()
39571.6Stv{
39581.6Stvif ((DIR *) 0)
39591.6Stvreturn 0;
39601.6Stv  ;
39611.6Stv  return 0;
39621.6Stv}
39631.6Stv_ACEOF
39641.74Schristosif ac_fn_c_try_compile "$LINENO"; then :
39651.6Stv  eval "$as_ac_Header=yes"
39661.6Stvelse
39671.74Schristos  eval "$as_ac_Header=no"
39681.74Schristosfi
39691.74Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39701.74Schristosfi
39711.74Schristoseval ac_res=\$$as_ac_Header
39721.74Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39731.74Schristos$as_echo "$ac_res" >&6; }
39741.74Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39751.74Schristos  cat >>confdefs.h <<_ACEOF
39761.74Schristos#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
39771.74Schristos_ACEOF
39781.6Stv
39791.6Stvac_header_dirent=$ac_hdr; break
39801.6Stvfi
39811.6Stv
39821.6Stvdone
39831.6Stv# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
39841.6Stvif test $ac_header_dirent = dirent.h; then
39851.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
39861.74Schristos$as_echo_n "checking for library containing opendir... " >&6; }
39871.74Schristosif ${ac_cv_search_opendir+:} false; then :
39881.74Schristos  $as_echo_n "(cached) " >&6
39891.6Stvelse
39901.74Schristos  ac_func_search_save_LIBS=$LIBS
39911.74Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
39921.74Schristos/* end confdefs.h.  */
39931.48Sjmc
39941.74Schristos/* Override any GCC internal prototype to avoid an error.
39951.74Schristos   Use char because int might match the return type of a GCC
39961.74Schristos   builtin and then its argument prototype would still apply.  */
39971.48Sjmc#ifdef __cplusplus
39981.48Sjmcextern "C"
39991.48Sjmc#endif
40001.48Sjmcchar opendir ();
40011.48Sjmcint
40021.48Sjmcmain ()
40031.48Sjmc{
40041.74Schristosreturn opendir ();
40051.48Sjmc  ;
40061.48Sjmc  return 0;
40071.48Sjmc}
40081.48Sjmc_ACEOF
40091.74Schristosfor ac_lib in '' dir; do
40101.74Schristos  if test -z "$ac_lib"; then
40111.74Schristos    ac_res="none required"
40121.74Schristos  else
40131.74Schristos    ac_res=-l$ac_lib
40141.74Schristos    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40151.74Schristos  fi
40161.74Schristos  if ac_fn_c_try_link "$LINENO"; then :
40171.74Schristos  ac_cv_search_opendir=$ac_res
40181.74Schristosfi
40191.74Schristosrm -f core conftest.err conftest.$ac_objext \
40201.74Schristos    conftest$ac_exeext
40211.74Schristos  if ${ac_cv_search_opendir+:} false; then :
40221.74Schristos  break
40231.74Schristosfi
40241.74Schristosdone
40251.74Schristosif ${ac_cv_search_opendir+:} false; then :
40261.74Schristos
40271.74Schristoselse
40281.74Schristos  ac_cv_search_opendir=no
40291.63Sapbfi
40301.74Schristosrm conftest.$ac_ext
40311.74SchristosLIBS=$ac_func_search_save_LIBS
40321.65Schristosfi
40331.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
40341.74Schristos$as_echo "$ac_cv_search_opendir" >&6; }
40351.74Schristosac_res=$ac_cv_search_opendir
40361.74Schristosif test "$ac_res" != no; then :
40371.74Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40381.74Schristos
40391.63Sapbfi
40401.61Schristos
40411.63Sapbelse
40421.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
40431.74Schristos$as_echo_n "checking for library containing opendir... " >&6; }
40441.74Schristosif ${ac_cv_search_opendir+:} false; then :
40451.74Schristos  $as_echo_n "(cached) " >&6
40461.63Sapbelse
40471.74Schristos  ac_func_search_save_LIBS=$LIBS
40481.74Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
40491.74Schristos/* end confdefs.h.  */
40501.6Stv
40511.74Schristos/* Override any GCC internal prototype to avoid an error.
40521.74Schristos   Use char because int might match the return type of a GCC
40531.74Schristos   builtin and then its argument prototype would still apply.  */
40541.6Stv#ifdef __cplusplus
40551.6Stvextern "C"
40561.6Stv#endif
40571.6Stvchar opendir ();
40581.6Stvint
40591.6Stvmain ()
40601.6Stv{
40611.74Schristosreturn opendir ();
40621.6Stv  ;
40631.6Stv  return 0;
40641.6Stv}
40651.6Stv_ACEOF
40661.74Schristosfor ac_lib in '' x; do
40671.74Schristos  if test -z "$ac_lib"; then
40681.74Schristos    ac_res="none required"
40691.74Schristos  else
40701.74Schristos    ac_res=-l$ac_lib
40711.74Schristos    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40721.74Schristos  fi
40731.74Schristos  if ac_fn_c_try_link "$LINENO"; then :
40741.74Schristos  ac_cv_search_opendir=$ac_res
40751.74Schristosfi
40761.74Schristosrm -f core conftest.err conftest.$ac_objext \
40771.74Schristos    conftest$ac_exeext
40781.74Schristos  if ${ac_cv_search_opendir+:} false; then :
40791.74Schristos  break
40801.74Schristosfi
40811.74Schristosdone
40821.74Schristosif ${ac_cv_search_opendir+:} false; then :
40831.74Schristos
40841.74Schristoselse
40851.74Schristos  ac_cv_search_opendir=no
40861.65Schristosfi
40871.74Schristosrm conftest.$ac_ext
40881.74SchristosLIBS=$ac_func_search_save_LIBS
40891.65Schristosfi
40901.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
40911.74Schristos$as_echo "$ac_cv_search_opendir" >&6; }
40921.74Schristosac_res=$ac_cv_search_opendir
40931.74Schristosif test "$ac_res" != no; then :
40941.74Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40951.74Schristos
40961.48Sjmcfi
40971.65Schristos
40981.6Stvfi
40991.39Sfredb
41001.69Sdbjfor ac_header in sys/mtio.h sys/sysmacros.h sys/syslimits.h \
41011.74Schristos	getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h rpc/types.h
41021.74Schristosdo :
41031.74Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41041.74Schristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
41051.74Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41061.74Schristos  cat >>confdefs.h <<_ACEOF
41071.74Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41081.61Schristos_ACEOF
41091.74Schristos
41101.63Sapbfi
41111.6Stv
41121.63Sapbdone
41131.6Stv
41141.72Sapbfor ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
41151.72Sapb	sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h \
41161.72Sapb	stdint.h util.h resolv.h arpa/nameser.h
41171.74Schristosdo :
41181.74Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41191.74Schristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
41201.74Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41211.74Schristos  cat >>confdefs.h <<_ACEOF
41221.74Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41231.48Sjmc_ACEOF
41241.6Stv
41251.74Schristoselse
41261.74Schristos  test -f include/$ac_header || touch include/$ac_header
41271.74Schristosfi
41281.74Schristos
41291.6Stvdone
41301.6Stv
41311.63Sapbfor ac_header in rpc/types.h netconfig.h
41321.74Schristosdo :
41331.74Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41341.74Schristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
41351.74Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41361.74Schristos  cat >>confdefs.h <<_ACEOF
41371.74Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41381.7Stv_ACEOF
41391.39Sfredb
41401.43Sdbjelse
41411.63Sapb  echo '#include "nbtool_config.h"' >include/$ac_header.new
41421.72Sapb	echo '#include "'$srcdir/../../include/$ac_header'"' \
41431.72Sapb		>>include/$ac_header.new
41441.63Sapb	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
41451.63Sapb		rm -f include/$ac_header.new
41461.63Sapb	else
41471.63Sapb		mv -f include/$ac_header.new include/$ac_header
41481.63Sapb	fi
41491.7Stvfi
41501.74Schristos
41511.66Stsutsuidone
41521.66Stsutsui
41531.74Schristos
41541.66Stsutsui# Typedefs.
41551.74Schristosac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
41561.74Schristosif test "x$ac_cv_type_size_t" = xyes; then :
41571.66Stsutsui
41581.66Stsutsuielse
41591.52Sdbj
41601.74Schristoscat >>confdefs.h <<_ACEOF
41611.74Schristos#define size_t unsigned int
41621.6Stv_ACEOF
41631.6Stv
41641.6Stvfi
41651.6Stv
41661.74Schristosac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
41671.74Schristosif test "x$ac_cv_type_id_t" = xyes; then :
41681.6Stv
41691.74Schristoscat >>confdefs.h <<_ACEOF
41701.6Stv#define HAVE_ID_T 1
41711.38Sfredb_ACEOF
41721.38Sfredb
41731.39Sfredb
41741.38Sfredbfi
41751.74Schristosac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
41761.74Schristosif test "x$ac_cv_type_long_long" = xyes; then :
41771.45Sjmc
41781.74Schristoscat >>confdefs.h <<_ACEOF
41791.74Schristos#define HAVE_LONG_LONG 1
41801.45Sjmc_ACEOF
41811.7Stv
41821.7Stv
41831.7Stvfi
41841.74Schristosac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
41851.74Schristosif test "x$ac_cv_type_u_long" = xyes; then :
41861.35Sthorpej
41871.74Schristoscat >>confdefs.h <<_ACEOF
41881.74Schristos#define HAVE_U_LONG 1
41891.9Stv_ACEOF
41901.9Stv
41911.9Stv
41921.63Sapbfi
41931.74Schristosac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
41941.74Schristosif test "x$ac_cv_type_u_char" = xyes; then :
41951.65Schristos
41961.74Schristoscat >>confdefs.h <<_ACEOF
41971.74Schristos#define HAVE_U_CHAR 1
41981.74Schristos_ACEOF
41991.63Sapb
42001.63Sapb
42011.63Sapbfi
42021.74Schristosac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
42031.74Schristosif test "x$ac_cv_type_u_short" = xyes; then :
42041.74Schristos
42051.74Schristoscat >>confdefs.h <<_ACEOF
42061.74Schristos#define HAVE_U_SHORT 1
42071.74Schristos_ACEOF
42081.65Schristos
42091.65Schristos
42101.74Schristosfi
42111.74Schristosac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
42121.74Schristosif test "x$ac_cv_type_u_int" = xyes; then :
42131.63Sapb
42141.74Schristoscat >>confdefs.h <<_ACEOF
42151.74Schristos#define HAVE_U_INT 1
42161.53Sdogcow_ACEOF
42171.74Schristos
42181.74Schristos
42191.61Schristosfi
42201.74Schristosac_fn_c_check_type "$LINENO" "u_quad_t" "ac_cv_type_u_quad_t" "$ac_includes_default"
42211.74Schristosif test "x$ac_cv_type_u_quad_t" = xyes; then :
42221.65Schristos
42231.74Schristoscat >>confdefs.h <<_ACEOF
42241.74Schristos#define HAVE_U_QUAD_T 1
42251.74Schristos_ACEOF
42261.53Sdogcow
42271.40Satatat
42281.40Satatatfi
42291.63Sapb
42301.74Schristosac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
42311.74Schristos#include <rpc/types.h>
42321.74Schristos#include <sys/socket.h>
42331.74Schristos"
42341.74Schristosif test "x$ac_cv_type_socklen_t" = xyes; then :
42351.65Schristos
42361.74Schristos$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
42371.65Schristos
42381.63Sapbfi
42391.65Schristos
42401.65Schristos
42411.60Sapb
42421.63Sapb
42431.74Schristos
42441.74Schristos	ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
42451.74Schristosif test "x$ac_cv_type_uint8_t" = xyes; then :
42461.74Schristos
42471.63Sapbelse
42481.53Sdogcow
42491.74Schristos		ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
42501.74Schristosif test "x$ac_cv_type_u_int8_t" = xyes; then :
42511.74Schristos
42521.74Schristos$as_echo "#define uint8_t u_int8_t" >>confdefs.h
42531.65Schristos
42541.40Satatatelse
42551.74Schristos  as_fn_error $? "cannot find a suitable type for uint8_t" "$LINENO" 5
42561.40Satatatfi
42571.63Sapb
42581.63Sapb
42591.74Schristosfi
42601.61Schristos
42611.74Schristos	ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
42621.74Schristosif test "x$ac_cv_type_u_int8_t" = xyes; then :
42631.53Sdogcow
42641.7Stvelse
42651.7Stv
42661.74Schristos		ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
42671.74Schristosif test "x$ac_cv_type_uint8_t" = xyes; then :
42681.60Sapb
42691.74Schristos$as_echo "#define u_int8_t uint8_t" >>confdefs.h
42701.63Sapb
42711.7Stvelse
42721.74Schristos  as_fn_error $? "cannot find a suitable type for u_int8_t" "$LINENO" 5
42731.7Stvfi
42741.74Schristos
42751.74Schristos
42761.7Stvfi
42771.7Stv
42781.4Stv
42791.63Sapb
42801.74Schristos	ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
42811.74Schristosif test "x$ac_cv_type_uint16_t" = xyes; then :
42821.74Schristos
42831.63Sapbelse
42841.65Schristos
42851.74Schristos		ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
42861.74Schristosif test "x$ac_cv_type_u_int16_t" = xyes; then :
42871.65Schristos
42881.74Schristos$as_echo "#define uint16_t u_int16_t" >>confdefs.h
42891.63Sapb
42901.53Sdogcowelse
42911.74Schristos  as_fn_error $? "cannot find a suitable type for uint16_t" "$LINENO" 5
42921.53Sdogcowfi
42931.74Schristos
42941.74Schristos
42951.61Schristosfi
42961.65Schristos
42971.74Schristos	ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
42981.74Schristosif test "x$ac_cv_type_u_int16_t" = xyes; then :
42991.65Schristos
43001.65Schristoselse
43011.53Sdogcow
43021.74Schristos		ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
43031.74Schristosif test "x$ac_cv_type_uint16_t" = xyes; then :
43041.65Schristos
43051.74Schristos$as_echo "#define u_int16_t uint16_t" >>confdefs.h
43061.53Sdogcow
43071.7Stvelse
43081.74Schristos  as_fn_error $? "cannot find a suitable type for u_int16_t" "$LINENO" 5
43091.7Stvfi
43101.74Schristos
43111.74Schristos
43121.7Stvfi
43131.65Schristos
43141.7Stv
43151.61Schristos
43161.74Schristos	ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
43171.74Schristosif test "x$ac_cv_type_uint32_t" = xyes; then :
43181.7Stv
43191.7Stvelse
43201.61Schristos
43211.74Schristos		ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
43221.74Schristosif test "x$ac_cv_type_u_int32_t" = xyes; then :
43231.74Schristos
43241.74Schristos$as_echo "#define uint32_t u_int32_t" >>confdefs.h
43251.7Stv
43261.7Stvelse
43271.74Schristos  as_fn_error $? "cannot find a suitable type for uint32_t" "$LINENO" 5
43281.7Stvfi
43291.74Schristos
43301.74Schristos
43311.7Stvfi
43321.61Schristos
43331.74Schristos	ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
43341.74Schristosif test "x$ac_cv_type_u_int32_t" = xyes; then :
43351.7Stv
43361.7Stvelse
43371.7Stv
43381.74Schristos		ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
43391.74Schristosif test "x$ac_cv_type_uint32_t" = xyes; then :
43401.4Stv
43411.74Schristos$as_echo "#define u_int32_t uint32_t" >>confdefs.h
43421.4Stv
43431.4Stvelse
43441.74Schristos  as_fn_error $? "cannot find a suitable type for u_int32_t" "$LINENO" 5
43451.4Stvfi
43461.74Schristos
43471.74Schristos
43481.4Stvfi
43491.61Schristos
43501.74Schristos
43511.74Schristos
43521.74Schristos	ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
43531.74Schristosif test "x$ac_cv_type_uint64_t" = xyes; then :
43541.4Stv
43551.4Stvelse
43561.4Stv
43571.74Schristos		ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
43581.74Schristosif test "x$ac_cv_type_u_int64_t" = xyes; then :
43591.63Sapb
43601.74Schristos$as_echo "#define uint64_t u_int64_t" >>confdefs.h
43611.63Sapb
43621.19Sbjh21else
43631.74Schristos  as_fn_error $? "cannot find a suitable type for uint64_t" "$LINENO" 5
43641.19Sbjh21fi
43651.74Schristos
43661.74Schristos
43671.19Sbjh21fi
43681.63Sapb
43691.74Schristos	ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
43701.74Schristosif test "x$ac_cv_type_u_int64_t" = xyes; then :
43711.19Sbjh21
43721.63Sapbelse
43731.19Sbjh21
43741.74Schristos		ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
43751.74Schristosif test "x$ac_cv_type_uint64_t" = xyes; then :
43761.63Sapb
43771.74Schristos$as_echo "#define u_int64_t uint64_t" >>confdefs.h
43781.19Sbjh21
43791.19Sbjh21else
43801.74Schristos  as_fn_error $? "cannot find a suitable type for u_int64_t" "$LINENO" 5
43811.19Sbjh21fi
43821.74Schristos
43831.74Schristos
43841.19Sbjh21fi
43851.19Sbjh21
43861.19Sbjh21
43871.74Schristos
43881.74Schristos# Struct members.
43891.74Schristosac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" "#include <sys/types.h>
43901.74Schristos#include <dirent.h>
43911.74Schristos"
43921.74Schristosif test "x$ac_cv_member_DIR_dd_fd" = xyes; then :
43931.74Schristos
43941.74Schristoscat >>confdefs.h <<_ACEOF
43951.74Schristos#define HAVE_DIR_DD_FD 1
43961.74Schristos_ACEOF
43971.74Schristos
43981.19Sbjh21
43991.63Sapbfi
44001.74Schristosac_fn_c_check_member "$LINENO" "DIR" "__dd_fd" "ac_cv_member_DIR___dd_fd" "#include <sys/types.h>
44011.74Schristos#include <dirent.h>
44021.74Schristos"
44031.74Schristosif test "x$ac_cv_member_DIR___dd_fd" = xyes; then :
44041.74Schristos
44051.74Schristoscat >>confdefs.h <<_ACEOF
44061.74Schristos#define HAVE_DIR___DD_FD 1
44071.74Schristos_ACEOF
44081.19Sbjh21
44091.19Sbjh21
44101.63Sapbfi
44111.74Schristosac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#include <sys/types.h>
44121.74Schristos#include <dirent.h>
44131.74Schristos"
44141.74Schristosif test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then :
44151.39Sfredb
44161.74Schristoscat >>confdefs.h <<_ACEOF
44171.74Schristos#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
44181.74Schristos_ACEOF
44191.63Sapb
44201.61Schristos
44211.63Sapbfi
44221.63Sapb
44231.74Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "#include <sys/stat.h>
44241.74Schristos"
44251.74Schristosif test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
44261.19Sbjh21
44271.74Schristoscat >>confdefs.h <<_ACEOF
44281.74Schristos#define HAVE_STRUCT_STAT_ST_FLAGS 1
44291.19Sbjh21_ACEOF
44301.74Schristos
44311.74Schristos
44321.19Sbjh21fi
44331.74Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "#include <sys/stat.h>
44341.74Schristos"
44351.74Schristosif test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
44361.63Sapb
44371.74Schristoscat >>confdefs.h <<_ACEOF
44381.74Schristos#define HAVE_STRUCT_STAT_ST_GEN 1
44391.74Schristos_ACEOF
44401.63Sapb
44411.19Sbjh21
44421.19Sbjh21fi
44431.74Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "#include <sys/stat.h>
44441.74Schristos"
44451.74Schristosif test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
44461.74Schristos
44471.74Schristoscat >>confdefs.h <<_ACEOF
44481.74Schristos#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
44491.74Schristos_ACEOF
44501.61Schristos
44511.19Sbjh21
44521.19Sbjh21fi
44531.74Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/stat.h>
44541.74Schristos"
44551.74Schristosif test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
44561.19Sbjh21
44571.74Schristoscat >>confdefs.h <<_ACEOF
44581.74Schristos#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
44591.74Schristos_ACEOF
44601.19Sbjh21
44611.19Sbjh21
44621.19Sbjh21fi
44631.74Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "#include <sys/stat.h>
44641.74Schristos"
44651.74Schristosif test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
44661.74Schristos
44671.74Schristoscat >>confdefs.h <<_ACEOF
44681.74Schristos#define HAVE_STRUCT_STAT_ST_ATIM 1
44691.74Schristos_ACEOF
44701.19Sbjh21
44711.63Sapb
44721.43Sdbjfi
44731.74Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
44741.74Schristos"
44751.74Schristosif test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
44761.39Sfredb
44771.74Schristoscat >>confdefs.h <<_ACEOF
44781.74Schristos#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
44791.74Schristos_ACEOF
44801.61Schristos
44811.39Sfredb
44821.43Sdbjfi
44831.40Satatat
44841.74Schristosac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "#include <sys/statvfs.h>
44851.74Schristos"
44861.74Schristosif test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes; then :
44871.61Schristos
44881.74Schristoscat >>confdefs.h <<_ACEOF
44891.74Schristos#define HAVE_STRUCT_STATVFS_F_IOSIZE 1
44901.63Sapb_ACEOF
44911.61Schristos
44921.61Schristos
44931.74Schristosfi
44941.61Schristos
44951.61Schristos
44961.74Schristos# Global variable decls.
44971.74Schristosac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
44981.74Schristos#include <stdio.h>
44991.74Schristos#include <stdlib.h>
45001.74Schristos#include <unistd.h>
45011.61Schristos
45021.74Schristos"
45031.74Schristosif test "x$ac_cv_have_decl_optind" = xyes; then :
45041.74Schristos  ac_have_decl=1
45051.63Sapbelse
45061.74Schristos  ac_have_decl=0
45071.63Sapbfi
45081.61Schristos
45091.74Schristoscat >>confdefs.h <<_ACEOF
45101.74Schristos#define HAVE_DECL_OPTIND $ac_have_decl
45111.74Schristos_ACEOF
45121.74Schristosac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "
45131.74Schristos#include <stdio.h>
45141.74Schristos#include <stdlib.h>
45151.74Schristos#include <unistd.h>
45161.61Schristos
45171.74Schristos"
45181.74Schristosif test "x$ac_cv_have_decl_optreset" = xyes; then :
45191.74Schristos  ac_have_decl=1
45201.63Sapbelse
45211.74Schristos  ac_have_decl=0
45221.63Sapbfi
45231.61Schristos
45241.74Schristoscat >>confdefs.h <<_ACEOF
45251.74Schristos#define HAVE_DECL_OPTRESET $ac_have_decl
45261.74Schristos_ACEOF
45271.45Sjmc
45281.74Schristosac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "#include <signal.h>
45291.74Schristos"
45301.74Schristosif test "x$ac_cv_have_decl_sys_signame" = xyes; then :
45311.74Schristos  ac_have_decl=1
45321.45Sjmcelse
45331.74Schristos  ac_have_decl=0
45341.45Sjmcfi
45351.45Sjmc
45361.74Schristoscat >>confdefs.h <<_ACEOF
45371.74Schristos#define HAVE_DECL_SYS_SIGNAME $ac_have_decl
45381.74Schristos_ACEOF
45391.45Sjmc
45401.61Schristos
45411.74Schristos# Library functions (where a .h check isn't enough).
45421.74Schristos# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
45431.74Schristos# for constant arguments.  Useless!
45441.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
45451.74Schristos$as_echo_n "checking for working alloca.h... " >&6; }
45461.74Schristosif ${ac_cv_working_alloca_h+:} false; then :
45471.74Schristos  $as_echo_n "(cached) " >&6
45481.55Swizelse
45491.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45501.74Schristos/* end confdefs.h.  */
45511.74Schristos#include <alloca.h>
45521.55Swizint
45531.55Swizmain ()
45541.55Swiz{
45551.74Schristoschar *p = (char *) alloca (2 * sizeof (int));
45561.74Schristos			  if (p) return 0;
45571.55Swiz  ;
45581.55Swiz  return 0;
45591.55Swiz}
45601.55Swiz_ACEOF
45611.74Schristosif ac_fn_c_try_link "$LINENO"; then :
45621.74Schristos  ac_cv_working_alloca_h=yes
45631.55Swizelse
45641.74Schristos  ac_cv_working_alloca_h=no
45651.55Swizfi
45661.74Schristosrm -f core conftest.err conftest.$ac_objext \
45671.74Schristos    conftest$ac_exeext conftest.$ac_ext
45681.55Swizfi
45691.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
45701.74Schristos$as_echo "$ac_cv_working_alloca_h" >&6; }
45711.74Schristosif test $ac_cv_working_alloca_h = yes; then
45721.55Swiz
45731.74Schristos$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
45741.55Swiz
45751.55Swizfi
45761.55Swiz
45771.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
45781.74Schristos$as_echo_n "checking for alloca... " >&6; }
45791.74Schristosif ${ac_cv_func_alloca_works+:} false; then :
45801.74Schristos  $as_echo_n "(cached) " >&6
45811.45Sjmcelse
45821.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45831.74Schristos/* end confdefs.h.  */
45841.74Schristos#ifdef __GNUC__
45851.74Schristos# define alloca __builtin_alloca
45861.74Schristos#else
45871.74Schristos# ifdef _MSC_VER
45881.74Schristos#  include <malloc.h>
45891.74Schristos#  define alloca _alloca
45901.74Schristos# else
45911.74Schristos#  ifdef HAVE_ALLOCA_H
45921.74Schristos#   include <alloca.h>
45931.74Schristos#  else
45941.74Schristos#   ifdef _AIX
45951.74Schristos #pragma alloca
45961.74Schristos#   else
45971.74Schristos#    ifndef alloca /* predefined by HP cc +Olibcalls */
45981.74Schristosvoid *alloca (size_t);
45991.74Schristos#    endif
46001.74Schristos#   endif
46011.74Schristos#  endif
46021.74Schristos# endif
46031.74Schristos#endif
46041.53Sdogcow
46051.52Sdbjint
46061.52Sdbjmain ()
46071.52Sdbj{
46081.74Schristoschar *p = (char *) alloca (1);
46091.74Schristos				    if (p) return 0;
46101.48Sjmc  ;
46111.48Sjmc  return 0;
46121.48Sjmc}
46131.48Sjmc_ACEOF
46141.74Schristosif ac_fn_c_try_link "$LINENO"; then :
46151.74Schristos  ac_cv_func_alloca_works=yes
46161.48Sjmcelse
46171.74Schristos  ac_cv_func_alloca_works=no
46181.48Sjmcfi
46191.74Schristosrm -f core conftest.err conftest.$ac_objext \
46201.74Schristos    conftest$ac_exeext conftest.$ac_ext
46211.48Sjmcfi
46221.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
46231.74Schristos$as_echo "$ac_cv_func_alloca_works" >&6; }
46241.61Schristos
46251.74Schristosif test $ac_cv_func_alloca_works = yes; then
46261.53Sdogcow
46271.74Schristos$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
46281.48Sjmc
46291.48Sjmcelse
46301.74Schristos  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
46311.74Schristos# that cause trouble.  Some versions do not even contain alloca or
46321.74Schristos# contain a buggy version.  If you still want to use their alloca,
46331.74Schristos# use ar to extract alloca.o from them instead of compiling alloca.c.
46341.53Sdogcow
46351.74SchristosALLOCA=\${LIBOBJDIR}alloca.$ac_objext
46361.61Schristos
46371.74Schristos$as_echo "#define C_ALLOCA 1" >>confdefs.h
46381.53Sdogcow
46391.53Sdogcow
46401.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
46411.74Schristos$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
46421.74Schristosif ${ac_cv_os_cray+:} false; then :
46431.74Schristos  $as_echo_n "(cached) " >&6
46441.53Sdogcowelse
46451.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46461.74Schristos/* end confdefs.h.  */
46471.74Schristos#if defined CRAY && ! defined CRAY2
46481.74Schristoswebecray
46491.74Schristos#else
46501.74Schristoswenotbecray
46511.53Sdogcow#endif
46521.53Sdogcow
46531.53Sdogcow_ACEOF
46541.74Schristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46551.74Schristos  $EGREP "webecray" >/dev/null 2>&1; then :
46561.74Schristos  ac_cv_os_cray=yes
46571.53Sdogcowelse
46581.74Schristos  ac_cv_os_cray=no
46591.53Sdogcowfi
46601.74Schristosrm -f conftest*
46611.74Schristos
46621.53Sdogcowfi
46631.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
46641.74Schristos$as_echo "$ac_cv_os_cray" >&6; }
46651.74Schristosif test $ac_cv_os_cray = yes; then
46661.74Schristos  for ac_func in _getb67 GETB67 getb67; do
46671.74Schristos    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46681.74Schristosac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
46691.74Schristosif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
46701.61Schristos
46711.74Schristoscat >>confdefs.h <<_ACEOF
46721.74Schristos#define CRAY_STACKSEG_END $ac_func
46731.74Schristos_ACEOF
46741.53Sdogcow
46751.74Schristos    break
46761.74Schristosfi
46771.61Schristos
46781.74Schristos  done
46791.63Sapbfi
46801.53Sdogcow
46811.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
46821.74Schristos$as_echo_n "checking stack direction for C alloca... " >&6; }
46831.74Schristosif ${ac_cv_c_stack_direction+:} false; then :
46841.74Schristos  $as_echo_n "(cached) " >&6
46851.74Schristoselse
46861.74Schristos  if test "$cross_compiling" = yes; then :
46871.74Schristos  ac_cv_c_stack_direction=0
46881.53Sdogcowelse
46891.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46901.74Schristos/* end confdefs.h.  */
46911.74Schristos$ac_includes_default
46921.74Schristosint
46931.74Schristosfind_stack_direction (int *addr, int depth)
46941.74Schristos{
46951.74Schristos  int dir, dummy = 0;
46961.74Schristos  if (! addr)
46971.74Schristos    addr = &dummy;
46981.74Schristos  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
46991.74Schristos  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
47001.74Schristos  return dir + dummy;
47011.74Schristos}
47021.53Sdogcow
47031.53Sdogcowint
47041.74Schristosmain (int argc, char **argv)
47051.53Sdogcow{
47061.74Schristos  return find_stack_direction (0, argc + !argv + 20) < 0;
47071.53Sdogcow}
47081.53Sdogcow_ACEOF
47091.74Schristosif ac_fn_c_try_run "$LINENO"; then :
47101.74Schristos  ac_cv_c_stack_direction=1
47111.53Sdogcowelse
47121.74Schristos  ac_cv_c_stack_direction=-1
47131.53Sdogcowfi
47141.74Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47151.74Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
47161.53Sdogcowfi
47171.61Schristos
47181.74Schristosfi
47191.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
47201.74Schristos$as_echo "$ac_cv_c_stack_direction" >&6; }
47211.74Schristoscat >>confdefs.h <<_ACEOF
47221.74Schristos#define STACK_DIRECTION $ac_cv_c_stack_direction
47231.74Schristos_ACEOF
47241.53Sdogcow
47251.53Sdogcow
47261.53Sdogcowfi
47271.53Sdogcow
47281.74Schristosfor ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
47291.74Schristos	esetfunc fgetln flock fpurge __fpurge futimes getline \
47301.74Schristos	getopt getopt_long group_from_gid gid_from_group \
47311.74Schristos	heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
47321.74Schristos	mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \
47331.74Schristos	pwrite raise_default_signal random setenv \
47341.74Schristos	setgroupent setprogname setpassent snprintf strlcat strlcpy strmode \
47351.74Schristos	strndup strsep strsuftoll strtoll \
47361.74Schristos	user_from_uid uid_from_user vasprintf vasnprintf vsnprintf
47371.74Schristosdo :
47381.74Schristos  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47391.74Schristosac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47401.74Schristosif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47411.74Schristos  cat >>confdefs.h <<_ACEOF
47421.74Schristos#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47431.74Schristos_ACEOF
47441.53Sdogcow
47451.53Sdogcowfi
47461.74Schristosdone
47471.74Schristos
47481.61Schristos
47491.74Schristosac_fn_c_check_decl "$LINENO" "user_from_uid" "ac_cv_have_decl_user_from_uid" "
47501.74Schristos#include <pwd.h>
47511.53Sdogcow
47521.74Schristos"
47531.74Schristosif test "x$ac_cv_have_decl_user_from_uid" = xyes; then :
47541.74Schristos  ac_have_decl=1
47551.53Sdogcowelse
47561.74Schristos  ac_have_decl=0
47571.53Sdogcowfi
47581.53Sdogcow
47591.74Schristoscat >>confdefs.h <<_ACEOF
47601.74Schristos#define HAVE_DECL_USER_FROM_UID $ac_have_decl
47611.74Schristos_ACEOF
47621.74Schristosac_fn_c_check_decl "$LINENO" "uid_from_user" "ac_cv_have_decl_uid_from_user" "
47631.74Schristos#include <pwd.h>
47641.53Sdogcow
47651.74Schristos"
47661.74Schristosif test "x$ac_cv_have_decl_uid_from_user" = xyes; then :
47671.74Schristos  ac_have_decl=1
47681.53Sdogcowelse
47691.74Schristos  ac_have_decl=0
47701.53Sdogcowfi
47711.61Schristos
47721.74Schristoscat >>confdefs.h <<_ACEOF
47731.74Schristos#define HAVE_DECL_UID_FROM_USER $ac_have_decl
47741.74Schristos_ACEOF
47751.74Schristosac_fn_c_check_decl "$LINENO" "pwcache_userdb" "ac_cv_have_decl_pwcache_userdb" "
47761.74Schristos#include <pwd.h>
47771.53Sdogcow
47781.74Schristos"
47791.74Schristosif test "x$ac_cv_have_decl_pwcache_userdb" = xyes; then :
47801.74Schristos  ac_have_decl=1
47811.53Sdogcowelse
47821.74Schristos  ac_have_decl=0
47831.53Sdogcowfi
47841.53Sdogcow
47851.74Schristoscat >>confdefs.h <<_ACEOF
47861.74Schristos#define HAVE_DECL_PWCACHE_USERDB $ac_have_decl
47871.53Sdogcow_ACEOF
47881.61Schristos
47891.74Schristosac_fn_c_check_decl "$LINENO" "group_from_gid" "ac_cv_have_decl_group_from_gid" "
47901.74Schristos#include <grp.h>
47911.53Sdogcow
47921.74Schristos"
47931.74Schristosif test "x$ac_cv_have_decl_group_from_gid" = xyes; then :
47941.74Schristos  ac_have_decl=1
47951.53Sdogcowelse
47961.74Schristos  ac_have_decl=0
47971.53Sdogcowfi
47981.53Sdogcow
47991.74Schristoscat >>confdefs.h <<_ACEOF
48001.74Schristos#define HAVE_DECL_GROUP_FROM_GID $ac_have_decl
48011.74Schristos_ACEOF
48021.74Schristosac_fn_c_check_decl "$LINENO" "gid_from_group" "ac_cv_have_decl_gid_from_group" "
48031.74Schristos#include <grp.h>
48041.53Sdogcow
48051.74Schristos"
48061.74Schristosif test "x$ac_cv_have_decl_gid_from_group" = xyes; then :
48071.74Schristos  ac_have_decl=1
48081.53Sdogcowelse
48091.74Schristos  ac_have_decl=0
48101.53Sdogcowfi
48111.61Schristos
48121.74Schristoscat >>confdefs.h <<_ACEOF
48131.74Schristos#define HAVE_DECL_GID_FROM_GROUP $ac_have_decl
48141.74Schristos_ACEOF
48151.74Schristosac_fn_c_check_decl "$LINENO" "pwcache_groupdb" "ac_cv_have_decl_pwcache_groupdb" "
48161.74Schristos#include <grp.h>
48171.53Sdogcow
48181.74Schristos"
48191.74Schristosif test "x$ac_cv_have_decl_pwcache_groupdb" = xyes; then :
48201.74Schristos  ac_have_decl=1
48211.53Sdogcowelse
48221.74Schristos  ac_have_decl=0
48231.53Sdogcowfi
48241.53Sdogcow
48251.74Schristoscat >>confdefs.h <<_ACEOF
48261.74Schristos#define HAVE_DECL_PWCACHE_GROUPDB $ac_have_decl
48271.74Schristos_ACEOF
48281.53Sdogcow
48291.74Schristosac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "#include <string.h>
48301.74Schristos"
48311.74Schristosif test "x$ac_cv_have_decl_strndup" = xyes; then :
48321.74Schristos  ac_have_decl=1
48331.53Sdogcowelse
48341.74Schristos  ac_have_decl=0
48351.53Sdogcowfi
48361.61Schristos
48371.74Schristoscat >>confdefs.h <<_ACEOF
48381.74Schristos#define HAVE_DECL_STRNDUP $ac_have_decl
48391.74Schristos_ACEOF
48401.53Sdogcow
48411.74Schristosac_fn_c_check_decl "$LINENO" "strsuftoll" "ac_cv_have_decl_strsuftoll" "#include <stdlib.h>
48421.74Schristos"
48431.74Schristosif test "x$ac_cv_have_decl_strsuftoll" = xyes; then :
48441.74Schristos  ac_have_decl=1
48451.53Sdogcowelse
48461.74Schristos  ac_have_decl=0
48471.74Schristosfi
48481.53Sdogcow
48491.74Schristoscat >>confdefs.h <<_ACEOF
48501.74Schristos#define HAVE_DECL_STRSUFTOLL $ac_have_decl
48511.74Schristos_ACEOF
48521.53Sdogcow
48531.74Schristosac_fn_c_check_decl "$LINENO" "lchflags" "ac_cv_have_decl_lchflags" "
48541.74Schristos#include <sys/stat.h>
48551.74Schristos#include <unistd.h>
48561.53Sdogcow
48571.74Schristos"
48581.74Schristosif test "x$ac_cv_have_decl_lchflags" = xyes; then :
48591.74Schristos  ac_have_decl=1
48601.53Sdogcowelse
48611.74Schristos  ac_have_decl=0
48621.53Sdogcowfi
48631.61Schristos
48641.74Schristoscat >>confdefs.h <<_ACEOF
48651.74Schristos#define HAVE_DECL_LCHFLAGS $ac_have_decl
48661.74Schristos_ACEOF
48671.74Schristosac_fn_c_check_decl "$LINENO" "lchmod" "ac_cv_have_decl_lchmod" "
48681.74Schristos#include <sys/stat.h>
48691.74Schristos#include <unistd.h>
48701.53Sdogcow
48711.74Schristos"
48721.74Schristosif test "x$ac_cv_have_decl_lchmod" = xyes; then :
48731.74Schristos  ac_have_decl=1
48741.53Sdogcowelse
48751.74Schristos  ac_have_decl=0
48761.53Sdogcowfi
48771.53Sdogcow
48781.74Schristoscat >>confdefs.h <<_ACEOF
48791.74Schristos#define HAVE_DECL_LCHMOD $ac_have_decl
48801.74Schristos_ACEOF
48811.74Schristosac_fn_c_check_decl "$LINENO" "lchown" "ac_cv_have_decl_lchown" "
48821.74Schristos#include <sys/stat.h>
48831.74Schristos#include <unistd.h>
48841.53Sdogcow
48851.74Schristos"
48861.74Schristosif test "x$ac_cv_have_decl_lchown" = xyes; then :
48871.74Schristos  ac_have_decl=1
48881.53Sdogcowelse
48891.74Schristos  ac_have_decl=0
48901.53Sdogcowfi
48911.61Schristos
48921.74Schristoscat >>confdefs.h <<_ACEOF
48931.74Schristos#define HAVE_DECL_LCHOWN $ac_have_decl
48941.74Schristos_ACEOF
48951.74Schristos
48961.53Sdogcow
48971.74Schristosac_fn_c_check_decl "$LINENO" "htobe16" "ac_cv_have_decl_htobe16" "#include <sys/types.h>
48981.74Schristos"
48991.74Schristosif test "x$ac_cv_have_decl_htobe16" = xyes; then :
49001.74Schristos  ac_have_decl=1
49011.53Sdogcowelse
49021.74Schristos  ac_have_decl=0
49031.74Schristosfi
49041.53Sdogcow
49051.74Schristoscat >>confdefs.h <<_ACEOF
49061.74Schristos#define HAVE_DECL_HTOBE16 $ac_have_decl
49071.74Schristos_ACEOF
49081.74Schristosac_fn_c_check_decl "$LINENO" "htobe32" "ac_cv_have_decl_htobe32" "#include <sys/types.h>
49091.74Schristos"
49101.74Schristosif test "x$ac_cv_have_decl_htobe32" = xyes; then :
49111.74Schristos  ac_have_decl=1
49121.74Schristoselse
49131.74Schristos  ac_have_decl=0
49141.53Sdogcowfi
49151.74Schristos
49161.74Schristoscat >>confdefs.h <<_ACEOF
49171.74Schristos#define HAVE_DECL_HTOBE32 $ac_have_decl
49181.74Schristos_ACEOF
49191.74Schristosac_fn_c_check_decl "$LINENO" "htobe64" "ac_cv_have_decl_htobe64" "#include <sys/types.h>
49201.74Schristos"
49211.74Schristosif test "x$ac_cv_have_decl_htobe64" = xyes; then :
49221.74Schristos  ac_have_decl=1
49231.53Sdogcowelse
49241.74Schristos  ac_have_decl=0
49251.74Schristosfi
49261.53Sdogcow
49271.74Schristoscat >>confdefs.h <<_ACEOF
49281.74Schristos#define HAVE_DECL_HTOBE64 $ac_have_decl
49291.74Schristos_ACEOF
49301.74Schristosac_fn_c_check_decl "$LINENO" "htole16" "ac_cv_have_decl_htole16" "#include <sys/types.h>
49311.74Schristos"
49321.74Schristosif test "x$ac_cv_have_decl_htole16" = xyes; then :
49331.74Schristos  ac_have_decl=1
49341.74Schristoselse
49351.74Schristos  ac_have_decl=0
49361.74Schristosfi
49371.53Sdogcow
49381.74Schristoscat >>confdefs.h <<_ACEOF
49391.74Schristos#define HAVE_DECL_HTOLE16 $ac_have_decl
49401.53Sdogcow_ACEOF
49411.74Schristosac_fn_c_check_decl "$LINENO" "htole32" "ac_cv_have_decl_htole32" "#include <sys/types.h>
49421.74Schristos"
49431.74Schristosif test "x$ac_cv_have_decl_htole32" = xyes; then :
49441.74Schristos  ac_have_decl=1
49451.53Sdogcowelse
49461.74Schristos  ac_have_decl=0
49471.53Sdogcowfi
49481.74Schristos
49491.74Schristoscat >>confdefs.h <<_ACEOF
49501.74Schristos#define HAVE_DECL_HTOLE32 $ac_have_decl
49511.74Schristos_ACEOF
49521.74Schristosac_fn_c_check_decl "$LINENO" "htole64" "ac_cv_have_decl_htole64" "#include <sys/types.h>
49531.74Schristos"
49541.74Schristosif test "x$ac_cv_have_decl_htole64" = xyes; then :
49551.74Schristos  ac_have_decl=1
49561.74Schristoselse
49571.74Schristos  ac_have_decl=0
49581.53Sdogcowfi
49591.61Schristos
49601.74Schristoscat >>confdefs.h <<_ACEOF
49611.74Schristos#define HAVE_DECL_HTOLE64 $ac_have_decl
49621.74Schristos_ACEOF
49631.74Schristosac_fn_c_check_decl "$LINENO" "be16toh" "ac_cv_have_decl_be16toh" "#include <sys/types.h>
49641.74Schristos"
49651.74Schristosif test "x$ac_cv_have_decl_be16toh" = xyes; then :
49661.74Schristos  ac_have_decl=1
49671.74Schristoselse
49681.74Schristos  ac_have_decl=0
49691.74Schristosfi
49701.53Sdogcow
49711.74Schristoscat >>confdefs.h <<_ACEOF
49721.74Schristos#define HAVE_DECL_BE16TOH $ac_have_decl
49731.74Schristos_ACEOF
49741.74Schristosac_fn_c_check_decl "$LINENO" "be32toh" "ac_cv_have_decl_be32toh" "#include <sys/types.h>
49751.74Schristos"
49761.74Schristosif test "x$ac_cv_have_decl_be32toh" = xyes; then :
49771.74Schristos  ac_have_decl=1
49781.53Sdogcowelse
49791.74Schristos  ac_have_decl=0
49801.74Schristosfi
49811.53Sdogcow
49821.74Schristoscat >>confdefs.h <<_ACEOF
49831.74Schristos#define HAVE_DECL_BE32TOH $ac_have_decl
49841.74Schristos_ACEOF
49851.74Schristosac_fn_c_check_decl "$LINENO" "be64toh" "ac_cv_have_decl_be64toh" "#include <sys/types.h>
49861.74Schristos"
49871.74Schristosif test "x$ac_cv_have_decl_be64toh" = xyes; then :
49881.74Schristos  ac_have_decl=1
49891.74Schristoselse
49901.74Schristos  ac_have_decl=0
49911.53Sdogcowfi
49921.74Schristos
49931.74Schristoscat >>confdefs.h <<_ACEOF
49941.74Schristos#define HAVE_DECL_BE64TOH $ac_have_decl
49951.74Schristos_ACEOF
49961.74Schristosac_fn_c_check_decl "$LINENO" "le16toh" "ac_cv_have_decl_le16toh" "#include <sys/types.h>
49971.74Schristos"
49981.74Schristosif test "x$ac_cv_have_decl_le16toh" = xyes; then :
49991.74Schristos  ac_have_decl=1
50001.54Swizelse
50011.74Schristos  ac_have_decl=0
50021.74Schristosfi
50031.54Swiz
50041.74Schristoscat >>confdefs.h <<_ACEOF
50051.74Schristos#define HAVE_DECL_LE16TOH $ac_have_decl
50061.74Schristos_ACEOF
50071.74Schristosac_fn_c_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <sys/types.h>
50081.74Schristos"
50091.74Schristosif test "x$ac_cv_have_decl_le32toh" = xyes; then :
50101.74Schristos  ac_have_decl=1
50111.74Schristoselse
50121.74Schristos  ac_have_decl=0
50131.74Schristosfi
50141.54Swiz
50151.74Schristoscat >>confdefs.h <<_ACEOF
50161.74Schristos#define HAVE_DECL_LE32TOH $ac_have_decl
50171.54Swiz_ACEOF
50181.74Schristosac_fn_c_check_decl "$LINENO" "le64toh" "ac_cv_have_decl_le64toh" "#include <sys/types.h>
50191.74Schristos"
50201.74Schristosif test "x$ac_cv_have_decl_le64toh" = xyes; then :
50211.74Schristos  ac_have_decl=1
50221.54Swizelse
50231.74Schristos  ac_have_decl=0
50241.54Swizfi
50251.61Schristos
50261.74Schristoscat >>confdefs.h <<_ACEOF
50271.74Schristos#define HAVE_DECL_LE64TOH $ac_have_decl
50281.74Schristos_ACEOF
50291.74Schristos
50301.53Sdogcow
50311.74Schristosac_fn_c_check_decl "$LINENO" "bswap16" "ac_cv_have_decl_bswap16" "#include <machine/bswap.h>
50321.74Schristos"
50331.74Schristosif test "x$ac_cv_have_decl_bswap16" = xyes; then :
50341.74Schristos  ac_have_decl=1
50351.54Swizelse
50361.74Schristos  ac_have_decl=0
50371.74Schristosfi
50381.53Sdogcow
50391.74Schristoscat >>confdefs.h <<_ACEOF
50401.74Schristos#define HAVE_DECL_BSWAP16 $ac_have_decl
50411.74Schristos_ACEOF
50421.74Schristosac_fn_c_check_decl "$LINENO" "bswap32" "ac_cv_have_decl_bswap32" "#include <machine/bswap.h>
50431.74Schristos"
50441.74Schristosif test "x$ac_cv_have_decl_bswap32" = xyes; then :
50451.74Schristos  ac_have_decl=1
50461.74Schristoselse
50471.74Schristos  ac_have_decl=0
50481.54Swizfi
50491.54Swiz
50501.74Schristoscat >>confdefs.h <<_ACEOF
50511.74Schristos#define HAVE_DECL_BSWAP32 $ac_have_decl
50521.54Swiz_ACEOF
50531.74Schristosac_fn_c_check_decl "$LINENO" "bswap64" "ac_cv_have_decl_bswap64" "#include <machine/bswap.h>
50541.74Schristos"
50551.74Schristosif test "x$ac_cv_have_decl_bswap64" = xyes; then :
50561.74Schristos  ac_have_decl=1
50571.54Swizelse
50581.74Schristos  ac_have_decl=0
50591.54Swizfi
50601.61Schristos
50611.74Schristoscat >>confdefs.h <<_ACEOF
50621.74Schristos#define HAVE_DECL_BSWAP64 $ac_have_decl
50631.74Schristos_ACEOF
50641.74Schristos
50651.54Swiz
50661.74Schristosac_fn_c_check_decl "$LINENO" "be16enc" "ac_cv_have_decl_be16enc" "#include <sys/endian.h>
50671.74Schristos"
50681.74Schristosif test "x$ac_cv_have_decl_be16enc" = xyes; then :
50691.74Schristos  ac_have_decl=1
50701.54Swizelse
50711.74Schristos  ac_have_decl=0
50721.74Schristosfi
50731.54Swiz
50741.74Schristoscat >>confdefs.h <<_ACEOF
50751.74Schristos#define HAVE_DECL_BE16ENC $ac_have_decl
50761.74Schristos_ACEOF
50771.74Schristosac_fn_c_check_decl "$LINENO" "le16enc" "ac_cv_have_decl_le16enc" "#include <sys/endian.h>
50781.74Schristos"
50791.74Schristosif test "x$ac_cv_have_decl_le16enc" = xyes; then :
50801.74Schristos  ac_have_decl=1
50811.74Schristoselse
50821.74Schristos  ac_have_decl=0
50831.54Swizfi
50841.74Schristos
50851.74Schristoscat >>confdefs.h <<_ACEOF
50861.74Schristos#define HAVE_DECL_LE16ENC $ac_have_decl
50871.74Schristos_ACEOF
50881.74Schristosac_fn_c_check_decl "$LINENO" "be16dec" "ac_cv_have_decl_be16dec" "#include <sys/endian.h>
50891.74Schristos"
50901.74Schristosif test "x$ac_cv_have_decl_be16dec" = xyes; then :
50911.74Schristos  ac_have_decl=1
50921.54Swizelse
50931.74Schristos  ac_have_decl=0
50941.74Schristosfi
50951.54Swiz
50961.74Schristoscat >>confdefs.h <<_ACEOF
50971.74Schristos#define HAVE_DECL_BE16DEC $ac_have_decl
50981.74Schristos_ACEOF
50991.74Schristosac_fn_c_check_decl "$LINENO" "le16dec" "ac_cv_have_decl_le16dec" "#include <sys/endian.h>
51001.74Schristos"
51011.74Schristosif test "x$ac_cv_have_decl_le16dec" = xyes; then :
51021.74Schristos  ac_have_decl=1
51031.74Schristoselse
51041.74Schristos  ac_have_decl=0
51051.74Schristosfi
51061.54Swiz
51071.74Schristoscat >>confdefs.h <<_ACEOF
51081.74Schristos#define HAVE_DECL_LE16DEC $ac_have_decl
51091.45Sjmc_ACEOF
51101.74Schristosac_fn_c_check_decl "$LINENO" "be32enc" "ac_cv_have_decl_be32enc" "#include <sys/endian.h>
51111.74Schristos"
51121.74Schristosif test "x$ac_cv_have_decl_be32enc" = xyes; then :
51131.74Schristos  ac_have_decl=1
51141.45Sjmcelse
51151.74Schristos  ac_have_decl=0
51161.45Sjmcfi
51171.74Schristos
51181.74Schristoscat >>confdefs.h <<_ACEOF
51191.74Schristos#define HAVE_DECL_BE32ENC $ac_have_decl
51201.74Schristos_ACEOF
51211.74Schristosac_fn_c_check_decl "$LINENO" "le32enc" "ac_cv_have_decl_le32enc" "#include <sys/endian.h>
51221.74Schristos"
51231.74Schristosif test "x$ac_cv_have_decl_le32enc" = xyes; then :
51241.74Schristos  ac_have_decl=1
51251.74Schristoselse
51261.74Schristos  ac_have_decl=0
51271.45Sjmcfi
51281.61Schristos
51291.74Schristoscat >>confdefs.h <<_ACEOF
51301.74Schristos#define HAVE_DECL_LE32ENC $ac_have_decl
51311.74Schristos_ACEOF
51321.74Schristosac_fn_c_check_decl "$LINENO" "be32dec" "ac_cv_have_decl_be32dec" "#include <sys/endian.h>
51331.74Schristos"
51341.74Schristosif test "x$ac_cv_have_decl_be32dec" = xyes; then :
51351.74Schristos  ac_have_decl=1
51361.74Schristoselse
51371.74Schristos  ac_have_decl=0
51381.74Schristosfi
51391.54Swiz
51401.74Schristoscat >>confdefs.h <<_ACEOF
51411.74Schristos#define HAVE_DECL_BE32DEC $ac_have_decl
51421.74Schristos_ACEOF
51431.74Schristosac_fn_c_check_decl "$LINENO" "le32dec" "ac_cv_have_decl_le32dec" "#include <sys/endian.h>
51441.74Schristos"
51451.74Schristosif test "x$ac_cv_have_decl_le32dec" = xyes; then :
51461.74Schristos  ac_have_decl=1
51471.54Swizelse
51481.74Schristos  ac_have_decl=0
51491.74Schristosfi
51501.54Swiz
51511.74Schristoscat >>confdefs.h <<_ACEOF
51521.74Schristos#define HAVE_DECL_LE32DEC $ac_have_decl
51531.74Schristos_ACEOF
51541.74Schristosac_fn_c_check_decl "$LINENO" "be64enc" "ac_cv_have_decl_be64enc" "#include <sys/endian.h>
51551.74Schristos"
51561.74Schristosif test "x$ac_cv_have_decl_be64enc" = xyes; then :
51571.74Schristos  ac_have_decl=1
51581.74Schristoselse
51591.74Schristos  ac_have_decl=0
51601.45Sjmcfi
51611.45Sjmc
51621.74Schristoscat >>confdefs.h <<_ACEOF
51631.74Schristos#define HAVE_DECL_BE64ENC $ac_have_decl
51641.74Schristos_ACEOF
51651.74Schristosac_fn_c_check_decl "$LINENO" "le64enc" "ac_cv_have_decl_le64enc" "#include <sys/endian.h>
51661.74Schristos"
51671.74Schristosif test "x$ac_cv_have_decl_le64enc" = xyes; then :
51681.74Schristos  ac_have_decl=1
51691.1Stvelse
51701.74Schristos  ac_have_decl=0
51711.74Schristosfi
51721.53Sdogcow
51731.74Schristoscat >>confdefs.h <<_ACEOF
51741.74Schristos#define HAVE_DECL_LE64ENC $ac_have_decl
51751.74Schristos_ACEOF
51761.74Schristosac_fn_c_check_decl "$LINENO" "be64dec" "ac_cv_have_decl_be64dec" "#include <sys/endian.h>
51771.74Schristos"
51781.74Schristosif test "x$ac_cv_have_decl_be64dec" = xyes; then :
51791.74Schristos  ac_have_decl=1
51801.74Schristoselse
51811.74Schristos  ac_have_decl=0
51821.74Schristosfi
51831.1Stv
51841.74Schristoscat >>confdefs.h <<_ACEOF
51851.74Schristos#define HAVE_DECL_BE64DEC $ac_have_decl
51861.1Stv_ACEOF
51871.74Schristosac_fn_c_check_decl "$LINENO" "le64dec" "ac_cv_have_decl_le64dec" "#include <sys/endian.h>
51881.74Schristos"
51891.74Schristosif test "x$ac_cv_have_decl_le64dec" = xyes; then :
51901.74Schristos  ac_have_decl=1
51911.1Stvelse
51921.74Schristos  ac_have_decl=0
51931.1Stvfi
51941.54Swiz
51951.74Schristoscat >>confdefs.h <<_ACEOF
51961.74Schristos#define HAVE_DECL_LE64DEC $ac_have_decl
51971.74Schristos_ACEOF
51981.74Schristos
51991.54Swiz
52001.74Schristosac_fn_c_check_decl "$LINENO" "fstatvfs" "ac_cv_have_decl_fstatvfs" "#include <sys/statvfs.h>
52011.74Schristos"
52021.74Schristosif test "x$ac_cv_have_decl_fstatvfs" = xyes; then :
52031.74Schristos  ac_have_decl=1
52041.54Swizelse
52051.74Schristos  ac_have_decl=0
52061.74Schristosfi
52071.54Swiz
52081.74Schristoscat >>confdefs.h <<_ACEOF
52091.74Schristos#define HAVE_DECL_FSTATVFS $ac_have_decl
52101.74Schristos_ACEOF
52111.54Swiz
52121.8Stv
52131.74Schristosac_fn_c_check_decl "$LINENO" "setgroupent" "ac_cv_have_decl_setgroupent" "
52141.33Sthorpej#include <sys/types.h>
52151.8Stv#include <grp.h>
52161.8Stv#include <pwd.h>
52171.8Stv
52181.74Schristos"
52191.74Schristosif test "x$ac_cv_have_decl_setgroupent" = xyes; then :
52201.74Schristos  ac_have_decl=1
52211.8Stvelse
52221.74Schristos  ac_have_decl=0
52231.8Stvfi
52241.8Stv
52251.74Schristoscat >>confdefs.h <<_ACEOF
52261.74Schristos#define HAVE_DECL_SETGROUPENT $ac_have_decl
52271.74Schristos_ACEOF
52281.74Schristosac_fn_c_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" "
52291.33Sthorpej#include <sys/types.h>
52301.8Stv#include <grp.h>
52311.8Stv#include <pwd.h>
52321.8Stv
52331.74Schristos"
52341.74Schristosif test "x$ac_cv_have_decl_setpassent" = xyes; then :
52351.74Schristos  ac_have_decl=1
52361.8Stvelse
52371.74Schristos  ac_have_decl=0
52381.8Stvfi
52391.8Stv
52401.74Schristoscat >>confdefs.h <<_ACEOF
52411.74Schristos#define HAVE_DECL_SETPASSENT $ac_have_decl
52421.74Schristos_ACEOF
52431.8Stv
52441.8Stv
52451.4Stv# regcomp() and regexec() are also names of functions in the old V8
52461.4Stv# regexp package.  To avoid them, we need to find out who has regfree().
52471.4Stv
52481.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regfree in -lregex" >&5
52491.74Schristos$as_echo_n "checking for regfree in -lregex... " >&6; }
52501.74Schristosif ${ac_cv_lib_regex_regfree+:} false; then :
52511.74Schristos  $as_echo_n "(cached) " >&6
52521.4Stvelse
52531.4Stv  ac_check_lib_save_LIBS=$LIBS
52541.4StvLIBS="-lregex  $LIBS"
52551.74Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
52561.74Schristos/* end confdefs.h.  */
52571.4Stv
52581.74Schristos/* Override any GCC internal prototype to avoid an error.
52591.74Schristos   Use char because int might match the return type of a GCC
52601.74Schristos   builtin and then its argument prototype would still apply.  */
52611.4Stv#ifdef __cplusplus
52621.4Stvextern "C"
52631.4Stv#endif
52641.4Stvchar regfree ();
52651.4Stvint
52661.4Stvmain ()
52671.4Stv{
52681.74Schristosreturn regfree ();
52691.4Stv  ;
52701.4Stv  return 0;
52711.4Stv}
52721.4Stv_ACEOF
52731.74Schristosif ac_fn_c_try_link "$LINENO"; then :
52741.4Stv  ac_cv_lib_regex_regfree=yes
52751.4Stvelse
52761.74Schristos  ac_cv_lib_regex_regfree=no
52771.4Stvfi
52781.74Schristosrm -f core conftest.err conftest.$ac_objext \
52791.74Schristos    conftest$ac_exeext conftest.$ac_ext
52801.4StvLIBS=$ac_check_lib_save_LIBS
52811.4Stvfi
52821.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regfree" >&5
52831.74Schristos$as_echo "$ac_cv_lib_regex_regfree" >&6; }
52841.74Schristosif test "x$ac_cv_lib_regex_regfree" = xyes; then :
52851.74Schristos  cat >>confdefs.h <<_ACEOF
52861.4Stv#define HAVE_LIBREGEX 1
52871.74Schristos_ACEOF
52881.4Stv
52891.4Stv  LIBS="-lregex $LIBS"
52901.4Stv
52911.4Stvfi
52921.4Stv
52931.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
52941.74Schristos$as_echo_n "checking for library containing regfree... " >&6; }
52951.74Schristosif ${ac_cv_search_regfree+:} false; then :
52961.74Schristos  $as_echo_n "(cached) " >&6
52971.1Stvelse
52981.1Stv  ac_func_search_save_LIBS=$LIBS
52991.74Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
53001.74Schristos/* end confdefs.h.  */
53011.1Stv
53021.74Schristos/* Override any GCC internal prototype to avoid an error.
53031.74Schristos   Use char because int might match the return type of a GCC
53041.74Schristos   builtin and then its argument prototype would still apply.  */
53051.1Stv#ifdef __cplusplus
53061.1Stvextern "C"
53071.1Stv#endif
53081.4Stvchar regfree ();
53091.1Stvint
53101.1Stvmain ()
53111.1Stv{
53121.74Schristosreturn regfree ();
53131.1Stv  ;
53141.1Stv  return 0;
53151.1Stv}
53161.1Stv_ACEOF
53171.74Schristosfor ac_lib in '' rx posix; do
53181.74Schristos  if test -z "$ac_lib"; then
53191.74Schristos    ac_res="none required"
53201.74Schristos  else
53211.74Schristos    ac_res=-l$ac_lib
53221.66Stsutsui    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
53231.74Schristos  fi
53241.74Schristos  if ac_fn_c_try_link "$LINENO"; then :
53251.74Schristos  ac_cv_search_regfree=$ac_res
53261.74Schristosfi
53271.74Schristosrm -f core conftest.err conftest.$ac_objext \
53281.74Schristos    conftest$ac_exeext
53291.74Schristos  if ${ac_cv_search_regfree+:} false; then :
53301.74Schristos  break
53311.74Schristosfi
53321.74Schristosdone
53331.74Schristosif ${ac_cv_search_regfree+:} false; then :
53341.1Stv
53351.66Stsutsuielse
53361.74Schristos  ac_cv_search_regfree=no
53371.1Stvfi
53381.74Schristosrm conftest.$ac_ext
53391.1StvLIBS=$ac_func_search_save_LIBS
53401.1Stvfi
53411.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
53421.74Schristos$as_echo "$ac_cv_search_regfree" >&6; }
53431.74Schristosac_res=$ac_cv_search_regfree
53441.74Schristosif test "$ac_res" != no; then :
53451.74Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
53461.1Stv
53471.1Stvfi
53481.1Stv
53491.74Schristos
53501.68Stnozakifor ac_func in fparseln
53511.74Schristosdo :
53521.74Schristos  ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln"
53531.74Schristosif test "x$ac_cv_func_fparseln" = xyes; then :
53541.74Schristos  cat >>confdefs.h <<_ACEOF
53551.74Schristos#define HAVE_FPARSELN 1
53561.74Schristos_ACEOF
53571.74Schristos
53581.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fparseln seems to work" >&5
53591.74Schristos$as_echo_n "checking if fparseln seems to work... " >&6; }
53601.74Schristos    if test "$cross_compiling" = yes; then :
53611.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking farseln" >&5
53621.74Schristos$as_echo "$as_me: WARNING: cross compiling: not checking farseln" >&2;}
53631.68Stnozaki
53641.74Schristoselse
53651.74Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53661.74Schristos/* end confdefs.h.  */
53671.68Stnozaki
53681.68Stnozaki#define _NETBSD_SOURCE
53691.68Stnozaki#include <stdio.h>
53701.68Stnozaki#include <stdlib.h>
53711.68Stnozaki#define CONFTEST	"conftest.fparseln"
53721.68Stnozaki#define COMMENT		'#'
53731.68Stnozakiint
53741.68Stnozakimain(void)
53751.68Stnozaki{
53761.68Stnozaki	static const char delim[3] = { '\0', '\0', COMMENT };
53771.68Stnozaki	FILE *fp;
53781.68Stnozaki	char *ptr;
53791.68Stnozaki	fp = fopen(CONFTEST, "w+");
53801.68Stnozaki	if (fp != NULL) {
53811.68Stnozaki		unlink(CONFTEST);
53821.68Stnozaki		ungetc(COMMENT, fp);
53831.68Stnozaki		ptr = fparseln(fp, NULL, NULL, delim,
53841.68Stnozaki		    FPARSELN_UNESCALL);
53851.68Stnozaki		fclose(fp);
53861.68Stnozaki		if (ptr == NULL)
53871.68Stnozaki			exit(0);
53881.68Stnozaki	}
53891.68Stnozaki	exit(1);
53901.68Stnozaki}
53911.68Stnozaki
53921.68Stnozaki_ACEOF
53931.74Schristosif ac_fn_c_try_run "$LINENO"; then :
53941.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53951.74Schristos$as_echo "yes" >&6; }
53961.74Schristoselse
53971.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53981.74Schristos$as_echo "no" >&6; }
53991.74Schristos
54001.74Schristos$as_echo "#define BROKEN_FPARSELN 1" >>confdefs.h
54011.68Stnozaki
54021.68Stnozakifi
54031.74Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54041.74Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
54051.68Stnozakifi
54061.68Stnozaki
54071.74Schristos
54081.68Stnozakifi
54091.68Stnozakidone
54101.68Stnozaki
54111.74Schristos
54121.72Sapb# Variables substituted via @VARNAME@ in defs.mk.in
54131.72SapbHAVE_PTHREAD_H=$ac_cv_header_pthread_h
54141.72Sapb
54151.74Schristos
54161.1Stvcat >confcache <<\_ACEOF
54171.1Stv# This file is a shell script that caches the results of configure
54181.1Stv# tests run on this system so they can be shared between configure
54191.1Stv# scripts and configure runs, see configure's option --config-cache.
54201.1Stv# It is not useful on other systems.  If it contains results you don't
54211.1Stv# want to keep, you may remove or edit it.
54221.1Stv#
54231.1Stv# config.status only pays attention to the cache file if you give it
54241.1Stv# the --recheck option to rerun configure.
54251.1Stv#
54261.74Schristos# `ac_cv_env_foo' variables (set or unset) will be overridden when
54271.1Stv# loading this file, other *unset* `ac_cv_foo' will be assigned the
54281.1Stv# following values.
54291.1Stv
54301.1Stv_ACEOF
54311.1Stv
54321.1Stv# The following way of writing the cache mishandles newlines in values,
54331.1Stv# but we know of no workaround that is simple, portable, and efficient.
54341.74Schristos# So, we kill variables containing newlines.
54351.74Schristos# Ultrix sh set writes to stderr and can't be redirected directly,
54361.74Schristos# and sets the high bit in the cache file unless we assign to the vars.
54371.74Schristos(
54381.74Schristos  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
54391.74Schristos    eval ac_val=\$$ac_var
54401.74Schristos    case $ac_val in #(
54411.74Schristos    *${as_nl}*)
54421.74Schristos      case $ac_var in #(
54431.74Schristos      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
54441.74Schristos$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
54451.74Schristos      esac
54461.74Schristos      case $ac_var in #(
54471.74Schristos      _ | IFS | as_nl) ;; #(
54481.74Schristos      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
54491.74Schristos      *) { eval $ac_var=; unset $ac_var;} ;;
54501.74Schristos      esac ;;
54511.74Schristos    esac
54521.74Schristos  done
54531.74Schristos
54541.65Schristos  (set) 2>&1 |
54551.74Schristos    case $as_nl`(ac_space=' '; set) 2>&1` in #(
54561.74Schristos    *${as_nl}ac_space=\ *)
54571.74Schristos      # `set' does not quote correctly, so add quotes: double-quote
54581.74Schristos      # substitution turns \\\\ into \\, and sed turns \\ into \.
54591.65Schristos      sed -n \
54601.74Schristos	"s/'/'\\\\''/g;
54611.74Schristos	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
54621.74Schristos      ;; #(
54631.65Schristos    *)
54641.65Schristos      # `set' quotes correctly as required by POSIX, so do not add quotes.
54651.74Schristos      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
54661.65Schristos      ;;
54671.74Schristos    esac |
54681.74Schristos    sort
54691.74Schristos) |
54701.65Schristos  sed '
54711.74Schristos     /^ac_cv_env_/b end
54721.65Schristos     t clear
54731.74Schristos     :clear
54741.65Schristos     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
54751.65Schristos     t end
54761.74Schristos     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
54771.74Schristos     :end' >>confcache
54781.74Schristosif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
54791.74Schristos  if test -w "$cache_file"; then
54801.74Schristos    if test "x$cache_file" != "x/dev/null"; then
54811.74Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
54821.74Schristos$as_echo "$as_me: updating cache $cache_file" >&6;}
54831.74Schristos      if test ! -f "$cache_file" || test -h "$cache_file"; then
54841.74Schristos	cat confcache >"$cache_file"
54851.74Schristos      else
54861.74Schristos        case $cache_file in #(
54871.74Schristos        */* | ?:*)
54881.74Schristos	  mv -f confcache "$cache_file"$$ &&
54891.74Schristos	  mv -f "$cache_file"$$ "$cache_file" ;; #(
54901.74Schristos        *)
54911.74Schristos	  mv -f confcache "$cache_file" ;;
54921.74Schristos	esac
54931.74Schristos      fi
54941.74Schristos    fi
54951.65Schristos  else
54961.74Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
54971.74Schristos$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
54981.65Schristos  fi
54991.65Schristosfi
55001.66Stsutsuirm -f confcache
55011.65Schristos
55021.66Stsutsuitest "x$prefix" = xNONE && prefix=$ac_default_prefix
55031.66Stsutsui# Let make expand exec_prefix.
55041.66Stsutsuitest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55051.65Schristos
55061.74SchristosDEFS=-DHAVE_CONFIG_H
55071.74Schristos
55081.74Schristosac_libobjs=
55091.74Schristosac_ltlibobjs=
55101.74SchristosU=
55111.74Schristosfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55121.74Schristos  # 1. Remove the extension, and $U if already installed.
55131.74Schristos  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
55141.74Schristos  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
55151.74Schristos  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
55161.74Schristos  #    will be set to the directory where LIBOBJS objects are built.
55171.74Schristos  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
55181.74Schristos  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
55191.74Schristosdone
55201.74SchristosLIBOBJS=$ac_libobjs
55211.74Schristos
55221.74SchristosLTLIBOBJS=$ac_ltlibobjs
55231.74Schristos
55241.74Schristos
55251.65Schristos
55261.65Schristos
55271.74Schristos: "${CONFIG_STATUS=./config.status}"
55281.74Schristosac_write_fail=0
55291.66Stsutsuiac_clean_files_save=$ac_clean_files
55301.66Stsutsuiac_clean_files="$ac_clean_files $CONFIG_STATUS"
55311.74Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
55321.74Schristos$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
55331.74Schristosas_write_fail=0
55341.74Schristoscat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
55351.66Stsutsui#! $SHELL
55361.74Schristos# Generated by $as_me.
55371.66Stsutsui# Run this file to recreate the current configuration.
55381.66Stsutsui# Compiler output produced by configure, useful for debugging
55391.66Stsutsui# configure, is in config.log if it exists.
55401.65Schristos
55411.66Stsutsuidebug=false
55421.74Schristosac_cs_recheck=false
55431.74Schristosac_cs_silent=false
55441.74Schristos
55451.66StsutsuiSHELL=\${CONFIG_SHELL-$SHELL}
55461.74Schristosexport SHELL
55471.74Schristos_ASEOF
55481.74Schristoscat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
55491.74Schristos## -------------------- ##
55501.74Schristos## M4sh Initialization. ##
55511.74Schristos## -------------------- ##
55521.74Schristos
55531.74Schristos# Be more Bourne compatible
55541.74SchristosDUALCASE=1; export DUALCASE # for MKS sh
55551.74Schristosif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
55561.74Schristos  emulate sh
55571.74Schristos  NULLCMD=:
55581.74Schristos  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
55591.74Schristos  # is contrary to our usage.  Disable this feature.
55601.74Schristos  alias -g '${1+"$@"}'='"$@"'
55611.74Schristos  setopt NO_GLOB_SUBST
55621.74Schristoselse
55631.74Schristos  case `(set -o) 2>/dev/null` in #(
55641.74Schristos  *posix*) :
55651.74Schristos    set -o posix ;; #(
55661.74Schristos  *) :
55671.74Schristos     ;;
55681.74Schristosesac
55691.74Schristosfi
55701.74Schristos
55711.65Schristos
55721.74Schristosas_nl='
55731.74Schristos'
55741.74Schristosexport as_nl
55751.74Schristos# Printing a long string crashes Solaris 7 /usr/bin/printf.
55761.74Schristosas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
55771.74Schristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
55781.74Schristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
55791.74Schristos# Prefer a ksh shell builtin over an external printf program on Solaris,
55801.74Schristos# but without wasting forks for bash or zsh.
55811.74Schristosif test -z "$BASH_VERSION$ZSH_VERSION" \
55821.74Schristos    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
55831.74Schristos  as_echo='print -r --'
55841.74Schristos  as_echo_n='print -rn --'
55851.74Schristoselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55861.74Schristos  as_echo='printf %s\n'
55871.74Schristos  as_echo_n='printf %s'
55881.74Schristoselse
55891.74Schristos  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55901.74Schristos    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55911.74Schristos    as_echo_n='/usr/ucb/echo -n'
55921.74Schristos  else
55931.74Schristos    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55941.74Schristos    as_echo_n_body='eval
55951.74Schristos      arg=$1;
55961.74Schristos      case $arg in #(
55971.74Schristos      *"$as_nl"*)
55981.74Schristos	expr "X$arg" : "X\\(.*\\)$as_nl";
55991.74Schristos	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
56001.74Schristos      esac;
56011.74Schristos      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
56021.74Schristos    '
56031.74Schristos    export as_echo_n_body
56041.74Schristos    as_echo_n='sh -c $as_echo_n_body as_echo'
56051.74Schristos  fi
56061.74Schristos  export as_echo_body
56071.74Schristos  as_echo='sh -c $as_echo_body as_echo'
56081.74Schristosfi
56091.65Schristos
56101.74Schristos# The user is always right.
56111.74Schristosif test "${PATH_SEPARATOR+set}" != set; then
56121.74Schristos  PATH_SEPARATOR=:
56131.74Schristos  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
56141.74Schristos    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
56151.74Schristos      PATH_SEPARATOR=';'
56161.74Schristos  }
56171.1Stvfi
56181.1Stv
56191.1Stv
56201.74Schristos# IFS
56211.74Schristos# We need space, tab and new line, in precisely that order.  Quoting is
56221.74Schristos# there to prevent editors from complaining about space-tab.
56231.74Schristos# (If _AS_PATH_WALK were called with IFS unset, it would disable word
56241.74Schristos# splitting by setting IFS to empty value.)
56251.74SchristosIFS=" ""	$as_nl"
56261.74Schristos
56271.74Schristos# Find who we are.  Look in the path if we contain no directory separator.
56281.74Schristosas_myself=
56291.74Schristoscase $0 in #((
56301.74Schristos  *[\\/]* ) as_myself=$0 ;;
56311.74Schristos  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56321.74Schristosfor as_dir in $PATH
56331.74Schristosdo
56341.74Schristos  IFS=$as_save_IFS
56351.74Schristos  test -z "$as_dir" && as_dir=.
56361.74Schristos    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56371.74Schristos  done
56381.74SchristosIFS=$as_save_IFS
56391.74Schristos
56401.74Schristos     ;;
56411.74Schristosesac
56421.74Schristos# We did not find ourselves, most probably we were run as `sh COMMAND'
56431.74Schristos# in which case we are not to be found in the path.
56441.74Schristosif test "x$as_myself" = x; then
56451.74Schristos  as_myself=$0
56461.74Schristosfi
56471.74Schristosif test ! -f "$as_myself"; then
56481.74Schristos  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
56491.74Schristos  exit 1
56501.74Schristosfi
56511.74Schristos
56521.74Schristos# Unset variables that we do not need and which cause bugs (e.g. in
56531.74Schristos# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
56541.74Schristos# suppresses any "Segmentation fault" message there.  '((' could
56551.74Schristos# trigger a bug in pdksh 5.2.14.
56561.74Schristosfor as_var in BASH_ENV ENV MAIL MAILPATH
56571.74Schristosdo eval test x\${$as_var+set} = xset \
56581.74Schristos  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
56591.74Schristosdone
56601.74SchristosPS1='$ '
56611.74SchristosPS2='> '
56621.74SchristosPS4='+ '
56631.74Schristos
56641.74Schristos# NLS nuisances.
56651.74SchristosLC_ALL=C
56661.74Schristosexport LC_ALL
56671.74SchristosLANGUAGE=C
56681.74Schristosexport LANGUAGE
56691.74Schristos
56701.74Schristos# CDPATH.
56711.74Schristos(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
56721.74Schristos
56731.74Schristos
56741.74Schristos# as_fn_error STATUS ERROR [LINENO LOG_FD]
56751.74Schristos# ----------------------------------------
56761.74Schristos# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
56771.74Schristos# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
56781.74Schristos# script with STATUS, using 1 if that was 0.
56791.74Schristosas_fn_error ()
56801.74Schristos{
56811.74Schristos  as_status=$1; test $as_status -eq 0 && as_status=1
56821.74Schristos  if test "$4"; then
56831.74Schristos    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
56841.74Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
56851.74Schristos  fi
56861.74Schristos  $as_echo "$as_me: error: $2" >&2
56871.74Schristos  as_fn_exit $as_status
56881.74Schristos} # as_fn_error
56891.74Schristos
56901.74Schristos
56911.74Schristos# as_fn_set_status STATUS
56921.74Schristos# -----------------------
56931.74Schristos# Set $? to STATUS, without forking.
56941.74Schristosas_fn_set_status ()
56951.74Schristos{
56961.74Schristos  return $1
56971.74Schristos} # as_fn_set_status
56981.74Schristos
56991.74Schristos# as_fn_exit STATUS
57001.74Schristos# -----------------
57011.74Schristos# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
57021.74Schristosas_fn_exit ()
57031.74Schristos{
57041.74Schristos  set +e
57051.74Schristos  as_fn_set_status $1
57061.74Schristos  exit $1
57071.74Schristos} # as_fn_exit
57081.74Schristos
57091.74Schristos# as_fn_unset VAR
57101.74Schristos# ---------------
57111.74Schristos# Portably unset VAR.
57121.74Schristosas_fn_unset ()
57131.74Schristos{
57141.74Schristos  { eval $1=; unset $1;}
57151.74Schristos}
57161.74Schristosas_unset=as_fn_unset
57171.74Schristos# as_fn_append VAR VALUE
57181.74Schristos# ----------------------
57191.74Schristos# Append the text in VALUE to the end of the definition contained in VAR. Take
57201.74Schristos# advantage of any shell optimizations that allow amortized linear growth over
57211.74Schristos# repeated appends, instead of the typical quadratic growth present in naive
57221.74Schristos# implementations.
57231.74Schristosif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
57241.74Schristos  eval 'as_fn_append ()
57251.74Schristos  {
57261.74Schristos    eval $1+=\$2
57271.74Schristos  }'
57281.74Schristoselse
57291.74Schristos  as_fn_append ()
57301.74Schristos  {
57311.74Schristos    eval $1=\$$1\$2
57321.74Schristos  }
57331.74Schristosfi # as_fn_append
57341.74Schristos
57351.74Schristos# as_fn_arith ARG...
57361.74Schristos# ------------------
57371.74Schristos# Perform arithmetic evaluation on the ARGs, and store the result in the
57381.74Schristos# global $as_val. Take advantage of shells that can avoid forks. The arguments
57391.74Schristos# must be portable across $(()) and expr.
57401.74Schristosif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
57411.74Schristos  eval 'as_fn_arith ()
57421.74Schristos  {
57431.74Schristos    as_val=$(( $* ))
57441.74Schristos  }'
57451.74Schristoselse
57461.74Schristos  as_fn_arith ()
57471.74Schristos  {
57481.74Schristos    as_val=`expr "$@" || test $? -eq 1`
57491.74Schristos  }
57501.74Schristosfi # as_fn_arith
57511.74Schristos
57521.74Schristos
57531.74Schristosif expr a : '\(a\)' >/dev/null 2>&1 &&
57541.74Schristos   test "X`expr 00001 : '.*\(...\)'`" = X001; then
57551.1Stv  as_expr=expr
57561.1Stvelse
57571.1Stv  as_expr=false
57581.1Stvfi
57591.1Stv
57601.74Schristosif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
57611.74Schristos  as_basename=basename
57621.74Schristoselse
57631.74Schristos  as_basename=false
57641.74Schristosfi
57651.74Schristos
57661.74Schristosif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
57671.74Schristos  as_dirname=dirname
57681.74Schristoselse
57691.74Schristos  as_dirname=false
57701.74Schristosfi
57711.74Schristos
57721.74Schristosas_me=`$as_basename -- "$0" ||
57731.74Schristos$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
57741.74Schristos	 X"$0" : 'X\(//\)$' \| \
57751.74Schristos	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
57761.74Schristos$as_echo X/"$0" |
57771.74Schristos    sed '/^.*\/\([^/][^/]*\)\/*$/{
57781.74Schristos	    s//\1/
57791.74Schristos	    q
57801.74Schristos	  }
57811.74Schristos	  /^X\/\(\/\/\)$/{
57821.74Schristos	    s//\1/
57831.74Schristos	    q
57841.74Schristos	  }
57851.74Schristos	  /^X\/\(\/\).*/{
57861.74Schristos	    s//\1/
57871.74Schristos	    q
57881.74Schristos	  }
57891.74Schristos	  s/.*/./; q'`
57901.74Schristos
57911.74Schristos# Avoid depending upon Character Ranges.
57921.74Schristosas_cr_letters='abcdefghijklmnopqrstuvwxyz'
57931.74Schristosas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
57941.74Schristosas_cr_Letters=$as_cr_letters$as_cr_LETTERS
57951.74Schristosas_cr_digits='0123456789'
57961.74Schristosas_cr_alnum=$as_cr_Letters$as_cr_digits
57971.74Schristos
57981.74SchristosECHO_C= ECHO_N= ECHO_T=
57991.74Schristoscase `echo -n x` in #(((((
58001.74Schristos-n*)
58011.74Schristos  case `echo 'xy\c'` in
58021.74Schristos  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
58031.74Schristos  xy)  ECHO_C='\c';;
58041.74Schristos  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
58051.74Schristos       ECHO_T='	';;
58061.74Schristos  esac;;
58071.74Schristos*)
58081.74Schristos  ECHO_N='-n';;
58091.74Schristosesac
58101.74Schristos
58111.1Stvrm -f conf$$ conf$$.exe conf$$.file
58121.74Schristosif test -d conf$$.dir; then
58131.74Schristos  rm -f conf$$.dir/conf$$.file
58141.74Schristoselse
58151.74Schristos  rm -f conf$$.dir
58161.74Schristos  mkdir conf$$.dir 2>/dev/null
58171.74Schristosfi
58181.74Schristosif (echo >conf$$.file) 2>/dev/null; then
58191.74Schristos  if ln -s conf$$.file conf$$ 2>/dev/null; then
58201.74Schristos    as_ln_s='ln -s'
58211.74Schristos    # ... but there are two gotchas:
58221.74Schristos    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
58231.74Schristos    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
58241.74Schristos    # In both cases, we have to default to `cp -pR'.
58251.74Schristos    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
58261.74Schristos      as_ln_s='cp -pR'
58271.74Schristos  elif ln conf$$.file conf$$ 2>/dev/null; then
58281.74Schristos    as_ln_s=ln
58291.66Stsutsui  else
58301.74Schristos    as_ln_s='cp -pR'
58311.66Stsutsui  fi
58321.1Stvelse
58331.74Schristos  as_ln_s='cp -pR'
58341.1Stvfi
58351.74Schristosrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
58361.74Schristosrmdir conf$$.dir 2>/dev/null
58371.74Schristos
58381.74Schristos
58391.74Schristos# as_fn_mkdir_p
58401.74Schristos# -------------
58411.74Schristos# Create "$as_dir" as a directory, including parents if necessary.
58421.74Schristosas_fn_mkdir_p ()
58431.74Schristos{
58441.74Schristos
58451.74Schristos  case $as_dir in #(
58461.74Schristos  -*) as_dir=./$as_dir;;
58471.74Schristos  esac
58481.74Schristos  test -d "$as_dir" || eval $as_mkdir_p || {
58491.74Schristos    as_dirs=
58501.74Schristos    while :; do
58511.74Schristos      case $as_dir in #(
58521.74Schristos      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
58531.74Schristos      *) as_qdir=$as_dir;;
58541.74Schristos      esac
58551.74Schristos      as_dirs="'$as_qdir' $as_dirs"
58561.74Schristos      as_dir=`$as_dirname -- "$as_dir" ||
58571.74Schristos$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
58581.74Schristos	 X"$as_dir" : 'X\(//\)[^/]' \| \
58591.74Schristos	 X"$as_dir" : 'X\(//\)$' \| \
58601.74Schristos	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
58611.74Schristos$as_echo X"$as_dir" |
58621.74Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
58631.74Schristos	    s//\1/
58641.74Schristos	    q
58651.74Schristos	  }
58661.74Schristos	  /^X\(\/\/\)[^/].*/{
58671.74Schristos	    s//\1/
58681.74Schristos	    q
58691.74Schristos	  }
58701.74Schristos	  /^X\(\/\/\)$/{
58711.74Schristos	    s//\1/
58721.74Schristos	    q
58731.74Schristos	  }
58741.74Schristos	  /^X\(\/\).*/{
58751.74Schristos	    s//\1/
58761.74Schristos	    q
58771.74Schristos	  }
58781.74Schristos	  s/.*/./; q'`
58791.74Schristos      test -d "$as_dir" && break
58801.74Schristos    done
58811.74Schristos    test -z "$as_dirs" || eval "mkdir $as_dirs"
58821.74Schristos  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
58831.1Stv
58841.63Sapb
58851.74Schristos} # as_fn_mkdir_p
58861.74Schristosif mkdir -p . 2>/dev/null; then
58871.74Schristos  as_mkdir_p='mkdir -p "$as_dir"'
58881.61Schristoselse
58891.74Schristos  test -d ./-p && rmdir ./-p
58901.74Schristos  as_mkdir_p=false
58911.61Schristosfi
58921.61Schristos
58931.1Stv
58941.74Schristos# as_fn_executable_p FILE
58951.74Schristos# -----------------------
58961.74Schristos# Test if FILE is an executable regular file.
58971.74Schristosas_fn_executable_p ()
58981.74Schristos{
58991.74Schristos  test -f "$1" && test -x "$1"
59001.74Schristos} # as_fn_executable_p
59011.74Schristosas_test_x='test -x'
59021.74Schristosas_executable_p=as_fn_executable_p
59031.74Schristos
59041.74Schristos# Sed expression to map a string onto a valid CPP name.
59051.74Schristosas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
59061.74Schristos
59071.74Schristos# Sed expression to map a string onto a valid variable name.
59081.74Schristosas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
59091.1Stv
59101.1Stv
59111.1Stvexec 6>&1
59121.74Schristos## ----------------------------------- ##
59131.74Schristos## Main body of $CONFIG_STATUS script. ##
59141.74Schristos## ----------------------------------- ##
59151.74Schristos_ASEOF
59161.74Schristostest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
59171.74Schristos
59181.74Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59191.74Schristos# Save the log message, to keep $0 and so on meaningful, and to
59201.74Schristos# report actual input values of CONFIG_FILES etc. instead of their
59211.74Schristos# values after options handling.
59221.74Schristosac_log="
59231.74SchristosThis file was extended by libnbcompat $as_me noversion, which was
59241.74Schristosgenerated by GNU Autoconf 2.69.  Invocation command line was
59251.74Schristos
59261.74Schristos  CONFIG_FILES    = $CONFIG_FILES
59271.74Schristos  CONFIG_HEADERS  = $CONFIG_HEADERS
59281.74Schristos  CONFIG_LINKS    = $CONFIG_LINKS
59291.74Schristos  CONFIG_COMMANDS = $CONFIG_COMMANDS
59301.74Schristos  $ $0 $@
59311.74Schristos
59321.74Schristoson `(hostname || uname -n) 2>/dev/null | sed 1q`
59331.74Schristos"
59341.1Stv
59351.66Stsutsui_ACEOF
59361.1Stv
59371.74Schristoscase $ac_config_files in *"
59381.74Schristos"*) set x $ac_config_files; shift; ac_config_files=$*;;
59391.74Schristosesac
59401.1Stv
59411.74Schristoscase $ac_config_headers in *"
59421.74Schristos"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
59431.74Schristosesac
59441.1Stv
59451.1Stv
59461.74Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59471.74Schristos# Files that config.status was made for.
59481.74Schristosconfig_files="$ac_config_files"
59491.74Schristosconfig_headers="$ac_config_headers"
59501.1Stv
59511.74Schristos_ACEOF
59521.1Stv
59531.74Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59541.1Stvac_cs_usage="\
59551.74Schristos\`$as_me' instantiates files and other configuration actions
59561.74Schristosfrom templates according to the current configuration.  Unless the files
59571.74Schristosand actions are specified as TAGs, all are instantiated by default.
59581.1Stv
59591.74SchristosUsage: $0 [OPTION]... [TAG]...
59601.1Stv
59611.1Stv  -h, --help       print this help, then exit
59621.74Schristos  -V, --version    print version number and configuration settings, then exit
59631.74Schristos      --config     print configuration, then exit
59641.74Schristos  -q, --quiet, --silent
59651.74Schristos                   do not print progress messages
59661.1Stv  -d, --debug      don't remove temporary files
59671.1Stv      --recheck    update $as_me by reconfiguring in the same conditions
59681.74Schristos      --file=FILE[:TEMPLATE]
59691.66Stsutsui                   instantiate the configuration file FILE
59701.74Schristos      --header=FILE[:TEMPLATE]
59711.66Stsutsui                   instantiate the configuration header FILE
59721.1Stv
59731.1StvConfiguration files:
59741.1Stv$config_files
59751.1Stv
59761.1StvConfiguration headers:
59771.1Stv$config_headers
59781.1Stv
59791.74SchristosReport bugs to <lib-bug-people@NetBSD.org>."
59801.1Stv
59811.74Schristos_ACEOF
59821.74Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59831.74Schristosac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
59841.1Stvac_cs_version="\\
59851.1Stvlibnbcompat config.status noversion
59861.74Schristosconfigured by $0, generated by GNU Autoconf 2.69,
59871.74Schristos  with options \\"\$ac_cs_config\\"
59881.1Stv
59891.74SchristosCopyright (C) 2012 Free Software Foundation, Inc.
59901.1StvThis config.status script is free software; the Free Software Foundation
59911.1Stvgives unlimited permission to copy, distribute and modify it."
59921.1Stv
59931.74Schristosac_pwd='$ac_pwd'
59941.74Schristossrcdir='$srcdir'
59951.74Schristostest -n "\$AWK" || AWK=awk
59961.74Schristos_ACEOF
59971.74Schristos
59981.74Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59991.74Schristos# The default lists apply if the user does not specify any file.
60001.1Stvac_need_defaults=:
60011.1Stvwhile test $# != 0
60021.1Stvdo
60031.1Stv  case $1 in
60041.74Schristos  --*=?*)
60051.74Schristos    ac_option=`expr "X$1" : 'X\([^=]*\)='`
60061.74Schristos    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
60071.74Schristos    ac_shift=:
60081.74Schristos    ;;
60091.74Schristos  --*=)
60101.74Schristos    ac_option=`expr "X$1" : 'X\([^=]*\)='`
60111.74Schristos    ac_optarg=
60121.74Schristos    ac_shift=:
60131.74Schristos    ;;
60141.74Schristos  *)
60151.74Schristos    ac_option=$1
60161.74Schristos    ac_optarg=$2
60171.74Schristos    ac_shift=shift
60181.1Stv    ;;
60191.1Stv  esac
60201.1Stv
60211.74Schristos  case $ac_option in
60221.1Stv  # Handling of the options.
60231.1Stv  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
60241.74Schristos    ac_cs_recheck=: ;;
60251.74Schristos  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
60261.74Schristos    $as_echo "$ac_cs_version"; exit ;;
60271.74Schristos  --config | --confi | --conf | --con | --co | --c )
60281.74Schristos    $as_echo "$ac_cs_config"; exit ;;
60291.74Schristos  --debug | --debu | --deb | --de | --d | -d )
60301.1Stv    debug=: ;;
60311.1Stv  --file | --fil | --fi | --f )
60321.74Schristos    $ac_shift
60331.74Schristos    case $ac_optarg in
60341.74Schristos    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
60351.74Schristos    '') as_fn_error $? "missing file argument" ;;
60361.74Schristos    esac
60371.74Schristos    as_fn_append CONFIG_FILES " '$ac_optarg'"
60381.1Stv    ac_need_defaults=false;;
60391.1Stv  --header | --heade | --head | --hea )
60401.74Schristos    $ac_shift
60411.74Schristos    case $ac_optarg in
60421.74Schristos    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
60431.74Schristos    esac
60441.74Schristos    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
60451.1Stv    ac_need_defaults=false;;
60461.74Schristos  --he | --h)
60471.74Schristos    # Conflict between --help and --header
60481.74Schristos    as_fn_error $? "ambiguous option: \`$1'
60491.74SchristosTry \`$0 --help' for more information.";;
60501.74Schristos  --help | --hel | -h )
60511.74Schristos    $as_echo "$ac_cs_usage"; exit ;;
60521.74Schristos  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
60531.74Schristos  | -silent | --silent | --silen | --sile | --sil | --si | --s)
60541.74Schristos    ac_cs_silent=: ;;
60551.1Stv
60561.1Stv  # This is an error.
60571.74Schristos  -*) as_fn_error $? "unrecognized option: \`$1'
60581.74SchristosTry \`$0 --help' for more information." ;;
60591.1Stv
60601.74Schristos  *) as_fn_append ac_config_targets " $1"
60611.74Schristos     ac_need_defaults=false ;;
60621.1Stv
60631.1Stv  esac
60641.1Stv  shift
60651.1Stvdone
60661.1Stv
60671.74Schristosac_configure_extra_args=
60681.74Schristos
60691.74Schristosif $ac_cs_silent; then
60701.74Schristos  exec 6>/dev/null
60711.74Schristos  ac_configure_extra_args="$ac_configure_extra_args --silent"
60721.74Schristosfi
60731.1Stv
60741.74Schristos_ACEOF
60751.74Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60761.74Schristosif \$ac_cs_recheck; then
60771.74Schristos  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
60781.74Schristos  shift
60791.74Schristos  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
60801.74Schristos  CONFIG_SHELL='$SHELL'
60811.74Schristos  export CONFIG_SHELL
60821.74Schristos  exec "\$@"
60831.74Schristosfi
60841.1Stv
60851.74Schristos_ACEOF
60861.74Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60871.74Schristosexec 5>>config.log
60881.74Schristos{
60891.74Schristos  echo
60901.74Schristos  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
60911.74Schristos## Running $as_me. ##
60921.74Schristos_ASBOX
60931.74Schristos  $as_echo "$ac_log"
60941.74Schristos} >&5
60951.1Stv
60961.1Stv_ACEOF
60971.74Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60981.74Schristos_ACEOF
60991.74Schristos
61001.74Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61011.1Stv
61021.74Schristos# Handling of arguments.
61031.1Stvfor ac_config_target in $ac_config_targets
61041.1Stvdo
61051.74Schristos  case $ac_config_target in
61061.74Schristos    "nbtool_config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
61071.74Schristos    "defs.mk") CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
61081.74Schristos
61091.74Schristos  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
61101.1Stv  esac
61111.1Stvdone
61121.1Stv
61131.74Schristos
61141.1Stv# If the user did not use the arguments to specify the items to instantiate,
61151.1Stv# then the envvar interface is used.  Set only those that are not.
61161.1Stv# We use the long form for the default assignment because of an extremely
61171.1Stv# bizarre bug on SunOS 4.1.3.
61181.1Stvif $ac_need_defaults; then
61191.1Stv  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
61201.1Stv  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
61211.1Stvfi
61221.1Stv
61231.74Schristos# Have a temporary directory for convenience.  Make it in the build tree
61241.74Schristos# simply because there is no reason against having it here, and in addition,
61251.74Schristos# creating and moving files from /tmp can sometimes cause problems.
61261.74Schristos# Hook for its removal unless debugging.
61271.74Schristos# Note that there is a small window in which the directory will not be cleaned:
61281.74Schristos# after its creation but before its name has been assigned to `$tmp'.
61291.1Stv$debug ||
61301.1Stv{
61311.74Schristos  tmp= ac_tmp=
61321.74Schristos  trap 'exit_status=$?
61331.74Schristos  : "${ac_tmp:=$tmp}"
61341.74Schristos  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
61351.74Schristos' 0
61361.74Schristos  trap 'as_fn_exit 1' 1 2 13 15
61371.1Stv}
61381.74Schristos# Create a (secure) tmp directory for tmp files.
61391.66Stsutsui
61401.1Stv{
61411.74Schristos  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
61421.74Schristos  test -d "$tmp"
61431.1Stv}  ||
61441.1Stv{
61451.74Schristos  tmp=./conf$$-$RANDOM
61461.74Schristos  (umask 077 && mkdir "$tmp")
61471.74Schristos} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
61481.74Schristosac_tmp=$tmp
61491.1Stv
61501.74Schristos# Set up the scripts for CONFIG_FILES section.
61511.74Schristos# No need to generate them if there are no CONFIG_FILES.
61521.74Schristos# This happens for instance with `./config.status config.h'.
61531.74Schristosif test -n "$CONFIG_FILES"; then
61541.66Stsutsui
61551.66Stsutsui
61561.74Schristosac_cr=`echo X | tr X '\015'`
61571.74Schristos# On cygwin, bash can eat \r inside `` if the user requested igncr.
61581.74Schristos# But we know of no other shell where ac_cr would be empty at this
61591.74Schristos# point, so we can use a bashism as a fallback.
61601.74Schristosif test "x$ac_cr" = x; then
61611.74Schristos  eval ac_cr=\$\'\\r\'
61621.74Schristosfi
61631.74Schristosac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
61641.74Schristosif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
61651.74Schristos  ac_cs_awk_cr='\\r'
61661.74Schristoselse
61671.74Schristos  ac_cs_awk_cr=$ac_cr
61681.74Schristosfi
61691.1Stv
61701.74Schristosecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
61711.74Schristos_ACEOF
61721.65Schristos
61731.65Schristos
61741.74Schristos{
61751.74Schristos  echo "cat >conf$$subs.awk <<_ACEOF" &&
61761.74Schristos  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
61771.74Schristos  echo "_ACEOF"
61781.74Schristos} >conf$$subs.sh ||
61791.74Schristos  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
61801.74Schristosac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
61811.74Schristosac_delim='%!_!# '
61821.74Schristosfor ac_last_try in false false false false false :; do
61831.74Schristos  . ./conf$$subs.sh ||
61841.74Schristos    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
61851.65Schristos
61861.74Schristos  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
61871.74Schristos  if test $ac_delim_n = $ac_delim_num; then
61881.74Schristos    break
61891.74Schristos  elif $ac_last_try; then
61901.74Schristos    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
61911.65Schristos  else
61921.74Schristos    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
61931.1Stv  fi
61941.74Schristosdone
61951.74Schristosrm -f conf$$subs.sh
61961.65Schristos
61971.74Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61981.74Schristoscat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
61991.74Schristos_ACEOF
62001.74Schristossed -n '
62011.74Schristosh
62021.74Schristoss/^/S["/; s/!.*/"]=/
62031.74Schristosp
62041.74Schristosg
62051.74Schristoss/^[^!]*!//
62061.74Schristos:repl
62071.74Schristost repl
62081.74Schristoss/'"$ac_delim"'$//
62091.74Schristost delim
62101.74Schristos:nl
62111.74Schristosh
62121.74Schristoss/\(.\{148\}\)..*/\1/
62131.74Schristost more1
62141.74Schristoss/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
62151.74Schristosp
62161.74Schristosn
62171.74Schristosb repl
62181.74Schristos:more1
62191.74Schristoss/["\\]/\\&/g; s/^/"/; s/$/"\\/
62201.74Schristosp
62211.74Schristosg
62221.74Schristoss/.\{148\}//
62231.74Schristost nl
62241.74Schristos:delim
62251.74Schristosh
62261.74Schristoss/\(.\{148\}\)..*/\1/
62271.74Schristost more2
62281.74Schristoss/["\\]/\\&/g; s/^/"/; s/$/"/
62291.74Schristosp
62301.74Schristosb
62311.74Schristos:more2
62321.74Schristoss/["\\]/\\&/g; s/^/"/; s/$/"\\/
62331.74Schristosp
62341.74Schristosg
62351.74Schristoss/.\{148\}//
62361.74Schristost delim
62371.74Schristos' <conf$$subs.awk | sed '
62381.74Schristos/^[^""]/{
62391.74Schristos  N
62401.74Schristos  s/\n//
62411.74Schristos}
62421.74Schristos' >>$CONFIG_STATUS || ac_write_fail=1
62431.74Schristosrm -f conf$$subs.awk
62441.74Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
62451.74Schristos_ACAWK
62461.74Schristoscat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
62471.74Schristos  for (key in S) S_is_set[key] = 1
62481.74Schristos  FS = ""
62491.74Schristos
62501.74Schristos}
62511.74Schristos{
62521.74Schristos  line = $ 0
62531.74Schristos  nfields = split(line, field, "@")
62541.74Schristos  substed = 0
62551.74Schristos  len = length(field[1])
62561.74Schristos  for (i = 2; i < nfields; i++) {
62571.74Schristos    key = field[i]
62581.74Schristos    keylen = length(key)
62591.74Schristos    if (S_is_set[key]) {
62601.74Schristos      value = S[key]
62611.74Schristos      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
62621.74Schristos      len += length(value) + length(field[++i])
62631.74Schristos      substed = 1
62641.74Schristos    } else
62651.74Schristos      len += 1 + keylen
62661.74Schristos  }
62671.74Schristos
62681.74Schristos  print line
62691.74Schristos}
62701.74Schristos
62711.74Schristos_ACAWK
62721.74Schristos_ACEOF
62731.74Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
62741.74Schristosif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
62751.74Schristos  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
62761.74Schristoselse
62771.74Schristos  cat
62781.74Schristosfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
62791.74Schristos  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
62801.74Schristos_ACEOF
62811.74Schristos
62821.74Schristos# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
62831.74Schristos# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
62841.74Schristos# trailing colons and then remove the whole line if VPATH becomes empty
62851.74Schristos# (actually we leave an empty line to preserve line numbers).
62861.74Schristosif test "x$srcdir" = x.; then
62871.74Schristos  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
62881.74Schristosh
62891.74Schristoss///
62901.74Schristoss/^/:/
62911.74Schristoss/[	 ]*$/:/
62921.74Schristoss/:\$(srcdir):/:/g
62931.74Schristoss/:\${srcdir}:/:/g
62941.74Schristoss/:@srcdir@:/:/g
62951.74Schristoss/^:*//
62961.74Schristoss/:*$//
62971.74Schristosx
62981.74Schristoss/\(=[	 ]*\).*/\1/
62991.74SchristosG
63001.74Schristoss/\n//
63011.74Schristoss/^[^=]*=[	 ]*$//
63021.74Schristos}'
63031.74Schristosfi
63041.74Schristos
63051.74Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
63061.74Schristosfi # test -n "$CONFIG_FILES"
63071.65Schristos
63081.74Schristos# Set up the scripts for CONFIG_HEADERS section.
63091.74Schristos# No need to generate them if there are no CONFIG_HEADERS.
63101.74Schristos# This happens for instance with `./config.status Makefile'.
63111.74Schristosif test -n "$CONFIG_HEADERS"; then
63121.74Schristoscat >"$ac_tmp/defines.awk" <<\_ACAWK ||
63131.74SchristosBEGIN {
63141.74Schristos_ACEOF
63151.74Schristos
63161.74Schristos# Transform confdefs.h into an awk script `defines.awk', embedded as
63171.74Schristos# here-document in config.status, that substitutes the proper values into
63181.74Schristos# config.h.in to produce config.h.
63191.74Schristos
63201.74Schristos# Create a delimiter string that does not exist in confdefs.h, to ease
63211.74Schristos# handling of long lines.
63221.74Schristosac_delim='%!_!# '
63231.74Schristosfor ac_last_try in false false :; do
63241.74Schristos  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
63251.74Schristos  if test -z "$ac_tt"; then
63261.74Schristos    break
63271.74Schristos  elif $ac_last_try; then
63281.74Schristos    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
63291.66Stsutsui  else
63301.74Schristos    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
63311.66Stsutsui  fi
63321.66Stsutsuidone
63331.66Stsutsui
63341.74Schristos# For the awk script, D is an array of macro values keyed by name,
63351.74Schristos# likewise P contains macro parameters if any.  Preserve backslash
63361.74Schristos# newline sequences.
63371.74Schristos
63381.74Schristosac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
63391.74Schristossed -n '
63401.74Schristoss/.\{148\}/&'"$ac_delim"'/g
63411.74Schristost rset
63421.74Schristos:rset
63431.74Schristoss/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
63441.74Schristost def
63451.74Schristosd
63461.74Schristos:def
63471.74Schristoss/\\$//
63481.74Schristost bsnl
63491.74Schristoss/["\\]/\\&/g
63501.74Schristoss/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
63511.74SchristosD["\1"]=" \3"/p
63521.74Schristoss/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
63531.74Schristosd
63541.74Schristos:bsnl
63551.74Schristoss/["\\]/\\&/g
63561.74Schristoss/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
63571.74SchristosD["\1"]=" \3\\\\\\n"\\/p
63581.74Schristost cont
63591.74Schristoss/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
63601.74Schristost cont
63611.74Schristosd
63621.74Schristos:cont
63631.74Schristosn
63641.74Schristoss/.\{148\}/&'"$ac_delim"'/g
63651.74Schristost clear
63661.74Schristos:clear
63671.74Schristoss/\\$//
63681.74Schristost bsnlc
63691.74Schristoss/["\\]/\\&/g; s/^/"/; s/$/"/p
63701.74Schristosd
63711.74Schristos:bsnlc
63721.74Schristoss/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
63731.74Schristosb cont
63741.74Schristos' <confdefs.h | sed '
63751.74Schristoss/'"$ac_delim"'/"\\\
63761.74Schristos"/g' >>$CONFIG_STATUS || ac_write_fail=1
63771.74Schristos
63781.74Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63791.74Schristos  for (key in D) D_is_set[key] = 1
63801.74Schristos  FS = ""
63811.74Schristos}
63821.74Schristos/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
63831.74Schristos  line = \$ 0
63841.74Schristos  split(line, arg, " ")
63851.74Schristos  if (arg[1] == "#") {
63861.74Schristos    defundef = arg[2]
63871.74Schristos    mac1 = arg[3]
63881.74Schristos  } else {
63891.74Schristos    defundef = substr(arg[1], 2)
63901.74Schristos    mac1 = arg[2]
63911.74Schristos  }
63921.74Schristos  split(mac1, mac2, "(") #)
63931.74Schristos  macro = mac2[1]
63941.74Schristos  prefix = substr(line, 1, index(line, defundef) - 1)
63951.74Schristos  if (D_is_set[macro]) {
63961.74Schristos    # Preserve the white space surrounding the "#".
63971.74Schristos    print prefix "define", macro P[macro] D[macro]
63981.74Schristos    next
63991.74Schristos  } else {
64001.74Schristos    # Replace #undef with comments.  This is necessary, for example,
64011.74Schristos    # in the case of _POSIX_SOURCE, which is predefined and required
64021.74Schristos    # on some systems where configure will not decide to define it.
64031.74Schristos    if (defundef == "undef") {
64041.74Schristos      print "/*", prefix defundef, macro, "*/"
64051.74Schristos      next
64061.74Schristos    }
64071.74Schristos  }
64081.74Schristos}
64091.74Schristos{ print }
64101.74Schristos_ACAWK
64111.74Schristos_ACEOF
64121.74Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64131.74Schristos  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
64141.74Schristosfi # test -n "$CONFIG_HEADERS"
64151.66Stsutsui
64161.1Stv
64171.74Schristoseval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
64181.74Schristosshift
64191.74Schristosfor ac_tag
64201.74Schristosdo
64211.74Schristos  case $ac_tag in
64221.74Schristos  :[FHLC]) ac_mode=$ac_tag; continue;;
64231.74Schristos  esac
64241.74Schristos  case $ac_mode$ac_tag in
64251.74Schristos  :[FHL]*:*);;
64261.74Schristos  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
64271.74Schristos  :[FH]-) ac_tag=-:-;;
64281.74Schristos  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
64291.1Stv  esac
64301.74Schristos  ac_save_IFS=$IFS
64311.74Schristos  IFS=:
64321.74Schristos  set x $ac_tag
64331.74Schristos  IFS=$ac_save_IFS
64341.74Schristos  shift
64351.74Schristos  ac_file=$1
64361.74Schristos  shift
64371.74Schristos
64381.74Schristos  case $ac_mode in
64391.74Schristos  :L) ac_source=$1;;
64401.74Schristos  :[FH])
64411.74Schristos    ac_file_inputs=
64421.74Schristos    for ac_f
64431.74Schristos    do
64441.74Schristos      case $ac_f in
64451.74Schristos      -) ac_f="$ac_tmp/stdin";;
64461.74Schristos      *) # Look for the file first in the build tree, then in the source tree
64471.74Schristos	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
64481.74Schristos	 # because $ac_f cannot contain `:'.
64491.74Schristos	 test -f "$ac_f" ||
64501.74Schristos	   case $ac_f in
64511.74Schristos	   [\\/$]*) false;;
64521.74Schristos	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
64531.74Schristos	   esac ||
64541.74Schristos	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
64551.74Schristos      esac
64561.74Schristos      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
64571.74Schristos      as_fn_append ac_file_inputs " '$ac_f'"
64581.74Schristos    done
64591.1Stv
64601.74Schristos    # Let's still pretend it is `configure' which instantiates (i.e., don't
64611.74Schristos    # use $as_me), people would be surprised to read:
64621.74Schristos    #    /* config.h.  Generated by config.status.  */
64631.74Schristos    configure_input='Generated from '`
64641.74Schristos	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
64651.74Schristos	`' by configure.'
64661.74Schristos    if test x"$ac_file" != x-; then
64671.74Schristos      configure_input="$ac_file.  $configure_input"
64681.74Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
64691.74Schristos$as_echo "$as_me: creating $ac_file" >&6;}
64701.74Schristos    fi
64711.74Schristos    # Neutralize special characters interpreted by sed in replacement strings.
64721.74Schristos    case $configure_input in #(
64731.74Schristos    *\&* | *\|* | *\\* )
64741.74Schristos       ac_sed_conf_input=`$as_echo "$configure_input" |
64751.74Schristos       sed 's/[\\\\&|]/\\\\&/g'`;; #(
64761.74Schristos    *) ac_sed_conf_input=$configure_input;;
64771.74Schristos    esac
64781.66Stsutsui
64791.74Schristos    case $ac_tag in
64801.74Schristos    *:-:* | *:-) cat >"$ac_tmp/stdin" \
64811.74Schristos      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
64821.74Schristos    esac
64831.66Stsutsui    ;;
64841.66Stsutsui  esac
64851.66Stsutsui
64861.74Schristos  ac_dir=`$as_dirname -- "$ac_file" ||
64871.74Schristos$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64881.74Schristos	 X"$ac_file" : 'X\(//\)[^/]' \| \
64891.74Schristos	 X"$ac_file" : 'X\(//\)$' \| \
64901.74Schristos	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
64911.74Schristos$as_echo X"$ac_file" |
64921.74Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
64931.74Schristos	    s//\1/
64941.74Schristos	    q
64951.74Schristos	  }
64961.74Schristos	  /^X\(\/\/\)[^/].*/{
64971.74Schristos	    s//\1/
64981.74Schristos	    q
64991.74Schristos	  }
65001.74Schristos	  /^X\(\/\/\)$/{
65011.74Schristos	    s//\1/
65021.74Schristos	    q
65031.74Schristos	  }
65041.74Schristos	  /^X\(\/\).*/{
65051.74Schristos	    s//\1/
65061.74Schristos	    q
65071.74Schristos	  }
65081.74Schristos	  s/.*/./; q'`
65091.74Schristos  as_dir="$ac_dir"; as_fn_mkdir_p
65101.74Schristos  ac_builddir=.
65111.74Schristos
65121.74Schristoscase "$ac_dir" in
65131.74Schristos.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
65141.74Schristos*)
65151.74Schristos  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
65161.74Schristos  # A ".." for each directory in $ac_dir_suffix.
65171.74Schristos  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
65181.74Schristos  case $ac_top_builddir_sub in
65191.74Schristos  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
65201.74Schristos  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
65211.74Schristos  esac ;;
65221.74Schristosesac
65231.74Schristosac_abs_top_builddir=$ac_pwd
65241.74Schristosac_abs_builddir=$ac_pwd$ac_dir_suffix
65251.74Schristos# for backward compatibility:
65261.74Schristosac_top_builddir=$ac_top_build_prefix
65271.74Schristos
65281.74Schristoscase $srcdir in
65291.74Schristos  .)  # We are building in place.
65301.74Schristos    ac_srcdir=.
65311.74Schristos    ac_top_srcdir=$ac_top_builddir_sub
65321.74Schristos    ac_abs_top_srcdir=$ac_pwd ;;
65331.74Schristos  [\\/]* | ?:[\\/]* )  # Absolute name.
65341.74Schristos    ac_srcdir=$srcdir$ac_dir_suffix;
65351.74Schristos    ac_top_srcdir=$srcdir
65361.74Schristos    ac_abs_top_srcdir=$srcdir ;;
65371.74Schristos  *) # Relative name.
65381.74Schristos    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
65391.74Schristos    ac_top_srcdir=$ac_top_build_prefix$srcdir
65401.74Schristos    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
65411.74Schristosesac
65421.74Schristosac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
65431.74Schristos
65441.74Schristos
65451.74Schristos  case $ac_mode in
65461.74Schristos  :F)
65471.74Schristos  #
65481.74Schristos  # CONFIG_FILE
65491.74Schristos  #
65501.74Schristos
65511.74Schristos_ACEOF
65521.74Schristos
65531.74Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
65541.74Schristos# If the template does not know about datarootdir, expand it.
65551.74Schristos# FIXME: This hack should be removed a few years after 2.60.
65561.74Schristosac_datarootdir_hack=; ac_datarootdir_seen=
65571.74Schristosac_sed_dataroot='
65581.74Schristos/datarootdir/ {
65591.74Schristos  p
65601.74Schristos  q
65611.74Schristos}
65621.74Schristos/@datadir@/p
65631.74Schristos/@docdir@/p
65641.74Schristos/@infodir@/p
65651.74Schristos/@localedir@/p
65661.74Schristos/@mandir@/p'
65671.74Schristoscase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
65681.74Schristos*datarootdir*) ac_datarootdir_seen=yes;;
65691.74Schristos*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
65701.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
65711.74Schristos$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
65721.74Schristos_ACEOF
65731.74Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65741.74Schristos  ac_datarootdir_hack='
65751.74Schristos  s&@datadir@&$datadir&g
65761.74Schristos  s&@docdir@&$docdir&g
65771.74Schristos  s&@infodir@&$infodir&g
65781.74Schristos  s&@localedir@&$localedir&g
65791.74Schristos  s&@mandir@&$mandir&g
65801.74Schristos  s&\\\${datarootdir}&$datarootdir&g' ;;
65811.74Schristosesac
65821.74Schristos_ACEOF
65831.74Schristos
65841.74Schristos# Neutralize VPATH when `$srcdir' = `.'.
65851.74Schristos# Shell code in configure.ac might set extrasub.
65861.74Schristos# FIXME: do we really want to maintain this feature?
65871.74Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65881.74Schristosac_sed_extra="$ac_vpsub
65891.74Schristos$extrasub
65901.74Schristos_ACEOF
65911.74Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
65921.74Schristos:t
65931.74Schristos/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
65941.74Schristoss|@configure_input@|$ac_sed_conf_input|;t t
65951.74Schristoss&@top_builddir@&$ac_top_builddir_sub&;t t
65961.74Schristoss&@top_build_prefix@&$ac_top_build_prefix&;t t
65971.74Schristoss&@srcdir@&$ac_srcdir&;t t
65981.74Schristoss&@abs_srcdir@&$ac_abs_srcdir&;t t
65991.74Schristoss&@top_srcdir@&$ac_top_srcdir&;t t
66001.74Schristoss&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
66011.74Schristoss&@builddir@&$ac_builddir&;t t
66021.74Schristoss&@abs_builddir@&$ac_abs_builddir&;t t
66031.74Schristoss&@abs_top_builddir@&$ac_abs_top_builddir&;t t
66041.74Schristos$ac_datarootdir_hack
66051.74Schristos"
66061.74Schristoseval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
66071.74Schristos  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
66081.74Schristos
66091.74Schristostest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
66101.74Schristos  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
66111.74Schristos  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
66121.74Schristos      "$ac_tmp/out"`; test -z "$ac_out"; } &&
66131.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
66141.74Schristoswhich seems to be undefined.  Please make sure it is defined" >&5
66151.74Schristos$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
66161.74Schristoswhich seems to be undefined.  Please make sure it is defined" >&2;}
66171.74Schristos
66181.74Schristos  rm -f "$ac_tmp/stdin"
66191.74Schristos  case $ac_file in
66201.74Schristos  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
66211.74Schristos  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
66221.74Schristos  esac \
66231.74Schristos  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
66241.74Schristos ;;
66251.74Schristos  :H)
66261.74Schristos  #
66271.74Schristos  # CONFIG_HEADER
66281.74Schristos  #
66291.74Schristos  if test x"$ac_file" != x-; then
66301.74Schristos    {
66311.74Schristos      $as_echo "/* $configure_input  */" \
66321.74Schristos      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
66331.74Schristos    } >"$ac_tmp/config.h" \
66341.74Schristos      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
66351.74Schristos    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
66361.74Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
66371.74Schristos$as_echo "$as_me: $ac_file is unchanged" >&6;}
66381.74Schristos    else
66391.74Schristos      rm -f "$ac_file"
66401.74Schristos      mv "$ac_tmp/config.h" "$ac_file" \
66411.74Schristos	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
66421.1Stv    fi
66431.1Stv  else
66441.74Schristos    $as_echo "/* $configure_input  */" \
66451.74Schristos      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
66461.74Schristos      || as_fn_error $? "could not create -" "$LINENO" 5
66471.1Stv  fi
66481.74Schristos ;;
66491.74Schristos
66501.74Schristos
66511.74Schristos  esac
66521.74Schristos
66531.74Schristosdone # for ac_tag
66541.1Stv
66551.1Stv
66561.74Schristosas_fn_exit 0
66571.74Schristos_ACEOF
66581.1Stvac_clean_files=$ac_clean_files_save
66591.1Stv
66601.74Schristostest $ac_write_fail = 0 ||
66611.74Schristos  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
66621.74Schristos
66631.74Schristos
66641.1Stv# configure is writing to config.log, and then calls config.status.
66651.1Stv# config.status does its own redirection, appending to config.log.
66661.1Stv# Unfortunately, on DOS this fails, as config.log is still kept open
66671.1Stv# by configure, so config.status won't be able to write to it; its
66681.1Stv# output is simply discarded.  So we exec the FD to /dev/null,
66691.1Stv# effectively closing config.log, so it can be properly (re)opened and
66701.1Stv# appended to by config.status.  When coming back to configure, we
66711.1Stv# need to make the FD available again.
66721.1Stvif test "$no_create" != yes; then
66731.1Stv  ac_cs_success=:
66741.74Schristos  ac_config_status_args=
66751.74Schristos  test "$silent" = yes &&
66761.74Schristos    ac_config_status_args="$ac_config_status_args --quiet"
66771.1Stv  exec 5>/dev/null
66781.74Schristos  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
66791.1Stv  exec 5>>config.log
66801.1Stv  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
66811.1Stv  # would make configure fail if this is the last instruction.
66821.74Schristos  $ac_cs_success || as_fn_exit 1
66831.74Schristosfi
66841.74Schristosif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
66851.74Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
66861.74Schristos$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
66871.1Stvfi
66881.1Stv
6689