160786Sps#! /bin/sh
260786Sps# Guess values for system-dependent variables and create Makefiles.
3240121Sdelphij# Generated by GNU Autoconf 2.68 for less 1.
460786Sps#
5221715Sdelphij#
6170256Sdelphij# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7221715Sdelphij# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8221715Sdelphij# Foundation, Inc.
9221715Sdelphij#
10221715Sdelphij#
1160786Sps# This configure script is free software; the Free Software Foundation
1260786Sps# gives unlimited permission to copy, distribute and modify it.
13221715Sdelphij## -------------------- ##
14221715Sdelphij## M4sh Initialization. ##
15221715Sdelphij## -------------------- ##
1660786Sps
17170256Sdelphij# Be more Bourne compatible
18170256SdelphijDUALCASE=1; export DUALCASE # for MKS sh
19221715Sdelphijif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20128345Stjr  emulate sh
21128345Stjr  NULLCMD=:
22191930Sdelphij  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23128345Stjr  # is contrary to our usage.  Disable this feature.
24128345Stjr  alias -g '${1+"$@"}'='"$@"'
25170256Sdelphij  setopt NO_GLOB_SUBST
26170256Sdelphijelse
27221715Sdelphij  case `(set -o) 2>/dev/null` in #(
28221715Sdelphij  *posix*) :
29221715Sdelphij    set -o posix ;; #(
30221715Sdelphij  *) :
31221715Sdelphij     ;;
32170256Sdelphijesac
33128345Stjrfi
34128345Stjr
35170256Sdelphij
36191930Sdelphijas_nl='
37191930Sdelphij'
38191930Sdelphijexport as_nl
39191930Sdelphij# Printing a long string crashes Solaris 7 /usr/bin/printf.
40191930Sdelphijas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41191930Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42191930Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43221715Sdelphij# Prefer a ksh shell builtin over an external printf program on Solaris,
44221715Sdelphij# but without wasting forks for bash or zsh.
45221715Sdelphijif test -z "$BASH_VERSION$ZSH_VERSION" \
46221715Sdelphij    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47221715Sdelphij  as_echo='print -r --'
48221715Sdelphij  as_echo_n='print -rn --'
49221715Sdelphijelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50191930Sdelphij  as_echo='printf %s\n'
51191930Sdelphij  as_echo_n='printf %s'
52191930Sdelphijelse
53191930Sdelphij  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54191930Sdelphij    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55191930Sdelphij    as_echo_n='/usr/ucb/echo -n'
56170256Sdelphij  else
57191930Sdelphij    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58191930Sdelphij    as_echo_n_body='eval
59191930Sdelphij      arg=$1;
60221715Sdelphij      case $arg in #(
61191930Sdelphij      *"$as_nl"*)
62191930Sdelphij	expr "X$arg" : "X\\(.*\\)$as_nl";
63191930Sdelphij	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64191930Sdelphij      esac;
65191930Sdelphij      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66191930Sdelphij    '
67191930Sdelphij    export as_echo_n_body
68191930Sdelphij    as_echo_n='sh -c $as_echo_n_body as_echo'
69170256Sdelphij  fi
70191930Sdelphij  export as_echo_body
71191930Sdelphij  as_echo='sh -c $as_echo_body as_echo'
72170256Sdelphijfi
73170256Sdelphij
74191930Sdelphij# The user is always right.
75191930Sdelphijif test "${PATH_SEPARATOR+set}" != set; then
76191930Sdelphij  PATH_SEPARATOR=:
77191930Sdelphij  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78191930Sdelphij    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79191930Sdelphij      PATH_SEPARATOR=';'
80191930Sdelphij  }
81191930Sdelphijfi
82191930Sdelphij
83128345Stjr
84170256Sdelphij# IFS
85170256Sdelphij# We need space, tab and new line, in precisely that order.  Quoting is
86170256Sdelphij# there to prevent editors from complaining about space-tab.
87170256Sdelphij# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88170256Sdelphij# splitting by setting IFS to empty value.)
89170256SdelphijIFS=" ""	$as_nl"
90170256Sdelphij
91170256Sdelphij# Find who we are.  Look in the path if we contain no directory separator.
92240121Sdelphijas_myself=
93221715Sdelphijcase $0 in #((
94170256Sdelphij  *[\\/]* ) as_myself=$0 ;;
95170256Sdelphij  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96170256Sdelphijfor as_dir in $PATH
97170256Sdelphijdo
98170256Sdelphij  IFS=$as_save_IFS
99170256Sdelphij  test -z "$as_dir" && as_dir=.
100221715Sdelphij    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101221715Sdelphij  done
102170256SdelphijIFS=$as_save_IFS
103170256Sdelphij
104170256Sdelphij     ;;
105170256Sdelphijesac
106170256Sdelphij# We did not find ourselves, most probably we were run as `sh COMMAND'
107170256Sdelphij# in which case we are not to be found in the path.
108170256Sdelphijif test "x$as_myself" = x; then
109170256Sdelphij  as_myself=$0
110170256Sdelphijfi
111170256Sdelphijif test ! -f "$as_myself"; then
112191930Sdelphij  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113221715Sdelphij  exit 1
114170256Sdelphijfi
115170256Sdelphij
116221715Sdelphij# Unset variables that we do not need and which cause bugs (e.g. in
117221715Sdelphij# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118221715Sdelphij# suppresses any "Segmentation fault" message there.  '((' could
119221715Sdelphij# trigger a bug in pdksh 5.2.14.
120221715Sdelphijfor as_var in BASH_ENV ENV MAIL MAILPATH
121221715Sdelphijdo eval test x\${$as_var+set} = xset \
122221715Sdelphij  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123170256Sdelphijdone
124128345StjrPS1='$ '
125128345StjrPS2='> '
126128345StjrPS4='+ '
127128345Stjr
128128345Stjr# NLS nuisances.
129191930SdelphijLC_ALL=C
130191930Sdelphijexport LC_ALL
131191930SdelphijLANGUAGE=C
132191930Sdelphijexport LANGUAGE
133128345Stjr
134170256Sdelphij# CDPATH.
135221715Sdelphij(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136128345Stjr
137170256Sdelphijif test "x$CONFIG_SHELL" = x; then
138221715Sdelphij  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139221715Sdelphij  emulate sh
140221715Sdelphij  NULLCMD=:
141221715Sdelphij  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142221715Sdelphij  # is contrary to our usage.  Disable this feature.
143221715Sdelphij  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144221715Sdelphij  setopt NO_GLOB_SUBST
145170256Sdelphijelse
146221715Sdelphij  case \`(set -o) 2>/dev/null\` in #(
147221715Sdelphij  *posix*) :
148221715Sdelphij    set -o posix ;; #(
149221715Sdelphij  *) :
150221715Sdelphij     ;;
151221715Sdelphijesac
152128345Stjrfi
153221715Sdelphij"
154221715Sdelphij  as_required="as_fn_return () { (exit \$1); }
155221715Sdelphijas_fn_success () { as_fn_return 0; }
156221715Sdelphijas_fn_failure () { as_fn_return 1; }
157221715Sdelphijas_fn_ret_success () { return 0; }
158221715Sdelphijas_fn_ret_failure () { return 1; }
159128345Stjr
160170256Sdelphijexitcode=0
161221715Sdelphijas_fn_success || { exitcode=1; echo as_fn_success failed.; }
162221715Sdelphijas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163221715Sdelphijas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164221715Sdelphijas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165221715Sdelphijif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166128345Stjr
167170256Sdelphijelse
168221715Sdelphij  exitcode=1; echo positional parameters were not saved.
169170256Sdelphijfi
170221715Sdelphijtest x\$exitcode = x0 || exit 1"
171221715Sdelphij  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172221715Sdelphij  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173221715Sdelphij  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174221715Sdelphij  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175221715Sdelphijtest \$(( 1 + 1 )) = 2 || exit 1"
176221715Sdelphij  if (eval "$as_required") 2>/dev/null; then :
177221715Sdelphij  as_have_required=yes
178170256Sdelphijelse
179221715Sdelphij  as_have_required=no
180170256Sdelphijfi
181221715Sdelphij  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182170256Sdelphij
183170256Sdelphijelse
184221715Sdelphij  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185221715Sdelphijas_found=false
186128345Stjrfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187128345Stjrdo
188128345Stjr  IFS=$as_save_IFS
189128345Stjr  test -z "$as_dir" && as_dir=.
190221715Sdelphij  as_found=:
191221715Sdelphij  case $as_dir in #(
192128345Stjr	 /*)
193170256Sdelphij	   for as_base in sh bash ksh sh5; do
194221715Sdelphij	     # Try only shells that exist, to save several forks.
195221715Sdelphij	     as_shell=$as_dir/$as_base
196221715Sdelphij	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197221715Sdelphij		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198221715Sdelphij  CONFIG_SHELL=$as_shell as_have_required=yes
199221715Sdelphij		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200221715Sdelphij  break 2
201221715Sdelphijfi
202221715Sdelphijfi
203170256Sdelphij	   done;;
204170256Sdelphij       esac
205221715Sdelphij  as_found=false
206170256Sdelphijdone
207221715Sdelphij$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208221715Sdelphij	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209221715Sdelphij  CONFIG_SHELL=$SHELL as_have_required=yes
210221715Sdelphijfi; }
211170256SdelphijIFS=$as_save_IFS
212170256Sdelphij
213170256Sdelphij
214221715Sdelphij      if test "x$CONFIG_SHELL" != x; then :
215221715Sdelphij  # We cannot yet assume a decent shell, so we have to provide a
216221715Sdelphij	# neutralization value for shells without unset; and this also
217221715Sdelphij	# works around shells that cannot unset nonexistent variables.
218240121Sdelphij	# Preserve -v and -x to the replacement shell.
219221715Sdelphij	BASH_ENV=/dev/null
220221715Sdelphij	ENV=/dev/null
221221715Sdelphij	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222221715Sdelphij	export CONFIG_SHELL
223240121Sdelphij	case $- in # ((((
224240121Sdelphij	  *v*x* | *x*v* ) as_opts=-vx ;;
225240121Sdelphij	  *v* ) as_opts=-v ;;
226240121Sdelphij	  *x* ) as_opts=-x ;;
227240121Sdelphij	  * ) as_opts= ;;
228240121Sdelphij	esac
229240121Sdelphij	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230170256Sdelphijfi
231170256Sdelphij
232221715Sdelphij    if test x$as_have_required = xno; then :
233221715Sdelphij  $as_echo "$0: This script requires a shell more modern than all"
234221715Sdelphij  $as_echo "$0: the shells that I found on your system."
235221715Sdelphij  if test x${ZSH_VERSION+set} = xset ; then
236221715Sdelphij    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237221715Sdelphij    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238221715Sdelphij  else
239221715Sdelphij    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240221715Sdelphij$0: including any error possibly output before this
241221715Sdelphij$0: message. Then install a modern shell, or manually run
242221715Sdelphij$0: the script under such a shell if you do have one."
243221715Sdelphij  fi
244221715Sdelphij  exit 1
245170256Sdelphijfi
246170256Sdelphijfi
247170256Sdelphijfi
248221715SdelphijSHELL=${CONFIG_SHELL-/bin/sh}
249221715Sdelphijexport SHELL
250221715Sdelphij# Unset more variables known to interfere with behavior of common tools.
251221715SdelphijCLICOLOR_FORCE= GREP_OPTIONS=
252221715Sdelphijunset CLICOLOR_FORCE GREP_OPTIONS
253170256Sdelphij
254221715Sdelphij## --------------------- ##
255221715Sdelphij## M4sh Shell Functions. ##
256221715Sdelphij## --------------------- ##
257221715Sdelphij# as_fn_unset VAR
258221715Sdelphij# ---------------
259221715Sdelphij# Portably unset VAR.
260221715Sdelphijas_fn_unset ()
261221715Sdelphij{
262221715Sdelphij  { eval $1=; unset $1;}
263221715Sdelphij}
264221715Sdelphijas_unset=as_fn_unset
265170256Sdelphij
266221715Sdelphij# as_fn_set_status STATUS
267221715Sdelphij# -----------------------
268221715Sdelphij# Set $? to STATUS, without forking.
269221715Sdelphijas_fn_set_status ()
270221715Sdelphij{
271221715Sdelphij  return $1
272221715Sdelphij} # as_fn_set_status
273170256Sdelphij
274221715Sdelphij# as_fn_exit STATUS
275221715Sdelphij# -----------------
276221715Sdelphij# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277221715Sdelphijas_fn_exit ()
278221715Sdelphij{
279221715Sdelphij  set +e
280221715Sdelphij  as_fn_set_status $1
281221715Sdelphij  exit $1
282221715Sdelphij} # as_fn_exit
283170256Sdelphij
284221715Sdelphij# as_fn_mkdir_p
285221715Sdelphij# -------------
286221715Sdelphij# Create "$as_dir" as a directory, including parents if necessary.
287221715Sdelphijas_fn_mkdir_p ()
288221715Sdelphij{
289170256Sdelphij
290221715Sdelphij  case $as_dir in #(
291221715Sdelphij  -*) as_dir=./$as_dir;;
292221715Sdelphij  esac
293221715Sdelphij  test -d "$as_dir" || eval $as_mkdir_p || {
294221715Sdelphij    as_dirs=
295221715Sdelphij    while :; do
296221715Sdelphij      case $as_dir in #(
297221715Sdelphij      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298221715Sdelphij      *) as_qdir=$as_dir;;
299221715Sdelphij      esac
300221715Sdelphij      as_dirs="'$as_qdir' $as_dirs"
301221715Sdelphij      as_dir=`$as_dirname -- "$as_dir" ||
302221715Sdelphij$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303221715Sdelphij	 X"$as_dir" : 'X\(//\)[^/]' \| \
304221715Sdelphij	 X"$as_dir" : 'X\(//\)$' \| \
305221715Sdelphij	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306221715Sdelphij$as_echo X"$as_dir" |
307221715Sdelphij    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308221715Sdelphij	    s//\1/
309221715Sdelphij	    q
310221715Sdelphij	  }
311221715Sdelphij	  /^X\(\/\/\)[^/].*/{
312221715Sdelphij	    s//\1/
313221715Sdelphij	    q
314221715Sdelphij	  }
315221715Sdelphij	  /^X\(\/\/\)$/{
316221715Sdelphij	    s//\1/
317221715Sdelphij	    q
318221715Sdelphij	  }
319221715Sdelphij	  /^X\(\/\).*/{
320221715Sdelphij	    s//\1/
321221715Sdelphij	    q
322221715Sdelphij	  }
323221715Sdelphij	  s/.*/./; q'`
324221715Sdelphij      test -d "$as_dir" && break
325221715Sdelphij    done
326221715Sdelphij    test -z "$as_dirs" || eval "mkdir $as_dirs"
327221715Sdelphij  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328128345Stjr
329170256Sdelphij
330221715Sdelphij} # as_fn_mkdir_p
331221715Sdelphij# as_fn_append VAR VALUE
332221715Sdelphij# ----------------------
333221715Sdelphij# Append the text in VALUE to the end of the definition contained in VAR. Take
334221715Sdelphij# advantage of any shell optimizations that allow amortized linear growth over
335221715Sdelphij# repeated appends, instead of the typical quadratic growth present in naive
336221715Sdelphij# implementations.
337221715Sdelphijif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338221715Sdelphij  eval 'as_fn_append ()
339221715Sdelphij  {
340221715Sdelphij    eval $1+=\$2
341221715Sdelphij  }'
342221715Sdelphijelse
343221715Sdelphij  as_fn_append ()
344221715Sdelphij  {
345221715Sdelphij    eval $1=\$$1\$2
346221715Sdelphij  }
347221715Sdelphijfi # as_fn_append
348170256Sdelphij
349221715Sdelphij# as_fn_arith ARG...
350221715Sdelphij# ------------------
351221715Sdelphij# Perform arithmetic evaluation on the ARGs, and store the result in the
352221715Sdelphij# global $as_val. Take advantage of shells that can avoid forks. The arguments
353221715Sdelphij# must be portable across $(()) and expr.
354221715Sdelphijif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355221715Sdelphij  eval 'as_fn_arith ()
356221715Sdelphij  {
357221715Sdelphij    as_val=$(( $* ))
358221715Sdelphij  }'
359221715Sdelphijelse
360221715Sdelphij  as_fn_arith ()
361221715Sdelphij  {
362221715Sdelphij    as_val=`expr "$@" || test $? -eq 1`
363221715Sdelphij  }
364221715Sdelphijfi # as_fn_arith
365170256Sdelphij
366170256Sdelphij
367221715Sdelphij# as_fn_error STATUS ERROR [LINENO LOG_FD]
368221715Sdelphij# ----------------------------------------
369221715Sdelphij# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370221715Sdelphij# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371221715Sdelphij# script with STATUS, using 1 if that was 0.
372221715Sdelphijas_fn_error ()
373221715Sdelphij{
374221715Sdelphij  as_status=$1; test $as_status -eq 0 && as_status=1
375221715Sdelphij  if test "$4"; then
376221715Sdelphij    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377221715Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378221715Sdelphij  fi
379221715Sdelphij  $as_echo "$as_me: error: $2" >&2
380221715Sdelphij  as_fn_exit $as_status
381221715Sdelphij} # as_fn_error
382170256Sdelphij
383221715Sdelphijif expr a : '\(a\)' >/dev/null 2>&1 &&
384221715Sdelphij   test "X`expr 00001 : '.*\(...\)'`" = X001; then
385221715Sdelphij  as_expr=expr
386170256Sdelphijelse
387221715Sdelphij  as_expr=false
388170256Sdelphijfi
389170256Sdelphij
390221715Sdelphijif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391221715Sdelphij  as_basename=basename
392170256Sdelphijelse
393221715Sdelphij  as_basename=false
394170256Sdelphijfi
395170256Sdelphij
396221715Sdelphijif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397221715Sdelphij  as_dirname=dirname
398170256Sdelphijelse
399221715Sdelphij  as_dirname=false
400170256Sdelphijfi
401170256Sdelphij
402221715Sdelphijas_me=`$as_basename -- "$0" ||
403221715Sdelphij$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404221715Sdelphij	 X"$0" : 'X\(//\)$' \| \
405221715Sdelphij	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406221715Sdelphij$as_echo X/"$0" |
407221715Sdelphij    sed '/^.*\/\([^/][^/]*\)\/*$/{
408221715Sdelphij	    s//\1/
409221715Sdelphij	    q
410221715Sdelphij	  }
411221715Sdelphij	  /^X\/\(\/\/\)$/{
412221715Sdelphij	    s//\1/
413221715Sdelphij	    q
414221715Sdelphij	  }
415221715Sdelphij	  /^X\/\(\/\).*/{
416221715Sdelphij	    s//\1/
417221715Sdelphij	    q
418221715Sdelphij	  }
419221715Sdelphij	  s/.*/./; q'`
420170256Sdelphij
421221715Sdelphij# Avoid depending upon Character Ranges.
422221715Sdelphijas_cr_letters='abcdefghijklmnopqrstuvwxyz'
423221715Sdelphijas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424221715Sdelphijas_cr_Letters=$as_cr_letters$as_cr_LETTERS
425221715Sdelphijas_cr_digits='0123456789'
426221715Sdelphijas_cr_alnum=$as_cr_Letters$as_cr_digits
427170256Sdelphij
428170256Sdelphij
429221715Sdelphij  as_lineno_1=$LINENO as_lineno_1a=$LINENO
430221715Sdelphij  as_lineno_2=$LINENO as_lineno_2a=$LINENO
431221715Sdelphij  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432221715Sdelphij  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433221715Sdelphij  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434170256Sdelphij  sed -n '
435170256Sdelphij    p
436170256Sdelphij    /[$]LINENO/=
437170256Sdelphij  ' <$as_myself |
438128345Stjr    sed '
439170256Sdelphij      s/[$]LINENO.*/&-/
440170256Sdelphij      t lineno
441170256Sdelphij      b
442170256Sdelphij      :lineno
443128345Stjr      N
444170256Sdelphij      :loop
445170256Sdelphij      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446128345Stjr      t loop
447170256Sdelphij      s/-\n.*//
448128345Stjr    ' >$as_me.lineno &&
449170256Sdelphij  chmod +x "$as_me.lineno" ||
450221715Sdelphij    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451128345Stjr
452128345Stjr  # Don't try to exec as it changes $[0], causing all sort of problems
453128345Stjr  # (the dirname of $[0] is not the place where we might find the
454170256Sdelphij  # original and so on.  Autoconf is especially sensitive to this).
455170256Sdelphij  . "./$as_me.lineno"
456128345Stjr  # Exit status is that of the last command.
457128345Stjr  exit
458128345Stjr}
459128345Stjr
460170256SdelphijECHO_C= ECHO_N= ECHO_T=
461221715Sdelphijcase `echo -n x` in #(((((
462170256Sdelphij-n*)
463221715Sdelphij  case `echo 'xy\c'` in
464170256Sdelphij  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
465221715Sdelphij  xy)  ECHO_C='\c';;
466221715Sdelphij  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467221715Sdelphij       ECHO_T='	';;
468170256Sdelphij  esac;;
469170256Sdelphij*)
470170256Sdelphij  ECHO_N='-n';;
471128345Stjresac
472128345Stjr
473128345Stjrrm -f conf$$ conf$$.exe conf$$.file
474170256Sdelphijif test -d conf$$.dir; then
475170256Sdelphij  rm -f conf$$.dir/conf$$.file
476170256Sdelphijelse
477170256Sdelphij  rm -f conf$$.dir
478191930Sdelphij  mkdir conf$$.dir 2>/dev/null
479170256Sdelphijfi
480191930Sdelphijif (echo >conf$$.file) 2>/dev/null; then
481191930Sdelphij  if ln -s conf$$.file conf$$ 2>/dev/null; then
482191930Sdelphij    as_ln_s='ln -s'
483191930Sdelphij    # ... but there are two gotchas:
484191930Sdelphij    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485191930Sdelphij    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486191930Sdelphij    # In both cases, we have to default to `cp -p'.
487191930Sdelphij    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488191930Sdelphij      as_ln_s='cp -p'
489191930Sdelphij  elif ln conf$$.file conf$$ 2>/dev/null; then
490191930Sdelphij    as_ln_s=ln
491191930Sdelphij  else
492128345Stjr    as_ln_s='cp -p'
493191930Sdelphij  fi
494128345Stjrelse
495128345Stjr  as_ln_s='cp -p'
496128345Stjrfi
497170256Sdelphijrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498170256Sdelphijrmdir conf$$.dir 2>/dev/null
499128345Stjr
500128345Stjrif mkdir -p . 2>/dev/null; then
501221715Sdelphij  as_mkdir_p='mkdir -p "$as_dir"'
502128345Stjrelse
503170256Sdelphij  test -d ./-p && rmdir ./-p
504128345Stjr  as_mkdir_p=false
505128345Stjrfi
506128345Stjr
507170256Sdelphijif test -x / >/dev/null 2>&1; then
508170256Sdelphij  as_test_x='test -x'
509170256Sdelphijelse
510170256Sdelphij  if ls -dL / >/dev/null 2>&1; then
511170256Sdelphij    as_ls_L_option=L
512170256Sdelphij  else
513170256Sdelphij    as_ls_L_option=
514170256Sdelphij  fi
515170256Sdelphij  as_test_x='
516170256Sdelphij    eval sh -c '\''
517170256Sdelphij      if test -d "$1"; then
518191930Sdelphij	test -d "$1/.";
519170256Sdelphij      else
520221715Sdelphij	case $1 in #(
521191930Sdelphij	-*)set "./$1";;
522170256Sdelphij	esac;
523221715Sdelphij	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524170256Sdelphij	???[sx]*):;;*)false;;esac;fi
525170256Sdelphij    '\'' sh
526170256Sdelphij  '
527170256Sdelphijfi
528170256Sdelphijas_executable_p=$as_test_x
529128345Stjr
530128345Stjr# Sed expression to map a string onto a valid CPP name.
531170256Sdelphijas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532128345Stjr
533128345Stjr# Sed expression to map a string onto a valid variable name.
534170256Sdelphijas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535128345Stjr
536128345Stjr
537221715Sdelphijtest -n "$DJDIR" || exec 7<&0 </dev/null
538221715Sdelphijexec 6>&1
539128345Stjr
540128345Stjr# Name of the host.
541221715Sdelphij# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542128345Stjr# so uname gets run too.
543128345Stjrac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544128345Stjr
545128345Stjr#
546128345Stjr# Initializations.
547128345Stjr#
54860786Spsac_default_prefix=/usr/local
549170256Sdelphijac_clean_files=
550128345Stjrac_config_libobj_dir=.
551170256SdelphijLIBOBJS=
552128345Stjrcross_compiling=no
553128345Stjrsubdirs=
554128345StjrMFLAGS=
555128345StjrMAKEFLAGS=
55660786Sps
557128345Stjr# Identity of this package.
558128345StjrPACKAGE_NAME='less'
559128345StjrPACKAGE_TARNAME='less'
560128345StjrPACKAGE_VERSION='1'
561128345StjrPACKAGE_STRING='less 1'
562128345StjrPACKAGE_BUGREPORT=''
563221715SdelphijPACKAGE_URL=''
564128345Stjr
565128345Stjrac_unique_file="forwback.c"
566128345Stjr# Factoring default headers for most tests.
567128345Stjrac_includes_default="\
568128345Stjr#include <stdio.h>
569170256Sdelphij#ifdef HAVE_SYS_TYPES_H
570128345Stjr# include <sys/types.h>
571128345Stjr#endif
572170256Sdelphij#ifdef HAVE_SYS_STAT_H
573128345Stjr# include <sys/stat.h>
574128345Stjr#endif
575170256Sdelphij#ifdef STDC_HEADERS
576128345Stjr# include <stdlib.h>
577128345Stjr# include <stddef.h>
578128345Stjr#else
579170256Sdelphij# ifdef HAVE_STDLIB_H
580128345Stjr#  include <stdlib.h>
581128345Stjr# endif
582128345Stjr#endif
583170256Sdelphij#ifdef HAVE_STRING_H
584170256Sdelphij# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585128345Stjr#  include <memory.h>
586128345Stjr# endif
587128345Stjr# include <string.h>
588128345Stjr#endif
589170256Sdelphij#ifdef HAVE_STRINGS_H
590128345Stjr# include <strings.h>
591128345Stjr#endif
592170256Sdelphij#ifdef HAVE_INTTYPES_H
593128345Stjr# include <inttypes.h>
594128345Stjr#endif
595170256Sdelphij#ifdef HAVE_STDINT_H
596170256Sdelphij# include <stdint.h>
597170256Sdelphij#endif
598170256Sdelphij#ifdef HAVE_UNISTD_H
599128345Stjr# include <unistd.h>
600128345Stjr#endif"
601128345Stjr
602191930Sdelphijac_subst_vars='LTLIBOBJS
603191930SdelphijLIBOBJS
604191930SdelphijREGEX_O
605191930SdelphijINSTALL_DATA
606191930SdelphijINSTALL_SCRIPT
607191930SdelphijINSTALL_PROGRAM
608191930SdelphijEGREP
609191930SdelphijGREP
610191930SdelphijCPP
611191930SdelphijOBJEXT
612191930SdelphijEXEEXT
613191930Sdelphijac_ct_CC
614191930SdelphijCPPFLAGS
615191930SdelphijLDFLAGS
616191930SdelphijCFLAGS
617191930SdelphijCC
618191930Sdelphijtarget_alias
619191930Sdelphijhost_alias
620191930Sdelphijbuild_alias
621191930SdelphijLIBS
622191930SdelphijECHO_T
623191930SdelphijECHO_N
624191930SdelphijECHO_C
625191930SdelphijDEFS
626191930Sdelphijmandir
627191930Sdelphijlocaledir
628191930Sdelphijlibdir
629191930Sdelphijpsdir
630191930Sdelphijpdfdir
631191930Sdelphijdvidir
632191930Sdelphijhtmldir
633191930Sdelphijinfodir
634191930Sdelphijdocdir
635191930Sdelphijoldincludedir
636191930Sdelphijincludedir
637191930Sdelphijlocalstatedir
638191930Sdelphijsharedstatedir
639191930Sdelphijsysconfdir
640191930Sdelphijdatadir
641191930Sdelphijdatarootdir
642191930Sdelphijlibexecdir
643191930Sdelphijsbindir
644191930Sdelphijbindir
645191930Sdelphijprogram_transform_name
646191930Sdelphijprefix
647191930Sdelphijexec_prefix
648221715SdelphijPACKAGE_URL
649191930SdelphijPACKAGE_BUGREPORT
650191930SdelphijPACKAGE_STRING
651191930SdelphijPACKAGE_VERSION
652191930SdelphijPACKAGE_TARNAME
653191930SdelphijPACKAGE_NAME
654170256SdelphijPATH_SEPARATOR
655191930SdelphijSHELL'
656128345Stjrac_subst_files=''
657191930Sdelphijac_user_opts='
658191930Sdelphijenable_option_checking
659191930Sdelphijenable_largefile
660191930Sdelphijwith_secure
661221715Sdelphijwith_no_float
662191930Sdelphijwith_regex
663191930Sdelphijwith_editor
664191930Sdelphij'
665170256Sdelphij      ac_precious_vars='build_alias
666170256Sdelphijhost_alias
667170256Sdelphijtarget_alias
668170256SdelphijCC
669170256SdelphijCFLAGS
670170256SdelphijLDFLAGS
671170256SdelphijLIBS
672170256SdelphijCPPFLAGS
673170256SdelphijCPP'
674128345Stjr
675170256Sdelphij
67660786Sps# Initialize some variables set by options.
677128345Stjrac_init_help=
678128345Stjrac_init_version=false
679191930Sdelphijac_unrecognized_opts=
680191930Sdelphijac_unrecognized_sep=
68160786Sps# The variables have the same names as the options, with
68260786Sps# dashes changed to underlines.
683128345Stjrcache_file=/dev/null
68460786Spsexec_prefix=NONE
68560786Spsno_create=
68660786Spsno_recursion=
68760786Spsprefix=NONE
68860786Spsprogram_prefix=NONE
68960786Spsprogram_suffix=NONE
69060786Spsprogram_transform_name=s,x,x,
69160786Spssilent=
69260786Spssite=
69360786Spssrcdir=
69460786Spsverbose=
69560786Spsx_includes=NONE
69660786Spsx_libraries=NONE
697128345Stjr
698128345Stjr# Installation directory options.
699128345Stjr# These are left unexpanded so users can "make install exec_prefix=/foo"
700128345Stjr# and all the variables that are supposed to be based on exec_prefix
701128345Stjr# by default will actually change.
702128345Stjr# Use braces instead of parens because sh, perl, etc. also accept them.
703170256Sdelphij# (The list follows the same order as the GNU Coding Standards.)
70460786Spsbindir='${exec_prefix}/bin'
70560786Spssbindir='${exec_prefix}/sbin'
70660786Spslibexecdir='${exec_prefix}/libexec'
707170256Sdelphijdatarootdir='${prefix}/share'
708170256Sdelphijdatadir='${datarootdir}'
70960786Spssysconfdir='${prefix}/etc'
71060786Spssharedstatedir='${prefix}/com'
71160786Spslocalstatedir='${prefix}/var'
71260786Spsincludedir='${prefix}/include'
71360786Spsoldincludedir='/usr/include'
714170256Sdelphijdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
715170256Sdelphijinfodir='${datarootdir}/info'
716170256Sdelphijhtmldir='${docdir}'
717170256Sdelphijdvidir='${docdir}'
718170256Sdelphijpdfdir='${docdir}'
719170256Sdelphijpsdir='${docdir}'
720170256Sdelphijlibdir='${exec_prefix}/lib'
721170256Sdelphijlocaledir='${datarootdir}/locale'
722170256Sdelphijmandir='${datarootdir}/man'
72360786Sps
72460786Spsac_prev=
725170256Sdelphijac_dashdash=
72660786Spsfor ac_option
72760786Spsdo
72860786Sps  # If the previous option needs an argument, assign it.
72960786Sps  if test -n "$ac_prev"; then
730170256Sdelphij    eval $ac_prev=\$ac_option
73160786Sps    ac_prev=
73260786Sps    continue
73360786Sps  fi
73460786Sps
735170256Sdelphij  case $ac_option in
736221715Sdelphij  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
737221715Sdelphij  *=)   ac_optarg= ;;
738221715Sdelphij  *)    ac_optarg=yes ;;
739170256Sdelphij  esac
74060786Sps
74160786Sps  # Accept the important Cygnus configure options, so we can diagnose typos.
74260786Sps
743170256Sdelphij  case $ac_dashdash$ac_option in
744170256Sdelphij  --)
745170256Sdelphij    ac_dashdash=yes ;;
74660786Sps
74760786Sps  -bindir | --bindir | --bindi | --bind | --bin | --bi)
74860786Sps    ac_prev=bindir ;;
74960786Sps  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
750128345Stjr    bindir=$ac_optarg ;;
75160786Sps
75260786Sps  -build | --build | --buil | --bui | --bu)
753128345Stjr    ac_prev=build_alias ;;
75460786Sps  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
755128345Stjr    build_alias=$ac_optarg ;;
75660786Sps
75760786Sps  -cache-file | --cache-file | --cache-fil | --cache-fi \
75860786Sps  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
75960786Sps    ac_prev=cache_file ;;
76060786Sps  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
76160786Sps  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
762128345Stjr    cache_file=$ac_optarg ;;
76360786Sps
764128345Stjr  --config-cache | -C)
765128345Stjr    cache_file=config.cache ;;
766128345Stjr
767170256Sdelphij  -datadir | --datadir | --datadi | --datad)
76860786Sps    ac_prev=datadir ;;
769170256Sdelphij  -datadir=* | --datadir=* | --datadi=* | --datad=*)
770128345Stjr    datadir=$ac_optarg ;;
77160786Sps
772170256Sdelphij  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
773170256Sdelphij  | --dataroo | --dataro | --datar)
774170256Sdelphij    ac_prev=datarootdir ;;
775170256Sdelphij  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
776170256Sdelphij  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
777170256Sdelphij    datarootdir=$ac_optarg ;;
778170256Sdelphij
77960786Sps  -disable-* | --disable-*)
780191930Sdelphij    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
78160786Sps    # Reject names that are not valid shell variable names.
782191930Sdelphij    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
783221715Sdelphij      as_fn_error $? "invalid feature name: $ac_useropt"
784191930Sdelphij    ac_useropt_orig=$ac_useropt
785191930Sdelphij    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
786191930Sdelphij    case $ac_user_opts in
787191930Sdelphij      *"
788191930Sdelphij"enable_$ac_useropt"
789191930Sdelphij"*) ;;
790191930Sdelphij      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
791191930Sdelphij	 ac_unrecognized_sep=', ';;
792191930Sdelphij    esac
793191930Sdelphij    eval enable_$ac_useropt=no ;;
79460786Sps
795170256Sdelphij  -docdir | --docdir | --docdi | --doc | --do)
796170256Sdelphij    ac_prev=docdir ;;
797170256Sdelphij  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
798170256Sdelphij    docdir=$ac_optarg ;;
799170256Sdelphij
800170256Sdelphij  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
801170256Sdelphij    ac_prev=dvidir ;;
802170256Sdelphij  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
803170256Sdelphij    dvidir=$ac_optarg ;;
804170256Sdelphij
80560786Sps  -enable-* | --enable-*)
806191930Sdelphij    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
80760786Sps    # Reject names that are not valid shell variable names.
808191930Sdelphij    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809221715Sdelphij      as_fn_error $? "invalid feature name: $ac_useropt"
810191930Sdelphij    ac_useropt_orig=$ac_useropt
811191930Sdelphij    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812191930Sdelphij    case $ac_user_opts in
813191930Sdelphij      *"
814191930Sdelphij"enable_$ac_useropt"
815191930Sdelphij"*) ;;
816191930Sdelphij      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
817191930Sdelphij	 ac_unrecognized_sep=', ';;
818191930Sdelphij    esac
819191930Sdelphij    eval enable_$ac_useropt=\$ac_optarg ;;
82060786Sps
82160786Sps  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
82260786Sps  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
82360786Sps  | --exec | --exe | --ex)
82460786Sps    ac_prev=exec_prefix ;;
82560786Sps  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
82660786Sps  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
82760786Sps  | --exec=* | --exe=* | --ex=*)
828128345Stjr    exec_prefix=$ac_optarg ;;
82960786Sps
83060786Sps  -gas | --gas | --ga | --g)
83160786Sps    # Obsolete; use --with-gas.
83260786Sps    with_gas=yes ;;
83360786Sps
834128345Stjr  -help | --help | --hel | --he | -h)
835128345Stjr    ac_init_help=long ;;
836128345Stjr  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
837128345Stjr    ac_init_help=recursive ;;
838128345Stjr  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
839128345Stjr    ac_init_help=short ;;
84060786Sps
84160786Sps  -host | --host | --hos | --ho)
842128345Stjr    ac_prev=host_alias ;;
84360786Sps  -host=* | --host=* | --hos=* | --ho=*)
844128345Stjr    host_alias=$ac_optarg ;;
84560786Sps
846170256Sdelphij  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
847170256Sdelphij    ac_prev=htmldir ;;
848170256Sdelphij  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
849170256Sdelphij  | --ht=*)
850170256Sdelphij    htmldir=$ac_optarg ;;
851170256Sdelphij
85260786Sps  -includedir | --includedir | --includedi | --included | --include \
85360786Sps  | --includ | --inclu | --incl | --inc)
85460786Sps    ac_prev=includedir ;;
85560786Sps  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
85660786Sps  | --includ=* | --inclu=* | --incl=* | --inc=*)
857128345Stjr    includedir=$ac_optarg ;;
85860786Sps
85960786Sps  -infodir | --infodir | --infodi | --infod | --info | --inf)
86060786Sps    ac_prev=infodir ;;
86160786Sps  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
862128345Stjr    infodir=$ac_optarg ;;
86360786Sps
86460786Sps  -libdir | --libdir | --libdi | --libd)
86560786Sps    ac_prev=libdir ;;
86660786Sps  -libdir=* | --libdir=* | --libdi=* | --libd=*)
867128345Stjr    libdir=$ac_optarg ;;
86860786Sps
86960786Sps  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
87060786Sps  | --libexe | --libex | --libe)
87160786Sps    ac_prev=libexecdir ;;
87260786Sps  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
87360786Sps  | --libexe=* | --libex=* | --libe=*)
874128345Stjr    libexecdir=$ac_optarg ;;
87560786Sps
876170256Sdelphij  -localedir | --localedir | --localedi | --localed | --locale)
877170256Sdelphij    ac_prev=localedir ;;
878170256Sdelphij  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
879170256Sdelphij    localedir=$ac_optarg ;;
880170256Sdelphij
88160786Sps  -localstatedir | --localstatedir | --localstatedi | --localstated \
882170256Sdelphij  | --localstate | --localstat | --localsta | --localst | --locals)
88360786Sps    ac_prev=localstatedir ;;
88460786Sps  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
885170256Sdelphij  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
886128345Stjr    localstatedir=$ac_optarg ;;
88760786Sps
88860786Sps  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
88960786Sps    ac_prev=mandir ;;
89060786Sps  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
891128345Stjr    mandir=$ac_optarg ;;
89260786Sps
89360786Sps  -nfp | --nfp | --nf)
89460786Sps    # Obsolete; use --without-fp.
89560786Sps    with_fp=no ;;
89660786Sps
89760786Sps  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
898128345Stjr  | --no-cr | --no-c | -n)
89960786Sps    no_create=yes ;;
90060786Sps
90160786Sps  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
90260786Sps  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
90360786Sps    no_recursion=yes ;;
90460786Sps
90560786Sps  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
90660786Sps  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
90760786Sps  | --oldin | --oldi | --old | --ol | --o)
90860786Sps    ac_prev=oldincludedir ;;
90960786Sps  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
91060786Sps  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
91160786Sps  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
912128345Stjr    oldincludedir=$ac_optarg ;;
91360786Sps
91460786Sps  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
91560786Sps    ac_prev=prefix ;;
91660786Sps  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
917128345Stjr    prefix=$ac_optarg ;;
91860786Sps
91960786Sps  -program-prefix | --program-prefix | --program-prefi | --program-pref \
92060786Sps  | --program-pre | --program-pr | --program-p)
92160786Sps    ac_prev=program_prefix ;;
92260786Sps  -program-prefix=* | --program-prefix=* | --program-prefi=* \
92360786Sps  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
924128345Stjr    program_prefix=$ac_optarg ;;
92560786Sps
92660786Sps  -program-suffix | --program-suffix | --program-suffi | --program-suff \
92760786Sps  | --program-suf | --program-su | --program-s)
92860786Sps    ac_prev=program_suffix ;;
92960786Sps  -program-suffix=* | --program-suffix=* | --program-suffi=* \
93060786Sps  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
931128345Stjr    program_suffix=$ac_optarg ;;
93260786Sps
93360786Sps  -program-transform-name | --program-transform-name \
93460786Sps  | --program-transform-nam | --program-transform-na \
93560786Sps  | --program-transform-n | --program-transform- \
93660786Sps  | --program-transform | --program-transfor \
93760786Sps  | --program-transfo | --program-transf \
93860786Sps  | --program-trans | --program-tran \
93960786Sps  | --progr-tra | --program-tr | --program-t)
94060786Sps    ac_prev=program_transform_name ;;
94160786Sps  -program-transform-name=* | --program-transform-name=* \
94260786Sps  | --program-transform-nam=* | --program-transform-na=* \
94360786Sps  | --program-transform-n=* | --program-transform-=* \
94460786Sps  | --program-transform=* | --program-transfor=* \
94560786Sps  | --program-transfo=* | --program-transf=* \
94660786Sps  | --program-trans=* | --program-tran=* \
94760786Sps  | --progr-tra=* | --program-tr=* | --program-t=*)
948128345Stjr    program_transform_name=$ac_optarg ;;
94960786Sps
950170256Sdelphij  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
951170256Sdelphij    ac_prev=pdfdir ;;
952170256Sdelphij  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
953170256Sdelphij    pdfdir=$ac_optarg ;;
954170256Sdelphij
955170256Sdelphij  -psdir | --psdir | --psdi | --psd | --ps)
956170256Sdelphij    ac_prev=psdir ;;
957170256Sdelphij  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
958170256Sdelphij    psdir=$ac_optarg ;;
959170256Sdelphij
96060786Sps  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
96160786Sps  | -silent | --silent | --silen | --sile | --sil)
96260786Sps    silent=yes ;;
96360786Sps
96460786Sps  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
96560786Sps    ac_prev=sbindir ;;
96660786Sps  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
96760786Sps  | --sbi=* | --sb=*)
968128345Stjr    sbindir=$ac_optarg ;;
96960786Sps
97060786Sps  -sharedstatedir | --sharedstatedir | --sharedstatedi \
97160786Sps  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
97260786Sps  | --sharedst | --shareds | --shared | --share | --shar \
97360786Sps  | --sha | --sh)
97460786Sps    ac_prev=sharedstatedir ;;
97560786Sps  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
97660786Sps  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
97760786Sps  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
97860786Sps  | --sha=* | --sh=*)
979128345Stjr    sharedstatedir=$ac_optarg ;;
98060786Sps
98160786Sps  -site | --site | --sit)
98260786Sps    ac_prev=site ;;
98360786Sps  -site=* | --site=* | --sit=*)
984128345Stjr    site=$ac_optarg ;;
98560786Sps
98660786Sps  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
98760786Sps    ac_prev=srcdir ;;
98860786Sps  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
989128345Stjr    srcdir=$ac_optarg ;;
99060786Sps
99160786Sps  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
99260786Sps  | --syscon | --sysco | --sysc | --sys | --sy)
99360786Sps    ac_prev=sysconfdir ;;
99460786Sps  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
99560786Sps  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
996128345Stjr    sysconfdir=$ac_optarg ;;
99760786Sps
99860786Sps  -target | --target | --targe | --targ | --tar | --ta | --t)
999128345Stjr    ac_prev=target_alias ;;
100060786Sps  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1001128345Stjr    target_alias=$ac_optarg ;;
100260786Sps
100360786Sps  -v | -verbose | --verbose | --verbos | --verbo | --verb)
100460786Sps    verbose=yes ;;
100560786Sps
1006128345Stjr  -version | --version | --versio | --versi | --vers | -V)
1007128345Stjr    ac_init_version=: ;;
100860786Sps
100960786Sps  -with-* | --with-*)
1010191930Sdelphij    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
101160786Sps    # Reject names that are not valid shell variable names.
1012191930Sdelphij    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013221715Sdelphij      as_fn_error $? "invalid package name: $ac_useropt"
1014191930Sdelphij    ac_useropt_orig=$ac_useropt
1015191930Sdelphij    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016191930Sdelphij    case $ac_user_opts in
1017191930Sdelphij      *"
1018191930Sdelphij"with_$ac_useropt"
1019191930Sdelphij"*) ;;
1020191930Sdelphij      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1021191930Sdelphij	 ac_unrecognized_sep=', ';;
1022191930Sdelphij    esac
1023191930Sdelphij    eval with_$ac_useropt=\$ac_optarg ;;
102460786Sps
102560786Sps  -without-* | --without-*)
1026191930Sdelphij    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
102760786Sps    # Reject names that are not valid shell variable names.
1028191930Sdelphij    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029221715Sdelphij      as_fn_error $? "invalid package name: $ac_useropt"
1030191930Sdelphij    ac_useropt_orig=$ac_useropt
1031191930Sdelphij    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032191930Sdelphij    case $ac_user_opts in
1033191930Sdelphij      *"
1034191930Sdelphij"with_$ac_useropt"
1035191930Sdelphij"*) ;;
1036191930Sdelphij      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1037191930Sdelphij	 ac_unrecognized_sep=', ';;
1038191930Sdelphij    esac
1039191930Sdelphij    eval with_$ac_useropt=no ;;
104060786Sps
104160786Sps  --x)
104260786Sps    # Obsolete; use --with-x.
104360786Sps    with_x=yes ;;
104460786Sps
104560786Sps  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
104660786Sps  | --x-incl | --x-inc | --x-in | --x-i)
104760786Sps    ac_prev=x_includes ;;
104860786Sps  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
104960786Sps  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1050128345Stjr    x_includes=$ac_optarg ;;
105160786Sps
105260786Sps  -x-libraries | --x-libraries | --x-librarie | --x-librari \
105360786Sps  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
105460786Sps    ac_prev=x_libraries ;;
105560786Sps  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
105660786Sps  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1057128345Stjr    x_libraries=$ac_optarg ;;
105860786Sps
1059221715Sdelphij  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1060221715SdelphijTry \`$0 --help' for more information"
106160786Sps    ;;
106260786Sps
1063128345Stjr  *=*)
1064128345Stjr    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1065128345Stjr    # Reject names that are not valid shell variable names.
1066221715Sdelphij    case $ac_envvar in #(
1067221715Sdelphij      '' | [0-9]* | *[!_$as_cr_alnum]* )
1068221715Sdelphij      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1069221715Sdelphij    esac
1070170256Sdelphij    eval $ac_envvar=\$ac_optarg
1071128345Stjr    export $ac_envvar ;;
1072128345Stjr
107360786Sps  *)
1074128345Stjr    # FIXME: should be removed in autoconf 3.0.
1075191930Sdelphij    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1076128345Stjr    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077191930Sdelphij      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1078240121Sdelphij    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
107960786Sps    ;;
108060786Sps
108160786Sps  esac
108260786Spsdone
108360786Sps
108460786Spsif test -n "$ac_prev"; then
1085128345Stjr  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1086221715Sdelphij  as_fn_error $? "missing argument to $ac_option"
108760786Spsfi
108860786Sps
1089191930Sdelphijif test -n "$ac_unrecognized_opts"; then
1090191930Sdelphij  case $enable_option_checking in
1091191930Sdelphij    no) ;;
1092221715Sdelphij    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1093191930Sdelphij    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1094191930Sdelphij  esac
1095191930Sdelphijfi
1096191930Sdelphij
1097191930Sdelphij# Check all directory arguments for consistency.
1098170256Sdelphijfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1099170256Sdelphij		datadir sysconfdir sharedstatedir localstatedir includedir \
1100170256Sdelphij		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1101170256Sdelphij		libdir localedir mandir
1102128345Stjrdo
1103170256Sdelphij  eval ac_val=\$$ac_var
1104191930Sdelphij  # Remove trailing slashes.
1105128345Stjr  case $ac_val in
1106191930Sdelphij    */ )
1107191930Sdelphij      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1108191930Sdelphij      eval $ac_var=\$ac_val;;
1109191930Sdelphij  esac
1110191930Sdelphij  # Be sure to have absolute directory names.
1111191930Sdelphij  case $ac_val in
1112170256Sdelphij    [\\/$]* | ?:[\\/]* )  continue;;
1113170256Sdelphij    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1114128345Stjr  esac
1115221715Sdelphij  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1116128345Stjrdone
111760786Sps
1118128345Stjr# There might be people who depend on the old broken behavior: `$host'
1119128345Stjr# used to hold the argument of --host etc.
1120128345Stjr# FIXME: To remove some day.
1121128345Stjrbuild=$build_alias
1122128345Stjrhost=$host_alias
1123128345Stjrtarget=$target_alias
112460786Sps
1125128345Stjr# FIXME: To remove some day.
1126128345Stjrif test "x$host_alias" != x; then
1127128345Stjr  if test "x$build_alias" = x; then
1128128345Stjr    cross_compiling=maybe
1129221715Sdelphij    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1130221715Sdelphij    If a cross compiler is detected then cross compile mode will be used" >&2
1131128345Stjr  elif test "x$build_alias" != "x$host_alias"; then
1132128345Stjr    cross_compiling=yes
1133128345Stjr  fi
1134128345Stjrfi
113560786Sps
1136128345Stjrac_tool_prefix=
1137128345Stjrtest -n "$host_alias" && ac_tool_prefix=$host_alias-
113860786Sps
1139128345Stjrtest "$silent" = yes && exec 6>/dev/null
1140128345Stjr
1141128345Stjr
1142170256Sdelphijac_pwd=`pwd` && test -n "$ac_pwd" &&
1143170256Sdelphijac_ls_di=`ls -di .` &&
1144170256Sdelphijac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1145221715Sdelphij  as_fn_error $? "working directory cannot be determined"
1146170256Sdelphijtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147221715Sdelphij  as_fn_error $? "pwd does not report name of working directory"
1148170256Sdelphij
1149170256Sdelphij
115060786Sps# Find the source files, if location was not specified.
115160786Spsif test -z "$srcdir"; then
115260786Sps  ac_srcdir_defaulted=yes
1153170256Sdelphij  # Try the directory containing this script, then the parent directory.
1154191930Sdelphij  ac_confdir=`$as_dirname -- "$as_myself" ||
1155191930Sdelphij$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156191930Sdelphij	 X"$as_myself" : 'X\(//\)[^/]' \| \
1157191930Sdelphij	 X"$as_myself" : 'X\(//\)$' \| \
1158191930Sdelphij	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1159191930Sdelphij$as_echo X"$as_myself" |
1160170256Sdelphij    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161170256Sdelphij	    s//\1/
1162170256Sdelphij	    q
1163170256Sdelphij	  }
1164170256Sdelphij	  /^X\(\/\/\)[^/].*/{
1165170256Sdelphij	    s//\1/
1166170256Sdelphij	    q
1167170256Sdelphij	  }
1168170256Sdelphij	  /^X\(\/\/\)$/{
1169170256Sdelphij	    s//\1/
1170170256Sdelphij	    q
1171170256Sdelphij	  }
1172170256Sdelphij	  /^X\(\/\).*/{
1173170256Sdelphij	    s//\1/
1174170256Sdelphij	    q
1175170256Sdelphij	  }
1176170256Sdelphij	  s/.*/./; q'`
117760786Sps  srcdir=$ac_confdir
1178170256Sdelphij  if test ! -r "$srcdir/$ac_unique_file"; then
117960786Sps    srcdir=..
118060786Sps  fi
118160786Spselse
118260786Sps  ac_srcdir_defaulted=no
118360786Spsfi
1184170256Sdelphijif test ! -r "$srcdir/$ac_unique_file"; then
1185170256Sdelphij  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1186221715Sdelphij  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1187170256Sdelphijfi
1188170256Sdelphijac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1189170256Sdelphijac_abs_confdir=`(
1190221715Sdelphij	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1191170256Sdelphij	pwd)`
1192170256Sdelphij# When building in place, set srcdir=.
1193170256Sdelphijif test "$ac_abs_confdir" = "$ac_pwd"; then
1194170256Sdelphij  srcdir=.
119560786Spsfi
1196170256Sdelphij# Remove unnecessary trailing slashes from srcdir.
1197170256Sdelphij# Double slashes in file names in object file debugging info
1198170256Sdelphij# mess up M-x gdb in Emacs.
1199170256Sdelphijcase $srcdir in
1200170256Sdelphij*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1201170256Sdelphijesac
1202170256Sdelphijfor ac_var in $ac_precious_vars; do
1203170256Sdelphij  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204170256Sdelphij  eval ac_env_${ac_var}_value=\$${ac_var}
1205170256Sdelphij  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206170256Sdelphij  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207170256Sdelphijdone
120860786Sps
1209128345Stjr#
1210128345Stjr# Report the --help message.
1211128345Stjr#
1212128345Stjrif test "$ac_init_help" = "long"; then
1213128345Stjr  # Omit some internal or obsolete options to make the list less imposing.
1214128345Stjr  # This message is too long to be a string in the A/UX 3.1 sh.
1215128345Stjr  cat <<_ACEOF
1216128345Stjr\`configure' configures less 1 to adapt to many kinds of systems.
1217128345Stjr
1218128345StjrUsage: $0 [OPTION]... [VAR=VALUE]...
1219128345Stjr
1220128345StjrTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1221128345StjrVAR=VALUE.  See below for descriptions of some of the useful variables.
1222128345Stjr
1223128345StjrDefaults for the options are specified in brackets.
1224128345Stjr
1225128345StjrConfiguration:
1226128345Stjr  -h, --help              display this help and exit
1227128345Stjr      --help=short        display options specific to this package
1228128345Stjr      --help=recursive    display the short help of all the included packages
1229128345Stjr  -V, --version           display version information and exit
1230221715Sdelphij  -q, --quiet, --silent   do not print \`checking ...' messages
1231128345Stjr      --cache-file=FILE   cache test results in FILE [disabled]
1232128345Stjr  -C, --config-cache      alias for \`--cache-file=config.cache'
1233128345Stjr  -n, --no-create         do not create output files
1234128345Stjr      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1235128345Stjr
1236128345StjrInstallation directories:
1237128345Stjr  --prefix=PREFIX         install architecture-independent files in PREFIX
1238191930Sdelphij                          [$ac_default_prefix]
1239128345Stjr  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1240191930Sdelphij                          [PREFIX]
1241128345Stjr
1242128345StjrBy default, \`make install' will install all the files in
1243128345Stjr\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1244128345Stjran installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245128345Stjrfor instance \`--prefix=\$HOME'.
1246128345Stjr
1247128345StjrFor better control, use the options below.
1248128345Stjr
1249128345StjrFine tuning of the installation directories:
1250191930Sdelphij  --bindir=DIR            user executables [EPREFIX/bin]
1251191930Sdelphij  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1252191930Sdelphij  --libexecdir=DIR        program executables [EPREFIX/libexec]
1253191930Sdelphij  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1254191930Sdelphij  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1255191930Sdelphij  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1256191930Sdelphij  --libdir=DIR            object code libraries [EPREFIX/lib]
1257191930Sdelphij  --includedir=DIR        C header files [PREFIX/include]
1258191930Sdelphij  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1259191930Sdelphij  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1260191930Sdelphij  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1261191930Sdelphij  --infodir=DIR           info documentation [DATAROOTDIR/info]
1262191930Sdelphij  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1263191930Sdelphij  --mandir=DIR            man documentation [DATAROOTDIR/man]
1264191930Sdelphij  --docdir=DIR            documentation root [DATAROOTDIR/doc/less]
1265191930Sdelphij  --htmldir=DIR           html documentation [DOCDIR]
1266191930Sdelphij  --dvidir=DIR            dvi documentation [DOCDIR]
1267191930Sdelphij  --pdfdir=DIR            pdf documentation [DOCDIR]
1268191930Sdelphij  --psdir=DIR             ps documentation [DOCDIR]
1269128345Stjr_ACEOF
1270128345Stjr
1271128345Stjr  cat <<\_ACEOF
1272128345Stjr_ACEOF
1273128345Stjrfi
1274128345Stjr
1275128345Stjrif test -n "$ac_init_help"; then
1276128345Stjr  case $ac_init_help in
1277128345Stjr     short | recursive ) echo "Configuration of less 1:";;
1278128345Stjr   esac
1279128345Stjr  cat <<\_ACEOF
1280128345Stjr
1281128345StjrOptional Features:
1282191930Sdelphij  --disable-option-checking  ignore unrecognized --enable/--with options
1283128345Stjr  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1284128345Stjr  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1285128345Stjr  --disable-largefile     omit support for large files
1286128345Stjr
1287128345StjrOptional Packages:
1288128345Stjr  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1289128345Stjr  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1290161475Sdelphij  --with-secure  Compile in secure mode
1291221715Sdelphij  --with-no-float  Do not use floating point
1292240121Sdelphij  --with-regex={auto,gnu,pcre,posix,regcmp,re_comp,regcomp,regcomp-local,none}  Select a regular expression library  auto
1293128345Stjr  --with-editor=PROGRAM   use PROGRAM as the default editor vi
1294128345Stjr
1295128345StjrSome influential environment variables:
1296128345Stjr  CC          C compiler command
1297128345Stjr  CFLAGS      C compiler flags
1298128345Stjr  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1299128345Stjr              nonstandard directory <lib dir>
1300170256Sdelphij  LIBS        libraries to pass to the linker, e.g. -l<library>
1301221715Sdelphij  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1302170256Sdelphij              you have headers in a nonstandard directory <include dir>
1303128345Stjr  CPP         C preprocessor
1304128345Stjr
1305128345StjrUse these variables to override the choices made by `configure' or to help
1306128345Stjrit to find libraries and programs with nonstandard names/locations.
1307128345Stjr
1308221715SdelphijReport bugs to the package provider.
1309128345Stjr_ACEOF
1310170256Sdelphijac_status=$?
1311128345Stjrfi
1312128345Stjr
1313128345Stjrif test "$ac_init_help" = "recursive"; then
1314128345Stjr  # If there are subdirs, report their specific --help.
1315128345Stjr  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1316191930Sdelphij    test -d "$ac_dir" ||
1317191930Sdelphij      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1318191930Sdelphij      continue
1319128345Stjr    ac_builddir=.
1320128345Stjr
1321170256Sdelphijcase "$ac_dir" in
1322170256Sdelphij.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1323170256Sdelphij*)
1324191930Sdelphij  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1325170256Sdelphij  # A ".." for each directory in $ac_dir_suffix.
1326191930Sdelphij  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1327170256Sdelphij  case $ac_top_builddir_sub in
1328170256Sdelphij  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329170256Sdelphij  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1330170256Sdelphij  esac ;;
1331170256Sdelphijesac
1332170256Sdelphijac_abs_top_builddir=$ac_pwd
1333170256Sdelphijac_abs_builddir=$ac_pwd$ac_dir_suffix
1334170256Sdelphij# for backward compatibility:
1335170256Sdelphijac_top_builddir=$ac_top_build_prefix
1336128345Stjr
1337128345Stjrcase $srcdir in
1338170256Sdelphij  .)  # We are building in place.
1339128345Stjr    ac_srcdir=.
1340170256Sdelphij    ac_top_srcdir=$ac_top_builddir_sub
1341170256Sdelphij    ac_abs_top_srcdir=$ac_pwd ;;
1342170256Sdelphij  [\\/]* | ?:[\\/]* )  # Absolute name.
1343128345Stjr    ac_srcdir=$srcdir$ac_dir_suffix;
1344170256Sdelphij    ac_top_srcdir=$srcdir
1345170256Sdelphij    ac_abs_top_srcdir=$srcdir ;;
1346170256Sdelphij  *) # Relative name.
1347170256Sdelphij    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1348170256Sdelphij    ac_top_srcdir=$ac_top_build_prefix$srcdir
1349170256Sdelphij    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1350128345Stjresac
1351170256Sdelphijac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1352128345Stjr
1353170256Sdelphij    cd "$ac_dir" || { ac_status=$?; continue; }
1354170256Sdelphij    # Check for guested configure.
1355170256Sdelphij    if test -f "$ac_srcdir/configure.gnu"; then
1356170256Sdelphij      echo &&
1357170256Sdelphij      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1358170256Sdelphij    elif test -f "$ac_srcdir/configure"; then
1359170256Sdelphij      echo &&
1360170256Sdelphij      $SHELL "$ac_srcdir/configure" --help=recursive
1361128345Stjr    else
1362191930Sdelphij      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1363170256Sdelphij    fi || ac_status=$?
1364170256Sdelphij    cd "$ac_pwd" || { ac_status=$?; break; }
1365128345Stjr  done
1366128345Stjrfi
1367128345Stjr
1368170256Sdelphijtest -n "$ac_init_help" && exit $ac_status
1369128345Stjrif $ac_init_version; then
1370128345Stjr  cat <<\_ACEOF
1371128345Stjrless configure 1
1372240121Sdelphijgenerated by GNU Autoconf 2.68
1373128345Stjr
1374221715SdelphijCopyright (C) 2010 Free Software Foundation, Inc.
1375128345StjrThis configure script is free software; the Free Software Foundation
1376128345Stjrgives unlimited permission to copy, distribute and modify it.
1377128345Stjr_ACEOF
1378170256Sdelphij  exit
1379128345Stjrfi
1380221715Sdelphij
1381221715Sdelphij## ------------------------ ##
1382221715Sdelphij## Autoconf initialization. ##
1383221715Sdelphij## ------------------------ ##
1384221715Sdelphij
1385221715Sdelphij# ac_fn_c_try_compile LINENO
1386221715Sdelphij# --------------------------
1387221715Sdelphij# Try to compile conftest.$ac_ext, and return whether this succeeded.
1388221715Sdelphijac_fn_c_try_compile ()
1389221715Sdelphij{
1390221715Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1391221715Sdelphij  rm -f conftest.$ac_objext
1392221715Sdelphij  if { { ac_try="$ac_compile"
1393221715Sdelphijcase "(($ac_try" in
1394221715Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1395221715Sdelphij  *) ac_try_echo=$ac_try;;
1396221715Sdelphijesac
1397221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1398221715Sdelphij$as_echo "$ac_try_echo"; } >&5
1399221715Sdelphij  (eval "$ac_compile") 2>conftest.err
1400221715Sdelphij  ac_status=$?
1401221715Sdelphij  if test -s conftest.err; then
1402221715Sdelphij    grep -v '^ *+' conftest.err >conftest.er1
1403221715Sdelphij    cat conftest.er1 >&5
1404221715Sdelphij    mv -f conftest.er1 conftest.err
1405221715Sdelphij  fi
1406221715Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1407221715Sdelphij  test $ac_status = 0; } && {
1408221715Sdelphij	 test -z "$ac_c_werror_flag" ||
1409221715Sdelphij	 test ! -s conftest.err
1410221715Sdelphij       } && test -s conftest.$ac_objext; then :
1411221715Sdelphij  ac_retval=0
1412221715Sdelphijelse
1413221715Sdelphij  $as_echo "$as_me: failed program was:" >&5
1414221715Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
1415221715Sdelphij
1416221715Sdelphij	ac_retval=1
1417221715Sdelphijfi
1418240121Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1419221715Sdelphij  as_fn_set_status $ac_retval
1420221715Sdelphij
1421221715Sdelphij} # ac_fn_c_try_compile
1422221715Sdelphij
1423221715Sdelphij# ac_fn_c_try_link LINENO
1424221715Sdelphij# -----------------------
1425221715Sdelphij# Try to link conftest.$ac_ext, and return whether this succeeded.
1426221715Sdelphijac_fn_c_try_link ()
1427221715Sdelphij{
1428221715Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1429221715Sdelphij  rm -f conftest.$ac_objext conftest$ac_exeext
1430221715Sdelphij  if { { ac_try="$ac_link"
1431221715Sdelphijcase "(($ac_try" in
1432221715Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1433221715Sdelphij  *) ac_try_echo=$ac_try;;
1434221715Sdelphijesac
1435221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1436221715Sdelphij$as_echo "$ac_try_echo"; } >&5
1437221715Sdelphij  (eval "$ac_link") 2>conftest.err
1438221715Sdelphij  ac_status=$?
1439221715Sdelphij  if test -s conftest.err; then
1440221715Sdelphij    grep -v '^ *+' conftest.err >conftest.er1
1441221715Sdelphij    cat conftest.er1 >&5
1442221715Sdelphij    mv -f conftest.er1 conftest.err
1443221715Sdelphij  fi
1444221715Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1445221715Sdelphij  test $ac_status = 0; } && {
1446221715Sdelphij	 test -z "$ac_c_werror_flag" ||
1447221715Sdelphij	 test ! -s conftest.err
1448221715Sdelphij       } && test -s conftest$ac_exeext && {
1449221715Sdelphij	 test "$cross_compiling" = yes ||
1450221715Sdelphij	 $as_test_x conftest$ac_exeext
1451221715Sdelphij       }; then :
1452221715Sdelphij  ac_retval=0
1453221715Sdelphijelse
1454221715Sdelphij  $as_echo "$as_me: failed program was:" >&5
1455221715Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
1456221715Sdelphij
1457221715Sdelphij	ac_retval=1
1458221715Sdelphijfi
1459221715Sdelphij  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1460221715Sdelphij  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1461221715Sdelphij  # interfere with the next link command; also delete a directory that is
1462221715Sdelphij  # left behind by Apple's compiler.  We do this before executing the actions.
1463221715Sdelphij  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1464240121Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1465221715Sdelphij  as_fn_set_status $ac_retval
1466221715Sdelphij
1467221715Sdelphij} # ac_fn_c_try_link
1468221715Sdelphij
1469221715Sdelphij# ac_fn_c_try_cpp LINENO
1470221715Sdelphij# ----------------------
1471221715Sdelphij# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1472221715Sdelphijac_fn_c_try_cpp ()
1473221715Sdelphij{
1474221715Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475221715Sdelphij  if { { ac_try="$ac_cpp conftest.$ac_ext"
1476221715Sdelphijcase "(($ac_try" in
1477221715Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478221715Sdelphij  *) ac_try_echo=$ac_try;;
1479221715Sdelphijesac
1480221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481221715Sdelphij$as_echo "$ac_try_echo"; } >&5
1482221715Sdelphij  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1483221715Sdelphij  ac_status=$?
1484221715Sdelphij  if test -s conftest.err; then
1485221715Sdelphij    grep -v '^ *+' conftest.err >conftest.er1
1486221715Sdelphij    cat conftest.er1 >&5
1487221715Sdelphij    mv -f conftest.er1 conftest.err
1488221715Sdelphij  fi
1489221715Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490221715Sdelphij  test $ac_status = 0; } > conftest.i && {
1491221715Sdelphij	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1492221715Sdelphij	 test ! -s conftest.err
1493221715Sdelphij       }; then :
1494221715Sdelphij  ac_retval=0
1495221715Sdelphijelse
1496221715Sdelphij  $as_echo "$as_me: failed program was:" >&5
1497221715Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
1498221715Sdelphij
1499221715Sdelphij    ac_retval=1
1500221715Sdelphijfi
1501240121Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502221715Sdelphij  as_fn_set_status $ac_retval
1503221715Sdelphij
1504221715Sdelphij} # ac_fn_c_try_cpp
1505221715Sdelphij
1506221715Sdelphij# ac_fn_c_try_run LINENO
1507221715Sdelphij# ----------------------
1508221715Sdelphij# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1509221715Sdelphij# that executables *can* be run.
1510221715Sdelphijac_fn_c_try_run ()
1511221715Sdelphij{
1512221715Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513221715Sdelphij  if { { ac_try="$ac_link"
1514221715Sdelphijcase "(($ac_try" in
1515221715Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516221715Sdelphij  *) ac_try_echo=$ac_try;;
1517221715Sdelphijesac
1518221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519221715Sdelphij$as_echo "$ac_try_echo"; } >&5
1520221715Sdelphij  (eval "$ac_link") 2>&5
1521221715Sdelphij  ac_status=$?
1522221715Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523221715Sdelphij  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1524221715Sdelphij  { { case "(($ac_try" in
1525221715Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526221715Sdelphij  *) ac_try_echo=$ac_try;;
1527221715Sdelphijesac
1528221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529221715Sdelphij$as_echo "$ac_try_echo"; } >&5
1530221715Sdelphij  (eval "$ac_try") 2>&5
1531221715Sdelphij  ac_status=$?
1532221715Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533221715Sdelphij  test $ac_status = 0; }; }; then :
1534221715Sdelphij  ac_retval=0
1535221715Sdelphijelse
1536221715Sdelphij  $as_echo "$as_me: program exited with status $ac_status" >&5
1537221715Sdelphij       $as_echo "$as_me: failed program was:" >&5
1538221715Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
1539221715Sdelphij
1540221715Sdelphij       ac_retval=$ac_status
1541221715Sdelphijfi
1542221715Sdelphij  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1543240121Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544221715Sdelphij  as_fn_set_status $ac_retval
1545221715Sdelphij
1546221715Sdelphij} # ac_fn_c_try_run
1547221715Sdelphij
1548221715Sdelphij# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1549221715Sdelphij# -------------------------------------------------------
1550221715Sdelphij# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1551221715Sdelphij# the include files in INCLUDES and setting the cache variable VAR
1552221715Sdelphij# accordingly.
1553221715Sdelphijac_fn_c_check_header_mongrel ()
1554221715Sdelphij{
1555221715Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556240121Sdelphij  if eval \${$3+:} false; then :
1557221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1558221715Sdelphij$as_echo_n "checking for $2... " >&6; }
1559240121Sdelphijif eval \${$3+:} false; then :
1560221715Sdelphij  $as_echo_n "(cached) " >&6
1561221715Sdelphijfi
1562221715Sdelphijeval ac_res=\$$3
1563221715Sdelphij	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564221715Sdelphij$as_echo "$ac_res" >&6; }
1565221715Sdelphijelse
1566221715Sdelphij  # Is the header compilable?
1567221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1568221715Sdelphij$as_echo_n "checking $2 usability... " >&6; }
1569221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570221715Sdelphij/* end confdefs.h.  */
1571221715Sdelphij$4
1572221715Sdelphij#include <$2>
1573221715Sdelphij_ACEOF
1574221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
1575221715Sdelphij  ac_header_compiler=yes
1576221715Sdelphijelse
1577221715Sdelphij  ac_header_compiler=no
1578221715Sdelphijfi
1579221715Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1580221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1581221715Sdelphij$as_echo "$ac_header_compiler" >&6; }
1582221715Sdelphij
1583221715Sdelphij# Is the header present?
1584221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1585221715Sdelphij$as_echo_n "checking $2 presence... " >&6; }
1586221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587221715Sdelphij/* end confdefs.h.  */
1588221715Sdelphij#include <$2>
1589221715Sdelphij_ACEOF
1590221715Sdelphijif ac_fn_c_try_cpp "$LINENO"; then :
1591221715Sdelphij  ac_header_preproc=yes
1592221715Sdelphijelse
1593221715Sdelphij  ac_header_preproc=no
1594221715Sdelphijfi
1595221715Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext
1596221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1597221715Sdelphij$as_echo "$ac_header_preproc" >&6; }
1598221715Sdelphij
1599221715Sdelphij# So?  What about this header?
1600221715Sdelphijcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1601221715Sdelphij  yes:no: )
1602221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1603221715Sdelphij$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1604221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1605221715Sdelphij$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1606221715Sdelphij    ;;
1607221715Sdelphij  no:yes:* )
1608221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1609221715Sdelphij$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1610221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1611221715Sdelphij$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1612221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1613221715Sdelphij$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1614221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1615221715Sdelphij$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1616221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1617221715Sdelphij$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1618221715Sdelphij    ;;
1619221715Sdelphijesac
1620221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621221715Sdelphij$as_echo_n "checking for $2... " >&6; }
1622240121Sdelphijif eval \${$3+:} false; then :
1623221715Sdelphij  $as_echo_n "(cached) " >&6
1624221715Sdelphijelse
1625221715Sdelphij  eval "$3=\$ac_header_compiler"
1626221715Sdelphijfi
1627221715Sdelphijeval ac_res=\$$3
1628221715Sdelphij	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629221715Sdelphij$as_echo "$ac_res" >&6; }
1630221715Sdelphijfi
1631240121Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632221715Sdelphij
1633221715Sdelphij} # ac_fn_c_check_header_mongrel
1634221715Sdelphij
1635221715Sdelphij# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636221715Sdelphij# -------------------------------------------------------
1637221715Sdelphij# Tests whether HEADER exists and can be compiled using the include files in
1638221715Sdelphij# INCLUDES, setting the cache variable VAR accordingly.
1639221715Sdelphijac_fn_c_check_header_compile ()
1640221715Sdelphij{
1641221715Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643221715Sdelphij$as_echo_n "checking for $2... " >&6; }
1644240121Sdelphijif eval \${$3+:} false; then :
1645221715Sdelphij  $as_echo_n "(cached) " >&6
1646221715Sdelphijelse
1647221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648221715Sdelphij/* end confdefs.h.  */
1649221715Sdelphij$4
1650221715Sdelphij#include <$2>
1651221715Sdelphij_ACEOF
1652221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
1653221715Sdelphij  eval "$3=yes"
1654221715Sdelphijelse
1655221715Sdelphij  eval "$3=no"
1656221715Sdelphijfi
1657221715Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658221715Sdelphijfi
1659221715Sdelphijeval ac_res=\$$3
1660221715Sdelphij	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661221715Sdelphij$as_echo "$ac_res" >&6; }
1662240121Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663221715Sdelphij
1664221715Sdelphij} # ac_fn_c_check_header_compile
1665221715Sdelphij
1666221715Sdelphij# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1667221715Sdelphij# -------------------------------------------
1668221715Sdelphij# Tests whether TYPE exists after having included INCLUDES, setting cache
1669221715Sdelphij# variable VAR accordingly.
1670221715Sdelphijac_fn_c_check_type ()
1671221715Sdelphij{
1672221715Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674221715Sdelphij$as_echo_n "checking for $2... " >&6; }
1675240121Sdelphijif eval \${$3+:} false; then :
1676221715Sdelphij  $as_echo_n "(cached) " >&6
1677221715Sdelphijelse
1678221715Sdelphij  eval "$3=no"
1679221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680221715Sdelphij/* end confdefs.h.  */
1681221715Sdelphij$4
1682221715Sdelphijint
1683221715Sdelphijmain ()
1684221715Sdelphij{
1685221715Sdelphijif (sizeof ($2))
1686221715Sdelphij	 return 0;
1687221715Sdelphij  ;
1688221715Sdelphij  return 0;
1689221715Sdelphij}
1690221715Sdelphij_ACEOF
1691221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
1692221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693221715Sdelphij/* end confdefs.h.  */
1694221715Sdelphij$4
1695221715Sdelphijint
1696221715Sdelphijmain ()
1697221715Sdelphij{
1698221715Sdelphijif (sizeof (($2)))
1699221715Sdelphij	    return 0;
1700221715Sdelphij  ;
1701221715Sdelphij  return 0;
1702221715Sdelphij}
1703221715Sdelphij_ACEOF
1704221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
1705221715Sdelphij
1706221715Sdelphijelse
1707221715Sdelphij  eval "$3=yes"
1708221715Sdelphijfi
1709221715Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710221715Sdelphijfi
1711221715Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712221715Sdelphijfi
1713221715Sdelphijeval ac_res=\$$3
1714221715Sdelphij	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715221715Sdelphij$as_echo "$ac_res" >&6; }
1716240121Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717221715Sdelphij
1718221715Sdelphij} # ac_fn_c_check_type
1719221715Sdelphij
1720221715Sdelphij# ac_fn_c_check_func LINENO FUNC VAR
1721221715Sdelphij# ----------------------------------
1722221715Sdelphij# Tests whether FUNC exists, setting the cache variable VAR accordingly
1723221715Sdelphijac_fn_c_check_func ()
1724221715Sdelphij{
1725221715Sdelphij  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727221715Sdelphij$as_echo_n "checking for $2... " >&6; }
1728240121Sdelphijif eval \${$3+:} false; then :
1729221715Sdelphij  $as_echo_n "(cached) " >&6
1730221715Sdelphijelse
1731221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732221715Sdelphij/* end confdefs.h.  */
1733221715Sdelphij/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734221715Sdelphij   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1735221715Sdelphij#define $2 innocuous_$2
1736221715Sdelphij
1737221715Sdelphij/* System header to define __stub macros and hopefully few prototypes,
1738221715Sdelphij    which can conflict with char $2 (); below.
1739221715Sdelphij    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740221715Sdelphij    <limits.h> exists even on freestanding compilers.  */
1741221715Sdelphij
1742221715Sdelphij#ifdef __STDC__
1743221715Sdelphij# include <limits.h>
1744221715Sdelphij#else
1745221715Sdelphij# include <assert.h>
1746221715Sdelphij#endif
1747221715Sdelphij
1748221715Sdelphij#undef $2
1749221715Sdelphij
1750221715Sdelphij/* Override any GCC internal prototype to avoid an error.
1751221715Sdelphij   Use char because int might match the return type of a GCC
1752221715Sdelphij   builtin and then its argument prototype would still apply.  */
1753221715Sdelphij#ifdef __cplusplus
1754221715Sdelphijextern "C"
1755221715Sdelphij#endif
1756221715Sdelphijchar $2 ();
1757221715Sdelphij/* The GNU C library defines this for functions which it implements
1758221715Sdelphij    to always fail with ENOSYS.  Some functions are actually named
1759221715Sdelphij    something starting with __ and the normal name is an alias.  */
1760221715Sdelphij#if defined __stub_$2 || defined __stub___$2
1761221715Sdelphijchoke me
1762221715Sdelphij#endif
1763221715Sdelphij
1764221715Sdelphijint
1765221715Sdelphijmain ()
1766221715Sdelphij{
1767221715Sdelphijreturn $2 ();
1768221715Sdelphij  ;
1769221715Sdelphij  return 0;
1770221715Sdelphij}
1771221715Sdelphij_ACEOF
1772221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
1773221715Sdelphij  eval "$3=yes"
1774221715Sdelphijelse
1775221715Sdelphij  eval "$3=no"
1776221715Sdelphijfi
1777221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
1778221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
1779221715Sdelphijfi
1780221715Sdelphijeval ac_res=\$$3
1781221715Sdelphij	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782221715Sdelphij$as_echo "$ac_res" >&6; }
1783240121Sdelphij  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784221715Sdelphij
1785221715Sdelphij} # ac_fn_c_check_func
1786170256Sdelphijcat >config.log <<_ACEOF
1787128345StjrThis file contains any messages produced by compilers while
1788128345Stjrrunning configure, to aid debugging if configure makes a mistake.
1789128345Stjr
1790128345StjrIt was created by less $as_me 1, which was
1791240121Sdelphijgenerated by GNU Autoconf 2.68.  Invocation command line was
1792128345Stjr
1793128345Stjr  $ $0 $@
1794128345Stjr
1795128345Stjr_ACEOF
1796170256Sdelphijexec 5>>config.log
1797128345Stjr{
1798128345Stjrcat <<_ASUNAME
1799128345Stjr## --------- ##
1800128345Stjr## Platform. ##
1801128345Stjr## --------- ##
1802128345Stjr
1803128345Stjrhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1804128345Stjruname -m = `(uname -m) 2>/dev/null || echo unknown`
1805128345Stjruname -r = `(uname -r) 2>/dev/null || echo unknown`
1806128345Stjruname -s = `(uname -s) 2>/dev/null || echo unknown`
1807128345Stjruname -v = `(uname -v) 2>/dev/null || echo unknown`
1808128345Stjr
1809128345Stjr/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1810128345Stjr/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1811128345Stjr
1812128345Stjr/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1813128345Stjr/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1814128345Stjr/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1815170256Sdelphij/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1816128345Stjr/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1817128345Stjr/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1818128345Stjr/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1819128345Stjr
1820128345Stjr_ASUNAME
1821128345Stjr
1822128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823128345Stjrfor as_dir in $PATH
1824128345Stjrdo
1825128345Stjr  IFS=$as_save_IFS
1826128345Stjr  test -z "$as_dir" && as_dir=.
1827221715Sdelphij    $as_echo "PATH: $as_dir"
1828221715Sdelphij  done
1829170256SdelphijIFS=$as_save_IFS
1830128345Stjr
1831128345Stjr} >&5
1832128345Stjr
1833128345Stjrcat >&5 <<_ACEOF
1834128345Stjr
1835128345Stjr
1836128345Stjr## ----------- ##
1837128345Stjr## Core tests. ##
1838128345Stjr## ----------- ##
1839128345Stjr
1840128345Stjr_ACEOF
1841128345Stjr
1842128345Stjr
1843128345Stjr# Keep a trace of the command line.
1844128345Stjr# Strip out --no-create and --no-recursion so they do not pile up.
1845170256Sdelphij# Strip out --silent because we don't want to record it for future runs.
1846128345Stjr# Also quote any args containing shell meta-characters.
1847170256Sdelphij# Make two passes to allow for proper duplicate-argument suppression.
1848128345Stjrac_configure_args=
1849170256Sdelphijac_configure_args0=
1850170256Sdelphijac_configure_args1=
1851170256Sdelphijac_must_keep_next=false
1852170256Sdelphijfor ac_pass in 1 2
1853128345Stjrdo
1854170256Sdelphij  for ac_arg
1855170256Sdelphij  do
1856170256Sdelphij    case $ac_arg in
1857170256Sdelphij    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1858170256Sdelphij    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1859170256Sdelphij    | -silent | --silent | --silen | --sile | --sil)
1860170256Sdelphij      continue ;;
1861170256Sdelphij    *\'*)
1862191930Sdelphij      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1863170256Sdelphij    esac
1864170256Sdelphij    case $ac_pass in
1865221715Sdelphij    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1866170256Sdelphij    2)
1867221715Sdelphij      as_fn_append ac_configure_args1 " '$ac_arg'"
1868170256Sdelphij      if test $ac_must_keep_next = true; then
1869170256Sdelphij	ac_must_keep_next=false # Got value, back to normal.
1870170256Sdelphij      else
1871170256Sdelphij	case $ac_arg in
1872170256Sdelphij	  *=* | --config-cache | -C | -disable-* | --disable-* \
1873170256Sdelphij	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1874170256Sdelphij	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1875170256Sdelphij	  | -with-* | --with-* | -without-* | --without-* | --x)
1876170256Sdelphij	    case "$ac_configure_args0 " in
1877170256Sdelphij	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1878170256Sdelphij	    esac
1879170256Sdelphij	    ;;
1880170256Sdelphij	  -* ) ac_must_keep_next=true ;;
1881170256Sdelphij	esac
1882170256Sdelphij      fi
1883221715Sdelphij      as_fn_append ac_configure_args " '$ac_arg'"
1884170256Sdelphij      ;;
1885170256Sdelphij    esac
1886170256Sdelphij  done
1887128345Stjrdone
1888221715Sdelphij{ ac_configure_args0=; unset ac_configure_args0;}
1889221715Sdelphij{ ac_configure_args1=; unset ac_configure_args1;}
1890128345Stjr
1891128345Stjr# When interrupted or exit'd, cleanup temporary files, and complete
1892128345Stjr# config.log.  We remove comments because anyway the quotes in there
1893128345Stjr# would cause problems or look ugly.
1894170256Sdelphij# WARNING: Use '\'' to represent an apostrophe within the trap.
1895170256Sdelphij# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1896128345Stjrtrap 'exit_status=$?
1897128345Stjr  # Save into config.log some information that might help in debugging.
1898128345Stjr  {
1899128345Stjr    echo
1900128345Stjr
1901221715Sdelphij    $as_echo "## ---------------- ##
1902128345Stjr## Cache variables. ##
1903221715Sdelphij## ---------------- ##"
1904128345Stjr    echo
1905128345Stjr    # The following way of writing the cache mishandles newlines in values,
1906170256Sdelphij(
1907170256Sdelphij  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1908170256Sdelphij    eval ac_val=\$$ac_var
1909170256Sdelphij    case $ac_val in #(
1910170256Sdelphij    *${as_nl}*)
1911170256Sdelphij      case $ac_var in #(
1912221715Sdelphij      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1913191930Sdelphij$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1914170256Sdelphij      esac
1915170256Sdelphij      case $ac_var in #(
1916170256Sdelphij      _ | IFS | as_nl) ;; #(
1917191930Sdelphij      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1918221715Sdelphij      *) { eval $ac_var=; unset $ac_var;} ;;
1919170256Sdelphij      esac ;;
1920170256Sdelphij    esac
1921170256Sdelphij  done
1922128345Stjr  (set) 2>&1 |
1923170256Sdelphij    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1924170256Sdelphij    *${as_nl}ac_space=\ *)
1925128345Stjr      sed -n \
1926170256Sdelphij	"s/'\''/'\''\\\\'\'''\''/g;
1927170256Sdelphij	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1928170256Sdelphij      ;; #(
1929128345Stjr    *)
1930170256Sdelphij      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1931128345Stjr      ;;
1932170256Sdelphij    esac |
1933170256Sdelphij    sort
1934170256Sdelphij)
1935128345Stjr    echo
1936128345Stjr
1937221715Sdelphij    $as_echo "## ----------------- ##
1938128345Stjr## Output variables. ##
1939221715Sdelphij## ----------------- ##"
1940128345Stjr    echo
1941128345Stjr    for ac_var in $ac_subst_vars
1942128345Stjr    do
1943170256Sdelphij      eval ac_val=\$$ac_var
1944170256Sdelphij      case $ac_val in
1945191930Sdelphij      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1946170256Sdelphij      esac
1947191930Sdelphij      $as_echo "$ac_var='\''$ac_val'\''"
1948128345Stjr    done | sort
1949128345Stjr    echo
1950128345Stjr
1951128345Stjr    if test -n "$ac_subst_files"; then
1952221715Sdelphij      $as_echo "## ------------------- ##
1953170256Sdelphij## File substitutions. ##
1954221715Sdelphij## ------------------- ##"
1955128345Stjr      echo
1956128345Stjr      for ac_var in $ac_subst_files
1957128345Stjr      do
1958170256Sdelphij	eval ac_val=\$$ac_var
1959170256Sdelphij	case $ac_val in
1960191930Sdelphij	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961170256Sdelphij	esac
1962191930Sdelphij	$as_echo "$ac_var='\''$ac_val'\''"
1963128345Stjr      done | sort
1964128345Stjr      echo
1965128345Stjr    fi
1966128345Stjr
1967128345Stjr    if test -s confdefs.h; then
1968221715Sdelphij      $as_echo "## ----------- ##
1969128345Stjr## confdefs.h. ##
1970221715Sdelphij## ----------- ##"
1971128345Stjr      echo
1972170256Sdelphij      cat confdefs.h
1973128345Stjr      echo
1974128345Stjr    fi
1975128345Stjr    test "$ac_signal" != 0 &&
1976191930Sdelphij      $as_echo "$as_me: caught signal $ac_signal"
1977191930Sdelphij    $as_echo "$as_me: exit $exit_status"
1978128345Stjr  } >&5
1979170256Sdelphij  rm -f core *.core core.conftest.* &&
1980170256Sdelphij    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1981128345Stjr    exit $exit_status
1982170256Sdelphij' 0
1983128345Stjrfor ac_signal in 1 2 13 15; do
1984221715Sdelphij  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1985128345Stjrdone
1986128345Stjrac_signal=0
1987128345Stjr
1988128345Stjr# confdefs.h avoids OS command line length limits that DEFS can exceed.
1989170256Sdelphijrm -f -r conftest* confdefs.h
1990128345Stjr
1991221715Sdelphij$as_echo "/* confdefs.h */" > confdefs.h
1992221715Sdelphij
1993128345Stjr# Predefined preprocessor variables.
1994128345Stjr
1995128345Stjrcat >>confdefs.h <<_ACEOF
1996128345Stjr#define PACKAGE_NAME "$PACKAGE_NAME"
1997128345Stjr_ACEOF
1998128345Stjr
1999128345Stjrcat >>confdefs.h <<_ACEOF
2000128345Stjr#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2001128345Stjr_ACEOF
2002128345Stjr
2003128345Stjrcat >>confdefs.h <<_ACEOF
2004128345Stjr#define PACKAGE_VERSION "$PACKAGE_VERSION"
2005128345Stjr_ACEOF
2006128345Stjr
2007128345Stjrcat >>confdefs.h <<_ACEOF
2008128345Stjr#define PACKAGE_STRING "$PACKAGE_STRING"
2009128345Stjr_ACEOF
2010128345Stjr
2011128345Stjrcat >>confdefs.h <<_ACEOF
2012128345Stjr#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2013128345Stjr_ACEOF
2014128345Stjr
2015221715Sdelphijcat >>confdefs.h <<_ACEOF
2016221715Sdelphij#define PACKAGE_URL "$PACKAGE_URL"
2017221715Sdelphij_ACEOF
2018128345Stjr
2019221715Sdelphij
2020128345Stjr# Let the site file select an alternate cache file if it wants to.
2021191930Sdelphij# Prefer an explicitly selected file to automatically selected ones.
2022191930Sdelphijac_site_file1=NONE
2023191930Sdelphijac_site_file2=NONE
2024170256Sdelphijif test -n "$CONFIG_SITE"; then
2025221715Sdelphij  # We do not want a PATH search for config.site.
2026221715Sdelphij  case $CONFIG_SITE in #((
2027221715Sdelphij    -*)  ac_site_file1=./$CONFIG_SITE;;
2028221715Sdelphij    */*) ac_site_file1=$CONFIG_SITE;;
2029221715Sdelphij    *)   ac_site_file1=./$CONFIG_SITE;;
2030221715Sdelphij  esac
2031170256Sdelphijelif test "x$prefix" != xNONE; then
2032191930Sdelphij  ac_site_file1=$prefix/share/config.site
2033191930Sdelphij  ac_site_file2=$prefix/etc/config.site
2034170256Sdelphijelse
2035191930Sdelphij  ac_site_file1=$ac_default_prefix/share/config.site
2036191930Sdelphij  ac_site_file2=$ac_default_prefix/etc/config.site
203760786Spsfi
2038191930Sdelphijfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2039170256Sdelphijdo
2040191930Sdelphij  test "x$ac_site_file" = xNONE && continue
2041221715Sdelphij  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2042221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2043191930Sdelphij$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2044128345Stjr    sed 's/^/| /' "$ac_site_file" >&5
2045221715Sdelphij    . "$ac_site_file" \
2046221715Sdelphij      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2047221715Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2048221715Sdelphijas_fn_error $? "failed to load site script $ac_site_file
2049221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; }
205060786Sps  fi
205160786Spsdone
205260786Sps
205360786Spsif test -r "$cache_file"; then
2054221715Sdelphij  # Some versions of bash will fail to source /dev/null (special files
2055221715Sdelphij  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2056221715Sdelphij  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2057221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2058191930Sdelphij$as_echo "$as_me: loading cache $cache_file" >&6;}
2059128345Stjr    case $cache_file in
2060170256Sdelphij      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2061170256Sdelphij      *)                      . "./$cache_file";;
2062128345Stjr    esac
2063128345Stjr  fi
206460786Spselse
2065221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2066191930Sdelphij$as_echo "$as_me: creating cache $cache_file" >&6;}
2067128345Stjr  >$cache_file
206860786Spsfi
206960786Sps
2070128345Stjr# Check that the precious variables saved in the cache have kept the same
2071128345Stjr# value.
2072128345Stjrac_cache_corrupted=false
2073170256Sdelphijfor ac_var in $ac_precious_vars; do
2074128345Stjr  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2075128345Stjr  eval ac_new_set=\$ac_env_${ac_var}_set
2076170256Sdelphij  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2077170256Sdelphij  eval ac_new_val=\$ac_env_${ac_var}_value
2078128345Stjr  case $ac_old_set,$ac_new_set in
2079128345Stjr    set,)
2080221715Sdelphij      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2081191930Sdelphij$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2082128345Stjr      ac_cache_corrupted=: ;;
2083128345Stjr    ,set)
2084221715Sdelphij      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2085191930Sdelphij$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2086128345Stjr      ac_cache_corrupted=: ;;
2087128345Stjr    ,);;
2088128345Stjr    *)
2089128345Stjr      if test "x$ac_old_val" != "x$ac_new_val"; then
2090191930Sdelphij	# differences in whitespace do not lead to failure.
2091191930Sdelphij	ac_old_val_w=`echo x $ac_old_val`
2092191930Sdelphij	ac_new_val_w=`echo x $ac_new_val`
2093191930Sdelphij	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2094221715Sdelphij	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2095191930Sdelphij$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2096191930Sdelphij	  ac_cache_corrupted=:
2097191930Sdelphij	else
2098221715Sdelphij	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2099191930Sdelphij$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2100191930Sdelphij	  eval $ac_var=\$ac_old_val
2101191930Sdelphij	fi
2102221715Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2103191930Sdelphij$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2104221715Sdelphij	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2105191930Sdelphij$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2106128345Stjr      fi;;
2107128345Stjr  esac
2108128345Stjr  # Pass precious variables to config.status.
2109128345Stjr  if test "$ac_new_set" = set; then
2110128345Stjr    case $ac_new_val in
2111191930Sdelphij    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2112128345Stjr    *) ac_arg=$ac_var=$ac_new_val ;;
2113128345Stjr    esac
2114128345Stjr    case " $ac_configure_args " in
2115128345Stjr      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2116221715Sdelphij      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2117128345Stjr    esac
2118128345Stjr  fi
2119128345Stjrdone
2120128345Stjrif $ac_cache_corrupted; then
2121221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2124191930Sdelphij$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2125221715Sdelphij  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2126128345Stjrfi
2127221715Sdelphij## -------------------- ##
2128221715Sdelphij## Main body of script. ##
2129221715Sdelphij## -------------------- ##
2130128345Stjr
2131170256Sdelphijac_ext=c
2132170256Sdelphijac_cpp='$CPP $CPPFLAGS'
2133170256Sdelphijac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134170256Sdelphijac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2135170256Sdelphijac_compiler_gnu=$ac_cv_c_compiler_gnu
2136128345Stjr
2137128345Stjr
2138128345Stjr
2139170256Sdelphijac_config_headers="$ac_config_headers defines.h"
2140128345Stjr
2141128345Stjr
2142128345Stjr# Checks for programs.
2143128345Stjrac_ext=c
2144128345Stjrac_cpp='$CPP $CPPFLAGS'
2145128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu
2148128345Stjrif test -n "$ac_tool_prefix"; then
2149128345Stjr  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2150128345Stjrset dummy ${ac_tool_prefix}gcc; ac_word=$2
2151221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2152191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2153240121Sdelphijif ${ac_cv_prog_CC+:} false; then :
2154191930Sdelphij  $as_echo_n "(cached) " >&6
2155128345Stjrelse
2156128345Stjr  if test -n "$CC"; then
2157128345Stjr  ac_cv_prog_CC="$CC" # Let the user override the test.
2158128345Stjrelse
2159128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160128345Stjrfor as_dir in $PATH
2161128345Stjrdo
2162128345Stjr  IFS=$as_save_IFS
2163128345Stjr  test -z "$as_dir" && as_dir=.
2164221715Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2165170256Sdelphij  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166128345Stjr    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2167221715Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2168128345Stjr    break 2
216960786Sps  fi
2170128345Stjrdone
2171221715Sdelphij  done
2172170256SdelphijIFS=$as_save_IFS
2173128345Stjr
2174128345Stjrfi
2175128345Stjrfi
2176128345StjrCC=$ac_cv_prog_CC
2177128345Stjrif test -n "$CC"; then
2178221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2179191930Sdelphij$as_echo "$CC" >&6; }
218060786Spselse
2181221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2182191930Sdelphij$as_echo "no" >&6; }
218360786Spsfi
218460786Sps
2185170256Sdelphij
2186128345Stjrfi
2187128345Stjrif test -z "$ac_cv_prog_CC"; then
2188128345Stjr  ac_ct_CC=$CC
2189128345Stjr  # Extract the first word of "gcc", so it can be a program name with args.
2190128345Stjrset dummy gcc; ac_word=$2
2191221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2192191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2193240121Sdelphijif ${ac_cv_prog_ac_ct_CC+:} false; then :
2194191930Sdelphij  $as_echo_n "(cached) " >&6
2195128345Stjrelse
2196128345Stjr  if test -n "$ac_ct_CC"; then
2197128345Stjr  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198128345Stjrelse
2199128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200128345Stjrfor as_dir in $PATH
2201128345Stjrdo
2202128345Stjr  IFS=$as_save_IFS
2203128345Stjr  test -z "$as_dir" && as_dir=.
2204221715Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2205170256Sdelphij  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206128345Stjr    ac_cv_prog_ac_ct_CC="gcc"
2207221715Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2208128345Stjr    break 2
2209128345Stjr  fi
2210128345Stjrdone
2211221715Sdelphij  done
2212170256SdelphijIFS=$as_save_IFS
221360786Sps
2214128345Stjrfi
2215128345Stjrfi
2216128345Stjrac_ct_CC=$ac_cv_prog_ac_ct_CC
2217128345Stjrif test -n "$ac_ct_CC"; then
2218221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2219191930Sdelphij$as_echo "$ac_ct_CC" >&6; }
2220128345Stjrelse
2221221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222191930Sdelphij$as_echo "no" >&6; }
2223128345Stjrfi
222460786Sps
2225170256Sdelphij  if test "x$ac_ct_CC" = x; then
2226170256Sdelphij    CC=""
2227170256Sdelphij  else
2228170256Sdelphij    case $cross_compiling:$ac_tool_warned in
2229170256Sdelphijyes:)
2230221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2231191930Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2232170256Sdelphijac_tool_warned=yes ;;
2233170256Sdelphijesac
2234170256Sdelphij    CC=$ac_ct_CC
2235170256Sdelphij  fi
2236128345Stjrelse
2237128345Stjr  CC="$ac_cv_prog_CC"
2238128345Stjrfi
223960786Sps
2240128345Stjrif test -z "$CC"; then
2241170256Sdelphij          if test -n "$ac_tool_prefix"; then
2242170256Sdelphij    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2243128345Stjrset dummy ${ac_tool_prefix}cc; ac_word=$2
2244221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2245191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2246240121Sdelphijif ${ac_cv_prog_CC+:} false; then :
2247191930Sdelphij  $as_echo_n "(cached) " >&6
224860786Spselse
224960786Sps  if test -n "$CC"; then
225060786Sps  ac_cv_prog_CC="$CC" # Let the user override the test.
225160786Spselse
2252128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253128345Stjrfor as_dir in $PATH
2254128345Stjrdo
2255128345Stjr  IFS=$as_save_IFS
2256128345Stjr  test -z "$as_dir" && as_dir=.
2257221715Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2258170256Sdelphij  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2259128345Stjr    ac_cv_prog_CC="${ac_tool_prefix}cc"
2260221715Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2261128345Stjr    break 2
2262128345Stjr  fi
2263128345Stjrdone
2264221715Sdelphij  done
2265170256SdelphijIFS=$as_save_IFS
2266128345Stjr
226760786Spsfi
226860786Spsfi
2269128345StjrCC=$ac_cv_prog_CC
227060786Spsif test -n "$CC"; then
2271221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2272191930Sdelphij$as_echo "$CC" >&6; }
227360786Spselse
2274221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2275191930Sdelphij$as_echo "no" >&6; }
227660786Spsfi
227760786Sps
2278170256Sdelphij
2279128345Stjr  fi
2280128345Stjrfi
228160786Spsif test -z "$CC"; then
228260786Sps  # Extract the first word of "cc", so it can be a program name with args.
228360786Spsset dummy cc; ac_word=$2
2284221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2285191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2286240121Sdelphijif ${ac_cv_prog_CC+:} false; then :
2287191930Sdelphij  $as_echo_n "(cached) " >&6
228860786Spselse
228960786Sps  if test -n "$CC"; then
229060786Sps  ac_cv_prog_CC="$CC" # Let the user override the test.
229160786Spselse
229260786Sps  ac_prog_rejected=no
2293128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294128345Stjrfor as_dir in $PATH
2295128345Stjrdo
2296128345Stjr  IFS=$as_save_IFS
2297128345Stjr  test -z "$as_dir" && as_dir=.
2298221715Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2299170256Sdelphij  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300128345Stjr    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2301128345Stjr       ac_prog_rejected=yes
2302128345Stjr       continue
2303128345Stjr     fi
2304128345Stjr    ac_cv_prog_CC="cc"
2305221715Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2306128345Stjr    break 2
2307128345Stjr  fi
2308128345Stjrdone
2309221715Sdelphij  done
2310170256SdelphijIFS=$as_save_IFS
2311128345Stjr
231260786Spsif test $ac_prog_rejected = yes; then
231360786Sps  # We found a bogon in the path, so make sure we never use it.
231460786Sps  set dummy $ac_cv_prog_CC
231560786Sps  shift
2316128345Stjr  if test $# != 0; then
231760786Sps    # We chose a different compiler from the bogus one.
231860786Sps    # However, it has the same basename, so the bogon will be chosen
231960786Sps    # first if we set CC to just the basename; use the full file name.
232060786Sps    shift
2321128345Stjr    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
232260786Sps  fi
232360786Spsfi
232460786Spsfi
232560786Spsfi
2326128345StjrCC=$ac_cv_prog_CC
232760786Spsif test -n "$CC"; then
2328221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2329191930Sdelphij$as_echo "$CC" >&6; }
233060786Spselse
2331221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2332191930Sdelphij$as_echo "no" >&6; }
233360786Spsfi
233460786Sps
2335170256Sdelphij
2336128345Stjrfi
2337128345Stjrif test -z "$CC"; then
2338128345Stjr  if test -n "$ac_tool_prefix"; then
2339170256Sdelphij  for ac_prog in cl.exe
2340128345Stjr  do
2341128345Stjr    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2342128345Stjrset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2343221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2344191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2345240121Sdelphijif ${ac_cv_prog_CC+:} false; then :
2346191930Sdelphij  $as_echo_n "(cached) " >&6
234789019Spselse
234889019Sps  if test -n "$CC"; then
234989019Sps  ac_cv_prog_CC="$CC" # Let the user override the test.
235089019Spselse
2351128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352128345Stjrfor as_dir in $PATH
2353128345Stjrdo
2354128345Stjr  IFS=$as_save_IFS
2355128345Stjr  test -z "$as_dir" && as_dir=.
2356221715Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2357170256Sdelphij  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358128345Stjr    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2359221715Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2360128345Stjr    break 2
2361128345Stjr  fi
2362128345Stjrdone
2363221715Sdelphij  done
2364170256SdelphijIFS=$as_save_IFS
2365128345Stjr
236689019Spsfi
236789019Spsfi
2368128345StjrCC=$ac_cv_prog_CC
236989019Spsif test -n "$CC"; then
2370221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2371191930Sdelphij$as_echo "$CC" >&6; }
237289019Spselse
2373221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2374191930Sdelphij$as_echo "no" >&6; }
237589019Spsfi
2376128345Stjr
2377170256Sdelphij
2378128345Stjr    test -n "$CC" && break
2379128345Stjr  done
2380128345Stjrfi
2381128345Stjrif test -z "$CC"; then
2382128345Stjr  ac_ct_CC=$CC
2383170256Sdelphij  for ac_prog in cl.exe
2384128345Stjrdo
2385128345Stjr  # Extract the first word of "$ac_prog", so it can be a program name with args.
2386128345Stjrset dummy $ac_prog; ac_word=$2
2387221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2388191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; }
2389240121Sdelphijif ${ac_cv_prog_ac_ct_CC+:} false; then :
2390191930Sdelphij  $as_echo_n "(cached) " >&6
2391128345Stjrelse
2392128345Stjr  if test -n "$ac_ct_CC"; then
2393128345Stjr  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2394128345Stjrelse
2395128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396128345Stjrfor as_dir in $PATH
2397128345Stjrdo
2398128345Stjr  IFS=$as_save_IFS
2399128345Stjr  test -z "$as_dir" && as_dir=.
2400221715Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
2401170256Sdelphij  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402128345Stjr    ac_cv_prog_ac_ct_CC="$ac_prog"
2403221715Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2404128345Stjr    break 2
240589019Sps  fi
2406128345Stjrdone
2407221715Sdelphij  done
2408170256SdelphijIFS=$as_save_IFS
2409128345Stjr
241060786Spsfi
2411128345Stjrfi
2412128345Stjrac_ct_CC=$ac_cv_prog_ac_ct_CC
2413128345Stjrif test -n "$ac_ct_CC"; then
2414221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2415191930Sdelphij$as_echo "$ac_ct_CC" >&6; }
2416128345Stjrelse
2417221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2418191930Sdelphij$as_echo "no" >&6; }
2419128345Stjrfi
242060786Sps
2421170256Sdelphij
2422128345Stjr  test -n "$ac_ct_CC" && break
2423128345Stjrdone
242460786Sps
2425170256Sdelphij  if test "x$ac_ct_CC" = x; then
2426170256Sdelphij    CC=""
2427170256Sdelphij  else
2428170256Sdelphij    case $cross_compiling:$ac_tool_warned in
2429170256Sdelphijyes:)
2430221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2431191930Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2432170256Sdelphijac_tool_warned=yes ;;
2433170256Sdelphijesac
2434170256Sdelphij    CC=$ac_ct_CC
2435170256Sdelphij  fi
2436128345Stjrfi
243760786Sps
2438128345Stjrfi
243989019Sps
2440128345Stjr
2441221715Sdelphijtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443221715Sdelphijas_fn_error $? "no acceptable C compiler found in \$PATH
2444221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; }
2445128345Stjr
2446128345Stjr# Provide some information about the compiler.
2447221715Sdelphij$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2448191930Sdelphijset X $ac_compile
2449191930Sdelphijac_compiler=$2
2450221715Sdelphijfor ac_option in --version -v -V -qversion; do
2451221715Sdelphij  { { ac_try="$ac_compiler $ac_option >&5"
2452170256Sdelphijcase "(($ac_try" in
2453170256Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454170256Sdelphij  *) ac_try_echo=$ac_try;;
2455170256Sdelphijesac
2456221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457221715Sdelphij$as_echo "$ac_try_echo"; } >&5
2458221715Sdelphij  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2459128345Stjr  ac_status=$?
2460221715Sdelphij  if test -s conftest.err; then
2461221715Sdelphij    sed '10a\
2462221715Sdelphij... rest of stderr output deleted ...
2463221715Sdelphij         10q' conftest.err >conftest.er1
2464221715Sdelphij    cat conftest.er1 >&5
2465221715Sdelphij  fi
2466221715Sdelphij  rm -f conftest.er1 conftest.err
2467221715Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468221715Sdelphij  test $ac_status = 0; }
2469221715Sdelphijdone
2470128345Stjr
2471221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472170256Sdelphij/* end confdefs.h.  */
247389019Sps
2474128345Stjrint
2475128345Stjrmain ()
2476128345Stjr{
2477128345Stjr
2478128345Stjr  ;
2479128345Stjr  return 0;
2480128345Stjr}
2481128345Stjr_ACEOF
2482128345Stjrac_clean_files_save=$ac_clean_files
2483191930Sdelphijac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2484128345Stjr# Try to create an executable without -o first, disregard a.out.
2485128345Stjr# It will help us diagnose broken compilers, and finding out an intuition
2486128345Stjr# of exeext.
2487221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2488221715Sdelphij$as_echo_n "checking whether the C compiler works... " >&6; }
2489191930Sdelphijac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2490191930Sdelphij
2491191930Sdelphij# The possible output files:
2492191930Sdelphijac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2493191930Sdelphij
2494170256Sdelphijac_rmfiles=
2495170256Sdelphijfor ac_file in $ac_files
2496170256Sdelphijdo
2497170256Sdelphij  case $ac_file in
2498191930Sdelphij    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2499170256Sdelphij    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2500170256Sdelphij  esac
2501170256Sdelphijdone
2502170256Sdelphijrm -f $ac_rmfiles
2503170256Sdelphij
2504221715Sdelphijif { { ac_try="$ac_link_default"
2505170256Sdelphijcase "(($ac_try" in
2506170256Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507170256Sdelphij  *) ac_try_echo=$ac_try;;
2508170256Sdelphijesac
2509221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2510221715Sdelphij$as_echo "$ac_try_echo"; } >&5
2511170256Sdelphij  (eval "$ac_link_default") 2>&5
2512128345Stjr  ac_status=$?
2513221715Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514221715Sdelphij  test $ac_status = 0; }; then :
2515170256Sdelphij  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2516170256Sdelphij# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2517170256Sdelphij# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2518170256Sdelphij# so that the user can short-circuit this test for compilers unknown to
2519170256Sdelphij# Autoconf.
2520170256Sdelphijfor ac_file in $ac_files ''
2521170256Sdelphijdo
2522128345Stjr  test -f "$ac_file" || continue
2523128345Stjr  case $ac_file in
2524191930Sdelphij    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2525170256Sdelphij	;;
2526170256Sdelphij    [ab].out )
2527170256Sdelphij	# We found the default executable, but exeext='' is most
2528170256Sdelphij	# certainly right.
2529170256Sdelphij	break;;
2530170256Sdelphij    *.* )
2531221715Sdelphij	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2532170256Sdelphij	then :; else
2533170256Sdelphij	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2534170256Sdelphij	fi
2535170256Sdelphij	# We set ac_cv_exeext here because the later test for it is not
2536170256Sdelphij	# safe: cross compilers may not add the suffix if given an `-o'
2537170256Sdelphij	# argument, so we may need to know it at that point already.
2538170256Sdelphij	# Even if this section looks crufty: it has the advantage of
2539170256Sdelphij	# actually working.
2540170256Sdelphij	break;;
2541170256Sdelphij    * )
2542170256Sdelphij	break;;
2543128345Stjr  esac
2544128345Stjrdone
2545170256Sdelphijtest "$ac_cv_exeext" = no && ac_cv_exeext=
2546170256Sdelphij
2547128345Stjrelse
2548170256Sdelphij  ac_file=''
2549170256Sdelphijfi
2550221715Sdelphijif test -z "$ac_file"; then :
2551221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552221715Sdelphij$as_echo "no" >&6; }
2553221715Sdelphij$as_echo "$as_me: failed program was:" >&5
2554170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
2555170256Sdelphij
2556221715Sdelphij{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558221715Sdelphijas_fn_error 77 "C compiler cannot create executables
2559221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; }
2560221715Sdelphijelse
2561221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2562221715Sdelphij$as_echo "yes" >&6; }
2563128345Stjrfi
2564221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2565221715Sdelphij$as_echo_n "checking for C compiler default output file name... " >&6; }
2566221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2567221715Sdelphij$as_echo "$ac_file" >&6; }
2568128345Stjrac_exeext=$ac_cv_exeext
2569128345Stjr
2570191930Sdelphijrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2571128345Stjrac_clean_files=$ac_clean_files_save
2572221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2573191930Sdelphij$as_echo_n "checking for suffix of executables... " >&6; }
2574221715Sdelphijif { { ac_try="$ac_link"
2575170256Sdelphijcase "(($ac_try" in
2576170256Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577170256Sdelphij  *) ac_try_echo=$ac_try;;
2578170256Sdelphijesac
2579221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580221715Sdelphij$as_echo "$ac_try_echo"; } >&5
2581170256Sdelphij  (eval "$ac_link") 2>&5
2582128345Stjr  ac_status=$?
2583221715Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2584221715Sdelphij  test $ac_status = 0; }; then :
2585128345Stjr  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2586128345Stjr# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2587128345Stjr# work properly (i.e., refer to `conftest.exe'), while it won't with
2588128345Stjr# `rm'.
2589128345Stjrfor ac_file in conftest.exe conftest conftest.*; do
2590128345Stjr  test -f "$ac_file" || continue
2591128345Stjr  case $ac_file in
2592191930Sdelphij    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2593128345Stjr    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2594170256Sdelphij	  break;;
2595128345Stjr    * ) break;;
2596128345Stjr  esac
2597128345Stjrdone
2598128345Stjrelse
2599221715Sdelphij  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601221715Sdelphijas_fn_error $? "cannot compute suffix of executables: cannot compile and link
2602221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; }
260360786Spsfi
2604221715Sdelphijrm -f conftest conftest$ac_cv_exeext
2605221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2606191930Sdelphij$as_echo "$ac_cv_exeext" >&6; }
2607128345Stjr
2608128345Stjrrm -f conftest.$ac_ext
2609128345StjrEXEEXT=$ac_cv_exeext
2610128345Stjrac_exeext=$EXEEXT
2611221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612221715Sdelphij/* end confdefs.h.  */
2613221715Sdelphij#include <stdio.h>
2614221715Sdelphijint
2615221715Sdelphijmain ()
2616221715Sdelphij{
2617221715SdelphijFILE *f = fopen ("conftest.out", "w");
2618221715Sdelphij return ferror (f) || fclose (f) != 0;
2619221715Sdelphij
2620221715Sdelphij  ;
2621221715Sdelphij  return 0;
2622221715Sdelphij}
2623221715Sdelphij_ACEOF
2624221715Sdelphijac_clean_files="$ac_clean_files conftest.out"
2625221715Sdelphij# Check that the compiler produces executables we can run.  If not, either
2626221715Sdelphij# the compiler is broken, or we cross compile.
2627221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2628221715Sdelphij$as_echo_n "checking whether we are cross compiling... " >&6; }
2629221715Sdelphijif test "$cross_compiling" != yes; then
2630221715Sdelphij  { { ac_try="$ac_link"
2631221715Sdelphijcase "(($ac_try" in
2632221715Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633221715Sdelphij  *) ac_try_echo=$ac_try;;
2634221715Sdelphijesac
2635221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2636221715Sdelphij$as_echo "$ac_try_echo"; } >&5
2637221715Sdelphij  (eval "$ac_link") 2>&5
2638221715Sdelphij  ac_status=$?
2639221715Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2640221715Sdelphij  test $ac_status = 0; }
2641221715Sdelphij  if { ac_try='./conftest$ac_cv_exeext'
2642221715Sdelphij  { { case "(($ac_try" in
2643221715Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644221715Sdelphij  *) ac_try_echo=$ac_try;;
2645221715Sdelphijesac
2646221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2647221715Sdelphij$as_echo "$ac_try_echo"; } >&5
2648221715Sdelphij  (eval "$ac_try") 2>&5
2649221715Sdelphij  ac_status=$?
2650221715Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651221715Sdelphij  test $ac_status = 0; }; }; then
2652221715Sdelphij    cross_compiling=no
2653221715Sdelphij  else
2654221715Sdelphij    if test "$cross_compiling" = maybe; then
2655221715Sdelphij	cross_compiling=yes
2656221715Sdelphij    else
2657221715Sdelphij	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658221715Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659221715Sdelphijas_fn_error $? "cannot run C compiled programs.
2660221715SdelphijIf you meant to cross compile, use \`--host'.
2661221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; }
2662221715Sdelphij    fi
2663221715Sdelphij  fi
2664221715Sdelphijfi
2665221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2666221715Sdelphij$as_echo "$cross_compiling" >&6; }
2667221715Sdelphij
2668221715Sdelphijrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2669221715Sdelphijac_clean_files=$ac_clean_files_save
2670221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2671191930Sdelphij$as_echo_n "checking for suffix of object files... " >&6; }
2672240121Sdelphijif ${ac_cv_objext+:} false; then :
2673191930Sdelphij  $as_echo_n "(cached) " >&6
267460786Spselse
2675221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676170256Sdelphij/* end confdefs.h.  */
2677128345Stjr
2678128345Stjrint
2679128345Stjrmain ()
2680128345Stjr{
2681128345Stjr
2682128345Stjr  ;
2683128345Stjr  return 0;
2684128345Stjr}
2685128345Stjr_ACEOF
2686128345Stjrrm -f conftest.o conftest.obj
2687221715Sdelphijif { { ac_try="$ac_compile"
2688170256Sdelphijcase "(($ac_try" in
2689170256Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690170256Sdelphij  *) ac_try_echo=$ac_try;;
2691170256Sdelphijesac
2692221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693221715Sdelphij$as_echo "$ac_try_echo"; } >&5
2694170256Sdelphij  (eval "$ac_compile") 2>&5
2695128345Stjr  ac_status=$?
2696221715Sdelphij  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2697221715Sdelphij  test $ac_status = 0; }; then :
2698170256Sdelphij  for ac_file in conftest.o conftest.obj conftest.*; do
2699170256Sdelphij  test -f "$ac_file" || continue;
2700128345Stjr  case $ac_file in
2701191930Sdelphij    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2702128345Stjr    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2703128345Stjr       break;;
2704128345Stjr  esac
2705128345Stjrdone
270660786Spselse
2707191930Sdelphij  $as_echo "$as_me: failed program was:" >&5
2708170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
2709170256Sdelphij
2710221715Sdelphij{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712221715Sdelphijas_fn_error $? "cannot compute suffix of object files: cannot compile
2713221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; }
271460786Spsfi
2715128345Stjrrm -f conftest.$ac_cv_objext conftest.$ac_ext
271660786Spsfi
2717221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2718191930Sdelphij$as_echo "$ac_cv_objext" >&6; }
2719128345StjrOBJEXT=$ac_cv_objext
2720128345Stjrac_objext=$OBJEXT
2721221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2722191930Sdelphij$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2723240121Sdelphijif ${ac_cv_c_compiler_gnu+:} false; then :
2724191930Sdelphij  $as_echo_n "(cached) " >&6
2725128345Stjrelse
2726221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727170256Sdelphij/* end confdefs.h.  */
272860786Sps
2729128345Stjrint
2730128345Stjrmain ()
2731128345Stjr{
2732128345Stjr#ifndef __GNUC__
2733128345Stjr       choke me
2734128345Stjr#endif
273560786Sps
2736128345Stjr  ;
2737128345Stjr  return 0;
2738128345Stjr}
2739128345Stjr_ACEOF
2740221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
2741128345Stjr  ac_compiler_gnu=yes
274289019Spselse
2743221715Sdelphij  ac_compiler_gnu=no
274489019Spsfi
2745170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746128345Stjrac_cv_c_compiler_gnu=$ac_compiler_gnu
274789019Sps
2748128345Stjrfi
2749221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2750191930Sdelphij$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2751191930Sdelphijif test $ac_compiler_gnu = yes; then
2752191930Sdelphij  GCC=yes
2753191930Sdelphijelse
2754191930Sdelphij  GCC=
2755191930Sdelphijfi
2756128345Stjrac_test_CFLAGS=${CFLAGS+set}
2757128345Stjrac_save_CFLAGS=$CFLAGS
2758221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2759191930Sdelphij$as_echo_n "checking whether $CC accepts -g... " >&6; }
2760240121Sdelphijif ${ac_cv_prog_cc_g+:} false; then :
2761191930Sdelphij  $as_echo_n "(cached) " >&6
276260786Spselse
2763170256Sdelphij  ac_save_c_werror_flag=$ac_c_werror_flag
2764170256Sdelphij   ac_c_werror_flag=yes
2765170256Sdelphij   ac_cv_prog_cc_g=no
2766170256Sdelphij   CFLAGS="-g"
2767221715Sdelphij   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768170256Sdelphij/* end confdefs.h.  */
2769128345Stjr
2770128345Stjrint
2771128345Stjrmain ()
2772128345Stjr{
2773128345Stjr
2774128345Stjr  ;
2775128345Stjr  return 0;
2776128345Stjr}
2777128345Stjr_ACEOF
2778221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
2779170256Sdelphij  ac_cv_prog_cc_g=yes
2780170256Sdelphijelse
2781221715Sdelphij  CFLAGS=""
2782221715Sdelphij      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783170256Sdelphij/* end confdefs.h.  */
2784170256Sdelphij
2785170256Sdelphijint
2786170256Sdelphijmain ()
2787170256Sdelphij{
2788170256Sdelphij
2789170256Sdelphij  ;
2790170256Sdelphij  return 0;
2791170256Sdelphij}
2792170256Sdelphij_ACEOF
2793221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
2794221715Sdelphij
2795170256Sdelphijelse
2796221715Sdelphij  ac_c_werror_flag=$ac_save_c_werror_flag
2797170256Sdelphij	 CFLAGS="-g"
2798221715Sdelphij	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799170256Sdelphij/* end confdefs.h.  */
2800170256Sdelphij
2801170256Sdelphijint
2802170256Sdelphijmain ()
2803170256Sdelphij{
2804170256Sdelphij
2805170256Sdelphij  ;
2806170256Sdelphij  return 0;
2807170256Sdelphij}
2808170256Sdelphij_ACEOF
2809221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
281060786Sps  ac_cv_prog_cc_g=yes
281160786Spsfi
2812170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
281360786Spsfi
2814170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815170256Sdelphijfi
2816170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817170256Sdelphij   ac_c_werror_flag=$ac_save_c_werror_flag
2818170256Sdelphijfi
2819221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2820191930Sdelphij$as_echo "$ac_cv_prog_cc_g" >&6; }
282189019Spsif test "$ac_test_CFLAGS" = set; then
2822128345Stjr  CFLAGS=$ac_save_CFLAGS
282389019Spselif test $ac_cv_prog_cc_g = yes; then
282489019Sps  if test "$GCC" = yes; then
282560786Sps    CFLAGS="-g -O2"
282660786Sps  else
282789019Sps    CFLAGS="-g"
282889019Sps  fi
282989019Spselse
283089019Sps  if test "$GCC" = yes; then
283160786Sps    CFLAGS="-O2"
283289019Sps  else
283389019Sps    CFLAGS=
283460786Sps  fi
283560786Spsfi
2836221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2837191930Sdelphij$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2838240121Sdelphijif ${ac_cv_prog_cc_c89+:} false; then :
2839191930Sdelphij  $as_echo_n "(cached) " >&6
2840128345Stjrelse
2841170256Sdelphij  ac_cv_prog_cc_c89=no
2842128345Stjrac_save_CC=$CC
2843221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844170256Sdelphij/* end confdefs.h.  */
2845128345Stjr#include <stdarg.h>
2846128345Stjr#include <stdio.h>
2847128345Stjr#include <sys/types.h>
2848128345Stjr#include <sys/stat.h>
2849128345Stjr/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2850128345Stjrstruct buf { int x; };
2851128345StjrFILE * (*rcsopen) (struct buf *, struct stat *, int);
2852128345Stjrstatic char *e (p, i)
2853128345Stjr     char **p;
2854128345Stjr     int i;
2855128345Stjr{
2856128345Stjr  return p[i];
2857128345Stjr}
2858128345Stjrstatic char *f (char * (*g) (char **, int), char **p, ...)
2859128345Stjr{
2860128345Stjr  char *s;
2861128345Stjr  va_list v;
2862128345Stjr  va_start (v,p);
2863128345Stjr  s = g (p, va_arg (v,int));
2864128345Stjr  va_end (v);
2865128345Stjr  return s;
2866128345Stjr}
2867170256Sdelphij
2868170256Sdelphij/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2869170256Sdelphij   function prototypes and stuff, but not '\xHH' hex character constants.
2870170256Sdelphij   These don't provoke an error unfortunately, instead are silently treated
2871170256Sdelphij   as 'x'.  The following induces an error, until -std is added to get
2872170256Sdelphij   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2873170256Sdelphij   array size at least.  It's necessary to write '\x00'==0 to get something
2874170256Sdelphij   that's true only with -std.  */
2875170256Sdelphijint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2876170256Sdelphij
2877170256Sdelphij/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2878170256Sdelphij   inside strings and character constants.  */
2879170256Sdelphij#define FOO(x) 'x'
2880170256Sdelphijint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2881170256Sdelphij
2882128345Stjrint test (int i, double x);
2883128345Stjrstruct s1 {int (*f) (int a);};
2884128345Stjrstruct s2 {int (*f) (double a);};
2885128345Stjrint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2886128345Stjrint argc;
2887128345Stjrchar **argv;
2888128345Stjrint
2889128345Stjrmain ()
2890128345Stjr{
2891128345Stjrreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2892128345Stjr  ;
2893128345Stjr  return 0;
2894128345Stjr}
2895128345Stjr_ACEOF
2896170256Sdelphijfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2897170256Sdelphij	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2898128345Stjrdo
2899128345Stjr  CC="$ac_save_CC $ac_arg"
2900221715Sdelphij  if ac_fn_c_try_compile "$LINENO"; then :
2901170256Sdelphij  ac_cv_prog_cc_c89=$ac_arg
2902128345Stjrfi
2903170256Sdelphijrm -f core conftest.err conftest.$ac_objext
2904170256Sdelphij  test "x$ac_cv_prog_cc_c89" != "xno" && break
2905128345Stjrdone
2906170256Sdelphijrm -f conftest.$ac_ext
2907128345StjrCC=$ac_save_CC
290860786Sps
2909128345Stjrfi
2910170256Sdelphij# AC_CACHE_VAL
2911170256Sdelphijcase "x$ac_cv_prog_cc_c89" in
2912170256Sdelphij  x)
2913221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2914191930Sdelphij$as_echo "none needed" >&6; } ;;
2915170256Sdelphij  xno)
2916221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2917191930Sdelphij$as_echo "unsupported" >&6; } ;;
2918128345Stjr  *)
2919170256Sdelphij    CC="$CC $ac_cv_prog_cc_c89"
2920221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2921191930Sdelphij$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2922128345Stjresac
2923221715Sdelphijif test "x$ac_cv_prog_cc_c89" != xno; then :
2924128345Stjr
2925221715Sdelphijfi
292660786Sps
2927128345Stjrac_ext=c
2928128345Stjrac_cpp='$CPP $CPPFLAGS'
2929128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu
2932128345Stjr
2933128345Stjr
2934221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
2935191930Sdelphij$as_echo_n "checking for library containing strerror... " >&6; }
2936240121Sdelphijif ${ac_cv_search_strerror+:} false; then :
2937191930Sdelphij  $as_echo_n "(cached) " >&6
2938128345Stjrelse
2939128345Stjr  ac_func_search_save_LIBS=$LIBS
2940221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941170256Sdelphij/* end confdefs.h.  */
2942128345Stjr
2943170256Sdelphij/* Override any GCC internal prototype to avoid an error.
2944170256Sdelphij   Use char because int might match the return type of a GCC
2945170256Sdelphij   builtin and then its argument prototype would still apply.  */
2946128345Stjr#ifdef __cplusplus
2947128345Stjrextern "C"
2948128345Stjr#endif
2949128345Stjrchar strerror ();
2950128345Stjrint
2951128345Stjrmain ()
2952128345Stjr{
2953170256Sdelphijreturn strerror ();
2954128345Stjr  ;
2955128345Stjr  return 0;
2956128345Stjr}
2957128345Stjr_ACEOF
2958170256Sdelphijfor ac_lib in '' cposix; do
2959170256Sdelphij  if test -z "$ac_lib"; then
2960170256Sdelphij    ac_res="none required"
2961170256Sdelphij  else
2962170256Sdelphij    ac_res=-l$ac_lib
2963170256Sdelphij    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2964170256Sdelphij  fi
2965221715Sdelphij  if ac_fn_c_try_link "$LINENO"; then :
2966170256Sdelphij  ac_cv_search_strerror=$ac_res
2967128345Stjrfi
2968221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
2969221715Sdelphij    conftest$ac_exeext
2970240121Sdelphij  if ${ac_cv_search_strerror+:} false; then :
2971170256Sdelphij  break
2972170256Sdelphijfi
2973170256Sdelphijdone
2974240121Sdelphijif ${ac_cv_search_strerror+:} false; then :
2975221715Sdelphij
2976128345Stjrelse
2977170256Sdelphij  ac_cv_search_strerror=no
2978128345Stjrfi
2979170256Sdelphijrm conftest.$ac_ext
2980128345StjrLIBS=$ac_func_search_save_LIBS
2981128345Stjrfi
2982221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
2983191930Sdelphij$as_echo "$ac_cv_search_strerror" >&6; }
2984170256Sdelphijac_res=$ac_cv_search_strerror
2985221715Sdelphijif test "$ac_res" != no; then :
2986170256Sdelphij  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2987128345Stjr
2988128345Stjrfi
2989128345Stjr
2990128345Stjrac_ext=c
2991128345Stjrac_cpp='$CPP $CPPFLAGS'
2992128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu
2995221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2996191930Sdelphij$as_echo_n "checking how to run the C preprocessor... " >&6; }
299760786Sps# On Suns, sometimes $CPP names a directory.
299860786Spsif test -n "$CPP" && test -d "$CPP"; then
299960786Sps  CPP=
300060786Spsfi
300160786Spsif test -z "$CPP"; then
3002240121Sdelphij  if ${ac_cv_prog_CPP+:} false; then :
3003191930Sdelphij  $as_echo_n "(cached) " >&6
300460786Spselse
3005128345Stjr      # Double quotes because CPP needs to be expanded
3006128345Stjr    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3007128345Stjr    do
3008128345Stjr      ac_preproc_ok=false
3009128345Stjrfor ac_c_preproc_warn_flag in '' yes
3010128345Stjrdo
3011128345Stjr  # Use a header file that comes with gcc, so configuring glibc
3012128345Stjr  # with a fresh cross-compiler works.
3013170256Sdelphij  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014170256Sdelphij  # <limits.h> exists even on freestanding compilers.
301560786Sps  # On the NeXT, cc -E runs the code through the compiler's parser,
3016128345Stjr  # not just through cpp. "Syntax error" is here to catch this case.
3017221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018170256Sdelphij/* end confdefs.h.  */
3019170256Sdelphij#ifdef __STDC__
3020170256Sdelphij# include <limits.h>
3021170256Sdelphij#else
3022170256Sdelphij# include <assert.h>
3023170256Sdelphij#endif
3024170256Sdelphij		     Syntax error
3025170256Sdelphij_ACEOF
3026221715Sdelphijif ac_fn_c_try_cpp "$LINENO"; then :
3027221715Sdelphij
302860786Spselse
3029128345Stjr  # Broken: fails on valid input.
3030128345Stjrcontinue
3031128345Stjrfi
3032221715Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext
3033170256Sdelphij
3034170256Sdelphij  # OK, works on sane cases.  Now check whether nonexistent headers
3035128345Stjr  # can be detected and how.
3036221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037170256Sdelphij/* end confdefs.h.  */
3038128345Stjr#include <ac_nonexistent.h>
3039128345Stjr_ACEOF
3040221715Sdelphijif ac_fn_c_try_cpp "$LINENO"; then :
3041128345Stjr  # Broken: success on invalid input.
3042128345Stjrcontinue
3043128345Stjrelse
3044128345Stjr  # Passes both tests.
3045128345Stjrac_preproc_ok=:
3046128345Stjrbreak
3047128345Stjrfi
3048221715Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext
3049170256Sdelphij
3050128345Stjrdone
3051128345Stjr# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3052221715Sdelphijrm -f conftest.i conftest.err conftest.$ac_ext
3053221715Sdelphijif $ac_preproc_ok; then :
3054128345Stjr  break
3055128345Stjrfi
3056128345Stjr
3057128345Stjr    done
3058128345Stjr    ac_cv_prog_CPP=$CPP
3059128345Stjr
3060128345Stjrfi
3061128345Stjr  CPP=$ac_cv_prog_CPP
3062128345Stjrelse
3063128345Stjr  ac_cv_prog_CPP=$CPP
3064128345Stjrfi
3065221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3066191930Sdelphij$as_echo "$CPP" >&6; }
3067128345Stjrac_preproc_ok=false
3068128345Stjrfor ac_c_preproc_warn_flag in '' yes
3069128345Stjrdo
3070128345Stjr  # Use a header file that comes with gcc, so configuring glibc
3071128345Stjr  # with a fresh cross-compiler works.
3072170256Sdelphij  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3073170256Sdelphij  # <limits.h> exists even on freestanding compilers.
3074128345Stjr  # On the NeXT, cc -E runs the code through the compiler's parser,
3075128345Stjr  # not just through cpp. "Syntax error" is here to catch this case.
3076221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077170256Sdelphij/* end confdefs.h.  */
3078170256Sdelphij#ifdef __STDC__
3079170256Sdelphij# include <limits.h>
3080170256Sdelphij#else
3081170256Sdelphij# include <assert.h>
3082170256Sdelphij#endif
3083170256Sdelphij		     Syntax error
3084170256Sdelphij_ACEOF
3085221715Sdelphijif ac_fn_c_try_cpp "$LINENO"; then :
3086221715Sdelphij
308789019Spselse
3088128345Stjr  # Broken: fails on valid input.
3089128345Stjrcontinue
309060786Spsfi
3091221715Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext
3092170256Sdelphij
3093170256Sdelphij  # OK, works on sane cases.  Now check whether nonexistent headers
3094128345Stjr  # can be detected and how.
3095221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096170256Sdelphij/* end confdefs.h.  */
3097128345Stjr#include <ac_nonexistent.h>
3098128345Stjr_ACEOF
3099221715Sdelphijif ac_fn_c_try_cpp "$LINENO"; then :
3100128345Stjr  # Broken: success on invalid input.
3101128345Stjrcontinue
3102128345Stjrelse
3103128345Stjr  # Passes both tests.
3104128345Stjrac_preproc_ok=:
3105128345Stjrbreak
310689019Spsfi
3107221715Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext
3108170256Sdelphij
3109128345Stjrdone
3110128345Stjr# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111221715Sdelphijrm -f conftest.i conftest.err conftest.$ac_ext
3112221715Sdelphijif $ac_preproc_ok; then :
3113221715Sdelphij
3114128345Stjrelse
3115221715Sdelphij  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117221715Sdelphijas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3118221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; }
311960786Spsfi
3120128345Stjr
3121128345Stjrac_ext=c
3122128345Stjrac_cpp='$CPP $CPPFLAGS'
3123128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu
3126128345Stjr
3127128345Stjr
3128221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3129191930Sdelphij$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3130240121Sdelphijif ${ac_cv_path_GREP+:} false; then :
3131191930Sdelphij  $as_echo_n "(cached) " >&6
313260786Spselse
3133191930Sdelphij  if test -z "$GREP"; then
3134170256Sdelphij  ac_path_GREP_found=false
3135191930Sdelphij  # Loop through the user's path and test for each of PROGNAME-LIST
3136191930Sdelphij  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137170256Sdelphijfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3138170256Sdelphijdo
3139170256Sdelphij  IFS=$as_save_IFS
3140170256Sdelphij  test -z "$as_dir" && as_dir=.
3141221715Sdelphij    for ac_prog in grep ggrep; do
3142191930Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
3143191930Sdelphij      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3144191930Sdelphij      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3145191930Sdelphij# Check for GNU ac_path_GREP and select it if it is found.
3146170256Sdelphij  # Check for GNU $ac_path_GREP
3147170256Sdelphijcase `"$ac_path_GREP" --version 2>&1` in
3148170256Sdelphij*GNU*)
3149170256Sdelphij  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3150170256Sdelphij*)
3151170256Sdelphij  ac_count=0
3152191930Sdelphij  $as_echo_n 0123456789 >"conftest.in"
3153170256Sdelphij  while :
3154170256Sdelphij  do
3155170256Sdelphij    cat "conftest.in" "conftest.in" >"conftest.tmp"
3156170256Sdelphij    mv "conftest.tmp" "conftest.in"
3157170256Sdelphij    cp "conftest.in" "conftest.nl"
3158191930Sdelphij    $as_echo 'GREP' >> "conftest.nl"
3159170256Sdelphij    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3160170256Sdelphij    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3161221715Sdelphij    as_fn_arith $ac_count + 1 && ac_count=$as_val
3162170256Sdelphij    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3163170256Sdelphij      # Best one so far, save it but keep looking for a better one
3164170256Sdelphij      ac_cv_path_GREP="$ac_path_GREP"
3165170256Sdelphij      ac_path_GREP_max=$ac_count
3166128345Stjr    fi
3167170256Sdelphij    # 10*(2^10) chars as input seems more than enough
3168170256Sdelphij    test $ac_count -gt 10 && break
3169170256Sdelphij  done
3170170256Sdelphij  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3171170256Sdelphijesac
3172170256Sdelphij
3173191930Sdelphij      $ac_path_GREP_found && break 3
3174191930Sdelphij    done
3175170256Sdelphij  done
3176221715Sdelphij  done
3177170256SdelphijIFS=$as_save_IFS
3178191930Sdelphij  if test -z "$ac_cv_path_GREP"; then
3179221715Sdelphij    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3180191930Sdelphij  fi
3181170256Sdelphijelse
3182170256Sdelphij  ac_cv_path_GREP=$GREP
3183170256Sdelphijfi
3184170256Sdelphij
3185170256Sdelphijfi
3186221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3187191930Sdelphij$as_echo "$ac_cv_path_GREP" >&6; }
3188170256Sdelphij GREP="$ac_cv_path_GREP"
3189170256Sdelphij
3190170256Sdelphij
3191221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3192191930Sdelphij$as_echo_n "checking for egrep... " >&6; }
3193240121Sdelphijif ${ac_cv_path_EGREP+:} false; then :
3194191930Sdelphij  $as_echo_n "(cached) " >&6
3195170256Sdelphijelse
3196170256Sdelphij  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3197170256Sdelphij   then ac_cv_path_EGREP="$GREP -E"
3198170256Sdelphij   else
3199191930Sdelphij     if test -z "$EGREP"; then
3200170256Sdelphij  ac_path_EGREP_found=false
3201191930Sdelphij  # Loop through the user's path and test for each of PROGNAME-LIST
3202191930Sdelphij  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203170256Sdelphijfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3204170256Sdelphijdo
3205170256Sdelphij  IFS=$as_save_IFS
3206170256Sdelphij  test -z "$as_dir" && as_dir=.
3207221715Sdelphij    for ac_prog in egrep; do
3208191930Sdelphij    for ac_exec_ext in '' $ac_executable_extensions; do
3209191930Sdelphij      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3210191930Sdelphij      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3211191930Sdelphij# Check for GNU ac_path_EGREP and select it if it is found.
3212170256Sdelphij  # Check for GNU $ac_path_EGREP
3213170256Sdelphijcase `"$ac_path_EGREP" --version 2>&1` in
3214170256Sdelphij*GNU*)
3215170256Sdelphij  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3216170256Sdelphij*)
3217170256Sdelphij  ac_count=0
3218191930Sdelphij  $as_echo_n 0123456789 >"conftest.in"
3219170256Sdelphij  while :
3220170256Sdelphij  do
3221170256Sdelphij    cat "conftest.in" "conftest.in" >"conftest.tmp"
3222170256Sdelphij    mv "conftest.tmp" "conftest.in"
3223170256Sdelphij    cp "conftest.in" "conftest.nl"
3224191930Sdelphij    $as_echo 'EGREP' >> "conftest.nl"
3225170256Sdelphij    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3226170256Sdelphij    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3227221715Sdelphij    as_fn_arith $ac_count + 1 && ac_count=$as_val
3228170256Sdelphij    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3229170256Sdelphij      # Best one so far, save it but keep looking for a better one
3230170256Sdelphij      ac_cv_path_EGREP="$ac_path_EGREP"
3231170256Sdelphij      ac_path_EGREP_max=$ac_count
3232170256Sdelphij    fi
3233170256Sdelphij    # 10*(2^10) chars as input seems more than enough
3234170256Sdelphij    test $ac_count -gt 10 && break
3235170256Sdelphij  done
3236170256Sdelphij  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3237170256Sdelphijesac
3238170256Sdelphij
3239191930Sdelphij      $ac_path_EGREP_found && break 3
3240191930Sdelphij    done
3241170256Sdelphij  done
3242221715Sdelphij  done
3243170256SdelphijIFS=$as_save_IFS
3244191930Sdelphij  if test -z "$ac_cv_path_EGREP"; then
3245221715Sdelphij    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3246191930Sdelphij  fi
3247170256Sdelphijelse
3248170256Sdelphij  ac_cv_path_EGREP=$EGREP
3249170256Sdelphijfi
3250170256Sdelphij
3251170256Sdelphij   fi
3252170256Sdelphijfi
3253221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3254191930Sdelphij$as_echo "$ac_cv_path_EGREP" >&6; }
3255170256Sdelphij EGREP="$ac_cv_path_EGREP"
3256170256Sdelphij
3257170256Sdelphij
3258128345Stjrif test $ac_cv_c_compiler_gnu = yes; then
3259221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3260191930Sdelphij$as_echo_n "checking whether $CC needs -traditional... " >&6; }
3261240121Sdelphijif ${ac_cv_prog_gcc_traditional+:} false; then :
3262191930Sdelphij  $as_echo_n "(cached) " >&6
326360786Spselse
326460786Sps    ac_pattern="Autoconf.*'x'"
3265221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266170256Sdelphij/* end confdefs.h.  */
326760786Sps#include <sgtty.h>
326860786SpsAutoconf TIOCGETP
3269128345Stjr_ACEOF
327060786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271221715Sdelphij  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
327260786Sps  ac_cv_prog_gcc_traditional=yes
327360786Spselse
327460786Sps  ac_cv_prog_gcc_traditional=no
327560786Spsfi
327660786Spsrm -f conftest*
327760786Sps
327860786Sps
327960786Sps  if test $ac_cv_prog_gcc_traditional = no; then
3280221715Sdelphij    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281170256Sdelphij/* end confdefs.h.  */
328260786Sps#include <termio.h>
328360786SpsAutoconf TCGETA
3284128345Stjr_ACEOF
328560786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286221715Sdelphij  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
328760786Sps  ac_cv_prog_gcc_traditional=yes
328860786Spsfi
328960786Spsrm -f conftest*
329060786Sps
329160786Sps  fi
329260786Spsfi
3293221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3294191930Sdelphij$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
329560786Sps  if test $ac_cv_prog_gcc_traditional = yes; then
329660786Sps    CC="$CC -traditional"
329760786Sps  fi
329860786Spsfi
329960786Sps
330060786Spsac_aux_dir=
3301170256Sdelphijfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3302170256Sdelphij  if test -f "$ac_dir/install-sh"; then
330360786Sps    ac_aux_dir=$ac_dir
330460786Sps    ac_install_sh="$ac_aux_dir/install-sh -c"
330560786Sps    break
3306170256Sdelphij  elif test -f "$ac_dir/install.sh"; then
330760786Sps    ac_aux_dir=$ac_dir
330860786Sps    ac_install_sh="$ac_aux_dir/install.sh -c"
330960786Sps    break
3310170256Sdelphij  elif test -f "$ac_dir/shtool"; then
3311128345Stjr    ac_aux_dir=$ac_dir
3312128345Stjr    ac_install_sh="$ac_aux_dir/shtool install -c"
3313128345Stjr    break
331460786Sps  fi
331560786Spsdone
331660786Spsif test -z "$ac_aux_dir"; then
3317221715Sdelphij  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
331860786Spsfi
331960786Sps
3320170256Sdelphij# These three variables are undocumented and unsupported,
3321170256Sdelphij# and are intended to be withdrawn in a future Autoconf release.
3322170256Sdelphij# They can cause serious problems if a builder's source tree is in a directory
3323170256Sdelphij# whose full name contains unusual characters.
3324170256Sdelphijac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3325170256Sdelphijac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3326170256Sdelphijac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3327170256Sdelphij
3328170256Sdelphij
332960786Sps# Find a good install program.  We prefer a C program (faster),
333060786Sps# so one script is as good as another.  But avoid the broken or
333160786Sps# incompatible versions:
333260786Sps# SysV /etc/install, /usr/sbin/install
333360786Sps# SunOS /usr/etc/install
333460786Sps# IRIX /sbin/install
333560786Sps# AIX /bin/install
3336128345Stjr# AmigaOS /C/install, which installs bootblocks on floppy discs
333789019Sps# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
333860786Sps# AFS /usr/afsws/bin/install, which mishandles nonexistent args
333960786Sps# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3340170256Sdelphij# OS/2's system install, which has a completely different semantic
334160786Sps# ./install, which can be erroneously created by make from ./install.sh.
3342191930Sdelphij# Reject install programs that cannot install multiple files.
3343221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3344191930Sdelphij$as_echo_n "checking for a BSD-compatible install... " >&6; }
334560786Spsif test -z "$INSTALL"; then
3346240121Sdelphijif ${ac_cv_path_install+:} false; then :
3347191930Sdelphij  $as_echo_n "(cached) " >&6
334860786Spselse
3349128345Stjr  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350128345Stjrfor as_dir in $PATH
3351128345Stjrdo
3352128345Stjr  IFS=$as_save_IFS
3353128345Stjr  test -z "$as_dir" && as_dir=.
3354221715Sdelphij    # Account for people who put trailing slashes in PATH elements.
3355221715Sdelphijcase $as_dir/ in #((
3356221715Sdelphij  ./ | .// | /[cC]/* | \
3357128345Stjr  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3358221715Sdelphij  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3359128345Stjr  /usr/ucb/* ) ;;
3360128345Stjr  *)
3361128345Stjr    # OSF1 and SCO ODT 3.0 have their own names for install.
3362128345Stjr    # Don't use installbsd from OSF since it installs stuff as root
3363128345Stjr    # by default.
3364128345Stjr    for ac_prog in ginstall scoinst install; do
3365128345Stjr      for ac_exec_ext in '' $ac_executable_extensions; do
3366170256Sdelphij	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3367170256Sdelphij	  if test $ac_prog = install &&
3368170256Sdelphij	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3369170256Sdelphij	    # AIX install.  It has an incompatible calling convention.
3370170256Sdelphij	    :
3371170256Sdelphij	  elif test $ac_prog = install &&
3372170256Sdelphij	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3373170256Sdelphij	    # program-specific install script used by HP pwplus--don't use.
3374170256Sdelphij	    :
3375170256Sdelphij	  else
3376191930Sdelphij	    rm -rf conftest.one conftest.two conftest.dir
3377191930Sdelphij	    echo one > conftest.one
3378191930Sdelphij	    echo two > conftest.two
3379191930Sdelphij	    mkdir conftest.dir
3380191930Sdelphij	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3381191930Sdelphij	      test -s conftest.one && test -s conftest.two &&
3382191930Sdelphij	      test -s conftest.dir/conftest.one &&
3383191930Sdelphij	      test -s conftest.dir/conftest.two
3384191930Sdelphij	    then
3385191930Sdelphij	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3386191930Sdelphij	      break 3
3387191930Sdelphij	    fi
3388170256Sdelphij	  fi
3389170256Sdelphij	fi
339060786Sps      done
3391128345Stjr    done
3392128345Stjr    ;;
3393128345Stjresac
3394191930Sdelphij
3395221715Sdelphij  done
3396170256SdelphijIFS=$as_save_IFS
339760786Sps
3398191930Sdelphijrm -rf conftest.one conftest.two conftest.dir
3399128345Stjr
340060786Spsfi
340160786Sps  if test "${ac_cv_path_install+set}" = set; then
3402128345Stjr    INSTALL=$ac_cv_path_install
340360786Sps  else
3404170256Sdelphij    # As a last resort, use the slow shell script.  Don't cache a
3405170256Sdelphij    # value for INSTALL within a source directory, because that will
340660786Sps    # break other packages using the cache if that directory is
3407170256Sdelphij    # removed, or if the value is a relative name.
3408128345Stjr    INSTALL=$ac_install_sh
340960786Sps  fi
341060786Spsfi
3411221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3412191930Sdelphij$as_echo "$INSTALL" >&6; }
341360786Sps
341460786Sps# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
341560786Sps# It thinks the first close brace ends the variable substitution.
341660786Spstest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
341760786Sps
3418128345Stjrtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
341989019Sps
342060786Spstest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
342160786Sps
342260786Sps
3423128345Stjr# Checks for compilation model.
3424170256Sdelphij# Check whether --enable-largefile was given.
3425221715Sdelphijif test "${enable_largefile+set}" = set; then :
3426170256Sdelphij  enableval=$enable_largefile;
3427170256Sdelphijfi
342889019Sps
3429128345Stjrif test "$enable_largefile" != no; then
3430128345Stjr
3431221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3432191930Sdelphij$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3433240121Sdelphijif ${ac_cv_sys_largefile_CC+:} false; then :
3434191930Sdelphij  $as_echo_n "(cached) " >&6
343560786Spselse
3436128345Stjr  ac_cv_sys_largefile_CC=no
3437128345Stjr     if test "$GCC" != yes; then
3438128345Stjr       ac_save_CC=$CC
3439128345Stjr       while :; do
3440170256Sdelphij	 # IRIX 6.2 and later do not support large files by default,
3441170256Sdelphij	 # so use the C compiler's -n32 option if that helps.
3442221715Sdelphij	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443170256Sdelphij/* end confdefs.h.  */
3444128345Stjr#include <sys/types.h>
3445128345Stjr /* Check that off_t can represent 2**63 - 1 correctly.
3446128345Stjr    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3447128345Stjr    since some C++ compilers masquerading as C compilers
3448128345Stjr    incorrectly reject 9223372036854775807.  */
3449128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3450128345Stjr  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3451128345Stjr		       && LARGE_OFF_T % 2147483647 == 1)
3452128345Stjr		      ? 1 : -1];
3453128345Stjrint
3454128345Stjrmain ()
3455128345Stjr{
345660786Sps
3457128345Stjr  ;
3458128345Stjr  return 0;
3459128345Stjr}
3460128345Stjr_ACEOF
3461221715Sdelphij	 if ac_fn_c_try_compile "$LINENO"; then :
3462128345Stjr  break
346360786Spsfi
3464170256Sdelphijrm -f core conftest.err conftest.$ac_objext
3465170256Sdelphij	 CC="$CC -n32"
3466221715Sdelphij	 if ac_fn_c_try_compile "$LINENO"; then :
3467128345Stjr  ac_cv_sys_largefile_CC=' -n32'; break
3468128345Stjrfi
3469170256Sdelphijrm -f core conftest.err conftest.$ac_objext
3470170256Sdelphij	 break
3471128345Stjr       done
3472128345Stjr       CC=$ac_save_CC
3473128345Stjr       rm -f conftest.$ac_ext
3474128345Stjr    fi
3475128345Stjrfi
3476221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3477191930Sdelphij$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3478128345Stjr  if test "$ac_cv_sys_largefile_CC" != no; then
3479128345Stjr    CC=$CC$ac_cv_sys_largefile_CC
3480128345Stjr  fi
3481128345Stjr
3482221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3483191930Sdelphij$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3484240121Sdelphijif ${ac_cv_sys_file_offset_bits+:} false; then :
3485191930Sdelphij  $as_echo_n "(cached) " >&6
3486128345Stjrelse
3487128345Stjr  while :; do
3488221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489170256Sdelphij/* end confdefs.h.  */
3490128345Stjr#include <sys/types.h>
3491128345Stjr /* Check that off_t can represent 2**63 - 1 correctly.
3492128345Stjr    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3493128345Stjr    since some C++ compilers masquerading as C compilers
3494128345Stjr    incorrectly reject 9223372036854775807.  */
3495128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3496128345Stjr  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3497128345Stjr		       && LARGE_OFF_T % 2147483647 == 1)
3498128345Stjr		      ? 1 : -1];
3499128345Stjrint
3500128345Stjrmain ()
3501128345Stjr{
3502128345Stjr
3503128345Stjr  ;
3504128345Stjr  return 0;
3505128345Stjr}
3506128345Stjr_ACEOF
3507221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
3508170256Sdelphij  ac_cv_sys_file_offset_bits=no; break
3509128345Stjrfi
3510170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512170256Sdelphij/* end confdefs.h.  */
3513128345Stjr#define _FILE_OFFSET_BITS 64
3514128345Stjr#include <sys/types.h>
3515128345Stjr /* Check that off_t can represent 2**63 - 1 correctly.
3516128345Stjr    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3517128345Stjr    since some C++ compilers masquerading as C compilers
3518128345Stjr    incorrectly reject 9223372036854775807.  */
3519128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3520128345Stjr  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3521128345Stjr		       && LARGE_OFF_T % 2147483647 == 1)
3522128345Stjr		      ? 1 : -1];
3523128345Stjrint
3524128345Stjrmain ()
3525128345Stjr{
3526128345Stjr
3527128345Stjr  ;
3528128345Stjr  return 0;
3529128345Stjr}
3530128345Stjr_ACEOF
3531221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
3532128345Stjr  ac_cv_sys_file_offset_bits=64; break
3533128345Stjrfi
3534170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535170256Sdelphij  ac_cv_sys_file_offset_bits=unknown
3536128345Stjr  break
3537128345Stjrdone
3538128345Stjrfi
3539221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3540191930Sdelphij$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3541170256Sdelphijcase $ac_cv_sys_file_offset_bits in #(
3542170256Sdelphij  no | unknown) ;;
3543170256Sdelphij  *)
3544128345Stjrcat >>confdefs.h <<_ACEOF
3545128345Stjr#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3546128345Stjr_ACEOF
3547170256Sdelphij;;
3548170256Sdelphijesac
3549191930Sdelphijrm -rf conftest*
3550170256Sdelphij  if test $ac_cv_sys_file_offset_bits = unknown; then
3551221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3552191930Sdelphij$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3553240121Sdelphijif ${ac_cv_sys_large_files+:} false; then :
3554191930Sdelphij  $as_echo_n "(cached) " >&6
3555128345Stjrelse
3556128345Stjr  while :; do
3557221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558170256Sdelphij/* end confdefs.h.  */
3559128345Stjr#include <sys/types.h>
3560128345Stjr /* Check that off_t can represent 2**63 - 1 correctly.
3561128345Stjr    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3562128345Stjr    since some C++ compilers masquerading as C compilers
3563128345Stjr    incorrectly reject 9223372036854775807.  */
3564128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3565128345Stjr  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3566128345Stjr		       && LARGE_OFF_T % 2147483647 == 1)
3567128345Stjr		      ? 1 : -1];
3568128345Stjrint
3569128345Stjrmain ()
3570128345Stjr{
357160786Sps
3572128345Stjr  ;
3573128345Stjr  return 0;
3574128345Stjr}
3575128345Stjr_ACEOF
3576221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
3577170256Sdelphij  ac_cv_sys_large_files=no; break
357860786Spsfi
3579170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581170256Sdelphij/* end confdefs.h.  */
3582128345Stjr#define _LARGE_FILES 1
3583128345Stjr#include <sys/types.h>
3584128345Stjr /* Check that off_t can represent 2**63 - 1 correctly.
3585128345Stjr    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3586128345Stjr    since some C++ compilers masquerading as C compilers
3587128345Stjr    incorrectly reject 9223372036854775807.  */
3588128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3589128345Stjr  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3590128345Stjr		       && LARGE_OFF_T % 2147483647 == 1)
3591128345Stjr		      ? 1 : -1];
3592128345Stjrint
3593128345Stjrmain ()
3594128345Stjr{
3595128345Stjr
3596128345Stjr  ;
3597128345Stjr  return 0;
3598128345Stjr}
3599128345Stjr_ACEOF
3600221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
3601128345Stjr  ac_cv_sys_large_files=1; break
3602128345Stjrfi
3603170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604170256Sdelphij  ac_cv_sys_large_files=unknown
3605128345Stjr  break
3606128345Stjrdone
3607128345Stjrfi
3608221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3609191930Sdelphij$as_echo "$ac_cv_sys_large_files" >&6; }
3610170256Sdelphijcase $ac_cv_sys_large_files in #(
3611170256Sdelphij  no | unknown) ;;
3612170256Sdelphij  *)
3613128345Stjrcat >>confdefs.h <<_ACEOF
3614128345Stjr#define _LARGE_FILES $ac_cv_sys_large_files
3615128345Stjr_ACEOF
3616170256Sdelphij;;
3617170256Sdelphijesac
3618191930Sdelphijrm -rf conftest*
3619170256Sdelphij  fi
3620128345Stjrfi
3621128345Stjr
3622128345Stjr
3623128345Stjr# Checks for general libraries.
3624221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -ltinfo" >&5
3625191930Sdelphij$as_echo_n "checking for tgoto in -ltinfo... " >&6; }
3626240121Sdelphijif ${ac_cv_lib_tinfo_tgoto+:} false; then :
3627191930Sdelphij  $as_echo_n "(cached) " >&6
3628173682Sdelphijelse
3629173682Sdelphij  ac_check_lib_save_LIBS=$LIBS
3630173682SdelphijLIBS="-ltinfo  $LIBS"
3631221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632173682Sdelphij/* end confdefs.h.  */
3633173682Sdelphij
3634173682Sdelphij/* Override any GCC internal prototype to avoid an error.
3635173682Sdelphij   Use char because int might match the return type of a GCC
3636173682Sdelphij   builtin and then its argument prototype would still apply.  */
3637173682Sdelphij#ifdef __cplusplus
3638173682Sdelphijextern "C"
3639173682Sdelphij#endif
3640173682Sdelphijchar tgoto ();
3641173682Sdelphijint
3642173682Sdelphijmain ()
3643173682Sdelphij{
3644173682Sdelphijreturn tgoto ();
3645173682Sdelphij  ;
3646173682Sdelphij  return 0;
3647173682Sdelphij}
3648173682Sdelphij_ACEOF
3649221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
3650173682Sdelphij  ac_cv_lib_tinfo_tgoto=yes
3651173682Sdelphijelse
3652221715Sdelphij  ac_cv_lib_tinfo_tgoto=no
3653173682Sdelphijfi
3654221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
3655221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
3656173682SdelphijLIBS=$ac_check_lib_save_LIBS
3657173682Sdelphijfi
3658221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgoto" >&5
3659191930Sdelphij$as_echo "$ac_cv_lib_tinfo_tgoto" >&6; }
3660240121Sdelphijif test "x$ac_cv_lib_tinfo_tgoto" = xyes; then :
3661173682Sdelphij  have_tinfo=yes
3662173682Sdelphijelse
3663173682Sdelphij  have_tinfo=no
3664173682Sdelphijfi
3665173682Sdelphij
3666221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lxcurses" >&5
3667191930Sdelphij$as_echo_n "checking for initscr in -lxcurses... " >&6; }
3668240121Sdelphijif ${ac_cv_lib_xcurses_initscr+:} false; then :
3669191930Sdelphij  $as_echo_n "(cached) " >&6
3670128345Stjrelse
3671128345Stjr  ac_check_lib_save_LIBS=$LIBS
3672128345StjrLIBS="-lxcurses  $LIBS"
3673221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674170256Sdelphij/* end confdefs.h.  */
3675128345Stjr
3676170256Sdelphij/* Override any GCC internal prototype to avoid an error.
3677170256Sdelphij   Use char because int might match the return type of a GCC
3678170256Sdelphij   builtin and then its argument prototype would still apply.  */
3679128345Stjr#ifdef __cplusplus
3680128345Stjrextern "C"
3681128345Stjr#endif
3682128345Stjrchar initscr ();
3683128345Stjrint
3684128345Stjrmain ()
3685128345Stjr{
3686170256Sdelphijreturn initscr ();
3687128345Stjr  ;
3688128345Stjr  return 0;
3689128345Stjr}
3690128345Stjr_ACEOF
3691221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
3692128345Stjr  ac_cv_lib_xcurses_initscr=yes
3693128345Stjrelse
3694221715Sdelphij  ac_cv_lib_xcurses_initscr=no
3695128345Stjrfi
3696221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
3697221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
3698128345StjrLIBS=$ac_check_lib_save_LIBS
3699128345Stjrfi
3700221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcurses_initscr" >&5
3701191930Sdelphij$as_echo "$ac_cv_lib_xcurses_initscr" >&6; }
3702240121Sdelphijif test "x$ac_cv_lib_xcurses_initscr" = xyes; then :
370360786Sps  have_xcurses=yes
370460786Spselse
3705128345Stjr  have_xcurses=no
370660786Spsfi
370760786Sps
3708221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
3709191930Sdelphij$as_echo_n "checking for initscr in -lncursesw... " >&6; }
3710240121Sdelphijif ${ac_cv_lib_ncursesw_initscr+:} false; then :
3711191930Sdelphij  $as_echo_n "(cached) " >&6
3712161475Sdelphijelse
3713161475Sdelphij  ac_check_lib_save_LIBS=$LIBS
3714161475SdelphijLIBS="-lncursesw  $LIBS"
3715221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716170256Sdelphij/* end confdefs.h.  */
3717161475Sdelphij
3718170256Sdelphij/* Override any GCC internal prototype to avoid an error.
3719170256Sdelphij   Use char because int might match the return type of a GCC
3720170256Sdelphij   builtin and then its argument prototype would still apply.  */
3721161475Sdelphij#ifdef __cplusplus
3722161475Sdelphijextern "C"
3723161475Sdelphij#endif
3724161475Sdelphijchar initscr ();
3725161475Sdelphijint
3726161475Sdelphijmain ()
3727161475Sdelphij{
3728170256Sdelphijreturn initscr ();
3729161475Sdelphij  ;
3730161475Sdelphij  return 0;
3731161475Sdelphij}
3732161475Sdelphij_ACEOF
3733221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
3734161475Sdelphij  ac_cv_lib_ncursesw_initscr=yes
3735161475Sdelphijelse
3736221715Sdelphij  ac_cv_lib_ncursesw_initscr=no
3737161475Sdelphijfi
3738221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
3739221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
3740161475SdelphijLIBS=$ac_check_lib_save_LIBS
3741161475Sdelphijfi
3742221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
3743191930Sdelphij$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
3744240121Sdelphijif test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
3745161475Sdelphij  have_ncursesw=yes
3746161475Sdelphijelse
3747161475Sdelphij  have_ncursesw=no
3748161475Sdelphijfi
3749161475Sdelphij
3750221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
3751191930Sdelphij$as_echo_n "checking for initscr in -lncurses... " >&6; }
3752240121Sdelphijif ${ac_cv_lib_ncurses_initscr+:} false; then :
3753191930Sdelphij  $as_echo_n "(cached) " >&6
375460786Spselse
3755128345Stjr  ac_check_lib_save_LIBS=$LIBS
375660786SpsLIBS="-lncurses  $LIBS"
3757221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758170256Sdelphij/* end confdefs.h.  */
3759128345Stjr
3760170256Sdelphij/* Override any GCC internal prototype to avoid an error.
3761170256Sdelphij   Use char because int might match the return type of a GCC
3762170256Sdelphij   builtin and then its argument prototype would still apply.  */
3763128345Stjr#ifdef __cplusplus
3764128345Stjrextern "C"
3765128345Stjr#endif
3766128345Stjrchar initscr ();
3767128345Stjrint
3768128345Stjrmain ()
3769128345Stjr{
3770170256Sdelphijreturn initscr ();
3771128345Stjr  ;
3772128345Stjr  return 0;
3773128345Stjr}
3774128345Stjr_ACEOF
3775221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
3776128345Stjr  ac_cv_lib_ncurses_initscr=yes
377760786Spselse
3778221715Sdelphij  ac_cv_lib_ncurses_initscr=no
377960786Spsfi
3780221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
3781221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
3782128345StjrLIBS=$ac_check_lib_save_LIBS
378360786Spsfi
3784221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
3785191930Sdelphij$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
3786240121Sdelphijif test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
378760786Sps  have_ncurses=yes
378860786Spselse
3789128345Stjr  have_ncurses=no
379060786Spsfi
379160786Sps
3792221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
3793191930Sdelphij$as_echo_n "checking for initscr in -lcurses... " >&6; }
3794240121Sdelphijif ${ac_cv_lib_curses_initscr+:} false; then :
3795191930Sdelphij  $as_echo_n "(cached) " >&6
379660786Spselse
3797128345Stjr  ac_check_lib_save_LIBS=$LIBS
379860786SpsLIBS="-lcurses  $LIBS"
3799221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800170256Sdelphij/* end confdefs.h.  */
3801128345Stjr
3802170256Sdelphij/* Override any GCC internal prototype to avoid an error.
3803170256Sdelphij   Use char because int might match the return type of a GCC
3804170256Sdelphij   builtin and then its argument prototype would still apply.  */
3805128345Stjr#ifdef __cplusplus
3806128345Stjrextern "C"
3807128345Stjr#endif
3808128345Stjrchar initscr ();
3809128345Stjrint
3810128345Stjrmain ()
3811128345Stjr{
3812170256Sdelphijreturn initscr ();
3813128345Stjr  ;
3814128345Stjr  return 0;
3815128345Stjr}
3816128345Stjr_ACEOF
3817221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
3818128345Stjr  ac_cv_lib_curses_initscr=yes
381960786Spselse
3820221715Sdelphij  ac_cv_lib_curses_initscr=no
382160786Spsfi
3822221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
3823221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
3824128345StjrLIBS=$ac_check_lib_save_LIBS
382560786Spsfi
3826221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
3827191930Sdelphij$as_echo "$ac_cv_lib_curses_initscr" >&6; }
3828240121Sdelphijif test "x$ac_cv_lib_curses_initscr" = xyes; then :
382960786Sps  have_curses=yes
383060786Spselse
3831128345Stjr  have_curses=no
383260786Spsfi
383360786Sps
3834221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
3835191930Sdelphij$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
3836240121Sdelphijif ${ac_cv_lib_termcap_tgetent+:} false; then :
3837191930Sdelphij  $as_echo_n "(cached) " >&6
383860786Spselse
3839128345Stjr  ac_check_lib_save_LIBS=$LIBS
384060786SpsLIBS="-ltermcap  $LIBS"
3841221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842170256Sdelphij/* end confdefs.h.  */
3843128345Stjr
3844170256Sdelphij/* Override any GCC internal prototype to avoid an error.
3845170256Sdelphij   Use char because int might match the return type of a GCC
3846170256Sdelphij   builtin and then its argument prototype would still apply.  */
3847128345Stjr#ifdef __cplusplus
3848128345Stjrextern "C"
3849128345Stjr#endif
3850128345Stjrchar tgetent ();
3851128345Stjrint
3852128345Stjrmain ()
3853128345Stjr{
3854170256Sdelphijreturn tgetent ();
3855128345Stjr  ;
3856128345Stjr  return 0;
3857128345Stjr}
3858128345Stjr_ACEOF
3859221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
3860128345Stjr  ac_cv_lib_termcap_tgetent=yes
386160786Spselse
3862221715Sdelphij  ac_cv_lib_termcap_tgetent=no
386360786Spsfi
3864221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
3865221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
3866128345StjrLIBS=$ac_check_lib_save_LIBS
386760786Spsfi
3868221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
3869191930Sdelphij$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
3870240121Sdelphijif test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
387160786Sps  have_termcap=yes
387260786Spselse
3873128345Stjr  have_termcap=no
387460786Spsfi
387560786Sps
3876221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
3877191930Sdelphij$as_echo_n "checking for tgetent in -ltermlib... " >&6; }
3878240121Sdelphijif ${ac_cv_lib_termlib_tgetent+:} false; then :
3879191930Sdelphij  $as_echo_n "(cached) " >&6
388060786Spselse
3881128345Stjr  ac_check_lib_save_LIBS=$LIBS
388260786SpsLIBS="-ltermlib  $LIBS"
3883221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884170256Sdelphij/* end confdefs.h.  */
3885128345Stjr
3886170256Sdelphij/* Override any GCC internal prototype to avoid an error.
3887170256Sdelphij   Use char because int might match the return type of a GCC
3888170256Sdelphij   builtin and then its argument prototype would still apply.  */
3889128345Stjr#ifdef __cplusplus
3890128345Stjrextern "C"
3891128345Stjr#endif
3892128345Stjrchar tgetent ();
3893128345Stjrint
3894128345Stjrmain ()
3895128345Stjr{
3896170256Sdelphijreturn tgetent ();
3897128345Stjr  ;
3898128345Stjr  return 0;
3899128345Stjr}
3900128345Stjr_ACEOF
3901221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
3902128345Stjr  ac_cv_lib_termlib_tgetent=yes
390360786Spselse
3904221715Sdelphij  ac_cv_lib_termlib_tgetent=no
390560786Spsfi
3906221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
3907221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
3908128345StjrLIBS=$ac_check_lib_save_LIBS
390960786Spsfi
3910221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
3911191930Sdelphij$as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
3912240121Sdelphijif test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
391360786Sps  have_termlib=yes
391460786Spselse
3915128345Stjr  have_termlib=no
391660786Spsfi
391760786Sps
3918240121Sdelphij# Regular expressions (regcmp) are in -lgen on Solaris 2, (but in libc
3919240121Sdelphij# at least on Solaris 10 (2.10)) and in -lintl on SCO Unix.
3920240121Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcmp" >&5
3921240121Sdelphij$as_echo_n "checking for library containing regcmp... " >&6; }
3922240121Sdelphijif ${ac_cv_search_regcmp+:} false; then :
3923191930Sdelphij  $as_echo_n "(cached) " >&6
392460786Spselse
3925240121Sdelphij  ac_func_search_save_LIBS=$LIBS
3926221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927170256Sdelphij/* end confdefs.h.  */
3928128345Stjr
3929170256Sdelphij/* Override any GCC internal prototype to avoid an error.
3930170256Sdelphij   Use char because int might match the return type of a GCC
3931170256Sdelphij   builtin and then its argument prototype would still apply.  */
3932128345Stjr#ifdef __cplusplus
3933128345Stjrextern "C"
3934128345Stjr#endif
3935128345Stjrchar regcmp ();
3936128345Stjrint
3937128345Stjrmain ()
3938128345Stjr{
3939170256Sdelphijreturn regcmp ();
3940128345Stjr  ;
3941128345Stjr  return 0;
3942128345Stjr}
3943128345Stjr_ACEOF
3944240121Sdelphijfor ac_lib in '' gen intl PW; do
3945240121Sdelphij  if test -z "$ac_lib"; then
3946240121Sdelphij    ac_res="none required"
3947240121Sdelphij  else
3948240121Sdelphij    ac_res=-l$ac_lib
3949240121Sdelphij    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3950240121Sdelphij  fi
3951240121Sdelphij  if ac_fn_c_try_link "$LINENO"; then :
3952240121Sdelphij  ac_cv_search_regcmp=$ac_res
395360786Spsfi
3954221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
3955240121Sdelphij    conftest$ac_exeext
3956240121Sdelphij  if ${ac_cv_search_regcmp+:} false; then :
3957240121Sdelphij  break
395860786Spsfi
3959240121Sdelphijdone
3960240121Sdelphijif ${ac_cv_search_regcmp+:} false; then :
396160786Sps
396260786Spselse
3963240121Sdelphij  ac_cv_search_regcmp=no
396460786Spsfi
3965240121Sdelphijrm conftest.$ac_ext
3966240121SdelphijLIBS=$ac_func_search_save_LIBS
396760786Spsfi
3968240121Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcmp" >&5
3969240121Sdelphij$as_echo "$ac_cv_search_regcmp" >&6; }
3970240121Sdelphijac_res=$ac_cv_search_regcmp
3971240121Sdelphijif test "$ac_res" != no; then :
3972240121Sdelphij  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
397360786Sps
397460786Spsfi
397560786Sps
3976128345Stjr
3977128345Stjr# Checks for terminal libraries
3978221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working terminal libraries" >&5
3979191930Sdelphij$as_echo_n "checking for working terminal libraries... " >&6; }
398060786SpsTERMLIBS=
398160786Sps
3982128345Stjr# Check for systems where curses is broken.
398360786Spscurses_broken=0
398460786Spsif test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
398560786Spsif test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
398660786Sps   curses_broken=1
398760786Spsfi
398889019Spsif test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
398989019Sps   curses_broken=1
399060786Spsfi
399189019Spsfi
399260786Sps
399360786Spsif test $curses_broken = 0; then
3994173682Sdelphij
3995173682Sdelphij# -- Try tinfo.
3996173682Sdelphijif test "x$TERMLIBS" = x; then
3997173682Sdelphij  if test $have_tinfo = yes; then
3998173682Sdelphij    TERMLIBS="-ltinfo"
3999173682Sdelphij    SAVE_LIBS=$LIBS
4000173682Sdelphij    LIBS="$LIBS $TERMLIBS"
4001221715Sdelphij    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002173682Sdelphij/* end confdefs.h.  */
4003173682Sdelphij
4004173682Sdelphijint
4005173682Sdelphijmain ()
4006173682Sdelphij{
4007173682Sdelphijtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4008173682Sdelphij  ;
4009173682Sdelphij  return 0;
4010173682Sdelphij}
4011173682Sdelphij_ACEOF
4012221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4013173682Sdelphij  termok=yes
4014173682Sdelphijelse
4015221715Sdelphij  termok=no
4016173682Sdelphijfi
4017221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4018221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
4019173682Sdelphij    LIBS=$SAVE_LIBS
4020173682Sdelphij    if test $termok = no; then TERMLIBS=""; fi
4021173682Sdelphij  fi
4022173682Sdelphijfi
4023173682Sdelphij
4024128345Stjr# -- Try xcurses.
402560786Spsif test "x$TERMLIBS" = x; then
402660786Sps  if test $have_xcurses = yes; then
402760786Sps    TERMLIBS="-lxcurses"
402860786Sps    SAVE_LIBS=$LIBS
402960786Sps    LIBS="$LIBS $TERMLIBS"
4030221715Sdelphij    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031170256Sdelphij/* end confdefs.h.  */
403260786Sps
4033128345Stjrint
4034128345Stjrmain ()
4035128345Stjr{
403660786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4037128345Stjr  ;
4038128345Stjr  return 0;
4039128345Stjr}
4040128345Stjr_ACEOF
4041221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
404260786Sps  termok=yes
404360786Spselse
4044221715Sdelphij  termok=no
404560786Spsfi
4046221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4047221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
404860786Sps    LIBS=$SAVE_LIBS
404960786Sps    if test $termok = no; then TERMLIBS=""; fi
405060786Sps  fi
405160786Spsfi
405260786Sps
4053170256Sdelphij# -- Try ncursesw.
4054161475Sdelphijif test "x$TERMLIBS" = x; then
4055161475Sdelphij  if test $have_ncursesw = yes; then
4056161475Sdelphij    TERMLIBS="-lncursesw"
4057161475Sdelphij    SAVE_LIBS=$LIBS
4058161475Sdelphij    LIBS="$LIBS $TERMLIBS"
4059221715Sdelphij    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060170256Sdelphij/* end confdefs.h.  */
4061161475Sdelphij
4062161475Sdelphijint
4063161475Sdelphijmain ()
4064161475Sdelphij{
4065161475Sdelphijtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4066161475Sdelphij  ;
4067161475Sdelphij  return 0;
4068161475Sdelphij}
4069161475Sdelphij_ACEOF
4070221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4071161475Sdelphij  termok=yes
4072161475Sdelphijelse
4073221715Sdelphij  termok=no
4074161475Sdelphijfi
4075221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4076221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
4077161475Sdelphij    LIBS=$SAVE_LIBS
4078161475Sdelphij    if test $termok = no; then TERMLIBS=""; fi
4079161475Sdelphij  fi
4080161475Sdelphijfi
4081161475Sdelphij
4082128345Stjr# -- Try ncurses.
408360786Spsif test "x$TERMLIBS" = x; then
408460786Sps  if test $have_ncurses = yes; then
408560786Sps    TERMLIBS="-lncurses"
408660786Sps    SAVE_LIBS=$LIBS
408760786Sps    LIBS="$LIBS $TERMLIBS"
4088221715Sdelphij    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089170256Sdelphij/* end confdefs.h.  */
409060786Sps
4091128345Stjrint
4092128345Stjrmain ()
4093128345Stjr{
409460786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4095128345Stjr  ;
4096128345Stjr  return 0;
4097128345Stjr}
4098128345Stjr_ACEOF
4099221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
410060786Sps  termok=yes
410160786Spselse
4102221715Sdelphij  termok=no
410360786Spsfi
4104221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4105221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
410660786Sps    LIBS=$SAVE_LIBS
410760786Sps    if test $termok = no; then TERMLIBS=""; fi
410860786Sps  fi
410960786Spsfi
411060786Sps
4111128345Stjr# -- Try curses.
411260786Spsif test "x$TERMLIBS" = x; then
411360786Sps  if test $have_curses = yes; then
411460786Sps    TERMLIBS="-lcurses"
411560786Sps    SAVE_LIBS=$LIBS
411660786Sps    LIBS="$LIBS $TERMLIBS"
4117221715Sdelphij    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118170256Sdelphij/* end confdefs.h.  */
411960786Sps
4120128345Stjrint
4121128345Stjrmain ()
4122128345Stjr{
412360786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4124128345Stjr  ;
4125128345Stjr  return 0;
4126128345Stjr}
4127128345Stjr_ACEOF
4128221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
412960786Sps  termok=yes
413060786Spselse
4131221715Sdelphij  termok=no
413260786Spsfi
4133221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4134221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
413560786Sps    LIBS=$SAVE_LIBS
413660786Sps    if test $termok = no; then TERMLIBS=""; fi
413760786Sps  fi
413860786Spsfi
413960786Sps
4140128345Stjr# -- Try curses & termcap.
414160786Spsif test "x$TERMLIBS" = x; then
414260786Sps  if test $have_curses = yes; then
414360786Sps  if test $have_termcap = yes; then
414460786Sps    TERMLIBS="-lcurses -ltermcap"
414560786Sps    SAVE_LIBS=$LIBS
414660786Sps    LIBS="$LIBS $TERMLIBS"
4147221715Sdelphij    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148170256Sdelphij/* end confdefs.h.  */
414960786Sps
4150128345Stjrint
4151128345Stjrmain ()
4152128345Stjr{
415360786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4154128345Stjr  ;
4155128345Stjr  return 0;
4156128345Stjr}
4157128345Stjr_ACEOF
4158221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
415960786Sps  termok=yes
416060786Spselse
4161221715Sdelphij  termok=no
416260786Spsfi
4163221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4164221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
416560786Sps    LIBS=$SAVE_LIBS
416660786Sps    if test $termok = no; then TERMLIBS=""; fi
416760786Sps  fi
416860786Sps  fi
416960786Spsfi
417060786Spsfi
417160786Sps
4172128345Stjr# -- Try termcap.
417360786Spsif test "x$TERMLIBS" = x; then
417460786Sps  if test $have_termcap = yes; then
417560786Sps    TERMLIBS="-ltermcap"
417660786Sps    SAVE_LIBS=$LIBS
417760786Sps    LIBS="$LIBS $TERMLIBS"
4178221715Sdelphij    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179170256Sdelphij/* end confdefs.h.  */
418060786Sps
4181128345Stjrint
4182128345Stjrmain ()
4183128345Stjr{
418460786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4185128345Stjr  ;
4186128345Stjr  return 0;
4187128345Stjr}
4188128345Stjr_ACEOF
4189221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
419060786Sps  termok=yes
419160786Spselse
4192221715Sdelphij  termok=no
419360786Spsfi
4194221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4195221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
419660786Sps    LIBS=$SAVE_LIBS
419760786Sps    if test $termok = no; then TERMLIBS=""; fi
419860786Sps  fi
419960786Spsfi
420060786Sps
4201128345Stjr# -- Try termlib.
420260786Spsif test "x$TERMLIBS" = x; then
420360786Sps  if test $have_termlib = yes; then
420460786Sps    TERMLIBS="-lcurses -ltermlib"
420560786Sps    SAVE_LIBS=$LIBS
420660786Sps    LIBS="$LIBS $TERMLIBS"
4207221715Sdelphij    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208170256Sdelphij/* end confdefs.h.  */
420960786Sps
4210128345Stjrint
4211128345Stjrmain ()
4212128345Stjr{
421360786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4214128345Stjr  ;
4215128345Stjr  return 0;
4216128345Stjr}
4217128345Stjr_ACEOF
4218221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
421960786Sps  termok=yes
422060786Spselse
4221221715Sdelphij  termok=no
422260786Spsfi
4223221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4224221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
422560786Sps    LIBS=$SAVE_LIBS
422660786Sps    if test $termok = no; then TERMLIBS=""; fi
422760786Sps  fi
422860786Spsfi
422960786Sps
423060786Spsif test "x$TERMLIBS" = x; then
4231221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find terminal libraries - configure failed" >&5
4232191930Sdelphij$as_echo "Cannot find terminal libraries - configure failed" >&6; }
423360786Sps  exit 1
423460786Spsfi
4235221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $TERMLIBS" >&5
4236191930Sdelphij$as_echo "using $TERMLIBS" >&6; }
423760786SpsLIBS="$LIBS $TERMLIBS"
423860786Sps
4239128345Stjr# Checks for header files.
4240221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4241191930Sdelphij$as_echo_n "checking for ANSI C header files... " >&6; }
4242240121Sdelphijif ${ac_cv_header_stdc+:} false; then :
4243191930Sdelphij  $as_echo_n "(cached) " >&6
424460786Spselse
4245221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246170256Sdelphij/* end confdefs.h.  */
424760786Sps#include <stdlib.h>
424860786Sps#include <stdarg.h>
424960786Sps#include <string.h>
425060786Sps#include <float.h>
4251128345Stjr
4252170256Sdelphijint
4253170256Sdelphijmain ()
4254170256Sdelphij{
4255170256Sdelphij
4256170256Sdelphij  ;
4257170256Sdelphij  return 0;
4258170256Sdelphij}
4259128345Stjr_ACEOF
4260221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
426160786Sps  ac_cv_header_stdc=yes
426260786Spselse
4263221715Sdelphij  ac_cv_header_stdc=no
426460786Spsfi
4265170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266170256Sdelphij
426760786Spsif test $ac_cv_header_stdc = yes; then
426860786Sps  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4269221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270170256Sdelphij/* end confdefs.h.  */
427160786Sps#include <string.h>
4272128345Stjr
4273128345Stjr_ACEOF
427460786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275221715Sdelphij  $EGREP "memchr" >/dev/null 2>&1; then :
4276221715Sdelphij
427760786Spselse
427860786Sps  ac_cv_header_stdc=no
427960786Spsfi
428060786Spsrm -f conftest*
428160786Sps
428260786Spsfi
428360786Sps
428460786Spsif test $ac_cv_header_stdc = yes; then
428560786Sps  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4286221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287170256Sdelphij/* end confdefs.h.  */
428860786Sps#include <stdlib.h>
4289128345Stjr
4290128345Stjr_ACEOF
429160786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292221715Sdelphij  $EGREP "free" >/dev/null 2>&1; then :
4293221715Sdelphij
429460786Spselse
429560786Sps  ac_cv_header_stdc=no
429660786Spsfi
429760786Spsrm -f conftest*
429860786Sps
429960786Spsfi
430060786Sps
430160786Spsif test $ac_cv_header_stdc = yes; then
430260786Sps  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4303221715Sdelphij  if test "$cross_compiling" = yes; then :
430460786Sps  :
430560786Spselse
4306221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307170256Sdelphij/* end confdefs.h.  */
430860786Sps#include <ctype.h>
4309170256Sdelphij#include <stdlib.h>
4310128345Stjr#if ((' ' & 0x0FF) == 0x020)
4311128345Stjr# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4312128345Stjr# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4313128345Stjr#else
4314170256Sdelphij# define ISLOWER(c) \
4315170256Sdelphij		   (('a' <= (c) && (c) <= 'i') \
4316170256Sdelphij		     || ('j' <= (c) && (c) <= 'r') \
4317170256Sdelphij		     || ('s' <= (c) && (c) <= 'z'))
4318128345Stjr# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4319128345Stjr#endif
4320128345Stjr
432160786Sps#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4322128345Stjrint
4323128345Stjrmain ()
4324128345Stjr{
4325128345Stjr  int i;
4326128345Stjr  for (i = 0; i < 256; i++)
4327128345Stjr    if (XOR (islower (i), ISLOWER (i))
4328170256Sdelphij	|| toupper (i) != TOUPPER (i))
4329170256Sdelphij      return 2;
4330170256Sdelphij  return 0;
4331128345Stjr}
4332128345Stjr_ACEOF
4333221715Sdelphijif ac_fn_c_try_run "$LINENO"; then :
4334221715Sdelphij
433560786Spselse
4336221715Sdelphij  ac_cv_header_stdc=no
433760786Spsfi
4338221715Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4339221715Sdelphij  conftest.$ac_objext conftest.beam conftest.$ac_ext
434060786Spsfi
4341170256Sdelphij
434260786Spsfi
434360786Spsfi
4344221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4345191930Sdelphij$as_echo "$ac_cv_header_stdc" >&6; }
4346128345Stjrif test $ac_cv_header_stdc = yes; then
434760786Sps
4348221715Sdelphij$as_echo "#define STDC_HEADERS 1" >>confdefs.h
434960786Sps
435060786Spsfi
435160786Sps
4352128345Stjr# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4353128345Stjrfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4354170256Sdelphij		  inttypes.h stdint.h unistd.h
4355221715Sdelphijdo :
4356221715Sdelphij  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4357221715Sdelphijac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4358221715Sdelphij"
4359221715Sdelphijif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4360128345Stjr  cat >>confdefs.h <<_ACEOF
4361191930Sdelphij#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362128345Stjr_ACEOF
4363128345Stjr
4364128345Stjrfi
4365128345Stjr
4366128345Stjrdone
4367128345Stjr
4368128345Stjr
4369173682Sdelphijfor ac_header in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h wctype.h
4370221715Sdelphijdo :
4371221715Sdelphij  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372221715Sdelphijac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4373221715Sdelphijif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4374128345Stjr  cat >>confdefs.h <<_ACEOF
4375191930Sdelphij#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4376128345Stjr_ACEOF
4377128345Stjr
4378128345Stjrfi
4379128345Stjr
4380128345Stjrdone
4381128345Stjr
4382128345Stjr
4383128345Stjr# Checks for typedefs, structures, and compiler characteristics.
4384221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4385191930Sdelphij$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4386240121Sdelphijif ${ac_cv_header_stat_broken+:} false; then :
4387191930Sdelphij  $as_echo_n "(cached) " >&6
4388128345Stjrelse
4389221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390170256Sdelphij/* end confdefs.h.  */
439160786Sps#include <sys/types.h>
4392128345Stjr#include <sys/stat.h>
4393128345Stjr
4394170256Sdelphij#if defined S_ISBLK && defined S_IFDIR
4395170256Sdelphijextern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
439660786Sps#endif
4397128345Stjr
4398170256Sdelphij#if defined S_ISBLK && defined S_IFCHR
4399170256Sdelphijextern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4400128345Stjr#endif
4401128345Stjr
4402170256Sdelphij#if defined S_ISLNK && defined S_IFREG
4403170256Sdelphijextern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4404128345Stjr#endif
4405128345Stjr
4406170256Sdelphij#if defined S_ISSOCK && defined S_IFREG
4407170256Sdelphijextern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4408128345Stjr#endif
4409128345Stjr
4410128345Stjr_ACEOF
4411221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
4412170256Sdelphij  ac_cv_header_stat_broken=no
441360786Spselse
4414221715Sdelphij  ac_cv_header_stat_broken=yes
441560786Spsfi
4416170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
441760786Spsfi
4418221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4419191930Sdelphij$as_echo "$ac_cv_header_stat_broken" >&6; }
4420128345Stjrif test $ac_cv_header_stat_broken = yes; then
4421128345Stjr
4422221715Sdelphij$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4423128345Stjr
4424128345Stjrfi
4425128345Stjr
4426221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4427191930Sdelphij$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4428240121Sdelphijif ${ac_cv_c_const+:} false; then :
4429191930Sdelphij  $as_echo_n "(cached) " >&6
4430128345Stjrelse
4431221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432170256Sdelphij/* end confdefs.h.  */
4433128345Stjr
4434128345Stjrint
4435128345Stjrmain ()
4436128345Stjr{
4437128345Stjr/* FIXME: Include the comments suggested by Paul. */
4438128345Stjr#ifndef __cplusplus
4439128345Stjr  /* Ultrix mips cc rejects this.  */
4440128345Stjr  typedef int charset[2];
4441170256Sdelphij  const charset cs;
4442128345Stjr  /* SunOS 4.1.1 cc rejects this.  */
4443170256Sdelphij  char const *const *pcpcc;
4444170256Sdelphij  char **ppc;
4445128345Stjr  /* NEC SVR4.0.2 mips cc rejects this.  */
4446128345Stjr  struct point {int x, y;};
4447128345Stjr  static struct point const zero = {0,0};
4448128345Stjr  /* AIX XL C 1.02.0.0 rejects this.
4449128345Stjr     It does not let you subtract one const X* pointer from another in
4450128345Stjr     an arm of an if-expression whose if-part is not a constant
4451128345Stjr     expression */
4452128345Stjr  const char *g = "string";
4453170256Sdelphij  pcpcc = &g + (g ? g-g : 0);
4454128345Stjr  /* HPUX 7.0 cc rejects these. */
4455170256Sdelphij  ++pcpcc;
4456170256Sdelphij  ppc = (char**) pcpcc;
4457170256Sdelphij  pcpcc = (char const *const *) ppc;
4458128345Stjr  { /* SCO 3.2v4 cc rejects this.  */
4459128345Stjr    char *t;
4460128345Stjr    char const *s = 0 ? (char *) 0 : (char const *) 0;
4461128345Stjr
4462128345Stjr    *t++ = 0;
4463170256Sdelphij    if (s) return 0;
4464128345Stjr  }
4465128345Stjr  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4466128345Stjr    int x[] = {25, 17};
4467128345Stjr    const int *foo = &x[0];
4468128345Stjr    ++foo;
4469128345Stjr  }
4470128345Stjr  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4471128345Stjr    typedef const int *iptr;
4472128345Stjr    iptr p = 0;
4473128345Stjr    ++p;
4474128345Stjr  }
4475128345Stjr  { /* AIX XL C 1.02.0.0 rejects this saying
4476128345Stjr       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4477128345Stjr    struct s { int j; const int *ap[3]; };
4478128345Stjr    struct s *b; b->j = 5;
4479128345Stjr  }
4480128345Stjr  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4481128345Stjr    const int foo = 10;
4482170256Sdelphij    if (!foo) return 0;
4483128345Stjr  }
4484170256Sdelphij  return !cs[0] && !zero.x;
4485128345Stjr#endif
4486128345Stjr
4487128345Stjr  ;
4488128345Stjr  return 0;
4489128345Stjr}
4490128345Stjr_ACEOF
4491221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
4492128345Stjr  ac_cv_c_const=yes
4493128345Stjrelse
4494221715Sdelphij  ac_cv_c_const=no
4495128345Stjrfi
4496170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497128345Stjrfi
4498221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4499191930Sdelphij$as_echo "$ac_cv_c_const" >&6; }
4500128345Stjrif test $ac_cv_c_const = no; then
4501128345Stjr
4502221715Sdelphij$as_echo "#define const /**/" >>confdefs.h
4503128345Stjr
4504128345Stjrfi
4505128345Stjr
4506221715Sdelphijac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4507240121Sdelphijif test "x$ac_cv_type_off_t" = xyes; then :
4508170256Sdelphij
4509191930Sdelphijelse
4510191930Sdelphij
4511128345Stjrcat >>confdefs.h <<_ACEOF
4512170256Sdelphij#define off_t long int
4513128345Stjr_ACEOF
451460786Sps
451560786Spsfi
451660786Sps
4517221715Sdelphijac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4518240121Sdelphijif test "x$ac_cv_type_size_t" = xyes; then :
4519170256Sdelphij
4520191930Sdelphijelse
4521191930Sdelphij
4522128345Stjrcat >>confdefs.h <<_ACEOF
4523170256Sdelphij#define size_t unsigned int
4524128345Stjr_ACEOF
4525128345Stjr
4526128345Stjrfi
4527128345Stjr
4528221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4529191930Sdelphij$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4530240121Sdelphijif ${ac_cv_header_time+:} false; then :
4531191930Sdelphij  $as_echo_n "(cached) " >&6
4532128345Stjrelse
4533221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534170256Sdelphij/* end confdefs.h.  */
4535128345Stjr#include <sys/types.h>
4536128345Stjr#include <sys/time.h>
4537128345Stjr#include <time.h>
4538128345Stjr
4539128345Stjrint
4540128345Stjrmain ()
4541128345Stjr{
4542128345Stjrif ((struct tm *) 0)
4543128345Stjrreturn 0;
4544128345Stjr  ;
4545128345Stjr  return 0;
4546128345Stjr}
4547128345Stjr_ACEOF
4548221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
4549128345Stjr  ac_cv_header_time=yes
4550128345Stjrelse
4551221715Sdelphij  ac_cv_header_time=no
4552128345Stjrfi
4553170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554128345Stjrfi
4555221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4556191930Sdelphij$as_echo "$ac_cv_header_time" >&6; }
4557128345Stjrif test $ac_cv_header_time = yes; then
4558128345Stjr
4559221715Sdelphij$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4560128345Stjr
4561128345Stjrfi
4562128345Stjr
4563128345Stjr
4564128345Stjr# Autoheader templates for symbols defined later by AC_DEFINE.
4565128345Stjr
4566128345Stjr
4567128345Stjr
4568128345Stjr
4569128345Stjr
4570128345Stjr
4571128345Stjr
4572128345Stjr
4573128345Stjr
4574128345Stjr
4575128345Stjr
4576128345Stjr
4577128345Stjr
4578128345Stjr
4579128345Stjr
4580128345Stjr
4581128345Stjr
4582128345Stjr
4583128345Stjr
4584128345Stjr
4585128345Stjr
4586128345Stjr
4587128345Stjr
4588128345Stjr
4589128345Stjr
4590128345Stjr
4591128345Stjr
4592128345Stjr
4593240121Sdelphij
4594128345Stjr# Checks for identifiers.
4595221715Sdelphijac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4596240121Sdelphijif test "x$ac_cv_type_off_t" = xyes; then :
4597170256Sdelphij
4598191930Sdelphijelse
4599191930Sdelphij
4600128345Stjrcat >>confdefs.h <<_ACEOF
4601170256Sdelphij#define off_t long int
4602128345Stjr_ACEOF
4603128345Stjr
4604128345Stjrfi
4605128345Stjr
4606221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void" >&5
4607191930Sdelphij$as_echo_n "checking for void... " >&6; }
4608221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609170256Sdelphij/* end confdefs.h.  */
4610128345Stjr
4611128345Stjrint
4612128345Stjrmain ()
4613128345Stjr{
461460786Spsvoid *foo = 0;
4615128345Stjr  ;
4616128345Stjr  return 0;
4617128345Stjr}
4618128345Stjr_ACEOF
4619221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
4620221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4621221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_VOID 1" >>confdefs.h
462260786Sps
462360786Spselse
4624221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625191930Sdelphij$as_echo "no" >&6; }
462660786Spsfi
4627170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for const" >&5
4629191930Sdelphij$as_echo_n "checking for const... " >&6; }
4630221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631170256Sdelphij/* end confdefs.h.  */
463260786Sps
4633128345Stjrint
4634128345Stjrmain ()
4635128345Stjr{
463660786Spsconst int foo = 0;
4637128345Stjr  ;
4638128345Stjr  return 0;
4639128345Stjr}
4640128345Stjr_ACEOF
4641221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
4642221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4643221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_CONST 1" >>confdefs.h
464460786Sps
464560786Spselse
4646221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647191930Sdelphij$as_echo "no" >&6; }
464860786Spsfi
4649170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5
4651191930Sdelphij$as_echo_n "checking for time_t... " >&6; }
4652221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653170256Sdelphij/* end confdefs.h.  */
465460786Sps#include <time.h>
4655128345Stjrint
4656128345Stjrmain ()
4657128345Stjr{
465860786Spstime_t t = 0;
4659128345Stjr  ;
4660128345Stjr  return 0;
4661128345Stjr}
4662128345Stjr_ACEOF
4663221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
4664221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4665221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_TIME_T 1" >>confdefs.h
466660786Sps
466760786Spselse
4668221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669191930Sdelphij$as_echo "no" >&6; }
467060786Spsfi
4671170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_ino in struct stat" >&5
4673191930Sdelphij$as_echo_n "checking for st_ino in struct stat... " >&6; }
4674221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675173682Sdelphij/* end confdefs.h.  */
4676173682Sdelphij#include <sys/types.h>
4677173682Sdelphij#include <sys/stat.h>
4678173682Sdelphijint
4679173682Sdelphijmain ()
4680173682Sdelphij{
4681173682Sdelphijstruct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;
4682173682Sdelphij  ;
4683173682Sdelphij  return 0;
4684173682Sdelphij}
4685173682Sdelphij_ACEOF
4686221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
4687221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4688221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_STAT_INO 1" >>confdefs.h
4689170256Sdelphij
4690173682Sdelphijelse
4691221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692191930Sdelphij$as_echo "no" >&6; }
4693173682Sdelphijfi
4694173682Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695173682Sdelphij
4696128345Stjr# Checks for library functions.
4697221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4698191930Sdelphij$as_echo_n "checking return type of signal handlers... " >&6; }
4699240121Sdelphijif ${ac_cv_type_signal+:} false; then :
4700191930Sdelphij  $as_echo_n "(cached) " >&6
470160786Spselse
4702221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703170256Sdelphij/* end confdefs.h.  */
470460786Sps#include <sys/types.h>
470560786Sps#include <signal.h>
470660786Sps
4707128345Stjrint
4708128345Stjrmain ()
4709128345Stjr{
4710170256Sdelphijreturn *(signal (0, 0)) (0) == 1;
4711128345Stjr  ;
4712128345Stjr  return 0;
4713128345Stjr}
4714128345Stjr_ACEOF
4715221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then :
4716170256Sdelphij  ac_cv_type_signal=int
471760786Spselse
4718221715Sdelphij  ac_cv_type_signal=void
471960786Spsfi
4720170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
472160786Spsfi
4722221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4723191930Sdelphij$as_echo "$ac_cv_type_signal" >&6; }
472460786Sps
4725128345Stjrcat >>confdefs.h <<_ACEOF
472660786Sps#define RETSIGTYPE $ac_cv_type_signal
4727128345Stjr_ACEOF
472860786Sps
472960786Sps
4730170256Sdelphijfor ac_func in fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod
4731221715Sdelphijdo :
4732221715Sdelphij  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4733221715Sdelphijac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4734221715Sdelphijif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4735128345Stjr  cat >>confdefs.h <<_ACEOF
4736191930Sdelphij#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4737128345Stjr_ACEOF
473860786Sps
473960786Spsfi
474060786Spsdone
474160786Sps
474260786Sps
4743170256Sdelphij# AC_CHECK_FUNCS may not work for inline functions, so test these separately.
4744221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
4745191930Sdelphij$as_echo_n "checking for memcpy... " >&6; }
4746221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747170256Sdelphij/* end confdefs.h.  */
4748170256Sdelphij
4749170256Sdelphij#if HAVE_STRING_H
4750170256Sdelphij#include <string.h>
4751170256Sdelphij#endif
4752170256Sdelphijint
4753170256Sdelphijmain ()
4754170256Sdelphij{
4755170256Sdelphijmemcpy(0,0,0);
4756170256Sdelphij  ;
4757170256Sdelphij  return 0;
4758170256Sdelphij}
4759170256Sdelphij_ACEOF
4760221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4761221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4762221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
4763170256Sdelphij
4764170256Sdelphijelse
4765221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766191930Sdelphij$as_echo "no" >&6; }
4767170256Sdelphijfi
4768221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4769221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
4770170256Sdelphij
4771221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strchr" >&5
4772191930Sdelphij$as_echo_n "checking for strchr... " >&6; }
4773221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774170256Sdelphij/* end confdefs.h.  */
4775170256Sdelphij
4776170256Sdelphij#if HAVE_STRING_H
4777170256Sdelphij#include <string.h>
4778170256Sdelphij#endif
4779170256Sdelphijint
4780170256Sdelphijmain ()
4781170256Sdelphij{
4782170256Sdelphijstrchr("x",'x');
4783170256Sdelphij  ;
4784170256Sdelphij  return 0;
4785170256Sdelphij}
4786170256Sdelphij_ACEOF
4787221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4788221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_STRCHR 1" >>confdefs.h
4790170256Sdelphij
4791170256Sdelphijelse
4792221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793191930Sdelphij$as_echo "no" >&6; }
4794170256Sdelphijfi
4795221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4796221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
4797170256Sdelphij
4798221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strstr" >&5
4799191930Sdelphij$as_echo_n "checking for strstr... " >&6; }
4800221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801170256Sdelphij/* end confdefs.h.  */
4802170256Sdelphij
4803170256Sdelphij#if HAVE_STRING_H
4804170256Sdelphij#include <string.h>
4805170256Sdelphij#endif
4806170256Sdelphijint
4807170256Sdelphijmain ()
4808170256Sdelphij{
4809170256Sdelphijstrstr("x","x");
4810170256Sdelphij  ;
4811170256Sdelphij  return 0;
4812170256Sdelphij}
4813170256Sdelphij_ACEOF
4814221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4815221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4816221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
4817170256Sdelphij
4818170256Sdelphijelse
4819221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820191930Sdelphij$as_echo "no" >&6; }
4821170256Sdelphijfi
4822221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4823221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
4824170256Sdelphij
4825128345Stjr# Some systems have termios.h but not the corresponding functions.
4826221715Sdelphijac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
4827240121Sdelphijif test "x$ac_cv_func_tcgetattr" = xyes; then :
4828221715Sdelphij  $as_echo "#define HAVE_TERMIOS_FUNCS 1" >>confdefs.h
4829170256Sdelphij
483060786Spsfi
4831170256Sdelphij
483260786Sps
4833221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileno" >&5
4834191930Sdelphij$as_echo_n "checking for fileno... " >&6; }
4835221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836170256Sdelphij/* end confdefs.h.  */
483760786Sps
483860786Sps#if HAVE_STDIO_H
483960786Sps#include <stdio.h>
484060786Sps#endif
4841128345Stjrint
4842128345Stjrmain ()
4843128345Stjr{
484460786Spsstatic int x; x = fileno(stdin);
4845128345Stjr  ;
4846128345Stjr  return 0;
4847128345Stjr}
4848128345Stjr_ACEOF
4849221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4850221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4851221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_FILENO 1" >>confdefs.h
485260786Sps
485360786Spselse
4854221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855191930Sdelphij$as_echo "no" >&6; }
485660786Spsfi
4857221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4858221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
485960786Sps
4860221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror" >&5
4861191930Sdelphij$as_echo_n "checking for strerror... " >&6; }
4862221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863170256Sdelphij/* end confdefs.h.  */
486460786Sps
486560786Sps#if HAVE_STDIO_H
486660786Sps#include <stdio.h>
486760786Sps#endif
486860786Sps#if HAVE_STRING_H
486960786Sps#include <string.h>
487060786Sps#endif
487160786Sps#if HAVE_ERRNO_H
487260786Sps#include <errno.h>
487360786Sps#endif
4874128345Stjrint
4875128345Stjrmain ()
4876128345Stjr{
487760786Spsstatic char *x; x = strerror(0);
4878128345Stjr  ;
4879128345Stjr  return 0;
4880128345Stjr}
4881128345Stjr_ACEOF
4882221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4883221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4884221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
488560786Sps
488660786Spselse
4887221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888191930Sdelphij$as_echo "no" >&6; }
488960786Spsfi
4890221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4891221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
489260786Sps
4893221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
4894191930Sdelphij$as_echo_n "checking for sys_errlist... " >&6; }
4895221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896170256Sdelphij/* end confdefs.h.  */
489760786Sps
4898128345Stjrint
4899128345Stjrmain ()
4900128345Stjr{
490160786Spsextern char *sys_errlist[]; static char **x; x = sys_errlist;
4902128345Stjr  ;
4903128345Stjr  return 0;
4904128345Stjr}
4905128345Stjr_ACEOF
4906221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4907221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4908221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
490960786Sps
491060786Spselse
4911221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912191930Sdelphij$as_echo "no" >&6; }
491360786Spsfi
4914221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4915221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
491660786Sps
4917221715Sdelphijac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
4918221715Sdelphij"
4919240121Sdelphijif test "x$ac_cv_type_sigset_t" = xyes; then :
492063128Sps
4921170256Sdelphijcat >>confdefs.h <<_ACEOF
492263128Sps#define HAVE_SIGSET_T 1
4923128345Stjr_ACEOF
492463128Sps
4925170256Sdelphij
492663128Spsfi
492763128Sps
4928170256Sdelphij
4929221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigemptyset" >&5
4930191930Sdelphij$as_echo_n "checking for sigemptyset... " >&6; }
4931221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932170256Sdelphij/* end confdefs.h.  */
493363128Sps
493463128Sps#include <signal.h>
493563128Sps
4936128345Stjrint
4937128345Stjrmain ()
4938128345Stjr{
493963128Spssigset_t s; sigemptyset(&s);
4940128345Stjr  ;
4941128345Stjr  return 0;
4942128345Stjr}
4943128345Stjr_ACEOF
4944221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4945221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4946221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_SIGEMPTYSET 1" >>confdefs.h
494763128Sps
494863128Spselse
4949221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950191930Sdelphij$as_echo "no" >&6; }
495163128Spsfi
4952221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4953221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
495463128Sps
495560786Spshave_errno=no
4956221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
4957191930Sdelphij$as_echo_n "checking for errno... " >&6; }
4958221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959170256Sdelphij/* end confdefs.h.  */
496060786Sps
496160786Sps#if HAVE_ERRNO_H
496260786Sps#include <errno.h>
496360786Sps#endif
4964128345Stjrint
4965128345Stjrmain ()
4966128345Stjr{
496760786Spsstatic int x; x = errno;
4968128345Stjr  ;
4969128345Stjr  return 0;
4970128345Stjr}
4971128345Stjr_ACEOF
4972221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4973221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
4974221715Sdelphij$as_echo "yes - in errno.h" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
497560786Sps have_errno=yes
497660786Spsfi
4977221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
4978221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
497960786Spsif test $have_errno = no; then
4980221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981170256Sdelphij/* end confdefs.h.  */
498260786Sps
498360786Sps#if HAVE_ERRNO_H
498460786Sps#include <errno.h>
498560786Sps#endif
4986128345Stjrint
4987128345Stjrmain ()
4988128345Stjr{
498960786Spsextern int errno; static int x; x = errno;
4990128345Stjr  ;
4991128345Stjr  return 0;
4992128345Stjr}
4993128345Stjr_ACEOF
4994221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
4995221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
4996221715Sdelphij$as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4997221715Sdelphij $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
499860786Sps
499960786Spselse
5000221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001191930Sdelphij$as_echo "no" >&6; }
500260786Spsfi
5003221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
5004221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
500560786Spsfi
500660786Sps
5007221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale" >&5
5008191930Sdelphij$as_echo_n "checking for locale... " >&6; }
5009221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010170256Sdelphij/* end confdefs.h.  */
501160786Sps#include <locale.h>
501260786Sps#include <ctype.h>
5013172468Sdelphij#include <langinfo.h>
5014128345Stjrint
5015128345Stjrmain ()
5016128345Stjr{
501760786Spssetlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
5018128345Stjr  ;
5019128345Stjr  return 0;
5020128345Stjr}
5021128345Stjr_ACEOF
5022221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5023221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5024221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_LOCALE 1" >>confdefs.h
502560786Sps
502660786Spselse
5027221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028191930Sdelphij$as_echo "no" >&6; }
502960786Spsfi
5030221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
5031221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
5032170256Sdelphij
5033221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctype functions" >&5
5034191930Sdelphij$as_echo_n "checking for ctype functions... " >&6; }
5035221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036170256Sdelphij/* end confdefs.h.  */
503760786Sps
503860786Sps#if HAVE_CTYPE_H
503960786Sps#include <ctype.h>
504060786Sps#endif
5041128345Stjrint
5042128345Stjrmain ()
5043128345Stjr{
504460786Spsstatic int x; x = isupper(x); x = tolower(x); x = toupper(x);
5045128345Stjr  ;
5046128345Stjr  return 0;
5047128345Stjr}
5048128345Stjr_ACEOF
5049221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5050221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5051221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_UPPER_LOWER 1" >>confdefs.h
505260786Sps
505360786Spselse
5054221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055191930Sdelphij$as_echo "no" >&6; }
505660786Spsfi
5057221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
5058221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
505960786Sps
5060221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype functions" >&5
5061191930Sdelphij$as_echo_n "checking for wctype functions... " >&6; }
5062221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063173682Sdelphij/* end confdefs.h.  */
5064173682Sdelphij#include <wctype.h>
5065173682Sdelphijint
5066173682Sdelphijmain ()
5067173682Sdelphij{
5068173682Sdelphijiswlower(0); iswupper(0); towlower(0); towupper(0);
5069173682Sdelphij  ;
5070173682Sdelphij  return 0;
5071173682Sdelphij}
5072173682Sdelphij_ACEOF
5073221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5074221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5075221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
5076173682Sdelphij
5077173682Sdelphijelse
5078221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079191930Sdelphij$as_echo "no" >&6; }
5080173682Sdelphijfi
5081221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
5082221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
5083173682Sdelphij
5084128345Stjr# Checks for external variable ospeed in the termcap library.
508560786Spshave_ospeed=no
5086221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking termcap for ospeed" >&5
5087191930Sdelphij$as_echo_n "checking termcap for ospeed... " >&6; }
5088221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089170256Sdelphij/* end confdefs.h.  */
509060786Sps
509160786Sps#include <sys/types.h>
509260786Sps#if HAVE_TERMIOS_H
509360786Sps#include <termios.h>
509460786Sps#endif
509560786Sps#if HAVE_TERMCAP_H
509660786Sps#include <termcap.h>
509760786Sps#endif
5098128345Stjrint
5099128345Stjrmain ()
5100128345Stjr{
510160786Spsospeed = 0;
5102128345Stjr  ;
5103128345Stjr  return 0;
5104128345Stjr}
5105128345Stjr_ACEOF
5106221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5107221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in termcap.h" >&5
5108221715Sdelphij$as_echo "yes - in termcap.h" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
510960786Sps have_ospeed=yes
511060786Spsfi
5111221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
5112221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
511360786Spsif test $have_ospeed = no; then
5114221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115170256Sdelphij/* end confdefs.h.  */
511660786Sps
5117128345Stjrint
5118128345Stjrmain ()
5119128345Stjr{
512060786Spsextern short ospeed; ospeed = 0;
5121128345Stjr  ;
5122128345Stjr  return 0;
5123128345Stjr}
5124128345Stjr_ACEOF
5125221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5126221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5127221715Sdelphij$as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5128221715Sdelphij $as_echo "#define MUST_DEFINE_OSPEED 1" >>confdefs.h
512960786Sps
513060786Spselse
5131221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132191930Sdelphij$as_echo "no" >&6; }
513360786Spsfi
5134221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
5135221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
513660786Spsfi
513760786Sps
5138161475Sdelphij# Compile in secure mode?
5139161475Sdelphij
5140170256Sdelphij# Check whether --with-secure was given.
5141221715Sdelphijif test "${with_secure+set}" = set; then :
5142221715Sdelphij  withval=$with_secure; $as_echo "#define SECURE_COMPILE 1" >>confdefs.h
5143161475Sdelphij
5144161475Sdelphijelse
5145221715Sdelphij  $as_echo "#define SECURE_COMPILE 0" >>confdefs.h
5146221715Sdelphij
5147221715Sdelphijfi
5148221715Sdelphij
5149221715Sdelphij
5150221715Sdelphij# Should we use floating point?
5151221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floating point" >&5
5152221715Sdelphij$as_echo_n "checking for floating point... " >&6; }
5153221715Sdelphij
5154221715Sdelphij# Check whether --with-no-float was given.
5155221715Sdelphijif test "${with_no_float+set}" = set; then :
5156221715Sdelphij  withval=$with_no_float; WANT_NO_FLOAT=1
5157221715Sdelphijelse
5158221715Sdelphij  WANT_NO_FLOAT=0
5159221715Sdelphijfi
5160221715Sdelphij
5161221715Sdelphijif test $WANT_NO_FLOAT = 0; then
5162221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163221715Sdelphij/* end confdefs.h.  */
5164221715Sdelphij
5165221715Sdelphijint
5166221715Sdelphijmain ()
5167221715Sdelphij{
5168221715Sdelphijdouble f1 = 12.5; double f2 = f1*f1/2.5;
5169221715Sdelphij  ;
5170221715Sdelphij  return 0;
5171221715Sdelphij}
5172161475Sdelphij_ACEOF
5173221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5174221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5175221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT 1" >>confdefs.h
5176161475Sdelphij
5177221715Sdelphijelse
5178221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179221715Sdelphij$as_echo "no" >&6; }
5180170256Sdelphijfi
5181221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
5182221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
5183221715Sdelphijelse
5184221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by user" >&5
5185221715Sdelphij$as_echo "disabled by user" >&6; }
5186221715Sdelphijfi
5187161475Sdelphij
5188128345Stjr# Checks for regular expression functions.
518960786Spshave_regex=no
519060786Spshave_posix_regex=unknown
5191251154Sdelphijsupported_regex=""
519260786Sps
5193161475Sdelphij# Select a regular expression library.
519460786SpsWANT_REGEX=auto
5195128345Stjr
5196170256Sdelphij# Check whether --with-regex was given.
5197221715Sdelphijif test "${with_regex+set}" = set; then :
5198170256Sdelphij  withval=$with_regex; WANT_REGEX="$withval"
5199170256Sdelphijfi
520060786Sps
5201170256Sdelphij
520260786Spsif test $have_regex = no; then
520360786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
5204128345Stjr# Some versions of Solaris have a regcomp() function, but it doesn't work!
5205128345Stjr# So we run a test program.  If we're cross-compiling, do it the old way.
5206251154Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX regcomp" >&5
5207251154Sdelphij$as_echo_n "checking for POSIX regcomp... " >&6; }
5208221715Sdelphijif test "$cross_compiling" = yes; then :
520960786Sps  have_posix_regex=unknown
521060786Spselse
5211221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212170256Sdelphij/* end confdefs.h.  */
521360786Sps
521460786Sps#include <sys/types.h>
521560786Sps#include <regex.h>
521660786Spsmain() { regex_t r; regmatch_t rm; char *text = "xabcy";
521760786Spsif (regcomp(&r, "abc", 0)) exit(1);
521860786Spsif (regexec(&r, text, 1, &rm, 0)) exit(1);
521960786Sps#ifndef __WATCOMC__
522060786Spsif (rm.rm_so != 1) exit(1); /* check for correct offset */
522160786Sps#else
522260786Spsif (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
522360786Sps#endif
522460786Spsexit(0); }
5225128345Stjr_ACEOF
5226221715Sdelphijif ac_fn_c_try_run "$LINENO"; then :
522760786Sps  have_posix_regex=yes
522860786Spselse
5229221715Sdelphij  have_posix_regex=no
523060786Spsfi
5231221715Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5232221715Sdelphij  conftest.$ac_objext conftest.beam conftest.$ac_ext
523360786Spsfi
5234170256Sdelphij
523560786Spsif test $have_posix_regex = yes; then
5236251154Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5237251154Sdelphij$as_echo "yes" >&6; }
5238221715Sdelphij  $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5239251154Sdelphij supported_regex="$supported_regex posix"
524060786Sps  have_regex=yes
524160786Spselif test $have_posix_regex = unknown; then
5242221715Sdelphij  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243170256Sdelphij/* end confdefs.h.  */
524460786Sps
524560786Sps#include <sys/types.h>
524660786Sps#include <regex.h>
5247128345Stjrint
5248128345Stjrmain ()
5249128345Stjr{
525060786Spsregex_t *r; regfree(r);
5251128345Stjr  ;
5252128345Stjr  return 0;
5253128345Stjr}
5254128345Stjr_ACEOF
5255221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5256251154Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5257251154Sdelphij$as_echo "yes" >&6; }
5258221715Sdelphij  $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5259251154Sdelphij have_regex=yes; supported_regex="$supported_regex posix"
526060786Spsfi
5261221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
5262221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
526360786Spselse
5264221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265191930Sdelphij$as_echo "no" >&6; }
526660786Spsfi
526760786Spsfi
526860786Spsfi
526960786Sps
527060786Spsif test $have_regex = no; then
5271251154Sdelphijif test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
5272251154Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
5273251154Sdelphij$as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
5274251154Sdelphijif ${ac_cv_lib_pcre_pcre_compile+:} false; then :
5275240121Sdelphij  $as_echo_n "(cached) " >&6
5276240121Sdelphijelse
5277240121Sdelphij  ac_check_lib_save_LIBS=$LIBS
5278251154SdelphijLIBS="-lpcre  $LIBS"
5279240121Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280240121Sdelphij/* end confdefs.h.  */
5281240121Sdelphij
5282240121Sdelphij/* Override any GCC internal prototype to avoid an error.
5283240121Sdelphij   Use char because int might match the return type of a GCC
5284240121Sdelphij   builtin and then its argument prototype would still apply.  */
5285240121Sdelphij#ifdef __cplusplus
5286240121Sdelphijextern "C"
5287240121Sdelphij#endif
5288251154Sdelphijchar pcre_compile ();
5289240121Sdelphijint
5290240121Sdelphijmain ()
5291240121Sdelphij{
5292251154Sdelphijreturn pcre_compile ();
5293240121Sdelphij  ;
5294240121Sdelphij  return 0;
5295240121Sdelphij}
5296240121Sdelphij_ACEOF
5297240121Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5298251154Sdelphij  ac_cv_lib_pcre_pcre_compile=yes
5299240121Sdelphijelse
5300251154Sdelphij  ac_cv_lib_pcre_pcre_compile=no
5301240121Sdelphijfi
5302240121Sdelphijrm -f core conftest.err conftest.$ac_objext \
5303240121Sdelphij    conftest$ac_exeext conftest.$ac_ext
5304240121SdelphijLIBS=$ac_check_lib_save_LIBS
5305240121Sdelphijfi
5306251154Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
5307251154Sdelphij$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
5308251154Sdelphijif test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
5309251154Sdelphij  $as_echo "#define HAVE_PCRE 1" >>confdefs.h
5310251154Sdelphij LIBS="$LIBS -lpcre" have_regex=yes; supported_regex="$supported_regex pcre"
5311240121Sdelphijfi
5312240121Sdelphij
5313240121Sdelphijfi
5314240121Sdelphijfi
5315240121Sdelphij
5316240121Sdelphijif test $have_regex = no; then
5317251154Sdelphijif test $WANT_REGEX = auto -o $WANT_REGEX = gnu; then
5318251154Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for re_compile_pattern in -lc" >&5
5319251154Sdelphij$as_echo_n "checking for re_compile_pattern in -lc... " >&6; }
5320251154Sdelphijif ${ac_cv_lib_c_re_compile_pattern+:} false; then :
5321191930Sdelphij  $as_echo_n "(cached) " >&6
532260786Spselse
5323128345Stjr  ac_check_lib_save_LIBS=$LIBS
5324251154SdelphijLIBS="-lc  $LIBS"
5325221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326170256Sdelphij/* end confdefs.h.  */
5327128345Stjr
5328170256Sdelphij/* Override any GCC internal prototype to avoid an error.
5329170256Sdelphij   Use char because int might match the return type of a GCC
5330170256Sdelphij   builtin and then its argument prototype would still apply.  */
5331128345Stjr#ifdef __cplusplus
5332128345Stjrextern "C"
5333128345Stjr#endif
5334251154Sdelphijchar re_compile_pattern ();
5335128345Stjrint
5336128345Stjrmain ()
5337128345Stjr{
5338251154Sdelphijreturn re_compile_pattern ();
5339128345Stjr  ;
5340128345Stjr  return 0;
5341128345Stjr}
5342128345Stjr_ACEOF
5343221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5344251154Sdelphij  ac_cv_lib_c_re_compile_pattern=yes
534560786Spselse
5346251154Sdelphij  ac_cv_lib_c_re_compile_pattern=no
534760786Spsfi
5348221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
5349221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
5350128345StjrLIBS=$ac_check_lib_save_LIBS
535160786Spsfi
5352251154Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_re_compile_pattern" >&5
5353251154Sdelphij$as_echo "$ac_cv_lib_c_re_compile_pattern" >&6; }
5354251154Sdelphijif test "x$ac_cv_lib_c_re_compile_pattern" = xyes; then :
5355251154Sdelphij  $as_echo "#define HAVE_GNU_REGEX 1" >>confdefs.h
5356251154Sdelphij have_regex=yes; supported_regex="$supported_regex gnu"
535760786Spsfi
535860786Sps
535960786Spsfi
536060786Spsfi
536160786Sps
536260786Spsif test $have_regex = no; then
536360786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
5364221715Sdelphijac_fn_c_check_func "$LINENO" "regcmp" "ac_cv_func_regcmp"
5365240121Sdelphijif test "x$ac_cv_func_regcmp" = xyes; then :
5366251154Sdelphij  $as_echo "#define HAVE_REGCMP 1" >>confdefs.h
5367251154Sdelphij have_regex=yes; supported_regex="$supported_regex regcmp"
536860786Spsfi
536960786Sps
537060786Spsfi
537160786Spsfi
537260786Sps
537360786Spsif test $have_regex = no; then
537460786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
5375251154Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for V8 regcomp" >&5
5376251154Sdelphij$as_echo_n "checking for V8 regcomp... " >&6; }
5377221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378170256Sdelphij/* end confdefs.h.  */
537960786Sps
538060786Sps#include "regexp.h"
5381128345Stjrint
5382128345Stjrmain ()
5383128345Stjr{
538460786Spsregcomp("");
5385128345Stjr  ;
5386128345Stjr  return 0;
5387128345Stjr}
5388128345Stjr_ACEOF
5389221715Sdelphijif ac_fn_c_try_link "$LINENO"; then :
5390251154Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5391251154Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5392251154Sdelphij have_regex=yes; supported_regex="$supported_regex regcomp"
5393251154Sdelphijelse
5394251154Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395251154Sdelphij$as_echo "no" >&6; }
539660786Spsfi
5397221715Sdelphijrm -f core conftest.err conftest.$ac_objext \
5398221715Sdelphij    conftest$ac_exeext conftest.$ac_ext
539960786Spsfi
540060786Spsfi
540160786Sps
540260786Spsif test $have_regex = no && test -f ${srcdir}/regexp.c; then
540360786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
5404221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp -- local source" >&5
5405221715Sdelphij$as_echo "using V8 regcomp -- local source" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5406251154Sdelphij
5407251154Sdelphijsupported_regex="$supported_regex regcomp-local"
5408251154Sdelphij$as_echo "#define HAVE_REGEXEC2 1" >>confdefs.h
540960786Sps REGEX_O='regexp.$(O)'  have_regex=yes
541060786Spsfi
541160786Spsfi
541260786Sps
541360786Spsif test $have_regex = no; then
541460786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
5415251154Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for re_comp" >&5
5416251154Sdelphij$as_echo_n "checking for re_comp... " >&6; }
5417251154Sdelphijac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
5418240121Sdelphijif test "x$ac_cv_func_re_comp" = xyes; then :
5419221715Sdelphij  $as_echo "#define HAVE_RE_COMP 1" >>confdefs.h
5420251154Sdelphij have_regex=yes; supported_regex="$supported_regex re_comp"
542160786Spsfi
542260786Sps
542360786Spsfi
542460786Spsfi
542560786Sps
542660786Spsif test $have_regex = no; then
5427240121Sdelphijif test $WANT_REGEX = auto -o $WANT_REGEX = none; then
5428240121Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using no regex" >&5
5429251154Sdelphij$as_echo "using no regex" >&6; }
5430251154Sdelphijelse
5431251154Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find regular expression library" >&5
5432251154Sdelphij$as_echo "$as_me: WARNING: cannot find regular expression library" >&2;}
5433240121Sdelphijfi
5434251154Sdelphij$as_echo "#define NO_REGEX 1" >>confdefs.h
5435251154Sdelphij supported_regex="$supported_regex none"
5436240121Sdelphijfi
5437240121Sdelphij
5438251154Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: regular expression library: $supported_regex" >&5
5439251154Sdelphij$as_echo "regular expression library: $supported_regex" >&6; }
544060786Sps
544160786Sps
5442170256Sdelphij# Check whether --with-editor was given.
5443221715Sdelphijif test "${with_editor+set}" = set; then :
5444170256Sdelphij  withval=$with_editor; cat >>confdefs.h <<_ACEOF
544560786Sps#define EDIT_PGM "$withval"
5446128345Stjr_ACEOF
544760786Sps
5448128345Stjrelse
5449221715Sdelphij  $as_echo "#define EDIT_PGM \"vi\"" >>confdefs.h
545060786Sps
5451170256Sdelphijfi
545260786Sps
5453128345Stjr
5454128345Stjr
5455128345Stjr
5456170256Sdelphijac_config_files="$ac_config_files Makefile"
5457170256Sdelphij
5458128345Stjrcat >confcache <<\_ACEOF
545960786Sps# This file is a shell script that caches the results of configure
546060786Sps# tests run on this system so they can be shared between configure
5461128345Stjr# scripts and configure runs, see configure's option --config-cache.
5462128345Stjr# It is not useful on other systems.  If it contains results you don't
5463128345Stjr# want to keep, you may remove or edit it.
546460786Sps#
5465128345Stjr# config.status only pays attention to the cache file if you give it
5466128345Stjr# the --recheck option to rerun configure.
546760786Sps#
5468128345Stjr# `ac_cv_env_foo' variables (set or unset) will be overridden when
5469128345Stjr# loading this file, other *unset* `ac_cv_foo' will be assigned the
5470128345Stjr# following values.
5471128345Stjr
5472128345Stjr_ACEOF
5473128345Stjr
547460786Sps# The following way of writing the cache mishandles newlines in values,
547560786Sps# but we know of no workaround that is simple, portable, and efficient.
5476170256Sdelphij# So, we kill variables containing newlines.
547760786Sps# Ultrix sh set writes to stderr and can't be redirected directly,
547860786Sps# and sets the high bit in the cache file unless we assign to the vars.
5479170256Sdelphij(
5480170256Sdelphij  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5481170256Sdelphij    eval ac_val=\$$ac_var
5482170256Sdelphij    case $ac_val in #(
5483170256Sdelphij    *${as_nl}*)
5484170256Sdelphij      case $ac_var in #(
5485221715Sdelphij      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5486191930Sdelphij$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5487170256Sdelphij      esac
5488170256Sdelphij      case $ac_var in #(
5489170256Sdelphij      _ | IFS | as_nl) ;; #(
5490191930Sdelphij      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5491221715Sdelphij      *) { eval $ac_var=; unset $ac_var;} ;;
5492170256Sdelphij      esac ;;
5493170256Sdelphij    esac
5494170256Sdelphij  done
5495170256Sdelphij
5496128345Stjr  (set) 2>&1 |
5497170256Sdelphij    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5498170256Sdelphij    *${as_nl}ac_space=\ *)
5499221715Sdelphij      # `set' does not quote correctly, so add quotes: double-quote
5500221715Sdelphij      # substitution turns \\\\ into \\, and sed turns \\ into \.
5501128345Stjr      sed -n \
5502170256Sdelphij	"s/'/'\\\\''/g;
5503170256Sdelphij	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5504170256Sdelphij      ;; #(
5505128345Stjr    *)
5506128345Stjr      # `set' quotes correctly as required by POSIX, so do not add quotes.
5507170256Sdelphij      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5508128345Stjr      ;;
5509170256Sdelphij    esac |
5510170256Sdelphij    sort
5511170256Sdelphij) |
5512128345Stjr  sed '
5513170256Sdelphij     /^ac_cv_env_/b end
5514128345Stjr     t clear
5515170256Sdelphij     :clear
5516128345Stjr     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5517128345Stjr     t end
5518170256Sdelphij     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5519170256Sdelphij     :end' >>confcache
5520170256Sdelphijif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5521170256Sdelphij  if test -w "$cache_file"; then
5522240121Sdelphij    if test "x$cache_file" != "x/dev/null"; then
5523221715Sdelphij      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5524191930Sdelphij$as_echo "$as_me: updating cache $cache_file" >&6;}
5525240121Sdelphij      if test ! -f "$cache_file" || test -h "$cache_file"; then
5526240121Sdelphij	cat confcache >"$cache_file"
5527240121Sdelphij      else
5528240121Sdelphij        case $cache_file in #(
5529240121Sdelphij        */* | ?:*)
5530240121Sdelphij	  mv -f confcache "$cache_file"$$ &&
5531240121Sdelphij	  mv -f "$cache_file"$$ "$cache_file" ;; #(
5532240121Sdelphij        *)
5533240121Sdelphij	  mv -f confcache "$cache_file" ;;
5534240121Sdelphij	esac
5535240121Sdelphij      fi
5536240121Sdelphij    fi
553760786Sps  else
5538221715Sdelphij    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5539191930Sdelphij$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
554060786Sps  fi
554160786Spsfi
554260786Spsrm -f confcache
554360786Sps
554460786Spstest "x$prefix" = xNONE && prefix=$ac_default_prefix
554560786Sps# Let make expand exec_prefix.
554660786Spstest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
554760786Sps
554860786SpsDEFS=-DHAVE_CONFIG_H
554960786Sps
5550128345Stjrac_libobjs=
5551128345Stjrac_ltlibobjs=
5552221715SdelphijU=
5553128345Stjrfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5554128345Stjr  # 1. Remove the extension, and $U if already installed.
5555170256Sdelphij  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5556191930Sdelphij  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5557170256Sdelphij  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5558170256Sdelphij  #    will be set to the directory where LIBOBJS objects are built.
5559221715Sdelphij  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5560221715Sdelphij  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5561128345Stjrdone
5562128345StjrLIBOBJS=$ac_libobjs
5563128345Stjr
5564128345StjrLTLIBOBJS=$ac_ltlibobjs
5565128345Stjr
5566128345Stjr
5567128345Stjr
5568240121Sdelphij: "${CONFIG_STATUS=./config.status}"
5569191930Sdelphijac_write_fail=0
5570128345Stjrac_clean_files_save=$ac_clean_files
5571128345Stjrac_clean_files="$ac_clean_files $CONFIG_STATUS"
5572221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5573191930Sdelphij$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5574221715Sdelphijas_write_fail=0
5575221715Sdelphijcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5576128345Stjr#! $SHELL
5577128345Stjr# Generated by $as_me.
557860786Sps# Run this file to recreate the current configuration.
557960786Sps# Compiler output produced by configure, useful for debugging
5580128345Stjr# configure, is in config.log if it exists.
558160786Sps
5582128345Stjrdebug=false
5583170256Sdelphijac_cs_recheck=false
5584170256Sdelphijac_cs_silent=false
5585221715Sdelphij
5586128345StjrSHELL=\${CONFIG_SHELL-$SHELL}
5587221715Sdelphijexport SHELL
5588221715Sdelphij_ASEOF
5589221715Sdelphijcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5590221715Sdelphij## -------------------- ##
5591221715Sdelphij## M4sh Initialization. ##
5592221715Sdelphij## -------------------- ##
5593128345Stjr
5594170256Sdelphij# Be more Bourne compatible
5595170256SdelphijDUALCASE=1; export DUALCASE # for MKS sh
5596221715Sdelphijif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5597128345Stjr  emulate sh
5598128345Stjr  NULLCMD=:
5599191930Sdelphij  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5600128345Stjr  # is contrary to our usage.  Disable this feature.
5601128345Stjr  alias -g '${1+"$@"}'='"$@"'
5602170256Sdelphij  setopt NO_GLOB_SUBST
5603170256Sdelphijelse
5604221715Sdelphij  case `(set -o) 2>/dev/null` in #(
5605221715Sdelphij  *posix*) :
5606221715Sdelphij    set -o posix ;; #(
5607221715Sdelphij  *) :
5608221715Sdelphij     ;;
5609170256Sdelphijesac
5610128345Stjrfi
5611128345Stjr
5612170256Sdelphij
5613191930Sdelphijas_nl='
5614191930Sdelphij'
5615191930Sdelphijexport as_nl
5616191930Sdelphij# Printing a long string crashes Solaris 7 /usr/bin/printf.
5617191930Sdelphijas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5618191930Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5619191930Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5620221715Sdelphij# Prefer a ksh shell builtin over an external printf program on Solaris,
5621221715Sdelphij# but without wasting forks for bash or zsh.
5622221715Sdelphijif test -z "$BASH_VERSION$ZSH_VERSION" \
5623221715Sdelphij    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5624221715Sdelphij  as_echo='print -r --'
5625221715Sdelphij  as_echo_n='print -rn --'
5626221715Sdelphijelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5627191930Sdelphij  as_echo='printf %s\n'
5628191930Sdelphij  as_echo_n='printf %s'
5629191930Sdelphijelse
5630191930Sdelphij  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5631191930Sdelphij    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5632191930Sdelphij    as_echo_n='/usr/ucb/echo -n'
5633170256Sdelphij  else
5634191930Sdelphij    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5635191930Sdelphij    as_echo_n_body='eval
5636191930Sdelphij      arg=$1;
5637221715Sdelphij      case $arg in #(
5638191930Sdelphij      *"$as_nl"*)
5639191930Sdelphij	expr "X$arg" : "X\\(.*\\)$as_nl";
5640191930Sdelphij	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5641191930Sdelphij      esac;
5642191930Sdelphij      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5643191930Sdelphij    '
5644191930Sdelphij    export as_echo_n_body
5645191930Sdelphij    as_echo_n='sh -c $as_echo_n_body as_echo'
5646170256Sdelphij  fi
5647191930Sdelphij  export as_echo_body
5648191930Sdelphij  as_echo='sh -c $as_echo_body as_echo'
5649170256Sdelphijfi
5650170256Sdelphij
5651191930Sdelphij# The user is always right.
5652191930Sdelphijif test "${PATH_SEPARATOR+set}" != set; then
5653191930Sdelphij  PATH_SEPARATOR=:
5654191930Sdelphij  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5655191930Sdelphij    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5656191930Sdelphij      PATH_SEPARATOR=';'
5657191930Sdelphij  }
5658191930Sdelphijfi
5659191930Sdelphij
5660128345Stjr
5661170256Sdelphij# IFS
5662170256Sdelphij# We need space, tab and new line, in precisely that order.  Quoting is
5663170256Sdelphij# there to prevent editors from complaining about space-tab.
5664170256Sdelphij# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5665170256Sdelphij# splitting by setting IFS to empty value.)
5666170256SdelphijIFS=" ""	$as_nl"
5667170256Sdelphij
5668170256Sdelphij# Find who we are.  Look in the path if we contain no directory separator.
5669240121Sdelphijas_myself=
5670221715Sdelphijcase $0 in #((
5671170256Sdelphij  *[\\/]* ) as_myself=$0 ;;
5672170256Sdelphij  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673170256Sdelphijfor as_dir in $PATH
5674170256Sdelphijdo
5675170256Sdelphij  IFS=$as_save_IFS
5676170256Sdelphij  test -z "$as_dir" && as_dir=.
5677221715Sdelphij    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5678221715Sdelphij  done
5679170256SdelphijIFS=$as_save_IFS
5680170256Sdelphij
5681170256Sdelphij     ;;
5682170256Sdelphijesac
5683170256Sdelphij# We did not find ourselves, most probably we were run as `sh COMMAND'
5684170256Sdelphij# in which case we are not to be found in the path.
5685170256Sdelphijif test "x$as_myself" = x; then
5686170256Sdelphij  as_myself=$0
5687170256Sdelphijfi
5688170256Sdelphijif test ! -f "$as_myself"; then
5689191930Sdelphij  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5690221715Sdelphij  exit 1
5691170256Sdelphijfi
5692170256Sdelphij
5693221715Sdelphij# Unset variables that we do not need and which cause bugs (e.g. in
5694221715Sdelphij# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5695221715Sdelphij# suppresses any "Segmentation fault" message there.  '((' could
5696221715Sdelphij# trigger a bug in pdksh 5.2.14.
5697221715Sdelphijfor as_var in BASH_ENV ENV MAIL MAILPATH
5698221715Sdelphijdo eval test x\${$as_var+set} = xset \
5699221715Sdelphij  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5700170256Sdelphijdone
5701128345StjrPS1='$ '
5702128345StjrPS2='> '
5703128345StjrPS4='+ '
5704128345Stjr
5705128345Stjr# NLS nuisances.
5706191930SdelphijLC_ALL=C
5707191930Sdelphijexport LC_ALL
5708191930SdelphijLANGUAGE=C
5709191930Sdelphijexport LANGUAGE
571060786Sps
5711221715Sdelphij# CDPATH.
5712221715Sdelphij(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5713221715Sdelphij
5714221715Sdelphij
5715221715Sdelphij# as_fn_error STATUS ERROR [LINENO LOG_FD]
5716221715Sdelphij# ----------------------------------------
5717221715Sdelphij# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5718221715Sdelphij# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5719221715Sdelphij# script with STATUS, using 1 if that was 0.
5720221715Sdelphijas_fn_error ()
5721221715Sdelphij{
5722221715Sdelphij  as_status=$1; test $as_status -eq 0 && as_status=1
5723221715Sdelphij  if test "$4"; then
5724221715Sdelphij    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5725221715Sdelphij    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5726221715Sdelphij  fi
5727221715Sdelphij  $as_echo "$as_me: error: $2" >&2
5728221715Sdelphij  as_fn_exit $as_status
5729221715Sdelphij} # as_fn_error
5730221715Sdelphij
5731221715Sdelphij
5732221715Sdelphij# as_fn_set_status STATUS
5733221715Sdelphij# -----------------------
5734221715Sdelphij# Set $? to STATUS, without forking.
5735221715Sdelphijas_fn_set_status ()
5736221715Sdelphij{
5737221715Sdelphij  return $1
5738221715Sdelphij} # as_fn_set_status
5739221715Sdelphij
5740221715Sdelphij# as_fn_exit STATUS
5741221715Sdelphij# -----------------
5742221715Sdelphij# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5743221715Sdelphijas_fn_exit ()
5744221715Sdelphij{
5745221715Sdelphij  set +e
5746221715Sdelphij  as_fn_set_status $1
5747221715Sdelphij  exit $1
5748221715Sdelphij} # as_fn_exit
5749221715Sdelphij
5750221715Sdelphij# as_fn_unset VAR
5751221715Sdelphij# ---------------
5752221715Sdelphij# Portably unset VAR.
5753221715Sdelphijas_fn_unset ()
5754221715Sdelphij{
5755221715Sdelphij  { eval $1=; unset $1;}
5756221715Sdelphij}
5757221715Sdelphijas_unset=as_fn_unset
5758221715Sdelphij# as_fn_append VAR VALUE
5759221715Sdelphij# ----------------------
5760221715Sdelphij# Append the text in VALUE to the end of the definition contained in VAR. Take
5761221715Sdelphij# advantage of any shell optimizations that allow amortized linear growth over
5762221715Sdelphij# repeated appends, instead of the typical quadratic growth present in naive
5763221715Sdelphij# implementations.
5764221715Sdelphijif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5765221715Sdelphij  eval 'as_fn_append ()
5766221715Sdelphij  {
5767221715Sdelphij    eval $1+=\$2
5768221715Sdelphij  }'
5769221715Sdelphijelse
5770221715Sdelphij  as_fn_append ()
5771221715Sdelphij  {
5772221715Sdelphij    eval $1=\$$1\$2
5773221715Sdelphij  }
5774221715Sdelphijfi # as_fn_append
5775221715Sdelphij
5776221715Sdelphij# as_fn_arith ARG...
5777221715Sdelphij# ------------------
5778221715Sdelphij# Perform arithmetic evaluation on the ARGs, and store the result in the
5779221715Sdelphij# global $as_val. Take advantage of shells that can avoid forks. The arguments
5780221715Sdelphij# must be portable across $(()) and expr.
5781221715Sdelphijif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5782221715Sdelphij  eval 'as_fn_arith ()
5783221715Sdelphij  {
5784221715Sdelphij    as_val=$(( $* ))
5785221715Sdelphij  }'
5786221715Sdelphijelse
5787221715Sdelphij  as_fn_arith ()
5788221715Sdelphij  {
5789221715Sdelphij    as_val=`expr "$@" || test $? -eq 1`
5790221715Sdelphij  }
5791221715Sdelphijfi # as_fn_arith
5792221715Sdelphij
5793221715Sdelphij
5794170256Sdelphijif expr a : '\(a\)' >/dev/null 2>&1 &&
5795170256Sdelphij   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5796128345Stjr  as_expr=expr
5797128345Stjrelse
5798128345Stjr  as_expr=false
5799128345Stjrfi
580060786Sps
5801170256Sdelphijif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5802128345Stjr  as_basename=basename
5803128345Stjrelse
5804128345Stjr  as_basename=false
5805128345Stjrfi
580660786Sps
5807221715Sdelphijif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5808221715Sdelphij  as_dirname=dirname
5809221715Sdelphijelse
5810221715Sdelphij  as_dirname=false
5811221715Sdelphijfi
581260786Sps
5813170256Sdelphijas_me=`$as_basename -- "$0" ||
5814128345Stjr$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5815128345Stjr	 X"$0" : 'X\(//\)$' \| \
5816170256Sdelphij	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5817191930Sdelphij$as_echo X/"$0" |
5818170256Sdelphij    sed '/^.*\/\([^/][^/]*\)\/*$/{
5819170256Sdelphij	    s//\1/
5820170256Sdelphij	    q
5821170256Sdelphij	  }
5822170256Sdelphij	  /^X\/\(\/\/\)$/{
5823170256Sdelphij	    s//\1/
5824170256Sdelphij	    q
5825170256Sdelphij	  }
5826170256Sdelphij	  /^X\/\(\/\).*/{
5827170256Sdelphij	    s//\1/
5828170256Sdelphij	    q
5829170256Sdelphij	  }
5830170256Sdelphij	  s/.*/./; q'`
583160786Sps
5832221715Sdelphij# Avoid depending upon Character Ranges.
5833221715Sdelphijas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5834221715Sdelphijas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5835221715Sdelphijas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5836221715Sdelphijas_cr_digits='0123456789'
5837221715Sdelphijas_cr_alnum=$as_cr_Letters$as_cr_digits
583860786Sps
5839170256SdelphijECHO_C= ECHO_N= ECHO_T=
5840221715Sdelphijcase `echo -n x` in #(((((
5841170256Sdelphij-n*)
5842221715Sdelphij  case `echo 'xy\c'` in
5843170256Sdelphij  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5844221715Sdelphij  xy)  ECHO_C='\c';;
5845221715Sdelphij  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5846221715Sdelphij       ECHO_T='	';;
5847170256Sdelphij  esac;;
5848170256Sdelphij*)
5849170256Sdelphij  ECHO_N='-n';;
5850128345Stjresac
5851128345Stjr
5852128345Stjrrm -f conf$$ conf$$.exe conf$$.file
5853170256Sdelphijif test -d conf$$.dir; then
5854170256Sdelphij  rm -f conf$$.dir/conf$$.file
5855170256Sdelphijelse
5856170256Sdelphij  rm -f conf$$.dir
5857191930Sdelphij  mkdir conf$$.dir 2>/dev/null
5858170256Sdelphijfi
5859191930Sdelphijif (echo >conf$$.file) 2>/dev/null; then
5860191930Sdelphij  if ln -s conf$$.file conf$$ 2>/dev/null; then
5861191930Sdelphij    as_ln_s='ln -s'
5862191930Sdelphij    # ... but there are two gotchas:
5863191930Sdelphij    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5864191930Sdelphij    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5865191930Sdelphij    # In both cases, we have to default to `cp -p'.
5866191930Sdelphij    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5867191930Sdelphij      as_ln_s='cp -p'
5868191930Sdelphij  elif ln conf$$.file conf$$ 2>/dev/null; then
5869191930Sdelphij    as_ln_s=ln
5870191930Sdelphij  else
5871128345Stjr    as_ln_s='cp -p'
5872191930Sdelphij  fi
5873128345Stjrelse
5874128345Stjr  as_ln_s='cp -p'
5875128345Stjrfi
5876170256Sdelphijrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5877170256Sdelphijrmdir conf$$.dir 2>/dev/null
5878128345Stjr
5879221715Sdelphij
5880221715Sdelphij# as_fn_mkdir_p
5881221715Sdelphij# -------------
5882221715Sdelphij# Create "$as_dir" as a directory, including parents if necessary.
5883221715Sdelphijas_fn_mkdir_p ()
5884221715Sdelphij{
5885221715Sdelphij
5886221715Sdelphij  case $as_dir in #(
5887221715Sdelphij  -*) as_dir=./$as_dir;;
5888221715Sdelphij  esac
5889221715Sdelphij  test -d "$as_dir" || eval $as_mkdir_p || {
5890221715Sdelphij    as_dirs=
5891221715Sdelphij    while :; do
5892221715Sdelphij      case $as_dir in #(
5893221715Sdelphij      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5894221715Sdelphij      *) as_qdir=$as_dir;;
5895221715Sdelphij      esac
5896221715Sdelphij      as_dirs="'$as_qdir' $as_dirs"
5897221715Sdelphij      as_dir=`$as_dirname -- "$as_dir" ||
5898221715Sdelphij$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5899221715Sdelphij	 X"$as_dir" : 'X\(//\)[^/]' \| \
5900221715Sdelphij	 X"$as_dir" : 'X\(//\)$' \| \
5901221715Sdelphij	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5902221715Sdelphij$as_echo X"$as_dir" |
5903221715Sdelphij    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5904221715Sdelphij	    s//\1/
5905221715Sdelphij	    q
5906221715Sdelphij	  }
5907221715Sdelphij	  /^X\(\/\/\)[^/].*/{
5908221715Sdelphij	    s//\1/
5909221715Sdelphij	    q
5910221715Sdelphij	  }
5911221715Sdelphij	  /^X\(\/\/\)$/{
5912221715Sdelphij	    s//\1/
5913221715Sdelphij	    q
5914221715Sdelphij	  }
5915221715Sdelphij	  /^X\(\/\).*/{
5916221715Sdelphij	    s//\1/
5917221715Sdelphij	    q
5918221715Sdelphij	  }
5919221715Sdelphij	  s/.*/./; q'`
5920221715Sdelphij      test -d "$as_dir" && break
5921221715Sdelphij    done
5922221715Sdelphij    test -z "$as_dirs" || eval "mkdir $as_dirs"
5923221715Sdelphij  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5924221715Sdelphij
5925221715Sdelphij
5926221715Sdelphij} # as_fn_mkdir_p
5927128345Stjrif mkdir -p . 2>/dev/null; then
5928221715Sdelphij  as_mkdir_p='mkdir -p "$as_dir"'
5929128345Stjrelse
5930170256Sdelphij  test -d ./-p && rmdir ./-p
5931128345Stjr  as_mkdir_p=false
5932128345Stjrfi
5933128345Stjr
5934170256Sdelphijif test -x / >/dev/null 2>&1; then
5935170256Sdelphij  as_test_x='test -x'
5936170256Sdelphijelse
5937170256Sdelphij  if ls -dL / >/dev/null 2>&1; then
5938170256Sdelphij    as_ls_L_option=L
5939170256Sdelphij  else
5940170256Sdelphij    as_ls_L_option=
5941170256Sdelphij  fi
5942170256Sdelphij  as_test_x='
5943170256Sdelphij    eval sh -c '\''
5944170256Sdelphij      if test -d "$1"; then
5945191930Sdelphij	test -d "$1/.";
5946170256Sdelphij      else
5947221715Sdelphij	case $1 in #(
5948191930Sdelphij	-*)set "./$1";;
5949170256Sdelphij	esac;
5950221715Sdelphij	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5951170256Sdelphij	???[sx]*):;;*)false;;esac;fi
5952170256Sdelphij    '\'' sh
5953170256Sdelphij  '
5954170256Sdelphijfi
5955170256Sdelphijas_executable_p=$as_test_x
5956128345Stjr
5957128345Stjr# Sed expression to map a string onto a valid CPP name.
5958170256Sdelphijas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5959128345Stjr
5960128345Stjr# Sed expression to map a string onto a valid variable name.
5961170256Sdelphijas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5962128345Stjr
5963128345Stjr
5964128345Stjrexec 6>&1
5965221715Sdelphij## ----------------------------------- ##
5966221715Sdelphij## Main body of $CONFIG_STATUS script. ##
5967221715Sdelphij## ----------------------------------- ##
5968221715Sdelphij_ASEOF
5969221715Sdelphijtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5970128345Stjr
5971221715Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5972221715Sdelphij# Save the log message, to keep $0 and so on meaningful, and to
5973128345Stjr# report actual input values of CONFIG_FILES etc. instead of their
5974170256Sdelphij# values after options handling.
5975170256Sdelphijac_log="
5976128345StjrThis file was extended by less $as_me 1, which was
5977240121Sdelphijgenerated by GNU Autoconf 2.68.  Invocation command line was
5978128345Stjr
5979128345Stjr  CONFIG_FILES    = $CONFIG_FILES
5980128345Stjr  CONFIG_HEADERS  = $CONFIG_HEADERS
5981128345Stjr  CONFIG_LINKS    = $CONFIG_LINKS
5982128345Stjr  CONFIG_COMMANDS = $CONFIG_COMMANDS
5983128345Stjr  $ $0 $@
5984128345Stjr
5985170256Sdelphijon `(hostname || uname -n) 2>/dev/null | sed 1q`
5986170256Sdelphij"
5987170256Sdelphij
5988128345Stjr_ACEOF
5989128345Stjr
5990191930Sdelphijcase $ac_config_files in *"
5991191930Sdelphij"*) set x $ac_config_files; shift; ac_config_files=$*;;
5992191930Sdelphijesac
5993191930Sdelphij
5994191930Sdelphijcase $ac_config_headers in *"
5995191930Sdelphij"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5996191930Sdelphijesac
5997191930Sdelphij
5998191930Sdelphij
5999191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6000128345Stjr# Files that config.status was made for.
6001170256Sdelphijconfig_files="$ac_config_files"
6002170256Sdelphijconfig_headers="$ac_config_headers"
6003128345Stjr
6004170256Sdelphij_ACEOF
6005128345Stjr
6006191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6007128345Stjrac_cs_usage="\
6008221715Sdelphij\`$as_me' instantiates files and other configuration actions
6009221715Sdelphijfrom templates according to the current configuration.  Unless the files
6010221715Sdelphijand actions are specified as TAGs, all are instantiated by default.
6011128345Stjr
6012221715SdelphijUsage: $0 [OPTION]... [TAG]...
6013128345Stjr
6014128345Stjr  -h, --help       print this help, then exit
6015170256Sdelphij  -V, --version    print version number and configuration settings, then exit
6016221715Sdelphij      --config     print configuration, then exit
6017191930Sdelphij  -q, --quiet, --silent
6018191930Sdelphij                   do not print progress messages
6019128345Stjr  -d, --debug      don't remove temporary files
6020128345Stjr      --recheck    update $as_me by reconfiguring in the same conditions
6021191930Sdelphij      --file=FILE[:TEMPLATE]
6022191930Sdelphij                   instantiate the configuration file FILE
6023191930Sdelphij      --header=FILE[:TEMPLATE]
6024191930Sdelphij                   instantiate the configuration header FILE
6025128345Stjr
6026128345StjrConfiguration files:
6027128345Stjr$config_files
6028128345Stjr
6029128345StjrConfiguration headers:
6030128345Stjr$config_headers
6031128345Stjr
6032221715SdelphijReport bugs to the package provider."
6033170256Sdelphij
6034128345Stjr_ACEOF
6035191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6036221715Sdelphijac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6037128345Stjrac_cs_version="\\
6038128345Stjrless config.status 1
6039240121Sdelphijconfigured by $0, generated by GNU Autoconf 2.68,
6040221715Sdelphij  with options \\"\$ac_cs_config\\"
6041128345Stjr
6042221715SdelphijCopyright (C) 2010 Free Software Foundation, Inc.
6043128345StjrThis config.status script is free software; the Free Software Foundation
6044128345Stjrgives unlimited permission to copy, distribute and modify it."
6045170256Sdelphij
6046170256Sdelphijac_pwd='$ac_pwd'
6047170256Sdelphijsrcdir='$srcdir'
6048170256SdelphijINSTALL='$INSTALL'
6049191930Sdelphijtest -n "\$AWK" || AWK=awk
6050128345Stjr_ACEOF
6051128345Stjr
6052191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6053191930Sdelphij# The default lists apply if the user does not specify any file.
6054128345Stjrac_need_defaults=:
6055128345Stjrwhile test $# != 0
6056128345Stjrdo
6057128345Stjr  case $1 in
6058221715Sdelphij  --*=?*)
6059170256Sdelphij    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6060170256Sdelphij    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6061128345Stjr    ac_shift=:
6062128345Stjr    ;;
6063221715Sdelphij  --*=)
6064221715Sdelphij    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6065221715Sdelphij    ac_optarg=
6066221715Sdelphij    ac_shift=:
6067221715Sdelphij    ;;
6068170256Sdelphij  *)
6069128345Stjr    ac_option=$1
6070128345Stjr    ac_optarg=$2
6071128345Stjr    ac_shift=shift
6072128345Stjr    ;;
6073128345Stjr  esac
6074128345Stjr
6075128345Stjr  case $ac_option in
6076128345Stjr  # Handling of the options.
6077128345Stjr  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6078170256Sdelphij    ac_cs_recheck=: ;;
6079170256Sdelphij  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6080191930Sdelphij    $as_echo "$ac_cs_version"; exit ;;
6081221715Sdelphij  --config | --confi | --conf | --con | --co | --c )
6082221715Sdelphij    $as_echo "$ac_cs_config"; exit ;;
6083170256Sdelphij  --debug | --debu | --deb | --de | --d | -d )
6084128345Stjr    debug=: ;;
6085128345Stjr  --file | --fil | --fi | --f )
6086128345Stjr    $ac_shift
6087191930Sdelphij    case $ac_optarg in
6088191930Sdelphij    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6089221715Sdelphij    '') as_fn_error $? "missing file argument" ;;
6090191930Sdelphij    esac
6091221715Sdelphij    as_fn_append CONFIG_FILES " '$ac_optarg'"
6092128345Stjr    ac_need_defaults=false;;
6093128345Stjr  --header | --heade | --head | --hea )
6094128345Stjr    $ac_shift
6095191930Sdelphij    case $ac_optarg in
6096191930Sdelphij    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6097191930Sdelphij    esac
6098221715Sdelphij    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6099128345Stjr    ac_need_defaults=false;;
6100170256Sdelphij  --he | --h)
6101170256Sdelphij    # Conflict between --help and --header
6102221715Sdelphij    as_fn_error $? "ambiguous option: \`$1'
6103221715SdelphijTry \`$0 --help' for more information.";;
6104170256Sdelphij  --help | --hel | -h )
6105191930Sdelphij    $as_echo "$ac_cs_usage"; exit ;;
6106170256Sdelphij  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6107170256Sdelphij  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6108170256Sdelphij    ac_cs_silent=: ;;
6109128345Stjr
6110128345Stjr  # This is an error.
6111221715Sdelphij  -*) as_fn_error $? "unrecognized option: \`$1'
6112221715SdelphijTry \`$0 --help' for more information." ;;
6113128345Stjr
6114221715Sdelphij  *) as_fn_append ac_config_targets " $1"
6115170256Sdelphij     ac_need_defaults=false ;;
6116128345Stjr
6117128345Stjr  esac
6118128345Stjr  shift
611960786Spsdone
6120128345Stjr
6121170256Sdelphijac_configure_extra_args=
6122128345Stjr
6123170256Sdelphijif $ac_cs_silent; then
6124170256Sdelphij  exec 6>/dev/null
6125170256Sdelphij  ac_configure_extra_args="$ac_configure_extra_args --silent"
6126170256Sdelphijfi
6127128345Stjr
6128170256Sdelphij_ACEOF
6129191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6130170256Sdelphijif \$ac_cs_recheck; then
6131191930Sdelphij  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6132191930Sdelphij  shift
6133191930Sdelphij  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6134191930Sdelphij  CONFIG_SHELL='$SHELL'
6135170256Sdelphij  export CONFIG_SHELL
6136191930Sdelphij  exec "\$@"
6137170256Sdelphijfi
6138128345Stjr
6139170256Sdelphij_ACEOF
6140191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6141170256Sdelphijexec 5>>config.log
6142170256Sdelphij{
6143170256Sdelphij  echo
6144170256Sdelphij  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6145170256Sdelphij## Running $as_me. ##
6146170256Sdelphij_ASBOX
6147191930Sdelphij  $as_echo "$ac_log"
6148170256Sdelphij} >&5
6149128345Stjr
6150170256Sdelphij_ACEOF
6151191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6152170256Sdelphij_ACEOF
6153128345Stjr
6154191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6155170256Sdelphij
6156170256Sdelphij# Handling of arguments.
6157128345Stjrfor ac_config_target in $ac_config_targets
6158128345Stjrdo
6159170256Sdelphij  case $ac_config_target in
6160170256Sdelphij    "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
6161170256Sdelphij    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6162170256Sdelphij
6163221715Sdelphij  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
6164128345Stjr  esac
6165128345Stjrdone
6166128345Stjr
6167170256Sdelphij
6168128345Stjr# If the user did not use the arguments to specify the items to instantiate,
6169128345Stjr# then the envvar interface is used.  Set only those that are not.
6170128345Stjr# We use the long form for the default assignment because of an extremely
6171128345Stjr# bizarre bug on SunOS 4.1.3.
6172128345Stjrif $ac_need_defaults; then
6173128345Stjr  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6174128345Stjr  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
617560786Spsfi
617660786Sps
6177170256Sdelphij# Have a temporary directory for convenience.  Make it in the build tree
6178170256Sdelphij# simply because there is no reason against having it here, and in addition,
6179170256Sdelphij# creating and moving files from /tmp can sometimes cause problems.
6180170256Sdelphij# Hook for its removal unless debugging.
6181170256Sdelphij# Note that there is a small window in which the directory will not be cleaned:
6182170256Sdelphij# after its creation but before its name has been assigned to `$tmp'.
6183128345Stjr$debug ||
6184128345Stjr{
6185240121Sdelphij  tmp= ac_tmp=
6186170256Sdelphij  trap 'exit_status=$?
6187240121Sdelphij  : "${ac_tmp:=$tmp}"
6188240121Sdelphij  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6189170256Sdelphij' 0
6190221715Sdelphij  trap 'as_fn_exit 1' 1 2 13 15
6191128345Stjr}
6192170256Sdelphij# Create a (secure) tmp directory for tmp files.
619360786Sps
6194128345Stjr{
6195170256Sdelphij  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6196240121Sdelphij  test -d "$tmp"
6197128345Stjr}  ||
6198128345Stjr{
6199170256Sdelphij  tmp=./conf$$-$RANDOM
6200170256Sdelphij  (umask 077 && mkdir "$tmp")
6201221715Sdelphij} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6202240121Sdelphijac_tmp=$tmp
6203128345Stjr
6204191930Sdelphij# Set up the scripts for CONFIG_FILES section.
6205191930Sdelphij# No need to generate them if there are no CONFIG_FILES.
6206191930Sdelphij# This happens for instance with `./config.status config.h'.
6207170256Sdelphijif test -n "$CONFIG_FILES"; then
6208128345Stjr
6209191930Sdelphij
6210221715Sdelphijac_cr=`echo X | tr X '\015'`
6211221715Sdelphij# On cygwin, bash can eat \r inside `` if the user requested igncr.
6212221715Sdelphij# But we know of no other shell where ac_cr would be empty at this
6213221715Sdelphij# point, so we can use a bashism as a fallback.
6214221715Sdelphijif test "x$ac_cr" = x; then
6215221715Sdelphij  eval ac_cr=\$\'\\r\'
6216221715Sdelphijfi
6217191930Sdelphijac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6218191930Sdelphijif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6219191930Sdelphij  ac_cs_awk_cr='\\r'
6220191930Sdelphijelse
6221191930Sdelphij  ac_cs_awk_cr=$ac_cr
6222191930Sdelphijfi
6223191930Sdelphij
6224240121Sdelphijecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6225128345Stjr_ACEOF
6226128345Stjr
6227170256Sdelphij
6228191930Sdelphij{
6229191930Sdelphij  echo "cat >conf$$subs.awk <<_ACEOF" &&
6230191930Sdelphij  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6231191930Sdelphij  echo "_ACEOF"
6232191930Sdelphij} >conf$$subs.sh ||
6233221715Sdelphij  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6234221715Sdelphijac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6235170256Sdelphijac_delim='%!_!# '
6236170256Sdelphijfor ac_last_try in false false false false false :; do
6237191930Sdelphij  . ./conf$$subs.sh ||
6238221715Sdelphij    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6239170256Sdelphij
6240191930Sdelphij  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6241191930Sdelphij  if test $ac_delim_n = $ac_delim_num; then
6242170256Sdelphij    break
6243170256Sdelphij  elif $ac_last_try; then
6244221715Sdelphij    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6245170256Sdelphij  else
6246170256Sdelphij    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6247128345Stjr  fi
6248170256Sdelphijdone
6249191930Sdelphijrm -f conf$$subs.sh
6250128345Stjr
6251191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6252240121Sdelphijcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6253191930Sdelphij_ACEOF
6254191930Sdelphijsed -n '
6255191930Sdelphijh
6256191930Sdelphijs/^/S["/; s/!.*/"]=/
6257191930Sdelphijp
6258191930Sdelphijg
6259191930Sdelphijs/^[^!]*!//
6260191930Sdelphij:repl
6261191930Sdelphijt repl
6262191930Sdelphijs/'"$ac_delim"'$//
6263191930Sdelphijt delim
6264191930Sdelphij:nl
6265191930Sdelphijh
6266221715Sdelphijs/\(.\{148\}\)..*/\1/
6267191930Sdelphijt more1
6268191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6269191930Sdelphijp
6270191930Sdelphijn
6271191930Sdelphijb repl
6272191930Sdelphij:more1
6273191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6274191930Sdelphijp
6275191930Sdelphijg
6276191930Sdelphijs/.\{148\}//
6277191930Sdelphijt nl
6278191930Sdelphij:delim
6279191930Sdelphijh
6280221715Sdelphijs/\(.\{148\}\)..*/\1/
6281191930Sdelphijt more2
6282191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"/
6283191930Sdelphijp
6284191930Sdelphijb
6285191930Sdelphij:more2
6286191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6287191930Sdelphijp
6288191930Sdelphijg
6289191930Sdelphijs/.\{148\}//
6290191930Sdelphijt delim
6291191930Sdelphij' <conf$$subs.awk | sed '
6292191930Sdelphij/^[^""]/{
6293191930Sdelphij  N
6294191930Sdelphij  s/\n//
6295191930Sdelphij}
6296191930Sdelphij' >>$CONFIG_STATUS || ac_write_fail=1
6297191930Sdelphijrm -f conf$$subs.awk
6298191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6299191930Sdelphij_ACAWK
6300240121Sdelphijcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6301191930Sdelphij  for (key in S) S_is_set[key] = 1
6302191930Sdelphij  FS = ""
6303170256Sdelphij
6304191930Sdelphij}
6305191930Sdelphij{
6306191930Sdelphij  line = $ 0
6307191930Sdelphij  nfields = split(line, field, "@")
6308191930Sdelphij  substed = 0
6309191930Sdelphij  len = length(field[1])
6310191930Sdelphij  for (i = 2; i < nfields; i++) {
6311191930Sdelphij    key = field[i]
6312191930Sdelphij    keylen = length(key)
6313191930Sdelphij    if (S_is_set[key]) {
6314191930Sdelphij      value = S[key]
6315191930Sdelphij      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6316191930Sdelphij      len += length(value) + length(field[++i])
6317191930Sdelphij      substed = 1
6318191930Sdelphij    } else
6319191930Sdelphij      len += 1 + keylen
6320191930Sdelphij  }
6321191930Sdelphij
6322191930Sdelphij  print line
6323191930Sdelphij}
6324191930Sdelphij
6325191930Sdelphij_ACAWK
6326128345Stjr_ACEOF
6327191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6328191930Sdelphijif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6329191930Sdelphij  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6330191930Sdelphijelse
6331191930Sdelphij  cat
6332240121Sdelphijfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6333221715Sdelphij  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6334170256Sdelphij_ACEOF
6335170256Sdelphij
6336221715Sdelphij# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6337221715Sdelphij# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6338170256Sdelphij# trailing colons and then remove the whole line if VPATH becomes empty
6339170256Sdelphij# (actually we leave an empty line to preserve line numbers).
6340170256Sdelphijif test "x$srcdir" = x.; then
6341221715Sdelphij  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6342221715Sdelphijh
6343221715Sdelphijs///
6344221715Sdelphijs/^/:/
6345221715Sdelphijs/[	 ]*$/:/
6346221715Sdelphijs/:\$(srcdir):/:/g
6347221715Sdelphijs/:\${srcdir}:/:/g
6348221715Sdelphijs/:@srcdir@:/:/g
6349221715Sdelphijs/^:*//
6350170256Sdelphijs/:*$//
6351221715Sdelphijx
6352221715Sdelphijs/\(=[	 ]*\).*/\1/
6353221715SdelphijG
6354221715Sdelphijs/\n//
6355170256Sdelphijs/^[^=]*=[	 ]*$//
6356170256Sdelphij}'
6357170256Sdelphijfi
6358170256Sdelphij
6359191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6360170256Sdelphijfi # test -n "$CONFIG_FILES"
6361170256Sdelphij
6362191930Sdelphij# Set up the scripts for CONFIG_HEADERS section.
6363191930Sdelphij# No need to generate them if there are no CONFIG_HEADERS.
6364191930Sdelphij# This happens for instance with `./config.status Makefile'.
6365191930Sdelphijif test -n "$CONFIG_HEADERS"; then
6366240121Sdelphijcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6367191930SdelphijBEGIN {
6368191930Sdelphij_ACEOF
6369170256Sdelphij
6370191930Sdelphij# Transform confdefs.h into an awk script `defines.awk', embedded as
6371191930Sdelphij# here-document in config.status, that substitutes the proper values into
6372191930Sdelphij# config.h.in to produce config.h.
6373191930Sdelphij
6374191930Sdelphij# Create a delimiter string that does not exist in confdefs.h, to ease
6375191930Sdelphij# handling of long lines.
6376191930Sdelphijac_delim='%!_!# '
6377191930Sdelphijfor ac_last_try in false false :; do
6378240121Sdelphij  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6379240121Sdelphij  if test -z "$ac_tt"; then
6380191930Sdelphij    break
6381191930Sdelphij  elif $ac_last_try; then
6382221715Sdelphij    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6383191930Sdelphij  else
6384191930Sdelphij    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6385191930Sdelphij  fi
6386191930Sdelphijdone
6387191930Sdelphij
6388191930Sdelphij# For the awk script, D is an array of macro values keyed by name,
6389191930Sdelphij# likewise P contains macro parameters if any.  Preserve backslash
6390191930Sdelphij# newline sequences.
6391191930Sdelphij
6392191930Sdelphijac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6393191930Sdelphijsed -n '
6394191930Sdelphijs/.\{148\}/&'"$ac_delim"'/g
6395191930Sdelphijt rset
6396191930Sdelphij:rset
6397191930Sdelphijs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6398191930Sdelphijt def
6399191930Sdelphijd
6400191930Sdelphij:def
6401191930Sdelphijs/\\$//
6402191930Sdelphijt bsnl
6403191930Sdelphijs/["\\]/\\&/g
6404191930Sdelphijs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6405191930SdelphijD["\1"]=" \3"/p
6406191930Sdelphijs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6407191930Sdelphijd
6408191930Sdelphij:bsnl
6409191930Sdelphijs/["\\]/\\&/g
6410191930Sdelphijs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6411191930SdelphijD["\1"]=" \3\\\\\\n"\\/p
6412191930Sdelphijt cont
6413191930Sdelphijs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6414191930Sdelphijt cont
6415191930Sdelphijd
6416191930Sdelphij:cont
6417191930Sdelphijn
6418191930Sdelphijs/.\{148\}/&'"$ac_delim"'/g
6419191930Sdelphijt clear
6420191930Sdelphij:clear
6421191930Sdelphijs/\\$//
6422191930Sdelphijt bsnlc
6423191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"/p
6424191930Sdelphijd
6425191930Sdelphij:bsnlc
6426191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6427191930Sdelphijb cont
6428191930Sdelphij' <confdefs.h | sed '
6429191930Sdelphijs/'"$ac_delim"'/"\\\
6430191930Sdelphij"/g' >>$CONFIG_STATUS || ac_write_fail=1
6431191930Sdelphij
6432191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6433191930Sdelphij  for (key in D) D_is_set[key] = 1
6434191930Sdelphij  FS = ""
6435191930Sdelphij}
6436191930Sdelphij/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6437191930Sdelphij  line = \$ 0
6438191930Sdelphij  split(line, arg, " ")
6439191930Sdelphij  if (arg[1] == "#") {
6440191930Sdelphij    defundef = arg[2]
6441191930Sdelphij    mac1 = arg[3]
6442191930Sdelphij  } else {
6443191930Sdelphij    defundef = substr(arg[1], 2)
6444191930Sdelphij    mac1 = arg[2]
6445191930Sdelphij  }
6446191930Sdelphij  split(mac1, mac2, "(") #)
6447191930Sdelphij  macro = mac2[1]
6448191930Sdelphij  prefix = substr(line, 1, index(line, defundef) - 1)
6449191930Sdelphij  if (D_is_set[macro]) {
6450191930Sdelphij    # Preserve the white space surrounding the "#".
6451191930Sdelphij    print prefix "define", macro P[macro] D[macro]
6452191930Sdelphij    next
6453191930Sdelphij  } else {
6454191930Sdelphij    # Replace #undef with comments.  This is necessary, for example,
6455191930Sdelphij    # in the case of _POSIX_SOURCE, which is predefined and required
6456191930Sdelphij    # on some systems where configure will not decide to define it.
6457191930Sdelphij    if (defundef == "undef") {
6458191930Sdelphij      print "/*", prefix defundef, macro, "*/"
6459191930Sdelphij      next
6460191930Sdelphij    }
6461191930Sdelphij  }
6462191930Sdelphij}
6463191930Sdelphij{ print }
6464191930Sdelphij_ACAWK
6465191930Sdelphij_ACEOF
6466191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6467221715Sdelphij  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6468191930Sdelphijfi # test -n "$CONFIG_HEADERS"
6469191930Sdelphij
6470191930Sdelphij
6471191930Sdelphijeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6472191930Sdelphijshift
6473191930Sdelphijfor ac_tag
6474170256Sdelphijdo
6475170256Sdelphij  case $ac_tag in
6476170256Sdelphij  :[FHLC]) ac_mode=$ac_tag; continue;;
647760786Sps  esac
6478170256Sdelphij  case $ac_mode$ac_tag in
6479170256Sdelphij  :[FHL]*:*);;
6480221715Sdelphij  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
6481170256Sdelphij  :[FH]-) ac_tag=-:-;;
6482170256Sdelphij  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6483170256Sdelphij  esac
6484170256Sdelphij  ac_save_IFS=$IFS
6485170256Sdelphij  IFS=:
6486170256Sdelphij  set x $ac_tag
6487170256Sdelphij  IFS=$ac_save_IFS
6488170256Sdelphij  shift
6489170256Sdelphij  ac_file=$1
6490170256Sdelphij  shift
649160786Sps
6492170256Sdelphij  case $ac_mode in
6493170256Sdelphij  :L) ac_source=$1;;
6494170256Sdelphij  :[FH])
6495170256Sdelphij    ac_file_inputs=
6496170256Sdelphij    for ac_f
6497170256Sdelphij    do
6498170256Sdelphij      case $ac_f in
6499240121Sdelphij      -) ac_f="$ac_tmp/stdin";;
6500170256Sdelphij      *) # Look for the file first in the build tree, then in the source tree
6501170256Sdelphij	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6502170256Sdelphij	 # because $ac_f cannot contain `:'.
6503170256Sdelphij	 test -f "$ac_f" ||
6504170256Sdelphij	   case $ac_f in
6505170256Sdelphij	   [\\/$]*) false;;
6506170256Sdelphij	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6507170256Sdelphij	   esac ||
6508221715Sdelphij	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
6509170256Sdelphij      esac
6510191930Sdelphij      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6511221715Sdelphij      as_fn_append ac_file_inputs " '$ac_f'"
6512170256Sdelphij    done
6513170256Sdelphij
6514170256Sdelphij    # Let's still pretend it is `configure' which instantiates (i.e., don't
6515170256Sdelphij    # use $as_me), people would be surprised to read:
6516170256Sdelphij    #    /* config.h.  Generated by config.status.  */
6517191930Sdelphij    configure_input='Generated from '`
6518191930Sdelphij	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6519191930Sdelphij	`' by configure.'
6520170256Sdelphij    if test x"$ac_file" != x-; then
6521170256Sdelphij      configure_input="$ac_file.  $configure_input"
6522221715Sdelphij      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6523191930Sdelphij$as_echo "$as_me: creating $ac_file" >&6;}
6524170256Sdelphij    fi
6525191930Sdelphij    # Neutralize special characters interpreted by sed in replacement strings.
6526191930Sdelphij    case $configure_input in #(
6527191930Sdelphij    *\&* | *\|* | *\\* )
6528191930Sdelphij       ac_sed_conf_input=`$as_echo "$configure_input" |
6529191930Sdelphij       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6530191930Sdelphij    *) ac_sed_conf_input=$configure_input;;
6531191930Sdelphij    esac
6532170256Sdelphij
6533170256Sdelphij    case $ac_tag in
6534240121Sdelphij    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6535221715Sdelphij      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
6536170256Sdelphij    esac
6537170256Sdelphij    ;;
6538170256Sdelphij  esac
6539170256Sdelphij
6540170256Sdelphij  ac_dir=`$as_dirname -- "$ac_file" ||
6541128345Stjr$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6542170256Sdelphij	 X"$ac_file" : 'X\(//\)[^/]' \| \
6543170256Sdelphij	 X"$ac_file" : 'X\(//\)$' \| \
6544170256Sdelphij	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6545191930Sdelphij$as_echo X"$ac_file" |
6546170256Sdelphij    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6547170256Sdelphij	    s//\1/
6548170256Sdelphij	    q
6549170256Sdelphij	  }
6550170256Sdelphij	  /^X\(\/\/\)[^/].*/{
6551170256Sdelphij	    s//\1/
6552170256Sdelphij	    q
6553170256Sdelphij	  }
6554170256Sdelphij	  /^X\(\/\/\)$/{
6555170256Sdelphij	    s//\1/
6556170256Sdelphij	    q
6557170256Sdelphij	  }
6558170256Sdelphij	  /^X\(\/\).*/{
6559170256Sdelphij	    s//\1/
6560170256Sdelphij	    q
6561170256Sdelphij	  }
6562170256Sdelphij	  s/.*/./; q'`
6563221715Sdelphij  as_dir="$ac_dir"; as_fn_mkdir_p
6564128345Stjr  ac_builddir=.
6565128345Stjr
6566170256Sdelphijcase "$ac_dir" in
6567170256Sdelphij.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6568170256Sdelphij*)
6569191930Sdelphij  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6570170256Sdelphij  # A ".." for each directory in $ac_dir_suffix.
6571191930Sdelphij  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6572170256Sdelphij  case $ac_top_builddir_sub in
6573170256Sdelphij  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6574170256Sdelphij  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6575170256Sdelphij  esac ;;
6576170256Sdelphijesac
6577170256Sdelphijac_abs_top_builddir=$ac_pwd
6578170256Sdelphijac_abs_builddir=$ac_pwd$ac_dir_suffix
6579170256Sdelphij# for backward compatibility:
6580170256Sdelphijac_top_builddir=$ac_top_build_prefix
6581128345Stjr
6582128345Stjrcase $srcdir in
6583170256Sdelphij  .)  # We are building in place.
6584128345Stjr    ac_srcdir=.
6585170256Sdelphij    ac_top_srcdir=$ac_top_builddir_sub
6586170256Sdelphij    ac_abs_top_srcdir=$ac_pwd ;;
6587170256Sdelphij  [\\/]* | ?:[\\/]* )  # Absolute name.
6588128345Stjr    ac_srcdir=$srcdir$ac_dir_suffix;
6589170256Sdelphij    ac_top_srcdir=$srcdir
6590170256Sdelphij    ac_abs_top_srcdir=$srcdir ;;
6591170256Sdelphij  *) # Relative name.
6592170256Sdelphij    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6593170256Sdelphij    ac_top_srcdir=$ac_top_build_prefix$srcdir
6594170256Sdelphij    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6595128345Stjresac
6596170256Sdelphijac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
659760786Sps
659860786Sps
6599170256Sdelphij  case $ac_mode in
6600170256Sdelphij  :F)
6601170256Sdelphij  #
6602170256Sdelphij  # CONFIG_FILE
6603170256Sdelphij  #
6604170256Sdelphij
6605128345Stjr  case $INSTALL in
6606128345Stjr  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6607170256Sdelphij  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
660860786Sps  esac
6609170256Sdelphij_ACEOF
661060786Sps
6611191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6612170256Sdelphij# If the template does not know about datarootdir, expand it.
6613170256Sdelphij# FIXME: This hack should be removed a few years after 2.60.
6614170256Sdelphijac_datarootdir_hack=; ac_datarootdir_seen=
6615191930Sdelphijac_sed_dataroot='
6616191930Sdelphij/datarootdir/ {
6617170256Sdelphij  p
6618170256Sdelphij  q
6619170256Sdelphij}
6620170256Sdelphij/@datadir@/p
6621170256Sdelphij/@docdir@/p
6622170256Sdelphij/@infodir@/p
6623170256Sdelphij/@localedir@/p
6624221715Sdelphij/@mandir@/p'
6625191930Sdelphijcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6626170256Sdelphij*datarootdir*) ac_datarootdir_seen=yes;;
6627170256Sdelphij*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6628221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6629191930Sdelphij$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6630128345Stjr_ACEOF
6631191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6632170256Sdelphij  ac_datarootdir_hack='
6633170256Sdelphij  s&@datadir@&$datadir&g
6634170256Sdelphij  s&@docdir@&$docdir&g
6635170256Sdelphij  s&@infodir@&$infodir&g
6636170256Sdelphij  s&@localedir@&$localedir&g
6637170256Sdelphij  s&@mandir@&$mandir&g
6638221715Sdelphij  s&\\\${datarootdir}&$datarootdir&g' ;;
6639170256Sdelphijesac
6640170256Sdelphij_ACEOF
6641170256Sdelphij
6642170256Sdelphij# Neutralize VPATH when `$srcdir' = `.'.
6643170256Sdelphij# Shell code in configure.ac might set extrasub.
6644170256Sdelphij# FIXME: do we really want to maintain this feature?
6645191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6646191930Sdelphijac_sed_extra="$ac_vpsub
6647128345Stjr$extrasub
6648128345Stjr_ACEOF
6649191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6650128345Stjr:t
6651128345Stjr/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6652191930Sdelphijs|@configure_input@|$ac_sed_conf_input|;t t
6653170256Sdelphijs&@top_builddir@&$ac_top_builddir_sub&;t t
6654191930Sdelphijs&@top_build_prefix@&$ac_top_build_prefix&;t t
6655170256Sdelphijs&@srcdir@&$ac_srcdir&;t t
6656170256Sdelphijs&@abs_srcdir@&$ac_abs_srcdir&;t t
6657170256Sdelphijs&@top_srcdir@&$ac_top_srcdir&;t t
6658170256Sdelphijs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6659170256Sdelphijs&@builddir@&$ac_builddir&;t t
6660170256Sdelphijs&@abs_builddir@&$ac_abs_builddir&;t t
6661170256Sdelphijs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6662170256Sdelphijs&@INSTALL@&$ac_INSTALL&;t t
6663170256Sdelphij$ac_datarootdir_hack
6664191930Sdelphij"
6665240121Sdelphijeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6666240121Sdelphij  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6667128345Stjr
6668170256Sdelphijtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6669240121Sdelphij  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6670240121Sdelphij  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6671240121Sdelphij      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6672221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6673221715Sdelphijwhich seems to be undefined.  Please make sure it is defined" >&5
6674191930Sdelphij$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6675221715Sdelphijwhich seems to be undefined.  Please make sure it is defined" >&2;}
6676128345Stjr
6677240121Sdelphij  rm -f "$ac_tmp/stdin"
6678128345Stjr  case $ac_file in
6679240121Sdelphij  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6680240121Sdelphij  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6681191930Sdelphij  esac \
6682221715Sdelphij  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6683170256Sdelphij ;;
6684170256Sdelphij  :H)
6685170256Sdelphij  #
6686170256Sdelphij  # CONFIG_HEADER
6687170256Sdelphij  #
6688128345Stjr  if test x"$ac_file" != x-; then
6689191930Sdelphij    {
6690191930Sdelphij      $as_echo "/* $configure_input  */" \
6691240121Sdelphij      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6692240121Sdelphij    } >"$ac_tmp/config.h" \
6693221715Sdelphij      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6694240121Sdelphij    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6695221715Sdelphij      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6696191930Sdelphij$as_echo "$as_me: $ac_file is unchanged" >&6;}
6697128345Stjr    else
6698191930Sdelphij      rm -f "$ac_file"
6699240121Sdelphij      mv "$ac_tmp/config.h" "$ac_file" \
6700221715Sdelphij	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
670160786Sps    fi
6702128345Stjr  else
6703191930Sdelphij    $as_echo "/* $configure_input  */" \
6704240121Sdelphij      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6705221715Sdelphij      || as_fn_error $? "could not create -" "$LINENO" 5
670660786Sps  fi
6707170256Sdelphij ;;
670860786Sps
670960786Sps
6710170256Sdelphij  esac
6711170256Sdelphij
6712170256Sdelphijdone # for ac_tag
6713170256Sdelphij
6714170256Sdelphij
6715221715Sdelphijas_fn_exit 0
6716128345Stjr_ACEOF
6717128345Stjrac_clean_files=$ac_clean_files_save
671860786Sps
6719191930Sdelphijtest $ac_write_fail = 0 ||
6720221715Sdelphij  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6721128345Stjr
6722191930Sdelphij
6723128345Stjr# configure is writing to config.log, and then calls config.status.
6724128345Stjr# config.status does its own redirection, appending to config.log.
6725128345Stjr# Unfortunately, on DOS this fails, as config.log is still kept open
6726128345Stjr# by configure, so config.status won't be able to write to it; its
6727128345Stjr# output is simply discarded.  So we exec the FD to /dev/null,
6728128345Stjr# effectively closing config.log, so it can be properly (re)opened and
6729128345Stjr# appended to by config.status.  When coming back to configure, we
6730128345Stjr# need to make the FD available again.
6731128345Stjrif test "$no_create" != yes; then
6732128345Stjr  ac_cs_success=:
6733170256Sdelphij  ac_config_status_args=
6734170256Sdelphij  test "$silent" = yes &&
6735170256Sdelphij    ac_config_status_args="$ac_config_status_args --quiet"
6736128345Stjr  exec 5>/dev/null
6737170256Sdelphij  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6738128345Stjr  exec 5>>config.log
6739128345Stjr  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6740128345Stjr  # would make configure fail if this is the last instruction.
6741221715Sdelphij  $ac_cs_success || as_fn_exit 1
6742128345Stjrfi
6743191930Sdelphijif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6744221715Sdelphij  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6745191930Sdelphij$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6746191930Sdelphijfi
6747128345Stjr
6748