xref: /netbsd-src/external/bsd/less/dist/configure (revision e4a6e799a67c2028562d75b4e61407b22434aa36)
120006a0bStron#! /bin/sh
220006a0bStron# Guess values for system-dependent variables and create Makefiles.
3*e4a6e799Ssimonb# Generated by GNU Autoconf 2.71 for less 1.
420006a0bStron#
520006a0bStron#
6*e4a6e799Ssimonb# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7*e4a6e799Ssimonb# Inc.
820006a0bStron#
920006a0bStron#
1020006a0bStron# This configure script is free software; the Free Software Foundation
1120006a0bStron# gives unlimited permission to copy, distribute and modify it.
1220006a0bStron## -------------------- ##
1320006a0bStron## M4sh Initialization. ##
1420006a0bStron## -------------------- ##
1520006a0bStron
1620006a0bStron# Be more Bourne compatible
1720006a0bStronDUALCASE=1; export DUALCASE # for MKS sh
18*e4a6e799Ssimonbas_nop=:
19*e4a6e799Ssimonbif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20*e4a6e799Ssimonbthen :
2120006a0bStron  emulate sh
2220006a0bStron  NULLCMD=:
2320006a0bStron  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2420006a0bStron  # is contrary to our usage.  Disable this feature.
2520006a0bStron  alias -g '${1+"$@"}'='"$@"'
2620006a0bStron  setopt NO_GLOB_SUBST
27*e4a6e799Ssimonbelse $as_nop
2820006a0bStron  case `(set -o) 2>/dev/null` in #(
2920006a0bStron  *posix*) :
3020006a0bStron    set -o posix ;; #(
3120006a0bStron  *) :
3220006a0bStron     ;;
3320006a0bStronesac
3420006a0bStronfi
3520006a0bStron
3620006a0bStron
37*e4a6e799Ssimonb
38*e4a6e799Ssimonb# Reset variables that may have inherited troublesome values from
39*e4a6e799Ssimonb# the environment.
40*e4a6e799Ssimonb
41*e4a6e799Ssimonb# IFS needs to be set, to space, tab, and newline, in precisely that order.
42*e4a6e799Ssimonb# (If _AS_PATH_WALK were called with IFS unset, it would have the
43*e4a6e799Ssimonb# side effect of setting IFS to empty, thus disabling word splitting.)
44*e4a6e799Ssimonb# Quoting is to prevent editors from complaining about space-tab.
4520006a0bStronas_nl='
4620006a0bStron'
4720006a0bStronexport as_nl
48*e4a6e799SsimonbIFS=" ""	$as_nl"
49*e4a6e799Ssimonb
50*e4a6e799SsimonbPS1='$ '
51*e4a6e799SsimonbPS2='> '
52*e4a6e799SsimonbPS4='+ '
53*e4a6e799Ssimonb
54*e4a6e799Ssimonb# Ensure predictable behavior from utilities with locale-dependent output.
55*e4a6e799SsimonbLC_ALL=C
56*e4a6e799Ssimonbexport LC_ALL
57*e4a6e799SsimonbLANGUAGE=C
58*e4a6e799Ssimonbexport LANGUAGE
59*e4a6e799Ssimonb
60*e4a6e799Ssimonb# We cannot yet rely on "unset" to work, but we need these variables
61*e4a6e799Ssimonb# to be unset--not just set to an empty or harmless value--now, to
62*e4a6e799Ssimonb# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63*e4a6e799Ssimonb# also avoids known problems related to "unset" and subshell syntax
64*e4a6e799Ssimonb# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65*e4a6e799Ssimonbfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66*e4a6e799Ssimonbdo eval test \${$as_var+y} \
67*e4a6e799Ssimonb  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68*e4a6e799Ssimonbdone
69*e4a6e799Ssimonb
70*e4a6e799Ssimonb# Ensure that fds 0, 1, and 2 are open.
71*e4a6e799Ssimonbif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72*e4a6e799Ssimonbif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73*e4a6e799Ssimonbif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
7420006a0bStron
7520006a0bStron# The user is always right.
76*e4a6e799Ssimonbif ${PATH_SEPARATOR+false} :; then
7720006a0bStron  PATH_SEPARATOR=:
7820006a0bStron  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7920006a0bStron    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8020006a0bStron      PATH_SEPARATOR=';'
8120006a0bStron  }
8220006a0bStronfi
8320006a0bStron
8420006a0bStron
8520006a0bStron# Find who we are.  Look in the path if we contain no directory separator.
86749ad2faStronas_myself=
8720006a0bStroncase $0 in #((
8820006a0bStron  *[\\/]* ) as_myself=$0 ;;
8920006a0bStron  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020006a0bStronfor as_dir in $PATH
9120006a0bStrondo
9220006a0bStron  IFS=$as_save_IFS
93*e4a6e799Ssimonb  case $as_dir in #(((
94*e4a6e799Ssimonb    '') as_dir=./ ;;
95*e4a6e799Ssimonb    */) ;;
96*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
97*e4a6e799Ssimonb  esac
98*e4a6e799Ssimonb    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9920006a0bStron  done
10020006a0bStronIFS=$as_save_IFS
10120006a0bStron
10220006a0bStron     ;;
10320006a0bStronesac
10420006a0bStron# We did not find ourselves, most probably we were run as `sh COMMAND'
10520006a0bStron# in which case we are not to be found in the path.
10620006a0bStronif test "x$as_myself" = x; then
10720006a0bStron  as_myself=$0
10820006a0bStronfi
10920006a0bStronif test ! -f "$as_myself"; then
110*e4a6e799Ssimonb  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11120006a0bStron  exit 1
11220006a0bStronfi
11320006a0bStron
11420006a0bStron
115*e4a6e799Ssimonb# Use a proper internal environment variable to ensure we don't fall
116*e4a6e799Ssimonb  # into an infinite loop, continuously re-executing ourselves.
117*e4a6e799Ssimonb  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118*e4a6e799Ssimonb    _as_can_reexec=no; export _as_can_reexec;
119*e4a6e799Ssimonb    # We cannot yet assume a decent shell, so we have to provide a
120*e4a6e799Ssimonb# neutralization value for shells without unset; and this also
121*e4a6e799Ssimonb# works around shells that cannot unset nonexistent variables.
122*e4a6e799Ssimonb# Preserve -v and -x to the replacement shell.
123*e4a6e799SsimonbBASH_ENV=/dev/null
124*e4a6e799SsimonbENV=/dev/null
125*e4a6e799Ssimonb(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126*e4a6e799Ssimonbcase $- in # ((((
127*e4a6e799Ssimonb  *v*x* | *x*v* ) as_opts=-vx ;;
128*e4a6e799Ssimonb  *v* ) as_opts=-v ;;
129*e4a6e799Ssimonb  *x* ) as_opts=-x ;;
130*e4a6e799Ssimonb  * ) as_opts= ;;
131*e4a6e799Ssimonbesac
132*e4a6e799Ssimonbexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133*e4a6e799Ssimonb# Admittedly, this is quite paranoid, since all the known shells bail
134*e4a6e799Ssimonb# out after a failed `exec'.
135*e4a6e799Ssimonbprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136*e4a6e799Ssimonbexit 255
137*e4a6e799Ssimonb  fi
138*e4a6e799Ssimonb  # We don't want this to propagate to other subprocesses.
139*e4a6e799Ssimonb          { _as_can_reexec=; unset _as_can_reexec;}
14020006a0bStronif test "x$CONFIG_SHELL" = x; then
141*e4a6e799Ssimonb  as_bourne_compatible="as_nop=:
142*e4a6e799Ssimonbif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143*e4a6e799Ssimonbthen :
14420006a0bStron  emulate sh
14520006a0bStron  NULLCMD=:
14620006a0bStron  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14720006a0bStron  # is contrary to our usage.  Disable this feature.
14820006a0bStron  alias -g '\${1+\"\$@\"}'='\"\$@\"'
14920006a0bStron  setopt NO_GLOB_SUBST
150*e4a6e799Ssimonbelse \$as_nop
15120006a0bStron  case \`(set -o) 2>/dev/null\` in #(
15220006a0bStron  *posix*) :
15320006a0bStron    set -o posix ;; #(
15420006a0bStron  *) :
15520006a0bStron     ;;
15620006a0bStronesac
15720006a0bStronfi
15820006a0bStron"
15920006a0bStron  as_required="as_fn_return () { (exit \$1); }
16020006a0bStronas_fn_success () { as_fn_return 0; }
16120006a0bStronas_fn_failure () { as_fn_return 1; }
16220006a0bStronas_fn_ret_success () { return 0; }
16320006a0bStronas_fn_ret_failure () { return 1; }
16420006a0bStron
16520006a0bStronexitcode=0
16620006a0bStronas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16720006a0bStronas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
16820006a0bStronas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
16920006a0bStronas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170*e4a6e799Ssimonbif ( set x; as_fn_ret_success y && test x = \"\$1\" )
171*e4a6e799Ssimonbthen :
17220006a0bStron
173*e4a6e799Ssimonbelse \$as_nop
17420006a0bStron  exitcode=1; echo positional parameters were not saved.
17520006a0bStronfi
176*e4a6e799Ssimonbtest x\$exitcode = x0 || exit 1
177*e4a6e799Ssimonbblah=\$(echo \$(echo blah))
178*e4a6e799Ssimonbtest x\"\$blah\" = xblah || exit 1
179*e4a6e799Ssimonbtest -x / || exit 1"
18020006a0bStron  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
18120006a0bStron  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
18220006a0bStron  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
18320006a0bStron  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
18420006a0bStrontest \$(( 1 + 1 )) = 2 || exit 1"
185*e4a6e799Ssimonb  if (eval "$as_required") 2>/dev/null
186*e4a6e799Ssimonbthen :
18720006a0bStron  as_have_required=yes
188*e4a6e799Ssimonbelse $as_nop
18920006a0bStron  as_have_required=no
19020006a0bStronfi
191*e4a6e799Ssimonb  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192*e4a6e799Ssimonbthen :
19320006a0bStron
194*e4a6e799Ssimonbelse $as_nop
19520006a0bStron  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19620006a0bStronas_found=false
19720006a0bStronfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19820006a0bStrondo
19920006a0bStron  IFS=$as_save_IFS
200*e4a6e799Ssimonb  case $as_dir in #(((
201*e4a6e799Ssimonb    '') as_dir=./ ;;
202*e4a6e799Ssimonb    */) ;;
203*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
204*e4a6e799Ssimonb  esac
20520006a0bStron  as_found=:
20620006a0bStron  case $as_dir in #(
20720006a0bStron	 /*)
20820006a0bStron	   for as_base in sh bash ksh sh5; do
20920006a0bStron	     # Try only shells that exist, to save several forks.
210*e4a6e799Ssimonb	     as_shell=$as_dir$as_base
21120006a0bStron	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212*e4a6e799Ssimonb		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213*e4a6e799Ssimonbthen :
21420006a0bStron  CONFIG_SHELL=$as_shell as_have_required=yes
215*e4a6e799Ssimonb		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216*e4a6e799Ssimonbthen :
21720006a0bStron  break 2
21820006a0bStronfi
21920006a0bStronfi
22020006a0bStron	   done;;
22120006a0bStron       esac
22220006a0bStron  as_found=false
22320006a0bStrondone
22420006a0bStronIFS=$as_save_IFS
225*e4a6e799Ssimonbif $as_found
226*e4a6e799Ssimonbthen :
227*e4a6e799Ssimonb
228*e4a6e799Ssimonbelse $as_nop
229*e4a6e799Ssimonb  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230*e4a6e799Ssimonb	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231*e4a6e799Ssimonbthen :
232*e4a6e799Ssimonb  CONFIG_SHELL=$SHELL as_have_required=yes
233*e4a6e799Ssimonbfi
234*e4a6e799Ssimonbfi
23520006a0bStron
23620006a0bStron
237*e4a6e799Ssimonb      if test "x$CONFIG_SHELL" != x
238*e4a6e799Ssimonbthen :
239*e4a6e799Ssimonb  export CONFIG_SHELL
24020006a0bStron             # We cannot yet assume a decent shell, so we have to provide a
24120006a0bStron# neutralization value for shells without unset; and this also
24220006a0bStron# works around shells that cannot unset nonexistent variables.
243749ad2faStron# Preserve -v and -x to the replacement shell.
24420006a0bStronBASH_ENV=/dev/null
24520006a0bStronENV=/dev/null
24620006a0bStron(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247749ad2faStroncase $- in # ((((
248749ad2faStron  *v*x* | *x*v* ) as_opts=-vx ;;
249749ad2faStron  *v* ) as_opts=-v ;;
250749ad2faStron  *x* ) as_opts=-x ;;
251749ad2faStron  * ) as_opts= ;;
252749ad2faStronesac
253*e4a6e799Ssimonbexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254*e4a6e799Ssimonb# Admittedly, this is quite paranoid, since all the known shells bail
255*e4a6e799Ssimonb# out after a failed `exec'.
256*e4a6e799Ssimonbprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257*e4a6e799Ssimonbexit 255
25820006a0bStronfi
25920006a0bStron
260*e4a6e799Ssimonb    if test x$as_have_required = xno
261*e4a6e799Ssimonbthen :
262*e4a6e799Ssimonb  printf "%s\n" "$0: This script requires a shell more modern than all"
263*e4a6e799Ssimonb  printf "%s\n" "$0: the shells that I found on your system."
264*e4a6e799Ssimonb  if test ${ZSH_VERSION+y} ; then
265*e4a6e799Ssimonb    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266*e4a6e799Ssimonb    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
26720006a0bStron  else
268*e4a6e799Ssimonb    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
26920006a0bStron$0: including any error possibly output before this
27020006a0bStron$0: message. Then install a modern shell, or manually run
27120006a0bStron$0: the script under such a shell if you do have one."
27220006a0bStron  fi
27320006a0bStron  exit 1
27420006a0bStronfi
27520006a0bStronfi
27620006a0bStronfi
27720006a0bStronSHELL=${CONFIG_SHELL-/bin/sh}
27820006a0bStronexport SHELL
27920006a0bStron# Unset more variables known to interfere with behavior of common tools.
28020006a0bStronCLICOLOR_FORCE= GREP_OPTIONS=
28120006a0bStronunset CLICOLOR_FORCE GREP_OPTIONS
28220006a0bStron
28320006a0bStron## --------------------- ##
28420006a0bStron## M4sh Shell Functions. ##
28520006a0bStron## --------------------- ##
28620006a0bStron# as_fn_unset VAR
28720006a0bStron# ---------------
28820006a0bStron# Portably unset VAR.
28920006a0bStronas_fn_unset ()
29020006a0bStron{
29120006a0bStron  { eval $1=; unset $1;}
29220006a0bStron}
29320006a0bStronas_unset=as_fn_unset
29420006a0bStron
295*e4a6e799Ssimonb
29620006a0bStron# as_fn_set_status STATUS
29720006a0bStron# -----------------------
29820006a0bStron# Set $? to STATUS, without forking.
29920006a0bStronas_fn_set_status ()
30020006a0bStron{
30120006a0bStron  return $1
30220006a0bStron} # as_fn_set_status
30320006a0bStron
30420006a0bStron# as_fn_exit STATUS
30520006a0bStron# -----------------
30620006a0bStron# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30720006a0bStronas_fn_exit ()
30820006a0bStron{
30920006a0bStron  set +e
31020006a0bStron  as_fn_set_status $1
31120006a0bStron  exit $1
31220006a0bStron} # as_fn_exit
313*e4a6e799Ssimonb# as_fn_nop
314*e4a6e799Ssimonb# ---------
315*e4a6e799Ssimonb# Do nothing but, unlike ":", preserve the value of $?.
316*e4a6e799Ssimonbas_fn_nop ()
317*e4a6e799Ssimonb{
318*e4a6e799Ssimonb  return $?
319*e4a6e799Ssimonb}
320*e4a6e799Ssimonbas_nop=as_fn_nop
32120006a0bStron
32220006a0bStron# as_fn_mkdir_p
32320006a0bStron# -------------
32420006a0bStron# Create "$as_dir" as a directory, including parents if necessary.
32520006a0bStronas_fn_mkdir_p ()
32620006a0bStron{
32720006a0bStron
32820006a0bStron  case $as_dir in #(
32920006a0bStron  -*) as_dir=./$as_dir;;
33020006a0bStron  esac
33120006a0bStron  test -d "$as_dir" || eval $as_mkdir_p || {
33220006a0bStron    as_dirs=
33320006a0bStron    while :; do
33420006a0bStron      case $as_dir in #(
335*e4a6e799Ssimonb      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33620006a0bStron      *) as_qdir=$as_dir;;
33720006a0bStron      esac
33820006a0bStron      as_dirs="'$as_qdir' $as_dirs"
33920006a0bStron      as_dir=`$as_dirname -- "$as_dir" ||
34020006a0bStron$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34120006a0bStron	 X"$as_dir" : 'X\(//\)[^/]' \| \
34220006a0bStron	 X"$as_dir" : 'X\(//\)$' \| \
34320006a0bStron	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344*e4a6e799Ssimonbprintf "%s\n" X"$as_dir" |
34520006a0bStron    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34620006a0bStron	    s//\1/
34720006a0bStron	    q
34820006a0bStron	  }
34920006a0bStron	  /^X\(\/\/\)[^/].*/{
35020006a0bStron	    s//\1/
35120006a0bStron	    q
35220006a0bStron	  }
35320006a0bStron	  /^X\(\/\/\)$/{
35420006a0bStron	    s//\1/
35520006a0bStron	    q
35620006a0bStron	  }
35720006a0bStron	  /^X\(\/\).*/{
35820006a0bStron	    s//\1/
35920006a0bStron	    q
36020006a0bStron	  }
36120006a0bStron	  s/.*/./; q'`
36220006a0bStron      test -d "$as_dir" && break
36320006a0bStron    done
36420006a0bStron    test -z "$as_dirs" || eval "mkdir $as_dirs"
36520006a0bStron  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36620006a0bStron
36720006a0bStron
36820006a0bStron} # as_fn_mkdir_p
369*e4a6e799Ssimonb
370*e4a6e799Ssimonb# as_fn_executable_p FILE
371*e4a6e799Ssimonb# -----------------------
372*e4a6e799Ssimonb# Test if FILE is an executable regular file.
373*e4a6e799Ssimonbas_fn_executable_p ()
374*e4a6e799Ssimonb{
375*e4a6e799Ssimonb  test -f "$1" && test -x "$1"
376*e4a6e799Ssimonb} # as_fn_executable_p
37720006a0bStron# as_fn_append VAR VALUE
37820006a0bStron# ----------------------
37920006a0bStron# Append the text in VALUE to the end of the definition contained in VAR. Take
38020006a0bStron# advantage of any shell optimizations that allow amortized linear growth over
38120006a0bStron# repeated appends, instead of the typical quadratic growth present in naive
38220006a0bStron# implementations.
383*e4a6e799Ssimonbif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384*e4a6e799Ssimonbthen :
38520006a0bStron  eval 'as_fn_append ()
38620006a0bStron  {
38720006a0bStron    eval $1+=\$2
38820006a0bStron  }'
389*e4a6e799Ssimonbelse $as_nop
39020006a0bStron  as_fn_append ()
39120006a0bStron  {
39220006a0bStron    eval $1=\$$1\$2
39320006a0bStron  }
39420006a0bStronfi # as_fn_append
39520006a0bStron
39620006a0bStron# as_fn_arith ARG...
39720006a0bStron# ------------------
39820006a0bStron# Perform arithmetic evaluation on the ARGs, and store the result in the
39920006a0bStron# global $as_val. Take advantage of shells that can avoid forks. The arguments
40020006a0bStron# must be portable across $(()) and expr.
401*e4a6e799Ssimonbif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402*e4a6e799Ssimonbthen :
40320006a0bStron  eval 'as_fn_arith ()
40420006a0bStron  {
40520006a0bStron    as_val=$(( $* ))
40620006a0bStron  }'
407*e4a6e799Ssimonbelse $as_nop
40820006a0bStron  as_fn_arith ()
40920006a0bStron  {
41020006a0bStron    as_val=`expr "$@" || test $? -eq 1`
41120006a0bStron  }
41220006a0bStronfi # as_fn_arith
41320006a0bStron
414*e4a6e799Ssimonb# as_fn_nop
415*e4a6e799Ssimonb# ---------
416*e4a6e799Ssimonb# Do nothing but, unlike ":", preserve the value of $?.
417*e4a6e799Ssimonbas_fn_nop ()
418*e4a6e799Ssimonb{
419*e4a6e799Ssimonb  return $?
420*e4a6e799Ssimonb}
421*e4a6e799Ssimonbas_nop=as_fn_nop
42220006a0bStron
42320006a0bStron# as_fn_error STATUS ERROR [LINENO LOG_FD]
42420006a0bStron# ----------------------------------------
42520006a0bStron# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
42620006a0bStron# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
42720006a0bStron# script with STATUS, using 1 if that was 0.
42820006a0bStronas_fn_error ()
42920006a0bStron{
43020006a0bStron  as_status=$1; test $as_status -eq 0 && as_status=1
43120006a0bStron  if test "$4"; then
43220006a0bStron    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433*e4a6e799Ssimonb    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
43420006a0bStron  fi
435*e4a6e799Ssimonb  printf "%s\n" "$as_me: error: $2" >&2
43620006a0bStron  as_fn_exit $as_status
43720006a0bStron} # as_fn_error
43820006a0bStron
43920006a0bStronif expr a : '\(a\)' >/dev/null 2>&1 &&
44020006a0bStron   test "X`expr 00001 : '.*\(...\)'`" = X001; then
44120006a0bStron  as_expr=expr
44220006a0bStronelse
44320006a0bStron  as_expr=false
44420006a0bStronfi
44520006a0bStron
44620006a0bStronif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44720006a0bStron  as_basename=basename
44820006a0bStronelse
44920006a0bStron  as_basename=false
45020006a0bStronfi
45120006a0bStron
45220006a0bStronif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45320006a0bStron  as_dirname=dirname
45420006a0bStronelse
45520006a0bStron  as_dirname=false
45620006a0bStronfi
45720006a0bStron
45820006a0bStronas_me=`$as_basename -- "$0" ||
45920006a0bStron$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46020006a0bStron	 X"$0" : 'X\(//\)$' \| \
46120006a0bStron	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462*e4a6e799Ssimonbprintf "%s\n" X/"$0" |
46320006a0bStron    sed '/^.*\/\([^/][^/]*\)\/*$/{
46420006a0bStron	    s//\1/
46520006a0bStron	    q
46620006a0bStron	  }
46720006a0bStron	  /^X\/\(\/\/\)$/{
46820006a0bStron	    s//\1/
46920006a0bStron	    q
47020006a0bStron	  }
47120006a0bStron	  /^X\/\(\/\).*/{
47220006a0bStron	    s//\1/
47320006a0bStron	    q
47420006a0bStron	  }
47520006a0bStron	  s/.*/./; q'`
47620006a0bStron
47720006a0bStron# Avoid depending upon Character Ranges.
47820006a0bStronas_cr_letters='abcdefghijklmnopqrstuvwxyz'
47920006a0bStronas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48020006a0bStronas_cr_Letters=$as_cr_letters$as_cr_LETTERS
48120006a0bStronas_cr_digits='0123456789'
48220006a0bStronas_cr_alnum=$as_cr_Letters$as_cr_digits
48320006a0bStron
48420006a0bStron
48520006a0bStron  as_lineno_1=$LINENO as_lineno_1a=$LINENO
48620006a0bStron  as_lineno_2=$LINENO as_lineno_2a=$LINENO
48720006a0bStron  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
48820006a0bStron  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
48920006a0bStron  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
49020006a0bStron  sed -n '
49120006a0bStron    p
49220006a0bStron    /[$]LINENO/=
49320006a0bStron  ' <$as_myself |
49420006a0bStron    sed '
49520006a0bStron      s/[$]LINENO.*/&-/
49620006a0bStron      t lineno
49720006a0bStron      b
49820006a0bStron      :lineno
49920006a0bStron      N
50020006a0bStron      :loop
50120006a0bStron      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50220006a0bStron      t loop
50320006a0bStron      s/-\n.*//
50420006a0bStron    ' >$as_me.lineno &&
50520006a0bStron  chmod +x "$as_me.lineno" ||
506*e4a6e799Ssimonb    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
50720006a0bStron
508*e4a6e799Ssimonb  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509*e4a6e799Ssimonb  # already done that, so ensure we don't try to do so again and fall
510*e4a6e799Ssimonb  # in an infinite loop.  This has already happened in practice.
511*e4a6e799Ssimonb  _as_can_reexec=no; export _as_can_reexec
51220006a0bStron  # Don't try to exec as it changes $[0], causing all sort of problems
51320006a0bStron  # (the dirname of $[0] is not the place where we might find the
51420006a0bStron  # original and so on.  Autoconf is especially sensitive to this).
51520006a0bStron  . "./$as_me.lineno"
51620006a0bStron  # Exit status is that of the last command.
51720006a0bStron  exit
51820006a0bStron}
51920006a0bStron
520*e4a6e799Ssimonb
521*e4a6e799Ssimonb# Determine whether it's possible to make 'echo' print without a newline.
522*e4a6e799Ssimonb# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523*e4a6e799Ssimonb# for compatibility with existing Makefiles.
52420006a0bStronECHO_C= ECHO_N= ECHO_T=
52520006a0bStroncase `echo -n x` in #(((((
52620006a0bStron-n*)
52720006a0bStron  case `echo 'xy\c'` in
52820006a0bStron  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
52920006a0bStron  xy)  ECHO_C='\c';;
53020006a0bStron  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
53120006a0bStron       ECHO_T='	';;
53220006a0bStron  esac;;
53320006a0bStron*)
53420006a0bStron  ECHO_N='-n';;
53520006a0bStronesac
53620006a0bStron
537*e4a6e799Ssimonb# For backward compatibility with old third-party macros, we provide
538*e4a6e799Ssimonb# the shell variables $as_echo and $as_echo_n.  New code should use
539*e4a6e799Ssimonb# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540*e4a6e799Ssimonbas_echo='printf %s\n'
541*e4a6e799Ssimonbas_echo_n='printf %s'
542*e4a6e799Ssimonb
543*e4a6e799Ssimonb
54420006a0bStronrm -f conf$$ conf$$.exe conf$$.file
54520006a0bStronif test -d conf$$.dir; then
54620006a0bStron  rm -f conf$$.dir/conf$$.file
54720006a0bStronelse
54820006a0bStron  rm -f conf$$.dir
54920006a0bStron  mkdir conf$$.dir 2>/dev/null
55020006a0bStronfi
55120006a0bStronif (echo >conf$$.file) 2>/dev/null; then
55220006a0bStron  if ln -s conf$$.file conf$$ 2>/dev/null; then
55320006a0bStron    as_ln_s='ln -s'
55420006a0bStron    # ... but there are two gotchas:
55520006a0bStron    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
55620006a0bStron    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557*e4a6e799Ssimonb    # In both cases, we have to default to `cp -pR'.
55820006a0bStron    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559*e4a6e799Ssimonb      as_ln_s='cp -pR'
56020006a0bStron  elif ln conf$$.file conf$$ 2>/dev/null; then
56120006a0bStron    as_ln_s=ln
56220006a0bStron  else
563*e4a6e799Ssimonb    as_ln_s='cp -pR'
56420006a0bStron  fi
56520006a0bStronelse
566*e4a6e799Ssimonb  as_ln_s='cp -pR'
56720006a0bStronfi
56820006a0bStronrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56920006a0bStronrmdir conf$$.dir 2>/dev/null
57020006a0bStron
57120006a0bStronif mkdir -p . 2>/dev/null; then
57220006a0bStron  as_mkdir_p='mkdir -p "$as_dir"'
57320006a0bStronelse
57420006a0bStron  test -d ./-p && rmdir ./-p
57520006a0bStron  as_mkdir_p=false
57620006a0bStronfi
57720006a0bStron
57820006a0bStronas_test_x='test -x'
579*e4a6e799Ssimonbas_executable_p=as_fn_executable_p
58020006a0bStron
58120006a0bStron# Sed expression to map a string onto a valid CPP name.
58220006a0bStronas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
58320006a0bStron
58420006a0bStron# Sed expression to map a string onto a valid variable name.
58520006a0bStronas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
58620006a0bStron
58720006a0bStron
58820006a0bStrontest -n "$DJDIR" || exec 7<&0 </dev/null
58920006a0bStronexec 6>&1
59020006a0bStron
59120006a0bStron# Name of the host.
59220006a0bStron# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
59320006a0bStron# so uname gets run too.
59420006a0bStronac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
59520006a0bStron
59620006a0bStron#
59720006a0bStron# Initializations.
59820006a0bStron#
59920006a0bStronac_default_prefix=/usr/local
60020006a0bStronac_clean_files=
60120006a0bStronac_config_libobj_dir=.
60220006a0bStronLIBOBJS=
60320006a0bStroncross_compiling=no
60420006a0bStronsubdirs=
60520006a0bStronMFLAGS=
60620006a0bStronMAKEFLAGS=
60720006a0bStron
60820006a0bStron# Identity of this package.
60920006a0bStronPACKAGE_NAME='less'
61020006a0bStronPACKAGE_TARNAME='less'
61120006a0bStronPACKAGE_VERSION='1'
61220006a0bStronPACKAGE_STRING='less 1'
61320006a0bStronPACKAGE_BUGREPORT=''
61420006a0bStronPACKAGE_URL=''
61520006a0bStron
61620006a0bStronac_unique_file="forwback.c"
61720006a0bStron# Factoring default headers for most tests.
61820006a0bStronac_includes_default="\
61920006a0bStron#include <stddef.h>
620*e4a6e799Ssimonb#ifdef HAVE_STDIO_H
621*e4a6e799Ssimonb# include <stdio.h>
622*e4a6e799Ssimonb#endif
62320006a0bStron#ifdef HAVE_STDLIB_H
62420006a0bStron# include <stdlib.h>
62520006a0bStron#endif
62620006a0bStron#ifdef HAVE_STRING_H
62720006a0bStron# include <string.h>
62820006a0bStron#endif
62920006a0bStron#ifdef HAVE_INTTYPES_H
63020006a0bStron# include <inttypes.h>
63120006a0bStron#endif
63220006a0bStron#ifdef HAVE_STDINT_H
63320006a0bStron# include <stdint.h>
63420006a0bStron#endif
635*e4a6e799Ssimonb#ifdef HAVE_STRINGS_H
636*e4a6e799Ssimonb# include <strings.h>
637*e4a6e799Ssimonb#endif
638*e4a6e799Ssimonb#ifdef HAVE_SYS_TYPES_H
639*e4a6e799Ssimonb# include <sys/types.h>
640*e4a6e799Ssimonb#endif
641*e4a6e799Ssimonb#ifdef HAVE_SYS_STAT_H
642*e4a6e799Ssimonb# include <sys/stat.h>
643*e4a6e799Ssimonb#endif
64420006a0bStron#ifdef HAVE_UNISTD_H
64520006a0bStron# include <unistd.h>
64620006a0bStron#endif"
64720006a0bStron
648*e4a6e799Ssimonbac_header_c_list=
64920006a0bStronac_subst_vars='LTLIBOBJS
65020006a0bStronLIBOBJS
65120006a0bStronREGEX_O
652*e4a6e799SsimonbSECURE_COMPILE
65320006a0bStronINSTALL_DATA
65420006a0bStronINSTALL_SCRIPT
65520006a0bStronINSTALL_PROGRAM
65620006a0bStronEGREP
65720006a0bStronGREP
65820006a0bStronCPP
65920006a0bStronOBJEXT
66020006a0bStronEXEEXT
66120006a0bStronac_ct_CC
66220006a0bStronCPPFLAGS
66320006a0bStronLDFLAGS
66420006a0bStronCFLAGS
66520006a0bStronCC
66620006a0bStrontarget_alias
66720006a0bStronhost_alias
66820006a0bStronbuild_alias
66920006a0bStronLIBS
67020006a0bStronECHO_T
67120006a0bStronECHO_N
67220006a0bStronECHO_C
67320006a0bStronDEFS
67420006a0bStronmandir
67520006a0bStronlocaledir
67620006a0bStronlibdir
67720006a0bStronpsdir
67820006a0bStronpdfdir
67920006a0bStrondvidir
68020006a0bStronhtmldir
68120006a0bStroninfodir
68220006a0bStrondocdir
68320006a0bStronoldincludedir
68420006a0bStronincludedir
685*e4a6e799Ssimonbrunstatedir
68620006a0bStronlocalstatedir
68720006a0bStronsharedstatedir
68820006a0bStronsysconfdir
68920006a0bStrondatadir
69020006a0bStrondatarootdir
69120006a0bStronlibexecdir
69220006a0bStronsbindir
69320006a0bStronbindir
69420006a0bStronprogram_transform_name
69520006a0bStronprefix
69620006a0bStronexec_prefix
69720006a0bStronPACKAGE_URL
69820006a0bStronPACKAGE_BUGREPORT
69920006a0bStronPACKAGE_STRING
70020006a0bStronPACKAGE_VERSION
70120006a0bStronPACKAGE_TARNAME
70220006a0bStronPACKAGE_NAME
70320006a0bStronPATH_SEPARATOR
70420006a0bStronSHELL'
70520006a0bStronac_subst_files=''
70620006a0bStronac_user_opts='
70720006a0bStronenable_option_checking
70820006a0bStronenable_largefile
70920006a0bStronwith_secure
71020006a0bStronwith_regex
71120006a0bStronwith_editor
71220006a0bStron'
71320006a0bStron      ac_precious_vars='build_alias
71420006a0bStronhost_alias
71520006a0bStrontarget_alias
71620006a0bStronCC
71720006a0bStronCFLAGS
71820006a0bStronLDFLAGS
71920006a0bStronLIBS
72020006a0bStronCPPFLAGS
72120006a0bStronCPP'
72220006a0bStron
72320006a0bStron
72420006a0bStron# Initialize some variables set by options.
72520006a0bStronac_init_help=
72620006a0bStronac_init_version=false
72720006a0bStronac_unrecognized_opts=
72820006a0bStronac_unrecognized_sep=
72920006a0bStron# The variables have the same names as the options, with
73020006a0bStron# dashes changed to underlines.
73120006a0bStroncache_file=/dev/null
73220006a0bStronexec_prefix=NONE
73320006a0bStronno_create=
73420006a0bStronno_recursion=
73520006a0bStronprefix=NONE
73620006a0bStronprogram_prefix=NONE
73720006a0bStronprogram_suffix=NONE
73820006a0bStronprogram_transform_name=s,x,x,
73920006a0bStronsilent=
74020006a0bStronsite=
74120006a0bStronsrcdir=
74220006a0bStronverbose=
74320006a0bStronx_includes=NONE
74420006a0bStronx_libraries=NONE
74520006a0bStron
74620006a0bStron# Installation directory options.
74720006a0bStron# These are left unexpanded so users can "make install exec_prefix=/foo"
74820006a0bStron# and all the variables that are supposed to be based on exec_prefix
74920006a0bStron# by default will actually change.
75020006a0bStron# Use braces instead of parens because sh, perl, etc. also accept them.
75120006a0bStron# (The list follows the same order as the GNU Coding Standards.)
75220006a0bStronbindir='${exec_prefix}/bin'
75320006a0bStronsbindir='${exec_prefix}/sbin'
75420006a0bStronlibexecdir='${exec_prefix}/libexec'
75520006a0bStrondatarootdir='${prefix}/share'
75620006a0bStrondatadir='${datarootdir}'
75720006a0bStronsysconfdir='${prefix}/etc'
75820006a0bStronsharedstatedir='${prefix}/com'
75920006a0bStronlocalstatedir='${prefix}/var'
760*e4a6e799Ssimonbrunstatedir='${localstatedir}/run'
76120006a0bStronincludedir='${prefix}/include'
76220006a0bStronoldincludedir='/usr/include'
76320006a0bStrondocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
76420006a0bStroninfodir='${datarootdir}/info'
76520006a0bStronhtmldir='${docdir}'
76620006a0bStrondvidir='${docdir}'
76720006a0bStronpdfdir='${docdir}'
76820006a0bStronpsdir='${docdir}'
76920006a0bStronlibdir='${exec_prefix}/lib'
77020006a0bStronlocaledir='${datarootdir}/locale'
77120006a0bStronmandir='${datarootdir}/man'
77220006a0bStron
77320006a0bStronac_prev=
77420006a0bStronac_dashdash=
77520006a0bStronfor ac_option
77620006a0bStrondo
77720006a0bStron  # If the previous option needs an argument, assign it.
77820006a0bStron  if test -n "$ac_prev"; then
77920006a0bStron    eval $ac_prev=\$ac_option
78020006a0bStron    ac_prev=
78120006a0bStron    continue
78220006a0bStron  fi
78320006a0bStron
78420006a0bStron  case $ac_option in
78520006a0bStron  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
78620006a0bStron  *=)   ac_optarg= ;;
78720006a0bStron  *)    ac_optarg=yes ;;
78820006a0bStron  esac
78920006a0bStron
79020006a0bStron  case $ac_dashdash$ac_option in
79120006a0bStron  --)
79220006a0bStron    ac_dashdash=yes ;;
79320006a0bStron
79420006a0bStron  -bindir | --bindir | --bindi | --bind | --bin | --bi)
79520006a0bStron    ac_prev=bindir ;;
79620006a0bStron  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79720006a0bStron    bindir=$ac_optarg ;;
79820006a0bStron
79920006a0bStron  -build | --build | --buil | --bui | --bu)
80020006a0bStron    ac_prev=build_alias ;;
80120006a0bStron  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
80220006a0bStron    build_alias=$ac_optarg ;;
80320006a0bStron
80420006a0bStron  -cache-file | --cache-file | --cache-fil | --cache-fi \
80520006a0bStron  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
80620006a0bStron    ac_prev=cache_file ;;
80720006a0bStron  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
80820006a0bStron  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
80920006a0bStron    cache_file=$ac_optarg ;;
81020006a0bStron
81120006a0bStron  --config-cache | -C)
81220006a0bStron    cache_file=config.cache ;;
81320006a0bStron
81420006a0bStron  -datadir | --datadir | --datadi | --datad)
81520006a0bStron    ac_prev=datadir ;;
81620006a0bStron  -datadir=* | --datadir=* | --datadi=* | --datad=*)
81720006a0bStron    datadir=$ac_optarg ;;
81820006a0bStron
81920006a0bStron  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
82020006a0bStron  | --dataroo | --dataro | --datar)
82120006a0bStron    ac_prev=datarootdir ;;
82220006a0bStron  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
82320006a0bStron  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
82420006a0bStron    datarootdir=$ac_optarg ;;
82520006a0bStron
82620006a0bStron  -disable-* | --disable-*)
82720006a0bStron    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
82820006a0bStron    # Reject names that are not valid shell variable names.
82920006a0bStron    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
830*e4a6e799Ssimonb      as_fn_error $? "invalid feature name: \`$ac_useropt'"
83120006a0bStron    ac_useropt_orig=$ac_useropt
832*e4a6e799Ssimonb    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
83320006a0bStron    case $ac_user_opts in
83420006a0bStron      *"
83520006a0bStron"enable_$ac_useropt"
83620006a0bStron"*) ;;
83720006a0bStron      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
83820006a0bStron	 ac_unrecognized_sep=', ';;
83920006a0bStron    esac
84020006a0bStron    eval enable_$ac_useropt=no ;;
84120006a0bStron
84220006a0bStron  -docdir | --docdir | --docdi | --doc | --do)
84320006a0bStron    ac_prev=docdir ;;
84420006a0bStron  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
84520006a0bStron    docdir=$ac_optarg ;;
84620006a0bStron
84720006a0bStron  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
84820006a0bStron    ac_prev=dvidir ;;
84920006a0bStron  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
85020006a0bStron    dvidir=$ac_optarg ;;
85120006a0bStron
85220006a0bStron  -enable-* | --enable-*)
85320006a0bStron    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
85420006a0bStron    # Reject names that are not valid shell variable names.
85520006a0bStron    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856*e4a6e799Ssimonb      as_fn_error $? "invalid feature name: \`$ac_useropt'"
85720006a0bStron    ac_useropt_orig=$ac_useropt
858*e4a6e799Ssimonb    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
85920006a0bStron    case $ac_user_opts in
86020006a0bStron      *"
86120006a0bStron"enable_$ac_useropt"
86220006a0bStron"*) ;;
86320006a0bStron      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
86420006a0bStron	 ac_unrecognized_sep=', ';;
86520006a0bStron    esac
86620006a0bStron    eval enable_$ac_useropt=\$ac_optarg ;;
86720006a0bStron
86820006a0bStron  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
86920006a0bStron  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
87020006a0bStron  | --exec | --exe | --ex)
87120006a0bStron    ac_prev=exec_prefix ;;
87220006a0bStron  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
87320006a0bStron  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
87420006a0bStron  | --exec=* | --exe=* | --ex=*)
87520006a0bStron    exec_prefix=$ac_optarg ;;
87620006a0bStron
87720006a0bStron  -gas | --gas | --ga | --g)
87820006a0bStron    # Obsolete; use --with-gas.
87920006a0bStron    with_gas=yes ;;
88020006a0bStron
88120006a0bStron  -help | --help | --hel | --he | -h)
88220006a0bStron    ac_init_help=long ;;
88320006a0bStron  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
88420006a0bStron    ac_init_help=recursive ;;
88520006a0bStron  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
88620006a0bStron    ac_init_help=short ;;
88720006a0bStron
88820006a0bStron  -host | --host | --hos | --ho)
88920006a0bStron    ac_prev=host_alias ;;
89020006a0bStron  -host=* | --host=* | --hos=* | --ho=*)
89120006a0bStron    host_alias=$ac_optarg ;;
89220006a0bStron
89320006a0bStron  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
89420006a0bStron    ac_prev=htmldir ;;
89520006a0bStron  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
89620006a0bStron  | --ht=*)
89720006a0bStron    htmldir=$ac_optarg ;;
89820006a0bStron
89920006a0bStron  -includedir | --includedir | --includedi | --included | --include \
90020006a0bStron  | --includ | --inclu | --incl | --inc)
90120006a0bStron    ac_prev=includedir ;;
90220006a0bStron  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
90320006a0bStron  | --includ=* | --inclu=* | --incl=* | --inc=*)
90420006a0bStron    includedir=$ac_optarg ;;
90520006a0bStron
90620006a0bStron  -infodir | --infodir | --infodi | --infod | --info | --inf)
90720006a0bStron    ac_prev=infodir ;;
90820006a0bStron  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
90920006a0bStron    infodir=$ac_optarg ;;
91020006a0bStron
91120006a0bStron  -libdir | --libdir | --libdi | --libd)
91220006a0bStron    ac_prev=libdir ;;
91320006a0bStron  -libdir=* | --libdir=* | --libdi=* | --libd=*)
91420006a0bStron    libdir=$ac_optarg ;;
91520006a0bStron
91620006a0bStron  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
91720006a0bStron  | --libexe | --libex | --libe)
91820006a0bStron    ac_prev=libexecdir ;;
91920006a0bStron  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
92020006a0bStron  | --libexe=* | --libex=* | --libe=*)
92120006a0bStron    libexecdir=$ac_optarg ;;
92220006a0bStron
92320006a0bStron  -localedir | --localedir | --localedi | --localed | --locale)
92420006a0bStron    ac_prev=localedir ;;
92520006a0bStron  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
92620006a0bStron    localedir=$ac_optarg ;;
92720006a0bStron
92820006a0bStron  -localstatedir | --localstatedir | --localstatedi | --localstated \
92920006a0bStron  | --localstate | --localstat | --localsta | --localst | --locals)
93020006a0bStron    ac_prev=localstatedir ;;
93120006a0bStron  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
93220006a0bStron  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
93320006a0bStron    localstatedir=$ac_optarg ;;
93420006a0bStron
93520006a0bStron  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
93620006a0bStron    ac_prev=mandir ;;
93720006a0bStron  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
93820006a0bStron    mandir=$ac_optarg ;;
93920006a0bStron
94020006a0bStron  -nfp | --nfp | --nf)
94120006a0bStron    # Obsolete; use --without-fp.
94220006a0bStron    with_fp=no ;;
94320006a0bStron
94420006a0bStron  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
94520006a0bStron  | --no-cr | --no-c | -n)
94620006a0bStron    no_create=yes ;;
94720006a0bStron
94820006a0bStron  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
94920006a0bStron  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
95020006a0bStron    no_recursion=yes ;;
95120006a0bStron
95220006a0bStron  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
95320006a0bStron  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
95420006a0bStron  | --oldin | --oldi | --old | --ol | --o)
95520006a0bStron    ac_prev=oldincludedir ;;
95620006a0bStron  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
95720006a0bStron  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
95820006a0bStron  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
95920006a0bStron    oldincludedir=$ac_optarg ;;
96020006a0bStron
96120006a0bStron  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
96220006a0bStron    ac_prev=prefix ;;
96320006a0bStron  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
96420006a0bStron    prefix=$ac_optarg ;;
96520006a0bStron
96620006a0bStron  -program-prefix | --program-prefix | --program-prefi | --program-pref \
96720006a0bStron  | --program-pre | --program-pr | --program-p)
96820006a0bStron    ac_prev=program_prefix ;;
96920006a0bStron  -program-prefix=* | --program-prefix=* | --program-prefi=* \
97020006a0bStron  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
97120006a0bStron    program_prefix=$ac_optarg ;;
97220006a0bStron
97320006a0bStron  -program-suffix | --program-suffix | --program-suffi | --program-suff \
97420006a0bStron  | --program-suf | --program-su | --program-s)
97520006a0bStron    ac_prev=program_suffix ;;
97620006a0bStron  -program-suffix=* | --program-suffix=* | --program-suffi=* \
97720006a0bStron  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
97820006a0bStron    program_suffix=$ac_optarg ;;
97920006a0bStron
98020006a0bStron  -program-transform-name | --program-transform-name \
98120006a0bStron  | --program-transform-nam | --program-transform-na \
98220006a0bStron  | --program-transform-n | --program-transform- \
98320006a0bStron  | --program-transform | --program-transfor \
98420006a0bStron  | --program-transfo | --program-transf \
98520006a0bStron  | --program-trans | --program-tran \
98620006a0bStron  | --progr-tra | --program-tr | --program-t)
98720006a0bStron    ac_prev=program_transform_name ;;
98820006a0bStron  -program-transform-name=* | --program-transform-name=* \
98920006a0bStron  | --program-transform-nam=* | --program-transform-na=* \
99020006a0bStron  | --program-transform-n=* | --program-transform-=* \
99120006a0bStron  | --program-transform=* | --program-transfor=* \
99220006a0bStron  | --program-transfo=* | --program-transf=* \
99320006a0bStron  | --program-trans=* | --program-tran=* \
99420006a0bStron  | --progr-tra=* | --program-tr=* | --program-t=*)
99520006a0bStron    program_transform_name=$ac_optarg ;;
99620006a0bStron
99720006a0bStron  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
99820006a0bStron    ac_prev=pdfdir ;;
99920006a0bStron  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
100020006a0bStron    pdfdir=$ac_optarg ;;
100120006a0bStron
100220006a0bStron  -psdir | --psdir | --psdi | --psd | --ps)
100320006a0bStron    ac_prev=psdir ;;
100420006a0bStron  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
100520006a0bStron    psdir=$ac_optarg ;;
100620006a0bStron
100720006a0bStron  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
100820006a0bStron  | -silent | --silent | --silen | --sile | --sil)
100920006a0bStron    silent=yes ;;
101020006a0bStron
1011*e4a6e799Ssimonb  -runstatedir | --runstatedir | --runstatedi | --runstated \
1012*e4a6e799Ssimonb  | --runstate | --runstat | --runsta | --runst | --runs \
1013*e4a6e799Ssimonb  | --run | --ru | --r)
1014*e4a6e799Ssimonb    ac_prev=runstatedir ;;
1015*e4a6e799Ssimonb  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1016*e4a6e799Ssimonb  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1017*e4a6e799Ssimonb  | --run=* | --ru=* | --r=*)
1018*e4a6e799Ssimonb    runstatedir=$ac_optarg ;;
1019*e4a6e799Ssimonb
102020006a0bStron  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
102120006a0bStron    ac_prev=sbindir ;;
102220006a0bStron  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
102320006a0bStron  | --sbi=* | --sb=*)
102420006a0bStron    sbindir=$ac_optarg ;;
102520006a0bStron
102620006a0bStron  -sharedstatedir | --sharedstatedir | --sharedstatedi \
102720006a0bStron  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
102820006a0bStron  | --sharedst | --shareds | --shared | --share | --shar \
102920006a0bStron  | --sha | --sh)
103020006a0bStron    ac_prev=sharedstatedir ;;
103120006a0bStron  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
103220006a0bStron  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
103320006a0bStron  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
103420006a0bStron  | --sha=* | --sh=*)
103520006a0bStron    sharedstatedir=$ac_optarg ;;
103620006a0bStron
103720006a0bStron  -site | --site | --sit)
103820006a0bStron    ac_prev=site ;;
103920006a0bStron  -site=* | --site=* | --sit=*)
104020006a0bStron    site=$ac_optarg ;;
104120006a0bStron
104220006a0bStron  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
104320006a0bStron    ac_prev=srcdir ;;
104420006a0bStron  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
104520006a0bStron    srcdir=$ac_optarg ;;
104620006a0bStron
104720006a0bStron  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
104820006a0bStron  | --syscon | --sysco | --sysc | --sys | --sy)
104920006a0bStron    ac_prev=sysconfdir ;;
105020006a0bStron  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
105120006a0bStron  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
105220006a0bStron    sysconfdir=$ac_optarg ;;
105320006a0bStron
105420006a0bStron  -target | --target | --targe | --targ | --tar | --ta | --t)
105520006a0bStron    ac_prev=target_alias ;;
105620006a0bStron  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
105720006a0bStron    target_alias=$ac_optarg ;;
105820006a0bStron
105920006a0bStron  -v | -verbose | --verbose | --verbos | --verbo | --verb)
106020006a0bStron    verbose=yes ;;
106120006a0bStron
106220006a0bStron  -version | --version | --versio | --versi | --vers | -V)
106320006a0bStron    ac_init_version=: ;;
106420006a0bStron
106520006a0bStron  -with-* | --with-*)
106620006a0bStron    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
106720006a0bStron    # Reject names that are not valid shell variable names.
106820006a0bStron    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069*e4a6e799Ssimonb      as_fn_error $? "invalid package name: \`$ac_useropt'"
107020006a0bStron    ac_useropt_orig=$ac_useropt
1071*e4a6e799Ssimonb    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
107220006a0bStron    case $ac_user_opts in
107320006a0bStron      *"
107420006a0bStron"with_$ac_useropt"
107520006a0bStron"*) ;;
107620006a0bStron      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
107720006a0bStron	 ac_unrecognized_sep=', ';;
107820006a0bStron    esac
107920006a0bStron    eval with_$ac_useropt=\$ac_optarg ;;
108020006a0bStron
108120006a0bStron  -without-* | --without-*)
108220006a0bStron    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
108320006a0bStron    # Reject names that are not valid shell variable names.
108420006a0bStron    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085*e4a6e799Ssimonb      as_fn_error $? "invalid package name: \`$ac_useropt'"
108620006a0bStron    ac_useropt_orig=$ac_useropt
1087*e4a6e799Ssimonb    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
108820006a0bStron    case $ac_user_opts in
108920006a0bStron      *"
109020006a0bStron"with_$ac_useropt"
109120006a0bStron"*) ;;
109220006a0bStron      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
109320006a0bStron	 ac_unrecognized_sep=', ';;
109420006a0bStron    esac
109520006a0bStron    eval with_$ac_useropt=no ;;
109620006a0bStron
109720006a0bStron  --x)
109820006a0bStron    # Obsolete; use --with-x.
109920006a0bStron    with_x=yes ;;
110020006a0bStron
110120006a0bStron  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
110220006a0bStron  | --x-incl | --x-inc | --x-in | --x-i)
110320006a0bStron    ac_prev=x_includes ;;
110420006a0bStron  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
110520006a0bStron  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
110620006a0bStron    x_includes=$ac_optarg ;;
110720006a0bStron
110820006a0bStron  -x-libraries | --x-libraries | --x-librarie | --x-librari \
110920006a0bStron  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
111020006a0bStron    ac_prev=x_libraries ;;
111120006a0bStron  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
111220006a0bStron  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
111320006a0bStron    x_libraries=$ac_optarg ;;
111420006a0bStron
111520006a0bStron  -*) as_fn_error $? "unrecognized option: \`$ac_option'
111620006a0bStronTry \`$0 --help' for more information"
111720006a0bStron    ;;
111820006a0bStron
111920006a0bStron  *=*)
112020006a0bStron    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
112120006a0bStron    # Reject names that are not valid shell variable names.
112220006a0bStron    case $ac_envvar in #(
112320006a0bStron      '' | [0-9]* | *[!_$as_cr_alnum]* )
112420006a0bStron      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
112520006a0bStron    esac
112620006a0bStron    eval $ac_envvar=\$ac_optarg
112720006a0bStron    export $ac_envvar ;;
112820006a0bStron
112920006a0bStron  *)
113020006a0bStron    # FIXME: should be removed in autoconf 3.0.
1131*e4a6e799Ssimonb    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
113220006a0bStron    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133*e4a6e799Ssimonb      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1134749ad2faStron    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
113520006a0bStron    ;;
113620006a0bStron
113720006a0bStron  esac
113820006a0bStrondone
113920006a0bStron
114020006a0bStronif test -n "$ac_prev"; then
114120006a0bStron  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
114220006a0bStron  as_fn_error $? "missing argument to $ac_option"
114320006a0bStronfi
114420006a0bStron
114520006a0bStronif test -n "$ac_unrecognized_opts"; then
114620006a0bStron  case $enable_option_checking in
114720006a0bStron    no) ;;
114820006a0bStron    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1149*e4a6e799Ssimonb    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
115020006a0bStron  esac
115120006a0bStronfi
115220006a0bStron
115320006a0bStron# Check all directory arguments for consistency.
115420006a0bStronfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
115520006a0bStron		datadir sysconfdir sharedstatedir localstatedir includedir \
115620006a0bStron		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1157*e4a6e799Ssimonb		libdir localedir mandir runstatedir
115820006a0bStrondo
115920006a0bStron  eval ac_val=\$$ac_var
116020006a0bStron  # Remove trailing slashes.
116120006a0bStron  case $ac_val in
116220006a0bStron    */ )
116320006a0bStron      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
116420006a0bStron      eval $ac_var=\$ac_val;;
116520006a0bStron  esac
116620006a0bStron  # Be sure to have absolute directory names.
116720006a0bStron  case $ac_val in
116820006a0bStron    [\\/$]* | ?:[\\/]* )  continue;;
116920006a0bStron    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
117020006a0bStron  esac
117120006a0bStron  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
117220006a0bStrondone
117320006a0bStron
117420006a0bStron# There might be people who depend on the old broken behavior: `$host'
117520006a0bStron# used to hold the argument of --host etc.
117620006a0bStron# FIXME: To remove some day.
117720006a0bStronbuild=$build_alias
117820006a0bStronhost=$host_alias
117920006a0bStrontarget=$target_alias
118020006a0bStron
118120006a0bStron# FIXME: To remove some day.
118220006a0bStronif test "x$host_alias" != x; then
118320006a0bStron  if test "x$build_alias" = x; then
118420006a0bStron    cross_compiling=maybe
118520006a0bStron  elif test "x$build_alias" != "x$host_alias"; then
118620006a0bStron    cross_compiling=yes
118720006a0bStron  fi
118820006a0bStronfi
118920006a0bStron
119020006a0bStronac_tool_prefix=
119120006a0bStrontest -n "$host_alias" && ac_tool_prefix=$host_alias-
119220006a0bStron
119320006a0bStrontest "$silent" = yes && exec 6>/dev/null
119420006a0bStron
119520006a0bStron
119620006a0bStronac_pwd=`pwd` && test -n "$ac_pwd" &&
119720006a0bStronac_ls_di=`ls -di .` &&
119820006a0bStronac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
119920006a0bStron  as_fn_error $? "working directory cannot be determined"
120020006a0bStrontest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
120120006a0bStron  as_fn_error $? "pwd does not report name of working directory"
120220006a0bStron
120320006a0bStron
120420006a0bStron# Find the source files, if location was not specified.
120520006a0bStronif test -z "$srcdir"; then
120620006a0bStron  ac_srcdir_defaulted=yes
120720006a0bStron  # Try the directory containing this script, then the parent directory.
120820006a0bStron  ac_confdir=`$as_dirname -- "$as_myself" ||
120920006a0bStron$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
121020006a0bStron	 X"$as_myself" : 'X\(//\)[^/]' \| \
121120006a0bStron	 X"$as_myself" : 'X\(//\)$' \| \
121220006a0bStron	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1213*e4a6e799Ssimonbprintf "%s\n" X"$as_myself" |
121420006a0bStron    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
121520006a0bStron	    s//\1/
121620006a0bStron	    q
121720006a0bStron	  }
121820006a0bStron	  /^X\(\/\/\)[^/].*/{
121920006a0bStron	    s//\1/
122020006a0bStron	    q
122120006a0bStron	  }
122220006a0bStron	  /^X\(\/\/\)$/{
122320006a0bStron	    s//\1/
122420006a0bStron	    q
122520006a0bStron	  }
122620006a0bStron	  /^X\(\/\).*/{
122720006a0bStron	    s//\1/
122820006a0bStron	    q
122920006a0bStron	  }
123020006a0bStron	  s/.*/./; q'`
123120006a0bStron  srcdir=$ac_confdir
123220006a0bStron  if test ! -r "$srcdir/$ac_unique_file"; then
123320006a0bStron    srcdir=..
123420006a0bStron  fi
123520006a0bStronelse
123620006a0bStron  ac_srcdir_defaulted=no
123720006a0bStronfi
123820006a0bStronif test ! -r "$srcdir/$ac_unique_file"; then
123920006a0bStron  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
124020006a0bStron  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
124120006a0bStronfi
124220006a0bStronac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
124320006a0bStronac_abs_confdir=`(
124420006a0bStron	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
124520006a0bStron	pwd)`
124620006a0bStron# When building in place, set srcdir=.
124720006a0bStronif test "$ac_abs_confdir" = "$ac_pwd"; then
124820006a0bStron  srcdir=.
124920006a0bStronfi
125020006a0bStron# Remove unnecessary trailing slashes from srcdir.
125120006a0bStron# Double slashes in file names in object file debugging info
125220006a0bStron# mess up M-x gdb in Emacs.
125320006a0bStroncase $srcdir in
125420006a0bStron*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
125520006a0bStronesac
125620006a0bStronfor ac_var in $ac_precious_vars; do
125720006a0bStron  eval ac_env_${ac_var}_set=\${${ac_var}+set}
125820006a0bStron  eval ac_env_${ac_var}_value=\$${ac_var}
125920006a0bStron  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
126020006a0bStron  eval ac_cv_env_${ac_var}_value=\$${ac_var}
126120006a0bStrondone
126220006a0bStron
126320006a0bStron#
126420006a0bStron# Report the --help message.
126520006a0bStron#
126620006a0bStronif test "$ac_init_help" = "long"; then
126720006a0bStron  # Omit some internal or obsolete options to make the list less imposing.
126820006a0bStron  # This message is too long to be a string in the A/UX 3.1 sh.
126920006a0bStron  cat <<_ACEOF
127020006a0bStron\`configure' configures less 1 to adapt to many kinds of systems.
127120006a0bStron
127220006a0bStronUsage: $0 [OPTION]... [VAR=VALUE]...
127320006a0bStron
127420006a0bStronTo assign environment variables (e.g., CC, CFLAGS...), specify them as
127520006a0bStronVAR=VALUE.  See below for descriptions of some of the useful variables.
127620006a0bStron
127720006a0bStronDefaults for the options are specified in brackets.
127820006a0bStron
127920006a0bStronConfiguration:
128020006a0bStron  -h, --help              display this help and exit
128120006a0bStron      --help=short        display options specific to this package
128220006a0bStron      --help=recursive    display the short help of all the included packages
128320006a0bStron  -V, --version           display version information and exit
128420006a0bStron  -q, --quiet, --silent   do not print \`checking ...' messages
128520006a0bStron      --cache-file=FILE   cache test results in FILE [disabled]
128620006a0bStron  -C, --config-cache      alias for \`--cache-file=config.cache'
128720006a0bStron  -n, --no-create         do not create output files
128820006a0bStron      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
128920006a0bStron
129020006a0bStronInstallation directories:
129120006a0bStron  --prefix=PREFIX         install architecture-independent files in PREFIX
129220006a0bStron                          [$ac_default_prefix]
129320006a0bStron  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
129420006a0bStron                          [PREFIX]
129520006a0bStron
129620006a0bStronBy default, \`make install' will install all the files in
129720006a0bStron\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
129820006a0bStronan installation prefix other than \`$ac_default_prefix' using \`--prefix',
129920006a0bStronfor instance \`--prefix=\$HOME'.
130020006a0bStron
130120006a0bStronFor better control, use the options below.
130220006a0bStron
130320006a0bStronFine tuning of the installation directories:
130420006a0bStron  --bindir=DIR            user executables [EPREFIX/bin]
130520006a0bStron  --sbindir=DIR           system admin executables [EPREFIX/sbin]
130620006a0bStron  --libexecdir=DIR        program executables [EPREFIX/libexec]
130720006a0bStron  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
130820006a0bStron  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
130920006a0bStron  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1310*e4a6e799Ssimonb  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
131120006a0bStron  --libdir=DIR            object code libraries [EPREFIX/lib]
131220006a0bStron  --includedir=DIR        C header files [PREFIX/include]
131320006a0bStron  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
131420006a0bStron  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
131520006a0bStron  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
131620006a0bStron  --infodir=DIR           info documentation [DATAROOTDIR/info]
131720006a0bStron  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
131820006a0bStron  --mandir=DIR            man documentation [DATAROOTDIR/man]
131920006a0bStron  --docdir=DIR            documentation root [DATAROOTDIR/doc/less]
132020006a0bStron  --htmldir=DIR           html documentation [DOCDIR]
132120006a0bStron  --dvidir=DIR            dvi documentation [DOCDIR]
132220006a0bStron  --pdfdir=DIR            pdf documentation [DOCDIR]
132320006a0bStron  --psdir=DIR             ps documentation [DOCDIR]
132420006a0bStron_ACEOF
132520006a0bStron
132620006a0bStron  cat <<\_ACEOF
132720006a0bStron_ACEOF
132820006a0bStronfi
132920006a0bStron
133020006a0bStronif test -n "$ac_init_help"; then
133120006a0bStron  case $ac_init_help in
133220006a0bStron     short | recursive ) echo "Configuration of less 1:";;
133320006a0bStron   esac
133420006a0bStron  cat <<\_ACEOF
133520006a0bStron
133620006a0bStronOptional Features:
133720006a0bStron  --disable-option-checking  ignore unrecognized --enable/--with options
133820006a0bStron  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
133920006a0bStron  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
134020006a0bStron  --disable-largefile     omit support for large files
134120006a0bStron
134220006a0bStronOptional Packages:
134320006a0bStron  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
134420006a0bStron  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
134520006a0bStron  --with-secure           Compile in secure mode
1346*e4a6e799Ssimonb  --with-regex=LIB        select regular expression library (LIB is one of auto,none,gnu,pcre,pcre2,posix,regcmp,re_comp,regcomp,regcomp-local) [auto]
1347*e4a6e799Ssimonb  --with-editor=PROGRAM   use PROGRAM as the default editor [vi]
134820006a0bStron
134920006a0bStronSome influential environment variables:
135020006a0bStron  CC          C compiler command
135120006a0bStron  CFLAGS      C compiler flags
135220006a0bStron  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
135320006a0bStron              nonstandard directory <lib dir>
135420006a0bStron  LIBS        libraries to pass to the linker, e.g. -l<library>
135520006a0bStron  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
135620006a0bStron              you have headers in a nonstandard directory <include dir>
135720006a0bStron  CPP         C preprocessor
135820006a0bStron
135920006a0bStronUse these variables to override the choices made by `configure' or to help
136020006a0bStronit to find libraries and programs with nonstandard names/locations.
136120006a0bStron
136220006a0bStronReport bugs to the package provider.
136320006a0bStron_ACEOF
136420006a0bStronac_status=$?
136520006a0bStronfi
136620006a0bStron
136720006a0bStronif test "$ac_init_help" = "recursive"; then
136820006a0bStron  # If there are subdirs, report their specific --help.
136920006a0bStron  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
137020006a0bStron    test -d "$ac_dir" ||
137120006a0bStron      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
137220006a0bStron      continue
137320006a0bStron    ac_builddir=.
137420006a0bStron
137520006a0bStroncase "$ac_dir" in
137620006a0bStron.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
137720006a0bStron*)
1378*e4a6e799Ssimonb  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
137920006a0bStron  # A ".." for each directory in $ac_dir_suffix.
1380*e4a6e799Ssimonb  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
138120006a0bStron  case $ac_top_builddir_sub in
138220006a0bStron  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
138320006a0bStron  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
138420006a0bStron  esac ;;
138520006a0bStronesac
138620006a0bStronac_abs_top_builddir=$ac_pwd
138720006a0bStronac_abs_builddir=$ac_pwd$ac_dir_suffix
138820006a0bStron# for backward compatibility:
138920006a0bStronac_top_builddir=$ac_top_build_prefix
139020006a0bStron
139120006a0bStroncase $srcdir in
139220006a0bStron  .)  # We are building in place.
139320006a0bStron    ac_srcdir=.
139420006a0bStron    ac_top_srcdir=$ac_top_builddir_sub
139520006a0bStron    ac_abs_top_srcdir=$ac_pwd ;;
139620006a0bStron  [\\/]* | ?:[\\/]* )  # Absolute name.
139720006a0bStron    ac_srcdir=$srcdir$ac_dir_suffix;
139820006a0bStron    ac_top_srcdir=$srcdir
139920006a0bStron    ac_abs_top_srcdir=$srcdir ;;
140020006a0bStron  *) # Relative name.
140120006a0bStron    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
140220006a0bStron    ac_top_srcdir=$ac_top_build_prefix$srcdir
140320006a0bStron    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
140420006a0bStronesac
140520006a0bStronac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
140620006a0bStron
140720006a0bStron    cd "$ac_dir" || { ac_status=$?; continue; }
1408*e4a6e799Ssimonb    # Check for configure.gnu first; this name is used for a wrapper for
1409*e4a6e799Ssimonb    # Metaconfig's "Configure" on case-insensitive file systems.
141020006a0bStron    if test -f "$ac_srcdir/configure.gnu"; then
141120006a0bStron      echo &&
141220006a0bStron      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
141320006a0bStron    elif test -f "$ac_srcdir/configure"; then
141420006a0bStron      echo &&
141520006a0bStron      $SHELL "$ac_srcdir/configure" --help=recursive
141620006a0bStron    else
1417*e4a6e799Ssimonb      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
141820006a0bStron    fi || ac_status=$?
141920006a0bStron    cd "$ac_pwd" || { ac_status=$?; break; }
142020006a0bStron  done
142120006a0bStronfi
142220006a0bStron
142320006a0bStrontest -n "$ac_init_help" && exit $ac_status
142420006a0bStronif $ac_init_version; then
142520006a0bStron  cat <<\_ACEOF
142620006a0bStronless configure 1
1427*e4a6e799Ssimonbgenerated by GNU Autoconf 2.71
142820006a0bStron
1429*e4a6e799SsimonbCopyright (C) 2021 Free Software Foundation, Inc.
143020006a0bStronThis configure script is free software; the Free Software Foundation
143120006a0bStrongives unlimited permission to copy, distribute and modify it.
143220006a0bStron_ACEOF
143320006a0bStron  exit
143420006a0bStronfi
143520006a0bStron
143620006a0bStron## ------------------------ ##
143720006a0bStron## Autoconf initialization. ##
143820006a0bStron## ------------------------ ##
143920006a0bStron
144020006a0bStron# ac_fn_c_try_compile LINENO
144120006a0bStron# --------------------------
144220006a0bStron# Try to compile conftest.$ac_ext, and return whether this succeeded.
144320006a0bStronac_fn_c_try_compile ()
144420006a0bStron{
144520006a0bStron  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1446*e4a6e799Ssimonb  rm -f conftest.$ac_objext conftest.beam
144720006a0bStron  if { { ac_try="$ac_compile"
144820006a0bStroncase "(($ac_try" in
144920006a0bStron  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
145020006a0bStron  *) ac_try_echo=$ac_try;;
145120006a0bStronesac
145220006a0bStroneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1453*e4a6e799Ssimonbprintf "%s\n" "$ac_try_echo"; } >&5
145420006a0bStron  (eval "$ac_compile") 2>conftest.err
145520006a0bStron  ac_status=$?
145620006a0bStron  if test -s conftest.err; then
145720006a0bStron    grep -v '^ *+' conftest.err >conftest.er1
145820006a0bStron    cat conftest.er1 >&5
145920006a0bStron    mv -f conftest.er1 conftest.err
146020006a0bStron  fi
1461*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
146220006a0bStron  test $ac_status = 0; } && {
146320006a0bStron	 test -z "$ac_c_werror_flag" ||
146420006a0bStron	 test ! -s conftest.err
1465*e4a6e799Ssimonb       } && test -s conftest.$ac_objext
1466*e4a6e799Ssimonbthen :
146720006a0bStron  ac_retval=0
1468*e4a6e799Ssimonbelse $as_nop
1469*e4a6e799Ssimonb  printf "%s\n" "$as_me: failed program was:" >&5
147020006a0bStronsed 's/^/| /' conftest.$ac_ext >&5
147120006a0bStron
147220006a0bStron	ac_retval=1
147320006a0bStronfi
1474749ad2faStron  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
147520006a0bStron  as_fn_set_status $ac_retval
147620006a0bStron
147720006a0bStron} # ac_fn_c_try_compile
147820006a0bStron
147920006a0bStron# ac_fn_c_try_link LINENO
148020006a0bStron# -----------------------
148120006a0bStron# Try to link conftest.$ac_ext, and return whether this succeeded.
148220006a0bStronac_fn_c_try_link ()
148320006a0bStron{
148420006a0bStron  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485*e4a6e799Ssimonb  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
148620006a0bStron  if { { ac_try="$ac_link"
148720006a0bStroncase "(($ac_try" in
148820006a0bStron  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
148920006a0bStron  *) ac_try_echo=$ac_try;;
149020006a0bStronesac
149120006a0bStroneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492*e4a6e799Ssimonbprintf "%s\n" "$ac_try_echo"; } >&5
149320006a0bStron  (eval "$ac_link") 2>conftest.err
149420006a0bStron  ac_status=$?
149520006a0bStron  if test -s conftest.err; then
149620006a0bStron    grep -v '^ *+' conftest.err >conftest.er1
149720006a0bStron    cat conftest.er1 >&5
149820006a0bStron    mv -f conftest.er1 conftest.err
149920006a0bStron  fi
1500*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
150120006a0bStron  test $ac_status = 0; } && {
150220006a0bStron	 test -z "$ac_c_werror_flag" ||
150320006a0bStron	 test ! -s conftest.err
150420006a0bStron       } && test -s conftest$ac_exeext && {
150520006a0bStron	 test "$cross_compiling" = yes ||
1506*e4a6e799Ssimonb	 test -x conftest$ac_exeext
1507*e4a6e799Ssimonb       }
1508*e4a6e799Ssimonbthen :
150920006a0bStron  ac_retval=0
1510*e4a6e799Ssimonbelse $as_nop
1511*e4a6e799Ssimonb  printf "%s\n" "$as_me: failed program was:" >&5
151220006a0bStronsed 's/^/| /' conftest.$ac_ext >&5
151320006a0bStron
151420006a0bStron	ac_retval=1
151520006a0bStronfi
151620006a0bStron  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
151720006a0bStron  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
151820006a0bStron  # interfere with the next link command; also delete a directory that is
151920006a0bStron  # left behind by Apple's compiler.  We do this before executing the actions.
152020006a0bStron  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1521749ad2faStron  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
152220006a0bStron  as_fn_set_status $ac_retval
152320006a0bStron
152420006a0bStron} # ac_fn_c_try_link
152520006a0bStron
152620006a0bStron# ac_fn_c_try_cpp LINENO
152720006a0bStron# ----------------------
152820006a0bStron# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
152920006a0bStronac_fn_c_try_cpp ()
153020006a0bStron{
153120006a0bStron  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
153220006a0bStron  if { { ac_try="$ac_cpp conftest.$ac_ext"
153320006a0bStroncase "(($ac_try" in
153420006a0bStron  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
153520006a0bStron  *) ac_try_echo=$ac_try;;
153620006a0bStronesac
153720006a0bStroneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538*e4a6e799Ssimonbprintf "%s\n" "$ac_try_echo"; } >&5
153920006a0bStron  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
154020006a0bStron  ac_status=$?
154120006a0bStron  if test -s conftest.err; then
154220006a0bStron    grep -v '^ *+' conftest.err >conftest.er1
154320006a0bStron    cat conftest.er1 >&5
154420006a0bStron    mv -f conftest.er1 conftest.err
154520006a0bStron  fi
1546*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
154720006a0bStron  test $ac_status = 0; } > conftest.i && {
154820006a0bStron	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
154920006a0bStron	 test ! -s conftest.err
1550*e4a6e799Ssimonb       }
1551*e4a6e799Ssimonbthen :
155220006a0bStron  ac_retval=0
1553*e4a6e799Ssimonbelse $as_nop
1554*e4a6e799Ssimonb  printf "%s\n" "$as_me: failed program was:" >&5
155520006a0bStronsed 's/^/| /' conftest.$ac_ext >&5
155620006a0bStron
155720006a0bStron    ac_retval=1
155820006a0bStronfi
1559749ad2faStron  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
156020006a0bStron  as_fn_set_status $ac_retval
156120006a0bStron
156220006a0bStron} # ac_fn_c_try_cpp
156320006a0bStron
156420006a0bStron# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
156520006a0bStron# -------------------------------------------------------
156620006a0bStron# Tests whether HEADER exists and can be compiled using the include files in
156720006a0bStron# INCLUDES, setting the cache variable VAR accordingly.
156820006a0bStronac_fn_c_check_header_compile ()
156920006a0bStron{
157020006a0bStron  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1572*e4a6e799Ssimonbprintf %s "checking for $2... " >&6; }
1573*e4a6e799Ssimonbif eval test \${$3+y}
1574*e4a6e799Ssimonbthen :
1575*e4a6e799Ssimonb  printf %s "(cached) " >&6
1576*e4a6e799Ssimonbelse $as_nop
157720006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
157820006a0bStron/* end confdefs.h.  */
157920006a0bStron$4
158020006a0bStron#include <$2>
158120006a0bStron_ACEOF
1582*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
1583*e4a6e799Ssimonbthen :
158420006a0bStron  eval "$3=yes"
1585*e4a6e799Ssimonbelse $as_nop
158620006a0bStron  eval "$3=no"
158720006a0bStronfi
1588*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
158920006a0bStronfi
159020006a0bStroneval ac_res=\$$3
1591*e4a6e799Ssimonb	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592*e4a6e799Ssimonbprintf "%s\n" "$ac_res" >&6; }
1593749ad2faStron  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
159420006a0bStron
159520006a0bStron} # ac_fn_c_check_header_compile
159620006a0bStron
159720006a0bStron# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
159820006a0bStron# -------------------------------------------
159920006a0bStron# Tests whether TYPE exists after having included INCLUDES, setting cache
160020006a0bStron# variable VAR accordingly.
160120006a0bStronac_fn_c_check_type ()
160220006a0bStron{
160320006a0bStron  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605*e4a6e799Ssimonbprintf %s "checking for $2... " >&6; }
1606*e4a6e799Ssimonbif eval test \${$3+y}
1607*e4a6e799Ssimonbthen :
1608*e4a6e799Ssimonb  printf %s "(cached) " >&6
1609*e4a6e799Ssimonbelse $as_nop
161020006a0bStron  eval "$3=no"
161120006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
161220006a0bStron/* end confdefs.h.  */
161320006a0bStron$4
161420006a0bStronint
1615*e4a6e799Ssimonbmain (void)
161620006a0bStron{
161720006a0bStronif (sizeof ($2))
161820006a0bStron	 return 0;
161920006a0bStron  ;
162020006a0bStron  return 0;
162120006a0bStron}
162220006a0bStron_ACEOF
1623*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
1624*e4a6e799Ssimonbthen :
162520006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
162620006a0bStron/* end confdefs.h.  */
162720006a0bStron$4
162820006a0bStronint
1629*e4a6e799Ssimonbmain (void)
163020006a0bStron{
163120006a0bStronif (sizeof (($2)))
163220006a0bStron	    return 0;
163320006a0bStron  ;
163420006a0bStron  return 0;
163520006a0bStron}
163620006a0bStron_ACEOF
1637*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
1638*e4a6e799Ssimonbthen :
163920006a0bStron
1640*e4a6e799Ssimonbelse $as_nop
164120006a0bStron  eval "$3=yes"
164220006a0bStronfi
1643*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
164420006a0bStronfi
1645*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
164620006a0bStronfi
164720006a0bStroneval ac_res=\$$3
1648*e4a6e799Ssimonb	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649*e4a6e799Ssimonbprintf "%s\n" "$ac_res" >&6; }
1650749ad2faStron  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
165120006a0bStron
165220006a0bStron} # ac_fn_c_check_type
165320006a0bStron
165420006a0bStron# ac_fn_c_check_func LINENO FUNC VAR
165520006a0bStron# ----------------------------------
165620006a0bStron# Tests whether FUNC exists, setting the cache variable VAR accordingly
165720006a0bStronac_fn_c_check_func ()
165820006a0bStron{
165920006a0bStron  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661*e4a6e799Ssimonbprintf %s "checking for $2... " >&6; }
1662*e4a6e799Ssimonbif eval test \${$3+y}
1663*e4a6e799Ssimonbthen :
1664*e4a6e799Ssimonb  printf %s "(cached) " >&6
1665*e4a6e799Ssimonbelse $as_nop
166620006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
166720006a0bStron/* end confdefs.h.  */
166820006a0bStron/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
166920006a0bStron   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
167020006a0bStron#define $2 innocuous_$2
167120006a0bStron
167220006a0bStron/* System header to define __stub macros and hopefully few prototypes,
1673*e4a6e799Ssimonb   which can conflict with char $2 (); below.  */
167420006a0bStron
167520006a0bStron#include <limits.h>
167620006a0bStron#undef $2
167720006a0bStron
167820006a0bStron/* Override any GCC internal prototype to avoid an error.
167920006a0bStron   Use char because int might match the return type of a GCC
168020006a0bStron   builtin and then its argument prototype would still apply.  */
168120006a0bStron#ifdef __cplusplus
168220006a0bStronextern "C"
168320006a0bStron#endif
168420006a0bStronchar $2 ();
168520006a0bStron/* The GNU C library defines this for functions which it implements
168620006a0bStron    to always fail with ENOSYS.  Some functions are actually named
168720006a0bStron    something starting with __ and the normal name is an alias.  */
168820006a0bStron#if defined __stub_$2 || defined __stub___$2
168920006a0bStronchoke me
169020006a0bStron#endif
169120006a0bStron
169220006a0bStronint
1693*e4a6e799Ssimonbmain (void)
169420006a0bStron{
169520006a0bStronreturn $2 ();
169620006a0bStron  ;
169720006a0bStron  return 0;
169820006a0bStron}
169920006a0bStron_ACEOF
1700*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
1701*e4a6e799Ssimonbthen :
170220006a0bStron  eval "$3=yes"
1703*e4a6e799Ssimonbelse $as_nop
170420006a0bStron  eval "$3=no"
170520006a0bStronfi
1706*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
170720006a0bStron    conftest$ac_exeext conftest.$ac_ext
170820006a0bStronfi
170920006a0bStroneval ac_res=\$$3
1710*e4a6e799Ssimonb	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711*e4a6e799Ssimonbprintf "%s\n" "$ac_res" >&6; }
1712749ad2faStron  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
171320006a0bStron
171420006a0bStron} # ac_fn_c_check_func
1715*e4a6e799Ssimonb
1716*e4a6e799Ssimonb# ac_fn_c_try_run LINENO
1717*e4a6e799Ssimonb# ----------------------
1718*e4a6e799Ssimonb# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1719*e4a6e799Ssimonb# executables *can* be run.
1720*e4a6e799Ssimonbac_fn_c_try_run ()
1721*e4a6e799Ssimonb{
1722*e4a6e799Ssimonb  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723*e4a6e799Ssimonb  if { { ac_try="$ac_link"
1724*e4a6e799Ssimonbcase "(($ac_try" in
1725*e4a6e799Ssimonb  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726*e4a6e799Ssimonb  *) ac_try_echo=$ac_try;;
1727*e4a6e799Ssimonbesac
1728*e4a6e799Ssimonbeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729*e4a6e799Ssimonbprintf "%s\n" "$ac_try_echo"; } >&5
1730*e4a6e799Ssimonb  (eval "$ac_link") 2>&5
1731*e4a6e799Ssimonb  ac_status=$?
1732*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733*e4a6e799Ssimonb  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734*e4a6e799Ssimonb  { { case "(($ac_try" in
1735*e4a6e799Ssimonb  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736*e4a6e799Ssimonb  *) ac_try_echo=$ac_try;;
1737*e4a6e799Ssimonbesac
1738*e4a6e799Ssimonbeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739*e4a6e799Ssimonbprintf "%s\n" "$ac_try_echo"; } >&5
1740*e4a6e799Ssimonb  (eval "$ac_try") 2>&5
1741*e4a6e799Ssimonb  ac_status=$?
1742*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743*e4a6e799Ssimonb  test $ac_status = 0; }; }
1744*e4a6e799Ssimonbthen :
1745*e4a6e799Ssimonb  ac_retval=0
1746*e4a6e799Ssimonbelse $as_nop
1747*e4a6e799Ssimonb  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1748*e4a6e799Ssimonb       printf "%s\n" "$as_me: failed program was:" >&5
1749*e4a6e799Ssimonbsed 's/^/| /' conftest.$ac_ext >&5
1750*e4a6e799Ssimonb
1751*e4a6e799Ssimonb       ac_retval=$ac_status
1752*e4a6e799Ssimonbfi
1753*e4a6e799Ssimonb  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754*e4a6e799Ssimonb  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755*e4a6e799Ssimonb  as_fn_set_status $ac_retval
1756*e4a6e799Ssimonb
1757*e4a6e799Ssimonb} # ac_fn_c_try_run
1758*e4a6e799Ssimonbac_configure_args_raw=
1759*e4a6e799Ssimonbfor ac_arg
1760*e4a6e799Ssimonbdo
1761*e4a6e799Ssimonb  case $ac_arg in
1762*e4a6e799Ssimonb  *\'*)
1763*e4a6e799Ssimonb    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1764*e4a6e799Ssimonb  esac
1765*e4a6e799Ssimonb  as_fn_append ac_configure_args_raw " '$ac_arg'"
1766*e4a6e799Ssimonbdone
1767*e4a6e799Ssimonb
1768*e4a6e799Ssimonbcase $ac_configure_args_raw in
1769*e4a6e799Ssimonb  *$as_nl*)
1770*e4a6e799Ssimonb    ac_safe_unquote= ;;
1771*e4a6e799Ssimonb  *)
1772*e4a6e799Ssimonb    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1773*e4a6e799Ssimonb    ac_unsafe_a="$ac_unsafe_z#~"
1774*e4a6e799Ssimonb    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1775*e4a6e799Ssimonb    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1776*e4a6e799Ssimonbesac
1777*e4a6e799Ssimonb
177820006a0bStroncat >config.log <<_ACEOF
177920006a0bStronThis file contains any messages produced by compilers while
178020006a0bStronrunning configure, to aid debugging if configure makes a mistake.
178120006a0bStron
178220006a0bStronIt was created by less $as_me 1, which was
1783*e4a6e799Ssimonbgenerated by GNU Autoconf 2.71.  Invocation command line was
178420006a0bStron
1785*e4a6e799Ssimonb  $ $0$ac_configure_args_raw
178620006a0bStron
178720006a0bStron_ACEOF
178820006a0bStronexec 5>>config.log
178920006a0bStron{
179020006a0bStroncat <<_ASUNAME
179120006a0bStron## --------- ##
179220006a0bStron## Platform. ##
179320006a0bStron## --------- ##
179420006a0bStron
179520006a0bStronhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
179620006a0bStronuname -m = `(uname -m) 2>/dev/null || echo unknown`
179720006a0bStronuname -r = `(uname -r) 2>/dev/null || echo unknown`
179820006a0bStronuname -s = `(uname -s) 2>/dev/null || echo unknown`
179920006a0bStronuname -v = `(uname -v) 2>/dev/null || echo unknown`
180020006a0bStron
180120006a0bStron/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
180220006a0bStron/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
180320006a0bStron
180420006a0bStron/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
180520006a0bStron/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
180620006a0bStron/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
180720006a0bStron/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
180820006a0bStron/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
180920006a0bStron/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
181020006a0bStron/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
181120006a0bStron
181220006a0bStron_ASUNAME
181320006a0bStron
181420006a0bStronas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181520006a0bStronfor as_dir in $PATH
181620006a0bStrondo
181720006a0bStron  IFS=$as_save_IFS
1818*e4a6e799Ssimonb  case $as_dir in #(((
1819*e4a6e799Ssimonb    '') as_dir=./ ;;
1820*e4a6e799Ssimonb    */) ;;
1821*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
1822*e4a6e799Ssimonb  esac
1823*e4a6e799Ssimonb    printf "%s\n" "PATH: $as_dir"
182420006a0bStron  done
182520006a0bStronIFS=$as_save_IFS
182620006a0bStron
182720006a0bStron} >&5
182820006a0bStron
182920006a0bStroncat >&5 <<_ACEOF
183020006a0bStron
183120006a0bStron
183220006a0bStron## ----------- ##
183320006a0bStron## Core tests. ##
183420006a0bStron## ----------- ##
183520006a0bStron
183620006a0bStron_ACEOF
183720006a0bStron
183820006a0bStron
183920006a0bStron# Keep a trace of the command line.
184020006a0bStron# Strip out --no-create and --no-recursion so they do not pile up.
184120006a0bStron# Strip out --silent because we don't want to record it for future runs.
184220006a0bStron# Also quote any args containing shell meta-characters.
184320006a0bStron# Make two passes to allow for proper duplicate-argument suppression.
184420006a0bStronac_configure_args=
184520006a0bStronac_configure_args0=
184620006a0bStronac_configure_args1=
184720006a0bStronac_must_keep_next=false
184820006a0bStronfor ac_pass in 1 2
184920006a0bStrondo
185020006a0bStron  for ac_arg
185120006a0bStron  do
185220006a0bStron    case $ac_arg in
185320006a0bStron    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
185420006a0bStron    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
185520006a0bStron    | -silent | --silent | --silen | --sile | --sil)
185620006a0bStron      continue ;;
185720006a0bStron    *\'*)
1858*e4a6e799Ssimonb      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
185920006a0bStron    esac
186020006a0bStron    case $ac_pass in
186120006a0bStron    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
186220006a0bStron    2)
186320006a0bStron      as_fn_append ac_configure_args1 " '$ac_arg'"
186420006a0bStron      if test $ac_must_keep_next = true; then
186520006a0bStron	ac_must_keep_next=false # Got value, back to normal.
186620006a0bStron      else
186720006a0bStron	case $ac_arg in
186820006a0bStron	  *=* | --config-cache | -C | -disable-* | --disable-* \
186920006a0bStron	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
187020006a0bStron	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
187120006a0bStron	  | -with-* | --with-* | -without-* | --without-* | --x)
187220006a0bStron	    case "$ac_configure_args0 " in
187320006a0bStron	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
187420006a0bStron	    esac
187520006a0bStron	    ;;
187620006a0bStron	  -* ) ac_must_keep_next=true ;;
187720006a0bStron	esac
187820006a0bStron      fi
187920006a0bStron      as_fn_append ac_configure_args " '$ac_arg'"
188020006a0bStron      ;;
188120006a0bStron    esac
188220006a0bStron  done
188320006a0bStrondone
188420006a0bStron{ ac_configure_args0=; unset ac_configure_args0;}
188520006a0bStron{ ac_configure_args1=; unset ac_configure_args1;}
188620006a0bStron
188720006a0bStron# When interrupted or exit'd, cleanup temporary files, and complete
188820006a0bStron# config.log.  We remove comments because anyway the quotes in there
188920006a0bStron# would cause problems or look ugly.
189020006a0bStron# WARNING: Use '\'' to represent an apostrophe within the trap.
189120006a0bStron# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
189220006a0bStrontrap 'exit_status=$?
1893*e4a6e799Ssimonb  # Sanitize IFS.
1894*e4a6e799Ssimonb  IFS=" ""	$as_nl"
189520006a0bStron  # Save into config.log some information that might help in debugging.
189620006a0bStron  {
189720006a0bStron    echo
189820006a0bStron
1899*e4a6e799Ssimonb    printf "%s\n" "## ---------------- ##
190020006a0bStron## Cache variables. ##
190120006a0bStron## ---------------- ##"
190220006a0bStron    echo
190320006a0bStron    # The following way of writing the cache mishandles newlines in values,
190420006a0bStron(
190520006a0bStron  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
190620006a0bStron    eval ac_val=\$$ac_var
190720006a0bStron    case $ac_val in #(
190820006a0bStron    *${as_nl}*)
190920006a0bStron      case $ac_var in #(
1910*e4a6e799Ssimonb      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1911*e4a6e799Ssimonbprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
191220006a0bStron      esac
191320006a0bStron      case $ac_var in #(
191420006a0bStron      _ | IFS | as_nl) ;; #(
191520006a0bStron      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
191620006a0bStron      *) { eval $ac_var=; unset $ac_var;} ;;
191720006a0bStron      esac ;;
191820006a0bStron    esac
191920006a0bStron  done
192020006a0bStron  (set) 2>&1 |
192120006a0bStron    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
192220006a0bStron    *${as_nl}ac_space=\ *)
192320006a0bStron      sed -n \
192420006a0bStron	"s/'\''/'\''\\\\'\'''\''/g;
192520006a0bStron	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
192620006a0bStron      ;; #(
192720006a0bStron    *)
192820006a0bStron      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
192920006a0bStron      ;;
193020006a0bStron    esac |
193120006a0bStron    sort
193220006a0bStron)
193320006a0bStron    echo
193420006a0bStron
1935*e4a6e799Ssimonb    printf "%s\n" "## ----------------- ##
193620006a0bStron## Output variables. ##
193720006a0bStron## ----------------- ##"
193820006a0bStron    echo
193920006a0bStron    for ac_var in $ac_subst_vars
194020006a0bStron    do
194120006a0bStron      eval ac_val=\$$ac_var
194220006a0bStron      case $ac_val in
1943*e4a6e799Ssimonb      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
194420006a0bStron      esac
1945*e4a6e799Ssimonb      printf "%s\n" "$ac_var='\''$ac_val'\''"
194620006a0bStron    done | sort
194720006a0bStron    echo
194820006a0bStron
194920006a0bStron    if test -n "$ac_subst_files"; then
1950*e4a6e799Ssimonb      printf "%s\n" "## ------------------- ##
195120006a0bStron## File substitutions. ##
195220006a0bStron## ------------------- ##"
195320006a0bStron      echo
195420006a0bStron      for ac_var in $ac_subst_files
195520006a0bStron      do
195620006a0bStron	eval ac_val=\$$ac_var
195720006a0bStron	case $ac_val in
1958*e4a6e799Ssimonb	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
195920006a0bStron	esac
1960*e4a6e799Ssimonb	printf "%s\n" "$ac_var='\''$ac_val'\''"
196120006a0bStron      done | sort
196220006a0bStron      echo
196320006a0bStron    fi
196420006a0bStron
196520006a0bStron    if test -s confdefs.h; then
1966*e4a6e799Ssimonb      printf "%s\n" "## ----------- ##
196720006a0bStron## confdefs.h. ##
196820006a0bStron## ----------- ##"
196920006a0bStron      echo
197020006a0bStron      cat confdefs.h
197120006a0bStron      echo
197220006a0bStron    fi
197320006a0bStron    test "$ac_signal" != 0 &&
1974*e4a6e799Ssimonb      printf "%s\n" "$as_me: caught signal $ac_signal"
1975*e4a6e799Ssimonb    printf "%s\n" "$as_me: exit $exit_status"
197620006a0bStron  } >&5
197720006a0bStron  rm -f core *.core core.conftest.* &&
197820006a0bStron    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
197920006a0bStron    exit $exit_status
198020006a0bStron' 0
198120006a0bStronfor ac_signal in 1 2 13 15; do
198220006a0bStron  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
198320006a0bStrondone
198420006a0bStronac_signal=0
198520006a0bStron
198620006a0bStron# confdefs.h avoids OS command line length limits that DEFS can exceed.
198720006a0bStronrm -f -r conftest* confdefs.h
198820006a0bStron
1989*e4a6e799Ssimonbprintf "%s\n" "/* confdefs.h */" > confdefs.h
199020006a0bStron
199120006a0bStron# Predefined preprocessor variables.
199220006a0bStron
1993*e4a6e799Ssimonbprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
199420006a0bStron
1995*e4a6e799Ssimonbprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
199620006a0bStron
1997*e4a6e799Ssimonbprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
199820006a0bStron
1999*e4a6e799Ssimonbprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
200020006a0bStron
2001*e4a6e799Ssimonbprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
200220006a0bStron
2003*e4a6e799Ssimonbprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
200420006a0bStron
200520006a0bStron
200620006a0bStron# Let the site file select an alternate cache file if it wants to.
200720006a0bStron# Prefer an explicitly selected file to automatically selected ones.
200820006a0bStronif test -n "$CONFIG_SITE"; then
2009*e4a6e799Ssimonb  ac_site_files="$CONFIG_SITE"
201020006a0bStronelif test "x$prefix" != xNONE; then
2011*e4a6e799Ssimonb  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
201220006a0bStronelse
2013*e4a6e799Ssimonb  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
201420006a0bStronfi
2015*e4a6e799Ssimonb
2016*e4a6e799Ssimonbfor ac_site_file in $ac_site_files
201720006a0bStrondo
2018*e4a6e799Ssimonb  case $ac_site_file in #(
2019*e4a6e799Ssimonb  */*) :
2020*e4a6e799Ssimonb     ;; #(
2021*e4a6e799Ssimonb  *) :
2022*e4a6e799Ssimonb    ac_site_file=./$ac_site_file ;;
2023*e4a6e799Ssimonbesac
2024*e4a6e799Ssimonb  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2025*e4a6e799Ssimonb    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2026*e4a6e799Ssimonbprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
202720006a0bStron    sed 's/^/| /' "$ac_site_file" >&5
202820006a0bStron    . "$ac_site_file" \
2029*e4a6e799Ssimonb      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2030*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
203120006a0bStronas_fn_error $? "failed to load site script $ac_site_file
203220006a0bStronSee \`config.log' for more details" "$LINENO" 5; }
203320006a0bStron  fi
203420006a0bStrondone
203520006a0bStron
203620006a0bStronif test -r "$cache_file"; then
203720006a0bStron  # Some versions of bash will fail to source /dev/null (special files
203820006a0bStron  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
203920006a0bStron  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2040*e4a6e799Ssimonb    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2041*e4a6e799Ssimonbprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
204220006a0bStron    case $cache_file in
204320006a0bStron      [\\/]* | ?:[\\/]* ) . "$cache_file";;
204420006a0bStron      *)                      . "./$cache_file";;
204520006a0bStron    esac
204620006a0bStron  fi
204720006a0bStronelse
2048*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2049*e4a6e799Ssimonbprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
205020006a0bStron  >$cache_file
205120006a0bStronfi
205220006a0bStron
2053*e4a6e799Ssimonb# Test code for whether the C compiler supports C89 (global declarations)
2054*e4a6e799Ssimonbac_c_conftest_c89_globals='
2055*e4a6e799Ssimonb/* Does the compiler advertise C89 conformance?
2056*e4a6e799Ssimonb   Do not test the value of __STDC__, because some compilers set it to 0
2057*e4a6e799Ssimonb   while being otherwise adequately conformant. */
2058*e4a6e799Ssimonb#if !defined __STDC__
2059*e4a6e799Ssimonb# error "Compiler does not advertise C89 conformance"
2060*e4a6e799Ssimonb#endif
2061*e4a6e799Ssimonb
2062*e4a6e799Ssimonb#include <stddef.h>
2063*e4a6e799Ssimonb#include <stdarg.h>
2064*e4a6e799Ssimonbstruct stat;
2065*e4a6e799Ssimonb/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2066*e4a6e799Ssimonbstruct buf { int x; };
2067*e4a6e799Ssimonbstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
2068*e4a6e799Ssimonbstatic char *e (p, i)
2069*e4a6e799Ssimonb     char **p;
2070*e4a6e799Ssimonb     int i;
2071*e4a6e799Ssimonb{
2072*e4a6e799Ssimonb  return p[i];
2073*e4a6e799Ssimonb}
2074*e4a6e799Ssimonbstatic char *f (char * (*g) (char **, int), char **p, ...)
2075*e4a6e799Ssimonb{
2076*e4a6e799Ssimonb  char *s;
2077*e4a6e799Ssimonb  va_list v;
2078*e4a6e799Ssimonb  va_start (v,p);
2079*e4a6e799Ssimonb  s = g (p, va_arg (v,int));
2080*e4a6e799Ssimonb  va_end (v);
2081*e4a6e799Ssimonb  return s;
2082*e4a6e799Ssimonb}
2083*e4a6e799Ssimonb
2084*e4a6e799Ssimonb/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2085*e4a6e799Ssimonb   function prototypes and stuff, but not \xHH hex character constants.
2086*e4a6e799Ssimonb   These do not provoke an error unfortunately, instead are silently treated
2087*e4a6e799Ssimonb   as an "x".  The following induces an error, until -std is added to get
2088*e4a6e799Ssimonb   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2089*e4a6e799Ssimonb   array size at least.  It is necessary to write \x00 == 0 to get something
2090*e4a6e799Ssimonb   that is true only with -std.  */
2091*e4a6e799Ssimonbint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2092*e4a6e799Ssimonb
2093*e4a6e799Ssimonb/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2094*e4a6e799Ssimonb   inside strings and character constants.  */
2095*e4a6e799Ssimonb#define FOO(x) '\''x'\''
2096*e4a6e799Ssimonbint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2097*e4a6e799Ssimonb
2098*e4a6e799Ssimonbint test (int i, double x);
2099*e4a6e799Ssimonbstruct s1 {int (*f) (int a);};
2100*e4a6e799Ssimonbstruct s2 {int (*f) (double a);};
2101*e4a6e799Ssimonbint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2102*e4a6e799Ssimonb               int, int);'
2103*e4a6e799Ssimonb
2104*e4a6e799Ssimonb# Test code for whether the C compiler supports C89 (body of main).
2105*e4a6e799Ssimonbac_c_conftest_c89_main='
2106*e4a6e799Ssimonbok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2107*e4a6e799Ssimonb'
2108*e4a6e799Ssimonb
2109*e4a6e799Ssimonb# Test code for whether the C compiler supports C99 (global declarations)
2110*e4a6e799Ssimonbac_c_conftest_c99_globals='
2111*e4a6e799Ssimonb// Does the compiler advertise C99 conformance?
2112*e4a6e799Ssimonb#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2113*e4a6e799Ssimonb# error "Compiler does not advertise C99 conformance"
2114*e4a6e799Ssimonb#endif
2115*e4a6e799Ssimonb
2116*e4a6e799Ssimonb#include <stdbool.h>
2117*e4a6e799Ssimonbextern int puts (const char *);
2118*e4a6e799Ssimonbextern int printf (const char *, ...);
2119*e4a6e799Ssimonbextern int dprintf (int, const char *, ...);
2120*e4a6e799Ssimonbextern void *malloc (size_t);
2121*e4a6e799Ssimonb
2122*e4a6e799Ssimonb// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2123*e4a6e799Ssimonb// dprintf is used instead of fprintf to avoid needing to declare
2124*e4a6e799Ssimonb// FILE and stderr.
2125*e4a6e799Ssimonb#define debug(...) dprintf (2, __VA_ARGS__)
2126*e4a6e799Ssimonb#define showlist(...) puts (#__VA_ARGS__)
2127*e4a6e799Ssimonb#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2128*e4a6e799Ssimonbstatic void
2129*e4a6e799Ssimonbtest_varargs_macros (void)
2130*e4a6e799Ssimonb{
2131*e4a6e799Ssimonb  int x = 1234;
2132*e4a6e799Ssimonb  int y = 5678;
2133*e4a6e799Ssimonb  debug ("Flag");
2134*e4a6e799Ssimonb  debug ("X = %d\n", x);
2135*e4a6e799Ssimonb  showlist (The first, second, and third items.);
2136*e4a6e799Ssimonb  report (x>y, "x is %d but y is %d", x, y);
2137*e4a6e799Ssimonb}
2138*e4a6e799Ssimonb
2139*e4a6e799Ssimonb// Check long long types.
2140*e4a6e799Ssimonb#define BIG64 18446744073709551615ull
2141*e4a6e799Ssimonb#define BIG32 4294967295ul
2142*e4a6e799Ssimonb#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2143*e4a6e799Ssimonb#if !BIG_OK
2144*e4a6e799Ssimonb  #error "your preprocessor is broken"
2145*e4a6e799Ssimonb#endif
2146*e4a6e799Ssimonb#if BIG_OK
2147*e4a6e799Ssimonb#else
2148*e4a6e799Ssimonb  #error "your preprocessor is broken"
2149*e4a6e799Ssimonb#endif
2150*e4a6e799Ssimonbstatic long long int bignum = -9223372036854775807LL;
2151*e4a6e799Ssimonbstatic unsigned long long int ubignum = BIG64;
2152*e4a6e799Ssimonb
2153*e4a6e799Ssimonbstruct incomplete_array
2154*e4a6e799Ssimonb{
2155*e4a6e799Ssimonb  int datasize;
2156*e4a6e799Ssimonb  double data[];
2157*e4a6e799Ssimonb};
2158*e4a6e799Ssimonb
2159*e4a6e799Ssimonbstruct named_init {
2160*e4a6e799Ssimonb  int number;
2161*e4a6e799Ssimonb  const wchar_t *name;
2162*e4a6e799Ssimonb  double average;
2163*e4a6e799Ssimonb};
2164*e4a6e799Ssimonb
2165*e4a6e799Ssimonbtypedef const char *ccp;
2166*e4a6e799Ssimonb
2167*e4a6e799Ssimonbstatic inline int
2168*e4a6e799Ssimonbtest_restrict (ccp restrict text)
2169*e4a6e799Ssimonb{
2170*e4a6e799Ssimonb  // See if C++-style comments work.
2171*e4a6e799Ssimonb  // Iterate through items via the restricted pointer.
2172*e4a6e799Ssimonb  // Also check for declarations in for loops.
2173*e4a6e799Ssimonb  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2174*e4a6e799Ssimonb    continue;
2175*e4a6e799Ssimonb  return 0;
2176*e4a6e799Ssimonb}
2177*e4a6e799Ssimonb
2178*e4a6e799Ssimonb// Check varargs and va_copy.
2179*e4a6e799Ssimonbstatic bool
2180*e4a6e799Ssimonbtest_varargs (const char *format, ...)
2181*e4a6e799Ssimonb{
2182*e4a6e799Ssimonb  va_list args;
2183*e4a6e799Ssimonb  va_start (args, format);
2184*e4a6e799Ssimonb  va_list args_copy;
2185*e4a6e799Ssimonb  va_copy (args_copy, args);
2186*e4a6e799Ssimonb
2187*e4a6e799Ssimonb  const char *str = "";
2188*e4a6e799Ssimonb  int number = 0;
2189*e4a6e799Ssimonb  float fnumber = 0;
2190*e4a6e799Ssimonb
2191*e4a6e799Ssimonb  while (*format)
2192*e4a6e799Ssimonb    {
2193*e4a6e799Ssimonb      switch (*format++)
2194*e4a6e799Ssimonb	{
2195*e4a6e799Ssimonb	case '\''s'\'': // string
2196*e4a6e799Ssimonb	  str = va_arg (args_copy, const char *);
2197*e4a6e799Ssimonb	  break;
2198*e4a6e799Ssimonb	case '\''d'\'': // int
2199*e4a6e799Ssimonb	  number = va_arg (args_copy, int);
2200*e4a6e799Ssimonb	  break;
2201*e4a6e799Ssimonb	case '\''f'\'': // float
2202*e4a6e799Ssimonb	  fnumber = va_arg (args_copy, double);
2203*e4a6e799Ssimonb	  break;
2204*e4a6e799Ssimonb	default:
2205*e4a6e799Ssimonb	  break;
2206*e4a6e799Ssimonb	}
2207*e4a6e799Ssimonb    }
2208*e4a6e799Ssimonb  va_end (args_copy);
2209*e4a6e799Ssimonb  va_end (args);
2210*e4a6e799Ssimonb
2211*e4a6e799Ssimonb  return *str && number && fnumber;
2212*e4a6e799Ssimonb}
2213*e4a6e799Ssimonb'
2214*e4a6e799Ssimonb
2215*e4a6e799Ssimonb# Test code for whether the C compiler supports C99 (body of main).
2216*e4a6e799Ssimonbac_c_conftest_c99_main='
2217*e4a6e799Ssimonb  // Check bool.
2218*e4a6e799Ssimonb  _Bool success = false;
2219*e4a6e799Ssimonb  success |= (argc != 0);
2220*e4a6e799Ssimonb
2221*e4a6e799Ssimonb  // Check restrict.
2222*e4a6e799Ssimonb  if (test_restrict ("String literal") == 0)
2223*e4a6e799Ssimonb    success = true;
2224*e4a6e799Ssimonb  char *restrict newvar = "Another string";
2225*e4a6e799Ssimonb
2226*e4a6e799Ssimonb  // Check varargs.
2227*e4a6e799Ssimonb  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2228*e4a6e799Ssimonb  test_varargs_macros ();
2229*e4a6e799Ssimonb
2230*e4a6e799Ssimonb  // Check flexible array members.
2231*e4a6e799Ssimonb  struct incomplete_array *ia =
2232*e4a6e799Ssimonb    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2233*e4a6e799Ssimonb  ia->datasize = 10;
2234*e4a6e799Ssimonb  for (int i = 0; i < ia->datasize; ++i)
2235*e4a6e799Ssimonb    ia->data[i] = i * 1.234;
2236*e4a6e799Ssimonb
2237*e4a6e799Ssimonb  // Check named initializers.
2238*e4a6e799Ssimonb  struct named_init ni = {
2239*e4a6e799Ssimonb    .number = 34,
2240*e4a6e799Ssimonb    .name = L"Test wide string",
2241*e4a6e799Ssimonb    .average = 543.34343,
2242*e4a6e799Ssimonb  };
2243*e4a6e799Ssimonb
2244*e4a6e799Ssimonb  ni.number = 58;
2245*e4a6e799Ssimonb
2246*e4a6e799Ssimonb  int dynamic_array[ni.number];
2247*e4a6e799Ssimonb  dynamic_array[0] = argv[0][0];
2248*e4a6e799Ssimonb  dynamic_array[ni.number - 1] = 543;
2249*e4a6e799Ssimonb
2250*e4a6e799Ssimonb  // work around unused variable warnings
2251*e4a6e799Ssimonb  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2252*e4a6e799Ssimonb	 || dynamic_array[ni.number - 1] != 543);
2253*e4a6e799Ssimonb'
2254*e4a6e799Ssimonb
2255*e4a6e799Ssimonb# Test code for whether the C compiler supports C11 (global declarations)
2256*e4a6e799Ssimonbac_c_conftest_c11_globals='
2257*e4a6e799Ssimonb// Does the compiler advertise C11 conformance?
2258*e4a6e799Ssimonb#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2259*e4a6e799Ssimonb# error "Compiler does not advertise C11 conformance"
2260*e4a6e799Ssimonb#endif
2261*e4a6e799Ssimonb
2262*e4a6e799Ssimonb// Check _Alignas.
2263*e4a6e799Ssimonbchar _Alignas (double) aligned_as_double;
2264*e4a6e799Ssimonbchar _Alignas (0) no_special_alignment;
2265*e4a6e799Ssimonbextern char aligned_as_int;
2266*e4a6e799Ssimonbchar _Alignas (0) _Alignas (int) aligned_as_int;
2267*e4a6e799Ssimonb
2268*e4a6e799Ssimonb// Check _Alignof.
2269*e4a6e799Ssimonbenum
2270*e4a6e799Ssimonb{
2271*e4a6e799Ssimonb  int_alignment = _Alignof (int),
2272*e4a6e799Ssimonb  int_array_alignment = _Alignof (int[100]),
2273*e4a6e799Ssimonb  char_alignment = _Alignof (char)
2274*e4a6e799Ssimonb};
2275*e4a6e799Ssimonb_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2276*e4a6e799Ssimonb
2277*e4a6e799Ssimonb// Check _Noreturn.
2278*e4a6e799Ssimonbint _Noreturn does_not_return (void) { for (;;) continue; }
2279*e4a6e799Ssimonb
2280*e4a6e799Ssimonb// Check _Static_assert.
2281*e4a6e799Ssimonbstruct test_static_assert
2282*e4a6e799Ssimonb{
2283*e4a6e799Ssimonb  int x;
2284*e4a6e799Ssimonb  _Static_assert (sizeof (int) <= sizeof (long int),
2285*e4a6e799Ssimonb                  "_Static_assert does not work in struct");
2286*e4a6e799Ssimonb  long int y;
2287*e4a6e799Ssimonb};
2288*e4a6e799Ssimonb
2289*e4a6e799Ssimonb// Check UTF-8 literals.
2290*e4a6e799Ssimonb#define u8 syntax error!
2291*e4a6e799Ssimonbchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2292*e4a6e799Ssimonb
2293*e4a6e799Ssimonb// Check duplicate typedefs.
2294*e4a6e799Ssimonbtypedef long *long_ptr;
2295*e4a6e799Ssimonbtypedef long int *long_ptr;
2296*e4a6e799Ssimonbtypedef long_ptr long_ptr;
2297*e4a6e799Ssimonb
2298*e4a6e799Ssimonb// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2299*e4a6e799Ssimonbstruct anonymous
2300*e4a6e799Ssimonb{
2301*e4a6e799Ssimonb  union {
2302*e4a6e799Ssimonb    struct { int i; int j; };
2303*e4a6e799Ssimonb    struct { int k; long int l; } w;
2304*e4a6e799Ssimonb  };
2305*e4a6e799Ssimonb  int m;
2306*e4a6e799Ssimonb} v1;
2307*e4a6e799Ssimonb'
2308*e4a6e799Ssimonb
2309*e4a6e799Ssimonb# Test code for whether the C compiler supports C11 (body of main).
2310*e4a6e799Ssimonbac_c_conftest_c11_main='
2311*e4a6e799Ssimonb  _Static_assert ((offsetof (struct anonymous, i)
2312*e4a6e799Ssimonb		   == offsetof (struct anonymous, w.k)),
2313*e4a6e799Ssimonb		  "Anonymous union alignment botch");
2314*e4a6e799Ssimonb  v1.i = 2;
2315*e4a6e799Ssimonb  v1.w.k = 5;
2316*e4a6e799Ssimonb  ok |= v1.i != 5;
2317*e4a6e799Ssimonb'
2318*e4a6e799Ssimonb
2319*e4a6e799Ssimonb# Test code for whether the C compiler supports C11 (complete).
2320*e4a6e799Ssimonbac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2321*e4a6e799Ssimonb${ac_c_conftest_c99_globals}
2322*e4a6e799Ssimonb${ac_c_conftest_c11_globals}
2323*e4a6e799Ssimonb
2324*e4a6e799Ssimonbint
2325*e4a6e799Ssimonbmain (int argc, char **argv)
2326*e4a6e799Ssimonb{
2327*e4a6e799Ssimonb  int ok = 0;
2328*e4a6e799Ssimonb  ${ac_c_conftest_c89_main}
2329*e4a6e799Ssimonb  ${ac_c_conftest_c99_main}
2330*e4a6e799Ssimonb  ${ac_c_conftest_c11_main}
2331*e4a6e799Ssimonb  return ok;
2332*e4a6e799Ssimonb}
2333*e4a6e799Ssimonb"
2334*e4a6e799Ssimonb
2335*e4a6e799Ssimonb# Test code for whether the C compiler supports C99 (complete).
2336*e4a6e799Ssimonbac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2337*e4a6e799Ssimonb${ac_c_conftest_c99_globals}
2338*e4a6e799Ssimonb
2339*e4a6e799Ssimonbint
2340*e4a6e799Ssimonbmain (int argc, char **argv)
2341*e4a6e799Ssimonb{
2342*e4a6e799Ssimonb  int ok = 0;
2343*e4a6e799Ssimonb  ${ac_c_conftest_c89_main}
2344*e4a6e799Ssimonb  ${ac_c_conftest_c99_main}
2345*e4a6e799Ssimonb  return ok;
2346*e4a6e799Ssimonb}
2347*e4a6e799Ssimonb"
2348*e4a6e799Ssimonb
2349*e4a6e799Ssimonb# Test code for whether the C compiler supports C89 (complete).
2350*e4a6e799Ssimonbac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2351*e4a6e799Ssimonb
2352*e4a6e799Ssimonbint
2353*e4a6e799Ssimonbmain (int argc, char **argv)
2354*e4a6e799Ssimonb{
2355*e4a6e799Ssimonb  int ok = 0;
2356*e4a6e799Ssimonb  ${ac_c_conftest_c89_main}
2357*e4a6e799Ssimonb  return ok;
2358*e4a6e799Ssimonb}
2359*e4a6e799Ssimonb"
2360*e4a6e799Ssimonb
2361*e4a6e799Ssimonbas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2362*e4a6e799Ssimonbas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2363*e4a6e799Ssimonbas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2364*e4a6e799Ssimonbas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2365*e4a6e799Ssimonbas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2366*e4a6e799Ssimonbas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2367*e4a6e799Ssimonbas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2368*e4a6e799Ssimonbas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2369*e4a6e799Ssimonbas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2370*e4a6e799Ssimonbas_fn_append ac_header_c_list " ctype.h ctype_h HAVE_CTYPE_H"
2371*e4a6e799Ssimonbas_fn_append ac_header_c_list " errno.h errno_h HAVE_ERRNO_H"
2372*e4a6e799Ssimonbas_fn_append ac_header_c_list " fcntl.h fcntl_h HAVE_FCNTL_H"
2373*e4a6e799Ssimonbas_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
2374*e4a6e799Ssimonbas_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H"
2375*e4a6e799Ssimonbas_fn_append ac_header_c_list " termcap.h termcap_h HAVE_TERMCAP_H"
2376*e4a6e799Ssimonbas_fn_append ac_header_c_list " ncurses/termcap.h ncurses_termcap_h HAVE_NCURSES_TERMCAP_H"
2377*e4a6e799Ssimonbas_fn_append ac_header_c_list " ncursesw/termcap.h ncursesw_termcap_h HAVE_NCURSESW_TERMCAP_H"
2378*e4a6e799Ssimonbas_fn_append ac_header_c_list " termio.h termio_h HAVE_TERMIO_H"
2379*e4a6e799Ssimonbas_fn_append ac_header_c_list " termios.h termios_h HAVE_TERMIOS_H"
2380*e4a6e799Ssimonbas_fn_append ac_header_c_list " time.h time_h HAVE_TIME_H"
2381*e4a6e799Ssimonbas_fn_append ac_header_c_list " values.h values_h HAVE_VALUES_H"
2382*e4a6e799Ssimonbas_fn_append ac_header_c_list " linux/magic.h linux_magic_h HAVE_LINUX_MAGIC_H"
2383*e4a6e799Ssimonbas_fn_append ac_header_c_list " sys/ioctl.h sys_ioctl_h HAVE_SYS_IOCTL_H"
2384*e4a6e799Ssimonbas_fn_append ac_header_c_list " sys/stream.h sys_stream_h HAVE_SYS_STREAM_H"
2385*e4a6e799Ssimonbas_fn_append ac_header_c_list " sys/wait.h sys_wait_h HAVE_SYS_WAIT_H"
2386*e4a6e799Ssimonbas_fn_append ac_header_c_list " wctype.h wctype_h HAVE_WCTYPE_H"
2387*e4a6e799Ssimonb
2388*e4a6e799Ssimonb# Auxiliary files required by this configure script.
2389*e4a6e799Ssimonbac_aux_files="install-sh"
2390*e4a6e799Ssimonb
2391*e4a6e799Ssimonb# Locations in which to look for auxiliary files.
2392*e4a6e799Ssimonbac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2393*e4a6e799Ssimonb
2394*e4a6e799Ssimonb# Search for a directory containing all of the required auxiliary files,
2395*e4a6e799Ssimonb# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2396*e4a6e799Ssimonb# If we don't find one directory that contains all the files we need,
2397*e4a6e799Ssimonb# we report the set of missing files from the *first* directory in
2398*e4a6e799Ssimonb# $ac_aux_dir_candidates and give up.
2399*e4a6e799Ssimonbac_missing_aux_files=""
2400*e4a6e799Ssimonbac_first_candidate=:
2401*e4a6e799Ssimonbprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2402*e4a6e799Ssimonbas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403*e4a6e799Ssimonbas_found=false
2404*e4a6e799Ssimonbfor as_dir in $ac_aux_dir_candidates
2405*e4a6e799Ssimonbdo
2406*e4a6e799Ssimonb  IFS=$as_save_IFS
2407*e4a6e799Ssimonb  case $as_dir in #(((
2408*e4a6e799Ssimonb    '') as_dir=./ ;;
2409*e4a6e799Ssimonb    */) ;;
2410*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
2411*e4a6e799Ssimonb  esac
2412*e4a6e799Ssimonb  as_found=:
2413*e4a6e799Ssimonb
2414*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2415*e4a6e799Ssimonb  ac_aux_dir_found=yes
2416*e4a6e799Ssimonb  ac_install_sh=
2417*e4a6e799Ssimonb  for ac_aux in $ac_aux_files
2418*e4a6e799Ssimonb  do
2419*e4a6e799Ssimonb    # As a special case, if "install-sh" is required, that requirement
2420*e4a6e799Ssimonb    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2421*e4a6e799Ssimonb    # and $ac_install_sh is set appropriately for whichever one is found.
2422*e4a6e799Ssimonb    if test x"$ac_aux" = x"install-sh"
2423*e4a6e799Ssimonb    then
2424*e4a6e799Ssimonb      if test -f "${as_dir}install-sh"; then
2425*e4a6e799Ssimonb        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2426*e4a6e799Ssimonb        ac_install_sh="${as_dir}install-sh -c"
2427*e4a6e799Ssimonb      elif test -f "${as_dir}install.sh"; then
2428*e4a6e799Ssimonb        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2429*e4a6e799Ssimonb        ac_install_sh="${as_dir}install.sh -c"
2430*e4a6e799Ssimonb      elif test -f "${as_dir}shtool"; then
2431*e4a6e799Ssimonb        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2432*e4a6e799Ssimonb        ac_install_sh="${as_dir}shtool install -c"
2433*e4a6e799Ssimonb      else
2434*e4a6e799Ssimonb        ac_aux_dir_found=no
2435*e4a6e799Ssimonb        if $ac_first_candidate; then
2436*e4a6e799Ssimonb          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2437*e4a6e799Ssimonb        else
2438*e4a6e799Ssimonb          break
2439*e4a6e799Ssimonb        fi
2440*e4a6e799Ssimonb      fi
2441*e4a6e799Ssimonb    else
2442*e4a6e799Ssimonb      if test -f "${as_dir}${ac_aux}"; then
2443*e4a6e799Ssimonb        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2444*e4a6e799Ssimonb      else
2445*e4a6e799Ssimonb        ac_aux_dir_found=no
2446*e4a6e799Ssimonb        if $ac_first_candidate; then
2447*e4a6e799Ssimonb          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2448*e4a6e799Ssimonb        else
2449*e4a6e799Ssimonb          break
2450*e4a6e799Ssimonb        fi
2451*e4a6e799Ssimonb      fi
2452*e4a6e799Ssimonb    fi
2453*e4a6e799Ssimonb  done
2454*e4a6e799Ssimonb  if test "$ac_aux_dir_found" = yes; then
2455*e4a6e799Ssimonb    ac_aux_dir="$as_dir"
2456*e4a6e799Ssimonb    break
2457*e4a6e799Ssimonb  fi
2458*e4a6e799Ssimonb  ac_first_candidate=false
2459*e4a6e799Ssimonb
2460*e4a6e799Ssimonb  as_found=false
2461*e4a6e799Ssimonbdone
2462*e4a6e799SsimonbIFS=$as_save_IFS
2463*e4a6e799Ssimonbif $as_found
2464*e4a6e799Ssimonbthen :
2465*e4a6e799Ssimonb
2466*e4a6e799Ssimonbelse $as_nop
2467*e4a6e799Ssimonb  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2468*e4a6e799Ssimonbfi
2469*e4a6e799Ssimonb
2470*e4a6e799Ssimonb
2471*e4a6e799Ssimonb# These three variables are undocumented and unsupported,
2472*e4a6e799Ssimonb# and are intended to be withdrawn in a future Autoconf release.
2473*e4a6e799Ssimonb# They can cause serious problems if a builder's source tree is in a directory
2474*e4a6e799Ssimonb# whose full name contains unusual characters.
2475*e4a6e799Ssimonbif test -f "${ac_aux_dir}config.guess"; then
2476*e4a6e799Ssimonb  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2477*e4a6e799Ssimonbfi
2478*e4a6e799Ssimonbif test -f "${ac_aux_dir}config.sub"; then
2479*e4a6e799Ssimonb  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2480*e4a6e799Ssimonbfi
2481*e4a6e799Ssimonbif test -f "$ac_aux_dir/configure"; then
2482*e4a6e799Ssimonb  ac_configure="$SHELL ${ac_aux_dir}configure"
2483*e4a6e799Ssimonbfi
2484*e4a6e799Ssimonb
248520006a0bStron# Check that the precious variables saved in the cache have kept the same
248620006a0bStron# value.
248720006a0bStronac_cache_corrupted=false
248820006a0bStronfor ac_var in $ac_precious_vars; do
248920006a0bStron  eval ac_old_set=\$ac_cv_env_${ac_var}_set
249020006a0bStron  eval ac_new_set=\$ac_env_${ac_var}_set
249120006a0bStron  eval ac_old_val=\$ac_cv_env_${ac_var}_value
249220006a0bStron  eval ac_new_val=\$ac_env_${ac_var}_value
249320006a0bStron  case $ac_old_set,$ac_new_set in
249420006a0bStron    set,)
2495*e4a6e799Ssimonb      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2496*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
249720006a0bStron      ac_cache_corrupted=: ;;
249820006a0bStron    ,set)
2499*e4a6e799Ssimonb      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2500*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
250120006a0bStron      ac_cache_corrupted=: ;;
250220006a0bStron    ,);;
250320006a0bStron    *)
250420006a0bStron      if test "x$ac_old_val" != "x$ac_new_val"; then
250520006a0bStron	# differences in whitespace do not lead to failure.
250620006a0bStron	ac_old_val_w=`echo x $ac_old_val`
250720006a0bStron	ac_new_val_w=`echo x $ac_new_val`
250820006a0bStron	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2509*e4a6e799Ssimonb	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2510*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
251120006a0bStron	  ac_cache_corrupted=:
251220006a0bStron	else
2513*e4a6e799Ssimonb	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2514*e4a6e799Ssimonbprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
251520006a0bStron	  eval $ac_var=\$ac_old_val
251620006a0bStron	fi
2517*e4a6e799Ssimonb	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2518*e4a6e799Ssimonbprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2519*e4a6e799Ssimonb	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2520*e4a6e799Ssimonbprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
252120006a0bStron      fi;;
252220006a0bStron  esac
252320006a0bStron  # Pass precious variables to config.status.
252420006a0bStron  if test "$ac_new_set" = set; then
252520006a0bStron    case $ac_new_val in
2526*e4a6e799Ssimonb    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
252720006a0bStron    *) ac_arg=$ac_var=$ac_new_val ;;
252820006a0bStron    esac
252920006a0bStron    case " $ac_configure_args " in
253020006a0bStron      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
253120006a0bStron      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
253220006a0bStron    esac
253320006a0bStron  fi
253420006a0bStrondone
253520006a0bStronif $ac_cache_corrupted; then
2536*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2538*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2539*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2540*e4a6e799Ssimonb  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2541*e4a6e799Ssimonb	    and start over" "$LINENO" 5
254220006a0bStronfi
254320006a0bStron## -------------------- ##
254420006a0bStron## Main body of script. ##
254520006a0bStron## -------------------- ##
254620006a0bStron
254720006a0bStronac_ext=c
254820006a0bStronac_cpp='$CPP $CPPFLAGS'
254920006a0bStronac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
255020006a0bStronac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
255120006a0bStronac_compiler_gnu=$ac_cv_c_compiler_gnu
255220006a0bStron
255320006a0bStron
255420006a0bStron
255520006a0bStronac_config_headers="$ac_config_headers defines.h"
255620006a0bStron
255720006a0bStron
255820006a0bStron# Checks for programs.
2559*e4a6e799Ssimonb
2560*e4a6e799Ssimonb
2561*e4a6e799Ssimonb
2562*e4a6e799Ssimonb
2563*e4a6e799Ssimonb
2564*e4a6e799Ssimonb
2565*e4a6e799Ssimonb
2566*e4a6e799Ssimonb
2567*e4a6e799Ssimonb
256820006a0bStronac_ext=c
256920006a0bStronac_cpp='$CPP $CPPFLAGS'
257020006a0bStronac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
257120006a0bStronac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
257220006a0bStronac_compiler_gnu=$ac_cv_c_compiler_gnu
257320006a0bStronif test -n "$ac_tool_prefix"; then
257420006a0bStron  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
257520006a0bStronset dummy ${ac_tool_prefix}gcc; ac_word=$2
2576*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577*e4a6e799Ssimonbprintf %s "checking for $ac_word... " >&6; }
2578*e4a6e799Ssimonbif test ${ac_cv_prog_CC+y}
2579*e4a6e799Ssimonbthen :
2580*e4a6e799Ssimonb  printf %s "(cached) " >&6
2581*e4a6e799Ssimonbelse $as_nop
258220006a0bStron  if test -n "$CC"; then
258320006a0bStron  ac_cv_prog_CC="$CC" # Let the user override the test.
258420006a0bStronelse
258520006a0bStronas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
258620006a0bStronfor as_dir in $PATH
258720006a0bStrondo
258820006a0bStron  IFS=$as_save_IFS
2589*e4a6e799Ssimonb  case $as_dir in #(((
2590*e4a6e799Ssimonb    '') as_dir=./ ;;
2591*e4a6e799Ssimonb    */) ;;
2592*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
2593*e4a6e799Ssimonb  esac
259420006a0bStron    for ac_exec_ext in '' $ac_executable_extensions; do
2595*e4a6e799Ssimonb  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
259620006a0bStron    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2597*e4a6e799Ssimonb    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
259820006a0bStron    break 2
259920006a0bStron  fi
260020006a0bStrondone
260120006a0bStron  done
260220006a0bStronIFS=$as_save_IFS
260320006a0bStron
260420006a0bStronfi
260520006a0bStronfi
260620006a0bStronCC=$ac_cv_prog_CC
260720006a0bStronif test -n "$CC"; then
2608*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2609*e4a6e799Ssimonbprintf "%s\n" "$CC" >&6; }
261020006a0bStronelse
2611*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
261320006a0bStronfi
261420006a0bStron
261520006a0bStron
261620006a0bStronfi
261720006a0bStronif test -z "$ac_cv_prog_CC"; then
261820006a0bStron  ac_ct_CC=$CC
261920006a0bStron  # Extract the first word of "gcc", so it can be a program name with args.
262020006a0bStronset dummy gcc; ac_word=$2
2621*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622*e4a6e799Ssimonbprintf %s "checking for $ac_word... " >&6; }
2623*e4a6e799Ssimonbif test ${ac_cv_prog_ac_ct_CC+y}
2624*e4a6e799Ssimonbthen :
2625*e4a6e799Ssimonb  printf %s "(cached) " >&6
2626*e4a6e799Ssimonbelse $as_nop
262720006a0bStron  if test -n "$ac_ct_CC"; then
262820006a0bStron  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
262920006a0bStronelse
263020006a0bStronas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
263120006a0bStronfor as_dir in $PATH
263220006a0bStrondo
263320006a0bStron  IFS=$as_save_IFS
2634*e4a6e799Ssimonb  case $as_dir in #(((
2635*e4a6e799Ssimonb    '') as_dir=./ ;;
2636*e4a6e799Ssimonb    */) ;;
2637*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
2638*e4a6e799Ssimonb  esac
263920006a0bStron    for ac_exec_ext in '' $ac_executable_extensions; do
2640*e4a6e799Ssimonb  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
264120006a0bStron    ac_cv_prog_ac_ct_CC="gcc"
2642*e4a6e799Ssimonb    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
264320006a0bStron    break 2
264420006a0bStron  fi
264520006a0bStrondone
264620006a0bStron  done
264720006a0bStronIFS=$as_save_IFS
264820006a0bStron
264920006a0bStronfi
265020006a0bStronfi
265120006a0bStronac_ct_CC=$ac_cv_prog_ac_ct_CC
265220006a0bStronif test -n "$ac_ct_CC"; then
2653*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2654*e4a6e799Ssimonbprintf "%s\n" "$ac_ct_CC" >&6; }
265520006a0bStronelse
2656*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
265820006a0bStronfi
265920006a0bStron
266020006a0bStron  if test "x$ac_ct_CC" = x; then
266120006a0bStron    CC=""
266220006a0bStron  else
266320006a0bStron    case $cross_compiling:$ac_tool_warned in
266420006a0bStronyes:)
2665*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2666*e4a6e799Ssimonbprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
266720006a0bStronac_tool_warned=yes ;;
266820006a0bStronesac
266920006a0bStron    CC=$ac_ct_CC
267020006a0bStron  fi
267120006a0bStronelse
267220006a0bStron  CC="$ac_cv_prog_CC"
267320006a0bStronfi
267420006a0bStron
267520006a0bStronif test -z "$CC"; then
267620006a0bStron          if test -n "$ac_tool_prefix"; then
267720006a0bStron    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
267820006a0bStronset dummy ${ac_tool_prefix}cc; ac_word=$2
2679*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680*e4a6e799Ssimonbprintf %s "checking for $ac_word... " >&6; }
2681*e4a6e799Ssimonbif test ${ac_cv_prog_CC+y}
2682*e4a6e799Ssimonbthen :
2683*e4a6e799Ssimonb  printf %s "(cached) " >&6
2684*e4a6e799Ssimonbelse $as_nop
268520006a0bStron  if test -n "$CC"; then
268620006a0bStron  ac_cv_prog_CC="$CC" # Let the user override the test.
268720006a0bStronelse
268820006a0bStronas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
268920006a0bStronfor as_dir in $PATH
269020006a0bStrondo
269120006a0bStron  IFS=$as_save_IFS
2692*e4a6e799Ssimonb  case $as_dir in #(((
2693*e4a6e799Ssimonb    '') as_dir=./ ;;
2694*e4a6e799Ssimonb    */) ;;
2695*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
2696*e4a6e799Ssimonb  esac
269720006a0bStron    for ac_exec_ext in '' $ac_executable_extensions; do
2698*e4a6e799Ssimonb  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
269920006a0bStron    ac_cv_prog_CC="${ac_tool_prefix}cc"
2700*e4a6e799Ssimonb    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
270120006a0bStron    break 2
270220006a0bStron  fi
270320006a0bStrondone
270420006a0bStron  done
270520006a0bStronIFS=$as_save_IFS
270620006a0bStron
270720006a0bStronfi
270820006a0bStronfi
270920006a0bStronCC=$ac_cv_prog_CC
271020006a0bStronif test -n "$CC"; then
2711*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712*e4a6e799Ssimonbprintf "%s\n" "$CC" >&6; }
271320006a0bStronelse
2714*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
271620006a0bStronfi
271720006a0bStron
271820006a0bStron
271920006a0bStron  fi
272020006a0bStronfi
272120006a0bStronif test -z "$CC"; then
272220006a0bStron  # Extract the first word of "cc", so it can be a program name with args.
272320006a0bStronset dummy cc; ac_word=$2
2724*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725*e4a6e799Ssimonbprintf %s "checking for $ac_word... " >&6; }
2726*e4a6e799Ssimonbif test ${ac_cv_prog_CC+y}
2727*e4a6e799Ssimonbthen :
2728*e4a6e799Ssimonb  printf %s "(cached) " >&6
2729*e4a6e799Ssimonbelse $as_nop
273020006a0bStron  if test -n "$CC"; then
273120006a0bStron  ac_cv_prog_CC="$CC" # Let the user override the test.
273220006a0bStronelse
273320006a0bStron  ac_prog_rejected=no
273420006a0bStronas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
273520006a0bStronfor as_dir in $PATH
273620006a0bStrondo
273720006a0bStron  IFS=$as_save_IFS
2738*e4a6e799Ssimonb  case $as_dir in #(((
2739*e4a6e799Ssimonb    '') as_dir=./ ;;
2740*e4a6e799Ssimonb    */) ;;
2741*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
2742*e4a6e799Ssimonb  esac
274320006a0bStron    for ac_exec_ext in '' $ac_executable_extensions; do
2744*e4a6e799Ssimonb  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2745*e4a6e799Ssimonb    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
274620006a0bStron       ac_prog_rejected=yes
274720006a0bStron       continue
274820006a0bStron     fi
274920006a0bStron    ac_cv_prog_CC="cc"
2750*e4a6e799Ssimonb    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
275120006a0bStron    break 2
275220006a0bStron  fi
275320006a0bStrondone
275420006a0bStron  done
275520006a0bStronIFS=$as_save_IFS
275620006a0bStron
275720006a0bStronif test $ac_prog_rejected = yes; then
275820006a0bStron  # We found a bogon in the path, so make sure we never use it.
275920006a0bStron  set dummy $ac_cv_prog_CC
276020006a0bStron  shift
276120006a0bStron  if test $# != 0; then
276220006a0bStron    # We chose a different compiler from the bogus one.
276320006a0bStron    # However, it has the same basename, so the bogon will be chosen
276420006a0bStron    # first if we set CC to just the basename; use the full file name.
276520006a0bStron    shift
2766*e4a6e799Ssimonb    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
276720006a0bStron  fi
276820006a0bStronfi
276920006a0bStronfi
277020006a0bStronfi
277120006a0bStronCC=$ac_cv_prog_CC
277220006a0bStronif test -n "$CC"; then
2773*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774*e4a6e799Ssimonbprintf "%s\n" "$CC" >&6; }
277520006a0bStronelse
2776*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
277820006a0bStronfi
277920006a0bStron
278020006a0bStron
278120006a0bStronfi
278220006a0bStronif test -z "$CC"; then
278320006a0bStron  if test -n "$ac_tool_prefix"; then
278420006a0bStron  for ac_prog in cl.exe
278520006a0bStron  do
278620006a0bStron    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
278720006a0bStronset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789*e4a6e799Ssimonbprintf %s "checking for $ac_word... " >&6; }
2790*e4a6e799Ssimonbif test ${ac_cv_prog_CC+y}
2791*e4a6e799Ssimonbthen :
2792*e4a6e799Ssimonb  printf %s "(cached) " >&6
2793*e4a6e799Ssimonbelse $as_nop
279420006a0bStron  if test -n "$CC"; then
279520006a0bStron  ac_cv_prog_CC="$CC" # Let the user override the test.
279620006a0bStronelse
279720006a0bStronas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
279820006a0bStronfor as_dir in $PATH
279920006a0bStrondo
280020006a0bStron  IFS=$as_save_IFS
2801*e4a6e799Ssimonb  case $as_dir in #(((
2802*e4a6e799Ssimonb    '') as_dir=./ ;;
2803*e4a6e799Ssimonb    */) ;;
2804*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
2805*e4a6e799Ssimonb  esac
280620006a0bStron    for ac_exec_ext in '' $ac_executable_extensions; do
2807*e4a6e799Ssimonb  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
280820006a0bStron    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2809*e4a6e799Ssimonb    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
281020006a0bStron    break 2
281120006a0bStron  fi
281220006a0bStrondone
281320006a0bStron  done
281420006a0bStronIFS=$as_save_IFS
281520006a0bStron
281620006a0bStronfi
281720006a0bStronfi
281820006a0bStronCC=$ac_cv_prog_CC
281920006a0bStronif test -n "$CC"; then
2820*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2821*e4a6e799Ssimonbprintf "%s\n" "$CC" >&6; }
282220006a0bStronelse
2823*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
282520006a0bStronfi
282620006a0bStron
282720006a0bStron
282820006a0bStron    test -n "$CC" && break
282920006a0bStron  done
283020006a0bStronfi
283120006a0bStronif test -z "$CC"; then
283220006a0bStron  ac_ct_CC=$CC
283320006a0bStron  for ac_prog in cl.exe
283420006a0bStrondo
283520006a0bStron  # Extract the first word of "$ac_prog", so it can be a program name with args.
283620006a0bStronset dummy $ac_prog; ac_word=$2
2837*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838*e4a6e799Ssimonbprintf %s "checking for $ac_word... " >&6; }
2839*e4a6e799Ssimonbif test ${ac_cv_prog_ac_ct_CC+y}
2840*e4a6e799Ssimonbthen :
2841*e4a6e799Ssimonb  printf %s "(cached) " >&6
2842*e4a6e799Ssimonbelse $as_nop
284320006a0bStron  if test -n "$ac_ct_CC"; then
284420006a0bStron  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
284520006a0bStronelse
284620006a0bStronas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
284720006a0bStronfor as_dir in $PATH
284820006a0bStrondo
284920006a0bStron  IFS=$as_save_IFS
2850*e4a6e799Ssimonb  case $as_dir in #(((
2851*e4a6e799Ssimonb    '') as_dir=./ ;;
2852*e4a6e799Ssimonb    */) ;;
2853*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
2854*e4a6e799Ssimonb  esac
285520006a0bStron    for ac_exec_ext in '' $ac_executable_extensions; do
2856*e4a6e799Ssimonb  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
285720006a0bStron    ac_cv_prog_ac_ct_CC="$ac_prog"
2858*e4a6e799Ssimonb    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
285920006a0bStron    break 2
286020006a0bStron  fi
286120006a0bStrondone
286220006a0bStron  done
286320006a0bStronIFS=$as_save_IFS
286420006a0bStron
286520006a0bStronfi
286620006a0bStronfi
286720006a0bStronac_ct_CC=$ac_cv_prog_ac_ct_CC
286820006a0bStronif test -n "$ac_ct_CC"; then
2869*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2870*e4a6e799Ssimonbprintf "%s\n" "$ac_ct_CC" >&6; }
287120006a0bStronelse
2872*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
287420006a0bStronfi
287520006a0bStron
287620006a0bStron
287720006a0bStron  test -n "$ac_ct_CC" && break
287820006a0bStrondone
287920006a0bStron
288020006a0bStron  if test "x$ac_ct_CC" = x; then
288120006a0bStron    CC=""
288220006a0bStron  else
288320006a0bStron    case $cross_compiling:$ac_tool_warned in
288420006a0bStronyes:)
2885*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2886*e4a6e799Ssimonbprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
288720006a0bStronac_tool_warned=yes ;;
288820006a0bStronesac
288920006a0bStron    CC=$ac_ct_CC
289020006a0bStron  fi
289120006a0bStronfi
289220006a0bStron
289320006a0bStronfi
2894*e4a6e799Ssimonbif test -z "$CC"; then
2895*e4a6e799Ssimonb  if test -n "$ac_tool_prefix"; then
2896*e4a6e799Ssimonb  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2897*e4a6e799Ssimonbset dummy ${ac_tool_prefix}clang; ac_word=$2
2898*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899*e4a6e799Ssimonbprintf %s "checking for $ac_word... " >&6; }
2900*e4a6e799Ssimonbif test ${ac_cv_prog_CC+y}
2901*e4a6e799Ssimonbthen :
2902*e4a6e799Ssimonb  printf %s "(cached) " >&6
2903*e4a6e799Ssimonbelse $as_nop
2904*e4a6e799Ssimonb  if test -n "$CC"; then
2905*e4a6e799Ssimonb  ac_cv_prog_CC="$CC" # Let the user override the test.
2906*e4a6e799Ssimonbelse
2907*e4a6e799Ssimonbas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908*e4a6e799Ssimonbfor as_dir in $PATH
2909*e4a6e799Ssimonbdo
2910*e4a6e799Ssimonb  IFS=$as_save_IFS
2911*e4a6e799Ssimonb  case $as_dir in #(((
2912*e4a6e799Ssimonb    '') as_dir=./ ;;
2913*e4a6e799Ssimonb    */) ;;
2914*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
2915*e4a6e799Ssimonb  esac
2916*e4a6e799Ssimonb    for ac_exec_ext in '' $ac_executable_extensions; do
2917*e4a6e799Ssimonb  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2918*e4a6e799Ssimonb    ac_cv_prog_CC="${ac_tool_prefix}clang"
2919*e4a6e799Ssimonb    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2920*e4a6e799Ssimonb    break 2
2921*e4a6e799Ssimonb  fi
2922*e4a6e799Ssimonbdone
2923*e4a6e799Ssimonb  done
2924*e4a6e799SsimonbIFS=$as_save_IFS
2925*e4a6e799Ssimonb
2926*e4a6e799Ssimonbfi
2927*e4a6e799Ssimonbfi
2928*e4a6e799SsimonbCC=$ac_cv_prog_CC
2929*e4a6e799Ssimonbif test -n "$CC"; then
2930*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931*e4a6e799Ssimonbprintf "%s\n" "$CC" >&6; }
2932*e4a6e799Ssimonbelse
2933*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
2935*e4a6e799Ssimonbfi
293620006a0bStron
293720006a0bStron
2938*e4a6e799Ssimonbfi
2939*e4a6e799Ssimonbif test -z "$ac_cv_prog_CC"; then
2940*e4a6e799Ssimonb  ac_ct_CC=$CC
2941*e4a6e799Ssimonb  # Extract the first word of "clang", so it can be a program name with args.
2942*e4a6e799Ssimonbset dummy clang; ac_word=$2
2943*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944*e4a6e799Ssimonbprintf %s "checking for $ac_word... " >&6; }
2945*e4a6e799Ssimonbif test ${ac_cv_prog_ac_ct_CC+y}
2946*e4a6e799Ssimonbthen :
2947*e4a6e799Ssimonb  printf %s "(cached) " >&6
2948*e4a6e799Ssimonbelse $as_nop
2949*e4a6e799Ssimonb  if test -n "$ac_ct_CC"; then
2950*e4a6e799Ssimonb  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951*e4a6e799Ssimonbelse
2952*e4a6e799Ssimonbas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953*e4a6e799Ssimonbfor as_dir in $PATH
2954*e4a6e799Ssimonbdo
2955*e4a6e799Ssimonb  IFS=$as_save_IFS
2956*e4a6e799Ssimonb  case $as_dir in #(((
2957*e4a6e799Ssimonb    '') as_dir=./ ;;
2958*e4a6e799Ssimonb    */) ;;
2959*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
2960*e4a6e799Ssimonb  esac
2961*e4a6e799Ssimonb    for ac_exec_ext in '' $ac_executable_extensions; do
2962*e4a6e799Ssimonb  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963*e4a6e799Ssimonb    ac_cv_prog_ac_ct_CC="clang"
2964*e4a6e799Ssimonb    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2965*e4a6e799Ssimonb    break 2
2966*e4a6e799Ssimonb  fi
2967*e4a6e799Ssimonbdone
2968*e4a6e799Ssimonb  done
2969*e4a6e799SsimonbIFS=$as_save_IFS
2970*e4a6e799Ssimonb
2971*e4a6e799Ssimonbfi
2972*e4a6e799Ssimonbfi
2973*e4a6e799Ssimonbac_ct_CC=$ac_cv_prog_ac_ct_CC
2974*e4a6e799Ssimonbif test -n "$ac_ct_CC"; then
2975*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2976*e4a6e799Ssimonbprintf "%s\n" "$ac_ct_CC" >&6; }
2977*e4a6e799Ssimonbelse
2978*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
2980*e4a6e799Ssimonbfi
2981*e4a6e799Ssimonb
2982*e4a6e799Ssimonb  if test "x$ac_ct_CC" = x; then
2983*e4a6e799Ssimonb    CC=""
2984*e4a6e799Ssimonb  else
2985*e4a6e799Ssimonb    case $cross_compiling:$ac_tool_warned in
2986*e4a6e799Ssimonbyes:)
2987*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988*e4a6e799Ssimonbprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989*e4a6e799Ssimonbac_tool_warned=yes ;;
2990*e4a6e799Ssimonbesac
2991*e4a6e799Ssimonb    CC=$ac_ct_CC
2992*e4a6e799Ssimonb  fi
2993*e4a6e799Ssimonbelse
2994*e4a6e799Ssimonb  CC="$ac_cv_prog_CC"
2995*e4a6e799Ssimonbfi
2996*e4a6e799Ssimonb
2997*e4a6e799Ssimonbfi
2998*e4a6e799Ssimonb
2999*e4a6e799Ssimonb
3000*e4a6e799Ssimonbtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
300220006a0bStronas_fn_error $? "no acceptable C compiler found in \$PATH
300320006a0bStronSee \`config.log' for more details" "$LINENO" 5; }
300420006a0bStron
300520006a0bStron# Provide some information about the compiler.
3006*e4a6e799Ssimonbprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
300720006a0bStronset X $ac_compile
300820006a0bStronac_compiler=$2
3009*e4a6e799Ssimonbfor ac_option in --version -v -V -qversion -version; do
301020006a0bStron  { { ac_try="$ac_compiler $ac_option >&5"
301120006a0bStroncase "(($ac_try" in
301220006a0bStron  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
301320006a0bStron  *) ac_try_echo=$ac_try;;
301420006a0bStronesac
301520006a0bStroneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016*e4a6e799Ssimonbprintf "%s\n" "$ac_try_echo"; } >&5
301720006a0bStron  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
301820006a0bStron  ac_status=$?
301920006a0bStron  if test -s conftest.err; then
302020006a0bStron    sed '10a\
302120006a0bStron... rest of stderr output deleted ...
302220006a0bStron         10q' conftest.err >conftest.er1
302320006a0bStron    cat conftest.er1 >&5
302420006a0bStron  fi
302520006a0bStron  rm -f conftest.er1 conftest.err
3026*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
302720006a0bStron  test $ac_status = 0; }
302820006a0bStrondone
302920006a0bStron
303020006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
303120006a0bStron/* end confdefs.h.  */
303220006a0bStron
303320006a0bStronint
3034*e4a6e799Ssimonbmain (void)
303520006a0bStron{
303620006a0bStron
303720006a0bStron  ;
303820006a0bStron  return 0;
303920006a0bStron}
304020006a0bStron_ACEOF
304120006a0bStronac_clean_files_save=$ac_clean_files
304220006a0bStronac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
304320006a0bStron# Try to create an executable without -o first, disregard a.out.
304420006a0bStron# It will help us diagnose broken compilers, and finding out an intuition
304520006a0bStron# of exeext.
3046*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3047*e4a6e799Ssimonbprintf %s "checking whether the C compiler works... " >&6; }
3048*e4a6e799Ssimonbac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
304920006a0bStron
305020006a0bStron# The possible output files:
305120006a0bStronac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
305220006a0bStron
305320006a0bStronac_rmfiles=
305420006a0bStronfor ac_file in $ac_files
305520006a0bStrondo
305620006a0bStron  case $ac_file in
305720006a0bStron    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
305820006a0bStron    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
305920006a0bStron  esac
306020006a0bStrondone
306120006a0bStronrm -f $ac_rmfiles
306220006a0bStron
306320006a0bStronif { { ac_try="$ac_link_default"
306420006a0bStroncase "(($ac_try" in
306520006a0bStron  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
306620006a0bStron  *) ac_try_echo=$ac_try;;
306720006a0bStronesac
306820006a0bStroneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069*e4a6e799Ssimonbprintf "%s\n" "$ac_try_echo"; } >&5
307020006a0bStron  (eval "$ac_link_default") 2>&5
307120006a0bStron  ac_status=$?
3072*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073*e4a6e799Ssimonb  test $ac_status = 0; }
3074*e4a6e799Ssimonbthen :
307520006a0bStron  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
307620006a0bStron# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
307720006a0bStron# in a Makefile.  We should not override ac_cv_exeext if it was cached,
307820006a0bStron# so that the user can short-circuit this test for compilers unknown to
307920006a0bStron# Autoconf.
308020006a0bStronfor ac_file in $ac_files ''
308120006a0bStrondo
308220006a0bStron  test -f "$ac_file" || continue
308320006a0bStron  case $ac_file in
308420006a0bStron    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
308520006a0bStron	;;
308620006a0bStron    [ab].out )
308720006a0bStron	# We found the default executable, but exeext='' is most
308820006a0bStron	# certainly right.
308920006a0bStron	break;;
309020006a0bStron    *.* )
3091*e4a6e799Ssimonb	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
309220006a0bStron	then :; else
309320006a0bStron	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
309420006a0bStron	fi
309520006a0bStron	# We set ac_cv_exeext here because the later test for it is not
309620006a0bStron	# safe: cross compilers may not add the suffix if given an `-o'
309720006a0bStron	# argument, so we may need to know it at that point already.
309820006a0bStron	# Even if this section looks crufty: it has the advantage of
309920006a0bStron	# actually working.
310020006a0bStron	break;;
310120006a0bStron    * )
310220006a0bStron	break;;
310320006a0bStron  esac
310420006a0bStrondone
310520006a0bStrontest "$ac_cv_exeext" = no && ac_cv_exeext=
310620006a0bStron
3107*e4a6e799Ssimonbelse $as_nop
310820006a0bStron  ac_file=''
310920006a0bStronfi
3110*e4a6e799Ssimonbif test -z "$ac_file"
3111*e4a6e799Ssimonbthen :
3112*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
3114*e4a6e799Ssimonbprintf "%s\n" "$as_me: failed program was:" >&5
311520006a0bStronsed 's/^/| /' conftest.$ac_ext >&5
311620006a0bStron
3117*e4a6e799Ssimonb{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3118*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
311920006a0bStronas_fn_error 77 "C compiler cannot create executables
312020006a0bStronSee \`config.log' for more details" "$LINENO" 5; }
3121*e4a6e799Ssimonbelse $as_nop
3122*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3123*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }
312420006a0bStronfi
3125*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3126*e4a6e799Ssimonbprintf %s "checking for C compiler default output file name... " >&6; }
3127*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3128*e4a6e799Ssimonbprintf "%s\n" "$ac_file" >&6; }
312920006a0bStronac_exeext=$ac_cv_exeext
313020006a0bStron
313120006a0bStronrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
313220006a0bStronac_clean_files=$ac_clean_files_save
3133*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3134*e4a6e799Ssimonbprintf %s "checking for suffix of executables... " >&6; }
313520006a0bStronif { { ac_try="$ac_link"
313620006a0bStroncase "(($ac_try" in
313720006a0bStron  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
313820006a0bStron  *) ac_try_echo=$ac_try;;
313920006a0bStronesac
314020006a0bStroneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141*e4a6e799Ssimonbprintf "%s\n" "$ac_try_echo"; } >&5
314220006a0bStron  (eval "$ac_link") 2>&5
314320006a0bStron  ac_status=$?
3144*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145*e4a6e799Ssimonb  test $ac_status = 0; }
3146*e4a6e799Ssimonbthen :
314720006a0bStron  # If both `conftest.exe' and `conftest' are `present' (well, observable)
314820006a0bStron# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
314920006a0bStron# work properly (i.e., refer to `conftest.exe'), while it won't with
315020006a0bStron# `rm'.
315120006a0bStronfor ac_file in conftest.exe conftest conftest.*; do
315220006a0bStron  test -f "$ac_file" || continue
315320006a0bStron  case $ac_file in
315420006a0bStron    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
315520006a0bStron    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
315620006a0bStron	  break;;
315720006a0bStron    * ) break;;
315820006a0bStron  esac
315920006a0bStrondone
3160*e4a6e799Ssimonbelse $as_nop
3161*e4a6e799Ssimonb  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
316320006a0bStronas_fn_error $? "cannot compute suffix of executables: cannot compile and link
316420006a0bStronSee \`config.log' for more details" "$LINENO" 5; }
316520006a0bStronfi
316620006a0bStronrm -f conftest conftest$ac_cv_exeext
3167*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3168*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_exeext" >&6; }
316920006a0bStron
317020006a0bStronrm -f conftest.$ac_ext
317120006a0bStronEXEEXT=$ac_cv_exeext
317220006a0bStronac_exeext=$EXEEXT
317320006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
317420006a0bStron/* end confdefs.h.  */
317520006a0bStron#include <stdio.h>
317620006a0bStronint
3177*e4a6e799Ssimonbmain (void)
317820006a0bStron{
317920006a0bStronFILE *f = fopen ("conftest.out", "w");
318020006a0bStron return ferror (f) || fclose (f) != 0;
318120006a0bStron
318220006a0bStron  ;
318320006a0bStron  return 0;
318420006a0bStron}
318520006a0bStron_ACEOF
318620006a0bStronac_clean_files="$ac_clean_files conftest.out"
318720006a0bStron# Check that the compiler produces executables we can run.  If not, either
318820006a0bStron# the compiler is broken, or we cross compile.
3189*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3190*e4a6e799Ssimonbprintf %s "checking whether we are cross compiling... " >&6; }
319120006a0bStronif test "$cross_compiling" != yes; then
319220006a0bStron  { { ac_try="$ac_link"
319320006a0bStroncase "(($ac_try" in
319420006a0bStron  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319520006a0bStron  *) ac_try_echo=$ac_try;;
319620006a0bStronesac
319720006a0bStroneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198*e4a6e799Ssimonbprintf "%s\n" "$ac_try_echo"; } >&5
319920006a0bStron  (eval "$ac_link") 2>&5
320020006a0bStron  ac_status=$?
3201*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
320220006a0bStron  test $ac_status = 0; }
320320006a0bStron  if { ac_try='./conftest$ac_cv_exeext'
320420006a0bStron  { { case "(($ac_try" in
320520006a0bStron  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
320620006a0bStron  *) ac_try_echo=$ac_try;;
320720006a0bStronesac
320820006a0bStroneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209*e4a6e799Ssimonbprintf "%s\n" "$ac_try_echo"; } >&5
321020006a0bStron  (eval "$ac_try") 2>&5
321120006a0bStron  ac_status=$?
3212*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
321320006a0bStron  test $ac_status = 0; }; }; then
321420006a0bStron    cross_compiling=no
321520006a0bStron  else
321620006a0bStron    if test "$cross_compiling" = maybe; then
321720006a0bStron	cross_compiling=yes
321820006a0bStron    else
3219*e4a6e799Ssimonb	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3221*e4a6e799Ssimonbas_fn_error 77 "cannot run C compiled programs.
322220006a0bStronIf you meant to cross compile, use \`--host'.
322320006a0bStronSee \`config.log' for more details" "$LINENO" 5; }
322420006a0bStron    fi
322520006a0bStron  fi
322620006a0bStronfi
3227*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3228*e4a6e799Ssimonbprintf "%s\n" "$cross_compiling" >&6; }
322920006a0bStron
323020006a0bStronrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
323120006a0bStronac_clean_files=$ac_clean_files_save
3232*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3233*e4a6e799Ssimonbprintf %s "checking for suffix of object files... " >&6; }
3234*e4a6e799Ssimonbif test ${ac_cv_objext+y}
3235*e4a6e799Ssimonbthen :
3236*e4a6e799Ssimonb  printf %s "(cached) " >&6
3237*e4a6e799Ssimonbelse $as_nop
323820006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
323920006a0bStron/* end confdefs.h.  */
324020006a0bStron
324120006a0bStronint
3242*e4a6e799Ssimonbmain (void)
324320006a0bStron{
324420006a0bStron
324520006a0bStron  ;
324620006a0bStron  return 0;
324720006a0bStron}
324820006a0bStron_ACEOF
324920006a0bStronrm -f conftest.o conftest.obj
325020006a0bStronif { { ac_try="$ac_compile"
325120006a0bStroncase "(($ac_try" in
325220006a0bStron  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
325320006a0bStron  *) ac_try_echo=$ac_try;;
325420006a0bStronesac
325520006a0bStroneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256*e4a6e799Ssimonbprintf "%s\n" "$ac_try_echo"; } >&5
325720006a0bStron  (eval "$ac_compile") 2>&5
325820006a0bStron  ac_status=$?
3259*e4a6e799Ssimonb  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260*e4a6e799Ssimonb  test $ac_status = 0; }
3261*e4a6e799Ssimonbthen :
326220006a0bStron  for ac_file in conftest.o conftest.obj conftest.*; do
326320006a0bStron  test -f "$ac_file" || continue;
326420006a0bStron  case $ac_file in
326520006a0bStron    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
326620006a0bStron    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
326720006a0bStron       break;;
326820006a0bStron  esac
326920006a0bStrondone
3270*e4a6e799Ssimonbelse $as_nop
3271*e4a6e799Ssimonb  printf "%s\n" "$as_me: failed program was:" >&5
327220006a0bStronsed 's/^/| /' conftest.$ac_ext >&5
327320006a0bStron
3274*e4a6e799Ssimonb{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
327620006a0bStronas_fn_error $? "cannot compute suffix of object files: cannot compile
327720006a0bStronSee \`config.log' for more details" "$LINENO" 5; }
327820006a0bStronfi
327920006a0bStronrm -f conftest.$ac_cv_objext conftest.$ac_ext
328020006a0bStronfi
3281*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3282*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_objext" >&6; }
328320006a0bStronOBJEXT=$ac_cv_objext
328420006a0bStronac_objext=$OBJEXT
3285*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3286*e4a6e799Ssimonbprintf %s "checking whether the compiler supports GNU C... " >&6; }
3287*e4a6e799Ssimonbif test ${ac_cv_c_compiler_gnu+y}
3288*e4a6e799Ssimonbthen :
3289*e4a6e799Ssimonb  printf %s "(cached) " >&6
3290*e4a6e799Ssimonbelse $as_nop
329120006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
329220006a0bStron/* end confdefs.h.  */
329320006a0bStron
329420006a0bStronint
3295*e4a6e799Ssimonbmain (void)
329620006a0bStron{
329720006a0bStron#ifndef __GNUC__
329820006a0bStron       choke me
329920006a0bStron#endif
330020006a0bStron
330120006a0bStron  ;
330220006a0bStron  return 0;
330320006a0bStron}
330420006a0bStron_ACEOF
3305*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
3306*e4a6e799Ssimonbthen :
330720006a0bStron  ac_compiler_gnu=yes
3308*e4a6e799Ssimonbelse $as_nop
330920006a0bStron  ac_compiler_gnu=no
331020006a0bStronfi
3311*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
331220006a0bStronac_cv_c_compiler_gnu=$ac_compiler_gnu
331320006a0bStron
331420006a0bStronfi
3315*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3316*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3317*e4a6e799Ssimonbac_compiler_gnu=$ac_cv_c_compiler_gnu
3318*e4a6e799Ssimonb
331920006a0bStronif test $ac_compiler_gnu = yes; then
332020006a0bStron  GCC=yes
332120006a0bStronelse
332220006a0bStron  GCC=
332320006a0bStronfi
3324*e4a6e799Ssimonbac_test_CFLAGS=${CFLAGS+y}
332520006a0bStronac_save_CFLAGS=$CFLAGS
3326*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3327*e4a6e799Ssimonbprintf %s "checking whether $CC accepts -g... " >&6; }
3328*e4a6e799Ssimonbif test ${ac_cv_prog_cc_g+y}
3329*e4a6e799Ssimonbthen :
3330*e4a6e799Ssimonb  printf %s "(cached) " >&6
3331*e4a6e799Ssimonbelse $as_nop
333220006a0bStron  ac_save_c_werror_flag=$ac_c_werror_flag
333320006a0bStron   ac_c_werror_flag=yes
333420006a0bStron   ac_cv_prog_cc_g=no
333520006a0bStron   CFLAGS="-g"
333620006a0bStron   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
333720006a0bStron/* end confdefs.h.  */
333820006a0bStron
333920006a0bStronint
3340*e4a6e799Ssimonbmain (void)
334120006a0bStron{
334220006a0bStron
334320006a0bStron  ;
334420006a0bStron  return 0;
334520006a0bStron}
334620006a0bStron_ACEOF
3347*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
3348*e4a6e799Ssimonbthen :
334920006a0bStron  ac_cv_prog_cc_g=yes
3350*e4a6e799Ssimonbelse $as_nop
335120006a0bStron  CFLAGS=""
335220006a0bStron      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
335320006a0bStron/* end confdefs.h.  */
335420006a0bStron
335520006a0bStronint
3356*e4a6e799Ssimonbmain (void)
335720006a0bStron{
335820006a0bStron
335920006a0bStron  ;
336020006a0bStron  return 0;
336120006a0bStron}
336220006a0bStron_ACEOF
3363*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
3364*e4a6e799Ssimonbthen :
336520006a0bStron
3366*e4a6e799Ssimonbelse $as_nop
336720006a0bStron  ac_c_werror_flag=$ac_save_c_werror_flag
336820006a0bStron	 CFLAGS="-g"
336920006a0bStron	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
337020006a0bStron/* end confdefs.h.  */
337120006a0bStron
337220006a0bStronint
3373*e4a6e799Ssimonbmain (void)
337420006a0bStron{
337520006a0bStron
337620006a0bStron  ;
337720006a0bStron  return 0;
337820006a0bStron}
337920006a0bStron_ACEOF
3380*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
3381*e4a6e799Ssimonbthen :
338220006a0bStron  ac_cv_prog_cc_g=yes
338320006a0bStronfi
3384*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
338520006a0bStronfi
3386*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
338720006a0bStronfi
3388*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
338920006a0bStron   ac_c_werror_flag=$ac_save_c_werror_flag
339020006a0bStronfi
3391*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3392*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3393*e4a6e799Ssimonbif test $ac_test_CFLAGS; then
339420006a0bStron  CFLAGS=$ac_save_CFLAGS
339520006a0bStronelif test $ac_cv_prog_cc_g = yes; then
339620006a0bStron  if test "$GCC" = yes; then
339720006a0bStron    CFLAGS="-g -O2"
339820006a0bStron  else
339920006a0bStron    CFLAGS="-g"
340020006a0bStron  fi
340120006a0bStronelse
340220006a0bStron  if test "$GCC" = yes; then
340320006a0bStron    CFLAGS="-O2"
340420006a0bStron  else
340520006a0bStron    CFLAGS=
340620006a0bStron  fi
340720006a0bStronfi
3408*e4a6e799Ssimonbac_prog_cc_stdc=no
3409*e4a6e799Ssimonbif test x$ac_prog_cc_stdc = xno
3410*e4a6e799Ssimonbthen :
3411*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3412*e4a6e799Ssimonbprintf %s "checking for $CC option to enable C11 features... " >&6; }
3413*e4a6e799Ssimonbif test ${ac_cv_prog_cc_c11+y}
3414*e4a6e799Ssimonbthen :
3415*e4a6e799Ssimonb  printf %s "(cached) " >&6
3416*e4a6e799Ssimonbelse $as_nop
3417*e4a6e799Ssimonb  ac_cv_prog_cc_c11=no
3418*e4a6e799Ssimonbac_save_CC=$CC
3419*e4a6e799Ssimonbcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420*e4a6e799Ssimonb/* end confdefs.h.  */
3421*e4a6e799Ssimonb$ac_c_conftest_c11_program
3422*e4a6e799Ssimonb_ACEOF
3423*e4a6e799Ssimonbfor ac_arg in '' -std=gnu11
3424*e4a6e799Ssimonbdo
3425*e4a6e799Ssimonb  CC="$ac_save_CC $ac_arg"
3426*e4a6e799Ssimonb  if ac_fn_c_try_compile "$LINENO"
3427*e4a6e799Ssimonbthen :
3428*e4a6e799Ssimonb  ac_cv_prog_cc_c11=$ac_arg
3429*e4a6e799Ssimonbfi
3430*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam
3431*e4a6e799Ssimonb  test "x$ac_cv_prog_cc_c11" != "xno" && break
3432*e4a6e799Ssimonbdone
3433*e4a6e799Ssimonbrm -f conftest.$ac_ext
3434*e4a6e799SsimonbCC=$ac_save_CC
3435*e4a6e799Ssimonbfi
3436*e4a6e799Ssimonb
3437*e4a6e799Ssimonbif test "x$ac_cv_prog_cc_c11" = xno
3438*e4a6e799Ssimonbthen :
3439*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3440*e4a6e799Ssimonbprintf "%s\n" "unsupported" >&6; }
3441*e4a6e799Ssimonbelse $as_nop
3442*e4a6e799Ssimonb  if test "x$ac_cv_prog_cc_c11" = x
3443*e4a6e799Ssimonbthen :
3444*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3445*e4a6e799Ssimonbprintf "%s\n" "none needed" >&6; }
3446*e4a6e799Ssimonbelse $as_nop
3447*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3448*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3449*e4a6e799Ssimonb     CC="$CC $ac_cv_prog_cc_c11"
3450*e4a6e799Ssimonbfi
3451*e4a6e799Ssimonb  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3452*e4a6e799Ssimonb  ac_prog_cc_stdc=c11
3453*e4a6e799Ssimonbfi
3454*e4a6e799Ssimonbfi
3455*e4a6e799Ssimonbif test x$ac_prog_cc_stdc = xno
3456*e4a6e799Ssimonbthen :
3457*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3458*e4a6e799Ssimonbprintf %s "checking for $CC option to enable C99 features... " >&6; }
3459*e4a6e799Ssimonbif test ${ac_cv_prog_cc_c99+y}
3460*e4a6e799Ssimonbthen :
3461*e4a6e799Ssimonb  printf %s "(cached) " >&6
3462*e4a6e799Ssimonbelse $as_nop
3463*e4a6e799Ssimonb  ac_cv_prog_cc_c99=no
3464*e4a6e799Ssimonbac_save_CC=$CC
3465*e4a6e799Ssimonbcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466*e4a6e799Ssimonb/* end confdefs.h.  */
3467*e4a6e799Ssimonb$ac_c_conftest_c99_program
3468*e4a6e799Ssimonb_ACEOF
3469*e4a6e799Ssimonbfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3470*e4a6e799Ssimonbdo
3471*e4a6e799Ssimonb  CC="$ac_save_CC $ac_arg"
3472*e4a6e799Ssimonb  if ac_fn_c_try_compile "$LINENO"
3473*e4a6e799Ssimonbthen :
3474*e4a6e799Ssimonb  ac_cv_prog_cc_c99=$ac_arg
3475*e4a6e799Ssimonbfi
3476*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam
3477*e4a6e799Ssimonb  test "x$ac_cv_prog_cc_c99" != "xno" && break
3478*e4a6e799Ssimonbdone
3479*e4a6e799Ssimonbrm -f conftest.$ac_ext
3480*e4a6e799SsimonbCC=$ac_save_CC
3481*e4a6e799Ssimonbfi
3482*e4a6e799Ssimonb
3483*e4a6e799Ssimonbif test "x$ac_cv_prog_cc_c99" = xno
3484*e4a6e799Ssimonbthen :
3485*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3486*e4a6e799Ssimonbprintf "%s\n" "unsupported" >&6; }
3487*e4a6e799Ssimonbelse $as_nop
3488*e4a6e799Ssimonb  if test "x$ac_cv_prog_cc_c99" = x
3489*e4a6e799Ssimonbthen :
3490*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3491*e4a6e799Ssimonbprintf "%s\n" "none needed" >&6; }
3492*e4a6e799Ssimonbelse $as_nop
3493*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3494*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3495*e4a6e799Ssimonb     CC="$CC $ac_cv_prog_cc_c99"
3496*e4a6e799Ssimonbfi
3497*e4a6e799Ssimonb  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3498*e4a6e799Ssimonb  ac_prog_cc_stdc=c99
3499*e4a6e799Ssimonbfi
3500*e4a6e799Ssimonbfi
3501*e4a6e799Ssimonbif test x$ac_prog_cc_stdc = xno
3502*e4a6e799Ssimonbthen :
3503*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3504*e4a6e799Ssimonbprintf %s "checking for $CC option to enable C89 features... " >&6; }
3505*e4a6e799Ssimonbif test ${ac_cv_prog_cc_c89+y}
3506*e4a6e799Ssimonbthen :
3507*e4a6e799Ssimonb  printf %s "(cached) " >&6
3508*e4a6e799Ssimonbelse $as_nop
350920006a0bStron  ac_cv_prog_cc_c89=no
351020006a0bStronac_save_CC=$CC
351120006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
351220006a0bStron/* end confdefs.h.  */
3513*e4a6e799Ssimonb$ac_c_conftest_c89_program
351420006a0bStron_ACEOF
3515*e4a6e799Ssimonbfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
351620006a0bStrondo
351720006a0bStron  CC="$ac_save_CC $ac_arg"
3518*e4a6e799Ssimonb  if ac_fn_c_try_compile "$LINENO"
3519*e4a6e799Ssimonbthen :
352020006a0bStron  ac_cv_prog_cc_c89=$ac_arg
352120006a0bStronfi
3522*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam
352320006a0bStron  test "x$ac_cv_prog_cc_c89" != "xno" && break
352420006a0bStrondone
352520006a0bStronrm -f conftest.$ac_ext
352620006a0bStronCC=$ac_save_CC
352720006a0bStronfi
352820006a0bStron
3529*e4a6e799Ssimonbif test "x$ac_cv_prog_cc_c89" = xno
3530*e4a6e799Ssimonbthen :
3531*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3532*e4a6e799Ssimonbprintf "%s\n" "unsupported" >&6; }
3533*e4a6e799Ssimonbelse $as_nop
3534*e4a6e799Ssimonb  if test "x$ac_cv_prog_cc_c89" = x
3535*e4a6e799Ssimonbthen :
3536*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3537*e4a6e799Ssimonbprintf "%s\n" "none needed" >&6; }
3538*e4a6e799Ssimonbelse $as_nop
3539*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3540*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3541*e4a6e799Ssimonb     CC="$CC $ac_cv_prog_cc_c89"
3542*e4a6e799Ssimonbfi
3543*e4a6e799Ssimonb  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3544*e4a6e799Ssimonb  ac_prog_cc_stdc=c89
3545*e4a6e799Ssimonbfi
354620006a0bStronfi
354720006a0bStron
354820006a0bStronac_ext=c
354920006a0bStronac_cpp='$CPP $CPPFLAGS'
355020006a0bStronac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
355120006a0bStronac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
355220006a0bStronac_compiler_gnu=$ac_cv_c_compiler_gnu
355320006a0bStron
355420006a0bStron
3555*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3556*e4a6e799Ssimonbprintf %s "checking for library containing strerror... " >&6; }
3557*e4a6e799Ssimonbif test ${ac_cv_search_strerror+y}
3558*e4a6e799Ssimonbthen :
3559*e4a6e799Ssimonb  printf %s "(cached) " >&6
3560*e4a6e799Ssimonbelse $as_nop
356120006a0bStron  ac_func_search_save_LIBS=$LIBS
356220006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
356320006a0bStron/* end confdefs.h.  */
356420006a0bStron
356520006a0bStron/* Override any GCC internal prototype to avoid an error.
356620006a0bStron   Use char because int might match the return type of a GCC
356720006a0bStron   builtin and then its argument prototype would still apply.  */
356820006a0bStronchar strerror ();
356920006a0bStronint
3570*e4a6e799Ssimonbmain (void)
357120006a0bStron{
357220006a0bStronreturn strerror ();
357320006a0bStron  ;
357420006a0bStron  return 0;
357520006a0bStron}
357620006a0bStron_ACEOF
3577*e4a6e799Ssimonbfor ac_lib in '' cposix
3578*e4a6e799Ssimonbdo
357920006a0bStron  if test -z "$ac_lib"; then
358020006a0bStron    ac_res="none required"
358120006a0bStron  else
358220006a0bStron    ac_res=-l$ac_lib
358320006a0bStron    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
358420006a0bStron  fi
3585*e4a6e799Ssimonb  if ac_fn_c_try_link "$LINENO"
3586*e4a6e799Ssimonbthen :
358720006a0bStron  ac_cv_search_strerror=$ac_res
358820006a0bStronfi
3589*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
359020006a0bStron    conftest$ac_exeext
3591*e4a6e799Ssimonb  if test ${ac_cv_search_strerror+y}
3592*e4a6e799Ssimonbthen :
359320006a0bStron  break
359420006a0bStronfi
359520006a0bStrondone
3596*e4a6e799Ssimonbif test ${ac_cv_search_strerror+y}
3597*e4a6e799Ssimonbthen :
359820006a0bStron
3599*e4a6e799Ssimonbelse $as_nop
360020006a0bStron  ac_cv_search_strerror=no
360120006a0bStronfi
360220006a0bStronrm conftest.$ac_ext
360320006a0bStronLIBS=$ac_func_search_save_LIBS
360420006a0bStronfi
3605*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3606*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_search_strerror" >&6; }
360720006a0bStronac_res=$ac_cv_search_strerror
3608*e4a6e799Ssimonbif test "$ac_res" != no
3609*e4a6e799Ssimonbthen :
361020006a0bStron  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
361120006a0bStron
361220006a0bStronfi
361320006a0bStron
361420006a0bStronac_ext=c
361520006a0bStronac_cpp='$CPP $CPPFLAGS'
361620006a0bStronac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
361720006a0bStronac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
361820006a0bStronac_compiler_gnu=$ac_cv_c_compiler_gnu
3619*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3620*e4a6e799Ssimonbprintf %s "checking how to run the C preprocessor... " >&6; }
362120006a0bStron# On Suns, sometimes $CPP names a directory.
362220006a0bStronif test -n "$CPP" && test -d "$CPP"; then
362320006a0bStron  CPP=
362420006a0bStronfi
362520006a0bStronif test -z "$CPP"; then
3626*e4a6e799Ssimonb  if test ${ac_cv_prog_CPP+y}
3627*e4a6e799Ssimonbthen :
3628*e4a6e799Ssimonb  printf %s "(cached) " >&6
3629*e4a6e799Ssimonbelse $as_nop
3630*e4a6e799Ssimonb      # Double quotes because $CC needs to be expanded
3631*e4a6e799Ssimonb    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
363220006a0bStron    do
363320006a0bStron      ac_preproc_ok=false
363420006a0bStronfor ac_c_preproc_warn_flag in '' yes
363520006a0bStrondo
363620006a0bStron  # Use a header file that comes with gcc, so configuring glibc
363720006a0bStron  # with a fresh cross-compiler works.
363820006a0bStron  # On the NeXT, cc -E runs the code through the compiler's parser,
363920006a0bStron  # not just through cpp. "Syntax error" is here to catch this case.
364020006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
364120006a0bStron/* end confdefs.h.  */
364220006a0bStron#include <limits.h>
364320006a0bStron		     Syntax error
364420006a0bStron_ACEOF
3645*e4a6e799Ssimonbif ac_fn_c_try_cpp "$LINENO"
3646*e4a6e799Ssimonbthen :
364720006a0bStron
3648*e4a6e799Ssimonbelse $as_nop
364920006a0bStron  # Broken: fails on valid input.
365020006a0bStroncontinue
365120006a0bStronfi
365220006a0bStronrm -f conftest.err conftest.i conftest.$ac_ext
365320006a0bStron
365420006a0bStron  # OK, works on sane cases.  Now check whether nonexistent headers
365520006a0bStron  # can be detected and how.
365620006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
365720006a0bStron/* end confdefs.h.  */
365820006a0bStron#include <ac_nonexistent.h>
365920006a0bStron_ACEOF
3660*e4a6e799Ssimonbif ac_fn_c_try_cpp "$LINENO"
3661*e4a6e799Ssimonbthen :
366220006a0bStron  # Broken: success on invalid input.
366320006a0bStroncontinue
3664*e4a6e799Ssimonbelse $as_nop
366520006a0bStron  # Passes both tests.
366620006a0bStronac_preproc_ok=:
366720006a0bStronbreak
366820006a0bStronfi
366920006a0bStronrm -f conftest.err conftest.i conftest.$ac_ext
367020006a0bStron
367120006a0bStrondone
367220006a0bStron# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
367320006a0bStronrm -f conftest.i conftest.err conftest.$ac_ext
3674*e4a6e799Ssimonbif $ac_preproc_ok
3675*e4a6e799Ssimonbthen :
367620006a0bStron  break
367720006a0bStronfi
367820006a0bStron
367920006a0bStron    done
368020006a0bStron    ac_cv_prog_CPP=$CPP
368120006a0bStron
368220006a0bStronfi
368320006a0bStron  CPP=$ac_cv_prog_CPP
368420006a0bStronelse
368520006a0bStron  ac_cv_prog_CPP=$CPP
368620006a0bStronfi
3687*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3688*e4a6e799Ssimonbprintf "%s\n" "$CPP" >&6; }
368920006a0bStronac_preproc_ok=false
369020006a0bStronfor ac_c_preproc_warn_flag in '' yes
369120006a0bStrondo
369220006a0bStron  # Use a header file that comes with gcc, so configuring glibc
369320006a0bStron  # with a fresh cross-compiler works.
369420006a0bStron  # On the NeXT, cc -E runs the code through the compiler's parser,
369520006a0bStron  # not just through cpp. "Syntax error" is here to catch this case.
369620006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
369720006a0bStron/* end confdefs.h.  */
369820006a0bStron#include <limits.h>
369920006a0bStron		     Syntax error
370020006a0bStron_ACEOF
3701*e4a6e799Ssimonbif ac_fn_c_try_cpp "$LINENO"
3702*e4a6e799Ssimonbthen :
370320006a0bStron
3704*e4a6e799Ssimonbelse $as_nop
370520006a0bStron  # Broken: fails on valid input.
370620006a0bStroncontinue
370720006a0bStronfi
370820006a0bStronrm -f conftest.err conftest.i conftest.$ac_ext
370920006a0bStron
371020006a0bStron  # OK, works on sane cases.  Now check whether nonexistent headers
371120006a0bStron  # can be detected and how.
371220006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
371320006a0bStron/* end confdefs.h.  */
371420006a0bStron#include <ac_nonexistent.h>
371520006a0bStron_ACEOF
3716*e4a6e799Ssimonbif ac_fn_c_try_cpp "$LINENO"
3717*e4a6e799Ssimonbthen :
371820006a0bStron  # Broken: success on invalid input.
371920006a0bStroncontinue
3720*e4a6e799Ssimonbelse $as_nop
372120006a0bStron  # Passes both tests.
372220006a0bStronac_preproc_ok=:
372320006a0bStronbreak
372420006a0bStronfi
372520006a0bStronrm -f conftest.err conftest.i conftest.$ac_ext
372620006a0bStron
372720006a0bStrondone
372820006a0bStron# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
372920006a0bStronrm -f conftest.i conftest.err conftest.$ac_ext
3730*e4a6e799Ssimonbif $ac_preproc_ok
3731*e4a6e799Ssimonbthen :
373220006a0bStron
3733*e4a6e799Ssimonbelse $as_nop
3734*e4a6e799Ssimonb  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735*e4a6e799Ssimonbprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
373620006a0bStronas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
373720006a0bStronSee \`config.log' for more details" "$LINENO" 5; }
373820006a0bStronfi
373920006a0bStron
374020006a0bStronac_ext=c
374120006a0bStronac_cpp='$CPP $CPPFLAGS'
374220006a0bStronac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
374320006a0bStronac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
374420006a0bStronac_compiler_gnu=$ac_cv_c_compiler_gnu
374520006a0bStron
374620006a0bStron
3747*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3748*e4a6e799Ssimonbprintf %s "checking for grep that handles long lines and -e... " >&6; }
3749*e4a6e799Ssimonbif test ${ac_cv_path_GREP+y}
3750*e4a6e799Ssimonbthen :
3751*e4a6e799Ssimonb  printf %s "(cached) " >&6
3752*e4a6e799Ssimonbelse $as_nop
375320006a0bStron  if test -z "$GREP"; then
375420006a0bStron  ac_path_GREP_found=false
375520006a0bStron  # Loop through the user's path and test for each of PROGNAME-LIST
375620006a0bStron  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
375720006a0bStronfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
375820006a0bStrondo
375920006a0bStron  IFS=$as_save_IFS
3760*e4a6e799Ssimonb  case $as_dir in #(((
3761*e4a6e799Ssimonb    '') as_dir=./ ;;
3762*e4a6e799Ssimonb    */) ;;
3763*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
3764*e4a6e799Ssimonb  esac
3765*e4a6e799Ssimonb    for ac_prog in grep ggrep
3766*e4a6e799Ssimonb   do
376720006a0bStron    for ac_exec_ext in '' $ac_executable_extensions; do
3768*e4a6e799Ssimonb      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3769*e4a6e799Ssimonb      as_fn_executable_p "$ac_path_GREP" || continue
377020006a0bStron# Check for GNU ac_path_GREP and select it if it is found.
377120006a0bStron  # Check for GNU $ac_path_GREP
377220006a0bStroncase `"$ac_path_GREP" --version 2>&1` in
377320006a0bStron*GNU*)
377420006a0bStron  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
377520006a0bStron*)
377620006a0bStron  ac_count=0
3777*e4a6e799Ssimonb  printf %s 0123456789 >"conftest.in"
377820006a0bStron  while :
377920006a0bStron  do
378020006a0bStron    cat "conftest.in" "conftest.in" >"conftest.tmp"
378120006a0bStron    mv "conftest.tmp" "conftest.in"
378220006a0bStron    cp "conftest.in" "conftest.nl"
3783*e4a6e799Ssimonb    printf "%s\n" 'GREP' >> "conftest.nl"
378420006a0bStron    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
378520006a0bStron    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
378620006a0bStron    as_fn_arith $ac_count + 1 && ac_count=$as_val
378720006a0bStron    if test $ac_count -gt ${ac_path_GREP_max-0}; then
378820006a0bStron      # Best one so far, save it but keep looking for a better one
378920006a0bStron      ac_cv_path_GREP="$ac_path_GREP"
379020006a0bStron      ac_path_GREP_max=$ac_count
379120006a0bStron    fi
379220006a0bStron    # 10*(2^10) chars as input seems more than enough
379320006a0bStron    test $ac_count -gt 10 && break
379420006a0bStron  done
379520006a0bStron  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
379620006a0bStronesac
379720006a0bStron
379820006a0bStron      $ac_path_GREP_found && break 3
379920006a0bStron    done
380020006a0bStron  done
380120006a0bStron  done
380220006a0bStronIFS=$as_save_IFS
380320006a0bStron  if test -z "$ac_cv_path_GREP"; then
380420006a0bStron    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
380520006a0bStron  fi
380620006a0bStronelse
380720006a0bStron  ac_cv_path_GREP=$GREP
380820006a0bStronfi
380920006a0bStron
381020006a0bStronfi
3811*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3812*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_path_GREP" >&6; }
381320006a0bStron GREP="$ac_cv_path_GREP"
381420006a0bStron
381520006a0bStron
3816*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3817*e4a6e799Ssimonbprintf %s "checking for egrep... " >&6; }
3818*e4a6e799Ssimonbif test ${ac_cv_path_EGREP+y}
3819*e4a6e799Ssimonbthen :
3820*e4a6e799Ssimonb  printf %s "(cached) " >&6
3821*e4a6e799Ssimonbelse $as_nop
382220006a0bStron  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
382320006a0bStron   then ac_cv_path_EGREP="$GREP -E"
382420006a0bStron   else
382520006a0bStron     if test -z "$EGREP"; then
382620006a0bStron  ac_path_EGREP_found=false
382720006a0bStron  # Loop through the user's path and test for each of PROGNAME-LIST
382820006a0bStron  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
382920006a0bStronfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
383020006a0bStrondo
383120006a0bStron  IFS=$as_save_IFS
3832*e4a6e799Ssimonb  case $as_dir in #(((
3833*e4a6e799Ssimonb    '') as_dir=./ ;;
3834*e4a6e799Ssimonb    */) ;;
3835*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
3836*e4a6e799Ssimonb  esac
3837*e4a6e799Ssimonb    for ac_prog in egrep
3838*e4a6e799Ssimonb   do
383920006a0bStron    for ac_exec_ext in '' $ac_executable_extensions; do
3840*e4a6e799Ssimonb      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
3841*e4a6e799Ssimonb      as_fn_executable_p "$ac_path_EGREP" || continue
384220006a0bStron# Check for GNU ac_path_EGREP and select it if it is found.
384320006a0bStron  # Check for GNU $ac_path_EGREP
384420006a0bStroncase `"$ac_path_EGREP" --version 2>&1` in
384520006a0bStron*GNU*)
384620006a0bStron  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
384720006a0bStron*)
384820006a0bStron  ac_count=0
3849*e4a6e799Ssimonb  printf %s 0123456789 >"conftest.in"
385020006a0bStron  while :
385120006a0bStron  do
385220006a0bStron    cat "conftest.in" "conftest.in" >"conftest.tmp"
385320006a0bStron    mv "conftest.tmp" "conftest.in"
385420006a0bStron    cp "conftest.in" "conftest.nl"
3855*e4a6e799Ssimonb    printf "%s\n" 'EGREP' >> "conftest.nl"
385620006a0bStron    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
385720006a0bStron    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
385820006a0bStron    as_fn_arith $ac_count + 1 && ac_count=$as_val
385920006a0bStron    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
386020006a0bStron      # Best one so far, save it but keep looking for a better one
386120006a0bStron      ac_cv_path_EGREP="$ac_path_EGREP"
386220006a0bStron      ac_path_EGREP_max=$ac_count
386320006a0bStron    fi
386420006a0bStron    # 10*(2^10) chars as input seems more than enough
386520006a0bStron    test $ac_count -gt 10 && break
386620006a0bStron  done
386720006a0bStron  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
386820006a0bStronesac
386920006a0bStron
387020006a0bStron      $ac_path_EGREP_found && break 3
387120006a0bStron    done
387220006a0bStron  done
387320006a0bStron  done
387420006a0bStronIFS=$as_save_IFS
387520006a0bStron  if test -z "$ac_cv_path_EGREP"; then
387620006a0bStron    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
387720006a0bStron  fi
387820006a0bStronelse
387920006a0bStron  ac_cv_path_EGREP=$EGREP
388020006a0bStronfi
388120006a0bStron
388220006a0bStron   fi
388320006a0bStronfi
3884*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3885*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_path_EGREP" >&6; }
388620006a0bStron EGREP="$ac_cv_path_EGREP"
388720006a0bStron
388820006a0bStron
388920006a0bStronif test $ac_cv_c_compiler_gnu = yes; then
3890*e4a6e799Ssimonb    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3891*e4a6e799Ssimonbprintf %s "checking whether $CC needs -traditional... " >&6; }
3892*e4a6e799Ssimonbif test ${ac_cv_prog_gcc_traditional+y}
3893*e4a6e799Ssimonbthen :
3894*e4a6e799Ssimonb  printf %s "(cached) " >&6
3895*e4a6e799Ssimonbelse $as_nop
389620006a0bStron    ac_pattern="Autoconf.*'x'"
389720006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
389820006a0bStron/* end confdefs.h.  */
389920006a0bStron#include <sgtty.h>
390020006a0bStronAutoconf TIOCGETP
390120006a0bStron_ACEOF
390220006a0bStronif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903*e4a6e799Ssimonb  $EGREP "$ac_pattern" >/dev/null 2>&1
3904*e4a6e799Ssimonbthen :
390520006a0bStron  ac_cv_prog_gcc_traditional=yes
3906*e4a6e799Ssimonbelse $as_nop
390720006a0bStron  ac_cv_prog_gcc_traditional=no
390820006a0bStronfi
3909*e4a6e799Ssimonbrm -rf conftest*
391020006a0bStron
391120006a0bStron
391220006a0bStron  if test $ac_cv_prog_gcc_traditional = no; then
391320006a0bStron    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
391420006a0bStron/* end confdefs.h.  */
391520006a0bStron#include <termio.h>
391620006a0bStronAutoconf TCGETA
391720006a0bStron_ACEOF
391820006a0bStronif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3919*e4a6e799Ssimonb  $EGREP "$ac_pattern" >/dev/null 2>&1
3920*e4a6e799Ssimonbthen :
392120006a0bStron  ac_cv_prog_gcc_traditional=yes
392220006a0bStronfi
3923*e4a6e799Ssimonbrm -rf conftest*
392420006a0bStron
392520006a0bStron  fi
392620006a0bStronfi
3927*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3928*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
392920006a0bStron  if test $ac_cv_prog_gcc_traditional = yes; then
393020006a0bStron    CC="$CC -traditional"
393120006a0bStron  fi
393220006a0bStronfi
393320006a0bStron
393420006a0bStron
393520006a0bStron
393620006a0bStron  # Find a good install program.  We prefer a C program (faster),
393720006a0bStron# so one script is as good as another.  But avoid the broken or
393820006a0bStron# incompatible versions:
393920006a0bStron# SysV /etc/install, /usr/sbin/install
394020006a0bStron# SunOS /usr/etc/install
394120006a0bStron# IRIX /sbin/install
394220006a0bStron# AIX /bin/install
394320006a0bStron# AmigaOS /C/install, which installs bootblocks on floppy discs
394420006a0bStron# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
394520006a0bStron# AFS /usr/afsws/bin/install, which mishandles nonexistent args
394620006a0bStron# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
394720006a0bStron# OS/2's system install, which has a completely different semantic
394820006a0bStron# ./install, which can be erroneously created by make from ./install.sh.
394920006a0bStron# Reject install programs that cannot install multiple files.
3950*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3951*e4a6e799Ssimonbprintf %s "checking for a BSD-compatible install... " >&6; }
395220006a0bStronif test -z "$INSTALL"; then
3953*e4a6e799Ssimonbif test ${ac_cv_path_install+y}
3954*e4a6e799Ssimonbthen :
3955*e4a6e799Ssimonb  printf %s "(cached) " >&6
3956*e4a6e799Ssimonbelse $as_nop
395720006a0bStron  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
395820006a0bStronfor as_dir in $PATH
395920006a0bStrondo
396020006a0bStron  IFS=$as_save_IFS
3961*e4a6e799Ssimonb  case $as_dir in #(((
3962*e4a6e799Ssimonb    '') as_dir=./ ;;
3963*e4a6e799Ssimonb    */) ;;
3964*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
3965*e4a6e799Ssimonb  esac
3966*e4a6e799Ssimonb    # Account for fact that we put trailing slashes in our PATH walk.
3967*e4a6e799Ssimonbcase $as_dir in #((
3968*e4a6e799Ssimonb  ./ | /[cC]/* | \
396920006a0bStron  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
397020006a0bStron  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
397120006a0bStron  /usr/ucb/* ) ;;
397220006a0bStron  *)
397320006a0bStron    # OSF1 and SCO ODT 3.0 have their own names for install.
397420006a0bStron    # Don't use installbsd from OSF since it installs stuff as root
397520006a0bStron    # by default.
397620006a0bStron    for ac_prog in ginstall scoinst install; do
397720006a0bStron      for ac_exec_ext in '' $ac_executable_extensions; do
3978*e4a6e799Ssimonb	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
397920006a0bStron	  if test $ac_prog = install &&
3980*e4a6e799Ssimonb	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
398120006a0bStron	    # AIX install.  It has an incompatible calling convention.
398220006a0bStron	    :
398320006a0bStron	  elif test $ac_prog = install &&
3984*e4a6e799Ssimonb	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
398520006a0bStron	    # program-specific install script used by HP pwplus--don't use.
398620006a0bStron	    :
398720006a0bStron	  else
398820006a0bStron	    rm -rf conftest.one conftest.two conftest.dir
398920006a0bStron	    echo one > conftest.one
399020006a0bStron	    echo two > conftest.two
399120006a0bStron	    mkdir conftest.dir
3992*e4a6e799Ssimonb	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
399320006a0bStron	      test -s conftest.one && test -s conftest.two &&
399420006a0bStron	      test -s conftest.dir/conftest.one &&
399520006a0bStron	      test -s conftest.dir/conftest.two
399620006a0bStron	    then
3997*e4a6e799Ssimonb	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
399820006a0bStron	      break 3
399920006a0bStron	    fi
400020006a0bStron	  fi
400120006a0bStron	fi
400220006a0bStron      done
400320006a0bStron    done
400420006a0bStron    ;;
400520006a0bStronesac
400620006a0bStron
400720006a0bStron  done
400820006a0bStronIFS=$as_save_IFS
400920006a0bStron
401020006a0bStronrm -rf conftest.one conftest.two conftest.dir
401120006a0bStron
401220006a0bStronfi
4013*e4a6e799Ssimonb  if test ${ac_cv_path_install+y}; then
401420006a0bStron    INSTALL=$ac_cv_path_install
401520006a0bStron  else
401620006a0bStron    # As a last resort, use the slow shell script.  Don't cache a
401720006a0bStron    # value for INSTALL within a source directory, because that will
401820006a0bStron    # break other packages using the cache if that directory is
401920006a0bStron    # removed, or if the value is a relative name.
402020006a0bStron    INSTALL=$ac_install_sh
402120006a0bStron  fi
402220006a0bStronfi
4023*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4024*e4a6e799Ssimonbprintf "%s\n" "$INSTALL" >&6; }
402520006a0bStron
402620006a0bStron# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
402720006a0bStron# It thinks the first close brace ends the variable substitution.
402820006a0bStrontest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
402920006a0bStron
403020006a0bStrontest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
403120006a0bStron
403220006a0bStrontest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
403320006a0bStron
403420006a0bStron
403520006a0bStron# Checks for compilation model.
403620006a0bStron# Check whether --enable-largefile was given.
4037*e4a6e799Ssimonbif test ${enable_largefile+y}
4038*e4a6e799Ssimonbthen :
403920006a0bStron  enableval=$enable_largefile;
404020006a0bStronfi
404120006a0bStron
404220006a0bStronif test "$enable_largefile" != no; then
404320006a0bStron
4044*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4045*e4a6e799Ssimonbprintf %s "checking for special C compiler options needed for large files... " >&6; }
4046*e4a6e799Ssimonbif test ${ac_cv_sys_largefile_CC+y}
4047*e4a6e799Ssimonbthen :
4048*e4a6e799Ssimonb  printf %s "(cached) " >&6
4049*e4a6e799Ssimonbelse $as_nop
405020006a0bStron  ac_cv_sys_largefile_CC=no
405120006a0bStron     if test "$GCC" != yes; then
405220006a0bStron       ac_save_CC=$CC
405320006a0bStron       while :; do
405420006a0bStron	 # IRIX 6.2 and later do not support large files by default,
405520006a0bStron	 # so use the C compiler's -n32 option if that helps.
405620006a0bStron	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
405720006a0bStron/* end confdefs.h.  */
405820006a0bStron#include <sys/types.h>
405920006a0bStron /* Check that off_t can represent 2**63 - 1 correctly.
406020006a0bStron    We can't simply define LARGE_OFF_T to be 9223372036854775807,
406120006a0bStron    since some C++ compilers masquerading as C compilers
406220006a0bStron    incorrectly reject 9223372036854775807.  */
4063*e4a6e799Ssimonb#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
406420006a0bStron  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
406520006a0bStron		       && LARGE_OFF_T % 2147483647 == 1)
406620006a0bStron		      ? 1 : -1];
406720006a0bStronint
4068*e4a6e799Ssimonbmain (void)
406920006a0bStron{
407020006a0bStron
407120006a0bStron  ;
407220006a0bStron  return 0;
407320006a0bStron}
407420006a0bStron_ACEOF
4075*e4a6e799Ssimonb	 if ac_fn_c_try_compile "$LINENO"
4076*e4a6e799Ssimonbthen :
407720006a0bStron  break
407820006a0bStronfi
4079*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam
408020006a0bStron	 CC="$CC -n32"
4081*e4a6e799Ssimonb	 if ac_fn_c_try_compile "$LINENO"
4082*e4a6e799Ssimonbthen :
408320006a0bStron  ac_cv_sys_largefile_CC=' -n32'; break
408420006a0bStronfi
4085*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam
408620006a0bStron	 break
408720006a0bStron       done
408820006a0bStron       CC=$ac_save_CC
408920006a0bStron       rm -f conftest.$ac_ext
409020006a0bStron    fi
409120006a0bStronfi
4092*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4093*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
409420006a0bStron  if test "$ac_cv_sys_largefile_CC" != no; then
409520006a0bStron    CC=$CC$ac_cv_sys_largefile_CC
409620006a0bStron  fi
409720006a0bStron
4098*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4099*e4a6e799Ssimonbprintf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4100*e4a6e799Ssimonbif test ${ac_cv_sys_file_offset_bits+y}
4101*e4a6e799Ssimonbthen :
4102*e4a6e799Ssimonb  printf %s "(cached) " >&6
4103*e4a6e799Ssimonbelse $as_nop
410420006a0bStron  while :; do
410520006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
410620006a0bStron/* end confdefs.h.  */
410720006a0bStron#include <sys/types.h>
410820006a0bStron /* Check that off_t can represent 2**63 - 1 correctly.
410920006a0bStron    We can't simply define LARGE_OFF_T to be 9223372036854775807,
411020006a0bStron    since some C++ compilers masquerading as C compilers
411120006a0bStron    incorrectly reject 9223372036854775807.  */
4112*e4a6e799Ssimonb#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
411320006a0bStron  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
411420006a0bStron		       && LARGE_OFF_T % 2147483647 == 1)
411520006a0bStron		      ? 1 : -1];
411620006a0bStronint
4117*e4a6e799Ssimonbmain (void)
411820006a0bStron{
411920006a0bStron
412020006a0bStron  ;
412120006a0bStron  return 0;
412220006a0bStron}
412320006a0bStron_ACEOF
4124*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
4125*e4a6e799Ssimonbthen :
412620006a0bStron  ac_cv_sys_file_offset_bits=no; break
412720006a0bStronfi
4128*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
412920006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
413020006a0bStron/* end confdefs.h.  */
413120006a0bStron#define _FILE_OFFSET_BITS 64
413220006a0bStron#include <sys/types.h>
413320006a0bStron /* Check that off_t can represent 2**63 - 1 correctly.
413420006a0bStron    We can't simply define LARGE_OFF_T to be 9223372036854775807,
413520006a0bStron    since some C++ compilers masquerading as C compilers
413620006a0bStron    incorrectly reject 9223372036854775807.  */
4137*e4a6e799Ssimonb#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
413820006a0bStron  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
413920006a0bStron		       && LARGE_OFF_T % 2147483647 == 1)
414020006a0bStron		      ? 1 : -1];
414120006a0bStronint
4142*e4a6e799Ssimonbmain (void)
414320006a0bStron{
414420006a0bStron
414520006a0bStron  ;
414620006a0bStron  return 0;
414720006a0bStron}
414820006a0bStron_ACEOF
4149*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
4150*e4a6e799Ssimonbthen :
415120006a0bStron  ac_cv_sys_file_offset_bits=64; break
415220006a0bStronfi
4153*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
415420006a0bStron  ac_cv_sys_file_offset_bits=unknown
415520006a0bStron  break
415620006a0bStrondone
415720006a0bStronfi
4158*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4159*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
416020006a0bStroncase $ac_cv_sys_file_offset_bits in #(
416120006a0bStron  no | unknown) ;;
416220006a0bStron  *)
4163*e4a6e799Ssimonbprintf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
416420006a0bStron;;
416520006a0bStronesac
416620006a0bStronrm -rf conftest*
416720006a0bStron  if test $ac_cv_sys_file_offset_bits = unknown; then
4168*e4a6e799Ssimonb    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4169*e4a6e799Ssimonbprintf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
4170*e4a6e799Ssimonbif test ${ac_cv_sys_large_files+y}
4171*e4a6e799Ssimonbthen :
4172*e4a6e799Ssimonb  printf %s "(cached) " >&6
4173*e4a6e799Ssimonbelse $as_nop
417420006a0bStron  while :; do
417520006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
417620006a0bStron/* end confdefs.h.  */
417720006a0bStron#include <sys/types.h>
417820006a0bStron /* Check that off_t can represent 2**63 - 1 correctly.
417920006a0bStron    We can't simply define LARGE_OFF_T to be 9223372036854775807,
418020006a0bStron    since some C++ compilers masquerading as C compilers
418120006a0bStron    incorrectly reject 9223372036854775807.  */
4182*e4a6e799Ssimonb#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
418320006a0bStron  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
418420006a0bStron		       && LARGE_OFF_T % 2147483647 == 1)
418520006a0bStron		      ? 1 : -1];
418620006a0bStronint
4187*e4a6e799Ssimonbmain (void)
418820006a0bStron{
418920006a0bStron
419020006a0bStron  ;
419120006a0bStron  return 0;
419220006a0bStron}
419320006a0bStron_ACEOF
4194*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
4195*e4a6e799Ssimonbthen :
419620006a0bStron  ac_cv_sys_large_files=no; break
419720006a0bStronfi
4198*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
419920006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
420020006a0bStron/* end confdefs.h.  */
420120006a0bStron#define _LARGE_FILES 1
420220006a0bStron#include <sys/types.h>
420320006a0bStron /* Check that off_t can represent 2**63 - 1 correctly.
420420006a0bStron    We can't simply define LARGE_OFF_T to be 9223372036854775807,
420520006a0bStron    since some C++ compilers masquerading as C compilers
420620006a0bStron    incorrectly reject 9223372036854775807.  */
4207*e4a6e799Ssimonb#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
420820006a0bStron  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
420920006a0bStron		       && LARGE_OFF_T % 2147483647 == 1)
421020006a0bStron		      ? 1 : -1];
421120006a0bStronint
4212*e4a6e799Ssimonbmain (void)
421320006a0bStron{
421420006a0bStron
421520006a0bStron  ;
421620006a0bStron  return 0;
421720006a0bStron}
421820006a0bStron_ACEOF
4219*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
4220*e4a6e799Ssimonbthen :
422120006a0bStron  ac_cv_sys_large_files=1; break
422220006a0bStronfi
4223*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
422420006a0bStron  ac_cv_sys_large_files=unknown
422520006a0bStron  break
422620006a0bStrondone
422720006a0bStronfi
4228*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4229*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_sys_large_files" >&6; }
423020006a0bStroncase $ac_cv_sys_large_files in #(
423120006a0bStron  no | unknown) ;;
423220006a0bStron  *)
4233*e4a6e799Ssimonbprintf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
423420006a0bStron;;
423520006a0bStronesac
423620006a0bStronrm -rf conftest*
423720006a0bStron  fi
423820006a0bStronfi
423920006a0bStron
424020006a0bStron
424120006a0bStron# Checks for general libraries.
4242*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgoto in -ltinfo" >&5
4243*e4a6e799Ssimonbprintf %s "checking for tgoto in -ltinfo... " >&6; }
4244*e4a6e799Ssimonbif test ${ac_cv_lib_tinfo_tgoto+y}
4245*e4a6e799Ssimonbthen :
4246*e4a6e799Ssimonb  printf %s "(cached) " >&6
4247*e4a6e799Ssimonbelse $as_nop
424820006a0bStron  ac_check_lib_save_LIBS=$LIBS
424920006a0bStronLIBS="-ltinfo  $LIBS"
425020006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
425120006a0bStron/* end confdefs.h.  */
425220006a0bStron
425320006a0bStron/* Override any GCC internal prototype to avoid an error.
425420006a0bStron   Use char because int might match the return type of a GCC
425520006a0bStron   builtin and then its argument prototype would still apply.  */
425620006a0bStronchar tgoto ();
425720006a0bStronint
4258*e4a6e799Ssimonbmain (void)
425920006a0bStron{
426020006a0bStronreturn tgoto ();
426120006a0bStron  ;
426220006a0bStron  return 0;
426320006a0bStron}
426420006a0bStron_ACEOF
4265*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4266*e4a6e799Ssimonbthen :
426720006a0bStron  ac_cv_lib_tinfo_tgoto=yes
4268*e4a6e799Ssimonbelse $as_nop
426920006a0bStron  ac_cv_lib_tinfo_tgoto=no
427020006a0bStronfi
4271*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
427220006a0bStron    conftest$ac_exeext conftest.$ac_ext
427320006a0bStronLIBS=$ac_check_lib_save_LIBS
427420006a0bStronfi
4275*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgoto" >&5
4276*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_lib_tinfo_tgoto" >&6; }
4277*e4a6e799Ssimonbif test "x$ac_cv_lib_tinfo_tgoto" = xyes
4278*e4a6e799Ssimonbthen :
427920006a0bStron  have_tinfo=yes
4280*e4a6e799Ssimonbelse $as_nop
428120006a0bStron  have_tinfo=no
428220006a0bStronfi
428320006a0bStron
4284*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgoto in -ltinfow" >&5
4285*e4a6e799Ssimonbprintf %s "checking for tgoto in -ltinfow... " >&6; }
4286*e4a6e799Ssimonbif test ${ac_cv_lib_tinfow_tgoto+y}
4287*e4a6e799Ssimonbthen :
4288*e4a6e799Ssimonb  printf %s "(cached) " >&6
4289*e4a6e799Ssimonbelse $as_nop
4290*e4a6e799Ssimonb  ac_check_lib_save_LIBS=$LIBS
4291*e4a6e799SsimonbLIBS="-ltinfow  $LIBS"
4292*e4a6e799Ssimonbcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293*e4a6e799Ssimonb/* end confdefs.h.  */
4294*e4a6e799Ssimonb
4295*e4a6e799Ssimonb/* Override any GCC internal prototype to avoid an error.
4296*e4a6e799Ssimonb   Use char because int might match the return type of a GCC
4297*e4a6e799Ssimonb   builtin and then its argument prototype would still apply.  */
4298*e4a6e799Ssimonbchar tgoto ();
4299*e4a6e799Ssimonbint
4300*e4a6e799Ssimonbmain (void)
4301*e4a6e799Ssimonb{
4302*e4a6e799Ssimonbreturn tgoto ();
4303*e4a6e799Ssimonb  ;
4304*e4a6e799Ssimonb  return 0;
4305*e4a6e799Ssimonb}
4306*e4a6e799Ssimonb_ACEOF
4307*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4308*e4a6e799Ssimonbthen :
4309*e4a6e799Ssimonb  ac_cv_lib_tinfow_tgoto=yes
4310*e4a6e799Ssimonbelse $as_nop
4311*e4a6e799Ssimonb  ac_cv_lib_tinfow_tgoto=no
4312*e4a6e799Ssimonbfi
4313*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
4314*e4a6e799Ssimonb    conftest$ac_exeext conftest.$ac_ext
4315*e4a6e799SsimonbLIBS=$ac_check_lib_save_LIBS
4316*e4a6e799Ssimonbfi
4317*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfow_tgoto" >&5
4318*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_lib_tinfow_tgoto" >&6; }
4319*e4a6e799Ssimonbif test "x$ac_cv_lib_tinfow_tgoto" = xyes
4320*e4a6e799Ssimonbthen :
4321*e4a6e799Ssimonb  have_tinfow=yes
4322*e4a6e799Ssimonbelse $as_nop
4323*e4a6e799Ssimonb  have_tinfow=no
4324*e4a6e799Ssimonbfi
4325*e4a6e799Ssimonb
4326*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lxcurses" >&5
4327*e4a6e799Ssimonbprintf %s "checking for initscr in -lxcurses... " >&6; }
4328*e4a6e799Ssimonbif test ${ac_cv_lib_xcurses_initscr+y}
4329*e4a6e799Ssimonbthen :
4330*e4a6e799Ssimonb  printf %s "(cached) " >&6
4331*e4a6e799Ssimonbelse $as_nop
433220006a0bStron  ac_check_lib_save_LIBS=$LIBS
433320006a0bStronLIBS="-lxcurses  $LIBS"
433420006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
433520006a0bStron/* end confdefs.h.  */
433620006a0bStron
433720006a0bStron/* Override any GCC internal prototype to avoid an error.
433820006a0bStron   Use char because int might match the return type of a GCC
433920006a0bStron   builtin and then its argument prototype would still apply.  */
434020006a0bStronchar initscr ();
434120006a0bStronint
4342*e4a6e799Ssimonbmain (void)
434320006a0bStron{
434420006a0bStronreturn initscr ();
434520006a0bStron  ;
434620006a0bStron  return 0;
434720006a0bStron}
434820006a0bStron_ACEOF
4349*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4350*e4a6e799Ssimonbthen :
435120006a0bStron  ac_cv_lib_xcurses_initscr=yes
4352*e4a6e799Ssimonbelse $as_nop
435320006a0bStron  ac_cv_lib_xcurses_initscr=no
435420006a0bStronfi
4355*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
435620006a0bStron    conftest$ac_exeext conftest.$ac_ext
435720006a0bStronLIBS=$ac_check_lib_save_LIBS
435820006a0bStronfi
4359*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcurses_initscr" >&5
4360*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_lib_xcurses_initscr" >&6; }
4361*e4a6e799Ssimonbif test "x$ac_cv_lib_xcurses_initscr" = xyes
4362*e4a6e799Ssimonbthen :
436320006a0bStron  have_xcurses=yes
4364*e4a6e799Ssimonbelse $as_nop
436520006a0bStron  have_xcurses=no
436620006a0bStronfi
436720006a0bStron
4368*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
4369*e4a6e799Ssimonbprintf %s "checking for initscr in -lncursesw... " >&6; }
4370*e4a6e799Ssimonbif test ${ac_cv_lib_ncursesw_initscr+y}
4371*e4a6e799Ssimonbthen :
4372*e4a6e799Ssimonb  printf %s "(cached) " >&6
4373*e4a6e799Ssimonbelse $as_nop
437420006a0bStron  ac_check_lib_save_LIBS=$LIBS
437520006a0bStronLIBS="-lncursesw  $LIBS"
437620006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
437720006a0bStron/* end confdefs.h.  */
437820006a0bStron
437920006a0bStron/* Override any GCC internal prototype to avoid an error.
438020006a0bStron   Use char because int might match the return type of a GCC
438120006a0bStron   builtin and then its argument prototype would still apply.  */
438220006a0bStronchar initscr ();
438320006a0bStronint
4384*e4a6e799Ssimonbmain (void)
438520006a0bStron{
438620006a0bStronreturn initscr ();
438720006a0bStron  ;
438820006a0bStron  return 0;
438920006a0bStron}
439020006a0bStron_ACEOF
4391*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4392*e4a6e799Ssimonbthen :
439320006a0bStron  ac_cv_lib_ncursesw_initscr=yes
4394*e4a6e799Ssimonbelse $as_nop
439520006a0bStron  ac_cv_lib_ncursesw_initscr=no
439620006a0bStronfi
4397*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
439820006a0bStron    conftest$ac_exeext conftest.$ac_ext
439920006a0bStronLIBS=$ac_check_lib_save_LIBS
440020006a0bStronfi
4401*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
4402*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_lib_ncursesw_initscr" >&6; }
4403*e4a6e799Ssimonbif test "x$ac_cv_lib_ncursesw_initscr" = xyes
4404*e4a6e799Ssimonbthen :
440520006a0bStron  have_ncursesw=yes
4406*e4a6e799Ssimonbelse $as_nop
440720006a0bStron  have_ncursesw=no
440820006a0bStronfi
440920006a0bStron
4410*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
4411*e4a6e799Ssimonbprintf %s "checking for initscr in -lncurses... " >&6; }
4412*e4a6e799Ssimonbif test ${ac_cv_lib_ncurses_initscr+y}
4413*e4a6e799Ssimonbthen :
4414*e4a6e799Ssimonb  printf %s "(cached) " >&6
4415*e4a6e799Ssimonbelse $as_nop
441620006a0bStron  ac_check_lib_save_LIBS=$LIBS
441720006a0bStronLIBS="-lncurses  $LIBS"
441820006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
441920006a0bStron/* end confdefs.h.  */
442020006a0bStron
442120006a0bStron/* Override any GCC internal prototype to avoid an error.
442220006a0bStron   Use char because int might match the return type of a GCC
442320006a0bStron   builtin and then its argument prototype would still apply.  */
442420006a0bStronchar initscr ();
442520006a0bStronint
4426*e4a6e799Ssimonbmain (void)
442720006a0bStron{
442820006a0bStronreturn initscr ();
442920006a0bStron  ;
443020006a0bStron  return 0;
443120006a0bStron}
443220006a0bStron_ACEOF
4433*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4434*e4a6e799Ssimonbthen :
443520006a0bStron  ac_cv_lib_ncurses_initscr=yes
4436*e4a6e799Ssimonbelse $as_nop
443720006a0bStron  ac_cv_lib_ncurses_initscr=no
443820006a0bStronfi
4439*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
444020006a0bStron    conftest$ac_exeext conftest.$ac_ext
444120006a0bStronLIBS=$ac_check_lib_save_LIBS
444220006a0bStronfi
4443*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
4444*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; }
4445*e4a6e799Ssimonbif test "x$ac_cv_lib_ncurses_initscr" = xyes
4446*e4a6e799Ssimonbthen :
444720006a0bStron  have_ncurses=yes
4448*e4a6e799Ssimonbelse $as_nop
444920006a0bStron  have_ncurses=no
445020006a0bStronfi
445120006a0bStron
4452*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
4453*e4a6e799Ssimonbprintf %s "checking for initscr in -lcurses... " >&6; }
4454*e4a6e799Ssimonbif test ${ac_cv_lib_curses_initscr+y}
4455*e4a6e799Ssimonbthen :
4456*e4a6e799Ssimonb  printf %s "(cached) " >&6
4457*e4a6e799Ssimonbelse $as_nop
445820006a0bStron  ac_check_lib_save_LIBS=$LIBS
445920006a0bStronLIBS="-lcurses  $LIBS"
446020006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
446120006a0bStron/* end confdefs.h.  */
446220006a0bStron
446320006a0bStron/* Override any GCC internal prototype to avoid an error.
446420006a0bStron   Use char because int might match the return type of a GCC
446520006a0bStron   builtin and then its argument prototype would still apply.  */
446620006a0bStronchar initscr ();
446720006a0bStronint
4468*e4a6e799Ssimonbmain (void)
446920006a0bStron{
447020006a0bStronreturn initscr ();
447120006a0bStron  ;
447220006a0bStron  return 0;
447320006a0bStron}
447420006a0bStron_ACEOF
4475*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4476*e4a6e799Ssimonbthen :
447720006a0bStron  ac_cv_lib_curses_initscr=yes
4478*e4a6e799Ssimonbelse $as_nop
447920006a0bStron  ac_cv_lib_curses_initscr=no
448020006a0bStronfi
4481*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
448220006a0bStron    conftest$ac_exeext conftest.$ac_ext
448320006a0bStronLIBS=$ac_check_lib_save_LIBS
448420006a0bStronfi
4485*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
4486*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_lib_curses_initscr" >&6; }
4487*e4a6e799Ssimonbif test "x$ac_cv_lib_curses_initscr" = xyes
4488*e4a6e799Ssimonbthen :
448920006a0bStron  have_curses=yes
4490*e4a6e799Ssimonbelse $as_nop
449120006a0bStron  have_curses=no
449220006a0bStronfi
449320006a0bStron
4494*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
4495*e4a6e799Ssimonbprintf %s "checking for tgetent in -ltermcap... " >&6; }
4496*e4a6e799Ssimonbif test ${ac_cv_lib_termcap_tgetent+y}
4497*e4a6e799Ssimonbthen :
4498*e4a6e799Ssimonb  printf %s "(cached) " >&6
4499*e4a6e799Ssimonbelse $as_nop
450020006a0bStron  ac_check_lib_save_LIBS=$LIBS
450120006a0bStronLIBS="-ltermcap  $LIBS"
450220006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
450320006a0bStron/* end confdefs.h.  */
450420006a0bStron
450520006a0bStron/* Override any GCC internal prototype to avoid an error.
450620006a0bStron   Use char because int might match the return type of a GCC
450720006a0bStron   builtin and then its argument prototype would still apply.  */
450820006a0bStronchar tgetent ();
450920006a0bStronint
4510*e4a6e799Ssimonbmain (void)
451120006a0bStron{
451220006a0bStronreturn tgetent ();
451320006a0bStron  ;
451420006a0bStron  return 0;
451520006a0bStron}
451620006a0bStron_ACEOF
4517*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4518*e4a6e799Ssimonbthen :
451920006a0bStron  ac_cv_lib_termcap_tgetent=yes
4520*e4a6e799Ssimonbelse $as_nop
452120006a0bStron  ac_cv_lib_termcap_tgetent=no
452220006a0bStronfi
4523*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
452420006a0bStron    conftest$ac_exeext conftest.$ac_ext
452520006a0bStronLIBS=$ac_check_lib_save_LIBS
452620006a0bStronfi
4527*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
4528*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
4529*e4a6e799Ssimonbif test "x$ac_cv_lib_termcap_tgetent" = xyes
4530*e4a6e799Ssimonbthen :
453120006a0bStron  have_termcap=yes
4532*e4a6e799Ssimonbelse $as_nop
453320006a0bStron  have_termcap=no
453420006a0bStronfi
453520006a0bStron
4536*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
4537*e4a6e799Ssimonbprintf %s "checking for tgetent in -ltermlib... " >&6; }
4538*e4a6e799Ssimonbif test ${ac_cv_lib_termlib_tgetent+y}
4539*e4a6e799Ssimonbthen :
4540*e4a6e799Ssimonb  printf %s "(cached) " >&6
4541*e4a6e799Ssimonbelse $as_nop
454220006a0bStron  ac_check_lib_save_LIBS=$LIBS
454320006a0bStronLIBS="-ltermlib  $LIBS"
454420006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
454520006a0bStron/* end confdefs.h.  */
454620006a0bStron
454720006a0bStron/* Override any GCC internal prototype to avoid an error.
454820006a0bStron   Use char because int might match the return type of a GCC
454920006a0bStron   builtin and then its argument prototype would still apply.  */
455020006a0bStronchar tgetent ();
455120006a0bStronint
4552*e4a6e799Ssimonbmain (void)
455320006a0bStron{
455420006a0bStronreturn tgetent ();
455520006a0bStron  ;
455620006a0bStron  return 0;
455720006a0bStron}
455820006a0bStron_ACEOF
4559*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4560*e4a6e799Ssimonbthen :
456120006a0bStron  ac_cv_lib_termlib_tgetent=yes
4562*e4a6e799Ssimonbelse $as_nop
456320006a0bStron  ac_cv_lib_termlib_tgetent=no
456420006a0bStronfi
4565*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
456620006a0bStron    conftest$ac_exeext conftest.$ac_ext
456720006a0bStronLIBS=$ac_check_lib_save_LIBS
456820006a0bStronfi
4569*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
4570*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_lib_termlib_tgetent" >&6; }
4571*e4a6e799Ssimonbif test "x$ac_cv_lib_termlib_tgetent" = xyes
4572*e4a6e799Ssimonbthen :
457320006a0bStron  have_termlib=yes
4574*e4a6e799Ssimonbelse $as_nop
457520006a0bStron  have_termlib=no
457620006a0bStronfi
457720006a0bStron
4578749ad2faStron# Regular expressions (regcmp) are in -lgen on Solaris 2, (but in libc
4579749ad2faStron# at least on Solaris 10 (2.10)) and in -lintl on SCO Unix.
4580*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing regcmp" >&5
4581*e4a6e799Ssimonbprintf %s "checking for library containing regcmp... " >&6; }
4582*e4a6e799Ssimonbif test ${ac_cv_search_regcmp+y}
4583*e4a6e799Ssimonbthen :
4584*e4a6e799Ssimonb  printf %s "(cached) " >&6
4585*e4a6e799Ssimonbelse $as_nop
4586749ad2faStron  ac_func_search_save_LIBS=$LIBS
458720006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
458820006a0bStron/* end confdefs.h.  */
458920006a0bStron
459020006a0bStron/* Override any GCC internal prototype to avoid an error.
459120006a0bStron   Use char because int might match the return type of a GCC
459220006a0bStron   builtin and then its argument prototype would still apply.  */
459320006a0bStronchar regcmp ();
459420006a0bStronint
4595*e4a6e799Ssimonbmain (void)
459620006a0bStron{
459720006a0bStronreturn regcmp ();
459820006a0bStron  ;
459920006a0bStron  return 0;
460020006a0bStron}
460120006a0bStron_ACEOF
4602*e4a6e799Ssimonbfor ac_lib in '' gen intl PW
4603*e4a6e799Ssimonbdo
4604749ad2faStron  if test -z "$ac_lib"; then
4605749ad2faStron    ac_res="none required"
460620006a0bStron  else
4607749ad2faStron    ac_res=-l$ac_lib
4608749ad2faStron    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4609749ad2faStron  fi
4610*e4a6e799Ssimonb  if ac_fn_c_try_link "$LINENO"
4611*e4a6e799Ssimonbthen :
4612749ad2faStron  ac_cv_search_regcmp=$ac_res
461320006a0bStronfi
4614*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
4615749ad2faStron    conftest$ac_exeext
4616*e4a6e799Ssimonb  if test ${ac_cv_search_regcmp+y}
4617*e4a6e799Ssimonbthen :
4618749ad2faStron  break
461920006a0bStronfi
4620749ad2faStrondone
4621*e4a6e799Ssimonbif test ${ac_cv_search_regcmp+y}
4622*e4a6e799Ssimonbthen :
462320006a0bStron
4624*e4a6e799Ssimonbelse $as_nop
4625749ad2faStron  ac_cv_search_regcmp=no
462620006a0bStronfi
4627749ad2faStronrm conftest.$ac_ext
4628749ad2faStronLIBS=$ac_func_search_save_LIBS
462920006a0bStronfi
4630*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcmp" >&5
4631*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_search_regcmp" >&6; }
4632749ad2faStronac_res=$ac_cv_search_regcmp
4633*e4a6e799Ssimonbif test "$ac_res" != no
4634*e4a6e799Ssimonbthen :
4635749ad2faStron  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
463620006a0bStron
463720006a0bStronfi
463820006a0bStron
463920006a0bStron
464020006a0bStron# Checks for header files.
4641*e4a6e799Ssimonbac_header= ac_cache=
4642*e4a6e799Ssimonbfor ac_item in $ac_header_c_list
4643*e4a6e799Ssimonbdo
4644*e4a6e799Ssimonb  if test $ac_cache; then
4645*e4a6e799Ssimonb    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4646*e4a6e799Ssimonb    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4647*e4a6e799Ssimonb      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4648*e4a6e799Ssimonb    fi
4649*e4a6e799Ssimonb    ac_header= ac_cache=
4650*e4a6e799Ssimonb  elif test $ac_header; then
4651*e4a6e799Ssimonb    ac_cache=$ac_item
465220006a0bStron  else
4653*e4a6e799Ssimonb    ac_header=$ac_item
465420006a0bStron  fi
465520006a0bStrondone
465620006a0bStron
465720006a0bStron
4658*e4a6e799Ssimonb
4659*e4a6e799Ssimonb
4660*e4a6e799Ssimonb
4661*e4a6e799Ssimonb
4662*e4a6e799Ssimonb
4663*e4a6e799Ssimonb
4664*e4a6e799Ssimonbif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4665*e4a6e799Ssimonbthen :
4666*e4a6e799Ssimonb
4667*e4a6e799Ssimonbprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
466820006a0bStron
466920006a0bStronfi
467020006a0bStron
4671*e4a6e799Ssimonb
4672*e4a6e799Ssimonb
4673*e4a6e799Ssimonb
4674*e4a6e799Ssimonb
4675*e4a6e799Ssimonb
4676*e4a6e799Ssimonb
4677*e4a6e799Ssimonb
4678*e4a6e799Ssimonb
4679*e4a6e799Ssimonb
4680*e4a6e799Ssimonb
4681*e4a6e799Ssimonb
4682*e4a6e799Ssimonb
4683*e4a6e799Ssimonb
4684*e4a6e799Ssimonb
4685*e4a6e799Ssimonb
4686*e4a6e799Ssimonb
468720006a0bStron
468820006a0bStron
468920006a0bStron# Checks for typedefs, structures, and compiler characteristics.
4690*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4691*e4a6e799Ssimonbprintf %s "checking whether stat file-mode macros are broken... " >&6; }
4692*e4a6e799Ssimonbif test ${ac_cv_header_stat_broken+y}
4693*e4a6e799Ssimonbthen :
4694*e4a6e799Ssimonb  printf %s "(cached) " >&6
4695*e4a6e799Ssimonbelse $as_nop
469620006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
469720006a0bStron/* end confdefs.h.  */
469820006a0bStron#include <sys/types.h>
469920006a0bStron#include <sys/stat.h>
470020006a0bStron
470120006a0bStron#if defined S_ISBLK && defined S_IFDIR
470220006a0bStronextern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
470320006a0bStron#endif
470420006a0bStron
470520006a0bStron#if defined S_ISBLK && defined S_IFCHR
470620006a0bStronextern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
470720006a0bStron#endif
470820006a0bStron
470920006a0bStron#if defined S_ISLNK && defined S_IFREG
471020006a0bStronextern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
471120006a0bStron#endif
471220006a0bStron
471320006a0bStron#if defined S_ISSOCK && defined S_IFREG
471420006a0bStronextern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
471520006a0bStron#endif
471620006a0bStron
471720006a0bStron_ACEOF
4718*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
4719*e4a6e799Ssimonbthen :
472020006a0bStron  ac_cv_header_stat_broken=no
4721*e4a6e799Ssimonbelse $as_nop
472220006a0bStron  ac_cv_header_stat_broken=yes
472320006a0bStronfi
4724*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
472520006a0bStronfi
4726*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4727*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_header_stat_broken" >&6; }
472820006a0bStronif test $ac_cv_header_stat_broken = yes; then
472920006a0bStron
4730*e4a6e799Ssimonbprintf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
473120006a0bStron
473220006a0bStronfi
473320006a0bStron
4734*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4735*e4a6e799Ssimonbprintf %s "checking for an ANSI C-conforming const... " >&6; }
4736*e4a6e799Ssimonbif test ${ac_cv_c_const+y}
4737*e4a6e799Ssimonbthen :
4738*e4a6e799Ssimonb  printf %s "(cached) " >&6
4739*e4a6e799Ssimonbelse $as_nop
474020006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
474120006a0bStron/* end confdefs.h.  */
474220006a0bStron
474320006a0bStronint
4744*e4a6e799Ssimonbmain (void)
474520006a0bStron{
4746*e4a6e799Ssimonb
474720006a0bStron#ifndef __cplusplus
4748*e4a6e799Ssimonb  /* Ultrix mips cc rejects this sort of thing.  */
474920006a0bStron  typedef int charset[2];
4750*e4a6e799Ssimonb  const charset cs = { 0, 0 };
475120006a0bStron  /* SunOS 4.1.1 cc rejects this.  */
475220006a0bStron  char const *const *pcpcc;
475320006a0bStron  char **ppc;
475420006a0bStron  /* NEC SVR4.0.2 mips cc rejects this.  */
475520006a0bStron  struct point {int x, y;};
475620006a0bStron  static struct point const zero = {0,0};
4757*e4a6e799Ssimonb  /* IBM XL C 1.02.0.0 rejects this.
475820006a0bStron     It does not let you subtract one const X* pointer from another in
475920006a0bStron     an arm of an if-expression whose if-part is not a constant
476020006a0bStron     expression */
476120006a0bStron  const char *g = "string";
476220006a0bStron  pcpcc = &g + (g ? g-g : 0);
476320006a0bStron  /* HPUX 7.0 cc rejects these. */
476420006a0bStron  ++pcpcc;
476520006a0bStron  ppc = (char**) pcpcc;
476620006a0bStron  pcpcc = (char const *const *) ppc;
4767*e4a6e799Ssimonb  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4768*e4a6e799Ssimonb    char tx;
4769*e4a6e799Ssimonb    char *t = &tx;
477020006a0bStron    char const *s = 0 ? (char *) 0 : (char const *) 0;
477120006a0bStron
477220006a0bStron    *t++ = 0;
477320006a0bStron    if (s) return 0;
477420006a0bStron  }
477520006a0bStron  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
477620006a0bStron    int x[] = {25, 17};
477720006a0bStron    const int *foo = &x[0];
477820006a0bStron    ++foo;
477920006a0bStron  }
478020006a0bStron  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
478120006a0bStron    typedef const int *iptr;
478220006a0bStron    iptr p = 0;
478320006a0bStron    ++p;
478420006a0bStron  }
4785*e4a6e799Ssimonb  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
478620006a0bStron       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4787*e4a6e799Ssimonb    struct s { int j; const int *ap[3]; } bx;
4788*e4a6e799Ssimonb    struct s *b = &bx; b->j = 5;
478920006a0bStron  }
479020006a0bStron  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
479120006a0bStron    const int foo = 10;
479220006a0bStron    if (!foo) return 0;
479320006a0bStron  }
479420006a0bStron  return !cs[0] && !zero.x;
479520006a0bStron#endif
479620006a0bStron
479720006a0bStron  ;
479820006a0bStron  return 0;
479920006a0bStron}
480020006a0bStron_ACEOF
4801*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
4802*e4a6e799Ssimonbthen :
480320006a0bStron  ac_cv_c_const=yes
4804*e4a6e799Ssimonbelse $as_nop
480520006a0bStron  ac_cv_c_const=no
480620006a0bStronfi
4807*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
480820006a0bStronfi
4809*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4810*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_c_const" >&6; }
481120006a0bStronif test $ac_cv_c_const = no; then
481220006a0bStron
4813*e4a6e799Ssimonbprintf "%s\n" "#define const /**/" >>confdefs.h
481420006a0bStron
481520006a0bStronfi
481620006a0bStron
481720006a0bStronac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4818*e4a6e799Ssimonbif test "x$ac_cv_type_off_t" = xyes
4819*e4a6e799Ssimonbthen :
482020006a0bStron
4821*e4a6e799Ssimonbelse $as_nop
482220006a0bStron
4823*e4a6e799Ssimonbprintf "%s\n" "#define off_t long int" >>confdefs.h
482420006a0bStron
482520006a0bStronfi
482620006a0bStron
482720006a0bStronac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4828*e4a6e799Ssimonbif test "x$ac_cv_type_size_t" = xyes
4829*e4a6e799Ssimonbthen :
483020006a0bStron
4831*e4a6e799Ssimonbelse $as_nop
483220006a0bStron
4833*e4a6e799Ssimonbprintf "%s\n" "#define size_t unsigned int" >>confdefs.h
483420006a0bStron
483520006a0bStronfi
483620006a0bStron
4837*e4a6e799Ssimonb
4838*e4a6e799Ssimonb# Checks for terminal libraries
4839*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working terminal libraries" >&5
4840*e4a6e799Ssimonbprintf %s "checking for working terminal libraries... " >&6; }
4841*e4a6e799SsimonbTERMLIBS=
4842*e4a6e799Ssimonbinclude_termcap_h=
4843*e4a6e799Ssimonbif test "x$ac_cv_header_termcap_h" = xyes; then include_termcap_h="#include <termcap.h>"; elif test "x$ac_cv_header_ncurses_termcap_h" = xyes; then include_termcap_h="#include <ncurses/termcap.h>"; elif test "x$ac_cv_header_ncursesw_termcap_h" = xyes; then include_termcap_h="#include <ncursesw/termcap.h>"; fi
4844*e4a6e799Ssimonb
4845*e4a6e799Ssimonb# Check for systems where curses is broken.
4846*e4a6e799Ssimonbcurses_broken=0
4847*e4a6e799Ssimonbif test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
4848*e4a6e799Ssimonbif test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
4849*e4a6e799Ssimonb   curses_broken=1
4850*e4a6e799Ssimonbfi
4851*e4a6e799Ssimonbif test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
4852*e4a6e799Ssimonb   curses_broken=1
4853*e4a6e799Ssimonbfi
4854*e4a6e799Ssimonbfi
4855*e4a6e799Ssimonb
4856*e4a6e799Ssimonbif test $curses_broken = 0; then
4857*e4a6e799Ssimonb
4858*e4a6e799Ssimonb# -- Try tinfow.
4859*e4a6e799Ssimonbif test "x$TERMLIBS" = x; then
4860*e4a6e799Ssimonb  if test $have_tinfow = yes; then
4861*e4a6e799Ssimonb    TERMLIBS="-ltinfow"
4862*e4a6e799Ssimonb    SAVE_LIBS=$LIBS
4863*e4a6e799Ssimonb    LIBS="$LIBS $TERMLIBS"
486420006a0bStron    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
486520006a0bStron/* end confdefs.h.  */
4866*e4a6e799Ssimonb$include_termcap_h
486720006a0bStronint
4868*e4a6e799Ssimonbmain (void)
486920006a0bStron{
4870*e4a6e799Ssimonbtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
487120006a0bStron  ;
487220006a0bStron  return 0;
487320006a0bStron}
487420006a0bStron_ACEOF
4875*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4876*e4a6e799Ssimonbthen :
4877*e4a6e799Ssimonb  termok=yes
4878*e4a6e799Ssimonbelse $as_nop
4879*e4a6e799Ssimonb  termok=no
488020006a0bStronfi
4881*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
4882*e4a6e799Ssimonb    conftest$ac_exeext conftest.$ac_ext
4883*e4a6e799Ssimonb    LIBS=$SAVE_LIBS
4884*e4a6e799Ssimonb    if test $termok = no; then TERMLIBS=""; fi
488520006a0bStron  fi
488620006a0bStronfi
488720006a0bStron
4888*e4a6e799Ssimonb# -- Try tinfo.
4889*e4a6e799Ssimonbif test "x$TERMLIBS" = x; then
4890*e4a6e799Ssimonb  if test $have_tinfo = yes; then
4891*e4a6e799Ssimonb    TERMLIBS="-ltinfo"
4892*e4a6e799Ssimonb    SAVE_LIBS=$LIBS
4893*e4a6e799Ssimonb    LIBS="$LIBS $TERMLIBS"
4894*e4a6e799Ssimonb    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895*e4a6e799Ssimonb/* end confdefs.h.  */
4896*e4a6e799Ssimonb$include_termcap_h
4897*e4a6e799Ssimonbint
4898*e4a6e799Ssimonbmain (void)
4899*e4a6e799Ssimonb{
4900*e4a6e799Ssimonbtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4901*e4a6e799Ssimonb  ;
4902*e4a6e799Ssimonb  return 0;
4903*e4a6e799Ssimonb}
4904*e4a6e799Ssimonb_ACEOF
4905*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4906*e4a6e799Ssimonbthen :
4907*e4a6e799Ssimonb  termok=yes
4908*e4a6e799Ssimonbelse $as_nop
4909*e4a6e799Ssimonb  termok=no
4910*e4a6e799Ssimonbfi
4911*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
4912*e4a6e799Ssimonb    conftest$ac_exeext conftest.$ac_ext
4913*e4a6e799Ssimonb    LIBS=$SAVE_LIBS
4914*e4a6e799Ssimonb    if test $termok = no; then TERMLIBS=""; fi
4915*e4a6e799Ssimonb  fi
4916*e4a6e799Ssimonbfi
4917*e4a6e799Ssimonb
4918*e4a6e799Ssimonb# -- Try xcurses.
4919*e4a6e799Ssimonbif test "x$TERMLIBS" = x; then
4920*e4a6e799Ssimonb  if test $have_xcurses = yes; then
4921*e4a6e799Ssimonb    TERMLIBS="-lxcurses"
4922*e4a6e799Ssimonb    SAVE_LIBS=$LIBS
4923*e4a6e799Ssimonb    LIBS="$LIBS $TERMLIBS"
4924*e4a6e799Ssimonb    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925*e4a6e799Ssimonb/* end confdefs.h.  */
4926*e4a6e799Ssimonb$include_termcap_h
4927*e4a6e799Ssimonbint
4928*e4a6e799Ssimonbmain (void)
4929*e4a6e799Ssimonb{
4930*e4a6e799Ssimonbtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4931*e4a6e799Ssimonb  ;
4932*e4a6e799Ssimonb  return 0;
4933*e4a6e799Ssimonb}
4934*e4a6e799Ssimonb_ACEOF
4935*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4936*e4a6e799Ssimonbthen :
4937*e4a6e799Ssimonb  termok=yes
4938*e4a6e799Ssimonbelse $as_nop
4939*e4a6e799Ssimonb  termok=no
4940*e4a6e799Ssimonbfi
4941*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
4942*e4a6e799Ssimonb    conftest$ac_exeext conftest.$ac_ext
4943*e4a6e799Ssimonb    LIBS=$SAVE_LIBS
4944*e4a6e799Ssimonb    if test $termok = no; then TERMLIBS=""; fi
4945*e4a6e799Ssimonb  fi
4946*e4a6e799Ssimonbfi
4947*e4a6e799Ssimonb
4948*e4a6e799Ssimonb# -- Try ncursesw.
4949*e4a6e799Ssimonbif test "x$TERMLIBS" = x; then
4950*e4a6e799Ssimonb  if test $have_ncursesw = yes; then
4951*e4a6e799Ssimonb    TERMLIBS="-lncursesw"
4952*e4a6e799Ssimonb    SAVE_LIBS=$LIBS
4953*e4a6e799Ssimonb    LIBS="$LIBS $TERMLIBS"
4954*e4a6e799Ssimonb    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955*e4a6e799Ssimonb/* end confdefs.h.  */
4956*e4a6e799Ssimonb$include_termcap_h
4957*e4a6e799Ssimonbint
4958*e4a6e799Ssimonbmain (void)
4959*e4a6e799Ssimonb{
4960*e4a6e799Ssimonbtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4961*e4a6e799Ssimonb  ;
4962*e4a6e799Ssimonb  return 0;
4963*e4a6e799Ssimonb}
4964*e4a6e799Ssimonb_ACEOF
4965*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4966*e4a6e799Ssimonbthen :
4967*e4a6e799Ssimonb  termok=yes
4968*e4a6e799Ssimonbelse $as_nop
4969*e4a6e799Ssimonb  termok=no
4970*e4a6e799Ssimonbfi
4971*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
4972*e4a6e799Ssimonb    conftest$ac_exeext conftest.$ac_ext
4973*e4a6e799Ssimonb    LIBS=$SAVE_LIBS
4974*e4a6e799Ssimonb    if test $termok = no; then TERMLIBS=""; fi
4975*e4a6e799Ssimonb  fi
4976*e4a6e799Ssimonbfi
4977*e4a6e799Ssimonb
4978*e4a6e799Ssimonb# -- Try ncurses.
4979*e4a6e799Ssimonbif test "x$TERMLIBS" = x; then
4980*e4a6e799Ssimonb  if test $have_ncurses = yes; then
4981*e4a6e799Ssimonb    TERMLIBS="-lncurses"
4982*e4a6e799Ssimonb    SAVE_LIBS=$LIBS
4983*e4a6e799Ssimonb    LIBS="$LIBS $TERMLIBS"
4984*e4a6e799Ssimonb    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985*e4a6e799Ssimonb/* end confdefs.h.  */
4986*e4a6e799Ssimonb$include_termcap_h
4987*e4a6e799Ssimonbint
4988*e4a6e799Ssimonbmain (void)
4989*e4a6e799Ssimonb{
4990*e4a6e799Ssimonbtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4991*e4a6e799Ssimonb  ;
4992*e4a6e799Ssimonb  return 0;
4993*e4a6e799Ssimonb}
4994*e4a6e799Ssimonb_ACEOF
4995*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
4996*e4a6e799Ssimonbthen :
4997*e4a6e799Ssimonb  termok=yes
4998*e4a6e799Ssimonbelse $as_nop
4999*e4a6e799Ssimonb  termok=no
5000*e4a6e799Ssimonbfi
5001*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
5002*e4a6e799Ssimonb    conftest$ac_exeext conftest.$ac_ext
5003*e4a6e799Ssimonb    LIBS=$SAVE_LIBS
5004*e4a6e799Ssimonb    if test $termok = no; then TERMLIBS=""; fi
5005*e4a6e799Ssimonb  fi
5006*e4a6e799Ssimonbfi
5007*e4a6e799Ssimonb
5008*e4a6e799Ssimonb# -- Try curses.
5009*e4a6e799Ssimonbif test "x$TERMLIBS" = x; then
5010*e4a6e799Ssimonb  if test $have_curses = yes; then
5011*e4a6e799Ssimonb    TERMLIBS="-lcurses"
5012*e4a6e799Ssimonb    SAVE_LIBS=$LIBS
5013*e4a6e799Ssimonb    LIBS="$LIBS $TERMLIBS"
5014*e4a6e799Ssimonb    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015*e4a6e799Ssimonb/* end confdefs.h.  */
5016*e4a6e799Ssimonb$include_termcap_h
5017*e4a6e799Ssimonbint
5018*e4a6e799Ssimonbmain (void)
5019*e4a6e799Ssimonb{
5020*e4a6e799Ssimonbtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
5021*e4a6e799Ssimonb  ;
5022*e4a6e799Ssimonb  return 0;
5023*e4a6e799Ssimonb}
5024*e4a6e799Ssimonb_ACEOF
5025*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5026*e4a6e799Ssimonbthen :
5027*e4a6e799Ssimonb  termok=yes
5028*e4a6e799Ssimonbelse $as_nop
5029*e4a6e799Ssimonb  termok=no
5030*e4a6e799Ssimonbfi
5031*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
5032*e4a6e799Ssimonb    conftest$ac_exeext conftest.$ac_ext
5033*e4a6e799Ssimonb    LIBS=$SAVE_LIBS
5034*e4a6e799Ssimonb    if test $termok = no; then TERMLIBS=""; fi
5035*e4a6e799Ssimonb  fi
5036*e4a6e799Ssimonbfi
5037*e4a6e799Ssimonb
5038*e4a6e799Ssimonb# -- Try curses & termcap.
5039*e4a6e799Ssimonbif test "x$TERMLIBS" = x; then
5040*e4a6e799Ssimonb  if test $have_curses = yes; then
5041*e4a6e799Ssimonb  if test $have_termcap = yes; then
5042*e4a6e799Ssimonb    TERMLIBS="-lcurses -ltermcap"
5043*e4a6e799Ssimonb    SAVE_LIBS=$LIBS
5044*e4a6e799Ssimonb    LIBS="$LIBS $TERMLIBS"
5045*e4a6e799Ssimonb    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046*e4a6e799Ssimonb/* end confdefs.h.  */
5047*e4a6e799Ssimonb$include_termcap_h
5048*e4a6e799Ssimonbint
5049*e4a6e799Ssimonbmain (void)
5050*e4a6e799Ssimonb{
5051*e4a6e799Ssimonbtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
5052*e4a6e799Ssimonb  ;
5053*e4a6e799Ssimonb  return 0;
5054*e4a6e799Ssimonb}
5055*e4a6e799Ssimonb_ACEOF
5056*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5057*e4a6e799Ssimonbthen :
5058*e4a6e799Ssimonb  termok=yes
5059*e4a6e799Ssimonbelse $as_nop
5060*e4a6e799Ssimonb  termok=no
5061*e4a6e799Ssimonbfi
5062*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
5063*e4a6e799Ssimonb    conftest$ac_exeext conftest.$ac_ext
5064*e4a6e799Ssimonb    LIBS=$SAVE_LIBS
5065*e4a6e799Ssimonb    if test $termok = no; then TERMLIBS=""; fi
5066*e4a6e799Ssimonb  fi
5067*e4a6e799Ssimonb  fi
5068*e4a6e799Ssimonbfi
5069*e4a6e799Ssimonbfi
5070*e4a6e799Ssimonb
5071*e4a6e799Ssimonb# -- Try termcap.
5072*e4a6e799Ssimonbif test "x$TERMLIBS" = x; then
5073*e4a6e799Ssimonb  if test $have_termcap = yes; then
5074*e4a6e799Ssimonb    TERMLIBS="-ltermcap"
5075*e4a6e799Ssimonb    SAVE_LIBS=$LIBS
5076*e4a6e799Ssimonb    LIBS="$LIBS $TERMLIBS"
5077*e4a6e799Ssimonb    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078*e4a6e799Ssimonb/* end confdefs.h.  */
5079*e4a6e799Ssimonb$include_termcap_h
5080*e4a6e799Ssimonbint
5081*e4a6e799Ssimonbmain (void)
5082*e4a6e799Ssimonb{
5083*e4a6e799Ssimonbtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
5084*e4a6e799Ssimonb  ;
5085*e4a6e799Ssimonb  return 0;
5086*e4a6e799Ssimonb}
5087*e4a6e799Ssimonb_ACEOF
5088*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5089*e4a6e799Ssimonbthen :
5090*e4a6e799Ssimonb  termok=yes
5091*e4a6e799Ssimonbelse $as_nop
5092*e4a6e799Ssimonb  termok=no
5093*e4a6e799Ssimonbfi
5094*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
5095*e4a6e799Ssimonb    conftest$ac_exeext conftest.$ac_ext
5096*e4a6e799Ssimonb    LIBS=$SAVE_LIBS
5097*e4a6e799Ssimonb    if test $termok = no; then TERMLIBS=""; fi
5098*e4a6e799Ssimonb  fi
5099*e4a6e799Ssimonbfi
5100*e4a6e799Ssimonb
5101*e4a6e799Ssimonb# -- Try termlib.
5102*e4a6e799Ssimonbif test "x$TERMLIBS" = x; then
5103*e4a6e799Ssimonb  if test $have_termlib = yes; then
5104*e4a6e799Ssimonb    TERMLIBS="-lcurses -ltermlib"
5105*e4a6e799Ssimonb    SAVE_LIBS=$LIBS
5106*e4a6e799Ssimonb    LIBS="$LIBS $TERMLIBS"
5107*e4a6e799Ssimonb    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108*e4a6e799Ssimonb/* end confdefs.h.  */
5109*e4a6e799Ssimonb$include_termcap_h
5110*e4a6e799Ssimonbint
5111*e4a6e799Ssimonbmain (void)
5112*e4a6e799Ssimonb{
5113*e4a6e799Ssimonbtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
5114*e4a6e799Ssimonb  ;
5115*e4a6e799Ssimonb  return 0;
5116*e4a6e799Ssimonb}
5117*e4a6e799Ssimonb_ACEOF
5118*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5119*e4a6e799Ssimonbthen :
5120*e4a6e799Ssimonb  termok=yes
5121*e4a6e799Ssimonbelse $as_nop
5122*e4a6e799Ssimonb  termok=no
5123*e4a6e799Ssimonbfi
5124*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
5125*e4a6e799Ssimonb    conftest$ac_exeext conftest.$ac_ext
5126*e4a6e799Ssimonb    LIBS=$SAVE_LIBS
5127*e4a6e799Ssimonb    if test $termok = no; then TERMLIBS=""; fi
5128*e4a6e799Ssimonb  fi
5129*e4a6e799Ssimonbfi
5130*e4a6e799Ssimonb
5131*e4a6e799Ssimonbif test "x$TERMLIBS" = x; then
5132*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Cannot find terminal libraries - configure failed" >&5
5133*e4a6e799Ssimonbprintf "%s\n" "Cannot find terminal libraries - configure failed" >&6; }
5134*e4a6e799Ssimonb  exit 1
5135*e4a6e799Ssimonbfi
5136*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $TERMLIBS" >&5
5137*e4a6e799Ssimonbprintf "%s\n" "using $TERMLIBS" >&6; }
5138*e4a6e799SsimonbLIBS="$LIBS $TERMLIBS"
513920006a0bStron
514020006a0bStron# Autoheader templates for symbols defined later by AC_DEFINE.
514120006a0bStron
514220006a0bStron
514320006a0bStron
514420006a0bStron
514520006a0bStron
514620006a0bStron
514720006a0bStron
514820006a0bStron
514920006a0bStron
515020006a0bStron
515120006a0bStron
515220006a0bStron
515320006a0bStron
515420006a0bStron
515520006a0bStron
515620006a0bStron
515720006a0bStron
515820006a0bStron
515920006a0bStron
516020006a0bStron
516120006a0bStron
516220006a0bStron
516320006a0bStron
516420006a0bStron
516520006a0bStron
516620006a0bStron
516720006a0bStron
516820006a0bStron
5169749ad2faStron
5170*e4a6e799Ssimonb
517120006a0bStron# Checks for identifiers.
5172*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for void" >&5
5173*e4a6e799Ssimonbprintf %s "checking for void... " >&6; }
517420006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
517520006a0bStron/* end confdefs.h.  */
517620006a0bStron
517720006a0bStronint
5178*e4a6e799Ssimonbmain (void)
517920006a0bStron{
518020006a0bStronvoid *foo = 0;
518120006a0bStron  ;
518220006a0bStron  return 0;
518320006a0bStron}
518420006a0bStron_ACEOF
5185*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
5186*e4a6e799Ssimonbthen :
5187*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5188*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_VOID 1" >>confdefs.h
518920006a0bStron
5190*e4a6e799Ssimonbelse $as_nop
5191*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
519320006a0bStronfi
5194*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5195*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for const" >&5
5196*e4a6e799Ssimonbprintf %s "checking for const... " >&6; }
519720006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
519820006a0bStron/* end confdefs.h.  */
519920006a0bStron
520020006a0bStronint
5201*e4a6e799Ssimonbmain (void)
520220006a0bStron{
520320006a0bStronconst int foo = 0;
520420006a0bStron  ;
520520006a0bStron  return 0;
520620006a0bStron}
520720006a0bStron_ACEOF
5208*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
5209*e4a6e799Ssimonbthen :
5210*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5211*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_CONST 1" >>confdefs.h
521220006a0bStron
5213*e4a6e799Ssimonbelse $as_nop
5214*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
521620006a0bStronfi
5217*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5218*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5
5219*e4a6e799Ssimonbprintf %s "checking for time_t... " >&6; }
522020006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
522120006a0bStron/* end confdefs.h.  */
522220006a0bStron#include <time.h>
522320006a0bStronint
5224*e4a6e799Ssimonbmain (void)
522520006a0bStron{
522620006a0bStrontime_t t = 0;
522720006a0bStron  ;
522820006a0bStron  return 0;
522920006a0bStron}
523020006a0bStron_ACEOF
5231*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
5232*e4a6e799Ssimonbthen :
5233*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5234*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_TIME_T 1" >>confdefs.h
523520006a0bStron
5236*e4a6e799Ssimonbelse $as_nop
5237*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
523920006a0bStronfi
5240*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5241*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_ino in struct stat" >&5
5242*e4a6e799Ssimonbprintf %s "checking for st_ino in struct stat... " >&6; }
524320006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
524420006a0bStron/* end confdefs.h.  */
524520006a0bStron#include <sys/types.h>
524620006a0bStron#include <sys/stat.h>
524720006a0bStronint
5248*e4a6e799Ssimonbmain (void)
524920006a0bStron{
525020006a0bStronstruct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;
525120006a0bStron  ;
525220006a0bStron  return 0;
525320006a0bStron}
525420006a0bStron_ACEOF
5255*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
5256*e4a6e799Ssimonbthen :
5257*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5258*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_STAT_INO 1" >>confdefs.h
525920006a0bStron
5260*e4a6e799Ssimonbelse $as_nop
5261*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
526320006a0bStronfi
5264*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5265*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for procfs" >&5
5266*e4a6e799Ssimonbprintf %s "checking for procfs... " >&6; }
526720006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
526820006a0bStron/* end confdefs.h.  */
5269*e4a6e799Ssimonb#include <sys/statfs.h>
5270*e4a6e799Ssimonb#if HAVE_LINUX_MAGIC_H
5271*e4a6e799Ssimonb#include <linux/magic.h>
5272*e4a6e799Ssimonb#endif
527320006a0bStronint
5274*e4a6e799Ssimonbmain (void)
527520006a0bStron{
5276*e4a6e799Ssimonbstruct statfs s; s.f_type = PROC_SUPER_MAGIC; (void) fstatfs(0,&s);
527720006a0bStron  ;
527820006a0bStron  return 0;
527920006a0bStron}
528020006a0bStron_ACEOF
5281*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
5282*e4a6e799Ssimonbthen :
5283*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5284*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_PROCFS 1" >>confdefs.h
528520006a0bStron
5286*e4a6e799Ssimonbelse $as_nop
5287*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
5289*e4a6e799Ssimonbfi
5290*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5291*e4a6e799Ssimonb
5292*e4a6e799Ssimonb# Checks for ANSI function prototypes.
5293*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ANSI function prototypes" >&5
5294*e4a6e799Ssimonbprintf %s "checking for ANSI function prototypes... " >&6; }
5295*e4a6e799Ssimonbcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296*e4a6e799Ssimonb/* end confdefs.h.  */
5297*e4a6e799Ssimonb
5298*e4a6e799Ssimonbint
5299*e4a6e799Ssimonbmain (void)
5300*e4a6e799Ssimonb{
5301*e4a6e799Ssimonbint f(int a) { return a; }
5302*e4a6e799Ssimonb  ;
5303*e4a6e799Ssimonb  return 0;
5304*e4a6e799Ssimonb}
530520006a0bStron_ACEOF
5306*e4a6e799Ssimonbif ac_fn_c_try_compile "$LINENO"
5307*e4a6e799Ssimonbthen :
5308*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ANSI_PROTOS 1" >>confdefs.h
531020006a0bStron
5311*e4a6e799Ssimonbelse $as_nop
5312*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
5314*e4a6e799Ssimonbfi
5315*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
531620006a0bStron
5317*e4a6e799Ssimonb# Checks for library functions.
5318*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
5319*e4a6e799Ssimonbif test "x$ac_cv_func_fchmod" = xyes
5320*e4a6e799Ssimonbthen :
5321*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
532220006a0bStron
532320006a0bStronfi
5324*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
5325*e4a6e799Ssimonbif test "x$ac_cv_func_fsync" = xyes
5326*e4a6e799Ssimonbthen :
5327*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
5328*e4a6e799Ssimonb
5329*e4a6e799Ssimonbfi
5330*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5331*e4a6e799Ssimonbif test "x$ac_cv_func_nanosleep" = xyes
5332*e4a6e799Ssimonbthen :
5333*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
5334*e4a6e799Ssimonb
5335*e4a6e799Ssimonbfi
5336*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
5337*e4a6e799Ssimonbif test "x$ac_cv_func_poll" = xyes
5338*e4a6e799Ssimonbthen :
5339*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
5340*e4a6e799Ssimonb
5341*e4a6e799Ssimonbfi
5342*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
5343*e4a6e799Ssimonbif test "x$ac_cv_func_popen" = xyes
5344*e4a6e799Ssimonbthen :
5345*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_POPEN 1" >>confdefs.h
5346*e4a6e799Ssimonb
5347*e4a6e799Ssimonbfi
5348*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
5349*e4a6e799Ssimonbif test "x$ac_cv_func_realpath" = xyes
5350*e4a6e799Ssimonbthen :
5351*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
5352*e4a6e799Ssimonb
5353*e4a6e799Ssimonbfi
5354*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "_setjmp" "ac_cv_func__setjmp"
5355*e4a6e799Ssimonbif test "x$ac_cv_func__setjmp" = xyes
5356*e4a6e799Ssimonbthen :
5357*e4a6e799Ssimonb  printf "%s\n" "#define HAVE__SETJMP 1" >>confdefs.h
5358*e4a6e799Ssimonb
5359*e4a6e799Ssimonbfi
5360*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
5361*e4a6e799Ssimonbif test "x$ac_cv_func_sigprocmask" = xyes
5362*e4a6e799Ssimonbthen :
5363*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
5364*e4a6e799Ssimonb
5365*e4a6e799Ssimonbfi
5366*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask"
5367*e4a6e799Ssimonbif test "x$ac_cv_func_sigsetmask" = xyes
5368*e4a6e799Ssimonbthen :
5369*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h
5370*e4a6e799Ssimonb
5371*e4a6e799Ssimonbfi
5372*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
5373*e4a6e799Ssimonbif test "x$ac_cv_func_snprintf" = xyes
5374*e4a6e799Ssimonbthen :
5375*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
5376*e4a6e799Ssimonb
5377*e4a6e799Ssimonbfi
5378*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
5379*e4a6e799Ssimonbif test "x$ac_cv_func_stat" = xyes
5380*e4a6e799Ssimonbthen :
5381*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h
5382*e4a6e799Ssimonb
5383*e4a6e799Ssimonbfi
5384*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
5385*e4a6e799Ssimonbif test "x$ac_cv_func_strsignal" = xyes
5386*e4a6e799Ssimonbthen :
5387*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
5388*e4a6e799Ssimonb
5389*e4a6e799Ssimonbfi
5390*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
5391*e4a6e799Ssimonbif test "x$ac_cv_func_system" = xyes
5392*e4a6e799Ssimonbthen :
5393*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
5394*e4a6e799Ssimonb
5395*e4a6e799Ssimonbfi
5396*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname"
5397*e4a6e799Ssimonbif test "x$ac_cv_func_ttyname" = xyes
5398*e4a6e799Ssimonbthen :
5399*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h
5400*e4a6e799Ssimonb
5401*e4a6e799Ssimonbfi
5402*e4a6e799Ssimonbac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
5403*e4a6e799Ssimonbif test "x$ac_cv_func_usleep" = xyes
5404*e4a6e799Ssimonbthen :
5405*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
5406*e4a6e799Ssimonb
5407*e4a6e799Ssimonbfi
540820006a0bStron
540920006a0bStron
541020006a0bStron# AC_CHECK_FUNCS may not work for inline functions, so test these separately.
5411*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
5412*e4a6e799Ssimonbprintf %s "checking for memcpy... " >&6; }
541320006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
541420006a0bStron/* end confdefs.h.  */
541520006a0bStron
541620006a0bStron#if HAVE_STRING_H
541720006a0bStron#include <string.h>
541820006a0bStron#endif
541920006a0bStronint
5420*e4a6e799Ssimonbmain (void)
542120006a0bStron{
542220006a0bStronmemcpy(0,0,0);
542320006a0bStron  ;
542420006a0bStron  return 0;
542520006a0bStron}
542620006a0bStron_ACEOF
5427*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5428*e4a6e799Ssimonbthen :
5429*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5430*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
543120006a0bStron
5432*e4a6e799Ssimonbelse $as_nop
5433*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
543520006a0bStronfi
5436*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
543720006a0bStron    conftest$ac_exeext conftest.$ac_ext
543820006a0bStron
5439*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strchr" >&5
5440*e4a6e799Ssimonbprintf %s "checking for strchr... " >&6; }
544120006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
544220006a0bStron/* end confdefs.h.  */
544320006a0bStron
544420006a0bStron#if HAVE_STRING_H
544520006a0bStron#include <string.h>
544620006a0bStron#endif
544720006a0bStronint
5448*e4a6e799Ssimonbmain (void)
544920006a0bStron{
545020006a0bStronstrchr("x",'x');
545120006a0bStron  ;
545220006a0bStron  return 0;
545320006a0bStron}
545420006a0bStron_ACEOF
5455*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5456*e4a6e799Ssimonbthen :
5457*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
545920006a0bStron
5460*e4a6e799Ssimonbelse $as_nop
5461*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
546320006a0bStronfi
5464*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
546520006a0bStron    conftest$ac_exeext conftest.$ac_ext
546620006a0bStron
5467*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strstr" >&5
5468*e4a6e799Ssimonbprintf %s "checking for strstr... " >&6; }
546920006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
547020006a0bStron/* end confdefs.h.  */
547120006a0bStron
547220006a0bStron#if HAVE_STRING_H
547320006a0bStron#include <string.h>
547420006a0bStron#endif
547520006a0bStronint
5476*e4a6e799Ssimonbmain (void)
547720006a0bStron{
547820006a0bStronstrstr("x","x");
547920006a0bStron  ;
548020006a0bStron  return 0;
548120006a0bStron}
548220006a0bStron_ACEOF
5483*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5484*e4a6e799Ssimonbthen :
5485*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5486*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
548720006a0bStron
5488*e4a6e799Ssimonbelse $as_nop
5489*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
549120006a0bStronfi
5492*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
549320006a0bStron    conftest$ac_exeext conftest.$ac_ext
549420006a0bStron
549520006a0bStron# Some systems have termios.h but not the corresponding functions.
549620006a0bStronac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
5497*e4a6e799Ssimonbif test "x$ac_cv_func_tcgetattr" = xyes
5498*e4a6e799Ssimonbthen :
5499*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_TERMIOS_FUNCS 1" >>confdefs.h
550020006a0bStron
550120006a0bStronfi
550220006a0bStron
550320006a0bStron
5504*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fileno" >&5
5505*e4a6e799Ssimonbprintf %s "checking for fileno... " >&6; }
550620006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
550720006a0bStron/* end confdefs.h.  */
550820006a0bStron
550920006a0bStron#if HAVE_STDIO_H
551020006a0bStron#include <stdio.h>
551120006a0bStron#endif
551220006a0bStronint
5513*e4a6e799Ssimonbmain (void)
551420006a0bStron{
551520006a0bStronstatic int x; x = fileno(stdin);
551620006a0bStron  ;
551720006a0bStron  return 0;
551820006a0bStron}
551920006a0bStron_ACEOF
5520*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5521*e4a6e799Ssimonbthen :
5522*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5523*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_FILENO 1" >>confdefs.h
552420006a0bStron
5525*e4a6e799Ssimonbelse $as_nop
5526*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
552820006a0bStronfi
5529*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
553020006a0bStron    conftest$ac_exeext conftest.$ac_ext
553120006a0bStron
5532*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strerror" >&5
5533*e4a6e799Ssimonbprintf %s "checking for strerror... " >&6; }
553420006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
553520006a0bStron/* end confdefs.h.  */
553620006a0bStron
553720006a0bStron#if HAVE_STDIO_H
553820006a0bStron#include <stdio.h>
553920006a0bStron#endif
554020006a0bStron#if HAVE_STRING_H
554120006a0bStron#include <string.h>
554220006a0bStron#endif
554320006a0bStron#if HAVE_ERRNO_H
554420006a0bStron#include <errno.h>
554520006a0bStron#endif
554620006a0bStronint
5547*e4a6e799Ssimonbmain (void)
554820006a0bStron{
554920006a0bStronstatic char *x; x = strerror(0);
555020006a0bStron  ;
555120006a0bStron  return 0;
555220006a0bStron}
555320006a0bStron_ACEOF
5554*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5555*e4a6e799Ssimonbthen :
5556*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
555820006a0bStron
5559*e4a6e799Ssimonbelse $as_nop
5560*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
556220006a0bStronfi
5563*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
556420006a0bStron    conftest$ac_exeext conftest.$ac_ext
556520006a0bStron
5566*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
5567*e4a6e799Ssimonbprintf %s "checking for sys_errlist... " >&6; }
556820006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
556920006a0bStron/* end confdefs.h.  */
557020006a0bStron
557120006a0bStronint
5572*e4a6e799Ssimonbmain (void)
557320006a0bStron{
557420006a0bStronextern char *sys_errlist[]; static char **x; x = sys_errlist;
557520006a0bStron  ;
557620006a0bStron  return 0;
557720006a0bStron}
557820006a0bStron_ACEOF
5579*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5580*e4a6e799Ssimonbthen :
5581*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5582*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
558320006a0bStron
5584*e4a6e799Ssimonbelse $as_nop
5585*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
558720006a0bStronfi
5588*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
558920006a0bStron    conftest$ac_exeext conftest.$ac_ext
559020006a0bStron
559120006a0bStronac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
559220006a0bStron"
5593*e4a6e799Ssimonbif test "x$ac_cv_type_sigset_t" = xyes
5594*e4a6e799Ssimonbthen :
559520006a0bStron
5596*e4a6e799Ssimonbprintf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h
559720006a0bStron
559820006a0bStron
559920006a0bStronfi
560020006a0bStron
560120006a0bStron
5602*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigemptyset" >&5
5603*e4a6e799Ssimonbprintf %s "checking for sigemptyset... " >&6; }
560420006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
560520006a0bStron/* end confdefs.h.  */
560620006a0bStron
560720006a0bStron#include <signal.h>
560820006a0bStron
560920006a0bStronint
5610*e4a6e799Ssimonbmain (void)
561120006a0bStron{
561220006a0bStronsigset_t s; sigemptyset(&s);
561320006a0bStron  ;
561420006a0bStron  return 0;
561520006a0bStron}
561620006a0bStron_ACEOF
5617*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5618*e4a6e799Ssimonbthen :
5619*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SIGEMPTYSET 1" >>confdefs.h
562120006a0bStron
5622*e4a6e799Ssimonbelse $as_nop
5623*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
562520006a0bStronfi
5626*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
562720006a0bStron    conftest$ac_exeext conftest.$ac_ext
562820006a0bStron
562920006a0bStronhave_errno=no
5630*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
5631*e4a6e799Ssimonbprintf %s "checking for errno... " >&6; }
563220006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
563320006a0bStron/* end confdefs.h.  */
563420006a0bStron
563520006a0bStron#if HAVE_ERRNO_H
563620006a0bStron#include <errno.h>
563720006a0bStron#endif
563820006a0bStronint
5639*e4a6e799Ssimonbmain (void)
564020006a0bStron{
564120006a0bStronstatic int x; x = errno;
564220006a0bStron  ;
564320006a0bStron  return 0;
564420006a0bStron}
564520006a0bStron_ACEOF
5646*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5647*e4a6e799Ssimonbthen :
5648*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
5649*e4a6e799Ssimonbprintf "%s\n" "yes - in errno.h" >&6; }; printf "%s\n" "#define HAVE_ERRNO 1" >>confdefs.h
565020006a0bStron have_errno=yes
565120006a0bStronfi
5652*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
565320006a0bStron    conftest$ac_exeext conftest.$ac_ext
565420006a0bStronif test $have_errno = no; then
565520006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
565620006a0bStron/* end confdefs.h.  */
565720006a0bStron
565820006a0bStron#if HAVE_ERRNO_H
565920006a0bStron#include <errno.h>
566020006a0bStron#endif
566120006a0bStronint
5662*e4a6e799Ssimonbmain (void)
566320006a0bStron{
566420006a0bStronextern int errno; static int x; x = errno;
566520006a0bStron  ;
566620006a0bStron  return 0;
566720006a0bStron}
566820006a0bStron_ACEOF
5669*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5670*e4a6e799Ssimonbthen :
5671*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5672*e4a6e799Ssimonbprintf "%s\n" "yes - must define" >&6; }; printf "%s\n" "#define HAVE_ERRNO 1" >>confdefs.h
5673*e4a6e799Ssimonb printf "%s\n" "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
567420006a0bStron
5675*e4a6e799Ssimonbelse $as_nop
5676*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
567820006a0bStronfi
5679*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
568020006a0bStron    conftest$ac_exeext conftest.$ac_ext
568120006a0bStronfi
568220006a0bStron
5683*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for locale" >&5
5684*e4a6e799Ssimonbprintf %s "checking for locale... " >&6; }
568520006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
568620006a0bStron/* end confdefs.h.  */
568720006a0bStron#include <locale.h>
568820006a0bStron#include <ctype.h>
568920006a0bStron#include <langinfo.h>
569020006a0bStronint
5691*e4a6e799Ssimonbmain (void)
569220006a0bStron{
569320006a0bStronsetlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
569420006a0bStron  ;
569520006a0bStron  return 0;
569620006a0bStron}
569720006a0bStron_ACEOF
5698*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5699*e4a6e799Ssimonbthen :
5700*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_LOCALE 1" >>confdefs.h
570220006a0bStron
5703*e4a6e799Ssimonbelse $as_nop
5704*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
570620006a0bStronfi
5707*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
570820006a0bStron    conftest$ac_exeext conftest.$ac_ext
570920006a0bStron
5710*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctype functions" >&5
5711*e4a6e799Ssimonbprintf %s "checking for ctype functions... " >&6; }
571220006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
571320006a0bStron/* end confdefs.h.  */
571420006a0bStron
571520006a0bStron#if HAVE_CTYPE_H
571620006a0bStron#include <ctype.h>
571720006a0bStron#endif
571820006a0bStronint
5719*e4a6e799Ssimonbmain (void)
572020006a0bStron{
572120006a0bStronstatic int x; x = isupper(x); x = tolower(x); x = toupper(x);
572220006a0bStron  ;
572320006a0bStron  return 0;
572420006a0bStron}
572520006a0bStron_ACEOF
5726*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5727*e4a6e799Ssimonbthen :
5728*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5729*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_UPPER_LOWER 1" >>confdefs.h
573020006a0bStron
5731*e4a6e799Ssimonbelse $as_nop
5732*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
573420006a0bStronfi
5735*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
573620006a0bStron    conftest$ac_exeext conftest.$ac_ext
573720006a0bStron
5738*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype functions" >&5
5739*e4a6e799Ssimonbprintf %s "checking for wctype functions... " >&6; }
574020006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
574120006a0bStron/* end confdefs.h.  */
574220006a0bStron#include <wctype.h>
574320006a0bStronint
5744*e4a6e799Ssimonbmain (void)
574520006a0bStron{
574620006a0bStroniswlower(0); iswupper(0); towlower(0); towupper(0);
574720006a0bStron  ;
574820006a0bStron  return 0;
574920006a0bStron}
575020006a0bStron_ACEOF
5751*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5752*e4a6e799Ssimonbthen :
5753*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_WCTYPE 1" >>confdefs.h
575520006a0bStron
5756*e4a6e799Ssimonbelse $as_nop
5757*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
575920006a0bStronfi
5760*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
576120006a0bStron    conftest$ac_exeext conftest.$ac_ext
576220006a0bStron
576320006a0bStron# Checks for external variable ospeed in the termcap library.
576420006a0bStronhave_ospeed=no
5765*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking termcap for ospeed" >&5
5766*e4a6e799Ssimonbprintf %s "checking termcap for ospeed... " >&6; }
576720006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
576820006a0bStron/* end confdefs.h.  */
576920006a0bStron
577020006a0bStron#include <sys/types.h>
577120006a0bStron#if HAVE_TERMIOS_H
577220006a0bStron#include <termios.h>
577320006a0bStron#endif
577420006a0bStron#if HAVE_TERMCAP_H
577520006a0bStron#include <termcap.h>
577620006a0bStron#endif
577720006a0bStronint
5778*e4a6e799Ssimonbmain (void)
577920006a0bStron{
578020006a0bStronospeed = 0;
578120006a0bStron  ;
578220006a0bStron  return 0;
578320006a0bStron}
578420006a0bStron_ACEOF
5785*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5786*e4a6e799Ssimonbthen :
5787*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - in termcap.h" >&5
5788*e4a6e799Ssimonbprintf "%s\n" "yes - in termcap.h" >&6; }; printf "%s\n" "#define HAVE_OSPEED 1" >>confdefs.h
578920006a0bStron have_ospeed=yes
579020006a0bStronfi
5791*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
579220006a0bStron    conftest$ac_exeext conftest.$ac_ext
579320006a0bStronif test $have_ospeed = no; then
579420006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
579520006a0bStron/* end confdefs.h.  */
579620006a0bStron
579720006a0bStronint
5798*e4a6e799Ssimonbmain (void)
579920006a0bStron{
580020006a0bStronextern short ospeed; ospeed = 0;
580120006a0bStron  ;
580220006a0bStron  return 0;
580320006a0bStron}
580420006a0bStron_ACEOF
5805*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5806*e4a6e799Ssimonbthen :
5807*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5808*e4a6e799Ssimonbprintf "%s\n" "yes - must define" >&6; }; printf "%s\n" "#define HAVE_OSPEED 1" >>confdefs.h
5809*e4a6e799Ssimonb printf "%s\n" "#define MUST_DEFINE_OSPEED 1" >>confdefs.h
581020006a0bStron
5811*e4a6e799Ssimonbelse $as_nop
5812*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
581420006a0bStronfi
5815*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
581620006a0bStron    conftest$ac_exeext conftest.$ac_ext
581720006a0bStronfi
581820006a0bStron
581920006a0bStron# Compile in secure mode?
582020006a0bStron
582120006a0bStron# Check whether --with-secure was given.
5822*e4a6e799Ssimonbif test ${with_secure+y}
5823*e4a6e799Ssimonbthen :
5824*e4a6e799Ssimonb  withval=$with_secure; printf "%s\n" "#define SECURE_COMPILE 1" >>confdefs.h
582520006a0bStron
5826*e4a6e799Ssimonb  SECURE_COMPILE=1
5827*e4a6e799Ssimonb
5828*e4a6e799Ssimonbelse $as_nop
5829*e4a6e799Ssimonb  printf "%s\n" "#define SECURE_COMPILE 0" >>confdefs.h
5830*e4a6e799Ssimonb
5831*e4a6e799Ssimonb  SECURE_COMPILE=0
583220006a0bStron
583320006a0bStronfi
583420006a0bStron
583520006a0bStron
583620006a0bStron# Checks for regular expression functions.
583720006a0bStronhave_regex=no
583820006a0bStronhave_posix_regex=unknown
5839749ad2faStronsupported_regex=""
584020006a0bStron
584120006a0bStron# Select a regular expression library.
584220006a0bStronWANT_REGEX=auto
584320006a0bStron
584420006a0bStron# Check whether --with-regex was given.
5845*e4a6e799Ssimonbif test ${with_regex+y}
5846*e4a6e799Ssimonbthen :
584720006a0bStron  withval=$with_regex; WANT_REGEX="$withval"
584820006a0bStronfi
584920006a0bStron
585020006a0bStron
585120006a0bStronif test $have_regex = no; then
585220006a0bStronif test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
585320006a0bStron# Some versions of Solaris have a regcomp() function, but it doesn't work!
585420006a0bStron# So we run a test program.  If we're cross-compiling, do it the old way.
5855*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for POSIX regcomp" >&5
5856*e4a6e799Ssimonbprintf %s "checking for POSIX regcomp... " >&6; }
5857*e4a6e799Ssimonbif test "$cross_compiling" = yes
5858*e4a6e799Ssimonbthen :
585920006a0bStron  have_posix_regex=unknown
5860*e4a6e799Ssimonbelse $as_nop
586120006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
586220006a0bStron/* end confdefs.h.  */
586320006a0bStron
586420006a0bStron#include <sys/types.h>
586520006a0bStron#include <regex.h>
5866*e4a6e799Ssimonbint main() { regex_t r; regmatch_t rm; char *text = "xabcy";
5867*e4a6e799Ssimonbif (regcomp(&r, "abc", 0)) return (1);
5868*e4a6e799Ssimonbif (regexec(&r, text, 1, &rm, 0)) return (1);
586920006a0bStron#ifndef __WATCOMC__
5870*e4a6e799Ssimonbif (rm.rm_so != 1) return (1); /* check for correct offset */
587120006a0bStron#else
5872*e4a6e799Ssimonbif (rm.rm_sp != text + 1) return (1); /* check for correct offset */
587320006a0bStron#endif
5874*e4a6e799Ssimonbreturn (0); }
587520006a0bStron_ACEOF
5876*e4a6e799Ssimonbif ac_fn_c_try_run "$LINENO"
5877*e4a6e799Ssimonbthen :
587820006a0bStron  have_posix_regex=yes
5879*e4a6e799Ssimonbelse $as_nop
588020006a0bStron  have_posix_regex=no
588120006a0bStronfi
588220006a0bStronrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
588320006a0bStron  conftest.$ac_objext conftest.beam conftest.$ac_ext
588420006a0bStronfi
588520006a0bStron
588620006a0bStronif test $have_posix_regex = yes; then
5887*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5888*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }
5889*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5890749ad2faStron supported_regex="$supported_regex posix"
589120006a0bStron  have_regex=yes
589220006a0bStronelif test $have_posix_regex = unknown; then
589320006a0bStron  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
589420006a0bStron/* end confdefs.h.  */
589520006a0bStron
589620006a0bStron#include <sys/types.h>
589720006a0bStron#include <regex.h>
589820006a0bStronint
5899*e4a6e799Ssimonbmain (void)
590020006a0bStron{
590120006a0bStronregex_t *r; regfree(r);
590220006a0bStron  ;
590320006a0bStron  return 0;
590420006a0bStron}
590520006a0bStron_ACEOF
5906*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5907*e4a6e799Ssimonbthen :
5908*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5909*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }
5910*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5911749ad2faStron have_regex=yes; supported_regex="$supported_regex posix"
591220006a0bStronfi
5913*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
591420006a0bStron    conftest$ac_exeext conftest.$ac_ext
591520006a0bStronelse
5916*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
591820006a0bStronfi
591920006a0bStronfi
592020006a0bStronfi
592120006a0bStron
592220006a0bStronif test $have_regex = no; then
5923*e4a6e799Ssimonbif test $WANT_REGEX = auto -o $WANT_REGEX = pcre2; then
5924*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_8 in -lpcre2-8" >&5
5925*e4a6e799Ssimonbprintf %s "checking for pcre2_compile_8 in -lpcre2-8... " >&6; }
5926*e4a6e799Ssimonbif test ${ac_cv_lib_pcre2_8_pcre2_compile_8+y}
5927*e4a6e799Ssimonbthen :
5928*e4a6e799Ssimonb  printf %s "(cached) " >&6
5929*e4a6e799Ssimonbelse $as_nop
5930*e4a6e799Ssimonb  ac_check_lib_save_LIBS=$LIBS
5931*e4a6e799SsimonbLIBS="-lpcre2-8  $LIBS"
5932*e4a6e799Ssimonbcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933*e4a6e799Ssimonb/* end confdefs.h.  */
5934*e4a6e799Ssimonb
5935*e4a6e799Ssimonb/* Override any GCC internal prototype to avoid an error.
5936*e4a6e799Ssimonb   Use char because int might match the return type of a GCC
5937*e4a6e799Ssimonb   builtin and then its argument prototype would still apply.  */
5938*e4a6e799Ssimonbchar pcre2_compile_8 ();
5939*e4a6e799Ssimonbint
5940*e4a6e799Ssimonbmain (void)
5941*e4a6e799Ssimonb{
5942*e4a6e799Ssimonbreturn pcre2_compile_8 ();
5943*e4a6e799Ssimonb  ;
5944*e4a6e799Ssimonb  return 0;
5945*e4a6e799Ssimonb}
5946*e4a6e799Ssimonb_ACEOF
5947*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5948*e4a6e799Ssimonbthen :
5949*e4a6e799Ssimonb  ac_cv_lib_pcre2_8_pcre2_compile_8=yes
5950*e4a6e799Ssimonbelse $as_nop
5951*e4a6e799Ssimonb  ac_cv_lib_pcre2_8_pcre2_compile_8=no
5952*e4a6e799Ssimonbfi
5953*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
5954*e4a6e799Ssimonb    conftest$ac_exeext conftest.$ac_ext
5955*e4a6e799SsimonbLIBS=$ac_check_lib_save_LIBS
5956*e4a6e799Ssimonbfi
5957*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_8_pcre2_compile_8" >&5
5958*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_lib_pcre2_8_pcre2_compile_8" >&6; }
5959*e4a6e799Ssimonbif test "x$ac_cv_lib_pcre2_8_pcre2_compile_8" = xyes
5960*e4a6e799Ssimonbthen :
5961*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_PCRE2 1" >>confdefs.h
5962*e4a6e799Ssimonb LIBS="$LIBS -lpcre2-8" have_regex=yes; supported_regex="$supported_regex pcre2"
5963*e4a6e799Ssimonbfi
5964*e4a6e799Ssimonb
5965*e4a6e799Ssimonbfi
5966*e4a6e799Ssimonbfi
5967*e4a6e799Ssimonb
5968*e4a6e799Ssimonbif test $have_regex = no; then
596920006a0bStronif test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
5970*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
5971*e4a6e799Ssimonbprintf %s "checking for pcre_compile in -lpcre... " >&6; }
5972*e4a6e799Ssimonbif test ${ac_cv_lib_pcre_pcre_compile+y}
5973*e4a6e799Ssimonbthen :
5974*e4a6e799Ssimonb  printf %s "(cached) " >&6
5975*e4a6e799Ssimonbelse $as_nop
597620006a0bStron  ac_check_lib_save_LIBS=$LIBS
597720006a0bStronLIBS="-lpcre  $LIBS"
597820006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
597920006a0bStron/* end confdefs.h.  */
598020006a0bStron
598120006a0bStron/* Override any GCC internal prototype to avoid an error.
598220006a0bStron   Use char because int might match the return type of a GCC
598320006a0bStron   builtin and then its argument prototype would still apply.  */
598420006a0bStronchar pcre_compile ();
598520006a0bStronint
5986*e4a6e799Ssimonbmain (void)
598720006a0bStron{
598820006a0bStronreturn pcre_compile ();
598920006a0bStron  ;
599020006a0bStron  return 0;
599120006a0bStron}
599220006a0bStron_ACEOF
5993*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
5994*e4a6e799Ssimonbthen :
599520006a0bStron  ac_cv_lib_pcre_pcre_compile=yes
5996*e4a6e799Ssimonbelse $as_nop
599720006a0bStron  ac_cv_lib_pcre_pcre_compile=no
599820006a0bStronfi
5999*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
600020006a0bStron    conftest$ac_exeext conftest.$ac_ext
600120006a0bStronLIBS=$ac_check_lib_save_LIBS
600220006a0bStronfi
6003*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
6004*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_lib_pcre_pcre_compile" >&6; }
6005*e4a6e799Ssimonbif test "x$ac_cv_lib_pcre_pcre_compile" = xyes
6006*e4a6e799Ssimonbthen :
6007*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_PCRE 1" >>confdefs.h
6008749ad2faStron LIBS="$LIBS -lpcre" have_regex=yes; supported_regex="$supported_regex pcre"
6009749ad2faStronfi
6010749ad2faStron
6011749ad2faStronfi
6012749ad2faStronfi
6013749ad2faStron
6014749ad2faStronif test $have_regex = no; then
6015749ad2faStronif test $WANT_REGEX = auto -o $WANT_REGEX = gnu; then
6016*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for re_compile_pattern in -lc" >&5
6017*e4a6e799Ssimonbprintf %s "checking for re_compile_pattern in -lc... " >&6; }
6018*e4a6e799Ssimonbif test ${ac_cv_lib_c_re_compile_pattern+y}
6019*e4a6e799Ssimonbthen :
6020*e4a6e799Ssimonb  printf %s "(cached) " >&6
6021*e4a6e799Ssimonbelse $as_nop
6022749ad2faStron  ac_check_lib_save_LIBS=$LIBS
6023749ad2faStronLIBS="-lc  $LIBS"
6024749ad2faStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025749ad2faStron/* end confdefs.h.  */
6026749ad2faStron
6027749ad2faStron/* Override any GCC internal prototype to avoid an error.
6028749ad2faStron   Use char because int might match the return type of a GCC
6029749ad2faStron   builtin and then its argument prototype would still apply.  */
6030749ad2faStronchar re_compile_pattern ();
6031749ad2faStronint
6032*e4a6e799Ssimonbmain (void)
6033749ad2faStron{
6034749ad2faStronreturn re_compile_pattern ();
6035749ad2faStron  ;
6036749ad2faStron  return 0;
6037749ad2faStron}
6038749ad2faStron_ACEOF
6039*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
6040*e4a6e799Ssimonbthen :
6041749ad2faStron  ac_cv_lib_c_re_compile_pattern=yes
6042*e4a6e799Ssimonbelse $as_nop
6043749ad2faStron  ac_cv_lib_c_re_compile_pattern=no
6044749ad2faStronfi
6045*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
6046749ad2faStron    conftest$ac_exeext conftest.$ac_ext
6047749ad2faStronLIBS=$ac_check_lib_save_LIBS
6048749ad2faStronfi
6049*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_re_compile_pattern" >&5
6050*e4a6e799Ssimonbprintf "%s\n" "$ac_cv_lib_c_re_compile_pattern" >&6; }
6051*e4a6e799Ssimonbif test "x$ac_cv_lib_c_re_compile_pattern" = xyes
6052*e4a6e799Ssimonbthen :
6053*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_GNU_REGEX 1" >>confdefs.h
6054749ad2faStron have_regex=yes; supported_regex="$supported_regex gnu"
605520006a0bStronfi
605620006a0bStron
605720006a0bStronfi
605820006a0bStronfi
605920006a0bStron
606020006a0bStronif test $have_regex = no; then
606120006a0bStronif test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
606220006a0bStronac_fn_c_check_func "$LINENO" "regcmp" "ac_cv_func_regcmp"
6063*e4a6e799Ssimonbif test "x$ac_cv_func_regcmp" = xyes
6064*e4a6e799Ssimonbthen :
6065*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_REGCMP 1" >>confdefs.h
6066749ad2faStron have_regex=yes; supported_regex="$supported_regex regcmp"
606720006a0bStronfi
606820006a0bStron
606920006a0bStronfi
607020006a0bStronfi
607120006a0bStron
607220006a0bStronif test $have_regex = no; then
607320006a0bStronif test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
6074*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for V8 regcomp" >&5
6075*e4a6e799Ssimonbprintf %s "checking for V8 regcomp... " >&6; }
607620006a0bStroncat confdefs.h - <<_ACEOF >conftest.$ac_ext
607720006a0bStron/* end confdefs.h.  */
607820006a0bStron
607920006a0bStron#include "regexp.h"
608020006a0bStronint
6081*e4a6e799Ssimonbmain (void)
608220006a0bStron{
608320006a0bStronregcomp("");
608420006a0bStron  ;
608520006a0bStron  return 0;
608620006a0bStron}
608720006a0bStron_ACEOF
6088*e4a6e799Ssimonbif ac_fn_c_try_link "$LINENO"
6089*e4a6e799Ssimonbthen :
6090*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6091*e4a6e799Ssimonbprintf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_V8_REGCOMP 1" >>confdefs.h
6092749ad2faStron have_regex=yes; supported_regex="$supported_regex regcomp"
6093*e4a6e799Ssimonbelse $as_nop
6094*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095*e4a6e799Ssimonbprintf "%s\n" "no" >&6; }
609620006a0bStronfi
6097*e4a6e799Ssimonbrm -f core conftest.err conftest.$ac_objext conftest.beam \
609820006a0bStron    conftest$ac_exeext conftest.$ac_ext
609920006a0bStronfi
610020006a0bStronfi
610120006a0bStron
610220006a0bStronif test $have_regex = no && test -f ${srcdir}/regexp.c; then
610320006a0bStronif test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
6104*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp -- local source" >&5
6105*e4a6e799Ssimonbprintf "%s\n" "using V8 regcomp -- local source" >&6; }; printf "%s\n" "#define HAVE_V8_REGCOMP 1" >>confdefs.h
6106749ad2faStron
6107749ad2faStronsupported_regex="$supported_regex regcomp-local"
6108*e4a6e799Ssimonbprintf "%s\n" "#define HAVE_REGEXEC2 1" >>confdefs.h
610920006a0bStron REGEX_O='regexp.$(O)'  have_regex=yes
611020006a0bStronfi
611120006a0bStronfi
611220006a0bStron
611320006a0bStronif test $have_regex = no; then
611420006a0bStronif test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
6115*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for re_comp" >&5
6116*e4a6e799Ssimonbprintf %s "checking for re_comp... " >&6; }
6117749ad2faStronac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
6118*e4a6e799Ssimonbif test "x$ac_cv_func_re_comp" = xyes
6119*e4a6e799Ssimonbthen :
6120*e4a6e799Ssimonb  printf "%s\n" "#define HAVE_RE_COMP 1" >>confdefs.h
6121749ad2faStron have_regex=yes; supported_regex="$supported_regex re_comp"
612220006a0bStronfi
612320006a0bStron
612420006a0bStronfi
612520006a0bStronfi
612620006a0bStron
612720006a0bStronif test $have_regex = no; then
6128749ad2faStronif test $WANT_REGEX = auto -o $WANT_REGEX = none; then
6129*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using no regex" >&5
6130*e4a6e799Ssimonbprintf "%s\n" "using no regex" >&6; }
6131749ad2faStronelse
6132*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find regular expression library" >&5
6133*e4a6e799Ssimonbprintf "%s\n" "$as_me: WARNING: cannot find regular expression library" >&2;}
613420006a0bStronfi
6135*e4a6e799Ssimonbprintf "%s\n" "#define NO_REGEX 1" >>confdefs.h
6136749ad2faStron supported_regex="$supported_regex none"
6137749ad2faStronfi
6138749ad2faStron
6139*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: regular expression library: $supported_regex" >&5
6140*e4a6e799Ssimonbprintf "%s\n" "regular expression library: $supported_regex" >&6; }
614120006a0bStron
614220006a0bStron
614320006a0bStron# Check whether --with-editor was given.
6144*e4a6e799Ssimonbif test ${with_editor+y}
6145*e4a6e799Ssimonbthen :
6146*e4a6e799Ssimonb  withval=$with_editor; printf "%s\n" "#define EDIT_PGM \"$withval\"" >>confdefs.h
614720006a0bStron
6148*e4a6e799Ssimonbelse $as_nop
6149*e4a6e799Ssimonb  printf "%s\n" "#define EDIT_PGM \"vi\"" >>confdefs.h
615020006a0bStron
615120006a0bStronfi
615220006a0bStron
615320006a0bStron
615420006a0bStron
615520006a0bStron
615620006a0bStronac_config_files="$ac_config_files Makefile"
615720006a0bStron
615820006a0bStroncat >confcache <<\_ACEOF
615920006a0bStron# This file is a shell script that caches the results of configure
616020006a0bStron# tests run on this system so they can be shared between configure
616120006a0bStron# scripts and configure runs, see configure's option --config-cache.
616220006a0bStron# It is not useful on other systems.  If it contains results you don't
616320006a0bStron# want to keep, you may remove or edit it.
616420006a0bStron#
616520006a0bStron# config.status only pays attention to the cache file if you give it
616620006a0bStron# the --recheck option to rerun configure.
616720006a0bStron#
616820006a0bStron# `ac_cv_env_foo' variables (set or unset) will be overridden when
616920006a0bStron# loading this file, other *unset* `ac_cv_foo' will be assigned the
617020006a0bStron# following values.
617120006a0bStron
617220006a0bStron_ACEOF
617320006a0bStron
617420006a0bStron# The following way of writing the cache mishandles newlines in values,
617520006a0bStron# but we know of no workaround that is simple, portable, and efficient.
617620006a0bStron# So, we kill variables containing newlines.
617720006a0bStron# Ultrix sh set writes to stderr and can't be redirected directly,
617820006a0bStron# and sets the high bit in the cache file unless we assign to the vars.
617920006a0bStron(
618020006a0bStron  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
618120006a0bStron    eval ac_val=\$$ac_var
618220006a0bStron    case $ac_val in #(
618320006a0bStron    *${as_nl}*)
618420006a0bStron      case $ac_var in #(
6185*e4a6e799Ssimonb      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6186*e4a6e799Ssimonbprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
618720006a0bStron      esac
618820006a0bStron      case $ac_var in #(
618920006a0bStron      _ | IFS | as_nl) ;; #(
619020006a0bStron      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
619120006a0bStron      *) { eval $ac_var=; unset $ac_var;} ;;
619220006a0bStron      esac ;;
619320006a0bStron    esac
619420006a0bStron  done
619520006a0bStron
619620006a0bStron  (set) 2>&1 |
619720006a0bStron    case $as_nl`(ac_space=' '; set) 2>&1` in #(
619820006a0bStron    *${as_nl}ac_space=\ *)
619920006a0bStron      # `set' does not quote correctly, so add quotes: double-quote
620020006a0bStron      # substitution turns \\\\ into \\, and sed turns \\ into \.
620120006a0bStron      sed -n \
620220006a0bStron	"s/'/'\\\\''/g;
620320006a0bStron	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
620420006a0bStron      ;; #(
620520006a0bStron    *)
620620006a0bStron      # `set' quotes correctly as required by POSIX, so do not add quotes.
620720006a0bStron      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
620820006a0bStron      ;;
620920006a0bStron    esac |
621020006a0bStron    sort
621120006a0bStron) |
621220006a0bStron  sed '
621320006a0bStron     /^ac_cv_env_/b end
621420006a0bStron     t clear
621520006a0bStron     :clear
6216*e4a6e799Ssimonb     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
621720006a0bStron     t end
621820006a0bStron     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
621920006a0bStron     :end' >>confcache
622020006a0bStronif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
622120006a0bStron  if test -w "$cache_file"; then
6222749ad2faStron    if test "x$cache_file" != "x/dev/null"; then
6223*e4a6e799Ssimonb      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6224*e4a6e799Ssimonbprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6225749ad2faStron      if test ! -f "$cache_file" || test -h "$cache_file"; then
6226749ad2faStron	cat confcache >"$cache_file"
6227749ad2faStron      else
6228749ad2faStron        case $cache_file in #(
6229749ad2faStron        */* | ?:*)
6230749ad2faStron	  mv -f confcache "$cache_file"$$ &&
6231749ad2faStron	  mv -f "$cache_file"$$ "$cache_file" ;; #(
6232749ad2faStron        *)
6233749ad2faStron	  mv -f confcache "$cache_file" ;;
6234749ad2faStron	esac
6235749ad2faStron      fi
6236749ad2faStron    fi
623720006a0bStron  else
6238*e4a6e799Ssimonb    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6239*e4a6e799Ssimonbprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
624020006a0bStron  fi
624120006a0bStronfi
624220006a0bStronrm -f confcache
624320006a0bStron
624420006a0bStrontest "x$prefix" = xNONE && prefix=$ac_default_prefix
624520006a0bStron# Let make expand exec_prefix.
624620006a0bStrontest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
624720006a0bStron
624820006a0bStronDEFS=-DHAVE_CONFIG_H
624920006a0bStron
625020006a0bStronac_libobjs=
625120006a0bStronac_ltlibobjs=
625220006a0bStronU=
625320006a0bStronfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
625420006a0bStron  # 1. Remove the extension, and $U if already installed.
625520006a0bStron  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6256*e4a6e799Ssimonb  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
625720006a0bStron  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
625820006a0bStron  #    will be set to the directory where LIBOBJS objects are built.
625920006a0bStron  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
626020006a0bStron  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
626120006a0bStrondone
626220006a0bStronLIBOBJS=$ac_libobjs
626320006a0bStron
626420006a0bStronLTLIBOBJS=$ac_ltlibobjs
626520006a0bStron
626620006a0bStron
626720006a0bStron
6268749ad2faStron: "${CONFIG_STATUS=./config.status}"
626920006a0bStronac_write_fail=0
627020006a0bStronac_clean_files_save=$ac_clean_files
627120006a0bStronac_clean_files="$ac_clean_files $CONFIG_STATUS"
6272*e4a6e799Ssimonb{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6273*e4a6e799Ssimonbprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
627420006a0bStronas_write_fail=0
627520006a0bStroncat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
627620006a0bStron#! $SHELL
627720006a0bStron# Generated by $as_me.
627820006a0bStron# Run this file to recreate the current configuration.
627920006a0bStron# Compiler output produced by configure, useful for debugging
628020006a0bStron# configure, is in config.log if it exists.
628120006a0bStron
628220006a0bStrondebug=false
628320006a0bStronac_cs_recheck=false
628420006a0bStronac_cs_silent=false
628520006a0bStron
628620006a0bStronSHELL=\${CONFIG_SHELL-$SHELL}
628720006a0bStronexport SHELL
628820006a0bStron_ASEOF
628920006a0bStroncat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
629020006a0bStron## -------------------- ##
629120006a0bStron## M4sh Initialization. ##
629220006a0bStron## -------------------- ##
629320006a0bStron
629420006a0bStron# Be more Bourne compatible
629520006a0bStronDUALCASE=1; export DUALCASE # for MKS sh
6296*e4a6e799Ssimonbas_nop=:
6297*e4a6e799Ssimonbif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6298*e4a6e799Ssimonbthen :
629920006a0bStron  emulate sh
630020006a0bStron  NULLCMD=:
630120006a0bStron  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
630220006a0bStron  # is contrary to our usage.  Disable this feature.
630320006a0bStron  alias -g '${1+"$@"}'='"$@"'
630420006a0bStron  setopt NO_GLOB_SUBST
6305*e4a6e799Ssimonbelse $as_nop
630620006a0bStron  case `(set -o) 2>/dev/null` in #(
630720006a0bStron  *posix*) :
630820006a0bStron    set -o posix ;; #(
630920006a0bStron  *) :
631020006a0bStron     ;;
631120006a0bStronesac
631220006a0bStronfi
631320006a0bStron
631420006a0bStron
6315*e4a6e799Ssimonb
6316*e4a6e799Ssimonb# Reset variables that may have inherited troublesome values from
6317*e4a6e799Ssimonb# the environment.
6318*e4a6e799Ssimonb
6319*e4a6e799Ssimonb# IFS needs to be set, to space, tab, and newline, in precisely that order.
6320*e4a6e799Ssimonb# (If _AS_PATH_WALK were called with IFS unset, it would have the
6321*e4a6e799Ssimonb# side effect of setting IFS to empty, thus disabling word splitting.)
6322*e4a6e799Ssimonb# Quoting is to prevent editors from complaining about space-tab.
632320006a0bStronas_nl='
632420006a0bStron'
632520006a0bStronexport as_nl
6326*e4a6e799SsimonbIFS=" ""	$as_nl"
6327*e4a6e799Ssimonb
6328*e4a6e799SsimonbPS1='$ '
6329*e4a6e799SsimonbPS2='> '
6330*e4a6e799SsimonbPS4='+ '
6331*e4a6e799Ssimonb
6332*e4a6e799Ssimonb# Ensure predictable behavior from utilities with locale-dependent output.
6333*e4a6e799SsimonbLC_ALL=C
6334*e4a6e799Ssimonbexport LC_ALL
6335*e4a6e799SsimonbLANGUAGE=C
6336*e4a6e799Ssimonbexport LANGUAGE
6337*e4a6e799Ssimonb
6338*e4a6e799Ssimonb# We cannot yet rely on "unset" to work, but we need these variables
6339*e4a6e799Ssimonb# to be unset--not just set to an empty or harmless value--now, to
6340*e4a6e799Ssimonb# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
6341*e4a6e799Ssimonb# also avoids known problems related to "unset" and subshell syntax
6342*e4a6e799Ssimonb# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6343*e4a6e799Ssimonbfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6344*e4a6e799Ssimonbdo eval test \${$as_var+y} \
6345*e4a6e799Ssimonb  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6346*e4a6e799Ssimonbdone
6347*e4a6e799Ssimonb
6348*e4a6e799Ssimonb# Ensure that fds 0, 1, and 2 are open.
6349*e4a6e799Ssimonbif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6350*e4a6e799Ssimonbif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6351*e4a6e799Ssimonbif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
635220006a0bStron
635320006a0bStron# The user is always right.
6354*e4a6e799Ssimonbif ${PATH_SEPARATOR+false} :; then
635520006a0bStron  PATH_SEPARATOR=:
635620006a0bStron  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
635720006a0bStron    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
635820006a0bStron      PATH_SEPARATOR=';'
635920006a0bStron  }
636020006a0bStronfi
636120006a0bStron
636220006a0bStron
636320006a0bStron# Find who we are.  Look in the path if we contain no directory separator.
6364749ad2faStronas_myself=
636520006a0bStroncase $0 in #((
636620006a0bStron  *[\\/]* ) as_myself=$0 ;;
636720006a0bStron  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
636820006a0bStronfor as_dir in $PATH
636920006a0bStrondo
637020006a0bStron  IFS=$as_save_IFS
6371*e4a6e799Ssimonb  case $as_dir in #(((
6372*e4a6e799Ssimonb    '') as_dir=./ ;;
6373*e4a6e799Ssimonb    */) ;;
6374*e4a6e799Ssimonb    *) as_dir=$as_dir/ ;;
6375*e4a6e799Ssimonb  esac
6376*e4a6e799Ssimonb    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
637720006a0bStron  done
637820006a0bStronIFS=$as_save_IFS
637920006a0bStron
638020006a0bStron     ;;
638120006a0bStronesac
638220006a0bStron# We did not find ourselves, most probably we were run as `sh COMMAND'
638320006a0bStron# in which case we are not to be found in the path.
638420006a0bStronif test "x$as_myself" = x; then
638520006a0bStron  as_myself=$0
638620006a0bStronfi
638720006a0bStronif test ! -f "$as_myself"; then
6388*e4a6e799Ssimonb  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
638920006a0bStron  exit 1
639020006a0bStronfi
639120006a0bStron
639220006a0bStron
639320006a0bStron
639420006a0bStron# as_fn_error STATUS ERROR [LINENO LOG_FD]
639520006a0bStron# ----------------------------------------
639620006a0bStron# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
639720006a0bStron# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
639820006a0bStron# script with STATUS, using 1 if that was 0.
639920006a0bStronas_fn_error ()
640020006a0bStron{
640120006a0bStron  as_status=$1; test $as_status -eq 0 && as_status=1
640220006a0bStron  if test "$4"; then
640320006a0bStron    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6404*e4a6e799Ssimonb    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
640520006a0bStron  fi
6406*e4a6e799Ssimonb  printf "%s\n" "$as_me: error: $2" >&2
640720006a0bStron  as_fn_exit $as_status
640820006a0bStron} # as_fn_error
640920006a0bStron
641020006a0bStron
6411*e4a6e799Ssimonb
641220006a0bStron# as_fn_set_status STATUS
641320006a0bStron# -----------------------
641420006a0bStron# Set $? to STATUS, without forking.
641520006a0bStronas_fn_set_status ()
641620006a0bStron{
641720006a0bStron  return $1
641820006a0bStron} # as_fn_set_status
641920006a0bStron
642020006a0bStron# as_fn_exit STATUS
642120006a0bStron# -----------------
642220006a0bStron# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
642320006a0bStronas_fn_exit ()
642420006a0bStron{
642520006a0bStron  set +e
642620006a0bStron  as_fn_set_status $1
642720006a0bStron  exit $1
642820006a0bStron} # as_fn_exit
642920006a0bStron
643020006a0bStron# as_fn_unset VAR
643120006a0bStron# ---------------
643220006a0bStron# Portably unset VAR.
643320006a0bStronas_fn_unset ()
643420006a0bStron{
643520006a0bStron  { eval $1=; unset $1;}
643620006a0bStron}
643720006a0bStronas_unset=as_fn_unset
6438*e4a6e799Ssimonb
643920006a0bStron# as_fn_append VAR VALUE
644020006a0bStron# ----------------------
644120006a0bStron# Append the text in VALUE to the end of the definition contained in VAR. Take
644220006a0bStron# advantage of any shell optimizations that allow amortized linear growth over
644320006a0bStron# repeated appends, instead of the typical quadratic growth present in naive
644420006a0bStron# implementations.
6445*e4a6e799Ssimonbif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6446*e4a6e799Ssimonbthen :
644720006a0bStron  eval 'as_fn_append ()
644820006a0bStron  {
644920006a0bStron    eval $1+=\$2
645020006a0bStron  }'
6451*e4a6e799Ssimonbelse $as_nop
645220006a0bStron  as_fn_append ()
645320006a0bStron  {
645420006a0bStron    eval $1=\$$1\$2
645520006a0bStron  }
645620006a0bStronfi # as_fn_append
645720006a0bStron
645820006a0bStron# as_fn_arith ARG...
645920006a0bStron# ------------------
646020006a0bStron# Perform arithmetic evaluation on the ARGs, and store the result in the
646120006a0bStron# global $as_val. Take advantage of shells that can avoid forks. The arguments
646220006a0bStron# must be portable across $(()) and expr.
6463*e4a6e799Ssimonbif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6464*e4a6e799Ssimonbthen :
646520006a0bStron  eval 'as_fn_arith ()
646620006a0bStron  {
646720006a0bStron    as_val=$(( $* ))
646820006a0bStron  }'
6469*e4a6e799Ssimonbelse $as_nop
647020006a0bStron  as_fn_arith ()
647120006a0bStron  {
647220006a0bStron    as_val=`expr "$@" || test $? -eq 1`
647320006a0bStron  }
647420006a0bStronfi # as_fn_arith
647520006a0bStron
647620006a0bStron
647720006a0bStronif expr a : '\(a\)' >/dev/null 2>&1 &&
647820006a0bStron   test "X`expr 00001 : '.*\(...\)'`" = X001; then
647920006a0bStron  as_expr=expr
648020006a0bStronelse
648120006a0bStron  as_expr=false
648220006a0bStronfi
648320006a0bStron
648420006a0bStronif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
648520006a0bStron  as_basename=basename
648620006a0bStronelse
648720006a0bStron  as_basename=false
648820006a0bStronfi
648920006a0bStron
649020006a0bStronif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
649120006a0bStron  as_dirname=dirname
649220006a0bStronelse
649320006a0bStron  as_dirname=false
649420006a0bStronfi
649520006a0bStron
649620006a0bStronas_me=`$as_basename -- "$0" ||
649720006a0bStron$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
649820006a0bStron	 X"$0" : 'X\(//\)$' \| \
649920006a0bStron	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6500*e4a6e799Ssimonbprintf "%s\n" X/"$0" |
650120006a0bStron    sed '/^.*\/\([^/][^/]*\)\/*$/{
650220006a0bStron	    s//\1/
650320006a0bStron	    q
650420006a0bStron	  }
650520006a0bStron	  /^X\/\(\/\/\)$/{
650620006a0bStron	    s//\1/
650720006a0bStron	    q
650820006a0bStron	  }
650920006a0bStron	  /^X\/\(\/\).*/{
651020006a0bStron	    s//\1/
651120006a0bStron	    q
651220006a0bStron	  }
651320006a0bStron	  s/.*/./; q'`
651420006a0bStron
651520006a0bStron# Avoid depending upon Character Ranges.
651620006a0bStronas_cr_letters='abcdefghijklmnopqrstuvwxyz'
651720006a0bStronas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
651820006a0bStronas_cr_Letters=$as_cr_letters$as_cr_LETTERS
651920006a0bStronas_cr_digits='0123456789'
652020006a0bStronas_cr_alnum=$as_cr_Letters$as_cr_digits
652120006a0bStron
6522*e4a6e799Ssimonb
6523*e4a6e799Ssimonb# Determine whether it's possible to make 'echo' print without a newline.
6524*e4a6e799Ssimonb# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6525*e4a6e799Ssimonb# for compatibility with existing Makefiles.
652620006a0bStronECHO_C= ECHO_N= ECHO_T=
652720006a0bStroncase `echo -n x` in #(((((
652820006a0bStron-n*)
652920006a0bStron  case `echo 'xy\c'` in
653020006a0bStron  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
653120006a0bStron  xy)  ECHO_C='\c';;
653220006a0bStron  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
653320006a0bStron       ECHO_T='	';;
653420006a0bStron  esac;;
653520006a0bStron*)
653620006a0bStron  ECHO_N='-n';;
653720006a0bStronesac
653820006a0bStron
6539*e4a6e799Ssimonb# For backward compatibility with old third-party macros, we provide
6540*e4a6e799Ssimonb# the shell variables $as_echo and $as_echo_n.  New code should use
6541*e4a6e799Ssimonb# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6542*e4a6e799Ssimonbas_echo='printf %s\n'
6543*e4a6e799Ssimonbas_echo_n='printf %s'
6544*e4a6e799Ssimonb
654520006a0bStronrm -f conf$$ conf$$.exe conf$$.file
654620006a0bStronif test -d conf$$.dir; then
654720006a0bStron  rm -f conf$$.dir/conf$$.file
654820006a0bStronelse
654920006a0bStron  rm -f conf$$.dir
655020006a0bStron  mkdir conf$$.dir 2>/dev/null
655120006a0bStronfi
655220006a0bStronif (echo >conf$$.file) 2>/dev/null; then
655320006a0bStron  if ln -s conf$$.file conf$$ 2>/dev/null; then
655420006a0bStron    as_ln_s='ln -s'
655520006a0bStron    # ... but there are two gotchas:
655620006a0bStron    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
655720006a0bStron    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6558*e4a6e799Ssimonb    # In both cases, we have to default to `cp -pR'.
655920006a0bStron    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6560*e4a6e799Ssimonb      as_ln_s='cp -pR'
656120006a0bStron  elif ln conf$$.file conf$$ 2>/dev/null; then
656220006a0bStron    as_ln_s=ln
656320006a0bStron  else
6564*e4a6e799Ssimonb    as_ln_s='cp -pR'
656520006a0bStron  fi
656620006a0bStronelse
6567*e4a6e799Ssimonb  as_ln_s='cp -pR'
656820006a0bStronfi
656920006a0bStronrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
657020006a0bStronrmdir conf$$.dir 2>/dev/null
657120006a0bStron
657220006a0bStron
657320006a0bStron# as_fn_mkdir_p
657420006a0bStron# -------------
657520006a0bStron# Create "$as_dir" as a directory, including parents if necessary.
657620006a0bStronas_fn_mkdir_p ()
657720006a0bStron{
657820006a0bStron
657920006a0bStron  case $as_dir in #(
658020006a0bStron  -*) as_dir=./$as_dir;;
658120006a0bStron  esac
658220006a0bStron  test -d "$as_dir" || eval $as_mkdir_p || {
658320006a0bStron    as_dirs=
658420006a0bStron    while :; do
658520006a0bStron      case $as_dir in #(
6586*e4a6e799Ssimonb      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
658720006a0bStron      *) as_qdir=$as_dir;;
658820006a0bStron      esac
658920006a0bStron      as_dirs="'$as_qdir' $as_dirs"
659020006a0bStron      as_dir=`$as_dirname -- "$as_dir" ||
659120006a0bStron$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
659220006a0bStron	 X"$as_dir" : 'X\(//\)[^/]' \| \
659320006a0bStron	 X"$as_dir" : 'X\(//\)$' \| \
659420006a0bStron	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6595*e4a6e799Ssimonbprintf "%s\n" X"$as_dir" |
659620006a0bStron    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
659720006a0bStron	    s//\1/
659820006a0bStron	    q
659920006a0bStron	  }
660020006a0bStron	  /^X\(\/\/\)[^/].*/{
660120006a0bStron	    s//\1/
660220006a0bStron	    q
660320006a0bStron	  }
660420006a0bStron	  /^X\(\/\/\)$/{
660520006a0bStron	    s//\1/
660620006a0bStron	    q
660720006a0bStron	  }
660820006a0bStron	  /^X\(\/\).*/{
660920006a0bStron	    s//\1/
661020006a0bStron	    q
661120006a0bStron	  }
661220006a0bStron	  s/.*/./; q'`
661320006a0bStron      test -d "$as_dir" && break
661420006a0bStron    done
661520006a0bStron    test -z "$as_dirs" || eval "mkdir $as_dirs"
661620006a0bStron  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
661720006a0bStron
661820006a0bStron
661920006a0bStron} # as_fn_mkdir_p
662020006a0bStronif mkdir -p . 2>/dev/null; then
662120006a0bStron  as_mkdir_p='mkdir -p "$as_dir"'
662220006a0bStronelse
662320006a0bStron  test -d ./-p && rmdir ./-p
662420006a0bStron  as_mkdir_p=false
662520006a0bStronfi
662620006a0bStron
6627*e4a6e799Ssimonb
6628*e4a6e799Ssimonb# as_fn_executable_p FILE
6629*e4a6e799Ssimonb# -----------------------
6630*e4a6e799Ssimonb# Test if FILE is an executable regular file.
6631*e4a6e799Ssimonbas_fn_executable_p ()
6632*e4a6e799Ssimonb{
6633*e4a6e799Ssimonb  test -f "$1" && test -x "$1"
6634*e4a6e799Ssimonb} # as_fn_executable_p
663520006a0bStronas_test_x='test -x'
6636*e4a6e799Ssimonbas_executable_p=as_fn_executable_p
663720006a0bStron
663820006a0bStron# Sed expression to map a string onto a valid CPP name.
663920006a0bStronas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
664020006a0bStron
664120006a0bStron# Sed expression to map a string onto a valid variable name.
664220006a0bStronas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
664320006a0bStron
664420006a0bStron
664520006a0bStronexec 6>&1
664620006a0bStron## ----------------------------------- ##
664720006a0bStron## Main body of $CONFIG_STATUS script. ##
664820006a0bStron## ----------------------------------- ##
664920006a0bStron_ASEOF
665020006a0bStrontest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
665120006a0bStron
665220006a0bStroncat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
665320006a0bStron# Save the log message, to keep $0 and so on meaningful, and to
665420006a0bStron# report actual input values of CONFIG_FILES etc. instead of their
665520006a0bStron# values after options handling.
665620006a0bStronac_log="
665720006a0bStronThis file was extended by less $as_me 1, which was
6658*e4a6e799Ssimonbgenerated by GNU Autoconf 2.71.  Invocation command line was
665920006a0bStron
666020006a0bStron  CONFIG_FILES    = $CONFIG_FILES
666120006a0bStron  CONFIG_HEADERS  = $CONFIG_HEADERS
666220006a0bStron  CONFIG_LINKS    = $CONFIG_LINKS
666320006a0bStron  CONFIG_COMMANDS = $CONFIG_COMMANDS
666420006a0bStron  $ $0 $@
666520006a0bStron
666620006a0bStronon `(hostname || uname -n) 2>/dev/null | sed 1q`
666720006a0bStron"
666820006a0bStron
666920006a0bStron_ACEOF
667020006a0bStron
667120006a0bStroncase $ac_config_files in *"
667220006a0bStron"*) set x $ac_config_files; shift; ac_config_files=$*;;
667320006a0bStronesac
667420006a0bStron
667520006a0bStroncase $ac_config_headers in *"
667620006a0bStron"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
667720006a0bStronesac
667820006a0bStron
667920006a0bStron
668020006a0bStroncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
668120006a0bStron# Files that config.status was made for.
668220006a0bStronconfig_files="$ac_config_files"
668320006a0bStronconfig_headers="$ac_config_headers"
668420006a0bStron
668520006a0bStron_ACEOF
668620006a0bStron
668720006a0bStroncat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
668820006a0bStronac_cs_usage="\
668920006a0bStron\`$as_me' instantiates files and other configuration actions
669020006a0bStronfrom templates according to the current configuration.  Unless the files
669120006a0bStronand actions are specified as TAGs, all are instantiated by default.
669220006a0bStron
669320006a0bStronUsage: $0 [OPTION]... [TAG]...
669420006a0bStron
669520006a0bStron  -h, --help       print this help, then exit
669620006a0bStron  -V, --version    print version number and configuration settings, then exit
669720006a0bStron      --config     print configuration, then exit
669820006a0bStron  -q, --quiet, --silent
669920006a0bStron                   do not print progress messages
670020006a0bStron  -d, --debug      don't remove temporary files
670120006a0bStron      --recheck    update $as_me by reconfiguring in the same conditions
670220006a0bStron      --file=FILE[:TEMPLATE]
670320006a0bStron                   instantiate the configuration file FILE
670420006a0bStron      --header=FILE[:TEMPLATE]
670520006a0bStron                   instantiate the configuration header FILE
670620006a0bStron
670720006a0bStronConfiguration files:
670820006a0bStron$config_files
670920006a0bStron
671020006a0bStronConfiguration headers:
671120006a0bStron$config_headers
671220006a0bStron
671320006a0bStronReport bugs to the package provider."
671420006a0bStron
671520006a0bStron_ACEOF
6716*e4a6e799Ssimonbac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6717*e4a6e799Ssimonbac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
671820006a0bStroncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6719*e4a6e799Ssimonbac_cs_config='$ac_cs_config_escaped'
672020006a0bStronac_cs_version="\\
672120006a0bStronless config.status 1
6722*e4a6e799Ssimonbconfigured by $0, generated by GNU Autoconf 2.71,
672320006a0bStron  with options \\"\$ac_cs_config\\"
672420006a0bStron
6725*e4a6e799SsimonbCopyright (C) 2021 Free Software Foundation, Inc.
672620006a0bStronThis config.status script is free software; the Free Software Foundation
672720006a0bStrongives unlimited permission to copy, distribute and modify it."
672820006a0bStron
672920006a0bStronac_pwd='$ac_pwd'
673020006a0bStronsrcdir='$srcdir'
673120006a0bStronINSTALL='$INSTALL'
673220006a0bStrontest -n "\$AWK" || AWK=awk
673320006a0bStron_ACEOF
673420006a0bStron
673520006a0bStroncat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
673620006a0bStron# The default lists apply if the user does not specify any file.
673720006a0bStronac_need_defaults=:
673820006a0bStronwhile test $# != 0
673920006a0bStrondo
674020006a0bStron  case $1 in
674120006a0bStron  --*=?*)
674220006a0bStron    ac_option=`expr "X$1" : 'X\([^=]*\)='`
674320006a0bStron    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
674420006a0bStron    ac_shift=:
674520006a0bStron    ;;
674620006a0bStron  --*=)
674720006a0bStron    ac_option=`expr "X$1" : 'X\([^=]*\)='`
674820006a0bStron    ac_optarg=
674920006a0bStron    ac_shift=:
675020006a0bStron    ;;
675120006a0bStron  *)
675220006a0bStron    ac_option=$1
675320006a0bStron    ac_optarg=$2
675420006a0bStron    ac_shift=shift
675520006a0bStron    ;;
675620006a0bStron  esac
675720006a0bStron
675820006a0bStron  case $ac_option in
675920006a0bStron  # Handling of the options.
676020006a0bStron  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
676120006a0bStron    ac_cs_recheck=: ;;
676220006a0bStron  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6763*e4a6e799Ssimonb    printf "%s\n" "$ac_cs_version"; exit ;;
676420006a0bStron  --config | --confi | --conf | --con | --co | --c )
6765*e4a6e799Ssimonb    printf "%s\n" "$ac_cs_config"; exit ;;
676620006a0bStron  --debug | --debu | --deb | --de | --d | -d )
676720006a0bStron    debug=: ;;
676820006a0bStron  --file | --fil | --fi | --f )
676920006a0bStron    $ac_shift
677020006a0bStron    case $ac_optarg in
6771*e4a6e799Ssimonb    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
677220006a0bStron    '') as_fn_error $? "missing file argument" ;;
677320006a0bStron    esac
677420006a0bStron    as_fn_append CONFIG_FILES " '$ac_optarg'"
677520006a0bStron    ac_need_defaults=false;;
677620006a0bStron  --header | --heade | --head | --hea )
677720006a0bStron    $ac_shift
677820006a0bStron    case $ac_optarg in
6779*e4a6e799Ssimonb    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
678020006a0bStron    esac
678120006a0bStron    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
678220006a0bStron    ac_need_defaults=false;;
678320006a0bStron  --he | --h)
678420006a0bStron    # Conflict between --help and --header
678520006a0bStron    as_fn_error $? "ambiguous option: \`$1'
678620006a0bStronTry \`$0 --help' for more information.";;
678720006a0bStron  --help | --hel | -h )
6788*e4a6e799Ssimonb    printf "%s\n" "$ac_cs_usage"; exit ;;
678920006a0bStron  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
679020006a0bStron  | -silent | --silent | --silen | --sile | --sil | --si | --s)
679120006a0bStron    ac_cs_silent=: ;;
679220006a0bStron
679320006a0bStron  # This is an error.
679420006a0bStron  -*) as_fn_error $? "unrecognized option: \`$1'
679520006a0bStronTry \`$0 --help' for more information." ;;
679620006a0bStron
679720006a0bStron  *) as_fn_append ac_config_targets " $1"
679820006a0bStron     ac_need_defaults=false ;;
679920006a0bStron
680020006a0bStron  esac
680120006a0bStron  shift
680220006a0bStrondone
680320006a0bStron
680420006a0bStronac_configure_extra_args=
680520006a0bStron
680620006a0bStronif $ac_cs_silent; then
680720006a0bStron  exec 6>/dev/null
680820006a0bStron  ac_configure_extra_args="$ac_configure_extra_args --silent"
680920006a0bStronfi
681020006a0bStron
681120006a0bStron_ACEOF
681220006a0bStroncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
681320006a0bStronif \$ac_cs_recheck; then
6814*e4a6e799Ssimonb  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
681520006a0bStron  shift
6816*e4a6e799Ssimonb  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
681720006a0bStron  CONFIG_SHELL='$SHELL'
681820006a0bStron  export CONFIG_SHELL
681920006a0bStron  exec "\$@"
682020006a0bStronfi
682120006a0bStron
682220006a0bStron_ACEOF
682320006a0bStroncat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
682420006a0bStronexec 5>>config.log
682520006a0bStron{
682620006a0bStron  echo
682720006a0bStron  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
682820006a0bStron## Running $as_me. ##
682920006a0bStron_ASBOX
6830*e4a6e799Ssimonb  printf "%s\n" "$ac_log"
683120006a0bStron} >&5
683220006a0bStron
683320006a0bStron_ACEOF
683420006a0bStroncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
683520006a0bStron_ACEOF
683620006a0bStron
683720006a0bStroncat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
683820006a0bStron
683920006a0bStron# Handling of arguments.
684020006a0bStronfor ac_config_target in $ac_config_targets
684120006a0bStrondo
684220006a0bStron  case $ac_config_target in
684320006a0bStron    "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
684420006a0bStron    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
684520006a0bStron
684620006a0bStron  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
684720006a0bStron  esac
684820006a0bStrondone
684920006a0bStron
685020006a0bStron
685120006a0bStron# If the user did not use the arguments to specify the items to instantiate,
685220006a0bStron# then the envvar interface is used.  Set only those that are not.
685320006a0bStron# We use the long form for the default assignment because of an extremely
685420006a0bStron# bizarre bug on SunOS 4.1.3.
685520006a0bStronif $ac_need_defaults; then
6856*e4a6e799Ssimonb  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6857*e4a6e799Ssimonb  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
685820006a0bStronfi
685920006a0bStron
686020006a0bStron# Have a temporary directory for convenience.  Make it in the build tree
686120006a0bStron# simply because there is no reason against having it here, and in addition,
686220006a0bStron# creating and moving files from /tmp can sometimes cause problems.
686320006a0bStron# Hook for its removal unless debugging.
686420006a0bStron# Note that there is a small window in which the directory will not be cleaned:
686520006a0bStron# after its creation but before its name has been assigned to `$tmp'.
686620006a0bStron$debug ||
686720006a0bStron{
6868749ad2faStron  tmp= ac_tmp=
686920006a0bStron  trap 'exit_status=$?
6870749ad2faStron  : "${ac_tmp:=$tmp}"
6871749ad2faStron  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
687220006a0bStron' 0
687320006a0bStron  trap 'as_fn_exit 1' 1 2 13 15
687420006a0bStron}
687520006a0bStron# Create a (secure) tmp directory for tmp files.
687620006a0bStron
687720006a0bStron{
687820006a0bStron  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6879749ad2faStron  test -d "$tmp"
688020006a0bStron}  ||
688120006a0bStron{
688220006a0bStron  tmp=./conf$$-$RANDOM
688320006a0bStron  (umask 077 && mkdir "$tmp")
688420006a0bStron} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6885749ad2faStronac_tmp=$tmp
688620006a0bStron
688720006a0bStron# Set up the scripts for CONFIG_FILES section.
688820006a0bStron# No need to generate them if there are no CONFIG_FILES.
688920006a0bStron# This happens for instance with `./config.status config.h'.
689020006a0bStronif test -n "$CONFIG_FILES"; then
689120006a0bStron
689220006a0bStron
689320006a0bStronac_cr=`echo X | tr X '\015'`
689420006a0bStron# On cygwin, bash can eat \r inside `` if the user requested igncr.
689520006a0bStron# But we know of no other shell where ac_cr would be empty at this
689620006a0bStron# point, so we can use a bashism as a fallback.
689720006a0bStronif test "x$ac_cr" = x; then
689820006a0bStron  eval ac_cr=\$\'\\r\'
689920006a0bStronfi
690020006a0bStronac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
690120006a0bStronif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
690220006a0bStron  ac_cs_awk_cr='\\r'
690320006a0bStronelse
690420006a0bStron  ac_cs_awk_cr=$ac_cr
690520006a0bStronfi
690620006a0bStron
6907749ad2faStronecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
690820006a0bStron_ACEOF
690920006a0bStron
691020006a0bStron
691120006a0bStron{
691220006a0bStron  echo "cat >conf$$subs.awk <<_ACEOF" &&
691320006a0bStron  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
691420006a0bStron  echo "_ACEOF"
691520006a0bStron} >conf$$subs.sh ||
691620006a0bStron  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
691720006a0bStronac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
691820006a0bStronac_delim='%!_!# '
691920006a0bStronfor ac_last_try in false false false false false :; do
692020006a0bStron  . ./conf$$subs.sh ||
692120006a0bStron    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
692220006a0bStron
692320006a0bStron  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
692420006a0bStron  if test $ac_delim_n = $ac_delim_num; then
692520006a0bStron    break
692620006a0bStron  elif $ac_last_try; then
692720006a0bStron    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
692820006a0bStron  else
692920006a0bStron    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
693020006a0bStron  fi
693120006a0bStrondone
693220006a0bStronrm -f conf$$subs.sh
693320006a0bStron
693420006a0bStroncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6935749ad2faStroncat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
693620006a0bStron_ACEOF
693720006a0bStronsed -n '
693820006a0bStronh
693920006a0bStrons/^/S["/; s/!.*/"]=/
694020006a0bStronp
694120006a0bStrong
694220006a0bStrons/^[^!]*!//
694320006a0bStron:repl
694420006a0bStront repl
694520006a0bStrons/'"$ac_delim"'$//
694620006a0bStront delim
694720006a0bStron:nl
694820006a0bStronh
694920006a0bStrons/\(.\{148\}\)..*/\1/
695020006a0bStront more1
695120006a0bStrons/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
695220006a0bStronp
695320006a0bStronn
695420006a0bStronb repl
695520006a0bStron:more1
695620006a0bStrons/["\\]/\\&/g; s/^/"/; s/$/"\\/
695720006a0bStronp
695820006a0bStrong
695920006a0bStrons/.\{148\}//
696020006a0bStront nl
696120006a0bStron:delim
696220006a0bStronh
696320006a0bStrons/\(.\{148\}\)..*/\1/
696420006a0bStront more2
696520006a0bStrons/["\\]/\\&/g; s/^/"/; s/$/"/
696620006a0bStronp
696720006a0bStronb
696820006a0bStron:more2
696920006a0bStrons/["\\]/\\&/g; s/^/"/; s/$/"\\/
697020006a0bStronp
697120006a0bStrong
697220006a0bStrons/.\{148\}//
697320006a0bStront delim
697420006a0bStron' <conf$$subs.awk | sed '
697520006a0bStron/^[^""]/{
697620006a0bStron  N
697720006a0bStron  s/\n//
697820006a0bStron}
697920006a0bStron' >>$CONFIG_STATUS || ac_write_fail=1
698020006a0bStronrm -f conf$$subs.awk
698120006a0bStroncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
698220006a0bStron_ACAWK
6983749ad2faStroncat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
698420006a0bStron  for (key in S) S_is_set[key] = 1
698520006a0bStron  FS = ""
698620006a0bStron
698720006a0bStron}
698820006a0bStron{
698920006a0bStron  line = $ 0
699020006a0bStron  nfields = split(line, field, "@")
699120006a0bStron  substed = 0
699220006a0bStron  len = length(field[1])
699320006a0bStron  for (i = 2; i < nfields; i++) {
699420006a0bStron    key = field[i]
699520006a0bStron    keylen = length(key)
699620006a0bStron    if (S_is_set[key]) {
699720006a0bStron      value = S[key]
699820006a0bStron      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
699920006a0bStron      len += length(value) + length(field[++i])
700020006a0bStron      substed = 1
700120006a0bStron    } else
700220006a0bStron      len += 1 + keylen
700320006a0bStron  }
700420006a0bStron
700520006a0bStron  print line
700620006a0bStron}
700720006a0bStron
700820006a0bStron_ACAWK
700920006a0bStron_ACEOF
701020006a0bStroncat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
701120006a0bStronif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
701220006a0bStron  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
701320006a0bStronelse
701420006a0bStron  cat
7015749ad2faStronfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
701620006a0bStron  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
701720006a0bStron_ACEOF
701820006a0bStron
701920006a0bStron# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
702020006a0bStron# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
702120006a0bStron# trailing colons and then remove the whole line if VPATH becomes empty
702220006a0bStron# (actually we leave an empty line to preserve line numbers).
702320006a0bStronif test "x$srcdir" = x.; then
702420006a0bStron  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
702520006a0bStronh
702620006a0bStrons///
702720006a0bStrons/^/:/
702820006a0bStrons/[	 ]*$/:/
702920006a0bStrons/:\$(srcdir):/:/g
703020006a0bStrons/:\${srcdir}:/:/g
703120006a0bStrons/:@srcdir@:/:/g
703220006a0bStrons/^:*//
703320006a0bStrons/:*$//
703420006a0bStronx
703520006a0bStrons/\(=[	 ]*\).*/\1/
703620006a0bStronG
703720006a0bStrons/\n//
703820006a0bStrons/^[^=]*=[	 ]*$//
703920006a0bStron}'
704020006a0bStronfi
704120006a0bStron
704220006a0bStroncat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
704320006a0bStronfi # test -n "$CONFIG_FILES"
704420006a0bStron
704520006a0bStron# Set up the scripts for CONFIG_HEADERS section.
704620006a0bStron# No need to generate them if there are no CONFIG_HEADERS.
704720006a0bStron# This happens for instance with `./config.status Makefile'.
704820006a0bStronif test -n "$CONFIG_HEADERS"; then
7049749ad2faStroncat >"$ac_tmp/defines.awk" <<\_ACAWK ||
705020006a0bStronBEGIN {
705120006a0bStron_ACEOF
705220006a0bStron
705320006a0bStron# Transform confdefs.h into an awk script `defines.awk', embedded as
705420006a0bStron# here-document in config.status, that substitutes the proper values into
705520006a0bStron# config.h.in to produce config.h.
705620006a0bStron
705720006a0bStron# Create a delimiter string that does not exist in confdefs.h, to ease
705820006a0bStron# handling of long lines.
705920006a0bStronac_delim='%!_!# '
706020006a0bStronfor ac_last_try in false false :; do
7061749ad2faStron  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7062749ad2faStron  if test -z "$ac_tt"; then
706320006a0bStron    break
706420006a0bStron  elif $ac_last_try; then
706520006a0bStron    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
706620006a0bStron  else
706720006a0bStron    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
706820006a0bStron  fi
706920006a0bStrondone
707020006a0bStron
707120006a0bStron# For the awk script, D is an array of macro values keyed by name,
707220006a0bStron# likewise P contains macro parameters if any.  Preserve backslash
707320006a0bStron# newline sequences.
707420006a0bStron
707520006a0bStronac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
707620006a0bStronsed -n '
707720006a0bStrons/.\{148\}/&'"$ac_delim"'/g
707820006a0bStront rset
707920006a0bStron:rset
708020006a0bStrons/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
708120006a0bStront def
708220006a0bStrond
708320006a0bStron:def
708420006a0bStrons/\\$//
708520006a0bStront bsnl
708620006a0bStrons/["\\]/\\&/g
708720006a0bStrons/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
708820006a0bStronD["\1"]=" \3"/p
708920006a0bStrons/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
709020006a0bStrond
709120006a0bStron:bsnl
709220006a0bStrons/["\\]/\\&/g
709320006a0bStrons/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
709420006a0bStronD["\1"]=" \3\\\\\\n"\\/p
709520006a0bStront cont
709620006a0bStrons/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
709720006a0bStront cont
709820006a0bStrond
709920006a0bStron:cont
710020006a0bStronn
710120006a0bStrons/.\{148\}/&'"$ac_delim"'/g
710220006a0bStront clear
710320006a0bStron:clear
710420006a0bStrons/\\$//
710520006a0bStront bsnlc
710620006a0bStrons/["\\]/\\&/g; s/^/"/; s/$/"/p
710720006a0bStrond
710820006a0bStron:bsnlc
710920006a0bStrons/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
711020006a0bStronb cont
711120006a0bStron' <confdefs.h | sed '
711220006a0bStrons/'"$ac_delim"'/"\\\
711320006a0bStron"/g' >>$CONFIG_STATUS || ac_write_fail=1
711420006a0bStron
711520006a0bStroncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
711620006a0bStron  for (key in D) D_is_set[key] = 1
711720006a0bStron  FS = ""
711820006a0bStron}
711920006a0bStron/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
712020006a0bStron  line = \$ 0
712120006a0bStron  split(line, arg, " ")
712220006a0bStron  if (arg[1] == "#") {
712320006a0bStron    defundef = arg[2]
712420006a0bStron    mac1 = arg[3]
712520006a0bStron  } else {
712620006a0bStron    defundef = substr(arg[1], 2)
712720006a0bStron    mac1 = arg[2]
712820006a0bStron  }
712920006a0bStron  split(mac1, mac2, "(") #)
713020006a0bStron  macro = mac2[1]
713120006a0bStron  prefix = substr(line, 1, index(line, defundef) - 1)
713220006a0bStron  if (D_is_set[macro]) {
713320006a0bStron    # Preserve the white space surrounding the "#".
713420006a0bStron    print prefix "define", macro P[macro] D[macro]
713520006a0bStron    next
713620006a0bStron  } else {
713720006a0bStron    # Replace #undef with comments.  This is necessary, for example,
713820006a0bStron    # in the case of _POSIX_SOURCE, which is predefined and required
713920006a0bStron    # on some systems where configure will not decide to define it.
714020006a0bStron    if (defundef == "undef") {
714120006a0bStron      print "/*", prefix defundef, macro, "*/"
714220006a0bStron      next
714320006a0bStron    }
714420006a0bStron  }
714520006a0bStron}
714620006a0bStron{ print }
714720006a0bStron_ACAWK
714820006a0bStron_ACEOF
714920006a0bStroncat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
715020006a0bStron  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
715120006a0bStronfi # test -n "$CONFIG_HEADERS"
715220006a0bStron
715320006a0bStron
715420006a0bStroneval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
715520006a0bStronshift
715620006a0bStronfor ac_tag
715720006a0bStrondo
715820006a0bStron  case $ac_tag in
715920006a0bStron  :[FHLC]) ac_mode=$ac_tag; continue;;
716020006a0bStron  esac
716120006a0bStron  case $ac_mode$ac_tag in
716220006a0bStron  :[FHL]*:*);;
716320006a0bStron  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
716420006a0bStron  :[FH]-) ac_tag=-:-;;
716520006a0bStron  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
716620006a0bStron  esac
716720006a0bStron  ac_save_IFS=$IFS
716820006a0bStron  IFS=:
716920006a0bStron  set x $ac_tag
717020006a0bStron  IFS=$ac_save_IFS
717120006a0bStron  shift
717220006a0bStron  ac_file=$1
717320006a0bStron  shift
717420006a0bStron
717520006a0bStron  case $ac_mode in
717620006a0bStron  :L) ac_source=$1;;
717720006a0bStron  :[FH])
717820006a0bStron    ac_file_inputs=
717920006a0bStron    for ac_f
718020006a0bStron    do
718120006a0bStron      case $ac_f in
7182749ad2faStron      -) ac_f="$ac_tmp/stdin";;
718320006a0bStron      *) # Look for the file first in the build tree, then in the source tree
718420006a0bStron	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
718520006a0bStron	 # because $ac_f cannot contain `:'.
718620006a0bStron	 test -f "$ac_f" ||
718720006a0bStron	   case $ac_f in
718820006a0bStron	   [\\/$]*) false;;
718920006a0bStron	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
719020006a0bStron	   esac ||
719120006a0bStron	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
719220006a0bStron      esac
7193*e4a6e799Ssimonb      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
719420006a0bStron      as_fn_append ac_file_inputs " '$ac_f'"
719520006a0bStron    done
719620006a0bStron
719720006a0bStron    # Let's still pretend it is `configure' which instantiates (i.e., don't
719820006a0bStron    # use $as_me), people would be surprised to read:
719920006a0bStron    #    /* config.h.  Generated by config.status.  */
720020006a0bStron    configure_input='Generated from '`
7201*e4a6e799Ssimonb	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
720220006a0bStron	`' by configure.'
720320006a0bStron    if test x"$ac_file" != x-; then
720420006a0bStron      configure_input="$ac_file.  $configure_input"
7205*e4a6e799Ssimonb      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7206*e4a6e799Ssimonbprintf "%s\n" "$as_me: creating $ac_file" >&6;}
720720006a0bStron    fi
720820006a0bStron    # Neutralize special characters interpreted by sed in replacement strings.
720920006a0bStron    case $configure_input in #(
721020006a0bStron    *\&* | *\|* | *\\* )
7211*e4a6e799Ssimonb       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
721220006a0bStron       sed 's/[\\\\&|]/\\\\&/g'`;; #(
721320006a0bStron    *) ac_sed_conf_input=$configure_input;;
721420006a0bStron    esac
721520006a0bStron
721620006a0bStron    case $ac_tag in
7217749ad2faStron    *:-:* | *:-) cat >"$ac_tmp/stdin" \
721820006a0bStron      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
721920006a0bStron    esac
722020006a0bStron    ;;
722120006a0bStron  esac
722220006a0bStron
722320006a0bStron  ac_dir=`$as_dirname -- "$ac_file" ||
722420006a0bStron$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
722520006a0bStron	 X"$ac_file" : 'X\(//\)[^/]' \| \
722620006a0bStron	 X"$ac_file" : 'X\(//\)$' \| \
722720006a0bStron	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7228*e4a6e799Ssimonbprintf "%s\n" X"$ac_file" |
722920006a0bStron    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
723020006a0bStron	    s//\1/
723120006a0bStron	    q
723220006a0bStron	  }
723320006a0bStron	  /^X\(\/\/\)[^/].*/{
723420006a0bStron	    s//\1/
723520006a0bStron	    q
723620006a0bStron	  }
723720006a0bStron	  /^X\(\/\/\)$/{
723820006a0bStron	    s//\1/
723920006a0bStron	    q
724020006a0bStron	  }
724120006a0bStron	  /^X\(\/\).*/{
724220006a0bStron	    s//\1/
724320006a0bStron	    q
724420006a0bStron	  }
724520006a0bStron	  s/.*/./; q'`
724620006a0bStron  as_dir="$ac_dir"; as_fn_mkdir_p
724720006a0bStron  ac_builddir=.
724820006a0bStron
724920006a0bStroncase "$ac_dir" in
725020006a0bStron.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
725120006a0bStron*)
7252*e4a6e799Ssimonb  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
725320006a0bStron  # A ".." for each directory in $ac_dir_suffix.
7254*e4a6e799Ssimonb  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
725520006a0bStron  case $ac_top_builddir_sub in
725620006a0bStron  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
725720006a0bStron  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
725820006a0bStron  esac ;;
725920006a0bStronesac
726020006a0bStronac_abs_top_builddir=$ac_pwd
726120006a0bStronac_abs_builddir=$ac_pwd$ac_dir_suffix
726220006a0bStron# for backward compatibility:
726320006a0bStronac_top_builddir=$ac_top_build_prefix
726420006a0bStron
726520006a0bStroncase $srcdir in
726620006a0bStron  .)  # We are building in place.
726720006a0bStron    ac_srcdir=.
726820006a0bStron    ac_top_srcdir=$ac_top_builddir_sub
726920006a0bStron    ac_abs_top_srcdir=$ac_pwd ;;
727020006a0bStron  [\\/]* | ?:[\\/]* )  # Absolute name.
727120006a0bStron    ac_srcdir=$srcdir$ac_dir_suffix;
727220006a0bStron    ac_top_srcdir=$srcdir
727320006a0bStron    ac_abs_top_srcdir=$srcdir ;;
727420006a0bStron  *) # Relative name.
727520006a0bStron    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
727620006a0bStron    ac_top_srcdir=$ac_top_build_prefix$srcdir
727720006a0bStron    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
727820006a0bStronesac
727920006a0bStronac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
728020006a0bStron
728120006a0bStron
728220006a0bStron  case $ac_mode in
728320006a0bStron  :F)
728420006a0bStron  #
728520006a0bStron  # CONFIG_FILE
728620006a0bStron  #
728720006a0bStron
728820006a0bStron  case $INSTALL in
728920006a0bStron  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
729020006a0bStron  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
729120006a0bStron  esac
729220006a0bStron_ACEOF
729320006a0bStron
729420006a0bStroncat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
729520006a0bStron# If the template does not know about datarootdir, expand it.
729620006a0bStron# FIXME: This hack should be removed a few years after 2.60.
729720006a0bStronac_datarootdir_hack=; ac_datarootdir_seen=
729820006a0bStronac_sed_dataroot='
729920006a0bStron/datarootdir/ {
730020006a0bStron  p
730120006a0bStron  q
730220006a0bStron}
730320006a0bStron/@datadir@/p
730420006a0bStron/@docdir@/p
730520006a0bStron/@infodir@/p
730620006a0bStron/@localedir@/p
730720006a0bStron/@mandir@/p'
730820006a0bStroncase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
730920006a0bStron*datarootdir*) ac_datarootdir_seen=yes;;
731020006a0bStron*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7311*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7312*e4a6e799Ssimonbprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
731320006a0bStron_ACEOF
731420006a0bStroncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
731520006a0bStron  ac_datarootdir_hack='
731620006a0bStron  s&@datadir@&$datadir&g
731720006a0bStron  s&@docdir@&$docdir&g
731820006a0bStron  s&@infodir@&$infodir&g
731920006a0bStron  s&@localedir@&$localedir&g
732020006a0bStron  s&@mandir@&$mandir&g
732120006a0bStron  s&\\\${datarootdir}&$datarootdir&g' ;;
732220006a0bStronesac
732320006a0bStron_ACEOF
732420006a0bStron
732520006a0bStron# Neutralize VPATH when `$srcdir' = `.'.
732620006a0bStron# Shell code in configure.ac might set extrasub.
732720006a0bStron# FIXME: do we really want to maintain this feature?
732820006a0bStroncat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
732920006a0bStronac_sed_extra="$ac_vpsub
733020006a0bStron$extrasub
733120006a0bStron_ACEOF
733220006a0bStroncat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
733320006a0bStron:t
733420006a0bStron/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
733520006a0bStrons|@configure_input@|$ac_sed_conf_input|;t t
733620006a0bStrons&@top_builddir@&$ac_top_builddir_sub&;t t
733720006a0bStrons&@top_build_prefix@&$ac_top_build_prefix&;t t
733820006a0bStrons&@srcdir@&$ac_srcdir&;t t
733920006a0bStrons&@abs_srcdir@&$ac_abs_srcdir&;t t
734020006a0bStrons&@top_srcdir@&$ac_top_srcdir&;t t
734120006a0bStrons&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
734220006a0bStrons&@builddir@&$ac_builddir&;t t
734320006a0bStrons&@abs_builddir@&$ac_abs_builddir&;t t
734420006a0bStrons&@abs_top_builddir@&$ac_abs_top_builddir&;t t
734520006a0bStrons&@INSTALL@&$ac_INSTALL&;t t
734620006a0bStron$ac_datarootdir_hack
734720006a0bStron"
7348749ad2faStroneval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7349749ad2faStron  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
735020006a0bStron
735120006a0bStrontest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7352749ad2faStron  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7353749ad2faStron  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
7354749ad2faStron      "$ac_tmp/out"`; test -z "$ac_out"; } &&
7355*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
735620006a0bStronwhich seems to be undefined.  Please make sure it is defined" >&5
7357*e4a6e799Ssimonbprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
735820006a0bStronwhich seems to be undefined.  Please make sure it is defined" >&2;}
735920006a0bStron
7360749ad2faStron  rm -f "$ac_tmp/stdin"
736120006a0bStron  case $ac_file in
7362749ad2faStron  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7363749ad2faStron  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
736420006a0bStron  esac \
736520006a0bStron  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
736620006a0bStron ;;
736720006a0bStron  :H)
736820006a0bStron  #
736920006a0bStron  # CONFIG_HEADER
737020006a0bStron  #
737120006a0bStron  if test x"$ac_file" != x-; then
737220006a0bStron    {
7373*e4a6e799Ssimonb      printf "%s\n" "/* $configure_input  */" >&1 \
7374749ad2faStron      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7375749ad2faStron    } >"$ac_tmp/config.h" \
737620006a0bStron      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7377749ad2faStron    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7378*e4a6e799Ssimonb      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7379*e4a6e799Ssimonbprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
738020006a0bStron    else
738120006a0bStron      rm -f "$ac_file"
7382749ad2faStron      mv "$ac_tmp/config.h" "$ac_file" \
738320006a0bStron	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
738420006a0bStron    fi
738520006a0bStron  else
7386*e4a6e799Ssimonb    printf "%s\n" "/* $configure_input  */" >&1 \
7387749ad2faStron      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
738820006a0bStron      || as_fn_error $? "could not create -" "$LINENO" 5
738920006a0bStron  fi
739020006a0bStron ;;
739120006a0bStron
739220006a0bStron
739320006a0bStron  esac
739420006a0bStron
739520006a0bStrondone # for ac_tag
739620006a0bStron
739720006a0bStron
739820006a0bStronas_fn_exit 0
739920006a0bStron_ACEOF
740020006a0bStronac_clean_files=$ac_clean_files_save
740120006a0bStron
740220006a0bStrontest $ac_write_fail = 0 ||
740320006a0bStron  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
740420006a0bStron
740520006a0bStron
740620006a0bStron# configure is writing to config.log, and then calls config.status.
740720006a0bStron# config.status does its own redirection, appending to config.log.
740820006a0bStron# Unfortunately, on DOS this fails, as config.log is still kept open
740920006a0bStron# by configure, so config.status won't be able to write to it; its
741020006a0bStron# output is simply discarded.  So we exec the FD to /dev/null,
741120006a0bStron# effectively closing config.log, so it can be properly (re)opened and
741220006a0bStron# appended to by config.status.  When coming back to configure, we
741320006a0bStron# need to make the FD available again.
741420006a0bStronif test "$no_create" != yes; then
741520006a0bStron  ac_cs_success=:
741620006a0bStron  ac_config_status_args=
741720006a0bStron  test "$silent" = yes &&
741820006a0bStron    ac_config_status_args="$ac_config_status_args --quiet"
741920006a0bStron  exec 5>/dev/null
742020006a0bStron  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
742120006a0bStron  exec 5>>config.log
742220006a0bStron  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
742320006a0bStron  # would make configure fail if this is the last instruction.
742420006a0bStron  $ac_cs_success || as_fn_exit 1
742520006a0bStronfi
742620006a0bStronif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7427*e4a6e799Ssimonb  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7428*e4a6e799Ssimonbprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
742920006a0bStronfi
743020006a0bStron
7431*e4a6e799Ssimonb
7432