169408Sache#! /bin/sh
269408Sache# Guess values for system-dependent variables and create Makefiles.
3232633Smp# Generated by GNU Autoconf 2.68 for tcsh 6.18.01.
469408Sache#
5167465Smp# Report bugs to <http://bugs.gw.com/>.
6167465Smp#
7232633Smp#
8195609Smp# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9232633Smp# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10232633Smp# Foundation, Inc.
11232633Smp#
12232633Smp#
1369408Sache# This configure script is free software; the Free Software Foundation
1469408Sache# gives unlimited permission to copy, distribute and modify it.
15232633Smp## -------------------- ##
16232633Smp## M4sh Initialization. ##
17232633Smp## -------------------- ##
1869408Sache
19195609Smp# Be more Bourne compatible
20195609SmpDUALCASE=1; export DUALCASE # for MKS sh
21232633Smpif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22131962Smp  emulate sh
23131962Smp  NULLCMD=:
24232633Smp  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25131962Smp  # is contrary to our usage.  Disable this feature.
26131962Smp  alias -g '${1+"$@"}'='"$@"'
27195609Smp  setopt NO_GLOB_SUBST
28195609Smpelse
29232633Smp  case `(set -o) 2>/dev/null` in #(
30232633Smp  *posix*) :
31232633Smp    set -o posix ;; #(
32232633Smp  *) :
33232633Smp     ;;
34195609Smpesac
35131962Smpfi
36131962Smp
37195609Smp
38232633Smpas_nl='
39232633Smp'
40232633Smpexport as_nl
41232633Smp# Printing a long string crashes Solaris 7 /usr/bin/printf.
42232633Smpas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43232633Smpas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44232633Smpas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45232633Smp# Prefer a ksh shell builtin over an external printf program on Solaris,
46232633Smp# but without wasting forks for bash or zsh.
47232633Smpif test -z "$BASH_VERSION$ZSH_VERSION" \
48232633Smp    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49232633Smp  as_echo='print -r --'
50232633Smp  as_echo_n='print -rn --'
51232633Smpelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52232633Smp  as_echo='printf %s\n'
53232633Smp  as_echo_n='printf %s'
54232633Smpelse
55232633Smp  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56232633Smp    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57232633Smp    as_echo_n='/usr/ucb/echo -n'
58195609Smp  else
59232633Smp    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60232633Smp    as_echo_n_body='eval
61232633Smp      arg=$1;
62232633Smp      case $arg in #(
63232633Smp      *"$as_nl"*)
64232633Smp	expr "X$arg" : "X\\(.*\\)$as_nl";
65232633Smp	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66232633Smp      esac;
67232633Smp      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68232633Smp    '
69232633Smp    export as_echo_n_body
70232633Smp    as_echo_n='sh -c $as_echo_n_body as_echo'
71195609Smp  fi
72232633Smp  export as_echo_body
73232633Smp  as_echo='sh -c $as_echo_body as_echo'
74195609Smpfi
75195609Smp
76232633Smp# The user is always right.
77232633Smpif test "${PATH_SEPARATOR+set}" != set; then
78232633Smp  PATH_SEPARATOR=:
79232633Smp  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80232633Smp    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81232633Smp      PATH_SEPARATOR=';'
82232633Smp  }
83131962Smpfi
84131962Smp
85131962Smp
86195609Smp# IFS
87195609Smp# We need space, tab and new line, in precisely that order.  Quoting is
88195609Smp# there to prevent editors from complaining about space-tab.
89195609Smp# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90195609Smp# splitting by setting IFS to empty value.)
91195609SmpIFS=" ""	$as_nl"
92195609Smp
93195609Smp# Find who we are.  Look in the path if we contain no directory separator.
94232633Smpas_myself=
95232633Smpcase $0 in #((
96195609Smp  *[\\/]* ) as_myself=$0 ;;
97195609Smp  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98195609Smpfor as_dir in $PATH
99195609Smpdo
100195609Smp  IFS=$as_save_IFS
101195609Smp  test -z "$as_dir" && as_dir=.
102232633Smp    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103232633Smp  done
104195609SmpIFS=$as_save_IFS
105195609Smp
106195609Smp     ;;
107195609Smpesac
108195609Smp# We did not find ourselves, most probably we were run as `sh COMMAND'
109195609Smp# in which case we are not to be found in the path.
110195609Smpif test "x$as_myself" = x; then
111195609Smp  as_myself=$0
112195609Smpfi
113195609Smpif test ! -f "$as_myself"; then
114232633Smp  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115232633Smp  exit 1
116195609Smpfi
117195609Smp
118232633Smp# Unset variables that we do not need and which cause bugs (e.g. in
119232633Smp# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120232633Smp# suppresses any "Segmentation fault" message there.  '((' could
121232633Smp# trigger a bug in pdksh 5.2.14.
122232633Smpfor as_var in BASH_ENV ENV MAIL MAILPATH
123232633Smpdo eval test x\${$as_var+set} = xset \
124232633Smp  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125195609Smpdone
126131962SmpPS1='$ '
127131962SmpPS2='> '
128131962SmpPS4='+ '
129131962Smp
130131962Smp# NLS nuisances.
131232633SmpLC_ALL=C
132232633Smpexport LC_ALL
133232633SmpLANGUAGE=C
134232633Smpexport LANGUAGE
135131962Smp
136195609Smp# CDPATH.
137232633Smp(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138131962Smp
139195609Smpif test "x$CONFIG_SHELL" = x; then
140232633Smp  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141232633Smp  emulate sh
142232633Smp  NULLCMD=:
143232633Smp  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144232633Smp  # is contrary to our usage.  Disable this feature.
145232633Smp  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146232633Smp  setopt NO_GLOB_SUBST
147195609Smpelse
148232633Smp  case \`(set -o) 2>/dev/null\` in #(
149232633Smp  *posix*) :
150232633Smp    set -o posix ;; #(
151232633Smp  *) :
152232633Smp     ;;
153232633Smpesac
154131962Smpfi
155232633Smp"
156232633Smp  as_required="as_fn_return () { (exit \$1); }
157232633Smpas_fn_success () { as_fn_return 0; }
158232633Smpas_fn_failure () { as_fn_return 1; }
159232633Smpas_fn_ret_success () { return 0; }
160232633Smpas_fn_ret_failure () { return 1; }
161131962Smp
162195609Smpexitcode=0
163232633Smpas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164232633Smpas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165232633Smpas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166232633Smpas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167232633Smpif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168131962Smp
169195609Smpelse
170232633Smp  exitcode=1; echo positional parameters were not saved.
171195609Smpfi
172232633Smptest x\$exitcode = x0 || exit 1"
173232633Smp  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174232633Smp  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175232633Smp  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176232633Smp  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177232633Smptest \$(( 1 + 1 )) = 2 || exit 1"
178232633Smp  if (eval "$as_required") 2>/dev/null; then :
179232633Smp  as_have_required=yes
180195609Smpelse
181232633Smp  as_have_required=no
182195609Smpfi
183232633Smp  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184195609Smp
185195609Smpelse
186232633Smp  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187232633Smpas_found=false
188131962Smpfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189131962Smpdo
190131962Smp  IFS=$as_save_IFS
191131962Smp  test -z "$as_dir" && as_dir=.
192232633Smp  as_found=:
193232633Smp  case $as_dir in #(
194131962Smp	 /*)
195195609Smp	   for as_base in sh bash ksh sh5; do
196232633Smp	     # Try only shells that exist, to save several forks.
197232633Smp	     as_shell=$as_dir/$as_base
198232633Smp	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199232633Smp		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200232633Smp  CONFIG_SHELL=$as_shell as_have_required=yes
201232633Smp		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202232633Smp  break 2
203232633Smpfi
204232633Smpfi
205195609Smp	   done;;
206195609Smp       esac
207232633Smp  as_found=false
208195609Smpdone
209232633Smp$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210232633Smp	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211232633Smp  CONFIG_SHELL=$SHELL as_have_required=yes
212232633Smpfi; }
213195609SmpIFS=$as_save_IFS
214195609Smp
215195609Smp
216232633Smp      if test "x$CONFIG_SHELL" != x; then :
217232633Smp  # We cannot yet assume a decent shell, so we have to provide a
218232633Smp	# neutralization value for shells without unset; and this also
219232633Smp	# works around shells that cannot unset nonexistent variables.
220232633Smp	# Preserve -v and -x to the replacement shell.
221232633Smp	BASH_ENV=/dev/null
222232633Smp	ENV=/dev/null
223232633Smp	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224232633Smp	export CONFIG_SHELL
225232633Smp	case $- in # ((((
226232633Smp	  *v*x* | *x*v* ) as_opts=-vx ;;
227232633Smp	  *v* ) as_opts=-v ;;
228232633Smp	  *x* ) as_opts=-x ;;
229232633Smp	  * ) as_opts= ;;
230232633Smp	esac
231232633Smp	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232195609Smpfi
233195609Smp
234232633Smp    if test x$as_have_required = xno; then :
235232633Smp  $as_echo "$0: This script requires a shell more modern than all"
236232633Smp  $as_echo "$0: the shells that I found on your system."
237232633Smp  if test x${ZSH_VERSION+set} = xset ; then
238232633Smp    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239232633Smp    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240232633Smp  else
241232633Smp    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242232633Smp$0: http://bugs.gw.com/ about your system, including any
243232633Smp$0: error possibly output before this message. Then install
244232633Smp$0: a modern shell, or manually run the script under such a
245232633Smp$0: shell if you do have one."
246232633Smp  fi
247232633Smp  exit 1
248195609Smpfi
249195609Smpfi
250195609Smpfi
251232633SmpSHELL=${CONFIG_SHELL-/bin/sh}
252232633Smpexport SHELL
253232633Smp# Unset more variables known to interfere with behavior of common tools.
254232633SmpCLICOLOR_FORCE= GREP_OPTIONS=
255232633Smpunset CLICOLOR_FORCE GREP_OPTIONS
256195609Smp
257232633Smp## --------------------- ##
258232633Smp## M4sh Shell Functions. ##
259232633Smp## --------------------- ##
260232633Smp# as_fn_unset VAR
261232633Smp# ---------------
262232633Smp# Portably unset VAR.
263232633Smpas_fn_unset ()
264232633Smp{
265232633Smp  { eval $1=; unset $1;}
266232633Smp}
267232633Smpas_unset=as_fn_unset
268195609Smp
269232633Smp# as_fn_set_status STATUS
270232633Smp# -----------------------
271232633Smp# Set $? to STATUS, without forking.
272232633Smpas_fn_set_status ()
273232633Smp{
274232633Smp  return $1
275232633Smp} # as_fn_set_status
276195609Smp
277232633Smp# as_fn_exit STATUS
278232633Smp# -----------------
279232633Smp# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280232633Smpas_fn_exit ()
281232633Smp{
282232633Smp  set +e
283232633Smp  as_fn_set_status $1
284232633Smp  exit $1
285232633Smp} # as_fn_exit
286195609Smp
287232633Smp# as_fn_mkdir_p
288232633Smp# -------------
289232633Smp# Create "$as_dir" as a directory, including parents if necessary.
290232633Smpas_fn_mkdir_p ()
291232633Smp{
292195609Smp
293232633Smp  case $as_dir in #(
294232633Smp  -*) as_dir=./$as_dir;;
295232633Smp  esac
296232633Smp  test -d "$as_dir" || eval $as_mkdir_p || {
297232633Smp    as_dirs=
298232633Smp    while :; do
299232633Smp      case $as_dir in #(
300232633Smp      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301232633Smp      *) as_qdir=$as_dir;;
302232633Smp      esac
303232633Smp      as_dirs="'$as_qdir' $as_dirs"
304232633Smp      as_dir=`$as_dirname -- "$as_dir" ||
305232633Smp$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306232633Smp	 X"$as_dir" : 'X\(//\)[^/]' \| \
307232633Smp	 X"$as_dir" : 'X\(//\)$' \| \
308232633Smp	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309232633Smp$as_echo X"$as_dir" |
310232633Smp    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311232633Smp	    s//\1/
312232633Smp	    q
313232633Smp	  }
314232633Smp	  /^X\(\/\/\)[^/].*/{
315232633Smp	    s//\1/
316232633Smp	    q
317232633Smp	  }
318232633Smp	  /^X\(\/\/\)$/{
319232633Smp	    s//\1/
320232633Smp	    q
321232633Smp	  }
322232633Smp	  /^X\(\/\).*/{
323232633Smp	    s//\1/
324232633Smp	    q
325232633Smp	  }
326232633Smp	  s/.*/./; q'`
327232633Smp      test -d "$as_dir" && break
328232633Smp    done
329232633Smp    test -z "$as_dirs" || eval "mkdir $as_dirs"
330232633Smp  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331131962Smp
332195609Smp
333232633Smp} # as_fn_mkdir_p
334232633Smp# as_fn_append VAR VALUE
335232633Smp# ----------------------
336232633Smp# Append the text in VALUE to the end of the definition contained in VAR. Take
337232633Smp# advantage of any shell optimizations that allow amortized linear growth over
338232633Smp# repeated appends, instead of the typical quadratic growth present in naive
339232633Smp# implementations.
340232633Smpif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341232633Smp  eval 'as_fn_append ()
342232633Smp  {
343232633Smp    eval $1+=\$2
344232633Smp  }'
345232633Smpelse
346232633Smp  as_fn_append ()
347232633Smp  {
348232633Smp    eval $1=\$$1\$2
349232633Smp  }
350232633Smpfi # as_fn_append
351195609Smp
352232633Smp# as_fn_arith ARG...
353232633Smp# ------------------
354232633Smp# Perform arithmetic evaluation on the ARGs, and store the result in the
355232633Smp# global $as_val. Take advantage of shells that can avoid forks. The arguments
356232633Smp# must be portable across $(()) and expr.
357232633Smpif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358232633Smp  eval 'as_fn_arith ()
359232633Smp  {
360232633Smp    as_val=$(( $* ))
361232633Smp  }'
362232633Smpelse
363232633Smp  as_fn_arith ()
364232633Smp  {
365232633Smp    as_val=`expr "$@" || test $? -eq 1`
366232633Smp  }
367232633Smpfi # as_fn_arith
368195609Smp
369195609Smp
370232633Smp# as_fn_error STATUS ERROR [LINENO LOG_FD]
371232633Smp# ----------------------------------------
372232633Smp# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373232633Smp# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374232633Smp# script with STATUS, using 1 if that was 0.
375232633Smpas_fn_error ()
376232633Smp{
377232633Smp  as_status=$1; test $as_status -eq 0 && as_status=1
378232633Smp  if test "$4"; then
379232633Smp    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380232633Smp    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381232633Smp  fi
382232633Smp  $as_echo "$as_me: error: $2" >&2
383232633Smp  as_fn_exit $as_status
384232633Smp} # as_fn_error
385195609Smp
386232633Smpif expr a : '\(a\)' >/dev/null 2>&1 &&
387232633Smp   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388232633Smp  as_expr=expr
389195609Smpelse
390232633Smp  as_expr=false
391195609Smpfi
392195609Smp
393232633Smpif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394232633Smp  as_basename=basename
395195609Smpelse
396232633Smp  as_basename=false
397195609Smpfi
398195609Smp
399232633Smpif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400232633Smp  as_dirname=dirname
401195609Smpelse
402232633Smp  as_dirname=false
403195609Smpfi
404195609Smp
405232633Smpas_me=`$as_basename -- "$0" ||
406232633Smp$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407232633Smp	 X"$0" : 'X\(//\)$' \| \
408232633Smp	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409232633Smp$as_echo X/"$0" |
410232633Smp    sed '/^.*\/\([^/][^/]*\)\/*$/{
411232633Smp	    s//\1/
412232633Smp	    q
413232633Smp	  }
414232633Smp	  /^X\/\(\/\/\)$/{
415232633Smp	    s//\1/
416232633Smp	    q
417232633Smp	  }
418232633Smp	  /^X\/\(\/\).*/{
419232633Smp	    s//\1/
420232633Smp	    q
421232633Smp	  }
422232633Smp	  s/.*/./; q'`
423195609Smp
424232633Smp# Avoid depending upon Character Ranges.
425232633Smpas_cr_letters='abcdefghijklmnopqrstuvwxyz'
426232633Smpas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427232633Smpas_cr_Letters=$as_cr_letters$as_cr_LETTERS
428232633Smpas_cr_digits='0123456789'
429232633Smpas_cr_alnum=$as_cr_Letters$as_cr_digits
430195609Smp
431195609Smp
432232633Smp  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433232633Smp  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434232633Smp  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435232633Smp  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436232633Smp  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437195609Smp  sed -n '
438195609Smp    p
439195609Smp    /[$]LINENO/=
440195609Smp  ' <$as_myself |
441131962Smp    sed '
442195609Smp      s/[$]LINENO.*/&-/
443195609Smp      t lineno
444195609Smp      b
445195609Smp      :lineno
446131962Smp      N
447195609Smp      :loop
448195609Smp      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449131962Smp      t loop
450195609Smp      s/-\n.*//
451131962Smp    ' >$as_me.lineno &&
452195609Smp  chmod +x "$as_me.lineno" ||
453232633Smp    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454131962Smp
455131962Smp  # Don't try to exec as it changes $[0], causing all sort of problems
456131962Smp  # (the dirname of $[0] is not the place where we might find the
457195609Smp  # original and so on.  Autoconf is especially sensitive to this).
458195609Smp  . "./$as_me.lineno"
459131962Smp  # Exit status is that of the last command.
460131962Smp  exit
461131962Smp}
462131962Smp
463195609SmpECHO_C= ECHO_N= ECHO_T=
464232633Smpcase `echo -n x` in #(((((
465195609Smp-n*)
466232633Smp  case `echo 'xy\c'` in
467195609Smp  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468232633Smp  xy)  ECHO_C='\c';;
469232633Smp  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470232633Smp       ECHO_T='	';;
471195609Smp  esac;;
472195609Smp*)
473195609Smp  ECHO_N='-n';;
474131962Smpesac
475131962Smp
476131962Smprm -f conf$$ conf$$.exe conf$$.file
477195609Smpif test -d conf$$.dir; then
478195609Smp  rm -f conf$$.dir/conf$$.file
479195609Smpelse
480195609Smp  rm -f conf$$.dir
481232633Smp  mkdir conf$$.dir 2>/dev/null
482195609Smpfi
483232633Smpif (echo >conf$$.file) 2>/dev/null; then
484232633Smp  if ln -s conf$$.file conf$$ 2>/dev/null; then
485232633Smp    as_ln_s='ln -s'
486232633Smp    # ... but there are two gotchas:
487232633Smp    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488232633Smp    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489232633Smp    # In both cases, we have to default to `cp -p'.
490232633Smp    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491232633Smp      as_ln_s='cp -p'
492232633Smp  elif ln conf$$.file conf$$ 2>/dev/null; then
493232633Smp    as_ln_s=ln
494232633Smp  else
495131962Smp    as_ln_s='cp -p'
496232633Smp  fi
497131962Smpelse
498131962Smp  as_ln_s='cp -p'
499131962Smpfi
500195609Smprm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501195609Smprmdir conf$$.dir 2>/dev/null
502131962Smp
503131962Smpif mkdir -p . 2>/dev/null; then
504232633Smp  as_mkdir_p='mkdir -p "$as_dir"'
505131962Smpelse
506145479Smp  test -d ./-p && rmdir ./-p
507131962Smp  as_mkdir_p=false
508131962Smpfi
509131962Smp
510195609Smpif test -x / >/dev/null 2>&1; then
511195609Smp  as_test_x='test -x'
512195609Smpelse
513195609Smp  if ls -dL / >/dev/null 2>&1; then
514195609Smp    as_ls_L_option=L
515195609Smp  else
516195609Smp    as_ls_L_option=
517195609Smp  fi
518195609Smp  as_test_x='
519195609Smp    eval sh -c '\''
520195609Smp      if test -d "$1"; then
521232633Smp	test -d "$1/.";
522195609Smp      else
523232633Smp	case $1 in #(
524232633Smp	-*)set "./$1";;
525195609Smp	esac;
526232633Smp	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527195609Smp	???[sx]*):;;*)false;;esac;fi
528195609Smp    '\'' sh
529195609Smp  '
530195609Smpfi
531195609Smpas_executable_p=$as_test_x
532131962Smp
533131962Smp# Sed expression to map a string onto a valid CPP name.
534145479Smpas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535131962Smp
536131962Smp# Sed expression to map a string onto a valid variable name.
537145479Smpas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538131962Smp
539131962Smp
540232633Smptest -n "$DJDIR" || exec 7<&0 </dev/null
541232633Smpexec 6>&1
542131962Smp
543131962Smp# Name of the host.
544232633Smp# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545131962Smp# so uname gets run too.
546131962Smpac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547131962Smp
548131962Smp#
549131962Smp# Initializations.
550131962Smp#
55169408Sacheac_default_prefix=/usr/local
552195609Smpac_clean_files=
553131962Smpac_config_libobj_dir=.
554195609SmpLIBOBJS=
555131962Smpcross_compiling=no
556131962Smpsubdirs=
557131962SmpMFLAGS=
558131962SmpMAKEFLAGS=
55969408Sache
560131962Smp# Identity of this package.
561167465SmpPACKAGE_NAME='tcsh'
562167465SmpPACKAGE_TARNAME='tcsh'
563232633SmpPACKAGE_VERSION='6.18.01'
564232633SmpPACKAGE_STRING='tcsh 6.18.01'
565167465SmpPACKAGE_BUGREPORT='http://bugs.gw.com/'
566232633SmpPACKAGE_URL=''
567131962Smp
568131962Smpac_unique_file="tc.vers.c"
569145479Smp# Factoring default headers for most tests.
570145479Smpac_includes_default="\
571145479Smp#include <stdio.h>
572195609Smp#ifdef HAVE_SYS_TYPES_H
573145479Smp# include <sys/types.h>
574145479Smp#endif
575195609Smp#ifdef HAVE_SYS_STAT_H
576145479Smp# include <sys/stat.h>
577145479Smp#endif
578195609Smp#ifdef STDC_HEADERS
579145479Smp# include <stdlib.h>
580145479Smp# include <stddef.h>
581145479Smp#else
582195609Smp# ifdef HAVE_STDLIB_H
583145479Smp#  include <stdlib.h>
584145479Smp# endif
585145479Smp#endif
586195609Smp#ifdef HAVE_STRING_H
587195609Smp# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588145479Smp#  include <memory.h>
589145479Smp# endif
590145479Smp# include <string.h>
591145479Smp#endif
592195609Smp#ifdef HAVE_STRINGS_H
593145479Smp# include <strings.h>
594145479Smp#endif
595195609Smp#ifdef HAVE_INTTYPES_H
596145479Smp# include <inttypes.h>
597145479Smp#endif
598195609Smp#ifdef HAVE_STDINT_H
599195609Smp# include <stdint.h>
600195609Smp#endif
601195609Smp#ifdef HAVE_UNISTD_H
602145479Smp# include <unistd.h>
603145479Smp#endif"
604145479Smp
605232633Smpac_subst_vars='LTLIBOBJS
606232633SmpLIBOBJS
607232633SmpBUILD_CATALOGS
608232633SmpHESLIB
609232633SmpHESDEF
610232633SmpDFLAGS
611232633SmpLTLIBICONV
612232633SmpLIBICONV
613232633SmpCC_FOR_GETHOST
614232633SmpGENCAT
615232633SmpEGREP
616232633SmpGREP
617232633SmpCPP
618232633SmpOBJEXT
619232633SmpEXEEXT
620232633Smpac_ct_CC
621232633SmpCPPFLAGS
622232633SmpLDFLAGS
623232633SmpCFLAGS
624232633SmpCC
625232633Smphost_os
626232633Smphost_vendor
627232633Smphost_cpu
628232633Smphost
629232633Smpbuild_os
630232633Smpbuild_vendor
631232633Smpbuild_cpu
632232633Smpbuild
633232633SmpINSTALL_DATA
634232633SmpINSTALL_SCRIPT
635232633SmpINSTALL_PROGRAM
636232633Smptarget_alias
637232633Smphost_alias
638232633Smpbuild_alias
639232633SmpLIBS
640232633SmpECHO_T
641232633SmpECHO_N
642232633SmpECHO_C
643232633SmpDEFS
644232633Smpmandir
645232633Smplocaledir
646232633Smplibdir
647232633Smppsdir
648232633Smppdfdir
649232633Smpdvidir
650232633Smphtmldir
651232633Smpinfodir
652232633Smpdocdir
653232633Smpoldincludedir
654232633Smpincludedir
655232633Smplocalstatedir
656232633Smpsharedstatedir
657232633Smpsysconfdir
658232633Smpdatadir
659232633Smpdatarootdir
660232633Smplibexecdir
661232633Smpsbindir
662232633Smpbindir
663232633Smpprogram_transform_name
664232633Smpprefix
665232633Smpexec_prefix
666232633SmpPACKAGE_URL
667232633SmpPACKAGE_BUGREPORT
668232633SmpPACKAGE_STRING
669232633SmpPACKAGE_VERSION
670232633SmpPACKAGE_TARNAME
671232633SmpPACKAGE_NAME
672195609SmpPATH_SEPARATOR
673232633SmpSHELL'
674131962Smpac_subst_files=''
675232633Smpac_user_opts='
676232633Smpenable_option_checking
677232633Smpwith_gnu_ld
678232633Smpenable_rpath
679232633Smpwith_libiconv_prefix
680232633Smpenable_nls
681232633Smpenable_nls_catalogs
682232633Smpwith_hesiod
683232633Smp'
684195609Smp      ac_precious_vars='build_alias
685195609Smphost_alias
686195609Smptarget_alias
687195609SmpCC
688195609SmpCFLAGS
689195609SmpLDFLAGS
690195609SmpLIBS
691195609SmpCPPFLAGS
692195609SmpCPP'
693131962Smp
694195609Smp
69569408Sache# Initialize some variables set by options.
696131962Smpac_init_help=
697131962Smpac_init_version=false
698232633Smpac_unrecognized_opts=
699232633Smpac_unrecognized_sep=
70069408Sache# The variables have the same names as the options, with
70169408Sache# dashes changed to underlines.
702131962Smpcache_file=/dev/null
70369408Sacheexec_prefix=NONE
70469408Sacheno_create=
70569408Sacheno_recursion=
70669408Sacheprefix=NONE
70769408Sacheprogram_prefix=NONE
70869408Sacheprogram_suffix=NONE
70969408Sacheprogram_transform_name=s,x,x,
71069408Sachesilent=
71169408Sachesite=
71269408Sachesrcdir=
71369408Sacheverbose=
71469408Sachex_includes=NONE
71569408Sachex_libraries=NONE
716131962Smp
717131962Smp# Installation directory options.
718131962Smp# These are left unexpanded so users can "make install exec_prefix=/foo"
719131962Smp# and all the variables that are supposed to be based on exec_prefix
720131962Smp# by default will actually change.
721131962Smp# Use braces instead of parens because sh, perl, etc. also accept them.
722195609Smp# (The list follows the same order as the GNU Coding Standards.)
72369408Sachebindir='${exec_prefix}/bin'
72469408Sachesbindir='${exec_prefix}/sbin'
72569408Sachelibexecdir='${exec_prefix}/libexec'
726195609Smpdatarootdir='${prefix}/share'
727195609Smpdatadir='${datarootdir}'
72869408Sachesysconfdir='${prefix}/etc'
72969408Sachesharedstatedir='${prefix}/com'
73069408Sachelocalstatedir='${prefix}/var'
73169408Sacheincludedir='${prefix}/include'
73269408Sacheoldincludedir='/usr/include'
733195609Smpdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
734195609Smpinfodir='${datarootdir}/info'
735195609Smphtmldir='${docdir}'
736195609Smpdvidir='${docdir}'
737195609Smppdfdir='${docdir}'
738195609Smppsdir='${docdir}'
739195609Smplibdir='${exec_prefix}/lib'
740195609Smplocaledir='${datarootdir}/locale'
741195609Smpmandir='${datarootdir}/man'
74269408Sache
74369408Sacheac_prev=
744195609Smpac_dashdash=
74569408Sachefor ac_option
74669408Sachedo
74769408Sache  # If the previous option needs an argument, assign it.
74869408Sache  if test -n "$ac_prev"; then
749195609Smp    eval $ac_prev=\$ac_option
75069408Sache    ac_prev=
75169408Sache    continue
75269408Sache  fi
75369408Sache
754195609Smp  case $ac_option in
755232633Smp  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
756232633Smp  *=)   ac_optarg= ;;
757232633Smp  *)    ac_optarg=yes ;;
758195609Smp  esac
75969408Sache
76069408Sache  # Accept the important Cygnus configure options, so we can diagnose typos.
76169408Sache
762195609Smp  case $ac_dashdash$ac_option in
763195609Smp  --)
764195609Smp    ac_dashdash=yes ;;
76569408Sache
76669408Sache  -bindir | --bindir | --bindi | --bind | --bin | --bi)
76769408Sache    ac_prev=bindir ;;
76869408Sache  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
769131962Smp    bindir=$ac_optarg ;;
77069408Sache
77169408Sache  -build | --build | --buil | --bui | --bu)
772131962Smp    ac_prev=build_alias ;;
77369408Sache  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
774131962Smp    build_alias=$ac_optarg ;;
77569408Sache
77669408Sache  -cache-file | --cache-file | --cache-fil | --cache-fi \
77769408Sache  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
77869408Sache    ac_prev=cache_file ;;
77969408Sache  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
78069408Sache  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
781131962Smp    cache_file=$ac_optarg ;;
78269408Sache
783131962Smp  --config-cache | -C)
784131962Smp    cache_file=config.cache ;;
785131962Smp
786195609Smp  -datadir | --datadir | --datadi | --datad)
78769408Sache    ac_prev=datadir ;;
788195609Smp  -datadir=* | --datadir=* | --datadi=* | --datad=*)
789131962Smp    datadir=$ac_optarg ;;
79069408Sache
791195609Smp  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
792195609Smp  | --dataroo | --dataro | --datar)
793195609Smp    ac_prev=datarootdir ;;
794195609Smp  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
795195609Smp  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
796195609Smp    datarootdir=$ac_optarg ;;
797195609Smp
79869408Sache  -disable-* | --disable-*)
799232633Smp    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
80069408Sache    # Reject names that are not valid shell variable names.
801232633Smp    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
802232633Smp      as_fn_error $? "invalid feature name: $ac_useropt"
803232633Smp    ac_useropt_orig=$ac_useropt
804232633Smp    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
805232633Smp    case $ac_user_opts in
806232633Smp      *"
807232633Smp"enable_$ac_useropt"
808232633Smp"*) ;;
809232633Smp      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
810232633Smp	 ac_unrecognized_sep=', ';;
811232633Smp    esac
812232633Smp    eval enable_$ac_useropt=no ;;
81369408Sache
814195609Smp  -docdir | --docdir | --docdi | --doc | --do)
815195609Smp    ac_prev=docdir ;;
816195609Smp  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
817195609Smp    docdir=$ac_optarg ;;
818195609Smp
819195609Smp  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
820195609Smp    ac_prev=dvidir ;;
821195609Smp  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
822195609Smp    dvidir=$ac_optarg ;;
823195609Smp
82469408Sache  -enable-* | --enable-*)
825232633Smp    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
82669408Sache    # Reject names that are not valid shell variable names.
827232633Smp    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828232633Smp      as_fn_error $? "invalid feature name: $ac_useropt"
829232633Smp    ac_useropt_orig=$ac_useropt
830232633Smp    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831232633Smp    case $ac_user_opts in
832232633Smp      *"
833232633Smp"enable_$ac_useropt"
834232633Smp"*) ;;
835232633Smp      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
836232633Smp	 ac_unrecognized_sep=', ';;
837232633Smp    esac
838232633Smp    eval enable_$ac_useropt=\$ac_optarg ;;
83969408Sache
84069408Sache  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
84169408Sache  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
84269408Sache  | --exec | --exe | --ex)
84369408Sache    ac_prev=exec_prefix ;;
84469408Sache  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
84569408Sache  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
84669408Sache  | --exec=* | --exe=* | --ex=*)
847131962Smp    exec_prefix=$ac_optarg ;;
84869408Sache
84969408Sache  -gas | --gas | --ga | --g)
85069408Sache    # Obsolete; use --with-gas.
85169408Sache    with_gas=yes ;;
85269408Sache
853131962Smp  -help | --help | --hel | --he | -h)
854131962Smp    ac_init_help=long ;;
855131962Smp  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
856131962Smp    ac_init_help=recursive ;;
857131962Smp  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
858131962Smp    ac_init_help=short ;;
85969408Sache
86069408Sache  -host | --host | --hos | --ho)
861131962Smp    ac_prev=host_alias ;;
86269408Sache  -host=* | --host=* | --hos=* | --ho=*)
863131962Smp    host_alias=$ac_optarg ;;
86469408Sache
865195609Smp  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
866195609Smp    ac_prev=htmldir ;;
867195609Smp  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
868195609Smp  | --ht=*)
869195609Smp    htmldir=$ac_optarg ;;
870195609Smp
87169408Sache  -includedir | --includedir | --includedi | --included | --include \
87269408Sache  | --includ | --inclu | --incl | --inc)
87369408Sache    ac_prev=includedir ;;
87469408Sache  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
87569408Sache  | --includ=* | --inclu=* | --incl=* | --inc=*)
876131962Smp    includedir=$ac_optarg ;;
87769408Sache
87869408Sache  -infodir | --infodir | --infodi | --infod | --info | --inf)
87969408Sache    ac_prev=infodir ;;
88069408Sache  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881131962Smp    infodir=$ac_optarg ;;
88269408Sache
88369408Sache  -libdir | --libdir | --libdi | --libd)
88469408Sache    ac_prev=libdir ;;
88569408Sache  -libdir=* | --libdir=* | --libdi=* | --libd=*)
886131962Smp    libdir=$ac_optarg ;;
88769408Sache
88869408Sache  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
88969408Sache  | --libexe | --libex | --libe)
89069408Sache    ac_prev=libexecdir ;;
89169408Sache  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
89269408Sache  | --libexe=* | --libex=* | --libe=*)
893131962Smp    libexecdir=$ac_optarg ;;
89469408Sache
895195609Smp  -localedir | --localedir | --localedi | --localed | --locale)
896195609Smp    ac_prev=localedir ;;
897195609Smp  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898195609Smp    localedir=$ac_optarg ;;
899195609Smp
90069408Sache  -localstatedir | --localstatedir | --localstatedi | --localstated \
901195609Smp  | --localstate | --localstat | --localsta | --localst | --locals)
90269408Sache    ac_prev=localstatedir ;;
90369408Sache  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
904195609Smp  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
905131962Smp    localstatedir=$ac_optarg ;;
90669408Sache
90769408Sache  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
90869408Sache    ac_prev=mandir ;;
90969408Sache  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
910131962Smp    mandir=$ac_optarg ;;
91169408Sache
91269408Sache  -nfp | --nfp | --nf)
91369408Sache    # Obsolete; use --without-fp.
91469408Sache    with_fp=no ;;
91569408Sache
91669408Sache  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917131962Smp  | --no-cr | --no-c | -n)
91869408Sache    no_create=yes ;;
91969408Sache
92069408Sache  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
92169408Sache  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
92269408Sache    no_recursion=yes ;;
92369408Sache
92469408Sache  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
92569408Sache  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
92669408Sache  | --oldin | --oldi | --old | --ol | --o)
92769408Sache    ac_prev=oldincludedir ;;
92869408Sache  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
92969408Sache  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
93069408Sache  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
931131962Smp    oldincludedir=$ac_optarg ;;
93269408Sache
93369408Sache  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
93469408Sache    ac_prev=prefix ;;
93569408Sache  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
936131962Smp    prefix=$ac_optarg ;;
93769408Sache
93869408Sache  -program-prefix | --program-prefix | --program-prefi | --program-pref \
93969408Sache  | --program-pre | --program-pr | --program-p)
94069408Sache    ac_prev=program_prefix ;;
94169408Sache  -program-prefix=* | --program-prefix=* | --program-prefi=* \
94269408Sache  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
943131962Smp    program_prefix=$ac_optarg ;;
94469408Sache
94569408Sache  -program-suffix | --program-suffix | --program-suffi | --program-suff \
94669408Sache  | --program-suf | --program-su | --program-s)
94769408Sache    ac_prev=program_suffix ;;
94869408Sache  -program-suffix=* | --program-suffix=* | --program-suffi=* \
94969408Sache  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
950131962Smp    program_suffix=$ac_optarg ;;
95169408Sache
95269408Sache  -program-transform-name | --program-transform-name \
95369408Sache  | --program-transform-nam | --program-transform-na \
95469408Sache  | --program-transform-n | --program-transform- \
95569408Sache  | --program-transform | --program-transfor \
95669408Sache  | --program-transfo | --program-transf \
95769408Sache  | --program-trans | --program-tran \
95869408Sache  | --progr-tra | --program-tr | --program-t)
95969408Sache    ac_prev=program_transform_name ;;
96069408Sache  -program-transform-name=* | --program-transform-name=* \
96169408Sache  | --program-transform-nam=* | --program-transform-na=* \
96269408Sache  | --program-transform-n=* | --program-transform-=* \
96369408Sache  | --program-transform=* | --program-transfor=* \
96469408Sache  | --program-transfo=* | --program-transf=* \
96569408Sache  | --program-trans=* | --program-tran=* \
96669408Sache  | --progr-tra=* | --program-tr=* | --program-t=*)
967131962Smp    program_transform_name=$ac_optarg ;;
96869408Sache
969195609Smp  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
970195609Smp    ac_prev=pdfdir ;;
971195609Smp  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
972195609Smp    pdfdir=$ac_optarg ;;
973195609Smp
974195609Smp  -psdir | --psdir | --psdi | --psd | --ps)
975195609Smp    ac_prev=psdir ;;
976195609Smp  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
977195609Smp    psdir=$ac_optarg ;;
978195609Smp
97969408Sache  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
98069408Sache  | -silent | --silent | --silen | --sile | --sil)
98169408Sache    silent=yes ;;
98269408Sache
98369408Sache  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
98469408Sache    ac_prev=sbindir ;;
98569408Sache  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
98669408Sache  | --sbi=* | --sb=*)
987131962Smp    sbindir=$ac_optarg ;;
98869408Sache
98969408Sache  -sharedstatedir | --sharedstatedir | --sharedstatedi \
99069408Sache  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
99169408Sache  | --sharedst | --shareds | --shared | --share | --shar \
99269408Sache  | --sha | --sh)
99369408Sache    ac_prev=sharedstatedir ;;
99469408Sache  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
99569408Sache  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
99669408Sache  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
99769408Sache  | --sha=* | --sh=*)
998131962Smp    sharedstatedir=$ac_optarg ;;
99969408Sache
100069408Sache  -site | --site | --sit)
100169408Sache    ac_prev=site ;;
100269408Sache  -site=* | --site=* | --sit=*)
1003131962Smp    site=$ac_optarg ;;
100469408Sache
100569408Sache  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
100669408Sache    ac_prev=srcdir ;;
100769408Sache  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008131962Smp    srcdir=$ac_optarg ;;
100969408Sache
101069408Sache  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
101169408Sache  | --syscon | --sysco | --sysc | --sys | --sy)
101269408Sache    ac_prev=sysconfdir ;;
101369408Sache  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
101469408Sache  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1015131962Smp    sysconfdir=$ac_optarg ;;
101669408Sache
101769408Sache  -target | --target | --targe | --targ | --tar | --ta | --t)
1018131962Smp    ac_prev=target_alias ;;
101969408Sache  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1020131962Smp    target_alias=$ac_optarg ;;
102169408Sache
102269408Sache  -v | -verbose | --verbose | --verbos | --verbo | --verb)
102369408Sache    verbose=yes ;;
102469408Sache
1025131962Smp  -version | --version | --versio | --versi | --vers | -V)
1026131962Smp    ac_init_version=: ;;
102769408Sache
102869408Sache  -with-* | --with-*)
1029232633Smp    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
103069408Sache    # Reject names that are not valid shell variable names.
1031232633Smp    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032232633Smp      as_fn_error $? "invalid package name: $ac_useropt"
1033232633Smp    ac_useropt_orig=$ac_useropt
1034232633Smp    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035232633Smp    case $ac_user_opts in
1036232633Smp      *"
1037232633Smp"with_$ac_useropt"
1038232633Smp"*) ;;
1039232633Smp      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1040232633Smp	 ac_unrecognized_sep=', ';;
1041232633Smp    esac
1042232633Smp    eval with_$ac_useropt=\$ac_optarg ;;
104369408Sache
104469408Sache  -without-* | --without-*)
1045232633Smp    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
104669408Sache    # Reject names that are not valid shell variable names.
1047232633Smp    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048232633Smp      as_fn_error $? "invalid package name: $ac_useropt"
1049232633Smp    ac_useropt_orig=$ac_useropt
1050232633Smp    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051232633Smp    case $ac_user_opts in
1052232633Smp      *"
1053232633Smp"with_$ac_useropt"
1054232633Smp"*) ;;
1055232633Smp      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1056232633Smp	 ac_unrecognized_sep=', ';;
1057232633Smp    esac
1058232633Smp    eval with_$ac_useropt=no ;;
105969408Sache
106069408Sache  --x)
106169408Sache    # Obsolete; use --with-x.
106269408Sache    with_x=yes ;;
106369408Sache
106469408Sache  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
106569408Sache  | --x-incl | --x-inc | --x-in | --x-i)
106669408Sache    ac_prev=x_includes ;;
106769408Sache  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
106869408Sache  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069131962Smp    x_includes=$ac_optarg ;;
107069408Sache
107169408Sache  -x-libraries | --x-libraries | --x-librarie | --x-librari \
107269408Sache  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
107369408Sache    ac_prev=x_libraries ;;
107469408Sache  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
107569408Sache  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076131962Smp    x_libraries=$ac_optarg ;;
107769408Sache
1078232633Smp  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1079232633SmpTry \`$0 --help' for more information"
108069408Sache    ;;
108169408Sache
1082131962Smp  *=*)
1083131962Smp    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1084131962Smp    # Reject names that are not valid shell variable names.
1085232633Smp    case $ac_envvar in #(
1086232633Smp      '' | [0-9]* | *[!_$as_cr_alnum]* )
1087232633Smp      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1088232633Smp    esac
1089195609Smp    eval $ac_envvar=\$ac_optarg
1090131962Smp    export $ac_envvar ;;
1091131962Smp
109269408Sache  *)
1093131962Smp    # FIXME: should be removed in autoconf 3.0.
1094232633Smp    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095131962Smp    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096232633Smp      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097232633Smp    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
109869408Sache    ;;
109969408Sache
110069408Sache  esac
110169408Sachedone
110269408Sache
110369408Sacheif test -n "$ac_prev"; then
1104131962Smp  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105232633Smp  as_fn_error $? "missing argument to $ac_option"
110669408Sachefi
110769408Sache
1108232633Smpif test -n "$ac_unrecognized_opts"; then
1109232633Smp  case $enable_option_checking in
1110232633Smp    no) ;;
1111232633Smp    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1112232633Smp    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1113232633Smp  esac
1114232633Smpfi
1115232633Smp
1116232633Smp# Check all directory arguments for consistency.
1117195609Smpfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118195609Smp		datadir sysconfdir sharedstatedir localstatedir includedir \
1119195609Smp		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1120195609Smp		libdir localedir mandir
1121131962Smpdo
1122195609Smp  eval ac_val=\$$ac_var
1123232633Smp  # Remove trailing slashes.
1124131962Smp  case $ac_val in
1125232633Smp    */ )
1126232633Smp      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1127232633Smp      eval $ac_var=\$ac_val;;
1128232633Smp  esac
1129232633Smp  # Be sure to have absolute directory names.
1130232633Smp  case $ac_val in
1131195609Smp    [\\/$]* | ?:[\\/]* )  continue;;
1132195609Smp    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1133131962Smp  esac
1134232633Smp  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1135131962Smpdone
113669408Sache
1137131962Smp# There might be people who depend on the old broken behavior: `$host'
1138131962Smp# used to hold the argument of --host etc.
1139131962Smp# FIXME: To remove some day.
1140131962Smpbuild=$build_alias
1141131962Smphost=$host_alias
1142131962Smptarget=$target_alias
114369408Sache
1144131962Smp# FIXME: To remove some day.
1145131962Smpif test "x$host_alias" != x; then
1146131962Smp  if test "x$build_alias" = x; then
1147131962Smp    cross_compiling=maybe
1148232633Smp    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1149232633Smp    If a cross compiler is detected then cross compile mode will be used" >&2
1150131962Smp  elif test "x$build_alias" != "x$host_alias"; then
1151131962Smp    cross_compiling=yes
1152131962Smp  fi
1153131962Smpfi
115469408Sache
1155131962Smpac_tool_prefix=
1156131962Smptest -n "$host_alias" && ac_tool_prefix=$host_alias-
115769408Sache
1158131962Smptest "$silent" = yes && exec 6>/dev/null
1159131962Smp
1160131962Smp
1161195609Smpac_pwd=`pwd` && test -n "$ac_pwd" &&
1162195609Smpac_ls_di=`ls -di .` &&
1163195609Smpac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1164232633Smp  as_fn_error $? "working directory cannot be determined"
1165195609Smptest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166232633Smp  as_fn_error $? "pwd does not report name of working directory"
1167195609Smp
1168195609Smp
116969408Sache# Find the source files, if location was not specified.
117069408Sacheif test -z "$srcdir"; then
117169408Sache  ac_srcdir_defaulted=yes
1172195609Smp  # Try the directory containing this script, then the parent directory.
1173232633Smp  ac_confdir=`$as_dirname -- "$as_myself" ||
1174232633Smp$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175232633Smp	 X"$as_myself" : 'X\(//\)[^/]' \| \
1176232633Smp	 X"$as_myself" : 'X\(//\)$' \| \
1177232633Smp	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1178232633Smp$as_echo X"$as_myself" |
1179195609Smp    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180195609Smp	    s//\1/
1181195609Smp	    q
1182195609Smp	  }
1183195609Smp	  /^X\(\/\/\)[^/].*/{
1184195609Smp	    s//\1/
1185195609Smp	    q
1186195609Smp	  }
1187195609Smp	  /^X\(\/\/\)$/{
1188195609Smp	    s//\1/
1189195609Smp	    q
1190195609Smp	  }
1191195609Smp	  /^X\(\/\).*/{
1192195609Smp	    s//\1/
1193195609Smp	    q
1194195609Smp	  }
1195195609Smp	  s/.*/./; q'`
119669408Sache  srcdir=$ac_confdir
1197195609Smp  if test ! -r "$srcdir/$ac_unique_file"; then
119869408Sache    srcdir=..
119969408Sache  fi
120069408Sacheelse
120169408Sache  ac_srcdir_defaulted=no
120269408Sachefi
1203195609Smpif test ! -r "$srcdir/$ac_unique_file"; then
1204195609Smp  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205232633Smp  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1206195609Smpfi
1207195609Smpac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208195609Smpac_abs_confdir=`(
1209232633Smp	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1210195609Smp	pwd)`
1211195609Smp# When building in place, set srcdir=.
1212195609Smpif test "$ac_abs_confdir" = "$ac_pwd"; then
1213195609Smp  srcdir=.
121469408Sachefi
1215195609Smp# Remove unnecessary trailing slashes from srcdir.
1216195609Smp# Double slashes in file names in object file debugging info
1217195609Smp# mess up M-x gdb in Emacs.
1218195609Smpcase $srcdir in
1219195609Smp*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220195609Smpesac
1221195609Smpfor ac_var in $ac_precious_vars; do
1222195609Smp  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223195609Smp  eval ac_env_${ac_var}_value=\$${ac_var}
1224195609Smp  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225195609Smp  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226195609Smpdone
122769408Sache
1228131962Smp#
1229131962Smp# Report the --help message.
1230131962Smp#
1231131962Smpif test "$ac_init_help" = "long"; then
1232131962Smp  # Omit some internal or obsolete options to make the list less imposing.
1233131962Smp  # This message is too long to be a string in the A/UX 3.1 sh.
1234131962Smp  cat <<_ACEOF
1235232633Smp\`configure' configures tcsh 6.18.01 to adapt to many kinds of systems.
1236131962Smp
1237131962SmpUsage: $0 [OPTION]... [VAR=VALUE]...
1238131962Smp
1239131962SmpTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1240131962SmpVAR=VALUE.  See below for descriptions of some of the useful variables.
1241131962Smp
1242131962SmpDefaults for the options are specified in brackets.
1243131962Smp
1244131962SmpConfiguration:
1245131962Smp  -h, --help              display this help and exit
1246131962Smp      --help=short        display options specific to this package
1247131962Smp      --help=recursive    display the short help of all the included packages
1248131962Smp  -V, --version           display version information and exit
1249232633Smp  -q, --quiet, --silent   do not print \`checking ...' messages
1250131962Smp      --cache-file=FILE   cache test results in FILE [disabled]
1251131962Smp  -C, --config-cache      alias for \`--cache-file=config.cache'
1252131962Smp  -n, --no-create         do not create output files
1253131962Smp      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1254131962Smp
1255131962SmpInstallation directories:
1256131962Smp  --prefix=PREFIX         install architecture-independent files in PREFIX
1257232633Smp                          [$ac_default_prefix]
1258131962Smp  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1259232633Smp                          [PREFIX]
1260131962Smp
1261131962SmpBy default, \`make install' will install all the files in
1262131962Smp\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1263131962Smpan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264131962Smpfor instance \`--prefix=\$HOME'.
1265131962Smp
1266131962SmpFor better control, use the options below.
1267131962Smp
1268131962SmpFine tuning of the installation directories:
1269232633Smp  --bindir=DIR            user executables [EPREFIX/bin]
1270232633Smp  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1271232633Smp  --libexecdir=DIR        program executables [EPREFIX/libexec]
1272232633Smp  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1273232633Smp  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1274232633Smp  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1275232633Smp  --libdir=DIR            object code libraries [EPREFIX/lib]
1276232633Smp  --includedir=DIR        C header files [PREFIX/include]
1277232633Smp  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1278232633Smp  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1279232633Smp  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1280232633Smp  --infodir=DIR           info documentation [DATAROOTDIR/info]
1281232633Smp  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1282232633Smp  --mandir=DIR            man documentation [DATAROOTDIR/man]
1283232633Smp  --docdir=DIR            documentation root [DATAROOTDIR/doc/tcsh]
1284232633Smp  --htmldir=DIR           html documentation [DOCDIR]
1285232633Smp  --dvidir=DIR            dvi documentation [DOCDIR]
1286232633Smp  --pdfdir=DIR            pdf documentation [DOCDIR]
1287232633Smp  --psdir=DIR             ps documentation [DOCDIR]
1288131962Smp_ACEOF
1289131962Smp
1290131962Smp  cat <<\_ACEOF
1291131962Smp
1292131962SmpSystem types:
1293131962Smp  --build=BUILD     configure for building on BUILD [guessed]
1294131962Smp  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1295131962Smp_ACEOF
1296131962Smpfi
1297131962Smp
1298131962Smpif test -n "$ac_init_help"; then
1299167465Smp  case $ac_init_help in
1300232633Smp     short | recursive ) echo "Configuration of tcsh 6.18.01:";;
1301167465Smp   esac
1302131962Smp  cat <<\_ACEOF
1303131962Smp
1304167465SmpOptional Features:
1305232633Smp  --disable-option-checking  ignore unrecognized --enable/--with options
1306167465Smp  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1307167465Smp  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1308167465Smp  --disable-rpath         do not hardcode runtime library paths
1309167465Smp  --disable-nls           Disable NLS support
1310232633Smp  --disable-nls-catalogs  Disable NLS catalog support
1311167465Smp
1312131962SmpOptional Packages:
1313131962Smp  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1314131962Smp  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1315167465Smp  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1316167465Smp  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1317167465Smp  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1318131962Smp  --with-hesiod=PREFIX    Use Hesiod lookup for ~ expansion
1319131962Smp
1320131962SmpSome influential environment variables:
1321131962Smp  CC          C compiler command
1322131962Smp  CFLAGS      C compiler flags
1323131962Smp  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1324131962Smp              nonstandard directory <lib dir>
1325195609Smp  LIBS        libraries to pass to the linker, e.g. -l<library>
1326232633Smp  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1327195609Smp              you have headers in a nonstandard directory <include dir>
1328131962Smp  CPP         C preprocessor
1329131962Smp
1330131962SmpUse these variables to override the choices made by `configure' or to help
1331131962Smpit to find libraries and programs with nonstandard names/locations.
1332131962Smp
1333167465SmpReport bugs to <http://bugs.gw.com/>.
1334131962Smp_ACEOF
1335195609Smpac_status=$?
1336131962Smpfi
1337131962Smp
1338131962Smpif test "$ac_init_help" = "recursive"; then
1339131962Smp  # If there are subdirs, report their specific --help.
1340131962Smp  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1341232633Smp    test -d "$ac_dir" ||
1342232633Smp      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1343232633Smp      continue
1344131962Smp    ac_builddir=.
1345131962Smp
1346195609Smpcase "$ac_dir" in
1347195609Smp.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1348195609Smp*)
1349232633Smp  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1350195609Smp  # A ".." for each directory in $ac_dir_suffix.
1351232633Smp  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1352195609Smp  case $ac_top_builddir_sub in
1353195609Smp  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354195609Smp  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1355195609Smp  esac ;;
1356195609Smpesac
1357195609Smpac_abs_top_builddir=$ac_pwd
1358195609Smpac_abs_builddir=$ac_pwd$ac_dir_suffix
1359195609Smp# for backward compatibility:
1360195609Smpac_top_builddir=$ac_top_build_prefix
1361131962Smp
1362131962Smpcase $srcdir in
1363195609Smp  .)  # We are building in place.
1364131962Smp    ac_srcdir=.
1365195609Smp    ac_top_srcdir=$ac_top_builddir_sub
1366195609Smp    ac_abs_top_srcdir=$ac_pwd ;;
1367195609Smp  [\\/]* | ?:[\\/]* )  # Absolute name.
1368131962Smp    ac_srcdir=$srcdir$ac_dir_suffix;
1369195609Smp    ac_top_srcdir=$srcdir
1370195609Smp    ac_abs_top_srcdir=$srcdir ;;
1371195609Smp  *) # Relative name.
1372195609Smp    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1373195609Smp    ac_top_srcdir=$ac_top_build_prefix$srcdir
1374195609Smp    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1375131962Smpesac
1376195609Smpac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1377131962Smp
1378195609Smp    cd "$ac_dir" || { ac_status=$?; continue; }
1379195609Smp    # Check for guested configure.
1380195609Smp    if test -f "$ac_srcdir/configure.gnu"; then
1381195609Smp      echo &&
1382195609Smp      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1383195609Smp    elif test -f "$ac_srcdir/configure"; then
1384195609Smp      echo &&
1385195609Smp      $SHELL "$ac_srcdir/configure" --help=recursive
1386131962Smp    else
1387232633Smp      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1388195609Smp    fi || ac_status=$?
1389195609Smp    cd "$ac_pwd" || { ac_status=$?; break; }
1390131962Smp  done
1391131962Smpfi
1392131962Smp
1393195609Smptest -n "$ac_init_help" && exit $ac_status
1394131962Smpif $ac_init_version; then
1395131962Smp  cat <<\_ACEOF
1396232633Smptcsh configure 6.18.01
1397232633Smpgenerated by GNU Autoconf 2.68
1398131962Smp
1399232633SmpCopyright (C) 2010 Free Software Foundation, Inc.
1400131962SmpThis configure script is free software; the Free Software Foundation
1401131962Smpgives unlimited permission to copy, distribute and modify it.
1402131962Smp_ACEOF
1403195609Smp  exit
1404131962Smpfi
1405232633Smp
1406232633Smp## ------------------------ ##
1407232633Smp## Autoconf initialization. ##
1408232633Smp## ------------------------ ##
1409232633Smp
1410232633Smp# ac_fn_c_try_compile LINENO
1411232633Smp# --------------------------
1412232633Smp# Try to compile conftest.$ac_ext, and return whether this succeeded.
1413232633Smpac_fn_c_try_compile ()
1414232633Smp{
1415232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1416232633Smp  rm -f conftest.$ac_objext
1417232633Smp  if { { ac_try="$ac_compile"
1418232633Smpcase "(($ac_try" in
1419232633Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1420232633Smp  *) ac_try_echo=$ac_try;;
1421232633Smpesac
1422232633Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1423232633Smp$as_echo "$ac_try_echo"; } >&5
1424232633Smp  (eval "$ac_compile") 2>conftest.err
1425232633Smp  ac_status=$?
1426232633Smp  if test -s conftest.err; then
1427232633Smp    grep -v '^ *+' conftest.err >conftest.er1
1428232633Smp    cat conftest.er1 >&5
1429232633Smp    mv -f conftest.er1 conftest.err
1430232633Smp  fi
1431232633Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1432232633Smp  test $ac_status = 0; } && {
1433232633Smp	 test -z "$ac_c_werror_flag" ||
1434232633Smp	 test ! -s conftest.err
1435232633Smp       } && test -s conftest.$ac_objext; then :
1436232633Smp  ac_retval=0
1437232633Smpelse
1438232633Smp  $as_echo "$as_me: failed program was:" >&5
1439232633Smpsed 's/^/| /' conftest.$ac_ext >&5
1440232633Smp
1441232633Smp	ac_retval=1
1442232633Smpfi
1443232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1444232633Smp  as_fn_set_status $ac_retval
1445232633Smp
1446232633Smp} # ac_fn_c_try_compile
1447232633Smp
1448232633Smp# ac_fn_c_try_cpp LINENO
1449232633Smp# ----------------------
1450232633Smp# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1451232633Smpac_fn_c_try_cpp ()
1452232633Smp{
1453232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1454232633Smp  if { { ac_try="$ac_cpp conftest.$ac_ext"
1455232633Smpcase "(($ac_try" in
1456232633Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1457232633Smp  *) ac_try_echo=$ac_try;;
1458232633Smpesac
1459232633Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1460232633Smp$as_echo "$ac_try_echo"; } >&5
1461232633Smp  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1462232633Smp  ac_status=$?
1463232633Smp  if test -s conftest.err; then
1464232633Smp    grep -v '^ *+' conftest.err >conftest.er1
1465232633Smp    cat conftest.er1 >&5
1466232633Smp    mv -f conftest.er1 conftest.err
1467232633Smp  fi
1468232633Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1469232633Smp  test $ac_status = 0; } > conftest.i && {
1470232633Smp	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1471232633Smp	 test ! -s conftest.err
1472232633Smp       }; then :
1473232633Smp  ac_retval=0
1474232633Smpelse
1475232633Smp  $as_echo "$as_me: failed program was:" >&5
1476232633Smpsed 's/^/| /' conftest.$ac_ext >&5
1477232633Smp
1478232633Smp    ac_retval=1
1479232633Smpfi
1480232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1481232633Smp  as_fn_set_status $ac_retval
1482232633Smp
1483232633Smp} # ac_fn_c_try_cpp
1484232633Smp
1485232633Smp# ac_fn_c_try_link LINENO
1486232633Smp# -----------------------
1487232633Smp# Try to link conftest.$ac_ext, and return whether this succeeded.
1488232633Smpac_fn_c_try_link ()
1489232633Smp{
1490232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491232633Smp  rm -f conftest.$ac_objext conftest$ac_exeext
1492232633Smp  if { { ac_try="$ac_link"
1493232633Smpcase "(($ac_try" in
1494232633Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495232633Smp  *) ac_try_echo=$ac_try;;
1496232633Smpesac
1497232633Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498232633Smp$as_echo "$ac_try_echo"; } >&5
1499232633Smp  (eval "$ac_link") 2>conftest.err
1500232633Smp  ac_status=$?
1501232633Smp  if test -s conftest.err; then
1502232633Smp    grep -v '^ *+' conftest.err >conftest.er1
1503232633Smp    cat conftest.er1 >&5
1504232633Smp    mv -f conftest.er1 conftest.err
1505232633Smp  fi
1506232633Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507232633Smp  test $ac_status = 0; } && {
1508232633Smp	 test -z "$ac_c_werror_flag" ||
1509232633Smp	 test ! -s conftest.err
1510232633Smp       } && test -s conftest$ac_exeext && {
1511232633Smp	 test "$cross_compiling" = yes ||
1512232633Smp	 $as_test_x conftest$ac_exeext
1513232633Smp       }; then :
1514232633Smp  ac_retval=0
1515232633Smpelse
1516232633Smp  $as_echo "$as_me: failed program was:" >&5
1517232633Smpsed 's/^/| /' conftest.$ac_ext >&5
1518232633Smp
1519232633Smp	ac_retval=1
1520232633Smpfi
1521232633Smp  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1522232633Smp  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1523232633Smp  # interfere with the next link command; also delete a directory that is
1524232633Smp  # left behind by Apple's compiler.  We do this before executing the actions.
1525232633Smp  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1526232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1527232633Smp  as_fn_set_status $ac_retval
1528232633Smp
1529232633Smp} # ac_fn_c_try_link
1530232633Smp
1531232633Smp# ac_fn_c_try_run LINENO
1532232633Smp# ----------------------
1533232633Smp# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1534232633Smp# that executables *can* be run.
1535232633Smpac_fn_c_try_run ()
1536232633Smp{
1537232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538232633Smp  if { { ac_try="$ac_link"
1539232633Smpcase "(($ac_try" in
1540232633Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541232633Smp  *) ac_try_echo=$ac_try;;
1542232633Smpesac
1543232633Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544232633Smp$as_echo "$ac_try_echo"; } >&5
1545232633Smp  (eval "$ac_link") 2>&5
1546232633Smp  ac_status=$?
1547232633Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548232633Smp  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1549232633Smp  { { case "(($ac_try" in
1550232633Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551232633Smp  *) ac_try_echo=$ac_try;;
1552232633Smpesac
1553232633Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554232633Smp$as_echo "$ac_try_echo"; } >&5
1555232633Smp  (eval "$ac_try") 2>&5
1556232633Smp  ac_status=$?
1557232633Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558232633Smp  test $ac_status = 0; }; }; then :
1559232633Smp  ac_retval=0
1560232633Smpelse
1561232633Smp  $as_echo "$as_me: program exited with status $ac_status" >&5
1562232633Smp       $as_echo "$as_me: failed program was:" >&5
1563232633Smpsed 's/^/| /' conftest.$ac_ext >&5
1564232633Smp
1565232633Smp       ac_retval=$ac_status
1566232633Smpfi
1567232633Smp  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1568232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569232633Smp  as_fn_set_status $ac_retval
1570232633Smp
1571232633Smp} # ac_fn_c_try_run
1572232633Smp
1573232633Smp# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1574232633Smp# -------------------------------------------------------
1575232633Smp# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1576232633Smp# the include files in INCLUDES and setting the cache variable VAR
1577232633Smp# accordingly.
1578232633Smpac_fn_c_check_header_mongrel ()
1579232633Smp{
1580232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581232633Smp  if eval \${$3+:} false; then :
1582232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583232633Smp$as_echo_n "checking for $2... " >&6; }
1584232633Smpif eval \${$3+:} false; then :
1585232633Smp  $as_echo_n "(cached) " >&6
1586232633Smpfi
1587232633Smpeval ac_res=\$$3
1588232633Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589232633Smp$as_echo "$ac_res" >&6; }
1590232633Smpelse
1591232633Smp  # Is the header compilable?
1592232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1593232633Smp$as_echo_n "checking $2 usability... " >&6; }
1594232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595232633Smp/* end confdefs.h.  */
1596232633Smp$4
1597232633Smp#include <$2>
1598232633Smp_ACEOF
1599232633Smpif ac_fn_c_try_compile "$LINENO"; then :
1600232633Smp  ac_header_compiler=yes
1601232633Smpelse
1602232633Smp  ac_header_compiler=no
1603232633Smpfi
1604232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1606232633Smp$as_echo "$ac_header_compiler" >&6; }
1607232633Smp
1608232633Smp# Is the header present?
1609232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1610232633Smp$as_echo_n "checking $2 presence... " >&6; }
1611232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612232633Smp/* end confdefs.h.  */
1613232633Smp#include <$2>
1614232633Smp_ACEOF
1615232633Smpif ac_fn_c_try_cpp "$LINENO"; then :
1616232633Smp  ac_header_preproc=yes
1617232633Smpelse
1618232633Smp  ac_header_preproc=no
1619232633Smpfi
1620232633Smprm -f conftest.err conftest.i conftest.$ac_ext
1621232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1622232633Smp$as_echo "$ac_header_preproc" >&6; }
1623232633Smp
1624232633Smp# So?  What about this header?
1625232633Smpcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1626232633Smp  yes:no: )
1627232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1628232633Smp$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1629232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1630232633Smp$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631232633Smp    ;;
1632232633Smp  no:yes:* )
1633232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1634232633Smp$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1635232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1636232633Smp$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1637232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1638232633Smp$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1639232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1640232633Smp$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1641232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642232633Smp$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643232633Smp( $as_echo "## ---------------------------------- ##
1644232633Smp## Report this to http://bugs.gw.com/ ##
1645232633Smp## ---------------------------------- ##"
1646232633Smp     ) | sed "s/^/$as_me: WARNING:     /" >&2
1647232633Smp    ;;
1648232633Smpesac
1649232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650232633Smp$as_echo_n "checking for $2... " >&6; }
1651232633Smpif eval \${$3+:} false; then :
1652232633Smp  $as_echo_n "(cached) " >&6
1653232633Smpelse
1654232633Smp  eval "$3=\$ac_header_compiler"
1655232633Smpfi
1656232633Smpeval ac_res=\$$3
1657232633Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658232633Smp$as_echo "$ac_res" >&6; }
1659232633Smpfi
1660232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661232633Smp
1662232633Smp} # ac_fn_c_check_header_mongrel
1663232633Smp
1664232633Smp# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665232633Smp# -------------------------------------------------------
1666232633Smp# Tests whether HEADER exists and can be compiled using the include files in
1667232633Smp# INCLUDES, setting the cache variable VAR accordingly.
1668232633Smpac_fn_c_check_header_compile ()
1669232633Smp{
1670232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672232633Smp$as_echo_n "checking for $2... " >&6; }
1673232633Smpif eval \${$3+:} false; then :
1674232633Smp  $as_echo_n "(cached) " >&6
1675232633Smpelse
1676232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677232633Smp/* end confdefs.h.  */
1678232633Smp$4
1679232633Smp#include <$2>
1680232633Smp_ACEOF
1681232633Smpif ac_fn_c_try_compile "$LINENO"; then :
1682232633Smp  eval "$3=yes"
1683232633Smpelse
1684232633Smp  eval "$3=no"
1685232633Smpfi
1686232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687232633Smpfi
1688232633Smpeval ac_res=\$$3
1689232633Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690232633Smp$as_echo "$ac_res" >&6; }
1691232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692232633Smp
1693232633Smp} # ac_fn_c_check_header_compile
1694232633Smp
1695232633Smp# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1696232633Smp# --------------------------------------------
1697232633Smp# Tries to find the compile-time value of EXPR in a program that includes
1698232633Smp# INCLUDES, setting VAR accordingly. Returns whether the value could be
1699232633Smp# computed
1700232633Smpac_fn_c_compute_int ()
1701232633Smp{
1702232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703232633Smp  if test "$cross_compiling" = yes; then
1704232633Smp    # Depending upon the size, compute the lo and hi bounds.
1705232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706232633Smp/* end confdefs.h.  */
1707232633Smp$4
1708232633Smpint
1709232633Smpmain ()
1710232633Smp{
1711232633Smpstatic int test_array [1 - 2 * !(($2) >= 0)];
1712232633Smptest_array [0] = 0
1713232633Smp
1714232633Smp  ;
1715232633Smp  return 0;
1716232633Smp}
1717232633Smp_ACEOF
1718232633Smpif ac_fn_c_try_compile "$LINENO"; then :
1719232633Smp  ac_lo=0 ac_mid=0
1720232633Smp  while :; do
1721232633Smp    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722232633Smp/* end confdefs.h.  */
1723232633Smp$4
1724232633Smpint
1725232633Smpmain ()
1726232633Smp{
1727232633Smpstatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
1728232633Smptest_array [0] = 0
1729232633Smp
1730232633Smp  ;
1731232633Smp  return 0;
1732232633Smp}
1733232633Smp_ACEOF
1734232633Smpif ac_fn_c_try_compile "$LINENO"; then :
1735232633Smp  ac_hi=$ac_mid; break
1736232633Smpelse
1737232633Smp  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1738232633Smp			if test $ac_lo -le $ac_mid; then
1739232633Smp			  ac_lo= ac_hi=
1740232633Smp			  break
1741232633Smp			fi
1742232633Smp			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1743232633Smpfi
1744232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745232633Smp  done
1746232633Smpelse
1747232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748232633Smp/* end confdefs.h.  */
1749232633Smp$4
1750232633Smpint
1751232633Smpmain ()
1752232633Smp{
1753232633Smpstatic int test_array [1 - 2 * !(($2) < 0)];
1754232633Smptest_array [0] = 0
1755232633Smp
1756232633Smp  ;
1757232633Smp  return 0;
1758232633Smp}
1759232633Smp_ACEOF
1760232633Smpif ac_fn_c_try_compile "$LINENO"; then :
1761232633Smp  ac_hi=-1 ac_mid=-1
1762232633Smp  while :; do
1763232633Smp    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764232633Smp/* end confdefs.h.  */
1765232633Smp$4
1766232633Smpint
1767232633Smpmain ()
1768232633Smp{
1769232633Smpstatic int test_array [1 - 2 * !(($2) >= $ac_mid)];
1770232633Smptest_array [0] = 0
1771232633Smp
1772232633Smp  ;
1773232633Smp  return 0;
1774232633Smp}
1775232633Smp_ACEOF
1776232633Smpif ac_fn_c_try_compile "$LINENO"; then :
1777232633Smp  ac_lo=$ac_mid; break
1778232633Smpelse
1779232633Smp  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1780232633Smp			if test $ac_mid -le $ac_hi; then
1781232633Smp			  ac_lo= ac_hi=
1782232633Smp			  break
1783232633Smp			fi
1784232633Smp			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1785232633Smpfi
1786232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787232633Smp  done
1788232633Smpelse
1789232633Smp  ac_lo= ac_hi=
1790232633Smpfi
1791232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792232633Smpfi
1793232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794232633Smp# Binary search between lo and hi bounds.
1795232633Smpwhile test "x$ac_lo" != "x$ac_hi"; do
1796232633Smp  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1797232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798232633Smp/* end confdefs.h.  */
1799232633Smp$4
1800232633Smpint
1801232633Smpmain ()
1802232633Smp{
1803232633Smpstatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
1804232633Smptest_array [0] = 0
1805232633Smp
1806232633Smp  ;
1807232633Smp  return 0;
1808232633Smp}
1809232633Smp_ACEOF
1810232633Smpif ac_fn_c_try_compile "$LINENO"; then :
1811232633Smp  ac_hi=$ac_mid
1812232633Smpelse
1813232633Smp  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1814232633Smpfi
1815232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816232633Smpdone
1817232633Smpcase $ac_lo in #((
1818232633Smp?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1819232633Smp'') ac_retval=1 ;;
1820232633Smpesac
1821232633Smp  else
1822232633Smp    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823232633Smp/* end confdefs.h.  */
1824232633Smp$4
1825232633Smpstatic long int longval () { return $2; }
1826232633Smpstatic unsigned long int ulongval () { return $2; }
1827232633Smp#include <stdio.h>
1828232633Smp#include <stdlib.h>
1829232633Smpint
1830232633Smpmain ()
1831232633Smp{
1832232633Smp
1833232633Smp  FILE *f = fopen ("conftest.val", "w");
1834232633Smp  if (! f)
1835232633Smp    return 1;
1836232633Smp  if (($2) < 0)
1837232633Smp    {
1838232633Smp      long int i = longval ();
1839232633Smp      if (i != ($2))
1840232633Smp	return 1;
1841232633Smp      fprintf (f, "%ld", i);
1842232633Smp    }
1843232633Smp  else
1844232633Smp    {
1845232633Smp      unsigned long int i = ulongval ();
1846232633Smp      if (i != ($2))
1847232633Smp	return 1;
1848232633Smp      fprintf (f, "%lu", i);
1849232633Smp    }
1850232633Smp  /* Do not output a trailing newline, as this causes \r\n confusion
1851232633Smp     on some platforms.  */
1852232633Smp  return ferror (f) || fclose (f) != 0;
1853232633Smp
1854232633Smp  ;
1855232633Smp  return 0;
1856232633Smp}
1857232633Smp_ACEOF
1858232633Smpif ac_fn_c_try_run "$LINENO"; then :
1859232633Smp  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1860232633Smpelse
1861232633Smp  ac_retval=1
1862232633Smpfi
1863232633Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1864232633Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
1865232633Smprm -f conftest.val
1866232633Smp
1867232633Smp  fi
1868232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869232633Smp  as_fn_set_status $ac_retval
1870232633Smp
1871232633Smp} # ac_fn_c_compute_int
1872232633Smp
1873232633Smp# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1874232633Smp# -------------------------------------------
1875232633Smp# Tests whether TYPE exists after having included INCLUDES, setting cache
1876232633Smp# variable VAR accordingly.
1877232633Smpac_fn_c_check_type ()
1878232633Smp{
1879232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881232633Smp$as_echo_n "checking for $2... " >&6; }
1882232633Smpif eval \${$3+:} false; then :
1883232633Smp  $as_echo_n "(cached) " >&6
1884232633Smpelse
1885232633Smp  eval "$3=no"
1886232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887232633Smp/* end confdefs.h.  */
1888232633Smp$4
1889232633Smpint
1890232633Smpmain ()
1891232633Smp{
1892232633Smpif (sizeof ($2))
1893232633Smp	 return 0;
1894232633Smp  ;
1895232633Smp  return 0;
1896232633Smp}
1897232633Smp_ACEOF
1898232633Smpif ac_fn_c_try_compile "$LINENO"; then :
1899232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900232633Smp/* end confdefs.h.  */
1901232633Smp$4
1902232633Smpint
1903232633Smpmain ()
1904232633Smp{
1905232633Smpif (sizeof (($2)))
1906232633Smp	    return 0;
1907232633Smp  ;
1908232633Smp  return 0;
1909232633Smp}
1910232633Smp_ACEOF
1911232633Smpif ac_fn_c_try_compile "$LINENO"; then :
1912232633Smp
1913232633Smpelse
1914232633Smp  eval "$3=yes"
1915232633Smpfi
1916232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917232633Smpfi
1918232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919232633Smpfi
1920232633Smpeval ac_res=\$$3
1921232633Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922232633Smp$as_echo "$ac_res" >&6; }
1923232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924232633Smp
1925232633Smp} # ac_fn_c_check_type
1926232633Smp
1927232633Smp# ac_fn_c_find_uintX_t LINENO BITS VAR
1928232633Smp# ------------------------------------
1929232633Smp# Finds an unsigned integer type with width BITS, setting cache variable VAR
1930232633Smp# accordingly.
1931232633Smpac_fn_c_find_uintX_t ()
1932232633Smp{
1933232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1935232633Smp$as_echo_n "checking for uint$2_t... " >&6; }
1936232633Smpif eval \${$3+:} false; then :
1937232633Smp  $as_echo_n "(cached) " >&6
1938232633Smpelse
1939232633Smp  eval "$3=no"
1940232633Smp     # Order is important - never check a type that is potentially smaller
1941232633Smp     # than half of the expected target width.
1942232633Smp     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1943232633Smp	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1944232633Smp       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945232633Smp/* end confdefs.h.  */
1946232633Smp$ac_includes_default
1947232633Smpint
1948232633Smpmain ()
1949232633Smp{
1950232633Smpstatic int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1951232633Smptest_array [0] = 0
1952232633Smp
1953232633Smp  ;
1954232633Smp  return 0;
1955232633Smp}
1956232633Smp_ACEOF
1957232633Smpif ac_fn_c_try_compile "$LINENO"; then :
1958232633Smp  case $ac_type in #(
1959232633Smp  uint$2_t) :
1960232633Smp    eval "$3=yes" ;; #(
1961232633Smp  *) :
1962232633Smp    eval "$3=\$ac_type" ;;
1963232633Smpesac
1964232633Smpfi
1965232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966232633Smp       if eval test \"x\$"$3"\" = x"no"; then :
1967232633Smp
1968232633Smpelse
1969232633Smp  break
1970232633Smpfi
1971232633Smp     done
1972232633Smpfi
1973232633Smpeval ac_res=\$$3
1974232633Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975232633Smp$as_echo "$ac_res" >&6; }
1976232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977232633Smp
1978232633Smp} # ac_fn_c_find_uintX_t
1979232633Smp
1980232633Smp# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1981232633Smp# ----------------------------------------------------
1982232633Smp# Tries to find if the field MEMBER exists in type AGGR, after including
1983232633Smp# INCLUDES, setting cache variable VAR accordingly.
1984232633Smpac_fn_c_check_member ()
1985232633Smp{
1986232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1988232633Smp$as_echo_n "checking for $2.$3... " >&6; }
1989232633Smpif eval \${$4+:} false; then :
1990232633Smp  $as_echo_n "(cached) " >&6
1991232633Smpelse
1992232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993232633Smp/* end confdefs.h.  */
1994232633Smp$5
1995232633Smpint
1996232633Smpmain ()
1997232633Smp{
1998232633Smpstatic $2 ac_aggr;
1999232633Smpif (ac_aggr.$3)
2000232633Smpreturn 0;
2001232633Smp  ;
2002232633Smp  return 0;
2003232633Smp}
2004232633Smp_ACEOF
2005232633Smpif ac_fn_c_try_compile "$LINENO"; then :
2006232633Smp  eval "$4=yes"
2007232633Smpelse
2008232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009232633Smp/* end confdefs.h.  */
2010232633Smp$5
2011232633Smpint
2012232633Smpmain ()
2013232633Smp{
2014232633Smpstatic $2 ac_aggr;
2015232633Smpif (sizeof ac_aggr.$3)
2016232633Smpreturn 0;
2017232633Smp  ;
2018232633Smp  return 0;
2019232633Smp}
2020232633Smp_ACEOF
2021232633Smpif ac_fn_c_try_compile "$LINENO"; then :
2022232633Smp  eval "$4=yes"
2023232633Smpelse
2024232633Smp  eval "$4=no"
2025232633Smpfi
2026232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027232633Smpfi
2028232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029232633Smpfi
2030232633Smpeval ac_res=\$$4
2031232633Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032232633Smp$as_echo "$ac_res" >&6; }
2033232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034232633Smp
2035232633Smp} # ac_fn_c_check_member
2036232633Smp
2037232633Smp# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2038232633Smp# ---------------------------------------------
2039232633Smp# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2040232633Smp# accordingly.
2041232633Smpac_fn_c_check_decl ()
2042232633Smp{
2043232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044232633Smp  as_decl_name=`echo $2|sed 's/ *(.*//'`
2045232633Smp  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2046232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2047232633Smp$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2048232633Smpif eval \${$3+:} false; then :
2049232633Smp  $as_echo_n "(cached) " >&6
2050232633Smpelse
2051232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052232633Smp/* end confdefs.h.  */
2053232633Smp$4
2054232633Smpint
2055232633Smpmain ()
2056232633Smp{
2057232633Smp#ifndef $as_decl_name
2058232633Smp#ifdef __cplusplus
2059232633Smp  (void) $as_decl_use;
2060232633Smp#else
2061232633Smp  (void) $as_decl_name;
2062232633Smp#endif
2063232633Smp#endif
2064232633Smp
2065232633Smp  ;
2066232633Smp  return 0;
2067232633Smp}
2068232633Smp_ACEOF
2069232633Smpif ac_fn_c_try_compile "$LINENO"; then :
2070232633Smp  eval "$3=yes"
2071232633Smpelse
2072232633Smp  eval "$3=no"
2073232633Smpfi
2074232633Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075232633Smpfi
2076232633Smpeval ac_res=\$$3
2077232633Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078232633Smp$as_echo "$ac_res" >&6; }
2079232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080232633Smp
2081232633Smp} # ac_fn_c_check_decl
2082232633Smp
2083232633Smp# ac_fn_c_check_func LINENO FUNC VAR
2084232633Smp# ----------------------------------
2085232633Smp# Tests whether FUNC exists, setting the cache variable VAR accordingly
2086232633Smpac_fn_c_check_func ()
2087232633Smp{
2088232633Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090232633Smp$as_echo_n "checking for $2... " >&6; }
2091232633Smpif eval \${$3+:} false; then :
2092232633Smp  $as_echo_n "(cached) " >&6
2093232633Smpelse
2094232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095232633Smp/* end confdefs.h.  */
2096232633Smp/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2097232633Smp   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2098232633Smp#define $2 innocuous_$2
2099232633Smp
2100232633Smp/* System header to define __stub macros and hopefully few prototypes,
2101232633Smp    which can conflict with char $2 (); below.
2102232633Smp    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2103232633Smp    <limits.h> exists even on freestanding compilers.  */
2104232633Smp
2105232633Smp#ifdef __STDC__
2106232633Smp# include <limits.h>
2107232633Smp#else
2108232633Smp# include <assert.h>
2109232633Smp#endif
2110232633Smp
2111232633Smp#undef $2
2112232633Smp
2113232633Smp/* Override any GCC internal prototype to avoid an error.
2114232633Smp   Use char because int might match the return type of a GCC
2115232633Smp   builtin and then its argument prototype would still apply.  */
2116232633Smp#ifdef __cplusplus
2117232633Smpextern "C"
2118232633Smp#endif
2119232633Smpchar $2 ();
2120232633Smp/* The GNU C library defines this for functions which it implements
2121232633Smp    to always fail with ENOSYS.  Some functions are actually named
2122232633Smp    something starting with __ and the normal name is an alias.  */
2123232633Smp#if defined __stub_$2 || defined __stub___$2
2124232633Smpchoke me
2125232633Smp#endif
2126232633Smp
2127232633Smpint
2128232633Smpmain ()
2129232633Smp{
2130232633Smpreturn $2 ();
2131232633Smp  ;
2132232633Smp  return 0;
2133232633Smp}
2134232633Smp_ACEOF
2135232633Smpif ac_fn_c_try_link "$LINENO"; then :
2136232633Smp  eval "$3=yes"
2137232633Smpelse
2138232633Smp  eval "$3=no"
2139232633Smpfi
2140232633Smprm -f core conftest.err conftest.$ac_objext \
2141232633Smp    conftest$ac_exeext conftest.$ac_ext
2142232633Smpfi
2143232633Smpeval ac_res=\$$3
2144232633Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145232633Smp$as_echo "$ac_res" >&6; }
2146232633Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147232633Smp
2148232633Smp} # ac_fn_c_check_func
2149195609Smpcat >config.log <<_ACEOF
2150131962SmpThis file contains any messages produced by compilers while
2151131962Smprunning configure, to aid debugging if configure makes a mistake.
2152131962Smp
2153232633SmpIt was created by tcsh $as_me 6.18.01, which was
2154232633Smpgenerated by GNU Autoconf 2.68.  Invocation command line was
2155131962Smp
2156131962Smp  $ $0 $@
2157131962Smp
2158131962Smp_ACEOF
2159195609Smpexec 5>>config.log
2160131962Smp{
2161131962Smpcat <<_ASUNAME
2162131962Smp## --------- ##
2163131962Smp## Platform. ##
2164131962Smp## --------- ##
2165131962Smp
2166131962Smphostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2167131962Smpuname -m = `(uname -m) 2>/dev/null || echo unknown`
2168131962Smpuname -r = `(uname -r) 2>/dev/null || echo unknown`
2169131962Smpuname -s = `(uname -s) 2>/dev/null || echo unknown`
2170131962Smpuname -v = `(uname -v) 2>/dev/null || echo unknown`
2171131962Smp
2172131962Smp/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2173131962Smp/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2174131962Smp
2175131962Smp/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2176131962Smp/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2177131962Smp/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2178195609Smp/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2179131962Smp/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2180131962Smp/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2181131962Smp/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2182131962Smp
2183131962Smp_ASUNAME
2184131962Smp
2185131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186131962Smpfor as_dir in $PATH
2187131962Smpdo
2188131962Smp  IFS=$as_save_IFS
2189131962Smp  test -z "$as_dir" && as_dir=.
2190232633Smp    $as_echo "PATH: $as_dir"
2191232633Smp  done
2192195609SmpIFS=$as_save_IFS
2193131962Smp
2194131962Smp} >&5
2195131962Smp
2196131962Smpcat >&5 <<_ACEOF
2197131962Smp
2198131962Smp
2199131962Smp## ----------- ##
2200131962Smp## Core tests. ##
2201131962Smp## ----------- ##
2202131962Smp
2203131962Smp_ACEOF
2204131962Smp
2205131962Smp
2206131962Smp# Keep a trace of the command line.
2207131962Smp# Strip out --no-create and --no-recursion so they do not pile up.
2208131962Smp# Strip out --silent because we don't want to record it for future runs.
2209131962Smp# Also quote any args containing shell meta-characters.
2210131962Smp# Make two passes to allow for proper duplicate-argument suppression.
2211131962Smpac_configure_args=
2212131962Smpac_configure_args0=
2213131962Smpac_configure_args1=
2214131962Smpac_must_keep_next=false
2215131962Smpfor ac_pass in 1 2
2216131962Smpdo
2217131962Smp  for ac_arg
2218131962Smp  do
2219131962Smp    case $ac_arg in
2220131962Smp    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2221131962Smp    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2222131962Smp    | -silent | --silent | --silen | --sile | --sil)
2223131962Smp      continue ;;
2224195609Smp    *\'*)
2225232633Smp      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2226131962Smp    esac
2227131962Smp    case $ac_pass in
2228232633Smp    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2229131962Smp    2)
2230232633Smp      as_fn_append ac_configure_args1 " '$ac_arg'"
2231131962Smp      if test $ac_must_keep_next = true; then
2232145479Smp	ac_must_keep_next=false # Got value, back to normal.
2233131962Smp      else
2234145479Smp	case $ac_arg in
2235145479Smp	  *=* | --config-cache | -C | -disable-* | --disable-* \
2236145479Smp	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2237145479Smp	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2238145479Smp	  | -with-* | --with-* | -without-* | --without-* | --x)
2239145479Smp	    case "$ac_configure_args0 " in
2240145479Smp	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2241145479Smp	    esac
2242145479Smp	    ;;
2243145479Smp	  -* ) ac_must_keep_next=true ;;
2244145479Smp	esac
2245131962Smp      fi
2246232633Smp      as_fn_append ac_configure_args " '$ac_arg'"
2247131962Smp      ;;
2248131962Smp    esac
2249131962Smp  done
2250131962Smpdone
2251232633Smp{ ac_configure_args0=; unset ac_configure_args0;}
2252232633Smp{ ac_configure_args1=; unset ac_configure_args1;}
2253131962Smp
2254131962Smp# When interrupted or exit'd, cleanup temporary files, and complete
2255131962Smp# config.log.  We remove comments because anyway the quotes in there
2256131962Smp# would cause problems or look ugly.
2257195609Smp# WARNING: Use '\'' to represent an apostrophe within the trap.
2258195609Smp# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2259131962Smptrap 'exit_status=$?
2260131962Smp  # Save into config.log some information that might help in debugging.
2261131962Smp  {
2262131962Smp    echo
2263131962Smp
2264232633Smp    $as_echo "## ---------------- ##
2265131962Smp## Cache variables. ##
2266232633Smp## ---------------- ##"
2267131962Smp    echo
2268131962Smp    # The following way of writing the cache mishandles newlines in values,
2269195609Smp(
2270195609Smp  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2271195609Smp    eval ac_val=\$$ac_var
2272195609Smp    case $ac_val in #(
2273195609Smp    *${as_nl}*)
2274195609Smp      case $ac_var in #(
2275232633Smp      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2276232633Smp$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2277195609Smp      esac
2278195609Smp      case $ac_var in #(
2279195609Smp      _ | IFS | as_nl) ;; #(
2280232633Smp      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2281232633Smp      *) { eval $ac_var=; unset $ac_var;} ;;
2282195609Smp      esac ;;
2283195609Smp    esac
2284195609Smp  done
2285131962Smp  (set) 2>&1 |
2286195609Smp    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2287195609Smp    *${as_nl}ac_space=\ *)
2288131962Smp      sed -n \
2289195609Smp	"s/'\''/'\''\\\\'\'''\''/g;
2290195609Smp	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2291195609Smp      ;; #(
2292131962Smp    *)
2293195609Smp      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2294131962Smp      ;;
2295195609Smp    esac |
2296195609Smp    sort
2297195609Smp)
2298131962Smp    echo
2299131962Smp
2300232633Smp    $as_echo "## ----------------- ##
2301131962Smp## Output variables. ##
2302232633Smp## ----------------- ##"
2303131962Smp    echo
2304131962Smp    for ac_var in $ac_subst_vars
2305131962Smp    do
2306195609Smp      eval ac_val=\$$ac_var
2307195609Smp      case $ac_val in
2308232633Smp      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309195609Smp      esac
2310232633Smp      $as_echo "$ac_var='\''$ac_val'\''"
2311131962Smp    done | sort
2312131962Smp    echo
2313131962Smp
2314131962Smp    if test -n "$ac_subst_files"; then
2315232633Smp      $as_echo "## ------------------- ##
2316195609Smp## File substitutions. ##
2317232633Smp## ------------------- ##"
2318131962Smp      echo
2319131962Smp      for ac_var in $ac_subst_files
2320131962Smp      do
2321195609Smp	eval ac_val=\$$ac_var
2322195609Smp	case $ac_val in
2323232633Smp	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324195609Smp	esac
2325232633Smp	$as_echo "$ac_var='\''$ac_val'\''"
2326131962Smp      done | sort
2327131962Smp      echo
2328131962Smp    fi
2329131962Smp
2330131962Smp    if test -s confdefs.h; then
2331232633Smp      $as_echo "## ----------- ##
2332131962Smp## confdefs.h. ##
2333232633Smp## ----------- ##"
2334131962Smp      echo
2335195609Smp      cat confdefs.h
2336131962Smp      echo
2337131962Smp    fi
2338131962Smp    test "$ac_signal" != 0 &&
2339232633Smp      $as_echo "$as_me: caught signal $ac_signal"
2340232633Smp    $as_echo "$as_me: exit $exit_status"
2341131962Smp  } >&5
2342195609Smp  rm -f core *.core core.conftest.* &&
2343195609Smp    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2344131962Smp    exit $exit_status
2345195609Smp' 0
2346131962Smpfor ac_signal in 1 2 13 15; do
2347232633Smp  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2348131962Smpdone
2349131962Smpac_signal=0
2350131962Smp
2351131962Smp# confdefs.h avoids OS command line length limits that DEFS can exceed.
2352195609Smprm -f -r conftest* confdefs.h
2353131962Smp
2354232633Smp$as_echo "/* confdefs.h */" > confdefs.h
2355232633Smp
2356131962Smp# Predefined preprocessor variables.
2357131962Smp
2358131962Smpcat >>confdefs.h <<_ACEOF
2359131962Smp#define PACKAGE_NAME "$PACKAGE_NAME"
2360131962Smp_ACEOF
2361131962Smp
2362131962Smpcat >>confdefs.h <<_ACEOF
2363131962Smp#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2364131962Smp_ACEOF
2365131962Smp
2366131962Smpcat >>confdefs.h <<_ACEOF
2367131962Smp#define PACKAGE_VERSION "$PACKAGE_VERSION"
2368131962Smp_ACEOF
2369131962Smp
2370131962Smpcat >>confdefs.h <<_ACEOF
2371131962Smp#define PACKAGE_STRING "$PACKAGE_STRING"
2372131962Smp_ACEOF
2373131962Smp
2374131962Smpcat >>confdefs.h <<_ACEOF
2375131962Smp#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2376131962Smp_ACEOF
2377131962Smp
2378232633Smpcat >>confdefs.h <<_ACEOF
2379232633Smp#define PACKAGE_URL "$PACKAGE_URL"
2380232633Smp_ACEOF
2381131962Smp
2382232633Smp
2383131962Smp# Let the site file select an alternate cache file if it wants to.
2384232633Smp# Prefer an explicitly selected file to automatically selected ones.
2385232633Smpac_site_file1=NONE
2386232633Smpac_site_file2=NONE
2387195609Smpif test -n "$CONFIG_SITE"; then
2388232633Smp  # We do not want a PATH search for config.site.
2389232633Smp  case $CONFIG_SITE in #((
2390232633Smp    -*)  ac_site_file1=./$CONFIG_SITE;;
2391232633Smp    */*) ac_site_file1=$CONFIG_SITE;;
2392232633Smp    *)   ac_site_file1=./$CONFIG_SITE;;
2393232633Smp  esac
2394195609Smpelif test "x$prefix" != xNONE; then
2395232633Smp  ac_site_file1=$prefix/share/config.site
2396232633Smp  ac_site_file2=$prefix/etc/config.site
2397195609Smpelse
2398232633Smp  ac_site_file1=$ac_default_prefix/share/config.site
2399232633Smp  ac_site_file2=$ac_default_prefix/etc/config.site
240069408Sachefi
2401232633Smpfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2402195609Smpdo
2403232633Smp  test "x$ac_site_file" = xNONE && continue
2404232633Smp  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2405232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2406232633Smp$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2407131962Smp    sed 's/^/| /' "$ac_site_file" >&5
2408232633Smp    . "$ac_site_file" \
2409232633Smp      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410232633Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411232633Smpas_fn_error $? "failed to load site script $ac_site_file
2412232633SmpSee \`config.log' for more details" "$LINENO" 5; }
241369408Sache  fi
241469408Sachedone
241569408Sache
241669408Sacheif test -r "$cache_file"; then
2417232633Smp  # Some versions of bash will fail to source /dev/null (special files
2418232633Smp  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2419232633Smp  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2420232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2421232633Smp$as_echo "$as_me: loading cache $cache_file" >&6;}
2422131962Smp    case $cache_file in
2423195609Smp      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2424195609Smp      *)                      . "./$cache_file";;
2425131962Smp    esac
2426131962Smp  fi
242769408Sacheelse
2428232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2429232633Smp$as_echo "$as_me: creating cache $cache_file" >&6;}
2430131962Smp  >$cache_file
243169408Sachefi
243269408Sache
2433131962Smp# Check that the precious variables saved in the cache have kept the same
2434131962Smp# value.
2435131962Smpac_cache_corrupted=false
2436195609Smpfor ac_var in $ac_precious_vars; do
2437131962Smp  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2438131962Smp  eval ac_new_set=\$ac_env_${ac_var}_set
2439195609Smp  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2440195609Smp  eval ac_new_val=\$ac_env_${ac_var}_value
2441131962Smp  case $ac_old_set,$ac_new_set in
2442131962Smp    set,)
2443232633Smp      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2444232633Smp$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2445131962Smp      ac_cache_corrupted=: ;;
2446131962Smp    ,set)
2447232633Smp      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2448232633Smp$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2449131962Smp      ac_cache_corrupted=: ;;
2450131962Smp    ,);;
2451131962Smp    *)
2452131962Smp      if test "x$ac_old_val" != "x$ac_new_val"; then
2453232633Smp	# differences in whitespace do not lead to failure.
2454232633Smp	ac_old_val_w=`echo x $ac_old_val`
2455232633Smp	ac_new_val_w=`echo x $ac_new_val`
2456232633Smp	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2457232633Smp	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2458232633Smp$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2459232633Smp	  ac_cache_corrupted=:
2460232633Smp	else
2461232633Smp	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2462232633Smp$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2463232633Smp	  eval $ac_var=\$ac_old_val
2464232633Smp	fi
2465232633Smp	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2466232633Smp$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2467232633Smp	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2468232633Smp$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2469131962Smp      fi;;
2470131962Smp  esac
2471131962Smp  # Pass precious variables to config.status.
2472131962Smp  if test "$ac_new_set" = set; then
2473131962Smp    case $ac_new_val in
2474232633Smp    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2475131962Smp    *) ac_arg=$ac_var=$ac_new_val ;;
2476131962Smp    esac
2477131962Smp    case " $ac_configure_args " in
2478131962Smp      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2479232633Smp      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2480131962Smp    esac
2481131962Smp  fi
2482131962Smpdone
2483131962Smpif $ac_cache_corrupted; then
2484232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2485232633Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2486232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2487232633Smp$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2488232633Smp  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2489131962Smpfi
2490232633Smp## -------------------- ##
2491232633Smp## Main body of script. ##
2492232633Smp## -------------------- ##
2493131962Smp
2494195609Smpac_ext=c
2495195609Smpac_cpp='$CPP $CPPFLAGS'
2496195609Smpac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497195609Smpac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498195609Smpac_compiler_gnu=$ac_cv_c_compiler_gnu
2499167465Smp
2500167465Smp
2501167465Smp
2502232633Smp
2503195609Smpac_config_headers="$ac_config_headers config.h"
2504167465Smp
2505195609Smpac_config_commands="$ac_config_commands ./atconfig"
2506145479Smp
2507145479Smp
250869408Sacheac_aux_dir=
2509195609Smpfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2510195609Smp  if test -f "$ac_dir/install-sh"; then
251169408Sache    ac_aux_dir=$ac_dir
251269408Sache    ac_install_sh="$ac_aux_dir/install-sh -c"
251369408Sache    break
2514195609Smp  elif test -f "$ac_dir/install.sh"; then
251569408Sache    ac_aux_dir=$ac_dir
251669408Sache    ac_install_sh="$ac_aux_dir/install.sh -c"
251769408Sache    break
2518195609Smp  elif test -f "$ac_dir/shtool"; then
2519131962Smp    ac_aux_dir=$ac_dir
2520131962Smp    ac_install_sh="$ac_aux_dir/shtool install -c"
2521131962Smp    break
252269408Sache  fi
252369408Sachedone
252469408Sacheif test -z "$ac_aux_dir"; then
2525232633Smp  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
252669408Sachefi
252769408Sache
2528195609Smp# These three variables are undocumented and unsupported,
2529195609Smp# and are intended to be withdrawn in a future Autoconf release.
2530195609Smp# They can cause serious problems if a builder's source tree is in a directory
2531195609Smp# whose full name contains unusual characters.
2532195609Smpac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2533195609Smpac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2534195609Smpac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2535195609Smp
2536195609Smp
2537232633Smp# Find a good install program.  We prefer a C program (faster),
2538232633Smp# so one script is as good as another.  But avoid the broken or
2539232633Smp# incompatible versions:
2540232633Smp# SysV /etc/install, /usr/sbin/install
2541232633Smp# SunOS /usr/etc/install
2542232633Smp# IRIX /sbin/install
2543232633Smp# AIX /bin/install
2544232633Smp# AmigaOS /C/install, which installs bootblocks on floppy discs
2545232633Smp# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2546232633Smp# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2547232633Smp# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2548232633Smp# OS/2's system install, which has a completely different semantic
2549232633Smp# ./install, which can be erroneously created by make from ./install.sh.
2550232633Smp# Reject install programs that cannot install multiple files.
2551232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2552232633Smp$as_echo_n "checking for a BSD-compatible install... " >&6; }
2553232633Smpif test -z "$INSTALL"; then
2554232633Smpif ${ac_cv_path_install+:} false; then :
2555232633Smp  $as_echo_n "(cached) " >&6
2556232633Smpelse
2557232633Smp  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558232633Smpfor as_dir in $PATH
2559232633Smpdo
2560232633Smp  IFS=$as_save_IFS
2561232633Smp  test -z "$as_dir" && as_dir=.
2562232633Smp    # Account for people who put trailing slashes in PATH elements.
2563232633Smpcase $as_dir/ in #((
2564232633Smp  ./ | .// | /[cC]/* | \
2565232633Smp  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2566232633Smp  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2567232633Smp  /usr/ucb/* ) ;;
2568232633Smp  *)
2569232633Smp    # OSF1 and SCO ODT 3.0 have their own names for install.
2570232633Smp    # Don't use installbsd from OSF since it installs stuff as root
2571232633Smp    # by default.
2572232633Smp    for ac_prog in ginstall scoinst install; do
2573232633Smp      for ac_exec_ext in '' $ac_executable_extensions; do
2574232633Smp	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2575232633Smp	  if test $ac_prog = install &&
2576232633Smp	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2577232633Smp	    # AIX install.  It has an incompatible calling convention.
2578232633Smp	    :
2579232633Smp	  elif test $ac_prog = install &&
2580232633Smp	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2581232633Smp	    # program-specific install script used by HP pwplus--don't use.
2582232633Smp	    :
2583232633Smp	  else
2584232633Smp	    rm -rf conftest.one conftest.two conftest.dir
2585232633Smp	    echo one > conftest.one
2586232633Smp	    echo two > conftest.two
2587232633Smp	    mkdir conftest.dir
2588232633Smp	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2589232633Smp	      test -s conftest.one && test -s conftest.two &&
2590232633Smp	      test -s conftest.dir/conftest.one &&
2591232633Smp	      test -s conftest.dir/conftest.two
2592232633Smp	    then
2593232633Smp	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2594232633Smp	      break 3
2595232633Smp	    fi
2596232633Smp	  fi
2597232633Smp	fi
2598232633Smp      done
2599232633Smp    done
2600232633Smp    ;;
2601232633Smpesac
2602232633Smp
2603232633Smp  done
2604232633SmpIFS=$as_save_IFS
2605232633Smp
2606232633Smprm -rf conftest.one conftest.two conftest.dir
2607232633Smp
2608232633Smpfi
2609232633Smp  if test "${ac_cv_path_install+set}" = set; then
2610232633Smp    INSTALL=$ac_cv_path_install
2611232633Smp  else
2612232633Smp    # As a last resort, use the slow shell script.  Don't cache a
2613232633Smp    # value for INSTALL within a source directory, because that will
2614232633Smp    # break other packages using the cache if that directory is
2615232633Smp    # removed, or if the value is a relative name.
2616232633Smp    INSTALL=$ac_install_sh
2617232633Smp  fi
2618232633Smpfi
2619232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2620232633Smp$as_echo "$INSTALL" >&6; }
2621232633Smp
2622232633Smp# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2623232633Smp# It thinks the first close brace ends the variable substitution.
2624232633Smptest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2625232633Smp
2626232633Smptest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2627232633Smp
2628232633Smptest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2629232633Smp
2630131962Smp# Make sure we can run config.sub.
2631195609Smp$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2632232633Smp  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
263369408Sache
2634232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2635232633Smp$as_echo_n "checking build system type... " >&6; }
2636232633Smpif ${ac_cv_build+:} false; then :
2637232633Smp  $as_echo_n "(cached) " >&6
2638131962Smpelse
2639195609Smp  ac_build_alias=$build_alias
2640195609Smptest "x$ac_build_alias" = x &&
2641195609Smp  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2642195609Smptest "x$ac_build_alias" = x &&
2643232633Smp  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2644195609Smpac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2645232633Smp  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2646131962Smp
264769408Sachefi
2648232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2649232633Smp$as_echo "$ac_cv_build" >&6; }
2650195609Smpcase $ac_cv_build in
2651195609Smp*-*-*) ;;
2652232633Smp*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2653195609Smpesac
2654131962Smpbuild=$ac_cv_build
2655195609Smpac_save_IFS=$IFS; IFS='-'
2656195609Smpset x $ac_cv_build
2657195609Smpshift
2658195609Smpbuild_cpu=$1
2659195609Smpbuild_vendor=$2
2660195609Smpshift; shift
2661195609Smp# Remember, the first character of IFS is used to create $*,
2662195609Smp# except with old shells:
2663195609Smpbuild_os=$*
2664195609SmpIFS=$ac_save_IFS
2665195609Smpcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
266669408Sache
266769408Sache
2668232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2669232633Smp$as_echo_n "checking host system type... " >&6; }
2670232633Smpif ${ac_cv_host+:} false; then :
2671232633Smp  $as_echo_n "(cached) " >&6
2672131962Smpelse
2673195609Smp  if test "x$host_alias" = x; then
2674195609Smp  ac_cv_host=$ac_cv_build
2675195609Smpelse
2676195609Smp  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2677232633Smp    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2678195609Smpfi
267969408Sache
2680131962Smpfi
2681232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2682232633Smp$as_echo "$ac_cv_host" >&6; }
2683195609Smpcase $ac_cv_host in
2684195609Smp*-*-*) ;;
2685232633Smp*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2686195609Smpesac
2687131962Smphost=$ac_cv_host
2688195609Smpac_save_IFS=$IFS; IFS='-'
2689195609Smpset x $ac_cv_host
2690195609Smpshift
2691195609Smphost_cpu=$1
2692195609Smphost_vendor=$2
2693195609Smpshift; shift
2694195609Smp# Remember, the first character of IFS is used to create $*,
2695195609Smp# except with old shells:
2696195609Smphost_os=$*
2697195609SmpIFS=$ac_save_IFS
2698195609Smpcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
269969408Sache
270069408Sache
2701131962Smp
2702232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking cached host tuple" >&5
2703232633Smp$as_echo_n "checking cached host tuple... " >&6; }
270469408Sacheif { test x"${ac_cv_host_system_type+set}" = x"set" &&
270569408Sache     test x"$ac_cv_host_system_type" != x"$host"; }; then
2706232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: different" >&5
2707232633Smp$as_echo "different" >&6; }
2708232633Smp  as_fn_error $? "remove config.cache and re-run configure" "$LINENO" 5
270969408Sacheelse
2710232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2711232633Smp$as_echo "ok" >&6; }
271269408Sachefi
271369408Sacheac_cv_host_system_type="$host"
271469408Sache
271569408Sache
271669408Sache
271769408Sachecase "${host}" in
271869408Sache
271969408Sache  ## Alpha (DEC) machines.
272069408Sache  alpha*-dec-osf* )
272169408Sache    tcsh_config_file=decosf1
272269408Sache  ;;
272369408Sache
272469408Sache  ## Ultrix
272569408Sache  *-dec-ultrix* )
272669408Sache    tcsh_config_file=ultrix
272769408Sache  ;;
272869408Sache
272969408Sache  ## DGUX
273069408Sache  *-dg-dguxR4* )
273169408Sache    tcsh_config_file=dgux5.4
273269408Sache  ;;
273369408Sache  m88k-dg-dgux5.4R* )
273469408Sache    tcsh_config_file=dgux5.4
273569408Sache  ;;
273669408Sache
273769408Sache  ## HP/UX
273869408Sache  *-hp-hpux7* )
273969408Sache    tcsh_config_file=hpux7
274069408Sache  ;;
274169408Sache  *-hp-hpux[89]* )
274269408Sache    tcsh_config_file=hpux8
274369408Sache  ;;
274469408Sache  *-hp-hpux1[0-9]* )
274583098Smp    tcsh_config_file=hpux11
274669408Sache  ;;
274769408Sache
274869408Sache  ## IBM AIX systems
274969408Sache  *-ibm-aix*)
275069408Sache    tcsh_config_file=aix
275169408Sache  ;;
275269408Sache
275369408Sache  ## SX-4
275469408Sache  sx4-nec-*)
275569408Sache    CC='cc -h0,ansi,novector,float0'
275669408Sache    LDFLAGS='-Gsmall'
275769408Sache    tcsh_config_file=superux8
275869408Sache  ;;
275969408Sache
276069408Sache  ## IBM OS/390 systems
276169408Sache  *-ibm-os390*)
276269408Sache    CC='c89'
276369408Sache    tcsh_config_file=os390
276469408Sache  ;;
276569408Sache
2766232633Smp  ## Android
2767232633Smp  *-*-android*)
2768232633Smp    tcsh_config_file=android
2769232633Smp  ;;
2770232633Smp
277169408Sache  ## Linux
2772145479Smp  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
277369408Sache    tcsh_config_file=linux
277469408Sache  ;;
277569408Sache
277669408Sache  ## Motorola systems
277769408Sache  m68k-motorola-sysv* )
277869408Sache    tcsh_config_file=sysV68
277969408Sache  ;;
278069408Sache  m88k-motorola-sysv3* )
278169408Sache    tcsh_config_file=sysV88
278269408Sache  ;;
278369408Sache
278469408Sache  ## NetBSD systems
278569408Sache  *-*-netbsd*)
278669408Sache    tcsh_config_file=bsd4.4
278769408Sache  ;;
278869408Sache
278969408Sache  ## FreeBSD systems
279069408Sache  *-*-freebsd*)
279169408Sache    tcsh_config_file=bsd4.4
279269408Sache  ;;
279369408Sache
2794195609Smp  ## MidnightBSD systems
2795195609Smp  *-*-midnightbsd*)
2796195609Smp    tcsh_config_file=bsd4.4
2797195609Smp  ;;
2798195609Smp
2799195609Smp  ## DragonFlyBSD systems
2800195609Smp  *-*-dragonfly*)
2801195609Smp    tcsh_config_file=bsd4.4
2802195609Smp  ;;
2803195609Smp
280469408Sache  ## OpenBSD systems
280569408Sache  *-*-openbsd*)
280669408Sache    tcsh_config_file=bsd4.4
280769408Sache  ;;
280869408Sache
280969408Sache  ## BSDI systems
281069408Sache  *-*-bsdi*)
281169408Sache    tcsh_config_file=bsd4.4
281269408Sache  ;;
281369408Sache
281469408Sache  ## Mac OS X Server
281569408Sache  *-*-rhapsody* )
281669408Sache    tcsh_config_file=bsd4.4
281769408Sache  ;;
281869408Sache
2819100616Smp  ## Mac OS X Server
2820100616Smp  *-*-darwin* )
2821100616Smp    tcsh_config_file=bsd4.4
2822100616Smp  ;;
2823100616Smp
2824167465Smp  ## DragonFly systems
2825167465Smp  *-*-dragonfly*)
2826167465Smp    tcsh_config_file=bsd4.4
2827167465Smp  ;;
2828167465Smp
282969408Sache  ## Silicon Graphics machines
283069408Sache  *-sgi-iri* )
283169408Sache    tcsh_config_file=irix
283269408Sache    case "${host_os}" in
283369408Sache      irix[34]*) # Irix-3.x - Irix 4.x
283469408Sache        NON_GNU_DFLAGS='-D__STDC__'
283569408Sache        LIBS='-lsun -lbsd -lc_s'
283669408Sache      ;;
283769408Sache      irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
283869408Sache        LIBS='-lbsd'
283969408Sache      ;;
284069408Sache      irix6.[2-9]*) # Irix 6.2 and later
284169408Sache	tcsh_config_file=irix62
284269408Sache      ;;
284369408Sache    esac
284469408Sache  ;;
284569408Sache
284669408Sache  ## Suns
284769408Sache  *-sun-sunos3* )
284869408Sache    tcsh_config_file=sunos35
284969408Sache  ;;
285069408Sache  *-sun-sunos4.0* )
285169408Sache    tcsh_config_file=sunos40
285269408Sache  ;;
285369408Sache  *-sun-sunos4.1.[12]* )
285469408Sache    tcsh_config_file=sunos41
285569408Sache  ;;
285669408Sache  *-sun-sunos4.1.[3456]* )
285769408Sache    tcsh_config_file=sunos413
285869408Sache  ;;
2859167465Smp  *-*-solaris2.[01] ) # Should handle sparc or x86
286069408Sache    tcsh_config_file=sol2
286169408Sache  ;;
2862167465Smp  *-sun-solaris2.2 ) # Sparc only release
286369408Sache    tcsh_config_file=sol22
286469408Sache  ;;
2865167465Smp  *-sun-solaris2.3 ) # Sparc only release
286669408Sache    tcsh_config_file=sol23
286769408Sache  ;;
2868167465Smp  *-*-solaris2.[45] ) # Should handle sparc, x86 and powerpc
286969408Sache    tcsh_config_file=sol24
287069408Sache  ;;
2871232633Smp  *-*-solaris2.[678] ) # Should handle sparc, x86 and powerpc
287269408Sache    tcsh_config_file=sol26
287369408Sache  ;;
2874232633Smp  *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
2875232633Smp    tcsh_config_file=sol29
2876232633Smp  ;;
287769408Sache
287869408Sache  ## Dell SVR4
287969408Sache  *-dell-sysv4* )
288069408Sache    tcsh_config_file=sysv4
288169408Sache    DFLAGS="$DFLAGS -DDELL"
288269408Sache  ;;
288369408Sache
288469408Sache  ## SVR4 (Generic and otherwise)
288569408Sache  *-*-sysv4* )
288669408Sache    tcsh_config_file=sysv4
288769408Sache  ;;
288869408Sache
288969408Sache  ## Tektronix systems
289069408Sache  m68k-tektronix-bsd* )
289169408Sache    tcsh_config_file=bsd
289269408Sache    NON_GNU_DFLAGS='-DBSD -DUTek'
289369408Sache  ;;
289469408Sache  m88k-tektronix-sysv3* )
289569408Sache    tcsh_config_file=tekXD88
289669408Sache  ;;
289769408Sache
289869408Sache  ## SCO
2899131962Smp  *-sco3.2v5*)
290069408Sache    tcsh_config_file=sco32v5
290169408Sache  ;;
290269408Sache  *-sco3.2v4*)
290369408Sache    tcsh_config_file=sco32v4
290469408Sache  ;;
290569408Sache  *-sco3.2v2*)
290669408Sache    tcsh_config_file=sco32v2
290769408Sache  ;;
290869408Sache
290969408Sache  ## Siemens BS2000 Mainframe
2910145479Smp  bs2000-siemens-*)
291169408Sache    tcsh_config_file=bs2000
291269408Sache  ;;
291369408Sache
291469408Sache  ## Convex
291569408Sache  *-convex*)
291669408Sache    tcsh_config_file=convex
291769408Sache  ;;
291869408Sache
291969408Sache  ## Cray
292069408Sache  *-cray-unicos*)
292169408Sache    tcsh_config_file=cray
292269408Sache  ;;
292369408Sache
2924145479Smp  ## Red Hat Cygwin
292569408Sache  *-cygwin)
2926232633Smp    tcsh_config_file=cygwin
292769408Sache  ;;
292869408Sache
292969408Sache  ## mips-compaq-nonstopux
293069408Sache  *-*-nonstopux)
293169408Sache    tcsh_config_file=sysv4
293269408Sache  ;;
293369408Sache
293483098Smp  ## Apollo Domain/OS
293583098Smp  *-apollo-*)
293683098Smp    tcsh_config_file=apollo
293783098Smp  ;;
293883098Smp
2939195609Smp  ## QNX6
2940195609Smp  *-qnx6*)
2941195609Smp    tcsh_config_file=qnx6
2942195609Smp  ;;
2943195609Smp
294469408Sache  * )
2945232633Smp    as_fn_error $? "Tcsh can't guess the configuration file name
294669408Sachefor \`${host}' systems.
2947232633SmpCheck tcsh's \`Ported' file for manual configuration instructions." "$LINENO" 5
294869408Sache    ;;
294969408Sache
295069408Sacheesac
295169408Sache
295269408Sacheecho "Tcsh will use configuration file \`$tcsh_config_file'."
2953145479Smpcp ${srcdir}/config/${tcsh_config_file} config_p.h
295469408Sache
295569408Sache
2956131962Smpac_ext=c
2957131962Smpac_cpp='$CPP $CPPFLAGS'
2958131962Smpac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959131962Smpac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960131962Smpac_compiler_gnu=$ac_cv_c_compiler_gnu
2961131962Smpif test -n "$ac_tool_prefix"; then
2962131962Smp  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2963131962Smpset dummy ${ac_tool_prefix}gcc; ac_word=$2
2964232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965232633Smp$as_echo_n "checking for $ac_word... " >&6; }
2966232633Smpif ${ac_cv_prog_CC+:} false; then :
2967232633Smp  $as_echo_n "(cached) " >&6
2968131962Smpelse
2969131962Smp  if test -n "$CC"; then
2970131962Smp  ac_cv_prog_CC="$CC" # Let the user override the test.
2971131962Smpelse
2972131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973131962Smpfor as_dir in $PATH
2974131962Smpdo
2975131962Smp  IFS=$as_save_IFS
2976131962Smp  test -z "$as_dir" && as_dir=.
2977232633Smp    for ac_exec_ext in '' $ac_executable_extensions; do
2978195609Smp  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979131962Smp    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2980232633Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981131962Smp    break 2
2982131962Smp  fi
2983131962Smpdone
2984232633Smp  done
2985195609SmpIFS=$as_save_IFS
2986131962Smp
2987131962Smpfi
2988131962Smpfi
2989131962SmpCC=$ac_cv_prog_CC
2990131962Smpif test -n "$CC"; then
2991232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992232633Smp$as_echo "$CC" >&6; }
2993131962Smpelse
2994232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995232633Smp$as_echo "no" >&6; }
2996131962Smpfi
2997131962Smp
2998195609Smp
2999131962Smpfi
3000131962Smpif test -z "$ac_cv_prog_CC"; then
3001131962Smp  ac_ct_CC=$CC
3002131962Smp  # Extract the first word of "gcc", so it can be a program name with args.
300369408Sacheset dummy gcc; ac_word=$2
3004232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005232633Smp$as_echo_n "checking for $ac_word... " >&6; }
3006232633Smpif ${ac_cv_prog_ac_ct_CC+:} false; then :
3007232633Smp  $as_echo_n "(cached) " >&6
300869408Sacheelse
3009131962Smp  if test -n "$ac_ct_CC"; then
3010131962Smp  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011131962Smpelse
3012131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013131962Smpfor as_dir in $PATH
3014131962Smpdo
3015131962Smp  IFS=$as_save_IFS
3016131962Smp  test -z "$as_dir" && as_dir=.
3017232633Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3018195609Smp  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019131962Smp    ac_cv_prog_ac_ct_CC="gcc"
3020232633Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021131962Smp    break 2
3022131962Smp  fi
3023131962Smpdone
3024232633Smp  done
3025195609SmpIFS=$as_save_IFS
3026131962Smp
3027131962Smpfi
3028131962Smpfi
3029131962Smpac_ct_CC=$ac_cv_prog_ac_ct_CC
3030131962Smpif test -n "$ac_ct_CC"; then
3031232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032232633Smp$as_echo "$ac_ct_CC" >&6; }
3033131962Smpelse
3034232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035232633Smp$as_echo "no" >&6; }
3036131962Smpfi
3037131962Smp
3038195609Smp  if test "x$ac_ct_CC" = x; then
3039195609Smp    CC=""
3040195609Smp  else
3041195609Smp    case $cross_compiling:$ac_tool_warned in
3042195609Smpyes:)
3043232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044232633Smp$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045195609Smpac_tool_warned=yes ;;
3046195609Smpesac
3047195609Smp    CC=$ac_ct_CC
3048195609Smp  fi
3049131962Smpelse
3050131962Smp  CC="$ac_cv_prog_CC"
3051131962Smpfi
3052131962Smp
3053131962Smpif test -z "$CC"; then
3054195609Smp          if test -n "$ac_tool_prefix"; then
3055195609Smp    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3056131962Smpset dummy ${ac_tool_prefix}cc; ac_word=$2
3057232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058232633Smp$as_echo_n "checking for $ac_word... " >&6; }
3059232633Smpif ${ac_cv_prog_CC+:} false; then :
3060232633Smp  $as_echo_n "(cached) " >&6
3061131962Smpelse
306269408Sache  if test -n "$CC"; then
306369408Sache  ac_cv_prog_CC="$CC" # Let the user override the test.
306469408Sacheelse
3065131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066131962Smpfor as_dir in $PATH
3067131962Smpdo
3068131962Smp  IFS=$as_save_IFS
3069131962Smp  test -z "$as_dir" && as_dir=.
3070232633Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3071195609Smp  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072131962Smp    ac_cv_prog_CC="${ac_tool_prefix}cc"
3073232633Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074131962Smp    break 2
3075131962Smp  fi
3076131962Smpdone
3077232633Smp  done
3078195609SmpIFS=$as_save_IFS
3079131962Smp
308069408Sachefi
308169408Sachefi
3082131962SmpCC=$ac_cv_prog_CC
308369408Sacheif test -n "$CC"; then
3084232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085232633Smp$as_echo "$CC" >&6; }
308669408Sacheelse
3087232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088232633Smp$as_echo "no" >&6; }
308969408Sachefi
309069408Sache
3091195609Smp
3092131962Smp  fi
3093131962Smpfi
309469408Sacheif test -z "$CC"; then
309569408Sache  # Extract the first word of "cc", so it can be a program name with args.
309669408Sacheset dummy cc; ac_word=$2
3097232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098232633Smp$as_echo_n "checking for $ac_word... " >&6; }
3099232633Smpif ${ac_cv_prog_CC+:} false; then :
3100232633Smp  $as_echo_n "(cached) " >&6
310169408Sacheelse
310269408Sache  if test -n "$CC"; then
310369408Sache  ac_cv_prog_CC="$CC" # Let the user override the test.
310469408Sacheelse
310569408Sache  ac_prog_rejected=no
3106131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107131962Smpfor as_dir in $PATH
3108131962Smpdo
3109131962Smp  IFS=$as_save_IFS
3110131962Smp  test -z "$as_dir" && as_dir=.
3111232633Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3112195609Smp  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113131962Smp    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3114131962Smp       ac_prog_rejected=yes
3115131962Smp       continue
3116131962Smp     fi
3117131962Smp    ac_cv_prog_CC="cc"
3118232633Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119131962Smp    break 2
3120131962Smp  fi
3121131962Smpdone
3122232633Smp  done
3123195609SmpIFS=$as_save_IFS
3124131962Smp
312569408Sacheif test $ac_prog_rejected = yes; then
312669408Sache  # We found a bogon in the path, so make sure we never use it.
312769408Sache  set dummy $ac_cv_prog_CC
312869408Sache  shift
3129131962Smp  if test $# != 0; then
313069408Sache    # We chose a different compiler from the bogus one.
313169408Sache    # However, it has the same basename, so the bogon will be chosen
313269408Sache    # first if we set CC to just the basename; use the full file name.
313369408Sache    shift
3134131962Smp    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
313569408Sache  fi
313669408Sachefi
313769408Sachefi
313869408Sachefi
3139131962SmpCC=$ac_cv_prog_CC
314069408Sacheif test -n "$CC"; then
3141232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142232633Smp$as_echo "$CC" >&6; }
314369408Sacheelse
3144232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145232633Smp$as_echo "no" >&6; }
314669408Sachefi
314769408Sache
3148195609Smp
3149131962Smpfi
3150131962Smpif test -z "$CC"; then
3151131962Smp  if test -n "$ac_tool_prefix"; then
3152195609Smp  for ac_prog in cl.exe
3153131962Smp  do
3154131962Smp    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3155131962Smpset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3156232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157232633Smp$as_echo_n "checking for $ac_word... " >&6; }
3158232633Smpif ${ac_cv_prog_CC+:} false; then :
3159232633Smp  $as_echo_n "(cached) " >&6
316069408Sacheelse
316169408Sache  if test -n "$CC"; then
316269408Sache  ac_cv_prog_CC="$CC" # Let the user override the test.
316369408Sacheelse
3164131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165131962Smpfor as_dir in $PATH
3166131962Smpdo
3167131962Smp  IFS=$as_save_IFS
3168131962Smp  test -z "$as_dir" && as_dir=.
3169232633Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3170195609Smp  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171131962Smp    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3172232633Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173131962Smp    break 2
3174131962Smp  fi
3175131962Smpdone
3176232633Smp  done
3177195609SmpIFS=$as_save_IFS
3178131962Smp
317969408Sachefi
318069408Sachefi
3181131962SmpCC=$ac_cv_prog_CC
318269408Sacheif test -n "$CC"; then
3183232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184232633Smp$as_echo "$CC" >&6; }
318569408Sacheelse
3186232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187232633Smp$as_echo "no" >&6; }
318869408Sachefi
3189131962Smp
3190195609Smp
3191131962Smp    test -n "$CC" && break
3192131962Smp  done
3193131962Smpfi
3194131962Smpif test -z "$CC"; then
3195131962Smp  ac_ct_CC=$CC
3196195609Smp  for ac_prog in cl.exe
3197131962Smpdo
3198131962Smp  # Extract the first word of "$ac_prog", so it can be a program name with args.
3199131962Smpset dummy $ac_prog; ac_word=$2
3200232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201232633Smp$as_echo_n "checking for $ac_word... " >&6; }
3202232633Smpif ${ac_cv_prog_ac_ct_CC+:} false; then :
3203232633Smp  $as_echo_n "(cached) " >&6
3204131962Smpelse
3205131962Smp  if test -n "$ac_ct_CC"; then
3206131962Smp  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207131962Smpelse
3208131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209131962Smpfor as_dir in $PATH
3210131962Smpdo
3211131962Smp  IFS=$as_save_IFS
3212131962Smp  test -z "$as_dir" && as_dir=.
3213232633Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3214195609Smp  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215131962Smp    ac_cv_prog_ac_ct_CC="$ac_prog"
3216232633Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217131962Smp    break 2
321869408Sache  fi
3219131962Smpdone
3220232633Smp  done
3221195609SmpIFS=$as_save_IFS
3222131962Smp
322369408Sachefi
3224131962Smpfi
3225131962Smpac_ct_CC=$ac_cv_prog_ac_ct_CC
3226131962Smpif test -n "$ac_ct_CC"; then
3227232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228232633Smp$as_echo "$ac_ct_CC" >&6; }
3229131962Smpelse
3230232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231232633Smp$as_echo "no" >&6; }
3232131962Smpfi
323369408Sache
3234195609Smp
3235131962Smp  test -n "$ac_ct_CC" && break
3236131962Smpdone
323769408Sache
3238195609Smp  if test "x$ac_ct_CC" = x; then
3239195609Smp    CC=""
3240195609Smp  else
3241195609Smp    case $cross_compiling:$ac_tool_warned in
3242195609Smpyes:)
3243232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244232633Smp$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245195609Smpac_tool_warned=yes ;;
3246195609Smpesac
3247195609Smp    CC=$ac_ct_CC
3248195609Smp  fi
3249131962Smpfi
325069408Sache
3251131962Smpfi
325269408Sache
325369408Sache
3254232633Smptest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255232633Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256232633Smpas_fn_error $? "no acceptable C compiler found in \$PATH
3257232633SmpSee \`config.log' for more details" "$LINENO" 5; }
3258131962Smp
3259131962Smp# Provide some information about the compiler.
3260232633Smp$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3261232633Smpset X $ac_compile
3262232633Smpac_compiler=$2
3263232633Smpfor ac_option in --version -v -V -qversion; do
3264232633Smp  { { ac_try="$ac_compiler $ac_option >&5"
3265195609Smpcase "(($ac_try" in
3266195609Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267195609Smp  *) ac_try_echo=$ac_try;;
3268195609Smpesac
3269232633Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270232633Smp$as_echo "$ac_try_echo"; } >&5
3271232633Smp  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3272131962Smp  ac_status=$?
3273232633Smp  if test -s conftest.err; then
3274232633Smp    sed '10a\
3275232633Smp... rest of stderr output deleted ...
3276232633Smp         10q' conftest.err >conftest.er1
3277232633Smp    cat conftest.er1 >&5
3278232633Smp  fi
3279232633Smp  rm -f conftest.er1 conftest.err
3280232633Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281232633Smp  test $ac_status = 0; }
3282232633Smpdone
3283131962Smp
3284232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285131962Smp/* end confdefs.h.  */
3286131962Smp
3287131962Smpint
3288131962Smpmain ()
3289131962Smp{
3290131962Smp
3291131962Smp  ;
3292131962Smp  return 0;
3293131962Smp}
3294131962Smp_ACEOF
3295131962Smpac_clean_files_save=$ac_clean_files
3296232633Smpac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3297131962Smp# Try to create an executable without -o first, disregard a.out.
3298131962Smp# It will help us diagnose broken compilers, and finding out an intuition
3299131962Smp# of exeext.
3300232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3301232633Smp$as_echo_n "checking whether the C compiler works... " >&6; }
3302232633Smpac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3303232633Smp
3304232633Smp# The possible output files:
3305232633Smpac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3306232633Smp
3307195609Smpac_rmfiles=
3308195609Smpfor ac_file in $ac_files
3309195609Smpdo
3310195609Smp  case $ac_file in
3311232633Smp    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312195609Smp    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3313195609Smp  esac
3314195609Smpdone
3315195609Smprm -f $ac_rmfiles
3316195609Smp
3317232633Smpif { { ac_try="$ac_link_default"
3318195609Smpcase "(($ac_try" in
3319195609Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320195609Smp  *) ac_try_echo=$ac_try;;
3321195609Smpesac
3322232633Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323232633Smp$as_echo "$ac_try_echo"; } >&5
3324195609Smp  (eval "$ac_link_default") 2>&5
3325131962Smp  ac_status=$?
3326232633Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327232633Smp  test $ac_status = 0; }; then :
3328195609Smp  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3329195609Smp# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3330195609Smp# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3331195609Smp# so that the user can short-circuit this test for compilers unknown to
3332195609Smp# Autoconf.
3333195609Smpfor ac_file in $ac_files ''
3334131962Smpdo
3335131962Smp  test -f "$ac_file" || continue
3336131962Smp  case $ac_file in
3337232633Smp    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3338145479Smp	;;
3339131962Smp    [ab].out )
3340145479Smp	# We found the default executable, but exeext='' is most
3341145479Smp	# certainly right.
3342145479Smp	break;;
3343131962Smp    *.* )
3344232633Smp	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3345195609Smp	then :; else
3346195609Smp	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347195609Smp	fi
3348195609Smp	# We set ac_cv_exeext here because the later test for it is not
3349195609Smp	# safe: cross compilers may not add the suffix if given an `-o'
3350195609Smp	# argument, so we may need to know it at that point already.
3351195609Smp	# Even if this section looks crufty: it has the advantage of
3352195609Smp	# actually working.
3353145479Smp	break;;
3354131962Smp    * )
3355145479Smp	break;;
3356131962Smp  esac
3357131962Smpdone
3358195609Smptest "$ac_cv_exeext" = no && ac_cv_exeext=
3359195609Smp
3360131962Smpelse
3361195609Smp  ac_file=''
3362195609Smpfi
3363232633Smpif test -z "$ac_file"; then :
3364232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365232633Smp$as_echo "no" >&6; }
3366232633Smp$as_echo "$as_me: failed program was:" >&5
3367131962Smpsed 's/^/| /' conftest.$ac_ext >&5
3368131962Smp
3369232633Smp{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370232633Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371232633Smpas_fn_error 77 "C compiler cannot create executables
3372232633SmpSee \`config.log' for more details" "$LINENO" 5; }
3373232633Smpelse
3374232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3375232633Smp$as_echo "yes" >&6; }
3376131962Smpfi
3377232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3378232633Smp$as_echo_n "checking for C compiler default output file name... " >&6; }
3379232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3380232633Smp$as_echo "$ac_file" >&6; }
3381131962Smpac_exeext=$ac_cv_exeext
3382131962Smp
3383232633Smprm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3384131962Smpac_clean_files=$ac_clean_files_save
3385232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3386232633Smp$as_echo_n "checking for suffix of executables... " >&6; }
3387232633Smpif { { ac_try="$ac_link"
3388195609Smpcase "(($ac_try" in
3389195609Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390195609Smp  *) ac_try_echo=$ac_try;;
3391195609Smpesac
3392232633Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393232633Smp$as_echo "$ac_try_echo"; } >&5
3394195609Smp  (eval "$ac_link") 2>&5
3395131962Smp  ac_status=$?
3396232633Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397232633Smp  test $ac_status = 0; }; then :
3398131962Smp  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3399131962Smp# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3400131962Smp# work properly (i.e., refer to `conftest.exe'), while it won't with
3401131962Smp# `rm'.
3402131962Smpfor ac_file in conftest.exe conftest conftest.*; do
3403131962Smp  test -f "$ac_file" || continue
3404131962Smp  case $ac_file in
3405232633Smp    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406131962Smp    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407145479Smp	  break;;
3408131962Smp    * ) break;;
3409131962Smp  esac
3410131962Smpdone
3411131962Smpelse
3412232633Smp  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413232633Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414232633Smpas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3415232633SmpSee \`config.log' for more details" "$LINENO" 5; }
341669408Sachefi
3417232633Smprm -f conftest conftest$ac_cv_exeext
3418232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3419232633Smp$as_echo "$ac_cv_exeext" >&6; }
342069408Sache
3421131962Smprm -f conftest.$ac_ext
3422131962SmpEXEEXT=$ac_cv_exeext
3423131962Smpac_exeext=$EXEEXT
3424232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425232633Smp/* end confdefs.h.  */
3426232633Smp#include <stdio.h>
3427232633Smpint
3428232633Smpmain ()
3429232633Smp{
3430232633SmpFILE *f = fopen ("conftest.out", "w");
3431232633Smp return ferror (f) || fclose (f) != 0;
3432232633Smp
3433232633Smp  ;
3434232633Smp  return 0;
3435232633Smp}
3436232633Smp_ACEOF
3437232633Smpac_clean_files="$ac_clean_files conftest.out"
3438232633Smp# Check that the compiler produces executables we can run.  If not, either
3439232633Smp# the compiler is broken, or we cross compile.
3440232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3441232633Smp$as_echo_n "checking whether we are cross compiling... " >&6; }
3442232633Smpif test "$cross_compiling" != yes; then
3443232633Smp  { { ac_try="$ac_link"
3444232633Smpcase "(($ac_try" in
3445232633Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446232633Smp  *) ac_try_echo=$ac_try;;
3447232633Smpesac
3448232633Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449232633Smp$as_echo "$ac_try_echo"; } >&5
3450232633Smp  (eval "$ac_link") 2>&5
3451232633Smp  ac_status=$?
3452232633Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453232633Smp  test $ac_status = 0; }
3454232633Smp  if { ac_try='./conftest$ac_cv_exeext'
3455232633Smp  { { case "(($ac_try" in
3456232633Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457232633Smp  *) ac_try_echo=$ac_try;;
3458232633Smpesac
3459232633Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460232633Smp$as_echo "$ac_try_echo"; } >&5
3461232633Smp  (eval "$ac_try") 2>&5
3462232633Smp  ac_status=$?
3463232633Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464232633Smp  test $ac_status = 0; }; }; then
3465232633Smp    cross_compiling=no
3466232633Smp  else
3467232633Smp    if test "$cross_compiling" = maybe; then
3468232633Smp	cross_compiling=yes
3469232633Smp    else
3470232633Smp	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471232633Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472232633Smpas_fn_error $? "cannot run C compiled programs.
3473232633SmpIf you meant to cross compile, use \`--host'.
3474232633SmpSee \`config.log' for more details" "$LINENO" 5; }
3475232633Smp    fi
3476232633Smp  fi
3477232633Smpfi
3478232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3479232633Smp$as_echo "$cross_compiling" >&6; }
3480232633Smp
3481232633Smprm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3482232633Smpac_clean_files=$ac_clean_files_save
3483232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3484232633Smp$as_echo_n "checking for suffix of object files... " >&6; }
3485232633Smpif ${ac_cv_objext+:} false; then :
3486232633Smp  $as_echo_n "(cached) " >&6
348769408Sacheelse
3488232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489131962Smp/* end confdefs.h.  */
3490131962Smp
3491131962Smpint
3492131962Smpmain ()
3493131962Smp{
3494131962Smp
3495131962Smp  ;
3496131962Smp  return 0;
3497131962Smp}
3498131962Smp_ACEOF
3499131962Smprm -f conftest.o conftest.obj
3500232633Smpif { { ac_try="$ac_compile"
3501195609Smpcase "(($ac_try" in
3502195609Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503195609Smp  *) ac_try_echo=$ac_try;;
3504195609Smpesac
3505232633Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506232633Smp$as_echo "$ac_try_echo"; } >&5
3507195609Smp  (eval "$ac_compile") 2>&5
3508131962Smp  ac_status=$?
3509232633Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510232633Smp  test $ac_status = 0; }; then :
3511195609Smp  for ac_file in conftest.o conftest.obj conftest.*; do
3512195609Smp  test -f "$ac_file" || continue;
3513131962Smp  case $ac_file in
3514232633Smp    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3515131962Smp    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3516131962Smp       break;;
3517131962Smp  esac
3518131962Smpdone
351969408Sacheelse
3520232633Smp  $as_echo "$as_me: failed program was:" >&5
3521131962Smpsed 's/^/| /' conftest.$ac_ext >&5
3522131962Smp
3523232633Smp{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524232633Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525232633Smpas_fn_error $? "cannot compute suffix of object files: cannot compile
3526232633SmpSee \`config.log' for more details" "$LINENO" 5; }
352769408Sachefi
3528131962Smprm -f conftest.$ac_cv_objext conftest.$ac_ext
352969408Sachefi
3530232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3531232633Smp$as_echo "$ac_cv_objext" >&6; }
3532131962SmpOBJEXT=$ac_cv_objext
3533131962Smpac_objext=$OBJEXT
3534232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3535232633Smp$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3536232633Smpif ${ac_cv_c_compiler_gnu+:} false; then :
3537232633Smp  $as_echo_n "(cached) " >&6
3538131962Smpelse
3539232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540131962Smp/* end confdefs.h.  */
354169408Sache
3542131962Smpint
3543131962Smpmain ()
3544131962Smp{
3545131962Smp#ifndef __GNUC__
3546131962Smp       choke me
3547131962Smp#endif
354869408Sache
3549131962Smp  ;
3550131962Smp  return 0;
3551131962Smp}
3552131962Smp_ACEOF
3553232633Smpif ac_fn_c_try_compile "$LINENO"; then :
3554131962Smp  ac_compiler_gnu=yes
355569408Sacheelse
3556232633Smp  ac_compiler_gnu=no
355769408Sachefi
3558195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559131962Smpac_cv_c_compiler_gnu=$ac_compiler_gnu
356069408Sache
3561131962Smpfi
3562232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3563232633Smp$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3564232633Smpif test $ac_compiler_gnu = yes; then
3565232633Smp  GCC=yes
3566232633Smpelse
3567232633Smp  GCC=
3568232633Smpfi
3569131962Smpac_test_CFLAGS=${CFLAGS+set}
3570131962Smpac_save_CFLAGS=$CFLAGS
3571232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3572232633Smp$as_echo_n "checking whether $CC accepts -g... " >&6; }
3573232633Smpif ${ac_cv_prog_cc_g+:} false; then :
3574232633Smp  $as_echo_n "(cached) " >&6
357569408Sacheelse
3576195609Smp  ac_save_c_werror_flag=$ac_c_werror_flag
3577195609Smp   ac_c_werror_flag=yes
3578195609Smp   ac_cv_prog_cc_g=no
3579195609Smp   CFLAGS="-g"
3580232633Smp   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581131962Smp/* end confdefs.h.  */
3582131962Smp
3583131962Smpint
3584131962Smpmain ()
3585131962Smp{
3586131962Smp
3587131962Smp  ;
3588131962Smp  return 0;
3589131962Smp}
3590131962Smp_ACEOF
3591232633Smpif ac_fn_c_try_compile "$LINENO"; then :
3592195609Smp  ac_cv_prog_cc_g=yes
3593195609Smpelse
3594232633Smp  CFLAGS=""
3595232633Smp      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596195609Smp/* end confdefs.h.  */
3597195609Smp
3598195609Smpint
3599195609Smpmain ()
3600195609Smp{
3601195609Smp
3602195609Smp  ;
3603195609Smp  return 0;
3604195609Smp}
3605195609Smp_ACEOF
3606232633Smpif ac_fn_c_try_compile "$LINENO"; then :
3607232633Smp
3608195609Smpelse
3609232633Smp  ac_c_werror_flag=$ac_save_c_werror_flag
3610195609Smp	 CFLAGS="-g"
3611232633Smp	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612195609Smp/* end confdefs.h.  */
3613195609Smp
3614195609Smpint
3615195609Smpmain ()
3616195609Smp{
3617195609Smp
3618195609Smp  ;
3619195609Smp  return 0;
3620195609Smp}
3621195609Smp_ACEOF
3622232633Smpif ac_fn_c_try_compile "$LINENO"; then :
362369408Sache  ac_cv_prog_cc_g=yes
362469408Sachefi
3625195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626131962Smpfi
3627195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628195609Smpfi
3629195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630195609Smp   ac_c_werror_flag=$ac_save_c_werror_flag
3631195609Smpfi
3632232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3633232633Smp$as_echo "$ac_cv_prog_cc_g" >&6; }
363469408Sacheif test "$ac_test_CFLAGS" = set; then
3635131962Smp  CFLAGS=$ac_save_CFLAGS
363669408Sacheelif test $ac_cv_prog_cc_g = yes; then
363769408Sache  if test "$GCC" = yes; then
363869408Sache    CFLAGS="-g -O2"
363969408Sache  else
364069408Sache    CFLAGS="-g"
364169408Sache  fi
364269408Sacheelse
364369408Sache  if test "$GCC" = yes; then
364469408Sache    CFLAGS="-O2"
364569408Sache  else
364669408Sache    CFLAGS=
364769408Sache  fi
364869408Sachefi
3649232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3650232633Smp$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3651232633Smpif ${ac_cv_prog_cc_c89+:} false; then :
3652232633Smp  $as_echo_n "(cached) " >&6
3653131962Smpelse
3654195609Smp  ac_cv_prog_cc_c89=no
3655131962Smpac_save_CC=$CC
3656232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657131962Smp/* end confdefs.h.  */
3658131962Smp#include <stdarg.h>
3659131962Smp#include <stdio.h>
3660131962Smp#include <sys/types.h>
3661131962Smp#include <sys/stat.h>
3662131962Smp/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3663131962Smpstruct buf { int x; };
3664131962SmpFILE * (*rcsopen) (struct buf *, struct stat *, int);
3665131962Smpstatic char *e (p, i)
3666131962Smp     char **p;
3667131962Smp     int i;
3668131962Smp{
3669131962Smp  return p[i];
3670131962Smp}
3671131962Smpstatic char *f (char * (*g) (char **, int), char **p, ...)
3672131962Smp{
3673131962Smp  char *s;
3674131962Smp  va_list v;
3675131962Smp  va_start (v,p);
3676131962Smp  s = g (p, va_arg (v,int));
3677131962Smp  va_end (v);
3678131962Smp  return s;
3679131962Smp}
3680145479Smp
3681145479Smp/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3682145479Smp   function prototypes and stuff, but not '\xHH' hex character constants.
3683145479Smp   These don't provoke an error unfortunately, instead are silently treated
3684195609Smp   as 'x'.  The following induces an error, until -std is added to get
3685145479Smp   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3686145479Smp   array size at least.  It's necessary to write '\x00'==0 to get something
3687195609Smp   that's true only with -std.  */
3688145479Smpint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689145479Smp
3690195609Smp/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3691195609Smp   inside strings and character constants.  */
3692195609Smp#define FOO(x) 'x'
3693195609Smpint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694195609Smp
3695131962Smpint test (int i, double x);
3696131962Smpstruct s1 {int (*f) (int a);};
3697131962Smpstruct s2 {int (*f) (double a);};
3698131962Smpint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3699131962Smpint argc;
3700131962Smpchar **argv;
3701131962Smpint
3702131962Smpmain ()
3703131962Smp{
3704131962Smpreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3705131962Smp  ;
3706131962Smp  return 0;
3707131962Smp}
3708131962Smp_ACEOF
3709195609Smpfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3710195609Smp	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711131962Smpdo
3712131962Smp  CC="$ac_save_CC $ac_arg"
3713232633Smp  if ac_fn_c_try_compile "$LINENO"; then :
3714195609Smp  ac_cv_prog_cc_c89=$ac_arg
3715131962Smpfi
3716195609Smprm -f core conftest.err conftest.$ac_objext
3717195609Smp  test "x$ac_cv_prog_cc_c89" != "xno" && break
3718131962Smpdone
3719195609Smprm -f conftest.$ac_ext
3720131962SmpCC=$ac_save_CC
3721131962Smp
3722131962Smpfi
3723195609Smp# AC_CACHE_VAL
3724195609Smpcase "x$ac_cv_prog_cc_c89" in
3725195609Smp  x)
3726232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3727232633Smp$as_echo "none needed" >&6; } ;;
3728195609Smp  xno)
3729232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730232633Smp$as_echo "unsupported" >&6; } ;;
3731131962Smp  *)
3732195609Smp    CC="$CC $ac_cv_prog_cc_c89"
3733232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3734232633Smp$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3735131962Smpesac
3736232633Smpif test "x$ac_cv_prog_cc_c89" != xno; then :
3737131962Smp
3738232633Smpfi
3739131962Smp
3740131962Smpac_ext=c
3741131962Smpac_cpp='$CPP $CPPFLAGS'
3742131962Smpac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743131962Smpac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744131962Smpac_compiler_gnu=$ac_cv_c_compiler_gnu
3745131962Smp
3746131962Smpac_ext=c
3747131962Smpac_cpp='$CPP $CPPFLAGS'
3748131962Smpac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749131962Smpac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750131962Smpac_compiler_gnu=$ac_cv_c_compiler_gnu
3751232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3752232633Smp$as_echo_n "checking how to run the C preprocessor... " >&6; }
375369408Sache# On Suns, sometimes $CPP names a directory.
375469408Sacheif test -n "$CPP" && test -d "$CPP"; then
375569408Sache  CPP=
375669408Sachefi
375769408Sacheif test -z "$CPP"; then
3758232633Smp  if ${ac_cv_prog_CPP+:} false; then :
3759232633Smp  $as_echo_n "(cached) " >&6
376069408Sacheelse
3761131962Smp      # Double quotes because CPP needs to be expanded
3762131962Smp    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3763131962Smp    do
3764131962Smp      ac_preproc_ok=false
3765131962Smpfor ac_c_preproc_warn_flag in '' yes
3766131962Smpdo
3767131962Smp  # Use a header file that comes with gcc, so configuring glibc
3768131962Smp  # with a fresh cross-compiler works.
3769131962Smp  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770131962Smp  # <limits.h> exists even on freestanding compilers.
377169408Sache  # On the NeXT, cc -E runs the code through the compiler's parser,
3772131962Smp  # not just through cpp. "Syntax error" is here to catch this case.
3773232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774131962Smp/* end confdefs.h.  */
3775131962Smp#ifdef __STDC__
3776131962Smp# include <limits.h>
3777131962Smp#else
3778131962Smp# include <assert.h>
3779131962Smp#endif
3780145479Smp		     Syntax error
3781131962Smp_ACEOF
3782232633Smpif ac_fn_c_try_cpp "$LINENO"; then :
3783232633Smp
378469408Sacheelse
3785131962Smp  # Broken: fails on valid input.
3786131962Smpcontinue
3787131962Smpfi
3788232633Smprm -f conftest.err conftest.i conftest.$ac_ext
3789195609Smp
3790195609Smp  # OK, works on sane cases.  Now check whether nonexistent headers
3791131962Smp  # can be detected and how.
3792232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793131962Smp/* end confdefs.h.  */
3794131962Smp#include <ac_nonexistent.h>
3795131962Smp_ACEOF
3796232633Smpif ac_fn_c_try_cpp "$LINENO"; then :
3797131962Smp  # Broken: success on invalid input.
3798131962Smpcontinue
3799131962Smpelse
3800131962Smp  # Passes both tests.
3801131962Smpac_preproc_ok=:
3802131962Smpbreak
3803131962Smpfi
3804232633Smprm -f conftest.err conftest.i conftest.$ac_ext
3805195609Smp
3806131962Smpdone
3807131962Smp# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808232633Smprm -f conftest.i conftest.err conftest.$ac_ext
3809232633Smpif $ac_preproc_ok; then :
3810131962Smp  break
3811131962Smpfi
3812131962Smp
3813131962Smp    done
3814131962Smp    ac_cv_prog_CPP=$CPP
3815131962Smp
3816131962Smpfi
3817131962Smp  CPP=$ac_cv_prog_CPP
3818131962Smpelse
3819131962Smp  ac_cv_prog_CPP=$CPP
3820131962Smpfi
3821232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3822232633Smp$as_echo "$CPP" >&6; }
3823131962Smpac_preproc_ok=false
3824131962Smpfor ac_c_preproc_warn_flag in '' yes
3825131962Smpdo
3826131962Smp  # Use a header file that comes with gcc, so configuring glibc
3827131962Smp  # with a fresh cross-compiler works.
3828131962Smp  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829131962Smp  # <limits.h> exists even on freestanding compilers.
3830131962Smp  # On the NeXT, cc -E runs the code through the compiler's parser,
3831131962Smp  # not just through cpp. "Syntax error" is here to catch this case.
3832232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833131962Smp/* end confdefs.h.  */
3834131962Smp#ifdef __STDC__
3835131962Smp# include <limits.h>
3836131962Smp#else
3837131962Smp# include <assert.h>
3838131962Smp#endif
3839145479Smp		     Syntax error
3840131962Smp_ACEOF
3841232633Smpif ac_fn_c_try_cpp "$LINENO"; then :
3842232633Smp
384369408Sacheelse
3844131962Smp  # Broken: fails on valid input.
3845131962Smpcontinue
384669408Sachefi
3847232633Smprm -f conftest.err conftest.i conftest.$ac_ext
3848195609Smp
3849195609Smp  # OK, works on sane cases.  Now check whether nonexistent headers
3850131962Smp  # can be detected and how.
3851232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852131962Smp/* end confdefs.h.  */
3853131962Smp#include <ac_nonexistent.h>
3854131962Smp_ACEOF
3855232633Smpif ac_fn_c_try_cpp "$LINENO"; then :
3856131962Smp  # Broken: success on invalid input.
3857131962Smpcontinue
3858131962Smpelse
3859131962Smp  # Passes both tests.
3860131962Smpac_preproc_ok=:
3861131962Smpbreak
386269408Sachefi
3863232633Smprm -f conftest.err conftest.i conftest.$ac_ext
3864195609Smp
3865131962Smpdone
3866131962Smp# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867232633Smprm -f conftest.i conftest.err conftest.$ac_ext
3868232633Smpif $ac_preproc_ok; then :
3869232633Smp
3870131962Smpelse
3871232633Smp  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872232633Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873232633Smpas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3874232633SmpSee \`config.log' for more details" "$LINENO" 5; }
387569408Sachefi
3876131962Smp
3877131962Smpac_ext=c
3878131962Smpac_cpp='$CPP $CPPFLAGS'
3879131962Smpac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880131962Smpac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881131962Smpac_compiler_gnu=$ac_cv_c_compiler_gnu
3882131962Smp
3883131962Smp
3884131962Smp
3885232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3886232633Smp$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3887232633Smpif ${ac_cv_path_GREP+:} false; then :
3888232633Smp  $as_echo_n "(cached) " >&6
388969408Sacheelse
3890232633Smp  if test -z "$GREP"; then
3891195609Smp  ac_path_GREP_found=false
3892232633Smp  # Loop through the user's path and test for each of PROGNAME-LIST
3893232633Smp  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894195609Smpfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895195609Smpdo
3896195609Smp  IFS=$as_save_IFS
3897195609Smp  test -z "$as_dir" && as_dir=.
3898232633Smp    for ac_prog in grep ggrep; do
3899232633Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3900232633Smp      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3901232633Smp      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3902232633Smp# Check for GNU ac_path_GREP and select it if it is found.
3903195609Smp  # Check for GNU $ac_path_GREP
3904195609Smpcase `"$ac_path_GREP" --version 2>&1` in
3905195609Smp*GNU*)
3906195609Smp  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3907195609Smp*)
3908195609Smp  ac_count=0
3909232633Smp  $as_echo_n 0123456789 >"conftest.in"
3910195609Smp  while :
3911195609Smp  do
3912195609Smp    cat "conftest.in" "conftest.in" >"conftest.tmp"
3913195609Smp    mv "conftest.tmp" "conftest.in"
3914195609Smp    cp "conftest.in" "conftest.nl"
3915232633Smp    $as_echo 'GREP' >> "conftest.nl"
3916195609Smp    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3917195609Smp    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3918232633Smp    as_fn_arith $ac_count + 1 && ac_count=$as_val
3919195609Smp    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3920195609Smp      # Best one so far, save it but keep looking for a better one
3921195609Smp      ac_cv_path_GREP="$ac_path_GREP"
3922195609Smp      ac_path_GREP_max=$ac_count
3923131962Smp    fi
3924195609Smp    # 10*(2^10) chars as input seems more than enough
3925195609Smp    test $ac_count -gt 10 && break
3926195609Smp  done
3927195609Smp  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3928195609Smpesac
3929195609Smp
3930232633Smp      $ac_path_GREP_found && break 3
3931232633Smp    done
3932195609Smp  done
3933232633Smp  done
3934195609SmpIFS=$as_save_IFS
3935232633Smp  if test -z "$ac_cv_path_GREP"; then
3936232633Smp    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3937232633Smp  fi
3938195609Smpelse
3939195609Smp  ac_cv_path_GREP=$GREP
3940195609Smpfi
3941195609Smp
3942195609Smpfi
3943232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3944232633Smp$as_echo "$ac_cv_path_GREP" >&6; }
3945195609Smp GREP="$ac_cv_path_GREP"
3946195609Smp
3947195609Smp
3948232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3949232633Smp$as_echo_n "checking for egrep... " >&6; }
3950232633Smpif ${ac_cv_path_EGREP+:} false; then :
3951232633Smp  $as_echo_n "(cached) " >&6
3952195609Smpelse
3953195609Smp  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3954195609Smp   then ac_cv_path_EGREP="$GREP -E"
3955195609Smp   else
3956232633Smp     if test -z "$EGREP"; then
3957195609Smp  ac_path_EGREP_found=false
3958232633Smp  # Loop through the user's path and test for each of PROGNAME-LIST
3959232633Smp  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960195609Smpfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961195609Smpdo
3962195609Smp  IFS=$as_save_IFS
3963195609Smp  test -z "$as_dir" && as_dir=.
3964232633Smp    for ac_prog in egrep; do
3965232633Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3966232633Smp      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3967232633Smp      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3968232633Smp# Check for GNU ac_path_EGREP and select it if it is found.
3969195609Smp  # Check for GNU $ac_path_EGREP
3970195609Smpcase `"$ac_path_EGREP" --version 2>&1` in
3971195609Smp*GNU*)
3972195609Smp  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3973195609Smp*)
3974195609Smp  ac_count=0
3975232633Smp  $as_echo_n 0123456789 >"conftest.in"
3976195609Smp  while :
3977195609Smp  do
3978195609Smp    cat "conftest.in" "conftest.in" >"conftest.tmp"
3979195609Smp    mv "conftest.tmp" "conftest.in"
3980195609Smp    cp "conftest.in" "conftest.nl"
3981232633Smp    $as_echo 'EGREP' >> "conftest.nl"
3982195609Smp    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983195609Smp    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984232633Smp    as_fn_arith $ac_count + 1 && ac_count=$as_val
3985195609Smp    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3986195609Smp      # Best one so far, save it but keep looking for a better one
3987195609Smp      ac_cv_path_EGREP="$ac_path_EGREP"
3988195609Smp      ac_path_EGREP_max=$ac_count
3989195609Smp    fi
3990195609Smp    # 10*(2^10) chars as input seems more than enough
3991195609Smp    test $ac_count -gt 10 && break
3992195609Smp  done
3993195609Smp  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994195609Smpesac
3995195609Smp
3996232633Smp      $ac_path_EGREP_found && break 3
3997232633Smp    done
3998195609Smp  done
3999232633Smp  done
4000195609SmpIFS=$as_save_IFS
4001232633Smp  if test -z "$ac_cv_path_EGREP"; then
4002232633Smp    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4003232633Smp  fi
4004195609Smpelse
4005195609Smp  ac_cv_path_EGREP=$EGREP
4006195609Smpfi
4007195609Smp
4008195609Smp   fi
4009195609Smpfi
4010232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4011232633Smp$as_echo "$ac_cv_path_EGREP" >&6; }
4012195609Smp EGREP="$ac_cv_path_EGREP"
4013195609Smp
4014195609Smp
4015131962Smpif test $ac_cv_c_compiler_gnu = yes; then
4016232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4017232633Smp$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4018232633Smpif ${ac_cv_prog_gcc_traditional+:} false; then :
4019232633Smp  $as_echo_n "(cached) " >&6
402069408Sacheelse
402169408Sache    ac_pattern="Autoconf.*'x'"
4022232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023131962Smp/* end confdefs.h.  */
402469408Sache#include <sgtty.h>
402569408SacheAutoconf TIOCGETP
4026131962Smp_ACEOF
402769408Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4028232633Smp  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
402969408Sache  ac_cv_prog_gcc_traditional=yes
403069408Sacheelse
403169408Sache  ac_cv_prog_gcc_traditional=no
403269408Sachefi
403369408Sacherm -f conftest*
403469408Sache
403569408Sache
403669408Sache  if test $ac_cv_prog_gcc_traditional = no; then
4037232633Smp    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038131962Smp/* end confdefs.h.  */
403969408Sache#include <termio.h>
404069408SacheAutoconf TCGETA
4041131962Smp_ACEOF
404269408Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4043232633Smp  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
404469408Sache  ac_cv_prog_gcc_traditional=yes
404569408Sachefi
404669408Sacherm -f conftest*
404769408Sache
404869408Sache  fi
404969408Sachefi
4050232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4051232633Smp$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
405269408Sache  if test $ac_cv_prog_gcc_traditional = yes; then
405369408Sache    CC="$CC -traditional"
405469408Sache  fi
405569408Sachefi
405669408Sache
405769408Sache
4058232633Smp# Extract the first word of "gencat", so it can be a program name with args.
4059232633Smpset dummy gencat; ac_word=$2
4060232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061232633Smp$as_echo_n "checking for $ac_word... " >&6; }
4062232633Smpif ${ac_cv_path_GENCAT+:} false; then :
4063232633Smp  $as_echo_n "(cached) " >&6
4064232633Smpelse
4065232633Smp  case $GENCAT in
4066232633Smp  [\\/]* | ?:[\\/]*)
4067232633Smp  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
4068232633Smp  ;;
4069232633Smp  *)
4070232633Smp  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071232633Smpfor as_dir in $PATH
4072232633Smpdo
4073232633Smp  IFS=$as_save_IFS
4074232633Smp  test -z "$as_dir" && as_dir=.
4075232633Smp    for ac_exec_ext in '' $ac_executable_extensions; do
4076232633Smp  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077232633Smp    ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
4078232633Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079232633Smp    break 2
4080232633Smp  fi
4081232633Smpdone
4082232633Smp  done
4083232633SmpIFS=$as_save_IFS
4084232633Smp
4085232633Smp  ;;
4086232633Smpesac
4087232633Smpfi
4088232633SmpGENCAT=$ac_cv_path_GENCAT
4089232633Smpif test -n "$GENCAT"; then
4090232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCAT" >&5
4091232633Smp$as_echo "$GENCAT" >&6; }
4092232633Smpelse
4093232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094232633Smp$as_echo "no" >&6; }
4095232633Smpfi
4096232633Smp
4097232633Smp
4098232633Smp
4099232633Smpif test "x${cross_compiling}" = xyes ; then
4100232633Smp  CC_FOR_GETHOST="cc"
4101232633Smpelse
4102232633Smp  CC_FOR_GETHOST="\$(CC)"
4103232633Smpfi
4104232633Smp
4105232633Smp
4106145479Smpif test "x$GCC" != xyes ; then
410769408Sache  DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
410869408Sache  CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
410969408Sachefi
411069408Sache
4111232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4112232633Smp$as_echo_n "checking for library containing crypt... " >&6; }
4113232633Smpif ${ac_cv_search_crypt+:} false; then :
4114232633Smp  $as_echo_n "(cached) " >&6
4115131962Smpelse
4116131962Smp  ac_func_search_save_LIBS=$LIBS
4117232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118131962Smp/* end confdefs.h.  */
411969408Sache
4120195609Smp/* Override any GCC internal prototype to avoid an error.
4121195609Smp   Use char because int might match the return type of a GCC
4122195609Smp   builtin and then its argument prototype would still apply.  */
4123131962Smp#ifdef __cplusplus
4124131962Smpextern "C"
4125131962Smp#endif
4126131962Smpchar crypt ();
4127131962Smpint
4128131962Smpmain ()
4129131962Smp{
4130195609Smpreturn crypt ();
4131131962Smp  ;
4132131962Smp  return 0;
4133131962Smp}
4134131962Smp_ACEOF
4135195609Smpfor ac_lib in '' crypt; do
4136195609Smp  if test -z "$ac_lib"; then
4137195609Smp    ac_res="none required"
4138195609Smp  else
4139195609Smp    ac_res=-l$ac_lib
4140195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4141195609Smp  fi
4142232633Smp  if ac_fn_c_try_link "$LINENO"; then :
4143195609Smp  ac_cv_search_crypt=$ac_res
414469408Sachefi
4145232633Smprm -f core conftest.err conftest.$ac_objext \
4146232633Smp    conftest$ac_exeext
4147232633Smp  if ${ac_cv_search_crypt+:} false; then :
4148195609Smp  break
4149195609Smpfi
4150195609Smpdone
4151232633Smpif ${ac_cv_search_crypt+:} false; then :
4152232633Smp
415369408Sacheelse
4154195609Smp  ac_cv_search_crypt=no
415569408Sachefi
4156195609Smprm conftest.$ac_ext
4157131962SmpLIBS=$ac_func_search_save_LIBS
4158131962Smpfi
4159232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4160232633Smp$as_echo "$ac_cv_search_crypt" >&6; }
4161195609Smpac_res=$ac_cv_search_crypt
4162232633Smpif test "$ac_res" != no; then :
4163195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
416469408Sache
416569408Sachefi
416669408Sache
4167232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
4168232633Smp$as_echo_n "checking for library containing getspnam... " >&6; }
4169232633Smpif ${ac_cv_search_getspnam+:} false; then :
4170232633Smp  $as_echo_n "(cached) " >&6
4171145479Smpelse
4172145479Smp  ac_func_search_save_LIBS=$LIBS
4173232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174145479Smp/* end confdefs.h.  */
4175145479Smp
4176195609Smp/* Override any GCC internal prototype to avoid an error.
4177195609Smp   Use char because int might match the return type of a GCC
4178195609Smp   builtin and then its argument prototype would still apply.  */
4179145479Smp#ifdef __cplusplus
4180145479Smpextern "C"
4181145479Smp#endif
4182145479Smpchar getspnam ();
4183145479Smpint
4184145479Smpmain ()
4185145479Smp{
4186195609Smpreturn getspnam ();
4187145479Smp  ;
4188145479Smp  return 0;
4189145479Smp}
4190145479Smp_ACEOF
4191195609Smpfor ac_lib in '' sec; do
4192195609Smp  if test -z "$ac_lib"; then
4193195609Smp    ac_res="none required"
4194195609Smp  else
4195195609Smp    ac_res=-l$ac_lib
4196195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4197195609Smp  fi
4198232633Smp  if ac_fn_c_try_link "$LINENO"; then :
4199195609Smp  ac_cv_search_getspnam=$ac_res
4200145479Smpfi
4201232633Smprm -f core conftest.err conftest.$ac_objext \
4202232633Smp    conftest$ac_exeext
4203232633Smp  if ${ac_cv_search_getspnam+:} false; then :
4204195609Smp  break
4205195609Smpfi
4206195609Smpdone
4207232633Smpif ${ac_cv_search_getspnam+:} false; then :
4208232633Smp
4209145479Smpelse
4210195609Smp  ac_cv_search_getspnam=no
4211145479Smpfi
4212195609Smprm conftest.$ac_ext
4213145479SmpLIBS=$ac_func_search_save_LIBS
4214145479Smpfi
4215232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
4216232633Smp$as_echo "$ac_cv_search_getspnam" >&6; }
4217195609Smpac_res=$ac_cv_search_getspnam
4218232633Smpif test "$ac_res" != no; then :
4219195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4220145479Smp
4221145479Smpfi
4222145479Smp
4223232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
4224232633Smp$as_echo_n "checking for library containing tgetent... " >&6; }
4225232633Smpif ${ac_cv_search_tgetent+:} false; then :
4226232633Smp  $as_echo_n "(cached) " >&6
422769408Sacheelse
4228131962Smp  ac_func_search_save_LIBS=$LIBS
4229232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230131962Smp/* end confdefs.h.  */
4231131962Smp
4232195609Smp/* Override any GCC internal prototype to avoid an error.
4233195609Smp   Use char because int might match the return type of a GCC
4234195609Smp   builtin and then its argument prototype would still apply.  */
4235131962Smp#ifdef __cplusplus
4236131962Smpextern "C"
4237131962Smp#endif
4238131962Smpchar tgetent ();
4239131962Smpint
4240131962Smpmain ()
4241131962Smp{
4242195609Smpreturn tgetent ();
4243131962Smp  ;
4244131962Smp  return 0;
4245131962Smp}
4246131962Smp_ACEOF
4247195609Smpfor ac_lib in '' termlib termcap curses ncurses; do
4248195609Smp  if test -z "$ac_lib"; then
4249195609Smp    ac_res="none required"
4250195609Smp  else
4251195609Smp    ac_res=-l$ac_lib
4252195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4253195609Smp  fi
4254232633Smp  if ac_fn_c_try_link "$LINENO"; then :
4255195609Smp  ac_cv_search_tgetent=$ac_res
425669408Sachefi
4257232633Smprm -f core conftest.err conftest.$ac_objext \
4258232633Smp    conftest$ac_exeext
4259232633Smp  if ${ac_cv_search_tgetent+:} false; then :
4260195609Smp  break
4261195609Smpfi
4262195609Smpdone
4263232633Smpif ${ac_cv_search_tgetent+:} false; then :
4264232633Smp
426569408Sacheelse
4266195609Smp  ac_cv_search_tgetent=no
426769408Sachefi
4268195609Smprm conftest.$ac_ext
4269131962SmpLIBS=$ac_func_search_save_LIBS
4270131962Smpfi
4271232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
4272232633Smp$as_echo "$ac_cv_search_tgetent" >&6; }
4273195609Smpac_res=$ac_cv_search_tgetent
4274232633Smpif test "$ac_res" != no; then :
4275195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
427669408Sache
427769408Sachefi
427869408Sache
4279232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4280232633Smp$as_echo_n "checking for library containing gethostbyname... " >&6; }
4281232633Smpif ${ac_cv_search_gethostbyname+:} false; then :
4282232633Smp  $as_echo_n "(cached) " >&6
428369408Sacheelse
4284131962Smp  ac_func_search_save_LIBS=$LIBS
4285232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286131962Smp/* end confdefs.h.  */
4287131962Smp
4288195609Smp/* Override any GCC internal prototype to avoid an error.
4289195609Smp   Use char because int might match the return type of a GCC
4290195609Smp   builtin and then its argument prototype would still apply.  */
4291131962Smp#ifdef __cplusplus
4292131962Smpextern "C"
4293131962Smp#endif
4294131962Smpchar gethostbyname ();
4295131962Smpint
4296131962Smpmain ()
4297131962Smp{
4298195609Smpreturn gethostbyname ();
4299131962Smp  ;
4300131962Smp  return 0;
4301131962Smp}
4302131962Smp_ACEOF
4303195609Smpfor ac_lib in '' nsl; do
4304195609Smp  if test -z "$ac_lib"; then
4305195609Smp    ac_res="none required"
4306195609Smp  else
4307195609Smp    ac_res=-l$ac_lib
4308195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4309195609Smp  fi
4310232633Smp  if ac_fn_c_try_link "$LINENO"; then :
4311195609Smp  ac_cv_search_gethostbyname=$ac_res
431269408Sachefi
4313232633Smprm -f core conftest.err conftest.$ac_objext \
4314232633Smp    conftest$ac_exeext
4315232633Smp  if ${ac_cv_search_gethostbyname+:} false; then :
4316195609Smp  break
4317195609Smpfi
4318195609Smpdone
4319232633Smpif ${ac_cv_search_gethostbyname+:} false; then :
4320232633Smp
432169408Sacheelse
4322195609Smp  ac_cv_search_gethostbyname=no
432369408Sachefi
4324195609Smprm conftest.$ac_ext
4325131962SmpLIBS=$ac_func_search_save_LIBS
4326131962Smpfi
4327232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4328232633Smp$as_echo "$ac_cv_search_gethostbyname" >&6; }
4329195609Smpac_res=$ac_cv_search_gethostbyname
4330232633Smpif test "$ac_res" != no; then :
4331195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
433269408Sache
433369408Sachefi
433469408Sache
4335232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
4336232633Smp$as_echo_n "checking for library containing connect... " >&6; }
4337232633Smpif ${ac_cv_search_connect+:} false; then :
4338232633Smp  $as_echo_n "(cached) " >&6
433969408Sacheelse
4340131962Smp  ac_func_search_save_LIBS=$LIBS
4341232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342131962Smp/* end confdefs.h.  */
4343131962Smp
4344195609Smp/* Override any GCC internal prototype to avoid an error.
4345195609Smp   Use char because int might match the return type of a GCC
4346195609Smp   builtin and then its argument prototype would still apply.  */
4347131962Smp#ifdef __cplusplus
4348131962Smpextern "C"
4349131962Smp#endif
4350131962Smpchar connect ();
4351131962Smpint
4352131962Smpmain ()
4353131962Smp{
4354195609Smpreturn connect ();
4355131962Smp  ;
4356131962Smp  return 0;
4357131962Smp}
4358131962Smp_ACEOF
4359195609Smpfor ac_lib in '' socket; do
4360195609Smp  if test -z "$ac_lib"; then
4361195609Smp    ac_res="none required"
4362195609Smp  else
4363195609Smp    ac_res=-l$ac_lib
4364195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4365195609Smp  fi
4366232633Smp  if ac_fn_c_try_link "$LINENO"; then :
4367195609Smp  ac_cv_search_connect=$ac_res
4368232633Smpfi
4369232633Smprm -f core conftest.err conftest.$ac_objext \
4370232633Smp    conftest$ac_exeext
4371232633Smp  if ${ac_cv_search_connect+:} false; then :
4372232633Smp  break
4373232633Smpfi
4374232633Smpdone
4375232633Smpif ${ac_cv_search_connect+:} false; then :
4376232633Smp
437769408Sacheelse
4378232633Smp  ac_cv_search_connect=no
4379232633Smpfi
4380232633Smprm conftest.$ac_ext
4381232633SmpLIBS=$ac_func_search_save_LIBS
4382232633Smpfi
4383232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
4384232633Smp$as_echo "$ac_cv_search_connect" >&6; }
4385232633Smpac_res=$ac_cv_search_connect
4386232633Smpif test "$ac_res" != no; then :
4387232633Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4388131962Smp
4389232633Smpfi
4390195609Smp
4391232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing catgets" >&5
4392232633Smp$as_echo_n "checking for library containing catgets... " >&6; }
4393232633Smpif ${ac_cv_search_catgets+:} false; then :
4394232633Smp  $as_echo_n "(cached) " >&6
4395232633Smpelse
4396232633Smp  ac_func_search_save_LIBS=$LIBS
4397232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398232633Smp/* end confdefs.h.  */
4399232633Smp
4400232633Smp/* Override any GCC internal prototype to avoid an error.
4401232633Smp   Use char because int might match the return type of a GCC
4402232633Smp   builtin and then its argument prototype would still apply.  */
4403232633Smp#ifdef __cplusplus
4404232633Smpextern "C"
4405232633Smp#endif
4406232633Smpchar catgets ();
4407232633Smpint
4408232633Smpmain ()
4409232633Smp{
4410232633Smpreturn catgets ();
4411232633Smp  ;
4412232633Smp  return 0;
4413232633Smp}
4414232633Smp_ACEOF
4415232633Smpfor ac_lib in '' catgets; do
4416232633Smp  if test -z "$ac_lib"; then
4417232633Smp    ac_res="none required"
4418232633Smp  else
4419232633Smp    ac_res=-l$ac_lib
4420232633Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4421232633Smp  fi
4422232633Smp  if ac_fn_c_try_link "$LINENO"; then :
4423232633Smp  ac_cv_search_catgets=$ac_res
442469408Sachefi
4425232633Smprm -f core conftest.err conftest.$ac_objext \
4426232633Smp    conftest$ac_exeext
4427232633Smp  if ${ac_cv_search_catgets+:} false; then :
4428195609Smp  break
4429195609Smpfi
4430195609Smpdone
4431232633Smpif ${ac_cv_search_catgets+:} false; then :
4432232633Smp
443369408Sacheelse
4434232633Smp  ac_cv_search_catgets=no
443569408Sachefi
4436195609Smprm conftest.$ac_ext
4437131962SmpLIBS=$ac_func_search_save_LIBS
4438131962Smpfi
4439232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_catgets" >&5
4440232633Smp$as_echo "$ac_cv_search_catgets" >&6; }
4441232633Smpac_res=$ac_cv_search_catgets
4442232633Smpif test "$ac_res" != no; then :
4443195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
444469408Sache
444569408Sachefi
444669408Sache
4447167465Smp
4448167465Smp      if test "X$prefix" = "XNONE"; then
4449167465Smp    acl_final_prefix="$ac_default_prefix"
4450167465Smp  else
4451167465Smp    acl_final_prefix="$prefix"
4452167465Smp  fi
4453167465Smp  if test "X$exec_prefix" = "XNONE"; then
4454167465Smp    acl_final_exec_prefix='${prefix}'
4455167465Smp  else
4456167465Smp    acl_final_exec_prefix="$exec_prefix"
4457167465Smp  fi
4458167465Smp  acl_save_prefix="$prefix"
4459167465Smp  prefix="$acl_final_prefix"
4460167465Smp  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4461167465Smp  prefix="$acl_save_prefix"
4462167465Smp
4463167465Smp
4464195609Smp# Check whether --with-gnu-ld was given.
4465232633Smpif test "${with_gnu_ld+set}" = set; then :
4466195609Smp  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4467167465Smpelse
4468167465Smp  with_gnu_ld=no
4469195609Smpfi
4470195609Smp
4471167465Smp# Prepare PATH_SEPARATOR.
4472167465Smp# The user is always right.
4473167465Smpif test "${PATH_SEPARATOR+set}" != set; then
4474167465Smp  echo "#! /bin/sh" >conf$$.sh
4475167465Smp  echo  "exit 0"   >>conf$$.sh
4476167465Smp  chmod +x conf$$.sh
4477167465Smp  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4478167465Smp    PATH_SEPARATOR=';'
4479167465Smp  else
4480167465Smp    PATH_SEPARATOR=:
4481167465Smp  fi
4482167465Smp  rm -f conf$$.sh
4483167465Smpfi
4484167465Smpac_prog=ld
4485167465Smpif test "$GCC" = yes; then
4486167465Smp  # Check if gcc -print-prog-name=ld gives a path.
4487232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4488232633Smp$as_echo_n "checking for ld used by GCC... " >&6; }
4489167465Smp  case $host in
4490167465Smp  *-*-mingw*)
4491167465Smp    # gcc leaves a trailing carriage return which upsets mingw
4492167465Smp    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4493167465Smp  *)
4494167465Smp    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4495167465Smp  esac
4496167465Smp  case $ac_prog in
4497167465Smp    # Accept absolute paths.
4498167465Smp    [\\/]* | [A-Za-z]:[\\/]*)
4499167465Smp      re_direlt='/[^/][^/]*/\.\./'
4500167465Smp      # Canonicalize the path of ld
4501167465Smp      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4502167465Smp      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4503232633Smp        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4504167465Smp      done
4505167465Smp      test -z "$LD" && LD="$ac_prog"
4506167465Smp      ;;
4507167465Smp  "")
4508167465Smp    # If it fails, then pretend we aren't using GCC.
4509167465Smp    ac_prog=ld
4510167465Smp    ;;
4511167465Smp  *)
4512167465Smp    # If it is relative, then search for the first ld in PATH.
4513167465Smp    with_gnu_ld=unknown
4514167465Smp    ;;
4515167465Smp  esac
4516167465Smpelif test "$with_gnu_ld" = yes; then
4517232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4518232633Smp$as_echo_n "checking for GNU ld... " >&6; }
4519167465Smpelse
4520232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4521232633Smp$as_echo_n "checking for non-GNU ld... " >&6; }
4522167465Smpfi
4523232633Smpif ${acl_cv_path_LD+:} false; then :
4524232633Smp  $as_echo_n "(cached) " >&6
4525145479Smpelse
4526167465Smp  if test -z "$LD"; then
4527167465Smp  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4528167465Smp  for ac_dir in $PATH; do
4529167465Smp    test -z "$ac_dir" && ac_dir=.
4530167465Smp    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4531167465Smp      acl_cv_path_LD="$ac_dir/$ac_prog"
4532167465Smp      # Check to see if the program is GNU ld.  I'd rather use --version,
4533167465Smp      # but apparently some GNU ld's only accept -v.
4534167465Smp      # Break only if it was the GNU/non-GNU ld that we prefer.
4535167465Smp      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4536167465Smp      *GNU* | *'with BFD'*)
4537232633Smp        test "$with_gnu_ld" != no && break ;;
4538167465Smp      *)
4539232633Smp        test "$with_gnu_ld" != yes && break ;;
4540167465Smp      esac
4541167465Smp    fi
4542167465Smp  done
4543167465Smp  IFS="$ac_save_ifs"
4544167465Smpelse
4545167465Smp  acl_cv_path_LD="$LD" # Let the user override the test with a path.
4546167465Smpfi
4547167465Smpfi
4548167465Smp
4549167465SmpLD="$acl_cv_path_LD"
4550167465Smpif test -n "$LD"; then
4551232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4552232633Smp$as_echo "$LD" >&6; }
4553167465Smpelse
4554232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555232633Smp$as_echo "no" >&6; }
4556167465Smpfi
4557232633Smptest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4558232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4559232633Smp$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4560232633Smpif ${acl_cv_prog_gnu_ld+:} false; then :
4561232633Smp  $as_echo_n "(cached) " >&6
4562167465Smpelse
4563167465Smp  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4564167465Smpcase `$LD -v 2>&1 </dev/null` in
4565167465Smp*GNU* | *'with BFD'*)
4566167465Smp  acl_cv_prog_gnu_ld=yes ;;
4567167465Smp*)
4568167465Smp  acl_cv_prog_gnu_ld=no ;;
4569167465Smpesac
4570167465Smpfi
4571232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4572232633Smp$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4573167465Smpwith_gnu_ld=$acl_cv_prog_gnu_ld
4574167465Smp
4575167465Smp
4576167465Smp
4577167465Smp
4578232633Smp                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4579232633Smp$as_echo_n "checking for shared library run path origin... " >&6; }
4580232633Smpif ${acl_cv_rpath+:} false; then :
4581232633Smp  $as_echo_n "(cached) " >&6
4582167465Smpelse
4583167465Smp
4584167465Smp    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4585167465Smp    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4586167465Smp    . ./conftest.sh
4587167465Smp    rm -f ./conftest.sh
4588167465Smp    acl_cv_rpath=done
4589167465Smp
4590167465Smpfi
4591232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4592232633Smp$as_echo "$acl_cv_rpath" >&6; }
4593167465Smp  wl="$acl_cv_wl"
4594232633Smp  acl_libext="$acl_cv_libext"
4595232633Smp  acl_shlibext="$acl_cv_shlibext"
4596232633Smp  acl_libname_spec="$acl_cv_libname_spec"
4597232633Smp  acl_library_names_spec="$acl_cv_library_names_spec"
4598232633Smp  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4599232633Smp  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4600232633Smp  acl_hardcode_direct="$acl_cv_hardcode_direct"
4601232633Smp  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4602195609Smp    # Check whether --enable-rpath was given.
4603232633Smpif test "${enable_rpath+set}" = set; then :
4604195609Smp  enableval=$enable_rpath; :
4605167465Smpelse
4606167465Smp  enable_rpath=yes
4607195609Smpfi
4608167465Smp
4609167465Smp
4610167465Smp
4611167465Smp
4612232633Smp  acl_libdirstem=lib
4613232633Smp  acl_libdirstem2=
4614232633Smp  case "$host_os" in
4615232633Smp    solaris*)
4616232633Smp                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4617232633Smp$as_echo_n "checking for 64-bit host... " >&6; }
4618232633Smpif ${gl_cv_solaris_64bit+:} false; then :
4619232633Smp  $as_echo_n "(cached) " >&6
4620232633Smpelse
4621232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622232633Smp/* end confdefs.h.  */
4623167465Smp
4624232633Smp#ifdef _LP64
4625232633Smpsixtyfour bits
4626232633Smp#endif
4627167465Smp
4628232633Smp_ACEOF
4629232633Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630232633Smp  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4631232633Smp  gl_cv_solaris_64bit=yes
4632232633Smpelse
4633232633Smp  gl_cv_solaris_64bit=no
4634232633Smpfi
4635232633Smprm -f conftest*
4636167465Smp
4637195609Smp
4638232633Smpfi
4639232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4640232633Smp$as_echo "$gl_cv_solaris_64bit" >&6; }
4641232633Smp      if test $gl_cv_solaris_64bit = yes; then
4642232633Smp        acl_libdirstem=lib/64
4643232633Smp        case "$host_cpu" in
4644232633Smp          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
4645232633Smp          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4646232633Smp        esac
4647232633Smp      fi
4648232633Smp      ;;
4649232633Smp    *)
4650232633Smp      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4651232633Smp      if test -n "$searchpath"; then
4652232633Smp        acl_save_IFS="${IFS= 	}"; IFS=":"
4653232633Smp        for searchdir in $searchpath; do
4654232633Smp          if test -d "$searchdir"; then
4655232633Smp            case "$searchdir" in
4656232633Smp              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4657232633Smp              */../ | */.. )
4658232633Smp                # Better ignore directories of this form. They are misleading.
4659232633Smp                ;;
4660232633Smp              *) searchdir=`cd "$searchdir" && pwd`
4661232633Smp                 case "$searchdir" in
4662232633Smp                   */lib64 ) acl_libdirstem=lib64 ;;
4663232633Smp                 esac ;;
4664232633Smp            esac
4665232633Smp          fi
4666232633Smp        done
4667232633Smp        IFS="$acl_save_IFS"
4668232633Smp      fi
4669232633Smp      ;;
4670232633Smp  esac
4671232633Smp  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4672232633Smp
4673232633Smp
4674232633Smp
4675232633Smp
4676232633Smp
4677232633Smp
4678232633Smp
4679232633Smp
4680232633Smp
4681232633Smp
4682232633Smp
4683232633Smp
4684167465Smp    use_additional=yes
4685167465Smp
4686167465Smp  acl_save_prefix="$prefix"
4687167465Smp  prefix="$acl_final_prefix"
4688167465Smp  acl_save_exec_prefix="$exec_prefix"
4689167465Smp  exec_prefix="$acl_final_exec_prefix"
4690167465Smp
4691167465Smp    eval additional_includedir=\"$includedir\"
4692167465Smp    eval additional_libdir=\"$libdir\"
4693167465Smp
4694167465Smp  exec_prefix="$acl_save_exec_prefix"
4695167465Smp  prefix="$acl_save_prefix"
4696167465Smp
4697167465Smp
4698195609Smp# Check whether --with-libiconv-prefix was given.
4699232633Smpif test "${with_libiconv_prefix+set}" = set; then :
4700195609Smp  withval=$with_libiconv_prefix;
4701167465Smp    if test "X$withval" = "Xno"; then
4702167465Smp      use_additional=no
4703167465Smp    else
4704167465Smp      if test "X$withval" = "X"; then
4705167465Smp
4706167465Smp  acl_save_prefix="$prefix"
4707167465Smp  prefix="$acl_final_prefix"
4708167465Smp  acl_save_exec_prefix="$exec_prefix"
4709167465Smp  exec_prefix="$acl_final_exec_prefix"
4710167465Smp
4711167465Smp          eval additional_includedir=\"$includedir\"
4712167465Smp          eval additional_libdir=\"$libdir\"
4713167465Smp
4714167465Smp  exec_prefix="$acl_save_exec_prefix"
4715167465Smp  prefix="$acl_save_prefix"
4716167465Smp
4717167465Smp      else
4718167465Smp        additional_includedir="$withval/include"
4719232633Smp        additional_libdir="$withval/$acl_libdirstem"
4720232633Smp        if test "$acl_libdirstem2" != "$acl_libdirstem" \
4721232633Smp           && ! test -d "$withval/$acl_libdirstem"; then
4722232633Smp          additional_libdir="$withval/$acl_libdirstem2"
4723232633Smp        fi
4724167465Smp      fi
4725167465Smp    fi
4726167465Smp
4727195609Smpfi
4728195609Smp
4729167465Smp      LIBICONV=
4730167465Smp  LTLIBICONV=
4731167465Smp  INCICONV=
4732232633Smp  LIBICONV_PREFIX=
4733232633Smp      HAVE_LIBICONV=
4734167465Smp  rpathdirs=
4735167465Smp  ltrpathdirs=
4736167465Smp  names_already_handled=
4737167465Smp  names_next_round='iconv '
4738167465Smp  while test -n "$names_next_round"; do
4739167465Smp    names_this_round="$names_next_round"
4740167465Smp    names_next_round=
4741167465Smp    for name in $names_this_round; do
4742167465Smp      already_handled=
4743167465Smp      for n in $names_already_handled; do
4744167465Smp        if test "$n" = "$name"; then
4745167465Smp          already_handled=yes
4746167465Smp          break
4747167465Smp        fi
4748167465Smp      done
4749167465Smp      if test -z "$already_handled"; then
4750167465Smp        names_already_handled="$names_already_handled $name"
4751167465Smp                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4752167465Smp        eval value=\"\$HAVE_LIB$uppername\"
4753167465Smp        if test -n "$value"; then
4754167465Smp          if test "$value" = yes; then
4755167465Smp            eval value=\"\$LIB$uppername\"
4756167465Smp            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4757167465Smp            eval value=\"\$LTLIB$uppername\"
4758167465Smp            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4759167465Smp          else
4760167465Smp                                    :
4761167465Smp          fi
4762167465Smp        else
4763167465Smp                              found_dir=
4764167465Smp          found_la=
4765167465Smp          found_so=
4766167465Smp          found_a=
4767232633Smp          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
4768232633Smp          if test -n "$acl_shlibext"; then
4769232633Smp            shrext=".$acl_shlibext"             # typically: shrext=.so
4770232633Smp          else
4771232633Smp            shrext=
4772232633Smp          fi
4773167465Smp          if test $use_additional = yes; then
4774232633Smp            dir="$additional_libdir"
4775232633Smp                                    if test -n "$acl_shlibext"; then
4776232633Smp              if test -f "$dir/$libname$shrext"; then
4777232633Smp                found_dir="$dir"
4778232633Smp                found_so="$dir/$libname$shrext"
4779232633Smp              else
4780232633Smp                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4781232633Smp                  ver=`(cd "$dir" && \
4782232633Smp                        for f in "$libname$shrext".*; do echo "$f"; done \
4783232633Smp                        | sed -e "s,^$libname$shrext\\\\.,," \
4784232633Smp                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4785232633Smp                        | sed 1q ) 2>/dev/null`
4786232633Smp                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4787232633Smp                    found_dir="$dir"
4788232633Smp                    found_so="$dir/$libname$shrext.$ver"
4789232633Smp                  fi
4790232633Smp                else
4791232633Smp                  eval library_names=\"$acl_library_names_spec\"
4792232633Smp                  for f in $library_names; do
4793232633Smp                    if test -f "$dir/$f"; then
4794232633Smp                      found_dir="$dir"
4795232633Smp                      found_so="$dir/$f"
4796232633Smp                      break
4797232633Smp                    fi
4798232633Smp                  done
4799167465Smp                fi
4800167465Smp              fi
4801167465Smp            fi
4802232633Smp                        if test "X$found_dir" = "X"; then
4803232633Smp              if test -f "$dir/$libname.$acl_libext"; then
4804232633Smp                found_dir="$dir"
4805232633Smp                found_a="$dir/$libname.$acl_libext"
4806232633Smp              fi
4807232633Smp            fi
4808232633Smp            if test "X$found_dir" != "X"; then
4809232633Smp              if test -f "$dir/$libname.la"; then
4810232633Smp                found_la="$dir/$libname.la"
4811232633Smp              fi
4812232633Smp            fi
4813167465Smp          fi
4814167465Smp          if test "X$found_dir" = "X"; then
4815167465Smp            for x in $LDFLAGS $LTLIBICONV; do
4816167465Smp
4817167465Smp  acl_save_prefix="$prefix"
4818167465Smp  prefix="$acl_final_prefix"
4819167465Smp  acl_save_exec_prefix="$exec_prefix"
4820167465Smp  exec_prefix="$acl_final_exec_prefix"
4821167465Smp  eval x=\"$x\"
4822167465Smp  exec_prefix="$acl_save_exec_prefix"
4823167465Smp  prefix="$acl_save_prefix"
4824167465Smp
4825167465Smp              case "$x" in
4826167465Smp                -L*)
4827167465Smp                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4828232633Smp                                    if test -n "$acl_shlibext"; then
4829232633Smp                    if test -f "$dir/$libname$shrext"; then
4830167465Smp                      found_dir="$dir"
4831232633Smp                      found_so="$dir/$libname$shrext"
4832232633Smp                    else
4833232633Smp                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4834232633Smp                        ver=`(cd "$dir" && \
4835232633Smp                              for f in "$libname$shrext".*; do echo "$f"; done \
4836232633Smp                              | sed -e "s,^$libname$shrext\\\\.,," \
4837232633Smp                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4838232633Smp                              | sed 1q ) 2>/dev/null`
4839232633Smp                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4840232633Smp                          found_dir="$dir"
4841232633Smp                          found_so="$dir/$libname$shrext.$ver"
4842232633Smp                        fi
4843232633Smp                      else
4844232633Smp                        eval library_names=\"$acl_library_names_spec\"
4845232633Smp                        for f in $library_names; do
4846232633Smp                          if test -f "$dir/$f"; then
4847232633Smp                            found_dir="$dir"
4848232633Smp                            found_so="$dir/$f"
4849232633Smp                            break
4850232633Smp                          fi
4851232633Smp                        done
4852167465Smp                      fi
4853167465Smp                    fi
4854167465Smp                  fi
4855232633Smp                                    if test "X$found_dir" = "X"; then
4856232633Smp                    if test -f "$dir/$libname.$acl_libext"; then
4857232633Smp                      found_dir="$dir"
4858232633Smp                      found_a="$dir/$libname.$acl_libext"
4859232633Smp                    fi
4860232633Smp                  fi
4861232633Smp                  if test "X$found_dir" != "X"; then
4862232633Smp                    if test -f "$dir/$libname.la"; then
4863232633Smp                      found_la="$dir/$libname.la"
4864232633Smp                    fi
4865232633Smp                  fi
4866167465Smp                  ;;
4867167465Smp              esac
4868167465Smp              if test "X$found_dir" != "X"; then
4869167465Smp                break
4870167465Smp              fi
4871167465Smp            done
4872167465Smp          fi
4873167465Smp          if test "X$found_dir" != "X"; then
4874167465Smp                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4875167465Smp            if test "X$found_so" != "X"; then
4876232633Smp                                                        if test "$enable_rpath" = no \
4877232633Smp                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4878232633Smp                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4879167465Smp                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4880167465Smp              else
4881167465Smp                                                                                haveit=
4882167465Smp                for x in $ltrpathdirs; do
4883167465Smp                  if test "X$x" = "X$found_dir"; then
4884167465Smp                    haveit=yes
4885167465Smp                    break
4886167465Smp                  fi
4887167465Smp                done
4888167465Smp                if test -z "$haveit"; then
4889167465Smp                  ltrpathdirs="$ltrpathdirs $found_dir"
4890167465Smp                fi
4891232633Smp                                if test "$acl_hardcode_direct" = yes; then
4892167465Smp                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4893167465Smp                else
4894232633Smp                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4895167465Smp                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4896167465Smp                                                            haveit=
4897167465Smp                    for x in $rpathdirs; do
4898167465Smp                      if test "X$x" = "X$found_dir"; then
4899167465Smp                        haveit=yes
4900167465Smp                        break
4901167465Smp                      fi
4902167465Smp                    done
4903167465Smp                    if test -z "$haveit"; then
4904167465Smp                      rpathdirs="$rpathdirs $found_dir"
4905167465Smp                    fi
4906167465Smp                  else
4907167465Smp                                                                                haveit=
4908167465Smp                    for x in $LDFLAGS $LIBICONV; do
4909167465Smp
4910167465Smp  acl_save_prefix="$prefix"
4911167465Smp  prefix="$acl_final_prefix"
4912167465Smp  acl_save_exec_prefix="$exec_prefix"
4913167465Smp  exec_prefix="$acl_final_exec_prefix"
4914167465Smp  eval x=\"$x\"
4915167465Smp  exec_prefix="$acl_save_exec_prefix"
4916167465Smp  prefix="$acl_save_prefix"
4917167465Smp
4918167465Smp                      if test "X$x" = "X-L$found_dir"; then
4919167465Smp                        haveit=yes
4920167465Smp                        break
4921167465Smp                      fi
4922167465Smp                    done
4923167465Smp                    if test -z "$haveit"; then
4924167465Smp                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4925167465Smp                    fi
4926232633Smp                    if test "$acl_hardcode_minus_L" != no; then
4927167465Smp                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4928167465Smp                    else
4929167465Smp                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4930167465Smp                    fi
4931167465Smp                  fi
4932167465Smp                fi
4933167465Smp              fi
4934167465Smp            else
4935167465Smp              if test "X$found_a" != "X"; then
4936167465Smp                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4937167465Smp              else
4938167465Smp                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4939167465Smp              fi
4940167465Smp            fi
4941167465Smp                        additional_includedir=
4942167465Smp            case "$found_dir" in
4943232633Smp              */$acl_libdirstem | */$acl_libdirstem/)
4944232633Smp                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4945232633Smp                if test "$name" = 'iconv'; then
4946232633Smp                  LIBICONV_PREFIX="$basedir"
4947232633Smp                fi
4948167465Smp                additional_includedir="$basedir/include"
4949167465Smp                ;;
4950232633Smp              */$acl_libdirstem2 | */$acl_libdirstem2/)
4951232633Smp                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
4952232633Smp                if test "$name" = 'iconv'; then
4953232633Smp                  LIBICONV_PREFIX="$basedir"
4954232633Smp                fi
4955232633Smp                additional_includedir="$basedir/include"
4956232633Smp                ;;
4957167465Smp            esac
4958167465Smp            if test "X$additional_includedir" != "X"; then
4959167465Smp                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4960167465Smp                haveit=
4961167465Smp                if test "X$additional_includedir" = "X/usr/local/include"; then
4962167465Smp                  if test -n "$GCC"; then
4963167465Smp                    case $host_os in
4964167465Smp                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4965167465Smp                    esac
4966167465Smp                  fi
4967167465Smp                fi
4968167465Smp                if test -z "$haveit"; then
4969167465Smp                  for x in $CPPFLAGS $INCICONV; do
4970167465Smp
4971167465Smp  acl_save_prefix="$prefix"
4972167465Smp  prefix="$acl_final_prefix"
4973167465Smp  acl_save_exec_prefix="$exec_prefix"
4974167465Smp  exec_prefix="$acl_final_exec_prefix"
4975167465Smp  eval x=\"$x\"
4976167465Smp  exec_prefix="$acl_save_exec_prefix"
4977167465Smp  prefix="$acl_save_prefix"
4978167465Smp
4979167465Smp                    if test "X$x" = "X-I$additional_includedir"; then
4980167465Smp                      haveit=yes
4981167465Smp                      break
4982167465Smp                    fi
4983167465Smp                  done
4984167465Smp                  if test -z "$haveit"; then
4985167465Smp                    if test -d "$additional_includedir"; then
4986167465Smp                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4987167465Smp                    fi
4988167465Smp                  fi
4989167465Smp                fi
4990167465Smp              fi
4991167465Smp            fi
4992167465Smp                        if test -n "$found_la"; then
4993167465Smp                                                        save_libdir="$libdir"
4994167465Smp              case "$found_la" in
4995167465Smp                */* | *\\*) . "$found_la" ;;
4996167465Smp                *) . "./$found_la" ;;
4997167465Smp              esac
4998167465Smp              libdir="$save_libdir"
4999167465Smp                            for dep in $dependency_libs; do
5000167465Smp                case "$dep" in
5001167465Smp                  -L*)
5002167465Smp                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5003232633Smp                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5004232633Smp                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5005167465Smp                      haveit=
5006232633Smp                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5007232633Smp                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5008167465Smp                        if test -n "$GCC"; then
5009167465Smp                          case $host_os in
5010167465Smp                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5011167465Smp                          esac
5012167465Smp                        fi
5013167465Smp                      fi
5014167465Smp                      if test -z "$haveit"; then
5015167465Smp                        haveit=
5016167465Smp                        for x in $LDFLAGS $LIBICONV; do
5017167465Smp
5018167465Smp  acl_save_prefix="$prefix"
5019167465Smp  prefix="$acl_final_prefix"
5020167465Smp  acl_save_exec_prefix="$exec_prefix"
5021167465Smp  exec_prefix="$acl_final_exec_prefix"
5022167465Smp  eval x=\"$x\"
5023167465Smp  exec_prefix="$acl_save_exec_prefix"
5024167465Smp  prefix="$acl_save_prefix"
5025167465Smp
5026167465Smp                          if test "X$x" = "X-L$additional_libdir"; then
5027167465Smp                            haveit=yes
5028167465Smp                            break
5029167465Smp                          fi
5030167465Smp                        done
5031167465Smp                        if test -z "$haveit"; then
5032167465Smp                          if test -d "$additional_libdir"; then
5033167465Smp                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5034167465Smp                          fi
5035167465Smp                        fi
5036167465Smp                        haveit=
5037167465Smp                        for x in $LDFLAGS $LTLIBICONV; do
5038167465Smp
5039167465Smp  acl_save_prefix="$prefix"
5040167465Smp  prefix="$acl_final_prefix"
5041167465Smp  acl_save_exec_prefix="$exec_prefix"
5042167465Smp  exec_prefix="$acl_final_exec_prefix"
5043167465Smp  eval x=\"$x\"
5044167465Smp  exec_prefix="$acl_save_exec_prefix"
5045167465Smp  prefix="$acl_save_prefix"
5046167465Smp
5047167465Smp                          if test "X$x" = "X-L$additional_libdir"; then
5048167465Smp                            haveit=yes
5049167465Smp                            break
5050167465Smp                          fi
5051167465Smp                        done
5052167465Smp                        if test -z "$haveit"; then
5053167465Smp                          if test -d "$additional_libdir"; then
5054167465Smp                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5055167465Smp                          fi
5056167465Smp                        fi
5057167465Smp                      fi
5058167465Smp                    fi
5059167465Smp                    ;;
5060167465Smp                  -R*)
5061167465Smp                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5062167465Smp                    if test "$enable_rpath" != no; then
5063167465Smp                                                                  haveit=
5064167465Smp                      for x in $rpathdirs; do
5065167465Smp                        if test "X$x" = "X$dir"; then
5066167465Smp                          haveit=yes
5067167465Smp                          break
5068167465Smp                        fi
5069167465Smp                      done
5070167465Smp                      if test -z "$haveit"; then
5071167465Smp                        rpathdirs="$rpathdirs $dir"
5072167465Smp                      fi
5073167465Smp                                                                  haveit=
5074167465Smp                      for x in $ltrpathdirs; do
5075167465Smp                        if test "X$x" = "X$dir"; then
5076167465Smp                          haveit=yes
5077167465Smp                          break
5078167465Smp                        fi
5079167465Smp                      done
5080167465Smp                      if test -z "$haveit"; then
5081167465Smp                        ltrpathdirs="$ltrpathdirs $dir"
5082167465Smp                      fi
5083167465Smp                    fi
5084167465Smp                    ;;
5085167465Smp                  -l*)
5086167465Smp                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5087167465Smp                    ;;
5088167465Smp                  *.la)
5089167465Smp                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5090167465Smp                    ;;
5091167465Smp                  *)
5092167465Smp                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5093167465Smp                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5094167465Smp                    ;;
5095167465Smp                esac
5096167465Smp              done
5097167465Smp            fi
5098167465Smp          else
5099167465Smp                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5100167465Smp            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5101167465Smp          fi
5102167465Smp        fi
5103167465Smp      fi
5104167465Smp    done
5105167465Smp  done
5106167465Smp  if test "X$rpathdirs" != "X"; then
5107232633Smp    if test -n "$acl_hardcode_libdir_separator"; then
5108167465Smp                        alldirs=
5109167465Smp      for found_dir in $rpathdirs; do
5110232633Smp        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5111167465Smp      done
5112167465Smp            acl_save_libdir="$libdir"
5113167465Smp      libdir="$alldirs"
5114232633Smp      eval flag=\"$acl_hardcode_libdir_flag_spec\"
5115167465Smp      libdir="$acl_save_libdir"
5116167465Smp      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5117167465Smp    else
5118167465Smp            for found_dir in $rpathdirs; do
5119167465Smp        acl_save_libdir="$libdir"
5120167465Smp        libdir="$found_dir"
5121232633Smp        eval flag=\"$acl_hardcode_libdir_flag_spec\"
5122167465Smp        libdir="$acl_save_libdir"
5123167465Smp        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5124167465Smp      done
5125167465Smp    fi
5126167465Smp  fi
5127167465Smp  if test "X$ltrpathdirs" != "X"; then
5128167465Smp            for found_dir in $ltrpathdirs; do
5129167465Smp      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5130167465Smp    done
5131167465Smp  fi
5132167465Smp
5133167465Smp
5134167465Smp
5135167465Smp
5136167465Smp
5137167465Smp
5138167465Smp
5139232633Smp
5140232633Smp
5141232633Smp
5142232633Smp
5143232633Smp
5144167465Smp          am_save_CPPFLAGS="$CPPFLAGS"
5145167465Smp
5146167465Smp  for element in $INCICONV; do
5147167465Smp    haveit=
5148167465Smp    for x in $CPPFLAGS; do
5149167465Smp
5150167465Smp  acl_save_prefix="$prefix"
5151167465Smp  prefix="$acl_final_prefix"
5152167465Smp  acl_save_exec_prefix="$exec_prefix"
5153167465Smp  exec_prefix="$acl_final_exec_prefix"
5154167465Smp  eval x=\"$x\"
5155167465Smp  exec_prefix="$acl_save_exec_prefix"
5156167465Smp  prefix="$acl_save_prefix"
5157167465Smp
5158167465Smp      if test "X$x" = "X$element"; then
5159167465Smp        haveit=yes
5160167465Smp        break
5161167465Smp      fi
5162167465Smp    done
5163167465Smp    if test -z "$haveit"; then
5164167465Smp      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5165167465Smp    fi
5166167465Smp  done
5167167465Smp
5168167465Smp
5169232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5170232633Smp$as_echo_n "checking for iconv... " >&6; }
5171232633Smpif ${am_cv_func_iconv+:} false; then :
5172232633Smp  $as_echo_n "(cached) " >&6
5173167465Smpelse
5174167465Smp
5175167465Smp    am_cv_func_iconv="no, consider installing GNU libiconv"
5176167465Smp    am_cv_lib_iconv=no
5177232633Smp    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178145479Smp/* end confdefs.h.  */
5179167465Smp#include <stdlib.h>
5180167465Smp#include <iconv.h>
5181145479Smpint
5182145479Smpmain ()
5183145479Smp{
5184167465Smpiconv_t cd = iconv_open("","");
5185167465Smp       iconv(cd,NULL,NULL,NULL,NULL);
5186167465Smp       iconv_close(cd);
5187145479Smp  ;
5188145479Smp  return 0;
5189145479Smp}
5190145479Smp_ACEOF
5191232633Smpif ac_fn_c_try_link "$LINENO"; then :
5192167465Smp  am_cv_func_iconv=yes
5193145479Smpfi
5194232633Smprm -f core conftest.err conftest.$ac_objext \
5195232633Smp    conftest$ac_exeext conftest.$ac_ext
5196167465Smp    if test "$am_cv_func_iconv" != yes; then
5197167465Smp      am_save_LIBS="$LIBS"
5198167465Smp      LIBS="$LIBS $LIBICONV"
5199232633Smp      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200145479Smp/* end confdefs.h.  */
5201167465Smp#include <stdlib.h>
5202167465Smp#include <iconv.h>
5203145479Smpint
5204145479Smpmain ()
5205145479Smp{
5206167465Smpiconv_t cd = iconv_open("","");
5207167465Smp         iconv(cd,NULL,NULL,NULL,NULL);
5208167465Smp         iconv_close(cd);
5209145479Smp  ;
5210145479Smp  return 0;
5211145479Smp}
5212145479Smp_ACEOF
5213232633Smpif ac_fn_c_try_link "$LINENO"; then :
5214167465Smp  am_cv_lib_iconv=yes
5215167465Smp        am_cv_func_iconv=yes
5216232633Smpfi
5217232633Smprm -f core conftest.err conftest.$ac_objext \
5218232633Smp    conftest$ac_exeext conftest.$ac_ext
5219232633Smp      LIBS="$am_save_LIBS"
5220232633Smp    fi
5221232633Smp
5222232633Smpfi
5223232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5224232633Smp$as_echo "$am_cv_func_iconv" >&6; }
5225232633Smp  if test "$am_cv_func_iconv" = yes; then
5226232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5227232633Smp$as_echo_n "checking for working iconv... " >&6; }
5228232633Smpif ${am_cv_func_iconv_works+:} false; then :
5229232633Smp  $as_echo_n "(cached) " >&6
5230145479Smpelse
5231145479Smp
5232232633Smp            am_save_LIBS="$LIBS"
5233232633Smp      if test $am_cv_lib_iconv = yes; then
5234232633Smp        LIBS="$LIBS $LIBICONV"
5235232633Smp      fi
5236232633Smp      if test "$cross_compiling" = yes; then :
5237232633Smp  case "$host_os" in
5238232633Smp           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5239232633Smp           *)            am_cv_func_iconv_works="guessing yes" ;;
5240232633Smp         esac
5241232633Smpelse
5242232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243232633Smp/* end confdefs.h.  */
5244195609Smp
5245232633Smp#include <iconv.h>
5246232633Smp#include <string.h>
5247232633Smpint main ()
5248232633Smp{
5249232633Smp  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5250232633Smp     returns.  */
5251232633Smp  {
5252232633Smp    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5253232633Smp    if (cd_utf8_to_88591 != (iconv_t)(-1))
5254232633Smp      {
5255232633Smp        static const char input[] = "\342\202\254"; /* EURO SIGN */
5256232633Smp        char buf[10];
5257232633Smp        const char *inptr = input;
5258232633Smp        size_t inbytesleft = strlen (input);
5259232633Smp        char *outptr = buf;
5260232633Smp        size_t outbytesleft = sizeof (buf);
5261232633Smp        size_t res = iconv (cd_utf8_to_88591,
5262232633Smp                            (char **) &inptr, &inbytesleft,
5263232633Smp                            &outptr, &outbytesleft);
5264232633Smp        if (res == 0)
5265232633Smp          return 1;
5266232633Smp      }
5267232633Smp  }
5268232633Smp  /* Test against Solaris 10 bug: Failures are not distinguishable from
5269232633Smp     successful returns.  */
5270232633Smp  {
5271232633Smp    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5272232633Smp    if (cd_ascii_to_88591 != (iconv_t)(-1))
5273232633Smp      {
5274232633Smp        static const char input[] = "\263";
5275232633Smp        char buf[10];
5276232633Smp        const char *inptr = input;
5277232633Smp        size_t inbytesleft = strlen (input);
5278232633Smp        char *outptr = buf;
5279232633Smp        size_t outbytesleft = sizeof (buf);
5280232633Smp        size_t res = iconv (cd_ascii_to_88591,
5281232633Smp                            (char **) &inptr, &inbytesleft,
5282232633Smp                            &outptr, &outbytesleft);
5283232633Smp        if (res == 0)
5284232633Smp          return 1;
5285232633Smp      }
5286232633Smp  }
5287232633Smp#if 0 /* This bug could be worked around by the caller.  */
5288232633Smp  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
5289232633Smp  {
5290232633Smp    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5291232633Smp    if (cd_88591_to_utf8 != (iconv_t)(-1))
5292232633Smp      {
5293232633Smp        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5294232633Smp        char buf[50];
5295232633Smp        const char *inptr = input;
5296232633Smp        size_t inbytesleft = strlen (input);
5297232633Smp        char *outptr = buf;
5298232633Smp        size_t outbytesleft = sizeof (buf);
5299232633Smp        size_t res = iconv (cd_88591_to_utf8,
5300232633Smp                            (char **) &inptr, &inbytesleft,
5301232633Smp                            &outptr, &outbytesleft);
5302232633Smp        if ((int)res > 0)
5303232633Smp          return 1;
5304232633Smp      }
5305232633Smp  }
5306232633Smp#endif
5307232633Smp  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5308232633Smp     provided.  */
5309232633Smp  if (/* Try standardized names.  */
5310232633Smp      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5311232633Smp      /* Try IRIX, OSF/1 names.  */
5312232633Smp      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5313232633Smp      /* Try AIX names.  */
5314232633Smp      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5315232633Smp      /* Try HP-UX names.  */
5316232633Smp      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5317232633Smp    return 1;
5318232633Smp  return 0;
5319232633Smp}
5320232633Smp_ACEOF
5321232633Smpif ac_fn_c_try_run "$LINENO"; then :
5322232633Smp  am_cv_func_iconv_works=yes
5323232633Smpelse
5324232633Smp  am_cv_func_iconv_works=no
5325145479Smpfi
5326232633Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5327232633Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
5328232633Smpfi
5329195609Smp
5330167465Smp      LIBS="$am_save_LIBS"
5331167465Smp
5332145479Smpfi
5333232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5334232633Smp$as_echo "$am_cv_func_iconv_works" >&6; }
5335232633Smp    case "$am_cv_func_iconv_works" in
5336232633Smp      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5337232633Smp      *)   am_func_iconv=yes ;;
5338232633Smp    esac
5339232633Smp  else
5340232633Smp    am_func_iconv=no am_cv_lib_iconv=no
5341232633Smp  fi
5342232633Smp  if test "$am_func_iconv" = yes; then
5343145479Smp
5344232633Smp$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5345145479Smp
5346167465Smp  fi
5347167465Smp  if test "$am_cv_lib_iconv" = yes; then
5348232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5349232633Smp$as_echo_n "checking how to link with libiconv... " >&6; }
5350232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5351232633Smp$as_echo "$LIBICONV" >&6; }
5352167465Smp  else
5353167465Smp            CPPFLAGS="$am_save_CPPFLAGS"
5354167465Smp    LIBICONV=
5355167465Smp    LTLIBICONV=
5356167465Smp  fi
5357167465Smp
5358167465Smp
5359167465Smp
5360167465Smp  if test "$am_cv_func_iconv" = yes; then
5361232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5362232633Smp$as_echo_n "checking for iconv declaration... " >&6; }
5363232633Smp    if ${am_cv_proto_iconv+:} false; then :
5364232633Smp  $as_echo_n "(cached) " >&6
5365167465Smpelse
5366167465Smp
5367232633Smp      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368167465Smp/* end confdefs.h.  */
5369167465Smp
5370167465Smp#include <stdlib.h>
5371167465Smp#include <iconv.h>
5372167465Smpextern
5373167465Smp#ifdef __cplusplus
5374167465Smp"C"
5375167465Smp#endif
5376167465Smp#if defined(__STDC__) || defined(__cplusplus)
5377167465Smpsize_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5378167465Smp#else
5379167465Smpsize_t iconv();
5380167465Smp#endif
5381167465Smp
5382167465Smpint
5383167465Smpmain ()
5384167465Smp{
5385167465Smp
5386167465Smp  ;
5387167465Smp  return 0;
5388167465Smp}
5389167465Smp_ACEOF
5390232633Smpif ac_fn_c_try_compile "$LINENO"; then :
5391167465Smp  am_cv_proto_iconv_arg1=""
5392167465Smpelse
5393232633Smp  am_cv_proto_iconv_arg1="const"
5394145479Smpfi
5395195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396167465Smp      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5397167465Smpfi
5398145479Smp
5399167465Smp    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5400232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
5401232633Smp         $am_cv_proto_iconv" >&5
5402232633Smp$as_echo "
5403232633Smp         $am_cv_proto_iconv" >&6; }
5404145479Smp
5405167465Smpcat >>confdefs.h <<_ACEOF
5406167465Smp#define ICONV_CONST $am_cv_proto_iconv_arg1
5407167465Smp_ACEOF
5408167465Smp
5409167465Smp  fi
5410167465Smp
5411167465Smp
5412232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5413232633Smp$as_echo_n "checking for ANSI C header files... " >&6; }
5414232633Smpif ${ac_cv_header_stdc+:} false; then :
5415232633Smp  $as_echo_n "(cached) " >&6
5416100616Smpelse
5417232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418131962Smp/* end confdefs.h.  */
5419145479Smp#include <stdlib.h>
5420145479Smp#include <stdarg.h>
5421145479Smp#include <string.h>
5422145479Smp#include <float.h>
5423145479Smp
5424145479Smpint
5425145479Smpmain ()
5426145479Smp{
5427145479Smp
5428145479Smp  ;
5429145479Smp  return 0;
5430145479Smp}
5431145479Smp_ACEOF
5432232633Smpif ac_fn_c_try_compile "$LINENO"; then :
5433145479Smp  ac_cv_header_stdc=yes
5434145479Smpelse
5435232633Smp  ac_cv_header_stdc=no
5436145479Smpfi
5437195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438195609Smp
5439145479Smpif test $ac_cv_header_stdc = yes; then
5440145479Smp  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5441232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442145479Smp/* end confdefs.h.  */
5443145479Smp#include <string.h>
5444145479Smp
5445145479Smp_ACEOF
5446145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447232633Smp  $EGREP "memchr" >/dev/null 2>&1; then :
5448232633Smp
5449145479Smpelse
5450145479Smp  ac_cv_header_stdc=no
5451145479Smpfi
5452145479Smprm -f conftest*
5453145479Smp
5454145479Smpfi
5455145479Smp
5456145479Smpif test $ac_cv_header_stdc = yes; then
5457145479Smp  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5458232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459145479Smp/* end confdefs.h.  */
5460145479Smp#include <stdlib.h>
5461145479Smp
5462145479Smp_ACEOF
5463145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464232633Smp  $EGREP "free" >/dev/null 2>&1; then :
5465232633Smp
5466145479Smpelse
5467145479Smp  ac_cv_header_stdc=no
5468145479Smpfi
5469145479Smprm -f conftest*
5470145479Smp
5471145479Smpfi
5472145479Smp
5473145479Smpif test $ac_cv_header_stdc = yes; then
5474145479Smp  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5475232633Smp  if test "$cross_compiling" = yes; then :
5476145479Smp  :
5477145479Smpelse
5478232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479145479Smp/* end confdefs.h.  */
5480145479Smp#include <ctype.h>
5481195609Smp#include <stdlib.h>
5482145479Smp#if ((' ' & 0x0FF) == 0x020)
5483145479Smp# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5484145479Smp# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5485145479Smp#else
5486145479Smp# define ISLOWER(c) \
5487145479Smp		   (('a' <= (c) && (c) <= 'i') \
5488145479Smp		     || ('j' <= (c) && (c) <= 'r') \
5489145479Smp		     || ('s' <= (c) && (c) <= 'z'))
5490145479Smp# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5491145479Smp#endif
5492145479Smp
5493145479Smp#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5494145479Smpint
5495145479Smpmain ()
5496145479Smp{
5497145479Smp  int i;
5498145479Smp  for (i = 0; i < 256; i++)
5499145479Smp    if (XOR (islower (i), ISLOWER (i))
5500145479Smp	|| toupper (i) != TOUPPER (i))
5501195609Smp      return 2;
5502195609Smp  return 0;
5503145479Smp}
5504145479Smp_ACEOF
5505232633Smpif ac_fn_c_try_run "$LINENO"; then :
5506232633Smp
5507145479Smpelse
5508232633Smp  ac_cv_header_stdc=no
5509145479Smpfi
5510232633Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5511232633Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
5512145479Smpfi
5513195609Smp
5514145479Smpfi
5515145479Smpfi
5516232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5517232633Smp$as_echo "$ac_cv_header_stdc" >&6; }
5518145479Smpif test $ac_cv_header_stdc = yes; then
5519145479Smp
5520232633Smp$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5521145479Smp
5522145479Smpfi
5523145479Smp
5524145479Smp# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5525145479Smpfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5526145479Smp		  inttypes.h stdint.h unistd.h
5527232633Smpdo :
5528232633Smp  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5529232633Smpac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5530232633Smp"
5531232633Smpif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5532145479Smp  cat >>confdefs.h <<_ACEOF
5533232633Smp#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5534145479Smp_ACEOF
5535145479Smp
5536145479Smpfi
5537145479Smp
5538145479Smpdone
5539145479Smp
5540145479Smp
5541232633Smpfor ac_header in auth.h crypt.h features.h inttypes.h paths.h 		 shadow.h stdint.h utmp.h utmpx.h
5542232633Smpdo :
5543232633Smp  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5544232633Smpac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5545232633Smpif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5546145479Smp  cat >>confdefs.h <<_ACEOF
5547232633Smp#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5548145479Smp_ACEOF
5549145479Smp
5550145479Smpfi
5551145479Smp
5552145479Smpdone
5553145479Smp
5554145479Smpfor ac_header in wchar.h
5555232633Smpdo :
5556232633Smp  ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5557232633Smpif test "x$ac_cv_header_wchar_h" = xyes; then :
5558145479Smp  cat >>confdefs.h <<_ACEOF
5559232633Smp#define HAVE_WCHAR_H 1
5560145479Smp_ACEOF
5561232633Smp # The cast to long int works around a bug in the HP C Compiler
5562195609Smp# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5563195609Smp# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5564195609Smp# This bug is HP SR number 8606223364.
5565232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
5566232633Smp$as_echo_n "checking size of wchar_t... " >&6; }
5567232633Smpif ${ac_cv_sizeof_wchar_t+:} false; then :
5568232633Smp  $as_echo_n "(cached) " >&6
5569145479Smpelse
5570232633Smp  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <stdio.h>
5571145479Smp#include <wchar.h>
5572232633Smp"; then :
5573145479Smp
5574145479Smpelse
5575232633Smp  if test "$ac_cv_type_wchar_t" = yes; then
5576232633Smp     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5577232633Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5578232633Smpas_fn_error 77 "cannot compute sizeof (wchar_t)
5579232633SmpSee \`config.log' for more details" "$LINENO" 5; }
5580195609Smp   else
5581195609Smp     ac_cv_sizeof_wchar_t=0
5582195609Smp   fi
5583145479Smpfi
5584232633Smp
5585145479Smpfi
5586232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
5587232633Smp$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
5588195609Smp
5589195609Smp
5590195609Smp
5591145479Smpcat >>confdefs.h <<_ACEOF
5592145479Smp#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
5593145479Smp_ACEOF
5594145479Smp
5595145479Smp
5596232633Smp	for ac_header in wctype.h
5597232633Smpdo :
5598232633Smp  ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
5599232633Smpif test "x$ac_cv_header_wctype_h" = xyes; then :
5600145479Smp  cat >>confdefs.h <<_ACEOF
5601232633Smp#define HAVE_WCTYPE_H 1
5602145479Smp_ACEOF
5603145479Smp
5604145479Smpfi
5605145479Smp
5606145479Smpdone
5607145479Smp
5608145479Smpfi
5609145479Smp
5610145479Smpdone
5611145479Smp
5612145479Smpac_header_dirent=no
5613145479Smpfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5614232633Smp  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5615232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5616232633Smp$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5617232633Smpif eval \${$as_ac_Header+:} false; then :
5618232633Smp  $as_echo_n "(cached) " >&6
5619145479Smpelse
5620232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621145479Smp/* end confdefs.h.  */
5622100616Smp#include <sys/types.h>
5623145479Smp#include <$ac_hdr>
5624145479Smp
5625145479Smpint
5626145479Smpmain ()
5627145479Smp{
5628145479Smpif ((DIR *) 0)
5629145479Smpreturn 0;
5630145479Smp  ;
5631145479Smp  return 0;
5632145479Smp}
5633145479Smp_ACEOF
5634232633Smpif ac_fn_c_try_compile "$LINENO"; then :
5635145479Smp  eval "$as_ac_Header=yes"
5636145479Smpelse
5637232633Smp  eval "$as_ac_Header=no"
5638145479Smpfi
5639195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640145479Smpfi
5641232633Smpeval ac_res=\$$as_ac_Header
5642232633Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5643232633Smp$as_echo "$ac_res" >&6; }
5644232633Smpif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5645145479Smp  cat >>confdefs.h <<_ACEOF
5646232633Smp#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5647145479Smp_ACEOF
5648145479Smp
5649145479Smpac_header_dirent=$ac_hdr; break
5650145479Smpfi
5651145479Smp
5652145479Smpdone
5653145479Smp# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5654145479Smpif test $ac_header_dirent = dirent.h; then
5655232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5656232633Smp$as_echo_n "checking for library containing opendir... " >&6; }
5657232633Smpif ${ac_cv_search_opendir+:} false; then :
5658232633Smp  $as_echo_n "(cached) " >&6
5659145479Smpelse
5660145479Smp  ac_func_search_save_LIBS=$LIBS
5661232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662145479Smp/* end confdefs.h.  */
5663145479Smp
5664195609Smp/* Override any GCC internal prototype to avoid an error.
5665195609Smp   Use char because int might match the return type of a GCC
5666195609Smp   builtin and then its argument prototype would still apply.  */
5667145479Smp#ifdef __cplusplus
5668145479Smpextern "C"
5669145479Smp#endif
5670145479Smpchar opendir ();
5671145479Smpint
5672145479Smpmain ()
5673145479Smp{
5674195609Smpreturn opendir ();
5675145479Smp  ;
5676145479Smp  return 0;
5677145479Smp}
5678145479Smp_ACEOF
5679195609Smpfor ac_lib in '' dir; do
5680195609Smp  if test -z "$ac_lib"; then
5681195609Smp    ac_res="none required"
5682195609Smp  else
5683195609Smp    ac_res=-l$ac_lib
5684195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5685195609Smp  fi
5686232633Smp  if ac_fn_c_try_link "$LINENO"; then :
5687195609Smp  ac_cv_search_opendir=$ac_res
5688145479Smpfi
5689232633Smprm -f core conftest.err conftest.$ac_objext \
5690232633Smp    conftest$ac_exeext
5691232633Smp  if ${ac_cv_search_opendir+:} false; then :
5692195609Smp  break
5693195609Smpfi
5694195609Smpdone
5695232633Smpif ${ac_cv_search_opendir+:} false; then :
5696232633Smp
5697145479Smpelse
5698195609Smp  ac_cv_search_opendir=no
5699145479Smpfi
5700195609Smprm conftest.$ac_ext
5701145479SmpLIBS=$ac_func_search_save_LIBS
5702145479Smpfi
5703232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5704232633Smp$as_echo "$ac_cv_search_opendir" >&6; }
5705195609Smpac_res=$ac_cv_search_opendir
5706232633Smpif test "$ac_res" != no; then :
5707195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5708145479Smp
5709145479Smpfi
5710145479Smp
5711145479Smpelse
5712232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5713232633Smp$as_echo_n "checking for library containing opendir... " >&6; }
5714232633Smpif ${ac_cv_search_opendir+:} false; then :
5715232633Smp  $as_echo_n "(cached) " >&6
5716145479Smpelse
5717145479Smp  ac_func_search_save_LIBS=$LIBS
5718232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719145479Smp/* end confdefs.h.  */
5720145479Smp
5721195609Smp/* Override any GCC internal prototype to avoid an error.
5722195609Smp   Use char because int might match the return type of a GCC
5723195609Smp   builtin and then its argument prototype would still apply.  */
5724145479Smp#ifdef __cplusplus
5725145479Smpextern "C"
5726145479Smp#endif
5727145479Smpchar opendir ();
5728145479Smpint
5729145479Smpmain ()
5730145479Smp{
5731195609Smpreturn opendir ();
5732145479Smp  ;
5733145479Smp  return 0;
5734145479Smp}
5735145479Smp_ACEOF
5736195609Smpfor ac_lib in '' x; do
5737195609Smp  if test -z "$ac_lib"; then
5738195609Smp    ac_res="none required"
5739195609Smp  else
5740195609Smp    ac_res=-l$ac_lib
5741195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5742195609Smp  fi
5743232633Smp  if ac_fn_c_try_link "$LINENO"; then :
5744195609Smp  ac_cv_search_opendir=$ac_res
5745145479Smpfi
5746232633Smprm -f core conftest.err conftest.$ac_objext \
5747232633Smp    conftest$ac_exeext
5748232633Smp  if ${ac_cv_search_opendir+:} false; then :
5749195609Smp  break
5750195609Smpfi
5751195609Smpdone
5752232633Smpif ${ac_cv_search_opendir+:} false; then :
5753232633Smp
5754145479Smpelse
5755195609Smp  ac_cv_search_opendir=no
5756145479Smpfi
5757195609Smprm conftest.$ac_ext
5758145479SmpLIBS=$ac_func_search_save_LIBS
5759145479Smpfi
5760232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5761232633Smp$as_echo "$ac_cv_search_opendir" >&6; }
5762195609Smpac_res=$ac_cv_search_opendir
5763232633Smpif test "$ac_res" != no; then :
5764195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5765145479Smp
5766145479Smpfi
5767145479Smp
5768145479Smpfi
5769145479Smp
5770232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5771232633Smp$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5772232633Smpif ${ac_cv_header_stat_broken+:} false; then :
5773232633Smp  $as_echo_n "(cached) " >&6
5774145479Smpelse
5775232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776145479Smp/* end confdefs.h.  */
5777145479Smp#include <sys/types.h>
5778145479Smp#include <sys/stat.h>
5779145479Smp
5780195609Smp#if defined S_ISBLK && defined S_IFDIR
5781195609Smpextern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5782145479Smp#endif
5783145479Smp
5784195609Smp#if defined S_ISBLK && defined S_IFCHR
5785195609Smpextern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5786145479Smp#endif
5787145479Smp
5788195609Smp#if defined S_ISLNK && defined S_IFREG
5789195609Smpextern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5790145479Smp#endif
5791145479Smp
5792195609Smp#if defined S_ISSOCK && defined S_IFREG
5793195609Smpextern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5794145479Smp#endif
5795145479Smp
5796145479Smp_ACEOF
5797232633Smpif ac_fn_c_try_compile "$LINENO"; then :
5798195609Smp  ac_cv_header_stat_broken=no
5799145479Smpelse
5800232633Smp  ac_cv_header_stat_broken=yes
5801145479Smpfi
5802195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803145479Smpfi
5804232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5805232633Smp$as_echo "$ac_cv_header_stat_broken" >&6; }
5806145479Smpif test $ac_cv_header_stat_broken = yes; then
5807145479Smp
5808232633Smp$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5809145479Smp
5810145479Smpfi
5811145479Smp
5812232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5813232633Smp$as_echo_n "checking for ANSI C header files... " >&6; }
5814232633Smpif ${ac_cv_header_stdc+:} false; then :
5815232633Smp  $as_echo_n "(cached) " >&6
5816145479Smpelse
5817232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818145479Smp/* end confdefs.h.  */
5819145479Smp#include <stdlib.h>
5820145479Smp#include <stdarg.h>
5821145479Smp#include <string.h>
5822145479Smp#include <float.h>
5823145479Smp
5824145479Smpint
5825145479Smpmain ()
5826145479Smp{
5827145479Smp
5828145479Smp  ;
5829145479Smp  return 0;
5830145479Smp}
5831145479Smp_ACEOF
5832232633Smpif ac_fn_c_try_compile "$LINENO"; then :
5833145479Smp  ac_cv_header_stdc=yes
5834145479Smpelse
5835232633Smp  ac_cv_header_stdc=no
5836145479Smpfi
5837195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838195609Smp
5839145479Smpif test $ac_cv_header_stdc = yes; then
5840145479Smp  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5841232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842145479Smp/* end confdefs.h.  */
5843145479Smp#include <string.h>
5844145479Smp
5845145479Smp_ACEOF
5846145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5847232633Smp  $EGREP "memchr" >/dev/null 2>&1; then :
5848232633Smp
5849145479Smpelse
5850145479Smp  ac_cv_header_stdc=no
5851145479Smpfi
5852145479Smprm -f conftest*
5853145479Smp
5854145479Smpfi
5855145479Smp
5856145479Smpif test $ac_cv_header_stdc = yes; then
5857145479Smp  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5858232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859145479Smp/* end confdefs.h.  */
5860145479Smp#include <stdlib.h>
5861145479Smp
5862145479Smp_ACEOF
5863145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5864232633Smp  $EGREP "free" >/dev/null 2>&1; then :
5865232633Smp
5866145479Smpelse
5867145479Smp  ac_cv_header_stdc=no
5868145479Smpfi
5869145479Smprm -f conftest*
5870145479Smp
5871145479Smpfi
5872145479Smp
5873145479Smpif test $ac_cv_header_stdc = yes; then
5874145479Smp  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5875232633Smp  if test "$cross_compiling" = yes; then :
5876145479Smp  :
5877145479Smpelse
5878232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879145479Smp/* end confdefs.h.  */
5880145479Smp#include <ctype.h>
5881195609Smp#include <stdlib.h>
5882145479Smp#if ((' ' & 0x0FF) == 0x020)
5883145479Smp# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5884145479Smp# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5885145479Smp#else
5886145479Smp# define ISLOWER(c) \
5887145479Smp		   (('a' <= (c) && (c) <= 'i') \
5888145479Smp		     || ('j' <= (c) && (c) <= 'r') \
5889145479Smp		     || ('s' <= (c) && (c) <= 'z'))
5890145479Smp# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5891145479Smp#endif
5892145479Smp
5893145479Smp#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5894145479Smpint
5895145479Smpmain ()
5896145479Smp{
5897145479Smp  int i;
5898145479Smp  for (i = 0; i < 256; i++)
5899145479Smp    if (XOR (islower (i), ISLOWER (i))
5900145479Smp	|| toupper (i) != TOUPPER (i))
5901195609Smp      return 2;
5902195609Smp  return 0;
5903145479Smp}
5904145479Smp_ACEOF
5905232633Smpif ac_fn_c_try_run "$LINENO"; then :
5906232633Smp
5907145479Smpelse
5908232633Smp  ac_cv_header_stdc=no
5909145479Smpfi
5910232633Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5911232633Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
5912145479Smpfi
5913195609Smp
5914145479Smpfi
5915145479Smpfi
5916232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5917232633Smp$as_echo "$ac_cv_header_stdc" >&6; }
5918145479Smpif test $ac_cv_header_stdc = yes; then
5919145479Smp
5920232633Smp$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5921145479Smp
5922145479Smpfi
5923145479Smp
5924145479Smp
5925232633Smpac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5926232633Smpif test "x$ac_cv_type_long_long" = xyes; then :
5927145479Smp
5928145479Smpcat >>confdefs.h <<_ACEOF
5929145479Smp#define HAVE_LONG_LONG 1
5930145479Smp_ACEOF
5931145479Smp
5932145479Smp
5933145479Smpfi
5934145479Smp
5935232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5936232633Smp$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5937232633Smpif ${ac_cv_type_uid_t+:} false; then :
5938232633Smp  $as_echo_n "(cached) " >&6
5939145479Smpelse
5940232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941145479Smp/* end confdefs.h.  */
5942145479Smp#include <sys/types.h>
5943145479Smp
5944145479Smp_ACEOF
5945145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946232633Smp  $EGREP "uid_t" >/dev/null 2>&1; then :
5947145479Smp  ac_cv_type_uid_t=yes
5948145479Smpelse
5949145479Smp  ac_cv_type_uid_t=no
5950145479Smpfi
5951145479Smprm -f conftest*
5952145479Smp
5953145479Smpfi
5954232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5955232633Smp$as_echo "$ac_cv_type_uid_t" >&6; }
5956145479Smpif test $ac_cv_type_uid_t = no; then
5957145479Smp
5958232633Smp$as_echo "#define uid_t int" >>confdefs.h
5959145479Smp
5960145479Smp
5961232633Smp$as_echo "#define gid_t int" >>confdefs.h
5962145479Smp
5963145479Smpfi
5964145479Smp
5965232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
5966232633Smp$as_echo_n "checking type of array argument to getgroups... " >&6; }
5967232633Smpif ${ac_cv_type_getgroups+:} false; then :
5968232633Smp  $as_echo_n "(cached) " >&6
5969145479Smpelse
5970232633Smp  if test "$cross_compiling" = yes; then :
5971145479Smp  ac_cv_type_getgroups=cross
5972145479Smpelse
5973232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974145479Smp/* end confdefs.h.  */
5975145479Smp/* Thanks to Mike Rendell for this test.  */
5976195609Smp$ac_includes_default
5977145479Smp#define NGID 256
5978145479Smp#undef MAX
5979145479Smp#define MAX(x, y) ((x) > (y) ? (x) : (y))
5980145479Smp
5981145479Smpint
5982145479Smpmain ()
5983145479Smp{
5984145479Smp  gid_t gidset[NGID];
5985145479Smp  int i, n;
5986195609Smp  union { gid_t gval; long int lval; }  val;
5987145479Smp
5988145479Smp  val.lval = -1;
5989145479Smp  for (i = 0; i < NGID; i++)
5990145479Smp    gidset[i] = val.gval;
5991145479Smp  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5992145479Smp		 gidset);
5993145479Smp  /* Exit non-zero if getgroups seems to require an array of ints.  This
5994195609Smp     happens when gid_t is short int but getgroups modifies an array
5995195609Smp     of ints.  */
5996195609Smp  return n > 0 && gidset[n] != val.gval;
5997145479Smp}
5998145479Smp_ACEOF
5999232633Smpif ac_fn_c_try_run "$LINENO"; then :
6000145479Smp  ac_cv_type_getgroups=gid_t
6001145479Smpelse
6002232633Smp  ac_cv_type_getgroups=int
6003145479Smpfi
6004232633Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6005232633Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
6006145479Smpfi
6007195609Smp
6008145479Smpif test $ac_cv_type_getgroups = cross; then
6009232633Smp        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010145479Smp/* end confdefs.h.  */
6011145479Smp#include <unistd.h>
6012145479Smp
6013145479Smp_ACEOF
6014145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6015232633Smp  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
6016145479Smp  ac_cv_type_getgroups=gid_t
6017145479Smpelse
6018145479Smp  ac_cv_type_getgroups=int
6019145479Smpfi
6020145479Smprm -f conftest*
6021145479Smp
6022145479Smpfi
6023145479Smpfi
6024232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
6025232633Smp$as_echo "$ac_cv_type_getgroups" >&6; }
6026145479Smp
6027145479Smpcat >>confdefs.h <<_ACEOF
6028145479Smp#define GETGROUPS_T $ac_cv_type_getgroups
6029145479Smp_ACEOF
6030145479Smp
6031145479Smp
6032232633Smpac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6033232633Smpif test "x$ac_cv_type_mode_t" = xyes; then :
6034145479Smp
6035145479Smpelse
6036145479Smp
6037145479Smpcat >>confdefs.h <<_ACEOF
6038145479Smp#define mode_t int
6039145479Smp_ACEOF
6040145479Smp
6041145479Smpfi
6042145479Smp
6043232633Smpac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6044232633Smpif test "x$ac_cv_type_size_t" = xyes; then :
6045145479Smp
6046145479Smpelse
6047145479Smp
6048145479Smpcat >>confdefs.h <<_ACEOF
6049195609Smp#define size_t unsigned int
6050145479Smp_ACEOF
6051145479Smp
6052145479Smpfi
6053145479Smp
6054232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6055232633Smp$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6056232633Smpif ${ac_cv_type_uid_t+:} false; then :
6057232633Smp  $as_echo_n "(cached) " >&6
6058145479Smpelse
6059232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060145479Smp/* end confdefs.h.  */
6061145479Smp#include <sys/types.h>
6062145479Smp
6063145479Smp_ACEOF
6064145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065232633Smp  $EGREP "uid_t" >/dev/null 2>&1; then :
6066145479Smp  ac_cv_type_uid_t=yes
6067145479Smpelse
6068145479Smp  ac_cv_type_uid_t=no
6069145479Smpfi
6070145479Smprm -f conftest*
6071145479Smp
6072145479Smpfi
6073232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6074232633Smp$as_echo "$ac_cv_type_uid_t" >&6; }
6075145479Smpif test $ac_cv_type_uid_t = no; then
6076145479Smp
6077232633Smp$as_echo "#define uid_t int" >>confdefs.h
6078145479Smp
6079145479Smp
6080232633Smp$as_echo "#define gid_t int" >>confdefs.h
6081145479Smp
6082145479Smpfi
6083145479Smp
6084232633Smpac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6085232633Smpcase $ac_cv_c_uint32_t in #(
6086232633Smp  no|yes) ;; #(
6087232633Smp  *)
6088145479Smp
6089232633Smp$as_echo "#define _UINT32_T 1" >>confdefs.h
6090145479Smp
6091145479Smp
6092232633Smpcat >>confdefs.h <<_ACEOF
6093232633Smp#define uint32_t $ac_cv_c_uint32_t
6094167465Smp_ACEOF
6095232633Smp;;
6096232633Smp  esac
6097167465Smp
6098167465Smp
6099167465Smp
6100167465Smp
6101232633Smpac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
6102232633Smp#include <sys/types.h>
6103195609Smp
6104232633Smp"
6105232633Smpif test "x$ac_cv_type_ssize_t" = xyes; then :
6106232633Smp
6107167465Smpelse
6108167465Smp
6109232633Smp$as_echo "#define ssize_t int" >>confdefs.h
6110167465Smp
6111167465Smpfi
6112167465Smp
6113167465Smp
6114167465Smp
6115167465Smp
6116167465Smp
6117232633Smpac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6118145479Smp#include <sys/types.h>
6119100616Smp#include <sys/socket.h>
6120145479Smp
6121232633Smp"
6122232633Smpif test "x$ac_cv_type_socklen_t" = xyes; then :
6123145479Smp
6124100616Smpelse
6125131962Smp
6126232633Smp$as_echo "#define socklen_t int" >>confdefs.h
6127195609Smp
6128100616Smpfi
612969408Sache
6130145479Smp
613169408Sache
6132100616Smp
6133232633Smpac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "#ifdef HAVE_DIRENT_H
6134145479Smp# include <dirent.h>
6135145479Smp#else
6136145479Smp# ifdef HAVE_NDIR_H
6137145479Smp#  include <ndir.h>
6138145479Smp# else
6139145479Smp#  include <sys/dir.h>
6140145479Smp# endif
6141145479Smp# define dirent direct
6142145479Smp#endif
6143232633Smp"
6144232633Smpif test "x$ac_cv_member_struct_dirent_d_ino" = xyes; then :
6145145479Smp
6146145479Smpcat >>confdefs.h <<_ACEOF
6147145479Smp#define HAVE_STRUCT_DIRENT_D_INO 1
6148145479Smp_ACEOF
6149145479Smp
6150145479Smp
6151145479Smpfi
6152145479Smp
6153232633Smpac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "#include <sys/types.h>
6154145479Smp#ifdef HAVE_UTMPX_H
6155145479Smp#include <utmpx.h>
6156145479Smp#define utmp utmpx
6157145479Smp#elif defined HAVE_UTMP_H
6158145479Smp#include <utmp.h>
6159145479Smp#endif
6160232633Smp"
6161232633Smpif test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
6162145479Smp
6163232633Smpcat >>confdefs.h <<_ACEOF
6164232633Smp#define HAVE_STRUCT_UTMP_UT_HOST 1
6165145479Smp_ACEOF
6166145479Smp
6167232633Smp
6168232633Smpfi
6169232633Smpac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "#include <sys/types.h>
6170145479Smp#ifdef HAVE_UTMPX_H
6171145479Smp#include <utmpx.h>
6172145479Smp#define utmp utmpx
6173145479Smp#elif defined HAVE_UTMP_H
6174145479Smp#include <utmp.h>
6175145479Smp#endif
6176232633Smp"
6177232633Smpif test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
6178145479Smp
6179145479Smpcat >>confdefs.h <<_ACEOF
6180232633Smp#define HAVE_STRUCT_UTMP_UT_USER 1
6181145479Smp_ACEOF
6182145479Smp
6183145479Smp
6184145479Smpfi
6185232633Smpac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "#include <sys/types.h>
6186145479Smp#ifdef HAVE_UTMPX_H
6187145479Smp#include <utmpx.h>
6188145479Smp#define utmp utmpx
6189145479Smp#elif defined HAVE_UTMP_H
6190145479Smp#include <utmp.h>
6191145479Smp#endif
6192232633Smp"
6193232633Smpif test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
6194145479Smp
6195232633Smpcat >>confdefs.h <<_ACEOF
6196232633Smp#define HAVE_STRUCT_UTMP_UT_TV 1
6197145479Smp_ACEOF
6198145479Smp
6199232633Smp
6200232633Smpfi
6201232633Smpac_fn_c_check_member "$LINENO" "struct utmp" "ut_xtime" "ac_cv_member_struct_utmp_ut_xtime" "#include <sys/types.h>
6202145479Smp#ifdef HAVE_UTMPX_H
6203145479Smp#include <utmpx.h>
6204145479Smp#define utmp utmpx
6205145479Smp#elif defined HAVE_UTMP_H
6206145479Smp#include <utmp.h>
6207145479Smp#endif
6208232633Smp"
6209232633Smpif test "x$ac_cv_member_struct_utmp_ut_xtime" = xyes; then :
6210145479Smp
6211145479Smpcat >>confdefs.h <<_ACEOF
6212232633Smp#define HAVE_STRUCT_UTMP_UT_XTIME 1
6213145479Smp_ACEOF
6214145479Smp
6215145479Smp
6216145479Smpfi
6217232633Smpac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "#include <sys/types.h>
6218145479Smp#ifdef HAVE_UTMPX_H
6219145479Smp#include <utmpx.h>
6220145479Smp#define utmp utmpx
6221145479Smp#elif defined HAVE_UTMP_H
6222145479Smp#include <utmp.h>
6223145479Smp#endif
6224232633Smp"
6225232633Smpif test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6226145479Smp
6227232633Smpcat >>confdefs.h <<_ACEOF
6228232633Smp#define HAVE_STRUCT_UTMPX_UT_HOST 1
6229145479Smp_ACEOF
6230145479Smp
6231232633Smp
6232232633Smpfi
6233232633Smpac_fn_c_check_member "$LINENO" "struct utmpx" "ut_user" "ac_cv_member_struct_utmpx_ut_user" "#include <sys/types.h>
6234145479Smp#ifdef HAVE_UTMPX_H
6235145479Smp#include <utmpx.h>
6236145479Smp#define utmp utmpx
6237145479Smp#elif defined HAVE_UTMP_H
6238145479Smp#include <utmp.h>
6239145479Smp#endif
6240232633Smp"
6241232633Smpif test "x$ac_cv_member_struct_utmpx_ut_user" = xyes; then :
6242145479Smp
6243145479Smpcat >>confdefs.h <<_ACEOF
6244232633Smp#define HAVE_STRUCT_UTMPX_UT_USER 1
6245145479Smp_ACEOF
6246145479Smp
6247145479Smp
6248145479Smpfi
6249232633Smpac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "#include <sys/types.h>
6250145479Smp#ifdef HAVE_UTMPX_H
6251145479Smp#include <utmpx.h>
6252145479Smp#define utmp utmpx
6253145479Smp#elif defined HAVE_UTMP_H
6254145479Smp#include <utmp.h>
6255145479Smp#endif
6256232633Smp"
6257232633Smpif test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
6258145479Smp
6259232633Smpcat >>confdefs.h <<_ACEOF
6260232633Smp#define HAVE_STRUCT_UTMPX_UT_TV 1
6261145479Smp_ACEOF
6262145479Smp
6263232633Smp
6264232633Smpfi
6265232633Smpac_fn_c_check_member "$LINENO" "struct utmpx" "ut_xtime" "ac_cv_member_struct_utmpx_ut_xtime" "#include <sys/types.h>
6266145479Smp#ifdef HAVE_UTMPX_H
6267145479Smp#include <utmpx.h>
6268145479Smp#define utmp utmpx
6269145479Smp#elif defined HAVE_UTMP_H
6270145479Smp#include <utmp.h>
6271145479Smp#endif
6272232633Smp"
6273232633Smpif test "x$ac_cv_member_struct_utmpx_ut_xtime" = xyes; then :
6274145479Smp
6275145479Smpcat >>confdefs.h <<_ACEOF
6276232633Smp#define HAVE_STRUCT_UTMPX_UT_XTIME 1
6277145479Smp_ACEOF
6278145479Smp
6279145479Smp
6280145479Smpfi
6281145479Smp
6282232633Smpac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
6283145479Smp#include <sys/socket.h>
6284232633Smp"
6285232633Smpif test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
6286145479Smp
6287145479Smpcat >>confdefs.h <<_ACEOF
6288145479Smp#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
6289145479Smp_ACEOF
6290145479Smp
6291145479Smp
6292145479Smpfi
6293145479Smp
6294145479Smp
6295232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6296232633Smp$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6297232633Smpif ${ac_cv_c_const+:} false; then :
6298232633Smp  $as_echo_n "(cached) " >&6
6299145479Smpelse
6300232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301145479Smp/* end confdefs.h.  */
6302145479Smp
6303145479Smpint
6304145479Smpmain ()
6305145479Smp{
6306145479Smp/* FIXME: Include the comments suggested by Paul. */
6307145479Smp#ifndef __cplusplus
6308145479Smp  /* Ultrix mips cc rejects this.  */
6309145479Smp  typedef int charset[2];
6310195609Smp  const charset cs;
6311145479Smp  /* SunOS 4.1.1 cc rejects this.  */
6312195609Smp  char const *const *pcpcc;
6313195609Smp  char **ppc;
6314145479Smp  /* NEC SVR4.0.2 mips cc rejects this.  */
6315145479Smp  struct point {int x, y;};
6316145479Smp  static struct point const zero = {0,0};
6317145479Smp  /* AIX XL C 1.02.0.0 rejects this.
6318145479Smp     It does not let you subtract one const X* pointer from another in
6319145479Smp     an arm of an if-expression whose if-part is not a constant
6320145479Smp     expression */
6321145479Smp  const char *g = "string";
6322195609Smp  pcpcc = &g + (g ? g-g : 0);
6323145479Smp  /* HPUX 7.0 cc rejects these. */
6324195609Smp  ++pcpcc;
6325195609Smp  ppc = (char**) pcpcc;
6326195609Smp  pcpcc = (char const *const *) ppc;
6327145479Smp  { /* SCO 3.2v4 cc rejects this.  */
6328145479Smp    char *t;
6329145479Smp    char const *s = 0 ? (char *) 0 : (char const *) 0;
6330145479Smp
6331145479Smp    *t++ = 0;
6332195609Smp    if (s) return 0;
6333145479Smp  }
6334145479Smp  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6335145479Smp    int x[] = {25, 17};
6336145479Smp    const int *foo = &x[0];
6337145479Smp    ++foo;
6338145479Smp  }
6339145479Smp  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6340145479Smp    typedef const int *iptr;
6341145479Smp    iptr p = 0;
6342145479Smp    ++p;
6343145479Smp  }
6344145479Smp  { /* AIX XL C 1.02.0.0 rejects this saying
6345145479Smp       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6346145479Smp    struct s { int j; const int *ap[3]; };
6347145479Smp    struct s *b; b->j = 5;
6348145479Smp  }
6349145479Smp  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6350145479Smp    const int foo = 10;
6351195609Smp    if (!foo) return 0;
6352145479Smp  }
6353195609Smp  return !cs[0] && !zero.x;
6354145479Smp#endif
6355145479Smp
6356145479Smp  ;
6357145479Smp  return 0;
6358145479Smp}
6359145479Smp_ACEOF
6360232633Smpif ac_fn_c_try_compile "$LINENO"; then :
6361145479Smp  ac_cv_c_const=yes
6362145479Smpelse
6363232633Smp  ac_cv_c_const=no
6364145479Smpfi
6365195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366145479Smpfi
6367232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6368232633Smp$as_echo "$ac_cv_c_const" >&6; }
6369145479Smpif test $ac_cv_c_const = no; then
6370145479Smp
6371232633Smp$as_echo "#define const /**/" >>confdefs.h
6372145479Smp
6373145479Smpfi
6374145479Smp
6375232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6376232633Smp$as_echo_n "checking for working volatile... " >&6; }
6377232633Smpif ${ac_cv_c_volatile+:} false; then :
6378232633Smp  $as_echo_n "(cached) " >&6
6379145479Smpelse
6380232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381145479Smp/* end confdefs.h.  */
6382145479Smp
6383145479Smpint
6384145479Smpmain ()
6385145479Smp{
6386145479Smp
6387145479Smpvolatile int x;
6388195609Smpint * volatile y = (int *) 0;
6389195609Smpreturn !x && !y;
6390145479Smp  ;
6391145479Smp  return 0;
6392145479Smp}
6393145479Smp_ACEOF
6394232633Smpif ac_fn_c_try_compile "$LINENO"; then :
6395145479Smp  ac_cv_c_volatile=yes
6396145479Smpelse
6397232633Smp  ac_cv_c_volatile=no
6398145479Smpfi
6399195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400145479Smpfi
6401232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6402232633Smp$as_echo "$ac_cv_c_volatile" >&6; }
6403145479Smpif test $ac_cv_c_volatile = no; then
6404145479Smp
6405232633Smp$as_echo "#define volatile /**/" >>confdefs.h
6406145479Smp
6407145479Smpfi
6408145479Smp
6409145479Smp
6410232633Smpac_fn_c_check_decl "$LINENO" "crypt" "ac_cv_have_decl_crypt" "#include \"config_p.h\"
6411167465Smp$ac_includes_default
6412167465Smp#ifdef HAVE_CRYPT_H
6413167465Smp#include <crypt.h>
6414167465Smp#endif
6415167465Smp
6416232633Smp"
6417232633Smpif test "x$ac_cv_have_decl_crypt" = xyes; then :
6418232633Smp  ac_have_decl=1
6419167465Smpelse
6420232633Smp  ac_have_decl=0
6421167465Smpfi
6422195609Smp
6423167465Smpcat >>confdefs.h <<_ACEOF
6424232633Smp#define HAVE_DECL_CRYPT $ac_have_decl
6425167465Smp_ACEOF
6426232633Smpac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "#include \"config_p.h\"
6427167465Smp$ac_includes_default
6428167465Smp#ifdef HAVE_CRYPT_H
6429167465Smp#include <crypt.h>
6430167465Smp#endif
6431167465Smp
6432232633Smp"
6433232633Smpif test "x$ac_cv_have_decl_environ" = xyes; then :
6434232633Smp  ac_have_decl=1
6435167465Smpelse
6436232633Smp  ac_have_decl=0
6437167465Smpfi
6438195609Smp
6439167465Smpcat >>confdefs.h <<_ACEOF
6440232633Smp#define HAVE_DECL_ENVIRON $ac_have_decl
6441167465Smp_ACEOF
6442232633Smpac_fn_c_check_decl "$LINENO" "gethostname" "ac_cv_have_decl_gethostname" "#include \"config_p.h\"
6443145479Smp$ac_includes_default
6444167465Smp#ifdef HAVE_CRYPT_H
6445167465Smp#include <crypt.h>
6446167465Smp#endif
6447167465Smp
6448232633Smp"
6449232633Smpif test "x$ac_cv_have_decl_gethostname" = xyes; then :
6450232633Smp  ac_have_decl=1
6451145479Smpelse
6452232633Smp  ac_have_decl=0
6453145479Smpfi
6454195609Smp
6455145479Smpcat >>confdefs.h <<_ACEOF
6456232633Smp#define HAVE_DECL_GETHOSTNAME $ac_have_decl
6457145479Smp_ACEOF
6458232633Smpac_fn_c_check_decl "$LINENO" "getpgrp" "ac_cv_have_decl_getpgrp" "#include \"config_p.h\"
6459167465Smp$ac_includes_default
6460167465Smp#ifdef HAVE_CRYPT_H
6461167465Smp#include <crypt.h>
6462167465Smp#endif
6463145479Smp
6464232633Smp"
6465232633Smpif test "x$ac_cv_have_decl_getpgrp" = xyes; then :
6466232633Smp  ac_have_decl=1
6467167465Smpelse
6468232633Smp  ac_have_decl=0
6469167465Smpfi
6470195609Smp
6471167465Smpcat >>confdefs.h <<_ACEOF
6472232633Smp#define HAVE_DECL_GETPGRP $ac_have_decl
6473167465Smp_ACEOF
6474145479Smp
6475232633Smpac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
6476232633Smpif test "x$ac_cv_func_setlocale" = xyes; then :
6477167465Smp  have_setlocale=yes
6478167465Smpelse
6479167465Smp  have_setlocale=no
6480167465Smpfi
6481145479Smp
6482232633Smpac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
6483232633Smpif test "x$ac_cv_func_catgets" = xyes; then :
6484232633Smp  have_catgets=yes
6485145479Smpelse
6486232633Smp  have_catgets=no
6487145479Smpfi
6488195609Smp
6489232633Smpfor ac_func in dup2 getauthid getcwd gethostname getpwent 	getutent getutxent mallinfo memmove memset mkstemp nice 	nl_langinfo sbrk setpgid setpriority strerror strstr sysconf wcwidth
6490232633Smpdo :
6491232633Smp  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6492232633Smpac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6493232633Smpif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6494145479Smp  cat >>confdefs.h <<_ACEOF
6495232633Smp#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6496145479Smp_ACEOF
6497145479Smp
6498145479Smpfi
6499145479Smpdone
6500145479Smp
6501232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
6502232633Smp$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
6503232633Smpif ${ac_cv_func_getpgrp_void+:} false; then :
6504232633Smp  $as_echo_n "(cached) " >&6
6505145479Smpelse
6506145479Smp  # Use it with a single arg.
6507232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508145479Smp/* end confdefs.h.  */
6509145479Smp$ac_includes_default
6510145479Smpint
6511145479Smpmain ()
6512145479Smp{
6513145479Smpgetpgrp (0);
6514145479Smp  ;
6515145479Smp  return 0;
6516145479Smp}
6517145479Smp_ACEOF
6518232633Smpif ac_fn_c_try_compile "$LINENO"; then :
6519145479Smp  ac_cv_func_getpgrp_void=no
6520145479Smpelse
6521232633Smp  ac_cv_func_getpgrp_void=yes
6522145479Smpfi
6523195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524195609Smp
6525145479Smpfi
6526232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
6527232633Smp$as_echo "$ac_cv_func_getpgrp_void" >&6; }
6528145479Smpif test $ac_cv_func_getpgrp_void = yes; then
6529145479Smp
6530232633Smp$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
6531145479Smp
6532145479Smpfi
6533145479Smp
6534167465Smp
6535232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6536232633Smp$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
6537232633Smpif ${ac_cv_func_mbrtowc+:} false; then :
6538232633Smp  $as_echo_n "(cached) " >&6
6539167465Smpelse
6540232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541167465Smp/* end confdefs.h.  */
6542167465Smp#include <wchar.h>
6543167465Smpint
6544167465Smpmain ()
6545167465Smp{
6546195609Smpwchar_t wc;
6547195609Smp	      char const s[] = "";
6548195609Smp	      size_t n = 1;
6549195609Smp	      mbstate_t state;
6550195609Smp	      return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
6551167465Smp  ;
6552167465Smp  return 0;
6553167465Smp}
6554167465Smp_ACEOF
6555232633Smpif ac_fn_c_try_link "$LINENO"; then :
6556167465Smp  ac_cv_func_mbrtowc=yes
6557167465Smpelse
6558232633Smp  ac_cv_func_mbrtowc=no
6559167465Smpfi
6560232633Smprm -f core conftest.err conftest.$ac_objext \
6561232633Smp    conftest$ac_exeext conftest.$ac_ext
6562167465Smpfi
6563232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6564232633Smp$as_echo "$ac_cv_func_mbrtowc" >&6; }
6565167465Smp  if test $ac_cv_func_mbrtowc = yes; then
6566167465Smp
6567232633Smp$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6568167465Smp
6569167465Smp  fi
6570167465Smp
6571232633Smpif test "x${cross_compiling}" != xyes ; then
6572232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
6573232633Smp$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
6574232633Smpif ${ac_cv_func_setpgrp_void+:} false; then :
6575232633Smp  $as_echo_n "(cached) " >&6
6576145479Smpelse
6577232633Smp  if test "$cross_compiling" = yes; then :
6578232633Smp  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
6579145479Smpelse
6580232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581145479Smp/* end confdefs.h.  */
6582195609Smp$ac_includes_default
6583145479Smpint
6584145479Smpmain ()
6585145479Smp{
6586145479Smp/* If this system has a BSD-style setpgrp which takes arguments,
6587145479Smp  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
6588145479Smp  exit successfully. */
6589195609Smp  return setpgrp (1,1) != -1;
6590145479Smp  ;
6591145479Smp  return 0;
6592145479Smp}
6593145479Smp_ACEOF
6594232633Smpif ac_fn_c_try_run "$LINENO"; then :
6595145479Smp  ac_cv_func_setpgrp_void=no
6596145479Smpelse
6597232633Smp  ac_cv_func_setpgrp_void=yes
6598145479Smpfi
6599232633Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6600232633Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
6601145479Smpfi
6602195609Smp
6603145479Smpfi
6604232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
6605232633Smp$as_echo "$ac_cv_func_setpgrp_void" >&6; }
6606145479Smpif test $ac_cv_func_setpgrp_void = yes; then
6607145479Smp
6608232633Smp$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
6609145479Smp
6610145479Smpfi
6611145479Smp
6612167465Smpelse
6613232633Smp  ac_cv_func_setpgrp_void=yes
6614232633Smpfi
6615232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
6616232633Smp$as_echo_n "checking for working strcoll... " >&6; }
6617232633Smpif ${ac_cv_func_strcoll_works+:} false; then :
6618232633Smp  $as_echo_n "(cached) " >&6
6619232633Smpelse
6620232633Smp  if test "$cross_compiling" = yes; then :
6621167465Smp  ac_cv_func_strcoll_works=no
6622167465Smpelse
6623232633Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624167465Smp/* end confdefs.h.  */
6625167465Smp$ac_includes_default
6626167465Smpint
6627167465Smpmain ()
6628167465Smp{
6629195609Smpreturn (strcoll ("abc", "def") >= 0 ||
6630167465Smp	 strcoll ("ABC", "DEF") >= 0 ||
6631167465Smp	 strcoll ("123", "456") >= 0)
6632167465Smp  ;
6633167465Smp  return 0;
6634167465Smp}
6635167465Smp_ACEOF
6636232633Smpif ac_fn_c_try_run "$LINENO"; then :
6637167465Smp  ac_cv_func_strcoll_works=yes
6638167465Smpelse
6639232633Smp  ac_cv_func_strcoll_works=no
6640167465Smpfi
6641232633Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6642232633Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
6643167465Smpfi
6644195609Smp
6645167465Smpfi
6646232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
6647232633Smp$as_echo "$ac_cv_func_strcoll_works" >&6; }
6648167465Smpif test $ac_cv_func_strcoll_works = yes; then
6649145479Smp
6650232633Smp$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
6651145479Smp
6652167465Smpfi
6653145479Smp
6654145479Smp
6655167465Smp
6656167465Smp
6657167465Smp
6658167465Smpif test "$have_setlocale" != no; then
6659195609Smp  # Check whether --enable-nls was given.
6660232633Smpif test "${enable_nls+set}" = set; then :
6661195609Smp  enableval=$enable_nls;
6662167465Smpelse
6663167465Smp  enable_nls=yes
6664195609Smpfi
6665195609Smp
6666167465Smp  if test "x$enable_nls" != xno; then
6667167465Smp
6668232633Smp$as_echo "#define NLS 1" >>confdefs.h
6669167465Smp
6670167465Smp  fi
6671167465Smpfi
6672167465Smp
6673232633Smpif test "x$enable_nls" != xno -a "$have_catgets" != no -a -n "$GENCAT" ; then
6674232633Smp  # Check whether --enable-nls-catalogs was given.
6675232633Smpif test "${enable_nls_catalogs+set}" = set; then :
6676232633Smp  enableval=$enable_nls_catalogs;
667769408Sacheelse
6678232633Smp  enable_nls_catalogs=yes
6679195609Smpfi
6680195609Smp
6681232633Smp  if test "x$enable_nls_catalogs" != xno; then
6682232633Smp    BUILD_CATALOGS="yes"
6683145479Smp
6684232633Smp$as_echo "#define NLS_CATALOGS 1" >>confdefs.h
6685145479Smp
6686232633Smp  fi
6687232633Smpfi
6688145479Smp
6689145479Smp
6690232633Smp# Check whether --with-hesiod was given.
6691232633Smpif test "${with_hesiod+set}" = set; then :
6692232633Smp  withval=$with_hesiod; hesiod="$withval"
669369408Sacheelse
6694232633Smp  hesiod=no
669569408Sachefi
6696195609Smp
6697232633Smpif test "$hesiod" != no; then
6698232633Smp  HESLIB="-lhesiod"
6699232633Smp  ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
6700232633Smpif test "x$ac_cv_func_res_send" = xyes; then :
670169408Sache  :
670269408Sacheelse
6703232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
6704232633Smp$as_echo_n "checking for res_send in -lresolv... " >&6; }
6705232633Smpif ${ac_cv_lib_resolv_res_send+:} false; then :
6706232633Smp  $as_echo_n "(cached) " >&6
670769408Sacheelse
6708131962Smp  ac_check_lib_save_LIBS=$LIBS
670969408SacheLIBS="-lresolv  $LIBS"
6710232633Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711131962Smp/* end confdefs.h.  */
6712131962Smp
6713195609Smp/* Override any GCC internal prototype to avoid an error.
6714195609Smp   Use char because int might match the return type of a GCC
6715195609Smp   builtin and then its argument prototype would still apply.  */
6716131962Smp#ifdef __cplusplus
6717131962Smpextern "C"
6718131962Smp#endif
6719131962Smpchar res_send ();
6720131962Smpint
6721131962Smpmain ()
6722131962Smp{
6723195609Smpreturn res_send ();
6724131962Smp  ;
6725131962Smp  return 0;
6726131962Smp}
6727131962Smp_ACEOF
6728232633Smpif ac_fn_c_try_link "$LINENO"; then :
6729131962Smp  ac_cv_lib_resolv_res_send=yes
673069408Sacheelse
6731232633Smp  ac_cv_lib_resolv_res_send=no
673269408Sachefi
6733232633Smprm -f core conftest.err conftest.$ac_objext \
6734232633Smp    conftest$ac_exeext conftest.$ac_ext
6735131962SmpLIBS=$ac_check_lib_save_LIBS
6736131962Smpfi
6737232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
6738232633Smp$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
6739232633Smpif test "x$ac_cv_lib_resolv_res_send" = xyes; then :
674069408Sache  HESLIB="$HESLIB -lresolv"
674169408Sachefi
674269408Sache
674369408Sachefi
674469408Sache
674569408Sache  HESDEF=-DHESIOD
674669408Sache  if test "$hesiod" != yes; then
674769408Sache    HESDEF="$HESDEF -I$hesiod/include"
674869408Sache    HESLIB="-L$hesiod/lib $HESLIB"
674969408Sache  fi
675069408Sachefi
675169408Sache
675269408Sache
675369408Sache
6754131962Smp
6755232633Smpac_config_files="$ac_config_files Makefile nls/Makefile"
6756232633Smp
6757131962Smpcat >confcache <<\_ACEOF
675869408Sache# This file is a shell script that caches the results of configure
675969408Sache# tests run on this system so they can be shared between configure
6760131962Smp# scripts and configure runs, see configure's option --config-cache.
6761131962Smp# It is not useful on other systems.  If it contains results you don't
6762131962Smp# want to keep, you may remove or edit it.
676369408Sache#
6764131962Smp# config.status only pays attention to the cache file if you give it
6765131962Smp# the --recheck option to rerun configure.
676669408Sache#
6767131962Smp# `ac_cv_env_foo' variables (set or unset) will be overridden when
6768131962Smp# loading this file, other *unset* `ac_cv_foo' will be assigned the
6769131962Smp# following values.
6770131962Smp
6771131962Smp_ACEOF
6772131962Smp
677369408Sache# The following way of writing the cache mishandles newlines in values,
677469408Sache# but we know of no workaround that is simple, portable, and efficient.
6775195609Smp# So, we kill variables containing newlines.
677669408Sache# Ultrix sh set writes to stderr and can't be redirected directly,
677769408Sache# and sets the high bit in the cache file unless we assign to the vars.
6778195609Smp(
6779195609Smp  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6780195609Smp    eval ac_val=\$$ac_var
6781195609Smp    case $ac_val in #(
6782195609Smp    *${as_nl}*)
6783195609Smp      case $ac_var in #(
6784232633Smp      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6785232633Smp$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6786195609Smp      esac
6787195609Smp      case $ac_var in #(
6788195609Smp      _ | IFS | as_nl) ;; #(
6789232633Smp      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6790232633Smp      *) { eval $ac_var=; unset $ac_var;} ;;
6791195609Smp      esac ;;
6792195609Smp    esac
6793195609Smp  done
6794195609Smp
6795131962Smp  (set) 2>&1 |
6796195609Smp    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6797195609Smp    *${as_nl}ac_space=\ *)
6798232633Smp      # `set' does not quote correctly, so add quotes: double-quote
6799232633Smp      # substitution turns \\\\ into \\, and sed turns \\ into \.
6800131962Smp      sed -n \
6801145479Smp	"s/'/'\\\\''/g;
6802145479Smp	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6803195609Smp      ;; #(
6804131962Smp    *)
6805131962Smp      # `set' quotes correctly as required by POSIX, so do not add quotes.
6806195609Smp      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6807131962Smp      ;;
6808195609Smp    esac |
6809195609Smp    sort
6810195609Smp) |
6811131962Smp  sed '
6812195609Smp     /^ac_cv_env_/b end
6813131962Smp     t clear
6814195609Smp     :clear
6815131962Smp     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6816131962Smp     t end
6817195609Smp     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6818195609Smp     :end' >>confcache
6819195609Smpif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6820195609Smp  if test -w "$cache_file"; then
6821232633Smp    if test "x$cache_file" != "x/dev/null"; then
6822232633Smp      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6823232633Smp$as_echo "$as_me: updating cache $cache_file" >&6;}
6824232633Smp      if test ! -f "$cache_file" || test -h "$cache_file"; then
6825232633Smp	cat confcache >"$cache_file"
6826232633Smp      else
6827232633Smp        case $cache_file in #(
6828232633Smp        */* | ?:*)
6829232633Smp	  mv -f confcache "$cache_file"$$ &&
6830232633Smp	  mv -f "$cache_file"$$ "$cache_file" ;; #(
6831232633Smp        *)
6832232633Smp	  mv -f confcache "$cache_file" ;;
6833232633Smp	esac
6834232633Smp      fi
6835232633Smp    fi
683669408Sache  else
6837232633Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6838232633Smp$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
683969408Sache  fi
684069408Sachefi
684169408Sacherm -f confcache
684269408Sache
684369408Sachetest "x$prefix" = xNONE && prefix=$ac_default_prefix
684469408Sache# Let make expand exec_prefix.
684569408Sachetest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
684669408Sache
684769408SacheDEFS=-DHAVE_CONFIG_H
684869408Sache
6849131962Smpac_libobjs=
6850131962Smpac_ltlibobjs=
6851232633SmpU=
6852131962Smpfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6853131962Smp  # 1. Remove the extension, and $U if already installed.
6854195609Smp  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6855232633Smp  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6856195609Smp  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6857195609Smp  #    will be set to the directory where LIBOBJS objects are built.
6858232633Smp  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6859232633Smp  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6860131962Smpdone
6861131962SmpLIBOBJS=$ac_libobjs
6862131962Smp
6863131962SmpLTLIBOBJS=$ac_ltlibobjs
6864131962Smp
6865131962Smp
6866131962Smp
6867232633Smp: "${CONFIG_STATUS=./config.status}"
6868232633Smpac_write_fail=0
6869131962Smpac_clean_files_save=$ac_clean_files
6870131962Smpac_clean_files="$ac_clean_files $CONFIG_STATUS"
6871232633Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6872232633Smp$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6873232633Smpas_write_fail=0
6874232633Smpcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6875131962Smp#! $SHELL
6876131962Smp# Generated by $as_me.
687769408Sache# Run this file to recreate the current configuration.
687869408Sache# Compiler output produced by configure, useful for debugging
6879131962Smp# configure, is in config.log if it exists.
688069408Sache
6881131962Smpdebug=false
6882131962Smpac_cs_recheck=false
6883131962Smpac_cs_silent=false
6884232633Smp
6885131962SmpSHELL=\${CONFIG_SHELL-$SHELL}
6886232633Smpexport SHELL
6887232633Smp_ASEOF
6888232633Smpcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6889232633Smp## -------------------- ##
6890232633Smp## M4sh Initialization. ##
6891232633Smp## -------------------- ##
6892131962Smp
6893195609Smp# Be more Bourne compatible
6894195609SmpDUALCASE=1; export DUALCASE # for MKS sh
6895232633Smpif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6896131962Smp  emulate sh
6897131962Smp  NULLCMD=:
6898232633Smp  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6899131962Smp  # is contrary to our usage.  Disable this feature.
6900131962Smp  alias -g '${1+"$@"}'='"$@"'
6901195609Smp  setopt NO_GLOB_SUBST
6902195609Smpelse
6903232633Smp  case `(set -o) 2>/dev/null` in #(
6904232633Smp  *posix*) :
6905232633Smp    set -o posix ;; #(
6906232633Smp  *) :
6907232633Smp     ;;
6908195609Smpesac
6909131962Smpfi
6910131962Smp
6911195609Smp
6912232633Smpas_nl='
6913232633Smp'
6914232633Smpexport as_nl
6915232633Smp# Printing a long string crashes Solaris 7 /usr/bin/printf.
6916232633Smpas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6917232633Smpas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6918232633Smpas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6919232633Smp# Prefer a ksh shell builtin over an external printf program on Solaris,
6920232633Smp# but without wasting forks for bash or zsh.
6921232633Smpif test -z "$BASH_VERSION$ZSH_VERSION" \
6922232633Smp    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6923232633Smp  as_echo='print -r --'
6924232633Smp  as_echo_n='print -rn --'
6925232633Smpelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6926232633Smp  as_echo='printf %s\n'
6927232633Smp  as_echo_n='printf %s'
6928232633Smpelse
6929232633Smp  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6930232633Smp    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6931232633Smp    as_echo_n='/usr/ucb/echo -n'
6932195609Smp  else
6933232633Smp    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6934232633Smp    as_echo_n_body='eval
6935232633Smp      arg=$1;
6936232633Smp      case $arg in #(
6937232633Smp      *"$as_nl"*)
6938232633Smp	expr "X$arg" : "X\\(.*\\)$as_nl";
6939232633Smp	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6940232633Smp      esac;
6941232633Smp      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6942232633Smp    '
6943232633Smp    export as_echo_n_body
6944232633Smp    as_echo_n='sh -c $as_echo_n_body as_echo'
6945195609Smp  fi
6946232633Smp  export as_echo_body
6947232633Smp  as_echo='sh -c $as_echo_body as_echo'
6948195609Smpfi
6949195609Smp
6950232633Smp# The user is always right.
6951232633Smpif test "${PATH_SEPARATOR+set}" != set; then
6952232633Smp  PATH_SEPARATOR=:
6953232633Smp  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6954232633Smp    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6955232633Smp      PATH_SEPARATOR=';'
6956232633Smp  }
6957131962Smpfi
6958131962Smp
6959131962Smp
6960195609Smp# IFS
6961195609Smp# We need space, tab and new line, in precisely that order.  Quoting is
6962195609Smp# there to prevent editors from complaining about space-tab.
6963195609Smp# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6964195609Smp# splitting by setting IFS to empty value.)
6965195609SmpIFS=" ""	$as_nl"
6966195609Smp
6967195609Smp# Find who we are.  Look in the path if we contain no directory separator.
6968232633Smpas_myself=
6969232633Smpcase $0 in #((
6970195609Smp  *[\\/]* ) as_myself=$0 ;;
6971195609Smp  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972195609Smpfor as_dir in $PATH
6973195609Smpdo
6974195609Smp  IFS=$as_save_IFS
6975195609Smp  test -z "$as_dir" && as_dir=.
6976232633Smp    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6977232633Smp  done
6978195609SmpIFS=$as_save_IFS
6979195609Smp
6980195609Smp     ;;
6981195609Smpesac
6982195609Smp# We did not find ourselves, most probably we were run as `sh COMMAND'
6983195609Smp# in which case we are not to be found in the path.
6984195609Smpif test "x$as_myself" = x; then
6985195609Smp  as_myself=$0
6986195609Smpfi
6987195609Smpif test ! -f "$as_myself"; then
6988232633Smp  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6989232633Smp  exit 1
6990195609Smpfi
6991195609Smp
6992232633Smp# Unset variables that we do not need and which cause bugs (e.g. in
6993232633Smp# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6994232633Smp# suppresses any "Segmentation fault" message there.  '((' could
6995232633Smp# trigger a bug in pdksh 5.2.14.
6996232633Smpfor as_var in BASH_ENV ENV MAIL MAILPATH
6997232633Smpdo eval test x\${$as_var+set} = xset \
6998232633Smp  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6999195609Smpdone
7000131962SmpPS1='$ '
7001131962SmpPS2='> '
7002131962SmpPS4='+ '
7003131962Smp
7004131962Smp# NLS nuisances.
7005232633SmpLC_ALL=C
7006232633Smpexport LC_ALL
7007232633SmpLANGUAGE=C
7008232633Smpexport LANGUAGE
7009232633Smp
7010232633Smp# CDPATH.
7011232633Smp(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7012232633Smp
7013232633Smp
7014232633Smp# as_fn_error STATUS ERROR [LINENO LOG_FD]
7015232633Smp# ----------------------------------------
7016232633Smp# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7017232633Smp# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7018232633Smp# script with STATUS, using 1 if that was 0.
7019232633Smpas_fn_error ()
7020232633Smp{
7021232633Smp  as_status=$1; test $as_status -eq 0 && as_status=1
7022232633Smp  if test "$4"; then
7023232633Smp    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7024232633Smp    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7025131962Smp  fi
7026232633Smp  $as_echo "$as_me: error: $2" >&2
7027232633Smp  as_fn_exit $as_status
7028232633Smp} # as_fn_error
702969408Sache
7030232633Smp
7031232633Smp# as_fn_set_status STATUS
7032232633Smp# -----------------------
7033232633Smp# Set $? to STATUS, without forking.
7034232633Smpas_fn_set_status ()
7035232633Smp{
7036232633Smp  return $1
7037232633Smp} # as_fn_set_status
7038232633Smp
7039232633Smp# as_fn_exit STATUS
7040232633Smp# -----------------
7041232633Smp# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7042232633Smpas_fn_exit ()
7043232633Smp{
7044232633Smp  set +e
7045232633Smp  as_fn_set_status $1
7046232633Smp  exit $1
7047232633Smp} # as_fn_exit
7048232633Smp
7049232633Smp# as_fn_unset VAR
7050232633Smp# ---------------
7051232633Smp# Portably unset VAR.
7052232633Smpas_fn_unset ()
7053232633Smp{
7054232633Smp  { eval $1=; unset $1;}
7055232633Smp}
7056232633Smpas_unset=as_fn_unset
7057232633Smp# as_fn_append VAR VALUE
7058232633Smp# ----------------------
7059232633Smp# Append the text in VALUE to the end of the definition contained in VAR. Take
7060232633Smp# advantage of any shell optimizations that allow amortized linear growth over
7061232633Smp# repeated appends, instead of the typical quadratic growth present in naive
7062232633Smp# implementations.
7063232633Smpif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7064232633Smp  eval 'as_fn_append ()
7065232633Smp  {
7066232633Smp    eval $1+=\$2
7067232633Smp  }'
7068232633Smpelse
7069232633Smp  as_fn_append ()
7070232633Smp  {
7071232633Smp    eval $1=\$$1\$2
7072232633Smp  }
7073232633Smpfi # as_fn_append
7074232633Smp
7075232633Smp# as_fn_arith ARG...
7076232633Smp# ------------------
7077232633Smp# Perform arithmetic evaluation on the ARGs, and store the result in the
7078232633Smp# global $as_val. Take advantage of shells that can avoid forks. The arguments
7079232633Smp# must be portable across $(()) and expr.
7080232633Smpif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7081232633Smp  eval 'as_fn_arith ()
7082232633Smp  {
7083232633Smp    as_val=$(( $* ))
7084232633Smp  }'
7085232633Smpelse
7086232633Smp  as_fn_arith ()
7087232633Smp  {
7088232633Smp    as_val=`expr "$@" || test $? -eq 1`
7089232633Smp  }
7090232633Smpfi # as_fn_arith
7091232633Smp
7092232633Smp
7093195609Smpif expr a : '\(a\)' >/dev/null 2>&1 &&
7094195609Smp   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7095131962Smp  as_expr=expr
7096131962Smpelse
7097131962Smp  as_expr=false
7098131962Smpfi
709969408Sache
7100195609Smpif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7101131962Smp  as_basename=basename
7102131962Smpelse
7103131962Smp  as_basename=false
7104131962Smpfi
710569408Sache
7106232633Smpif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7107232633Smp  as_dirname=dirname
7108232633Smpelse
7109232633Smp  as_dirname=false
7110232633Smpfi
711169408Sache
7112195609Smpas_me=`$as_basename -- "$0" ||
7113131962Smp$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7114131962Smp	 X"$0" : 'X\(//\)$' \| \
7115195609Smp	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7116232633Smp$as_echo X/"$0" |
7117195609Smp    sed '/^.*\/\([^/][^/]*\)\/*$/{
7118195609Smp	    s//\1/
7119195609Smp	    q
7120195609Smp	  }
7121195609Smp	  /^X\/\(\/\/\)$/{
7122195609Smp	    s//\1/
7123195609Smp	    q
7124195609Smp	  }
7125195609Smp	  /^X\/\(\/\).*/{
7126195609Smp	    s//\1/
7127195609Smp	    q
7128195609Smp	  }
7129195609Smp	  s/.*/./; q'`
713069408Sache
7131232633Smp# Avoid depending upon Character Ranges.
7132232633Smpas_cr_letters='abcdefghijklmnopqrstuvwxyz'
7133232633Smpas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7134232633Smpas_cr_Letters=$as_cr_letters$as_cr_LETTERS
7135232633Smpas_cr_digits='0123456789'
7136232633Smpas_cr_alnum=$as_cr_Letters$as_cr_digits
713769408Sache
7138195609SmpECHO_C= ECHO_N= ECHO_T=
7139232633Smpcase `echo -n x` in #(((((
7140195609Smp-n*)
7141232633Smp  case `echo 'xy\c'` in
7142195609Smp  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7143232633Smp  xy)  ECHO_C='\c';;
7144232633Smp  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7145232633Smp       ECHO_T='	';;
7146195609Smp  esac;;
7147195609Smp*)
7148195609Smp  ECHO_N='-n';;
7149131962Smpesac
7150131962Smp
7151131962Smprm -f conf$$ conf$$.exe conf$$.file
7152195609Smpif test -d conf$$.dir; then
7153195609Smp  rm -f conf$$.dir/conf$$.file
7154195609Smpelse
7155195609Smp  rm -f conf$$.dir
7156232633Smp  mkdir conf$$.dir 2>/dev/null
7157195609Smpfi
7158232633Smpif (echo >conf$$.file) 2>/dev/null; then
7159232633Smp  if ln -s conf$$.file conf$$ 2>/dev/null; then
7160232633Smp    as_ln_s='ln -s'
7161232633Smp    # ... but there are two gotchas:
7162232633Smp    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7163232633Smp    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7164232633Smp    # In both cases, we have to default to `cp -p'.
7165232633Smp    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7166232633Smp      as_ln_s='cp -p'
7167232633Smp  elif ln conf$$.file conf$$ 2>/dev/null; then
7168232633Smp    as_ln_s=ln
7169232633Smp  else
7170131962Smp    as_ln_s='cp -p'
7171232633Smp  fi
7172131962Smpelse
7173131962Smp  as_ln_s='cp -p'
7174131962Smpfi
7175195609Smprm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7176195609Smprmdir conf$$.dir 2>/dev/null
7177131962Smp
7178232633Smp
7179232633Smp# as_fn_mkdir_p
7180232633Smp# -------------
7181232633Smp# Create "$as_dir" as a directory, including parents if necessary.
7182232633Smpas_fn_mkdir_p ()
7183232633Smp{
7184232633Smp
7185232633Smp  case $as_dir in #(
7186232633Smp  -*) as_dir=./$as_dir;;
7187232633Smp  esac
7188232633Smp  test -d "$as_dir" || eval $as_mkdir_p || {
7189232633Smp    as_dirs=
7190232633Smp    while :; do
7191232633Smp      case $as_dir in #(
7192232633Smp      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7193232633Smp      *) as_qdir=$as_dir;;
7194232633Smp      esac
7195232633Smp      as_dirs="'$as_qdir' $as_dirs"
7196232633Smp      as_dir=`$as_dirname -- "$as_dir" ||
7197232633Smp$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7198232633Smp	 X"$as_dir" : 'X\(//\)[^/]' \| \
7199232633Smp	 X"$as_dir" : 'X\(//\)$' \| \
7200232633Smp	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7201232633Smp$as_echo X"$as_dir" |
7202232633Smp    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7203232633Smp	    s//\1/
7204232633Smp	    q
7205232633Smp	  }
7206232633Smp	  /^X\(\/\/\)[^/].*/{
7207232633Smp	    s//\1/
7208232633Smp	    q
7209232633Smp	  }
7210232633Smp	  /^X\(\/\/\)$/{
7211232633Smp	    s//\1/
7212232633Smp	    q
7213232633Smp	  }
7214232633Smp	  /^X\(\/\).*/{
7215232633Smp	    s//\1/
7216232633Smp	    q
7217232633Smp	  }
7218232633Smp	  s/.*/./; q'`
7219232633Smp      test -d "$as_dir" && break
7220232633Smp    done
7221232633Smp    test -z "$as_dirs" || eval "mkdir $as_dirs"
7222232633Smp  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7223232633Smp
7224232633Smp
7225232633Smp} # as_fn_mkdir_p
7226131962Smpif mkdir -p . 2>/dev/null; then
7227232633Smp  as_mkdir_p='mkdir -p "$as_dir"'
7228131962Smpelse
7229145479Smp  test -d ./-p && rmdir ./-p
7230131962Smp  as_mkdir_p=false
7231131962Smpfi
7232131962Smp
7233195609Smpif test -x / >/dev/null 2>&1; then
7234195609Smp  as_test_x='test -x'
7235195609Smpelse
7236195609Smp  if ls -dL / >/dev/null 2>&1; then
7237195609Smp    as_ls_L_option=L
7238195609Smp  else
7239195609Smp    as_ls_L_option=
7240195609Smp  fi
7241195609Smp  as_test_x='
7242195609Smp    eval sh -c '\''
7243195609Smp      if test -d "$1"; then
7244232633Smp	test -d "$1/.";
7245195609Smp      else
7246232633Smp	case $1 in #(
7247232633Smp	-*)set "./$1";;
7248195609Smp	esac;
7249232633Smp	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7250195609Smp	???[sx]*):;;*)false;;esac;fi
7251195609Smp    '\'' sh
7252195609Smp  '
7253195609Smpfi
7254195609Smpas_executable_p=$as_test_x
7255131962Smp
7256131962Smp# Sed expression to map a string onto a valid CPP name.
7257145479Smpas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7258131962Smp
7259131962Smp# Sed expression to map a string onto a valid variable name.
7260145479Smpas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7261131962Smp
7262131962Smp
7263131962Smpexec 6>&1
7264232633Smp## ----------------------------------- ##
7265232633Smp## Main body of $CONFIG_STATUS script. ##
7266232633Smp## ----------------------------------- ##
7267232633Smp_ASEOF
7268232633Smptest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7269131962Smp
7270232633Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7271232633Smp# Save the log message, to keep $0 and so on meaningful, and to
7272131962Smp# report actual input values of CONFIG_FILES etc. instead of their
7273195609Smp# values after options handling.
7274195609Smpac_log="
7275232633SmpThis file was extended by tcsh $as_me 6.18.01, which was
7276232633Smpgenerated by GNU Autoconf 2.68.  Invocation command line was
7277131962Smp
7278131962Smp  CONFIG_FILES    = $CONFIG_FILES
7279131962Smp  CONFIG_HEADERS  = $CONFIG_HEADERS
7280131962Smp  CONFIG_LINKS    = $CONFIG_LINKS
7281131962Smp  CONFIG_COMMANDS = $CONFIG_COMMANDS
7282131962Smp  $ $0 $@
7283131962Smp
7284195609Smpon `(hostname || uname -n) 2>/dev/null | sed 1q`
7285195609Smp"
7286195609Smp
7287131962Smp_ACEOF
7288131962Smp
7289232633Smpcase $ac_config_files in *"
7290232633Smp"*) set x $ac_config_files; shift; ac_config_files=$*;;
7291232633Smpesac
7292232633Smp
7293232633Smpcase $ac_config_headers in *"
7294232633Smp"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7295232633Smpesac
7296232633Smp
7297232633Smp
7298232633Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7299131962Smp# Files that config.status was made for.
7300195609Smpconfig_files="$ac_config_files"
7301195609Smpconfig_headers="$ac_config_headers"
7302195609Smpconfig_commands="$ac_config_commands"
7303131962Smp
7304195609Smp_ACEOF
7305131962Smp
7306232633Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7307131962Smpac_cs_usage="\
7308232633Smp\`$as_me' instantiates files and other configuration actions
7309232633Smpfrom templates according to the current configuration.  Unless the files
7310232633Smpand actions are specified as TAGs, all are instantiated by default.
7311131962Smp
7312232633SmpUsage: $0 [OPTION]... [TAG]...
7313131962Smp
7314131962Smp  -h, --help       print this help, then exit
7315195609Smp  -V, --version    print version number and configuration settings, then exit
7316232633Smp      --config     print configuration, then exit
7317232633Smp  -q, --quiet, --silent
7318232633Smp                   do not print progress messages
7319131962Smp  -d, --debug      don't remove temporary files
7320131962Smp      --recheck    update $as_me by reconfiguring in the same conditions
7321232633Smp      --file=FILE[:TEMPLATE]
7322232633Smp                   instantiate the configuration file FILE
7323232633Smp      --header=FILE[:TEMPLATE]
7324232633Smp                   instantiate the configuration header FILE
7325131962Smp
7326131962SmpConfiguration files:
7327131962Smp$config_files
7328131962Smp
7329131962SmpConfiguration headers:
7330131962Smp$config_headers
7331131962Smp
7332167465SmpConfiguration commands:
7333167465Smp$config_commands
7334167465Smp
7335232633SmpReport bugs to <http://bugs.gw.com/>."
7336195609Smp
7337131962Smp_ACEOF
7338232633Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7339232633Smpac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7340131962Smpac_cs_version="\\
7341232633Smptcsh config.status 6.18.01
7342232633Smpconfigured by $0, generated by GNU Autoconf 2.68,
7343232633Smp  with options \\"\$ac_cs_config\\"
7344131962Smp
7345232633SmpCopyright (C) 2010 Free Software Foundation, Inc.
7346131962SmpThis config.status script is free software; the Free Software Foundation
7347131962Smpgives unlimited permission to copy, distribute and modify it."
7348195609Smp
7349195609Smpac_pwd='$ac_pwd'
7350195609Smpsrcdir='$srcdir'
7351232633SmpINSTALL='$INSTALL'
7352232633Smptest -n "\$AWK" || AWK=awk
7353131962Smp_ACEOF
7354131962Smp
7355232633Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7356232633Smp# The default lists apply if the user does not specify any file.
7357131962Smpac_need_defaults=:
7358131962Smpwhile test $# != 0
7359131962Smpdo
7360131962Smp  case $1 in
7361232633Smp  --*=?*)
7362195609Smp    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7363195609Smp    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7364131962Smp    ac_shift=:
7365131962Smp    ;;
7366232633Smp  --*=)
7367232633Smp    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7368232633Smp    ac_optarg=
7369232633Smp    ac_shift=:
7370232633Smp    ;;
7371195609Smp  *)
7372131962Smp    ac_option=$1
7373131962Smp    ac_optarg=$2
7374131962Smp    ac_shift=shift
7375131962Smp    ;;
7376131962Smp  esac
7377131962Smp
7378131962Smp  case $ac_option in
7379131962Smp  # Handling of the options.
7380131962Smp  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7381131962Smp    ac_cs_recheck=: ;;
7382195609Smp  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7383232633Smp    $as_echo "$ac_cs_version"; exit ;;
7384232633Smp  --config | --confi | --conf | --con | --co | --c )
7385232633Smp    $as_echo "$ac_cs_config"; exit ;;
7386195609Smp  --debug | --debu | --deb | --de | --d | -d )
7387131962Smp    debug=: ;;
7388131962Smp  --file | --fil | --fi | --f )
7389131962Smp    $ac_shift
7390232633Smp    case $ac_optarg in
7391232633Smp    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7392232633Smp    '') as_fn_error $? "missing file argument" ;;
7393232633Smp    esac
7394232633Smp    as_fn_append CONFIG_FILES " '$ac_optarg'"
7395131962Smp    ac_need_defaults=false;;
7396131962Smp  --header | --heade | --head | --hea )
7397131962Smp    $ac_shift
7398232633Smp    case $ac_optarg in
7399232633Smp    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7400232633Smp    esac
7401232633Smp    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7402131962Smp    ac_need_defaults=false;;
7403195609Smp  --he | --h)
7404195609Smp    # Conflict between --help and --header
7405232633Smp    as_fn_error $? "ambiguous option: \`$1'
7406232633SmpTry \`$0 --help' for more information.";;
7407195609Smp  --help | --hel | -h )
7408232633Smp    $as_echo "$ac_cs_usage"; exit ;;
7409131962Smp  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7410131962Smp  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7411131962Smp    ac_cs_silent=: ;;
7412131962Smp
7413131962Smp  # This is an error.
7414232633Smp  -*) as_fn_error $? "unrecognized option: \`$1'
7415232633SmpTry \`$0 --help' for more information." ;;
7416131962Smp
7417232633Smp  *) as_fn_append ac_config_targets " $1"
7418195609Smp     ac_need_defaults=false ;;
7419131962Smp
7420131962Smp  esac
7421131962Smp  shift
742269408Sachedone
7423131962Smp
7424131962Smpac_configure_extra_args=
7425131962Smp
7426131962Smpif $ac_cs_silent; then
7427131962Smp  exec 6>/dev/null
7428131962Smp  ac_configure_extra_args="$ac_configure_extra_args --silent"
742969408Sachefi
743069408Sache
7431131962Smp_ACEOF
7432232633Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7433131962Smpif \$ac_cs_recheck; then
7434232633Smp  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7435232633Smp  shift
7436232633Smp  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7437232633Smp  CONFIG_SHELL='$SHELL'
7438195609Smp  export CONFIG_SHELL
7439232633Smp  exec "\$@"
7440131962Smpfi
744169408Sache
7442131962Smp_ACEOF
7443232633Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7444195609Smpexec 5>>config.log
7445195609Smp{
7446195609Smp  echo
7447195609Smp  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7448195609Smp## Running $as_me. ##
7449195609Smp_ASBOX
7450232633Smp  $as_echo "$ac_log"
7451195609Smp} >&5
7452131962Smp
7453195609Smp_ACEOF
7454232633Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7455232633Smp#
7456232633Smp# INIT-COMMANDS
7457232633Smp#
7458232633Smp
7459232633Smp
7460195609Smp_ACEOF
7461131962Smp
7462232633Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7463131962Smp
7464195609Smp# Handling of arguments.
7465131962Smpfor ac_config_target in $ac_config_targets
7466131962Smpdo
7467195609Smp  case $ac_config_target in
7468195609Smp    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7469195609Smp    "./atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS ./atconfig" ;;
7470195609Smp    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7471232633Smp    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
7472195609Smp
7473232633Smp  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7474131962Smp  esac
7475131962Smpdone
7476131962Smp
7477195609Smp
7478131962Smp# If the user did not use the arguments to specify the items to instantiate,
7479131962Smp# then the envvar interface is used.  Set only those that are not.
7480131962Smp# We use the long form for the default assignment because of an extremely
7481131962Smp# bizarre bug on SunOS 4.1.3.
7482131962Smpif $ac_need_defaults; then
7483131962Smp  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7484131962Smp  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7485167465Smp  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7486131962Smpfi
7487131962Smp
7488131962Smp# Have a temporary directory for convenience.  Make it in the build tree
7489195609Smp# simply because there is no reason against having it here, and in addition,
7490131962Smp# creating and moving files from /tmp can sometimes cause problems.
7491195609Smp# Hook for its removal unless debugging.
7492195609Smp# Note that there is a small window in which the directory will not be cleaned:
7493195609Smp# after its creation but before its name has been assigned to `$tmp'.
7494131962Smp$debug ||
7495131962Smp{
7496232633Smp  tmp= ac_tmp=
7497195609Smp  trap 'exit_status=$?
7498232633Smp  : "${ac_tmp:=$tmp}"
7499232633Smp  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7500195609Smp' 0
7501232633Smp  trap 'as_fn_exit 1' 1 2 13 15
7502131962Smp}
7503131962Smp# Create a (secure) tmp directory for tmp files.
7504131962Smp
7505131962Smp{
7506195609Smp  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7507232633Smp  test -d "$tmp"
7508131962Smp}  ||
7509131962Smp{
7510195609Smp  tmp=./conf$$-$RANDOM
7511195609Smp  (umask 077 && mkdir "$tmp")
7512232633Smp} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7513232633Smpac_tmp=$tmp
7514131962Smp
7515232633Smp# Set up the scripts for CONFIG_FILES section.
7516232633Smp# No need to generate them if there are no CONFIG_FILES.
7517232633Smp# This happens for instance with `./config.status config.h'.
7518195609Smpif test -n "$CONFIG_FILES"; then
7519131962Smp
7520232633Smp
7521232633Smpac_cr=`echo X | tr X '\015'`
7522232633Smp# On cygwin, bash can eat \r inside `` if the user requested igncr.
7523232633Smp# But we know of no other shell where ac_cr would be empty at this
7524232633Smp# point, so we can use a bashism as a fallback.
7525232633Smpif test "x$ac_cr" = x; then
7526232633Smp  eval ac_cr=\$\'\\r\'
7527232633Smpfi
7528232633Smpac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7529232633Smpif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7530232633Smp  ac_cs_awk_cr='\\r'
7531232633Smpelse
7532232633Smp  ac_cs_awk_cr=$ac_cr
7533232633Smpfi
7534232633Smp
7535232633Smpecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7536131962Smp_ACEOF
7537131962Smp
7538195609Smp
7539232633Smp{
7540232633Smp  echo "cat >conf$$subs.awk <<_ACEOF" &&
7541232633Smp  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7542232633Smp  echo "_ACEOF"
7543232633Smp} >conf$$subs.sh ||
7544232633Smp  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7545232633Smpac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7546195609Smpac_delim='%!_!# '
7547195609Smpfor ac_last_try in false false false false false :; do
7548232633Smp  . ./conf$$subs.sh ||
7549232633Smp    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7550195609Smp
7551232633Smp  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7552232633Smp  if test $ac_delim_n = $ac_delim_num; then
7553195609Smp    break
7554195609Smp  elif $ac_last_try; then
7555232633Smp    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7556195609Smp  else
7557195609Smp    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7558131962Smp  fi
7559195609Smpdone
7560232633Smprm -f conf$$subs.sh
7561131962Smp
7562232633Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7563232633Smpcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7564232633Smp_ACEOF
7565232633Smpsed -n '
7566232633Smph
7567232633Smps/^/S["/; s/!.*/"]=/
7568232633Smpp
7569232633Smpg
7570232633Smps/^[^!]*!//
7571232633Smp:repl
7572232633Smpt repl
7573232633Smps/'"$ac_delim"'$//
7574232633Smpt delim
7575232633Smp:nl
7576232633Smph
7577232633Smps/\(.\{148\}\)..*/\1/
7578232633Smpt more1
7579232633Smps/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7580232633Smpp
7581232633Smpn
7582232633Smpb repl
7583232633Smp:more1
7584232633Smps/["\\]/\\&/g; s/^/"/; s/$/"\\/
7585232633Smpp
7586232633Smpg
7587232633Smps/.\{148\}//
7588232633Smpt nl
7589232633Smp:delim
7590232633Smph
7591232633Smps/\(.\{148\}\)..*/\1/
7592232633Smpt more2
7593232633Smps/["\\]/\\&/g; s/^/"/; s/$/"/
7594232633Smpp
7595232633Smpb
7596232633Smp:more2
7597232633Smps/["\\]/\\&/g; s/^/"/; s/$/"\\/
7598232633Smpp
7599232633Smpg
7600232633Smps/.\{148\}//
7601232633Smpt delim
7602232633Smp' <conf$$subs.awk | sed '
7603232633Smp/^[^""]/{
7604232633Smp  N
7605232633Smp  s/\n//
7606232633Smp}
7607232633Smp' >>$CONFIG_STATUS || ac_write_fail=1
7608232633Smprm -f conf$$subs.awk
7609232633Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7610232633Smp_ACAWK
7611232633Smpcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7612232633Smp  for (key in S) S_is_set[key] = 1
7613232633Smp  FS = ""
7614195609Smp
7615232633Smp}
7616232633Smp{
7617232633Smp  line = $ 0
7618232633Smp  nfields = split(line, field, "@")
7619232633Smp  substed = 0
7620232633Smp  len = length(field[1])
7621232633Smp  for (i = 2; i < nfields; i++) {
7622232633Smp    key = field[i]
7623232633Smp    keylen = length(key)
7624232633Smp    if (S_is_set[key]) {
7625232633Smp      value = S[key]
7626232633Smp      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7627232633Smp      len += length(value) + length(field[++i])
7628232633Smp      substed = 1
7629232633Smp    } else
7630232633Smp      len += 1 + keylen
7631232633Smp  }
7632232633Smp
7633232633Smp  print line
7634232633Smp}
7635232633Smp
7636232633Smp_ACAWK
7637131962Smp_ACEOF
7638232633Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7639232633Smpif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7640232633Smp  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7641232633Smpelse
7642232633Smp  cat
7643232633Smpfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7644232633Smp  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7645195609Smp_ACEOF
7646195609Smp
7647232633Smp# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7648232633Smp# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7649195609Smp# trailing colons and then remove the whole line if VPATH becomes empty
7650195609Smp# (actually we leave an empty line to preserve line numbers).
7651195609Smpif test "x$srcdir" = x.; then
7652232633Smp  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
7653232633Smph
7654232633Smps///
7655232633Smps/^/:/
7656232633Smps/[	 ]*$/:/
7657232633Smps/:\$(srcdir):/:/g
7658232633Smps/:\${srcdir}:/:/g
7659232633Smps/:@srcdir@:/:/g
7660232633Smps/^:*//
7661195609Smps/:*$//
7662232633Smpx
7663232633Smps/\(=[	 ]*\).*/\1/
7664232633SmpG
7665232633Smps/\n//
7666195609Smps/^[^=]*=[	 ]*$//
7667195609Smp}'
7668195609Smpfi
7669195609Smp
7670232633Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7671195609Smpfi # test -n "$CONFIG_FILES"
7672195609Smp
7673232633Smp# Set up the scripts for CONFIG_HEADERS section.
7674232633Smp# No need to generate them if there are no CONFIG_HEADERS.
7675232633Smp# This happens for instance with `./config.status Makefile'.
7676232633Smpif test -n "$CONFIG_HEADERS"; then
7677232633Smpcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7678232633SmpBEGIN {
7679232633Smp_ACEOF
7680195609Smp
7681232633Smp# Transform confdefs.h into an awk script `defines.awk', embedded as
7682232633Smp# here-document in config.status, that substitutes the proper values into
7683232633Smp# config.h.in to produce config.h.
7684232633Smp
7685232633Smp# Create a delimiter string that does not exist in confdefs.h, to ease
7686232633Smp# handling of long lines.
7687232633Smpac_delim='%!_!# '
7688232633Smpfor ac_last_try in false false :; do
7689232633Smp  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7690232633Smp  if test -z "$ac_tt"; then
7691232633Smp    break
7692232633Smp  elif $ac_last_try; then
7693232633Smp    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7694232633Smp  else
7695232633Smp    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7696232633Smp  fi
7697232633Smpdone
7698232633Smp
7699232633Smp# For the awk script, D is an array of macro values keyed by name,
7700232633Smp# likewise P contains macro parameters if any.  Preserve backslash
7701232633Smp# newline sequences.
7702232633Smp
7703232633Smpac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7704232633Smpsed -n '
7705232633Smps/.\{148\}/&'"$ac_delim"'/g
7706232633Smpt rset
7707232633Smp:rset
7708232633Smps/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
7709232633Smpt def
7710232633Smpd
7711232633Smp:def
7712232633Smps/\\$//
7713232633Smpt bsnl
7714232633Smps/["\\]/\\&/g
7715232633Smps/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7716232633SmpD["\1"]=" \3"/p
7717232633Smps/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
7718232633Smpd
7719232633Smp:bsnl
7720232633Smps/["\\]/\\&/g
7721232633Smps/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7722232633SmpD["\1"]=" \3\\\\\\n"\\/p
7723232633Smpt cont
7724232633Smps/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7725232633Smpt cont
7726232633Smpd
7727232633Smp:cont
7728232633Smpn
7729232633Smps/.\{148\}/&'"$ac_delim"'/g
7730232633Smpt clear
7731232633Smp:clear
7732232633Smps/\\$//
7733232633Smpt bsnlc
7734232633Smps/["\\]/\\&/g; s/^/"/; s/$/"/p
7735232633Smpd
7736232633Smp:bsnlc
7737232633Smps/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7738232633Smpb cont
7739232633Smp' <confdefs.h | sed '
7740232633Smps/'"$ac_delim"'/"\\\
7741232633Smp"/g' >>$CONFIG_STATUS || ac_write_fail=1
7742232633Smp
7743232633Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7744232633Smp  for (key in D) D_is_set[key] = 1
7745232633Smp  FS = ""
7746232633Smp}
7747232633Smp/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7748232633Smp  line = \$ 0
7749232633Smp  split(line, arg, " ")
7750232633Smp  if (arg[1] == "#") {
7751232633Smp    defundef = arg[2]
7752232633Smp    mac1 = arg[3]
7753232633Smp  } else {
7754232633Smp    defundef = substr(arg[1], 2)
7755232633Smp    mac1 = arg[2]
7756232633Smp  }
7757232633Smp  split(mac1, mac2, "(") #)
7758232633Smp  macro = mac2[1]
7759232633Smp  prefix = substr(line, 1, index(line, defundef) - 1)
7760232633Smp  if (D_is_set[macro]) {
7761232633Smp    # Preserve the white space surrounding the "#".
7762232633Smp    print prefix "define", macro P[macro] D[macro]
7763232633Smp    next
7764232633Smp  } else {
7765232633Smp    # Replace #undef with comments.  This is necessary, for example,
7766232633Smp    # in the case of _POSIX_SOURCE, which is predefined and required
7767232633Smp    # on some systems where configure will not decide to define it.
7768232633Smp    if (defundef == "undef") {
7769232633Smp      print "/*", prefix defundef, macro, "*/"
7770232633Smp      next
7771232633Smp    }
7772232633Smp  }
7773232633Smp}
7774232633Smp{ print }
7775232633Smp_ACAWK
7776232633Smp_ACEOF
7777232633Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7778232633Smp  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7779232633Smpfi # test -n "$CONFIG_HEADERS"
7780232633Smp
7781232633Smp
7782232633Smpeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7783232633Smpshift
7784232633Smpfor ac_tag
7785195609Smpdo
7786195609Smp  case $ac_tag in
7787195609Smp  :[FHLC]) ac_mode=$ac_tag; continue;;
778869408Sache  esac
7789195609Smp  case $ac_mode$ac_tag in
7790195609Smp  :[FHL]*:*);;
7791232633Smp  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7792195609Smp  :[FH]-) ac_tag=-:-;;
7793195609Smp  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7794195609Smp  esac
7795195609Smp  ac_save_IFS=$IFS
7796195609Smp  IFS=:
7797195609Smp  set x $ac_tag
7798195609Smp  IFS=$ac_save_IFS
7799195609Smp  shift
7800195609Smp  ac_file=$1
7801195609Smp  shift
780269408Sache
7803195609Smp  case $ac_mode in
7804195609Smp  :L) ac_source=$1;;
7805195609Smp  :[FH])
7806195609Smp    ac_file_inputs=
7807195609Smp    for ac_f
7808195609Smp    do
7809195609Smp      case $ac_f in
7810232633Smp      -) ac_f="$ac_tmp/stdin";;
7811195609Smp      *) # Look for the file first in the build tree, then in the source tree
7812195609Smp	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7813195609Smp	 # because $ac_f cannot contain `:'.
7814195609Smp	 test -f "$ac_f" ||
7815195609Smp	   case $ac_f in
7816195609Smp	   [\\/$]*) false;;
7817195609Smp	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7818195609Smp	   esac ||
7819232633Smp	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7820195609Smp      esac
7821232633Smp      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7822232633Smp      as_fn_append ac_file_inputs " '$ac_f'"
7823195609Smp    done
7824195609Smp
7825195609Smp    # Let's still pretend it is `configure' which instantiates (i.e., don't
7826195609Smp    # use $as_me), people would be surprised to read:
7827195609Smp    #    /* config.h.  Generated by config.status.  */
7828232633Smp    configure_input='Generated from '`
7829232633Smp	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7830232633Smp	`' by configure.'
7831195609Smp    if test x"$ac_file" != x-; then
7832195609Smp      configure_input="$ac_file.  $configure_input"
7833232633Smp      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7834232633Smp$as_echo "$as_me: creating $ac_file" >&6;}
7835195609Smp    fi
7836232633Smp    # Neutralize special characters interpreted by sed in replacement strings.
7837232633Smp    case $configure_input in #(
7838232633Smp    *\&* | *\|* | *\\* )
7839232633Smp       ac_sed_conf_input=`$as_echo "$configure_input" |
7840232633Smp       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7841232633Smp    *) ac_sed_conf_input=$configure_input;;
7842232633Smp    esac
7843195609Smp
7844195609Smp    case $ac_tag in
7845232633Smp    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7846232633Smp      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7847195609Smp    esac
7848195609Smp    ;;
7849195609Smp  esac
7850195609Smp
7851195609Smp  ac_dir=`$as_dirname -- "$ac_file" ||
7852131962Smp$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7853145479Smp	 X"$ac_file" : 'X\(//\)[^/]' \| \
7854145479Smp	 X"$ac_file" : 'X\(//\)$' \| \
7855195609Smp	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7856232633Smp$as_echo X"$ac_file" |
7857195609Smp    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7858195609Smp	    s//\1/
7859195609Smp	    q
7860195609Smp	  }
7861195609Smp	  /^X\(\/\/\)[^/].*/{
7862195609Smp	    s//\1/
7863195609Smp	    q
7864195609Smp	  }
7865195609Smp	  /^X\(\/\/\)$/{
7866195609Smp	    s//\1/
7867195609Smp	    q
7868195609Smp	  }
7869195609Smp	  /^X\(\/\).*/{
7870195609Smp	    s//\1/
7871195609Smp	    q
7872195609Smp	  }
7873195609Smp	  s/.*/./; q'`
7874232633Smp  as_dir="$ac_dir"; as_fn_mkdir_p
7875131962Smp  ac_builddir=.
7876131962Smp
7877195609Smpcase "$ac_dir" in
7878195609Smp.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7879195609Smp*)
7880232633Smp  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7881195609Smp  # A ".." for each directory in $ac_dir_suffix.
7882232633Smp  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7883195609Smp  case $ac_top_builddir_sub in
7884195609Smp  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7885195609Smp  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7886195609Smp  esac ;;
7887195609Smpesac
7888195609Smpac_abs_top_builddir=$ac_pwd
7889195609Smpac_abs_builddir=$ac_pwd$ac_dir_suffix
7890195609Smp# for backward compatibility:
7891195609Smpac_top_builddir=$ac_top_build_prefix
7892131962Smp
7893131962Smpcase $srcdir in
7894195609Smp  .)  # We are building in place.
7895131962Smp    ac_srcdir=.
7896195609Smp    ac_top_srcdir=$ac_top_builddir_sub
7897195609Smp    ac_abs_top_srcdir=$ac_pwd ;;
7898195609Smp  [\\/]* | ?:[\\/]* )  # Absolute name.
7899131962Smp    ac_srcdir=$srcdir$ac_dir_suffix;
7900195609Smp    ac_top_srcdir=$srcdir
7901195609Smp    ac_abs_top_srcdir=$srcdir ;;
7902195609Smp  *) # Relative name.
7903195609Smp    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7904195609Smp    ac_top_srcdir=$ac_top_build_prefix$srcdir
7905195609Smp    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7906131962Smpesac
7907195609Smpac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7908131962Smp
7909131962Smp
7910195609Smp  case $ac_mode in
7911195609Smp  :F)
7912195609Smp  #
7913195609Smp  # CONFIG_FILE
7914195609Smp  #
7915131962Smp
7916232633Smp  case $INSTALL in
7917232633Smp  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7918232633Smp  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7919232633Smp  esac
7920195609Smp_ACEOF
7921145479Smp
7922232633Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7923195609Smp# If the template does not know about datarootdir, expand it.
7924195609Smp# FIXME: This hack should be removed a few years after 2.60.
7925195609Smpac_datarootdir_hack=; ac_datarootdir_seen=
7926232633Smpac_sed_dataroot='
7927232633Smp/datarootdir/ {
7928195609Smp  p
7929195609Smp  q
7930195609Smp}
7931195609Smp/@datadir@/p
7932195609Smp/@docdir@/p
7933195609Smp/@infodir@/p
7934195609Smp/@localedir@/p
7935232633Smp/@mandir@/p'
7936232633Smpcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7937195609Smp*datarootdir*) ac_datarootdir_seen=yes;;
7938195609Smp*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7939232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7940232633Smp$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7941131962Smp_ACEOF
7942232633Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7943195609Smp  ac_datarootdir_hack='
7944195609Smp  s&@datadir@&$datadir&g
7945195609Smp  s&@docdir@&$docdir&g
7946195609Smp  s&@infodir@&$infodir&g
7947195609Smp  s&@localedir@&$localedir&g
7948195609Smp  s&@mandir@&$mandir&g
7949232633Smp  s&\\\${datarootdir}&$datarootdir&g' ;;
7950195609Smpesac
7951195609Smp_ACEOF
7952195609Smp
7953195609Smp# Neutralize VPATH when `$srcdir' = `.'.
7954195609Smp# Shell code in configure.ac might set extrasub.
7955195609Smp# FIXME: do we really want to maintain this feature?
7956232633Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7957232633Smpac_sed_extra="$ac_vpsub
7958131962Smp$extrasub
7959131962Smp_ACEOF
7960232633Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7961131962Smp:t
7962131962Smp/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7963232633Smps|@configure_input@|$ac_sed_conf_input|;t t
7964195609Smps&@top_builddir@&$ac_top_builddir_sub&;t t
7965232633Smps&@top_build_prefix@&$ac_top_build_prefix&;t t
7966195609Smps&@srcdir@&$ac_srcdir&;t t
7967195609Smps&@abs_srcdir@&$ac_abs_srcdir&;t t
7968195609Smps&@top_srcdir@&$ac_top_srcdir&;t t
7969195609Smps&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7970195609Smps&@builddir@&$ac_builddir&;t t
7971195609Smps&@abs_builddir@&$ac_abs_builddir&;t t
7972195609Smps&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7973232633Smps&@INSTALL@&$ac_INSTALL&;t t
7974195609Smp$ac_datarootdir_hack
7975232633Smp"
7976232633Smpeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7977232633Smp  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
797869408Sache
7979195609Smptest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7980232633Smp  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7981232633Smp  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
7982232633Smp      "$ac_tmp/out"`; test -z "$ac_out"; } &&
7983232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7984232633Smpwhich seems to be undefined.  Please make sure it is defined" >&5
7985232633Smp$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7986232633Smpwhich seems to be undefined.  Please make sure it is defined" >&2;}
798769408Sache
7988232633Smp  rm -f "$ac_tmp/stdin"
7989131962Smp  case $ac_file in
7990232633Smp  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7991232633Smp  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7992232633Smp  esac \
7993232633Smp  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7994195609Smp ;;
7995195609Smp  :H)
7996195609Smp  #
7997195609Smp  # CONFIG_HEADER
7998195609Smp  #
7999131962Smp  if test x"$ac_file" != x-; then
8000232633Smp    {
8001232633Smp      $as_echo "/* $configure_input  */" \
8002232633Smp      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8003232633Smp    } >"$ac_tmp/config.h" \
8004232633Smp      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8005232633Smp    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8006232633Smp      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8007232633Smp$as_echo "$as_me: $ac_file is unchanged" >&6;}
8008131962Smp    else
8009232633Smp      rm -f "$ac_file"
8010232633Smp      mv "$ac_tmp/config.h" "$ac_file" \
8011232633Smp	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
801269408Sache    fi
8013131962Smp  else
8014232633Smp    $as_echo "/* $configure_input  */" \
8015232633Smp      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8016232633Smp      || as_fn_error $? "could not create -" "$LINENO" 5
801769408Sache  fi
8018195609Smp ;;
801969408Sache
8020232633Smp  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8021232633Smp$as_echo "$as_me: executing $ac_file commands" >&6;}
8022195609Smp ;;
8023195609Smp  esac
8024167465Smp
8025167465Smp
8026195609Smp  case $ac_file$ac_mode in
8027195609Smp    "./atconfig":C) cat >./atconfig <<ATEOF
8028167465Smp# Configurable variable values for building test suites.
8029167465Smp# Generated by $0.
8030232633Smp# Copyright (C) 2010 Free Software Foundation, Inc.
8031167465Smp
8032167465Smp# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
8033167465Smpat_testdir='.'
8034167465Smpabs_builddir='$ac_abs_builddir'
8035167465Smpat_srcdir='$ac_srcdir'
8036167465Smpabs_srcdir='$ac_abs_srcdir'
8037167465Smpat_top_srcdir='$ac_top_srcdir'
8038167465Smpabs_top_srcdir='$ac_abs_top_srcdir'
8039195609Smpat_top_build_prefix='$ac_top_build_prefix'
8040167465Smpabs_top_builddir='$ac_abs_top_builddir'
8041167465Smp
8042195609Smp# Backward compatibility with Autotest <= 2.59b:
8043195609Smpat_top_builddir=\$at_top_build_prefix
8044195609Smp
8045167465SmpAUTOTEST_PATH='.'
8046167465Smp
8047167465SmpSHELL=\${CONFIG_SHELL-'$SHELL'}
8048167465SmpATEOF
8049167465Smp ;;
8050195609Smp
8051167465Smp  esac
8052195609Smpdone # for ac_tag
8053167465Smp
805469408Sache
8055232633Smpas_fn_exit 0
8056131962Smp_ACEOF
8057131962Smpac_clean_files=$ac_clean_files_save
805869408Sache
8059232633Smptest $ac_write_fail = 0 ||
8060232633Smp  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8061131962Smp
8062232633Smp
8063131962Smp# configure is writing to config.log, and then calls config.status.
8064131962Smp# config.status does its own redirection, appending to config.log.
8065131962Smp# Unfortunately, on DOS this fails, as config.log is still kept open
8066131962Smp# by configure, so config.status won't be able to write to it; its
8067131962Smp# output is simply discarded.  So we exec the FD to /dev/null,
8068131962Smp# effectively closing config.log, so it can be properly (re)opened and
8069131962Smp# appended to by config.status.  When coming back to configure, we
8070131962Smp# need to make the FD available again.
8071131962Smpif test "$no_create" != yes; then
8072131962Smp  ac_cs_success=:
8073131962Smp  ac_config_status_args=
8074131962Smp  test "$silent" = yes &&
8075131962Smp    ac_config_status_args="$ac_config_status_args --quiet"
8076131962Smp  exec 5>/dev/null
8077131962Smp  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8078131962Smp  exec 5>>config.log
8079131962Smp  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8080131962Smp  # would make configure fail if this is the last instruction.
8081232633Smp  $ac_cs_success || as_fn_exit 1
8082131962Smpfi
8083232633Smpif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8084232633Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8085232633Smp$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8086232633Smpfi
8087131962Smp
8088