xref: /freebsd/contrib/bmake/configure (revision 226192822cddc30cacecd55bccb48f39c653058c)
13955d011SMarcel Moolenaar#! /bin/sh
23955d011SMarcel Moolenaar# Guess values for system-dependent variables and create Makefiles.
3*22619282SSimon J. Gerraty# Generated by GNU Autoconf 2.72 for bmake 20240711.
43955d011SMarcel Moolenaar#
53955d011SMarcel Moolenaar# Report bugs to <sjg@NetBSD.org>.
63955d011SMarcel Moolenaar#
749caa483SSimon J. Gerraty#
8*22619282SSimon J. Gerraty# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
94fde40d9SSimon J. Gerraty# Inc.
1049caa483SSimon J. Gerraty#
113955d011SMarcel Moolenaar#
123955d011SMarcel Moolenaar# This configure script is free software; the Free Software Foundation
133955d011SMarcel Moolenaar# gives unlimited permission to copy, distribute and modify it.
143955d011SMarcel Moolenaar## -------------------- ##
153955d011SMarcel Moolenaar## M4sh Initialization. ##
163955d011SMarcel Moolenaar## -------------------- ##
173955d011SMarcel Moolenaar
183955d011SMarcel Moolenaar# Be more Bourne compatible
193955d011SMarcel MoolenaarDUALCASE=1; export DUALCASE # for MKS sh
204fde40d9SSimon J. Gerratyif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
214fde40d9SSimon J. Gerratythen :
223955d011SMarcel Moolenaar  emulate sh
233955d011SMarcel Moolenaar  NULLCMD=:
243955d011SMarcel Moolenaar  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
253955d011SMarcel Moolenaar  # is contrary to our usage.  Disable this feature.
263955d011SMarcel Moolenaar  alias -g '${1+"$@"}'='"$@"'
273955d011SMarcel Moolenaar  setopt NO_GLOB_SUBST
28*22619282SSimon J. Gerratyelse case e in #(
29*22619282SSimon J. Gerraty  e) case `(set -o) 2>/dev/null` in #(
303955d011SMarcel Moolenaar  *posix*) :
313955d011SMarcel Moolenaar    set -o posix ;; #(
323955d011SMarcel Moolenaar  *) :
333955d011SMarcel Moolenaar     ;;
34*22619282SSimon J. Gerratyesac ;;
353955d011SMarcel Moolenaaresac
363955d011SMarcel Moolenaarfi
373955d011SMarcel Moolenaar
383955d011SMarcel Moolenaar
394fde40d9SSimon J. Gerraty
404fde40d9SSimon J. Gerraty# Reset variables that may have inherited troublesome values from
414fde40d9SSimon J. Gerraty# the environment.
424fde40d9SSimon J. Gerraty
434fde40d9SSimon J. Gerraty# IFS needs to be set, to space, tab, and newline, in precisely that order.
444fde40d9SSimon J. Gerraty# (If _AS_PATH_WALK were called with IFS unset, it would have the
454fde40d9SSimon J. Gerraty# side effect of setting IFS to empty, thus disabling word splitting.)
464fde40d9SSimon J. Gerraty# Quoting is to prevent editors from complaining about space-tab.
473955d011SMarcel Moolenaaras_nl='
483955d011SMarcel Moolenaar'
493955d011SMarcel Moolenaarexport as_nl
504fde40d9SSimon J. GerratyIFS=" ""	$as_nl"
514fde40d9SSimon J. Gerraty
524fde40d9SSimon J. GerratyPS1='$ '
534fde40d9SSimon J. GerratyPS2='> '
544fde40d9SSimon J. GerratyPS4='+ '
554fde40d9SSimon J. Gerraty
564fde40d9SSimon J. Gerraty# Ensure predictable behavior from utilities with locale-dependent output.
574fde40d9SSimon J. GerratyLC_ALL=C
584fde40d9SSimon J. Gerratyexport LC_ALL
594fde40d9SSimon J. GerratyLANGUAGE=C
604fde40d9SSimon J. Gerratyexport LANGUAGE
614fde40d9SSimon J. Gerraty
624fde40d9SSimon J. Gerraty# We cannot yet rely on "unset" to work, but we need these variables
634fde40d9SSimon J. Gerraty# to be unset--not just set to an empty or harmless value--now, to
644fde40d9SSimon J. Gerraty# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
654fde40d9SSimon J. Gerraty# also avoids known problems related to "unset" and subshell syntax
664fde40d9SSimon J. Gerraty# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
674fde40d9SSimon J. Gerratyfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
684fde40d9SSimon J. Gerratydo eval test \${$as_var+y} \
694fde40d9SSimon J. Gerraty  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
704fde40d9SSimon J. Gerratydone
714fde40d9SSimon J. Gerraty
724fde40d9SSimon J. Gerraty# Ensure that fds 0, 1, and 2 are open.
734fde40d9SSimon J. Gerratyif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
744fde40d9SSimon J. Gerratyif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
754fde40d9SSimon J. Gerratyif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
763955d011SMarcel Moolenaar
773955d011SMarcel Moolenaar# The user is always right.
784fde40d9SSimon J. Gerratyif ${PATH_SEPARATOR+false} :; then
793955d011SMarcel Moolenaar  PATH_SEPARATOR=:
803955d011SMarcel Moolenaar  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
813955d011SMarcel Moolenaar    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
823955d011SMarcel Moolenaar      PATH_SEPARATOR=';'
833955d011SMarcel Moolenaar  }
843955d011SMarcel Moolenaarfi
853955d011SMarcel Moolenaar
863955d011SMarcel Moolenaar
873955d011SMarcel Moolenaar# Find who we are.  Look in the path if we contain no directory separator.
8849caa483SSimon J. Gerratyas_myself=
893955d011SMarcel Moolenaarcase $0 in #((
903955d011SMarcel Moolenaar  *[\\/]* ) as_myself=$0 ;;
913955d011SMarcel Moolenaar  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
923955d011SMarcel Moolenaarfor as_dir in $PATH
933955d011SMarcel Moolenaardo
943955d011SMarcel Moolenaar  IFS=$as_save_IFS
954fde40d9SSimon J. Gerraty  case $as_dir in #(((
964fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
974fde40d9SSimon J. Gerraty    */) ;;
984fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
994fde40d9SSimon J. Gerraty  esac
1004fde40d9SSimon J. Gerraty    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1013955d011SMarcel Moolenaar  done
1023955d011SMarcel MoolenaarIFS=$as_save_IFS
1033955d011SMarcel Moolenaar
1043955d011SMarcel Moolenaar     ;;
1053955d011SMarcel Moolenaaresac
106*22619282SSimon J. Gerraty# We did not find ourselves, most probably we were run as 'sh COMMAND'
1073955d011SMarcel Moolenaar# in which case we are not to be found in the path.
1083955d011SMarcel Moolenaarif test "x$as_myself" = x; then
1093955d011SMarcel Moolenaar  as_myself=$0
1103955d011SMarcel Moolenaarfi
1113955d011SMarcel Moolenaarif test ! -f "$as_myself"; then
1124fde40d9SSimon J. Gerraty  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1133955d011SMarcel Moolenaar  exit 1
1143955d011SMarcel Moolenaarfi
1153955d011SMarcel Moolenaar
1163955d011SMarcel Moolenaar
11749caa483SSimon J. Gerraty# Use a proper internal environment variable to ensure we don't fall
11849caa483SSimon J. Gerraty  # into an infinite loop, continuously re-executing ourselves.
11949caa483SSimon J. Gerraty  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
12049caa483SSimon J. Gerraty    _as_can_reexec=no; export _as_can_reexec;
12149caa483SSimon J. Gerraty    # We cannot yet assume a decent shell, so we have to provide a
12249caa483SSimon J. Gerraty# neutralization value for shells without unset; and this also
12349caa483SSimon J. Gerraty# works around shells that cannot unset nonexistent variables.
12449caa483SSimon J. Gerraty# Preserve -v and -x to the replacement shell.
12549caa483SSimon J. GerratyBASH_ENV=/dev/null
12649caa483SSimon J. GerratyENV=/dev/null
12749caa483SSimon J. Gerraty(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
12849caa483SSimon J. Gerratycase $- in # ((((
12949caa483SSimon J. Gerraty  *v*x* | *x*v* ) as_opts=-vx ;;
13049caa483SSimon J. Gerraty  *v* ) as_opts=-v ;;
13149caa483SSimon J. Gerraty  *x* ) as_opts=-x ;;
13249caa483SSimon J. Gerraty  * ) as_opts= ;;
13349caa483SSimon J. Gerratyesac
13449caa483SSimon J. Gerratyexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
13549caa483SSimon J. Gerraty# Admittedly, this is quite paranoid, since all the known shells bail
136*22619282SSimon J. Gerraty# out after a failed 'exec'.
1374fde40d9SSimon J. Gerratyprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1384fde40d9SSimon J. Gerratyexit 255
13949caa483SSimon J. Gerraty  fi
14049caa483SSimon J. Gerraty  # We don't want this to propagate to other subprocesses.
14149caa483SSimon J. Gerraty          { _as_can_reexec=; unset _as_can_reexec;}
1423955d011SMarcel Moolenaarif test "x$CONFIG_SHELL" = x; then
143*22619282SSimon J. Gerraty  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
1444fde40d9SSimon J. Gerratythen :
1453955d011SMarcel Moolenaar  emulate sh
1463955d011SMarcel Moolenaar  NULLCMD=:
1473955d011SMarcel Moolenaar  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1483955d011SMarcel Moolenaar  # is contrary to our usage.  Disable this feature.
1493955d011SMarcel Moolenaar  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1503955d011SMarcel Moolenaar  setopt NO_GLOB_SUBST
151*22619282SSimon J. Gerratyelse case e in #(
152*22619282SSimon J. Gerraty  e) case \`(set -o) 2>/dev/null\` in #(
1533955d011SMarcel Moolenaar  *posix*) :
1543955d011SMarcel Moolenaar    set -o posix ;; #(
1553955d011SMarcel Moolenaar  *) :
1563955d011SMarcel Moolenaar     ;;
157*22619282SSimon J. Gerratyesac ;;
1583955d011SMarcel Moolenaaresac
1593955d011SMarcel Moolenaarfi
1603955d011SMarcel Moolenaar"
1613955d011SMarcel Moolenaar  as_required="as_fn_return () { (exit \$1); }
1623955d011SMarcel Moolenaaras_fn_success () { as_fn_return 0; }
1633955d011SMarcel Moolenaaras_fn_failure () { as_fn_return 1; }
1643955d011SMarcel Moolenaaras_fn_ret_success () { return 0; }
1653955d011SMarcel Moolenaaras_fn_ret_failure () { return 1; }
1663955d011SMarcel Moolenaar
1673955d011SMarcel Moolenaarexitcode=0
1683955d011SMarcel Moolenaaras_fn_success || { exitcode=1; echo as_fn_success failed.; }
1693955d011SMarcel Moolenaaras_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1703955d011SMarcel Moolenaaras_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1713955d011SMarcel Moolenaaras_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1724fde40d9SSimon J. Gerratyif ( set x; as_fn_ret_success y && test x = \"\$1\" )
1734fde40d9SSimon J. Gerratythen :
1743955d011SMarcel Moolenaar
175*22619282SSimon J. Gerratyelse case e in #(
176*22619282SSimon J. Gerraty  e) exitcode=1; echo positional parameters were not saved. ;;
177*22619282SSimon J. Gerratyesac
1783955d011SMarcel Moolenaarfi
17949caa483SSimon J. Gerratytest x\$exitcode = x0 || exit 1
1804fde40d9SSimon J. Gerratyblah=\$(echo \$(echo blah))
1814fde40d9SSimon J. Gerratytest x\"\$blah\" = xblah || exit 1
18249caa483SSimon J. Gerratytest -x / || exit 1"
1833955d011SMarcel Moolenaar  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1843955d011SMarcel Moolenaar  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1853955d011SMarcel Moolenaar  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1864fde40d9SSimon J. Gerraty  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
1874fde40d9SSimon J. Gerraty  if (eval "$as_required") 2>/dev/null
1884fde40d9SSimon J. Gerratythen :
1893955d011SMarcel Moolenaar  as_have_required=yes
190*22619282SSimon J. Gerratyelse case e in #(
191*22619282SSimon J. Gerraty  e) as_have_required=no ;;
192*22619282SSimon J. Gerratyesac
1933955d011SMarcel Moolenaarfi
1944fde40d9SSimon J. Gerraty  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
1954fde40d9SSimon J. Gerratythen :
1963955d011SMarcel Moolenaar
197*22619282SSimon J. Gerratyelse case e in #(
198*22619282SSimon J. Gerraty  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993955d011SMarcel Moolenaaras_found=false
2003955d011SMarcel Moolenaarfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2013955d011SMarcel Moolenaardo
2023955d011SMarcel Moolenaar  IFS=$as_save_IFS
2034fde40d9SSimon J. Gerraty  case $as_dir in #(((
2044fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
2054fde40d9SSimon J. Gerraty    */) ;;
2064fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
2074fde40d9SSimon J. Gerraty  esac
2083955d011SMarcel Moolenaar  as_found=:
2093955d011SMarcel Moolenaar  case $as_dir in #(
2103955d011SMarcel Moolenaar	 /*)
2113955d011SMarcel Moolenaar	   for as_base in sh bash ksh sh5; do
2123955d011SMarcel Moolenaar	     # Try only shells that exist, to save several forks.
2134fde40d9SSimon J. Gerraty	     as_shell=$as_dir$as_base
2143955d011SMarcel Moolenaar	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2154fde40d9SSimon J. Gerraty		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
2164fde40d9SSimon J. Gerratythen :
2173955d011SMarcel Moolenaar  CONFIG_SHELL=$as_shell as_have_required=yes
2184fde40d9SSimon J. Gerraty		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
2194fde40d9SSimon J. Gerratythen :
2203955d011SMarcel Moolenaar  break 2
2213955d011SMarcel Moolenaarfi
2223955d011SMarcel Moolenaarfi
2233955d011SMarcel Moolenaar	   done;;
2243955d011SMarcel Moolenaar       esac
2253955d011SMarcel Moolenaar  as_found=false
2263955d011SMarcel Moolenaardone
2273955d011SMarcel MoolenaarIFS=$as_save_IFS
2284fde40d9SSimon J. Gerratyif $as_found
2294fde40d9SSimon J. Gerratythen :
2304fde40d9SSimon J. Gerraty
231*22619282SSimon J. Gerratyelse case e in #(
232*22619282SSimon J. Gerraty  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2334fde40d9SSimon J. Gerraty	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
2344fde40d9SSimon J. Gerratythen :
2354fde40d9SSimon J. Gerraty  CONFIG_SHELL=$SHELL as_have_required=yes
236*22619282SSimon J. Gerratyfi ;;
237*22619282SSimon J. Gerratyesac
2384fde40d9SSimon J. Gerratyfi
2393955d011SMarcel Moolenaar
2403955d011SMarcel Moolenaar
2414fde40d9SSimon J. Gerraty      if test "x$CONFIG_SHELL" != x
2424fde40d9SSimon J. Gerratythen :
24349caa483SSimon J. Gerraty  export CONFIG_SHELL
2443955d011SMarcel Moolenaar             # We cannot yet assume a decent shell, so we have to provide a
2453955d011SMarcel Moolenaar# neutralization value for shells without unset; and this also
2463955d011SMarcel Moolenaar# works around shells that cannot unset nonexistent variables.
24749caa483SSimon J. Gerraty# Preserve -v and -x to the replacement shell.
2483955d011SMarcel MoolenaarBASH_ENV=/dev/null
2493955d011SMarcel MoolenaarENV=/dev/null
2503955d011SMarcel Moolenaar(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
25149caa483SSimon J. Gerratycase $- in # ((((
25249caa483SSimon J. Gerraty  *v*x* | *x*v* ) as_opts=-vx ;;
25349caa483SSimon J. Gerraty  *v* ) as_opts=-v ;;
25449caa483SSimon J. Gerraty  *x* ) as_opts=-x ;;
25549caa483SSimon J. Gerraty  * ) as_opts= ;;
25649caa483SSimon J. Gerratyesac
25749caa483SSimon J. Gerratyexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
25849caa483SSimon J. Gerraty# Admittedly, this is quite paranoid, since all the known shells bail
259*22619282SSimon J. Gerraty# out after a failed 'exec'.
2604fde40d9SSimon J. Gerratyprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
26149caa483SSimon J. Gerratyexit 255
2623955d011SMarcel Moolenaarfi
2633955d011SMarcel Moolenaar
2644fde40d9SSimon J. Gerraty    if test x$as_have_required = xno
2654fde40d9SSimon J. Gerratythen :
2664fde40d9SSimon J. Gerraty  printf "%s\n" "$0: This script requires a shell more modern than all"
2674fde40d9SSimon J. Gerraty  printf "%s\n" "$0: the shells that I found on your system."
2684fde40d9SSimon J. Gerraty  if test ${ZSH_VERSION+y} ; then
2694fde40d9SSimon J. Gerraty    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2704fde40d9SSimon J. Gerraty    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
2713955d011SMarcel Moolenaar  else
2724fde40d9SSimon J. Gerraty    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and sjg@NetBSD.org
2733955d011SMarcel Moolenaar$0: about your system, including any error possibly output
2743955d011SMarcel Moolenaar$0: before this message. Then install a modern shell, or
2753955d011SMarcel Moolenaar$0: manually run the script under such a shell if you do
2763955d011SMarcel Moolenaar$0: have one."
2773955d011SMarcel Moolenaar  fi
2783955d011SMarcel Moolenaar  exit 1
279*22619282SSimon J. Gerratyfi ;;
280*22619282SSimon J. Gerratyesac
2813955d011SMarcel Moolenaarfi
2823955d011SMarcel Moolenaarfi
2833955d011SMarcel MoolenaarSHELL=${CONFIG_SHELL-/bin/sh}
2843955d011SMarcel Moolenaarexport SHELL
2853955d011SMarcel Moolenaar# Unset more variables known to interfere with behavior of common tools.
2863955d011SMarcel MoolenaarCLICOLOR_FORCE= GREP_OPTIONS=
2873955d011SMarcel Moolenaarunset CLICOLOR_FORCE GREP_OPTIONS
2883955d011SMarcel Moolenaar
2893955d011SMarcel Moolenaar## --------------------- ##
2903955d011SMarcel Moolenaar## M4sh Shell Functions. ##
2913955d011SMarcel Moolenaar## --------------------- ##
2923955d011SMarcel Moolenaar# as_fn_unset VAR
2933955d011SMarcel Moolenaar# ---------------
2943955d011SMarcel Moolenaar# Portably unset VAR.
2953955d011SMarcel Moolenaaras_fn_unset ()
2963955d011SMarcel Moolenaar{
2973955d011SMarcel Moolenaar  { eval $1=; unset $1;}
2983955d011SMarcel Moolenaar}
2993955d011SMarcel Moolenaaras_unset=as_fn_unset
3003955d011SMarcel Moolenaar
3014fde40d9SSimon J. Gerraty
3023955d011SMarcel Moolenaar# as_fn_set_status STATUS
3033955d011SMarcel Moolenaar# -----------------------
3043955d011SMarcel Moolenaar# Set $? to STATUS, without forking.
3053955d011SMarcel Moolenaaras_fn_set_status ()
3063955d011SMarcel Moolenaar{
3073955d011SMarcel Moolenaar  return $1
3083955d011SMarcel Moolenaar} # as_fn_set_status
3093955d011SMarcel Moolenaar
3103955d011SMarcel Moolenaar# as_fn_exit STATUS
3113955d011SMarcel Moolenaar# -----------------
3123955d011SMarcel Moolenaar# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3133955d011SMarcel Moolenaaras_fn_exit ()
3143955d011SMarcel Moolenaar{
3153955d011SMarcel Moolenaar  set +e
3163955d011SMarcel Moolenaar  as_fn_set_status $1
3173955d011SMarcel Moolenaar  exit $1
3183955d011SMarcel Moolenaar} # as_fn_exit
3193955d011SMarcel Moolenaar
3203955d011SMarcel Moolenaar# as_fn_mkdir_p
3213955d011SMarcel Moolenaar# -------------
3223955d011SMarcel Moolenaar# Create "$as_dir" as a directory, including parents if necessary.
3233955d011SMarcel Moolenaaras_fn_mkdir_p ()
3243955d011SMarcel Moolenaar{
3253955d011SMarcel Moolenaar
3263955d011SMarcel Moolenaar  case $as_dir in #(
3273955d011SMarcel Moolenaar  -*) as_dir=./$as_dir;;
3283955d011SMarcel Moolenaar  esac
3293955d011SMarcel Moolenaar  test -d "$as_dir" || eval $as_mkdir_p || {
3303955d011SMarcel Moolenaar    as_dirs=
3313955d011SMarcel Moolenaar    while :; do
3323955d011SMarcel Moolenaar      case $as_dir in #(
3334fde40d9SSimon J. Gerraty      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3343955d011SMarcel Moolenaar      *) as_qdir=$as_dir;;
3353955d011SMarcel Moolenaar      esac
3363955d011SMarcel Moolenaar      as_dirs="'$as_qdir' $as_dirs"
3373955d011SMarcel Moolenaar      as_dir=`$as_dirname -- "$as_dir" ||
3383955d011SMarcel Moolenaar$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3393955d011SMarcel Moolenaar	 X"$as_dir" : 'X\(//\)[^/]' \| \
3403955d011SMarcel Moolenaar	 X"$as_dir" : 'X\(//\)$' \| \
3413955d011SMarcel Moolenaar	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3424fde40d9SSimon J. Gerratyprintf "%s\n" X"$as_dir" |
3433955d011SMarcel Moolenaar    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3443955d011SMarcel Moolenaar	    s//\1/
3453955d011SMarcel Moolenaar	    q
3463955d011SMarcel Moolenaar	  }
3473955d011SMarcel Moolenaar	  /^X\(\/\/\)[^/].*/{
3483955d011SMarcel Moolenaar	    s//\1/
3493955d011SMarcel Moolenaar	    q
3503955d011SMarcel Moolenaar	  }
3513955d011SMarcel Moolenaar	  /^X\(\/\/\)$/{
3523955d011SMarcel Moolenaar	    s//\1/
3533955d011SMarcel Moolenaar	    q
3543955d011SMarcel Moolenaar	  }
3553955d011SMarcel Moolenaar	  /^X\(\/\).*/{
3563955d011SMarcel Moolenaar	    s//\1/
3573955d011SMarcel Moolenaar	    q
3583955d011SMarcel Moolenaar	  }
3593955d011SMarcel Moolenaar	  s/.*/./; q'`
3603955d011SMarcel Moolenaar      test -d "$as_dir" && break
3613955d011SMarcel Moolenaar    done
3623955d011SMarcel Moolenaar    test -z "$as_dirs" || eval "mkdir $as_dirs"
36349caa483SSimon J. Gerraty  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3643955d011SMarcel Moolenaar
3653955d011SMarcel Moolenaar
3663955d011SMarcel Moolenaar} # as_fn_mkdir_p
36749caa483SSimon J. Gerraty
36849caa483SSimon J. Gerraty# as_fn_executable_p FILE
36949caa483SSimon J. Gerraty# -----------------------
37049caa483SSimon J. Gerraty# Test if FILE is an executable regular file.
37149caa483SSimon J. Gerratyas_fn_executable_p ()
37249caa483SSimon J. Gerraty{
37349caa483SSimon J. Gerraty  test -f "$1" && test -x "$1"
37449caa483SSimon J. Gerraty} # as_fn_executable_p
3753955d011SMarcel Moolenaar# as_fn_append VAR VALUE
3763955d011SMarcel Moolenaar# ----------------------
3773955d011SMarcel Moolenaar# Append the text in VALUE to the end of the definition contained in VAR. Take
3783955d011SMarcel Moolenaar# advantage of any shell optimizations that allow amortized linear growth over
3793955d011SMarcel Moolenaar# repeated appends, instead of the typical quadratic growth present in naive
3803955d011SMarcel Moolenaar# implementations.
3814fde40d9SSimon J. Gerratyif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3824fde40d9SSimon J. Gerratythen :
3833955d011SMarcel Moolenaar  eval 'as_fn_append ()
3843955d011SMarcel Moolenaar  {
3853955d011SMarcel Moolenaar    eval $1+=\$2
3863955d011SMarcel Moolenaar  }'
387*22619282SSimon J. Gerratyelse case e in #(
388*22619282SSimon J. Gerraty  e) as_fn_append ()
3893955d011SMarcel Moolenaar  {
3903955d011SMarcel Moolenaar    eval $1=\$$1\$2
391*22619282SSimon J. Gerraty  } ;;
392*22619282SSimon J. Gerratyesac
3933955d011SMarcel Moolenaarfi # as_fn_append
3943955d011SMarcel Moolenaar
3953955d011SMarcel Moolenaar# as_fn_arith ARG...
3963955d011SMarcel Moolenaar# ------------------
3973955d011SMarcel Moolenaar# Perform arithmetic evaluation on the ARGs, and store the result in the
3983955d011SMarcel Moolenaar# global $as_val. Take advantage of shells that can avoid forks. The arguments
3993955d011SMarcel Moolenaar# must be portable across $(()) and expr.
4004fde40d9SSimon J. Gerratyif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4014fde40d9SSimon J. Gerratythen :
4023955d011SMarcel Moolenaar  eval 'as_fn_arith ()
4033955d011SMarcel Moolenaar  {
4043955d011SMarcel Moolenaar    as_val=$(( $* ))
4053955d011SMarcel Moolenaar  }'
406*22619282SSimon J. Gerratyelse case e in #(
407*22619282SSimon J. Gerraty  e) as_fn_arith ()
4083955d011SMarcel Moolenaar  {
4093955d011SMarcel Moolenaar    as_val=`expr "$@" || test $? -eq 1`
410*22619282SSimon J. Gerraty  } ;;
411*22619282SSimon J. Gerratyesac
4123955d011SMarcel Moolenaarfi # as_fn_arith
4133955d011SMarcel Moolenaar
4143955d011SMarcel Moolenaar
41549caa483SSimon J. Gerraty# as_fn_error STATUS ERROR [LINENO LOG_FD]
41649caa483SSimon J. Gerraty# ----------------------------------------
4173955d011SMarcel Moolenaar# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4183955d011SMarcel Moolenaar# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41949caa483SSimon J. Gerraty# script with STATUS, using 1 if that was 0.
4203955d011SMarcel Moolenaaras_fn_error ()
4213955d011SMarcel Moolenaar{
42249caa483SSimon J. Gerraty  as_status=$1; test $as_status -eq 0 && as_status=1
42349caa483SSimon J. Gerraty  if test "$4"; then
42449caa483SSimon J. Gerraty    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4254fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4263955d011SMarcel Moolenaar  fi
4274fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me: error: $2" >&2
4283955d011SMarcel Moolenaar  as_fn_exit $as_status
4293955d011SMarcel Moolenaar} # as_fn_error
4303955d011SMarcel Moolenaar
4313955d011SMarcel Moolenaarif expr a : '\(a\)' >/dev/null 2>&1 &&
4323955d011SMarcel Moolenaar   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4333955d011SMarcel Moolenaar  as_expr=expr
4343955d011SMarcel Moolenaarelse
4353955d011SMarcel Moolenaar  as_expr=false
4363955d011SMarcel Moolenaarfi
4373955d011SMarcel Moolenaar
4383955d011SMarcel Moolenaarif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4393955d011SMarcel Moolenaar  as_basename=basename
4403955d011SMarcel Moolenaarelse
4413955d011SMarcel Moolenaar  as_basename=false
4423955d011SMarcel Moolenaarfi
4433955d011SMarcel Moolenaar
4443955d011SMarcel Moolenaarif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4453955d011SMarcel Moolenaar  as_dirname=dirname
4463955d011SMarcel Moolenaarelse
4473955d011SMarcel Moolenaar  as_dirname=false
4483955d011SMarcel Moolenaarfi
4493955d011SMarcel Moolenaar
4503955d011SMarcel Moolenaaras_me=`$as_basename -- "$0" ||
4513955d011SMarcel Moolenaar$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4523955d011SMarcel Moolenaar	 X"$0" : 'X\(//\)$' \| \
4533955d011SMarcel Moolenaar	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4544fde40d9SSimon J. Gerratyprintf "%s\n" X/"$0" |
4553955d011SMarcel Moolenaar    sed '/^.*\/\([^/][^/]*\)\/*$/{
4563955d011SMarcel Moolenaar	    s//\1/
4573955d011SMarcel Moolenaar	    q
4583955d011SMarcel Moolenaar	  }
4593955d011SMarcel Moolenaar	  /^X\/\(\/\/\)$/{
4603955d011SMarcel Moolenaar	    s//\1/
4613955d011SMarcel Moolenaar	    q
4623955d011SMarcel Moolenaar	  }
4633955d011SMarcel Moolenaar	  /^X\/\(\/\).*/{
4643955d011SMarcel Moolenaar	    s//\1/
4653955d011SMarcel Moolenaar	    q
4663955d011SMarcel Moolenaar	  }
4673955d011SMarcel Moolenaar	  s/.*/./; q'`
4683955d011SMarcel Moolenaar
4693955d011SMarcel Moolenaar# Avoid depending upon Character Ranges.
4703955d011SMarcel Moolenaaras_cr_letters='abcdefghijklmnopqrstuvwxyz'
4713955d011SMarcel Moolenaaras_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4723955d011SMarcel Moolenaaras_cr_Letters=$as_cr_letters$as_cr_LETTERS
4733955d011SMarcel Moolenaaras_cr_digits='0123456789'
4743955d011SMarcel Moolenaaras_cr_alnum=$as_cr_Letters$as_cr_digits
4753955d011SMarcel Moolenaar
4763955d011SMarcel Moolenaar
4773955d011SMarcel Moolenaar  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4783955d011SMarcel Moolenaar  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4793955d011SMarcel Moolenaar  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4803955d011SMarcel Moolenaar  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4813955d011SMarcel Moolenaar  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4823955d011SMarcel Moolenaar  sed -n '
4833955d011SMarcel Moolenaar    p
4843955d011SMarcel Moolenaar    /[$]LINENO/=
4853955d011SMarcel Moolenaar  ' <$as_myself |
4863955d011SMarcel Moolenaar    sed '
487*22619282SSimon J. Gerraty      t clear
488*22619282SSimon J. Gerraty      :clear
4893955d011SMarcel Moolenaar      s/[$]LINENO.*/&-/
4903955d011SMarcel Moolenaar      t lineno
4913955d011SMarcel Moolenaar      b
4923955d011SMarcel Moolenaar      :lineno
4933955d011SMarcel Moolenaar      N
4943955d011SMarcel Moolenaar      :loop
4953955d011SMarcel Moolenaar      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4963955d011SMarcel Moolenaar      t loop
4973955d011SMarcel Moolenaar      s/-\n.*//
4983955d011SMarcel Moolenaar    ' >$as_me.lineno &&
4993955d011SMarcel Moolenaar  chmod +x "$as_me.lineno" ||
5004fde40d9SSimon J. Gerraty    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5013955d011SMarcel Moolenaar
50249caa483SSimon J. Gerraty  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
50349caa483SSimon J. Gerraty  # already done that, so ensure we don't try to do so again and fall
50449caa483SSimon J. Gerraty  # in an infinite loop.  This has already happened in practice.
50549caa483SSimon J. Gerraty  _as_can_reexec=no; export _as_can_reexec
5063955d011SMarcel Moolenaar  # Don't try to exec as it changes $[0], causing all sort of problems
5073955d011SMarcel Moolenaar  # (the dirname of $[0] is not the place where we might find the
5083955d011SMarcel Moolenaar  # original and so on.  Autoconf is especially sensitive to this).
5093955d011SMarcel Moolenaar  . "./$as_me.lineno"
5103955d011SMarcel Moolenaar  # Exit status is that of the last command.
5113955d011SMarcel Moolenaar  exit
5123955d011SMarcel Moolenaar}
5133955d011SMarcel Moolenaar
5144fde40d9SSimon J. Gerraty
5154fde40d9SSimon J. Gerraty# Determine whether it's possible to make 'echo' print without a newline.
5164fde40d9SSimon J. Gerraty# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5174fde40d9SSimon J. Gerraty# for compatibility with existing Makefiles.
5183955d011SMarcel MoolenaarECHO_C= ECHO_N= ECHO_T=
5193955d011SMarcel Moolenaarcase `echo -n x` in #(((((
5203955d011SMarcel Moolenaar-n*)
5213955d011SMarcel Moolenaar  case `echo 'xy\c'` in
5223955d011SMarcel Moolenaar  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5233955d011SMarcel Moolenaar  xy)  ECHO_C='\c';;
5243955d011SMarcel Moolenaar  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5253955d011SMarcel Moolenaar       ECHO_T='	';;
5263955d011SMarcel Moolenaar  esac;;
5273955d011SMarcel Moolenaar*)
5283955d011SMarcel Moolenaar  ECHO_N='-n';;
5293955d011SMarcel Moolenaaresac
5303955d011SMarcel Moolenaar
5314fde40d9SSimon J. Gerraty# For backward compatibility with old third-party macros, we provide
5324fde40d9SSimon J. Gerraty# the shell variables $as_echo and $as_echo_n.  New code should use
5334fde40d9SSimon J. Gerraty# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5344fde40d9SSimon J. Gerratyas_echo='printf %s\n'
5354fde40d9SSimon J. Gerratyas_echo_n='printf %s'
5364fde40d9SSimon J. Gerraty
5373955d011SMarcel Moolenaarrm -f conf$$ conf$$.exe conf$$.file
5383955d011SMarcel Moolenaarif test -d conf$$.dir; then
5393955d011SMarcel Moolenaar  rm -f conf$$.dir/conf$$.file
5403955d011SMarcel Moolenaarelse
5413955d011SMarcel Moolenaar  rm -f conf$$.dir
5423955d011SMarcel Moolenaar  mkdir conf$$.dir 2>/dev/null
5433955d011SMarcel Moolenaarfi
5443955d011SMarcel Moolenaarif (echo >conf$$.file) 2>/dev/null; then
5453955d011SMarcel Moolenaar  if ln -s conf$$.file conf$$ 2>/dev/null; then
5463955d011SMarcel Moolenaar    as_ln_s='ln -s'
5473955d011SMarcel Moolenaar    # ... but there are two gotchas:
548*22619282SSimon J. Gerraty    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549*22619282SSimon J. Gerraty    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550*22619282SSimon J. Gerraty    # In both cases, we have to default to 'cp -pR'.
5513955d011SMarcel Moolenaar    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
55249caa483SSimon J. Gerraty      as_ln_s='cp -pR'
5533955d011SMarcel Moolenaar  elif ln conf$$.file conf$$ 2>/dev/null; then
5543955d011SMarcel Moolenaar    as_ln_s=ln
5553955d011SMarcel Moolenaar  else
55649caa483SSimon J. Gerraty    as_ln_s='cp -pR'
5573955d011SMarcel Moolenaar  fi
5583955d011SMarcel Moolenaarelse
55949caa483SSimon J. Gerraty  as_ln_s='cp -pR'
5603955d011SMarcel Moolenaarfi
5613955d011SMarcel Moolenaarrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5623955d011SMarcel Moolenaarrmdir conf$$.dir 2>/dev/null
5633955d011SMarcel Moolenaar
5643955d011SMarcel Moolenaarif mkdir -p . 2>/dev/null; then
5653955d011SMarcel Moolenaar  as_mkdir_p='mkdir -p "$as_dir"'
5663955d011SMarcel Moolenaarelse
5673955d011SMarcel Moolenaar  test -d ./-p && rmdir ./-p
5683955d011SMarcel Moolenaar  as_mkdir_p=false
5693955d011SMarcel Moolenaarfi
5703955d011SMarcel Moolenaar
5713955d011SMarcel Moolenaaras_test_x='test -x'
57249caa483SSimon J. Gerratyas_executable_p=as_fn_executable_p
5733955d011SMarcel Moolenaar
5743955d011SMarcel Moolenaar# Sed expression to map a string onto a valid CPP name.
575*22619282SSimon J. Gerratyas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576*22619282SSimon J. Gerratyas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
5773955d011SMarcel Moolenaar
5783955d011SMarcel Moolenaar# Sed expression to map a string onto a valid variable name.
579*22619282SSimon J. Gerratyas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580*22619282SSimon J. Gerratyas_tr_sh="eval sed '$as_sed_sh'" # deprecated
5813955d011SMarcel Moolenaar
5823955d011SMarcel Moolenaar
58349caa483SSimon J. Gerratytest -n "$DJDIR" || exec 7<&0 </dev/null
58449caa483SSimon J. Gerratyexec 6>&1
5853955d011SMarcel Moolenaar
5863955d011SMarcel Moolenaar# Name of the host.
58749caa483SSimon J. Gerraty# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5883955d011SMarcel Moolenaar# so uname gets run too.
5893955d011SMarcel Moolenaarac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5903955d011SMarcel Moolenaar
5913955d011SMarcel Moolenaar#
5923955d011SMarcel Moolenaar# Initializations.
5933955d011SMarcel Moolenaar#
5943955d011SMarcel Moolenaarac_default_prefix=/usr/local
5953955d011SMarcel Moolenaarac_clean_files=
5963955d011SMarcel Moolenaarac_config_libobj_dir=.
5973955d011SMarcel MoolenaarLIBOBJS=
5983955d011SMarcel Moolenaarcross_compiling=no
5993955d011SMarcel Moolenaarsubdirs=
6003955d011SMarcel MoolenaarMFLAGS=
6013955d011SMarcel MoolenaarMAKEFLAGS=
6023955d011SMarcel Moolenaar
6033955d011SMarcel Moolenaar# Identity of this package.
6043955d011SMarcel MoolenaarPACKAGE_NAME='bmake'
6053955d011SMarcel MoolenaarPACKAGE_TARNAME='bmake'
606*22619282SSimon J. GerratyPACKAGE_VERSION='20240711'
607*22619282SSimon J. GerratyPACKAGE_STRING='bmake 20240711'
6083955d011SMarcel MoolenaarPACKAGE_BUGREPORT='sjg@NetBSD.org'
6093955d011SMarcel MoolenaarPACKAGE_URL=''
6103955d011SMarcel Moolenaar
6113955d011SMarcel Moolenaar# Factoring default headers for most tests.
6123955d011SMarcel Moolenaarac_includes_default="\
6133955d011SMarcel Moolenaar#include <stddef.h>
6144fde40d9SSimon J. Gerraty#ifdef HAVE_STDIO_H
6154fde40d9SSimon J. Gerraty# include <stdio.h>
6164fde40d9SSimon J. Gerraty#endif
6173955d011SMarcel Moolenaar#ifdef HAVE_STDLIB_H
6183955d011SMarcel Moolenaar# include <stdlib.h>
6193955d011SMarcel Moolenaar#endif
6203955d011SMarcel Moolenaar#ifdef HAVE_STRING_H
6213955d011SMarcel Moolenaar# include <string.h>
6223955d011SMarcel Moolenaar#endif
6233955d011SMarcel Moolenaar#ifdef HAVE_INTTYPES_H
6243955d011SMarcel Moolenaar# include <inttypes.h>
6253955d011SMarcel Moolenaar#endif
6263955d011SMarcel Moolenaar#ifdef HAVE_STDINT_H
6273955d011SMarcel Moolenaar# include <stdint.h>
6283955d011SMarcel Moolenaar#endif
6294fde40d9SSimon J. Gerraty#ifdef HAVE_STRINGS_H
6304fde40d9SSimon J. Gerraty# include <strings.h>
6314fde40d9SSimon J. Gerraty#endif
6324fde40d9SSimon J. Gerraty#ifdef HAVE_SYS_TYPES_H
6334fde40d9SSimon J. Gerraty# include <sys/types.h>
6344fde40d9SSimon J. Gerraty#endif
6354fde40d9SSimon J. Gerraty#ifdef HAVE_SYS_STAT_H
6364fde40d9SSimon J. Gerraty# include <sys/stat.h>
6374fde40d9SSimon J. Gerraty#endif
6383955d011SMarcel Moolenaar#ifdef HAVE_UNISTD_H
6393955d011SMarcel Moolenaar# include <unistd.h>
6403955d011SMarcel Moolenaar#endif"
6413955d011SMarcel Moolenaar
6424fde40d9SSimon J. Gerratyac_header_c_list=
6434fde40d9SSimon J. Gerratyac_func_c_list=
6443955d011SMarcel Moolenaarac_subst_vars='LTLIBOBJS
64512904384SSimon J. GerratyUTC_1
646e22fef7dSSimon J. Gerraty_MAKE_VERSION
6473955d011SMarcel Moolenaarfilemon_h
64849caa483SSimon J. Gerratyuse_filemon
6493955d011SMarcel Moolenaaruse_meta
6503955d011SMarcel Moolenaardiff_u
65112904384SSimon J. Gerratydiff
6523955d011SMarcel MoolenaarGCC
6533955d011SMarcel MoolenaarINSTALL
6543955d011SMarcel Moolenaardefault_sys_path
6553955d011SMarcel Moolenaarmksrc
656e2eeea75SSimon J. Gerratyforce_machine_arch
6573955d011SMarcel Moolenaarmachine_arch
6583955d011SMarcel Moolenaarforce_machine
6593955d011SMarcel Moolenaarmachine
660548bfc56SSimon J. Gerratyforce_make_os
661548bfc56SSimon J. Gerratymake_os
6624fde40d9SSimon J. Gerratyegrep
6633955d011SMarcel MoolenaarLIBOBJS
6640dede8b0SSimon J. Gerratybmake_path_max
6653955d011SMarcel Moolenaarac_exe_suffix
6663955d011SMarcel MoolenaarINSTALL_DATA
6673955d011SMarcel MoolenaarINSTALL_SCRIPT
6683955d011SMarcel MoolenaarINSTALL_PROGRAM
6693955d011SMarcel MoolenaarOBJEXT
6703955d011SMarcel MoolenaarEXEEXT
6713955d011SMarcel Moolenaarac_ct_CC
6723955d011SMarcel MoolenaarCPPFLAGS
6733955d011SMarcel MoolenaarLDFLAGS
6743955d011SMarcel MoolenaarCFLAGS
6753955d011SMarcel MoolenaarCC
6763955d011SMarcel Moolenaartarget_alias
6773955d011SMarcel Moolenaarhost_alias
6783955d011SMarcel Moolenaarbuild_alias
6793955d011SMarcel MoolenaarLIBS
6803955d011SMarcel MoolenaarECHO_T
6813955d011SMarcel MoolenaarECHO_N
6823955d011SMarcel MoolenaarECHO_C
6833955d011SMarcel MoolenaarDEFS
6843955d011SMarcel Moolenaarmandir
6853955d011SMarcel Moolenaarlocaledir
6863955d011SMarcel Moolenaarlibdir
6873955d011SMarcel Moolenaarpsdir
6883955d011SMarcel Moolenaarpdfdir
6893955d011SMarcel Moolenaardvidir
6903955d011SMarcel Moolenaarhtmldir
6913955d011SMarcel Moolenaarinfodir
6923955d011SMarcel Moolenaardocdir
6933955d011SMarcel Moolenaaroldincludedir
6943955d011SMarcel Moolenaarincludedir
6954fde40d9SSimon J. Gerratyrunstatedir
6963955d011SMarcel Moolenaarlocalstatedir
6973955d011SMarcel Moolenaarsharedstatedir
6983955d011SMarcel Moolenaarsysconfdir
6993955d011SMarcel Moolenaardatadir
7003955d011SMarcel Moolenaardatarootdir
7013955d011SMarcel Moolenaarlibexecdir
7023955d011SMarcel Moolenaarsbindir
7033955d011SMarcel Moolenaarbindir
7043955d011SMarcel Moolenaarprogram_transform_name
7053955d011SMarcel Moolenaarprefix
7063955d011SMarcel Moolenaarexec_prefix
7073955d011SMarcel MoolenaarPACKAGE_URL
7083955d011SMarcel MoolenaarPACKAGE_BUGREPORT
7093955d011SMarcel MoolenaarPACKAGE_STRING
7103955d011SMarcel MoolenaarPACKAGE_VERSION
7113955d011SMarcel MoolenaarPACKAGE_TARNAME
7123955d011SMarcel MoolenaarPACKAGE_NAME
7133955d011SMarcel MoolenaarPATH_SEPARATOR
7143955d011SMarcel MoolenaarSHELL'
7153955d011SMarcel Moolenaarac_subst_files=''
7163955d011SMarcel Moolenaarac_user_opts='
7173955d011SMarcel Moolenaarenable_option_checking
7183955d011SMarcel Moolenaarwith_defshell
71949caa483SSimon J. Gerratywith_makefile
7203955d011SMarcel Moolenaarwith_meta
7213955d011SMarcel Moolenaarwith_filemon
722d5e0a182SSimon J. Gerratywith_bmake_strftime
7233955d011SMarcel Moolenaarwith_machine
7243955d011SMarcel Moolenaarwith_force_machine
7253955d011SMarcel Moolenaarwith_force_machine_arch
7263955d011SMarcel Moolenaarwith_machine_arch
7273955d011SMarcel Moolenaarwith_default_sys_path
7283955d011SMarcel Moolenaarwith_path_objdirprefix
7293955d011SMarcel Moolenaarenable_pwd_override
7303955d011SMarcel Moolenaarenable_check_make_chdir
7313955d011SMarcel Moolenaarwith_mksrc
7323955d011SMarcel Moolenaar'
7333955d011SMarcel Moolenaar      ac_precious_vars='build_alias
7343955d011SMarcel Moolenaarhost_alias
7353955d011SMarcel Moolenaartarget_alias
7363955d011SMarcel MoolenaarCC
7373955d011SMarcel MoolenaarCFLAGS
7383955d011SMarcel MoolenaarLDFLAGS
7393955d011SMarcel MoolenaarLIBS
7404fde40d9SSimon J. GerratyCPPFLAGS'
7413955d011SMarcel Moolenaar
7423955d011SMarcel Moolenaar
7433955d011SMarcel Moolenaar# Initialize some variables set by options.
7443955d011SMarcel Moolenaarac_init_help=
7453955d011SMarcel Moolenaarac_init_version=false
7463955d011SMarcel Moolenaarac_unrecognized_opts=
7473955d011SMarcel Moolenaarac_unrecognized_sep=
7483955d011SMarcel Moolenaar# The variables have the same names as the options, with
7493955d011SMarcel Moolenaar# dashes changed to underlines.
7503955d011SMarcel Moolenaarcache_file=/dev/null
7513955d011SMarcel Moolenaarexec_prefix=NONE
7523955d011SMarcel Moolenaarno_create=
7533955d011SMarcel Moolenaarno_recursion=
7543955d011SMarcel Moolenaarprefix=NONE
7553955d011SMarcel Moolenaarprogram_prefix=NONE
7563955d011SMarcel Moolenaarprogram_suffix=NONE
7573955d011SMarcel Moolenaarprogram_transform_name=s,x,x,
7583955d011SMarcel Moolenaarsilent=
7593955d011SMarcel Moolenaarsite=
7603955d011SMarcel Moolenaarsrcdir=
7613955d011SMarcel Moolenaarverbose=
7623955d011SMarcel Moolenaarx_includes=NONE
7633955d011SMarcel Moolenaarx_libraries=NONE
7643955d011SMarcel Moolenaar
7653955d011SMarcel Moolenaar# Installation directory options.
7663955d011SMarcel Moolenaar# These are left unexpanded so users can "make install exec_prefix=/foo"
7673955d011SMarcel Moolenaar# and all the variables that are supposed to be based on exec_prefix
7683955d011SMarcel Moolenaar# by default will actually change.
7693955d011SMarcel Moolenaar# Use braces instead of parens because sh, perl, etc. also accept them.
7703955d011SMarcel Moolenaar# (The list follows the same order as the GNU Coding Standards.)
7713955d011SMarcel Moolenaarbindir='${exec_prefix}/bin'
7723955d011SMarcel Moolenaarsbindir='${exec_prefix}/sbin'
7733955d011SMarcel Moolenaarlibexecdir='${exec_prefix}/libexec'
7743955d011SMarcel Moolenaardatarootdir='${prefix}/share'
7753955d011SMarcel Moolenaardatadir='${datarootdir}'
7763955d011SMarcel Moolenaarsysconfdir='${prefix}/etc'
7773955d011SMarcel Moolenaarsharedstatedir='${prefix}/com'
7783955d011SMarcel Moolenaarlocalstatedir='${prefix}/var'
7794fde40d9SSimon J. Gerratyrunstatedir='${localstatedir}/run'
7803955d011SMarcel Moolenaarincludedir='${prefix}/include'
7813955d011SMarcel Moolenaaroldincludedir='/usr/include'
7823955d011SMarcel Moolenaardocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7833955d011SMarcel Moolenaarinfodir='${datarootdir}/info'
7843955d011SMarcel Moolenaarhtmldir='${docdir}'
7853955d011SMarcel Moolenaardvidir='${docdir}'
7863955d011SMarcel Moolenaarpdfdir='${docdir}'
7873955d011SMarcel Moolenaarpsdir='${docdir}'
7883955d011SMarcel Moolenaarlibdir='${exec_prefix}/lib'
7893955d011SMarcel Moolenaarlocaledir='${datarootdir}/locale'
7903955d011SMarcel Moolenaarmandir='${datarootdir}/man'
7913955d011SMarcel Moolenaar
7923955d011SMarcel Moolenaarac_prev=
7933955d011SMarcel Moolenaarac_dashdash=
7943955d011SMarcel Moolenaarfor ac_option
7953955d011SMarcel Moolenaardo
7963955d011SMarcel Moolenaar  # If the previous option needs an argument, assign it.
7973955d011SMarcel Moolenaar  if test -n "$ac_prev"; then
7983955d011SMarcel Moolenaar    eval $ac_prev=\$ac_option
7993955d011SMarcel Moolenaar    ac_prev=
8003955d011SMarcel Moolenaar    continue
8013955d011SMarcel Moolenaar  fi
8023955d011SMarcel Moolenaar
8033955d011SMarcel Moolenaar  case $ac_option in
80449caa483SSimon J. Gerraty  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
80549caa483SSimon J. Gerraty  *=)   ac_optarg= ;;
8063955d011SMarcel Moolenaar  *)    ac_optarg=yes ;;
8073955d011SMarcel Moolenaar  esac
8083955d011SMarcel Moolenaar
8093955d011SMarcel Moolenaar  case $ac_dashdash$ac_option in
8103955d011SMarcel Moolenaar  --)
8113955d011SMarcel Moolenaar    ac_dashdash=yes ;;
8123955d011SMarcel Moolenaar
8133955d011SMarcel Moolenaar  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8143955d011SMarcel Moolenaar    ac_prev=bindir ;;
8153955d011SMarcel Moolenaar  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8163955d011SMarcel Moolenaar    bindir=$ac_optarg ;;
8173955d011SMarcel Moolenaar
8183955d011SMarcel Moolenaar  -build | --build | --buil | --bui | --bu)
8193955d011SMarcel Moolenaar    ac_prev=build_alias ;;
8203955d011SMarcel Moolenaar  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8213955d011SMarcel Moolenaar    build_alias=$ac_optarg ;;
8223955d011SMarcel Moolenaar
8233955d011SMarcel Moolenaar  -cache-file | --cache-file | --cache-fil | --cache-fi \
8243955d011SMarcel Moolenaar  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8253955d011SMarcel Moolenaar    ac_prev=cache_file ;;
8263955d011SMarcel Moolenaar  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8273955d011SMarcel Moolenaar  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8283955d011SMarcel Moolenaar    cache_file=$ac_optarg ;;
8293955d011SMarcel Moolenaar
8303955d011SMarcel Moolenaar  --config-cache | -C)
8313955d011SMarcel Moolenaar    cache_file=config.cache ;;
8323955d011SMarcel Moolenaar
8333955d011SMarcel Moolenaar  -datadir | --datadir | --datadi | --datad)
8343955d011SMarcel Moolenaar    ac_prev=datadir ;;
8353955d011SMarcel Moolenaar  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8363955d011SMarcel Moolenaar    datadir=$ac_optarg ;;
8373955d011SMarcel Moolenaar
8383955d011SMarcel Moolenaar  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8393955d011SMarcel Moolenaar  | --dataroo | --dataro | --datar)
8403955d011SMarcel Moolenaar    ac_prev=datarootdir ;;
8413955d011SMarcel Moolenaar  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8423955d011SMarcel Moolenaar  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8433955d011SMarcel Moolenaar    datarootdir=$ac_optarg ;;
8443955d011SMarcel Moolenaar
8453955d011SMarcel Moolenaar  -disable-* | --disable-*)
8463955d011SMarcel Moolenaar    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8473955d011SMarcel Moolenaar    # Reject names that are not valid shell variable names.
8483955d011SMarcel Moolenaar    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849*22619282SSimon J. Gerraty      as_fn_error $? "invalid feature name: '$ac_useropt'"
8503955d011SMarcel Moolenaar    ac_useropt_orig=$ac_useropt
8514fde40d9SSimon J. Gerraty    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
8523955d011SMarcel Moolenaar    case $ac_user_opts in
8533955d011SMarcel Moolenaar      *"
8543955d011SMarcel Moolenaar"enable_$ac_useropt"
8553955d011SMarcel Moolenaar"*) ;;
8563955d011SMarcel Moolenaar      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8573955d011SMarcel Moolenaar	 ac_unrecognized_sep=', ';;
8583955d011SMarcel Moolenaar    esac
8593955d011SMarcel Moolenaar    eval enable_$ac_useropt=no ;;
8603955d011SMarcel Moolenaar
8613955d011SMarcel Moolenaar  -docdir | --docdir | --docdi | --doc | --do)
8623955d011SMarcel Moolenaar    ac_prev=docdir ;;
8633955d011SMarcel Moolenaar  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8643955d011SMarcel Moolenaar    docdir=$ac_optarg ;;
8653955d011SMarcel Moolenaar
8663955d011SMarcel Moolenaar  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8673955d011SMarcel Moolenaar    ac_prev=dvidir ;;
8683955d011SMarcel Moolenaar  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
8693955d011SMarcel Moolenaar    dvidir=$ac_optarg ;;
8703955d011SMarcel Moolenaar
8713955d011SMarcel Moolenaar  -enable-* | --enable-*)
8723955d011SMarcel Moolenaar    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8733955d011SMarcel Moolenaar    # Reject names that are not valid shell variable names.
8743955d011SMarcel Moolenaar    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875*22619282SSimon J. Gerraty      as_fn_error $? "invalid feature name: '$ac_useropt'"
8763955d011SMarcel Moolenaar    ac_useropt_orig=$ac_useropt
8774fde40d9SSimon J. Gerraty    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
8783955d011SMarcel Moolenaar    case $ac_user_opts in
8793955d011SMarcel Moolenaar      *"
8803955d011SMarcel Moolenaar"enable_$ac_useropt"
8813955d011SMarcel Moolenaar"*) ;;
8823955d011SMarcel Moolenaar      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8833955d011SMarcel Moolenaar	 ac_unrecognized_sep=', ';;
8843955d011SMarcel Moolenaar    esac
8853955d011SMarcel Moolenaar    eval enable_$ac_useropt=\$ac_optarg ;;
8863955d011SMarcel Moolenaar
8873955d011SMarcel Moolenaar  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8883955d011SMarcel Moolenaar  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8893955d011SMarcel Moolenaar  | --exec | --exe | --ex)
8903955d011SMarcel Moolenaar    ac_prev=exec_prefix ;;
8913955d011SMarcel Moolenaar  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8923955d011SMarcel Moolenaar  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8933955d011SMarcel Moolenaar  | --exec=* | --exe=* | --ex=*)
8943955d011SMarcel Moolenaar    exec_prefix=$ac_optarg ;;
8953955d011SMarcel Moolenaar
8963955d011SMarcel Moolenaar  -gas | --gas | --ga | --g)
8973955d011SMarcel Moolenaar    # Obsolete; use --with-gas.
8983955d011SMarcel Moolenaar    with_gas=yes ;;
8993955d011SMarcel Moolenaar
9003955d011SMarcel Moolenaar  -help | --help | --hel | --he | -h)
9013955d011SMarcel Moolenaar    ac_init_help=long ;;
9023955d011SMarcel Moolenaar  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9033955d011SMarcel Moolenaar    ac_init_help=recursive ;;
9043955d011SMarcel Moolenaar  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9053955d011SMarcel Moolenaar    ac_init_help=short ;;
9063955d011SMarcel Moolenaar
9073955d011SMarcel Moolenaar  -host | --host | --hos | --ho)
9083955d011SMarcel Moolenaar    ac_prev=host_alias ;;
9093955d011SMarcel Moolenaar  -host=* | --host=* | --hos=* | --ho=*)
9103955d011SMarcel Moolenaar    host_alias=$ac_optarg ;;
9113955d011SMarcel Moolenaar
9123955d011SMarcel Moolenaar  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9133955d011SMarcel Moolenaar    ac_prev=htmldir ;;
9143955d011SMarcel Moolenaar  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9153955d011SMarcel Moolenaar  | --ht=*)
9163955d011SMarcel Moolenaar    htmldir=$ac_optarg ;;
9173955d011SMarcel Moolenaar
9183955d011SMarcel Moolenaar  -includedir | --includedir | --includedi | --included | --include \
9193955d011SMarcel Moolenaar  | --includ | --inclu | --incl | --inc)
9203955d011SMarcel Moolenaar    ac_prev=includedir ;;
9213955d011SMarcel Moolenaar  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9223955d011SMarcel Moolenaar  | --includ=* | --inclu=* | --incl=* | --inc=*)
9233955d011SMarcel Moolenaar    includedir=$ac_optarg ;;
9243955d011SMarcel Moolenaar
9253955d011SMarcel Moolenaar  -infodir | --infodir | --infodi | --infod | --info | --inf)
9263955d011SMarcel Moolenaar    ac_prev=infodir ;;
9273955d011SMarcel Moolenaar  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9283955d011SMarcel Moolenaar    infodir=$ac_optarg ;;
9293955d011SMarcel Moolenaar
9303955d011SMarcel Moolenaar  -libdir | --libdir | --libdi | --libd)
9313955d011SMarcel Moolenaar    ac_prev=libdir ;;
9323955d011SMarcel Moolenaar  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9333955d011SMarcel Moolenaar    libdir=$ac_optarg ;;
9343955d011SMarcel Moolenaar
9353955d011SMarcel Moolenaar  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9363955d011SMarcel Moolenaar  | --libexe | --libex | --libe)
9373955d011SMarcel Moolenaar    ac_prev=libexecdir ;;
9383955d011SMarcel Moolenaar  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9393955d011SMarcel Moolenaar  | --libexe=* | --libex=* | --libe=*)
9403955d011SMarcel Moolenaar    libexecdir=$ac_optarg ;;
9413955d011SMarcel Moolenaar
9423955d011SMarcel Moolenaar  -localedir | --localedir | --localedi | --localed | --locale)
9433955d011SMarcel Moolenaar    ac_prev=localedir ;;
9443955d011SMarcel Moolenaar  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9453955d011SMarcel Moolenaar    localedir=$ac_optarg ;;
9463955d011SMarcel Moolenaar
9473955d011SMarcel Moolenaar  -localstatedir | --localstatedir | --localstatedi | --localstated \
9483955d011SMarcel Moolenaar  | --localstate | --localstat | --localsta | --localst | --locals)
9493955d011SMarcel Moolenaar    ac_prev=localstatedir ;;
9503955d011SMarcel Moolenaar  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9513955d011SMarcel Moolenaar  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9523955d011SMarcel Moolenaar    localstatedir=$ac_optarg ;;
9533955d011SMarcel Moolenaar
9543955d011SMarcel Moolenaar  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9553955d011SMarcel Moolenaar    ac_prev=mandir ;;
9563955d011SMarcel Moolenaar  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9573955d011SMarcel Moolenaar    mandir=$ac_optarg ;;
9583955d011SMarcel Moolenaar
9593955d011SMarcel Moolenaar  -nfp | --nfp | --nf)
9603955d011SMarcel Moolenaar    # Obsolete; use --without-fp.
9613955d011SMarcel Moolenaar    with_fp=no ;;
9623955d011SMarcel Moolenaar
9633955d011SMarcel Moolenaar  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9643955d011SMarcel Moolenaar  | --no-cr | --no-c | -n)
9653955d011SMarcel Moolenaar    no_create=yes ;;
9663955d011SMarcel Moolenaar
9673955d011SMarcel Moolenaar  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9683955d011SMarcel Moolenaar  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9693955d011SMarcel Moolenaar    no_recursion=yes ;;
9703955d011SMarcel Moolenaar
9713955d011SMarcel Moolenaar  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9723955d011SMarcel Moolenaar  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9733955d011SMarcel Moolenaar  | --oldin | --oldi | --old | --ol | --o)
9743955d011SMarcel Moolenaar    ac_prev=oldincludedir ;;
9753955d011SMarcel Moolenaar  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9763955d011SMarcel Moolenaar  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9773955d011SMarcel Moolenaar  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9783955d011SMarcel Moolenaar    oldincludedir=$ac_optarg ;;
9793955d011SMarcel Moolenaar
9803955d011SMarcel Moolenaar  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9813955d011SMarcel Moolenaar    ac_prev=prefix ;;
9823955d011SMarcel Moolenaar  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9833955d011SMarcel Moolenaar    prefix=$ac_optarg ;;
9843955d011SMarcel Moolenaar
9853955d011SMarcel Moolenaar  -program-prefix | --program-prefix | --program-prefi | --program-pref \
9863955d011SMarcel Moolenaar  | --program-pre | --program-pr | --program-p)
9873955d011SMarcel Moolenaar    ac_prev=program_prefix ;;
9883955d011SMarcel Moolenaar  -program-prefix=* | --program-prefix=* | --program-prefi=* \
9893955d011SMarcel Moolenaar  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9903955d011SMarcel Moolenaar    program_prefix=$ac_optarg ;;
9913955d011SMarcel Moolenaar
9923955d011SMarcel Moolenaar  -program-suffix | --program-suffix | --program-suffi | --program-suff \
9933955d011SMarcel Moolenaar  | --program-suf | --program-su | --program-s)
9943955d011SMarcel Moolenaar    ac_prev=program_suffix ;;
9953955d011SMarcel Moolenaar  -program-suffix=* | --program-suffix=* | --program-suffi=* \
9963955d011SMarcel Moolenaar  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9973955d011SMarcel Moolenaar    program_suffix=$ac_optarg ;;
9983955d011SMarcel Moolenaar
9993955d011SMarcel Moolenaar  -program-transform-name | --program-transform-name \
10003955d011SMarcel Moolenaar  | --program-transform-nam | --program-transform-na \
10013955d011SMarcel Moolenaar  | --program-transform-n | --program-transform- \
10023955d011SMarcel Moolenaar  | --program-transform | --program-transfor \
10033955d011SMarcel Moolenaar  | --program-transfo | --program-transf \
10043955d011SMarcel Moolenaar  | --program-trans | --program-tran \
10053955d011SMarcel Moolenaar  | --progr-tra | --program-tr | --program-t)
10063955d011SMarcel Moolenaar    ac_prev=program_transform_name ;;
10073955d011SMarcel Moolenaar  -program-transform-name=* | --program-transform-name=* \
10083955d011SMarcel Moolenaar  | --program-transform-nam=* | --program-transform-na=* \
10093955d011SMarcel Moolenaar  | --program-transform-n=* | --program-transform-=* \
10103955d011SMarcel Moolenaar  | --program-transform=* | --program-transfor=* \
10113955d011SMarcel Moolenaar  | --program-transfo=* | --program-transf=* \
10123955d011SMarcel Moolenaar  | --program-trans=* | --program-tran=* \
10133955d011SMarcel Moolenaar  | --progr-tra=* | --program-tr=* | --program-t=*)
10143955d011SMarcel Moolenaar    program_transform_name=$ac_optarg ;;
10153955d011SMarcel Moolenaar
10163955d011SMarcel Moolenaar  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10173955d011SMarcel Moolenaar    ac_prev=pdfdir ;;
10183955d011SMarcel Moolenaar  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10193955d011SMarcel Moolenaar    pdfdir=$ac_optarg ;;
10203955d011SMarcel Moolenaar
10213955d011SMarcel Moolenaar  -psdir | --psdir | --psdi | --psd | --ps)
10223955d011SMarcel Moolenaar    ac_prev=psdir ;;
10233955d011SMarcel Moolenaar  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10243955d011SMarcel Moolenaar    psdir=$ac_optarg ;;
10253955d011SMarcel Moolenaar
10263955d011SMarcel Moolenaar  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10273955d011SMarcel Moolenaar  | -silent | --silent | --silen | --sile | --sil)
10283955d011SMarcel Moolenaar    silent=yes ;;
10293955d011SMarcel Moolenaar
10304fde40d9SSimon J. Gerraty  -runstatedir | --runstatedir | --runstatedi | --runstated \
10314fde40d9SSimon J. Gerraty  | --runstate | --runstat | --runsta | --runst | --runs \
10324fde40d9SSimon J. Gerraty  | --run | --ru | --r)
10334fde40d9SSimon J. Gerraty    ac_prev=runstatedir ;;
10344fde40d9SSimon J. Gerraty  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
10354fde40d9SSimon J. Gerraty  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
10364fde40d9SSimon J. Gerraty  | --run=* | --ru=* | --r=*)
10374fde40d9SSimon J. Gerraty    runstatedir=$ac_optarg ;;
10384fde40d9SSimon J. Gerraty
10393955d011SMarcel Moolenaar  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10403955d011SMarcel Moolenaar    ac_prev=sbindir ;;
10413955d011SMarcel Moolenaar  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10423955d011SMarcel Moolenaar  | --sbi=* | --sb=*)
10433955d011SMarcel Moolenaar    sbindir=$ac_optarg ;;
10443955d011SMarcel Moolenaar
10453955d011SMarcel Moolenaar  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10463955d011SMarcel Moolenaar  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10473955d011SMarcel Moolenaar  | --sharedst | --shareds | --shared | --share | --shar \
10483955d011SMarcel Moolenaar  | --sha | --sh)
10493955d011SMarcel Moolenaar    ac_prev=sharedstatedir ;;
10503955d011SMarcel Moolenaar  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10513955d011SMarcel Moolenaar  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10523955d011SMarcel Moolenaar  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10533955d011SMarcel Moolenaar  | --sha=* | --sh=*)
10543955d011SMarcel Moolenaar    sharedstatedir=$ac_optarg ;;
10553955d011SMarcel Moolenaar
10563955d011SMarcel Moolenaar  -site | --site | --sit)
10573955d011SMarcel Moolenaar    ac_prev=site ;;
10583955d011SMarcel Moolenaar  -site=* | --site=* | --sit=*)
10593955d011SMarcel Moolenaar    site=$ac_optarg ;;
10603955d011SMarcel Moolenaar
10613955d011SMarcel Moolenaar  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10623955d011SMarcel Moolenaar    ac_prev=srcdir ;;
10633955d011SMarcel Moolenaar  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10643955d011SMarcel Moolenaar    srcdir=$ac_optarg ;;
10653955d011SMarcel Moolenaar
10663955d011SMarcel Moolenaar  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10673955d011SMarcel Moolenaar  | --syscon | --sysco | --sysc | --sys | --sy)
10683955d011SMarcel Moolenaar    ac_prev=sysconfdir ;;
10693955d011SMarcel Moolenaar  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10703955d011SMarcel Moolenaar  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10713955d011SMarcel Moolenaar    sysconfdir=$ac_optarg ;;
10723955d011SMarcel Moolenaar
10733955d011SMarcel Moolenaar  -target | --target | --targe | --targ | --tar | --ta | --t)
10743955d011SMarcel Moolenaar    ac_prev=target_alias ;;
10753955d011SMarcel Moolenaar  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10763955d011SMarcel Moolenaar    target_alias=$ac_optarg ;;
10773955d011SMarcel Moolenaar
10783955d011SMarcel Moolenaar  -v | -verbose | --verbose | --verbos | --verbo | --verb)
10793955d011SMarcel Moolenaar    verbose=yes ;;
10803955d011SMarcel Moolenaar
10813955d011SMarcel Moolenaar  -version | --version | --versio | --versi | --vers | -V)
10823955d011SMarcel Moolenaar    ac_init_version=: ;;
10833955d011SMarcel Moolenaar
10843955d011SMarcel Moolenaar  -with-* | --with-*)
10853955d011SMarcel Moolenaar    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10863955d011SMarcel Moolenaar    # Reject names that are not valid shell variable names.
10873955d011SMarcel Moolenaar    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088*22619282SSimon J. Gerraty      as_fn_error $? "invalid package name: '$ac_useropt'"
10893955d011SMarcel Moolenaar    ac_useropt_orig=$ac_useropt
10904fde40d9SSimon J. Gerraty    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
10913955d011SMarcel Moolenaar    case $ac_user_opts in
10923955d011SMarcel Moolenaar      *"
10933955d011SMarcel Moolenaar"with_$ac_useropt"
10943955d011SMarcel Moolenaar"*) ;;
10953955d011SMarcel Moolenaar      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10963955d011SMarcel Moolenaar	 ac_unrecognized_sep=', ';;
10973955d011SMarcel Moolenaar    esac
10983955d011SMarcel Moolenaar    eval with_$ac_useropt=\$ac_optarg ;;
10993955d011SMarcel Moolenaar
11003955d011SMarcel Moolenaar  -without-* | --without-*)
11013955d011SMarcel Moolenaar    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11023955d011SMarcel Moolenaar    # Reject names that are not valid shell variable names.
11033955d011SMarcel Moolenaar    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104*22619282SSimon J. Gerraty      as_fn_error $? "invalid package name: '$ac_useropt'"
11053955d011SMarcel Moolenaar    ac_useropt_orig=$ac_useropt
11064fde40d9SSimon J. Gerraty    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11073955d011SMarcel Moolenaar    case $ac_user_opts in
11083955d011SMarcel Moolenaar      *"
11093955d011SMarcel Moolenaar"with_$ac_useropt"
11103955d011SMarcel Moolenaar"*) ;;
11113955d011SMarcel Moolenaar      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11123955d011SMarcel Moolenaar	 ac_unrecognized_sep=', ';;
11133955d011SMarcel Moolenaar    esac
11143955d011SMarcel Moolenaar    eval with_$ac_useropt=no ;;
11153955d011SMarcel Moolenaar
11163955d011SMarcel Moolenaar  --x)
11173955d011SMarcel Moolenaar    # Obsolete; use --with-x.
11183955d011SMarcel Moolenaar    with_x=yes ;;
11193955d011SMarcel Moolenaar
11203955d011SMarcel Moolenaar  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11213955d011SMarcel Moolenaar  | --x-incl | --x-inc | --x-in | --x-i)
11223955d011SMarcel Moolenaar    ac_prev=x_includes ;;
11233955d011SMarcel Moolenaar  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11243955d011SMarcel Moolenaar  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11253955d011SMarcel Moolenaar    x_includes=$ac_optarg ;;
11263955d011SMarcel Moolenaar
11273955d011SMarcel Moolenaar  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11283955d011SMarcel Moolenaar  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11293955d011SMarcel Moolenaar    ac_prev=x_libraries ;;
11303955d011SMarcel Moolenaar  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11313955d011SMarcel Moolenaar  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11323955d011SMarcel Moolenaar    x_libraries=$ac_optarg ;;
11333955d011SMarcel Moolenaar
1134*22619282SSimon J. Gerraty  -*) as_fn_error $? "unrecognized option: '$ac_option'
1135*22619282SSimon J. GerratyTry '$0 --help' for more information"
11363955d011SMarcel Moolenaar    ;;
11373955d011SMarcel Moolenaar
11383955d011SMarcel Moolenaar  *=*)
11393955d011SMarcel Moolenaar    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11403955d011SMarcel Moolenaar    # Reject names that are not valid shell variable names.
11413955d011SMarcel Moolenaar    case $ac_envvar in #(
11423955d011SMarcel Moolenaar      '' | [0-9]* | *[!_$as_cr_alnum]* )
1143*22619282SSimon J. Gerraty      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
11443955d011SMarcel Moolenaar    esac
11453955d011SMarcel Moolenaar    eval $ac_envvar=\$ac_optarg
11463955d011SMarcel Moolenaar    export $ac_envvar ;;
11473955d011SMarcel Moolenaar
11483955d011SMarcel Moolenaar  *)
11493955d011SMarcel Moolenaar    # FIXME: should be removed in autoconf 3.0.
11504fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
11513955d011SMarcel Moolenaar    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11524fde40d9SSimon J. Gerraty      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
115349caa483SSimon J. Gerraty    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11543955d011SMarcel Moolenaar    ;;
11553955d011SMarcel Moolenaar
11563955d011SMarcel Moolenaar  esac
11573955d011SMarcel Moolenaardone
11583955d011SMarcel Moolenaar
11593955d011SMarcel Moolenaarif test -n "$ac_prev"; then
11603955d011SMarcel Moolenaar  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
116149caa483SSimon J. Gerraty  as_fn_error $? "missing argument to $ac_option"
11623955d011SMarcel Moolenaarfi
11633955d011SMarcel Moolenaar
11643955d011SMarcel Moolenaarif test -n "$ac_unrecognized_opts"; then
11653955d011SMarcel Moolenaar  case $enable_option_checking in
11663955d011SMarcel Moolenaar    no) ;;
116749caa483SSimon J. Gerraty    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11684fde40d9SSimon J. Gerraty    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11693955d011SMarcel Moolenaar  esac
11703955d011SMarcel Moolenaarfi
11713955d011SMarcel Moolenaar
11723955d011SMarcel Moolenaar# Check all directory arguments for consistency.
11733955d011SMarcel Moolenaarfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11743955d011SMarcel Moolenaar		datadir sysconfdir sharedstatedir localstatedir includedir \
11753955d011SMarcel Moolenaar		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11764fde40d9SSimon J. Gerraty		libdir localedir mandir runstatedir
11773955d011SMarcel Moolenaardo
11783955d011SMarcel Moolenaar  eval ac_val=\$$ac_var
11793955d011SMarcel Moolenaar  # Remove trailing slashes.
11803955d011SMarcel Moolenaar  case $ac_val in
11813955d011SMarcel Moolenaar    */ )
11823955d011SMarcel Moolenaar      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11833955d011SMarcel Moolenaar      eval $ac_var=\$ac_val;;
11843955d011SMarcel Moolenaar  esac
11853955d011SMarcel Moolenaar  # Be sure to have absolute directory names.
11863955d011SMarcel Moolenaar  case $ac_val in
11873955d011SMarcel Moolenaar    [\\/$]* | ?:[\\/]* )  continue;;
11883955d011SMarcel Moolenaar    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11893955d011SMarcel Moolenaar  esac
119049caa483SSimon J. Gerraty  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
11913955d011SMarcel Moolenaardone
11923955d011SMarcel Moolenaar
1193*22619282SSimon J. Gerraty# There might be people who depend on the old broken behavior: '$host'
11943955d011SMarcel Moolenaar# used to hold the argument of --host etc.
11953955d011SMarcel Moolenaar# FIXME: To remove some day.
11963955d011SMarcel Moolenaarbuild=$build_alias
11973955d011SMarcel Moolenaarhost=$host_alias
11983955d011SMarcel Moolenaartarget=$target_alias
11993955d011SMarcel Moolenaar
12003955d011SMarcel Moolenaar# FIXME: To remove some day.
12013955d011SMarcel Moolenaarif test "x$host_alias" != x; then
12023955d011SMarcel Moolenaar  if test "x$build_alias" = x; then
12033955d011SMarcel Moolenaar    cross_compiling=maybe
12043955d011SMarcel Moolenaar  elif test "x$build_alias" != "x$host_alias"; then
12053955d011SMarcel Moolenaar    cross_compiling=yes
12063955d011SMarcel Moolenaar  fi
12073955d011SMarcel Moolenaarfi
12083955d011SMarcel Moolenaar
12093955d011SMarcel Moolenaarac_tool_prefix=
12103955d011SMarcel Moolenaartest -n "$host_alias" && ac_tool_prefix=$host_alias-
12113955d011SMarcel Moolenaar
12123955d011SMarcel Moolenaartest "$silent" = yes && exec 6>/dev/null
12133955d011SMarcel Moolenaar
12143955d011SMarcel Moolenaar
12153955d011SMarcel Moolenaarac_pwd=`pwd` && test -n "$ac_pwd" &&
12163955d011SMarcel Moolenaarac_ls_di=`ls -di .` &&
12173955d011SMarcel Moolenaarac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
121849caa483SSimon J. Gerraty  as_fn_error $? "working directory cannot be determined"
12193955d011SMarcel Moolenaartest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
122049caa483SSimon J. Gerraty  as_fn_error $? "pwd does not report name of working directory"
12213955d011SMarcel Moolenaar
12223955d011SMarcel Moolenaar
12233955d011SMarcel Moolenaar# Find the source files, if location was not specified.
12243955d011SMarcel Moolenaarif test -z "$srcdir"; then
12253955d011SMarcel Moolenaar  ac_srcdir_defaulted=yes
12263955d011SMarcel Moolenaar  # Try the directory containing this script, then the parent directory.
12273955d011SMarcel Moolenaar  ac_confdir=`$as_dirname -- "$as_myself" ||
12283955d011SMarcel Moolenaar$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12293955d011SMarcel Moolenaar	 X"$as_myself" : 'X\(//\)[^/]' \| \
12303955d011SMarcel Moolenaar	 X"$as_myself" : 'X\(//\)$' \| \
12313955d011SMarcel Moolenaar	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12324fde40d9SSimon J. Gerratyprintf "%s\n" X"$as_myself" |
12333955d011SMarcel Moolenaar    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12343955d011SMarcel Moolenaar	    s//\1/
12353955d011SMarcel Moolenaar	    q
12363955d011SMarcel Moolenaar	  }
12373955d011SMarcel Moolenaar	  /^X\(\/\/\)[^/].*/{
12383955d011SMarcel Moolenaar	    s//\1/
12393955d011SMarcel Moolenaar	    q
12403955d011SMarcel Moolenaar	  }
12413955d011SMarcel Moolenaar	  /^X\(\/\/\)$/{
12423955d011SMarcel Moolenaar	    s//\1/
12433955d011SMarcel Moolenaar	    q
12443955d011SMarcel Moolenaar	  }
12453955d011SMarcel Moolenaar	  /^X\(\/\).*/{
12463955d011SMarcel Moolenaar	    s//\1/
12473955d011SMarcel Moolenaar	    q
12483955d011SMarcel Moolenaar	  }
12493955d011SMarcel Moolenaar	  s/.*/./; q'`
12503955d011SMarcel Moolenaar  srcdir=$ac_confdir
12513955d011SMarcel Moolenaar  if test ! -r "$srcdir/$ac_unique_file"; then
12523955d011SMarcel Moolenaar    srcdir=..
12533955d011SMarcel Moolenaar  fi
12543955d011SMarcel Moolenaarelse
12553955d011SMarcel Moolenaar  ac_srcdir_defaulted=no
12563955d011SMarcel Moolenaarfi
12573955d011SMarcel Moolenaarif test ! -r "$srcdir/$ac_unique_file"; then
12583955d011SMarcel Moolenaar  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
125949caa483SSimon J. Gerraty  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12603955d011SMarcel Moolenaarfi
1261*22619282SSimon J. Gerratyac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
12623955d011SMarcel Moolenaarac_abs_confdir=`(
126349caa483SSimon J. Gerraty	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12643955d011SMarcel Moolenaar	pwd)`
12653955d011SMarcel Moolenaar# When building in place, set srcdir=.
12663955d011SMarcel Moolenaarif test "$ac_abs_confdir" = "$ac_pwd"; then
12673955d011SMarcel Moolenaar  srcdir=.
12683955d011SMarcel Moolenaarfi
12693955d011SMarcel Moolenaar# Remove unnecessary trailing slashes from srcdir.
12703955d011SMarcel Moolenaar# Double slashes in file names in object file debugging info
12713955d011SMarcel Moolenaar# mess up M-x gdb in Emacs.
12723955d011SMarcel Moolenaarcase $srcdir in
12733955d011SMarcel Moolenaar*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12743955d011SMarcel Moolenaaresac
12753955d011SMarcel Moolenaarfor ac_var in $ac_precious_vars; do
12763955d011SMarcel Moolenaar  eval ac_env_${ac_var}_set=\${${ac_var}+set}
12773955d011SMarcel Moolenaar  eval ac_env_${ac_var}_value=\$${ac_var}
12783955d011SMarcel Moolenaar  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12793955d011SMarcel Moolenaar  eval ac_cv_env_${ac_var}_value=\$${ac_var}
12803955d011SMarcel Moolenaardone
12813955d011SMarcel Moolenaar
12823955d011SMarcel Moolenaar#
12833955d011SMarcel Moolenaar# Report the --help message.
12843955d011SMarcel Moolenaar#
12853955d011SMarcel Moolenaarif test "$ac_init_help" = "long"; then
12863955d011SMarcel Moolenaar  # Omit some internal or obsolete options to make the list less imposing.
12873955d011SMarcel Moolenaar  # This message is too long to be a string in the A/UX 3.1 sh.
12883955d011SMarcel Moolenaar  cat <<_ACEOF
1289*22619282SSimon J. Gerraty'configure' configures bmake 20240711 to adapt to many kinds of systems.
12903955d011SMarcel Moolenaar
12913955d011SMarcel MoolenaarUsage: $0 [OPTION]... [VAR=VALUE]...
12923955d011SMarcel Moolenaar
12933955d011SMarcel MoolenaarTo assign environment variables (e.g., CC, CFLAGS...), specify them as
12943955d011SMarcel MoolenaarVAR=VALUE.  See below for descriptions of some of the useful variables.
12953955d011SMarcel Moolenaar
12963955d011SMarcel MoolenaarDefaults for the options are specified in brackets.
12973955d011SMarcel Moolenaar
12983955d011SMarcel MoolenaarConfiguration:
12993955d011SMarcel Moolenaar  -h, --help              display this help and exit
13003955d011SMarcel Moolenaar      --help=short        display options specific to this package
13013955d011SMarcel Moolenaar      --help=recursive    display the short help of all the included packages
13023955d011SMarcel Moolenaar  -V, --version           display version information and exit
1303*22619282SSimon J. Gerraty  -q, --quiet, --silent   do not print 'checking ...' messages
13043955d011SMarcel Moolenaar      --cache-file=FILE   cache test results in FILE [disabled]
1305*22619282SSimon J. Gerraty  -C, --config-cache      alias for '--cache-file=config.cache'
13063955d011SMarcel Moolenaar  -n, --no-create         do not create output files
1307*22619282SSimon J. Gerraty      --srcdir=DIR        find the sources in DIR [configure dir or '..']
13083955d011SMarcel Moolenaar
13093955d011SMarcel MoolenaarInstallation directories:
13103955d011SMarcel Moolenaar  --prefix=PREFIX         install architecture-independent files in PREFIX
13113955d011SMarcel Moolenaar                          [$ac_default_prefix]
13123955d011SMarcel Moolenaar  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13133955d011SMarcel Moolenaar                          [PREFIX]
13143955d011SMarcel Moolenaar
1315*22619282SSimon J. GerratyBy default, 'make install' will install all the files in
1316*22619282SSimon J. Gerraty'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1317*22619282SSimon J. Gerratyan installation prefix other than '$ac_default_prefix' using '--prefix',
1318*22619282SSimon J. Gerratyfor instance '--prefix=\$HOME'.
13193955d011SMarcel Moolenaar
13203955d011SMarcel MoolenaarFor better control, use the options below.
13213955d011SMarcel Moolenaar
13223955d011SMarcel MoolenaarFine tuning of the installation directories:
13233955d011SMarcel Moolenaar  --bindir=DIR            user executables [EPREFIX/bin]
13243955d011SMarcel Moolenaar  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13253955d011SMarcel Moolenaar  --libexecdir=DIR        program executables [EPREFIX/libexec]
13263955d011SMarcel Moolenaar  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13273955d011SMarcel Moolenaar  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13283955d011SMarcel Moolenaar  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13294fde40d9SSimon J. Gerraty  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
13303955d011SMarcel Moolenaar  --libdir=DIR            object code libraries [EPREFIX/lib]
13313955d011SMarcel Moolenaar  --includedir=DIR        C header files [PREFIX/include]
13323955d011SMarcel Moolenaar  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13333955d011SMarcel Moolenaar  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13343955d011SMarcel Moolenaar  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13353955d011SMarcel Moolenaar  --infodir=DIR           info documentation [DATAROOTDIR/info]
13363955d011SMarcel Moolenaar  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13373955d011SMarcel Moolenaar  --mandir=DIR            man documentation [DATAROOTDIR/man]
13383955d011SMarcel Moolenaar  --docdir=DIR            documentation root [DATAROOTDIR/doc/bmake]
13393955d011SMarcel Moolenaar  --htmldir=DIR           html documentation [DOCDIR]
13403955d011SMarcel Moolenaar  --dvidir=DIR            dvi documentation [DOCDIR]
13413955d011SMarcel Moolenaar  --pdfdir=DIR            pdf documentation [DOCDIR]
13423955d011SMarcel Moolenaar  --psdir=DIR             ps documentation [DOCDIR]
13433955d011SMarcel Moolenaar_ACEOF
13443955d011SMarcel Moolenaar
13453955d011SMarcel Moolenaar  cat <<\_ACEOF
13463955d011SMarcel Moolenaar_ACEOF
13473955d011SMarcel Moolenaarfi
13483955d011SMarcel Moolenaar
13493955d011SMarcel Moolenaarif test -n "$ac_init_help"; then
13503955d011SMarcel Moolenaar  case $ac_init_help in
1351*22619282SSimon J. Gerraty     short | recursive ) echo "Configuration of bmake 20240711:";;
13523955d011SMarcel Moolenaar   esac
13533955d011SMarcel Moolenaar  cat <<\_ACEOF
13543955d011SMarcel Moolenaar
13553955d011SMarcel MoolenaarOptional Features:
13563955d011SMarcel Moolenaar  --disable-option-checking  ignore unrecognized --enable/--with options
13573955d011SMarcel Moolenaar  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
13583955d011SMarcel Moolenaar  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1359956e45f6SSimon J. Gerraty  --disable-pwd-override  disable $PWD overriding getcwd()
13603955d011SMarcel Moolenaar  --disable-check-make-chdir disable make trying to guess
1361956e45f6SSimon J. Gerraty	when it should automatically cd ${.CURDIR}
13623955d011SMarcel Moolenaar
13633955d011SMarcel MoolenaarOptional Packages:
13643955d011SMarcel Moolenaar  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
13653955d011SMarcel Moolenaar  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
136698875883SSimon J. Gerraty  --with-defshell=[name=]SHELL	use SHELL by default
136798875883SSimon J. Gerraty	optional 'name' can be 'sh' to indicate SHELL is sh compatible
136898875883SSimon J. Gerraty	eg. --with-defshell=sh=/bin/bsh
136998875883SSimon J. Gerraty	use just 'sh' or 'ksh' to pick the internal definitions
1370956e45f6SSimon J. Gerraty  --without-makefile disable use of generated makefile
1371956e45f6SSimon J. Gerraty  --without-meta disable use of meta-mode
137249caa483SSimon J. Gerraty  --with-filemon={no,dev,ktrace,path/filemon.h} indicate filemon method for meta-mode. Path to filemon.h implies dev
1373d5e0a182SSimon J. Gerraty --with-bmake-strftime force use of bmake strftime
13743955d011SMarcel Moolenaar  --with-machine=MACHINE  explicitly set MACHINE
13753955d011SMarcel Moolenaar  --with-force-machine=MACHINE  set FORCE_MACHINE
13763955d011SMarcel Moolenaar  --with-force-machine-arch=MACHINE  set FORCE_MACHINE_ARCH
13773955d011SMarcel Moolenaar  --with-machine_arch=MACHINE_ARCH  explicitly set MACHINE_ARCH
13783955d011SMarcel Moolenaar  --with-default-sys-path=PATH:DIR:LIST  use an explicit _PATH_DEFSYSPATH
13793955d011SMarcel Moolenaar	MAKESYSPATH is a ':' separated list of directories
13803955d011SMarcel Moolenaar	that bmake will search for system .mk files.
13813955d011SMarcel Moolenaar	_PATH_DEFSYSPATH is its default value.
13823955d011SMarcel Moolenaar  --with-path-objdirprefix=PATH  override _PATH_OBJDIRPREFIX
13833955d011SMarcel Moolenaar  --with-mksrc=PATH tell makefile.boot where to find mk src
13843955d011SMarcel Moolenaar
13853955d011SMarcel MoolenaarSome influential environment variables:
13863955d011SMarcel Moolenaar  CC          C compiler command
13873955d011SMarcel Moolenaar  CFLAGS      C compiler flags
13883955d011SMarcel Moolenaar  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
13893955d011SMarcel Moolenaar              nonstandard directory <lib dir>
13903955d011SMarcel Moolenaar  LIBS        libraries to pass to the linker, e.g. -l<library>
139149caa483SSimon J. Gerraty  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13923955d011SMarcel Moolenaar              you have headers in a nonstandard directory <include dir>
13933955d011SMarcel Moolenaar
1394*22619282SSimon J. GerratyUse these variables to override the choices made by 'configure' or to help
13953955d011SMarcel Moolenaarit to find libraries and programs with nonstandard names/locations.
13963955d011SMarcel Moolenaar
13973955d011SMarcel MoolenaarReport bugs to <sjg@NetBSD.org>.
13983955d011SMarcel Moolenaar_ACEOF
13993955d011SMarcel Moolenaarac_status=$?
14003955d011SMarcel Moolenaarfi
14013955d011SMarcel Moolenaar
14023955d011SMarcel Moolenaarif test "$ac_init_help" = "recursive"; then
14033955d011SMarcel Moolenaar  # If there are subdirs, report their specific --help.
14043955d011SMarcel Moolenaar  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14053955d011SMarcel Moolenaar    test -d "$ac_dir" ||
14063955d011SMarcel Moolenaar      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14073955d011SMarcel Moolenaar      continue
14083955d011SMarcel Moolenaar    ac_builddir=.
14093955d011SMarcel Moolenaar
14103955d011SMarcel Moolenaarcase "$ac_dir" in
14113955d011SMarcel Moolenaar.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14123955d011SMarcel Moolenaar*)
14134fde40d9SSimon J. Gerraty  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14143955d011SMarcel Moolenaar  # A ".." for each directory in $ac_dir_suffix.
14154fde40d9SSimon J. Gerraty  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14163955d011SMarcel Moolenaar  case $ac_top_builddir_sub in
14173955d011SMarcel Moolenaar  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14183955d011SMarcel Moolenaar  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14193955d011SMarcel Moolenaar  esac ;;
14203955d011SMarcel Moolenaaresac
14213955d011SMarcel Moolenaarac_abs_top_builddir=$ac_pwd
14223955d011SMarcel Moolenaarac_abs_builddir=$ac_pwd$ac_dir_suffix
14233955d011SMarcel Moolenaar# for backward compatibility:
14243955d011SMarcel Moolenaarac_top_builddir=$ac_top_build_prefix
14253955d011SMarcel Moolenaar
14263955d011SMarcel Moolenaarcase $srcdir in
14273955d011SMarcel Moolenaar  .)  # We are building in place.
14283955d011SMarcel Moolenaar    ac_srcdir=.
14293955d011SMarcel Moolenaar    ac_top_srcdir=$ac_top_builddir_sub
14303955d011SMarcel Moolenaar    ac_abs_top_srcdir=$ac_pwd ;;
14313955d011SMarcel Moolenaar  [\\/]* | ?:[\\/]* )  # Absolute name.
14323955d011SMarcel Moolenaar    ac_srcdir=$srcdir$ac_dir_suffix;
14333955d011SMarcel Moolenaar    ac_top_srcdir=$srcdir
14343955d011SMarcel Moolenaar    ac_abs_top_srcdir=$srcdir ;;
14353955d011SMarcel Moolenaar  *) # Relative name.
14363955d011SMarcel Moolenaar    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14373955d011SMarcel Moolenaar    ac_top_srcdir=$ac_top_build_prefix$srcdir
14383955d011SMarcel Moolenaar    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14393955d011SMarcel Moolenaaresac
14403955d011SMarcel Moolenaarac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14413955d011SMarcel Moolenaar
14423955d011SMarcel Moolenaar    cd "$ac_dir" || { ac_status=$?; continue; }
14434fde40d9SSimon J. Gerraty    # Check for configure.gnu first; this name is used for a wrapper for
14444fde40d9SSimon J. Gerraty    # Metaconfig's "Configure" on case-insensitive file systems.
14453955d011SMarcel Moolenaar    if test -f "$ac_srcdir/configure.gnu"; then
14463955d011SMarcel Moolenaar      echo &&
14473955d011SMarcel Moolenaar      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14483955d011SMarcel Moolenaar    elif test -f "$ac_srcdir/configure"; then
14493955d011SMarcel Moolenaar      echo &&
14503955d011SMarcel Moolenaar      $SHELL "$ac_srcdir/configure" --help=recursive
14513955d011SMarcel Moolenaar    else
14524fde40d9SSimon J. Gerraty      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14533955d011SMarcel Moolenaar    fi || ac_status=$?
14543955d011SMarcel Moolenaar    cd "$ac_pwd" || { ac_status=$?; break; }
14553955d011SMarcel Moolenaar  done
14563955d011SMarcel Moolenaarfi
14573955d011SMarcel Moolenaar
14583955d011SMarcel Moolenaartest -n "$ac_init_help" && exit $ac_status
14593955d011SMarcel Moolenaarif $ac_init_version; then
14603955d011SMarcel Moolenaar  cat <<\_ACEOF
1461*22619282SSimon J. Gerratybmake configure 20240711
1462*22619282SSimon J. Gerratygenerated by GNU Autoconf 2.72
14633955d011SMarcel Moolenaar
1464*22619282SSimon J. GerratyCopyright (C) 2023 Free Software Foundation, Inc.
14653955d011SMarcel MoolenaarThis configure script is free software; the Free Software Foundation
14663955d011SMarcel Moolenaargives unlimited permission to copy, distribute and modify it.
14673955d011SMarcel Moolenaar_ACEOF
14683955d011SMarcel Moolenaar  exit
14693955d011SMarcel Moolenaarfi
14703955d011SMarcel Moolenaar
14713955d011SMarcel Moolenaar## ------------------------ ##
14723955d011SMarcel Moolenaar## Autoconf initialization. ##
14733955d011SMarcel Moolenaar## ------------------------ ##
14743955d011SMarcel Moolenaar
14753955d011SMarcel Moolenaar# ac_fn_c_try_compile LINENO
14763955d011SMarcel Moolenaar# --------------------------
14773955d011SMarcel Moolenaar# Try to compile conftest.$ac_ext, and return whether this succeeded.
14783955d011SMarcel Moolenaarac_fn_c_try_compile ()
14793955d011SMarcel Moolenaar{
14803955d011SMarcel Moolenaar  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14814fde40d9SSimon J. Gerraty  rm -f conftest.$ac_objext conftest.beam
14823955d011SMarcel Moolenaar  if { { ac_try="$ac_compile"
14833955d011SMarcel Moolenaarcase "(($ac_try" in
14843955d011SMarcel Moolenaar  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853955d011SMarcel Moolenaar  *) ac_try_echo=$ac_try;;
14863955d011SMarcel Moolenaaresac
14873955d011SMarcel Moolenaareval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14884fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_try_echo"; } >&5
14893955d011SMarcel Moolenaar  (eval "$ac_compile") 2>conftest.err
14903955d011SMarcel Moolenaar  ac_status=$?
14913955d011SMarcel Moolenaar  if test -s conftest.err; then
14923955d011SMarcel Moolenaar    grep -v '^ *+' conftest.err >conftest.er1
14933955d011SMarcel Moolenaar    cat conftest.er1 >&5
14943955d011SMarcel Moolenaar    mv -f conftest.er1 conftest.err
14953955d011SMarcel Moolenaar  fi
14964fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14973955d011SMarcel Moolenaar  test $ac_status = 0; } && {
14983955d011SMarcel Moolenaar	 test -z "$ac_c_werror_flag" ||
14993955d011SMarcel Moolenaar	 test ! -s conftest.err
15004fde40d9SSimon J. Gerraty       } && test -s conftest.$ac_objext
15014fde40d9SSimon J. Gerratythen :
15023955d011SMarcel Moolenaar  ac_retval=0
1503*22619282SSimon J. Gerratyelse case e in #(
1504*22619282SSimon J. Gerraty  e) printf "%s\n" "$as_me: failed program was:" >&5
15053955d011SMarcel Moolenaarsed 's/^/| /' conftest.$ac_ext >&5
15063955d011SMarcel Moolenaar
1507*22619282SSimon J. Gerraty	ac_retval=1 ;;
1508*22619282SSimon J. Gerratyesac
15093955d011SMarcel Moolenaarfi
151049caa483SSimon J. Gerraty  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
151149caa483SSimon J. Gerraty  as_fn_set_status $ac_retval
15123955d011SMarcel Moolenaar
15133955d011SMarcel Moolenaar} # ac_fn_c_try_compile
15143955d011SMarcel Moolenaar
15153955d011SMarcel Moolenaar# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
15163955d011SMarcel Moolenaar# -------------------------------------------------------
15173955d011SMarcel Moolenaar# Tests whether HEADER exists and can be compiled using the include files in
15183955d011SMarcel Moolenaar# INCLUDES, setting the cache variable VAR accordingly.
15193955d011SMarcel Moolenaarac_fn_c_check_header_compile ()
15203955d011SMarcel Moolenaar{
15213955d011SMarcel Moolenaar  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15224fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
15234fde40d9SSimon J. Gerratyprintf %s "checking for $2... " >&6; }
15244fde40d9SSimon J. Gerratyif eval test \${$3+y}
15254fde40d9SSimon J. Gerratythen :
15264fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
1527*22619282SSimon J. Gerratyelse case e in #(
1528*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293955d011SMarcel Moolenaar/* end confdefs.h.  */
15303955d011SMarcel Moolenaar$4
15313955d011SMarcel Moolenaar#include <$2>
15323955d011SMarcel Moolenaar_ACEOF
15334fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
15344fde40d9SSimon J. Gerratythen :
15353955d011SMarcel Moolenaar  eval "$3=yes"
1536*22619282SSimon J. Gerratyelse case e in #(
1537*22619282SSimon J. Gerraty  e) eval "$3=no" ;;
1538*22619282SSimon J. Gerratyesac
15393955d011SMarcel Moolenaarfi
1540*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1541*22619282SSimon J. Gerratyesac
15423955d011SMarcel Moolenaarfi
15433955d011SMarcel Moolenaareval ac_res=\$$3
15444fde40d9SSimon J. Gerraty	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15454fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_res" >&6; }
154649caa483SSimon J. Gerraty  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15473955d011SMarcel Moolenaar
15483955d011SMarcel Moolenaar} # ac_fn_c_check_header_compile
15493955d011SMarcel Moolenaar
15503955d011SMarcel Moolenaar# ac_fn_c_try_link LINENO
15513955d011SMarcel Moolenaar# -----------------------
15523955d011SMarcel Moolenaar# Try to link conftest.$ac_ext, and return whether this succeeded.
15533955d011SMarcel Moolenaarac_fn_c_try_link ()
15543955d011SMarcel Moolenaar{
15553955d011SMarcel Moolenaar  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15564fde40d9SSimon J. Gerraty  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
15573955d011SMarcel Moolenaar  if { { ac_try="$ac_link"
15583955d011SMarcel Moolenaarcase "(($ac_try" in
15593955d011SMarcel Moolenaar  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603955d011SMarcel Moolenaar  *) ac_try_echo=$ac_try;;
15613955d011SMarcel Moolenaaresac
15623955d011SMarcel Moolenaareval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15634fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_try_echo"; } >&5
15643955d011SMarcel Moolenaar  (eval "$ac_link") 2>conftest.err
15653955d011SMarcel Moolenaar  ac_status=$?
15663955d011SMarcel Moolenaar  if test -s conftest.err; then
15673955d011SMarcel Moolenaar    grep -v '^ *+' conftest.err >conftest.er1
15683955d011SMarcel Moolenaar    cat conftest.er1 >&5
15693955d011SMarcel Moolenaar    mv -f conftest.er1 conftest.err
15703955d011SMarcel Moolenaar  fi
15714fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15723955d011SMarcel Moolenaar  test $ac_status = 0; } && {
15733955d011SMarcel Moolenaar	 test -z "$ac_c_werror_flag" ||
15743955d011SMarcel Moolenaar	 test ! -s conftest.err
15753955d011SMarcel Moolenaar       } && test -s conftest$ac_exeext && {
15763955d011SMarcel Moolenaar	 test "$cross_compiling" = yes ||
157749caa483SSimon J. Gerraty	 test -x conftest$ac_exeext
15784fde40d9SSimon J. Gerraty       }
15794fde40d9SSimon J. Gerratythen :
15803955d011SMarcel Moolenaar  ac_retval=0
1581*22619282SSimon J. Gerratyelse case e in #(
1582*22619282SSimon J. Gerraty  e) printf "%s\n" "$as_me: failed program was:" >&5
15833955d011SMarcel Moolenaarsed 's/^/| /' conftest.$ac_ext >&5
15843955d011SMarcel Moolenaar
1585*22619282SSimon J. Gerraty	ac_retval=1 ;;
1586*22619282SSimon J. Gerratyesac
15873955d011SMarcel Moolenaarfi
15883955d011SMarcel Moolenaar  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
15893955d011SMarcel Moolenaar  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
15903955d011SMarcel Moolenaar  # interfere with the next link command; also delete a directory that is
15913955d011SMarcel Moolenaar  # left behind by Apple's compiler.  We do this before executing the actions.
15923955d011SMarcel Moolenaar  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
159349caa483SSimon J. Gerraty  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
159449caa483SSimon J. Gerraty  as_fn_set_status $ac_retval
15953955d011SMarcel Moolenaar
15963955d011SMarcel Moolenaar} # ac_fn_c_try_link
15973955d011SMarcel Moolenaar
15984fde40d9SSimon J. Gerraty# ac_fn_c_try_run LINENO
15994fde40d9SSimon J. Gerraty# ----------------------
16004fde40d9SSimon J. Gerraty# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
16014fde40d9SSimon J. Gerraty# executables *can* be run.
16024fde40d9SSimon J. Gerratyac_fn_c_try_run ()
16034fde40d9SSimon J. Gerraty{
16044fde40d9SSimon J. Gerraty  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16054fde40d9SSimon J. Gerraty  if { { ac_try="$ac_link"
16064fde40d9SSimon J. Gerratycase "(($ac_try" in
16074fde40d9SSimon J. Gerraty  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084fde40d9SSimon J. Gerraty  *) ac_try_echo=$ac_try;;
16094fde40d9SSimon J. Gerratyesac
16104fde40d9SSimon J. Gerratyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16114fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_try_echo"; } >&5
16124fde40d9SSimon J. Gerraty  (eval "$ac_link") 2>&5
16134fde40d9SSimon J. Gerraty  ac_status=$?
16144fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16154fde40d9SSimon J. Gerraty  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16164fde40d9SSimon J. Gerraty  { { case "(($ac_try" in
16174fde40d9SSimon J. Gerraty  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184fde40d9SSimon J. Gerraty  *) ac_try_echo=$ac_try;;
16194fde40d9SSimon J. Gerratyesac
16204fde40d9SSimon J. Gerratyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16214fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_try_echo"; } >&5
16224fde40d9SSimon J. Gerraty  (eval "$ac_try") 2>&5
16234fde40d9SSimon J. Gerraty  ac_status=$?
16244fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16254fde40d9SSimon J. Gerraty  test $ac_status = 0; }; }
16264fde40d9SSimon J. Gerratythen :
16274fde40d9SSimon J. Gerraty  ac_retval=0
1628*22619282SSimon J. Gerratyelse case e in #(
1629*22619282SSimon J. Gerraty  e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
16304fde40d9SSimon J. Gerraty       printf "%s\n" "$as_me: failed program was:" >&5
16314fde40d9SSimon J. Gerratysed 's/^/| /' conftest.$ac_ext >&5
16324fde40d9SSimon J. Gerraty
1633*22619282SSimon J. Gerraty       ac_retval=$ac_status ;;
1634*22619282SSimon J. Gerratyesac
16354fde40d9SSimon J. Gerratyfi
16364fde40d9SSimon J. Gerraty  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16374fde40d9SSimon J. Gerraty  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16384fde40d9SSimon J. Gerraty  as_fn_set_status $ac_retval
16394fde40d9SSimon J. Gerraty
16404fde40d9SSimon J. Gerraty} # ac_fn_c_try_run
16414fde40d9SSimon J. Gerraty
164212904384SSimon J. Gerraty# ac_fn_c_find_intX_t LINENO BITS VAR
164312904384SSimon J. Gerraty# -----------------------------------
164412904384SSimon J. Gerraty# Finds a signed integer type with width BITS, setting cache variable VAR
164512904384SSimon J. Gerraty# accordingly.
164612904384SSimon J. Gerratyac_fn_c_find_intX_t ()
164712904384SSimon J. Gerraty{
164812904384SSimon J. Gerraty  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16494fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
16504fde40d9SSimon J. Gerratyprintf %s "checking for int$2_t... " >&6; }
16514fde40d9SSimon J. Gerratyif eval test \${$3+y}
16524fde40d9SSimon J. Gerratythen :
16534fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
1654*22619282SSimon J. Gerratyelse case e in #(
1655*22619282SSimon J. Gerraty  e) eval "$3=no"
165612904384SSimon J. Gerraty     # Order is important - never check a type that is potentially smaller
165712904384SSimon J. Gerraty     # than half of the expected target width.
165812904384SSimon J. Gerraty     for ac_type in int$2_t 'int' 'long int' \
165912904384SSimon J. Gerraty	 'long long int' 'short int' 'signed char'; do
166012904384SSimon J. Gerraty       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
166112904384SSimon J. Gerraty/* end confdefs.h.  */
166212904384SSimon J. Gerraty$ac_includes_default
166312904384SSimon J. Gerraty	     enum { N = $2 / 2 - 1 };
166412904384SSimon J. Gerratyint
16654fde40d9SSimon J. Gerratymain (void)
166612904384SSimon J. Gerraty{
166712904384SSimon J. Gerratystatic int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
166812904384SSimon J. Gerratytest_array [0] = 0;
166912904384SSimon J. Gerratyreturn test_array [0];
167012904384SSimon J. Gerraty
167112904384SSimon J. Gerraty  ;
167212904384SSimon J. Gerraty  return 0;
167312904384SSimon J. Gerraty}
167412904384SSimon J. Gerraty_ACEOF
16754fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
16764fde40d9SSimon J. Gerratythen :
167712904384SSimon J. Gerraty  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
167812904384SSimon J. Gerraty/* end confdefs.h.  */
167912904384SSimon J. Gerraty$ac_includes_default
168012904384SSimon J. Gerraty	        enum { N = $2 / 2 - 1 };
168112904384SSimon J. Gerratyint
16824fde40d9SSimon J. Gerratymain (void)
168312904384SSimon J. Gerraty{
168412904384SSimon J. Gerratystatic int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
168512904384SSimon J. Gerraty		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
168612904384SSimon J. Gerratytest_array [0] = 0;
168712904384SSimon J. Gerratyreturn test_array [0];
168812904384SSimon J. Gerraty
168912904384SSimon J. Gerraty  ;
169012904384SSimon J. Gerraty  return 0;
169112904384SSimon J. Gerraty}
169212904384SSimon J. Gerraty_ACEOF
16934fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
16944fde40d9SSimon J. Gerratythen :
169512904384SSimon J. Gerraty
1696*22619282SSimon J. Gerratyelse case e in #(
1697*22619282SSimon J. Gerraty  e) case $ac_type in #(
169812904384SSimon J. Gerraty  int$2_t) :
169912904384SSimon J. Gerraty    eval "$3=yes" ;; #(
170012904384SSimon J. Gerraty  *) :
170112904384SSimon J. Gerraty    eval "$3=\$ac_type" ;;
1702*22619282SSimon J. Gerratyesac ;;
170312904384SSimon J. Gerratyesac
170412904384SSimon J. Gerratyfi
17054fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
170612904384SSimon J. Gerratyfi
17074fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17084fde40d9SSimon J. Gerraty       if eval test \"x\$"$3"\" = x"no"
17094fde40d9SSimon J. Gerratythen :
171012904384SSimon J. Gerraty
1711*22619282SSimon J. Gerratyelse case e in #(
1712*22619282SSimon J. Gerraty  e) break ;;
1713*22619282SSimon J. Gerratyesac
171412904384SSimon J. Gerratyfi
1715*22619282SSimon J. Gerraty     done ;;
1716*22619282SSimon J. Gerratyesac
171712904384SSimon J. Gerratyfi
171812904384SSimon J. Gerratyeval ac_res=\$$3
17194fde40d9SSimon J. Gerraty	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17204fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_res" >&6; }
172112904384SSimon J. Gerraty  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
172212904384SSimon J. Gerraty
172312904384SSimon J. Gerraty} # ac_fn_c_find_intX_t
172412904384SSimon J. Gerraty
17253955d011SMarcel Moolenaar# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
17263955d011SMarcel Moolenaar# -------------------------------------------
17273955d011SMarcel Moolenaar# Tests whether TYPE exists after having included INCLUDES, setting cache
17283955d011SMarcel Moolenaar# variable VAR accordingly.
17293955d011SMarcel Moolenaarac_fn_c_check_type ()
17303955d011SMarcel Moolenaar{
17313955d011SMarcel Moolenaar  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17324fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17334fde40d9SSimon J. Gerratyprintf %s "checking for $2... " >&6; }
17344fde40d9SSimon J. Gerratyif eval test \${$3+y}
17354fde40d9SSimon J. Gerratythen :
17364fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
1737*22619282SSimon J. Gerratyelse case e in #(
1738*22619282SSimon J. Gerraty  e) eval "$3=no"
17393955d011SMarcel Moolenaar  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403955d011SMarcel Moolenaar/* end confdefs.h.  */
17413955d011SMarcel Moolenaar$4
17423955d011SMarcel Moolenaarint
17434fde40d9SSimon J. Gerratymain (void)
17443955d011SMarcel Moolenaar{
17453955d011SMarcel Moolenaarif (sizeof ($2))
17463955d011SMarcel Moolenaar	 return 0;
17473955d011SMarcel Moolenaar  ;
17483955d011SMarcel Moolenaar  return 0;
17493955d011SMarcel Moolenaar}
17503955d011SMarcel Moolenaar_ACEOF
17514fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
17524fde40d9SSimon J. Gerratythen :
17533955d011SMarcel Moolenaar  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17543955d011SMarcel Moolenaar/* end confdefs.h.  */
17553955d011SMarcel Moolenaar$4
17563955d011SMarcel Moolenaarint
17574fde40d9SSimon J. Gerratymain (void)
17583955d011SMarcel Moolenaar{
17593955d011SMarcel Moolenaarif (sizeof (($2)))
17603955d011SMarcel Moolenaar	    return 0;
17613955d011SMarcel Moolenaar  ;
17623955d011SMarcel Moolenaar  return 0;
17633955d011SMarcel Moolenaar}
17643955d011SMarcel Moolenaar_ACEOF
17654fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
17664fde40d9SSimon J. Gerratythen :
17673955d011SMarcel Moolenaar
1768*22619282SSimon J. Gerratyelse case e in #(
1769*22619282SSimon J. Gerraty  e) eval "$3=yes" ;;
1770*22619282SSimon J. Gerratyesac
17713955d011SMarcel Moolenaarfi
17724fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17733955d011SMarcel Moolenaarfi
1774*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1775*22619282SSimon J. Gerratyesac
17763955d011SMarcel Moolenaarfi
17773955d011SMarcel Moolenaareval ac_res=\$$3
17784fde40d9SSimon J. Gerraty	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17794fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_res" >&6; }
178049caa483SSimon J. Gerraty  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17813955d011SMarcel Moolenaar
17823955d011SMarcel Moolenaar} # ac_fn_c_check_type
17833955d011SMarcel Moolenaar
1784ac3446e9SSimon J. Gerraty# ac_fn_c_find_uintX_t LINENO BITS VAR
1785ac3446e9SSimon J. Gerraty# ------------------------------------
1786ac3446e9SSimon J. Gerraty# Finds an unsigned integer type with width BITS, setting cache variable VAR
1787ac3446e9SSimon J. Gerraty# accordingly.
1788ac3446e9SSimon J. Gerratyac_fn_c_find_uintX_t ()
1789ac3446e9SSimon J. Gerraty{
1790ac3446e9SSimon J. Gerraty  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17914fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
17924fde40d9SSimon J. Gerratyprintf %s "checking for uint$2_t... " >&6; }
17934fde40d9SSimon J. Gerratyif eval test \${$3+y}
17944fde40d9SSimon J. Gerratythen :
17954fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
1796*22619282SSimon J. Gerratyelse case e in #(
1797*22619282SSimon J. Gerraty  e) eval "$3=no"
179849caa483SSimon J. Gerraty     # Order is important - never check a type that is potentially smaller
179949caa483SSimon J. Gerraty     # than half of the expected target width.
1800ac3446e9SSimon J. Gerraty     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1801ac3446e9SSimon J. Gerraty	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1802ac3446e9SSimon J. Gerraty       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803ac3446e9SSimon J. Gerraty/* end confdefs.h.  */
1804ac3446e9SSimon J. Gerraty$ac_includes_default
1805ac3446e9SSimon J. Gerratyint
18064fde40d9SSimon J. Gerratymain (void)
1807ac3446e9SSimon J. Gerraty{
180849caa483SSimon J. Gerratystatic int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
180949caa483SSimon J. Gerratytest_array [0] = 0;
181049caa483SSimon J. Gerratyreturn test_array [0];
1811ac3446e9SSimon J. Gerraty
1812ac3446e9SSimon J. Gerraty  ;
1813ac3446e9SSimon J. Gerraty  return 0;
1814ac3446e9SSimon J. Gerraty}
1815ac3446e9SSimon J. Gerraty_ACEOF
18164fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
18174fde40d9SSimon J. Gerratythen :
1818ac3446e9SSimon J. Gerraty  case $ac_type in #(
1819ac3446e9SSimon J. Gerraty  uint$2_t) :
1820ac3446e9SSimon J. Gerraty    eval "$3=yes" ;; #(
1821ac3446e9SSimon J. Gerraty  *) :
1822ac3446e9SSimon J. Gerraty    eval "$3=\$ac_type" ;;
1823ac3446e9SSimon J. Gerratyesac
1824ac3446e9SSimon J. Gerratyfi
18254fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18264fde40d9SSimon J. Gerraty       if eval test \"x\$"$3"\" = x"no"
18274fde40d9SSimon J. Gerratythen :
1828ac3446e9SSimon J. Gerraty
1829*22619282SSimon J. Gerratyelse case e in #(
1830*22619282SSimon J. Gerraty  e) break ;;
1831*22619282SSimon J. Gerratyesac
1832ac3446e9SSimon J. Gerratyfi
1833*22619282SSimon J. Gerraty     done ;;
1834*22619282SSimon J. Gerratyesac
1835ac3446e9SSimon J. Gerratyfi
1836ac3446e9SSimon J. Gerratyeval ac_res=\$$3
18374fde40d9SSimon J. Gerraty	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18384fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_res" >&6; }
183949caa483SSimon J. Gerraty  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840ac3446e9SSimon J. Gerraty
1841ac3446e9SSimon J. Gerraty} # ac_fn_c_find_uintX_t
1842ac3446e9SSimon J. Gerraty
18434fde40d9SSimon J. Gerraty# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
18444fde40d9SSimon J. Gerraty# ------------------------------------------------------------------
184549caa483SSimon J. Gerraty# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
18464fde40d9SSimon J. Gerraty# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
18474fde40d9SSimon J. Gerratyac_fn_check_decl ()
18483955d011SMarcel Moolenaar{
18493955d011SMarcel Moolenaar  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
185049caa483SSimon J. Gerraty  as_decl_name=`echo $2|sed 's/ *(.*//'`
18514fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
18524fde40d9SSimon J. Gerratyprintf %s "checking whether $as_decl_name is declared... " >&6; }
18534fde40d9SSimon J. Gerratyif eval test \${$3+y}
18544fde40d9SSimon J. Gerratythen :
18554fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
1856*22619282SSimon J. Gerratyelse case e in #(
1857*22619282SSimon J. Gerraty  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
18584fde40d9SSimon J. Gerraty  eval ac_save_FLAGS=\$$6
18594fde40d9SSimon J. Gerraty  as_fn_append $6 " $5"
18603955d011SMarcel Moolenaar  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613955d011SMarcel Moolenaar/* end confdefs.h.  */
18623955d011SMarcel Moolenaar$4
18633955d011SMarcel Moolenaarint
18644fde40d9SSimon J. Gerratymain (void)
18653955d011SMarcel Moolenaar{
186649caa483SSimon J. Gerraty#ifndef $as_decl_name
186749caa483SSimon J. Gerraty#ifdef __cplusplus
186849caa483SSimon J. Gerraty  (void) $as_decl_use;
186949caa483SSimon J. Gerraty#else
187049caa483SSimon J. Gerraty  (void) $as_decl_name;
187149caa483SSimon J. Gerraty#endif
18723955d011SMarcel Moolenaar#endif
18733955d011SMarcel Moolenaar
18743955d011SMarcel Moolenaar  ;
18753955d011SMarcel Moolenaar  return 0;
18763955d011SMarcel Moolenaar}
18773955d011SMarcel Moolenaar_ACEOF
18784fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
18794fde40d9SSimon J. Gerratythen :
18803955d011SMarcel Moolenaar  eval "$3=yes"
1881*22619282SSimon J. Gerratyelse case e in #(
1882*22619282SSimon J. Gerraty  e) eval "$3=no" ;;
1883*22619282SSimon J. Gerratyesac
18843955d011SMarcel Moolenaarfi
18854fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18864fde40d9SSimon J. Gerraty  eval $6=\$ac_save_FLAGS
1887*22619282SSimon J. Gerraty ;;
1888*22619282SSimon J. Gerratyesac
18893955d011SMarcel Moolenaarfi
18903955d011SMarcel Moolenaareval ac_res=\$$3
18914fde40d9SSimon J. Gerraty	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18924fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_res" >&6; }
189349caa483SSimon J. Gerraty  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18943955d011SMarcel Moolenaar
18954fde40d9SSimon J. Gerraty} # ac_fn_check_decl
18963955d011SMarcel Moolenaar
18973955d011SMarcel Moolenaar# ac_fn_c_check_func LINENO FUNC VAR
18983955d011SMarcel Moolenaar# ----------------------------------
18993955d011SMarcel Moolenaar# Tests whether FUNC exists, setting the cache variable VAR accordingly
19003955d011SMarcel Moolenaarac_fn_c_check_func ()
19013955d011SMarcel Moolenaar{
19023955d011SMarcel Moolenaar  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19034fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19044fde40d9SSimon J. Gerratyprintf %s "checking for $2... " >&6; }
19054fde40d9SSimon J. Gerratyif eval test \${$3+y}
19064fde40d9SSimon J. Gerratythen :
19074fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
1908*22619282SSimon J. Gerratyelse case e in #(
1909*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19103955d011SMarcel Moolenaar/* end confdefs.h.  */
19113955d011SMarcel Moolenaar/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
19123955d011SMarcel Moolenaar   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19133955d011SMarcel Moolenaar#define $2 innocuous_$2
19143955d011SMarcel Moolenaar
19153955d011SMarcel Moolenaar/* System header to define __stub macros and hopefully few prototypes,
1916*22619282SSimon J. Gerraty   which can conflict with char $2 (void); below.  */
19173955d011SMarcel Moolenaar
19183955d011SMarcel Moolenaar#include <limits.h>
19193955d011SMarcel Moolenaar#undef $2
19203955d011SMarcel Moolenaar
19213955d011SMarcel Moolenaar/* Override any GCC internal prototype to avoid an error.
19223955d011SMarcel Moolenaar   Use char because int might match the return type of a GCC
19233955d011SMarcel Moolenaar   builtin and then its argument prototype would still apply.  */
19243955d011SMarcel Moolenaar#ifdef __cplusplus
19253955d011SMarcel Moolenaarextern "C"
19263955d011SMarcel Moolenaar#endif
1927*22619282SSimon J. Gerratychar $2 (void);
19283955d011SMarcel Moolenaar/* The GNU C library defines this for functions which it implements
19293955d011SMarcel Moolenaar    to always fail with ENOSYS.  Some functions are actually named
19303955d011SMarcel Moolenaar    something starting with __ and the normal name is an alias.  */
19313955d011SMarcel Moolenaar#if defined __stub_$2 || defined __stub___$2
19323955d011SMarcel Moolenaarchoke me
19333955d011SMarcel Moolenaar#endif
19343955d011SMarcel Moolenaar
19353955d011SMarcel Moolenaarint
19364fde40d9SSimon J. Gerratymain (void)
19373955d011SMarcel Moolenaar{
19383955d011SMarcel Moolenaarreturn $2 ();
19393955d011SMarcel Moolenaar  ;
19403955d011SMarcel Moolenaar  return 0;
19413955d011SMarcel Moolenaar}
19423955d011SMarcel Moolenaar_ACEOF
19434fde40d9SSimon J. Gerratyif ac_fn_c_try_link "$LINENO"
19444fde40d9SSimon J. Gerratythen :
19453955d011SMarcel Moolenaar  eval "$3=yes"
1946*22619282SSimon J. Gerratyelse case e in #(
1947*22619282SSimon J. Gerraty  e) eval "$3=no" ;;
1948*22619282SSimon J. Gerratyesac
19493955d011SMarcel Moolenaarfi
19504fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam \
1951*22619282SSimon J. Gerraty    conftest$ac_exeext conftest.$ac_ext ;;
1952*22619282SSimon J. Gerratyesac
19533955d011SMarcel Moolenaarfi
19543955d011SMarcel Moolenaareval ac_res=\$$3
19554fde40d9SSimon J. Gerraty	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19564fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_res" >&6; }
195749caa483SSimon J. Gerraty  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19583955d011SMarcel Moolenaar
19593955d011SMarcel Moolenaar} # ac_fn_c_check_func
19604fde40d9SSimon J. Gerratyac_configure_args_raw=
19614fde40d9SSimon J. Gerratyfor ac_arg
19624fde40d9SSimon J. Gerratydo
19634fde40d9SSimon J. Gerraty  case $ac_arg in
19644fde40d9SSimon J. Gerraty  *\'*)
19654fde40d9SSimon J. Gerraty    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19664fde40d9SSimon J. Gerraty  esac
19674fde40d9SSimon J. Gerraty  as_fn_append ac_configure_args_raw " '$ac_arg'"
19684fde40d9SSimon J. Gerratydone
19693955d011SMarcel Moolenaar
19704fde40d9SSimon J. Gerratycase $ac_configure_args_raw in
19714fde40d9SSimon J. Gerraty  *$as_nl*)
19724fde40d9SSimon J. Gerraty    ac_safe_unquote= ;;
19734fde40d9SSimon J. Gerraty  *)
19744fde40d9SSimon J. Gerraty    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
19754fde40d9SSimon J. Gerraty    ac_unsafe_a="$ac_unsafe_z#~"
19764fde40d9SSimon J. Gerraty    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
19774fde40d9SSimon J. Gerraty    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
19784fde40d9SSimon J. Gerratyesac
19793955d011SMarcel Moolenaar
19803955d011SMarcel Moolenaarcat >config.log <<_ACEOF
19813955d011SMarcel MoolenaarThis file contains any messages produced by compilers while
19823955d011SMarcel Moolenaarrunning configure, to aid debugging if configure makes a mistake.
19833955d011SMarcel Moolenaar
1984*22619282SSimon J. GerratyIt was created by bmake $as_me 20240711, which was
1985*22619282SSimon J. Gerratygenerated by GNU Autoconf 2.72.  Invocation command line was
19863955d011SMarcel Moolenaar
19874fde40d9SSimon J. Gerraty  $ $0$ac_configure_args_raw
19883955d011SMarcel Moolenaar
19893955d011SMarcel Moolenaar_ACEOF
19903955d011SMarcel Moolenaarexec 5>>config.log
19913955d011SMarcel Moolenaar{
19923955d011SMarcel Moolenaarcat <<_ASUNAME
19933955d011SMarcel Moolenaar## --------- ##
19943955d011SMarcel Moolenaar## Platform. ##
19953955d011SMarcel Moolenaar## --------- ##
19963955d011SMarcel Moolenaar
19973955d011SMarcel Moolenaarhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
19983955d011SMarcel Moolenaaruname -m = `(uname -m) 2>/dev/null || echo unknown`
19993955d011SMarcel Moolenaaruname -r = `(uname -r) 2>/dev/null || echo unknown`
20003955d011SMarcel Moolenaaruname -s = `(uname -s) 2>/dev/null || echo unknown`
20013955d011SMarcel Moolenaaruname -v = `(uname -v) 2>/dev/null || echo unknown`
20023955d011SMarcel Moolenaar
20033955d011SMarcel Moolenaar/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
20043955d011SMarcel Moolenaar/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
20053955d011SMarcel Moolenaar
20063955d011SMarcel Moolenaar/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
20073955d011SMarcel Moolenaar/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
20083955d011SMarcel Moolenaar/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
20093955d011SMarcel Moolenaar/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
20103955d011SMarcel Moolenaar/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
20113955d011SMarcel Moolenaar/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
20123955d011SMarcel Moolenaar/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
20133955d011SMarcel Moolenaar
20143955d011SMarcel Moolenaar_ASUNAME
20153955d011SMarcel Moolenaar
20163955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20173955d011SMarcel Moolenaarfor as_dir in $PATH
20183955d011SMarcel Moolenaardo
20193955d011SMarcel Moolenaar  IFS=$as_save_IFS
20204fde40d9SSimon J. Gerraty  case $as_dir in #(((
20214fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
20224fde40d9SSimon J. Gerraty    */) ;;
20234fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
20244fde40d9SSimon J. Gerraty  esac
20254fde40d9SSimon J. Gerraty    printf "%s\n" "PATH: $as_dir"
20263955d011SMarcel Moolenaar  done
20273955d011SMarcel MoolenaarIFS=$as_save_IFS
20283955d011SMarcel Moolenaar
20293955d011SMarcel Moolenaar} >&5
20303955d011SMarcel Moolenaar
20313955d011SMarcel Moolenaarcat >&5 <<_ACEOF
20323955d011SMarcel Moolenaar
20333955d011SMarcel Moolenaar
20343955d011SMarcel Moolenaar## ----------- ##
20353955d011SMarcel Moolenaar## Core tests. ##
20363955d011SMarcel Moolenaar## ----------- ##
20373955d011SMarcel Moolenaar
20383955d011SMarcel Moolenaar_ACEOF
20393955d011SMarcel Moolenaar
20403955d011SMarcel Moolenaar
20413955d011SMarcel Moolenaar# Keep a trace of the command line.
20423955d011SMarcel Moolenaar# Strip out --no-create and --no-recursion so they do not pile up.
20433955d011SMarcel Moolenaar# Strip out --silent because we don't want to record it for future runs.
20443955d011SMarcel Moolenaar# Also quote any args containing shell meta-characters.
20453955d011SMarcel Moolenaar# Make two passes to allow for proper duplicate-argument suppression.
20463955d011SMarcel Moolenaarac_configure_args=
20473955d011SMarcel Moolenaarac_configure_args0=
20483955d011SMarcel Moolenaarac_configure_args1=
20493955d011SMarcel Moolenaarac_must_keep_next=false
20503955d011SMarcel Moolenaarfor ac_pass in 1 2
20513955d011SMarcel Moolenaardo
20523955d011SMarcel Moolenaar  for ac_arg
20533955d011SMarcel Moolenaar  do
20543955d011SMarcel Moolenaar    case $ac_arg in
20553955d011SMarcel Moolenaar    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
20563955d011SMarcel Moolenaar    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20573955d011SMarcel Moolenaar    | -silent | --silent | --silen | --sile | --sil)
20583955d011SMarcel Moolenaar      continue ;;
20593955d011SMarcel Moolenaar    *\'*)
20604fde40d9SSimon J. Gerraty      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20613955d011SMarcel Moolenaar    esac
20623955d011SMarcel Moolenaar    case $ac_pass in
20633955d011SMarcel Moolenaar    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
20643955d011SMarcel Moolenaar    2)
20653955d011SMarcel Moolenaar      as_fn_append ac_configure_args1 " '$ac_arg'"
20663955d011SMarcel Moolenaar      if test $ac_must_keep_next = true; then
20673955d011SMarcel Moolenaar	ac_must_keep_next=false # Got value, back to normal.
20683955d011SMarcel Moolenaar      else
20693955d011SMarcel Moolenaar	case $ac_arg in
20703955d011SMarcel Moolenaar	  *=* | --config-cache | -C | -disable-* | --disable-* \
20713955d011SMarcel Moolenaar	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
20723955d011SMarcel Moolenaar	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
20733955d011SMarcel Moolenaar	  | -with-* | --with-* | -without-* | --without-* | --x)
20743955d011SMarcel Moolenaar	    case "$ac_configure_args0 " in
20753955d011SMarcel Moolenaar	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
20763955d011SMarcel Moolenaar	    esac
20773955d011SMarcel Moolenaar	    ;;
20783955d011SMarcel Moolenaar	  -* ) ac_must_keep_next=true ;;
20793955d011SMarcel Moolenaar	esac
20803955d011SMarcel Moolenaar      fi
20813955d011SMarcel Moolenaar      as_fn_append ac_configure_args " '$ac_arg'"
20823955d011SMarcel Moolenaar      ;;
20833955d011SMarcel Moolenaar    esac
20843955d011SMarcel Moolenaar  done
20853955d011SMarcel Moolenaardone
20863955d011SMarcel Moolenaar{ ac_configure_args0=; unset ac_configure_args0;}
20873955d011SMarcel Moolenaar{ ac_configure_args1=; unset ac_configure_args1;}
20883955d011SMarcel Moolenaar
20893955d011SMarcel Moolenaar# When interrupted or exit'd, cleanup temporary files, and complete
20903955d011SMarcel Moolenaar# config.log.  We remove comments because anyway the quotes in there
20913955d011SMarcel Moolenaar# would cause problems or look ugly.
20923955d011SMarcel Moolenaar# WARNING: Use '\'' to represent an apostrophe within the trap.
20933955d011SMarcel Moolenaar# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
20943955d011SMarcel Moolenaartrap 'exit_status=$?
20954fde40d9SSimon J. Gerraty  # Sanitize IFS.
20964fde40d9SSimon J. Gerraty  IFS=" ""	$as_nl"
20973955d011SMarcel Moolenaar  # Save into config.log some information that might help in debugging.
20983955d011SMarcel Moolenaar  {
20993955d011SMarcel Moolenaar    echo
21003955d011SMarcel Moolenaar
21014fde40d9SSimon J. Gerraty    printf "%s\n" "## ---------------- ##
21023955d011SMarcel Moolenaar## Cache variables. ##
210349caa483SSimon J. Gerraty## ---------------- ##"
21043955d011SMarcel Moolenaar    echo
21053955d011SMarcel Moolenaar    # The following way of writing the cache mishandles newlines in values,
21063955d011SMarcel Moolenaar(
21073955d011SMarcel Moolenaar  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
21083955d011SMarcel Moolenaar    eval ac_val=\$$ac_var
21093955d011SMarcel Moolenaar    case $ac_val in #(
21103955d011SMarcel Moolenaar    *${as_nl}*)
21113955d011SMarcel Moolenaar      case $ac_var in #(
21124fde40d9SSimon J. Gerraty      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21134fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21143955d011SMarcel Moolenaar      esac
21153955d011SMarcel Moolenaar      case $ac_var in #(
21163955d011SMarcel Moolenaar      _ | IFS | as_nl) ;; #(
21173955d011SMarcel Moolenaar      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21183955d011SMarcel Moolenaar      *) { eval $ac_var=; unset $ac_var;} ;;
21193955d011SMarcel Moolenaar      esac ;;
21203955d011SMarcel Moolenaar    esac
21213955d011SMarcel Moolenaar  done
21223955d011SMarcel Moolenaar  (set) 2>&1 |
21233955d011SMarcel Moolenaar    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
21243955d011SMarcel Moolenaar    *${as_nl}ac_space=\ *)
21253955d011SMarcel Moolenaar      sed -n \
21263955d011SMarcel Moolenaar	"s/'\''/'\''\\\\'\'''\''/g;
21273955d011SMarcel Moolenaar	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
21283955d011SMarcel Moolenaar      ;; #(
21293955d011SMarcel Moolenaar    *)
21303955d011SMarcel Moolenaar      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21313955d011SMarcel Moolenaar      ;;
21323955d011SMarcel Moolenaar    esac |
21333955d011SMarcel Moolenaar    sort
21343955d011SMarcel Moolenaar)
21353955d011SMarcel Moolenaar    echo
21363955d011SMarcel Moolenaar
21374fde40d9SSimon J. Gerraty    printf "%s\n" "## ----------------- ##
21383955d011SMarcel Moolenaar## Output variables. ##
213949caa483SSimon J. Gerraty## ----------------- ##"
21403955d011SMarcel Moolenaar    echo
21413955d011SMarcel Moolenaar    for ac_var in $ac_subst_vars
21423955d011SMarcel Moolenaar    do
21433955d011SMarcel Moolenaar      eval ac_val=\$$ac_var
21443955d011SMarcel Moolenaar      case $ac_val in
21454fde40d9SSimon J. Gerraty      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21463955d011SMarcel Moolenaar      esac
21474fde40d9SSimon J. Gerraty      printf "%s\n" "$ac_var='\''$ac_val'\''"
21483955d011SMarcel Moolenaar    done | sort
21493955d011SMarcel Moolenaar    echo
21503955d011SMarcel Moolenaar
21513955d011SMarcel Moolenaar    if test -n "$ac_subst_files"; then
21524fde40d9SSimon J. Gerraty      printf "%s\n" "## ------------------- ##
21533955d011SMarcel Moolenaar## File substitutions. ##
215449caa483SSimon J. Gerraty## ------------------- ##"
21553955d011SMarcel Moolenaar      echo
21563955d011SMarcel Moolenaar      for ac_var in $ac_subst_files
21573955d011SMarcel Moolenaar      do
21583955d011SMarcel Moolenaar	eval ac_val=\$$ac_var
21593955d011SMarcel Moolenaar	case $ac_val in
21604fde40d9SSimon J. Gerraty	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21613955d011SMarcel Moolenaar	esac
21624fde40d9SSimon J. Gerraty	printf "%s\n" "$ac_var='\''$ac_val'\''"
21633955d011SMarcel Moolenaar      done | sort
21643955d011SMarcel Moolenaar      echo
21653955d011SMarcel Moolenaar    fi
21663955d011SMarcel Moolenaar
21673955d011SMarcel Moolenaar    if test -s confdefs.h; then
21684fde40d9SSimon J. Gerraty      printf "%s\n" "## ----------- ##
21693955d011SMarcel Moolenaar## confdefs.h. ##
217049caa483SSimon J. Gerraty## ----------- ##"
21713955d011SMarcel Moolenaar      echo
21723955d011SMarcel Moolenaar      cat confdefs.h
21733955d011SMarcel Moolenaar      echo
21743955d011SMarcel Moolenaar    fi
21753955d011SMarcel Moolenaar    test "$ac_signal" != 0 &&
21764fde40d9SSimon J. Gerraty      printf "%s\n" "$as_me: caught signal $ac_signal"
21774fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me: exit $exit_status"
21783955d011SMarcel Moolenaar  } >&5
21793955d011SMarcel Moolenaar  rm -f core *.core core.conftest.* &&
21803955d011SMarcel Moolenaar    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
21813955d011SMarcel Moolenaar    exit $exit_status
21823955d011SMarcel Moolenaar' 0
21833955d011SMarcel Moolenaarfor ac_signal in 1 2 13 15; do
21843955d011SMarcel Moolenaar  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
21853955d011SMarcel Moolenaardone
21863955d011SMarcel Moolenaarac_signal=0
21873955d011SMarcel Moolenaar
21883955d011SMarcel Moolenaar# confdefs.h avoids OS command line length limits that DEFS can exceed.
21893955d011SMarcel Moolenaarrm -f -r conftest* confdefs.h
21903955d011SMarcel Moolenaar
21914fde40d9SSimon J. Gerratyprintf "%s\n" "/* confdefs.h */" > confdefs.h
21923955d011SMarcel Moolenaar
21933955d011SMarcel Moolenaar# Predefined preprocessor variables.
21943955d011SMarcel Moolenaar
21954fde40d9SSimon J. Gerratyprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
21963955d011SMarcel Moolenaar
21974fde40d9SSimon J. Gerratyprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
21983955d011SMarcel Moolenaar
21994fde40d9SSimon J. Gerratyprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
22003955d011SMarcel Moolenaar
22014fde40d9SSimon J. Gerratyprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
22023955d011SMarcel Moolenaar
22034fde40d9SSimon J. Gerratyprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
22043955d011SMarcel Moolenaar
22054fde40d9SSimon J. Gerratyprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
22063955d011SMarcel Moolenaar
22073955d011SMarcel Moolenaar
22083955d011SMarcel Moolenaar# Let the site file select an alternate cache file if it wants to.
22093955d011SMarcel Moolenaar# Prefer an explicitly selected file to automatically selected ones.
22103955d011SMarcel Moolenaarif test -n "$CONFIG_SITE"; then
22114fde40d9SSimon J. Gerraty  ac_site_files="$CONFIG_SITE"
22123955d011SMarcel Moolenaarelif test "x$prefix" != xNONE; then
22134fde40d9SSimon J. Gerraty  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
22143955d011SMarcel Moolenaarelse
22154fde40d9SSimon J. Gerraty  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
22163955d011SMarcel Moolenaarfi
22174fde40d9SSimon J. Gerraty
22184fde40d9SSimon J. Gerratyfor ac_site_file in $ac_site_files
22193955d011SMarcel Moolenaardo
22204fde40d9SSimon J. Gerraty  case $ac_site_file in #(
22214fde40d9SSimon J. Gerraty  */*) :
22224fde40d9SSimon J. Gerraty     ;; #(
22234fde40d9SSimon J. Gerraty  *) :
22244fde40d9SSimon J. Gerraty    ac_site_file=./$ac_site_file ;;
22254fde40d9SSimon J. Gerratyesac
22264fde40d9SSimon J. Gerraty  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
22274fde40d9SSimon J. Gerraty    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
22284fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
22293955d011SMarcel Moolenaar    sed 's/^/| /' "$ac_site_file" >&5
223049caa483SSimon J. Gerraty    . "$ac_site_file" \
2231*22619282SSimon J. Gerraty      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2232*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
223349caa483SSimon J. Gerratyas_fn_error $? "failed to load site script $ac_site_file
2234*22619282SSimon J. GerratySee 'config.log' for more details" "$LINENO" 5; }
22353955d011SMarcel Moolenaar  fi
22363955d011SMarcel Moolenaardone
22373955d011SMarcel Moolenaar
22383955d011SMarcel Moolenaarif test -r "$cache_file"; then
223949caa483SSimon J. Gerraty  # Some versions of bash will fail to source /dev/null (special files
224049caa483SSimon J. Gerraty  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
224149caa483SSimon J. Gerraty  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
22424fde40d9SSimon J. Gerraty    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
22434fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
22443955d011SMarcel Moolenaar    case $cache_file in
22453955d011SMarcel Moolenaar      [\\/]* | ?:[\\/]* ) . "$cache_file";;
22463955d011SMarcel Moolenaar      *)                      . "./$cache_file";;
22473955d011SMarcel Moolenaar    esac
22483955d011SMarcel Moolenaar  fi
22493955d011SMarcel Moolenaarelse
22504fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
22514fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
22523955d011SMarcel Moolenaar  >$cache_file
22533955d011SMarcel Moolenaarfi
22543955d011SMarcel Moolenaar
22554fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
22564fde40d9SSimon J. Gerraty# Test code for whether the C compiler supports C89 (global declarations)
22574fde40d9SSimon J. Gerratyac_c_conftest_c89_globals='
22584fde40d9SSimon J. Gerraty/* Does the compiler advertise C89 conformance?
22594fde40d9SSimon J. Gerraty   Do not test the value of __STDC__, because some compilers set it to 0
22604fde40d9SSimon J. Gerraty   while being otherwise adequately conformant. */
22614fde40d9SSimon J. Gerraty#if !defined __STDC__
22624fde40d9SSimon J. Gerraty# error "Compiler does not advertise C89 conformance"
22634fde40d9SSimon J. Gerraty#endif
22644fde40d9SSimon J. Gerraty
22654fde40d9SSimon J. Gerraty#include <stddef.h>
22664fde40d9SSimon J. Gerraty#include <stdarg.h>
22674fde40d9SSimon J. Gerratystruct stat;
22684fde40d9SSimon J. Gerraty/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
22694fde40d9SSimon J. Gerratystruct buf { int x; };
22704fde40d9SSimon J. Gerratystruct buf * (*rcsopen) (struct buf *, struct stat *, int);
2271*22619282SSimon J. Gerratystatic char *e (char **p, int i)
22724fde40d9SSimon J. Gerraty{
22734fde40d9SSimon J. Gerraty  return p[i];
22744fde40d9SSimon J. Gerraty}
22754fde40d9SSimon J. Gerratystatic char *f (char * (*g) (char **, int), char **p, ...)
22764fde40d9SSimon J. Gerraty{
22774fde40d9SSimon J. Gerraty  char *s;
22784fde40d9SSimon J. Gerraty  va_list v;
22794fde40d9SSimon J. Gerraty  va_start (v,p);
22804fde40d9SSimon J. Gerraty  s = g (p, va_arg (v,int));
22814fde40d9SSimon J. Gerraty  va_end (v);
22824fde40d9SSimon J. Gerraty  return s;
22834fde40d9SSimon J. Gerraty}
22844fde40d9SSimon J. Gerraty
2285*22619282SSimon J. Gerraty/* C89 style stringification. */
2286*22619282SSimon J. Gerraty#define noexpand_stringify(a) #a
2287*22619282SSimon J. Gerratyconst char *stringified = noexpand_stringify(arbitrary+token=sequence);
2288*22619282SSimon J. Gerraty
2289*22619282SSimon J. Gerraty/* C89 style token pasting.  Exercises some of the corner cases that
2290*22619282SSimon J. Gerraty   e.g. old MSVC gets wrong, but not very hard. */
2291*22619282SSimon J. Gerraty#define noexpand_concat(a,b) a##b
2292*22619282SSimon J. Gerraty#define expand_concat(a,b) noexpand_concat(a,b)
2293*22619282SSimon J. Gerratyextern int vA;
2294*22619282SSimon J. Gerratyextern int vbee;
2295*22619282SSimon J. Gerraty#define aye A
2296*22619282SSimon J. Gerraty#define bee B
2297*22619282SSimon J. Gerratyint *pvA = &expand_concat(v,aye);
2298*22619282SSimon J. Gerratyint *pvbee = &noexpand_concat(v,bee);
2299*22619282SSimon J. Gerraty
23004fde40d9SSimon J. Gerraty/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
23014fde40d9SSimon J. Gerraty   function prototypes and stuff, but not \xHH hex character constants.
23024fde40d9SSimon J. Gerraty   These do not provoke an error unfortunately, instead are silently treated
23034fde40d9SSimon J. Gerraty   as an "x".  The following induces an error, until -std is added to get
23044fde40d9SSimon J. Gerraty   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
23054fde40d9SSimon J. Gerraty   array size at least.  It is necessary to write \x00 == 0 to get something
23064fde40d9SSimon J. Gerraty   that is true only with -std.  */
23074fde40d9SSimon J. Gerratyint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
23084fde40d9SSimon J. Gerraty
23094fde40d9SSimon J. Gerraty/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
23104fde40d9SSimon J. Gerraty   inside strings and character constants.  */
23114fde40d9SSimon J. Gerraty#define FOO(x) '\''x'\''
23124fde40d9SSimon J. Gerratyint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
23134fde40d9SSimon J. Gerraty
23144fde40d9SSimon J. Gerratyint test (int i, double x);
23154fde40d9SSimon J. Gerratystruct s1 {int (*f) (int a);};
23164fde40d9SSimon J. Gerratystruct s2 {int (*f) (double a);};
23174fde40d9SSimon J. Gerratyint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
23184fde40d9SSimon J. Gerraty               int, int);'
23194fde40d9SSimon J. Gerraty
23204fde40d9SSimon J. Gerraty# Test code for whether the C compiler supports C89 (body of main).
23214fde40d9SSimon J. Gerratyac_c_conftest_c89_main='
23224fde40d9SSimon J. Gerratyok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
23234fde40d9SSimon J. Gerraty'
23244fde40d9SSimon J. Gerraty
23254fde40d9SSimon J. Gerraty# Test code for whether the C compiler supports C99 (global declarations)
23264fde40d9SSimon J. Gerratyac_c_conftest_c99_globals='
2327*22619282SSimon J. Gerraty/* Does the compiler advertise C99 conformance? */
23284fde40d9SSimon J. Gerraty#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
23294fde40d9SSimon J. Gerraty# error "Compiler does not advertise C99 conformance"
23304fde40d9SSimon J. Gerraty#endif
23314fde40d9SSimon J. Gerraty
2332*22619282SSimon J. Gerraty// See if C++-style comments work.
2333*22619282SSimon J. Gerraty
23344fde40d9SSimon J. Gerraty#include <stdbool.h>
23354fde40d9SSimon J. Gerratyextern int puts (const char *);
23364fde40d9SSimon J. Gerratyextern int printf (const char *, ...);
23374fde40d9SSimon J. Gerratyextern int dprintf (int, const char *, ...);
23384fde40d9SSimon J. Gerratyextern void *malloc (size_t);
2339*22619282SSimon J. Gerratyextern void free (void *);
23404fde40d9SSimon J. Gerraty
23414fde40d9SSimon J. Gerraty// Check varargs macros.  These examples are taken from C99 6.10.3.5.
23424fde40d9SSimon J. Gerraty// dprintf is used instead of fprintf to avoid needing to declare
23434fde40d9SSimon J. Gerraty// FILE and stderr.
23444fde40d9SSimon J. Gerraty#define debug(...) dprintf (2, __VA_ARGS__)
23454fde40d9SSimon J. Gerraty#define showlist(...) puts (#__VA_ARGS__)
23464fde40d9SSimon J. Gerraty#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
23474fde40d9SSimon J. Gerratystatic void
23484fde40d9SSimon J. Gerratytest_varargs_macros (void)
23494fde40d9SSimon J. Gerraty{
23504fde40d9SSimon J. Gerraty  int x = 1234;
23514fde40d9SSimon J. Gerraty  int y = 5678;
23524fde40d9SSimon J. Gerraty  debug ("Flag");
23534fde40d9SSimon J. Gerraty  debug ("X = %d\n", x);
23544fde40d9SSimon J. Gerraty  showlist (The first, second, and third items.);
23554fde40d9SSimon J. Gerraty  report (x>y, "x is %d but y is %d", x, y);
23564fde40d9SSimon J. Gerraty}
23574fde40d9SSimon J. Gerraty
23584fde40d9SSimon J. Gerraty// Check long long types.
23594fde40d9SSimon J. Gerraty#define BIG64 18446744073709551615ull
23604fde40d9SSimon J. Gerraty#define BIG32 4294967295ul
23614fde40d9SSimon J. Gerraty#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
23624fde40d9SSimon J. Gerraty#if !BIG_OK
23634fde40d9SSimon J. Gerraty  #error "your preprocessor is broken"
23644fde40d9SSimon J. Gerraty#endif
23654fde40d9SSimon J. Gerraty#if BIG_OK
23664fde40d9SSimon J. Gerraty#else
23674fde40d9SSimon J. Gerraty  #error "your preprocessor is broken"
23684fde40d9SSimon J. Gerraty#endif
23694fde40d9SSimon J. Gerratystatic long long int bignum = -9223372036854775807LL;
23704fde40d9SSimon J. Gerratystatic unsigned long long int ubignum = BIG64;
23714fde40d9SSimon J. Gerraty
23724fde40d9SSimon J. Gerratystruct incomplete_array
23734fde40d9SSimon J. Gerraty{
23744fde40d9SSimon J. Gerraty  int datasize;
23754fde40d9SSimon J. Gerraty  double data[];
23764fde40d9SSimon J. Gerraty};
23774fde40d9SSimon J. Gerraty
23784fde40d9SSimon J. Gerratystruct named_init {
23794fde40d9SSimon J. Gerraty  int number;
23804fde40d9SSimon J. Gerraty  const wchar_t *name;
23814fde40d9SSimon J. Gerraty  double average;
23824fde40d9SSimon J. Gerraty};
23834fde40d9SSimon J. Gerraty
23844fde40d9SSimon J. Gerratytypedef const char *ccp;
23854fde40d9SSimon J. Gerraty
23864fde40d9SSimon J. Gerratystatic inline int
23874fde40d9SSimon J. Gerratytest_restrict (ccp restrict text)
23884fde40d9SSimon J. Gerraty{
23894fde40d9SSimon J. Gerraty  // Iterate through items via the restricted pointer.
23904fde40d9SSimon J. Gerraty  // Also check for declarations in for loops.
23914fde40d9SSimon J. Gerraty  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
23924fde40d9SSimon J. Gerraty    continue;
23934fde40d9SSimon J. Gerraty  return 0;
23944fde40d9SSimon J. Gerraty}
23954fde40d9SSimon J. Gerraty
23964fde40d9SSimon J. Gerraty// Check varargs and va_copy.
23974fde40d9SSimon J. Gerratystatic bool
23984fde40d9SSimon J. Gerratytest_varargs (const char *format, ...)
23994fde40d9SSimon J. Gerraty{
24004fde40d9SSimon J. Gerraty  va_list args;
24014fde40d9SSimon J. Gerraty  va_start (args, format);
24024fde40d9SSimon J. Gerraty  va_list args_copy;
24034fde40d9SSimon J. Gerraty  va_copy (args_copy, args);
24044fde40d9SSimon J. Gerraty
24054fde40d9SSimon J. Gerraty  const char *str = "";
24064fde40d9SSimon J. Gerraty  int number = 0;
24074fde40d9SSimon J. Gerraty  float fnumber = 0;
24084fde40d9SSimon J. Gerraty
24094fde40d9SSimon J. Gerraty  while (*format)
24104fde40d9SSimon J. Gerraty    {
24114fde40d9SSimon J. Gerraty      switch (*format++)
24124fde40d9SSimon J. Gerraty	{
24134fde40d9SSimon J. Gerraty	case '\''s'\'': // string
24144fde40d9SSimon J. Gerraty	  str = va_arg (args_copy, const char *);
24154fde40d9SSimon J. Gerraty	  break;
24164fde40d9SSimon J. Gerraty	case '\''d'\'': // int
24174fde40d9SSimon J. Gerraty	  number = va_arg (args_copy, int);
24184fde40d9SSimon J. Gerraty	  break;
24194fde40d9SSimon J. Gerraty	case '\''f'\'': // float
24204fde40d9SSimon J. Gerraty	  fnumber = va_arg (args_copy, double);
24214fde40d9SSimon J. Gerraty	  break;
24224fde40d9SSimon J. Gerraty	default:
24234fde40d9SSimon J. Gerraty	  break;
24244fde40d9SSimon J. Gerraty	}
24254fde40d9SSimon J. Gerraty    }
24264fde40d9SSimon J. Gerraty  va_end (args_copy);
24274fde40d9SSimon J. Gerraty  va_end (args);
24284fde40d9SSimon J. Gerraty
24294fde40d9SSimon J. Gerraty  return *str && number && fnumber;
24304fde40d9SSimon J. Gerraty}
24314fde40d9SSimon J. Gerraty'
24324fde40d9SSimon J. Gerraty
24334fde40d9SSimon J. Gerraty# Test code for whether the C compiler supports C99 (body of main).
24344fde40d9SSimon J. Gerratyac_c_conftest_c99_main='
24354fde40d9SSimon J. Gerraty  // Check bool.
24364fde40d9SSimon J. Gerraty  _Bool success = false;
24374fde40d9SSimon J. Gerraty  success |= (argc != 0);
24384fde40d9SSimon J. Gerraty
24394fde40d9SSimon J. Gerraty  // Check restrict.
24404fde40d9SSimon J. Gerraty  if (test_restrict ("String literal") == 0)
24414fde40d9SSimon J. Gerraty    success = true;
24424fde40d9SSimon J. Gerraty  char *restrict newvar = "Another string";
24434fde40d9SSimon J. Gerraty
24444fde40d9SSimon J. Gerraty  // Check varargs.
24454fde40d9SSimon J. Gerraty  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
24464fde40d9SSimon J. Gerraty  test_varargs_macros ();
24474fde40d9SSimon J. Gerraty
24484fde40d9SSimon J. Gerraty  // Check flexible array members.
24494fde40d9SSimon J. Gerraty  struct incomplete_array *ia =
24504fde40d9SSimon J. Gerraty    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
24514fde40d9SSimon J. Gerraty  ia->datasize = 10;
24524fde40d9SSimon J. Gerraty  for (int i = 0; i < ia->datasize; ++i)
24534fde40d9SSimon J. Gerraty    ia->data[i] = i * 1.234;
2454*22619282SSimon J. Gerraty  // Work around memory leak warnings.
2455*22619282SSimon J. Gerraty  free (ia);
24564fde40d9SSimon J. Gerraty
24574fde40d9SSimon J. Gerraty  // Check named initializers.
24584fde40d9SSimon J. Gerraty  struct named_init ni = {
24594fde40d9SSimon J. Gerraty    .number = 34,
24604fde40d9SSimon J. Gerraty    .name = L"Test wide string",
24614fde40d9SSimon J. Gerraty    .average = 543.34343,
24624fde40d9SSimon J. Gerraty  };
24634fde40d9SSimon J. Gerraty
24644fde40d9SSimon J. Gerraty  ni.number = 58;
24654fde40d9SSimon J. Gerraty
24664fde40d9SSimon J. Gerraty  int dynamic_array[ni.number];
24674fde40d9SSimon J. Gerraty  dynamic_array[0] = argv[0][0];
24684fde40d9SSimon J. Gerraty  dynamic_array[ni.number - 1] = 543;
24694fde40d9SSimon J. Gerraty
24704fde40d9SSimon J. Gerraty  // work around unused variable warnings
24714fde40d9SSimon J. Gerraty  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
24724fde40d9SSimon J. Gerraty	 || dynamic_array[ni.number - 1] != 543);
24734fde40d9SSimon J. Gerraty'
24744fde40d9SSimon J. Gerraty
24754fde40d9SSimon J. Gerraty# Test code for whether the C compiler supports C11 (global declarations)
24764fde40d9SSimon J. Gerratyac_c_conftest_c11_globals='
2477*22619282SSimon J. Gerraty/* Does the compiler advertise C11 conformance? */
24784fde40d9SSimon J. Gerraty#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
24794fde40d9SSimon J. Gerraty# error "Compiler does not advertise C11 conformance"
24804fde40d9SSimon J. Gerraty#endif
24814fde40d9SSimon J. Gerraty
24824fde40d9SSimon J. Gerraty// Check _Alignas.
24834fde40d9SSimon J. Gerratychar _Alignas (double) aligned_as_double;
24844fde40d9SSimon J. Gerratychar _Alignas (0) no_special_alignment;
24854fde40d9SSimon J. Gerratyextern char aligned_as_int;
24864fde40d9SSimon J. Gerratychar _Alignas (0) _Alignas (int) aligned_as_int;
24874fde40d9SSimon J. Gerraty
24884fde40d9SSimon J. Gerraty// Check _Alignof.
24894fde40d9SSimon J. Gerratyenum
24904fde40d9SSimon J. Gerraty{
24914fde40d9SSimon J. Gerraty  int_alignment = _Alignof (int),
24924fde40d9SSimon J. Gerraty  int_array_alignment = _Alignof (int[100]),
24934fde40d9SSimon J. Gerraty  char_alignment = _Alignof (char)
24944fde40d9SSimon J. Gerraty};
24954fde40d9SSimon J. Gerraty_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
24964fde40d9SSimon J. Gerraty
24974fde40d9SSimon J. Gerraty// Check _Noreturn.
24984fde40d9SSimon J. Gerratyint _Noreturn does_not_return (void) { for (;;) continue; }
24994fde40d9SSimon J. Gerraty
25004fde40d9SSimon J. Gerraty// Check _Static_assert.
25014fde40d9SSimon J. Gerratystruct test_static_assert
25024fde40d9SSimon J. Gerraty{
25034fde40d9SSimon J. Gerraty  int x;
25044fde40d9SSimon J. Gerraty  _Static_assert (sizeof (int) <= sizeof (long int),
25054fde40d9SSimon J. Gerraty                  "_Static_assert does not work in struct");
25064fde40d9SSimon J. Gerraty  long int y;
25074fde40d9SSimon J. Gerraty};
25084fde40d9SSimon J. Gerraty
25094fde40d9SSimon J. Gerraty// Check UTF-8 literals.
25104fde40d9SSimon J. Gerraty#define u8 syntax error!
25114fde40d9SSimon J. Gerratychar const utf8_literal[] = u8"happens to be ASCII" "another string";
25124fde40d9SSimon J. Gerraty
25134fde40d9SSimon J. Gerraty// Check duplicate typedefs.
25144fde40d9SSimon J. Gerratytypedef long *long_ptr;
25154fde40d9SSimon J. Gerratytypedef long int *long_ptr;
25164fde40d9SSimon J. Gerratytypedef long_ptr long_ptr;
25174fde40d9SSimon J. Gerraty
25184fde40d9SSimon J. Gerraty// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
25194fde40d9SSimon J. Gerratystruct anonymous
25204fde40d9SSimon J. Gerraty{
25214fde40d9SSimon J. Gerraty  union {
25224fde40d9SSimon J. Gerraty    struct { int i; int j; };
25234fde40d9SSimon J. Gerraty    struct { int k; long int l; } w;
25244fde40d9SSimon J. Gerraty  };
25254fde40d9SSimon J. Gerraty  int m;
25264fde40d9SSimon J. Gerraty} v1;
25274fde40d9SSimon J. Gerraty'
25284fde40d9SSimon J. Gerraty
25294fde40d9SSimon J. Gerraty# Test code for whether the C compiler supports C11 (body of main).
25304fde40d9SSimon J. Gerratyac_c_conftest_c11_main='
25314fde40d9SSimon J. Gerraty  _Static_assert ((offsetof (struct anonymous, i)
25324fde40d9SSimon J. Gerraty		   == offsetof (struct anonymous, w.k)),
25334fde40d9SSimon J. Gerraty		  "Anonymous union alignment botch");
25344fde40d9SSimon J. Gerraty  v1.i = 2;
25354fde40d9SSimon J. Gerraty  v1.w.k = 5;
25364fde40d9SSimon J. Gerraty  ok |= v1.i != 5;
25374fde40d9SSimon J. Gerraty'
25384fde40d9SSimon J. Gerraty
25394fde40d9SSimon J. Gerraty# Test code for whether the C compiler supports C11 (complete).
25404fde40d9SSimon J. Gerratyac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
25414fde40d9SSimon J. Gerraty${ac_c_conftest_c99_globals}
25424fde40d9SSimon J. Gerraty${ac_c_conftest_c11_globals}
25434fde40d9SSimon J. Gerraty
25444fde40d9SSimon J. Gerratyint
25454fde40d9SSimon J. Gerratymain (int argc, char **argv)
25464fde40d9SSimon J. Gerraty{
25474fde40d9SSimon J. Gerraty  int ok = 0;
25484fde40d9SSimon J. Gerraty  ${ac_c_conftest_c89_main}
25494fde40d9SSimon J. Gerraty  ${ac_c_conftest_c99_main}
25504fde40d9SSimon J. Gerraty  ${ac_c_conftest_c11_main}
25514fde40d9SSimon J. Gerraty  return ok;
25524fde40d9SSimon J. Gerraty}
25534fde40d9SSimon J. Gerraty"
25544fde40d9SSimon J. Gerraty
25554fde40d9SSimon J. Gerraty# Test code for whether the C compiler supports C99 (complete).
25564fde40d9SSimon J. Gerratyac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
25574fde40d9SSimon J. Gerraty${ac_c_conftest_c99_globals}
25584fde40d9SSimon J. Gerraty
25594fde40d9SSimon J. Gerratyint
25604fde40d9SSimon J. Gerratymain (int argc, char **argv)
25614fde40d9SSimon J. Gerraty{
25624fde40d9SSimon J. Gerraty  int ok = 0;
25634fde40d9SSimon J. Gerraty  ${ac_c_conftest_c89_main}
25644fde40d9SSimon J. Gerraty  ${ac_c_conftest_c99_main}
25654fde40d9SSimon J. Gerraty  return ok;
25664fde40d9SSimon J. Gerraty}
25674fde40d9SSimon J. Gerraty"
25684fde40d9SSimon J. Gerraty
25694fde40d9SSimon J. Gerraty# Test code for whether the C compiler supports C89 (complete).
25704fde40d9SSimon J. Gerratyac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
25714fde40d9SSimon J. Gerraty
25724fde40d9SSimon J. Gerratyint
25734fde40d9SSimon J. Gerratymain (int argc, char **argv)
25744fde40d9SSimon J. Gerraty{
25754fde40d9SSimon J. Gerraty  int ok = 0;
25764fde40d9SSimon J. Gerraty  ${ac_c_conftest_c89_main}
25774fde40d9SSimon J. Gerraty  return ok;
25784fde40d9SSimon J. Gerraty}
25794fde40d9SSimon J. Gerraty"
25804fde40d9SSimon J. Gerraty
25814fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
25824fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
25834fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
25844fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
25854fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
25864fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
25874fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
25884fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
25894fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
25904fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
25914fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
25924fde40d9SSimon J. Gerratyas_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
25934fde40d9SSimon J. Gerratyas_fn_append ac_func_c_list " fork HAVE_FORK"
25944fde40d9SSimon J. Gerratyas_fn_append ac_func_c_list " vfork HAVE_VFORK"
25954fde40d9SSimon J. Gerratyas_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
25964fde40d9SSimon J. Gerraty
25974fde40d9SSimon J. Gerraty# Auxiliary files required by this configure script.
25984fde40d9SSimon J. Gerratyac_aux_files="install-sh"
25994fde40d9SSimon J. Gerraty
26004fde40d9SSimon J. Gerraty# Locations in which to look for auxiliary files.
26014fde40d9SSimon J. Gerratyac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
26024fde40d9SSimon J. Gerraty
26034fde40d9SSimon J. Gerraty# Search for a directory containing all of the required auxiliary files,
26044fde40d9SSimon J. Gerraty# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
26054fde40d9SSimon J. Gerraty# If we don't find one directory that contains all the files we need,
26064fde40d9SSimon J. Gerraty# we report the set of missing files from the *first* directory in
26074fde40d9SSimon J. Gerraty# $ac_aux_dir_candidates and give up.
26084fde40d9SSimon J. Gerratyac_missing_aux_files=""
26094fde40d9SSimon J. Gerratyac_first_candidate=:
26104fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
26114fde40d9SSimon J. Gerratyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26124fde40d9SSimon J. Gerratyas_found=false
26134fde40d9SSimon J. Gerratyfor as_dir in $ac_aux_dir_candidates
26144fde40d9SSimon J. Gerratydo
26154fde40d9SSimon J. Gerraty  IFS=$as_save_IFS
26164fde40d9SSimon J. Gerraty  case $as_dir in #(((
26174fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
26184fde40d9SSimon J. Gerraty    */) ;;
26194fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
26204fde40d9SSimon J. Gerraty  esac
26214fde40d9SSimon J. Gerraty  as_found=:
26224fde40d9SSimon J. Gerraty
26234fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
26244fde40d9SSimon J. Gerraty  ac_aux_dir_found=yes
26254fde40d9SSimon J. Gerraty  ac_install_sh=
26264fde40d9SSimon J. Gerraty  for ac_aux in $ac_aux_files
26274fde40d9SSimon J. Gerraty  do
26284fde40d9SSimon J. Gerraty    # As a special case, if "install-sh" is required, that requirement
26294fde40d9SSimon J. Gerraty    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
26304fde40d9SSimon J. Gerraty    # and $ac_install_sh is set appropriately for whichever one is found.
26314fde40d9SSimon J. Gerraty    if test x"$ac_aux" = x"install-sh"
26324fde40d9SSimon J. Gerraty    then
26334fde40d9SSimon J. Gerraty      if test -f "${as_dir}install-sh"; then
26344fde40d9SSimon J. Gerraty        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
26354fde40d9SSimon J. Gerraty        ac_install_sh="${as_dir}install-sh -c"
26364fde40d9SSimon J. Gerraty      elif test -f "${as_dir}install.sh"; then
26374fde40d9SSimon J. Gerraty        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
26384fde40d9SSimon J. Gerraty        ac_install_sh="${as_dir}install.sh -c"
26394fde40d9SSimon J. Gerraty      elif test -f "${as_dir}shtool"; then
26404fde40d9SSimon J. Gerraty        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
26414fde40d9SSimon J. Gerraty        ac_install_sh="${as_dir}shtool install -c"
26424fde40d9SSimon J. Gerraty      else
26434fde40d9SSimon J. Gerraty        ac_aux_dir_found=no
26444fde40d9SSimon J. Gerraty        if $ac_first_candidate; then
26454fde40d9SSimon J. Gerraty          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
26464fde40d9SSimon J. Gerraty        else
26474fde40d9SSimon J. Gerraty          break
26484fde40d9SSimon J. Gerraty        fi
26494fde40d9SSimon J. Gerraty      fi
26504fde40d9SSimon J. Gerraty    else
26514fde40d9SSimon J. Gerraty      if test -f "${as_dir}${ac_aux}"; then
26524fde40d9SSimon J. Gerraty        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
26534fde40d9SSimon J. Gerraty      else
26544fde40d9SSimon J. Gerraty        ac_aux_dir_found=no
26554fde40d9SSimon J. Gerraty        if $ac_first_candidate; then
26564fde40d9SSimon J. Gerraty          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
26574fde40d9SSimon J. Gerraty        else
26584fde40d9SSimon J. Gerraty          break
26594fde40d9SSimon J. Gerraty        fi
26604fde40d9SSimon J. Gerraty      fi
26614fde40d9SSimon J. Gerraty    fi
26624fde40d9SSimon J. Gerraty  done
26634fde40d9SSimon J. Gerraty  if test "$ac_aux_dir_found" = yes; then
26644fde40d9SSimon J. Gerraty    ac_aux_dir="$as_dir"
26654fde40d9SSimon J. Gerraty    break
26664fde40d9SSimon J. Gerraty  fi
26674fde40d9SSimon J. Gerraty  ac_first_candidate=false
26684fde40d9SSimon J. Gerraty
26694fde40d9SSimon J. Gerraty  as_found=false
26704fde40d9SSimon J. Gerratydone
26714fde40d9SSimon J. GerratyIFS=$as_save_IFS
26724fde40d9SSimon J. Gerratyif $as_found
26734fde40d9SSimon J. Gerratythen :
26744fde40d9SSimon J. Gerraty
2675*22619282SSimon J. Gerratyelse case e in #(
2676*22619282SSimon J. Gerraty  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2677*22619282SSimon J. Gerratyesac
26784fde40d9SSimon J. Gerratyfi
26794fde40d9SSimon J. Gerraty
26804fde40d9SSimon J. Gerraty
26814fde40d9SSimon J. Gerraty# These three variables are undocumented and unsupported,
26824fde40d9SSimon J. Gerraty# and are intended to be withdrawn in a future Autoconf release.
26834fde40d9SSimon J. Gerraty# They can cause serious problems if a builder's source tree is in a directory
26844fde40d9SSimon J. Gerraty# whose full name contains unusual characters.
26854fde40d9SSimon J. Gerratyif test -f "${ac_aux_dir}config.guess"; then
26864fde40d9SSimon J. Gerraty  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
26874fde40d9SSimon J. Gerratyfi
26884fde40d9SSimon J. Gerratyif test -f "${ac_aux_dir}config.sub"; then
26894fde40d9SSimon J. Gerraty  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
26904fde40d9SSimon J. Gerratyfi
26914fde40d9SSimon J. Gerratyif test -f "$ac_aux_dir/configure"; then
26924fde40d9SSimon J. Gerraty  ac_configure="$SHELL ${ac_aux_dir}configure"
26934fde40d9SSimon J. Gerratyfi
26944fde40d9SSimon J. Gerraty
26953955d011SMarcel Moolenaar# Check that the precious variables saved in the cache have kept the same
26963955d011SMarcel Moolenaar# value.
26973955d011SMarcel Moolenaarac_cache_corrupted=false
26983955d011SMarcel Moolenaarfor ac_var in $ac_precious_vars; do
26993955d011SMarcel Moolenaar  eval ac_old_set=\$ac_cv_env_${ac_var}_set
27003955d011SMarcel Moolenaar  eval ac_new_set=\$ac_env_${ac_var}_set
27013955d011SMarcel Moolenaar  eval ac_old_val=\$ac_cv_env_${ac_var}_value
27023955d011SMarcel Moolenaar  eval ac_new_val=\$ac_env_${ac_var}_value
27033955d011SMarcel Moolenaar  case $ac_old_set,$ac_new_set in
27043955d011SMarcel Moolenaar    set,)
2705*22619282SSimon J. Gerraty      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2706*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
27073955d011SMarcel Moolenaar      ac_cache_corrupted=: ;;
27083955d011SMarcel Moolenaar    ,set)
2709*22619282SSimon J. Gerraty      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2710*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
27113955d011SMarcel Moolenaar      ac_cache_corrupted=: ;;
27123955d011SMarcel Moolenaar    ,);;
27133955d011SMarcel Moolenaar    *)
27143955d011SMarcel Moolenaar      if test "x$ac_old_val" != "x$ac_new_val"; then
27153955d011SMarcel Moolenaar	# differences in whitespace do not lead to failure.
27163955d011SMarcel Moolenaar	ac_old_val_w=`echo x $ac_old_val`
27173955d011SMarcel Moolenaar	ac_new_val_w=`echo x $ac_new_val`
27183955d011SMarcel Moolenaar	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2719*22619282SSimon J. Gerraty	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2720*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
27213955d011SMarcel Moolenaar	  ac_cache_corrupted=:
27223955d011SMarcel Moolenaar	else
2723*22619282SSimon J. Gerraty	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2724*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
27253955d011SMarcel Moolenaar	  eval $ac_var=\$ac_old_val
27263955d011SMarcel Moolenaar	fi
2727*22619282SSimon J. Gerraty	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2728*22619282SSimon J. Gerratyprintf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2729*22619282SSimon J. Gerraty	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2730*22619282SSimon J. Gerratyprintf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
27313955d011SMarcel Moolenaar      fi;;
27323955d011SMarcel Moolenaar  esac
27333955d011SMarcel Moolenaar  # Pass precious variables to config.status.
27343955d011SMarcel Moolenaar  if test "$ac_new_set" = set; then
27353955d011SMarcel Moolenaar    case $ac_new_val in
27364fde40d9SSimon J. Gerraty    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
27373955d011SMarcel Moolenaar    *) ac_arg=$ac_var=$ac_new_val ;;
27383955d011SMarcel Moolenaar    esac
27393955d011SMarcel Moolenaar    case " $ac_configure_args " in
27403955d011SMarcel Moolenaar      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
27413955d011SMarcel Moolenaar      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
27423955d011SMarcel Moolenaar    esac
27433955d011SMarcel Moolenaar  fi
27443955d011SMarcel Moolenaardone
27453955d011SMarcel Moolenaarif $ac_cache_corrupted; then
2746*22619282SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2747*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27484fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
27494fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2750*22619282SSimon J. Gerraty  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
27514fde40d9SSimon J. Gerraty	    and start over" "$LINENO" 5
27523955d011SMarcel Moolenaarfi
27533955d011SMarcel Moolenaar## -------------------- ##
27543955d011SMarcel Moolenaar## Main body of script. ##
27553955d011SMarcel Moolenaar## -------------------- ##
27563955d011SMarcel Moolenaar
27573955d011SMarcel Moolenaarac_ext=c
27583955d011SMarcel Moolenaarac_cpp='$CPP $CPPFLAGS'
27593955d011SMarcel Moolenaarac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27603955d011SMarcel Moolenaarac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27613955d011SMarcel Moolenaarac_compiler_gnu=$ac_cv_c_compiler_gnu
27623955d011SMarcel Moolenaar
27633955d011SMarcel Moolenaar
27643955d011SMarcel Moolenaarac_config_headers="$ac_config_headers config.h"
27653955d011SMarcel Moolenaar
27663955d011SMarcel Moolenaar
27673cbdda60SSimon J. Gerratycase "$srcdir" in
27683cbdda60SSimon J. Gerraty/*) ;;
276912904384SSimon J. Gerraty*) srcdir=`cd $srcdir && 'pwd'`;;
27703cbdda60SSimon J. Gerratyesac
27713cbdda60SSimon J. Gerraty
2772e22fef7dSSimon J. Gerraty. $srcdir/VERSION
277349caa483SSimon J. GerratyOS=`uname -s`
2774e22fef7dSSimon J. Gerraty
277512904384SSimon J. Gerratyuse_defshell() {
277612904384SSimon J. Gerraty	case "$defshell_path$DEFSHELL_INDEX" in
277712904384SSimon J. Gerraty	"") ;;
277812904384SSimon J. Gerraty	*) return 0;;
277912904384SSimon J. Gerraty	esac
278012904384SSimon J. Gerraty	case "$1" in
278112904384SSimon J. Gerraty	*csh) # we must be desperate
278212904384SSimon J. Gerraty		DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;;
2783*22619282SSimon J. Gerraty	*ksh*)
278412904384SSimon J. Gerraty		DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
278598875883SSimon J. Gerraty	sh|/bin/sh|*/bsh)
278612904384SSimon J. Gerraty		DEFSHELL_INDEX=DEFSHELL_INDEX_SH;;
278798875883SSimon J. Gerraty	*=*)	# eg. sh=/bin/bsh
278898875883SSimon J. Gerraty		eval `IFS="="; set -- $1; echo name=$1 defshell_path=$2`
278998875883SSimon J. Gerraty		case "$name" in
279098875883SSimon J. Gerraty		csh) DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;;
279198875883SSimon J. Gerraty		ksh) DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
279298875883SSimon J. Gerraty		sh) DEFSHELL_INDEX=DEFSHELL_INDEX_SH;;
279398875883SSimon J. Gerraty		*) DEFSHELL_INDEX=DEFSHELL_INDEX_CUSTOM;;
279498875883SSimon J. Gerraty		esac
279598875883SSimon J. Gerraty		;;
279612904384SSimon J. Gerraty	*)	DEFSHELL_INDEX=DEFSHELL_INDEX_CUSTOM
279712904384SSimon J. Gerraty		defshell_path=$1
279812904384SSimon J. Gerraty		;;
279912904384SSimon J. Gerraty	esac
280098875883SSimon J. Gerraty	case "$defshell_path,$1" in
280198875883SSimon J. Gerraty	,/bin/*) ;;
280298875883SSimon J. Gerraty	,*/*) defshell_path=$1;;
280312904384SSimon J. Gerraty	esac
280412904384SSimon J. Gerraty}
28053955d011SMarcel Moolenaar
28063955d011SMarcel Moolenaar# Check whether --with-defshell was given.
28074fde40d9SSimon J. Gerratyif test ${with_defshell+y}
28084fde40d9SSimon J. Gerratythen :
28093955d011SMarcel Moolenaar  withval=$with_defshell; case "${withval}" in
281049caa483SSimon J. Gerratyyes)   as_fn_error $? "bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
28113955d011SMarcel Moolenaarno)    ;;
281212904384SSimon J. Gerraty*)     use_defshell $with_defshell;;
28133955d011SMarcel Moolenaaresac
28143955d011SMarcel Moolenaarfi
28153955d011SMarcel Moolenaar
2816548bfc56SSimon J. GerratyFORCE_MAKE_OS=
2817548bfc56SSimon J. Gerratymake_os=
281849caa483SSimon J. Gerratycase "$OS" in
2819548bfc56SSimon J. GerratyCYGWIN*)
2820548bfc56SSimon J. Gerraty	use_makefile=no
2821548bfc56SSimon J. Gerraty	OS=Cygwin
2822548bfc56SSimon J. Gerraty	FORCE_MAKE_OS=$OS
2823548bfc56SSimon J. Gerraty	;;
2824548bfc56SSimon J. GerratyDarwin|MINGW*) use_makefile=no;;
282549caa483SSimon J. Gerraty*) use_makefile=yes;;
282649caa483SSimon J. Gerratyesac
2827548bfc56SSimon J. Gerratyif test "x$FORCE_MAKE_OS" != x; then
2828548bfc56SSimon J. Gerraty	force_make_os=FORCE_
2829548bfc56SSimon J. Gerraty	make_os=${FORCE_MAKE_OS}
2830548bfc56SSimon J. Gerratyfi
283149caa483SSimon J. Gerraty
283249caa483SSimon J. Gerraty# Check whether --with-makefile was given.
28334fde40d9SSimon J. Gerratyif test ${with_makefile+y}
28344fde40d9SSimon J. Gerratythen :
283549caa483SSimon J. Gerraty  withval=$with_makefile; case "${withval}" in
283649caa483SSimon J. Gerratyyes|no) use_makefile=${withval};;
283749caa483SSimon J. Gerraty*) as_fn_error $? "bad value ${withval} given for makefile" "$LINENO" 5 ;;
283849caa483SSimon J. Gerratyesac
283949caa483SSimon J. Gerratyfi
284049caa483SSimon J. Gerraty
28413955d011SMarcel Moolenaaruse_meta=yes
28423955d011SMarcel Moolenaar
28433955d011SMarcel Moolenaar# Check whether --with-meta was given.
28444fde40d9SSimon J. Gerratyif test ${with_meta+y}
28454fde40d9SSimon J. Gerratythen :
28463955d011SMarcel Moolenaar  withval=$with_meta; case "${withval}" in
28473955d011SMarcel Moolenaaryes|no) use_meta=${withval};;
284849caa483SSimon J. Gerraty*) as_fn_error $? "bad value ${withval} given for meta" "$LINENO" 5 ;;
28493955d011SMarcel Moolenaaresac
28503955d011SMarcel Moolenaarfi
28513955d011SMarcel Moolenaar
28523955d011SMarcel Moolenaar
28533955d011SMarcel Moolenaar# Check whether --with-filemon was given.
28544fde40d9SSimon J. Gerratyif test ${with_filemon+y}
28554fde40d9SSimon J. Gerratythen :
28563955d011SMarcel Moolenaar  withval=$with_filemon;  case "/${withval}" in
285749caa483SSimon J. Gerraty/no) use_filemon=no;;
285849caa483SSimon J. Gerraty/*trace) filemon_h=no use_filemon="${withval}";;
285949caa483SSimon J. Gerraty*/filemon.h) filemon_h="${withval}";;
28603955d011SMarcel Moolenaar*/filemon*) filemon_h="${withval}/filemon.h";;
286149caa483SSimon J. Gerraty*) as_fn_error $? "bad value ${withval} given for filemon" "$LINENO" 5 ;;
28623955d011SMarcel Moolenaaresac
2863ef0b2538SSimon J. Gerratycase "$use_filemon,$filemon_h" in
2864ef0b2538SSimon J. Gerraty,*.h) use_filemon=dev;;
2865ef0b2538SSimon J. Gerratyesac
2866ef0b2538SSimon J. Gerraty
2867*22619282SSimon J. Gerratyelse case e in #(
2868*22619282SSimon J. Gerraty  e)
286949caa483SSimon J. Gerratycase "$OS" in
287049caa483SSimon J. GerratyNetBSD) filemon_h=no use_filemon=ktrace;;
287149caa483SSimon J. Gerraty*)
287249caa483SSimon J. Gerraty    for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
28733955d011SMarcel Moolenaar    do
28743955d011SMarcel Moolenaar        for x in "/$OS" ""
28753955d011SMarcel Moolenaar        do
28763955d011SMarcel Moolenaar            filemon_h="$d$x/filemon.h"
28773955d011SMarcel Moolenaar            test -s "$filemon_h" && break
28783955d011SMarcel Moolenaar        done
287949caa483SSimon J. Gerraty        test -s "$filemon_h" && { use_filemon=dev; break; }
28803955d011SMarcel Moolenaar    done
288149caa483SSimon J. Gerraty    ;;
288249caa483SSimon J. Gerratyesac
288349caa483SSimon J. Gerratyuse_filemon=${use_filemon:-no}
288449caa483SSimon J. Gerratycase "$use_filemon" in
288549caa483SSimon J. Gerratydev) ;;
288649caa483SSimon J. Gerraty*) filemon_h=no;;
288749caa483SSimon J. Gerratyesac
2888*22619282SSimon J. Gerraty ;;
2889*22619282SSimon J. Gerratyesac
28903955d011SMarcel Moolenaarfi
28913955d011SMarcel Moolenaar
2892d5e0a182SSimon J. Gerraty
2893d5e0a182SSimon J. Gerraty# Check whether --with-bmake_strftime was given.
2894d5e0a182SSimon J. Gerratyif test ${with_bmake_strftime+y}
2895d5e0a182SSimon J. Gerratythen :
2896d5e0a182SSimon J. Gerraty  withval=$with_bmake_strftime; case "${withval}" in
2897d5e0a182SSimon J. Gerratyyes|no) bmake_strftime=$withval;;
2898d5e0a182SSimon J. Gerratyesac
2899d5e0a182SSimon J. Gerratyfi
2900d5e0a182SSimon J. Gerraty
29013955d011SMarcel Moolenaarcase "$use_meta" in
29023955d011SMarcel Moolenaaryes)
290349caa483SSimon J. Gerraty	case "$use_filemon" in
290449caa483SSimon J. Gerraty	no) ;;
290549caa483SSimon J. Gerraty	*) echo "Using: filemon_${use_filemon}.c" >&6;;
29063955d011SMarcel Moolenaar	esac
29073955d011SMarcel Moolenaar	;;
29083955d011SMarcel Moolenaaresac
290912904384SSimon J. Gerratycase "$OS" in
291012904384SSimon J. GerratyMinix)	CPPFLAGS="${CPPFLAGS} -D_NETBSD_SOURCE"
291112904384SSimon J. Gerraty	test -x /usr/pkg/bin/clang && CC=${CC:-clang}
291212904384SSimon J. Gerraty	;;
291312904384SSimon J. GerratySCO_SV)	# /bin/sh is not usable
291412904384SSimon J. Gerraty	ALT_DEF_SHELLS="/bin/lsh /usr/bin/bash /bin/ksh"
2915548bfc56SSimon J. Gerraty	FORCE_USE_SHELL=1
291612904384SSimon J. Gerraty	;;
291712904384SSimon J. Gerratyesac
2918548bfc56SSimon J. Gerratyif test "x$FORCE_USE_SHELL" != x; then
2919548bfc56SSimon J. Gerraty	CPPFLAGS="${CPPFLAGS} -DFORCE_USE_SHELL"
2920548bfc56SSimon J. Gerratyfi
292198875883SSimon J. Gerraty# Not everyone groks TZ=Europe/Berlin
292298875883SSimon J. Gerraty# which is used by the localtime tests
292312904384SSimon J. Gerratyecho $ECHO_N "checking whether system has timezone Europe/Berlin... $ECHO_C" >&6
292498875883SSimon J. Gerratyeval `TZ=UTC date '+utc_H=%H utc_d=%d' 2> /dev/null`
292598875883SSimon J. Gerratyeval `TZ=Europe/Berlin date '+utc1_H=%H utc1_d=%d' 2> /dev/null`
2926*22619282SSimon J. Gerratyif test ${utc1_d-0} = 01 -a ${utc_d-0} -gt ${utc1_d-0} ||
2927*22619282SSimon J. Gerraty   test ${utc_d-0} -lt ${utc1_d-0} -o ${utc_H-0} -lt ${utc1_H-0}; then
292812904384SSimon J. Gerraty	echo yes  >&6
292912904384SSimon J. Gerraty	UTC_1=Europe/Berlin
293012904384SSimon J. Gerratyelse
293198875883SSimon J. Gerraty	eval `TZ=UTC-1 date '+utc1_H=%H utc1_d=%d' 2> /dev/null`
2932*22619282SSimon J. Gerraty	if test ${utc1_d-0} = 01 -a ${utc_d-0} -gt ${utc1_d-0} ||
2933*22619282SSimon J. Gerraty	   test ${utc_d-0} -lt ${utc1_d-0} -o ${utc_H-0} -lt ${utc1_H-0}; then
293412904384SSimon J. Gerraty		UTC_1=UTC-1
293512904384SSimon J. Gerraty		echo no, using UTC-1 >&6
293612904384SSimon J. Gerraty	fi
293712904384SSimon J. Gerratyfi
293898875883SSimon J. Gerratytest "x$UTC_1" = x && echo no >&6
293912904384SSimon J. GerratyoldPATH=$PATH
294012904384SSimon J. Gerratyfor d in /usr/gnu/bin
294112904384SSimon J. Gerratydo
294212904384SSimon J. Gerraty	test -d $d || continue
294312904384SSimon J. Gerraty	PATH=$PATH:$d
294412904384SSimon J. Gerratydone
294512904384SSimon J. Gerratyexport PATH
29464fde40d9SSimon J. Gerraty
29474fde40d9SSimon J. Gerraty
29484fde40d9SSimon J. Gerraty
29494fde40d9SSimon J. Gerraty
29504fde40d9SSimon J. Gerraty
29514fde40d9SSimon J. Gerraty
29524fde40d9SSimon J. Gerraty
29534fde40d9SSimon J. Gerraty
29544fde40d9SSimon J. Gerraty
29553955d011SMarcel Moolenaarac_ext=c
29563955d011SMarcel Moolenaarac_cpp='$CPP $CPPFLAGS'
29573955d011SMarcel Moolenaarac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29583955d011SMarcel Moolenaarac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29593955d011SMarcel Moolenaarac_compiler_gnu=$ac_cv_c_compiler_gnu
29603955d011SMarcel Moolenaarif test -n "$ac_tool_prefix"; then
29613955d011SMarcel Moolenaar  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
29623955d011SMarcel Moolenaarset dummy ${ac_tool_prefix}gcc; ac_word=$2
29634fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29644fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
29654fde40d9SSimon J. Gerratyif test ${ac_cv_prog_CC+y}
29664fde40d9SSimon J. Gerratythen :
29674fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
2968*22619282SSimon J. Gerratyelse case e in #(
2969*22619282SSimon J. Gerraty  e) if test -n "$CC"; then
29703955d011SMarcel Moolenaar  ac_cv_prog_CC="$CC" # Let the user override the test.
29713955d011SMarcel Moolenaarelse
29723955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29733955d011SMarcel Moolenaarfor as_dir in $PATH
29743955d011SMarcel Moolenaardo
29753955d011SMarcel Moolenaar  IFS=$as_save_IFS
29764fde40d9SSimon J. Gerraty  case $as_dir in #(((
29774fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
29784fde40d9SSimon J. Gerraty    */) ;;
29794fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
29804fde40d9SSimon J. Gerraty  esac
29813955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
29824fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29833955d011SMarcel Moolenaar    ac_cv_prog_CC="${ac_tool_prefix}gcc"
29844fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29853955d011SMarcel Moolenaar    break 2
29863955d011SMarcel Moolenaar  fi
29873955d011SMarcel Moolenaardone
29883955d011SMarcel Moolenaar  done
29893955d011SMarcel MoolenaarIFS=$as_save_IFS
29903955d011SMarcel Moolenaar
2991*22619282SSimon J. Gerratyfi ;;
2992*22619282SSimon J. Gerratyesac
29933955d011SMarcel Moolenaarfi
29943955d011SMarcel MoolenaarCC=$ac_cv_prog_CC
29953955d011SMarcel Moolenaarif test -n "$CC"; then
29964fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29974fde40d9SSimon J. Gerratyprintf "%s\n" "$CC" >&6; }
29983955d011SMarcel Moolenaarelse
29994fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30004fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
30013955d011SMarcel Moolenaarfi
30023955d011SMarcel Moolenaar
30033955d011SMarcel Moolenaar
30043955d011SMarcel Moolenaarfi
30053955d011SMarcel Moolenaarif test -z "$ac_cv_prog_CC"; then
30063955d011SMarcel Moolenaar  ac_ct_CC=$CC
30073955d011SMarcel Moolenaar  # Extract the first word of "gcc", so it can be a program name with args.
30083955d011SMarcel Moolenaarset dummy gcc; ac_word=$2
30094fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30104fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
30114fde40d9SSimon J. Gerratyif test ${ac_cv_prog_ac_ct_CC+y}
30124fde40d9SSimon J. Gerratythen :
30134fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3014*22619282SSimon J. Gerratyelse case e in #(
3015*22619282SSimon J. Gerraty  e) if test -n "$ac_ct_CC"; then
30163955d011SMarcel Moolenaar  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30173955d011SMarcel Moolenaarelse
30183955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30193955d011SMarcel Moolenaarfor as_dir in $PATH
30203955d011SMarcel Moolenaardo
30213955d011SMarcel Moolenaar  IFS=$as_save_IFS
30224fde40d9SSimon J. Gerraty  case $as_dir in #(((
30234fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
30244fde40d9SSimon J. Gerraty    */) ;;
30254fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
30264fde40d9SSimon J. Gerraty  esac
30273955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
30284fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30293955d011SMarcel Moolenaar    ac_cv_prog_ac_ct_CC="gcc"
30304fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30313955d011SMarcel Moolenaar    break 2
30323955d011SMarcel Moolenaar  fi
30333955d011SMarcel Moolenaardone
30343955d011SMarcel Moolenaar  done
30353955d011SMarcel MoolenaarIFS=$as_save_IFS
30363955d011SMarcel Moolenaar
3037*22619282SSimon J. Gerratyfi ;;
3038*22619282SSimon J. Gerratyesac
30393955d011SMarcel Moolenaarfi
30403955d011SMarcel Moolenaarac_ct_CC=$ac_cv_prog_ac_ct_CC
30413955d011SMarcel Moolenaarif test -n "$ac_ct_CC"; then
30424fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30434fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_ct_CC" >&6; }
30443955d011SMarcel Moolenaarelse
30454fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30464fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
30473955d011SMarcel Moolenaarfi
30483955d011SMarcel Moolenaar
30493955d011SMarcel Moolenaar  if test "x$ac_ct_CC" = x; then
30503955d011SMarcel Moolenaar    CC=""
30513955d011SMarcel Moolenaar  else
30523955d011SMarcel Moolenaar    case $cross_compiling:$ac_tool_warned in
30533955d011SMarcel Moolenaaryes:)
30544fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30554fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30563955d011SMarcel Moolenaarac_tool_warned=yes ;;
30573955d011SMarcel Moolenaaresac
30583955d011SMarcel Moolenaar    CC=$ac_ct_CC
30593955d011SMarcel Moolenaar  fi
30603955d011SMarcel Moolenaarelse
30613955d011SMarcel Moolenaar  CC="$ac_cv_prog_CC"
30623955d011SMarcel Moolenaarfi
30633955d011SMarcel Moolenaar
30643955d011SMarcel Moolenaarif test -z "$CC"; then
30653955d011SMarcel Moolenaar          if test -n "$ac_tool_prefix"; then
30663955d011SMarcel Moolenaar    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30673955d011SMarcel Moolenaarset dummy ${ac_tool_prefix}cc; ac_word=$2
30684fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30694fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
30704fde40d9SSimon J. Gerratyif test ${ac_cv_prog_CC+y}
30714fde40d9SSimon J. Gerratythen :
30724fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3073*22619282SSimon J. Gerratyelse case e in #(
3074*22619282SSimon J. Gerraty  e) if test -n "$CC"; then
30753955d011SMarcel Moolenaar  ac_cv_prog_CC="$CC" # Let the user override the test.
30763955d011SMarcel Moolenaarelse
30773955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30783955d011SMarcel Moolenaarfor as_dir in $PATH
30793955d011SMarcel Moolenaardo
30803955d011SMarcel Moolenaar  IFS=$as_save_IFS
30814fde40d9SSimon J. Gerraty  case $as_dir in #(((
30824fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
30834fde40d9SSimon J. Gerraty    */) ;;
30844fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
30854fde40d9SSimon J. Gerraty  esac
30863955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
30874fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30883955d011SMarcel Moolenaar    ac_cv_prog_CC="${ac_tool_prefix}cc"
30894fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30903955d011SMarcel Moolenaar    break 2
30913955d011SMarcel Moolenaar  fi
30923955d011SMarcel Moolenaardone
30933955d011SMarcel Moolenaar  done
30943955d011SMarcel MoolenaarIFS=$as_save_IFS
30953955d011SMarcel Moolenaar
3096*22619282SSimon J. Gerratyfi ;;
3097*22619282SSimon J. Gerratyesac
30983955d011SMarcel Moolenaarfi
30993955d011SMarcel MoolenaarCC=$ac_cv_prog_CC
31003955d011SMarcel Moolenaarif test -n "$CC"; then
31014fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
31024fde40d9SSimon J. Gerratyprintf "%s\n" "$CC" >&6; }
31033955d011SMarcel Moolenaarelse
31044fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31054fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
31063955d011SMarcel Moolenaarfi
31073955d011SMarcel Moolenaar
31083955d011SMarcel Moolenaar
31093955d011SMarcel Moolenaar  fi
31103955d011SMarcel Moolenaarfi
31113955d011SMarcel Moolenaarif test -z "$CC"; then
31123955d011SMarcel Moolenaar  # Extract the first word of "cc", so it can be a program name with args.
31133955d011SMarcel Moolenaarset dummy cc; ac_word=$2
31144fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31154fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
31164fde40d9SSimon J. Gerratyif test ${ac_cv_prog_CC+y}
31174fde40d9SSimon J. Gerratythen :
31184fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3119*22619282SSimon J. Gerratyelse case e in #(
3120*22619282SSimon J. Gerraty  e) if test -n "$CC"; then
31213955d011SMarcel Moolenaar  ac_cv_prog_CC="$CC" # Let the user override the test.
31223955d011SMarcel Moolenaarelse
31233955d011SMarcel Moolenaar  ac_prog_rejected=no
31243955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31253955d011SMarcel Moolenaarfor as_dir in $PATH
31263955d011SMarcel Moolenaardo
31273955d011SMarcel Moolenaar  IFS=$as_save_IFS
31284fde40d9SSimon J. Gerraty  case $as_dir in #(((
31294fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
31304fde40d9SSimon J. Gerraty    */) ;;
31314fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
31324fde40d9SSimon J. Gerraty  esac
31333955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
31344fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31354fde40d9SSimon J. Gerraty    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
31363955d011SMarcel Moolenaar       ac_prog_rejected=yes
31373955d011SMarcel Moolenaar       continue
31383955d011SMarcel Moolenaar     fi
31393955d011SMarcel Moolenaar    ac_cv_prog_CC="cc"
31404fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31413955d011SMarcel Moolenaar    break 2
31423955d011SMarcel Moolenaar  fi
31433955d011SMarcel Moolenaardone
31443955d011SMarcel Moolenaar  done
31453955d011SMarcel MoolenaarIFS=$as_save_IFS
31463955d011SMarcel Moolenaar
31473955d011SMarcel Moolenaarif test $ac_prog_rejected = yes; then
31483955d011SMarcel Moolenaar  # We found a bogon in the path, so make sure we never use it.
31493955d011SMarcel Moolenaar  set dummy $ac_cv_prog_CC
31503955d011SMarcel Moolenaar  shift
31513955d011SMarcel Moolenaar  if test $# != 0; then
31523955d011SMarcel Moolenaar    # We chose a different compiler from the bogus one.
31533955d011SMarcel Moolenaar    # However, it has the same basename, so the bogon will be chosen
31543955d011SMarcel Moolenaar    # first if we set CC to just the basename; use the full file name.
31553955d011SMarcel Moolenaar    shift
31564fde40d9SSimon J. Gerraty    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
31573955d011SMarcel Moolenaar  fi
31583955d011SMarcel Moolenaarfi
3159*22619282SSimon J. Gerratyfi ;;
3160*22619282SSimon J. Gerratyesac
31613955d011SMarcel Moolenaarfi
31623955d011SMarcel MoolenaarCC=$ac_cv_prog_CC
31633955d011SMarcel Moolenaarif test -n "$CC"; then
31644fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
31654fde40d9SSimon J. Gerratyprintf "%s\n" "$CC" >&6; }
31663955d011SMarcel Moolenaarelse
31674fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31684fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
31693955d011SMarcel Moolenaarfi
31703955d011SMarcel Moolenaar
31713955d011SMarcel Moolenaar
31723955d011SMarcel Moolenaarfi
31733955d011SMarcel Moolenaarif test -z "$CC"; then
31743955d011SMarcel Moolenaar  if test -n "$ac_tool_prefix"; then
31753955d011SMarcel Moolenaar  for ac_prog in cl.exe
31763955d011SMarcel Moolenaar  do
31773955d011SMarcel Moolenaar    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31783955d011SMarcel Moolenaarset dummy $ac_tool_prefix$ac_prog; ac_word=$2
31794fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31804fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
31814fde40d9SSimon J. Gerratyif test ${ac_cv_prog_CC+y}
31824fde40d9SSimon J. Gerratythen :
31834fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3184*22619282SSimon J. Gerratyelse case e in #(
3185*22619282SSimon J. Gerraty  e) if test -n "$CC"; then
31863955d011SMarcel Moolenaar  ac_cv_prog_CC="$CC" # Let the user override the test.
31873955d011SMarcel Moolenaarelse
31883955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31893955d011SMarcel Moolenaarfor as_dir in $PATH
31903955d011SMarcel Moolenaardo
31913955d011SMarcel Moolenaar  IFS=$as_save_IFS
31924fde40d9SSimon J. Gerraty  case $as_dir in #(((
31934fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
31944fde40d9SSimon J. Gerraty    */) ;;
31954fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
31964fde40d9SSimon J. Gerraty  esac
31973955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
31984fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31993955d011SMarcel Moolenaar    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
32004fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32013955d011SMarcel Moolenaar    break 2
32023955d011SMarcel Moolenaar  fi
32033955d011SMarcel Moolenaardone
32043955d011SMarcel Moolenaar  done
32053955d011SMarcel MoolenaarIFS=$as_save_IFS
32063955d011SMarcel Moolenaar
3207*22619282SSimon J. Gerratyfi ;;
3208*22619282SSimon J. Gerratyesac
32093955d011SMarcel Moolenaarfi
32103955d011SMarcel MoolenaarCC=$ac_cv_prog_CC
32113955d011SMarcel Moolenaarif test -n "$CC"; then
32124fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
32134fde40d9SSimon J. Gerratyprintf "%s\n" "$CC" >&6; }
32143955d011SMarcel Moolenaarelse
32154fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32164fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
32173955d011SMarcel Moolenaarfi
32183955d011SMarcel Moolenaar
32193955d011SMarcel Moolenaar
32203955d011SMarcel Moolenaar    test -n "$CC" && break
32213955d011SMarcel Moolenaar  done
32223955d011SMarcel Moolenaarfi
32233955d011SMarcel Moolenaarif test -z "$CC"; then
32243955d011SMarcel Moolenaar  ac_ct_CC=$CC
32253955d011SMarcel Moolenaar  for ac_prog in cl.exe
32263955d011SMarcel Moolenaardo
32273955d011SMarcel Moolenaar  # Extract the first word of "$ac_prog", so it can be a program name with args.
32283955d011SMarcel Moolenaarset dummy $ac_prog; ac_word=$2
32294fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32304fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
32314fde40d9SSimon J. Gerratyif test ${ac_cv_prog_ac_ct_CC+y}
32324fde40d9SSimon J. Gerratythen :
32334fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3234*22619282SSimon J. Gerratyelse case e in #(
3235*22619282SSimon J. Gerraty  e) if test -n "$ac_ct_CC"; then
32363955d011SMarcel Moolenaar  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32373955d011SMarcel Moolenaarelse
32383955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32393955d011SMarcel Moolenaarfor as_dir in $PATH
32403955d011SMarcel Moolenaardo
32413955d011SMarcel Moolenaar  IFS=$as_save_IFS
32424fde40d9SSimon J. Gerraty  case $as_dir in #(((
32434fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
32444fde40d9SSimon J. Gerraty    */) ;;
32454fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
32464fde40d9SSimon J. Gerraty  esac
32473955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
32484fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32493955d011SMarcel Moolenaar    ac_cv_prog_ac_ct_CC="$ac_prog"
32504fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32513955d011SMarcel Moolenaar    break 2
32523955d011SMarcel Moolenaar  fi
32533955d011SMarcel Moolenaardone
32543955d011SMarcel Moolenaar  done
32553955d011SMarcel MoolenaarIFS=$as_save_IFS
32563955d011SMarcel Moolenaar
3257*22619282SSimon J. Gerratyfi ;;
3258*22619282SSimon J. Gerratyesac
32593955d011SMarcel Moolenaarfi
32603955d011SMarcel Moolenaarac_ct_CC=$ac_cv_prog_ac_ct_CC
32613955d011SMarcel Moolenaarif test -n "$ac_ct_CC"; then
32624fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
32634fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_ct_CC" >&6; }
32643955d011SMarcel Moolenaarelse
32654fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32664fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
32673955d011SMarcel Moolenaarfi
32683955d011SMarcel Moolenaar
32693955d011SMarcel Moolenaar
32703955d011SMarcel Moolenaar  test -n "$ac_ct_CC" && break
32713955d011SMarcel Moolenaardone
32723955d011SMarcel Moolenaar
32733955d011SMarcel Moolenaar  if test "x$ac_ct_CC" = x; then
32743955d011SMarcel Moolenaar    CC=""
32753955d011SMarcel Moolenaar  else
32763955d011SMarcel Moolenaar    case $cross_compiling:$ac_tool_warned in
32773955d011SMarcel Moolenaaryes:)
32784fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32794fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32803955d011SMarcel Moolenaarac_tool_warned=yes ;;
32813955d011SMarcel Moolenaaresac
32823955d011SMarcel Moolenaar    CC=$ac_ct_CC
32833955d011SMarcel Moolenaar  fi
32843955d011SMarcel Moolenaarfi
32853955d011SMarcel Moolenaar
32863955d011SMarcel Moolenaarfi
32874fde40d9SSimon J. Gerratyif test -z "$CC"; then
32884fde40d9SSimon J. Gerraty  if test -n "$ac_tool_prefix"; then
32894fde40d9SSimon J. Gerraty  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
32904fde40d9SSimon J. Gerratyset dummy ${ac_tool_prefix}clang; ac_word=$2
32914fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32924fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
32934fde40d9SSimon J. Gerratyif test ${ac_cv_prog_CC+y}
32944fde40d9SSimon J. Gerratythen :
32954fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3296*22619282SSimon J. Gerratyelse case e in #(
3297*22619282SSimon J. Gerraty  e) if test -n "$CC"; then
32984fde40d9SSimon J. Gerraty  ac_cv_prog_CC="$CC" # Let the user override the test.
32994fde40d9SSimon J. Gerratyelse
33004fde40d9SSimon J. Gerratyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33014fde40d9SSimon J. Gerratyfor as_dir in $PATH
33024fde40d9SSimon J. Gerratydo
33034fde40d9SSimon J. Gerraty  IFS=$as_save_IFS
33044fde40d9SSimon J. Gerraty  case $as_dir in #(((
33054fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
33064fde40d9SSimon J. Gerraty    */) ;;
33074fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
33084fde40d9SSimon J. Gerraty  esac
33094fde40d9SSimon J. Gerraty    for ac_exec_ext in '' $ac_executable_extensions; do
33104fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33114fde40d9SSimon J. Gerraty    ac_cv_prog_CC="${ac_tool_prefix}clang"
33124fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33134fde40d9SSimon J. Gerraty    break 2
33144fde40d9SSimon J. Gerraty  fi
33154fde40d9SSimon J. Gerratydone
33164fde40d9SSimon J. Gerraty  done
33174fde40d9SSimon J. GerratyIFS=$as_save_IFS
33184fde40d9SSimon J. Gerraty
3319*22619282SSimon J. Gerratyfi ;;
3320*22619282SSimon J. Gerratyesac
33214fde40d9SSimon J. Gerratyfi
33224fde40d9SSimon J. GerratyCC=$ac_cv_prog_CC
33234fde40d9SSimon J. Gerratyif test -n "$CC"; then
33244fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
33254fde40d9SSimon J. Gerratyprintf "%s\n" "$CC" >&6; }
33264fde40d9SSimon J. Gerratyelse
33274fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33284fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
33294fde40d9SSimon J. Gerratyfi
33303955d011SMarcel Moolenaar
33313955d011SMarcel Moolenaar
33324fde40d9SSimon J. Gerratyfi
33334fde40d9SSimon J. Gerratyif test -z "$ac_cv_prog_CC"; then
33344fde40d9SSimon J. Gerraty  ac_ct_CC=$CC
33354fde40d9SSimon J. Gerraty  # Extract the first word of "clang", so it can be a program name with args.
33364fde40d9SSimon J. Gerratyset dummy clang; ac_word=$2
33374fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33384fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
33394fde40d9SSimon J. Gerratyif test ${ac_cv_prog_ac_ct_CC+y}
33404fde40d9SSimon J. Gerratythen :
33414fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3342*22619282SSimon J. Gerratyelse case e in #(
3343*22619282SSimon J. Gerraty  e) if test -n "$ac_ct_CC"; then
33444fde40d9SSimon J. Gerraty  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
33454fde40d9SSimon J. Gerratyelse
33464fde40d9SSimon J. Gerratyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33474fde40d9SSimon J. Gerratyfor as_dir in $PATH
33484fde40d9SSimon J. Gerratydo
33494fde40d9SSimon J. Gerraty  IFS=$as_save_IFS
33504fde40d9SSimon J. Gerraty  case $as_dir in #(((
33514fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
33524fde40d9SSimon J. Gerraty    */) ;;
33534fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
33544fde40d9SSimon J. Gerraty  esac
33554fde40d9SSimon J. Gerraty    for ac_exec_ext in '' $ac_executable_extensions; do
33564fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33574fde40d9SSimon J. Gerraty    ac_cv_prog_ac_ct_CC="clang"
33584fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33594fde40d9SSimon J. Gerraty    break 2
33604fde40d9SSimon J. Gerraty  fi
33614fde40d9SSimon J. Gerratydone
33624fde40d9SSimon J. Gerraty  done
33634fde40d9SSimon J. GerratyIFS=$as_save_IFS
33644fde40d9SSimon J. Gerraty
3365*22619282SSimon J. Gerratyfi ;;
3366*22619282SSimon J. Gerratyesac
33674fde40d9SSimon J. Gerratyfi
33684fde40d9SSimon J. Gerratyac_ct_CC=$ac_cv_prog_ac_ct_CC
33694fde40d9SSimon J. Gerratyif test -n "$ac_ct_CC"; then
33704fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
33714fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_ct_CC" >&6; }
33724fde40d9SSimon J. Gerratyelse
33734fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33744fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
33754fde40d9SSimon J. Gerratyfi
33764fde40d9SSimon J. Gerraty
33774fde40d9SSimon J. Gerraty  if test "x$ac_ct_CC" = x; then
33784fde40d9SSimon J. Gerraty    CC=""
33794fde40d9SSimon J. Gerraty  else
33804fde40d9SSimon J. Gerraty    case $cross_compiling:$ac_tool_warned in
33814fde40d9SSimon J. Gerratyyes:)
33824fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33834fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33844fde40d9SSimon J. Gerratyac_tool_warned=yes ;;
33854fde40d9SSimon J. Gerratyesac
33864fde40d9SSimon J. Gerraty    CC=$ac_ct_CC
33874fde40d9SSimon J. Gerraty  fi
33884fde40d9SSimon J. Gerratyelse
33894fde40d9SSimon J. Gerraty  CC="$ac_cv_prog_CC"
33904fde40d9SSimon J. Gerratyfi
33914fde40d9SSimon J. Gerraty
33924fde40d9SSimon J. Gerratyfi
33934fde40d9SSimon J. Gerraty
33944fde40d9SSimon J. Gerraty
3395*22619282SSimon J. Gerratytest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3396*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
339749caa483SSimon J. Gerratyas_fn_error $? "no acceptable C compiler found in \$PATH
3398*22619282SSimon J. GerratySee 'config.log' for more details" "$LINENO" 5; }
33993955d011SMarcel Moolenaar
34003955d011SMarcel Moolenaar# Provide some information about the compiler.
34014fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
34023955d011SMarcel Moolenaarset X $ac_compile
34033955d011SMarcel Moolenaarac_compiler=$2
34044fde40d9SSimon J. Gerratyfor ac_option in --version -v -V -qversion -version; do
34053955d011SMarcel Moolenaar  { { ac_try="$ac_compiler $ac_option >&5"
34063955d011SMarcel Moolenaarcase "(($ac_try" in
34073955d011SMarcel Moolenaar  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34083955d011SMarcel Moolenaar  *) ac_try_echo=$ac_try;;
34093955d011SMarcel Moolenaaresac
34103955d011SMarcel Moolenaareval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
34114fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_try_echo"; } >&5
34123955d011SMarcel Moolenaar  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
34133955d011SMarcel Moolenaar  ac_status=$?
34143955d011SMarcel Moolenaar  if test -s conftest.err; then
34153955d011SMarcel Moolenaar    sed '10a\
34163955d011SMarcel Moolenaar... rest of stderr output deleted ...
34173955d011SMarcel Moolenaar         10q' conftest.err >conftest.er1
34183955d011SMarcel Moolenaar    cat conftest.er1 >&5
34193955d011SMarcel Moolenaar  fi
342049caa483SSimon J. Gerraty  rm -f conftest.er1 conftest.err
34214fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34223955d011SMarcel Moolenaar  test $ac_status = 0; }
34233955d011SMarcel Moolenaardone
34243955d011SMarcel Moolenaar
34253955d011SMarcel Moolenaarcat confdefs.h - <<_ACEOF >conftest.$ac_ext
34263955d011SMarcel Moolenaar/* end confdefs.h.  */
342749caa483SSimon J. Gerraty
34283955d011SMarcel Moolenaarint
34294fde40d9SSimon J. Gerratymain (void)
34303955d011SMarcel Moolenaar{
34313955d011SMarcel Moolenaar
34323955d011SMarcel Moolenaar  ;
34333955d011SMarcel Moolenaar  return 0;
34343955d011SMarcel Moolenaar}
34353955d011SMarcel Moolenaar_ACEOF
34363955d011SMarcel Moolenaarac_clean_files_save=$ac_clean_files
343749caa483SSimon J. Gerratyac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
34383955d011SMarcel Moolenaar# Try to create an executable without -o first, disregard a.out.
34393955d011SMarcel Moolenaar# It will help us diagnose broken compilers, and finding out an intuition
34403955d011SMarcel Moolenaar# of exeext.
34414fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
34424fde40d9SSimon J. Gerratyprintf %s "checking whether the C compiler works... " >&6; }
34434fde40d9SSimon J. Gerratyac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
34443955d011SMarcel Moolenaar
34453955d011SMarcel Moolenaar# The possible output files:
34463955d011SMarcel Moolenaarac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
34473955d011SMarcel Moolenaar
34483955d011SMarcel Moolenaarac_rmfiles=
34493955d011SMarcel Moolenaarfor ac_file in $ac_files
34503955d011SMarcel Moolenaardo
34513955d011SMarcel Moolenaar  case $ac_file in
34523955d011SMarcel Moolenaar    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
34533955d011SMarcel Moolenaar    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
34543955d011SMarcel Moolenaar  esac
34553955d011SMarcel Moolenaardone
34563955d011SMarcel Moolenaarrm -f $ac_rmfiles
34573955d011SMarcel Moolenaar
34583955d011SMarcel Moolenaarif { { ac_try="$ac_link_default"
34593955d011SMarcel Moolenaarcase "(($ac_try" in
34603955d011SMarcel Moolenaar  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34613955d011SMarcel Moolenaar  *) ac_try_echo=$ac_try;;
34623955d011SMarcel Moolenaaresac
34633955d011SMarcel Moolenaareval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
34644fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_try_echo"; } >&5
34653955d011SMarcel Moolenaar  (eval "$ac_link_default") 2>&5
34663955d011SMarcel Moolenaar  ac_status=$?
34674fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34684fde40d9SSimon J. Gerraty  test $ac_status = 0; }
34694fde40d9SSimon J. Gerratythen :
3470*22619282SSimon J. Gerraty  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3471*22619282SSimon J. Gerraty# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
34723955d011SMarcel Moolenaar# in a Makefile.  We should not override ac_cv_exeext if it was cached,
34733955d011SMarcel Moolenaar# so that the user can short-circuit this test for compilers unknown to
34743955d011SMarcel Moolenaar# Autoconf.
34753955d011SMarcel Moolenaarfor ac_file in $ac_files ''
34763955d011SMarcel Moolenaardo
34773955d011SMarcel Moolenaar  test -f "$ac_file" || continue
34783955d011SMarcel Moolenaar  case $ac_file in
34793955d011SMarcel Moolenaar    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
34803955d011SMarcel Moolenaar	;;
34813955d011SMarcel Moolenaar    [ab].out )
34823955d011SMarcel Moolenaar	# We found the default executable, but exeext='' is most
34833955d011SMarcel Moolenaar	# certainly right.
34843955d011SMarcel Moolenaar	break;;
34853955d011SMarcel Moolenaar    *.* )
34864fde40d9SSimon J. Gerraty	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
34873955d011SMarcel Moolenaar	then :; else
34883955d011SMarcel Moolenaar	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
34893955d011SMarcel Moolenaar	fi
34903955d011SMarcel Moolenaar	# We set ac_cv_exeext here because the later test for it is not
3491*22619282SSimon J. Gerraty	# safe: cross compilers may not add the suffix if given an '-o'
34923955d011SMarcel Moolenaar	# argument, so we may need to know it at that point already.
34933955d011SMarcel Moolenaar	# Even if this section looks crufty: it has the advantage of
34943955d011SMarcel Moolenaar	# actually working.
34953955d011SMarcel Moolenaar	break;;
34963955d011SMarcel Moolenaar    * )
34973955d011SMarcel Moolenaar	break;;
34983955d011SMarcel Moolenaar  esac
34993955d011SMarcel Moolenaardone
35003955d011SMarcel Moolenaartest "$ac_cv_exeext" = no && ac_cv_exeext=
35013955d011SMarcel Moolenaar
3502*22619282SSimon J. Gerratyelse case e in #(
3503*22619282SSimon J. Gerraty  e) ac_file='' ;;
3504*22619282SSimon J. Gerratyesac
35053955d011SMarcel Moolenaarfi
35064fde40d9SSimon J. Gerratyif test -z "$ac_file"
35074fde40d9SSimon J. Gerratythen :
35084fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35094fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
35104fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: failed program was:" >&5
35113955d011SMarcel Moolenaarsed 's/^/| /' conftest.$ac_ext >&5
35123955d011SMarcel Moolenaar
3513*22619282SSimon J. Gerraty{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3514*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
351549caa483SSimon J. Gerratyas_fn_error 77 "C compiler cannot create executables
3516*22619282SSimon J. GerratySee 'config.log' for more details" "$LINENO" 5; }
3517*22619282SSimon J. Gerratyelse case e in #(
3518*22619282SSimon J. Gerraty  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519*22619282SSimon J. Gerratyprintf "%s\n" "yes" >&6; } ;;
3520*22619282SSimon J. Gerratyesac
352149caa483SSimon J. Gerratyfi
35224fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
35234fde40d9SSimon J. Gerratyprintf %s "checking for C compiler default output file name... " >&6; }
35244fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
35254fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_file" >&6; }
352649caa483SSimon J. Gerratyac_exeext=$ac_cv_exeext
35273955d011SMarcel Moolenaar
352849caa483SSimon J. Gerratyrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35293955d011SMarcel Moolenaarac_clean_files=$ac_clean_files_save
35304fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
35314fde40d9SSimon J. Gerratyprintf %s "checking for suffix of executables... " >&6; }
35323955d011SMarcel Moolenaarif { { ac_try="$ac_link"
35333955d011SMarcel Moolenaarcase "(($ac_try" in
35343955d011SMarcel Moolenaar  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35353955d011SMarcel Moolenaar  *) ac_try_echo=$ac_try;;
35363955d011SMarcel Moolenaaresac
35373955d011SMarcel Moolenaareval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35384fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_try_echo"; } >&5
35393955d011SMarcel Moolenaar  (eval "$ac_link") 2>&5
35403955d011SMarcel Moolenaar  ac_status=$?
35414fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35424fde40d9SSimon J. Gerraty  test $ac_status = 0; }
35434fde40d9SSimon J. Gerratythen :
3544*22619282SSimon J. Gerraty  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3545*22619282SSimon J. Gerraty# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3546*22619282SSimon J. Gerraty# work properly (i.e., refer to 'conftest.exe'), while it won't with
3547*22619282SSimon J. Gerraty# 'rm'.
35483955d011SMarcel Moolenaarfor ac_file in conftest.exe conftest conftest.*; do
35493955d011SMarcel Moolenaar  test -f "$ac_file" || continue
35503955d011SMarcel Moolenaar  case $ac_file in
35513955d011SMarcel Moolenaar    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
35523955d011SMarcel Moolenaar    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
35533955d011SMarcel Moolenaar	  break;;
35543955d011SMarcel Moolenaar    * ) break;;
35553955d011SMarcel Moolenaar  esac
35563955d011SMarcel Moolenaardone
3557*22619282SSimon J. Gerratyelse case e in #(
3558*22619282SSimon J. Gerraty  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3559*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
356049caa483SSimon J. Gerratyas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3561*22619282SSimon J. GerratySee 'config.log' for more details" "$LINENO" 5; } ;;
3562*22619282SSimon J. Gerratyesac
35633955d011SMarcel Moolenaarfi
356449caa483SSimon J. Gerratyrm -f conftest conftest$ac_cv_exeext
35654fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
35664fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_exeext" >&6; }
35673955d011SMarcel Moolenaar
35683955d011SMarcel Moolenaarrm -f conftest.$ac_ext
35693955d011SMarcel MoolenaarEXEEXT=$ac_cv_exeext
35703955d011SMarcel Moolenaarac_exeext=$EXEEXT
357149caa483SSimon J. Gerratycat confdefs.h - <<_ACEOF >conftest.$ac_ext
357249caa483SSimon J. Gerraty/* end confdefs.h.  */
357349caa483SSimon J. Gerraty#include <stdio.h>
357449caa483SSimon J. Gerratyint
35754fde40d9SSimon J. Gerratymain (void)
357649caa483SSimon J. Gerraty{
357749caa483SSimon J. GerratyFILE *f = fopen ("conftest.out", "w");
3578*22619282SSimon J. Gerraty if (!f)
3579*22619282SSimon J. Gerraty  return 1;
358049caa483SSimon J. Gerraty return ferror (f) || fclose (f) != 0;
358149caa483SSimon J. Gerraty
358249caa483SSimon J. Gerraty  ;
358349caa483SSimon J. Gerraty  return 0;
358449caa483SSimon J. Gerraty}
358549caa483SSimon J. Gerraty_ACEOF
358649caa483SSimon J. Gerratyac_clean_files="$ac_clean_files conftest.out"
358749caa483SSimon J. Gerraty# Check that the compiler produces executables we can run.  If not, either
358849caa483SSimon J. Gerraty# the compiler is broken, or we cross compile.
35894fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
35904fde40d9SSimon J. Gerratyprintf %s "checking whether we are cross compiling... " >&6; }
359149caa483SSimon J. Gerratyif test "$cross_compiling" != yes; then
359249caa483SSimon J. Gerraty  { { ac_try="$ac_link"
359349caa483SSimon J. Gerratycase "(($ac_try" in
359449caa483SSimon J. Gerraty  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
359549caa483SSimon J. Gerraty  *) ac_try_echo=$ac_try;;
359649caa483SSimon J. Gerratyesac
359749caa483SSimon J. Gerratyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35984fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_try_echo"; } >&5
359949caa483SSimon J. Gerraty  (eval "$ac_link") 2>&5
360049caa483SSimon J. Gerraty  ac_status=$?
36014fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
360249caa483SSimon J. Gerraty  test $ac_status = 0; }
360349caa483SSimon J. Gerraty  if { ac_try='./conftest$ac_cv_exeext'
360449caa483SSimon J. Gerraty  { { case "(($ac_try" in
360549caa483SSimon J. Gerraty  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
360649caa483SSimon J. Gerraty  *) ac_try_echo=$ac_try;;
360749caa483SSimon J. Gerratyesac
360849caa483SSimon J. Gerratyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36094fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_try_echo"; } >&5
361049caa483SSimon J. Gerraty  (eval "$ac_try") 2>&5
361149caa483SSimon J. Gerraty  ac_status=$?
36124fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
361349caa483SSimon J. Gerraty  test $ac_status = 0; }; }; then
361449caa483SSimon J. Gerraty    cross_compiling=no
361549caa483SSimon J. Gerraty  else
361649caa483SSimon J. Gerraty    if test "$cross_compiling" = maybe; then
361749caa483SSimon J. Gerraty	cross_compiling=yes
361849caa483SSimon J. Gerraty    else
3619*22619282SSimon J. Gerraty	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3620*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
36214fde40d9SSimon J. Gerratyas_fn_error 77 "cannot run C compiled programs.
3622*22619282SSimon J. GerratyIf you meant to cross compile, use '--host'.
3623*22619282SSimon J. GerratySee 'config.log' for more details" "$LINENO" 5; }
362449caa483SSimon J. Gerraty    fi
362549caa483SSimon J. Gerraty  fi
362649caa483SSimon J. Gerratyfi
36274fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
36284fde40d9SSimon J. Gerratyprintf "%s\n" "$cross_compiling" >&6; }
362949caa483SSimon J. Gerraty
3630*22619282SSimon J. Gerratyrm -f conftest.$ac_ext conftest$ac_cv_exeext \
3631*22619282SSimon J. Gerraty  conftest.o conftest.obj conftest.out
363249caa483SSimon J. Gerratyac_clean_files=$ac_clean_files_save
36334fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
36344fde40d9SSimon J. Gerratyprintf %s "checking for suffix of object files... " >&6; }
36354fde40d9SSimon J. Gerratyif test ${ac_cv_objext+y}
36364fde40d9SSimon J. Gerratythen :
36374fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3638*22619282SSimon J. Gerratyelse case e in #(
3639*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36403955d011SMarcel Moolenaar/* end confdefs.h.  */
36413955d011SMarcel Moolenaar
36423955d011SMarcel Moolenaarint
36434fde40d9SSimon J. Gerratymain (void)
36443955d011SMarcel Moolenaar{
36453955d011SMarcel Moolenaar
36463955d011SMarcel Moolenaar  ;
36473955d011SMarcel Moolenaar  return 0;
36483955d011SMarcel Moolenaar}
36493955d011SMarcel Moolenaar_ACEOF
36503955d011SMarcel Moolenaarrm -f conftest.o conftest.obj
36513955d011SMarcel Moolenaarif { { ac_try="$ac_compile"
36523955d011SMarcel Moolenaarcase "(($ac_try" in
36533955d011SMarcel Moolenaar  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36543955d011SMarcel Moolenaar  *) ac_try_echo=$ac_try;;
36553955d011SMarcel Moolenaaresac
36563955d011SMarcel Moolenaareval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36574fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_try_echo"; } >&5
36583955d011SMarcel Moolenaar  (eval "$ac_compile") 2>&5
36593955d011SMarcel Moolenaar  ac_status=$?
36604fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36614fde40d9SSimon J. Gerraty  test $ac_status = 0; }
36624fde40d9SSimon J. Gerratythen :
36633955d011SMarcel Moolenaar  for ac_file in conftest.o conftest.obj conftest.*; do
36643955d011SMarcel Moolenaar  test -f "$ac_file" || continue;
36653955d011SMarcel Moolenaar  case $ac_file in
36663955d011SMarcel Moolenaar    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
36673955d011SMarcel Moolenaar    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
36683955d011SMarcel Moolenaar       break;;
36693955d011SMarcel Moolenaar  esac
36703955d011SMarcel Moolenaardone
3671*22619282SSimon J. Gerratyelse case e in #(
3672*22619282SSimon J. Gerraty  e) printf "%s\n" "$as_me: failed program was:" >&5
36733955d011SMarcel Moolenaarsed 's/^/| /' conftest.$ac_ext >&5
36743955d011SMarcel Moolenaar
3675*22619282SSimon J. Gerraty{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3676*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
367749caa483SSimon J. Gerratyas_fn_error $? "cannot compute suffix of object files: cannot compile
3678*22619282SSimon J. GerratySee 'config.log' for more details" "$LINENO" 5; } ;;
3679*22619282SSimon J. Gerratyesac
36803955d011SMarcel Moolenaarfi
3681*22619282SSimon J. Gerratyrm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3682*22619282SSimon J. Gerratyesac
36833955d011SMarcel Moolenaarfi
36844fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
36854fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_objext" >&6; }
36863955d011SMarcel MoolenaarOBJEXT=$ac_cv_objext
36873955d011SMarcel Moolenaarac_objext=$OBJEXT
36884fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
36894fde40d9SSimon J. Gerratyprintf %s "checking whether the compiler supports GNU C... " >&6; }
36904fde40d9SSimon J. Gerratyif test ${ac_cv_c_compiler_gnu+y}
36914fde40d9SSimon J. Gerratythen :
36924fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3693*22619282SSimon J. Gerratyelse case e in #(
3694*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36953955d011SMarcel Moolenaar/* end confdefs.h.  */
36963955d011SMarcel Moolenaar
36973955d011SMarcel Moolenaarint
36984fde40d9SSimon J. Gerratymain (void)
36993955d011SMarcel Moolenaar{
37003955d011SMarcel Moolenaar#ifndef __GNUC__
37013955d011SMarcel Moolenaar       choke me
37023955d011SMarcel Moolenaar#endif
37033955d011SMarcel Moolenaar
37043955d011SMarcel Moolenaar  ;
37053955d011SMarcel Moolenaar  return 0;
37063955d011SMarcel Moolenaar}
37073955d011SMarcel Moolenaar_ACEOF
37084fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
37094fde40d9SSimon J. Gerratythen :
37103955d011SMarcel Moolenaar  ac_compiler_gnu=yes
3711*22619282SSimon J. Gerratyelse case e in #(
3712*22619282SSimon J. Gerraty  e) ac_compiler_gnu=no ;;
3713*22619282SSimon J. Gerratyesac
37143955d011SMarcel Moolenaarfi
37154fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37163955d011SMarcel Moolenaarac_cv_c_compiler_gnu=$ac_compiler_gnu
3717*22619282SSimon J. Gerraty ;;
3718*22619282SSimon J. Gerratyesac
37193955d011SMarcel Moolenaarfi
37204fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
37214fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
37224fde40d9SSimon J. Gerratyac_compiler_gnu=$ac_cv_c_compiler_gnu
37234fde40d9SSimon J. Gerraty
37243955d011SMarcel Moolenaarif test $ac_compiler_gnu = yes; then
37253955d011SMarcel Moolenaar  GCC=yes
37263955d011SMarcel Moolenaarelse
37273955d011SMarcel Moolenaar  GCC=
37283955d011SMarcel Moolenaarfi
37294fde40d9SSimon J. Gerratyac_test_CFLAGS=${CFLAGS+y}
37303955d011SMarcel Moolenaarac_save_CFLAGS=$CFLAGS
37314fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
37324fde40d9SSimon J. Gerratyprintf %s "checking whether $CC accepts -g... " >&6; }
37334fde40d9SSimon J. Gerratyif test ${ac_cv_prog_cc_g+y}
37344fde40d9SSimon J. Gerratythen :
37354fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3736*22619282SSimon J. Gerratyelse case e in #(
3737*22619282SSimon J. Gerraty  e) ac_save_c_werror_flag=$ac_c_werror_flag
37383955d011SMarcel Moolenaar   ac_c_werror_flag=yes
37393955d011SMarcel Moolenaar   ac_cv_prog_cc_g=no
37403955d011SMarcel Moolenaar   CFLAGS="-g"
37413955d011SMarcel Moolenaar   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37423955d011SMarcel Moolenaar/* end confdefs.h.  */
37433955d011SMarcel Moolenaar
37443955d011SMarcel Moolenaarint
37454fde40d9SSimon J. Gerratymain (void)
37463955d011SMarcel Moolenaar{
37473955d011SMarcel Moolenaar
37483955d011SMarcel Moolenaar  ;
37493955d011SMarcel Moolenaar  return 0;
37503955d011SMarcel Moolenaar}
37513955d011SMarcel Moolenaar_ACEOF
37524fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
37534fde40d9SSimon J. Gerratythen :
37543955d011SMarcel Moolenaar  ac_cv_prog_cc_g=yes
3755*22619282SSimon J. Gerratyelse case e in #(
3756*22619282SSimon J. Gerraty  e) CFLAGS=""
37573955d011SMarcel Moolenaar      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37583955d011SMarcel Moolenaar/* end confdefs.h.  */
37593955d011SMarcel Moolenaar
37603955d011SMarcel Moolenaarint
37614fde40d9SSimon J. Gerratymain (void)
37623955d011SMarcel Moolenaar{
37633955d011SMarcel Moolenaar
37643955d011SMarcel Moolenaar  ;
37653955d011SMarcel Moolenaar  return 0;
37663955d011SMarcel Moolenaar}
37673955d011SMarcel Moolenaar_ACEOF
37684fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
37694fde40d9SSimon J. Gerratythen :
37703955d011SMarcel Moolenaar
3771*22619282SSimon J. Gerratyelse case e in #(
3772*22619282SSimon J. Gerraty  e) ac_c_werror_flag=$ac_save_c_werror_flag
37733955d011SMarcel Moolenaar	 CFLAGS="-g"
37743955d011SMarcel Moolenaar	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37753955d011SMarcel Moolenaar/* end confdefs.h.  */
37763955d011SMarcel Moolenaar
37773955d011SMarcel Moolenaarint
37784fde40d9SSimon J. Gerratymain (void)
37793955d011SMarcel Moolenaar{
37803955d011SMarcel Moolenaar
37813955d011SMarcel Moolenaar  ;
37823955d011SMarcel Moolenaar  return 0;
37833955d011SMarcel Moolenaar}
37843955d011SMarcel Moolenaar_ACEOF
37854fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
37864fde40d9SSimon J. Gerratythen :
37873955d011SMarcel Moolenaar  ac_cv_prog_cc_g=yes
37883955d011SMarcel Moolenaarfi
3789*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3790*22619282SSimon J. Gerratyesac
3791*22619282SSimon J. Gerratyfi
3792*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3793*22619282SSimon J. Gerratyesac
37943955d011SMarcel Moolenaarfi
37954fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3796*22619282SSimon J. Gerraty   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3797*22619282SSimon J. Gerratyesac
37983955d011SMarcel Moolenaarfi
37994fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
38004fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
38014fde40d9SSimon J. Gerratyif test $ac_test_CFLAGS; then
38023955d011SMarcel Moolenaar  CFLAGS=$ac_save_CFLAGS
38033955d011SMarcel Moolenaarelif test $ac_cv_prog_cc_g = yes; then
38043955d011SMarcel Moolenaar  if test "$GCC" = yes; then
38053955d011SMarcel Moolenaar    CFLAGS="-g -O2"
38063955d011SMarcel Moolenaar  else
38073955d011SMarcel Moolenaar    CFLAGS="-g"
38083955d011SMarcel Moolenaar  fi
38093955d011SMarcel Moolenaarelse
38103955d011SMarcel Moolenaar  if test "$GCC" = yes; then
38113955d011SMarcel Moolenaar    CFLAGS="-O2"
38123955d011SMarcel Moolenaar  else
38133955d011SMarcel Moolenaar    CFLAGS=
38143955d011SMarcel Moolenaar  fi
38153955d011SMarcel Moolenaarfi
38164fde40d9SSimon J. Gerratyac_prog_cc_stdc=no
38174fde40d9SSimon J. Gerratyif test x$ac_prog_cc_stdc = xno
38184fde40d9SSimon J. Gerratythen :
38194fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
38204fde40d9SSimon J. Gerratyprintf %s "checking for $CC option to enable C11 features... " >&6; }
38214fde40d9SSimon J. Gerratyif test ${ac_cv_prog_cc_c11+y}
38224fde40d9SSimon J. Gerratythen :
38234fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3824*22619282SSimon J. Gerratyelse case e in #(
3825*22619282SSimon J. Gerraty  e) ac_cv_prog_cc_c11=no
38264fde40d9SSimon J. Gerratyac_save_CC=$CC
38274fde40d9SSimon J. Gerratycat confdefs.h - <<_ACEOF >conftest.$ac_ext
38284fde40d9SSimon J. Gerraty/* end confdefs.h.  */
38294fde40d9SSimon J. Gerraty$ac_c_conftest_c11_program
38304fde40d9SSimon J. Gerraty_ACEOF
38314fde40d9SSimon J. Gerratyfor ac_arg in '' -std=gnu11
38324fde40d9SSimon J. Gerratydo
38334fde40d9SSimon J. Gerraty  CC="$ac_save_CC $ac_arg"
38344fde40d9SSimon J. Gerraty  if ac_fn_c_try_compile "$LINENO"
38354fde40d9SSimon J. Gerratythen :
38364fde40d9SSimon J. Gerraty  ac_cv_prog_cc_c11=$ac_arg
38374fde40d9SSimon J. Gerratyfi
38384fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam
38394fde40d9SSimon J. Gerraty  test "x$ac_cv_prog_cc_c11" != "xno" && break
38404fde40d9SSimon J. Gerratydone
38414fde40d9SSimon J. Gerratyrm -f conftest.$ac_ext
3842*22619282SSimon J. GerratyCC=$ac_save_CC ;;
3843*22619282SSimon J. Gerratyesac
38444fde40d9SSimon J. Gerratyfi
38454fde40d9SSimon J. Gerraty
38464fde40d9SSimon J. Gerratyif test "x$ac_cv_prog_cc_c11" = xno
38474fde40d9SSimon J. Gerratythen :
38484fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
38494fde40d9SSimon J. Gerratyprintf "%s\n" "unsupported" >&6; }
3850*22619282SSimon J. Gerratyelse case e in #(
3851*22619282SSimon J. Gerraty  e) if test "x$ac_cv_prog_cc_c11" = x
38524fde40d9SSimon J. Gerratythen :
38534fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
38544fde40d9SSimon J. Gerratyprintf "%s\n" "none needed" >&6; }
3855*22619282SSimon J. Gerratyelse case e in #(
3856*22619282SSimon J. Gerraty  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
38574fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3858*22619282SSimon J. Gerraty     CC="$CC $ac_cv_prog_cc_c11" ;;
3859*22619282SSimon J. Gerratyesac
38604fde40d9SSimon J. Gerratyfi
38614fde40d9SSimon J. Gerraty  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3862*22619282SSimon J. Gerraty  ac_prog_cc_stdc=c11 ;;
3863*22619282SSimon J. Gerratyesac
38644fde40d9SSimon J. Gerratyfi
38654fde40d9SSimon J. Gerratyfi
38664fde40d9SSimon J. Gerratyif test x$ac_prog_cc_stdc = xno
38674fde40d9SSimon J. Gerratythen :
38684fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
38694fde40d9SSimon J. Gerratyprintf %s "checking for $CC option to enable C99 features... " >&6; }
38704fde40d9SSimon J. Gerratyif test ${ac_cv_prog_cc_c99+y}
38714fde40d9SSimon J. Gerratythen :
38724fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3873*22619282SSimon J. Gerratyelse case e in #(
3874*22619282SSimon J. Gerraty  e) ac_cv_prog_cc_c99=no
38754fde40d9SSimon J. Gerratyac_save_CC=$CC
38764fde40d9SSimon J. Gerratycat confdefs.h - <<_ACEOF >conftest.$ac_ext
38774fde40d9SSimon J. Gerraty/* end confdefs.h.  */
38784fde40d9SSimon J. Gerraty$ac_c_conftest_c99_program
38794fde40d9SSimon J. Gerraty_ACEOF
38804fde40d9SSimon J. Gerratyfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
38814fde40d9SSimon J. Gerratydo
38824fde40d9SSimon J. Gerraty  CC="$ac_save_CC $ac_arg"
38834fde40d9SSimon J. Gerraty  if ac_fn_c_try_compile "$LINENO"
38844fde40d9SSimon J. Gerratythen :
38854fde40d9SSimon J. Gerraty  ac_cv_prog_cc_c99=$ac_arg
38864fde40d9SSimon J. Gerratyfi
38874fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam
38884fde40d9SSimon J. Gerraty  test "x$ac_cv_prog_cc_c99" != "xno" && break
38894fde40d9SSimon J. Gerratydone
38904fde40d9SSimon J. Gerratyrm -f conftest.$ac_ext
3891*22619282SSimon J. GerratyCC=$ac_save_CC ;;
3892*22619282SSimon J. Gerratyesac
38934fde40d9SSimon J. Gerratyfi
38944fde40d9SSimon J. Gerraty
38954fde40d9SSimon J. Gerratyif test "x$ac_cv_prog_cc_c99" = xno
38964fde40d9SSimon J. Gerratythen :
38974fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
38984fde40d9SSimon J. Gerratyprintf "%s\n" "unsupported" >&6; }
3899*22619282SSimon J. Gerratyelse case e in #(
3900*22619282SSimon J. Gerraty  e) if test "x$ac_cv_prog_cc_c99" = x
39014fde40d9SSimon J. Gerratythen :
39024fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
39034fde40d9SSimon J. Gerratyprintf "%s\n" "none needed" >&6; }
3904*22619282SSimon J. Gerratyelse case e in #(
3905*22619282SSimon J. Gerraty  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
39064fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3907*22619282SSimon J. Gerraty     CC="$CC $ac_cv_prog_cc_c99" ;;
3908*22619282SSimon J. Gerratyesac
39094fde40d9SSimon J. Gerratyfi
39104fde40d9SSimon J. Gerraty  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3911*22619282SSimon J. Gerraty  ac_prog_cc_stdc=c99 ;;
3912*22619282SSimon J. Gerratyesac
39134fde40d9SSimon J. Gerratyfi
39144fde40d9SSimon J. Gerratyfi
39154fde40d9SSimon J. Gerratyif test x$ac_prog_cc_stdc = xno
39164fde40d9SSimon J. Gerratythen :
39174fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
39184fde40d9SSimon J. Gerratyprintf %s "checking for $CC option to enable C89 features... " >&6; }
39194fde40d9SSimon J. Gerratyif test ${ac_cv_prog_cc_c89+y}
39204fde40d9SSimon J. Gerratythen :
39214fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
3922*22619282SSimon J. Gerratyelse case e in #(
3923*22619282SSimon J. Gerraty  e) ac_cv_prog_cc_c89=no
39243955d011SMarcel Moolenaarac_save_CC=$CC
39253955d011SMarcel Moolenaarcat confdefs.h - <<_ACEOF >conftest.$ac_ext
39263955d011SMarcel Moolenaar/* end confdefs.h.  */
39274fde40d9SSimon J. Gerraty$ac_c_conftest_c89_program
39283955d011SMarcel Moolenaar_ACEOF
39294fde40d9SSimon J. Gerratyfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
39303955d011SMarcel Moolenaardo
39313955d011SMarcel Moolenaar  CC="$ac_save_CC $ac_arg"
39324fde40d9SSimon J. Gerraty  if ac_fn_c_try_compile "$LINENO"
39334fde40d9SSimon J. Gerratythen :
39343955d011SMarcel Moolenaar  ac_cv_prog_cc_c89=$ac_arg
39353955d011SMarcel Moolenaarfi
39364fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam
39373955d011SMarcel Moolenaar  test "x$ac_cv_prog_cc_c89" != "xno" && break
39383955d011SMarcel Moolenaardone
39393955d011SMarcel Moolenaarrm -f conftest.$ac_ext
3940*22619282SSimon J. GerratyCC=$ac_save_CC ;;
3941*22619282SSimon J. Gerratyesac
39423955d011SMarcel Moolenaarfi
39434fde40d9SSimon J. Gerraty
39444fde40d9SSimon J. Gerratyif test "x$ac_cv_prog_cc_c89" = xno
39454fde40d9SSimon J. Gerratythen :
39464fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
39474fde40d9SSimon J. Gerratyprintf "%s\n" "unsupported" >&6; }
3948*22619282SSimon J. Gerratyelse case e in #(
3949*22619282SSimon J. Gerraty  e) if test "x$ac_cv_prog_cc_c89" = x
39504fde40d9SSimon J. Gerratythen :
39514fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
39524fde40d9SSimon J. Gerratyprintf "%s\n" "none needed" >&6; }
3953*22619282SSimon J. Gerratyelse case e in #(
3954*22619282SSimon J. Gerraty  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
39554fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3956*22619282SSimon J. Gerraty     CC="$CC $ac_cv_prog_cc_c89" ;;
3957*22619282SSimon J. Gerratyesac
39584fde40d9SSimon J. Gerratyfi
39594fde40d9SSimon J. Gerraty  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3960*22619282SSimon J. Gerraty  ac_prog_cc_stdc=c89 ;;
3961*22619282SSimon J. Gerratyesac
39624fde40d9SSimon J. Gerratyfi
39633955d011SMarcel Moolenaarfi
39643955d011SMarcel Moolenaar
39653955d011SMarcel Moolenaarac_ext=c
39663955d011SMarcel Moolenaarac_cpp='$CPP $CPPFLAGS'
39673955d011SMarcel Moolenaarac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39683955d011SMarcel Moolenaarac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39693955d011SMarcel Moolenaarac_compiler_gnu=$ac_cv_c_compiler_gnu
39703955d011SMarcel Moolenaar
39713955d011SMarcel Moolenaar
39724fde40d9SSimon J. Gerratyac_header= ac_cache=
39734fde40d9SSimon J. Gerratyfor ac_item in $ac_header_c_list
39743955d011SMarcel Moolenaardo
39754fde40d9SSimon J. Gerraty  if test $ac_cache; then
39764fde40d9SSimon J. Gerraty    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
39774fde40d9SSimon J. Gerraty    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
39784fde40d9SSimon J. Gerraty      printf "%s\n" "#define $ac_item 1" >> confdefs.h
39794fde40d9SSimon J. Gerraty    fi
39804fde40d9SSimon J. Gerraty    ac_header= ac_cache=
39814fde40d9SSimon J. Gerraty  elif test $ac_header; then
39824fde40d9SSimon J. Gerraty    ac_cache=$ac_item
39833955d011SMarcel Moolenaar  else
39844fde40d9SSimon J. Gerraty    ac_header=$ac_item
39853955d011SMarcel Moolenaar  fi
39863955d011SMarcel Moolenaardone
39873955d011SMarcel Moolenaar
39883955d011SMarcel Moolenaar
39893955d011SMarcel Moolenaar
39903955d011SMarcel Moolenaar
39913955d011SMarcel Moolenaar
39923955d011SMarcel Moolenaar
39933955d011SMarcel Moolenaar
39943955d011SMarcel Moolenaar
39954fde40d9SSimon J. Gerratyif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
39964fde40d9SSimon J. Gerratythen :
39973955d011SMarcel Moolenaar
39984fde40d9SSimon J. Gerratyprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
39993955d011SMarcel Moolenaar
40003955d011SMarcel Moolenaarfi
40013955d011SMarcel Moolenaar
40023955d011SMarcel Moolenaar
40034fde40d9SSimon J. Gerraty
40044fde40d9SSimon J. Gerraty
40054fde40d9SSimon J. Gerraty
40064fde40d9SSimon J. Gerraty
40074fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
40084fde40d9SSimon J. Gerratyprintf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
40094fde40d9SSimon J. Gerratyif test ${ac_cv_safe_to_define___extensions__+y}
40104fde40d9SSimon J. Gerratythen :
40114fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4012*22619282SSimon J. Gerratyelse case e in #(
4013*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40143955d011SMarcel Moolenaar/* end confdefs.h.  */
40153955d011SMarcel Moolenaar
40163955d011SMarcel Moolenaar#         define __EXTENSIONS__ 1
40173955d011SMarcel Moolenaar          $ac_includes_default
40183955d011SMarcel Moolenaarint
40194fde40d9SSimon J. Gerratymain (void)
40203955d011SMarcel Moolenaar{
40213955d011SMarcel Moolenaar
40223955d011SMarcel Moolenaar  ;
40233955d011SMarcel Moolenaar  return 0;
40243955d011SMarcel Moolenaar}
40253955d011SMarcel Moolenaar_ACEOF
40264fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
40274fde40d9SSimon J. Gerratythen :
40283955d011SMarcel Moolenaar  ac_cv_safe_to_define___extensions__=yes
4029*22619282SSimon J. Gerratyelse case e in #(
4030*22619282SSimon J. Gerraty  e) ac_cv_safe_to_define___extensions__=no ;;
4031*22619282SSimon J. Gerratyesac
40323955d011SMarcel Moolenaarfi
4033*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4034*22619282SSimon J. Gerratyesac
40353955d011SMarcel Moolenaarfi
40364fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
40374fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
40383955d011SMarcel Moolenaar
40394fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
40404fde40d9SSimon J. Gerratyprintf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
40414fde40d9SSimon J. Gerratyif test ${ac_cv_should_define__xopen_source+y}
40424fde40d9SSimon J. Gerratythen :
40434fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4044*22619282SSimon J. Gerratyelse case e in #(
4045*22619282SSimon J. Gerraty  e) ac_cv_should_define__xopen_source=no
40464fde40d9SSimon J. Gerraty    if test $ac_cv_header_wchar_h = yes
40474fde40d9SSimon J. Gerratythen :
40484fde40d9SSimon J. Gerraty  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40494fde40d9SSimon J. Gerraty/* end confdefs.h.  */
40503955d011SMarcel Moolenaar
40514fde40d9SSimon J. Gerraty          #include <wchar.h>
40524fde40d9SSimon J. Gerraty          mbstate_t x;
40534fde40d9SSimon J. Gerratyint
40544fde40d9SSimon J. Gerratymain (void)
40554fde40d9SSimon J. Gerraty{
40563955d011SMarcel Moolenaar
40574fde40d9SSimon J. Gerraty  ;
40584fde40d9SSimon J. Gerraty  return 0;
40594fde40d9SSimon J. Gerraty}
40604fde40d9SSimon J. Gerraty_ACEOF
40614fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
40624fde40d9SSimon J. Gerratythen :
40633955d011SMarcel Moolenaar
4064*22619282SSimon J. Gerratyelse case e in #(
4065*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664fde40d9SSimon J. Gerraty/* end confdefs.h.  */
40673955d011SMarcel Moolenaar
40684fde40d9SSimon J. Gerraty            #define _XOPEN_SOURCE 500
40694fde40d9SSimon J. Gerraty            #include <wchar.h>
40704fde40d9SSimon J. Gerraty            mbstate_t x;
40714fde40d9SSimon J. Gerratyint
40724fde40d9SSimon J. Gerratymain (void)
40734fde40d9SSimon J. Gerraty{
40744fde40d9SSimon J. Gerraty
40754fde40d9SSimon J. Gerraty  ;
40764fde40d9SSimon J. Gerraty  return 0;
40774fde40d9SSimon J. Gerraty}
40784fde40d9SSimon J. Gerraty_ACEOF
40794fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
40804fde40d9SSimon J. Gerratythen :
40814fde40d9SSimon J. Gerraty  ac_cv_should_define__xopen_source=yes
40824fde40d9SSimon J. Gerratyfi
4083*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4084*22619282SSimon J. Gerratyesac
40854fde40d9SSimon J. Gerratyfi
40864fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4087*22619282SSimon J. Gerratyfi ;;
4088*22619282SSimon J. Gerratyesac
40894fde40d9SSimon J. Gerratyfi
40904fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
40914fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
40924fde40d9SSimon J. Gerraty
40934fde40d9SSimon J. Gerraty  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
40944fde40d9SSimon J. Gerraty
40954fde40d9SSimon J. Gerraty  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
40964fde40d9SSimon J. Gerraty
40974fde40d9SSimon J. Gerraty  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
40984fde40d9SSimon J. Gerraty
40994fde40d9SSimon J. Gerraty  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
41004fde40d9SSimon J. Gerraty
41014fde40d9SSimon J. Gerraty  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
41024fde40d9SSimon J. Gerraty
41034fde40d9SSimon J. Gerraty  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
41044fde40d9SSimon J. Gerraty
41054fde40d9SSimon J. Gerraty  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
41064fde40d9SSimon J. Gerraty
41074fde40d9SSimon J. Gerraty  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
41084fde40d9SSimon J. Gerraty
41094fde40d9SSimon J. Gerraty  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
41104fde40d9SSimon J. Gerraty
41114fde40d9SSimon J. Gerraty  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
41124fde40d9SSimon J. Gerraty
4113*22619282SSimon J. Gerraty  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4114*22619282SSimon J. Gerraty
41154fde40d9SSimon J. Gerraty  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
41164fde40d9SSimon J. Gerraty
41174fde40d9SSimon J. Gerraty  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
41184fde40d9SSimon J. Gerraty
41194fde40d9SSimon J. Gerraty  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
41204fde40d9SSimon J. Gerraty
41214fde40d9SSimon J. Gerraty  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
41224fde40d9SSimon J. Gerraty
41234fde40d9SSimon J. Gerraty  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
41244fde40d9SSimon J. Gerraty
41254fde40d9SSimon J. Gerraty  if test $ac_cv_header_minix_config_h = yes
41264fde40d9SSimon J. Gerratythen :
41274fde40d9SSimon J. Gerraty  MINIX=yes
41284fde40d9SSimon J. Gerraty    printf "%s\n" "#define _MINIX 1" >>confdefs.h
41294fde40d9SSimon J. Gerraty
41304fde40d9SSimon J. Gerraty    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
41314fde40d9SSimon J. Gerraty
41324fde40d9SSimon J. Gerraty    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
41334fde40d9SSimon J. Gerraty
4134*22619282SSimon J. Gerratyelse case e in #(
4135*22619282SSimon J. Gerraty  e) MINIX= ;;
4136*22619282SSimon J. Gerratyesac
41374fde40d9SSimon J. Gerratyfi
41384fde40d9SSimon J. Gerraty  if test $ac_cv_safe_to_define___extensions__ = yes
41394fde40d9SSimon J. Gerratythen :
41404fde40d9SSimon J. Gerraty  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
41414fde40d9SSimon J. Gerraty
41424fde40d9SSimon J. Gerratyfi
41434fde40d9SSimon J. Gerraty  if test $ac_cv_should_define__xopen_source = yes
41444fde40d9SSimon J. Gerratythen :
41454fde40d9SSimon J. Gerraty  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
41464fde40d9SSimon J. Gerraty
41474fde40d9SSimon J. Gerratyfi
41483955d011SMarcel Moolenaar
41493955d011SMarcel Moolenaarac_ext=c
41503955d011SMarcel Moolenaarac_cpp='$CPP $CPPFLAGS'
41513955d011SMarcel Moolenaarac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41523955d011SMarcel Moolenaarac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41533955d011SMarcel Moolenaarac_compiler_gnu=$ac_cv_c_compiler_gnu
41543955d011SMarcel Moolenaarif test -n "$ac_tool_prefix"; then
41553955d011SMarcel Moolenaar  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
41563955d011SMarcel Moolenaarset dummy ${ac_tool_prefix}gcc; ac_word=$2
41574fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41584fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
41594fde40d9SSimon J. Gerratyif test ${ac_cv_prog_CC+y}
41604fde40d9SSimon J. Gerratythen :
41614fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4162*22619282SSimon J. Gerratyelse case e in #(
4163*22619282SSimon J. Gerraty  e) if test -n "$CC"; then
41643955d011SMarcel Moolenaar  ac_cv_prog_CC="$CC" # Let the user override the test.
41653955d011SMarcel Moolenaarelse
41663955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41673955d011SMarcel Moolenaarfor as_dir in $PATH
41683955d011SMarcel Moolenaardo
41693955d011SMarcel Moolenaar  IFS=$as_save_IFS
41704fde40d9SSimon J. Gerraty  case $as_dir in #(((
41714fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
41724fde40d9SSimon J. Gerraty    */) ;;
41734fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
41744fde40d9SSimon J. Gerraty  esac
41753955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
41764fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
41773955d011SMarcel Moolenaar    ac_cv_prog_CC="${ac_tool_prefix}gcc"
41784fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
41793955d011SMarcel Moolenaar    break 2
41803955d011SMarcel Moolenaar  fi
41813955d011SMarcel Moolenaardone
41823955d011SMarcel Moolenaar  done
41833955d011SMarcel MoolenaarIFS=$as_save_IFS
41843955d011SMarcel Moolenaar
4185*22619282SSimon J. Gerratyfi ;;
4186*22619282SSimon J. Gerratyesac
41873955d011SMarcel Moolenaarfi
41883955d011SMarcel MoolenaarCC=$ac_cv_prog_CC
41893955d011SMarcel Moolenaarif test -n "$CC"; then
41904fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
41914fde40d9SSimon J. Gerratyprintf "%s\n" "$CC" >&6; }
41923955d011SMarcel Moolenaarelse
41934fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41944fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
41953955d011SMarcel Moolenaarfi
41963955d011SMarcel Moolenaar
41973955d011SMarcel Moolenaar
41983955d011SMarcel Moolenaarfi
41993955d011SMarcel Moolenaarif test -z "$ac_cv_prog_CC"; then
42003955d011SMarcel Moolenaar  ac_ct_CC=$CC
42013955d011SMarcel Moolenaar  # Extract the first word of "gcc", so it can be a program name with args.
42023955d011SMarcel Moolenaarset dummy gcc; ac_word=$2
42034fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42044fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
42054fde40d9SSimon J. Gerratyif test ${ac_cv_prog_ac_ct_CC+y}
42064fde40d9SSimon J. Gerratythen :
42074fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4208*22619282SSimon J. Gerratyelse case e in #(
4209*22619282SSimon J. Gerraty  e) if test -n "$ac_ct_CC"; then
42103955d011SMarcel Moolenaar  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
42113955d011SMarcel Moolenaarelse
42123955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42133955d011SMarcel Moolenaarfor as_dir in $PATH
42143955d011SMarcel Moolenaardo
42153955d011SMarcel Moolenaar  IFS=$as_save_IFS
42164fde40d9SSimon J. Gerraty  case $as_dir in #(((
42174fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
42184fde40d9SSimon J. Gerraty    */) ;;
42194fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
42204fde40d9SSimon J. Gerraty  esac
42213955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
42224fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
42233955d011SMarcel Moolenaar    ac_cv_prog_ac_ct_CC="gcc"
42244fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
42253955d011SMarcel Moolenaar    break 2
42263955d011SMarcel Moolenaar  fi
42273955d011SMarcel Moolenaardone
42283955d011SMarcel Moolenaar  done
42293955d011SMarcel MoolenaarIFS=$as_save_IFS
42303955d011SMarcel Moolenaar
4231*22619282SSimon J. Gerratyfi ;;
4232*22619282SSimon J. Gerratyesac
42333955d011SMarcel Moolenaarfi
42343955d011SMarcel Moolenaarac_ct_CC=$ac_cv_prog_ac_ct_CC
42353955d011SMarcel Moolenaarif test -n "$ac_ct_CC"; then
42364fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
42374fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_ct_CC" >&6; }
42383955d011SMarcel Moolenaarelse
42394fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42404fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
42413955d011SMarcel Moolenaarfi
42423955d011SMarcel Moolenaar
42433955d011SMarcel Moolenaar  if test "x$ac_ct_CC" = x; then
42443955d011SMarcel Moolenaar    CC=""
42453955d011SMarcel Moolenaar  else
42463955d011SMarcel Moolenaar    case $cross_compiling:$ac_tool_warned in
42473955d011SMarcel Moolenaaryes:)
42484fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
42494fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
42503955d011SMarcel Moolenaarac_tool_warned=yes ;;
42513955d011SMarcel Moolenaaresac
42523955d011SMarcel Moolenaar    CC=$ac_ct_CC
42533955d011SMarcel Moolenaar  fi
42543955d011SMarcel Moolenaarelse
42553955d011SMarcel Moolenaar  CC="$ac_cv_prog_CC"
42563955d011SMarcel Moolenaarfi
42573955d011SMarcel Moolenaar
42583955d011SMarcel Moolenaarif test -z "$CC"; then
42593955d011SMarcel Moolenaar          if test -n "$ac_tool_prefix"; then
42603955d011SMarcel Moolenaar    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42613955d011SMarcel Moolenaarset dummy ${ac_tool_prefix}cc; ac_word=$2
42624fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42634fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
42644fde40d9SSimon J. Gerratyif test ${ac_cv_prog_CC+y}
42654fde40d9SSimon J. Gerratythen :
42664fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4267*22619282SSimon J. Gerratyelse case e in #(
4268*22619282SSimon J. Gerraty  e) if test -n "$CC"; then
42693955d011SMarcel Moolenaar  ac_cv_prog_CC="$CC" # Let the user override the test.
42703955d011SMarcel Moolenaarelse
42713955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42723955d011SMarcel Moolenaarfor as_dir in $PATH
42733955d011SMarcel Moolenaardo
42743955d011SMarcel Moolenaar  IFS=$as_save_IFS
42754fde40d9SSimon J. Gerraty  case $as_dir in #(((
42764fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
42774fde40d9SSimon J. Gerraty    */) ;;
42784fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
42794fde40d9SSimon J. Gerraty  esac
42803955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
42814fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
42823955d011SMarcel Moolenaar    ac_cv_prog_CC="${ac_tool_prefix}cc"
42834fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
42843955d011SMarcel Moolenaar    break 2
42853955d011SMarcel Moolenaar  fi
42863955d011SMarcel Moolenaardone
42873955d011SMarcel Moolenaar  done
42883955d011SMarcel MoolenaarIFS=$as_save_IFS
42893955d011SMarcel Moolenaar
4290*22619282SSimon J. Gerratyfi ;;
4291*22619282SSimon J. Gerratyesac
42923955d011SMarcel Moolenaarfi
42933955d011SMarcel MoolenaarCC=$ac_cv_prog_CC
42943955d011SMarcel Moolenaarif test -n "$CC"; then
42954fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
42964fde40d9SSimon J. Gerratyprintf "%s\n" "$CC" >&6; }
42973955d011SMarcel Moolenaarelse
42984fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42994fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
43003955d011SMarcel Moolenaarfi
43013955d011SMarcel Moolenaar
43023955d011SMarcel Moolenaar
43033955d011SMarcel Moolenaar  fi
43043955d011SMarcel Moolenaarfi
43053955d011SMarcel Moolenaarif test -z "$CC"; then
43063955d011SMarcel Moolenaar  # Extract the first word of "cc", so it can be a program name with args.
43073955d011SMarcel Moolenaarset dummy cc; ac_word=$2
43084fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43094fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
43104fde40d9SSimon J. Gerratyif test ${ac_cv_prog_CC+y}
43114fde40d9SSimon J. Gerratythen :
43124fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4313*22619282SSimon J. Gerratyelse case e in #(
4314*22619282SSimon J. Gerraty  e) if test -n "$CC"; then
43153955d011SMarcel Moolenaar  ac_cv_prog_CC="$CC" # Let the user override the test.
43163955d011SMarcel Moolenaarelse
43173955d011SMarcel Moolenaar  ac_prog_rejected=no
43183955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43193955d011SMarcel Moolenaarfor as_dir in $PATH
43203955d011SMarcel Moolenaardo
43213955d011SMarcel Moolenaar  IFS=$as_save_IFS
43224fde40d9SSimon J. Gerraty  case $as_dir in #(((
43234fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
43244fde40d9SSimon J. Gerraty    */) ;;
43254fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
43264fde40d9SSimon J. Gerraty  esac
43273955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
43284fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43294fde40d9SSimon J. Gerraty    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
43303955d011SMarcel Moolenaar       ac_prog_rejected=yes
43313955d011SMarcel Moolenaar       continue
43323955d011SMarcel Moolenaar     fi
43333955d011SMarcel Moolenaar    ac_cv_prog_CC="cc"
43344fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43353955d011SMarcel Moolenaar    break 2
43363955d011SMarcel Moolenaar  fi
43373955d011SMarcel Moolenaardone
43383955d011SMarcel Moolenaar  done
43393955d011SMarcel MoolenaarIFS=$as_save_IFS
43403955d011SMarcel Moolenaar
43413955d011SMarcel Moolenaarif test $ac_prog_rejected = yes; then
43423955d011SMarcel Moolenaar  # We found a bogon in the path, so make sure we never use it.
43433955d011SMarcel Moolenaar  set dummy $ac_cv_prog_CC
43443955d011SMarcel Moolenaar  shift
43453955d011SMarcel Moolenaar  if test $# != 0; then
43463955d011SMarcel Moolenaar    # We chose a different compiler from the bogus one.
43473955d011SMarcel Moolenaar    # However, it has the same basename, so the bogon will be chosen
43483955d011SMarcel Moolenaar    # first if we set CC to just the basename; use the full file name.
43493955d011SMarcel Moolenaar    shift
43504fde40d9SSimon J. Gerraty    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
43513955d011SMarcel Moolenaar  fi
43523955d011SMarcel Moolenaarfi
4353*22619282SSimon J. Gerratyfi ;;
4354*22619282SSimon J. Gerratyesac
43553955d011SMarcel Moolenaarfi
43563955d011SMarcel MoolenaarCC=$ac_cv_prog_CC
43573955d011SMarcel Moolenaarif test -n "$CC"; then
43584fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
43594fde40d9SSimon J. Gerratyprintf "%s\n" "$CC" >&6; }
43603955d011SMarcel Moolenaarelse
43614fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43624fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
43633955d011SMarcel Moolenaarfi
43643955d011SMarcel Moolenaar
43653955d011SMarcel Moolenaar
43663955d011SMarcel Moolenaarfi
43673955d011SMarcel Moolenaarif test -z "$CC"; then
43683955d011SMarcel Moolenaar  if test -n "$ac_tool_prefix"; then
43693955d011SMarcel Moolenaar  for ac_prog in cl.exe
43703955d011SMarcel Moolenaar  do
43713955d011SMarcel Moolenaar    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
43723955d011SMarcel Moolenaarset dummy $ac_tool_prefix$ac_prog; ac_word=$2
43734fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43744fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
43754fde40d9SSimon J. Gerratyif test ${ac_cv_prog_CC+y}
43764fde40d9SSimon J. Gerratythen :
43774fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4378*22619282SSimon J. Gerratyelse case e in #(
4379*22619282SSimon J. Gerraty  e) if test -n "$CC"; then
43803955d011SMarcel Moolenaar  ac_cv_prog_CC="$CC" # Let the user override the test.
43813955d011SMarcel Moolenaarelse
43823955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43833955d011SMarcel Moolenaarfor as_dir in $PATH
43843955d011SMarcel Moolenaardo
43853955d011SMarcel Moolenaar  IFS=$as_save_IFS
43864fde40d9SSimon J. Gerraty  case $as_dir in #(((
43874fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
43884fde40d9SSimon J. Gerraty    */) ;;
43894fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
43904fde40d9SSimon J. Gerraty  esac
43913955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
43924fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43933955d011SMarcel Moolenaar    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
43944fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43953955d011SMarcel Moolenaar    break 2
43963955d011SMarcel Moolenaar  fi
43973955d011SMarcel Moolenaardone
43983955d011SMarcel Moolenaar  done
43993955d011SMarcel MoolenaarIFS=$as_save_IFS
44003955d011SMarcel Moolenaar
4401*22619282SSimon J. Gerratyfi ;;
4402*22619282SSimon J. Gerratyesac
44033955d011SMarcel Moolenaarfi
44043955d011SMarcel MoolenaarCC=$ac_cv_prog_CC
44053955d011SMarcel Moolenaarif test -n "$CC"; then
44064fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
44074fde40d9SSimon J. Gerratyprintf "%s\n" "$CC" >&6; }
44083955d011SMarcel Moolenaarelse
44094fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44104fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
44113955d011SMarcel Moolenaarfi
44123955d011SMarcel Moolenaar
44133955d011SMarcel Moolenaar
44143955d011SMarcel Moolenaar    test -n "$CC" && break
44153955d011SMarcel Moolenaar  done
44163955d011SMarcel Moolenaarfi
44173955d011SMarcel Moolenaarif test -z "$CC"; then
44183955d011SMarcel Moolenaar  ac_ct_CC=$CC
44193955d011SMarcel Moolenaar  for ac_prog in cl.exe
44203955d011SMarcel Moolenaardo
44213955d011SMarcel Moolenaar  # Extract the first word of "$ac_prog", so it can be a program name with args.
44223955d011SMarcel Moolenaarset dummy $ac_prog; ac_word=$2
44234fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44244fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
44254fde40d9SSimon J. Gerratyif test ${ac_cv_prog_ac_ct_CC+y}
44264fde40d9SSimon J. Gerratythen :
44274fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4428*22619282SSimon J. Gerratyelse case e in #(
4429*22619282SSimon J. Gerraty  e) if test -n "$ac_ct_CC"; then
44303955d011SMarcel Moolenaar  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
44313955d011SMarcel Moolenaarelse
44323955d011SMarcel Moolenaaras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44333955d011SMarcel Moolenaarfor as_dir in $PATH
44343955d011SMarcel Moolenaardo
44353955d011SMarcel Moolenaar  IFS=$as_save_IFS
44364fde40d9SSimon J. Gerraty  case $as_dir in #(((
44374fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
44384fde40d9SSimon J. Gerraty    */) ;;
44394fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
44404fde40d9SSimon J. Gerraty  esac
44413955d011SMarcel Moolenaar    for ac_exec_ext in '' $ac_executable_extensions; do
44424fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44433955d011SMarcel Moolenaar    ac_cv_prog_ac_ct_CC="$ac_prog"
44444fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44453955d011SMarcel Moolenaar    break 2
44463955d011SMarcel Moolenaar  fi
44473955d011SMarcel Moolenaardone
44483955d011SMarcel Moolenaar  done
44493955d011SMarcel MoolenaarIFS=$as_save_IFS
44503955d011SMarcel Moolenaar
4451*22619282SSimon J. Gerratyfi ;;
4452*22619282SSimon J. Gerratyesac
44533955d011SMarcel Moolenaarfi
44543955d011SMarcel Moolenaarac_ct_CC=$ac_cv_prog_ac_ct_CC
44553955d011SMarcel Moolenaarif test -n "$ac_ct_CC"; then
44564fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
44574fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_ct_CC" >&6; }
44583955d011SMarcel Moolenaarelse
44594fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44604fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
44613955d011SMarcel Moolenaarfi
44623955d011SMarcel Moolenaar
44633955d011SMarcel Moolenaar
44643955d011SMarcel Moolenaar  test -n "$ac_ct_CC" && break
44653955d011SMarcel Moolenaardone
44663955d011SMarcel Moolenaar
44673955d011SMarcel Moolenaar  if test "x$ac_ct_CC" = x; then
44683955d011SMarcel Moolenaar    CC=""
44693955d011SMarcel Moolenaar  else
44703955d011SMarcel Moolenaar    case $cross_compiling:$ac_tool_warned in
44713955d011SMarcel Moolenaaryes:)
44724fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44734fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44743955d011SMarcel Moolenaarac_tool_warned=yes ;;
44753955d011SMarcel Moolenaaresac
44763955d011SMarcel Moolenaar    CC=$ac_ct_CC
44773955d011SMarcel Moolenaar  fi
44783955d011SMarcel Moolenaarfi
44793955d011SMarcel Moolenaar
44803955d011SMarcel Moolenaarfi
44814fde40d9SSimon J. Gerratyif test -z "$CC"; then
44824fde40d9SSimon J. Gerraty  if test -n "$ac_tool_prefix"; then
44834fde40d9SSimon J. Gerraty  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
44844fde40d9SSimon J. Gerratyset dummy ${ac_tool_prefix}clang; ac_word=$2
44854fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44864fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
44874fde40d9SSimon J. Gerratyif test ${ac_cv_prog_CC+y}
44884fde40d9SSimon J. Gerratythen :
44894fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4490*22619282SSimon J. Gerratyelse case e in #(
4491*22619282SSimon J. Gerraty  e) if test -n "$CC"; then
44924fde40d9SSimon J. Gerraty  ac_cv_prog_CC="$CC" # Let the user override the test.
44934fde40d9SSimon J. Gerratyelse
44944fde40d9SSimon J. Gerratyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44954fde40d9SSimon J. Gerratyfor as_dir in $PATH
44964fde40d9SSimon J. Gerratydo
44974fde40d9SSimon J. Gerraty  IFS=$as_save_IFS
44984fde40d9SSimon J. Gerraty  case $as_dir in #(((
44994fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
45004fde40d9SSimon J. Gerraty    */) ;;
45014fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
45024fde40d9SSimon J. Gerraty  esac
45034fde40d9SSimon J. Gerraty    for ac_exec_ext in '' $ac_executable_extensions; do
45044fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45054fde40d9SSimon J. Gerraty    ac_cv_prog_CC="${ac_tool_prefix}clang"
45064fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45074fde40d9SSimon J. Gerraty    break 2
45084fde40d9SSimon J. Gerraty  fi
45094fde40d9SSimon J. Gerratydone
45104fde40d9SSimon J. Gerraty  done
45114fde40d9SSimon J. GerratyIFS=$as_save_IFS
45124fde40d9SSimon J. Gerraty
4513*22619282SSimon J. Gerratyfi ;;
4514*22619282SSimon J. Gerratyesac
45154fde40d9SSimon J. Gerratyfi
45164fde40d9SSimon J. GerratyCC=$ac_cv_prog_CC
45174fde40d9SSimon J. Gerratyif test -n "$CC"; then
45184fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
45194fde40d9SSimon J. Gerratyprintf "%s\n" "$CC" >&6; }
45204fde40d9SSimon J. Gerratyelse
45214fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45224fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
45234fde40d9SSimon J. Gerratyfi
45243955d011SMarcel Moolenaar
45253955d011SMarcel Moolenaar
45264fde40d9SSimon J. Gerratyfi
45274fde40d9SSimon J. Gerratyif test -z "$ac_cv_prog_CC"; then
45284fde40d9SSimon J. Gerraty  ac_ct_CC=$CC
45294fde40d9SSimon J. Gerraty  # Extract the first word of "clang", so it can be a program name with args.
45304fde40d9SSimon J. Gerratyset dummy clang; ac_word=$2
45314fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45324fde40d9SSimon J. Gerratyprintf %s "checking for $ac_word... " >&6; }
45334fde40d9SSimon J. Gerratyif test ${ac_cv_prog_ac_ct_CC+y}
45344fde40d9SSimon J. Gerratythen :
45354fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4536*22619282SSimon J. Gerratyelse case e in #(
4537*22619282SSimon J. Gerraty  e) if test -n "$ac_ct_CC"; then
45384fde40d9SSimon J. Gerraty  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
45394fde40d9SSimon J. Gerratyelse
45404fde40d9SSimon J. Gerratyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45414fde40d9SSimon J. Gerratyfor as_dir in $PATH
45424fde40d9SSimon J. Gerratydo
45434fde40d9SSimon J. Gerraty  IFS=$as_save_IFS
45444fde40d9SSimon J. Gerraty  case $as_dir in #(((
45454fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
45464fde40d9SSimon J. Gerraty    */) ;;
45474fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
45484fde40d9SSimon J. Gerraty  esac
45494fde40d9SSimon J. Gerraty    for ac_exec_ext in '' $ac_executable_extensions; do
45504fde40d9SSimon J. Gerraty  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45514fde40d9SSimon J. Gerraty    ac_cv_prog_ac_ct_CC="clang"
45524fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45534fde40d9SSimon J. Gerraty    break 2
45544fde40d9SSimon J. Gerraty  fi
45554fde40d9SSimon J. Gerratydone
45564fde40d9SSimon J. Gerraty  done
45574fde40d9SSimon J. GerratyIFS=$as_save_IFS
45584fde40d9SSimon J. Gerraty
4559*22619282SSimon J. Gerratyfi ;;
4560*22619282SSimon J. Gerratyesac
45614fde40d9SSimon J. Gerratyfi
45624fde40d9SSimon J. Gerratyac_ct_CC=$ac_cv_prog_ac_ct_CC
45634fde40d9SSimon J. Gerratyif test -n "$ac_ct_CC"; then
45644fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
45654fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_ct_CC" >&6; }
45664fde40d9SSimon J. Gerratyelse
45674fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45684fde40d9SSimon J. Gerratyprintf "%s\n" "no" >&6; }
45694fde40d9SSimon J. Gerratyfi
45704fde40d9SSimon J. Gerraty
45714fde40d9SSimon J. Gerraty  if test "x$ac_ct_CC" = x; then
45724fde40d9SSimon J. Gerraty    CC=""
45734fde40d9SSimon J. Gerraty  else
45744fde40d9SSimon J. Gerraty    case $cross_compiling:$ac_tool_warned in
45754fde40d9SSimon J. Gerratyyes:)
45764fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
45774fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
45784fde40d9SSimon J. Gerratyac_tool_warned=yes ;;
45794fde40d9SSimon J. Gerratyesac
45804fde40d9SSimon J. Gerraty    CC=$ac_ct_CC
45814fde40d9SSimon J. Gerraty  fi
45824fde40d9SSimon J. Gerratyelse
45834fde40d9SSimon J. Gerraty  CC="$ac_cv_prog_CC"
45844fde40d9SSimon J. Gerratyfi
45854fde40d9SSimon J. Gerraty
45864fde40d9SSimon J. Gerratyfi
45874fde40d9SSimon J. Gerraty
45884fde40d9SSimon J. Gerraty
4589*22619282SSimon J. Gerratytest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4590*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
459149caa483SSimon J. Gerratyas_fn_error $? "no acceptable C compiler found in \$PATH
4592*22619282SSimon J. GerratySee 'config.log' for more details" "$LINENO" 5; }
45933955d011SMarcel Moolenaar
45943955d011SMarcel Moolenaar# Provide some information about the compiler.
45954fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
45963955d011SMarcel Moolenaarset X $ac_compile
45973955d011SMarcel Moolenaarac_compiler=$2
45984fde40d9SSimon J. Gerratyfor ac_option in --version -v -V -qversion -version; do
45993955d011SMarcel Moolenaar  { { ac_try="$ac_compiler $ac_option >&5"
46003955d011SMarcel Moolenaarcase "(($ac_try" in
46013955d011SMarcel Moolenaar  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46023955d011SMarcel Moolenaar  *) ac_try_echo=$ac_try;;
46033955d011SMarcel Moolenaaresac
46043955d011SMarcel Moolenaareval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
46054fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_try_echo"; } >&5
46063955d011SMarcel Moolenaar  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
46073955d011SMarcel Moolenaar  ac_status=$?
46083955d011SMarcel Moolenaar  if test -s conftest.err; then
46093955d011SMarcel Moolenaar    sed '10a\
46103955d011SMarcel Moolenaar... rest of stderr output deleted ...
46113955d011SMarcel Moolenaar         10q' conftest.err >conftest.er1
46123955d011SMarcel Moolenaar    cat conftest.er1 >&5
46133955d011SMarcel Moolenaar  fi
461449caa483SSimon J. Gerraty  rm -f conftest.er1 conftest.err
46154fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46163955d011SMarcel Moolenaar  test $ac_status = 0; }
46173955d011SMarcel Moolenaardone
46183955d011SMarcel Moolenaar
46194fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
46204fde40d9SSimon J. Gerratyprintf %s "checking whether the compiler supports GNU C... " >&6; }
46214fde40d9SSimon J. Gerratyif test ${ac_cv_c_compiler_gnu+y}
46224fde40d9SSimon J. Gerratythen :
46234fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4624*22619282SSimon J. Gerratyelse case e in #(
4625*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46263955d011SMarcel Moolenaar/* end confdefs.h.  */
46273955d011SMarcel Moolenaar
46283955d011SMarcel Moolenaarint
46294fde40d9SSimon J. Gerratymain (void)
46303955d011SMarcel Moolenaar{
46313955d011SMarcel Moolenaar#ifndef __GNUC__
46323955d011SMarcel Moolenaar       choke me
46333955d011SMarcel Moolenaar#endif
46343955d011SMarcel Moolenaar
46353955d011SMarcel Moolenaar  ;
46363955d011SMarcel Moolenaar  return 0;
46373955d011SMarcel Moolenaar}
46383955d011SMarcel Moolenaar_ACEOF
46394fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
46404fde40d9SSimon J. Gerratythen :
46413955d011SMarcel Moolenaar  ac_compiler_gnu=yes
4642*22619282SSimon J. Gerratyelse case e in #(
4643*22619282SSimon J. Gerraty  e) ac_compiler_gnu=no ;;
4644*22619282SSimon J. Gerratyesac
46453955d011SMarcel Moolenaarfi
46464fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
46473955d011SMarcel Moolenaarac_cv_c_compiler_gnu=$ac_compiler_gnu
4648*22619282SSimon J. Gerraty ;;
4649*22619282SSimon J. Gerratyesac
46503955d011SMarcel Moolenaarfi
46514fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
46524fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
46534fde40d9SSimon J. Gerratyac_compiler_gnu=$ac_cv_c_compiler_gnu
46544fde40d9SSimon J. Gerraty
46553955d011SMarcel Moolenaarif test $ac_compiler_gnu = yes; then
46563955d011SMarcel Moolenaar  GCC=yes
46573955d011SMarcel Moolenaarelse
46583955d011SMarcel Moolenaar  GCC=
46593955d011SMarcel Moolenaarfi
46604fde40d9SSimon J. Gerratyac_test_CFLAGS=${CFLAGS+y}
46613955d011SMarcel Moolenaarac_save_CFLAGS=$CFLAGS
46624fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
46634fde40d9SSimon J. Gerratyprintf %s "checking whether $CC accepts -g... " >&6; }
46644fde40d9SSimon J. Gerratyif test ${ac_cv_prog_cc_g+y}
46654fde40d9SSimon J. Gerratythen :
46664fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4667*22619282SSimon J. Gerratyelse case e in #(
4668*22619282SSimon J. Gerraty  e) ac_save_c_werror_flag=$ac_c_werror_flag
46693955d011SMarcel Moolenaar   ac_c_werror_flag=yes
46703955d011SMarcel Moolenaar   ac_cv_prog_cc_g=no
46713955d011SMarcel Moolenaar   CFLAGS="-g"
46723955d011SMarcel Moolenaar   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46733955d011SMarcel Moolenaar/* end confdefs.h.  */
46743955d011SMarcel Moolenaar
46753955d011SMarcel Moolenaarint
46764fde40d9SSimon J. Gerratymain (void)
46773955d011SMarcel Moolenaar{
46783955d011SMarcel Moolenaar
46793955d011SMarcel Moolenaar  ;
46803955d011SMarcel Moolenaar  return 0;
46813955d011SMarcel Moolenaar}
46823955d011SMarcel Moolenaar_ACEOF
46834fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
46844fde40d9SSimon J. Gerratythen :
46853955d011SMarcel Moolenaar  ac_cv_prog_cc_g=yes
4686*22619282SSimon J. Gerratyelse case e in #(
4687*22619282SSimon J. Gerraty  e) CFLAGS=""
46883955d011SMarcel Moolenaar      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46893955d011SMarcel Moolenaar/* end confdefs.h.  */
46903955d011SMarcel Moolenaar
46913955d011SMarcel Moolenaarint
46924fde40d9SSimon J. Gerratymain (void)
46933955d011SMarcel Moolenaar{
46943955d011SMarcel Moolenaar
46953955d011SMarcel Moolenaar  ;
46963955d011SMarcel Moolenaar  return 0;
46973955d011SMarcel Moolenaar}
46983955d011SMarcel Moolenaar_ACEOF
46994fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
47004fde40d9SSimon J. Gerratythen :
47013955d011SMarcel Moolenaar
4702*22619282SSimon J. Gerratyelse case e in #(
4703*22619282SSimon J. Gerraty  e) ac_c_werror_flag=$ac_save_c_werror_flag
47043955d011SMarcel Moolenaar	 CFLAGS="-g"
47053955d011SMarcel Moolenaar	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47063955d011SMarcel Moolenaar/* end confdefs.h.  */
47073955d011SMarcel Moolenaar
47083955d011SMarcel Moolenaarint
47094fde40d9SSimon J. Gerratymain (void)
47103955d011SMarcel Moolenaar{
47113955d011SMarcel Moolenaar
47123955d011SMarcel Moolenaar  ;
47133955d011SMarcel Moolenaar  return 0;
47143955d011SMarcel Moolenaar}
47153955d011SMarcel Moolenaar_ACEOF
47164fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
47174fde40d9SSimon J. Gerratythen :
47183955d011SMarcel Moolenaar  ac_cv_prog_cc_g=yes
47193955d011SMarcel Moolenaarfi
4720*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4721*22619282SSimon J. Gerratyesac
4722*22619282SSimon J. Gerratyfi
4723*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4724*22619282SSimon J. Gerratyesac
47253955d011SMarcel Moolenaarfi
47264fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4727*22619282SSimon J. Gerraty   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4728*22619282SSimon J. Gerratyesac
47293955d011SMarcel Moolenaarfi
47304fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
47314fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
47324fde40d9SSimon J. Gerratyif test $ac_test_CFLAGS; then
47333955d011SMarcel Moolenaar  CFLAGS=$ac_save_CFLAGS
47343955d011SMarcel Moolenaarelif test $ac_cv_prog_cc_g = yes; then
47353955d011SMarcel Moolenaar  if test "$GCC" = yes; then
47363955d011SMarcel Moolenaar    CFLAGS="-g -O2"
47373955d011SMarcel Moolenaar  else
47383955d011SMarcel Moolenaar    CFLAGS="-g"
47393955d011SMarcel Moolenaar  fi
47403955d011SMarcel Moolenaarelse
47413955d011SMarcel Moolenaar  if test "$GCC" = yes; then
47423955d011SMarcel Moolenaar    CFLAGS="-O2"
47433955d011SMarcel Moolenaar  else
47443955d011SMarcel Moolenaar    CFLAGS=
47453955d011SMarcel Moolenaar  fi
47463955d011SMarcel Moolenaarfi
47474fde40d9SSimon J. Gerratyac_prog_cc_stdc=no
47484fde40d9SSimon J. Gerratyif test x$ac_prog_cc_stdc = xno
47494fde40d9SSimon J. Gerratythen :
47504fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
47514fde40d9SSimon J. Gerratyprintf %s "checking for $CC option to enable C11 features... " >&6; }
47524fde40d9SSimon J. Gerratyif test ${ac_cv_prog_cc_c11+y}
47534fde40d9SSimon J. Gerratythen :
47544fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4755*22619282SSimon J. Gerratyelse case e in #(
4756*22619282SSimon J. Gerraty  e) ac_cv_prog_cc_c11=no
47574fde40d9SSimon J. Gerratyac_save_CC=$CC
47584fde40d9SSimon J. Gerratycat confdefs.h - <<_ACEOF >conftest.$ac_ext
47594fde40d9SSimon J. Gerraty/* end confdefs.h.  */
47604fde40d9SSimon J. Gerraty$ac_c_conftest_c11_program
47614fde40d9SSimon J. Gerraty_ACEOF
47624fde40d9SSimon J. Gerratyfor ac_arg in '' -std=gnu11
47634fde40d9SSimon J. Gerratydo
47644fde40d9SSimon J. Gerraty  CC="$ac_save_CC $ac_arg"
47654fde40d9SSimon J. Gerraty  if ac_fn_c_try_compile "$LINENO"
47664fde40d9SSimon J. Gerratythen :
47674fde40d9SSimon J. Gerraty  ac_cv_prog_cc_c11=$ac_arg
47684fde40d9SSimon J. Gerratyfi
47694fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam
47704fde40d9SSimon J. Gerraty  test "x$ac_cv_prog_cc_c11" != "xno" && break
47714fde40d9SSimon J. Gerratydone
47724fde40d9SSimon J. Gerratyrm -f conftest.$ac_ext
4773*22619282SSimon J. GerratyCC=$ac_save_CC ;;
4774*22619282SSimon J. Gerratyesac
47754fde40d9SSimon J. Gerratyfi
47764fde40d9SSimon J. Gerraty
47774fde40d9SSimon J. Gerratyif test "x$ac_cv_prog_cc_c11" = xno
47784fde40d9SSimon J. Gerratythen :
47794fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
47804fde40d9SSimon J. Gerratyprintf "%s\n" "unsupported" >&6; }
4781*22619282SSimon J. Gerratyelse case e in #(
4782*22619282SSimon J. Gerraty  e) if test "x$ac_cv_prog_cc_c11" = x
47834fde40d9SSimon J. Gerratythen :
47844fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
47854fde40d9SSimon J. Gerratyprintf "%s\n" "none needed" >&6; }
4786*22619282SSimon J. Gerratyelse case e in #(
4787*22619282SSimon J. Gerraty  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
47884fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4789*22619282SSimon J. Gerraty     CC="$CC $ac_cv_prog_cc_c11" ;;
4790*22619282SSimon J. Gerratyesac
47914fde40d9SSimon J. Gerratyfi
47924fde40d9SSimon J. Gerraty  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4793*22619282SSimon J. Gerraty  ac_prog_cc_stdc=c11 ;;
4794*22619282SSimon J. Gerratyesac
47954fde40d9SSimon J. Gerratyfi
47964fde40d9SSimon J. Gerratyfi
47974fde40d9SSimon J. Gerratyif test x$ac_prog_cc_stdc = xno
47984fde40d9SSimon J. Gerratythen :
47994fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
48004fde40d9SSimon J. Gerratyprintf %s "checking for $CC option to enable C99 features... " >&6; }
48014fde40d9SSimon J. Gerratyif test ${ac_cv_prog_cc_c99+y}
48024fde40d9SSimon J. Gerratythen :
48034fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4804*22619282SSimon J. Gerratyelse case e in #(
4805*22619282SSimon J. Gerraty  e) ac_cv_prog_cc_c99=no
48064fde40d9SSimon J. Gerratyac_save_CC=$CC
48074fde40d9SSimon J. Gerratycat confdefs.h - <<_ACEOF >conftest.$ac_ext
48084fde40d9SSimon J. Gerraty/* end confdefs.h.  */
48094fde40d9SSimon J. Gerraty$ac_c_conftest_c99_program
48104fde40d9SSimon J. Gerraty_ACEOF
48114fde40d9SSimon J. Gerratyfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
48124fde40d9SSimon J. Gerratydo
48134fde40d9SSimon J. Gerraty  CC="$ac_save_CC $ac_arg"
48144fde40d9SSimon J. Gerraty  if ac_fn_c_try_compile "$LINENO"
48154fde40d9SSimon J. Gerratythen :
48164fde40d9SSimon J. Gerraty  ac_cv_prog_cc_c99=$ac_arg
48174fde40d9SSimon J. Gerratyfi
48184fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam
48194fde40d9SSimon J. Gerraty  test "x$ac_cv_prog_cc_c99" != "xno" && break
48204fde40d9SSimon J. Gerratydone
48214fde40d9SSimon J. Gerratyrm -f conftest.$ac_ext
4822*22619282SSimon J. GerratyCC=$ac_save_CC ;;
4823*22619282SSimon J. Gerratyesac
48244fde40d9SSimon J. Gerratyfi
48254fde40d9SSimon J. Gerraty
48264fde40d9SSimon J. Gerratyif test "x$ac_cv_prog_cc_c99" = xno
48274fde40d9SSimon J. Gerratythen :
48284fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
48294fde40d9SSimon J. Gerratyprintf "%s\n" "unsupported" >&6; }
4830*22619282SSimon J. Gerratyelse case e in #(
4831*22619282SSimon J. Gerraty  e) if test "x$ac_cv_prog_cc_c99" = x
48324fde40d9SSimon J. Gerratythen :
48334fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
48344fde40d9SSimon J. Gerratyprintf "%s\n" "none needed" >&6; }
4835*22619282SSimon J. Gerratyelse case e in #(
4836*22619282SSimon J. Gerraty  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
48374fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4838*22619282SSimon J. Gerraty     CC="$CC $ac_cv_prog_cc_c99" ;;
4839*22619282SSimon J. Gerratyesac
48404fde40d9SSimon J. Gerratyfi
48414fde40d9SSimon J. Gerraty  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4842*22619282SSimon J. Gerraty  ac_prog_cc_stdc=c99 ;;
4843*22619282SSimon J. Gerratyesac
48444fde40d9SSimon J. Gerratyfi
48454fde40d9SSimon J. Gerratyfi
48464fde40d9SSimon J. Gerratyif test x$ac_prog_cc_stdc = xno
48474fde40d9SSimon J. Gerratythen :
48484fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
48494fde40d9SSimon J. Gerratyprintf %s "checking for $CC option to enable C89 features... " >&6; }
48504fde40d9SSimon J. Gerratyif test ${ac_cv_prog_cc_c89+y}
48514fde40d9SSimon J. Gerratythen :
48524fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4853*22619282SSimon J. Gerratyelse case e in #(
4854*22619282SSimon J. Gerraty  e) ac_cv_prog_cc_c89=no
48553955d011SMarcel Moolenaarac_save_CC=$CC
48563955d011SMarcel Moolenaarcat confdefs.h - <<_ACEOF >conftest.$ac_ext
48573955d011SMarcel Moolenaar/* end confdefs.h.  */
48584fde40d9SSimon J. Gerraty$ac_c_conftest_c89_program
48593955d011SMarcel Moolenaar_ACEOF
48604fde40d9SSimon J. Gerratyfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
48613955d011SMarcel Moolenaardo
48623955d011SMarcel Moolenaar  CC="$ac_save_CC $ac_arg"
48634fde40d9SSimon J. Gerraty  if ac_fn_c_try_compile "$LINENO"
48644fde40d9SSimon J. Gerratythen :
48653955d011SMarcel Moolenaar  ac_cv_prog_cc_c89=$ac_arg
48663955d011SMarcel Moolenaarfi
48674fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam
48683955d011SMarcel Moolenaar  test "x$ac_cv_prog_cc_c89" != "xno" && break
48693955d011SMarcel Moolenaardone
48703955d011SMarcel Moolenaarrm -f conftest.$ac_ext
4871*22619282SSimon J. GerratyCC=$ac_save_CC ;;
4872*22619282SSimon J. Gerratyesac
48733955d011SMarcel Moolenaarfi
48743955d011SMarcel Moolenaar
48754fde40d9SSimon J. Gerratyif test "x$ac_cv_prog_cc_c89" = xno
48764fde40d9SSimon J. Gerratythen :
48774fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
48784fde40d9SSimon J. Gerratyprintf "%s\n" "unsupported" >&6; }
4879*22619282SSimon J. Gerratyelse case e in #(
4880*22619282SSimon J. Gerraty  e) if test "x$ac_cv_prog_cc_c89" = x
48814fde40d9SSimon J. Gerratythen :
48824fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
48834fde40d9SSimon J. Gerratyprintf "%s\n" "none needed" >&6; }
4884*22619282SSimon J. Gerratyelse case e in #(
4885*22619282SSimon J. Gerraty  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
48864fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4887*22619282SSimon J. Gerraty     CC="$CC $ac_cv_prog_cc_c89" ;;
4888*22619282SSimon J. Gerratyesac
48894fde40d9SSimon J. Gerratyfi
48904fde40d9SSimon J. Gerraty  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4891*22619282SSimon J. Gerraty  ac_prog_cc_stdc=c89 ;;
4892*22619282SSimon J. Gerratyesac
48934fde40d9SSimon J. Gerratyfi
48943955d011SMarcel Moolenaarfi
48953955d011SMarcel Moolenaar
48963955d011SMarcel Moolenaarac_ext=c
48973955d011SMarcel Moolenaarac_cpp='$CPP $CPPFLAGS'
48983955d011SMarcel Moolenaarac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48993955d011SMarcel Moolenaarac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49003955d011SMarcel Moolenaarac_compiler_gnu=$ac_cv_c_compiler_gnu
49013955d011SMarcel Moolenaar
49023955d011SMarcel Moolenaar
49033955d011SMarcel Moolenaar
49043955d011SMarcel Moolenaar  # Find a good install program.  We prefer a C program (faster),
49053955d011SMarcel Moolenaar# so one script is as good as another.  But avoid the broken or
49063955d011SMarcel Moolenaar# incompatible versions:
49073955d011SMarcel Moolenaar# SysV /etc/install, /usr/sbin/install
49083955d011SMarcel Moolenaar# SunOS /usr/etc/install
49093955d011SMarcel Moolenaar# IRIX /sbin/install
49103955d011SMarcel Moolenaar# AIX /bin/install
49113955d011SMarcel Moolenaar# AmigaOS /C/install, which installs bootblocks on floppy discs
49123955d011SMarcel Moolenaar# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49133955d011SMarcel Moolenaar# AFS /usr/afsws/bin/install, which mishandles nonexistent args
49143955d011SMarcel Moolenaar# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49153955d011SMarcel Moolenaar# OS/2's system install, which has a completely different semantic
49163955d011SMarcel Moolenaar# ./install, which can be erroneously created by make from ./install.sh.
49173955d011SMarcel Moolenaar# Reject install programs that cannot install multiple files.
49184fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
49194fde40d9SSimon J. Gerratyprintf %s "checking for a BSD-compatible install... " >&6; }
49203955d011SMarcel Moolenaarif test -z "$INSTALL"; then
49214fde40d9SSimon J. Gerratyif test ${ac_cv_path_install+y}
49224fde40d9SSimon J. Gerratythen :
49234fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
4924*22619282SSimon J. Gerratyelse case e in #(
4925*22619282SSimon J. Gerraty  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49263955d011SMarcel Moolenaarfor as_dir in $PATH
49273955d011SMarcel Moolenaardo
49283955d011SMarcel Moolenaar  IFS=$as_save_IFS
49294fde40d9SSimon J. Gerraty  case $as_dir in #(((
49304fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
49314fde40d9SSimon J. Gerraty    */) ;;
49324fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
49334fde40d9SSimon J. Gerraty  esac
49344fde40d9SSimon J. Gerraty    # Account for fact that we put trailing slashes in our PATH walk.
49354fde40d9SSimon J. Gerratycase $as_dir in #((
49364fde40d9SSimon J. Gerraty  ./ | /[cC]/* | \
49373955d011SMarcel Moolenaar  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49383955d011SMarcel Moolenaar  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
49393955d011SMarcel Moolenaar  /usr/ucb/* ) ;;
49403955d011SMarcel Moolenaar  *)
49413955d011SMarcel Moolenaar    # OSF1 and SCO ODT 3.0 have their own names for install.
49423955d011SMarcel Moolenaar    # Don't use installbsd from OSF since it installs stuff as root
49433955d011SMarcel Moolenaar    # by default.
49443955d011SMarcel Moolenaar    for ac_prog in ginstall scoinst install; do
49453955d011SMarcel Moolenaar      for ac_exec_ext in '' $ac_executable_extensions; do
49464fde40d9SSimon J. Gerraty	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
49473955d011SMarcel Moolenaar	  if test $ac_prog = install &&
49484fde40d9SSimon J. Gerraty	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49493955d011SMarcel Moolenaar	    # AIX install.  It has an incompatible calling convention.
49503955d011SMarcel Moolenaar	    :
49513955d011SMarcel Moolenaar	  elif test $ac_prog = install &&
49524fde40d9SSimon J. Gerraty	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49533955d011SMarcel Moolenaar	    # program-specific install script used by HP pwplus--don't use.
49543955d011SMarcel Moolenaar	    :
49553955d011SMarcel Moolenaar	  else
49563955d011SMarcel Moolenaar	    rm -rf conftest.one conftest.two conftest.dir
49573955d011SMarcel Moolenaar	    echo one > conftest.one
49583955d011SMarcel Moolenaar	    echo two > conftest.two
49593955d011SMarcel Moolenaar	    mkdir conftest.dir
49604fde40d9SSimon J. Gerraty	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
49613955d011SMarcel Moolenaar	      test -s conftest.one && test -s conftest.two &&
49623955d011SMarcel Moolenaar	      test -s conftest.dir/conftest.one &&
49633955d011SMarcel Moolenaar	      test -s conftest.dir/conftest.two
49643955d011SMarcel Moolenaar	    then
49654fde40d9SSimon J. Gerraty	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
49663955d011SMarcel Moolenaar	      break 3
49673955d011SMarcel Moolenaar	    fi
49683955d011SMarcel Moolenaar	  fi
49693955d011SMarcel Moolenaar	fi
49703955d011SMarcel Moolenaar      done
49713955d011SMarcel Moolenaar    done
49723955d011SMarcel Moolenaar    ;;
49733955d011SMarcel Moolenaaresac
49743955d011SMarcel Moolenaar
49753955d011SMarcel Moolenaar  done
49763955d011SMarcel MoolenaarIFS=$as_save_IFS
49773955d011SMarcel Moolenaar
49783955d011SMarcel Moolenaarrm -rf conftest.one conftest.two conftest.dir
4979*22619282SSimon J. Gerraty ;;
4980*22619282SSimon J. Gerratyesac
49813955d011SMarcel Moolenaarfi
49824fde40d9SSimon J. Gerraty  if test ${ac_cv_path_install+y}; then
49833955d011SMarcel Moolenaar    INSTALL=$ac_cv_path_install
49843955d011SMarcel Moolenaar  else
49853955d011SMarcel Moolenaar    # As a last resort, use the slow shell script.  Don't cache a
49863955d011SMarcel Moolenaar    # value for INSTALL within a source directory, because that will
49873955d011SMarcel Moolenaar    # break other packages using the cache if that directory is
49883955d011SMarcel Moolenaar    # removed, or if the value is a relative name.
49893955d011SMarcel Moolenaar    INSTALL=$ac_install_sh
49903955d011SMarcel Moolenaar  fi
49913955d011SMarcel Moolenaarfi
49924fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
49934fde40d9SSimon J. Gerratyprintf "%s\n" "$INSTALL" >&6; }
49943955d011SMarcel Moolenaar
49953955d011SMarcel Moolenaar# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49963955d011SMarcel Moolenaar# It thinks the first close brace ends the variable substitution.
49973955d011SMarcel Moolenaartest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49983955d011SMarcel Moolenaar
49993955d011SMarcel Moolenaartest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
50003955d011SMarcel Moolenaar
50013955d011SMarcel Moolenaartest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
50023955d011SMarcel Moolenaar
500398875883SSimon J. Gerraty# We have to override that on some systems
500498875883SSimon J. Gerratycase "$OS" in
500598875883SSimon J. GerratyIRIX*) ac_INSTALL=$srcdir/install-sh;;
500698875883SSimon J. Gerratyesac
50070dede8b0SSimon J. Gerratyif test -x /usr/bin/getconf; then
50080dede8b0SSimon J. Gerraty   bmake_path_max=`getconf PATH_MAX / 2> /dev/null`
5009db29cad8SSimon J. Gerraty   # only a numeric response is useful
5010db29cad8SSimon J. Gerraty   test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max=
50110dede8b0SSimon J. Gerratyfi
50120dede8b0SSimon J. Gerratybmake_path_max=${bmake_path_max:-1024}
50130dede8b0SSimon J. Gerratyif test $bmake_path_max -gt 1024; then
50140dede8b0SSimon J. Gerraty   # this is all we expect
50150dede8b0SSimon J. Gerraty   bmake_path_max=1024
50160dede8b0SSimon J. Gerratyfi
5017d5e0a182SSimon J. Gerratyif test ${bmake_strftime:-no} = yes; then
5018d5e0a182SSimon J. Gerraty   CPPFLAGS="${CPPFLAGS} -DFORCE_BMAKE_STRFTIME"
5019d5e0a182SSimon J. Gerratyfi
50200dede8b0SSimon J. Gerratyecho "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
502198875883SSimon J. Gerraty# if type does not work which(1) had better!
502298875883SSimon J. Gerraty# note we cannot rely on type returning non-zero on failure
502312904384SSimon J. Gerratyif (type cat) > /dev/null 2>&1; then
502412904384SSimon J. Gerraty: which
502512904384SSimon J. Gerratywhich() {
502612904384SSimon J. Gerraty	type "$@" | sed 's,[()],,g;s,^[^/][^/]*,,;q'
502712904384SSimon J. Gerraty}
502812904384SSimon J. Gerratyfi
502912904384SSimon J. Gerratycase "$CC" in
503012904384SSimon J. Gerraty/*) ;;
503112904384SSimon J. Gerraty*)
503212904384SSimon J. Gerraty    for x in $CC
503312904384SSimon J. Gerraty    do
503412904384SSimon J. Gerraty        _cc=`which $x`
503512904384SSimon J. Gerraty        break
503612904384SSimon J. Gerraty    done
503712904384SSimon J. Gerraty    if test -x ${_cc:-/dev/null}; then
503812904384SSimon J. Gerraty        _cc_dir=`dirname $_cc`
503912904384SSimon J. Gerraty        case ":$oldPATH:" in
504012904384SSimon J. Gerraty        *:$_cc_dir:*) ;;
504112904384SSimon J. Gerraty        *) CC=$_cc_dir/$CC;;
504212904384SSimon J. Gerraty        esac
504312904384SSimon J. Gerraty    fi
504412904384SSimon J. Gerraty    ;;
504512904384SSimon J. Gerratyesac
50464fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
50474fde40d9SSimon J. Gerratyprintf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
50484fde40d9SSimon J. Gerratyif test ${ac_cv_header_sys_wait_h+y}
50494fde40d9SSimon J. Gerratythen :
50504fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
5051*22619282SSimon J. Gerratyelse case e in #(
5052*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50533955d011SMarcel Moolenaar/* end confdefs.h.  */
50543955d011SMarcel Moolenaar#include <sys/types.h>
50553955d011SMarcel Moolenaar#include <sys/wait.h>
50563955d011SMarcel Moolenaar#ifndef WEXITSTATUS
50573955d011SMarcel Moolenaar# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
50583955d011SMarcel Moolenaar#endif
50593955d011SMarcel Moolenaar#ifndef WIFEXITED
50603955d011SMarcel Moolenaar# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
50613955d011SMarcel Moolenaar#endif
50623955d011SMarcel Moolenaar
50633955d011SMarcel Moolenaarint
50644fde40d9SSimon J. Gerratymain (void)
50653955d011SMarcel Moolenaar{
50663955d011SMarcel Moolenaar  int s;
50673955d011SMarcel Moolenaar  wait (&s);
50683955d011SMarcel Moolenaar  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
50693955d011SMarcel Moolenaar  ;
50703955d011SMarcel Moolenaar  return 0;
50713955d011SMarcel Moolenaar}
50723955d011SMarcel Moolenaar_ACEOF
50734fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
50744fde40d9SSimon J. Gerratythen :
50753955d011SMarcel Moolenaar  ac_cv_header_sys_wait_h=yes
5076*22619282SSimon J. Gerratyelse case e in #(
5077*22619282SSimon J. Gerraty  e) ac_cv_header_sys_wait_h=no ;;
5078*22619282SSimon J. Gerratyesac
50793955d011SMarcel Moolenaarfi
5080*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5081*22619282SSimon J. Gerratyesac
50823955d011SMarcel Moolenaarfi
50834fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
50844fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
50853955d011SMarcel Moolenaarif test $ac_cv_header_sys_wait_h = yes; then
50863955d011SMarcel Moolenaar
50874fde40d9SSimon J. Gerratyprintf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
50883955d011SMarcel Moolenaar
50893955d011SMarcel Moolenaarfi
50903955d011SMarcel Moolenaar
50913955d011SMarcel Moolenaarac_header_dirent=no
50923955d011SMarcel Moolenaarfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5093*22619282SSimon J. Gerraty  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
50944fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
50954fde40d9SSimon J. Gerratyprintf %s "checking for $ac_hdr that defines DIR... " >&6; }
50964fde40d9SSimon J. Gerratyif eval test \${$as_ac_Header+y}
50974fde40d9SSimon J. Gerratythen :
50984fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
5099*22619282SSimon J. Gerratyelse case e in #(
5100*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51013955d011SMarcel Moolenaar/* end confdefs.h.  */
51023955d011SMarcel Moolenaar#include <sys/types.h>
51033955d011SMarcel Moolenaar#include <$ac_hdr>
51043955d011SMarcel Moolenaar
51053955d011SMarcel Moolenaarint
51064fde40d9SSimon J. Gerratymain (void)
51073955d011SMarcel Moolenaar{
51083955d011SMarcel Moolenaarif ((DIR *) 0)
51093955d011SMarcel Moolenaarreturn 0;
51103955d011SMarcel Moolenaar  ;
51113955d011SMarcel Moolenaar  return 0;
51123955d011SMarcel Moolenaar}
51133955d011SMarcel Moolenaar_ACEOF
51144fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
51154fde40d9SSimon J. Gerratythen :
51163955d011SMarcel Moolenaar  eval "$as_ac_Header=yes"
5117*22619282SSimon J. Gerratyelse case e in #(
5118*22619282SSimon J. Gerraty  e) eval "$as_ac_Header=no" ;;
5119*22619282SSimon J. Gerratyesac
51203955d011SMarcel Moolenaarfi
5121*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5122*22619282SSimon J. Gerratyesac
51233955d011SMarcel Moolenaarfi
51243955d011SMarcel Moolenaareval ac_res=\$$as_ac_Header
51254fde40d9SSimon J. Gerraty	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
51264fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_res" >&6; }
51274fde40d9SSimon J. Gerratyif eval test \"x\$"$as_ac_Header"\" = x"yes"
51284fde40d9SSimon J. Gerratythen :
51293955d011SMarcel Moolenaar  cat >>confdefs.h <<_ACEOF
5130*22619282SSimon J. Gerraty#define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
51313955d011SMarcel Moolenaar_ACEOF
51323955d011SMarcel Moolenaar
51333955d011SMarcel Moolenaarac_header_dirent=$ac_hdr; break
51343955d011SMarcel Moolenaarfi
51353955d011SMarcel Moolenaar
51363955d011SMarcel Moolenaardone
51373955d011SMarcel Moolenaar# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
51383955d011SMarcel Moolenaarif test $ac_header_dirent = dirent.h; then
51394fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
51404fde40d9SSimon J. Gerratyprintf %s "checking for library containing opendir... " >&6; }
51414fde40d9SSimon J. Gerratyif test ${ac_cv_search_opendir+y}
51424fde40d9SSimon J. Gerratythen :
51434fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
5144*22619282SSimon J. Gerratyelse case e in #(
5145*22619282SSimon J. Gerraty  e) ac_func_search_save_LIBS=$LIBS
51463955d011SMarcel Moolenaarcat confdefs.h - <<_ACEOF >conftest.$ac_ext
51473955d011SMarcel Moolenaar/* end confdefs.h.  */
51483955d011SMarcel Moolenaar
51493955d011SMarcel Moolenaar/* Override any GCC internal prototype to avoid an error.
51503955d011SMarcel Moolenaar   Use char because int might match the return type of a GCC
5151*22619282SSimon J. Gerraty   builtin and then its argument prototype would still apply.
5152*22619282SSimon J. Gerraty   The 'extern "C"' is for builds by C++ compilers;
5153*22619282SSimon J. Gerraty   although this is not generally supported in C code supporting it here
5154*22619282SSimon J. Gerraty   has little cost and some practical benefit (sr 110532).  */
5155*22619282SSimon J. Gerraty#ifdef __cplusplus
5156*22619282SSimon J. Gerratyextern "C"
5157*22619282SSimon J. Gerraty#endif
5158*22619282SSimon J. Gerratychar opendir (void);
51593955d011SMarcel Moolenaarint
51604fde40d9SSimon J. Gerratymain (void)
51613955d011SMarcel Moolenaar{
51623955d011SMarcel Moolenaarreturn opendir ();
51633955d011SMarcel Moolenaar  ;
51643955d011SMarcel Moolenaar  return 0;
51653955d011SMarcel Moolenaar}
51663955d011SMarcel Moolenaar_ACEOF
51674fde40d9SSimon J. Gerratyfor ac_lib in '' dir
51684fde40d9SSimon J. Gerratydo
51693955d011SMarcel Moolenaar  if test -z "$ac_lib"; then
51703955d011SMarcel Moolenaar    ac_res="none required"
51713955d011SMarcel Moolenaar  else
51723955d011SMarcel Moolenaar    ac_res=-l$ac_lib
51733955d011SMarcel Moolenaar    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
51743955d011SMarcel Moolenaar  fi
51754fde40d9SSimon J. Gerraty  if ac_fn_c_try_link "$LINENO"
51764fde40d9SSimon J. Gerratythen :
51773955d011SMarcel Moolenaar  ac_cv_search_opendir=$ac_res
51783955d011SMarcel Moolenaarfi
51794fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam \
51803955d011SMarcel Moolenaar    conftest$ac_exeext
51814fde40d9SSimon J. Gerraty  if test ${ac_cv_search_opendir+y}
51824fde40d9SSimon J. Gerratythen :
51833955d011SMarcel Moolenaar  break
51843955d011SMarcel Moolenaarfi
51853955d011SMarcel Moolenaardone
51864fde40d9SSimon J. Gerratyif test ${ac_cv_search_opendir+y}
51874fde40d9SSimon J. Gerratythen :
51883955d011SMarcel Moolenaar
5189*22619282SSimon J. Gerratyelse case e in #(
5190*22619282SSimon J. Gerraty  e) ac_cv_search_opendir=no ;;
5191*22619282SSimon J. Gerratyesac
51923955d011SMarcel Moolenaarfi
51933955d011SMarcel Moolenaarrm conftest.$ac_ext
5194*22619282SSimon J. GerratyLIBS=$ac_func_search_save_LIBS ;;
5195*22619282SSimon J. Gerratyesac
51963955d011SMarcel Moolenaarfi
51974fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
51984fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_search_opendir" >&6; }
51993955d011SMarcel Moolenaarac_res=$ac_cv_search_opendir
52004fde40d9SSimon J. Gerratyif test "$ac_res" != no
52014fde40d9SSimon J. Gerratythen :
52023955d011SMarcel Moolenaar  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52033955d011SMarcel Moolenaar
52043955d011SMarcel Moolenaarfi
52053955d011SMarcel Moolenaar
52063955d011SMarcel Moolenaarelse
52074fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
52084fde40d9SSimon J. Gerratyprintf %s "checking for library containing opendir... " >&6; }
52094fde40d9SSimon J. Gerratyif test ${ac_cv_search_opendir+y}
52104fde40d9SSimon J. Gerratythen :
52114fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
5212*22619282SSimon J. Gerratyelse case e in #(
5213*22619282SSimon J. Gerraty  e) ac_func_search_save_LIBS=$LIBS
52143955d011SMarcel Moolenaarcat confdefs.h - <<_ACEOF >conftest.$ac_ext
52153955d011SMarcel Moolenaar/* end confdefs.h.  */
52163955d011SMarcel Moolenaar
52173955d011SMarcel Moolenaar/* Override any GCC internal prototype to avoid an error.
52183955d011SMarcel Moolenaar   Use char because int might match the return type of a GCC
5219*22619282SSimon J. Gerraty   builtin and then its argument prototype would still apply.
5220*22619282SSimon J. Gerraty   The 'extern "C"' is for builds by C++ compilers;
5221*22619282SSimon J. Gerraty   although this is not generally supported in C code supporting it here
5222*22619282SSimon J. Gerraty   has little cost and some practical benefit (sr 110532).  */
5223*22619282SSimon J. Gerraty#ifdef __cplusplus
5224*22619282SSimon J. Gerratyextern "C"
5225*22619282SSimon J. Gerraty#endif
5226*22619282SSimon J. Gerratychar opendir (void);
52273955d011SMarcel Moolenaarint
52284fde40d9SSimon J. Gerratymain (void)
52293955d011SMarcel Moolenaar{
52303955d011SMarcel Moolenaarreturn opendir ();
52313955d011SMarcel Moolenaar  ;
52323955d011SMarcel Moolenaar  return 0;
52333955d011SMarcel Moolenaar}
52343955d011SMarcel Moolenaar_ACEOF
52354fde40d9SSimon J. Gerratyfor ac_lib in '' x
52364fde40d9SSimon J. Gerratydo
52373955d011SMarcel Moolenaar  if test -z "$ac_lib"; then
52383955d011SMarcel Moolenaar    ac_res="none required"
52393955d011SMarcel Moolenaar  else
52403955d011SMarcel Moolenaar    ac_res=-l$ac_lib
52413955d011SMarcel Moolenaar    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52423955d011SMarcel Moolenaar  fi
52434fde40d9SSimon J. Gerraty  if ac_fn_c_try_link "$LINENO"
52444fde40d9SSimon J. Gerratythen :
52453955d011SMarcel Moolenaar  ac_cv_search_opendir=$ac_res
52463955d011SMarcel Moolenaarfi
52474fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam \
52483955d011SMarcel Moolenaar    conftest$ac_exeext
52494fde40d9SSimon J. Gerraty  if test ${ac_cv_search_opendir+y}
52504fde40d9SSimon J. Gerratythen :
52513955d011SMarcel Moolenaar  break
52523955d011SMarcel Moolenaarfi
52533955d011SMarcel Moolenaardone
52544fde40d9SSimon J. Gerratyif test ${ac_cv_search_opendir+y}
52554fde40d9SSimon J. Gerratythen :
52563955d011SMarcel Moolenaar
5257*22619282SSimon J. Gerratyelse case e in #(
5258*22619282SSimon J. Gerraty  e) ac_cv_search_opendir=no ;;
5259*22619282SSimon J. Gerratyesac
52603955d011SMarcel Moolenaarfi
52613955d011SMarcel Moolenaarrm conftest.$ac_ext
5262*22619282SSimon J. GerratyLIBS=$ac_func_search_save_LIBS ;;
5263*22619282SSimon J. Gerratyesac
52643955d011SMarcel Moolenaarfi
52654fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
52664fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_search_opendir" >&6; }
52673955d011SMarcel Moolenaarac_res=$ac_cv_search_opendir
52684fde40d9SSimon J. Gerratyif test "$ac_res" != no
52694fde40d9SSimon J. Gerratythen :
52703955d011SMarcel Moolenaar  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52713955d011SMarcel Moolenaar
52723955d011SMarcel Moolenaarfi
52733955d011SMarcel Moolenaar
52743955d011SMarcel Moolenaarfi
52753955d011SMarcel Moolenaar
52764fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
52774fde40d9SSimon J. Gerratyif test "x$ac_cv_header_sys_param_h" = xyes
52784fde40d9SSimon J. Gerratythen :
52794fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5280ac3446e9SSimon J. Gerraty
5281ac3446e9SSimon J. Gerratyfi
5282ac3446e9SSimon J. Gerraty
5283ac3446e9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H
5284ac3446e9SSimon J. Gerraty# include <sys/param.h>
5285ac3446e9SSimon J. Gerraty# endif
5286ac3446e9SSimon J. Gerraty
5287ac3446e9SSimon J. Gerraty"
52884fde40d9SSimon J. Gerratyif test "x$ac_cv_header_sys_sysctl_h" = xyes
52894fde40d9SSimon J. Gerratythen :
52904fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
5291ac3446e9SSimon J. Gerraty
5292ac3446e9SSimon J. Gerratyfi
5293ac3446e9SSimon J. Gerraty
5294ac3446e9SSimon J. Gerraty
52954fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "ar.h" "ac_cv_header_ar_h" "$ac_includes_default"
52964fde40d9SSimon J. Gerratyif test "x$ac_cv_header_ar_h" = xyes
52974fde40d9SSimon J. Gerratythen :
52984fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_AR_H 1" >>confdefs.h
5299ac3446e9SSimon J. Gerraty
53004fde40d9SSimon J. Gerratyfi
53014fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
53024fde40d9SSimon J. Gerratyif test "x$ac_cv_header_err_h" = xyes
53034fde40d9SSimon J. Gerratythen :
53044fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
53053955d011SMarcel Moolenaar
53064fde40d9SSimon J. Gerratyfi
53074fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
53084fde40d9SSimon J. Gerratyif test "x$ac_cv_header_fcntl_h" = xyes
53094fde40d9SSimon J. Gerratythen :
53104fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
53114fde40d9SSimon J. Gerraty
53124fde40d9SSimon J. Gerratyfi
53134fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
53144fde40d9SSimon J. Gerratyif test "x$ac_cv_header_libgen_h" = xyes
53154fde40d9SSimon J. Gerratythen :
53164fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
53174fde40d9SSimon J. Gerraty
53184fde40d9SSimon J. Gerratyfi
53194fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
53204fde40d9SSimon J. Gerratyif test "x$ac_cv_header_limits_h" = xyes
53214fde40d9SSimon J. Gerratythen :
53224fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
53234fde40d9SSimon J. Gerraty
53244fde40d9SSimon J. Gerratyfi
53254fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
53264fde40d9SSimon J. Gerratyif test "x$ac_cv_header_paths_h" = xyes
53274fde40d9SSimon J. Gerratythen :
53284fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
53294fde40d9SSimon J. Gerraty
53304fde40d9SSimon J. Gerratyfi
53314fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
53324fde40d9SSimon J. Gerratyif test "x$ac_cv_header_poll_h" = xyes
53334fde40d9SSimon J. Gerratythen :
53344fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
53354fde40d9SSimon J. Gerraty
53364fde40d9SSimon J. Gerratyfi
53374fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "ranlib.h" "ac_cv_header_ranlib_h" "$ac_includes_default"
53384fde40d9SSimon J. Gerratyif test "x$ac_cv_header_ranlib_h" = xyes
53394fde40d9SSimon J. Gerratythen :
53404fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_RANLIB_H 1" >>confdefs.h
53414fde40d9SSimon J. Gerraty
53424fde40d9SSimon J. Gerratyfi
5343c59c3bf3SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
5344c59c3bf3SSimon J. Gerratyif test "x$ac_cv_header_regex_h" = xyes
5345c59c3bf3SSimon J. Gerratythen :
5346c59c3bf3SSimon J. Gerraty  printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
5347c59c3bf3SSimon J. Gerraty
5348c59c3bf3SSimon J. Gerratyfi
53494fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
53504fde40d9SSimon J. Gerratyif test "x$ac_cv_header_sys_mman_h" = xyes
53514fde40d9SSimon J. Gerratythen :
53524fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
53534fde40d9SSimon J. Gerraty
53544fde40d9SSimon J. Gerratyfi
53554fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
53564fde40d9SSimon J. Gerratyif test "x$ac_cv_header_sys_select_h" = xyes
53574fde40d9SSimon J. Gerratythen :
53584fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
53594fde40d9SSimon J. Gerraty
53604fde40d9SSimon J. Gerratyfi
53614fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
53624fde40d9SSimon J. Gerratyif test "x$ac_cv_header_sys_socket_h" = xyes
53634fde40d9SSimon J. Gerratythen :
53644fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
53654fde40d9SSimon J. Gerraty
53664fde40d9SSimon J. Gerratyfi
53674fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
53684fde40d9SSimon J. Gerratyif test "x$ac_cv_header_sys_time_h" = xyes
53694fde40d9SSimon J. Gerratythen :
53704fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
53714fde40d9SSimon J. Gerraty
53724fde40d9SSimon J. Gerratyfi
53734fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
53744fde40d9SSimon J. Gerratyif test "x$ac_cv_header_sys_uio_h" = xyes
53754fde40d9SSimon J. Gerratythen :
53764fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
53774fde40d9SSimon J. Gerraty
53784fde40d9SSimon J. Gerratyfi
53794fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
53804fde40d9SSimon J. Gerratyif test "x$ac_cv_header_utime_h" = xyes
53814fde40d9SSimon J. Gerratythen :
53824fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
53833955d011SMarcel Moolenaar
53843955d011SMarcel Moolenaarfi
53853955d011SMarcel Moolenaar
53863955d011SMarcel Moolenaar
53874fde40d9SSimon J. Gerratyac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
53884fde40d9SSimon J. Gerratyif test "x$ac_cv_header_sys_cdefs_h" = xyes
53894fde40d9SSimon J. Gerratythen :
53903955d011SMarcel Moolenaar
5391*22619282SSimon J. Gerratyelse case e in #(
5392*22619282SSimon J. Gerraty  e) CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`" ;;
5393*22619282SSimon J. Gerratyesac
53943955d011SMarcel Moolenaarfi
53953955d011SMarcel Moolenaar
53963955d011SMarcel Moolenaar
53973955d011SMarcel Moolenaar
53984fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
53994fde40d9SSimon J. Gerratyprintf %s "checking for __attribute__... " >&6; }
54004fde40d9SSimon J. Gerratyif test ${ac_cv___attribute__+y}
54014fde40d9SSimon J. Gerratythen :
54024fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
5403*22619282SSimon J. Gerratyelse case e in #(
5404*22619282SSimon J. Gerraty  e)
54053955d011SMarcel Moolenaarcat confdefs.h - <<_ACEOF >conftest.$ac_ext
54063955d011SMarcel Moolenaar/* end confdefs.h.  */
54073955d011SMarcel Moolenaar
54083955d011SMarcel Moolenaar#include <stdlib.h>
54093955d011SMarcel Moolenaar
54103955d011SMarcel Moolenaarstatic void foo(void) __attribute__ ((noreturn));
54113955d011SMarcel Moolenaar
54123955d011SMarcel Moolenaarstatic void
54133955d011SMarcel Moolenaarfoo(void)
54143955d011SMarcel Moolenaar{
54153955d011SMarcel Moolenaar  exit(1);
54163955d011SMarcel Moolenaar}
54173955d011SMarcel Moolenaar
541850d2e745SSimon J. Gerratyint
541950d2e745SSimon J. Gerratymain(int argc, char **argv)
542050d2e745SSimon J. Gerraty{
542150d2e745SSimon J. Gerraty	foo();
54223955d011SMarcel Moolenaar}
542350d2e745SSimon J. Gerraty
54243955d011SMarcel Moolenaar_ACEOF
54254fde40d9SSimon J. Gerratyif ac_fn_c_try_link "$LINENO"
54264fde40d9SSimon J. Gerratythen :
54273955d011SMarcel Moolenaar  ac_cv___attribute__=yes
5428*22619282SSimon J. Gerratyelse case e in #(
5429*22619282SSimon J. Gerraty  e) ac_cv___attribute__=no ;;
5430*22619282SSimon J. Gerratyesac
54313955d011SMarcel Moolenaarfi
54324fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam \
5433*22619282SSimon J. Gerraty    conftest$ac_exeext conftest.$ac_ext ;;
5434*22619282SSimon J. Gerratyesac
54353955d011SMarcel Moolenaarfi
54363955d011SMarcel Moolenaar
54373955d011SMarcel Moolenaarif test "$ac_cv___attribute__" = "yes"; then
54383955d011SMarcel Moolenaar
54394fde40d9SSimon J. Gerratyprintf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
54403955d011SMarcel Moolenaar
54413955d011SMarcel Moolenaarfi
54424fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
54434fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv___attribute__" >&6; }
54443955d011SMarcel Moolenaar
54454fde40d9SSimon J. Gerraty { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
54464fde40d9SSimon J. Gerratyprintf %s "checking whether byte ordering is bigendian... " >&6; }
54474fde40d9SSimon J. Gerratyif test ${ac_cv_c_bigendian+y}
54484fde40d9SSimon J. Gerratythen :
54494fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
5450*22619282SSimon J. Gerratyelse case e in #(
5451*22619282SSimon J. Gerraty  e) ac_cv_c_bigendian=unknown
54523955d011SMarcel Moolenaar    # See if we're dealing with a universal compiler.
54533955d011SMarcel Moolenaar    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54543955d011SMarcel Moolenaar/* end confdefs.h.  */
54553955d011SMarcel Moolenaar#ifndef __APPLE_CC__
54563955d011SMarcel Moolenaar	       not a universal capable compiler
54573955d011SMarcel Moolenaar	     #endif
54583955d011SMarcel Moolenaar	     typedef int dummy;
54593955d011SMarcel Moolenaar
54603955d011SMarcel Moolenaar_ACEOF
54614fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
54624fde40d9SSimon J. Gerratythen :
54633955d011SMarcel Moolenaar
54643955d011SMarcel Moolenaar	# Check for potential -arch flags.  It is not universal unless
54653955d011SMarcel Moolenaar	# there are at least two -arch flags with different values.
54663955d011SMarcel Moolenaar	ac_arch=
54673955d011SMarcel Moolenaar	ac_prev=
54683955d011SMarcel Moolenaar	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
54693955d011SMarcel Moolenaar	 if test -n "$ac_prev"; then
54703955d011SMarcel Moolenaar	   case $ac_word in
54713955d011SMarcel Moolenaar	     i?86 | x86_64 | ppc | ppc64)
54723955d011SMarcel Moolenaar	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
54733955d011SMarcel Moolenaar		 ac_arch=$ac_word
54743955d011SMarcel Moolenaar	       else
54753955d011SMarcel Moolenaar		 ac_cv_c_bigendian=universal
54763955d011SMarcel Moolenaar		 break
54773955d011SMarcel Moolenaar	       fi
54783955d011SMarcel Moolenaar	       ;;
54793955d011SMarcel Moolenaar	   esac
54803955d011SMarcel Moolenaar	   ac_prev=
54813955d011SMarcel Moolenaar	 elif test "x$ac_word" = "x-arch"; then
54823955d011SMarcel Moolenaar	   ac_prev=arch
54833955d011SMarcel Moolenaar	 fi
54843955d011SMarcel Moolenaar       done
54853955d011SMarcel Moolenaarfi
54864fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54873955d011SMarcel Moolenaar    if test $ac_cv_c_bigendian = unknown; then
54883955d011SMarcel Moolenaar      # See if sys/param.h defines the BYTE_ORDER macro.
54893955d011SMarcel Moolenaar      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54903955d011SMarcel Moolenaar/* end confdefs.h.  */
54913955d011SMarcel Moolenaar#include <sys/types.h>
54923955d011SMarcel Moolenaar	     #include <sys/param.h>
54933955d011SMarcel Moolenaar
54943955d011SMarcel Moolenaarint
54954fde40d9SSimon J. Gerratymain (void)
54963955d011SMarcel Moolenaar{
5497*22619282SSimon J. Gerraty#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
5498*22619282SSimon J. Gerraty		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
54993955d011SMarcel Moolenaar		     && LITTLE_ENDIAN)
55003955d011SMarcel Moolenaar	      bogus endian macros
55013955d011SMarcel Moolenaar	     #endif
55023955d011SMarcel Moolenaar
55033955d011SMarcel Moolenaar  ;
55043955d011SMarcel Moolenaar  return 0;
55053955d011SMarcel Moolenaar}
55063955d011SMarcel Moolenaar_ACEOF
55074fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
55084fde40d9SSimon J. Gerratythen :
55093955d011SMarcel Moolenaar  # It does; now see whether it defined to BIG_ENDIAN or not.
55103955d011SMarcel Moolenaar	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55113955d011SMarcel Moolenaar/* end confdefs.h.  */
55123955d011SMarcel Moolenaar#include <sys/types.h>
55133955d011SMarcel Moolenaar		#include <sys/param.h>
55143955d011SMarcel Moolenaar
55153955d011SMarcel Moolenaarint
55164fde40d9SSimon J. Gerratymain (void)
55173955d011SMarcel Moolenaar{
55183955d011SMarcel Moolenaar#if BYTE_ORDER != BIG_ENDIAN
55193955d011SMarcel Moolenaar		 not big endian
55203955d011SMarcel Moolenaar		#endif
55213955d011SMarcel Moolenaar
55223955d011SMarcel Moolenaar  ;
55233955d011SMarcel Moolenaar  return 0;
55243955d011SMarcel Moolenaar}
55253955d011SMarcel Moolenaar_ACEOF
55264fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
55274fde40d9SSimon J. Gerratythen :
55283955d011SMarcel Moolenaar  ac_cv_c_bigendian=yes
5529*22619282SSimon J. Gerratyelse case e in #(
5530*22619282SSimon J. Gerraty  e) ac_cv_c_bigendian=no ;;
5531*22619282SSimon J. Gerratyesac
55323955d011SMarcel Moolenaarfi
55334fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55343955d011SMarcel Moolenaarfi
55354fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55363955d011SMarcel Moolenaar    fi
55373955d011SMarcel Moolenaar    if test $ac_cv_c_bigendian = unknown; then
55383955d011SMarcel Moolenaar      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
55393955d011SMarcel Moolenaar      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55403955d011SMarcel Moolenaar/* end confdefs.h.  */
55413955d011SMarcel Moolenaar#include <limits.h>
55423955d011SMarcel Moolenaar
55433955d011SMarcel Moolenaarint
55444fde40d9SSimon J. Gerratymain (void)
55453955d011SMarcel Moolenaar{
55463955d011SMarcel Moolenaar#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
55473955d011SMarcel Moolenaar	      bogus endian macros
55483955d011SMarcel Moolenaar	     #endif
55493955d011SMarcel Moolenaar
55503955d011SMarcel Moolenaar  ;
55513955d011SMarcel Moolenaar  return 0;
55523955d011SMarcel Moolenaar}
55533955d011SMarcel Moolenaar_ACEOF
55544fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
55554fde40d9SSimon J. Gerratythen :
55563955d011SMarcel Moolenaar  # It does; now see whether it defined to _BIG_ENDIAN or not.
55573955d011SMarcel Moolenaar	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55583955d011SMarcel Moolenaar/* end confdefs.h.  */
55593955d011SMarcel Moolenaar#include <limits.h>
55603955d011SMarcel Moolenaar
55613955d011SMarcel Moolenaarint
55624fde40d9SSimon J. Gerratymain (void)
55633955d011SMarcel Moolenaar{
55643955d011SMarcel Moolenaar#ifndef _BIG_ENDIAN
55653955d011SMarcel Moolenaar		 not big endian
55663955d011SMarcel Moolenaar		#endif
55673955d011SMarcel Moolenaar
55683955d011SMarcel Moolenaar  ;
55693955d011SMarcel Moolenaar  return 0;
55703955d011SMarcel Moolenaar}
55713955d011SMarcel Moolenaar_ACEOF
55724fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
55734fde40d9SSimon J. Gerratythen :
55743955d011SMarcel Moolenaar  ac_cv_c_bigendian=yes
5575*22619282SSimon J. Gerratyelse case e in #(
5576*22619282SSimon J. Gerraty  e) ac_cv_c_bigendian=no ;;
5577*22619282SSimon J. Gerratyesac
55783955d011SMarcel Moolenaarfi
55794fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55803955d011SMarcel Moolenaarfi
55814fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55823955d011SMarcel Moolenaar    fi
55833955d011SMarcel Moolenaar    if test $ac_cv_c_bigendian = unknown; then
55843955d011SMarcel Moolenaar      # Compile a test program.
55854fde40d9SSimon J. Gerraty      if test "$cross_compiling" = yes
55864fde40d9SSimon J. Gerratythen :
55873955d011SMarcel Moolenaar  # Try to guess by grepping values from an object file.
55883955d011SMarcel Moolenaar	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55893955d011SMarcel Moolenaar/* end confdefs.h.  */
55904fde40d9SSimon J. Gerratyunsigned short int ascii_mm[] =
55913955d011SMarcel Moolenaar		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
55924fde40d9SSimon J. Gerraty		unsigned short int ascii_ii[] =
55933955d011SMarcel Moolenaar		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
55943955d011SMarcel Moolenaar		int use_ascii (int i) {
55953955d011SMarcel Moolenaar		  return ascii_mm[i] + ascii_ii[i];
55963955d011SMarcel Moolenaar		}
55974fde40d9SSimon J. Gerraty		unsigned short int ebcdic_ii[] =
55983955d011SMarcel Moolenaar		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
55994fde40d9SSimon J. Gerraty		unsigned short int ebcdic_mm[] =
56003955d011SMarcel Moolenaar		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
56013955d011SMarcel Moolenaar		int use_ebcdic (int i) {
56023955d011SMarcel Moolenaar		  return ebcdic_mm[i] + ebcdic_ii[i];
56033955d011SMarcel Moolenaar		}
56043955d011SMarcel Moolenaar		int
5605*22619282SSimon J. Gerraty		main (int argc, char **argv)
56063955d011SMarcel Moolenaar		{
5607*22619282SSimon J. Gerraty		  /* Intimidate the compiler so that it does not
5608*22619282SSimon J. Gerraty		     optimize the arrays away.  */
5609*22619282SSimon J. Gerraty		  char *p = argv[0];
5610*22619282SSimon J. Gerraty		  ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
5611*22619282SSimon J. Gerraty		  ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
5612*22619282SSimon J. Gerraty		  return use_ascii (argc) == use_ebcdic (*p);
56133955d011SMarcel Moolenaar		}
56143955d011SMarcel Moolenaar_ACEOF
5615*22619282SSimon J. Gerratyif ac_fn_c_try_link "$LINENO"
56164fde40d9SSimon J. Gerratythen :
5617*22619282SSimon J. Gerraty  if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
56183955d011SMarcel Moolenaar	      ac_cv_c_bigendian=yes
56193955d011SMarcel Moolenaar	    fi
5620*22619282SSimon J. Gerraty	    if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
56213955d011SMarcel Moolenaar	      if test "$ac_cv_c_bigendian" = unknown; then
56223955d011SMarcel Moolenaar		ac_cv_c_bigendian=no
56233955d011SMarcel Moolenaar	      else
56243955d011SMarcel Moolenaar		# finding both strings is unlikely to happen, but who knows?
56253955d011SMarcel Moolenaar		ac_cv_c_bigendian=unknown
56263955d011SMarcel Moolenaar	      fi
56273955d011SMarcel Moolenaar	    fi
56283955d011SMarcel Moolenaarfi
5629*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam \
5630*22619282SSimon J. Gerraty    conftest$ac_exeext conftest.$ac_ext
5631*22619282SSimon J. Gerratyelse case e in #(
5632*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56333955d011SMarcel Moolenaar/* end confdefs.h.  */
56343955d011SMarcel Moolenaar$ac_includes_default
56353955d011SMarcel Moolenaarint
56364fde40d9SSimon J. Gerratymain (void)
56373955d011SMarcel Moolenaar{
56383955d011SMarcel Moolenaar
56393955d011SMarcel Moolenaar	     /* Are we little or big endian?  From Harbison&Steele.  */
56403955d011SMarcel Moolenaar	     union
56413955d011SMarcel Moolenaar	     {
56423955d011SMarcel Moolenaar	       long int l;
56433955d011SMarcel Moolenaar	       char c[sizeof (long int)];
56443955d011SMarcel Moolenaar	     } u;
56453955d011SMarcel Moolenaar	     u.l = 1;
56463955d011SMarcel Moolenaar	     return u.c[sizeof (long int) - 1] == 1;
56473955d011SMarcel Moolenaar
56483955d011SMarcel Moolenaar  ;
56493955d011SMarcel Moolenaar  return 0;
56503955d011SMarcel Moolenaar}
56513955d011SMarcel Moolenaar_ACEOF
56524fde40d9SSimon J. Gerratyif ac_fn_c_try_run "$LINENO"
56534fde40d9SSimon J. Gerratythen :
56543955d011SMarcel Moolenaar  ac_cv_c_bigendian=no
5655*22619282SSimon J. Gerratyelse case e in #(
5656*22619282SSimon J. Gerraty  e) ac_cv_c_bigendian=yes ;;
5657*22619282SSimon J. Gerratyesac
56583955d011SMarcel Moolenaarfi
56593955d011SMarcel Moolenaarrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5660*22619282SSimon J. Gerraty  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5661*22619282SSimon J. Gerratyesac
56623955d011SMarcel Moolenaarfi
56633955d011SMarcel Moolenaar
5664*22619282SSimon J. Gerraty    fi ;;
5665*22619282SSimon J. Gerratyesac
56663955d011SMarcel Moolenaarfi
56674fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
56684fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_c_bigendian" >&6; }
56693955d011SMarcel Moolenaar case $ac_cv_c_bigendian in #(
56703955d011SMarcel Moolenaar   yes)
56714fde40d9SSimon J. Gerraty     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
56723955d011SMarcel Moolenaar;; #(
56733955d011SMarcel Moolenaar   no)
56743955d011SMarcel Moolenaar      ;; #(
56753955d011SMarcel Moolenaar   universal)
56763955d011SMarcel Moolenaar
56774fde40d9SSimon J. Gerratyprintf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
56783955d011SMarcel Moolenaar
56793955d011SMarcel Moolenaar     ;; #(
56803955d011SMarcel Moolenaar   *)
568149caa483SSimon J. Gerraty     as_fn_error $? "unknown endianness
56823955d011SMarcel Moolenaar presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
56833955d011SMarcel Moolenaar esac
56843955d011SMarcel Moolenaar
56854fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
56864fde40d9SSimon J. Gerratyprintf %s "checking for an ANSI C-conforming const... " >&6; }
56874fde40d9SSimon J. Gerratyif test ${ac_cv_c_const+y}
56884fde40d9SSimon J. Gerratythen :
56894fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
5690*22619282SSimon J. Gerratyelse case e in #(
5691*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56923955d011SMarcel Moolenaar/* end confdefs.h.  */
56933955d011SMarcel Moolenaar
56943955d011SMarcel Moolenaarint
56954fde40d9SSimon J. Gerratymain (void)
56963955d011SMarcel Moolenaar{
569749caa483SSimon J. Gerraty
56983955d011SMarcel Moolenaar#ifndef __cplusplus
569949caa483SSimon J. Gerraty  /* Ultrix mips cc rejects this sort of thing.  */
57003955d011SMarcel Moolenaar  typedef int charset[2];
570149caa483SSimon J. Gerraty  const charset cs = { 0, 0 };
57023955d011SMarcel Moolenaar  /* SunOS 4.1.1 cc rejects this.  */
57033955d011SMarcel Moolenaar  char const *const *pcpcc;
57043955d011SMarcel Moolenaar  char **ppc;
57053955d011SMarcel Moolenaar  /* NEC SVR4.0.2 mips cc rejects this.  */
57063955d011SMarcel Moolenaar  struct point {int x, y;};
57073955d011SMarcel Moolenaar  static struct point const zero = {0,0};
57084fde40d9SSimon J. Gerraty  /* IBM XL C 1.02.0.0 rejects this.
57093955d011SMarcel Moolenaar     It does not let you subtract one const X* pointer from another in
57103955d011SMarcel Moolenaar     an arm of an if-expression whose if-part is not a constant
57113955d011SMarcel Moolenaar     expression */
57123955d011SMarcel Moolenaar  const char *g = "string";
57133955d011SMarcel Moolenaar  pcpcc = &g + (g ? g-g : 0);
57143955d011SMarcel Moolenaar  /* HPUX 7.0 cc rejects these. */
57153955d011SMarcel Moolenaar  ++pcpcc;
57163955d011SMarcel Moolenaar  ppc = (char**) pcpcc;
57173955d011SMarcel Moolenaar  pcpcc = (char const *const *) ppc;
571849caa483SSimon J. Gerraty  { /* SCO 3.2v4 cc rejects this sort of thing.  */
571949caa483SSimon J. Gerraty    char tx;
572049caa483SSimon J. Gerraty    char *t = &tx;
57213955d011SMarcel Moolenaar    char const *s = 0 ? (char *) 0 : (char const *) 0;
57223955d011SMarcel Moolenaar
57233955d011SMarcel Moolenaar    *t++ = 0;
57243955d011SMarcel Moolenaar    if (s) return 0;
57253955d011SMarcel Moolenaar  }
57263955d011SMarcel Moolenaar  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
57273955d011SMarcel Moolenaar    int x[] = {25, 17};
57283955d011SMarcel Moolenaar    const int *foo = &x[0];
57293955d011SMarcel Moolenaar    ++foo;
57303955d011SMarcel Moolenaar  }
57313955d011SMarcel Moolenaar  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
57323955d011SMarcel Moolenaar    typedef const int *iptr;
57333955d011SMarcel Moolenaar    iptr p = 0;
57343955d011SMarcel Moolenaar    ++p;
57353955d011SMarcel Moolenaar  }
57364fde40d9SSimon J. Gerraty  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
57373955d011SMarcel Moolenaar       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
573849caa483SSimon J. Gerraty    struct s { int j; const int *ap[3]; } bx;
573949caa483SSimon J. Gerraty    struct s *b = &bx; b->j = 5;
57403955d011SMarcel Moolenaar  }
57413955d011SMarcel Moolenaar  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
57423955d011SMarcel Moolenaar    const int foo = 10;
57433955d011SMarcel Moolenaar    if (!foo) return 0;
57443955d011SMarcel Moolenaar  }
57453955d011SMarcel Moolenaar  return !cs[0] && !zero.x;
57463955d011SMarcel Moolenaar#endif
57473955d011SMarcel Moolenaar
57483955d011SMarcel Moolenaar  ;
57493955d011SMarcel Moolenaar  return 0;
57503955d011SMarcel Moolenaar}
57513955d011SMarcel Moolenaar_ACEOF
57524fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
57534fde40d9SSimon J. Gerratythen :
57543955d011SMarcel Moolenaar  ac_cv_c_const=yes
5755*22619282SSimon J. Gerratyelse case e in #(
5756*22619282SSimon J. Gerraty  e) ac_cv_c_const=no ;;
5757*22619282SSimon J. Gerratyesac
57583955d011SMarcel Moolenaarfi
5759*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5760*22619282SSimon J. Gerratyesac
57613955d011SMarcel Moolenaarfi
57624fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
57634fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_c_const" >&6; }
57643955d011SMarcel Moolenaarif test $ac_cv_c_const = no; then
57653955d011SMarcel Moolenaar
57664fde40d9SSimon J. Gerratyprintf "%s\n" "#define const /**/" >>confdefs.h
57673955d011SMarcel Moolenaar
57683955d011SMarcel Moolenaarfi
57693955d011SMarcel Moolenaar
57704fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
57714fde40d9SSimon J. Gerratyprintf %s "checking for inline... " >&6; }
57724fde40d9SSimon J. Gerratyif test ${ac_cv_c_inline+y}
57734fde40d9SSimon J. Gerratythen :
57744fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
5775*22619282SSimon J. Gerratyelse case e in #(
5776*22619282SSimon J. Gerraty  e) ac_cv_c_inline=no
577712904384SSimon J. Gerratyfor ac_kw in inline __inline__ __inline; do
577812904384SSimon J. Gerraty  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
577912904384SSimon J. Gerraty/* end confdefs.h.  */
578012904384SSimon J. Gerraty#ifndef __cplusplus
578112904384SSimon J. Gerratytypedef int foo_t;
57824fde40d9SSimon J. Gerratystatic $ac_kw foo_t static_foo (void) {return 0; }
57834fde40d9SSimon J. Gerraty$ac_kw foo_t foo (void) {return 0; }
578412904384SSimon J. Gerraty#endif
578512904384SSimon J. Gerraty
578612904384SSimon J. Gerraty_ACEOF
57874fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
57884fde40d9SSimon J. Gerratythen :
578912904384SSimon J. Gerraty  ac_cv_c_inline=$ac_kw
579012904384SSimon J. Gerratyfi
57914fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
579212904384SSimon J. Gerraty  test "$ac_cv_c_inline" != no && break
579312904384SSimon J. Gerratydone
5794*22619282SSimon J. Gerraty ;;
5795*22619282SSimon J. Gerratyesac
579612904384SSimon J. Gerratyfi
57974fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
57984fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_c_inline" >&6; }
579912904384SSimon J. Gerraty
580012904384SSimon J. Gerratycase $ac_cv_c_inline in
580112904384SSimon J. Gerraty  inline | yes) ;;
580212904384SSimon J. Gerraty  *)
580312904384SSimon J. Gerraty    case $ac_cv_c_inline in
580412904384SSimon J. Gerraty      no) ac_val=;;
580512904384SSimon J. Gerraty      *) ac_val=$ac_cv_c_inline;;
580612904384SSimon J. Gerraty    esac
580712904384SSimon J. Gerraty    cat >>confdefs.h <<_ACEOF
580812904384SSimon J. Gerraty#ifndef __cplusplus
580912904384SSimon J. Gerraty#define inline $ac_val
581012904384SSimon J. Gerraty#endif
581112904384SSimon J. Gerraty_ACEOF
581212904384SSimon J. Gerraty    ;;
581312904384SSimon J. Gerratyesac
581412904384SSimon J. Gerraty
581512904384SSimon J. Gerratyac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
581612904384SSimon J. Gerratycase $ac_cv_c_int64_t in #(
581712904384SSimon J. Gerraty  no|yes) ;; #(
581812904384SSimon J. Gerraty  *)
581912904384SSimon J. Gerraty
58204fde40d9SSimon J. Gerratyprintf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
582112904384SSimon J. Gerraty;;
582212904384SSimon J. Gerratyesac
582312904384SSimon J. Gerraty
582412904384SSimon J. Gerraty
58254fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
58264fde40d9SSimon J. Gerratyprintf %s "checking for unsigned long long int... " >&6; }
58274fde40d9SSimon J. Gerratyif test ${ac_cv_type_unsigned_long_long_int+y}
58284fde40d9SSimon J. Gerratythen :
58294fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
5830*22619282SSimon J. Gerratyelse case e in #(
5831*22619282SSimon J. Gerraty  e) ac_cv_type_unsigned_long_long_int=yes
58324fde40d9SSimon J. Gerraty     case $ac_prog_cc_stdc in
58334fde40d9SSimon J. Gerraty       no | c89) ;;
58344fde40d9SSimon J. Gerraty       *)
583512904384SSimon J. Gerraty	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
583612904384SSimon J. Gerraty/* end confdefs.h.  */
583712904384SSimon J. Gerraty
583812904384SSimon J. Gerraty  /* For now, do not test the preprocessor; as of 2007 there are too many
583912904384SSimon J. Gerraty	 implementations with broken preprocessors.  Perhaps this can
584012904384SSimon J. Gerraty	 be revisited in 2012.  In the meantime, code should not expect
584112904384SSimon J. Gerraty	 #if to work with literals wider than 32 bits.  */
584212904384SSimon J. Gerraty      /* Test literals.  */
584312904384SSimon J. Gerraty      long long int ll = 9223372036854775807ll;
584412904384SSimon J. Gerraty      long long int nll = -9223372036854775807LL;
584512904384SSimon J. Gerraty      unsigned long long int ull = 18446744073709551615ULL;
584612904384SSimon J. Gerraty      /* Test constant expressions.   */
584712904384SSimon J. Gerraty      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
584812904384SSimon J. Gerraty		     ? 1 : -1)];
584912904384SSimon J. Gerraty      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
585012904384SSimon J. Gerraty		     ? 1 : -1)];
585112904384SSimon J. Gerraty      int i = 63;
585212904384SSimon J. Gerratyint
58534fde40d9SSimon J. Gerratymain (void)
585412904384SSimon J. Gerraty{
585512904384SSimon J. Gerraty/* Test availability of runtime routines for shift and division.  */
585612904384SSimon J. Gerraty      long long int llmax = 9223372036854775807ll;
585712904384SSimon J. Gerraty      unsigned long long int ullmax = 18446744073709551615ull;
585812904384SSimon J. Gerraty      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
585912904384SSimon J. Gerraty	      | (llmax / ll) | (llmax % ll)
586012904384SSimon J. Gerraty	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
586112904384SSimon J. Gerraty	      | (ullmax / ull) | (ullmax % ull));
586212904384SSimon J. Gerraty  ;
586312904384SSimon J. Gerraty  return 0;
586412904384SSimon J. Gerraty}
586512904384SSimon J. Gerraty
586612904384SSimon J. Gerraty_ACEOF
58674fde40d9SSimon J. Gerratyif ac_fn_c_try_link "$LINENO"
58684fde40d9SSimon J. Gerratythen :
586912904384SSimon J. Gerraty
5870*22619282SSimon J. Gerratyelse case e in #(
5871*22619282SSimon J. Gerraty  e) ac_cv_type_unsigned_long_long_int=no ;;
5872*22619282SSimon J. Gerratyesac
587312904384SSimon J. Gerratyfi
58744fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam \
58754fde40d9SSimon J. Gerraty    conftest$ac_exeext conftest.$ac_ext;;
5876*22619282SSimon J. Gerraty     esac ;;
58774fde40d9SSimon J. Gerratyesac
587812904384SSimon J. Gerratyfi
58794fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
58804fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
588112904384SSimon J. Gerraty  if test $ac_cv_type_unsigned_long_long_int = yes; then
588212904384SSimon J. Gerraty
58834fde40d9SSimon J. Gerratyprintf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
588412904384SSimon J. Gerraty
588512904384SSimon J. Gerraty  fi
588612904384SSimon J. Gerraty
588712904384SSimon J. Gerraty
588812904384SSimon J. Gerraty
58894fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
58904fde40d9SSimon J. Gerratyprintf %s "checking for long long int... " >&6; }
58914fde40d9SSimon J. Gerratyif test ${ac_cv_type_long_long_int+y}
58924fde40d9SSimon J. Gerratythen :
58934fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
5894*22619282SSimon J. Gerratyelse case e in #(
5895*22619282SSimon J. Gerraty  e) ac_cv_type_long_long_int=yes
58964fde40d9SSimon J. Gerraty      case $ac_prog_cc_stdc in
58974fde40d9SSimon J. Gerraty	no | c89) ;;
58984fde40d9SSimon J. Gerraty	*)
589912904384SSimon J. Gerraty	  ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
590012904384SSimon J. Gerraty	  if test $ac_cv_type_long_long_int = yes; then
59014fde40d9SSimon J. Gerraty	    	    	    	    if test "$cross_compiling" = yes
59024fde40d9SSimon J. Gerratythen :
590312904384SSimon J. Gerraty  :
5904*22619282SSimon J. Gerratyelse case e in #(
5905*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
590612904384SSimon J. Gerraty/* end confdefs.h.  */
590712904384SSimon J. Gerraty#include <limits.h>
590812904384SSimon J. Gerraty		   #ifndef LLONG_MAX
5909*22619282SSimon J. Gerraty		   # define HALF \\
591012904384SSimon J. Gerraty			    (1LL << (sizeof (long long int) * CHAR_BIT - 2))
591112904384SSimon J. Gerraty		   # define LLONG_MAX (HALF - 1 + HALF)
591212904384SSimon J. Gerraty		   #endif
591312904384SSimon J. Gerratyint
59144fde40d9SSimon J. Gerratymain (void)
591512904384SSimon J. Gerraty{
591612904384SSimon J. Gerratylong long int n = 1;
591712904384SSimon J. Gerraty		   int i;
591812904384SSimon J. Gerraty		   for (i = 0; ; i++)
591912904384SSimon J. Gerraty		     {
592012904384SSimon J. Gerraty		       long long int m = n << i;
592112904384SSimon J. Gerraty		       if (m >> i != n)
592212904384SSimon J. Gerraty			 return 1;
592312904384SSimon J. Gerraty		       if (LLONG_MAX / 2 < m)
592412904384SSimon J. Gerraty			 break;
592512904384SSimon J. Gerraty		     }
592612904384SSimon J. Gerraty		   return 0;
592712904384SSimon J. Gerraty  ;
592812904384SSimon J. Gerraty  return 0;
592912904384SSimon J. Gerraty}
593012904384SSimon J. Gerraty_ACEOF
59314fde40d9SSimon J. Gerratyif ac_fn_c_try_run "$LINENO"
59324fde40d9SSimon J. Gerratythen :
593312904384SSimon J. Gerraty
5934*22619282SSimon J. Gerratyelse case e in #(
5935*22619282SSimon J. Gerraty  e) ac_cv_type_long_long_int=no ;;
5936*22619282SSimon J. Gerratyesac
593712904384SSimon J. Gerratyfi
593812904384SSimon J. Gerratyrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5939*22619282SSimon J. Gerraty  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5940*22619282SSimon J. Gerratyesac
594112904384SSimon J. Gerratyfi
594212904384SSimon J. Gerraty
59434fde40d9SSimon J. Gerraty	  fi;;
5944*22619282SSimon J. Gerraty      esac ;;
59454fde40d9SSimon J. Gerratyesac
594612904384SSimon J. Gerratyfi
59474fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
59484fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_type_long_long_int" >&6; }
594912904384SSimon J. Gerraty  if test $ac_cv_type_long_long_int = yes; then
595012904384SSimon J. Gerraty
59514fde40d9SSimon J. Gerratyprintf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
595212904384SSimon J. Gerraty
595312904384SSimon J. Gerraty  fi
595412904384SSimon J. Gerraty
595539ac7ef4SSimon J. Gerratyac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
59564fde40d9SSimon J. Gerratyif test "x$ac_cv_type_mode_t" = xyes
59574fde40d9SSimon J. Gerratythen :
595839ac7ef4SSimon J. Gerraty
5959*22619282SSimon J. Gerratyelse case e in #(
5960*22619282SSimon J. Gerraty  e)
59614fde40d9SSimon J. Gerratyprintf "%s\n" "#define mode_t int" >>confdefs.h
5962*22619282SSimon J. Gerraty ;;
5963*22619282SSimon J. Gerratyesac
596439ac7ef4SSimon J. Gerratyfi
596539ac7ef4SSimon J. Gerraty
59663955d011SMarcel Moolenaarac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
59674fde40d9SSimon J. Gerratyif test "x$ac_cv_type_off_t" = xyes
59684fde40d9SSimon J. Gerratythen :
59693955d011SMarcel Moolenaar
5970*22619282SSimon J. Gerratyelse case e in #(
5971*22619282SSimon J. Gerraty  e)
59724fde40d9SSimon J. Gerratyprintf "%s\n" "#define off_t long int" >>confdefs.h
5973*22619282SSimon J. Gerraty ;;
5974*22619282SSimon J. Gerratyesac
59753955d011SMarcel Moolenaarfi
59763955d011SMarcel Moolenaar
59773955d011SMarcel Moolenaar
59784fde40d9SSimon J. Gerraty  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
59794fde40d9SSimon J. Gerraty"
59804fde40d9SSimon J. Gerratyif test "x$ac_cv_type_pid_t" = xyes
59814fde40d9SSimon J. Gerratythen :
59823955d011SMarcel Moolenaar
5983*22619282SSimon J. Gerratyelse case e in #(
5984*22619282SSimon J. Gerraty  e)                                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59854fde40d9SSimon J. Gerraty/* end confdefs.h.  */
59864fde40d9SSimon J. Gerraty
59874fde40d9SSimon J. Gerraty          #if defined _WIN64 && !defined __CYGWIN__
59884fde40d9SSimon J. Gerraty          LLP64
59894fde40d9SSimon J. Gerraty          #endif
59904fde40d9SSimon J. Gerraty
59914fde40d9SSimon J. Gerratyint
59924fde40d9SSimon J. Gerratymain (void)
59934fde40d9SSimon J. Gerraty{
59944fde40d9SSimon J. Gerraty
59954fde40d9SSimon J. Gerraty  ;
59964fde40d9SSimon J. Gerraty  return 0;
59974fde40d9SSimon J. Gerraty}
59984fde40d9SSimon J. Gerraty
59993955d011SMarcel Moolenaar_ACEOF
60004fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
60014fde40d9SSimon J. Gerratythen :
60024fde40d9SSimon J. Gerraty  ac_pid_type='int'
6003*22619282SSimon J. Gerratyelse case e in #(
6004*22619282SSimon J. Gerraty  e) ac_pid_type='__int64' ;;
6005*22619282SSimon J. Gerratyesac
60064fde40d9SSimon J. Gerratyfi
60074fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
60084fde40d9SSimon J. Gerraty
60094fde40d9SSimon J. Gerratyprintf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
60104fde40d9SSimon J. Gerraty
6011*22619282SSimon J. Gerraty     ;;
6012*22619282SSimon J. Gerratyesac
60133955d011SMarcel Moolenaarfi
60143955d011SMarcel Moolenaar
60154fde40d9SSimon J. Gerraty
60163955d011SMarcel Moolenaarac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
60174fde40d9SSimon J. Gerratyif test "x$ac_cv_type_size_t" = xyes
60184fde40d9SSimon J. Gerratythen :
60193955d011SMarcel Moolenaar
6020*22619282SSimon J. Gerratyelse case e in #(
6021*22619282SSimon J. Gerraty  e)
60224fde40d9SSimon J. Gerratyprintf "%s\n" "#define size_t unsigned int" >>confdefs.h
6023*22619282SSimon J. Gerraty ;;
6024*22619282SSimon J. Gerratyesac
60253955d011SMarcel Moolenaarfi
60263955d011SMarcel Moolenaar
6027ac3446e9SSimon J. Gerratyac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6028ac3446e9SSimon J. Gerratycase $ac_cv_c_uint32_t in #(
6029ac3446e9SSimon J. Gerraty  no|yes) ;; #(
6030ac3446e9SSimon J. Gerraty  *)
6031ac3446e9SSimon J. Gerraty
60324fde40d9SSimon J. Gerratyprintf "%s\n" "#define _UINT32_T 1" >>confdefs.h
6033ac3446e9SSimon J. Gerraty
6034ac3446e9SSimon J. Gerraty
60354fde40d9SSimon J. Gerratyprintf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
6036ac3446e9SSimon J. Gerraty;;
6037ac3446e9SSimon J. Gerraty  esac
6038ac3446e9SSimon J. Gerraty
60394fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
60404fde40d9SSimon J. Gerratyprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
60414fde40d9SSimon J. Gerratyif test ${ac_cv_c_undeclared_builtin_options+y}
60424fde40d9SSimon J. Gerratythen :
60434fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
6044*22619282SSimon J. Gerratyelse case e in #(
6045*22619282SSimon J. Gerraty  e) ac_save_CFLAGS=$CFLAGS
60464fde40d9SSimon J. Gerraty   ac_cv_c_undeclared_builtin_options='cannot detect'
60474fde40d9SSimon J. Gerraty   for ac_arg in '' -fno-builtin; do
60484fde40d9SSimon J. Gerraty     CFLAGS="$ac_save_CFLAGS $ac_arg"
60494fde40d9SSimon J. Gerraty     # This test program should *not* compile successfully.
60504fde40d9SSimon J. Gerraty     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60514fde40d9SSimon J. Gerraty/* end confdefs.h.  */
60524fde40d9SSimon J. Gerraty
60534fde40d9SSimon J. Gerratyint
60544fde40d9SSimon J. Gerratymain (void)
60554fde40d9SSimon J. Gerraty{
60564fde40d9SSimon J. Gerraty(void) strchr;
60574fde40d9SSimon J. Gerraty  ;
60584fde40d9SSimon J. Gerraty  return 0;
60594fde40d9SSimon J. Gerraty}
60604fde40d9SSimon J. Gerraty_ACEOF
60614fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
60624fde40d9SSimon J. Gerratythen :
60634fde40d9SSimon J. Gerraty
6064*22619282SSimon J. Gerratyelse case e in #(
6065*22619282SSimon J. Gerraty  e) # This test program should compile successfully.
60664fde40d9SSimon J. Gerraty        # No library function is consistently available on
60674fde40d9SSimon J. Gerraty        # freestanding implementations, so test against a dummy
60684fde40d9SSimon J. Gerraty        # declaration.  Include always-available headers on the
60694fde40d9SSimon J. Gerraty        # off chance that they somehow elicit warnings.
60704fde40d9SSimon J. Gerraty        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60714fde40d9SSimon J. Gerraty/* end confdefs.h.  */
60724fde40d9SSimon J. Gerraty#include <float.h>
60734fde40d9SSimon J. Gerraty#include <limits.h>
60744fde40d9SSimon J. Gerraty#include <stdarg.h>
60754fde40d9SSimon J. Gerraty#include <stddef.h>
60764fde40d9SSimon J. Gerratyextern void ac_decl (int, char *);
60774fde40d9SSimon J. Gerraty
60784fde40d9SSimon J. Gerratyint
60794fde40d9SSimon J. Gerratymain (void)
60804fde40d9SSimon J. Gerraty{
60814fde40d9SSimon J. Gerraty(void) ac_decl (0, (char *) 0);
60824fde40d9SSimon J. Gerraty  (void) ac_decl;
60834fde40d9SSimon J. Gerraty
60844fde40d9SSimon J. Gerraty  ;
60854fde40d9SSimon J. Gerraty  return 0;
60864fde40d9SSimon J. Gerraty}
60874fde40d9SSimon J. Gerraty_ACEOF
60884fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
60894fde40d9SSimon J. Gerratythen :
60904fde40d9SSimon J. Gerraty  if test x"$ac_arg" = x
60914fde40d9SSimon J. Gerratythen :
60924fde40d9SSimon J. Gerraty  ac_cv_c_undeclared_builtin_options='none needed'
6093*22619282SSimon J. Gerratyelse case e in #(
6094*22619282SSimon J. Gerraty  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
6095*22619282SSimon J. Gerratyesac
60964fde40d9SSimon J. Gerratyfi
60974fde40d9SSimon J. Gerraty          break
60984fde40d9SSimon J. Gerratyfi
6099*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6100*22619282SSimon J. Gerratyesac
61014fde40d9SSimon J. Gerratyfi
61024fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
61034fde40d9SSimon J. Gerraty    done
61044fde40d9SSimon J. Gerraty    CFLAGS=$ac_save_CFLAGS
6105*22619282SSimon J. Gerraty   ;;
6106*22619282SSimon J. Gerratyesac
61074fde40d9SSimon J. Gerratyfi
61084fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
61094fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
61104fde40d9SSimon J. Gerraty  case $ac_cv_c_undeclared_builtin_options in #(
61114fde40d9SSimon J. Gerraty  'cannot detect') :
6112*22619282SSimon J. Gerraty    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6113*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
61144fde40d9SSimon J. Gerratyas_fn_error $? "cannot make $CC report undeclared builtins
6115*22619282SSimon J. GerratySee 'config.log' for more details" "$LINENO" 5; } ;; #(
61164fde40d9SSimon J. Gerraty  'none needed') :
61174fde40d9SSimon J. Gerraty    ac_c_undeclared_builtin_options='' ;; #(
61184fde40d9SSimon J. Gerraty  *) :
61194fde40d9SSimon J. Gerraty    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
61204fde40d9SSimon J. Gerratyesac
61214fde40d9SSimon J. Gerraty
61224fde40d9SSimon J. Gerratyac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
61233955d011SMarcel Moolenaar/* NetBSD declares sys_siglist in unistd.h.  */
61243955d011SMarcel Moolenaar#ifdef HAVE_UNISTD_H
61253955d011SMarcel Moolenaar# include <unistd.h>
61263955d011SMarcel Moolenaar#endif
61273955d011SMarcel Moolenaar
61284fde40d9SSimon J. Gerraty" "$ac_c_undeclared_builtin_options" "CFLAGS"
61294fde40d9SSimon J. Gerratyif test "x$ac_cv_have_decl_sys_siglist" = xyes
61304fde40d9SSimon J. Gerratythen :
61313955d011SMarcel Moolenaar  ac_have_decl=1
6132*22619282SSimon J. Gerratyelse case e in #(
6133*22619282SSimon J. Gerraty  e) ac_have_decl=0 ;;
6134*22619282SSimon J. Gerratyesac
61353955d011SMarcel Moolenaarfi
61364fde40d9SSimon J. Gerratyprintf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
61373955d011SMarcel Moolenaar
61383955d011SMarcel Moolenaar
61393955d011SMarcel Moolenaar
61403955d011SMarcel Moolenaar
61413955d011SMarcel Moolenaar
61424fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
61434fde40d9SSimon J. Gerratyprintf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
61444fde40d9SSimon J. Gerratyif test ${ac_cv_struct_tm+y}
61454fde40d9SSimon J. Gerratythen :
61464fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
6147*22619282SSimon J. Gerratyelse case e in #(
6148*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61493955d011SMarcel Moolenaar/* end confdefs.h.  */
61503955d011SMarcel Moolenaar#include <sys/types.h>
61513955d011SMarcel Moolenaar#include <time.h>
61523955d011SMarcel Moolenaar
61533955d011SMarcel Moolenaarint
61544fde40d9SSimon J. Gerratymain (void)
61553955d011SMarcel Moolenaar{
61563955d011SMarcel Moolenaarstruct tm tm;
61573955d011SMarcel Moolenaar				     int *p = &tm.tm_sec;
61583955d011SMarcel Moolenaar				     return !p;
61593955d011SMarcel Moolenaar  ;
61603955d011SMarcel Moolenaar  return 0;
61613955d011SMarcel Moolenaar}
61623955d011SMarcel Moolenaar_ACEOF
61634fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
61644fde40d9SSimon J. Gerratythen :
61653955d011SMarcel Moolenaar  ac_cv_struct_tm=time.h
6166*22619282SSimon J. Gerratyelse case e in #(
6167*22619282SSimon J. Gerraty  e) ac_cv_struct_tm=sys/time.h ;;
6168*22619282SSimon J. Gerratyesac
61693955d011SMarcel Moolenaarfi
6170*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6171*22619282SSimon J. Gerratyesac
61723955d011SMarcel Moolenaarfi
61734fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
61744fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_struct_tm" >&6; }
61753955d011SMarcel Moolenaarif test $ac_cv_struct_tm = sys/time.h; then
61763955d011SMarcel Moolenaar
61774fde40d9SSimon J. Gerratyprintf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
61783955d011SMarcel Moolenaar
61793955d011SMarcel Moolenaarfi
61803955d011SMarcel Moolenaar
61813955d011SMarcel Moolenaar
6182dba7b0efSSimon J. Gerraty
6183dba7b0efSSimon J. Gerratyac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
6184dba7b0efSSimon J. Gerraty#ifdef HAVE_SYS_TYPES_H
6185dba7b0efSSimon J. Gerraty#include <sys/types.h>
6186dba7b0efSSimon J. Gerraty#endif
6187dba7b0efSSimon J. Gerraty#include <signal.h>
6188dba7b0efSSimon J. Gerraty
6189dba7b0efSSimon J. Gerraty"
61904fde40d9SSimon J. Gerratyif test "x$ac_cv_type_sig_atomic_t" = xyes
61914fde40d9SSimon J. Gerratythen :
6192dba7b0efSSimon J. Gerraty
61934fde40d9SSimon J. Gerratyprintf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
6194dba7b0efSSimon J. Gerraty
6195dba7b0efSSimon J. Gerraty
6196dba7b0efSSimon J. Gerratyfi
6197dba7b0efSSimon J. Gerraty
6198dba7b0efSSimon J. Gerraty
61994fde40d9SSimon J. Gerraty
62004fde40d9SSimon J. Gerratyac_func=
62014fde40d9SSimon J. Gerratyfor ac_item in $ac_func_c_list
62024fde40d9SSimon J. Gerratydo
62034fde40d9SSimon J. Gerraty  if test $ac_func; then
62044fde40d9SSimon J. Gerraty    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
62054fde40d9SSimon J. Gerraty    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
62064fde40d9SSimon J. Gerraty      echo "#define $ac_item 1" >> confdefs.h
62074fde40d9SSimon J. Gerraty    fi
62084fde40d9SSimon J. Gerraty    ac_func=
62093955d011SMarcel Moolenaar  else
62104fde40d9SSimon J. Gerraty    ac_func=$ac_item
62113955d011SMarcel Moolenaar  fi
62123955d011SMarcel Moolenaardone
62133955d011SMarcel Moolenaar
62143955d011SMarcel Moolenaar
62153955d011SMarcel Moolenaar
62163955d011SMarcel Moolenaarif test "x$ac_cv_func_fork" = xyes; then
62174fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
62184fde40d9SSimon J. Gerratyprintf %s "checking for working fork... " >&6; }
62194fde40d9SSimon J. Gerratyif test ${ac_cv_func_fork_works+y}
62204fde40d9SSimon J. Gerratythen :
62214fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
6222*22619282SSimon J. Gerratyelse case e in #(
6223*22619282SSimon J. Gerraty  e) if test "$cross_compiling" = yes
62244fde40d9SSimon J. Gerratythen :
62253955d011SMarcel Moolenaar  ac_cv_func_fork_works=cross
6226*22619282SSimon J. Gerratyelse case e in #(
6227*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62283955d011SMarcel Moolenaar/* end confdefs.h.  */
62293955d011SMarcel Moolenaar$ac_includes_default
62303955d011SMarcel Moolenaarint
62314fde40d9SSimon J. Gerratymain (void)
62323955d011SMarcel Moolenaar{
62333955d011SMarcel Moolenaar
6234*22619282SSimon J. Gerraty	  /* By R. Kuhlmann. */
62353955d011SMarcel Moolenaar	  return fork () < 0;
62363955d011SMarcel Moolenaar
62373955d011SMarcel Moolenaar  ;
62383955d011SMarcel Moolenaar  return 0;
62393955d011SMarcel Moolenaar}
62403955d011SMarcel Moolenaar_ACEOF
62414fde40d9SSimon J. Gerratyif ac_fn_c_try_run "$LINENO"
62424fde40d9SSimon J. Gerratythen :
62433955d011SMarcel Moolenaar  ac_cv_func_fork_works=yes
6244*22619282SSimon J. Gerratyelse case e in #(
6245*22619282SSimon J. Gerraty  e) ac_cv_func_fork_works=no ;;
6246*22619282SSimon J. Gerratyesac
62473955d011SMarcel Moolenaarfi
62483955d011SMarcel Moolenaarrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6249*22619282SSimon J. Gerraty  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6250*22619282SSimon J. Gerratyesac
62513955d011SMarcel Moolenaarfi
6252*22619282SSimon J. Gerraty ;;
6253*22619282SSimon J. Gerratyesac
62543955d011SMarcel Moolenaarfi
62554fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
62564fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_func_fork_works" >&6; }
62573955d011SMarcel Moolenaar
62583955d011SMarcel Moolenaarelse
62593955d011SMarcel Moolenaar  ac_cv_func_fork_works=$ac_cv_func_fork
62603955d011SMarcel Moolenaarfi
62613955d011SMarcel Moolenaarif test "x$ac_cv_func_fork_works" = xcross; then
62623955d011SMarcel Moolenaar  case $host in
62633955d011SMarcel Moolenaar    *-*-amigaos* | *-*-msdosdjgpp*)
62643955d011SMarcel Moolenaar      # Override, as these systems have only a dummy fork() stub
62653955d011SMarcel Moolenaar      ac_cv_func_fork_works=no
62663955d011SMarcel Moolenaar      ;;
62673955d011SMarcel Moolenaar    *)
62683955d011SMarcel Moolenaar      ac_cv_func_fork_works=yes
62693955d011SMarcel Moolenaar      ;;
62703955d011SMarcel Moolenaar  esac
62714fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
62724fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
62733955d011SMarcel Moolenaarfi
62743955d011SMarcel Moolenaarac_cv_func_vfork_works=$ac_cv_func_vfork
62753955d011SMarcel Moolenaarif test "x$ac_cv_func_vfork" = xyes; then
62764fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
62774fde40d9SSimon J. Gerratyprintf %s "checking for working vfork... " >&6; }
62784fde40d9SSimon J. Gerratyif test ${ac_cv_func_vfork_works+y}
62794fde40d9SSimon J. Gerratythen :
62804fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
6281*22619282SSimon J. Gerratyelse case e in #(
6282*22619282SSimon J. Gerraty  e) if test "$cross_compiling" = yes
62834fde40d9SSimon J. Gerratythen :
62843955d011SMarcel Moolenaar  ac_cv_func_vfork_works=cross
6285*22619282SSimon J. Gerratyelse case e in #(
6286*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62873955d011SMarcel Moolenaar/* end confdefs.h.  */
62883955d011SMarcel Moolenaar/* Thanks to Paul Eggert for this test.  */
62893955d011SMarcel Moolenaar$ac_includes_default
62904fde40d9SSimon J. Gerraty#include <signal.h>
62913955d011SMarcel Moolenaar#include <sys/wait.h>
62923955d011SMarcel Moolenaar#ifdef HAVE_VFORK_H
62933955d011SMarcel Moolenaar# include <vfork.h>
62943955d011SMarcel Moolenaar#endif
62954fde40d9SSimon J. Gerraty
62964fde40d9SSimon J. Gerratystatic void
62974fde40d9SSimon J. Gerratydo_nothing (int sig)
62984fde40d9SSimon J. Gerraty{
62994fde40d9SSimon J. Gerraty  (void) sig;
63004fde40d9SSimon J. Gerraty}
63014fde40d9SSimon J. Gerraty
63023955d011SMarcel Moolenaar/* On some sparc systems, changes by the child to local and incoming
63033955d011SMarcel Moolenaar   argument registers are propagated back to the parent.  The compiler
63043955d011SMarcel Moolenaar   is told about this with #include <vfork.h>, but some compilers
63053955d011SMarcel Moolenaar   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
63063955d011SMarcel Moolenaar   static variable whose address is put into a register that is
63073955d011SMarcel Moolenaar   clobbered by the vfork.  */
63083955d011SMarcel Moolenaarstatic void
63093955d011SMarcel Moolenaarsparc_address_test (int arg)
63103955d011SMarcel Moolenaar{
63113955d011SMarcel Moolenaar  static pid_t child;
63123955d011SMarcel Moolenaar  if (!child) {
63133955d011SMarcel Moolenaar    child = vfork ();
63143955d011SMarcel Moolenaar    if (child < 0) {
63153955d011SMarcel Moolenaar      perror ("vfork");
63163955d011SMarcel Moolenaar      _exit(2);
63173955d011SMarcel Moolenaar    }
63183955d011SMarcel Moolenaar    if (!child) {
63193955d011SMarcel Moolenaar      arg = getpid();
63203955d011SMarcel Moolenaar      write(-1, "", 0);
63213955d011SMarcel Moolenaar      _exit (arg);
63223955d011SMarcel Moolenaar    }
63233955d011SMarcel Moolenaar  }
63243955d011SMarcel Moolenaar}
63253955d011SMarcel Moolenaar
63263955d011SMarcel Moolenaarint
63274fde40d9SSimon J. Gerratymain (void)
63283955d011SMarcel Moolenaar{
63293955d011SMarcel Moolenaar  pid_t parent = getpid ();
63303955d011SMarcel Moolenaar  pid_t child;
63313955d011SMarcel Moolenaar
63323955d011SMarcel Moolenaar  sparc_address_test (0);
63333955d011SMarcel Moolenaar
63344fde40d9SSimon J. Gerraty  /* On Solaris 2.4, changes by the child to the signal handler
63354fde40d9SSimon J. Gerraty     also munge signal handlers in the parent.  To detect this,
63364fde40d9SSimon J. Gerraty     start by putting the parent's handler in a known state.  */
63374fde40d9SSimon J. Gerraty  signal (SIGTERM, SIG_DFL);
63384fde40d9SSimon J. Gerraty
63393955d011SMarcel Moolenaar  child = vfork ();
63403955d011SMarcel Moolenaar
63413955d011SMarcel Moolenaar  if (child == 0) {
63423955d011SMarcel Moolenaar    /* Here is another test for sparc vfork register problems.  This
63433955d011SMarcel Moolenaar       test uses lots of local variables, at least as many local
63443955d011SMarcel Moolenaar       variables as main has allocated so far including compiler
63453955d011SMarcel Moolenaar       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
63463955d011SMarcel Moolenaar       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
63473955d011SMarcel Moolenaar       reuse the register of parent for one of the local variables,
63483955d011SMarcel Moolenaar       since it will think that parent can't possibly be used any more
63493955d011SMarcel Moolenaar       in this routine.  Assigning to the local variable will thus
63503955d011SMarcel Moolenaar       munge parent in the parent process.  */
63513955d011SMarcel Moolenaar    pid_t
63523955d011SMarcel Moolenaar      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
63533955d011SMarcel Moolenaar      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
63543955d011SMarcel Moolenaar    /* Convince the compiler that p..p7 are live; otherwise, it might
63553955d011SMarcel Moolenaar       use the same hardware register for all 8 local variables.  */
63563955d011SMarcel Moolenaar    if (p != p1 || p != p2 || p != p3 || p != p4
63573955d011SMarcel Moolenaar	|| p != p5 || p != p6 || p != p7)
63583955d011SMarcel Moolenaar      _exit(1);
63593955d011SMarcel Moolenaar
63604fde40d9SSimon J. Gerraty    /* Alter the child's signal handler.  */
63614fde40d9SSimon J. Gerraty    if (signal (SIGTERM, do_nothing) != SIG_DFL)
63624fde40d9SSimon J. Gerraty      _exit(1);
63634fde40d9SSimon J. Gerraty
63643955d011SMarcel Moolenaar    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
63653955d011SMarcel Moolenaar       from child file descriptors.  If the child closes a descriptor
63663955d011SMarcel Moolenaar       before it execs or exits, this munges the parent's descriptor
63673955d011SMarcel Moolenaar       as well.  Test for this by closing stdout in the child.  */
63683955d011SMarcel Moolenaar    _exit(close(fileno(stdout)) != 0);
63693955d011SMarcel Moolenaar  } else {
63703955d011SMarcel Moolenaar    int status;
63713955d011SMarcel Moolenaar    struct stat st;
63723955d011SMarcel Moolenaar
63733955d011SMarcel Moolenaar    while (wait(&status) != child)
63743955d011SMarcel Moolenaar      ;
63753955d011SMarcel Moolenaar    return (
63763955d011SMarcel Moolenaar	 /* Was there some problem with vforking?  */
63773955d011SMarcel Moolenaar	 child < 0
63783955d011SMarcel Moolenaar
63794fde40d9SSimon J. Gerraty	 /* Did the child munge the parent's signal handler?  */
63804fde40d9SSimon J. Gerraty	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
63814fde40d9SSimon J. Gerraty
63823955d011SMarcel Moolenaar	 /* Did the child fail?  (This shouldn't happen.)  */
63833955d011SMarcel Moolenaar	 || status
63843955d011SMarcel Moolenaar
63853955d011SMarcel Moolenaar	 /* Did the vfork/compiler bug occur?  */
63863955d011SMarcel Moolenaar	 || parent != getpid()
63873955d011SMarcel Moolenaar
63883955d011SMarcel Moolenaar	 /* Did the file descriptor bug occur?  */
63893955d011SMarcel Moolenaar	 || fstat(fileno(stdout), &st) != 0
63903955d011SMarcel Moolenaar	 );
63913955d011SMarcel Moolenaar  }
63923955d011SMarcel Moolenaar}
63933955d011SMarcel Moolenaar_ACEOF
63944fde40d9SSimon J. Gerratyif ac_fn_c_try_run "$LINENO"
63954fde40d9SSimon J. Gerratythen :
63963955d011SMarcel Moolenaar  ac_cv_func_vfork_works=yes
6397*22619282SSimon J. Gerratyelse case e in #(
6398*22619282SSimon J. Gerraty  e) ac_cv_func_vfork_works=no ;;
6399*22619282SSimon J. Gerratyesac
64003955d011SMarcel Moolenaarfi
64013955d011SMarcel Moolenaarrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6402*22619282SSimon J. Gerraty  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6403*22619282SSimon J. Gerratyesac
64043955d011SMarcel Moolenaarfi
6405*22619282SSimon J. Gerraty ;;
6406*22619282SSimon J. Gerratyesac
64073955d011SMarcel Moolenaarfi
64084fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
64094fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_func_vfork_works" >&6; }
64103955d011SMarcel Moolenaar
64113955d011SMarcel Moolenaarfi;
64123955d011SMarcel Moolenaarif test "x$ac_cv_func_fork_works" = xcross; then
64133955d011SMarcel Moolenaar  ac_cv_func_vfork_works=$ac_cv_func_vfork
64144fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
64154fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
64163955d011SMarcel Moolenaarfi
64173955d011SMarcel Moolenaar
64183955d011SMarcel Moolenaarif test "x$ac_cv_func_vfork_works" = xyes; then
64193955d011SMarcel Moolenaar
64204fde40d9SSimon J. Gerratyprintf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
64213955d011SMarcel Moolenaar
64223955d011SMarcel Moolenaarelse
64233955d011SMarcel Moolenaar
64244fde40d9SSimon J. Gerratyprintf "%s\n" "#define vfork fork" >>confdefs.h
64253955d011SMarcel Moolenaar
64263955d011SMarcel Moolenaarfi
64273955d011SMarcel Moolenaarif test "x$ac_cv_func_fork_works" = xyes; then
64283955d011SMarcel Moolenaar
64294fde40d9SSimon J. Gerratyprintf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
64303955d011SMarcel Moolenaar
64313955d011SMarcel Moolenaarfi
64323955d011SMarcel Moolenaar
64333955d011SMarcel Moolenaar
64344fde40d9SSimon J. Gerraty
64354fde40d9SSimon J. Gerratyif test "x$ac_cv_func_vprintf" = xno
64364fde40d9SSimon J. Gerratythen :
64373955d011SMarcel Moolenaar  ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
64384fde40d9SSimon J. Gerratyif test "x$ac_cv_func__doprnt" = xyes
64394fde40d9SSimon J. Gerratythen :
64403955d011SMarcel Moolenaar
64414fde40d9SSimon J. Gerratyprintf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
64423955d011SMarcel Moolenaar
64433955d011SMarcel Moolenaarfi
64443955d011SMarcel Moolenaar
64453955d011SMarcel Moolenaarfi
64464fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
64474fde40d9SSimon J. Gerratyprintf %s "checking for wait3 that fills in rusage... " >&6; }
64484fde40d9SSimon J. Gerratyif test ${ac_cv_func_wait3_rusage+y}
64494fde40d9SSimon J. Gerratythen :
64504fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
6451*22619282SSimon J. Gerratyelse case e in #(
6452*22619282SSimon J. Gerraty  e) if test "$cross_compiling" = yes
64534fde40d9SSimon J. Gerratythen :
64543955d011SMarcel Moolenaar  ac_cv_func_wait3_rusage=no
6455*22619282SSimon J. Gerratyelse case e in #(
6456*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64573955d011SMarcel Moolenaar/* end confdefs.h.  */
64583955d011SMarcel Moolenaar$ac_includes_default
64593955d011SMarcel Moolenaar#include <sys/time.h>
64603955d011SMarcel Moolenaar#include <sys/resource.h>
64613955d011SMarcel Moolenaar#include <sys/wait.h>
64623955d011SMarcel Moolenaar/* HP-UX has wait3 but does not fill in rusage at all.  */
64633955d011SMarcel Moolenaarint
64644fde40d9SSimon J. Gerratymain (void)
64653955d011SMarcel Moolenaar{
64663955d011SMarcel Moolenaar  struct rusage r;
64673955d011SMarcel Moolenaar  int i;
64683955d011SMarcel Moolenaar  /* Use a field that we can force nonzero --
64693955d011SMarcel Moolenaar     voluntary context switches.
64703955d011SMarcel Moolenaar     For systems like NeXT and OSF/1 that don't set it,
64713955d011SMarcel Moolenaar     also use the system CPU time.  And page faults (I/O) for Linux.  */
64723955d011SMarcel Moolenaar  r.ru_nvcsw = 0;
64733955d011SMarcel Moolenaar  r.ru_stime.tv_sec = 0;
64743955d011SMarcel Moolenaar  r.ru_stime.tv_usec = 0;
64753955d011SMarcel Moolenaar  r.ru_majflt = r.ru_minflt = 0;
64763955d011SMarcel Moolenaar  switch (fork ())
64773955d011SMarcel Moolenaar    {
64783955d011SMarcel Moolenaar    case 0: /* Child.  */
64793955d011SMarcel Moolenaar      sleep(1); /* Give up the CPU.  */
64803955d011SMarcel Moolenaar      _exit(0);
64813955d011SMarcel Moolenaar      break;
64823955d011SMarcel Moolenaar    case -1: /* What can we do?  */
64833955d011SMarcel Moolenaar      _exit(0);
64843955d011SMarcel Moolenaar      break;
64853955d011SMarcel Moolenaar    default: /* Parent.  */
64863955d011SMarcel Moolenaar      wait3(&i, 0, &r);
64873955d011SMarcel Moolenaar      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
64883955d011SMarcel Moolenaar      sleep(2);
64893955d011SMarcel Moolenaar      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
64903955d011SMarcel Moolenaar	      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
64913955d011SMarcel Moolenaar    }
64923955d011SMarcel Moolenaar}
64933955d011SMarcel Moolenaar_ACEOF
64944fde40d9SSimon J. Gerratyif ac_fn_c_try_run "$LINENO"
64954fde40d9SSimon J. Gerratythen :
64963955d011SMarcel Moolenaar  ac_cv_func_wait3_rusage=yes
6497*22619282SSimon J. Gerratyelse case e in #(
6498*22619282SSimon J. Gerraty  e) ac_cv_func_wait3_rusage=no ;;
6499*22619282SSimon J. Gerratyesac
65003955d011SMarcel Moolenaarfi
65013955d011SMarcel Moolenaarrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6502*22619282SSimon J. Gerraty  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6503*22619282SSimon J. Gerratyesac
65043955d011SMarcel Moolenaarfi
6505*22619282SSimon J. Gerraty ;;
6506*22619282SSimon J. Gerratyesac
65073955d011SMarcel Moolenaarfi
65084fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
65094fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_func_wait3_rusage" >&6; }
65103955d011SMarcel Moolenaarif test $ac_cv_func_wait3_rusage = yes; then
65113955d011SMarcel Moolenaar
65124fde40d9SSimon J. Gerratyprintf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
65133955d011SMarcel Moolenaar
65143955d011SMarcel Moolenaarfi
65153955d011SMarcel Moolenaar
65164fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
65174fde40d9SSimon J. Gerratyif test "x$ac_cv_func_err" = xyes
65184fde40d9SSimon J. Gerratythen :
65194fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_ERR 1" >>confdefs.h
65203955d011SMarcel Moolenaar
65213955d011SMarcel Moolenaarfi
65224fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
65234fde40d9SSimon J. Gerratyif test "x$ac_cv_func_errx" = xyes
65244fde40d9SSimon J. Gerratythen :
65254fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_ERRX 1" >>confdefs.h
65264fde40d9SSimon J. Gerraty
65274fde40d9SSimon J. Gerratyfi
65284fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
65294fde40d9SSimon J. Gerratyif test "x$ac_cv_func_getcwd" = xyes
65304fde40d9SSimon J. Gerratythen :
65314fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
65324fde40d9SSimon J. Gerraty
65334fde40d9SSimon J. Gerratyfi
65344fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
65354fde40d9SSimon J. Gerratyif test "x$ac_cv_func_getenv" = xyes
65364fde40d9SSimon J. Gerratythen :
65374fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
65384fde40d9SSimon J. Gerraty
65394fde40d9SSimon J. Gerratyfi
65404fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
65414fde40d9SSimon J. Gerratyif test "x$ac_cv_func_getwd" = xyes
65424fde40d9SSimon J. Gerratythen :
65434fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
65444fde40d9SSimon J. Gerraty
65454fde40d9SSimon J. Gerratyfi
65464fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
65474fde40d9SSimon J. Gerratyif test "x$ac_cv_func_killpg" = xyes
65484fde40d9SSimon J. Gerratythen :
65494fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
65504fde40d9SSimon J. Gerraty
65514fde40d9SSimon J. Gerratyfi
65524fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
65534fde40d9SSimon J. Gerratyif test "x$ac_cv_func_putenv" = xyes
65544fde40d9SSimon J. Gerratythen :
65554fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
65564fde40d9SSimon J. Gerraty
65574fde40d9SSimon J. Gerratyfi
65584fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
65594fde40d9SSimon J. Gerratyif test "x$ac_cv_func_select" = xyes
65604fde40d9SSimon J. Gerratythen :
65614fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
65624fde40d9SSimon J. Gerraty
65634fde40d9SSimon J. Gerratyfi
65644fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
65654fde40d9SSimon J. Gerratyif test "x$ac_cv_func_setenv" = xyes
65664fde40d9SSimon J. Gerratythen :
65674fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
65684fde40d9SSimon J. Gerraty
65694fde40d9SSimon J. Gerratyfi
65704fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
65714fde40d9SSimon J. Gerratyif test "x$ac_cv_func_setpgid" = xyes
65724fde40d9SSimon J. Gerratythen :
65734fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
65744fde40d9SSimon J. Gerraty
65754fde40d9SSimon J. Gerratyfi
65764fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
65774fde40d9SSimon J. Gerratyif test "x$ac_cv_func_setrlimit" = xyes
65784fde40d9SSimon J. Gerratythen :
65794fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
65804fde40d9SSimon J. Gerraty
65814fde40d9SSimon J. Gerratyfi
65824fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
65834fde40d9SSimon J. Gerratyif test "x$ac_cv_func_setsid" = xyes
65844fde40d9SSimon J. Gerratythen :
65854fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
65864fde40d9SSimon J. Gerraty
65874fde40d9SSimon J. Gerratyfi
65884fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "sigaddset" "ac_cv_func_sigaddset"
65894fde40d9SSimon J. Gerratyif test "x$ac_cv_func_sigaddset" = xyes
65904fde40d9SSimon J. Gerratythen :
65914fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SIGADDSET 1" >>confdefs.h
65924fde40d9SSimon J. Gerraty
65934fde40d9SSimon J. Gerratyfi
65944fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending"
65954fde40d9SSimon J. Gerratyif test "x$ac_cv_func_sigpending" = xyes
65964fde40d9SSimon J. Gerratythen :
65974fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h
65984fde40d9SSimon J. Gerraty
65994fde40d9SSimon J. Gerratyfi
66004fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
66014fde40d9SSimon J. Gerratyif test "x$ac_cv_func_sigprocmask" = xyes
66024fde40d9SSimon J. Gerratythen :
66034fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
66044fde40d9SSimon J. Gerraty
66054fde40d9SSimon J. Gerratyfi
66064fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask"
66074fde40d9SSimon J. Gerratyif test "x$ac_cv_func_sigsetmask" = xyes
66084fde40d9SSimon J. Gerratythen :
66094fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h
66104fde40d9SSimon J. Gerraty
66114fde40d9SSimon J. Gerratyfi
66124fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
66134fde40d9SSimon J. Gerratyif test "x$ac_cv_func_sigsuspend" = xyes
66144fde40d9SSimon J. Gerratythen :
66154fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SIGSUSPEND 1" >>confdefs.h
66164fde40d9SSimon J. Gerraty
66174fde40d9SSimon J. Gerratyfi
66184fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
66194fde40d9SSimon J. Gerratyif test "x$ac_cv_func_sigvec" = xyes
66204fde40d9SSimon J. Gerratythen :
66214fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h
66224fde40d9SSimon J. Gerraty
66234fde40d9SSimon J. Gerratyfi
66244fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
66254fde40d9SSimon J. Gerratyif test "x$ac_cv_func_snprintf" = xyes
66264fde40d9SSimon J. Gerratythen :
66274fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
66284fde40d9SSimon J. Gerraty
66294fde40d9SSimon J. Gerratyfi
66304fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
66314fde40d9SSimon J. Gerratyif test "x$ac_cv_func_strerror" = xyes
66324fde40d9SSimon J. Gerratythen :
66334fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
66344fde40d9SSimon J. Gerraty
66354fde40d9SSimon J. Gerratyfi
66364fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
66374fde40d9SSimon J. Gerratyif test "x$ac_cv_func_stresep" = xyes
66384fde40d9SSimon J. Gerratythen :
66394fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_STRESEP 1" >>confdefs.h
66404fde40d9SSimon J. Gerraty
66414fde40d9SSimon J. Gerratyfi
66424fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
66434fde40d9SSimon J. Gerratyif test "x$ac_cv_func_strftime" = xyes
66444fde40d9SSimon J. Gerratythen :
66454fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
66464fde40d9SSimon J. Gerraty
66474fde40d9SSimon J. Gerratyfi
66484fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
66494fde40d9SSimon J. Gerratyif test "x$ac_cv_func_strsep" = xyes
66504fde40d9SSimon J. Gerratythen :
66514fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
66524fde40d9SSimon J. Gerraty
66534fde40d9SSimon J. Gerratyfi
66544fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
66554fde40d9SSimon J. Gerratyif test "x$ac_cv_func_strtod" = xyes
66564fde40d9SSimon J. Gerratythen :
66574fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
66584fde40d9SSimon J. Gerraty
66594fde40d9SSimon J. Gerratyfi
66604fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
66614fde40d9SSimon J. Gerratyif test "x$ac_cv_func_strtol" = xyes
66624fde40d9SSimon J. Gerratythen :
66634fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
66644fde40d9SSimon J. Gerraty
66654fde40d9SSimon J. Gerratyfi
66664fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
66674fde40d9SSimon J. Gerratyif test "x$ac_cv_func_strtoll" = xyes
66684fde40d9SSimon J. Gerratythen :
66694fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
66704fde40d9SSimon J. Gerraty
66714fde40d9SSimon J. Gerratyfi
66724fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
66734fde40d9SSimon J. Gerratyif test "x$ac_cv_func_strtoul" = xyes
66744fde40d9SSimon J. Gerratythen :
66754fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
66764fde40d9SSimon J. Gerraty
66774fde40d9SSimon J. Gerratyfi
66784fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
66794fde40d9SSimon J. Gerratyif test "x$ac_cv_func_sysctl" = xyes
66804fde40d9SSimon J. Gerratythen :
66814fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h
66824fde40d9SSimon J. Gerraty
66834fde40d9SSimon J. Gerratyfi
66844fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
66854fde40d9SSimon J. Gerratyif test "x$ac_cv_func_unsetenv" = xyes
66864fde40d9SSimon J. Gerratythen :
66874fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
66884fde40d9SSimon J. Gerraty
66894fde40d9SSimon J. Gerratyfi
66904fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
66914fde40d9SSimon J. Gerratyif test "x$ac_cv_func_vsnprintf" = xyes
66924fde40d9SSimon J. Gerratythen :
66934fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
66944fde40d9SSimon J. Gerraty
66954fde40d9SSimon J. Gerratyfi
66964fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
66974fde40d9SSimon J. Gerratyif test "x$ac_cv_func_wait3" = xyes
66984fde40d9SSimon J. Gerratythen :
66994fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
67004fde40d9SSimon J. Gerraty
67014fde40d9SSimon J. Gerratyfi
67024fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
67034fde40d9SSimon J. Gerratyif test "x$ac_cv_func_wait4" = xyes
67044fde40d9SSimon J. Gerratythen :
67054fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
67064fde40d9SSimon J. Gerraty
67074fde40d9SSimon J. Gerratyfi
67084fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
67094fde40d9SSimon J. Gerratyif test "x$ac_cv_func_waitpid" = xyes
67104fde40d9SSimon J. Gerratythen :
67114fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
67124fde40d9SSimon J. Gerraty
67134fde40d9SSimon J. Gerratyfi
67144fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
67154fde40d9SSimon J. Gerratyif test "x$ac_cv_func_warn" = xyes
67164fde40d9SSimon J. Gerratythen :
67174fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_WARN 1" >>confdefs.h
67184fde40d9SSimon J. Gerraty
67194fde40d9SSimon J. Gerratyfi
67204fde40d9SSimon J. Gerratyac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
67214fde40d9SSimon J. Gerratyif test "x$ac_cv_func_warnx" = xyes
67224fde40d9SSimon J. Gerratythen :
67234fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_WARNX 1" >>confdefs.h
67244fde40d9SSimon J. Gerraty
67254fde40d9SSimon J. Gerratyfi
67263955d011SMarcel Moolenaar
67273955d011SMarcel Moolenaar
672812904384SSimon J. Gerratyac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
67294fde40d9SSimon J. Gerratyif test "x$ac_cv_func_getopt" = xyes
67304fde40d9SSimon J. Gerratythen :
67314fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
673212904384SSimon J. Gerraty
6733*22619282SSimon J. Gerratyelse case e in #(
6734*22619282SSimon J. Gerraty  e) case " $LIBOBJS " in
673512904384SSimon J. Gerraty  *" getopt.$ac_objext "* ) ;;
673612904384SSimon J. Gerraty  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
673712904384SSimon J. Gerraty ;;
673812904384SSimon J. Gerratyesac
6739*22619282SSimon J. Gerraty ;;
6740*22619282SSimon J. Gerratyesac
674112904384SSimon J. Gerratyfi
674249caa483SSimon J. Gerratyac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
67434fde40d9SSimon J. Gerratyif test "x$ac_cv_func_realpath" = xyes
67444fde40d9SSimon J. Gerratythen :
67454fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
67463955d011SMarcel Moolenaar
6747*22619282SSimon J. Gerratyelse case e in #(
6748*22619282SSimon J. Gerraty  e) case " $LIBOBJS " in
674949caa483SSimon J. Gerraty  *" realpath.$ac_objext "* ) ;;
675049caa483SSimon J. Gerraty  *) LIBOBJS="$LIBOBJS realpath.$ac_objext"
67513955d011SMarcel Moolenaar ;;
67523955d011SMarcel Moolenaaresac
6753*22619282SSimon J. Gerraty ;;
6754*22619282SSimon J. Gerratyesac
67553955d011SMarcel Moolenaarfi
675649caa483SSimon J. Gerratyac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
67574fde40d9SSimon J. Gerratyif test "x$ac_cv_func_dirname" = xyes
67584fde40d9SSimon J. Gerratythen :
67594fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_DIRNAME 1" >>confdefs.h
676049caa483SSimon J. Gerraty
6761*22619282SSimon J. Gerratyelse case e in #(
6762*22619282SSimon J. Gerraty  e) case " $LIBOBJS " in
676349caa483SSimon J. Gerraty  *" dirname.$ac_objext "* ) ;;
676449caa483SSimon J. Gerraty  *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
676549caa483SSimon J. Gerraty ;;
676649caa483SSimon J. Gerratyesac
6767*22619282SSimon J. Gerraty ;;
6768*22619282SSimon J. Gerratyesac
676949caa483SSimon J. Gerratyfi
677012904384SSimon J. Gerratyac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
67714fde40d9SSimon J. Gerratyif test "x$ac_cv_func_sigaction" = xyes
67724fde40d9SSimon J. Gerratythen :
67734fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
677412904384SSimon J. Gerraty
6775*22619282SSimon J. Gerratyelse case e in #(
6776*22619282SSimon J. Gerraty  e) case " $LIBOBJS " in
677712904384SSimon J. Gerraty  *" sigaction.$ac_objext "* ) ;;
677812904384SSimon J. Gerraty  *) LIBOBJS="$LIBOBJS sigaction.$ac_objext"
677912904384SSimon J. Gerraty ;;
678012904384SSimon J. Gerratyesac
6781*22619282SSimon J. Gerraty ;;
6782*22619282SSimon J. Gerratyesac
678312904384SSimon J. Gerratyfi
678449caa483SSimon J. Gerratyac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
67854fde40d9SSimon J. Gerratyif test "x$ac_cv_func_stresep" = xyes
67864fde40d9SSimon J. Gerratythen :
67874fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_STRESEP 1" >>confdefs.h
678849caa483SSimon J. Gerraty
6789*22619282SSimon J. Gerratyelse case e in #(
6790*22619282SSimon J. Gerraty  e) case " $LIBOBJS " in
679149caa483SSimon J. Gerraty  *" stresep.$ac_objext "* ) ;;
679249caa483SSimon J. Gerraty  *) LIBOBJS="$LIBOBJS stresep.$ac_objext"
679349caa483SSimon J. Gerraty ;;
679449caa483SSimon J. Gerratyesac
6795*22619282SSimon J. Gerraty ;;
6796*22619282SSimon J. Gerratyesac
679749caa483SSimon J. Gerratyfi
679849caa483SSimon J. Gerratyac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
67994fde40d9SSimon J. Gerratyif test "x$ac_cv_func_strlcpy" = xyes
68004fde40d9SSimon J. Gerratythen :
68014fde40d9SSimon J. Gerraty  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
680249caa483SSimon J. Gerraty
6803*22619282SSimon J. Gerratyelse case e in #(
6804*22619282SSimon J. Gerraty  e) case " $LIBOBJS " in
680549caa483SSimon J. Gerraty  *" strlcpy.$ac_objext "* ) ;;
680649caa483SSimon J. Gerraty  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
680749caa483SSimon J. Gerraty ;;
680849caa483SSimon J. Gerratyesac
6809*22619282SSimon J. Gerraty ;;
6810*22619282SSimon J. Gerratyesac
681149caa483SSimon J. Gerratyfi
68123955d011SMarcel Moolenaar
68133955d011SMarcel Moolenaar
68144fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
68154fde40d9SSimon J. Gerratyprintf %s "checking for emalloc in -lutil... " >&6; }
68164fde40d9SSimon J. Gerratyif test ${ac_cv_lib_util_emalloc+y}
68174fde40d9SSimon J. Gerratythen :
68184fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
6819*22619282SSimon J. Gerratyelse case e in #(
6820*22619282SSimon J. Gerraty  e) ac_check_lib_save_LIBS=$LIBS
68213955d011SMarcel MoolenaarLIBS="-lutil  $LIBS"
68223955d011SMarcel Moolenaarcat confdefs.h - <<_ACEOF >conftest.$ac_ext
68233955d011SMarcel Moolenaar/* end confdefs.h.  */
68243955d011SMarcel Moolenaar
68253955d011SMarcel Moolenaar/* Override any GCC internal prototype to avoid an error.
68263955d011SMarcel Moolenaar   Use char because int might match the return type of a GCC
6827*22619282SSimon J. Gerraty   builtin and then its argument prototype would still apply.
6828*22619282SSimon J. Gerraty   The 'extern "C"' is for builds by C++ compilers;
6829*22619282SSimon J. Gerraty   although this is not generally supported in C code supporting it here
6830*22619282SSimon J. Gerraty   has little cost and some practical benefit (sr 110532).  */
6831*22619282SSimon J. Gerraty#ifdef __cplusplus
6832*22619282SSimon J. Gerratyextern "C"
6833*22619282SSimon J. Gerraty#endif
6834*22619282SSimon J. Gerratychar emalloc (void);
68353955d011SMarcel Moolenaarint
68364fde40d9SSimon J. Gerratymain (void)
68373955d011SMarcel Moolenaar{
68383955d011SMarcel Moolenaarreturn emalloc ();
68393955d011SMarcel Moolenaar  ;
68403955d011SMarcel Moolenaar  return 0;
68413955d011SMarcel Moolenaar}
68423955d011SMarcel Moolenaar_ACEOF
68434fde40d9SSimon J. Gerratyif ac_fn_c_try_link "$LINENO"
68444fde40d9SSimon J. Gerratythen :
68453955d011SMarcel Moolenaar  ac_cv_lib_util_emalloc=yes
6846*22619282SSimon J. Gerratyelse case e in #(
6847*22619282SSimon J. Gerraty  e) ac_cv_lib_util_emalloc=no ;;
6848*22619282SSimon J. Gerratyesac
68493955d011SMarcel Moolenaarfi
68504fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam \
68513955d011SMarcel Moolenaar    conftest$ac_exeext conftest.$ac_ext
6852*22619282SSimon J. GerratyLIBS=$ac_check_lib_save_LIBS ;;
6853*22619282SSimon J. Gerratyesac
68543955d011SMarcel Moolenaarfi
68554fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
68564fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_lib_util_emalloc" >&6; }
68574fde40d9SSimon J. Gerratyif test "x$ac_cv_lib_util_emalloc" = xyes
68584fde40d9SSimon J. Gerratythen :
68594fde40d9SSimon J. Gerraty   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
68604fde40d9SSimon J. Gerratyprintf %s "checking for erealloc in -lutil... " >&6; }
68614fde40d9SSimon J. Gerratyif test ${ac_cv_lib_util_erealloc+y}
68624fde40d9SSimon J. Gerratythen :
68634fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
6864*22619282SSimon J. Gerratyelse case e in #(
6865*22619282SSimon J. Gerraty  e) ac_check_lib_save_LIBS=$LIBS
68663955d011SMarcel MoolenaarLIBS="-lutil  $LIBS"
68673955d011SMarcel Moolenaarcat confdefs.h - <<_ACEOF >conftest.$ac_ext
68683955d011SMarcel Moolenaar/* end confdefs.h.  */
68693955d011SMarcel Moolenaar
68703955d011SMarcel Moolenaar/* Override any GCC internal prototype to avoid an error.
68713955d011SMarcel Moolenaar   Use char because int might match the return type of a GCC
6872*22619282SSimon J. Gerraty   builtin and then its argument prototype would still apply.
6873*22619282SSimon J. Gerraty   The 'extern "C"' is for builds by C++ compilers;
6874*22619282SSimon J. Gerraty   although this is not generally supported in C code supporting it here
6875*22619282SSimon J. Gerraty   has little cost and some practical benefit (sr 110532).  */
6876*22619282SSimon J. Gerraty#ifdef __cplusplus
6877*22619282SSimon J. Gerratyextern "C"
6878*22619282SSimon J. Gerraty#endif
6879*22619282SSimon J. Gerratychar erealloc (void);
68803955d011SMarcel Moolenaarint
68814fde40d9SSimon J. Gerratymain (void)
68823955d011SMarcel Moolenaar{
68833955d011SMarcel Moolenaarreturn erealloc ();
68843955d011SMarcel Moolenaar  ;
68853955d011SMarcel Moolenaar  return 0;
68863955d011SMarcel Moolenaar}
68873955d011SMarcel Moolenaar_ACEOF
68884fde40d9SSimon J. Gerratyif ac_fn_c_try_link "$LINENO"
68894fde40d9SSimon J. Gerratythen :
68903955d011SMarcel Moolenaar  ac_cv_lib_util_erealloc=yes
6891*22619282SSimon J. Gerratyelse case e in #(
6892*22619282SSimon J. Gerraty  e) ac_cv_lib_util_erealloc=no ;;
6893*22619282SSimon J. Gerratyesac
68943955d011SMarcel Moolenaarfi
68954fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam \
68963955d011SMarcel Moolenaar    conftest$ac_exeext conftest.$ac_ext
6897*22619282SSimon J. GerratyLIBS=$ac_check_lib_save_LIBS ;;
6898*22619282SSimon J. Gerratyesac
68993955d011SMarcel Moolenaarfi
69004fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
69014fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_lib_util_erealloc" >&6; }
69024fde40d9SSimon J. Gerratyif test "x$ac_cv_lib_util_erealloc" = xyes
69034fde40d9SSimon J. Gerratythen :
69044fde40d9SSimon J. Gerraty   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
69054fde40d9SSimon J. Gerratyprintf %s "checking for estrdup in -lutil... " >&6; }
69064fde40d9SSimon J. Gerratyif test ${ac_cv_lib_util_estrdup+y}
69074fde40d9SSimon J. Gerratythen :
69084fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
6909*22619282SSimon J. Gerratyelse case e in #(
6910*22619282SSimon J. Gerraty  e) ac_check_lib_save_LIBS=$LIBS
69113955d011SMarcel MoolenaarLIBS="-lutil  $LIBS"
69123955d011SMarcel Moolenaarcat confdefs.h - <<_ACEOF >conftest.$ac_ext
69133955d011SMarcel Moolenaar/* end confdefs.h.  */
69143955d011SMarcel Moolenaar
69153955d011SMarcel Moolenaar/* Override any GCC internal prototype to avoid an error.
69163955d011SMarcel Moolenaar   Use char because int might match the return type of a GCC
6917*22619282SSimon J. Gerraty   builtin and then its argument prototype would still apply.
6918*22619282SSimon J. Gerraty   The 'extern "C"' is for builds by C++ compilers;
6919*22619282SSimon J. Gerraty   although this is not generally supported in C code supporting it here
6920*22619282SSimon J. Gerraty   has little cost and some practical benefit (sr 110532).  */
6921*22619282SSimon J. Gerraty#ifdef __cplusplus
6922*22619282SSimon J. Gerratyextern "C"
6923*22619282SSimon J. Gerraty#endif
6924*22619282SSimon J. Gerratychar estrdup (void);
69253955d011SMarcel Moolenaarint
69264fde40d9SSimon J. Gerratymain (void)
69273955d011SMarcel Moolenaar{
69283955d011SMarcel Moolenaarreturn estrdup ();
69293955d011SMarcel Moolenaar  ;
69303955d011SMarcel Moolenaar  return 0;
69313955d011SMarcel Moolenaar}
69323955d011SMarcel Moolenaar_ACEOF
69334fde40d9SSimon J. Gerratyif ac_fn_c_try_link "$LINENO"
69344fde40d9SSimon J. Gerratythen :
69353955d011SMarcel Moolenaar  ac_cv_lib_util_estrdup=yes
6936*22619282SSimon J. Gerratyelse case e in #(
6937*22619282SSimon J. Gerraty  e) ac_cv_lib_util_estrdup=no ;;
6938*22619282SSimon J. Gerratyesac
69393955d011SMarcel Moolenaarfi
69404fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam \
69413955d011SMarcel Moolenaar    conftest$ac_exeext conftest.$ac_ext
6942*22619282SSimon J. GerratyLIBS=$ac_check_lib_save_LIBS ;;
6943*22619282SSimon J. Gerratyesac
69443955d011SMarcel Moolenaarfi
69454fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
69464fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_lib_util_estrdup" >&6; }
69474fde40d9SSimon J. Gerratyif test "x$ac_cv_lib_util_estrdup" = xyes
69484fde40d9SSimon J. Gerratythen :
69494fde40d9SSimon J. Gerraty   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
69504fde40d9SSimon J. Gerratyprintf %s "checking for estrndup in -lutil... " >&6; }
69514fde40d9SSimon J. Gerratyif test ${ac_cv_lib_util_estrndup+y}
69524fde40d9SSimon J. Gerratythen :
69534fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
6954*22619282SSimon J. Gerratyelse case e in #(
6955*22619282SSimon J. Gerraty  e) ac_check_lib_save_LIBS=$LIBS
69563955d011SMarcel MoolenaarLIBS="-lutil  $LIBS"
69573955d011SMarcel Moolenaarcat confdefs.h - <<_ACEOF >conftest.$ac_ext
69583955d011SMarcel Moolenaar/* end confdefs.h.  */
69593955d011SMarcel Moolenaar
69603955d011SMarcel Moolenaar/* Override any GCC internal prototype to avoid an error.
69613955d011SMarcel Moolenaar   Use char because int might match the return type of a GCC
6962*22619282SSimon J. Gerraty   builtin and then its argument prototype would still apply.
6963*22619282SSimon J. Gerraty   The 'extern "C"' is for builds by C++ compilers;
6964*22619282SSimon J. Gerraty   although this is not generally supported in C code supporting it here
6965*22619282SSimon J. Gerraty   has little cost and some practical benefit (sr 110532).  */
6966*22619282SSimon J. Gerraty#ifdef __cplusplus
6967*22619282SSimon J. Gerratyextern "C"
6968*22619282SSimon J. Gerraty#endif
6969*22619282SSimon J. Gerratychar estrndup (void);
69703955d011SMarcel Moolenaarint
69714fde40d9SSimon J. Gerratymain (void)
69723955d011SMarcel Moolenaar{
69733955d011SMarcel Moolenaarreturn estrndup ();
69743955d011SMarcel Moolenaar  ;
69753955d011SMarcel Moolenaar  return 0;
69763955d011SMarcel Moolenaar}
69773955d011SMarcel Moolenaar_ACEOF
69784fde40d9SSimon J. Gerratyif ac_fn_c_try_link "$LINENO"
69794fde40d9SSimon J. Gerratythen :
69803955d011SMarcel Moolenaar  ac_cv_lib_util_estrndup=yes
6981*22619282SSimon J. Gerratyelse case e in #(
6982*22619282SSimon J. Gerraty  e) ac_cv_lib_util_estrndup=no ;;
6983*22619282SSimon J. Gerratyesac
69843955d011SMarcel Moolenaarfi
69854fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam \
69863955d011SMarcel Moolenaar    conftest$ac_exeext conftest.$ac_ext
6987*22619282SSimon J. GerratyLIBS=$ac_check_lib_save_LIBS ;;
6988*22619282SSimon J. Gerratyesac
69893955d011SMarcel Moolenaarfi
69904fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
69914fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_lib_util_estrndup" >&6; }
69924fde40d9SSimon J. Gerratyif test "x$ac_cv_lib_util_estrndup" = xyes
69934fde40d9SSimon J. Gerratythen :
69943955d011SMarcel Moolenaar   LIBS="$LIBS -lutil"
69953955d011SMarcel Moolenaar	    CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
69963955d011SMarcel Moolenaarfi
69973955d011SMarcel Moolenaar
69983955d011SMarcel Moolenaarfi
69993955d011SMarcel Moolenaar
70003955d011SMarcel Moolenaarfi
70013955d011SMarcel Moolenaar
70023955d011SMarcel Moolenaarfi
70033955d011SMarcel Moolenaar
70043955d011SMarcel Moolenaar
70054fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
70064fde40d9SSimon J. Gerratyprintf %s "checking whether stat file-mode macros are broken... " >&6; }
70074fde40d9SSimon J. Gerratyif test ${ac_cv_header_stat_broken+y}
70084fde40d9SSimon J. Gerratythen :
70094fde40d9SSimon J. Gerraty  printf %s "(cached) " >&6
7010*22619282SSimon J. Gerratyelse case e in #(
7011*22619282SSimon J. Gerraty  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70123955d011SMarcel Moolenaar/* end confdefs.h.  */
70133955d011SMarcel Moolenaar#include <sys/types.h>
70143955d011SMarcel Moolenaar#include <sys/stat.h>
70153955d011SMarcel Moolenaar
70163955d011SMarcel Moolenaar#if defined S_ISBLK && defined S_IFDIR
70173955d011SMarcel Moolenaarextern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
70183955d011SMarcel Moolenaar#endif
70193955d011SMarcel Moolenaar
70203955d011SMarcel Moolenaar#if defined S_ISBLK && defined S_IFCHR
70213955d011SMarcel Moolenaarextern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
70223955d011SMarcel Moolenaar#endif
70233955d011SMarcel Moolenaar
70243955d011SMarcel Moolenaar#if defined S_ISLNK && defined S_IFREG
70253955d011SMarcel Moolenaarextern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
70263955d011SMarcel Moolenaar#endif
70273955d011SMarcel Moolenaar
70283955d011SMarcel Moolenaar#if defined S_ISSOCK && defined S_IFREG
70293955d011SMarcel Moolenaarextern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
70303955d011SMarcel Moolenaar#endif
70313955d011SMarcel Moolenaar
70323955d011SMarcel Moolenaar_ACEOF
70334fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
70344fde40d9SSimon J. Gerratythen :
70353955d011SMarcel Moolenaar  ac_cv_header_stat_broken=no
7036*22619282SSimon J. Gerratyelse case e in #(
7037*22619282SSimon J. Gerraty  e) ac_cv_header_stat_broken=yes ;;
7038*22619282SSimon J. Gerratyesac
70393955d011SMarcel Moolenaarfi
7040*22619282SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7041*22619282SSimon J. Gerratyesac
70423955d011SMarcel Moolenaarfi
70434fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
70444fde40d9SSimon J. Gerratyprintf "%s\n" "$ac_cv_header_stat_broken" >&6; }
70453955d011SMarcel Moolenaarif test $ac_cv_header_stat_broken = yes; then
70463955d011SMarcel Moolenaar
70474fde40d9SSimon J. Gerratyprintf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
70483955d011SMarcel Moolenaar
70493955d011SMarcel Moolenaarfi
70503955d011SMarcel Moolenaar
70515bcb7424SSimon J. Gerratyecho "checking if compiler supports __func__" >&6
70525bcb7424SSimon J. Gerratyac_ext=c
70535bcb7424SSimon J. Gerratyac_cpp='$CPP $CPPFLAGS'
70545bcb7424SSimon J. Gerratyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
70555bcb7424SSimon J. Gerratyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
70565bcb7424SSimon J. Gerratyac_compiler_gnu=$ac_cv_c_compiler_gnu
70575bcb7424SSimon J. Gerraty
70585bcb7424SSimon J. Gerratycat confdefs.h - <<_ACEOF >conftest.$ac_ext
70595bcb7424SSimon J. Gerraty/* end confdefs.h.  */
70605bcb7424SSimon J. Gerraty
70615bcb7424SSimon J. Gerratyint
70624fde40d9SSimon J. Gerratymain (void)
70635bcb7424SSimon J. Gerraty{
70645bcb7424SSimon J. Gerratyconst char *func = __func__;
70655bcb7424SSimon J. Gerraty  ;
70665bcb7424SSimon J. Gerraty  return 0;
70675bcb7424SSimon J. Gerraty}
70685bcb7424SSimon J. Gerraty_ACEOF
70694fde40d9SSimon J. Gerratyif ac_fn_c_try_compile "$LINENO"
70704fde40d9SSimon J. Gerratythen :
70715bcb7424SSimon J. Gerraty
7072*22619282SSimon J. Gerratyelse case e in #(
7073*22619282SSimon J. Gerraty  e)
70744fde40d9SSimon J. Gerratyprintf "%s\n" "#define __func__ __FUNCTION__" >>confdefs.h
7075*22619282SSimon J. Gerraty ;;
7076*22619282SSimon J. Gerratyesac
70775bcb7424SSimon J. Gerratyfi
70784fde40d9SSimon J. Gerratyrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
707912904384SSimon J. Gerratyif test -x /usr/gnu/bin/diff; then
708012904384SSimon J. Gerraty	diff=/usr/gnu/bin/diff
708112904384SSimon J. Gerraty	diff_u=-u
708212904384SSimon J. Gerratyelse
708312904384SSimon J. Gerraty	diff=${diff:-diff}
708412904384SSimon J. Gerraty	echo $ECHO_N "checking if $diff -u works... $ECHO_C" >&6
708512904384SSimon J. Gerraty	if $diff -u /dev/null /dev/null > /dev/null 2>&1; then
70863955d011SMarcel Moolenaar		diff_u=-u
70873955d011SMarcel Moolenaar		echo yes >&6
70883955d011SMarcel Moolenaar	else
70893955d011SMarcel Moolenaar		diff_u=
70903955d011SMarcel Moolenaar		echo no >&6
70913955d011SMarcel Moolenaar	fi
709212904384SSimon J. Gerratyfi
70933955d011SMarcel Moolenaarecho "checking for MACHINE & MACHINE_ARCH..." >&6
70943955d011SMarcel Moolenaarcat > conftest.$ac_ext <<EOF
70953955d011SMarcel Moolenaar#include "confdefs.h"
70963955d011SMarcel Moolenaar#include <sys/param.h>
70973955d011SMarcel Moolenaar#ifdef MACHINE
70983955d011SMarcel Moolenaarmachine=MACHINE
70993955d011SMarcel Moolenaar#endif
71003955d011SMarcel Moolenaar#ifdef MACHINE_ARCH
71013955d011SMarcel Moolenaarmachine_arch=MACHINE_ARCH
71023955d011SMarcel Moolenaar#endif
71033955d011SMarcel MoolenaarEOF
71043955d011SMarcel Moolenaar
71053955d011SMarcel Moolenaardefault_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71064fde40d9SSimon J. Gerraty	grep machine= | tr -d ' "'`
71073955d011SMarcel Moolenaarrm -rf conftest*
71083955d011SMarcel Moolenaarif test "$default_machine"; then
71093955d011SMarcel Moolenaar	eval "$default_machine"
71103955d011SMarcel Moolenaarfi
71113955d011SMarcel Moolenaarmachine=${machine:-`$srcdir/machine.sh`}
71123955d011SMarcel Moolenaarmachine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
71133955d011SMarcel Moolenaarecho "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
71143955d011SMarcel Moolenaar
71153955d011SMarcel Moolenaar# Check whether --with-machine was given.
71164fde40d9SSimon J. Gerratyif test ${with_machine+y}
71174fde40d9SSimon J. Gerratythen :
71183955d011SMarcel Moolenaar  withval=$with_machine; case "${withval}" in
711949caa483SSimon J. Gerratyyes)   as_fn_error $? "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
71203955d011SMarcel Moolenaarno)    ;;
71213955d011SMarcel Moolenaargeneric) machine=`$srcdir/machine.sh`;;
71223955d011SMarcel Moolenaar*)     machine=$with_machine;;
71233955d011SMarcel Moolenaaresac
71243955d011SMarcel Moolenaarfi
71253955d011SMarcel Moolenaar
71263955d011SMarcel Moolenaarforce_machine=
71273955d011SMarcel Moolenaar
71283955d011SMarcel Moolenaar# Check whether --with-force_machine was given.
71294fde40d9SSimon J. Gerratyif test ${with_force_machine+y}
71304fde40d9SSimon J. Gerratythen :
71313955d011SMarcel Moolenaar  withval=$with_force_machine; case "${withval}" in
71323955d011SMarcel Moolenaaryes)   force_machine=FORCE_;;
71333955d011SMarcel Moolenaarno)    ;;
71343955d011SMarcel Moolenaar*)     force_machine=FORCE_; machine=$with_force_machine;;
71353955d011SMarcel Moolenaaresac
71363955d011SMarcel Moolenaarfi
71373955d011SMarcel Moolenaar
71383955d011SMarcel Moolenaarforce_machine_arch=
71393955d011SMarcel Moolenaar
71403955d011SMarcel Moolenaar# Check whether --with-force_machine_arch was given.
71414fde40d9SSimon J. Gerratyif test ${with_force_machine_arch+y}
71424fde40d9SSimon J. Gerratythen :
71433955d011SMarcel Moolenaar  withval=$with_force_machine_arch; case "${withval}" in
71443955d011SMarcel Moolenaaryes)   force_machine_arch=FORCE_;;
71453955d011SMarcel Moolenaarno)    ;;
7146e2eeea75SSimon J. Gerraty*)     force_machine_arch=FORCE_; machine_arch=$with_force_machine_arch;;
71473955d011SMarcel Moolenaaresac
71483955d011SMarcel Moolenaarfi
71493955d011SMarcel Moolenaar
71503955d011SMarcel Moolenaar
71513955d011SMarcel Moolenaar# Check whether --with-machine_arch was given.
71524fde40d9SSimon J. Gerratyif test ${with_machine_arch+y}
71534fde40d9SSimon J. Gerratythen :
71543955d011SMarcel Moolenaar  withval=$with_machine_arch; case "${withval}" in
715549caa483SSimon J. Gerratyyes)   as_fn_error $? "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
71563955d011SMarcel Moolenaarno)    ;;
71573955d011SMarcel Moolenaar*)     machine_arch=$with_machine_arch;;
71583955d011SMarcel Moolenaaresac
71593955d011SMarcel Moolenaarfi
71603955d011SMarcel Moolenaar
7161e2eeea75SSimon J. Gerratyecho "Using: ${force_machine}MACHINE=$machine, ${force_machine_arch}MACHINE_ARCH=$machine_arch" 1>&6
71623955d011SMarcel Moolenaardefault_sys_path=\${prefix}/share/mk
71633955d011SMarcel Moolenaar
71643955d011SMarcel Moolenaar# Check whether --with-default-sys-path was given.
71654fde40d9SSimon J. Gerratyif test ${with_default_sys_path+y}
71664fde40d9SSimon J. Gerratythen :
71673955d011SMarcel Moolenaar  withval=$with_default_sys_path; case "${withval}" in
716849caa483SSimon J. Gerratyyes)	as_fn_error $? "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
71693955d011SMarcel Moolenaarno)	;;
71703955d011SMarcel Moolenaar*)	default_sys_path="$with_default_sys_path"
71713955d011SMarcel Moolenaar	;;
71723955d011SMarcel Moolenaaresac
71733955d011SMarcel Moolenaarfi
71743955d011SMarcel Moolenaar
71753955d011SMarcel Moolenaar
71763955d011SMarcel Moolenaar# Check whether --with-path-objdirprefix was given.
71774fde40d9SSimon J. Gerratyif test ${with_path_objdirprefix+y}
71784fde40d9SSimon J. Gerratythen :
71793955d011SMarcel Moolenaar  withval=$with_path_objdirprefix; case "${withval}" in
718049caa483SSimon J. Gerratyyes)   as_fn_error $? "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
71813955d011SMarcel Moolenaarno)    CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
71823955d011SMarcel Moolenaar*)     CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
71833955d011SMarcel Moolenaaresac
71843955d011SMarcel Moolenaarfi
71853955d011SMarcel Moolenaar
71863955d011SMarcel Moolenaar# Check whether --enable-pwd-override was given.
71874fde40d9SSimon J. Gerratyif test ${enable_pwd_override+y}
71884fde40d9SSimon J. Gerratythen :
71893955d011SMarcel Moolenaar  enableval=$enable_pwd_override; case "${enableval}" in
71903955d011SMarcel Moolenaaryes)   ;;
71913955d011SMarcel Moolenaarno)    CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
719249caa483SSimon J. Gerraty*)     as_fn_error $? "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
71933955d011SMarcel Moolenaaresac
71943955d011SMarcel Moolenaarfi
71953955d011SMarcel Moolenaar
71963955d011SMarcel Moolenaar# Check whether --enable-check-make-chdir was given.
71974fde40d9SSimon J. Gerratyif test ${enable_check_make_chdir+y}
71984fde40d9SSimon J. Gerratythen :
71993955d011SMarcel Moolenaar  enableval=$enable_check_make_chdir; case "${enableval}" in
72003955d011SMarcel Moolenaaryes)   ;;
72013955d011SMarcel Moolenaarno)    CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
720249caa483SSimon J. Gerraty*)     as_fn_error $? "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
72033955d011SMarcel Moolenaaresac
72043955d011SMarcel Moolenaarfi
72053955d011SMarcel Moolenaar
72063955d011SMarcel Moolenaar
72073955d011SMarcel Moolenaar# Check whether --with-mksrc was given.
72084fde40d9SSimon J. Gerratyif test ${with_mksrc+y}
72094fde40d9SSimon J. Gerratythen :
72103955d011SMarcel Moolenaar  withval=$with_mksrc; case "${withval}" in
72113955d011SMarcel Moolenaar""|yes|no) ;;
72123955d011SMarcel Moolenaar*) test -s $withval/install-mk && mksrc=$withval ||
721349caa483SSimon J. Gerratyas_fn_error $? "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
72143955d011SMarcel Moolenaar;;
72153955d011SMarcel Moolenaaresac
72163955d011SMarcel Moolenaar
72173955d011SMarcel Moolenaarfi
72183955d011SMarcel Moolenaar
72193955d011SMarcel Moolenaarsrcdir=`cd $srcdir && pwd`
72203955d011SMarcel Moolenaarfor mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
72213955d011SMarcel Moolenaardo
72223955d011SMarcel Moolenaar	test -s $mksrc/install-mk || continue
72233955d011SMarcel Moolenaar	mksrc=`cd $mksrc && pwd`
72243955d011SMarcel Moolenaar	break
72253955d011SMarcel Moolenaardone
72263955d011SMarcel Moolenaarmksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
72273955d011SMarcel Moolenaarecho "Using: MKSRC=$mksrc" 1>&6
722812904384SSimon J. Gerratyfor sh in /usr/xpg4/bin/sh $ALT_DEF_SHELLS
722912904384SSimon J. Gerratydo
723012904384SSimon J. Gerraty	test -x $sh || continue
723112904384SSimon J. Gerraty	use_defshell $sh
723212904384SSimon J. Gerraty	break
723312904384SSimon J. Gerratydone
723412904384SSimon J. Gerratycase "$defshell_path$DEFSHELL_INDEX" in
723512904384SSimon J. Gerraty"")	;;
723612904384SSimon J. Gerraty*DEFSHELL_INDEX_CUSTOM)
72373955d011SMarcel Moolenaar	echo "Using: SHELL=$defshell_path"  >&6
72383955d011SMarcel Moolenaar
72394fde40d9SSimon J. Gerratyprintf "%s\n" "#define DEFSHELL_CUSTOM \"$defshell_path\"" >>confdefs.h
72403955d011SMarcel Moolenaar
724112904384SSimon J. Gerraty	;;
724212904384SSimon J. Gerraty/*INDEX*)
724312904384SSimon J. Gerraty	echo "Using: SHELL=$DEFSHELL_INDEX ($defshell_path)" | sed 's,DEFSHELL_INDEX_,,' >&6
72443955d011SMarcel Moolenaar
72454fde40d9SSimon J. Gerratyprintf "%s\n" "#define DEFSHELL_INDEX $DEFSHELL_INDEX" >>confdefs.h
72463955d011SMarcel Moolenaar
724712904384SSimon J. Gerraty
72484fde40d9SSimon J. Gerratyprintf "%s\n" "#define DEFSHELL_PATH \"$defshell_path\"" >>confdefs.h
724912904384SSimon J. Gerraty
725012904384SSimon J. Gerraty	;;
725112904384SSimon J. Gerraty*)
725212904384SSimon J. Gerraty	echo "Using: SHELL=$DEFSHELL_INDEX" | sed 's,DEFSHELL_INDEX_,,' >&6
725312904384SSimon J. Gerraty
72544fde40d9SSimon J. Gerratyprintf "%s\n" "#define DEFSHELL_INDEX $DEFSHELL_INDEX" >>confdefs.h
725512904384SSimon J. Gerraty
725612904384SSimon J. Gerraty	;;
725712904384SSimon J. Gerratyesac
72584fde40d9SSimon J. Gerratycase "`echo bmake | egrep 'a|b' 2>&1`" in
72594fde40d9SSimon J. Gerratybmake) egrep=egrep;;
72604fde40d9SSimon J. Gerraty*) egrep='grep -E';;
72614fde40d9SSimon J. Gerratyesac
72624fde40d9SSimon J. Gerraty
726312904384SSimon J. Gerraty
726412904384SSimon J. Gerraty
72653955d011SMarcel Moolenaar
72663955d011SMarcel Moolenaar
72673955d011SMarcel Moolenaar
72683955d011SMarcel Moolenaar
72693955d011SMarcel Moolenaar
72703955d011SMarcel Moolenaar
72713955d011SMarcel Moolenaar
72723955d011SMarcel Moolenaar
72733955d011SMarcel Moolenaar
72743955d011SMarcel Moolenaar
7275e22fef7dSSimon J. Gerraty
727649caa483SSimon J. Gerraty
7277e2eeea75SSimon J. Gerraty
7278548bfc56SSimon J. Gerraty
7279548bfc56SSimon J. Gerraty
728049caa483SSimon J. Gerratybm_outfiles="Makefile.config unit-tests/Makefile.config make-bootstrap.sh"
728149caa483SSimon J. Gerratyif test $use_makefile = yes; then
728249caa483SSimon J. Gerraty   bm_outfiles="makefile $bm_outfiles"
728349caa483SSimon J. Gerratyfi
728412904384SSimon J. Gerraty
728512904384SSimon J. Gerratyhere=`'pwd'`
728612904384SSimon J. Gerraty: srcdir=$srcdir
728712904384SSimon J. Gerraty: here=  $here
728812904384SSimon J. Gerratycase "$here" in
728912904384SSimon J. Gerraty$srcdir/obj*) # make sure we put unit-tests/Makefile.config in the right place
729012904384SSimon J. Gerraty	obj=`basename $here`
729112904384SSimon J. Gerraty	mkdir -p $srcdir/unit-tests/$obj
729212904384SSimon J. Gerraty	test -d unit-tests || ln -s ../unit-tests/$obj unit-tests
729312904384SSimon J. Gerraty	;;
729412904384SSimon J. Gerratyesac
729512904384SSimon J. Gerraty
729649caa483SSimon J. Gerratyac_config_files="$ac_config_files $bm_outfiles"
72973955d011SMarcel Moolenaar
72983955d011SMarcel Moolenaarcat >confcache <<\_ACEOF
72993955d011SMarcel Moolenaar# This file is a shell script that caches the results of configure
73003955d011SMarcel Moolenaar# tests run on this system so they can be shared between configure
73013955d011SMarcel Moolenaar# scripts and configure runs, see configure's option --config-cache.
73023955d011SMarcel Moolenaar# It is not useful on other systems.  If it contains results you don't
73033955d011SMarcel Moolenaar# want to keep, you may remove or edit it.
73043955d011SMarcel Moolenaar#
73053955d011SMarcel Moolenaar# config.status only pays attention to the cache file if you give it
73063955d011SMarcel Moolenaar# the --recheck option to rerun configure.
73073955d011SMarcel Moolenaar#
7308*22619282SSimon J. Gerraty# 'ac_cv_env_foo' variables (set or unset) will be overridden when
7309*22619282SSimon J. Gerraty# loading this file, other *unset* 'ac_cv_foo' will be assigned the
73103955d011SMarcel Moolenaar# following values.
73113955d011SMarcel Moolenaar
73123955d011SMarcel Moolenaar_ACEOF
73133955d011SMarcel Moolenaar
73143955d011SMarcel Moolenaar# The following way of writing the cache mishandles newlines in values,
73153955d011SMarcel Moolenaar# but we know of no workaround that is simple, portable, and efficient.
73163955d011SMarcel Moolenaar# So, we kill variables containing newlines.
73173955d011SMarcel Moolenaar# Ultrix sh set writes to stderr and can't be redirected directly,
73183955d011SMarcel Moolenaar# and sets the high bit in the cache file unless we assign to the vars.
73193955d011SMarcel Moolenaar(
73203955d011SMarcel Moolenaar  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
73213955d011SMarcel Moolenaar    eval ac_val=\$$ac_var
73223955d011SMarcel Moolenaar    case $ac_val in #(
73233955d011SMarcel Moolenaar    *${as_nl}*)
73243955d011SMarcel Moolenaar      case $ac_var in #(
73254fde40d9SSimon J. Gerraty      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
73264fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
73273955d011SMarcel Moolenaar      esac
73283955d011SMarcel Moolenaar      case $ac_var in #(
73293955d011SMarcel Moolenaar      _ | IFS | as_nl) ;; #(
73303955d011SMarcel Moolenaar      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
73313955d011SMarcel Moolenaar      *) { eval $ac_var=; unset $ac_var;} ;;
73323955d011SMarcel Moolenaar      esac ;;
73333955d011SMarcel Moolenaar    esac
73343955d011SMarcel Moolenaar  done
73353955d011SMarcel Moolenaar
73363955d011SMarcel Moolenaar  (set) 2>&1 |
73373955d011SMarcel Moolenaar    case $as_nl`(ac_space=' '; set) 2>&1` in #(
73383955d011SMarcel Moolenaar    *${as_nl}ac_space=\ *)
7339*22619282SSimon J. Gerraty      # 'set' does not quote correctly, so add quotes: double-quote
73403955d011SMarcel Moolenaar      # substitution turns \\\\ into \\, and sed turns \\ into \.
73413955d011SMarcel Moolenaar      sed -n \
73423955d011SMarcel Moolenaar	"s/'/'\\\\''/g;
73433955d011SMarcel Moolenaar	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73443955d011SMarcel Moolenaar      ;; #(
73453955d011SMarcel Moolenaar    *)
7346*22619282SSimon J. Gerraty      # 'set' quotes correctly as required by POSIX, so do not add quotes.
73473955d011SMarcel Moolenaar      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
73483955d011SMarcel Moolenaar      ;;
73493955d011SMarcel Moolenaar    esac |
73503955d011SMarcel Moolenaar    sort
73513955d011SMarcel Moolenaar) |
73523955d011SMarcel Moolenaar  sed '
73533955d011SMarcel Moolenaar     /^ac_cv_env_/b end
73543955d011SMarcel Moolenaar     t clear
73553955d011SMarcel Moolenaar     :clear
73564fde40d9SSimon J. Gerraty     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
73573955d011SMarcel Moolenaar     t end
73583955d011SMarcel Moolenaar     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73593955d011SMarcel Moolenaar     :end' >>confcache
73603955d011SMarcel Moolenaarif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
73613955d011SMarcel Moolenaar  if test -w "$cache_file"; then
736249caa483SSimon J. Gerraty    if test "x$cache_file" != "x/dev/null"; then
73634fde40d9SSimon J. Gerraty      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
73644fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
736549caa483SSimon J. Gerraty      if test ! -f "$cache_file" || test -h "$cache_file"; then
736649caa483SSimon J. Gerraty	cat confcache >"$cache_file"
736749caa483SSimon J. Gerraty      else
736849caa483SSimon J. Gerraty        case $cache_file in #(
736949caa483SSimon J. Gerraty        */* | ?:*)
737049caa483SSimon J. Gerraty	  mv -f confcache "$cache_file"$$ &&
737149caa483SSimon J. Gerraty	  mv -f "$cache_file"$$ "$cache_file" ;; #(
737249caa483SSimon J. Gerraty        *)
737349caa483SSimon J. Gerraty	  mv -f confcache "$cache_file" ;;
737449caa483SSimon J. Gerraty	esac
737549caa483SSimon J. Gerraty      fi
737649caa483SSimon J. Gerraty    fi
73773955d011SMarcel Moolenaar  else
73784fde40d9SSimon J. Gerraty    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
73794fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
73803955d011SMarcel Moolenaar  fi
73813955d011SMarcel Moolenaarfi
73823955d011SMarcel Moolenaarrm -f confcache
73833955d011SMarcel Moolenaar
73843955d011SMarcel Moolenaartest "x$prefix" = xNONE && prefix=$ac_default_prefix
73853955d011SMarcel Moolenaar# Let make expand exec_prefix.
73863955d011SMarcel Moolenaartest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
73873955d011SMarcel Moolenaar
73883955d011SMarcel MoolenaarDEFS=-DHAVE_CONFIG_H
73893955d011SMarcel Moolenaar
73903955d011SMarcel Moolenaarac_libobjs=
73913955d011SMarcel Moolenaarac_ltlibobjs=
739249caa483SSimon J. GerratyU=
73933955d011SMarcel Moolenaarfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
73943955d011SMarcel Moolenaar  # 1. Remove the extension, and $U if already installed.
73953955d011SMarcel Moolenaar  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
73964fde40d9SSimon J. Gerraty  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
73973955d011SMarcel Moolenaar  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
73983955d011SMarcel Moolenaar  #    will be set to the directory where LIBOBJS objects are built.
73993955d011SMarcel Moolenaar  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
74003955d011SMarcel Moolenaar  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
74013955d011SMarcel Moolenaardone
74023955d011SMarcel MoolenaarLIBOBJS=$ac_libobjs
74033955d011SMarcel Moolenaar
74043955d011SMarcel MoolenaarLTLIBOBJS=$ac_ltlibobjs
74053955d011SMarcel Moolenaar
74063955d011SMarcel Moolenaar
74073955d011SMarcel Moolenaar
74083955d011SMarcel Moolenaar
740949caa483SSimon J. Gerraty: "${CONFIG_STATUS=./config.status}"
74103955d011SMarcel Moolenaarac_write_fail=0
74113955d011SMarcel Moolenaarac_clean_files_save=$ac_clean_files
74123955d011SMarcel Moolenaarac_clean_files="$ac_clean_files $CONFIG_STATUS"
74134fde40d9SSimon J. Gerraty{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
74144fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
74153955d011SMarcel Moolenaaras_write_fail=0
74163955d011SMarcel Moolenaarcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
74173955d011SMarcel Moolenaar#! $SHELL
74183955d011SMarcel Moolenaar# Generated by $as_me.
74193955d011SMarcel Moolenaar# Run this file to recreate the current configuration.
74203955d011SMarcel Moolenaar# Compiler output produced by configure, useful for debugging
74213955d011SMarcel Moolenaar# configure, is in config.log if it exists.
74223955d011SMarcel Moolenaar
74233955d011SMarcel Moolenaardebug=false
74243955d011SMarcel Moolenaarac_cs_recheck=false
74253955d011SMarcel Moolenaarac_cs_silent=false
74263955d011SMarcel Moolenaar
74273955d011SMarcel MoolenaarSHELL=\${CONFIG_SHELL-$SHELL}
74283955d011SMarcel Moolenaarexport SHELL
74293955d011SMarcel Moolenaar_ASEOF
74303955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
74313955d011SMarcel Moolenaar## -------------------- ##
74323955d011SMarcel Moolenaar## M4sh Initialization. ##
74333955d011SMarcel Moolenaar## -------------------- ##
74343955d011SMarcel Moolenaar
74353955d011SMarcel Moolenaar# Be more Bourne compatible
74363955d011SMarcel MoolenaarDUALCASE=1; export DUALCASE # for MKS sh
74374fde40d9SSimon J. Gerratyif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
74384fde40d9SSimon J. Gerratythen :
74393955d011SMarcel Moolenaar  emulate sh
74403955d011SMarcel Moolenaar  NULLCMD=:
74413955d011SMarcel Moolenaar  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
74423955d011SMarcel Moolenaar  # is contrary to our usage.  Disable this feature.
74433955d011SMarcel Moolenaar  alias -g '${1+"$@"}'='"$@"'
74443955d011SMarcel Moolenaar  setopt NO_GLOB_SUBST
7445*22619282SSimon J. Gerratyelse case e in #(
7446*22619282SSimon J. Gerraty  e) case `(set -o) 2>/dev/null` in #(
74473955d011SMarcel Moolenaar  *posix*) :
74483955d011SMarcel Moolenaar    set -o posix ;; #(
74493955d011SMarcel Moolenaar  *) :
74503955d011SMarcel Moolenaar     ;;
7451*22619282SSimon J. Gerratyesac ;;
74523955d011SMarcel Moolenaaresac
74533955d011SMarcel Moolenaarfi
74543955d011SMarcel Moolenaar
74553955d011SMarcel Moolenaar
74564fde40d9SSimon J. Gerraty
74574fde40d9SSimon J. Gerraty# Reset variables that may have inherited troublesome values from
74584fde40d9SSimon J. Gerraty# the environment.
74594fde40d9SSimon J. Gerraty
74604fde40d9SSimon J. Gerraty# IFS needs to be set, to space, tab, and newline, in precisely that order.
74614fde40d9SSimon J. Gerraty# (If _AS_PATH_WALK were called with IFS unset, it would have the
74624fde40d9SSimon J. Gerraty# side effect of setting IFS to empty, thus disabling word splitting.)
74634fde40d9SSimon J. Gerraty# Quoting is to prevent editors from complaining about space-tab.
74643955d011SMarcel Moolenaaras_nl='
74653955d011SMarcel Moolenaar'
74663955d011SMarcel Moolenaarexport as_nl
74674fde40d9SSimon J. GerratyIFS=" ""	$as_nl"
74684fde40d9SSimon J. Gerraty
74694fde40d9SSimon J. GerratyPS1='$ '
74704fde40d9SSimon J. GerratyPS2='> '
74714fde40d9SSimon J. GerratyPS4='+ '
74724fde40d9SSimon J. Gerraty
74734fde40d9SSimon J. Gerraty# Ensure predictable behavior from utilities with locale-dependent output.
74744fde40d9SSimon J. GerratyLC_ALL=C
74754fde40d9SSimon J. Gerratyexport LC_ALL
74764fde40d9SSimon J. GerratyLANGUAGE=C
74774fde40d9SSimon J. Gerratyexport LANGUAGE
74784fde40d9SSimon J. Gerraty
74794fde40d9SSimon J. Gerraty# We cannot yet rely on "unset" to work, but we need these variables
74804fde40d9SSimon J. Gerraty# to be unset--not just set to an empty or harmless value--now, to
74814fde40d9SSimon J. Gerraty# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
74824fde40d9SSimon J. Gerraty# also avoids known problems related to "unset" and subshell syntax
74834fde40d9SSimon J. Gerraty# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
74844fde40d9SSimon J. Gerratyfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
74854fde40d9SSimon J. Gerratydo eval test \${$as_var+y} \
74864fde40d9SSimon J. Gerraty  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
74874fde40d9SSimon J. Gerratydone
74884fde40d9SSimon J. Gerraty
74894fde40d9SSimon J. Gerraty# Ensure that fds 0, 1, and 2 are open.
74904fde40d9SSimon J. Gerratyif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74914fde40d9SSimon J. Gerratyif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74924fde40d9SSimon J. Gerratyif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74933955d011SMarcel Moolenaar
74943955d011SMarcel Moolenaar# The user is always right.
74954fde40d9SSimon J. Gerratyif ${PATH_SEPARATOR+false} :; then
74963955d011SMarcel Moolenaar  PATH_SEPARATOR=:
74973955d011SMarcel Moolenaar  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
74983955d011SMarcel Moolenaar    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
74993955d011SMarcel Moolenaar      PATH_SEPARATOR=';'
75003955d011SMarcel Moolenaar  }
75013955d011SMarcel Moolenaarfi
75023955d011SMarcel Moolenaar
75033955d011SMarcel Moolenaar
75043955d011SMarcel Moolenaar# Find who we are.  Look in the path if we contain no directory separator.
750549caa483SSimon J. Gerratyas_myself=
75063955d011SMarcel Moolenaarcase $0 in #((
75073955d011SMarcel Moolenaar  *[\\/]* ) as_myself=$0 ;;
75083955d011SMarcel Moolenaar  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75093955d011SMarcel Moolenaarfor as_dir in $PATH
75103955d011SMarcel Moolenaardo
75113955d011SMarcel Moolenaar  IFS=$as_save_IFS
75124fde40d9SSimon J. Gerraty  case $as_dir in #(((
75134fde40d9SSimon J. Gerraty    '') as_dir=./ ;;
75144fde40d9SSimon J. Gerraty    */) ;;
75154fde40d9SSimon J. Gerraty    *) as_dir=$as_dir/ ;;
75164fde40d9SSimon J. Gerraty  esac
75174fde40d9SSimon J. Gerraty    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
75183955d011SMarcel Moolenaar  done
75193955d011SMarcel MoolenaarIFS=$as_save_IFS
75203955d011SMarcel Moolenaar
75213955d011SMarcel Moolenaar     ;;
75223955d011SMarcel Moolenaaresac
7523*22619282SSimon J. Gerraty# We did not find ourselves, most probably we were run as 'sh COMMAND'
75243955d011SMarcel Moolenaar# in which case we are not to be found in the path.
75253955d011SMarcel Moolenaarif test "x$as_myself" = x; then
75263955d011SMarcel Moolenaar  as_myself=$0
75273955d011SMarcel Moolenaarfi
75283955d011SMarcel Moolenaarif test ! -f "$as_myself"; then
75294fde40d9SSimon J. Gerraty  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
75303955d011SMarcel Moolenaar  exit 1
75313955d011SMarcel Moolenaarfi
75323955d011SMarcel Moolenaar
75333955d011SMarcel Moolenaar
75343955d011SMarcel Moolenaar
753549caa483SSimon J. Gerraty# as_fn_error STATUS ERROR [LINENO LOG_FD]
753649caa483SSimon J. Gerraty# ----------------------------------------
75373955d011SMarcel Moolenaar# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
75383955d011SMarcel Moolenaar# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
753949caa483SSimon J. Gerraty# script with STATUS, using 1 if that was 0.
75403955d011SMarcel Moolenaaras_fn_error ()
75413955d011SMarcel Moolenaar{
754249caa483SSimon J. Gerraty  as_status=$1; test $as_status -eq 0 && as_status=1
754349caa483SSimon J. Gerraty  if test "$4"; then
754449caa483SSimon J. Gerraty    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
75454fde40d9SSimon J. Gerraty    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
75463955d011SMarcel Moolenaar  fi
75474fde40d9SSimon J. Gerraty  printf "%s\n" "$as_me: error: $2" >&2
75483955d011SMarcel Moolenaar  as_fn_exit $as_status
75493955d011SMarcel Moolenaar} # as_fn_error
75503955d011SMarcel Moolenaar
75513955d011SMarcel Moolenaar
75523955d011SMarcel Moolenaar# as_fn_set_status STATUS
75533955d011SMarcel Moolenaar# -----------------------
75543955d011SMarcel Moolenaar# Set $? to STATUS, without forking.
75553955d011SMarcel Moolenaaras_fn_set_status ()
75563955d011SMarcel Moolenaar{
75573955d011SMarcel Moolenaar  return $1
75583955d011SMarcel Moolenaar} # as_fn_set_status
75593955d011SMarcel Moolenaar
75603955d011SMarcel Moolenaar# as_fn_exit STATUS
75613955d011SMarcel Moolenaar# -----------------
75623955d011SMarcel Moolenaar# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
75633955d011SMarcel Moolenaaras_fn_exit ()
75643955d011SMarcel Moolenaar{
75653955d011SMarcel Moolenaar  set +e
75663955d011SMarcel Moolenaar  as_fn_set_status $1
75673955d011SMarcel Moolenaar  exit $1
75683955d011SMarcel Moolenaar} # as_fn_exit
75693955d011SMarcel Moolenaar
75703955d011SMarcel Moolenaar# as_fn_unset VAR
75713955d011SMarcel Moolenaar# ---------------
75723955d011SMarcel Moolenaar# Portably unset VAR.
75733955d011SMarcel Moolenaaras_fn_unset ()
75743955d011SMarcel Moolenaar{
75753955d011SMarcel Moolenaar  { eval $1=; unset $1;}
75763955d011SMarcel Moolenaar}
75773955d011SMarcel Moolenaaras_unset=as_fn_unset
75784fde40d9SSimon J. Gerraty
75793955d011SMarcel Moolenaar# as_fn_append VAR VALUE
75803955d011SMarcel Moolenaar# ----------------------
75813955d011SMarcel Moolenaar# Append the text in VALUE to the end of the definition contained in VAR. Take
75823955d011SMarcel Moolenaar# advantage of any shell optimizations that allow amortized linear growth over
75833955d011SMarcel Moolenaar# repeated appends, instead of the typical quadratic growth present in naive
75843955d011SMarcel Moolenaar# implementations.
75854fde40d9SSimon J. Gerratyif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
75864fde40d9SSimon J. Gerratythen :
75873955d011SMarcel Moolenaar  eval 'as_fn_append ()
75883955d011SMarcel Moolenaar  {
75893955d011SMarcel Moolenaar    eval $1+=\$2
75903955d011SMarcel Moolenaar  }'
7591*22619282SSimon J. Gerratyelse case e in #(
7592*22619282SSimon J. Gerraty  e) as_fn_append ()
75933955d011SMarcel Moolenaar  {
75943955d011SMarcel Moolenaar    eval $1=\$$1\$2
7595*22619282SSimon J. Gerraty  } ;;
7596*22619282SSimon J. Gerratyesac
75973955d011SMarcel Moolenaarfi # as_fn_append
75983955d011SMarcel Moolenaar
75993955d011SMarcel Moolenaar# as_fn_arith ARG...
76003955d011SMarcel Moolenaar# ------------------
76013955d011SMarcel Moolenaar# Perform arithmetic evaluation on the ARGs, and store the result in the
76023955d011SMarcel Moolenaar# global $as_val. Take advantage of shells that can avoid forks. The arguments
76033955d011SMarcel Moolenaar# must be portable across $(()) and expr.
76044fde40d9SSimon J. Gerratyif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
76054fde40d9SSimon J. Gerratythen :
76063955d011SMarcel Moolenaar  eval 'as_fn_arith ()
76073955d011SMarcel Moolenaar  {
76083955d011SMarcel Moolenaar    as_val=$(( $* ))
76093955d011SMarcel Moolenaar  }'
7610*22619282SSimon J. Gerratyelse case e in #(
7611*22619282SSimon J. Gerraty  e) as_fn_arith ()
76123955d011SMarcel Moolenaar  {
76133955d011SMarcel Moolenaar    as_val=`expr "$@" || test $? -eq 1`
7614*22619282SSimon J. Gerraty  } ;;
7615*22619282SSimon J. Gerratyesac
76163955d011SMarcel Moolenaarfi # as_fn_arith
76173955d011SMarcel Moolenaar
76183955d011SMarcel Moolenaar
76193955d011SMarcel Moolenaarif expr a : '\(a\)' >/dev/null 2>&1 &&
76203955d011SMarcel Moolenaar   test "X`expr 00001 : '.*\(...\)'`" = X001; then
76213955d011SMarcel Moolenaar  as_expr=expr
76223955d011SMarcel Moolenaarelse
76233955d011SMarcel Moolenaar  as_expr=false
76243955d011SMarcel Moolenaarfi
76253955d011SMarcel Moolenaar
76263955d011SMarcel Moolenaarif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
76273955d011SMarcel Moolenaar  as_basename=basename
76283955d011SMarcel Moolenaarelse
76293955d011SMarcel Moolenaar  as_basename=false
76303955d011SMarcel Moolenaarfi
76313955d011SMarcel Moolenaar
76323955d011SMarcel Moolenaarif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
76333955d011SMarcel Moolenaar  as_dirname=dirname
76343955d011SMarcel Moolenaarelse
76353955d011SMarcel Moolenaar  as_dirname=false
76363955d011SMarcel Moolenaarfi
76373955d011SMarcel Moolenaar
76383955d011SMarcel Moolenaaras_me=`$as_basename -- "$0" ||
76393955d011SMarcel Moolenaar$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76403955d011SMarcel Moolenaar	 X"$0" : 'X\(//\)$' \| \
76413955d011SMarcel Moolenaar	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
76424fde40d9SSimon J. Gerratyprintf "%s\n" X/"$0" |
76433955d011SMarcel Moolenaar    sed '/^.*\/\([^/][^/]*\)\/*$/{
76443955d011SMarcel Moolenaar	    s//\1/
76453955d011SMarcel Moolenaar	    q
76463955d011SMarcel Moolenaar	  }
76473955d011SMarcel Moolenaar	  /^X\/\(\/\/\)$/{
76483955d011SMarcel Moolenaar	    s//\1/
76493955d011SMarcel Moolenaar	    q
76503955d011SMarcel Moolenaar	  }
76513955d011SMarcel Moolenaar	  /^X\/\(\/\).*/{
76523955d011SMarcel Moolenaar	    s//\1/
76533955d011SMarcel Moolenaar	    q
76543955d011SMarcel Moolenaar	  }
76553955d011SMarcel Moolenaar	  s/.*/./; q'`
76563955d011SMarcel Moolenaar
76573955d011SMarcel Moolenaar# Avoid depending upon Character Ranges.
76583955d011SMarcel Moolenaaras_cr_letters='abcdefghijklmnopqrstuvwxyz'
76593955d011SMarcel Moolenaaras_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
76603955d011SMarcel Moolenaaras_cr_Letters=$as_cr_letters$as_cr_LETTERS
76613955d011SMarcel Moolenaaras_cr_digits='0123456789'
76623955d011SMarcel Moolenaaras_cr_alnum=$as_cr_Letters$as_cr_digits
76633955d011SMarcel Moolenaar
76644fde40d9SSimon J. Gerraty
76654fde40d9SSimon J. Gerraty# Determine whether it's possible to make 'echo' print without a newline.
76664fde40d9SSimon J. Gerraty# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
76674fde40d9SSimon J. Gerraty# for compatibility with existing Makefiles.
76683955d011SMarcel MoolenaarECHO_C= ECHO_N= ECHO_T=
76693955d011SMarcel Moolenaarcase `echo -n x` in #(((((
76703955d011SMarcel Moolenaar-n*)
76713955d011SMarcel Moolenaar  case `echo 'xy\c'` in
76723955d011SMarcel Moolenaar  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
76733955d011SMarcel Moolenaar  xy)  ECHO_C='\c';;
76743955d011SMarcel Moolenaar  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
76753955d011SMarcel Moolenaar       ECHO_T='	';;
76763955d011SMarcel Moolenaar  esac;;
76773955d011SMarcel Moolenaar*)
76783955d011SMarcel Moolenaar  ECHO_N='-n';;
76793955d011SMarcel Moolenaaresac
76803955d011SMarcel Moolenaar
76814fde40d9SSimon J. Gerraty# For backward compatibility with old third-party macros, we provide
76824fde40d9SSimon J. Gerraty# the shell variables $as_echo and $as_echo_n.  New code should use
76834fde40d9SSimon J. Gerraty# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
76844fde40d9SSimon J. Gerratyas_echo='printf %s\n'
76854fde40d9SSimon J. Gerratyas_echo_n='printf %s'
76864fde40d9SSimon J. Gerraty
76873955d011SMarcel Moolenaarrm -f conf$$ conf$$.exe conf$$.file
76883955d011SMarcel Moolenaarif test -d conf$$.dir; then
76893955d011SMarcel Moolenaar  rm -f conf$$.dir/conf$$.file
76903955d011SMarcel Moolenaarelse
76913955d011SMarcel Moolenaar  rm -f conf$$.dir
76923955d011SMarcel Moolenaar  mkdir conf$$.dir 2>/dev/null
76933955d011SMarcel Moolenaarfi
76943955d011SMarcel Moolenaarif (echo >conf$$.file) 2>/dev/null; then
76953955d011SMarcel Moolenaar  if ln -s conf$$.file conf$$ 2>/dev/null; then
76963955d011SMarcel Moolenaar    as_ln_s='ln -s'
76973955d011SMarcel Moolenaar    # ... but there are two gotchas:
7698*22619282SSimon J. Gerraty    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
7699*22619282SSimon J. Gerraty    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
7700*22619282SSimon J. Gerraty    # In both cases, we have to default to 'cp -pR'.
77013955d011SMarcel Moolenaar    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
770249caa483SSimon J. Gerraty      as_ln_s='cp -pR'
77033955d011SMarcel Moolenaar  elif ln conf$$.file conf$$ 2>/dev/null; then
77043955d011SMarcel Moolenaar    as_ln_s=ln
77053955d011SMarcel Moolenaar  else
770649caa483SSimon J. Gerraty    as_ln_s='cp -pR'
77073955d011SMarcel Moolenaar  fi
77083955d011SMarcel Moolenaarelse
770949caa483SSimon J. Gerraty  as_ln_s='cp -pR'
77103955d011SMarcel Moolenaarfi
77113955d011SMarcel Moolenaarrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
77123955d011SMarcel Moolenaarrmdir conf$$.dir 2>/dev/null
77133955d011SMarcel Moolenaar
77143955d011SMarcel Moolenaar
77153955d011SMarcel Moolenaar# as_fn_mkdir_p
77163955d011SMarcel Moolenaar# -------------
77173955d011SMarcel Moolenaar# Create "$as_dir" as a directory, including parents if necessary.
77183955d011SMarcel Moolenaaras_fn_mkdir_p ()
77193955d011SMarcel Moolenaar{
77203955d011SMarcel Moolenaar
77213955d011SMarcel Moolenaar  case $as_dir in #(
77223955d011SMarcel Moolenaar  -*) as_dir=./$as_dir;;
77233955d011SMarcel Moolenaar  esac
77243955d011SMarcel Moolenaar  test -d "$as_dir" || eval $as_mkdir_p || {
77253955d011SMarcel Moolenaar    as_dirs=
77263955d011SMarcel Moolenaar    while :; do
77273955d011SMarcel Moolenaar      case $as_dir in #(
77284fde40d9SSimon J. Gerraty      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
77293955d011SMarcel Moolenaar      *) as_qdir=$as_dir;;
77303955d011SMarcel Moolenaar      esac
77313955d011SMarcel Moolenaar      as_dirs="'$as_qdir' $as_dirs"
77323955d011SMarcel Moolenaar      as_dir=`$as_dirname -- "$as_dir" ||
77333955d011SMarcel Moolenaar$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
77343955d011SMarcel Moolenaar	 X"$as_dir" : 'X\(//\)[^/]' \| \
77353955d011SMarcel Moolenaar	 X"$as_dir" : 'X\(//\)$' \| \
77363955d011SMarcel Moolenaar	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
77374fde40d9SSimon J. Gerratyprintf "%s\n" X"$as_dir" |
77383955d011SMarcel Moolenaar    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
77393955d011SMarcel Moolenaar	    s//\1/
77403955d011SMarcel Moolenaar	    q
77413955d011SMarcel Moolenaar	  }
77423955d011SMarcel Moolenaar	  /^X\(\/\/\)[^/].*/{
77433955d011SMarcel Moolenaar	    s//\1/
77443955d011SMarcel Moolenaar	    q
77453955d011SMarcel Moolenaar	  }
77463955d011SMarcel Moolenaar	  /^X\(\/\/\)$/{
77473955d011SMarcel Moolenaar	    s//\1/
77483955d011SMarcel Moolenaar	    q
77493955d011SMarcel Moolenaar	  }
77503955d011SMarcel Moolenaar	  /^X\(\/\).*/{
77513955d011SMarcel Moolenaar	    s//\1/
77523955d011SMarcel Moolenaar	    q
77533955d011SMarcel Moolenaar	  }
77543955d011SMarcel Moolenaar	  s/.*/./; q'`
77553955d011SMarcel Moolenaar      test -d "$as_dir" && break
77563955d011SMarcel Moolenaar    done
77573955d011SMarcel Moolenaar    test -z "$as_dirs" || eval "mkdir $as_dirs"
775849caa483SSimon J. Gerraty  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
77593955d011SMarcel Moolenaar
77603955d011SMarcel Moolenaar
77613955d011SMarcel Moolenaar} # as_fn_mkdir_p
77623955d011SMarcel Moolenaarif mkdir -p . 2>/dev/null; then
77633955d011SMarcel Moolenaar  as_mkdir_p='mkdir -p "$as_dir"'
77643955d011SMarcel Moolenaarelse
77653955d011SMarcel Moolenaar  test -d ./-p && rmdir ./-p
77663955d011SMarcel Moolenaar  as_mkdir_p=false
77673955d011SMarcel Moolenaarfi
77683955d011SMarcel Moolenaar
776949caa483SSimon J. Gerraty
777049caa483SSimon J. Gerraty# as_fn_executable_p FILE
777149caa483SSimon J. Gerraty# -----------------------
777249caa483SSimon J. Gerraty# Test if FILE is an executable regular file.
777349caa483SSimon J. Gerratyas_fn_executable_p ()
777449caa483SSimon J. Gerraty{
777549caa483SSimon J. Gerraty  test -f "$1" && test -x "$1"
777649caa483SSimon J. Gerraty} # as_fn_executable_p
77773955d011SMarcel Moolenaaras_test_x='test -x'
777849caa483SSimon J. Gerratyas_executable_p=as_fn_executable_p
77793955d011SMarcel Moolenaar
77803955d011SMarcel Moolenaar# Sed expression to map a string onto a valid CPP name.
7781*22619282SSimon J. Gerratyas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7782*22619282SSimon J. Gerratyas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
77833955d011SMarcel Moolenaar
77843955d011SMarcel Moolenaar# Sed expression to map a string onto a valid variable name.
7785*22619282SSimon J. Gerratyas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7786*22619282SSimon J. Gerratyas_tr_sh="eval sed '$as_sed_sh'" # deprecated
77873955d011SMarcel Moolenaar
77883955d011SMarcel Moolenaar
77893955d011SMarcel Moolenaarexec 6>&1
77903955d011SMarcel Moolenaar## ----------------------------------- ##
77913955d011SMarcel Moolenaar## Main body of $CONFIG_STATUS script. ##
77923955d011SMarcel Moolenaar## ----------------------------------- ##
77933955d011SMarcel Moolenaar_ASEOF
77943955d011SMarcel Moolenaartest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
77953955d011SMarcel Moolenaar
77963955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
77973955d011SMarcel Moolenaar# Save the log message, to keep $0 and so on meaningful, and to
77983955d011SMarcel Moolenaar# report actual input values of CONFIG_FILES etc. instead of their
77993955d011SMarcel Moolenaar# values after options handling.
78003955d011SMarcel Moolenaarac_log="
7801*22619282SSimon J. GerratyThis file was extended by bmake $as_me 20240711, which was
7802*22619282SSimon J. Gerratygenerated by GNU Autoconf 2.72.  Invocation command line was
78033955d011SMarcel Moolenaar
78043955d011SMarcel Moolenaar  CONFIG_FILES    = $CONFIG_FILES
78053955d011SMarcel Moolenaar  CONFIG_HEADERS  = $CONFIG_HEADERS
78063955d011SMarcel Moolenaar  CONFIG_LINKS    = $CONFIG_LINKS
78073955d011SMarcel Moolenaar  CONFIG_COMMANDS = $CONFIG_COMMANDS
78083955d011SMarcel Moolenaar  $ $0 $@
78093955d011SMarcel Moolenaar
78103955d011SMarcel Moolenaaron `(hostname || uname -n) 2>/dev/null | sed 1q`
78113955d011SMarcel Moolenaar"
78123955d011SMarcel Moolenaar
78133955d011SMarcel Moolenaar_ACEOF
78143955d011SMarcel Moolenaar
78153955d011SMarcel Moolenaarcase $ac_config_files in *"
78163955d011SMarcel Moolenaar"*) set x $ac_config_files; shift; ac_config_files=$*;;
78173955d011SMarcel Moolenaaresac
78183955d011SMarcel Moolenaar
78193955d011SMarcel Moolenaarcase $ac_config_headers in *"
78203955d011SMarcel Moolenaar"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
78213955d011SMarcel Moolenaaresac
78223955d011SMarcel Moolenaar
78233955d011SMarcel Moolenaar
78243955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78253955d011SMarcel Moolenaar# Files that config.status was made for.
78263955d011SMarcel Moolenaarconfig_files="$ac_config_files"
78273955d011SMarcel Moolenaarconfig_headers="$ac_config_headers"
78283955d011SMarcel Moolenaar
78293955d011SMarcel Moolenaar_ACEOF
78303955d011SMarcel Moolenaar
78313955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78323955d011SMarcel Moolenaarac_cs_usage="\
7833*22619282SSimon J. Gerraty'$as_me' instantiates files and other configuration actions
78343955d011SMarcel Moolenaarfrom templates according to the current configuration.  Unless the files
78353955d011SMarcel Moolenaarand actions are specified as TAGs, all are instantiated by default.
78363955d011SMarcel Moolenaar
78373955d011SMarcel MoolenaarUsage: $0 [OPTION]... [TAG]...
78383955d011SMarcel Moolenaar
78393955d011SMarcel Moolenaar  -h, --help       print this help, then exit
78403955d011SMarcel Moolenaar  -V, --version    print version number and configuration settings, then exit
784149caa483SSimon J. Gerraty      --config     print configuration, then exit
78423955d011SMarcel Moolenaar  -q, --quiet, --silent
78433955d011SMarcel Moolenaar                   do not print progress messages
78443955d011SMarcel Moolenaar  -d, --debug      don't remove temporary files
78453955d011SMarcel Moolenaar      --recheck    update $as_me by reconfiguring in the same conditions
78463955d011SMarcel Moolenaar      --file=FILE[:TEMPLATE]
78473955d011SMarcel Moolenaar                   instantiate the configuration file FILE
78483955d011SMarcel Moolenaar      --header=FILE[:TEMPLATE]
78493955d011SMarcel Moolenaar                   instantiate the configuration header FILE
78503955d011SMarcel Moolenaar
78513955d011SMarcel MoolenaarConfiguration files:
78523955d011SMarcel Moolenaar$config_files
78533955d011SMarcel Moolenaar
78543955d011SMarcel MoolenaarConfiguration headers:
78553955d011SMarcel Moolenaar$config_headers
78563955d011SMarcel Moolenaar
78573955d011SMarcel MoolenaarReport bugs to <sjg@NetBSD.org>."
78583955d011SMarcel Moolenaar
78593955d011SMarcel Moolenaar_ACEOF
78604fde40d9SSimon J. Gerratyac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
78614fde40d9SSimon J. Gerratyac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
78623955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78634fde40d9SSimon J. Gerratyac_cs_config='$ac_cs_config_escaped'
78643955d011SMarcel Moolenaarac_cs_version="\\
7865*22619282SSimon J. Gerratybmake config.status 20240711
7866*22619282SSimon J. Gerratyconfigured by $0, generated by GNU Autoconf 2.72,
786749caa483SSimon J. Gerraty  with options \\"\$ac_cs_config\\"
78683955d011SMarcel Moolenaar
7869*22619282SSimon J. GerratyCopyright (C) 2023 Free Software Foundation, Inc.
78703955d011SMarcel MoolenaarThis config.status script is free software; the Free Software Foundation
78713955d011SMarcel Moolenaargives unlimited permission to copy, distribute and modify it."
78723955d011SMarcel Moolenaar
78733955d011SMarcel Moolenaarac_pwd='$ac_pwd'
78743955d011SMarcel Moolenaarsrcdir='$srcdir'
78753955d011SMarcel MoolenaarINSTALL='$INSTALL'
78763955d011SMarcel Moolenaartest -n "\$AWK" || AWK=awk
78773955d011SMarcel Moolenaar_ACEOF
78783955d011SMarcel Moolenaar
78793955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78803955d011SMarcel Moolenaar# The default lists apply if the user does not specify any file.
78813955d011SMarcel Moolenaarac_need_defaults=:
78823955d011SMarcel Moolenaarwhile test $# != 0
78833955d011SMarcel Moolenaardo
78843955d011SMarcel Moolenaar  case $1 in
788549caa483SSimon J. Gerraty  --*=?*)
78863955d011SMarcel Moolenaar    ac_option=`expr "X$1" : 'X\([^=]*\)='`
78873955d011SMarcel Moolenaar    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
78883955d011SMarcel Moolenaar    ac_shift=:
78893955d011SMarcel Moolenaar    ;;
789049caa483SSimon J. Gerraty  --*=)
789149caa483SSimon J. Gerraty    ac_option=`expr "X$1" : 'X\([^=]*\)='`
789249caa483SSimon J. Gerraty    ac_optarg=
789349caa483SSimon J. Gerraty    ac_shift=:
789449caa483SSimon J. Gerraty    ;;
78953955d011SMarcel Moolenaar  *)
78963955d011SMarcel Moolenaar    ac_option=$1
78973955d011SMarcel Moolenaar    ac_optarg=$2
78983955d011SMarcel Moolenaar    ac_shift=shift
78993955d011SMarcel Moolenaar    ;;
79003955d011SMarcel Moolenaar  esac
79013955d011SMarcel Moolenaar
79023955d011SMarcel Moolenaar  case $ac_option in
79033955d011SMarcel Moolenaar  # Handling of the options.
79043955d011SMarcel Moolenaar  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
79053955d011SMarcel Moolenaar    ac_cs_recheck=: ;;
79063955d011SMarcel Moolenaar  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
79074fde40d9SSimon J. Gerraty    printf "%s\n" "$ac_cs_version"; exit ;;
790849caa483SSimon J. Gerraty  --config | --confi | --conf | --con | --co | --c )
79094fde40d9SSimon J. Gerraty    printf "%s\n" "$ac_cs_config"; exit ;;
79103955d011SMarcel Moolenaar  --debug | --debu | --deb | --de | --d | -d )
79113955d011SMarcel Moolenaar    debug=: ;;
79123955d011SMarcel Moolenaar  --file | --fil | --fi | --f )
79133955d011SMarcel Moolenaar    $ac_shift
79143955d011SMarcel Moolenaar    case $ac_optarg in
79154fde40d9SSimon J. Gerraty    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
791649caa483SSimon J. Gerraty    '') as_fn_error $? "missing file argument" ;;
79173955d011SMarcel Moolenaar    esac
79183955d011SMarcel Moolenaar    as_fn_append CONFIG_FILES " '$ac_optarg'"
79193955d011SMarcel Moolenaar    ac_need_defaults=false;;
79203955d011SMarcel Moolenaar  --header | --heade | --head | --hea )
79213955d011SMarcel Moolenaar    $ac_shift
79223955d011SMarcel Moolenaar    case $ac_optarg in
79234fde40d9SSimon J. Gerraty    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
79243955d011SMarcel Moolenaar    esac
79253955d011SMarcel Moolenaar    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
79263955d011SMarcel Moolenaar    ac_need_defaults=false;;
79273955d011SMarcel Moolenaar  --he | --h)
79283955d011SMarcel Moolenaar    # Conflict between --help and --header
7929*22619282SSimon J. Gerraty    as_fn_error $? "ambiguous option: '$1'
7930*22619282SSimon J. GerratyTry '$0 --help' for more information.";;
79313955d011SMarcel Moolenaar  --help | --hel | -h )
79324fde40d9SSimon J. Gerraty    printf "%s\n" "$ac_cs_usage"; exit ;;
79333955d011SMarcel Moolenaar  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
79343955d011SMarcel Moolenaar  | -silent | --silent | --silen | --sile | --sil | --si | --s)
79353955d011SMarcel Moolenaar    ac_cs_silent=: ;;
79363955d011SMarcel Moolenaar
79373955d011SMarcel Moolenaar  # This is an error.
7938*22619282SSimon J. Gerraty  -*) as_fn_error $? "unrecognized option: '$1'
7939*22619282SSimon J. GerratyTry '$0 --help' for more information." ;;
79403955d011SMarcel Moolenaar
79413955d011SMarcel Moolenaar  *) as_fn_append ac_config_targets " $1"
79423955d011SMarcel Moolenaar     ac_need_defaults=false ;;
79433955d011SMarcel Moolenaar
79443955d011SMarcel Moolenaar  esac
79453955d011SMarcel Moolenaar  shift
79463955d011SMarcel Moolenaardone
79473955d011SMarcel Moolenaar
79483955d011SMarcel Moolenaarac_configure_extra_args=
79493955d011SMarcel Moolenaar
79503955d011SMarcel Moolenaarif $ac_cs_silent; then
79513955d011SMarcel Moolenaar  exec 6>/dev/null
79523955d011SMarcel Moolenaar  ac_configure_extra_args="$ac_configure_extra_args --silent"
79533955d011SMarcel Moolenaarfi
79543955d011SMarcel Moolenaar
79553955d011SMarcel Moolenaar_ACEOF
79563955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
79573955d011SMarcel Moolenaarif \$ac_cs_recheck; then
795849caa483SSimon J. Gerraty  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
79593955d011SMarcel Moolenaar  shift
79604fde40d9SSimon J. Gerraty  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
79613955d011SMarcel Moolenaar  CONFIG_SHELL='$SHELL'
79623955d011SMarcel Moolenaar  export CONFIG_SHELL
79633955d011SMarcel Moolenaar  exec "\$@"
79643955d011SMarcel Moolenaarfi
79653955d011SMarcel Moolenaar
79663955d011SMarcel Moolenaar_ACEOF
79673955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79683955d011SMarcel Moolenaarexec 5>>config.log
79693955d011SMarcel Moolenaar{
79703955d011SMarcel Moolenaar  echo
79713955d011SMarcel Moolenaar  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
79723955d011SMarcel Moolenaar## Running $as_me. ##
79733955d011SMarcel Moolenaar_ASBOX
79744fde40d9SSimon J. Gerraty  printf "%s\n" "$ac_log"
79753955d011SMarcel Moolenaar} >&5
79763955d011SMarcel Moolenaar
79773955d011SMarcel Moolenaar_ACEOF
79783955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
79793955d011SMarcel Moolenaar_ACEOF
79803955d011SMarcel Moolenaar
79813955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79823955d011SMarcel Moolenaar
79833955d011SMarcel Moolenaar# Handling of arguments.
79843955d011SMarcel Moolenaarfor ac_config_target in $ac_config_targets
79853955d011SMarcel Moolenaardo
79863955d011SMarcel Moolenaar  case $ac_config_target in
79873955d011SMarcel Moolenaar    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
798849caa483SSimon J. Gerraty    "$bm_outfiles") CONFIG_FILES="$CONFIG_FILES $bm_outfiles" ;;
79893955d011SMarcel Moolenaar
7990*22619282SSimon J. Gerraty  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
79913955d011SMarcel Moolenaar  esac
79923955d011SMarcel Moolenaardone
79933955d011SMarcel Moolenaar
79943955d011SMarcel Moolenaar
79953955d011SMarcel Moolenaar# If the user did not use the arguments to specify the items to instantiate,
79963955d011SMarcel Moolenaar# then the envvar interface is used.  Set only those that are not.
79973955d011SMarcel Moolenaar# We use the long form for the default assignment because of an extremely
79983955d011SMarcel Moolenaar# bizarre bug on SunOS 4.1.3.
79993955d011SMarcel Moolenaarif $ac_need_defaults; then
80004fde40d9SSimon J. Gerraty  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
80014fde40d9SSimon J. Gerraty  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
80023955d011SMarcel Moolenaarfi
80033955d011SMarcel Moolenaar
80043955d011SMarcel Moolenaar# Have a temporary directory for convenience.  Make it in the build tree
80053955d011SMarcel Moolenaar# simply because there is no reason against having it here, and in addition,
80063955d011SMarcel Moolenaar# creating and moving files from /tmp can sometimes cause problems.
80073955d011SMarcel Moolenaar# Hook for its removal unless debugging.
80083955d011SMarcel Moolenaar# Note that there is a small window in which the directory will not be cleaned:
8009*22619282SSimon J. Gerraty# after its creation but before its name has been assigned to '$tmp'.
80103955d011SMarcel Moolenaar$debug ||
80113955d011SMarcel Moolenaar{
801249caa483SSimon J. Gerraty  tmp= ac_tmp=
80133955d011SMarcel Moolenaar  trap 'exit_status=$?
801449caa483SSimon J. Gerraty  : "${ac_tmp:=$tmp}"
801549caa483SSimon J. Gerraty  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
80163955d011SMarcel Moolenaar' 0
80173955d011SMarcel Moolenaar  trap 'as_fn_exit 1' 1 2 13 15
80183955d011SMarcel Moolenaar}
80193955d011SMarcel Moolenaar# Create a (secure) tmp directory for tmp files.
80203955d011SMarcel Moolenaar
80213955d011SMarcel Moolenaar{
80223955d011SMarcel Moolenaar  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
802349caa483SSimon J. Gerraty  test -d "$tmp"
80243955d011SMarcel Moolenaar}  ||
80253955d011SMarcel Moolenaar{
80263955d011SMarcel Moolenaar  tmp=./conf$$-$RANDOM
80273955d011SMarcel Moolenaar  (umask 077 && mkdir "$tmp")
802849caa483SSimon J. Gerraty} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
802949caa483SSimon J. Gerratyac_tmp=$tmp
80303955d011SMarcel Moolenaar
80313955d011SMarcel Moolenaar# Set up the scripts for CONFIG_FILES section.
80323955d011SMarcel Moolenaar# No need to generate them if there are no CONFIG_FILES.
8033*22619282SSimon J. Gerraty# This happens for instance with './config.status config.h'.
80343955d011SMarcel Moolenaarif test -n "$CONFIG_FILES"; then
80353955d011SMarcel Moolenaar
80363955d011SMarcel Moolenaar
80373955d011SMarcel Moolenaarac_cr=`echo X | tr X '\015'`
80383955d011SMarcel Moolenaar# On cygwin, bash can eat \r inside `` if the user requested igncr.
80393955d011SMarcel Moolenaar# But we know of no other shell where ac_cr would be empty at this
80403955d011SMarcel Moolenaar# point, so we can use a bashism as a fallback.
80413955d011SMarcel Moolenaarif test "x$ac_cr" = x; then
80423955d011SMarcel Moolenaar  eval ac_cr=\$\'\\r\'
80433955d011SMarcel Moolenaarfi
80443955d011SMarcel Moolenaarac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
80453955d011SMarcel Moolenaarif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
804649caa483SSimon J. Gerraty  ac_cs_awk_cr='\\r'
80473955d011SMarcel Moolenaarelse
80483955d011SMarcel Moolenaar  ac_cs_awk_cr=$ac_cr
80493955d011SMarcel Moolenaarfi
80503955d011SMarcel Moolenaar
805149caa483SSimon J. Gerratyecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
80523955d011SMarcel Moolenaar_ACEOF
80533955d011SMarcel Moolenaar
80543955d011SMarcel Moolenaar
80553955d011SMarcel Moolenaar{
80563955d011SMarcel Moolenaar  echo "cat >conf$$subs.awk <<_ACEOF" &&
80573955d011SMarcel Moolenaar  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
80583955d011SMarcel Moolenaar  echo "_ACEOF"
80593955d011SMarcel Moolenaar} >conf$$subs.sh ||
806049caa483SSimon J. Gerraty  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
806149caa483SSimon J. Gerratyac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
80623955d011SMarcel Moolenaarac_delim='%!_!# '
80633955d011SMarcel Moolenaarfor ac_last_try in false false false false false :; do
80643955d011SMarcel Moolenaar  . ./conf$$subs.sh ||
806549caa483SSimon J. Gerraty    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
80663955d011SMarcel Moolenaar
80673955d011SMarcel Moolenaar  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
80683955d011SMarcel Moolenaar  if test $ac_delim_n = $ac_delim_num; then
80693955d011SMarcel Moolenaar    break
80703955d011SMarcel Moolenaar  elif $ac_last_try; then
807149caa483SSimon J. Gerraty    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
80723955d011SMarcel Moolenaar  else
80733955d011SMarcel Moolenaar    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
80743955d011SMarcel Moolenaar  fi
80753955d011SMarcel Moolenaardone
80763955d011SMarcel Moolenaarrm -f conf$$subs.sh
80773955d011SMarcel Moolenaar
80783955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
807949caa483SSimon J. Gerratycat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
80803955d011SMarcel Moolenaar_ACEOF
80813955d011SMarcel Moolenaarsed -n '
80823955d011SMarcel Moolenaarh
80833955d011SMarcel Moolenaars/^/S["/; s/!.*/"]=/
80843955d011SMarcel Moolenaarp
80853955d011SMarcel Moolenaarg
80863955d011SMarcel Moolenaars/^[^!]*!//
80873955d011SMarcel Moolenaar:repl
80883955d011SMarcel Moolenaart repl
80893955d011SMarcel Moolenaars/'"$ac_delim"'$//
80903955d011SMarcel Moolenaart delim
80913955d011SMarcel Moolenaar:nl
80923955d011SMarcel Moolenaarh
809349caa483SSimon J. Gerratys/\(.\{148\}\)..*/\1/
80943955d011SMarcel Moolenaart more1
80953955d011SMarcel Moolenaars/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
80963955d011SMarcel Moolenaarp
80973955d011SMarcel Moolenaarn
80983955d011SMarcel Moolenaarb repl
80993955d011SMarcel Moolenaar:more1
81003955d011SMarcel Moolenaars/["\\]/\\&/g; s/^/"/; s/$/"\\/
81013955d011SMarcel Moolenaarp
81023955d011SMarcel Moolenaarg
81033955d011SMarcel Moolenaars/.\{148\}//
81043955d011SMarcel Moolenaart nl
81053955d011SMarcel Moolenaar:delim
81063955d011SMarcel Moolenaarh
810749caa483SSimon J. Gerratys/\(.\{148\}\)..*/\1/
81083955d011SMarcel Moolenaart more2
81093955d011SMarcel Moolenaars/["\\]/\\&/g; s/^/"/; s/$/"/
81103955d011SMarcel Moolenaarp
81113955d011SMarcel Moolenaarb
81123955d011SMarcel Moolenaar:more2
81133955d011SMarcel Moolenaars/["\\]/\\&/g; s/^/"/; s/$/"\\/
81143955d011SMarcel Moolenaarp
81153955d011SMarcel Moolenaarg
81163955d011SMarcel Moolenaars/.\{148\}//
81173955d011SMarcel Moolenaart delim
81183955d011SMarcel Moolenaar' <conf$$subs.awk | sed '
81193955d011SMarcel Moolenaar/^[^""]/{
81203955d011SMarcel Moolenaar  N
81213955d011SMarcel Moolenaar  s/\n//
81223955d011SMarcel Moolenaar}
81233955d011SMarcel Moolenaar' >>$CONFIG_STATUS || ac_write_fail=1
81243955d011SMarcel Moolenaarrm -f conf$$subs.awk
81253955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
81263955d011SMarcel Moolenaar_ACAWK
812749caa483SSimon J. Gerratycat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81283955d011SMarcel Moolenaar  for (key in S) S_is_set[key] = 1
81293955d011SMarcel Moolenaar  FS = ""
81303955d011SMarcel Moolenaar
81313955d011SMarcel Moolenaar}
81323955d011SMarcel Moolenaar{
81333955d011SMarcel Moolenaar  line = $ 0
81343955d011SMarcel Moolenaar  nfields = split(line, field, "@")
81353955d011SMarcel Moolenaar  substed = 0
81363955d011SMarcel Moolenaar  len = length(field[1])
81373955d011SMarcel Moolenaar  for (i = 2; i < nfields; i++) {
81383955d011SMarcel Moolenaar    key = field[i]
81393955d011SMarcel Moolenaar    keylen = length(key)
81403955d011SMarcel Moolenaar    if (S_is_set[key]) {
81413955d011SMarcel Moolenaar      value = S[key]
81423955d011SMarcel Moolenaar      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
81433955d011SMarcel Moolenaar      len += length(value) + length(field[++i])
81443955d011SMarcel Moolenaar      substed = 1
81453955d011SMarcel Moolenaar    } else
81463955d011SMarcel Moolenaar      len += 1 + keylen
81473955d011SMarcel Moolenaar  }
81483955d011SMarcel Moolenaar
81493955d011SMarcel Moolenaar  print line
81503955d011SMarcel Moolenaar}
81513955d011SMarcel Moolenaar
81523955d011SMarcel Moolenaar_ACAWK
81533955d011SMarcel Moolenaar_ACEOF
81543955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
81553955d011SMarcel Moolenaarif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
81563955d011SMarcel Moolenaar  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
81573955d011SMarcel Moolenaarelse
81583955d011SMarcel Moolenaar  cat
815949caa483SSimon J. Gerratyfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
816049caa483SSimon J. Gerraty  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81613955d011SMarcel Moolenaar_ACEOF
81623955d011SMarcel Moolenaar
816349caa483SSimon J. Gerraty# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
816449caa483SSimon J. Gerraty# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81653955d011SMarcel Moolenaar# trailing colons and then remove the whole line if VPATH becomes empty
81663955d011SMarcel Moolenaar# (actually we leave an empty line to preserve line numbers).
81673955d011SMarcel Moolenaarif test "x$srcdir" = x.; then
816849caa483SSimon J. Gerraty  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
816949caa483SSimon J. Gerratyh
817049caa483SSimon J. Gerratys///
817149caa483SSimon J. Gerratys/^/:/
817249caa483SSimon J. Gerratys/[	 ]*$/:/
817349caa483SSimon J. Gerratys/:\$(srcdir):/:/g
817449caa483SSimon J. Gerratys/:\${srcdir}:/:/g
817549caa483SSimon J. Gerratys/:@srcdir@:/:/g
817649caa483SSimon J. Gerratys/^:*//
81773955d011SMarcel Moolenaars/:*$//
817849caa483SSimon J. Gerratyx
817949caa483SSimon J. Gerratys/\(=[	 ]*\).*/\1/
818049caa483SSimon J. GerratyG
818149caa483SSimon J. Gerratys/\n//
81823955d011SMarcel Moolenaars/^[^=]*=[	 ]*$//
81833955d011SMarcel Moolenaar}'
81843955d011SMarcel Moolenaarfi
81853955d011SMarcel Moolenaar
81863955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
81873955d011SMarcel Moolenaarfi # test -n "$CONFIG_FILES"
81883955d011SMarcel Moolenaar
81893955d011SMarcel Moolenaar# Set up the scripts for CONFIG_HEADERS section.
81903955d011SMarcel Moolenaar# No need to generate them if there are no CONFIG_HEADERS.
8191*22619282SSimon J. Gerraty# This happens for instance with './config.status Makefile'.
81923955d011SMarcel Moolenaarif test -n "$CONFIG_HEADERS"; then
819349caa483SSimon J. Gerratycat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81943955d011SMarcel MoolenaarBEGIN {
81953955d011SMarcel Moolenaar_ACEOF
81963955d011SMarcel Moolenaar
8197*22619282SSimon J. Gerraty# Transform confdefs.h into an awk script 'defines.awk', embedded as
81983955d011SMarcel Moolenaar# here-document in config.status, that substitutes the proper values into
81993955d011SMarcel Moolenaar# config.h.in to produce config.h.
82003955d011SMarcel Moolenaar
82013955d011SMarcel Moolenaar# Create a delimiter string that does not exist in confdefs.h, to ease
82023955d011SMarcel Moolenaar# handling of long lines.
82033955d011SMarcel Moolenaarac_delim='%!_!# '
82043955d011SMarcel Moolenaarfor ac_last_try in false false :; do
820549caa483SSimon J. Gerraty  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
820649caa483SSimon J. Gerraty  if test -z "$ac_tt"; then
82073955d011SMarcel Moolenaar    break
82083955d011SMarcel Moolenaar  elif $ac_last_try; then
820949caa483SSimon J. Gerraty    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
82103955d011SMarcel Moolenaar  else
82113955d011SMarcel Moolenaar    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
82123955d011SMarcel Moolenaar  fi
82133955d011SMarcel Moolenaardone
82143955d011SMarcel Moolenaar
82153955d011SMarcel Moolenaar# For the awk script, D is an array of macro values keyed by name,
82163955d011SMarcel Moolenaar# likewise P contains macro parameters if any.  Preserve backslash
82173955d011SMarcel Moolenaar# newline sequences.
82183955d011SMarcel Moolenaar
82193955d011SMarcel Moolenaarac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
82203955d011SMarcel Moolenaarsed -n '
82213955d011SMarcel Moolenaars/.\{148\}/&'"$ac_delim"'/g
82223955d011SMarcel Moolenaart rset
82233955d011SMarcel Moolenaar:rset
82243955d011SMarcel Moolenaars/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
82253955d011SMarcel Moolenaart def
82263955d011SMarcel Moolenaard
82273955d011SMarcel Moolenaar:def
82283955d011SMarcel Moolenaars/\\$//
82293955d011SMarcel Moolenaart bsnl
82303955d011SMarcel Moolenaars/["\\]/\\&/g
82313955d011SMarcel Moolenaars/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
82323955d011SMarcel MoolenaarD["\1"]=" \3"/p
82333955d011SMarcel Moolenaars/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
82343955d011SMarcel Moolenaard
82353955d011SMarcel Moolenaar:bsnl
82363955d011SMarcel Moolenaars/["\\]/\\&/g
82373955d011SMarcel Moolenaars/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
82383955d011SMarcel MoolenaarD["\1"]=" \3\\\\\\n"\\/p
82393955d011SMarcel Moolenaart cont
82403955d011SMarcel Moolenaars/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
82413955d011SMarcel Moolenaart cont
82423955d011SMarcel Moolenaard
82433955d011SMarcel Moolenaar:cont
82443955d011SMarcel Moolenaarn
82453955d011SMarcel Moolenaars/.\{148\}/&'"$ac_delim"'/g
82463955d011SMarcel Moolenaart clear
82473955d011SMarcel Moolenaar:clear
82483955d011SMarcel Moolenaars/\\$//
82493955d011SMarcel Moolenaart bsnlc
82503955d011SMarcel Moolenaars/["\\]/\\&/g; s/^/"/; s/$/"/p
82513955d011SMarcel Moolenaard
82523955d011SMarcel Moolenaar:bsnlc
82533955d011SMarcel Moolenaars/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
82543955d011SMarcel Moolenaarb cont
82553955d011SMarcel Moolenaar' <confdefs.h | sed '
82563955d011SMarcel Moolenaars/'"$ac_delim"'/"\\\
82573955d011SMarcel Moolenaar"/g' >>$CONFIG_STATUS || ac_write_fail=1
82583955d011SMarcel Moolenaar
82593955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
82603955d011SMarcel Moolenaar  for (key in D) D_is_set[key] = 1
82613955d011SMarcel Moolenaar  FS = ""
82623955d011SMarcel Moolenaar}
82633955d011SMarcel Moolenaar/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
82643955d011SMarcel Moolenaar  line = \$ 0
82653955d011SMarcel Moolenaar  split(line, arg, " ")
82663955d011SMarcel Moolenaar  if (arg[1] == "#") {
82673955d011SMarcel Moolenaar    defundef = arg[2]
82683955d011SMarcel Moolenaar    mac1 = arg[3]
82693955d011SMarcel Moolenaar  } else {
82703955d011SMarcel Moolenaar    defundef = substr(arg[1], 2)
82713955d011SMarcel Moolenaar    mac1 = arg[2]
82723955d011SMarcel Moolenaar  }
82733955d011SMarcel Moolenaar  split(mac1, mac2, "(") #)
82743955d011SMarcel Moolenaar  macro = mac2[1]
82753955d011SMarcel Moolenaar  prefix = substr(line, 1, index(line, defundef) - 1)
82763955d011SMarcel Moolenaar  if (D_is_set[macro]) {
82773955d011SMarcel Moolenaar    # Preserve the white space surrounding the "#".
82783955d011SMarcel Moolenaar    print prefix "define", macro P[macro] D[macro]
82793955d011SMarcel Moolenaar    next
82803955d011SMarcel Moolenaar  } else {
82813955d011SMarcel Moolenaar    # Replace #undef with comments.  This is necessary, for example,
82823955d011SMarcel Moolenaar    # in the case of _POSIX_SOURCE, which is predefined and required
82833955d011SMarcel Moolenaar    # on some systems where configure will not decide to define it.
82843955d011SMarcel Moolenaar    if (defundef == "undef") {
82853955d011SMarcel Moolenaar      print "/*", prefix defundef, macro, "*/"
82863955d011SMarcel Moolenaar      next
82873955d011SMarcel Moolenaar    }
82883955d011SMarcel Moolenaar  }
82893955d011SMarcel Moolenaar}
82903955d011SMarcel Moolenaar{ print }
82913955d011SMarcel Moolenaar_ACAWK
82923955d011SMarcel Moolenaar_ACEOF
82933955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
829449caa483SSimon J. Gerraty  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
82953955d011SMarcel Moolenaarfi # test -n "$CONFIG_HEADERS"
82963955d011SMarcel Moolenaar
82973955d011SMarcel Moolenaar
82983955d011SMarcel Moolenaareval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
82993955d011SMarcel Moolenaarshift
83003955d011SMarcel Moolenaarfor ac_tag
83013955d011SMarcel Moolenaardo
83023955d011SMarcel Moolenaar  case $ac_tag in
83033955d011SMarcel Moolenaar  :[FHLC]) ac_mode=$ac_tag; continue;;
83043955d011SMarcel Moolenaar  esac
83053955d011SMarcel Moolenaar  case $ac_mode$ac_tag in
83063955d011SMarcel Moolenaar  :[FHL]*:*);;
8307*22619282SSimon J. Gerraty  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
83083955d011SMarcel Moolenaar  :[FH]-) ac_tag=-:-;;
83093955d011SMarcel Moolenaar  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
83103955d011SMarcel Moolenaar  esac
83113955d011SMarcel Moolenaar  ac_save_IFS=$IFS
83123955d011SMarcel Moolenaar  IFS=:
83133955d011SMarcel Moolenaar  set x $ac_tag
83143955d011SMarcel Moolenaar  IFS=$ac_save_IFS
83153955d011SMarcel Moolenaar  shift
83163955d011SMarcel Moolenaar  ac_file=$1
83173955d011SMarcel Moolenaar  shift
83183955d011SMarcel Moolenaar
83193955d011SMarcel Moolenaar  case $ac_mode in
83203955d011SMarcel Moolenaar  :L) ac_source=$1;;
83213955d011SMarcel Moolenaar  :[FH])
83223955d011SMarcel Moolenaar    ac_file_inputs=
83233955d011SMarcel Moolenaar    for ac_f
83243955d011SMarcel Moolenaar    do
83253955d011SMarcel Moolenaar      case $ac_f in
832649caa483SSimon J. Gerraty      -) ac_f="$ac_tmp/stdin";;
83273955d011SMarcel Moolenaar      *) # Look for the file first in the build tree, then in the source tree
83283955d011SMarcel Moolenaar	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8329*22619282SSimon J. Gerraty	 # because $ac_f cannot contain ':'.
83303955d011SMarcel Moolenaar	 test -f "$ac_f" ||
83313955d011SMarcel Moolenaar	   case $ac_f in
83323955d011SMarcel Moolenaar	   [\\/$]*) false;;
83333955d011SMarcel Moolenaar	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
83343955d011SMarcel Moolenaar	   esac ||
8335*22619282SSimon J. Gerraty	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
83363955d011SMarcel Moolenaar      esac
83374fde40d9SSimon J. Gerraty      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
83383955d011SMarcel Moolenaar      as_fn_append ac_file_inputs " '$ac_f'"
83393955d011SMarcel Moolenaar    done
83403955d011SMarcel Moolenaar
8341*22619282SSimon J. Gerraty    # Let's still pretend it is 'configure' which instantiates (i.e., don't
83423955d011SMarcel Moolenaar    # use $as_me), people would be surprised to read:
83433955d011SMarcel Moolenaar    #    /* config.h.  Generated by config.status.  */
83443955d011SMarcel Moolenaar    configure_input='Generated from '`
83454fde40d9SSimon J. Gerraty	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
83463955d011SMarcel Moolenaar	`' by configure.'
83473955d011SMarcel Moolenaar    if test x"$ac_file" != x-; then
83483955d011SMarcel Moolenaar      configure_input="$ac_file.  $configure_input"
83494fde40d9SSimon J. Gerraty      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
83504fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: creating $ac_file" >&6;}
83513955d011SMarcel Moolenaar    fi
83523955d011SMarcel Moolenaar    # Neutralize special characters interpreted by sed in replacement strings.
83533955d011SMarcel Moolenaar    case $configure_input in #(
83543955d011SMarcel Moolenaar    *\&* | *\|* | *\\* )
83554fde40d9SSimon J. Gerraty       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
83563955d011SMarcel Moolenaar       sed 's/[\\\\&|]/\\\\&/g'`;; #(
83573955d011SMarcel Moolenaar    *) ac_sed_conf_input=$configure_input;;
83583955d011SMarcel Moolenaar    esac
83593955d011SMarcel Moolenaar
83603955d011SMarcel Moolenaar    case $ac_tag in
836149caa483SSimon J. Gerraty    *:-:* | *:-) cat >"$ac_tmp/stdin" \
836249caa483SSimon J. Gerraty      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
83633955d011SMarcel Moolenaar    esac
83643955d011SMarcel Moolenaar    ;;
83653955d011SMarcel Moolenaar  esac
83663955d011SMarcel Moolenaar
83673955d011SMarcel Moolenaar  ac_dir=`$as_dirname -- "$ac_file" ||
83683955d011SMarcel Moolenaar$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
83693955d011SMarcel Moolenaar	 X"$ac_file" : 'X\(//\)[^/]' \| \
83703955d011SMarcel Moolenaar	 X"$ac_file" : 'X\(//\)$' \| \
83713955d011SMarcel Moolenaar	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
83724fde40d9SSimon J. Gerratyprintf "%s\n" X"$ac_file" |
83733955d011SMarcel Moolenaar    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
83743955d011SMarcel Moolenaar	    s//\1/
83753955d011SMarcel Moolenaar	    q
83763955d011SMarcel Moolenaar	  }
83773955d011SMarcel Moolenaar	  /^X\(\/\/\)[^/].*/{
83783955d011SMarcel Moolenaar	    s//\1/
83793955d011SMarcel Moolenaar	    q
83803955d011SMarcel Moolenaar	  }
83813955d011SMarcel Moolenaar	  /^X\(\/\/\)$/{
83823955d011SMarcel Moolenaar	    s//\1/
83833955d011SMarcel Moolenaar	    q
83843955d011SMarcel Moolenaar	  }
83853955d011SMarcel Moolenaar	  /^X\(\/\).*/{
83863955d011SMarcel Moolenaar	    s//\1/
83873955d011SMarcel Moolenaar	    q
83883955d011SMarcel Moolenaar	  }
83893955d011SMarcel Moolenaar	  s/.*/./; q'`
83903955d011SMarcel Moolenaar  as_dir="$ac_dir"; as_fn_mkdir_p
83913955d011SMarcel Moolenaar  ac_builddir=.
83923955d011SMarcel Moolenaar
83933955d011SMarcel Moolenaarcase "$ac_dir" in
83943955d011SMarcel Moolenaar.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
83953955d011SMarcel Moolenaar*)
83964fde40d9SSimon J. Gerraty  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
83973955d011SMarcel Moolenaar  # A ".." for each directory in $ac_dir_suffix.
83984fde40d9SSimon J. Gerraty  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
83993955d011SMarcel Moolenaar  case $ac_top_builddir_sub in
84003955d011SMarcel Moolenaar  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
84013955d011SMarcel Moolenaar  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
84023955d011SMarcel Moolenaar  esac ;;
84033955d011SMarcel Moolenaaresac
84043955d011SMarcel Moolenaarac_abs_top_builddir=$ac_pwd
84053955d011SMarcel Moolenaarac_abs_builddir=$ac_pwd$ac_dir_suffix
84063955d011SMarcel Moolenaar# for backward compatibility:
84073955d011SMarcel Moolenaarac_top_builddir=$ac_top_build_prefix
84083955d011SMarcel Moolenaar
84093955d011SMarcel Moolenaarcase $srcdir in
84103955d011SMarcel Moolenaar  .)  # We are building in place.
84113955d011SMarcel Moolenaar    ac_srcdir=.
84123955d011SMarcel Moolenaar    ac_top_srcdir=$ac_top_builddir_sub
84133955d011SMarcel Moolenaar    ac_abs_top_srcdir=$ac_pwd ;;
84143955d011SMarcel Moolenaar  [\\/]* | ?:[\\/]* )  # Absolute name.
84153955d011SMarcel Moolenaar    ac_srcdir=$srcdir$ac_dir_suffix;
84163955d011SMarcel Moolenaar    ac_top_srcdir=$srcdir
84173955d011SMarcel Moolenaar    ac_abs_top_srcdir=$srcdir ;;
84183955d011SMarcel Moolenaar  *) # Relative name.
84193955d011SMarcel Moolenaar    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
84203955d011SMarcel Moolenaar    ac_top_srcdir=$ac_top_build_prefix$srcdir
84213955d011SMarcel Moolenaar    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
84223955d011SMarcel Moolenaaresac
84233955d011SMarcel Moolenaarac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
84243955d011SMarcel Moolenaar
84253955d011SMarcel Moolenaar
84263955d011SMarcel Moolenaar  case $ac_mode in
84273955d011SMarcel Moolenaar  :F)
84283955d011SMarcel Moolenaar  #
84293955d011SMarcel Moolenaar  # CONFIG_FILE
84303955d011SMarcel Moolenaar  #
84313955d011SMarcel Moolenaar
84323955d011SMarcel Moolenaar  case $INSTALL in
84333955d011SMarcel Moolenaar  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
84343955d011SMarcel Moolenaar  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
84353955d011SMarcel Moolenaar  esac
84363955d011SMarcel Moolenaar_ACEOF
84373955d011SMarcel Moolenaar
84383955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
84393955d011SMarcel Moolenaar# If the template does not know about datarootdir, expand it.
84403955d011SMarcel Moolenaar# FIXME: This hack should be removed a few years after 2.60.
84413955d011SMarcel Moolenaarac_datarootdir_hack=; ac_datarootdir_seen=
84423955d011SMarcel Moolenaarac_sed_dataroot='
84433955d011SMarcel Moolenaar/datarootdir/ {
84443955d011SMarcel Moolenaar  p
84453955d011SMarcel Moolenaar  q
84463955d011SMarcel Moolenaar}
84473955d011SMarcel Moolenaar/@datadir@/p
84483955d011SMarcel Moolenaar/@docdir@/p
84493955d011SMarcel Moolenaar/@infodir@/p
84503955d011SMarcel Moolenaar/@localedir@/p
84513955d011SMarcel Moolenaar/@mandir@/p'
84523955d011SMarcel Moolenaarcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
84533955d011SMarcel Moolenaar*datarootdir*) ac_datarootdir_seen=yes;;
84543955d011SMarcel Moolenaar*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
84554fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
84564fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
84573955d011SMarcel Moolenaar_ACEOF
84583955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
84593955d011SMarcel Moolenaar  ac_datarootdir_hack='
84603955d011SMarcel Moolenaar  s&@datadir@&$datadir&g
84613955d011SMarcel Moolenaar  s&@docdir@&$docdir&g
84623955d011SMarcel Moolenaar  s&@infodir@&$infodir&g
84633955d011SMarcel Moolenaar  s&@localedir@&$localedir&g
84643955d011SMarcel Moolenaar  s&@mandir@&$mandir&g
84653955d011SMarcel Moolenaar  s&\\\${datarootdir}&$datarootdir&g' ;;
84663955d011SMarcel Moolenaaresac
84673955d011SMarcel Moolenaar_ACEOF
84683955d011SMarcel Moolenaar
8469*22619282SSimon J. Gerraty# Neutralize VPATH when '$srcdir' = '.'.
84703955d011SMarcel Moolenaar# Shell code in configure.ac might set extrasub.
84713955d011SMarcel Moolenaar# FIXME: do we really want to maintain this feature?
84723955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
84733955d011SMarcel Moolenaarac_sed_extra="$ac_vpsub
84743955d011SMarcel Moolenaar$extrasub
84753955d011SMarcel Moolenaar_ACEOF
84763955d011SMarcel Moolenaarcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
84773955d011SMarcel Moolenaar:t
84783955d011SMarcel Moolenaar/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
84793955d011SMarcel Moolenaars|@configure_input@|$ac_sed_conf_input|;t t
84803955d011SMarcel Moolenaars&@top_builddir@&$ac_top_builddir_sub&;t t
84813955d011SMarcel Moolenaars&@top_build_prefix@&$ac_top_build_prefix&;t t
84823955d011SMarcel Moolenaars&@srcdir@&$ac_srcdir&;t t
84833955d011SMarcel Moolenaars&@abs_srcdir@&$ac_abs_srcdir&;t t
84843955d011SMarcel Moolenaars&@top_srcdir@&$ac_top_srcdir&;t t
84853955d011SMarcel Moolenaars&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
84863955d011SMarcel Moolenaars&@builddir@&$ac_builddir&;t t
84873955d011SMarcel Moolenaars&@abs_builddir@&$ac_abs_builddir&;t t
84883955d011SMarcel Moolenaars&@abs_top_builddir@&$ac_abs_top_builddir&;t t
84893955d011SMarcel Moolenaars&@INSTALL@&$ac_INSTALL&;t t
84903955d011SMarcel Moolenaar$ac_datarootdir_hack
84913955d011SMarcel Moolenaar"
849249caa483SSimon J. Gerratyeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
849349caa483SSimon J. Gerraty  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
84943955d011SMarcel Moolenaar
84953955d011SMarcel Moolenaartest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
849649caa483SSimon J. Gerraty  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
849749caa483SSimon J. Gerraty  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
849849caa483SSimon J. Gerraty      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8499*22619282SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
850049caa483SSimon J. Gerratywhich seems to be undefined.  Please make sure it is defined" >&5
8501*22619282SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
850249caa483SSimon J. Gerratywhich seems to be undefined.  Please make sure it is defined" >&2;}
85033955d011SMarcel Moolenaar
850449caa483SSimon J. Gerraty  rm -f "$ac_tmp/stdin"
85053955d011SMarcel Moolenaar  case $ac_file in
850649caa483SSimon J. Gerraty  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
850749caa483SSimon J. Gerraty  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
85083955d011SMarcel Moolenaar  esac \
850949caa483SSimon J. Gerraty  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
85103955d011SMarcel Moolenaar ;;
85113955d011SMarcel Moolenaar  :H)
85123955d011SMarcel Moolenaar  #
85133955d011SMarcel Moolenaar  # CONFIG_HEADER
85143955d011SMarcel Moolenaar  #
85153955d011SMarcel Moolenaar  if test x"$ac_file" != x-; then
85163955d011SMarcel Moolenaar    {
85174fde40d9SSimon J. Gerraty      printf "%s\n" "/* $configure_input  */" >&1 \
851849caa483SSimon J. Gerraty      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
851949caa483SSimon J. Gerraty    } >"$ac_tmp/config.h" \
852049caa483SSimon J. Gerraty      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
852149caa483SSimon J. Gerraty    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
85224fde40d9SSimon J. Gerraty      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
85234fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
85243955d011SMarcel Moolenaar    else
85253955d011SMarcel Moolenaar      rm -f "$ac_file"
852649caa483SSimon J. Gerraty      mv "$ac_tmp/config.h" "$ac_file" \
852749caa483SSimon J. Gerraty	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
85283955d011SMarcel Moolenaar    fi
85293955d011SMarcel Moolenaar  else
85304fde40d9SSimon J. Gerraty    printf "%s\n" "/* $configure_input  */" >&1 \
853149caa483SSimon J. Gerraty      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
853249caa483SSimon J. Gerraty      || as_fn_error $? "could not create -" "$LINENO" 5
85333955d011SMarcel Moolenaar  fi
85343955d011SMarcel Moolenaar ;;
85353955d011SMarcel Moolenaar
85363955d011SMarcel Moolenaar
85373955d011SMarcel Moolenaar  esac
85383955d011SMarcel Moolenaar
85393955d011SMarcel Moolenaardone # for ac_tag
85403955d011SMarcel Moolenaar
85413955d011SMarcel Moolenaar
85423955d011SMarcel Moolenaaras_fn_exit 0
85433955d011SMarcel Moolenaar_ACEOF
85443955d011SMarcel Moolenaarac_clean_files=$ac_clean_files_save
85453955d011SMarcel Moolenaar
85463955d011SMarcel Moolenaartest $ac_write_fail = 0 ||
854749caa483SSimon J. Gerraty  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
85483955d011SMarcel Moolenaar
85493955d011SMarcel Moolenaar
85503955d011SMarcel Moolenaar# configure is writing to config.log, and then calls config.status.
85513955d011SMarcel Moolenaar# config.status does its own redirection, appending to config.log.
85523955d011SMarcel Moolenaar# Unfortunately, on DOS this fails, as config.log is still kept open
85533955d011SMarcel Moolenaar# by configure, so config.status won't be able to write to it; its
85543955d011SMarcel Moolenaar# output is simply discarded.  So we exec the FD to /dev/null,
85553955d011SMarcel Moolenaar# effectively closing config.log, so it can be properly (re)opened and
85563955d011SMarcel Moolenaar# appended to by config.status.  When coming back to configure, we
85573955d011SMarcel Moolenaar# need to make the FD available again.
85583955d011SMarcel Moolenaarif test "$no_create" != yes; then
85593955d011SMarcel Moolenaar  ac_cs_success=:
85603955d011SMarcel Moolenaar  ac_config_status_args=
85613955d011SMarcel Moolenaar  test "$silent" = yes &&
85623955d011SMarcel Moolenaar    ac_config_status_args="$ac_config_status_args --quiet"
85633955d011SMarcel Moolenaar  exec 5>/dev/null
85643955d011SMarcel Moolenaar  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
85653955d011SMarcel Moolenaar  exec 5>>config.log
85663955d011SMarcel Moolenaar  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
85673955d011SMarcel Moolenaar  # would make configure fail if this is the last instruction.
856849caa483SSimon J. Gerraty  $ac_cs_success || as_fn_exit 1
85693955d011SMarcel Moolenaarfi
85703955d011SMarcel Moolenaarif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
85714fde40d9SSimon J. Gerraty  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
85724fde40d9SSimon J. Gerratyprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
85733955d011SMarcel Moolenaarfi
85743955d011SMarcel Moolenaar
85753955d011SMarcel Moolenaarcat <<EOF
85763955d011SMarcel Moolenaar
85773955d011SMarcel MoolenaarYou can now run
85783955d011SMarcel Moolenaar
85793955d011SMarcel Moolenaar	sh ./make-bootstrap.sh
85803955d011SMarcel Moolenaar
85813955d011SMarcel Moolenaarto produce a fully functional bmake.
85823955d011SMarcel Moolenaar
85833955d011SMarcel MoolenaarEOF
85844fde40d9SSimon J. Gerraty
8585