configure revision 195609
1128345Stjr#! /bin/sh
2128345Stjr# Guess values for system-dependent variables and create Makefiles.
3221715Sdelphij# Generated by GNU Autoconf 2.61 for tcsh 6.17.00.
4128345Stjr#
5128345Stjr# Report bugs to <http://bugs.gw.com/>.
6128345Stjr#
7128345Stjr# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8128345Stjr# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9128345Stjr# This configure script is free software; the Free Software Foundation
10128345Stjr# gives unlimited permission to copy, distribute and modify it.
11128345Stjr## --------------------- ##
12128345Stjr## M4sh Initialization.  ##
13128345Stjr## --------------------- ##
14128345Stjr
15128345Stjr# Be more Bourne compatible
16128345StjrDUALCASE=1; export DUALCASE # for MKS sh
17128345Stjrif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18128345Stjr  emulate sh
19128345Stjr  NULLCMD=:
20128345Stjr  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21128345Stjr  # is contrary to our usage.  Disable this feature.
22128345Stjr  alias -g '${1+"$@"}'='"$@"'
23128345Stjr  setopt NO_GLOB_SUBST
24128345Stjrelse
25128345Stjr  case `(set -o) 2>/dev/null` in
26173682Sdelphij  *posix*) set -o posix ;;
27128345Stjresac
28161475Sdelphij
29128345Stjrfi
30128345Stjr
31128345Stjr
32128345Stjr
33240121Sdelphij
34240121Sdelphij# PATH needs CR
35240121Sdelphij# Avoid depending upon Character Ranges.
36128345Stjras_cr_letters='abcdefghijklmnopqrstuvwxyz'
37128345Stjras_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38128345Stjras_cr_Letters=$as_cr_letters$as_cr_LETTERS
39128345Stjras_cr_digits='0123456789'
40128345Stjras_cr_alnum=$as_cr_Letters$as_cr_digits
41128345Stjr
42128345Stjr# The user is always right.
43128345Stjrif test "${PATH_SEPARATOR+set}" != set; then
44128345Stjr  echo "#! /bin/sh" >conf$$.sh
45128345Stjr  echo  "exit 0"   >>conf$$.sh
46128345Stjr  chmod +x conf$$.sh
47128345Stjr  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48128345Stjr    PATH_SEPARATOR=';'
49128345Stjr  else
50128345Stjr    PATH_SEPARATOR=:
51128345Stjr  fi
52128345Stjr  rm -f conf$$.sh
53173682Sdelphijfi
54173682Sdelphij
55173682Sdelphij# Support unset when possible.
56173682Sdelphijif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57173682Sdelphij  as_unset=unset
58173682Sdelphijelse
59173682Sdelphij  as_unset=false
60173682Sdelphijfi
61173682Sdelphij
62173682Sdelphij
63173682Sdelphij# IFS
64173682Sdelphij# We need space, tab and new line, in precisely that order.  Quoting is
65173682Sdelphij# there to prevent editors from complaining about space-tab.
66173682Sdelphij# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67128345Stjr# splitting by setting IFS to empty value.)
68128345Stjras_nl='
69128345Stjr'
70128345StjrIFS=" ""	$as_nl"
71128345Stjr
72128345Stjr# Find who we are.  Look in the path if we contain no directory separator.
73128345Stjrcase $0 in
74128345Stjr  *[\\/]* ) as_myself=$0 ;;
75128345Stjr  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76128345Stjrfor as_dir in $PATH
77128345Stjrdo
78128345Stjr  IFS=$as_save_IFS
79128345Stjr  test -z "$as_dir" && as_dir=.
80170256Sdelphij  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81161475Sdelphijdone
82161475SdelphijIFS=$as_save_IFS
83161475Sdelphij
84161475Sdelphij     ;;
85161475Sdelphijesac
86161475Sdelphij# We did not find ourselves, most probably we were run as `sh COMMAND'
87161475Sdelphij# in which case we are not to be found in the path.
88161475Sdelphijif test "x$as_myself" = x; then
89161475Sdelphij  as_myself=$0
90161475Sdelphijfi
91161475Sdelphijif test ! -f "$as_myself"; then
92161475Sdelphij  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93128345Stjr  { (exit 1); exit 1; }
94128345Stjrfi
95128345Stjr
96128345Stjr# Work around bugs in pre-3.0 UWIN ksh.
97128345Stjrfor as_var in ENV MAIL MAILPATH
98128345Stjrdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99128345Stjrdone
100128345StjrPS1='$ '
101128345StjrPS2='> '
102128345StjrPS4='+ '
103128345Stjr
104128345Stjr# NLS nuisances.
105128345Stjrfor as_var in \
106128345Stjr  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107128345Stjr  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108128345Stjr  LC_TELEPHONE LC_TIME
109128345Stjrdo
110128345Stjr  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111128345Stjr    eval $as_var=C; export $as_var
112128345Stjr  else
113128345Stjr    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114128345Stjr  fi
115128345Stjrdone
116128345Stjr
117128345Stjr# Required to use basename.
118128345Stjrif expr a : '\(a\)' >/dev/null 2>&1 &&
119128345Stjr   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120128345Stjr  as_expr=expr
121128345Stjrelse
122128345Stjr  as_expr=false
123128345Stjrfi
124128345Stjr
125128345Stjrif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126128345Stjr  as_basename=basename
127128345Stjrelse
128128345Stjr  as_basename=false
129128345Stjrfi
130128345Stjr
131128345Stjr
132128345Stjr# Name of the executable.
133128345Stjras_me=`$as_basename -- "$0" ||
134128345Stjr$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135128345Stjr	 X"$0" : 'X\(//\)$' \| \
136128345Stjr	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137128345Stjrecho X/"$0" |
138128345Stjr    sed '/^.*\/\([^/][^/]*\)\/*$/{
139128345Stjr	    s//\1/
140128345Stjr	    q
141128345Stjr	  }
142128345Stjr	  /^X\/\(\/\/\)$/{
143128345Stjr	    s//\1/
144128345Stjr	    q
145128345Stjr	  }
146128345Stjr	  /^X\/\(\/\).*/{
147128345Stjr	    s//\1/
148128345Stjr	    q
149128345Stjr	  }
150128345Stjr	  s/.*/./; q'`
151128345Stjr
152128345Stjr# CDPATH.
153128345Stjr$as_unset CDPATH
154128345Stjr
155128345Stjr
156128345Stjrif test "x$CONFIG_SHELL" = x; then
157128345Stjr  if (eval ":") 2>/dev/null; then
158128345Stjr  as_have_required=yes
159128345Stjrelse
160128345Stjr  as_have_required=no
161128345Stjrfi
162128345Stjr
163128345Stjr  if test $as_have_required = yes && 	 (eval ":
164128345Stjr(as_func_return () {
165128345Stjr  (exit \$1)
166128345Stjr}
167128345Stjras_func_success () {
168128345Stjr  as_func_return 0
169128345Stjr}
170173682Sdelphijas_func_failure () {
171128345Stjr  as_func_return 1
172128345Stjr}
173128345Stjras_func_ret_success () {
174128345Stjr  return 0
175128345Stjr}
176128345Stjras_func_ret_failure () {
177128345Stjr  return 1
178128345Stjr}
179128345Stjr
180240121Sdelphijexitcode=0
181240121Sdelphijif as_func_success; then
182128345Stjr  :
183128345Stjrelse
184128345Stjr  exitcode=1
185128345Stjr  echo as_func_success failed.
186128345Stjrfi
187128345Stjr
188128345Stjrif as_func_failure; then
189128345Stjr  exitcode=1
190128345Stjr  echo as_func_failure succeeded.
191128345Stjrfi
192128345Stjr
193128345Stjrif as_func_ret_success; then
194128345Stjr  :
195128345Stjrelse
196128345Stjr  exitcode=1
197128345Stjr  echo as_func_ret_success failed.
198221715Sdelphijfi
199221715Sdelphij
200128345Stjrif as_func_ret_failure; then
201128345Stjr  exitcode=1
202173682Sdelphij  echo as_func_ret_failure succeeded.
203173682Sdelphijfi
204128345Stjr
205128345Stjrif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206128345Stjr  :
207128345Stjrelse
208128345Stjr  exitcode=1
209128345Stjr  echo positional parameters were not saved.
210128345Stjrfi
211128345Stjr
212128345Stjrtest \$exitcode = 0) || { (exit 1); exit 1; }
213128345Stjr
214128345Stjr(
215128345Stjr  as_lineno_1=\$LINENO
216128345Stjr  as_lineno_2=\$LINENO
217128345Stjr  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218128345Stjr  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219128345Stjr") 2> /dev/null; then
220128345Stjr  :
221128345Stjrelse
222128345Stjr  as_candidate_shells=
223128345Stjr    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224128345Stjrfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225128345Stjrdo
226173682Sdelphij  IFS=$as_save_IFS
227173682Sdelphij  test -z "$as_dir" && as_dir=.
228128345Stjr  case $as_dir in
229128345Stjr	 /*)
230128345Stjr	   for as_base in sh bash ksh sh5; do
231128345Stjr	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232128345Stjr	   done;;
233128345Stjr       esac
234161475Sdelphijdone
235161475SdelphijIFS=$as_save_IFS
236128345Stjr
237128345Stjr
238128345Stjr      for as_shell in $as_candidate_shells $SHELL; do
239128345Stjr	 # Try only shells that exist, to save several forks.
240128345Stjr	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241128345Stjr		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242128345Stjrif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243128345Stjr  emulate sh
244128345Stjr  NULLCMD=:
245128345Stjr  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246128345Stjr  # is contrary to our usage.  Disable this feature.
247128345Stjr  alias -g '${1+"$@"}'='"$@"'
248173682Sdelphij  setopt NO_GLOB_SUBST
249173682Sdelphijelse
250173682Sdelphij  case `(set -o) 2>/dev/null` in
251173682Sdelphij  *posix*) set -o posix ;;
252173682Sdelphijesac
253128345Stjr
254128345Stjrfi
255128345Stjr
256170256Sdelphij
257128345Stjr:
258170256Sdelphij_ASEOF
259170256Sdelphij}; then
260170256Sdelphij  CONFIG_SHELL=$as_shell
261170256Sdelphij	       as_have_required=yes
262170256Sdelphij	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263170256Sdelphijif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264170256Sdelphij  emulate sh
265170256Sdelphij  NULLCMD=:
266170256Sdelphij  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267170256Sdelphij  # is contrary to our usage.  Disable this feature.
268170256Sdelphij  alias -g '${1+"$@"}'='"$@"'
269170256Sdelphij  setopt NO_GLOB_SUBST
270170256Sdelphijelse
271170256Sdelphij  case `(set -o) 2>/dev/null` in
272170256Sdelphij  *posix*) set -o posix ;;
273170256Sdelphijesac
274170256Sdelphij
275170256Sdelphijfi
276170256Sdelphij
277170256Sdelphij
278170256Sdelphij:
279170256Sdelphij(as_func_return () {
280128345Stjr  (exit $1)
281128345Stjr}
282128345Stjras_func_success () {
283128345Stjr  as_func_return 0
284128345Stjr}
285128345Stjras_func_failure () {
286128345Stjr  as_func_return 1
287128345Stjr}
288128345Stjras_func_ret_success () {
289128345Stjr  return 0
290128345Stjr}
291128345Stjras_func_ret_failure () {
292128345Stjr  return 1
293128345Stjr}
294128345Stjr
295128345Stjrexitcode=0
296128345Stjrif as_func_success; then
297128345Stjr  :
298128345Stjrelse
299128345Stjr  exitcode=1
300128345Stjr  echo as_func_success failed.
301128345Stjrfi
302128345Stjr
303128345Stjrif as_func_failure; then
304128345Stjr  exitcode=1
305128345Stjr  echo as_func_failure succeeded.
306128345Stjrfi
307170256Sdelphij
308128345Stjrif as_func_ret_success; then
309128345Stjr  :
310128345Stjrelse
311128345Stjr  exitcode=1
312128345Stjr  echo as_func_ret_success failed.
313128345Stjrfi
314128345Stjr
315128345Stjrif as_func_ret_failure; then
316128345Stjr  exitcode=1
317128345Stjr  echo as_func_ret_failure succeeded.
318128345Stjrfi
319128345Stjr
320128345Stjrif ( set x; as_func_ret_success y && test x = "$1" ); then
321128345Stjr  :
322128345Stjrelse
323128345Stjr  exitcode=1
324128345Stjr  echo positional parameters were not saved.
325128345Stjrfi
326128345Stjr
327128345Stjrtest $exitcode = 0) || { (exit 1); exit 1; }
328128345Stjr
329128345Stjr(
330128345Stjr  as_lineno_1=$LINENO
331128345Stjr  as_lineno_2=$LINENO
332128345Stjr  test "x$as_lineno_1" != "x$as_lineno_2" &&
333172468Sdelphij  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334172468Sdelphij
335128345Stjr_ASEOF
336173682Sdelphij}; then
337128345Stjr  break
338128345Stjrfi
339128345Stjr
340128345Stjrfi
341128345Stjr
342128345Stjr      done
343128345Stjr
344173682Sdelphij      if test "x$CONFIG_SHELL" != x; then
345173682Sdelphij  for as_var in BASH_ENV ENV
346173682Sdelphij        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347173682Sdelphij        done
348128345Stjr        export CONFIG_SHELL
349128345Stjr        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350128345Stjrfi
351128345Stjr
352128345Stjr
353128345Stjr    if test $as_have_required = no; then
354128345Stjr  echo This script requires a shell more modern than all the
355128345Stjr      echo shells that I found on your system.  Please install a
356128345Stjr      echo modern shell, or manually run the script under such a
357128345Stjr      echo shell if you do have one.
358128345Stjr      { (exit 1); exit 1; }
359128345Stjrfi
360128345Stjr
361128345Stjr
362128345Stjrfi
363128345Stjr
364128345Stjrfi
365128345Stjr
366161475Sdelphij
367161475Sdelphij
368161475Sdelphij(eval "as_func_return () {
369161475Sdelphij  (exit \$1)
370161475Sdelphij}
371221715Sdelphijas_func_success () {
372221715Sdelphij  as_func_return 0
373221715Sdelphij}
374221715Sdelphijas_func_failure () {
375221715Sdelphij  as_func_return 1
376221715Sdelphij}
377221715Sdelphijas_func_ret_success () {
378221715Sdelphij  return 0
379221715Sdelphij}
380221715Sdelphijas_func_ret_failure () {
381221715Sdelphij  return 1
382221715Sdelphij}
383128345Stjr
384128345Stjrexitcode=0
385128345Stjrif as_func_success; then
386128345Stjr  :
387128345Stjrelse
388161475Sdelphij  exitcode=1
389128345Stjr  echo as_func_success failed.
390128345Stjrfi
391240121Sdelphij
392128345Stjrif as_func_failure; then
393128345Stjr  exitcode=1
394128345Stjr  echo as_func_failure succeeded.
395128345Stjrfi
396128345Stjr
397128345Stjrif as_func_ret_success; then
398128345Stjr  :
399128345Stjrelse
400128345Stjr  exitcode=1
401128345Stjr  echo as_func_ret_success failed.
402128345Stjrfi
403128345Stjr
404128345Stjrif as_func_ret_failure; then
405128345Stjr  exitcode=1
406128345Stjr  echo as_func_ret_failure succeeded.
407128345Stjrfi
408128345Stjr
409128345Stjrif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410128345Stjr  :
411128345Stjrelse
412128345Stjr  exitcode=1
413128345Stjr  echo positional parameters were not saved.
414128345Stjrfi
415128345Stjr
416128345Stjrtest \$exitcode = 0") || {
417128345Stjr  echo No shell found that supports shell functions.
418128345Stjr  echo Please tell autoconf@gnu.org about your system,
419128345Stjr  echo including any error possibly output before this
420128345Stjr  echo message
421128345Stjr}
422128345Stjr
423128345Stjr
424128345Stjr
425128345Stjr  as_lineno_1=$LINENO
426128345Stjr  as_lineno_2=$LINENO
427128345Stjr  test "x$as_lineno_1" != "x$as_lineno_2" &&
428128345Stjr  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429240121Sdelphij
430240121Sdelphij  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431240121Sdelphij  # uniformly replaced by the line number.  The first 'sed' inserts a
432240121Sdelphij  # line-number line after each line using $LINENO; the second 'sed'
433240121Sdelphij  # does the real work.  The second script uses 'N' to pair each
434240121Sdelphij  # line-number line with the line containing $LINENO, and appends
435240121Sdelphij  # trailing '-' during substitution so that $LINENO is not a special
436128345Stjr  # case at line end.
437128345Stjr  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438128345Stjr  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439128345Stjr  # E. McMahon (1931-1989) for sed's syntax.  :-)
440128345Stjr  sed -n '
441128345Stjr    p
442128345Stjr    /[$]LINENO/=
443128345Stjr  ' <$as_myself |
444128345Stjr    sed '
445128345Stjr      s/[$]LINENO.*/&-/
446128345Stjr      t lineno
447128345Stjr      b
448128345Stjr      :lineno
449128345Stjr      N
450128345Stjr      :loop
451128345Stjr      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452128345Stjr      t loop
453128345Stjr      s/-\n.*//
454128345Stjr    ' >$as_me.lineno &&
455128345Stjr  chmod +x "$as_me.lineno" ||
456128345Stjr    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457128345Stjr   { (exit 1); exit 1; }; }
458128345Stjr
459128345Stjr  # Don't try to exec as it changes $[0], causing all sort of problems
460128345Stjr  # (the dirname of $[0] is not the place where we might find the
461128345Stjr  # original and so on.  Autoconf is especially sensitive to this).
462128345Stjr  . "./$as_me.lineno"
463128345Stjr  # Exit status is that of the last command.
464128345Stjr  exit
465128345Stjr}
466128345Stjr
467128345Stjr
468128345Stjrif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469128345Stjr  as_dirname=dirname
470240121Sdelphijelse
471240121Sdelphij  as_dirname=false
472240121Sdelphijfi
473240121Sdelphij
474240121SdelphijECHO_C= ECHO_N= ECHO_T=
475240121Sdelphijcase `echo -n x` in
476128345Stjr-n*)
477128345Stjr  case `echo 'x\c'` in
478128345Stjr  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479128345Stjr  *)   ECHO_C='\c';;
480128345Stjr  esac;;
481128345Stjr*)
482128345Stjr  ECHO_N='-n';;
483128345Stjresac
484128345Stjr
485128345Stjrif expr a : '\(a\)' >/dev/null 2>&1 &&
486128345Stjr   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487128345Stjr  as_expr=expr
488128345Stjrelse
489128345Stjr  as_expr=false
490128345Stjrfi
491128345Stjr
492128345Stjrrm -f conf$$ conf$$.exe conf$$.file
493128345Stjrif test -d conf$$.dir; then
494128345Stjr  rm -f conf$$.dir/conf$$.file
495128345Stjrelse
496128345Stjr  rm -f conf$$.dir
497128345Stjr  mkdir conf$$.dir
498128345Stjrfi
499128345Stjrecho >conf$$.file
500128345Stjrif ln -s conf$$.file conf$$ 2>/dev/null; then
501161475Sdelphij  as_ln_s='ln -s'
502128345Stjr  # ... but there are two gotchas:
503161475Sdelphij  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504128345Stjr  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505128345Stjr  # In both cases, we have to default to `cp -p'.
506128345Stjr  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507128345Stjr    as_ln_s='cp -p'
508128345Stjrelif ln conf$$.file conf$$ 2>/dev/null; then
509128345Stjr  as_ln_s=ln
510128345Stjrelse
511128345Stjr  as_ln_s='cp -p'
512128345Stjrfi
513128345Stjrrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514128345Stjrrmdir conf$$.dir 2>/dev/null
515128345Stjr
516128345Stjrif mkdir -p . 2>/dev/null; then
517128345Stjr  as_mkdir_p=:
518128345Stjrelse
519128345Stjr  test -d ./-p && rmdir ./-p
520128345Stjr  as_mkdir_p=false
521128345Stjrfi
522128345Stjr
523128345Stjrif test -x / >/dev/null 2>&1; then
524128345Stjr  as_test_x='test -x'
525128345Stjrelse
526128345Stjr  if ls -dL / >/dev/null 2>&1; then
527128345Stjr    as_ls_L_option=L
528128345Stjr  else
529128345Stjr    as_ls_L_option=
530128345Stjr  fi
531128345Stjr  as_test_x='
532128345Stjr    eval sh -c '\''
533128345Stjr      if test -d "$1"; then
534128345Stjr        test -d "$1/.";
535128345Stjr      else
536128345Stjr	case $1 in
537128345Stjr        -*)set "./$1";;
538128345Stjr	esac;
539128345Stjr	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540128345Stjr	???[sx]*):;;*)false;;esac;fi
541128345Stjr    '\'' sh
542128345Stjr  '
543128345Stjrfi
544128345Stjras_executable_p=$as_test_x
545128345Stjr
546128345Stjr# Sed expression to map a string onto a valid CPP name.
547128345Stjras_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548128345Stjr
549128345Stjr# Sed expression to map a string onto a valid variable name.
550128345Stjras_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551128345Stjr
552128345Stjr
553128345Stjr
554128345Stjrexec 7<&0 </dev/null 6>&1
555128345Stjr
556128345Stjr# Name of the host.
557128345Stjr# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558128345Stjr# so uname gets run too.
559128345Stjrac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560128345Stjr
561128345Stjr#
562128345Stjr# Initializations.
563128345Stjr#
564128345Stjrac_default_prefix=/usr/local
565128345Stjrac_clean_files=
566128345Stjrac_config_libobj_dir=.
567128345StjrLIBOBJS=
568128345Stjrcross_compiling=no
569128345Stjrsubdirs=
570128345StjrMFLAGS=
571128345StjrMAKEFLAGS=
572128345StjrSHELL=${CONFIG_SHELL-/bin/sh}
573128345Stjr
574128345Stjr# Identity of this package.
575128345StjrPACKAGE_NAME='tcsh'
576128345StjrPACKAGE_TARNAME='tcsh'
577128345StjrPACKAGE_VERSION='6.17.00'
578128345StjrPACKAGE_STRING='tcsh 6.17.00'
579128345StjrPACKAGE_BUGREPORT='http://bugs.gw.com/'
580128345Stjr
581128345Stjrac_unique_file="tc.vers.c"
582128345Stjr# Factoring default headers for most tests.
583128345Stjrac_includes_default="\
584128345Stjr#include <stdio.h>
585128345Stjr#ifdef HAVE_SYS_TYPES_H
586128345Stjr# include <sys/types.h>
587128345Stjr#endif
588128345Stjr#ifdef HAVE_SYS_STAT_H
589161475Sdelphij# include <sys/stat.h>
590161475Sdelphij#endif
591128345Stjr#ifdef STDC_HEADERS
592128345Stjr# include <stdlib.h>
593128345Stjr# include <stddef.h>
594128345Stjr#else
595161475Sdelphij# ifdef HAVE_STDLIB_H
596128345Stjr#  include <stdlib.h>
597128345Stjr# endif
598128345Stjr#endif
599128345Stjr#ifdef HAVE_STRING_H
600128345Stjr# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601128345Stjr#  include <memory.h>
602128345Stjr# endif
603128345Stjr# include <string.h>
604128345Stjr#endif
605128345Stjr#ifdef HAVE_STRINGS_H
606128345Stjr# include <strings.h>
607128345Stjr#endif
608128345Stjr#ifdef HAVE_INTTYPES_H
609128345Stjr# include <inttypes.h>
610128345Stjr#endif
611170256Sdelphij#ifdef HAVE_STDINT_H
612170256Sdelphij# include <stdint.h>
613170256Sdelphij#endif
614170256Sdelphij#ifdef HAVE_UNISTD_H
615170256Sdelphij# include <unistd.h>
616170256Sdelphij#endif"
617128345Stjr
618128345Stjrac_subst_vars='SHELL
619128345StjrPATH_SEPARATOR
620128345StjrPACKAGE_NAME
621128345StjrPACKAGE_TARNAME
622128345StjrPACKAGE_VERSION
623128345StjrPACKAGE_STRING
624128345StjrPACKAGE_BUGREPORT
625128345Stjrexec_prefix
626128345Stjrprefix
627128345Stjrprogram_transform_name
628128345Stjrbindir
629128345Stjrsbindir
630128345Stjrlibexecdir
631128345Stjrdatarootdir
632128345Stjrdatadir
633128345Stjrsysconfdir
634128345Stjrsharedstatedir
635128345Stjrlocalstatedir
636128345Stjrincludedir
637128345Stjroldincludedir
638128345Stjrdocdir
639128345Stjrinfodir
640128345Stjrhtmldir
641128345Stjrdvidir
642128345Stjrpdfdir
643128345Stjrpsdir
644128345Stjrlibdir
645170256Sdelphijlocaledir
646128345Stjrmandir
647128345StjrDEFS
648128345StjrECHO_C
649128345StjrECHO_N
650128345StjrECHO_T
651128345StjrLIBS
652128345Stjrbuild_alias
653170256Sdelphijhost_alias
654170256Sdelphijtarget_alias
655170256Sdelphijbuild
656170256Sdelphijbuild_cpu
657170256Sdelphijbuild_vendor
658170256Sdelphijbuild_os
659170256Sdelphijhost
660170256Sdelphijhost_cpu
661170256Sdelphijhost_vendor
662128345Stjrhost_os
663128345StjrCC
664128345StjrCFLAGS
665128345StjrLDFLAGS
666128345StjrCPPFLAGS
667128345Stjrac_ct_CC
668128345StjrEXEEXT
669128345StjrOBJEXT
670128345StjrCPP
671128345StjrGREP
672128345StjrEGREP
673128345StjrLIBICONV
674128345StjrLTLIBICONV
675128345StjrDFLAGS
676128345StjrHESDEF
677128345StjrHESLIB
678128345StjrLIBOBJS
679128345StjrLTLIBOBJS'
680ac_subst_files=''
681      ac_precious_vars='build_alias
682host_alias
683target_alias
684CC
685CFLAGS
686LDFLAGS
687LIBS
688CPPFLAGS
689CPP'
690
691
692# Initialize some variables set by options.
693ac_init_help=
694ac_init_version=false
695# The variables have the same names as the options, with
696# dashes changed to underlines.
697cache_file=/dev/null
698exec_prefix=NONE
699no_create=
700no_recursion=
701prefix=NONE
702program_prefix=NONE
703program_suffix=NONE
704program_transform_name=s,x,x,
705silent=
706site=
707srcdir=
708verbose=
709x_includes=NONE
710x_libraries=NONE
711
712# Installation directory options.
713# These are left unexpanded so users can "make install exec_prefix=/foo"
714# and all the variables that are supposed to be based on exec_prefix
715# by default will actually change.
716# Use braces instead of parens because sh, perl, etc. also accept them.
717# (The list follows the same order as the GNU Coding Standards.)
718bindir='${exec_prefix}/bin'
719sbindir='${exec_prefix}/sbin'
720libexecdir='${exec_prefix}/libexec'
721datarootdir='${prefix}/share'
722datadir='${datarootdir}'
723sysconfdir='${prefix}/etc'
724sharedstatedir='${prefix}/com'
725localstatedir='${prefix}/var'
726includedir='${prefix}/include'
727oldincludedir='/usr/include'
728docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
729infodir='${datarootdir}/info'
730htmldir='${docdir}'
731dvidir='${docdir}'
732pdfdir='${docdir}'
733psdir='${docdir}'
734libdir='${exec_prefix}/lib'
735localedir='${datarootdir}/locale'
736mandir='${datarootdir}/man'
737
738ac_prev=
739ac_dashdash=
740for ac_option
741do
742  # If the previous option needs an argument, assign it.
743  if test -n "$ac_prev"; then
744    eval $ac_prev=\$ac_option
745    ac_prev=
746    continue
747  fi
748
749  case $ac_option in
750  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
751  *)	ac_optarg=yes ;;
752  esac
753
754  # Accept the important Cygnus configure options, so we can diagnose typos.
755
756  case $ac_dashdash$ac_option in
757  --)
758    ac_dashdash=yes ;;
759
760  -bindir | --bindir | --bindi | --bind | --bin | --bi)
761    ac_prev=bindir ;;
762  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
763    bindir=$ac_optarg ;;
764
765  -build | --build | --buil | --bui | --bu)
766    ac_prev=build_alias ;;
767  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
768    build_alias=$ac_optarg ;;
769
770  -cache-file | --cache-file | --cache-fil | --cache-fi \
771  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
772    ac_prev=cache_file ;;
773  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
774  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
775    cache_file=$ac_optarg ;;
776
777  --config-cache | -C)
778    cache_file=config.cache ;;
779
780  -datadir | --datadir | --datadi | --datad)
781    ac_prev=datadir ;;
782  -datadir=* | --datadir=* | --datadi=* | --datad=*)
783    datadir=$ac_optarg ;;
784
785  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
786  | --dataroo | --dataro | --datar)
787    ac_prev=datarootdir ;;
788  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
789  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
790    datarootdir=$ac_optarg ;;
791
792  -disable-* | --disable-*)
793    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
794    # Reject names that are not valid shell variable names.
795    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
797   { (exit 1); exit 1; }; }
798    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
799    eval enable_$ac_feature=no ;;
800
801  -docdir | --docdir | --docdi | --doc | --do)
802    ac_prev=docdir ;;
803  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
804    docdir=$ac_optarg ;;
805
806  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
807    ac_prev=dvidir ;;
808  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
809    dvidir=$ac_optarg ;;
810
811  -enable-* | --enable-*)
812    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
813    # Reject names that are not valid shell variable names.
814    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
815      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
816   { (exit 1); exit 1; }; }
817    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
818    eval enable_$ac_feature=\$ac_optarg ;;
819
820  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
821  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
822  | --exec | --exe | --ex)
823    ac_prev=exec_prefix ;;
824  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
825  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
826  | --exec=* | --exe=* | --ex=*)
827    exec_prefix=$ac_optarg ;;
828
829  -gas | --gas | --ga | --g)
830    # Obsolete; use --with-gas.
831    with_gas=yes ;;
832
833  -help | --help | --hel | --he | -h)
834    ac_init_help=long ;;
835  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
836    ac_init_help=recursive ;;
837  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
838    ac_init_help=short ;;
839
840  -host | --host | --hos | --ho)
841    ac_prev=host_alias ;;
842  -host=* | --host=* | --hos=* | --ho=*)
843    host_alias=$ac_optarg ;;
844
845  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
846    ac_prev=htmldir ;;
847  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
848  | --ht=*)
849    htmldir=$ac_optarg ;;
850
851  -includedir | --includedir | --includedi | --included | --include \
852  | --includ | --inclu | --incl | --inc)
853    ac_prev=includedir ;;
854  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
855  | --includ=* | --inclu=* | --incl=* | --inc=*)
856    includedir=$ac_optarg ;;
857
858  -infodir | --infodir | --infodi | --infod | --info | --inf)
859    ac_prev=infodir ;;
860  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
861    infodir=$ac_optarg ;;
862
863  -libdir | --libdir | --libdi | --libd)
864    ac_prev=libdir ;;
865  -libdir=* | --libdir=* | --libdi=* | --libd=*)
866    libdir=$ac_optarg ;;
867
868  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
869  | --libexe | --libex | --libe)
870    ac_prev=libexecdir ;;
871  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
872  | --libexe=* | --libex=* | --libe=*)
873    libexecdir=$ac_optarg ;;
874
875  -localedir | --localedir | --localedi | --localed | --locale)
876    ac_prev=localedir ;;
877  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
878    localedir=$ac_optarg ;;
879
880  -localstatedir | --localstatedir | --localstatedi | --localstated \
881  | --localstate | --localstat | --localsta | --localst | --locals)
882    ac_prev=localstatedir ;;
883  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
884  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
885    localstatedir=$ac_optarg ;;
886
887  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
888    ac_prev=mandir ;;
889  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
890    mandir=$ac_optarg ;;
891
892  -nfp | --nfp | --nf)
893    # Obsolete; use --without-fp.
894    with_fp=no ;;
895
896  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
897  | --no-cr | --no-c | -n)
898    no_create=yes ;;
899
900  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
901  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
902    no_recursion=yes ;;
903
904  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
905  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
906  | --oldin | --oldi | --old | --ol | --o)
907    ac_prev=oldincludedir ;;
908  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
909  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
910  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
911    oldincludedir=$ac_optarg ;;
912
913  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
914    ac_prev=prefix ;;
915  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
916    prefix=$ac_optarg ;;
917
918  -program-prefix | --program-prefix | --program-prefi | --program-pref \
919  | --program-pre | --program-pr | --program-p)
920    ac_prev=program_prefix ;;
921  -program-prefix=* | --program-prefix=* | --program-prefi=* \
922  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
923    program_prefix=$ac_optarg ;;
924
925  -program-suffix | --program-suffix | --program-suffi | --program-suff \
926  | --program-suf | --program-su | --program-s)
927    ac_prev=program_suffix ;;
928  -program-suffix=* | --program-suffix=* | --program-suffi=* \
929  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
930    program_suffix=$ac_optarg ;;
931
932  -program-transform-name | --program-transform-name \
933  | --program-transform-nam | --program-transform-na \
934  | --program-transform-n | --program-transform- \
935  | --program-transform | --program-transfor \
936  | --program-transfo | --program-transf \
937  | --program-trans | --program-tran \
938  | --progr-tra | --program-tr | --program-t)
939    ac_prev=program_transform_name ;;
940  -program-transform-name=* | --program-transform-name=* \
941  | --program-transform-nam=* | --program-transform-na=* \
942  | --program-transform-n=* | --program-transform-=* \
943  | --program-transform=* | --program-transfor=* \
944  | --program-transfo=* | --program-transf=* \
945  | --program-trans=* | --program-tran=* \
946  | --progr-tra=* | --program-tr=* | --program-t=*)
947    program_transform_name=$ac_optarg ;;
948
949  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
950    ac_prev=pdfdir ;;
951  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
952    pdfdir=$ac_optarg ;;
953
954  -psdir | --psdir | --psdi | --psd | --ps)
955    ac_prev=psdir ;;
956  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
957    psdir=$ac_optarg ;;
958
959  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
960  | -silent | --silent | --silen | --sile | --sil)
961    silent=yes ;;
962
963  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
964    ac_prev=sbindir ;;
965  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
966  | --sbi=* | --sb=*)
967    sbindir=$ac_optarg ;;
968
969  -sharedstatedir | --sharedstatedir | --sharedstatedi \
970  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
971  | --sharedst | --shareds | --shared | --share | --shar \
972  | --sha | --sh)
973    ac_prev=sharedstatedir ;;
974  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
975  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
976  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
977  | --sha=* | --sh=*)
978    sharedstatedir=$ac_optarg ;;
979
980  -site | --site | --sit)
981    ac_prev=site ;;
982  -site=* | --site=* | --sit=*)
983    site=$ac_optarg ;;
984
985  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
986    ac_prev=srcdir ;;
987  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
988    srcdir=$ac_optarg ;;
989
990  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
991  | --syscon | --sysco | --sysc | --sys | --sy)
992    ac_prev=sysconfdir ;;
993  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
994  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
995    sysconfdir=$ac_optarg ;;
996
997  -target | --target | --targe | --targ | --tar | --ta | --t)
998    ac_prev=target_alias ;;
999  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1000    target_alias=$ac_optarg ;;
1001
1002  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1003    verbose=yes ;;
1004
1005  -version | --version | --versio | --versi | --vers | -V)
1006    ac_init_version=: ;;
1007
1008  -with-* | --with-*)
1009    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012      { echo "$as_me: error: invalid package name: $ac_package" >&2
1013   { (exit 1); exit 1; }; }
1014    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1015    eval with_$ac_package=\$ac_optarg ;;
1016
1017  -without-* | --without-*)
1018    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1019    # Reject names that are not valid shell variable names.
1020    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021      { echo "$as_me: error: invalid package name: $ac_package" >&2
1022   { (exit 1); exit 1; }; }
1023    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1024    eval with_$ac_package=no ;;
1025
1026  --x)
1027    # Obsolete; use --with-x.
1028    with_x=yes ;;
1029
1030  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1031  | --x-incl | --x-inc | --x-in | --x-i)
1032    ac_prev=x_includes ;;
1033  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1034  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1035    x_includes=$ac_optarg ;;
1036
1037  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1038  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1039    ac_prev=x_libraries ;;
1040  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1041  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1042    x_libraries=$ac_optarg ;;
1043
1044  -*) { echo "$as_me: error: unrecognized option: $ac_option
1045Try \`$0 --help' for more information." >&2
1046   { (exit 1); exit 1; }; }
1047    ;;
1048
1049  *=*)
1050    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1051    # Reject names that are not valid shell variable names.
1052    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1053      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1054   { (exit 1); exit 1; }; }
1055    eval $ac_envvar=\$ac_optarg
1056    export $ac_envvar ;;
1057
1058  *)
1059    # FIXME: should be removed in autoconf 3.0.
1060    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1061    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1063    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1064    ;;
1065
1066  esac
1067done
1068
1069if test -n "$ac_prev"; then
1070  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1071  { echo "$as_me: error: missing argument to $ac_option" >&2
1072   { (exit 1); exit 1; }; }
1073fi
1074
1075# Be sure to have absolute directory names.
1076for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1077		datadir sysconfdir sharedstatedir localstatedir includedir \
1078		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1079		libdir localedir mandir
1080do
1081  eval ac_val=\$$ac_var
1082  case $ac_val in
1083    [\\/$]* | ?:[\\/]* )  continue;;
1084    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1085  esac
1086  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1087   { (exit 1); exit 1; }; }
1088done
1089
1090# There might be people who depend on the old broken behavior: `$host'
1091# used to hold the argument of --host etc.
1092# FIXME: To remove some day.
1093build=$build_alias
1094host=$host_alias
1095target=$target_alias
1096
1097# FIXME: To remove some day.
1098if test "x$host_alias" != x; then
1099  if test "x$build_alias" = x; then
1100    cross_compiling=maybe
1101    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1102    If a cross compiler is detected then cross compile mode will be used." >&2
1103  elif test "x$build_alias" != "x$host_alias"; then
1104    cross_compiling=yes
1105  fi
1106fi
1107
1108ac_tool_prefix=
1109test -n "$host_alias" && ac_tool_prefix=$host_alias-
1110
1111test "$silent" = yes && exec 6>/dev/null
1112
1113
1114ac_pwd=`pwd` && test -n "$ac_pwd" &&
1115ac_ls_di=`ls -di .` &&
1116ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1117  { echo "$as_me: error: Working directory cannot be determined" >&2
1118   { (exit 1); exit 1; }; }
1119test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1120  { echo "$as_me: error: pwd does not report name of working directory" >&2
1121   { (exit 1); exit 1; }; }
1122
1123
1124# Find the source files, if location was not specified.
1125if test -z "$srcdir"; then
1126  ac_srcdir_defaulted=yes
1127  # Try the directory containing this script, then the parent directory.
1128  ac_confdir=`$as_dirname -- "$0" ||
1129$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1130	 X"$0" : 'X\(//\)[^/]' \| \
1131	 X"$0" : 'X\(//\)$' \| \
1132	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1133echo X"$0" |
1134    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1135	    s//\1/
1136	    q
1137	  }
1138	  /^X\(\/\/\)[^/].*/{
1139	    s//\1/
1140	    q
1141	  }
1142	  /^X\(\/\/\)$/{
1143	    s//\1/
1144	    q
1145	  }
1146	  /^X\(\/\).*/{
1147	    s//\1/
1148	    q
1149	  }
1150	  s/.*/./; q'`
1151  srcdir=$ac_confdir
1152  if test ! -r "$srcdir/$ac_unique_file"; then
1153    srcdir=..
1154  fi
1155else
1156  ac_srcdir_defaulted=no
1157fi
1158if test ! -r "$srcdir/$ac_unique_file"; then
1159  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1160  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1161   { (exit 1); exit 1; }; }
1162fi
1163ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1164ac_abs_confdir=`(
1165	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1166   { (exit 1); exit 1; }; }
1167	pwd)`
1168# When building in place, set srcdir=.
1169if test "$ac_abs_confdir" = "$ac_pwd"; then
1170  srcdir=.
1171fi
1172# Remove unnecessary trailing slashes from srcdir.
1173# Double slashes in file names in object file debugging info
1174# mess up M-x gdb in Emacs.
1175case $srcdir in
1176*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1177esac
1178for ac_var in $ac_precious_vars; do
1179  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1180  eval ac_env_${ac_var}_value=\$${ac_var}
1181  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1182  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1183done
1184
1185#
1186# Report the --help message.
1187#
1188if test "$ac_init_help" = "long"; then
1189  # Omit some internal or obsolete options to make the list less imposing.
1190  # This message is too long to be a string in the A/UX 3.1 sh.
1191  cat <<_ACEOF
1192\`configure' configures tcsh 6.17.00 to adapt to many kinds of systems.
1193
1194Usage: $0 [OPTION]... [VAR=VALUE]...
1195
1196To assign environment variables (e.g., CC, CFLAGS...), specify them as
1197VAR=VALUE.  See below for descriptions of some of the useful variables.
1198
1199Defaults for the options are specified in brackets.
1200
1201Configuration:
1202  -h, --help              display this help and exit
1203      --help=short        display options specific to this package
1204      --help=recursive    display the short help of all the included packages
1205  -V, --version           display version information and exit
1206  -q, --quiet, --silent   do not print \`checking...' messages
1207      --cache-file=FILE   cache test results in FILE [disabled]
1208  -C, --config-cache      alias for \`--cache-file=config.cache'
1209  -n, --no-create         do not create output files
1210      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1211
1212Installation directories:
1213  --prefix=PREFIX         install architecture-independent files in PREFIX
1214			  [$ac_default_prefix]
1215  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1216			  [PREFIX]
1217
1218By default, \`make install' will install all the files in
1219\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1220an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1221for instance \`--prefix=\$HOME'.
1222
1223For better control, use the options below.
1224
1225Fine tuning of the installation directories:
1226  --bindir=DIR           user executables [EPREFIX/bin]
1227  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1228  --libexecdir=DIR       program executables [EPREFIX/libexec]
1229  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1230  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1231  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1232  --libdir=DIR           object code libraries [EPREFIX/lib]
1233  --includedir=DIR       C header files [PREFIX/include]
1234  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1235  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1236  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1237  --infodir=DIR          info documentation [DATAROOTDIR/info]
1238  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1239  --mandir=DIR           man documentation [DATAROOTDIR/man]
1240  --docdir=DIR           documentation root [DATAROOTDIR/doc/tcsh]
1241  --htmldir=DIR          html documentation [DOCDIR]
1242  --dvidir=DIR           dvi documentation [DOCDIR]
1243  --pdfdir=DIR           pdf documentation [DOCDIR]
1244  --psdir=DIR            ps documentation [DOCDIR]
1245_ACEOF
1246
1247  cat <<\_ACEOF
1248
1249System types:
1250  --build=BUILD     configure for building on BUILD [guessed]
1251  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1252_ACEOF
1253fi
1254
1255if test -n "$ac_init_help"; then
1256  case $ac_init_help in
1257     short | recursive ) echo "Configuration of tcsh 6.17.00:";;
1258   esac
1259  cat <<\_ACEOF
1260
1261Optional Features:
1262  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1263  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1264  --disable-rpath         do not hardcode runtime library paths
1265  --disable-nls           Disable NLS support
1266
1267Optional Packages:
1268  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1269  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1270  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1271  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1272  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1273  --with-hesiod=PREFIX    Use Hesiod lookup for ~ expansion
1274
1275Some influential environment variables:
1276  CC          C compiler command
1277  CFLAGS      C compiler flags
1278  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1279              nonstandard directory <lib dir>
1280  LIBS        libraries to pass to the linker, e.g. -l<library>
1281  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1282              you have headers in a nonstandard directory <include dir>
1283  CPP         C preprocessor
1284
1285Use these variables to override the choices made by `configure' or to help
1286it to find libraries and programs with nonstandard names/locations.
1287
1288Report bugs to <http://bugs.gw.com/>.
1289_ACEOF
1290ac_status=$?
1291fi
1292
1293if test "$ac_init_help" = "recursive"; then
1294  # If there are subdirs, report their specific --help.
1295  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1296    test -d "$ac_dir" || continue
1297    ac_builddir=.
1298
1299case "$ac_dir" in
1300.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1301*)
1302  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1303  # A ".." for each directory in $ac_dir_suffix.
1304  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1305  case $ac_top_builddir_sub in
1306  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1307  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1308  esac ;;
1309esac
1310ac_abs_top_builddir=$ac_pwd
1311ac_abs_builddir=$ac_pwd$ac_dir_suffix
1312# for backward compatibility:
1313ac_top_builddir=$ac_top_build_prefix
1314
1315case $srcdir in
1316  .)  # We are building in place.
1317    ac_srcdir=.
1318    ac_top_srcdir=$ac_top_builddir_sub
1319    ac_abs_top_srcdir=$ac_pwd ;;
1320  [\\/]* | ?:[\\/]* )  # Absolute name.
1321    ac_srcdir=$srcdir$ac_dir_suffix;
1322    ac_top_srcdir=$srcdir
1323    ac_abs_top_srcdir=$srcdir ;;
1324  *) # Relative name.
1325    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1326    ac_top_srcdir=$ac_top_build_prefix$srcdir
1327    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1328esac
1329ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1330
1331    cd "$ac_dir" || { ac_status=$?; continue; }
1332    # Check for guested configure.
1333    if test -f "$ac_srcdir/configure.gnu"; then
1334      echo &&
1335      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1336    elif test -f "$ac_srcdir/configure"; then
1337      echo &&
1338      $SHELL "$ac_srcdir/configure" --help=recursive
1339    else
1340      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1341    fi || ac_status=$?
1342    cd "$ac_pwd" || { ac_status=$?; break; }
1343  done
1344fi
1345
1346test -n "$ac_init_help" && exit $ac_status
1347if $ac_init_version; then
1348  cat <<\_ACEOF
1349tcsh configure 6.17.00
1350generated by GNU Autoconf 2.61
1351
1352Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13532002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1354This configure script is free software; the Free Software Foundation
1355gives unlimited permission to copy, distribute and modify it.
1356_ACEOF
1357  exit
1358fi
1359cat >config.log <<_ACEOF
1360This file contains any messages produced by compilers while
1361running configure, to aid debugging if configure makes a mistake.
1362
1363It was created by tcsh $as_me 6.17.00, which was
1364generated by GNU Autoconf 2.61.  Invocation command line was
1365
1366  $ $0 $@
1367
1368_ACEOF
1369exec 5>>config.log
1370{
1371cat <<_ASUNAME
1372## --------- ##
1373## Platform. ##
1374## --------- ##
1375
1376hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1377uname -m = `(uname -m) 2>/dev/null || echo unknown`
1378uname -r = `(uname -r) 2>/dev/null || echo unknown`
1379uname -s = `(uname -s) 2>/dev/null || echo unknown`
1380uname -v = `(uname -v) 2>/dev/null || echo unknown`
1381
1382/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1383/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1384
1385/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1386/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1387/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1388/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1389/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1390/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1391/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1392
1393_ASUNAME
1394
1395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1396for as_dir in $PATH
1397do
1398  IFS=$as_save_IFS
1399  test -z "$as_dir" && as_dir=.
1400  echo "PATH: $as_dir"
1401done
1402IFS=$as_save_IFS
1403
1404} >&5
1405
1406cat >&5 <<_ACEOF
1407
1408
1409## ----------- ##
1410## Core tests. ##
1411## ----------- ##
1412
1413_ACEOF
1414
1415
1416# Keep a trace of the command line.
1417# Strip out --no-create and --no-recursion so they do not pile up.
1418# Strip out --silent because we don't want to record it for future runs.
1419# Also quote any args containing shell meta-characters.
1420# Make two passes to allow for proper duplicate-argument suppression.
1421ac_configure_args=
1422ac_configure_args0=
1423ac_configure_args1=
1424ac_must_keep_next=false
1425for ac_pass in 1 2
1426do
1427  for ac_arg
1428  do
1429    case $ac_arg in
1430    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1431    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1432    | -silent | --silent | --silen | --sile | --sil)
1433      continue ;;
1434    *\'*)
1435      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1436    esac
1437    case $ac_pass in
1438    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1439    2)
1440      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1441      if test $ac_must_keep_next = true; then
1442	ac_must_keep_next=false # Got value, back to normal.
1443      else
1444	case $ac_arg in
1445	  *=* | --config-cache | -C | -disable-* | --disable-* \
1446	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1447	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1448	  | -with-* | --with-* | -without-* | --without-* | --x)
1449	    case "$ac_configure_args0 " in
1450	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1451	    esac
1452	    ;;
1453	  -* ) ac_must_keep_next=true ;;
1454	esac
1455      fi
1456      ac_configure_args="$ac_configure_args '$ac_arg'"
1457      ;;
1458    esac
1459  done
1460done
1461$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1462$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1463
1464# When interrupted or exit'd, cleanup temporary files, and complete
1465# config.log.  We remove comments because anyway the quotes in there
1466# would cause problems or look ugly.
1467# WARNING: Use '\'' to represent an apostrophe within the trap.
1468# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1469trap 'exit_status=$?
1470  # Save into config.log some information that might help in debugging.
1471  {
1472    echo
1473
1474    cat <<\_ASBOX
1475## ---------------- ##
1476## Cache variables. ##
1477## ---------------- ##
1478_ASBOX
1479    echo
1480    # The following way of writing the cache mishandles newlines in values,
1481(
1482  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1483    eval ac_val=\$$ac_var
1484    case $ac_val in #(
1485    *${as_nl}*)
1486      case $ac_var in #(
1487      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1488echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1489      esac
1490      case $ac_var in #(
1491      _ | IFS | as_nl) ;; #(
1492      *) $as_unset $ac_var ;;
1493      esac ;;
1494    esac
1495  done
1496  (set) 2>&1 |
1497    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1498    *${as_nl}ac_space=\ *)
1499      sed -n \
1500	"s/'\''/'\''\\\\'\'''\''/g;
1501	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1502      ;; #(
1503    *)
1504      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1505      ;;
1506    esac |
1507    sort
1508)
1509    echo
1510
1511    cat <<\_ASBOX
1512## ----------------- ##
1513## Output variables. ##
1514## ----------------- ##
1515_ASBOX
1516    echo
1517    for ac_var in $ac_subst_vars
1518    do
1519      eval ac_val=\$$ac_var
1520      case $ac_val in
1521      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1522      esac
1523      echo "$ac_var='\''$ac_val'\''"
1524    done | sort
1525    echo
1526
1527    if test -n "$ac_subst_files"; then
1528      cat <<\_ASBOX
1529## ------------------- ##
1530## File substitutions. ##
1531## ------------------- ##
1532_ASBOX
1533      echo
1534      for ac_var in $ac_subst_files
1535      do
1536	eval ac_val=\$$ac_var
1537	case $ac_val in
1538	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1539	esac
1540	echo "$ac_var='\''$ac_val'\''"
1541      done | sort
1542      echo
1543    fi
1544
1545    if test -s confdefs.h; then
1546      cat <<\_ASBOX
1547## ----------- ##
1548## confdefs.h. ##
1549## ----------- ##
1550_ASBOX
1551      echo
1552      cat confdefs.h
1553      echo
1554    fi
1555    test "$ac_signal" != 0 &&
1556      echo "$as_me: caught signal $ac_signal"
1557    echo "$as_me: exit $exit_status"
1558  } >&5
1559  rm -f core *.core core.conftest.* &&
1560    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1561    exit $exit_status
1562' 0
1563for ac_signal in 1 2 13 15; do
1564  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1565done
1566ac_signal=0
1567
1568# confdefs.h avoids OS command line length limits that DEFS can exceed.
1569rm -f -r conftest* confdefs.h
1570
1571# Predefined preprocessor variables.
1572
1573cat >>confdefs.h <<_ACEOF
1574#define PACKAGE_NAME "$PACKAGE_NAME"
1575_ACEOF
1576
1577
1578cat >>confdefs.h <<_ACEOF
1579#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1580_ACEOF
1581
1582
1583cat >>confdefs.h <<_ACEOF
1584#define PACKAGE_VERSION "$PACKAGE_VERSION"
1585_ACEOF
1586
1587
1588cat >>confdefs.h <<_ACEOF
1589#define PACKAGE_STRING "$PACKAGE_STRING"
1590_ACEOF
1591
1592
1593cat >>confdefs.h <<_ACEOF
1594#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1595_ACEOF
1596
1597
1598# Let the site file select an alternate cache file if it wants to.
1599# Prefer explicitly selected file to automatically selected ones.
1600if test -n "$CONFIG_SITE"; then
1601  set x "$CONFIG_SITE"
1602elif test "x$prefix" != xNONE; then
1603  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1604else
1605  set x "$ac_default_prefix/share/config.site" \
1606	"$ac_default_prefix/etc/config.site"
1607fi
1608shift
1609for ac_site_file
1610do
1611  if test -r "$ac_site_file"; then
1612    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1613echo "$as_me: loading site script $ac_site_file" >&6;}
1614    sed 's/^/| /' "$ac_site_file" >&5
1615    . "$ac_site_file"
1616  fi
1617done
1618
1619if test -r "$cache_file"; then
1620  # Some versions of bash will fail to source /dev/null (special
1621  # files actually), so we avoid doing that.
1622  if test -f "$cache_file"; then
1623    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1624echo "$as_me: loading cache $cache_file" >&6;}
1625    case $cache_file in
1626      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1627      *)                      . "./$cache_file";;
1628    esac
1629  fi
1630else
1631  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1632echo "$as_me: creating cache $cache_file" >&6;}
1633  >$cache_file
1634fi
1635
1636# Check that the precious variables saved in the cache have kept the same
1637# value.
1638ac_cache_corrupted=false
1639for ac_var in $ac_precious_vars; do
1640  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1641  eval ac_new_set=\$ac_env_${ac_var}_set
1642  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1643  eval ac_new_val=\$ac_env_${ac_var}_value
1644  case $ac_old_set,$ac_new_set in
1645    set,)
1646      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1647echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1648      ac_cache_corrupted=: ;;
1649    ,set)
1650      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1651echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1652      ac_cache_corrupted=: ;;
1653    ,);;
1654    *)
1655      if test "x$ac_old_val" != "x$ac_new_val"; then
1656	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1657echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1658	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1659echo "$as_me:   former value:  $ac_old_val" >&2;}
1660	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1661echo "$as_me:   current value: $ac_new_val" >&2;}
1662	ac_cache_corrupted=:
1663      fi;;
1664  esac
1665  # Pass precious variables to config.status.
1666  if test "$ac_new_set" = set; then
1667    case $ac_new_val in
1668    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1669    *) ac_arg=$ac_var=$ac_new_val ;;
1670    esac
1671    case " $ac_configure_args " in
1672      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1673      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1674    esac
1675  fi
1676done
1677if $ac_cache_corrupted; then
1678  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1679echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1680  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1681echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1682   { (exit 1); exit 1; }; }
1683fi
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709ac_ext=c
1710ac_cpp='$CPP $CPPFLAGS'
1711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1713ac_compiler_gnu=$ac_cv_c_compiler_gnu
1714
1715
1716
1717ac_config_headers="$ac_config_headers config.h"
1718
1719ac_config_commands="$ac_config_commands ./atconfig"
1720
1721
1722
1723ac_aux_dir=
1724for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1725  if test -f "$ac_dir/install-sh"; then
1726    ac_aux_dir=$ac_dir
1727    ac_install_sh="$ac_aux_dir/install-sh -c"
1728    break
1729  elif test -f "$ac_dir/install.sh"; then
1730    ac_aux_dir=$ac_dir
1731    ac_install_sh="$ac_aux_dir/install.sh -c"
1732    break
1733  elif test -f "$ac_dir/shtool"; then
1734    ac_aux_dir=$ac_dir
1735    ac_install_sh="$ac_aux_dir/shtool install -c"
1736    break
1737  fi
1738done
1739if test -z "$ac_aux_dir"; then
1740  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1741echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1742   { (exit 1); exit 1; }; }
1743fi
1744
1745# These three variables are undocumented and unsupported,
1746# and are intended to be withdrawn in a future Autoconf release.
1747# They can cause serious problems if a builder's source tree is in a directory
1748# whose full name contains unusual characters.
1749ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1750ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1751ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1752
1753
1754# Make sure we can run config.sub.
1755$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1756  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1757echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1758   { (exit 1); exit 1; }; }
1759
1760{ echo "$as_me:$LINENO: checking build system type" >&5
1761echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1762if test "${ac_cv_build+set}" = set; then
1763  echo $ECHO_N "(cached) $ECHO_C" >&6
1764else
1765  ac_build_alias=$build_alias
1766test "x$ac_build_alias" = x &&
1767  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1768test "x$ac_build_alias" = x &&
1769  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1770echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1771   { (exit 1); exit 1; }; }
1772ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1773  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1774echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1775   { (exit 1); exit 1; }; }
1776
1777fi
1778{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1779echo "${ECHO_T}$ac_cv_build" >&6; }
1780case $ac_cv_build in
1781*-*-*) ;;
1782*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1783echo "$as_me: error: invalid value of canonical build" >&2;}
1784   { (exit 1); exit 1; }; };;
1785esac
1786build=$ac_cv_build
1787ac_save_IFS=$IFS; IFS='-'
1788set x $ac_cv_build
1789shift
1790build_cpu=$1
1791build_vendor=$2
1792shift; shift
1793# Remember, the first character of IFS is used to create $*,
1794# except with old shells:
1795build_os=$*
1796IFS=$ac_save_IFS
1797case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1798
1799
1800{ echo "$as_me:$LINENO: checking host system type" >&5
1801echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1802if test "${ac_cv_host+set}" = set; then
1803  echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
1805  if test "x$host_alias" = x; then
1806  ac_cv_host=$ac_cv_build
1807else
1808  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1809    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1810echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1811   { (exit 1); exit 1; }; }
1812fi
1813
1814fi
1815{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1816echo "${ECHO_T}$ac_cv_host" >&6; }
1817case $ac_cv_host in
1818*-*-*) ;;
1819*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1820echo "$as_me: error: invalid value of canonical host" >&2;}
1821   { (exit 1); exit 1; }; };;
1822esac
1823host=$ac_cv_host
1824ac_save_IFS=$IFS; IFS='-'
1825set x $ac_cv_host
1826shift
1827host_cpu=$1
1828host_vendor=$2
1829shift; shift
1830# Remember, the first character of IFS is used to create $*,
1831# except with old shells:
1832host_os=$*
1833IFS=$ac_save_IFS
1834case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1835
1836
1837
1838{ echo "$as_me:$LINENO: checking cached host tuple" >&5
1839echo $ECHO_N "checking cached host tuple... $ECHO_C" >&6; }
1840if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1841     test x"$ac_cv_host_system_type" != x"$host"; }; then
1842  { echo "$as_me:$LINENO: result: different" >&5
1843echo "${ECHO_T}different" >&6; }
1844  { { echo "$as_me:$LINENO: error: remove config.cache and re-run configure" >&5
1845echo "$as_me: error: remove config.cache and re-run configure" >&2;}
1846   { (exit 1); exit 1; }; }
1847else
1848  { echo "$as_me:$LINENO: result: ok" >&5
1849echo "${ECHO_T}ok" >&6; }
1850fi
1851ac_cv_host_system_type="$host"
1852
1853
1854
1855case "${host}" in
1856
1857  ## Alpha (DEC) machines.
1858  alpha*-dec-osf* )
1859    tcsh_config_file=decosf1
1860  ;;
1861
1862  ## Ultrix
1863  *-dec-ultrix* )
1864    tcsh_config_file=ultrix
1865  ;;
1866
1867  ## DGUX
1868  *-dg-dguxR4* )
1869    tcsh_config_file=dgux5.4
1870  ;;
1871  m88k-dg-dgux5.4R* )
1872    tcsh_config_file=dgux5.4
1873  ;;
1874
1875  ## HP/UX
1876  *-hp-hpux7* )
1877    tcsh_config_file=hpux7
1878  ;;
1879  *-hp-hpux[89]* )
1880    tcsh_config_file=hpux8
1881  ;;
1882  *-hp-hpux1[0-9]* )
1883    tcsh_config_file=hpux11
1884  ;;
1885
1886  ## IBM AIX systems
1887  *-ibm-aix*)
1888    tcsh_config_file=aix
1889  ;;
1890
1891  ## SX-4
1892  sx4-nec-*)
1893    CC='cc -h0,ansi,novector,float0'
1894    LDFLAGS='-Gsmall'
1895    tcsh_config_file=superux8
1896  ;;
1897
1898  ## IBM OS/390 systems
1899  *-ibm-os390*)
1900    CC='c89'
1901    tcsh_config_file=os390
1902  ;;
1903
1904  ## Linux
1905  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1906    tcsh_config_file=linux
1907  ;;
1908
1909  ## Motorola systems
1910  m68k-motorola-sysv* )
1911    tcsh_config_file=sysV68
1912  ;;
1913  m88k-motorola-sysv3* )
1914    tcsh_config_file=sysV88
1915  ;;
1916
1917  ## NetBSD systems
1918  *-*-netbsd*)
1919    tcsh_config_file=bsd4.4
1920  ;;
1921
1922  ## FreeBSD systems
1923  *-*-freebsd*)
1924    tcsh_config_file=bsd4.4
1925  ;;
1926
1927  ## MidnightBSD systems
1928  *-*-midnightbsd*)
1929    tcsh_config_file=bsd4.4
1930  ;;
1931
1932  ## DragonFlyBSD systems
1933  *-*-dragonfly*)
1934    tcsh_config_file=bsd4.4
1935  ;;
1936
1937  ## OpenBSD systems
1938  *-*-openbsd*)
1939    tcsh_config_file=bsd4.4
1940  ;;
1941
1942  ## BSDI systems
1943  *-*-bsdi*)
1944    tcsh_config_file=bsd4.4
1945  ;;
1946
1947  ## Mac OS X Server
1948  *-*-rhapsody* )
1949    tcsh_config_file=bsd4.4
1950  ;;
1951
1952  ## Mac OS X Server
1953  *-*-darwin* )
1954    tcsh_config_file=bsd4.4
1955  ;;
1956
1957  ## DragonFly systems
1958  *-*-dragonfly*)
1959    tcsh_config_file=bsd4.4
1960  ;;
1961
1962  ## Silicon Graphics machines
1963  *-sgi-iri* )
1964    tcsh_config_file=irix
1965    case "${host_os}" in
1966      irix[34]*) # Irix-3.x - Irix 4.x
1967        NON_GNU_DFLAGS='-D__STDC__'
1968        LIBS='-lsun -lbsd -lc_s'
1969      ;;
1970      irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
1971        LIBS='-lbsd'
1972      ;;
1973      irix6.[2-9]*) # Irix 6.2 and later
1974	tcsh_config_file=irix62
1975      ;;
1976    esac
1977  ;;
1978
1979  ## Suns
1980  *-sun-sunos3* )
1981    tcsh_config_file=sunos35
1982  ;;
1983  *-sun-sunos4.0* )
1984    tcsh_config_file=sunos40
1985  ;;
1986  *-sun-sunos4.1.[12]* )
1987    tcsh_config_file=sunos41
1988  ;;
1989  *-sun-sunos4.1.[3456]* )
1990    tcsh_config_file=sunos413
1991  ;;
1992  *-*-solaris2.[01] ) # Should handle sparc or x86
1993    tcsh_config_file=sol2
1994  ;;
1995  *-sun-solaris2.2 ) # Sparc only release
1996    tcsh_config_file=sol22
1997  ;;
1998  *-sun-solaris2.3 ) # Sparc only release
1999    tcsh_config_file=sol23
2000  ;;
2001  *-*-solaris2.[45] ) # Should handle sparc, x86 and powerpc
2002    tcsh_config_file=sol24
2003  ;;
2004  *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
2005    tcsh_config_file=sol26
2006  ;;
2007
2008  ## Dell SVR4
2009  *-dell-sysv4* )
2010    tcsh_config_file=sysv4
2011    DFLAGS="$DFLAGS -DDELL"
2012  ;;
2013
2014  ## SVR4 (Generic and otherwise)
2015  *-*-sysv4* )
2016    tcsh_config_file=sysv4
2017  ;;
2018
2019  ## Tektronix systems
2020  m68k-tektronix-bsd* )
2021    tcsh_config_file=bsd
2022    NON_GNU_DFLAGS='-DBSD -DUTek'
2023  ;;
2024  m88k-tektronix-sysv3* )
2025    tcsh_config_file=tekXD88
2026  ;;
2027
2028  ## SCO
2029  *-sco3.2v5*)
2030    tcsh_config_file=sco32v5
2031  ;;
2032  *-sco3.2v4*)
2033    tcsh_config_file=sco32v4
2034  ;;
2035  *-sco3.2v2*)
2036    tcsh_config_file=sco32v2
2037  ;;
2038
2039  ## Siemens BS2000 Mainframe
2040  bs2000-siemens-*)
2041    tcsh_config_file=bs2000
2042  ;;
2043
2044  ## Convex
2045  *-convex*)
2046    tcsh_config_file=convex
2047  ;;
2048
2049  ## Cray
2050  *-cray-unicos*)
2051    tcsh_config_file=cray
2052  ;;
2053
2054  ## Red Hat Cygwin
2055  *-cygwin)
2056    tcsh_config_file=cygwin32
2057  ;;
2058
2059  ## mips-compaq-nonstopux
2060  *-*-nonstopux)
2061    tcsh_config_file=sysv4
2062  ;;
2063
2064  ## Apollo Domain/OS
2065  *-apollo-*)
2066    tcsh_config_file=apollo
2067  ;;
2068
2069  ## QNX6
2070  *-qnx6*)
2071    tcsh_config_file=qnx6
2072  ;;
2073
2074  * )
2075    { { echo "$as_me:$LINENO: error: Tcsh can't guess the configuration file name
2076for \`${host}' systems.
2077Check tcsh's \`Ported' file for manual configuration instructions." >&5
2078echo "$as_me: error: Tcsh can't guess the configuration file name
2079for \`${host}' systems.
2080Check tcsh's \`Ported' file for manual configuration instructions." >&2;}
2081   { (exit 1); exit 1; }; }
2082    ;;
2083
2084esac
2085
2086echo "Tcsh will use configuration file \`$tcsh_config_file'."
2087cp ${srcdir}/config/${tcsh_config_file} config_p.h
2088
2089
2090
2091ac_ext=c
2092ac_cpp='$CPP $CPPFLAGS'
2093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2095ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096if test -n "$ac_tool_prefix"; then
2097  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2098set dummy ${ac_tool_prefix}gcc; ac_word=$2
2099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2101if test "${ac_cv_prog_CC+set}" = set; then
2102  echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104  if test -n "$CC"; then
2105  ac_cv_prog_CC="$CC" # Let the user override the test.
2106else
2107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108for as_dir in $PATH
2109do
2110  IFS=$as_save_IFS
2111  test -z "$as_dir" && as_dir=.
2112  for ac_exec_ext in '' $ac_executable_extensions; do
2113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2114    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116    break 2
2117  fi
2118done
2119done
2120IFS=$as_save_IFS
2121
2122fi
2123fi
2124CC=$ac_cv_prog_CC
2125if test -n "$CC"; then
2126  { echo "$as_me:$LINENO: result: $CC" >&5
2127echo "${ECHO_T}$CC" >&6; }
2128else
2129  { echo "$as_me:$LINENO: result: no" >&5
2130echo "${ECHO_T}no" >&6; }
2131fi
2132
2133
2134fi
2135if test -z "$ac_cv_prog_CC"; then
2136  ac_ct_CC=$CC
2137  # Extract the first word of "gcc", so it can be a program name with args.
2138set dummy gcc; ac_word=$2
2139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2142  echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
2144  if test -n "$ac_ct_CC"; then
2145  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2146else
2147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148for as_dir in $PATH
2149do
2150  IFS=$as_save_IFS
2151  test -z "$as_dir" && as_dir=.
2152  for ac_exec_ext in '' $ac_executable_extensions; do
2153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2154    ac_cv_prog_ac_ct_CC="gcc"
2155    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156    break 2
2157  fi
2158done
2159done
2160IFS=$as_save_IFS
2161
2162fi
2163fi
2164ac_ct_CC=$ac_cv_prog_ac_ct_CC
2165if test -n "$ac_ct_CC"; then
2166  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2167echo "${ECHO_T}$ac_ct_CC" >&6; }
2168else
2169  { echo "$as_me:$LINENO: result: no" >&5
2170echo "${ECHO_T}no" >&6; }
2171fi
2172
2173  if test "x$ac_ct_CC" = x; then
2174    CC=""
2175  else
2176    case $cross_compiling:$ac_tool_warned in
2177yes:)
2178{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2179whose name does not start with the host triplet.  If you think this
2180configuration is useful to you, please write to autoconf@gnu.org." >&5
2181echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2182whose name does not start with the host triplet.  If you think this
2183configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2184ac_tool_warned=yes ;;
2185esac
2186    CC=$ac_ct_CC
2187  fi
2188else
2189  CC="$ac_cv_prog_CC"
2190fi
2191
2192if test -z "$CC"; then
2193          if test -n "$ac_tool_prefix"; then
2194    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2195set dummy ${ac_tool_prefix}cc; ac_word=$2
2196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198if test "${ac_cv_prog_CC+set}" = set; then
2199  echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
2201  if test -n "$CC"; then
2202  ac_cv_prog_CC="$CC" # Let the user override the test.
2203else
2204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205for as_dir in $PATH
2206do
2207  IFS=$as_save_IFS
2208  test -z "$as_dir" && as_dir=.
2209  for ac_exec_ext in '' $ac_executable_extensions; do
2210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211    ac_cv_prog_CC="${ac_tool_prefix}cc"
2212    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213    break 2
2214  fi
2215done
2216done
2217IFS=$as_save_IFS
2218
2219fi
2220fi
2221CC=$ac_cv_prog_CC
2222if test -n "$CC"; then
2223  { echo "$as_me:$LINENO: result: $CC" >&5
2224echo "${ECHO_T}$CC" >&6; }
2225else
2226  { echo "$as_me:$LINENO: result: no" >&5
2227echo "${ECHO_T}no" >&6; }
2228fi
2229
2230
2231  fi
2232fi
2233if test -z "$CC"; then
2234  # Extract the first word of "cc", so it can be a program name with args.
2235set dummy cc; ac_word=$2
2236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2238if test "${ac_cv_prog_CC+set}" = set; then
2239  echo $ECHO_N "(cached) $ECHO_C" >&6
2240else
2241  if test -n "$CC"; then
2242  ac_cv_prog_CC="$CC" # Let the user override the test.
2243else
2244  ac_prog_rejected=no
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248  IFS=$as_save_IFS
2249  test -z "$as_dir" && as_dir=.
2250  for ac_exec_ext in '' $ac_executable_extensions; do
2251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2253       ac_prog_rejected=yes
2254       continue
2255     fi
2256    ac_cv_prog_CC="cc"
2257    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258    break 2
2259  fi
2260done
2261done
2262IFS=$as_save_IFS
2263
2264if test $ac_prog_rejected = yes; then
2265  # We found a bogon in the path, so make sure we never use it.
2266  set dummy $ac_cv_prog_CC
2267  shift
2268  if test $# != 0; then
2269    # We chose a different compiler from the bogus one.
2270    # However, it has the same basename, so the bogon will be chosen
2271    # first if we set CC to just the basename; use the full file name.
2272    shift
2273    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2274  fi
2275fi
2276fi
2277fi
2278CC=$ac_cv_prog_CC
2279if test -n "$CC"; then
2280  { echo "$as_me:$LINENO: result: $CC" >&5
2281echo "${ECHO_T}$CC" >&6; }
2282else
2283  { echo "$as_me:$LINENO: result: no" >&5
2284echo "${ECHO_T}no" >&6; }
2285fi
2286
2287
2288fi
2289if test -z "$CC"; then
2290  if test -n "$ac_tool_prefix"; then
2291  for ac_prog in cl.exe
2292  do
2293    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2294set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297if test "${ac_cv_prog_CC+set}" = set; then
2298  echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300  if test -n "$CC"; then
2301  ac_cv_prog_CC="$CC" # Let the user override the test.
2302else
2303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304for as_dir in $PATH
2305do
2306  IFS=$as_save_IFS
2307  test -z "$as_dir" && as_dir=.
2308  for ac_exec_ext in '' $ac_executable_extensions; do
2309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312    break 2
2313  fi
2314done
2315done
2316IFS=$as_save_IFS
2317
2318fi
2319fi
2320CC=$ac_cv_prog_CC
2321if test -n "$CC"; then
2322  { echo "$as_me:$LINENO: result: $CC" >&5
2323echo "${ECHO_T}$CC" >&6; }
2324else
2325  { echo "$as_me:$LINENO: result: no" >&5
2326echo "${ECHO_T}no" >&6; }
2327fi
2328
2329
2330    test -n "$CC" && break
2331  done
2332fi
2333if test -z "$CC"; then
2334  ac_ct_CC=$CC
2335  for ac_prog in cl.exe
2336do
2337  # Extract the first word of "$ac_prog", so it can be a program name with args.
2338set dummy $ac_prog; ac_word=$2
2339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344  if test -n "$ac_ct_CC"; then
2345  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2346else
2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348for as_dir in $PATH
2349do
2350  IFS=$as_save_IFS
2351  test -z "$as_dir" && as_dir=.
2352  for ac_exec_ext in '' $ac_executable_extensions; do
2353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354    ac_cv_prog_ac_ct_CC="$ac_prog"
2355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356    break 2
2357  fi
2358done
2359done
2360IFS=$as_save_IFS
2361
2362fi
2363fi
2364ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365if test -n "$ac_ct_CC"; then
2366  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2367echo "${ECHO_T}$ac_ct_CC" >&6; }
2368else
2369  { echo "$as_me:$LINENO: result: no" >&5
2370echo "${ECHO_T}no" >&6; }
2371fi
2372
2373
2374  test -n "$ac_ct_CC" && break
2375done
2376
2377  if test "x$ac_ct_CC" = x; then
2378    CC=""
2379  else
2380    case $cross_compiling:$ac_tool_warned in
2381yes:)
2382{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2383whose name does not start with the host triplet.  If you think this
2384configuration is useful to you, please write to autoconf@gnu.org." >&5
2385echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2386whose name does not start with the host triplet.  If you think this
2387configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2388ac_tool_warned=yes ;;
2389esac
2390    CC=$ac_ct_CC
2391  fi
2392fi
2393
2394fi
2395
2396
2397test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2398See \`config.log' for more details." >&5
2399echo "$as_me: error: no acceptable C compiler found in \$PATH
2400See \`config.log' for more details." >&2;}
2401   { (exit 1); exit 1; }; }
2402
2403# Provide some information about the compiler.
2404echo "$as_me:$LINENO: checking for C compiler version" >&5
2405ac_compiler=`set X $ac_compile; echo $2`
2406{ (ac_try="$ac_compiler --version >&5"
2407case "(($ac_try" in
2408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409  *) ac_try_echo=$ac_try;;
2410esac
2411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412  (eval "$ac_compiler --version >&5") 2>&5
2413  ac_status=$?
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); }
2416{ (ac_try="$ac_compiler -v >&5"
2417case "(($ac_try" in
2418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419  *) ac_try_echo=$ac_try;;
2420esac
2421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422  (eval "$ac_compiler -v >&5") 2>&5
2423  ac_status=$?
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); }
2426{ (ac_try="$ac_compiler -V >&5"
2427case "(($ac_try" in
2428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429  *) ac_try_echo=$ac_try;;
2430esac
2431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432  (eval "$ac_compiler -V >&5") 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); }
2436
2437cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h.  */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h.  */
2443
2444int
2445main ()
2446{
2447
2448  ;
2449  return 0;
2450}
2451_ACEOF
2452ac_clean_files_save=$ac_clean_files
2453ac_clean_files="$ac_clean_files a.out a.exe b.out"
2454# Try to create an executable without -o first, disregard a.out.
2455# It will help us diagnose broken compilers, and finding out an intuition
2456# of exeext.
2457{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2458echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2459ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2460#
2461# List of possible output files, starting from the most likely.
2462# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2463# only as a last resort.  b.out is created by i960 compilers.
2464ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2465#
2466# The IRIX 6 linker writes into existing files which may not be
2467# executable, retaining their permissions.  Remove them first so a
2468# subsequent execution test works.
2469ac_rmfiles=
2470for ac_file in $ac_files
2471do
2472  case $ac_file in
2473    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2474    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2475  esac
2476done
2477rm -f $ac_rmfiles
2478
2479if { (ac_try="$ac_link_default"
2480case "(($ac_try" in
2481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482  *) ac_try_echo=$ac_try;;
2483esac
2484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485  (eval "$ac_link_default") 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; then
2489  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2490# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2491# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2492# so that the user can short-circuit this test for compilers unknown to
2493# Autoconf.
2494for ac_file in $ac_files ''
2495do
2496  test -f "$ac_file" || continue
2497  case $ac_file in
2498    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2499	;;
2500    [ab].out )
2501	# We found the default executable, but exeext='' is most
2502	# certainly right.
2503	break;;
2504    *.* )
2505        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2506	then :; else
2507	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2508	fi
2509	# We set ac_cv_exeext here because the later test for it is not
2510	# safe: cross compilers may not add the suffix if given an `-o'
2511	# argument, so we may need to know it at that point already.
2512	# Even if this section looks crufty: it has the advantage of
2513	# actually working.
2514	break;;
2515    * )
2516	break;;
2517  esac
2518done
2519test "$ac_cv_exeext" = no && ac_cv_exeext=
2520
2521else
2522  ac_file=''
2523fi
2524
2525{ echo "$as_me:$LINENO: result: $ac_file" >&5
2526echo "${ECHO_T}$ac_file" >&6; }
2527if test -z "$ac_file"; then
2528  echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2532See \`config.log' for more details." >&5
2533echo "$as_me: error: C compiler cannot create executables
2534See \`config.log' for more details." >&2;}
2535   { (exit 77); exit 77; }; }
2536fi
2537
2538ac_exeext=$ac_cv_exeext
2539
2540# Check that the compiler produces executables we can run.  If not, either
2541# the compiler is broken, or we cross compile.
2542{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2543echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2544# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2545# If not cross compiling, check that we can run a simple program.
2546if test "$cross_compiling" != yes; then
2547  if { ac_try='./$ac_file'
2548  { (case "(($ac_try" in
2549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550  *) ac_try_echo=$ac_try;;
2551esac
2552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553  (eval "$ac_try") 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; }; then
2557    cross_compiling=no
2558  else
2559    if test "$cross_compiling" = maybe; then
2560	cross_compiling=yes
2561    else
2562	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2563If you meant to cross compile, use \`--host'.
2564See \`config.log' for more details." >&5
2565echo "$as_me: error: cannot run C compiled programs.
2566If you meant to cross compile, use \`--host'.
2567See \`config.log' for more details." >&2;}
2568   { (exit 1); exit 1; }; }
2569    fi
2570  fi
2571fi
2572{ echo "$as_me:$LINENO: result: yes" >&5
2573echo "${ECHO_T}yes" >&6; }
2574
2575rm -f a.out a.exe conftest$ac_cv_exeext b.out
2576ac_clean_files=$ac_clean_files_save
2577# Check that the compiler produces executables we can run.  If not, either
2578# the compiler is broken, or we cross compile.
2579{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2580echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2581{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2582echo "${ECHO_T}$cross_compiling" >&6; }
2583
2584{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2585echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2586if { (ac_try="$ac_link"
2587case "(($ac_try" in
2588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589  *) ac_try_echo=$ac_try;;
2590esac
2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592  (eval "$ac_link") 2>&5
2593  ac_status=$?
2594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595  (exit $ac_status); }; then
2596  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2597# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2598# work properly (i.e., refer to `conftest.exe'), while it won't with
2599# `rm'.
2600for ac_file in conftest.exe conftest conftest.*; do
2601  test -f "$ac_file" || continue
2602  case $ac_file in
2603    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2604    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2605	  break;;
2606    * ) break;;
2607  esac
2608done
2609else
2610  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2611See \`config.log' for more details." >&5
2612echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2613See \`config.log' for more details." >&2;}
2614   { (exit 1); exit 1; }; }
2615fi
2616
2617rm -f conftest$ac_cv_exeext
2618{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2619echo "${ECHO_T}$ac_cv_exeext" >&6; }
2620
2621rm -f conftest.$ac_ext
2622EXEEXT=$ac_cv_exeext
2623ac_exeext=$EXEEXT
2624{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2625echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2626if test "${ac_cv_objext+set}" = set; then
2627  echo $ECHO_N "(cached) $ECHO_C" >&6
2628else
2629  cat >conftest.$ac_ext <<_ACEOF
2630/* confdefs.h.  */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h.  */
2635
2636int
2637main ()
2638{
2639
2640  ;
2641  return 0;
2642}
2643_ACEOF
2644rm -f conftest.o conftest.obj
2645if { (ac_try="$ac_compile"
2646case "(($ac_try" in
2647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648  *) ac_try_echo=$ac_try;;
2649esac
2650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651  (eval "$ac_compile") 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; then
2655  for ac_file in conftest.o conftest.obj conftest.*; do
2656  test -f "$ac_file" || continue;
2657  case $ac_file in
2658    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2659    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2660       break;;
2661  esac
2662done
2663else
2664  echo "$as_me: failed program was:" >&5
2665sed 's/^/| /' conftest.$ac_ext >&5
2666
2667{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668See \`config.log' for more details." >&5
2669echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670See \`config.log' for more details." >&2;}
2671   { (exit 1); exit 1; }; }
2672fi
2673
2674rm -f conftest.$ac_cv_objext conftest.$ac_ext
2675fi
2676{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677echo "${ECHO_T}$ac_cv_objext" >&6; }
2678OBJEXT=$ac_cv_objext
2679ac_objext=$OBJEXT
2680{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2682if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683  echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
2685  cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h.  */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h.  */
2691
2692int
2693main ()
2694{
2695#ifndef __GNUC__
2696       choke me
2697#endif
2698
2699  ;
2700  return 0;
2701}
2702_ACEOF
2703rm -f conftest.$ac_objext
2704if { (ac_try="$ac_compile"
2705case "(($ac_try" in
2706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707  *) ac_try_echo=$ac_try;;
2708esac
2709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710  (eval "$ac_compile") 2>conftest.er1
2711  ac_status=$?
2712  grep -v '^ *+' conftest.er1 >conftest.err
2713  rm -f conftest.er1
2714  cat conftest.err >&5
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); } && {
2717	 test -z "$ac_c_werror_flag" ||
2718	 test ! -s conftest.err
2719       } && test -s conftest.$ac_objext; then
2720  ac_compiler_gnu=yes
2721else
2722  echo "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725	ac_compiler_gnu=no
2726fi
2727
2728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729ac_cv_c_compiler_gnu=$ac_compiler_gnu
2730
2731fi
2732{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2733echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2734GCC=`test $ac_compiler_gnu = yes && echo yes`
2735ac_test_CFLAGS=${CFLAGS+set}
2736ac_save_CFLAGS=$CFLAGS
2737{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2738echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2739if test "${ac_cv_prog_cc_g+set}" = set; then
2740  echo $ECHO_N "(cached) $ECHO_C" >&6
2741else
2742  ac_save_c_werror_flag=$ac_c_werror_flag
2743   ac_c_werror_flag=yes
2744   ac_cv_prog_cc_g=no
2745   CFLAGS="-g"
2746   cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h.  */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h.  */
2752
2753int
2754main ()
2755{
2756
2757  ;
2758  return 0;
2759}
2760_ACEOF
2761rm -f conftest.$ac_objext
2762if { (ac_try="$ac_compile"
2763case "(($ac_try" in
2764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765  *) ac_try_echo=$ac_try;;
2766esac
2767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768  (eval "$ac_compile") 2>conftest.er1
2769  ac_status=$?
2770  grep -v '^ *+' conftest.er1 >conftest.err
2771  rm -f conftest.er1
2772  cat conftest.err >&5
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); } && {
2775	 test -z "$ac_c_werror_flag" ||
2776	 test ! -s conftest.err
2777       } && test -s conftest.$ac_objext; then
2778  ac_cv_prog_cc_g=yes
2779else
2780  echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783	CFLAGS=""
2784      cat >conftest.$ac_ext <<_ACEOF
2785/* confdefs.h.  */
2786_ACEOF
2787cat confdefs.h >>conftest.$ac_ext
2788cat >>conftest.$ac_ext <<_ACEOF
2789/* end confdefs.h.  */
2790
2791int
2792main ()
2793{
2794
2795  ;
2796  return 0;
2797}
2798_ACEOF
2799rm -f conftest.$ac_objext
2800if { (ac_try="$ac_compile"
2801case "(($ac_try" in
2802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803  *) ac_try_echo=$ac_try;;
2804esac
2805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806  (eval "$ac_compile") 2>conftest.er1
2807  ac_status=$?
2808  grep -v '^ *+' conftest.er1 >conftest.err
2809  rm -f conftest.er1
2810  cat conftest.err >&5
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); } && {
2813	 test -z "$ac_c_werror_flag" ||
2814	 test ! -s conftest.err
2815       } && test -s conftest.$ac_objext; then
2816  :
2817else
2818  echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821	ac_c_werror_flag=$ac_save_c_werror_flag
2822	 CFLAGS="-g"
2823	 cat >conftest.$ac_ext <<_ACEOF
2824/* confdefs.h.  */
2825_ACEOF
2826cat confdefs.h >>conftest.$ac_ext
2827cat >>conftest.$ac_ext <<_ACEOF
2828/* end confdefs.h.  */
2829
2830int
2831main ()
2832{
2833
2834  ;
2835  return 0;
2836}
2837_ACEOF
2838rm -f conftest.$ac_objext
2839if { (ac_try="$ac_compile"
2840case "(($ac_try" in
2841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842  *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845  (eval "$ac_compile") 2>conftest.er1
2846  ac_status=$?
2847  grep -v '^ *+' conftest.er1 >conftest.err
2848  rm -f conftest.er1
2849  cat conftest.err >&5
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); } && {
2852	 test -z "$ac_c_werror_flag" ||
2853	 test ! -s conftest.err
2854       } && test -s conftest.$ac_objext; then
2855  ac_cv_prog_cc_g=yes
2856else
2857  echo "$as_me: failed program was:" >&5
2858sed 's/^/| /' conftest.$ac_ext >&5
2859
2860
2861fi
2862
2863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864fi
2865
2866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867fi
2868
2869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870   ac_c_werror_flag=$ac_save_c_werror_flag
2871fi
2872{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2873echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2874if test "$ac_test_CFLAGS" = set; then
2875  CFLAGS=$ac_save_CFLAGS
2876elif test $ac_cv_prog_cc_g = yes; then
2877  if test "$GCC" = yes; then
2878    CFLAGS="-g -O2"
2879  else
2880    CFLAGS="-g"
2881  fi
2882else
2883  if test "$GCC" = yes; then
2884    CFLAGS="-O2"
2885  else
2886    CFLAGS=
2887  fi
2888fi
2889{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2890echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2891if test "${ac_cv_prog_cc_c89+set}" = set; then
2892  echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894  ac_cv_prog_cc_c89=no
2895ac_save_CC=$CC
2896cat >conftest.$ac_ext <<_ACEOF
2897/* confdefs.h.  */
2898_ACEOF
2899cat confdefs.h >>conftest.$ac_ext
2900cat >>conftest.$ac_ext <<_ACEOF
2901/* end confdefs.h.  */
2902#include <stdarg.h>
2903#include <stdio.h>
2904#include <sys/types.h>
2905#include <sys/stat.h>
2906/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2907struct buf { int x; };
2908FILE * (*rcsopen) (struct buf *, struct stat *, int);
2909static char *e (p, i)
2910     char **p;
2911     int i;
2912{
2913  return p[i];
2914}
2915static char *f (char * (*g) (char **, int), char **p, ...)
2916{
2917  char *s;
2918  va_list v;
2919  va_start (v,p);
2920  s = g (p, va_arg (v,int));
2921  va_end (v);
2922  return s;
2923}
2924
2925/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2926   function prototypes and stuff, but not '\xHH' hex character constants.
2927   These don't provoke an error unfortunately, instead are silently treated
2928   as 'x'.  The following induces an error, until -std is added to get
2929   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2930   array size at least.  It's necessary to write '\x00'==0 to get something
2931   that's true only with -std.  */
2932int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2933
2934/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2935   inside strings and character constants.  */
2936#define FOO(x) 'x'
2937int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2938
2939int test (int i, double x);
2940struct s1 {int (*f) (int a);};
2941struct s2 {int (*f) (double a);};
2942int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2943int argc;
2944char **argv;
2945int
2946main ()
2947{
2948return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2949  ;
2950  return 0;
2951}
2952_ACEOF
2953for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2954	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955do
2956  CC="$ac_save_CC $ac_arg"
2957  rm -f conftest.$ac_objext
2958if { (ac_try="$ac_compile"
2959case "(($ac_try" in
2960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961  *) ac_try_echo=$ac_try;;
2962esac
2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964  (eval "$ac_compile") 2>conftest.er1
2965  ac_status=$?
2966  grep -v '^ *+' conftest.er1 >conftest.err
2967  rm -f conftest.er1
2968  cat conftest.err >&5
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); } && {
2971	 test -z "$ac_c_werror_flag" ||
2972	 test ! -s conftest.err
2973       } && test -s conftest.$ac_objext; then
2974  ac_cv_prog_cc_c89=$ac_arg
2975else
2976  echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979
2980fi
2981
2982rm -f core conftest.err conftest.$ac_objext
2983  test "x$ac_cv_prog_cc_c89" != "xno" && break
2984done
2985rm -f conftest.$ac_ext
2986CC=$ac_save_CC
2987
2988fi
2989# AC_CACHE_VAL
2990case "x$ac_cv_prog_cc_c89" in
2991  x)
2992    { echo "$as_me:$LINENO: result: none needed" >&5
2993echo "${ECHO_T}none needed" >&6; } ;;
2994  xno)
2995    { echo "$as_me:$LINENO: result: unsupported" >&5
2996echo "${ECHO_T}unsupported" >&6; } ;;
2997  *)
2998    CC="$CC $ac_cv_prog_cc_c89"
2999    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3000echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3001esac
3002
3003
3004ac_ext=c
3005ac_cpp='$CPP $CPPFLAGS'
3006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009
3010ac_ext=c
3011ac_cpp='$CPP $CPPFLAGS'
3012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3016echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3017# On Suns, sometimes $CPP names a directory.
3018if test -n "$CPP" && test -d "$CPP"; then
3019  CPP=
3020fi
3021if test -z "$CPP"; then
3022  if test "${ac_cv_prog_CPP+set}" = set; then
3023  echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025      # Double quotes because CPP needs to be expanded
3026    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3027    do
3028      ac_preproc_ok=false
3029for ac_c_preproc_warn_flag in '' yes
3030do
3031  # Use a header file that comes with gcc, so configuring glibc
3032  # with a fresh cross-compiler works.
3033  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3034  # <limits.h> exists even on freestanding compilers.
3035  # On the NeXT, cc -E runs the code through the compiler's parser,
3036  # not just through cpp. "Syntax error" is here to catch this case.
3037  cat >conftest.$ac_ext <<_ACEOF
3038/* confdefs.h.  */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h.  */
3043#ifdef __STDC__
3044# include <limits.h>
3045#else
3046# include <assert.h>
3047#endif
3048		     Syntax error
3049_ACEOF
3050if { (ac_try="$ac_cpp conftest.$ac_ext"
3051case "(($ac_try" in
3052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053  *) ac_try_echo=$ac_try;;
3054esac
3055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3057  ac_status=$?
3058  grep -v '^ *+' conftest.er1 >conftest.err
3059  rm -f conftest.er1
3060  cat conftest.err >&5
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); } >/dev/null && {
3063	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3064	 test ! -s conftest.err
3065       }; then
3066  :
3067else
3068  echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071  # Broken: fails on valid input.
3072continue
3073fi
3074
3075rm -f conftest.err conftest.$ac_ext
3076
3077  # OK, works on sane cases.  Now check whether nonexistent headers
3078  # can be detected and how.
3079  cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h.  */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h.  */
3085#include <ac_nonexistent.h>
3086_ACEOF
3087if { (ac_try="$ac_cpp conftest.$ac_ext"
3088case "(($ac_try" in
3089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090  *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3094  ac_status=$?
3095  grep -v '^ *+' conftest.er1 >conftest.err
3096  rm -f conftest.er1
3097  cat conftest.err >&5
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); } >/dev/null && {
3100	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3101	 test ! -s conftest.err
3102       }; then
3103  # Broken: success on invalid input.
3104continue
3105else
3106  echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109  # Passes both tests.
3110ac_preproc_ok=:
3111break
3112fi
3113
3114rm -f conftest.err conftest.$ac_ext
3115
3116done
3117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118rm -f conftest.err conftest.$ac_ext
3119if $ac_preproc_ok; then
3120  break
3121fi
3122
3123    done
3124    ac_cv_prog_CPP=$CPP
3125
3126fi
3127  CPP=$ac_cv_prog_CPP
3128else
3129  ac_cv_prog_CPP=$CPP
3130fi
3131{ echo "$as_me:$LINENO: result: $CPP" >&5
3132echo "${ECHO_T}$CPP" >&6; }
3133ac_preproc_ok=false
3134for ac_c_preproc_warn_flag in '' yes
3135do
3136  # Use a header file that comes with gcc, so configuring glibc
3137  # with a fresh cross-compiler works.
3138  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139  # <limits.h> exists even on freestanding compilers.
3140  # On the NeXT, cc -E runs the code through the compiler's parser,
3141  # not just through cpp. "Syntax error" is here to catch this case.
3142  cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h.  */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h.  */
3148#ifdef __STDC__
3149# include <limits.h>
3150#else
3151# include <assert.h>
3152#endif
3153		     Syntax error
3154_ACEOF
3155if { (ac_try="$ac_cpp conftest.$ac_ext"
3156case "(($ac_try" in
3157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158  *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3162  ac_status=$?
3163  grep -v '^ *+' conftest.er1 >conftest.err
3164  rm -f conftest.er1
3165  cat conftest.err >&5
3166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167  (exit $ac_status); } >/dev/null && {
3168	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3169	 test ! -s conftest.err
3170       }; then
3171  :
3172else
3173  echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176  # Broken: fails on valid input.
3177continue
3178fi
3179
3180rm -f conftest.err conftest.$ac_ext
3181
3182  # OK, works on sane cases.  Now check whether nonexistent headers
3183  # can be detected and how.
3184  cat >conftest.$ac_ext <<_ACEOF
3185/* confdefs.h.  */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h.  */
3190#include <ac_nonexistent.h>
3191_ACEOF
3192if { (ac_try="$ac_cpp conftest.$ac_ext"
3193case "(($ac_try" in
3194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195  *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3199  ac_status=$?
3200  grep -v '^ *+' conftest.er1 >conftest.err
3201  rm -f conftest.er1
3202  cat conftest.err >&5
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); } >/dev/null && {
3205	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3206	 test ! -s conftest.err
3207       }; then
3208  # Broken: success on invalid input.
3209continue
3210else
3211  echo "$as_me: failed program was:" >&5
3212sed 's/^/| /' conftest.$ac_ext >&5
3213
3214  # Passes both tests.
3215ac_preproc_ok=:
3216break
3217fi
3218
3219rm -f conftest.err conftest.$ac_ext
3220
3221done
3222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223rm -f conftest.err conftest.$ac_ext
3224if $ac_preproc_ok; then
3225  :
3226else
3227  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3228See \`config.log' for more details." >&5
3229echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3230See \`config.log' for more details." >&2;}
3231   { (exit 1); exit 1; }; }
3232fi
3233
3234ac_ext=c
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
3240
3241
3242{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3243echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3244if test "${ac_cv_path_GREP+set}" = set; then
3245  echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247  # Extract the first word of "grep ggrep" to use in msg output
3248if test -z "$GREP"; then
3249set dummy grep ggrep; ac_prog_name=$2
3250if test "${ac_cv_path_GREP+set}" = set; then
3251  echo $ECHO_N "(cached) $ECHO_C" >&6
3252else
3253  ac_path_GREP_found=false
3254# Loop through the user's path and test for each of PROGNAME-LIST
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3257do
3258  IFS=$as_save_IFS
3259  test -z "$as_dir" && as_dir=.
3260  for ac_prog in grep ggrep; do
3261  for ac_exec_ext in '' $ac_executable_extensions; do
3262    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3263    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3264    # Check for GNU ac_path_GREP and select it if it is found.
3265  # Check for GNU $ac_path_GREP
3266case `"$ac_path_GREP" --version 2>&1` in
3267*GNU*)
3268  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3269*)
3270  ac_count=0
3271  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3272  while :
3273  do
3274    cat "conftest.in" "conftest.in" >"conftest.tmp"
3275    mv "conftest.tmp" "conftest.in"
3276    cp "conftest.in" "conftest.nl"
3277    echo 'GREP' >> "conftest.nl"
3278    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3279    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3280    ac_count=`expr $ac_count + 1`
3281    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3282      # Best one so far, save it but keep looking for a better one
3283      ac_cv_path_GREP="$ac_path_GREP"
3284      ac_path_GREP_max=$ac_count
3285    fi
3286    # 10*(2^10) chars as input seems more than enough
3287    test $ac_count -gt 10 && break
3288  done
3289  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3290esac
3291
3292
3293    $ac_path_GREP_found && break 3
3294  done
3295done
3296
3297done
3298IFS=$as_save_IFS
3299
3300
3301fi
3302
3303GREP="$ac_cv_path_GREP"
3304if test -z "$GREP"; then
3305  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3306echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3307   { (exit 1); exit 1; }; }
3308fi
3309
3310else
3311  ac_cv_path_GREP=$GREP
3312fi
3313
3314
3315fi
3316{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3317echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3318 GREP="$ac_cv_path_GREP"
3319
3320
3321{ echo "$as_me:$LINENO: checking for egrep" >&5
3322echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3323if test "${ac_cv_path_EGREP+set}" = set; then
3324  echo $ECHO_N "(cached) $ECHO_C" >&6
3325else
3326  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3327   then ac_cv_path_EGREP="$GREP -E"
3328   else
3329     # Extract the first word of "egrep" to use in msg output
3330if test -z "$EGREP"; then
3331set dummy egrep; ac_prog_name=$2
3332if test "${ac_cv_path_EGREP+set}" = set; then
3333  echo $ECHO_N "(cached) $ECHO_C" >&6
3334else
3335  ac_path_EGREP_found=false
3336# Loop through the user's path and test for each of PROGNAME-LIST
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3339do
3340  IFS=$as_save_IFS
3341  test -z "$as_dir" && as_dir=.
3342  for ac_prog in egrep; do
3343  for ac_exec_ext in '' $ac_executable_extensions; do
3344    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3345    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3346    # Check for GNU ac_path_EGREP and select it if it is found.
3347  # Check for GNU $ac_path_EGREP
3348case `"$ac_path_EGREP" --version 2>&1` in
3349*GNU*)
3350  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3351*)
3352  ac_count=0
3353  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3354  while :
3355  do
3356    cat "conftest.in" "conftest.in" >"conftest.tmp"
3357    mv "conftest.tmp" "conftest.in"
3358    cp "conftest.in" "conftest.nl"
3359    echo 'EGREP' >> "conftest.nl"
3360    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3361    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3362    ac_count=`expr $ac_count + 1`
3363    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3364      # Best one so far, save it but keep looking for a better one
3365      ac_cv_path_EGREP="$ac_path_EGREP"
3366      ac_path_EGREP_max=$ac_count
3367    fi
3368    # 10*(2^10) chars as input seems more than enough
3369    test $ac_count -gt 10 && break
3370  done
3371  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3372esac
3373
3374
3375    $ac_path_EGREP_found && break 3
3376  done
3377done
3378
3379done
3380IFS=$as_save_IFS
3381
3382
3383fi
3384
3385EGREP="$ac_cv_path_EGREP"
3386if test -z "$EGREP"; then
3387  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3388echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3389   { (exit 1); exit 1; }; }
3390fi
3391
3392else
3393  ac_cv_path_EGREP=$EGREP
3394fi
3395
3396
3397   fi
3398fi
3399{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3400echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3401 EGREP="$ac_cv_path_EGREP"
3402
3403
3404if test $ac_cv_c_compiler_gnu = yes; then
3405    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3406echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3407if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3408  echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410    ac_pattern="Autoconf.*'x'"
3411  cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h.  */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h.  */
3417#include <sgtty.h>
3418Autoconf TIOCGETP
3419_ACEOF
3420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3421  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3422  ac_cv_prog_gcc_traditional=yes
3423else
3424  ac_cv_prog_gcc_traditional=no
3425fi
3426rm -f conftest*
3427
3428
3429  if test $ac_cv_prog_gcc_traditional = no; then
3430    cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h.  */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h.  */
3436#include <termio.h>
3437Autoconf TCGETA
3438_ACEOF
3439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3441  ac_cv_prog_gcc_traditional=yes
3442fi
3443rm -f conftest*
3444
3445  fi
3446fi
3447{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3448echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3449  if test $ac_cv_prog_gcc_traditional = yes; then
3450    CC="$CC -traditional"
3451  fi
3452fi
3453
3454
3455if test "x$GCC" != xyes ; then
3456  DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
3457  CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
3458fi
3459
3460{ echo "$as_me:$LINENO: checking for library containing crypt" >&5
3461echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
3462if test "${ac_cv_search_crypt+set}" = set; then
3463  echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465  ac_func_search_save_LIBS=$LIBS
3466cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h.  */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h.  */
3472
3473/* Override any GCC internal prototype to avoid an error.
3474   Use char because int might match the return type of a GCC
3475   builtin and then its argument prototype would still apply.  */
3476#ifdef __cplusplus
3477extern "C"
3478#endif
3479char crypt ();
3480int
3481main ()
3482{
3483return crypt ();
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488for ac_lib in '' crypt; do
3489  if test -z "$ac_lib"; then
3490    ac_res="none required"
3491  else
3492    ac_res=-l$ac_lib
3493    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3494  fi
3495  rm -f conftest.$ac_objext conftest$ac_exeext
3496if { (ac_try="$ac_link"
3497case "(($ac_try" in
3498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499  *) ac_try_echo=$ac_try;;
3500esac
3501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502  (eval "$ac_link") 2>conftest.er1
3503  ac_status=$?
3504  grep -v '^ *+' conftest.er1 >conftest.err
3505  rm -f conftest.er1
3506  cat conftest.err >&5
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); } && {
3509	 test -z "$ac_c_werror_flag" ||
3510	 test ! -s conftest.err
3511       } && test -s conftest$ac_exeext &&
3512       $as_test_x conftest$ac_exeext; then
3513  ac_cv_search_crypt=$ac_res
3514else
3515  echo "$as_me: failed program was:" >&5
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
3518
3519fi
3520
3521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3522      conftest$ac_exeext
3523  if test "${ac_cv_search_crypt+set}" = set; then
3524  break
3525fi
3526done
3527if test "${ac_cv_search_crypt+set}" = set; then
3528  :
3529else
3530  ac_cv_search_crypt=no
3531fi
3532rm conftest.$ac_ext
3533LIBS=$ac_func_search_save_LIBS
3534fi
3535{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3536echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
3537ac_res=$ac_cv_search_crypt
3538if test "$ac_res" != no; then
3539  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3540
3541fi
3542
3543{ echo "$as_me:$LINENO: checking for library containing getspnam" >&5
3544echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
3545if test "${ac_cv_search_getspnam+set}" = set; then
3546  echo $ECHO_N "(cached) $ECHO_C" >&6
3547else
3548  ac_func_search_save_LIBS=$LIBS
3549cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h.  */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h.  */
3555
3556/* Override any GCC internal prototype to avoid an error.
3557   Use char because int might match the return type of a GCC
3558   builtin and then its argument prototype would still apply.  */
3559#ifdef __cplusplus
3560extern "C"
3561#endif
3562char getspnam ();
3563int
3564main ()
3565{
3566return getspnam ();
3567  ;
3568  return 0;
3569}
3570_ACEOF
3571for ac_lib in '' sec; do
3572  if test -z "$ac_lib"; then
3573    ac_res="none required"
3574  else
3575    ac_res=-l$ac_lib
3576    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3577  fi
3578  rm -f conftest.$ac_objext conftest$ac_exeext
3579if { (ac_try="$ac_link"
3580case "(($ac_try" in
3581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582  *) ac_try_echo=$ac_try;;
3583esac
3584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585  (eval "$ac_link") 2>conftest.er1
3586  ac_status=$?
3587  grep -v '^ *+' conftest.er1 >conftest.err
3588  rm -f conftest.er1
3589  cat conftest.err >&5
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); } && {
3592	 test -z "$ac_c_werror_flag" ||
3593	 test ! -s conftest.err
3594       } && test -s conftest$ac_exeext &&
3595       $as_test_x conftest$ac_exeext; then
3596  ac_cv_search_getspnam=$ac_res
3597else
3598  echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601
3602fi
3603
3604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3605      conftest$ac_exeext
3606  if test "${ac_cv_search_getspnam+set}" = set; then
3607  break
3608fi
3609done
3610if test "${ac_cv_search_getspnam+set}" = set; then
3611  :
3612else
3613  ac_cv_search_getspnam=no
3614fi
3615rm conftest.$ac_ext
3616LIBS=$ac_func_search_save_LIBS
3617fi
3618{ echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
3619echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
3620ac_res=$ac_cv_search_getspnam
3621if test "$ac_res" != no; then
3622  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3623
3624fi
3625
3626{ echo "$as_me:$LINENO: checking for library containing tgetent" >&5
3627echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
3628if test "${ac_cv_search_tgetent+set}" = set; then
3629  echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631  ac_func_search_save_LIBS=$LIBS
3632cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h.  */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h.  */
3638
3639/* Override any GCC internal prototype to avoid an error.
3640   Use char because int might match the return type of a GCC
3641   builtin and then its argument prototype would still apply.  */
3642#ifdef __cplusplus
3643extern "C"
3644#endif
3645char tgetent ();
3646int
3647main ()
3648{
3649return tgetent ();
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654for ac_lib in '' termlib termcap curses ncurses; do
3655  if test -z "$ac_lib"; then
3656    ac_res="none required"
3657  else
3658    ac_res=-l$ac_lib
3659    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3660  fi
3661  rm -f conftest.$ac_objext conftest$ac_exeext
3662if { (ac_try="$ac_link"
3663case "(($ac_try" in
3664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665  *) ac_try_echo=$ac_try;;
3666esac
3667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668  (eval "$ac_link") 2>conftest.er1
3669  ac_status=$?
3670  grep -v '^ *+' conftest.er1 >conftest.err
3671  rm -f conftest.er1
3672  cat conftest.err >&5
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); } && {
3675	 test -z "$ac_c_werror_flag" ||
3676	 test ! -s conftest.err
3677       } && test -s conftest$ac_exeext &&
3678       $as_test_x conftest$ac_exeext; then
3679  ac_cv_search_tgetent=$ac_res
3680else
3681  echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684
3685fi
3686
3687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3688      conftest$ac_exeext
3689  if test "${ac_cv_search_tgetent+set}" = set; then
3690  break
3691fi
3692done
3693if test "${ac_cv_search_tgetent+set}" = set; then
3694  :
3695else
3696  ac_cv_search_tgetent=no
3697fi
3698rm conftest.$ac_ext
3699LIBS=$ac_func_search_save_LIBS
3700fi
3701{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
3702echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
3703ac_res=$ac_cv_search_tgetent
3704if test "$ac_res" != no; then
3705  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3706
3707fi
3708
3709{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3710echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
3711if test "${ac_cv_search_gethostbyname+set}" = set; then
3712  echo $ECHO_N "(cached) $ECHO_C" >&6
3713else
3714  ac_func_search_save_LIBS=$LIBS
3715cat >conftest.$ac_ext <<_ACEOF
3716/* confdefs.h.  */
3717_ACEOF
3718cat confdefs.h >>conftest.$ac_ext
3719cat >>conftest.$ac_ext <<_ACEOF
3720/* end confdefs.h.  */
3721
3722/* Override any GCC internal prototype to avoid an error.
3723   Use char because int might match the return type of a GCC
3724   builtin and then its argument prototype would still apply.  */
3725#ifdef __cplusplus
3726extern "C"
3727#endif
3728char gethostbyname ();
3729int
3730main ()
3731{
3732return gethostbyname ();
3733  ;
3734  return 0;
3735}
3736_ACEOF
3737for ac_lib in '' nsl; do
3738  if test -z "$ac_lib"; then
3739    ac_res="none required"
3740  else
3741    ac_res=-l$ac_lib
3742    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3743  fi
3744  rm -f conftest.$ac_objext conftest$ac_exeext
3745if { (ac_try="$ac_link"
3746case "(($ac_try" in
3747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748  *) ac_try_echo=$ac_try;;
3749esac
3750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751  (eval "$ac_link") 2>conftest.er1
3752  ac_status=$?
3753  grep -v '^ *+' conftest.er1 >conftest.err
3754  rm -f conftest.er1
3755  cat conftest.err >&5
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); } && {
3758	 test -z "$ac_c_werror_flag" ||
3759	 test ! -s conftest.err
3760       } && test -s conftest$ac_exeext &&
3761       $as_test_x conftest$ac_exeext; then
3762  ac_cv_search_gethostbyname=$ac_res
3763else
3764  echo "$as_me: failed program was:" >&5
3765sed 's/^/| /' conftest.$ac_ext >&5
3766
3767
3768fi
3769
3770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3771      conftest$ac_exeext
3772  if test "${ac_cv_search_gethostbyname+set}" = set; then
3773  break
3774fi
3775done
3776if test "${ac_cv_search_gethostbyname+set}" = set; then
3777  :
3778else
3779  ac_cv_search_gethostbyname=no
3780fi
3781rm conftest.$ac_ext
3782LIBS=$ac_func_search_save_LIBS
3783fi
3784{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3785echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
3786ac_res=$ac_cv_search_gethostbyname
3787if test "$ac_res" != no; then
3788  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3789
3790fi
3791
3792{ echo "$as_me:$LINENO: checking for library containing connect" >&5
3793echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
3794if test "${ac_cv_search_connect+set}" = set; then
3795  echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797  ac_func_search_save_LIBS=$LIBS
3798cat >conftest.$ac_ext <<_ACEOF
3799/* confdefs.h.  */
3800_ACEOF
3801cat confdefs.h >>conftest.$ac_ext
3802cat >>conftest.$ac_ext <<_ACEOF
3803/* end confdefs.h.  */
3804
3805/* Override any GCC internal prototype to avoid an error.
3806   Use char because int might match the return type of a GCC
3807   builtin and then its argument prototype would still apply.  */
3808#ifdef __cplusplus
3809extern "C"
3810#endif
3811char connect ();
3812int
3813main ()
3814{
3815return connect ();
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820for ac_lib in '' socket; do
3821  if test -z "$ac_lib"; then
3822    ac_res="none required"
3823  else
3824    ac_res=-l$ac_lib
3825    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3826  fi
3827  rm -f conftest.$ac_objext conftest$ac_exeext
3828if { (ac_try="$ac_link"
3829case "(($ac_try" in
3830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831  *) ac_try_echo=$ac_try;;
3832esac
3833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834  (eval "$ac_link") 2>conftest.er1
3835  ac_status=$?
3836  grep -v '^ *+' conftest.er1 >conftest.err
3837  rm -f conftest.er1
3838  cat conftest.err >&5
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); } && {
3841	 test -z "$ac_c_werror_flag" ||
3842	 test ! -s conftest.err
3843       } && test -s conftest$ac_exeext &&
3844       $as_test_x conftest$ac_exeext; then
3845  ac_cv_search_connect=$ac_res
3846else
3847  echo "$as_me: failed program was:" >&5
3848sed 's/^/| /' conftest.$ac_ext >&5
3849
3850
3851fi
3852
3853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3854      conftest$ac_exeext
3855  if test "${ac_cv_search_connect+set}" = set; then
3856  break
3857fi
3858done
3859if test "${ac_cv_search_connect+set}" = set; then
3860  :
3861else
3862  ac_cv_search_connect=no
3863fi
3864rm conftest.$ac_ext
3865LIBS=$ac_func_search_save_LIBS
3866fi
3867{ echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
3868echo "${ECHO_T}$ac_cv_search_connect" >&6; }
3869ac_res=$ac_cv_search_connect
3870if test "$ac_res" != no; then
3871  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3872
3873fi
3874
3875
3876      if test "X$prefix" = "XNONE"; then
3877    acl_final_prefix="$ac_default_prefix"
3878  else
3879    acl_final_prefix="$prefix"
3880  fi
3881  if test "X$exec_prefix" = "XNONE"; then
3882    acl_final_exec_prefix='${prefix}'
3883  else
3884    acl_final_exec_prefix="$exec_prefix"
3885  fi
3886  acl_save_prefix="$prefix"
3887  prefix="$acl_final_prefix"
3888  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3889  prefix="$acl_save_prefix"
3890
3891
3892# Check whether --with-gnu-ld was given.
3893if test "${with_gnu_ld+set}" = set; then
3894  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3895else
3896  with_gnu_ld=no
3897fi
3898
3899# Prepare PATH_SEPARATOR.
3900# The user is always right.
3901if test "${PATH_SEPARATOR+set}" != set; then
3902  echo "#! /bin/sh" >conf$$.sh
3903  echo  "exit 0"   >>conf$$.sh
3904  chmod +x conf$$.sh
3905  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3906    PATH_SEPARATOR=';'
3907  else
3908    PATH_SEPARATOR=:
3909  fi
3910  rm -f conf$$.sh
3911fi
3912ac_prog=ld
3913if test "$GCC" = yes; then
3914  # Check if gcc -print-prog-name=ld gives a path.
3915  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3916echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
3917  case $host in
3918  *-*-mingw*)
3919    # gcc leaves a trailing carriage return which upsets mingw
3920    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3921  *)
3922    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3923  esac
3924  case $ac_prog in
3925    # Accept absolute paths.
3926    [\\/]* | [A-Za-z]:[\\/]*)
3927      re_direlt='/[^/][^/]*/\.\./'
3928      # Canonicalize the path of ld
3929      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3930      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3931	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3932      done
3933      test -z "$LD" && LD="$ac_prog"
3934      ;;
3935  "")
3936    # If it fails, then pretend we aren't using GCC.
3937    ac_prog=ld
3938    ;;
3939  *)
3940    # If it is relative, then search for the first ld in PATH.
3941    with_gnu_ld=unknown
3942    ;;
3943  esac
3944elif test "$with_gnu_ld" = yes; then
3945  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3946echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3947else
3948  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3949echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3950fi
3951if test "${acl_cv_path_LD+set}" = set; then
3952  echo $ECHO_N "(cached) $ECHO_C" >&6
3953else
3954  if test -z "$LD"; then
3955  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3956  for ac_dir in $PATH; do
3957    test -z "$ac_dir" && ac_dir=.
3958    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3959      acl_cv_path_LD="$ac_dir/$ac_prog"
3960      # Check to see if the program is GNU ld.  I'd rather use --version,
3961      # but apparently some GNU ld's only accept -v.
3962      # Break only if it was the GNU/non-GNU ld that we prefer.
3963      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3964      *GNU* | *'with BFD'*)
3965	test "$with_gnu_ld" != no && break ;;
3966      *)
3967	test "$with_gnu_ld" != yes && break ;;
3968      esac
3969    fi
3970  done
3971  IFS="$ac_save_ifs"
3972else
3973  acl_cv_path_LD="$LD" # Let the user override the test with a path.
3974fi
3975fi
3976
3977LD="$acl_cv_path_LD"
3978if test -n "$LD"; then
3979  { echo "$as_me:$LINENO: result: $LD" >&5
3980echo "${ECHO_T}$LD" >&6; }
3981else
3982  { echo "$as_me:$LINENO: result: no" >&5
3983echo "${ECHO_T}no" >&6; }
3984fi
3985test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3986echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3987   { (exit 1); exit 1; }; }
3988{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3989echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3990if test "${acl_cv_prog_gnu_ld+set}" = set; then
3991  echo $ECHO_N "(cached) $ECHO_C" >&6
3992else
3993  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3994case `$LD -v 2>&1 </dev/null` in
3995*GNU* | *'with BFD'*)
3996  acl_cv_prog_gnu_ld=yes ;;
3997*)
3998  acl_cv_prog_gnu_ld=no ;;
3999esac
4000fi
4001{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4002echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
4003with_gnu_ld=$acl_cv_prog_gnu_ld
4004
4005
4006
4007
4008                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4009echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
4010if test "${acl_cv_rpath+set}" = set; then
4011  echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013
4014    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4015    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4016    . ./conftest.sh
4017    rm -f ./conftest.sh
4018    acl_cv_rpath=done
4019
4020fi
4021{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4022echo "${ECHO_T}$acl_cv_rpath" >&6; }
4023  wl="$acl_cv_wl"
4024  libext="$acl_cv_libext"
4025  shlibext="$acl_cv_shlibext"
4026  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4027  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4028  hardcode_direct="$acl_cv_hardcode_direct"
4029  hardcode_minus_L="$acl_cv_hardcode_minus_L"
4030    # Check whether --enable-rpath was given.
4031if test "${enable_rpath+set}" = set; then
4032  enableval=$enable_rpath; :
4033else
4034  enable_rpath=yes
4035fi
4036
4037
4038
4039
4040
4041
4042
4043
4044    use_additional=yes
4045
4046  acl_save_prefix="$prefix"
4047  prefix="$acl_final_prefix"
4048  acl_save_exec_prefix="$exec_prefix"
4049  exec_prefix="$acl_final_exec_prefix"
4050
4051    eval additional_includedir=\"$includedir\"
4052    eval additional_libdir=\"$libdir\"
4053
4054  exec_prefix="$acl_save_exec_prefix"
4055  prefix="$acl_save_prefix"
4056
4057
4058# Check whether --with-libiconv-prefix was given.
4059if test "${with_libiconv_prefix+set}" = set; then
4060  withval=$with_libiconv_prefix;
4061    if test "X$withval" = "Xno"; then
4062      use_additional=no
4063    else
4064      if test "X$withval" = "X"; then
4065
4066  acl_save_prefix="$prefix"
4067  prefix="$acl_final_prefix"
4068  acl_save_exec_prefix="$exec_prefix"
4069  exec_prefix="$acl_final_exec_prefix"
4070
4071          eval additional_includedir=\"$includedir\"
4072          eval additional_libdir=\"$libdir\"
4073
4074  exec_prefix="$acl_save_exec_prefix"
4075  prefix="$acl_save_prefix"
4076
4077      else
4078        additional_includedir="$withval/include"
4079        additional_libdir="$withval/lib"
4080      fi
4081    fi
4082
4083fi
4084
4085      LIBICONV=
4086  LTLIBICONV=
4087  INCICONV=
4088  rpathdirs=
4089  ltrpathdirs=
4090  names_already_handled=
4091  names_next_round='iconv '
4092  while test -n "$names_next_round"; do
4093    names_this_round="$names_next_round"
4094    names_next_round=
4095    for name in $names_this_round; do
4096      already_handled=
4097      for n in $names_already_handled; do
4098        if test "$n" = "$name"; then
4099          already_handled=yes
4100          break
4101        fi
4102      done
4103      if test -z "$already_handled"; then
4104        names_already_handled="$names_already_handled $name"
4105                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4106        eval value=\"\$HAVE_LIB$uppername\"
4107        if test -n "$value"; then
4108          if test "$value" = yes; then
4109            eval value=\"\$LIB$uppername\"
4110            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4111            eval value=\"\$LTLIB$uppername\"
4112            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4113          else
4114                                    :
4115          fi
4116        else
4117                              found_dir=
4118          found_la=
4119          found_so=
4120          found_a=
4121          if test $use_additional = yes; then
4122            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4123              found_dir="$additional_libdir"
4124              found_so="$additional_libdir/lib$name.$shlibext"
4125              if test -f "$additional_libdir/lib$name.la"; then
4126                found_la="$additional_libdir/lib$name.la"
4127              fi
4128            else
4129              if test -f "$additional_libdir/lib$name.$libext"; then
4130                found_dir="$additional_libdir"
4131                found_a="$additional_libdir/lib$name.$libext"
4132                if test -f "$additional_libdir/lib$name.la"; then
4133                  found_la="$additional_libdir/lib$name.la"
4134                fi
4135              fi
4136            fi
4137          fi
4138          if test "X$found_dir" = "X"; then
4139            for x in $LDFLAGS $LTLIBICONV; do
4140
4141  acl_save_prefix="$prefix"
4142  prefix="$acl_final_prefix"
4143  acl_save_exec_prefix="$exec_prefix"
4144  exec_prefix="$acl_final_exec_prefix"
4145  eval x=\"$x\"
4146  exec_prefix="$acl_save_exec_prefix"
4147  prefix="$acl_save_prefix"
4148
4149              case "$x" in
4150                -L*)
4151                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4152                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4153                    found_dir="$dir"
4154                    found_so="$dir/lib$name.$shlibext"
4155                    if test -f "$dir/lib$name.la"; then
4156                      found_la="$dir/lib$name.la"
4157                    fi
4158                  else
4159                    if test -f "$dir/lib$name.$libext"; then
4160                      found_dir="$dir"
4161                      found_a="$dir/lib$name.$libext"
4162                      if test -f "$dir/lib$name.la"; then
4163                        found_la="$dir/lib$name.la"
4164                      fi
4165                    fi
4166                  fi
4167                  ;;
4168              esac
4169              if test "X$found_dir" != "X"; then
4170                break
4171              fi
4172            done
4173          fi
4174          if test "X$found_dir" != "X"; then
4175                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4176            if test "X$found_so" != "X"; then
4177                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4178                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4179              else
4180                                                                                haveit=
4181                for x in $ltrpathdirs; do
4182                  if test "X$x" = "X$found_dir"; then
4183                    haveit=yes
4184                    break
4185                  fi
4186                done
4187                if test -z "$haveit"; then
4188                  ltrpathdirs="$ltrpathdirs $found_dir"
4189                fi
4190                                if test "$hardcode_direct" = yes; then
4191                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4192                else
4193                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4194                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4195                                                            haveit=
4196                    for x in $rpathdirs; do
4197                      if test "X$x" = "X$found_dir"; then
4198                        haveit=yes
4199                        break
4200                      fi
4201                    done
4202                    if test -z "$haveit"; then
4203                      rpathdirs="$rpathdirs $found_dir"
4204                    fi
4205                  else
4206                                                                                haveit=
4207                    for x in $LDFLAGS $LIBICONV; do
4208
4209  acl_save_prefix="$prefix"
4210  prefix="$acl_final_prefix"
4211  acl_save_exec_prefix="$exec_prefix"
4212  exec_prefix="$acl_final_exec_prefix"
4213  eval x=\"$x\"
4214  exec_prefix="$acl_save_exec_prefix"
4215  prefix="$acl_save_prefix"
4216
4217                      if test "X$x" = "X-L$found_dir"; then
4218                        haveit=yes
4219                        break
4220                      fi
4221                    done
4222                    if test -z "$haveit"; then
4223                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4224                    fi
4225                    if test "$hardcode_minus_L" != no; then
4226                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4227                    else
4228                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4229                    fi
4230                  fi
4231                fi
4232              fi
4233            else
4234              if test "X$found_a" != "X"; then
4235                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4236              else
4237                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4238              fi
4239            fi
4240                        additional_includedir=
4241            case "$found_dir" in
4242              */lib | */lib/)
4243                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4244                additional_includedir="$basedir/include"
4245                ;;
4246            esac
4247            if test "X$additional_includedir" != "X"; then
4248                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4249                haveit=
4250                if test "X$additional_includedir" = "X/usr/local/include"; then
4251                  if test -n "$GCC"; then
4252                    case $host_os in
4253                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4254                    esac
4255                  fi
4256                fi
4257                if test -z "$haveit"; then
4258                  for x in $CPPFLAGS $INCICONV; do
4259
4260  acl_save_prefix="$prefix"
4261  prefix="$acl_final_prefix"
4262  acl_save_exec_prefix="$exec_prefix"
4263  exec_prefix="$acl_final_exec_prefix"
4264  eval x=\"$x\"
4265  exec_prefix="$acl_save_exec_prefix"
4266  prefix="$acl_save_prefix"
4267
4268                    if test "X$x" = "X-I$additional_includedir"; then
4269                      haveit=yes
4270                      break
4271                    fi
4272                  done
4273                  if test -z "$haveit"; then
4274                    if test -d "$additional_includedir"; then
4275                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4276                    fi
4277                  fi
4278                fi
4279              fi
4280            fi
4281                        if test -n "$found_la"; then
4282                                                        save_libdir="$libdir"
4283              case "$found_la" in
4284                */* | *\\*) . "$found_la" ;;
4285                *) . "./$found_la" ;;
4286              esac
4287              libdir="$save_libdir"
4288                            for dep in $dependency_libs; do
4289                case "$dep" in
4290                  -L*)
4291                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4292                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
4293                      haveit=
4294                      if test "X$additional_libdir" = "X/usr/local/lib"; then
4295                        if test -n "$GCC"; then
4296                          case $host_os in
4297                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4298                          esac
4299                        fi
4300                      fi
4301                      if test -z "$haveit"; then
4302                        haveit=
4303                        for x in $LDFLAGS $LIBICONV; do
4304
4305  acl_save_prefix="$prefix"
4306  prefix="$acl_final_prefix"
4307  acl_save_exec_prefix="$exec_prefix"
4308  exec_prefix="$acl_final_exec_prefix"
4309  eval x=\"$x\"
4310  exec_prefix="$acl_save_exec_prefix"
4311  prefix="$acl_save_prefix"
4312
4313                          if test "X$x" = "X-L$additional_libdir"; then
4314                            haveit=yes
4315                            break
4316                          fi
4317                        done
4318                        if test -z "$haveit"; then
4319                          if test -d "$additional_libdir"; then
4320                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4321                          fi
4322                        fi
4323                        haveit=
4324                        for x in $LDFLAGS $LTLIBICONV; do
4325
4326  acl_save_prefix="$prefix"
4327  prefix="$acl_final_prefix"
4328  acl_save_exec_prefix="$exec_prefix"
4329  exec_prefix="$acl_final_exec_prefix"
4330  eval x=\"$x\"
4331  exec_prefix="$acl_save_exec_prefix"
4332  prefix="$acl_save_prefix"
4333
4334                          if test "X$x" = "X-L$additional_libdir"; then
4335                            haveit=yes
4336                            break
4337                          fi
4338                        done
4339                        if test -z "$haveit"; then
4340                          if test -d "$additional_libdir"; then
4341                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4342                          fi
4343                        fi
4344                      fi
4345                    fi
4346                    ;;
4347                  -R*)
4348                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
4349                    if test "$enable_rpath" != no; then
4350                                                                  haveit=
4351                      for x in $rpathdirs; do
4352                        if test "X$x" = "X$dir"; then
4353                          haveit=yes
4354                          break
4355                        fi
4356                      done
4357                      if test -z "$haveit"; then
4358                        rpathdirs="$rpathdirs $dir"
4359                      fi
4360                                                                  haveit=
4361                      for x in $ltrpathdirs; do
4362                        if test "X$x" = "X$dir"; then
4363                          haveit=yes
4364                          break
4365                        fi
4366                      done
4367                      if test -z "$haveit"; then
4368                        ltrpathdirs="$ltrpathdirs $dir"
4369                      fi
4370                    fi
4371                    ;;
4372                  -l*)
4373                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4374                    ;;
4375                  *.la)
4376                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4377                    ;;
4378                  *)
4379                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4380                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4381                    ;;
4382                esac
4383              done
4384            fi
4385          else
4386                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4387            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4388          fi
4389        fi
4390      fi
4391    done
4392  done
4393  if test "X$rpathdirs" != "X"; then
4394    if test -n "$hardcode_libdir_separator"; then
4395                        alldirs=
4396      for found_dir in $rpathdirs; do
4397        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4398      done
4399            acl_save_libdir="$libdir"
4400      libdir="$alldirs"
4401      eval flag=\"$hardcode_libdir_flag_spec\"
4402      libdir="$acl_save_libdir"
4403      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4404    else
4405            for found_dir in $rpathdirs; do
4406        acl_save_libdir="$libdir"
4407        libdir="$found_dir"
4408        eval flag=\"$hardcode_libdir_flag_spec\"
4409        libdir="$acl_save_libdir"
4410        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4411      done
4412    fi
4413  fi
4414  if test "X$ltrpathdirs" != "X"; then
4415            for found_dir in $ltrpathdirs; do
4416      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4417    done
4418  fi
4419
4420
4421
4422
4423
4424
4425
4426          am_save_CPPFLAGS="$CPPFLAGS"
4427
4428  for element in $INCICONV; do
4429    haveit=
4430    for x in $CPPFLAGS; do
4431
4432  acl_save_prefix="$prefix"
4433  prefix="$acl_final_prefix"
4434  acl_save_exec_prefix="$exec_prefix"
4435  exec_prefix="$acl_final_exec_prefix"
4436  eval x=\"$x\"
4437  exec_prefix="$acl_save_exec_prefix"
4438  prefix="$acl_save_prefix"
4439
4440      if test "X$x" = "X$element"; then
4441        haveit=yes
4442        break
4443      fi
4444    done
4445    if test -z "$haveit"; then
4446      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4447    fi
4448  done
4449
4450
4451  { echo "$as_me:$LINENO: checking for iconv" >&5
4452echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
4453if test "${am_cv_func_iconv+set}" = set; then
4454  echo $ECHO_N "(cached) $ECHO_C" >&6
4455else
4456
4457    am_cv_func_iconv="no, consider installing GNU libiconv"
4458    am_cv_lib_iconv=no
4459    cat >conftest.$ac_ext <<_ACEOF
4460/* confdefs.h.  */
4461_ACEOF
4462cat confdefs.h >>conftest.$ac_ext
4463cat >>conftest.$ac_ext <<_ACEOF
4464/* end confdefs.h.  */
4465#include <stdlib.h>
4466#include <iconv.h>
4467int
4468main ()
4469{
4470iconv_t cd = iconv_open("","");
4471       iconv(cd,NULL,NULL,NULL,NULL);
4472       iconv_close(cd);
4473  ;
4474  return 0;
4475}
4476_ACEOF
4477rm -f conftest.$ac_objext conftest$ac_exeext
4478if { (ac_try="$ac_link"
4479case "(($ac_try" in
4480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481  *) ac_try_echo=$ac_try;;
4482esac
4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484  (eval "$ac_link") 2>conftest.er1
4485  ac_status=$?
4486  grep -v '^ *+' conftest.er1 >conftest.err
4487  rm -f conftest.er1
4488  cat conftest.err >&5
4489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490  (exit $ac_status); } && {
4491	 test -z "$ac_c_werror_flag" ||
4492	 test ! -s conftest.err
4493       } && test -s conftest$ac_exeext &&
4494       $as_test_x conftest$ac_exeext; then
4495  am_cv_func_iconv=yes
4496else
4497  echo "$as_me: failed program was:" >&5
4498sed 's/^/| /' conftest.$ac_ext >&5
4499
4500
4501fi
4502
4503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4504      conftest$ac_exeext conftest.$ac_ext
4505    if test "$am_cv_func_iconv" != yes; then
4506      am_save_LIBS="$LIBS"
4507      LIBS="$LIBS $LIBICONV"
4508      cat >conftest.$ac_ext <<_ACEOF
4509/* confdefs.h.  */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h.  */
4514#include <stdlib.h>
4515#include <iconv.h>
4516int
4517main ()
4518{
4519iconv_t cd = iconv_open("","");
4520         iconv(cd,NULL,NULL,NULL,NULL);
4521         iconv_close(cd);
4522  ;
4523  return 0;
4524}
4525_ACEOF
4526rm -f conftest.$ac_objext conftest$ac_exeext
4527if { (ac_try="$ac_link"
4528case "(($ac_try" in
4529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530  *) ac_try_echo=$ac_try;;
4531esac
4532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533  (eval "$ac_link") 2>conftest.er1
4534  ac_status=$?
4535  grep -v '^ *+' conftest.er1 >conftest.err
4536  rm -f conftest.er1
4537  cat conftest.err >&5
4538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539  (exit $ac_status); } && {
4540	 test -z "$ac_c_werror_flag" ||
4541	 test ! -s conftest.err
4542       } && test -s conftest$ac_exeext &&
4543       $as_test_x conftest$ac_exeext; then
4544  am_cv_lib_iconv=yes
4545        am_cv_func_iconv=yes
4546else
4547  echo "$as_me: failed program was:" >&5
4548sed 's/^/| /' conftest.$ac_ext >&5
4549
4550
4551fi
4552
4553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4554      conftest$ac_exeext conftest.$ac_ext
4555      LIBS="$am_save_LIBS"
4556    fi
4557
4558fi
4559{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4560echo "${ECHO_T}$am_cv_func_iconv" >&6; }
4561  if test "$am_cv_func_iconv" = yes; then
4562
4563cat >>confdefs.h <<\_ACEOF
4564#define HAVE_ICONV 1
4565_ACEOF
4566
4567  fi
4568  if test "$am_cv_lib_iconv" = yes; then
4569    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4570echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
4571    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
4572echo "${ECHO_T}$LIBICONV" >&6; }
4573  else
4574            CPPFLAGS="$am_save_CPPFLAGS"
4575    LIBICONV=
4576    LTLIBICONV=
4577  fi
4578
4579
4580
4581  if test "$am_cv_func_iconv" = yes; then
4582    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
4583echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
4584    if test "${am_cv_proto_iconv+set}" = set; then
4585  echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587
4588      cat >conftest.$ac_ext <<_ACEOF
4589/* confdefs.h.  */
4590_ACEOF
4591cat confdefs.h >>conftest.$ac_ext
4592cat >>conftest.$ac_ext <<_ACEOF
4593/* end confdefs.h.  */
4594
4595#include <stdlib.h>
4596#include <iconv.h>
4597extern
4598#ifdef __cplusplus
4599"C"
4600#endif
4601#if defined(__STDC__) || defined(__cplusplus)
4602size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4603#else
4604size_t iconv();
4605#endif
4606
4607int
4608main ()
4609{
4610
4611  ;
4612  return 0;
4613}
4614_ACEOF
4615rm -f conftest.$ac_objext
4616if { (ac_try="$ac_compile"
4617case "(($ac_try" in
4618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619  *) ac_try_echo=$ac_try;;
4620esac
4621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622  (eval "$ac_compile") 2>conftest.er1
4623  ac_status=$?
4624  grep -v '^ *+' conftest.er1 >conftest.err
4625  rm -f conftest.er1
4626  cat conftest.err >&5
4627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); } && {
4629	 test -z "$ac_c_werror_flag" ||
4630	 test ! -s conftest.err
4631       } && test -s conftest.$ac_objext; then
4632  am_cv_proto_iconv_arg1=""
4633else
4634  echo "$as_me: failed program was:" >&5
4635sed 's/^/| /' conftest.$ac_ext >&5
4636
4637	am_cv_proto_iconv_arg1="const"
4638fi
4639
4640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641      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);"
4642fi
4643
4644    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4645    { echo "$as_me:$LINENO: result: ${ac_t:-
4646         }$am_cv_proto_iconv" >&5
4647echo "${ECHO_T}${ac_t:-
4648         }$am_cv_proto_iconv" >&6; }
4649
4650cat >>confdefs.h <<_ACEOF
4651#define ICONV_CONST $am_cv_proto_iconv_arg1
4652_ACEOF
4653
4654  fi
4655
4656
4657{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4658echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4659if test "${ac_cv_header_stdc+set}" = set; then
4660  echo $ECHO_N "(cached) $ECHO_C" >&6
4661else
4662  cat >conftest.$ac_ext <<_ACEOF
4663/* confdefs.h.  */
4664_ACEOF
4665cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h.  */
4668#include <stdlib.h>
4669#include <stdarg.h>
4670#include <string.h>
4671#include <float.h>
4672
4673int
4674main ()
4675{
4676
4677  ;
4678  return 0;
4679}
4680_ACEOF
4681rm -f conftest.$ac_objext
4682if { (ac_try="$ac_compile"
4683case "(($ac_try" in
4684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685  *) ac_try_echo=$ac_try;;
4686esac
4687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688  (eval "$ac_compile") 2>conftest.er1
4689  ac_status=$?
4690  grep -v '^ *+' conftest.er1 >conftest.err
4691  rm -f conftest.er1
4692  cat conftest.err >&5
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); } && {
4695	 test -z "$ac_c_werror_flag" ||
4696	 test ! -s conftest.err
4697       } && test -s conftest.$ac_objext; then
4698  ac_cv_header_stdc=yes
4699else
4700  echo "$as_me: failed program was:" >&5
4701sed 's/^/| /' conftest.$ac_ext >&5
4702
4703	ac_cv_header_stdc=no
4704fi
4705
4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707
4708if test $ac_cv_header_stdc = yes; then
4709  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4710  cat >conftest.$ac_ext <<_ACEOF
4711/* confdefs.h.  */
4712_ACEOF
4713cat confdefs.h >>conftest.$ac_ext
4714cat >>conftest.$ac_ext <<_ACEOF
4715/* end confdefs.h.  */
4716#include <string.h>
4717
4718_ACEOF
4719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4720  $EGREP "memchr" >/dev/null 2>&1; then
4721  :
4722else
4723  ac_cv_header_stdc=no
4724fi
4725rm -f conftest*
4726
4727fi
4728
4729if test $ac_cv_header_stdc = yes; then
4730  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4731  cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h.  */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h.  */
4737#include <stdlib.h>
4738
4739_ACEOF
4740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4741  $EGREP "free" >/dev/null 2>&1; then
4742  :
4743else
4744  ac_cv_header_stdc=no
4745fi
4746rm -f conftest*
4747
4748fi
4749
4750if test $ac_cv_header_stdc = yes; then
4751  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4752  if test "$cross_compiling" = yes; then
4753  :
4754else
4755  cat >conftest.$ac_ext <<_ACEOF
4756/* confdefs.h.  */
4757_ACEOF
4758cat confdefs.h >>conftest.$ac_ext
4759cat >>conftest.$ac_ext <<_ACEOF
4760/* end confdefs.h.  */
4761#include <ctype.h>
4762#include <stdlib.h>
4763#if ((' ' & 0x0FF) == 0x020)
4764# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4765# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4766#else
4767# define ISLOWER(c) \
4768		   (('a' <= (c) && (c) <= 'i') \
4769		     || ('j' <= (c) && (c) <= 'r') \
4770		     || ('s' <= (c) && (c) <= 'z'))
4771# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4772#endif
4773
4774#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4775int
4776main ()
4777{
4778  int i;
4779  for (i = 0; i < 256; i++)
4780    if (XOR (islower (i), ISLOWER (i))
4781	|| toupper (i) != TOUPPER (i))
4782      return 2;
4783  return 0;
4784}
4785_ACEOF
4786rm -f conftest$ac_exeext
4787if { (ac_try="$ac_link"
4788case "(($ac_try" in
4789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790  *) ac_try_echo=$ac_try;;
4791esac
4792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793  (eval "$ac_link") 2>&5
4794  ac_status=$?
4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4797  { (case "(($ac_try" in
4798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799  *) ac_try_echo=$ac_try;;
4800esac
4801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802  (eval "$ac_try") 2>&5
4803  ac_status=$?
4804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805  (exit $ac_status); }; }; then
4806  :
4807else
4808  echo "$as_me: program exited with status $ac_status" >&5
4809echo "$as_me: failed program was:" >&5
4810sed 's/^/| /' conftest.$ac_ext >&5
4811
4812( exit $ac_status )
4813ac_cv_header_stdc=no
4814fi
4815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4816fi
4817
4818
4819fi
4820fi
4821{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4822echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4823if test $ac_cv_header_stdc = yes; then
4824
4825cat >>confdefs.h <<\_ACEOF
4826#define STDC_HEADERS 1
4827_ACEOF
4828
4829fi
4830
4831# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4842		  inttypes.h stdint.h unistd.h
4843do
4844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4845{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4848  echo $ECHO_N "(cached) $ECHO_C" >&6
4849else
4850  cat >conftest.$ac_ext <<_ACEOF
4851/* confdefs.h.  */
4852_ACEOF
4853cat confdefs.h >>conftest.$ac_ext
4854cat >>conftest.$ac_ext <<_ACEOF
4855/* end confdefs.h.  */
4856$ac_includes_default
4857
4858#include <$ac_header>
4859_ACEOF
4860rm -f conftest.$ac_objext
4861if { (ac_try="$ac_compile"
4862case "(($ac_try" in
4863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864  *) ac_try_echo=$ac_try;;
4865esac
4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867  (eval "$ac_compile") 2>conftest.er1
4868  ac_status=$?
4869  grep -v '^ *+' conftest.er1 >conftest.err
4870  rm -f conftest.er1
4871  cat conftest.err >&5
4872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873  (exit $ac_status); } && {
4874	 test -z "$ac_c_werror_flag" ||
4875	 test ! -s conftest.err
4876       } && test -s conftest.$ac_objext; then
4877  eval "$as_ac_Header=yes"
4878else
4879  echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
4881
4882	eval "$as_ac_Header=no"
4883fi
4884
4885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886fi
4887ac_res=`eval echo '${'$as_ac_Header'}'`
4888	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4889echo "${ECHO_T}$ac_res" >&6; }
4890if test `eval echo '${'$as_ac_Header'}'` = yes; then
4891  cat >>confdefs.h <<_ACEOF
4892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4893_ACEOF
4894
4895fi
4896
4897done
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907for ac_header in auth.h crypt.h inttypes.h shadow.h stdint.h utmp.h utmpx.h
4908do
4909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4911  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4914  echo $ECHO_N "(cached) $ECHO_C" >&6
4915fi
4916ac_res=`eval echo '${'$as_ac_Header'}'`
4917	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4918echo "${ECHO_T}$ac_res" >&6; }
4919else
4920  # Is the header compilable?
4921{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4923cat >conftest.$ac_ext <<_ACEOF
4924/* confdefs.h.  */
4925_ACEOF
4926cat confdefs.h >>conftest.$ac_ext
4927cat >>conftest.$ac_ext <<_ACEOF
4928/* end confdefs.h.  */
4929$ac_includes_default
4930#include <$ac_header>
4931_ACEOF
4932rm -f conftest.$ac_objext
4933if { (ac_try="$ac_compile"
4934case "(($ac_try" in
4935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936  *) ac_try_echo=$ac_try;;
4937esac
4938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939  (eval "$ac_compile") 2>conftest.er1
4940  ac_status=$?
4941  grep -v '^ *+' conftest.er1 >conftest.err
4942  rm -f conftest.er1
4943  cat conftest.err >&5
4944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945  (exit $ac_status); } && {
4946	 test -z "$ac_c_werror_flag" ||
4947	 test ! -s conftest.err
4948       } && test -s conftest.$ac_objext; then
4949  ac_header_compiler=yes
4950else
4951  echo "$as_me: failed program was:" >&5
4952sed 's/^/| /' conftest.$ac_ext >&5
4953
4954	ac_header_compiler=no
4955fi
4956
4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4959echo "${ECHO_T}$ac_header_compiler" >&6; }
4960
4961# Is the header present?
4962{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4963echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4964cat >conftest.$ac_ext <<_ACEOF
4965/* confdefs.h.  */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h.  */
4970#include <$ac_header>
4971_ACEOF
4972if { (ac_try="$ac_cpp conftest.$ac_ext"
4973case "(($ac_try" in
4974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975  *) ac_try_echo=$ac_try;;
4976esac
4977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4979  ac_status=$?
4980  grep -v '^ *+' conftest.er1 >conftest.err
4981  rm -f conftest.er1
4982  cat conftest.err >&5
4983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984  (exit $ac_status); } >/dev/null && {
4985	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4986	 test ! -s conftest.err
4987       }; then
4988  ac_header_preproc=yes
4989else
4990  echo "$as_me: failed program was:" >&5
4991sed 's/^/| /' conftest.$ac_ext >&5
4992
4993  ac_header_preproc=no
4994fi
4995
4996rm -f conftest.err conftest.$ac_ext
4997{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4998echo "${ECHO_T}$ac_header_preproc" >&6; }
4999
5000# So?  What about this header?
5001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5002  yes:no: )
5003    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5004echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5005    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5006echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5007    ac_header_preproc=yes
5008    ;;
5009  no:yes:* )
5010    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5011echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5012    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5013echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5014    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5015echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5016    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5017echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5018    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5019echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5020    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5021echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5022    ( cat <<\_ASBOX
5023## ---------------------------------- ##
5024## Report this to http://bugs.gw.com/ ##
5025## ---------------------------------- ##
5026_ASBOX
5027     ) | sed "s/^/$as_me: WARNING:     /" >&2
5028    ;;
5029esac
5030{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5033  echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035  eval "$as_ac_Header=\$ac_header_preproc"
5036fi
5037ac_res=`eval echo '${'$as_ac_Header'}'`
5038	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5039echo "${ECHO_T}$ac_res" >&6; }
5040
5041fi
5042if test `eval echo '${'$as_ac_Header'}'` = yes; then
5043  cat >>confdefs.h <<_ACEOF
5044#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5045_ACEOF
5046
5047fi
5048
5049done
5050
5051
5052for ac_header in wchar.h
5053do
5054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5056  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5059  echo $ECHO_N "(cached) $ECHO_C" >&6
5060fi
5061ac_res=`eval echo '${'$as_ac_Header'}'`
5062	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5063echo "${ECHO_T}$ac_res" >&6; }
5064else
5065  # Is the header compilable?
5066{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5068cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h.  */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h.  */
5074$ac_includes_default
5075#include <$ac_header>
5076_ACEOF
5077rm -f conftest.$ac_objext
5078if { (ac_try="$ac_compile"
5079case "(($ac_try" in
5080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081  *) ac_try_echo=$ac_try;;
5082esac
5083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084  (eval "$ac_compile") 2>conftest.er1
5085  ac_status=$?
5086  grep -v '^ *+' conftest.er1 >conftest.err
5087  rm -f conftest.er1
5088  cat conftest.err >&5
5089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090  (exit $ac_status); } && {
5091	 test -z "$ac_c_werror_flag" ||
5092	 test ! -s conftest.err
5093       } && test -s conftest.$ac_objext; then
5094  ac_header_compiler=yes
5095else
5096  echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099	ac_header_compiler=no
5100fi
5101
5102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5104echo "${ECHO_T}$ac_header_compiler" >&6; }
5105
5106# Is the header present?
5107{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5109cat >conftest.$ac_ext <<_ACEOF
5110/* confdefs.h.  */
5111_ACEOF
5112cat confdefs.h >>conftest.$ac_ext
5113cat >>conftest.$ac_ext <<_ACEOF
5114/* end confdefs.h.  */
5115#include <$ac_header>
5116_ACEOF
5117if { (ac_try="$ac_cpp conftest.$ac_ext"
5118case "(($ac_try" in
5119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120  *) ac_try_echo=$ac_try;;
5121esac
5122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5124  ac_status=$?
5125  grep -v '^ *+' conftest.er1 >conftest.err
5126  rm -f conftest.er1
5127  cat conftest.err >&5
5128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129  (exit $ac_status); } >/dev/null && {
5130	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5131	 test ! -s conftest.err
5132       }; then
5133  ac_header_preproc=yes
5134else
5135  echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
5138  ac_header_preproc=no
5139fi
5140
5141rm -f conftest.err conftest.$ac_ext
5142{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5143echo "${ECHO_T}$ac_header_preproc" >&6; }
5144
5145# So?  What about this header?
5146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5147  yes:no: )
5148    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5149echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5150    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5151echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5152    ac_header_preproc=yes
5153    ;;
5154  no:yes:* )
5155    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5156echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5157    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5158echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5159    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5160echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5161    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5162echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5163    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5164echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5165    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5166echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5167    ( cat <<\_ASBOX
5168## ---------------------------------- ##
5169## Report this to http://bugs.gw.com/ ##
5170## ---------------------------------- ##
5171_ASBOX
5172     ) | sed "s/^/$as_me: WARNING:     /" >&2
5173    ;;
5174esac
5175{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5178  echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180  eval "$as_ac_Header=\$ac_header_preproc"
5181fi
5182ac_res=`eval echo '${'$as_ac_Header'}'`
5183	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5184echo "${ECHO_T}$ac_res" >&6; }
5185
5186fi
5187if test `eval echo '${'$as_ac_Header'}'` = yes; then
5188  cat >>confdefs.h <<_ACEOF
5189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5190_ACEOF
5191 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5192echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5193if test "${ac_cv_type_wchar_t+set}" = set; then
5194  echo $ECHO_N "(cached) $ECHO_C" >&6
5195else
5196  cat >conftest.$ac_ext <<_ACEOF
5197/* confdefs.h.  */
5198_ACEOF
5199cat confdefs.h >>conftest.$ac_ext
5200cat >>conftest.$ac_ext <<_ACEOF
5201/* end confdefs.h.  */
5202#include <stdio.h>
5203#include <wchar.h>
5204
5205typedef wchar_t ac__type_new_;
5206int
5207main ()
5208{
5209if ((ac__type_new_ *) 0)
5210  return 0;
5211if (sizeof (ac__type_new_))
5212  return 0;
5213  ;
5214  return 0;
5215}
5216_ACEOF
5217rm -f conftest.$ac_objext
5218if { (ac_try="$ac_compile"
5219case "(($ac_try" in
5220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221  *) ac_try_echo=$ac_try;;
5222esac
5223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224  (eval "$ac_compile") 2>conftest.er1
5225  ac_status=$?
5226  grep -v '^ *+' conftest.er1 >conftest.err
5227  rm -f conftest.er1
5228  cat conftest.err >&5
5229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230  (exit $ac_status); } && {
5231	 test -z "$ac_c_werror_flag" ||
5232	 test ! -s conftest.err
5233       } && test -s conftest.$ac_objext; then
5234  ac_cv_type_wchar_t=yes
5235else
5236  echo "$as_me: failed program was:" >&5
5237sed 's/^/| /' conftest.$ac_ext >&5
5238
5239	ac_cv_type_wchar_t=no
5240fi
5241
5242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243fi
5244{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
5245echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
5246
5247# The cast to long int works around a bug in the HP C Compiler
5248# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5249# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5250# This bug is HP SR number 8606223364.
5251{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
5252echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
5253if test "${ac_cv_sizeof_wchar_t+set}" = set; then
5254  echo $ECHO_N "(cached) $ECHO_C" >&6
5255else
5256  if test "$cross_compiling" = yes; then
5257  # Depending upon the size, compute the lo and hi bounds.
5258cat >conftest.$ac_ext <<_ACEOF
5259/* confdefs.h.  */
5260_ACEOF
5261cat confdefs.h >>conftest.$ac_ext
5262cat >>conftest.$ac_ext <<_ACEOF
5263/* end confdefs.h.  */
5264#include <stdio.h>
5265#include <wchar.h>
5266
5267   typedef wchar_t ac__type_sizeof_;
5268int
5269main ()
5270{
5271static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5272test_array [0] = 0
5273
5274  ;
5275  return 0;
5276}
5277_ACEOF
5278rm -f conftest.$ac_objext
5279if { (ac_try="$ac_compile"
5280case "(($ac_try" in
5281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282  *) ac_try_echo=$ac_try;;
5283esac
5284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285  (eval "$ac_compile") 2>conftest.er1
5286  ac_status=$?
5287  grep -v '^ *+' conftest.er1 >conftest.err
5288  rm -f conftest.er1
5289  cat conftest.err >&5
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); } && {
5292	 test -z "$ac_c_werror_flag" ||
5293	 test ! -s conftest.err
5294       } && test -s conftest.$ac_objext; then
5295  ac_lo=0 ac_mid=0
5296  while :; do
5297    cat >conftest.$ac_ext <<_ACEOF
5298/* confdefs.h.  */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h.  */
5303#include <stdio.h>
5304#include <wchar.h>
5305
5306   typedef wchar_t ac__type_sizeof_;
5307int
5308main ()
5309{
5310static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5311test_array [0] = 0
5312
5313  ;
5314  return 0;
5315}
5316_ACEOF
5317rm -f conftest.$ac_objext
5318if { (ac_try="$ac_compile"
5319case "(($ac_try" in
5320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321  *) ac_try_echo=$ac_try;;
5322esac
5323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324  (eval "$ac_compile") 2>conftest.er1
5325  ac_status=$?
5326  grep -v '^ *+' conftest.er1 >conftest.err
5327  rm -f conftest.er1
5328  cat conftest.err >&5
5329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330  (exit $ac_status); } && {
5331	 test -z "$ac_c_werror_flag" ||
5332	 test ! -s conftest.err
5333       } && test -s conftest.$ac_objext; then
5334  ac_hi=$ac_mid; break
5335else
5336  echo "$as_me: failed program was:" >&5
5337sed 's/^/| /' conftest.$ac_ext >&5
5338
5339	ac_lo=`expr $ac_mid + 1`
5340			if test $ac_lo -le $ac_mid; then
5341			  ac_lo= ac_hi=
5342			  break
5343			fi
5344			ac_mid=`expr 2 '*' $ac_mid + 1`
5345fi
5346
5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348  done
5349else
5350  echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353	cat >conftest.$ac_ext <<_ACEOF
5354/* confdefs.h.  */
5355_ACEOF
5356cat confdefs.h >>conftest.$ac_ext
5357cat >>conftest.$ac_ext <<_ACEOF
5358/* end confdefs.h.  */
5359#include <stdio.h>
5360#include <wchar.h>
5361
5362   typedef wchar_t ac__type_sizeof_;
5363int
5364main ()
5365{
5366static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5367test_array [0] = 0
5368
5369  ;
5370  return 0;
5371}
5372_ACEOF
5373rm -f conftest.$ac_objext
5374if { (ac_try="$ac_compile"
5375case "(($ac_try" in
5376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377  *) ac_try_echo=$ac_try;;
5378esac
5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380  (eval "$ac_compile") 2>conftest.er1
5381  ac_status=$?
5382  grep -v '^ *+' conftest.er1 >conftest.err
5383  rm -f conftest.er1
5384  cat conftest.err >&5
5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386  (exit $ac_status); } && {
5387	 test -z "$ac_c_werror_flag" ||
5388	 test ! -s conftest.err
5389       } && test -s conftest.$ac_objext; then
5390  ac_hi=-1 ac_mid=-1
5391  while :; do
5392    cat >conftest.$ac_ext <<_ACEOF
5393/* confdefs.h.  */
5394_ACEOF
5395cat confdefs.h >>conftest.$ac_ext
5396cat >>conftest.$ac_ext <<_ACEOF
5397/* end confdefs.h.  */
5398#include <stdio.h>
5399#include <wchar.h>
5400
5401   typedef wchar_t ac__type_sizeof_;
5402int
5403main ()
5404{
5405static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5406test_array [0] = 0
5407
5408  ;
5409  return 0;
5410}
5411_ACEOF
5412rm -f conftest.$ac_objext
5413if { (ac_try="$ac_compile"
5414case "(($ac_try" in
5415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416  *) ac_try_echo=$ac_try;;
5417esac
5418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419  (eval "$ac_compile") 2>conftest.er1
5420  ac_status=$?
5421  grep -v '^ *+' conftest.er1 >conftest.err
5422  rm -f conftest.er1
5423  cat conftest.err >&5
5424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425  (exit $ac_status); } && {
5426	 test -z "$ac_c_werror_flag" ||
5427	 test ! -s conftest.err
5428       } && test -s conftest.$ac_objext; then
5429  ac_lo=$ac_mid; break
5430else
5431  echo "$as_me: failed program was:" >&5
5432sed 's/^/| /' conftest.$ac_ext >&5
5433
5434	ac_hi=`expr '(' $ac_mid ')' - 1`
5435			if test $ac_mid -le $ac_hi; then
5436			  ac_lo= ac_hi=
5437			  break
5438			fi
5439			ac_mid=`expr 2 '*' $ac_mid`
5440fi
5441
5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443  done
5444else
5445  echo "$as_me: failed program was:" >&5
5446sed 's/^/| /' conftest.$ac_ext >&5
5447
5448	ac_lo= ac_hi=
5449fi
5450
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452fi
5453
5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455# Binary search between lo and hi bounds.
5456while test "x$ac_lo" != "x$ac_hi"; do
5457  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5458  cat >conftest.$ac_ext <<_ACEOF
5459/* confdefs.h.  */
5460_ACEOF
5461cat confdefs.h >>conftest.$ac_ext
5462cat >>conftest.$ac_ext <<_ACEOF
5463/* end confdefs.h.  */
5464#include <stdio.h>
5465#include <wchar.h>
5466
5467   typedef wchar_t ac__type_sizeof_;
5468int
5469main ()
5470{
5471static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5472test_array [0] = 0
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478rm -f conftest.$ac_objext
5479if { (ac_try="$ac_compile"
5480case "(($ac_try" in
5481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482  *) ac_try_echo=$ac_try;;
5483esac
5484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485  (eval "$ac_compile") 2>conftest.er1
5486  ac_status=$?
5487  grep -v '^ *+' conftest.er1 >conftest.err
5488  rm -f conftest.er1
5489  cat conftest.err >&5
5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491  (exit $ac_status); } && {
5492	 test -z "$ac_c_werror_flag" ||
5493	 test ! -s conftest.err
5494       } && test -s conftest.$ac_objext; then
5495  ac_hi=$ac_mid
5496else
5497  echo "$as_me: failed program was:" >&5
5498sed 's/^/| /' conftest.$ac_ext >&5
5499
5500	ac_lo=`expr '(' $ac_mid ')' + 1`
5501fi
5502
5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504done
5505case $ac_lo in
5506?*) ac_cv_sizeof_wchar_t=$ac_lo;;
5507'') if test "$ac_cv_type_wchar_t" = yes; then
5508     { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
5509See \`config.log' for more details." >&5
5510echo "$as_me: error: cannot compute sizeof (wchar_t)
5511See \`config.log' for more details." >&2;}
5512   { (exit 77); exit 77; }; }
5513   else
5514     ac_cv_sizeof_wchar_t=0
5515   fi ;;
5516esac
5517else
5518  cat >conftest.$ac_ext <<_ACEOF
5519/* confdefs.h.  */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h.  */
5524#include <stdio.h>
5525#include <wchar.h>
5526
5527   typedef wchar_t ac__type_sizeof_;
5528static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5529static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5530#include <stdio.h>
5531#include <stdlib.h>
5532int
5533main ()
5534{
5535
5536  FILE *f = fopen ("conftest.val", "w");
5537  if (! f)
5538    return 1;
5539  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5540    {
5541      long int i = longval ();
5542      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5543	return 1;
5544      fprintf (f, "%ld\n", i);
5545    }
5546  else
5547    {
5548      unsigned long int i = ulongval ();
5549      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5550	return 1;
5551      fprintf (f, "%lu\n", i);
5552    }
5553  return ferror (f) || fclose (f) != 0;
5554
5555  ;
5556  return 0;
5557}
5558_ACEOF
5559rm -f conftest$ac_exeext
5560if { (ac_try="$ac_link"
5561case "(($ac_try" in
5562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563  *) ac_try_echo=$ac_try;;
5564esac
5565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566  (eval "$ac_link") 2>&5
5567  ac_status=$?
5568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5570  { (case "(($ac_try" in
5571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572  *) ac_try_echo=$ac_try;;
5573esac
5574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575  (eval "$ac_try") 2>&5
5576  ac_status=$?
5577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578  (exit $ac_status); }; }; then
5579  ac_cv_sizeof_wchar_t=`cat conftest.val`
5580else
5581  echo "$as_me: program exited with status $ac_status" >&5
5582echo "$as_me: failed program was:" >&5
5583sed 's/^/| /' conftest.$ac_ext >&5
5584
5585( exit $ac_status )
5586if test "$ac_cv_type_wchar_t" = yes; then
5587     { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
5588See \`config.log' for more details." >&5
5589echo "$as_me: error: cannot compute sizeof (wchar_t)
5590See \`config.log' for more details." >&2;}
5591   { (exit 77); exit 77; }; }
5592   else
5593     ac_cv_sizeof_wchar_t=0
5594   fi
5595fi
5596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5597fi
5598rm -f conftest.val
5599fi
5600{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
5601echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
5602
5603
5604
5605cat >>confdefs.h <<_ACEOF
5606#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
5607_ACEOF
5608
5609
5610
5611for ac_header in wctype.h
5612do
5613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5615  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5618  echo $ECHO_N "(cached) $ECHO_C" >&6
5619fi
5620ac_res=`eval echo '${'$as_ac_Header'}'`
5621	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5622echo "${ECHO_T}$ac_res" >&6; }
5623else
5624  # Is the header compilable?
5625{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5627cat >conftest.$ac_ext <<_ACEOF
5628/* confdefs.h.  */
5629_ACEOF
5630cat confdefs.h >>conftest.$ac_ext
5631cat >>conftest.$ac_ext <<_ACEOF
5632/* end confdefs.h.  */
5633$ac_includes_default
5634#include <$ac_header>
5635_ACEOF
5636rm -f conftest.$ac_objext
5637if { (ac_try="$ac_compile"
5638case "(($ac_try" in
5639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640  *) ac_try_echo=$ac_try;;
5641esac
5642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643  (eval "$ac_compile") 2>conftest.er1
5644  ac_status=$?
5645  grep -v '^ *+' conftest.er1 >conftest.err
5646  rm -f conftest.er1
5647  cat conftest.err >&5
5648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649  (exit $ac_status); } && {
5650	 test -z "$ac_c_werror_flag" ||
5651	 test ! -s conftest.err
5652       } && test -s conftest.$ac_objext; then
5653  ac_header_compiler=yes
5654else
5655  echo "$as_me: failed program was:" >&5
5656sed 's/^/| /' conftest.$ac_ext >&5
5657
5658	ac_header_compiler=no
5659fi
5660
5661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5663echo "${ECHO_T}$ac_header_compiler" >&6; }
5664
5665# Is the header present?
5666{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5667echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5668cat >conftest.$ac_ext <<_ACEOF
5669/* confdefs.h.  */
5670_ACEOF
5671cat confdefs.h >>conftest.$ac_ext
5672cat >>conftest.$ac_ext <<_ACEOF
5673/* end confdefs.h.  */
5674#include <$ac_header>
5675_ACEOF
5676if { (ac_try="$ac_cpp conftest.$ac_ext"
5677case "(($ac_try" in
5678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679  *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5683  ac_status=$?
5684  grep -v '^ *+' conftest.er1 >conftest.err
5685  rm -f conftest.er1
5686  cat conftest.err >&5
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); } >/dev/null && {
5689	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5690	 test ! -s conftest.err
5691       }; then
5692  ac_header_preproc=yes
5693else
5694  echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697  ac_header_preproc=no
5698fi
5699
5700rm -f conftest.err conftest.$ac_ext
5701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5702echo "${ECHO_T}$ac_header_preproc" >&6; }
5703
5704# So?  What about this header?
5705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5706  yes:no: )
5707    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5708echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5709    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5710echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5711    ac_header_preproc=yes
5712    ;;
5713  no:yes:* )
5714    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5716    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5717echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5718    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5719echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5720    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5721echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5722    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5724    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5725echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5726    ( cat <<\_ASBOX
5727## ---------------------------------- ##
5728## Report this to http://bugs.gw.com/ ##
5729## ---------------------------------- ##
5730_ASBOX
5731     ) | sed "s/^/$as_me: WARNING:     /" >&2
5732    ;;
5733esac
5734{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5737  echo $ECHO_N "(cached) $ECHO_C" >&6
5738else
5739  eval "$as_ac_Header=\$ac_header_preproc"
5740fi
5741ac_res=`eval echo '${'$as_ac_Header'}'`
5742	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5743echo "${ECHO_T}$ac_res" >&6; }
5744
5745fi
5746if test `eval echo '${'$as_ac_Header'}'` = yes; then
5747  cat >>confdefs.h <<_ACEOF
5748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5749_ACEOF
5750
5751fi
5752
5753done
5754
5755fi
5756
5757done
5758
5759
5760
5761
5762
5763
5764ac_header_dirent=no
5765for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5766  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5767{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5768echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5770  echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772  cat >conftest.$ac_ext <<_ACEOF
5773/* confdefs.h.  */
5774_ACEOF
5775cat confdefs.h >>conftest.$ac_ext
5776cat >>conftest.$ac_ext <<_ACEOF
5777/* end confdefs.h.  */
5778#include <sys/types.h>
5779#include <$ac_hdr>
5780
5781int
5782main ()
5783{
5784if ((DIR *) 0)
5785return 0;
5786  ;
5787  return 0;
5788}
5789_ACEOF
5790rm -f conftest.$ac_objext
5791if { (ac_try="$ac_compile"
5792case "(($ac_try" in
5793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794  *) ac_try_echo=$ac_try;;
5795esac
5796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797  (eval "$ac_compile") 2>conftest.er1
5798  ac_status=$?
5799  grep -v '^ *+' conftest.er1 >conftest.err
5800  rm -f conftest.er1
5801  cat conftest.err >&5
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); } && {
5804	 test -z "$ac_c_werror_flag" ||
5805	 test ! -s conftest.err
5806       } && test -s conftest.$ac_objext; then
5807  eval "$as_ac_Header=yes"
5808else
5809  echo "$as_me: failed program was:" >&5
5810sed 's/^/| /' conftest.$ac_ext >&5
5811
5812	eval "$as_ac_Header=no"
5813fi
5814
5815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816fi
5817ac_res=`eval echo '${'$as_ac_Header'}'`
5818	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5819echo "${ECHO_T}$ac_res" >&6; }
5820if test `eval echo '${'$as_ac_Header'}'` = yes; then
5821  cat >>confdefs.h <<_ACEOF
5822#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5823_ACEOF
5824
5825ac_header_dirent=$ac_hdr; break
5826fi
5827
5828done
5829# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5830if test $ac_header_dirent = dirent.h; then
5831  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5832echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5833if test "${ac_cv_search_opendir+set}" = set; then
5834  echo $ECHO_N "(cached) $ECHO_C" >&6
5835else
5836  ac_func_search_save_LIBS=$LIBS
5837cat >conftest.$ac_ext <<_ACEOF
5838/* confdefs.h.  */
5839_ACEOF
5840cat confdefs.h >>conftest.$ac_ext
5841cat >>conftest.$ac_ext <<_ACEOF
5842/* end confdefs.h.  */
5843
5844/* Override any GCC internal prototype to avoid an error.
5845   Use char because int might match the return type of a GCC
5846   builtin and then its argument prototype would still apply.  */
5847#ifdef __cplusplus
5848extern "C"
5849#endif
5850char opendir ();
5851int
5852main ()
5853{
5854return opendir ();
5855  ;
5856  return 0;
5857}
5858_ACEOF
5859for ac_lib in '' dir; do
5860  if test -z "$ac_lib"; then
5861    ac_res="none required"
5862  else
5863    ac_res=-l$ac_lib
5864    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5865  fi
5866  rm -f conftest.$ac_objext conftest$ac_exeext
5867if { (ac_try="$ac_link"
5868case "(($ac_try" in
5869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870  *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873  (eval "$ac_link") 2>conftest.er1
5874  ac_status=$?
5875  grep -v '^ *+' conftest.er1 >conftest.err
5876  rm -f conftest.er1
5877  cat conftest.err >&5
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); } && {
5880	 test -z "$ac_c_werror_flag" ||
5881	 test ! -s conftest.err
5882       } && test -s conftest$ac_exeext &&
5883       $as_test_x conftest$ac_exeext; then
5884  ac_cv_search_opendir=$ac_res
5885else
5886  echo "$as_me: failed program was:" >&5
5887sed 's/^/| /' conftest.$ac_ext >&5
5888
5889
5890fi
5891
5892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5893      conftest$ac_exeext
5894  if test "${ac_cv_search_opendir+set}" = set; then
5895  break
5896fi
5897done
5898if test "${ac_cv_search_opendir+set}" = set; then
5899  :
5900else
5901  ac_cv_search_opendir=no
5902fi
5903rm conftest.$ac_ext
5904LIBS=$ac_func_search_save_LIBS
5905fi
5906{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5907echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5908ac_res=$ac_cv_search_opendir
5909if test "$ac_res" != no; then
5910  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5911
5912fi
5913
5914else
5915  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5916echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5917if test "${ac_cv_search_opendir+set}" = set; then
5918  echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920  ac_func_search_save_LIBS=$LIBS
5921cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h.  */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h.  */
5927
5928/* Override any GCC internal prototype to avoid an error.
5929   Use char because int might match the return type of a GCC
5930   builtin and then its argument prototype would still apply.  */
5931#ifdef __cplusplus
5932extern "C"
5933#endif
5934char opendir ();
5935int
5936main ()
5937{
5938return opendir ();
5939  ;
5940  return 0;
5941}
5942_ACEOF
5943for ac_lib in '' x; do
5944  if test -z "$ac_lib"; then
5945    ac_res="none required"
5946  else
5947    ac_res=-l$ac_lib
5948    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5949  fi
5950  rm -f conftest.$ac_objext conftest$ac_exeext
5951if { (ac_try="$ac_link"
5952case "(($ac_try" in
5953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954  *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957  (eval "$ac_link") 2>conftest.er1
5958  ac_status=$?
5959  grep -v '^ *+' conftest.er1 >conftest.err
5960  rm -f conftest.er1
5961  cat conftest.err >&5
5962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963  (exit $ac_status); } && {
5964	 test -z "$ac_c_werror_flag" ||
5965	 test ! -s conftest.err
5966       } && test -s conftest$ac_exeext &&
5967       $as_test_x conftest$ac_exeext; then
5968  ac_cv_search_opendir=$ac_res
5969else
5970  echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973
5974fi
5975
5976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5977      conftest$ac_exeext
5978  if test "${ac_cv_search_opendir+set}" = set; then
5979  break
5980fi
5981done
5982if test "${ac_cv_search_opendir+set}" = set; then
5983  :
5984else
5985  ac_cv_search_opendir=no
5986fi
5987rm conftest.$ac_ext
5988LIBS=$ac_func_search_save_LIBS
5989fi
5990{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5991echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5992ac_res=$ac_cv_search_opendir
5993if test "$ac_res" != no; then
5994  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5995
5996fi
5997
5998fi
5999
6000{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6001echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6002if test "${ac_cv_header_stat_broken+set}" = set; then
6003  echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005  cat >conftest.$ac_ext <<_ACEOF
6006/* confdefs.h.  */
6007_ACEOF
6008cat confdefs.h >>conftest.$ac_ext
6009cat >>conftest.$ac_ext <<_ACEOF
6010/* end confdefs.h.  */
6011#include <sys/types.h>
6012#include <sys/stat.h>
6013
6014#if defined S_ISBLK && defined S_IFDIR
6015extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6016#endif
6017
6018#if defined S_ISBLK && defined S_IFCHR
6019extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6020#endif
6021
6022#if defined S_ISLNK && defined S_IFREG
6023extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6024#endif
6025
6026#if defined S_ISSOCK && defined S_IFREG
6027extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6028#endif
6029
6030_ACEOF
6031rm -f conftest.$ac_objext
6032if { (ac_try="$ac_compile"
6033case "(($ac_try" in
6034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035  *) ac_try_echo=$ac_try;;
6036esac
6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038  (eval "$ac_compile") 2>conftest.er1
6039  ac_status=$?
6040  grep -v '^ *+' conftest.er1 >conftest.err
6041  rm -f conftest.er1
6042  cat conftest.err >&5
6043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); } && {
6045	 test -z "$ac_c_werror_flag" ||
6046	 test ! -s conftest.err
6047       } && test -s conftest.$ac_objext; then
6048  ac_cv_header_stat_broken=no
6049else
6050  echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
6053	ac_cv_header_stat_broken=yes
6054fi
6055
6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057fi
6058{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6059echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6060if test $ac_cv_header_stat_broken = yes; then
6061
6062cat >>confdefs.h <<\_ACEOF
6063#define STAT_MACROS_BROKEN 1
6064_ACEOF
6065
6066fi
6067
6068{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6069echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6070if test "${ac_cv_header_stdc+set}" = set; then
6071  echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073  cat >conftest.$ac_ext <<_ACEOF
6074/* confdefs.h.  */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h.  */
6079#include <stdlib.h>
6080#include <stdarg.h>
6081#include <string.h>
6082#include <float.h>
6083
6084int
6085main ()
6086{
6087
6088  ;
6089  return 0;
6090}
6091_ACEOF
6092rm -f conftest.$ac_objext
6093if { (ac_try="$ac_compile"
6094case "(($ac_try" in
6095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096  *) ac_try_echo=$ac_try;;
6097esac
6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099  (eval "$ac_compile") 2>conftest.er1
6100  ac_status=$?
6101  grep -v '^ *+' conftest.er1 >conftest.err
6102  rm -f conftest.er1
6103  cat conftest.err >&5
6104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105  (exit $ac_status); } && {
6106	 test -z "$ac_c_werror_flag" ||
6107	 test ! -s conftest.err
6108       } && test -s conftest.$ac_objext; then
6109  ac_cv_header_stdc=yes
6110else
6111  echo "$as_me: failed program was:" >&5
6112sed 's/^/| /' conftest.$ac_ext >&5
6113
6114	ac_cv_header_stdc=no
6115fi
6116
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118
6119if test $ac_cv_header_stdc = yes; then
6120  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6121  cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h.  */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h.  */
6127#include <string.h>
6128
6129_ACEOF
6130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6131  $EGREP "memchr" >/dev/null 2>&1; then
6132  :
6133else
6134  ac_cv_header_stdc=no
6135fi
6136rm -f conftest*
6137
6138fi
6139
6140if test $ac_cv_header_stdc = yes; then
6141  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6142  cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h.  */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h.  */
6148#include <stdlib.h>
6149
6150_ACEOF
6151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152  $EGREP "free" >/dev/null 2>&1; then
6153  :
6154else
6155  ac_cv_header_stdc=no
6156fi
6157rm -f conftest*
6158
6159fi
6160
6161if test $ac_cv_header_stdc = yes; then
6162  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6163  if test "$cross_compiling" = yes; then
6164  :
6165else
6166  cat >conftest.$ac_ext <<_ACEOF
6167/* confdefs.h.  */
6168_ACEOF
6169cat confdefs.h >>conftest.$ac_ext
6170cat >>conftest.$ac_ext <<_ACEOF
6171/* end confdefs.h.  */
6172#include <ctype.h>
6173#include <stdlib.h>
6174#if ((' ' & 0x0FF) == 0x020)
6175# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6176# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6177#else
6178# define ISLOWER(c) \
6179		   (('a' <= (c) && (c) <= 'i') \
6180		     || ('j' <= (c) && (c) <= 'r') \
6181		     || ('s' <= (c) && (c) <= 'z'))
6182# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6183#endif
6184
6185#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6186int
6187main ()
6188{
6189  int i;
6190  for (i = 0; i < 256; i++)
6191    if (XOR (islower (i), ISLOWER (i))
6192	|| toupper (i) != TOUPPER (i))
6193      return 2;
6194  return 0;
6195}
6196_ACEOF
6197rm -f conftest$ac_exeext
6198if { (ac_try="$ac_link"
6199case "(($ac_try" in
6200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201  *) ac_try_echo=$ac_try;;
6202esac
6203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204  (eval "$ac_link") 2>&5
6205  ac_status=$?
6206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6208  { (case "(($ac_try" in
6209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210  *) ac_try_echo=$ac_try;;
6211esac
6212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213  (eval "$ac_try") 2>&5
6214  ac_status=$?
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); }; }; then
6217  :
6218else
6219  echo "$as_me: program exited with status $ac_status" >&5
6220echo "$as_me: failed program was:" >&5
6221sed 's/^/| /' conftest.$ac_ext >&5
6222
6223( exit $ac_status )
6224ac_cv_header_stdc=no
6225fi
6226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6227fi
6228
6229
6230fi
6231fi
6232{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6233echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6234if test $ac_cv_header_stdc = yes; then
6235
6236cat >>confdefs.h <<\_ACEOF
6237#define STDC_HEADERS 1
6238_ACEOF
6239
6240fi
6241
6242
6243{ echo "$as_me:$LINENO: checking for long long" >&5
6244echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6245if test "${ac_cv_type_long_long+set}" = set; then
6246  echo $ECHO_N "(cached) $ECHO_C" >&6
6247else
6248  cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h.  */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h.  */
6254$ac_includes_default
6255typedef long long ac__type_new_;
6256int
6257main ()
6258{
6259if ((ac__type_new_ *) 0)
6260  return 0;
6261if (sizeof (ac__type_new_))
6262  return 0;
6263  ;
6264  return 0;
6265}
6266_ACEOF
6267rm -f conftest.$ac_objext
6268if { (ac_try="$ac_compile"
6269case "(($ac_try" in
6270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271  *) ac_try_echo=$ac_try;;
6272esac
6273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274  (eval "$ac_compile") 2>conftest.er1
6275  ac_status=$?
6276  grep -v '^ *+' conftest.er1 >conftest.err
6277  rm -f conftest.er1
6278  cat conftest.err >&5
6279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280  (exit $ac_status); } && {
6281	 test -z "$ac_c_werror_flag" ||
6282	 test ! -s conftest.err
6283       } && test -s conftest.$ac_objext; then
6284  ac_cv_type_long_long=yes
6285else
6286  echo "$as_me: failed program was:" >&5
6287sed 's/^/| /' conftest.$ac_ext >&5
6288
6289	ac_cv_type_long_long=no
6290fi
6291
6292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293fi
6294{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6295echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6296if test $ac_cv_type_long_long = yes; then
6297
6298cat >>confdefs.h <<_ACEOF
6299#define HAVE_LONG_LONG 1
6300_ACEOF
6301
6302
6303fi
6304
6305{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6306echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6307if test "${ac_cv_type_uid_t+set}" = set; then
6308  echo $ECHO_N "(cached) $ECHO_C" >&6
6309else
6310  cat >conftest.$ac_ext <<_ACEOF
6311/* confdefs.h.  */
6312_ACEOF
6313cat confdefs.h >>conftest.$ac_ext
6314cat >>conftest.$ac_ext <<_ACEOF
6315/* end confdefs.h.  */
6316#include <sys/types.h>
6317
6318_ACEOF
6319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6320  $EGREP "uid_t" >/dev/null 2>&1; then
6321  ac_cv_type_uid_t=yes
6322else
6323  ac_cv_type_uid_t=no
6324fi
6325rm -f conftest*
6326
6327fi
6328{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6329echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6330if test $ac_cv_type_uid_t = no; then
6331
6332cat >>confdefs.h <<\_ACEOF
6333#define uid_t int
6334_ACEOF
6335
6336
6337cat >>confdefs.h <<\_ACEOF
6338#define gid_t int
6339_ACEOF
6340
6341fi
6342
6343{ echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6344echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
6345if test "${ac_cv_type_getgroups+set}" = set; then
6346  echo $ECHO_N "(cached) $ECHO_C" >&6
6347else
6348  if test "$cross_compiling" = yes; then
6349  ac_cv_type_getgroups=cross
6350else
6351  cat >conftest.$ac_ext <<_ACEOF
6352/* confdefs.h.  */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h.  */
6357/* Thanks to Mike Rendell for this test.  */
6358$ac_includes_default
6359#define NGID 256
6360#undef MAX
6361#define MAX(x, y) ((x) > (y) ? (x) : (y))
6362
6363int
6364main ()
6365{
6366  gid_t gidset[NGID];
6367  int i, n;
6368  union { gid_t gval; long int lval; }  val;
6369
6370  val.lval = -1;
6371  for (i = 0; i < NGID; i++)
6372    gidset[i] = val.gval;
6373  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6374		 gidset);
6375  /* Exit non-zero if getgroups seems to require an array of ints.  This
6376     happens when gid_t is short int but getgroups modifies an array
6377     of ints.  */
6378  return n > 0 && gidset[n] != val.gval;
6379}
6380_ACEOF
6381rm -f conftest$ac_exeext
6382if { (ac_try="$ac_link"
6383case "(($ac_try" in
6384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385  *) ac_try_echo=$ac_try;;
6386esac
6387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388  (eval "$ac_link") 2>&5
6389  ac_status=$?
6390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6392  { (case "(($ac_try" in
6393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394  *) ac_try_echo=$ac_try;;
6395esac
6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397  (eval "$ac_try") 2>&5
6398  ac_status=$?
6399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400  (exit $ac_status); }; }; then
6401  ac_cv_type_getgroups=gid_t
6402else
6403  echo "$as_me: program exited with status $ac_status" >&5
6404echo "$as_me: failed program was:" >&5
6405sed 's/^/| /' conftest.$ac_ext >&5
6406
6407( exit $ac_status )
6408ac_cv_type_getgroups=int
6409fi
6410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6411fi
6412
6413
6414if test $ac_cv_type_getgroups = cross; then
6415        cat >conftest.$ac_ext <<_ACEOF
6416/* confdefs.h.  */
6417_ACEOF
6418cat confdefs.h >>conftest.$ac_ext
6419cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h.  */
6421#include <unistd.h>
6422
6423_ACEOF
6424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6425  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6426  ac_cv_type_getgroups=gid_t
6427else
6428  ac_cv_type_getgroups=int
6429fi
6430rm -f conftest*
6431
6432fi
6433fi
6434{ echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6435echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
6436
6437cat >>confdefs.h <<_ACEOF
6438#define GETGROUPS_T $ac_cv_type_getgroups
6439_ACEOF
6440
6441
6442{ echo "$as_me:$LINENO: checking for mode_t" >&5
6443echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6444if test "${ac_cv_type_mode_t+set}" = set; then
6445  echo $ECHO_N "(cached) $ECHO_C" >&6
6446else
6447  cat >conftest.$ac_ext <<_ACEOF
6448/* confdefs.h.  */
6449_ACEOF
6450cat confdefs.h >>conftest.$ac_ext
6451cat >>conftest.$ac_ext <<_ACEOF
6452/* end confdefs.h.  */
6453$ac_includes_default
6454typedef mode_t ac__type_new_;
6455int
6456main ()
6457{
6458if ((ac__type_new_ *) 0)
6459  return 0;
6460if (sizeof (ac__type_new_))
6461  return 0;
6462  ;
6463  return 0;
6464}
6465_ACEOF
6466rm -f conftest.$ac_objext
6467if { (ac_try="$ac_compile"
6468case "(($ac_try" in
6469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470  *) ac_try_echo=$ac_try;;
6471esac
6472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473  (eval "$ac_compile") 2>conftest.er1
6474  ac_status=$?
6475  grep -v '^ *+' conftest.er1 >conftest.err
6476  rm -f conftest.er1
6477  cat conftest.err >&5
6478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479  (exit $ac_status); } && {
6480	 test -z "$ac_c_werror_flag" ||
6481	 test ! -s conftest.err
6482       } && test -s conftest.$ac_objext; then
6483  ac_cv_type_mode_t=yes
6484else
6485  echo "$as_me: failed program was:" >&5
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488	ac_cv_type_mode_t=no
6489fi
6490
6491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492fi
6493{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6494echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6495if test $ac_cv_type_mode_t = yes; then
6496  :
6497else
6498
6499cat >>confdefs.h <<_ACEOF
6500#define mode_t int
6501_ACEOF
6502
6503fi
6504
6505{ echo "$as_me:$LINENO: checking for size_t" >&5
6506echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6507if test "${ac_cv_type_size_t+set}" = set; then
6508  echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510  cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h.  */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h.  */
6516$ac_includes_default
6517typedef size_t ac__type_new_;
6518int
6519main ()
6520{
6521if ((ac__type_new_ *) 0)
6522  return 0;
6523if (sizeof (ac__type_new_))
6524  return 0;
6525  ;
6526  return 0;
6527}
6528_ACEOF
6529rm -f conftest.$ac_objext
6530if { (ac_try="$ac_compile"
6531case "(($ac_try" in
6532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533  *) ac_try_echo=$ac_try;;
6534esac
6535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536  (eval "$ac_compile") 2>conftest.er1
6537  ac_status=$?
6538  grep -v '^ *+' conftest.er1 >conftest.err
6539  rm -f conftest.er1
6540  cat conftest.err >&5
6541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542  (exit $ac_status); } && {
6543	 test -z "$ac_c_werror_flag" ||
6544	 test ! -s conftest.err
6545       } && test -s conftest.$ac_objext; then
6546  ac_cv_type_size_t=yes
6547else
6548  echo "$as_me: failed program was:" >&5
6549sed 's/^/| /' conftest.$ac_ext >&5
6550
6551	ac_cv_type_size_t=no
6552fi
6553
6554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555fi
6556{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6557echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6558if test $ac_cv_type_size_t = yes; then
6559  :
6560else
6561
6562cat >>confdefs.h <<_ACEOF
6563#define size_t unsigned int
6564_ACEOF
6565
6566fi
6567
6568{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6569echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6570if test "${ac_cv_type_uid_t+set}" = set; then
6571  echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573  cat >conftest.$ac_ext <<_ACEOF
6574/* confdefs.h.  */
6575_ACEOF
6576cat confdefs.h >>conftest.$ac_ext
6577cat >>conftest.$ac_ext <<_ACEOF
6578/* end confdefs.h.  */
6579#include <sys/types.h>
6580
6581_ACEOF
6582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6583  $EGREP "uid_t" >/dev/null 2>&1; then
6584  ac_cv_type_uid_t=yes
6585else
6586  ac_cv_type_uid_t=no
6587fi
6588rm -f conftest*
6589
6590fi
6591{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6592echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6593if test $ac_cv_type_uid_t = no; then
6594
6595cat >>confdefs.h <<\_ACEOF
6596#define uid_t int
6597_ACEOF
6598
6599
6600cat >>confdefs.h <<\_ACEOF
6601#define gid_t int
6602_ACEOF
6603
6604fi
6605
6606
6607
6608
6609{ echo "$as_me:$LINENO: checking for ssize_t" >&5
6610echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6611if test "${ac_cv_type_ssize_t+set}" = set; then
6612  echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614  cat >conftest.$ac_ext <<_ACEOF
6615/* confdefs.h.  */
6616_ACEOF
6617cat confdefs.h >>conftest.$ac_ext
6618cat >>conftest.$ac_ext <<_ACEOF
6619/* end confdefs.h.  */
6620
6621#include <sys/types.h>
6622
6623
6624typedef ssize_t ac__type_new_;
6625int
6626main ()
6627{
6628if ((ac__type_new_ *) 0)
6629  return 0;
6630if (sizeof (ac__type_new_))
6631  return 0;
6632  ;
6633  return 0;
6634}
6635_ACEOF
6636rm -f conftest.$ac_objext
6637if { (ac_try="$ac_compile"
6638case "(($ac_try" in
6639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640  *) ac_try_echo=$ac_try;;
6641esac
6642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6643  (eval "$ac_compile") 2>conftest.er1
6644  ac_status=$?
6645  grep -v '^ *+' conftest.er1 >conftest.err
6646  rm -f conftest.er1
6647  cat conftest.err >&5
6648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649  (exit $ac_status); } && {
6650	 test -z "$ac_c_werror_flag" ||
6651	 test ! -s conftest.err
6652       } && test -s conftest.$ac_objext; then
6653  ac_cv_type_ssize_t=yes
6654else
6655  echo "$as_me: failed program was:" >&5
6656sed 's/^/| /' conftest.$ac_ext >&5
6657
6658	ac_cv_type_ssize_t=no
6659fi
6660
6661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662fi
6663{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6664echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6665if test $ac_cv_type_ssize_t = yes; then
6666  :
6667else
6668
6669cat >>confdefs.h <<\_ACEOF
6670#define ssize_t int
6671_ACEOF
6672
6673fi
6674
6675
6676
6677
6678
6679{ echo "$as_me:$LINENO: checking for socklen_t" >&5
6680echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
6681if test "${ac_cv_type_socklen_t+set}" = set; then
6682  echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684  cat >conftest.$ac_ext <<_ACEOF
6685/* confdefs.h.  */
6686_ACEOF
6687cat confdefs.h >>conftest.$ac_ext
6688cat >>conftest.$ac_ext <<_ACEOF
6689/* end confdefs.h.  */
6690
6691#include <sys/types.h>
6692#include <sys/socket.h>
6693
6694
6695typedef socklen_t ac__type_new_;
6696int
6697main ()
6698{
6699if ((ac__type_new_ *) 0)
6700  return 0;
6701if (sizeof (ac__type_new_))
6702  return 0;
6703  ;
6704  return 0;
6705}
6706_ACEOF
6707rm -f conftest.$ac_objext
6708if { (ac_try="$ac_compile"
6709case "(($ac_try" in
6710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711  *) ac_try_echo=$ac_try;;
6712esac
6713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714  (eval "$ac_compile") 2>conftest.er1
6715  ac_status=$?
6716  grep -v '^ *+' conftest.er1 >conftest.err
6717  rm -f conftest.er1
6718  cat conftest.err >&5
6719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720  (exit $ac_status); } && {
6721	 test -z "$ac_c_werror_flag" ||
6722	 test ! -s conftest.err
6723       } && test -s conftest.$ac_objext; then
6724  ac_cv_type_socklen_t=yes
6725else
6726  echo "$as_me: failed program was:" >&5
6727sed 's/^/| /' conftest.$ac_ext >&5
6728
6729	ac_cv_type_socklen_t=no
6730fi
6731
6732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733fi
6734{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6735echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
6736if test $ac_cv_type_socklen_t = yes; then
6737  :
6738else
6739
6740cat >>confdefs.h <<\_ACEOF
6741#define socklen_t int
6742_ACEOF
6743
6744fi
6745
6746
6747
6748
6749{ echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
6750echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6; }
6751if test "${ac_cv_member_struct_dirent_d_ino+set}" = set; then
6752  echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754  cat >conftest.$ac_ext <<_ACEOF
6755/* confdefs.h.  */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h.  */
6760#ifdef HAVE_DIRENT_H
6761# include <dirent.h>
6762#else
6763# ifdef HAVE_NDIR_H
6764#  include <ndir.h>
6765# else
6766#  include <sys/dir.h>
6767# endif
6768# define dirent direct
6769#endif
6770
6771int
6772main ()
6773{
6774static struct dirent ac_aggr;
6775if (ac_aggr.d_ino)
6776return 0;
6777  ;
6778  return 0;
6779}
6780_ACEOF
6781rm -f conftest.$ac_objext
6782if { (ac_try="$ac_compile"
6783case "(($ac_try" in
6784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785  *) ac_try_echo=$ac_try;;
6786esac
6787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788  (eval "$ac_compile") 2>conftest.er1
6789  ac_status=$?
6790  grep -v '^ *+' conftest.er1 >conftest.err
6791  rm -f conftest.er1
6792  cat conftest.err >&5
6793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794  (exit $ac_status); } && {
6795	 test -z "$ac_c_werror_flag" ||
6796	 test ! -s conftest.err
6797       } && test -s conftest.$ac_objext; then
6798  ac_cv_member_struct_dirent_d_ino=yes
6799else
6800  echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803	cat >conftest.$ac_ext <<_ACEOF
6804/* confdefs.h.  */
6805_ACEOF
6806cat confdefs.h >>conftest.$ac_ext
6807cat >>conftest.$ac_ext <<_ACEOF
6808/* end confdefs.h.  */
6809#ifdef HAVE_DIRENT_H
6810# include <dirent.h>
6811#else
6812# ifdef HAVE_NDIR_H
6813#  include <ndir.h>
6814# else
6815#  include <sys/dir.h>
6816# endif
6817# define dirent direct
6818#endif
6819
6820int
6821main ()
6822{
6823static struct dirent ac_aggr;
6824if (sizeof ac_aggr.d_ino)
6825return 0;
6826  ;
6827  return 0;
6828}
6829_ACEOF
6830rm -f conftest.$ac_objext
6831if { (ac_try="$ac_compile"
6832case "(($ac_try" in
6833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834  *) ac_try_echo=$ac_try;;
6835esac
6836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837  (eval "$ac_compile") 2>conftest.er1
6838  ac_status=$?
6839  grep -v '^ *+' conftest.er1 >conftest.err
6840  rm -f conftest.er1
6841  cat conftest.err >&5
6842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843  (exit $ac_status); } && {
6844	 test -z "$ac_c_werror_flag" ||
6845	 test ! -s conftest.err
6846       } && test -s conftest.$ac_objext; then
6847  ac_cv_member_struct_dirent_d_ino=yes
6848else
6849  echo "$as_me: failed program was:" >&5
6850sed 's/^/| /' conftest.$ac_ext >&5
6851
6852	ac_cv_member_struct_dirent_d_ino=no
6853fi
6854
6855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856fi
6857
6858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859fi
6860{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_ino" >&5
6861echo "${ECHO_T}$ac_cv_member_struct_dirent_d_ino" >&6; }
6862if test $ac_cv_member_struct_dirent_d_ino = yes; then
6863
6864cat >>confdefs.h <<_ACEOF
6865#define HAVE_STRUCT_DIRENT_D_INO 1
6866_ACEOF
6867
6868
6869fi
6870
6871{ echo "$as_me:$LINENO: checking for struct utmp.ut_host" >&5
6872echo $ECHO_N "checking for struct utmp.ut_host... $ECHO_C" >&6; }
6873if test "${ac_cv_member_struct_utmp_ut_host+set}" = set; then
6874  echo $ECHO_N "(cached) $ECHO_C" >&6
6875else
6876  cat >conftest.$ac_ext <<_ACEOF
6877/* confdefs.h.  */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h.  */
6882#include <sys/types.h>
6883#ifdef HAVE_UTMPX_H
6884#include <utmpx.h>
6885#define utmp utmpx
6886#elif defined HAVE_UTMP_H
6887#include <utmp.h>
6888#endif
6889
6890int
6891main ()
6892{
6893static struct utmp ac_aggr;
6894if (ac_aggr.ut_host)
6895return 0;
6896  ;
6897  return 0;
6898}
6899_ACEOF
6900rm -f conftest.$ac_objext
6901if { (ac_try="$ac_compile"
6902case "(($ac_try" in
6903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904  *) ac_try_echo=$ac_try;;
6905esac
6906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907  (eval "$ac_compile") 2>conftest.er1
6908  ac_status=$?
6909  grep -v '^ *+' conftest.er1 >conftest.err
6910  rm -f conftest.er1
6911  cat conftest.err >&5
6912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913  (exit $ac_status); } && {
6914	 test -z "$ac_c_werror_flag" ||
6915	 test ! -s conftest.err
6916       } && test -s conftest.$ac_objext; then
6917  ac_cv_member_struct_utmp_ut_host=yes
6918else
6919  echo "$as_me: failed program was:" >&5
6920sed 's/^/| /' conftest.$ac_ext >&5
6921
6922	cat >conftest.$ac_ext <<_ACEOF
6923/* confdefs.h.  */
6924_ACEOF
6925cat confdefs.h >>conftest.$ac_ext
6926cat >>conftest.$ac_ext <<_ACEOF
6927/* end confdefs.h.  */
6928#include <sys/types.h>
6929#ifdef HAVE_UTMPX_H
6930#include <utmpx.h>
6931#define utmp utmpx
6932#elif defined HAVE_UTMP_H
6933#include <utmp.h>
6934#endif
6935
6936int
6937main ()
6938{
6939static struct utmp ac_aggr;
6940if (sizeof ac_aggr.ut_host)
6941return 0;
6942  ;
6943  return 0;
6944}
6945_ACEOF
6946rm -f conftest.$ac_objext
6947if { (ac_try="$ac_compile"
6948case "(($ac_try" in
6949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950  *) ac_try_echo=$ac_try;;
6951esac
6952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953  (eval "$ac_compile") 2>conftest.er1
6954  ac_status=$?
6955  grep -v '^ *+' conftest.er1 >conftest.err
6956  rm -f conftest.er1
6957  cat conftest.err >&5
6958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959  (exit $ac_status); } && {
6960	 test -z "$ac_c_werror_flag" ||
6961	 test ! -s conftest.err
6962       } && test -s conftest.$ac_objext; then
6963  ac_cv_member_struct_utmp_ut_host=yes
6964else
6965  echo "$as_me: failed program was:" >&5
6966sed 's/^/| /' conftest.$ac_ext >&5
6967
6968	ac_cv_member_struct_utmp_ut_host=no
6969fi
6970
6971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972fi
6973
6974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975fi
6976{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_host" >&5
6977echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_host" >&6; }
6978if test $ac_cv_member_struct_utmp_ut_host = yes; then
6979
6980cat >>confdefs.h <<_ACEOF
6981#define HAVE_STRUCT_UTMP_UT_HOST 1
6982_ACEOF
6983
6984
6985fi
6986{ echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
6987echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6; }
6988if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
6989  echo $ECHO_N "(cached) $ECHO_C" >&6
6990else
6991  cat >conftest.$ac_ext <<_ACEOF
6992/* confdefs.h.  */
6993_ACEOF
6994cat confdefs.h >>conftest.$ac_ext
6995cat >>conftest.$ac_ext <<_ACEOF
6996/* end confdefs.h.  */
6997#include <sys/types.h>
6998#ifdef HAVE_UTMPX_H
6999#include <utmpx.h>
7000#define utmp utmpx
7001#elif defined HAVE_UTMP_H
7002#include <utmp.h>
7003#endif
7004
7005int
7006main ()
7007{
7008static struct utmp ac_aggr;
7009if (ac_aggr.ut_user)
7010return 0;
7011  ;
7012  return 0;
7013}
7014_ACEOF
7015rm -f conftest.$ac_objext
7016if { (ac_try="$ac_compile"
7017case "(($ac_try" in
7018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019  *) ac_try_echo=$ac_try;;
7020esac
7021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022  (eval "$ac_compile") 2>conftest.er1
7023  ac_status=$?
7024  grep -v '^ *+' conftest.er1 >conftest.err
7025  rm -f conftest.er1
7026  cat conftest.err >&5
7027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); } && {
7029	 test -z "$ac_c_werror_flag" ||
7030	 test ! -s conftest.err
7031       } && test -s conftest.$ac_objext; then
7032  ac_cv_member_struct_utmp_ut_user=yes
7033else
7034  echo "$as_me: failed program was:" >&5
7035sed 's/^/| /' conftest.$ac_ext >&5
7036
7037	cat >conftest.$ac_ext <<_ACEOF
7038/* confdefs.h.  */
7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h.  */
7043#include <sys/types.h>
7044#ifdef HAVE_UTMPX_H
7045#include <utmpx.h>
7046#define utmp utmpx
7047#elif defined HAVE_UTMP_H
7048#include <utmp.h>
7049#endif
7050
7051int
7052main ()
7053{
7054static struct utmp ac_aggr;
7055if (sizeof ac_aggr.ut_user)
7056return 0;
7057  ;
7058  return 0;
7059}
7060_ACEOF
7061rm -f conftest.$ac_objext
7062if { (ac_try="$ac_compile"
7063case "(($ac_try" in
7064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065  *) ac_try_echo=$ac_try;;
7066esac
7067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7068  (eval "$ac_compile") 2>conftest.er1
7069  ac_status=$?
7070  grep -v '^ *+' conftest.er1 >conftest.err
7071  rm -f conftest.er1
7072  cat conftest.err >&5
7073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074  (exit $ac_status); } && {
7075	 test -z "$ac_c_werror_flag" ||
7076	 test ! -s conftest.err
7077       } && test -s conftest.$ac_objext; then
7078  ac_cv_member_struct_utmp_ut_user=yes
7079else
7080  echo "$as_me: failed program was:" >&5
7081sed 's/^/| /' conftest.$ac_ext >&5
7082
7083	ac_cv_member_struct_utmp_ut_user=no
7084fi
7085
7086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087fi
7088
7089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090fi
7091{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
7092echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6; }
7093if test $ac_cv_member_struct_utmp_ut_user = yes; then
7094
7095cat >>confdefs.h <<_ACEOF
7096#define HAVE_STRUCT_UTMP_UT_USER 1
7097_ACEOF
7098
7099
7100fi
7101{ echo "$as_me:$LINENO: checking for struct utmp.ut_tv" >&5
7102echo $ECHO_N "checking for struct utmp.ut_tv... $ECHO_C" >&6; }
7103if test "${ac_cv_member_struct_utmp_ut_tv+set}" = set; then
7104  echo $ECHO_N "(cached) $ECHO_C" >&6
7105else
7106  cat >conftest.$ac_ext <<_ACEOF
7107/* confdefs.h.  */
7108_ACEOF
7109cat confdefs.h >>conftest.$ac_ext
7110cat >>conftest.$ac_ext <<_ACEOF
7111/* end confdefs.h.  */
7112#include <sys/types.h>
7113#ifdef HAVE_UTMPX_H
7114#include <utmpx.h>
7115#define utmp utmpx
7116#elif defined HAVE_UTMP_H
7117#include <utmp.h>
7118#endif
7119
7120int
7121main ()
7122{
7123static struct utmp ac_aggr;
7124if (ac_aggr.ut_tv)
7125return 0;
7126  ;
7127  return 0;
7128}
7129_ACEOF
7130rm -f conftest.$ac_objext
7131if { (ac_try="$ac_compile"
7132case "(($ac_try" in
7133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134  *) ac_try_echo=$ac_try;;
7135esac
7136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137  (eval "$ac_compile") 2>conftest.er1
7138  ac_status=$?
7139  grep -v '^ *+' conftest.er1 >conftest.err
7140  rm -f conftest.er1
7141  cat conftest.err >&5
7142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143  (exit $ac_status); } && {
7144	 test -z "$ac_c_werror_flag" ||
7145	 test ! -s conftest.err
7146       } && test -s conftest.$ac_objext; then
7147  ac_cv_member_struct_utmp_ut_tv=yes
7148else
7149  echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152	cat >conftest.$ac_ext <<_ACEOF
7153/* confdefs.h.  */
7154_ACEOF
7155cat confdefs.h >>conftest.$ac_ext
7156cat >>conftest.$ac_ext <<_ACEOF
7157/* end confdefs.h.  */
7158#include <sys/types.h>
7159#ifdef HAVE_UTMPX_H
7160#include <utmpx.h>
7161#define utmp utmpx
7162#elif defined HAVE_UTMP_H
7163#include <utmp.h>
7164#endif
7165
7166int
7167main ()
7168{
7169static struct utmp ac_aggr;
7170if (sizeof ac_aggr.ut_tv)
7171return 0;
7172  ;
7173  return 0;
7174}
7175_ACEOF
7176rm -f conftest.$ac_objext
7177if { (ac_try="$ac_compile"
7178case "(($ac_try" in
7179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180  *) ac_try_echo=$ac_try;;
7181esac
7182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183  (eval "$ac_compile") 2>conftest.er1
7184  ac_status=$?
7185  grep -v '^ *+' conftest.er1 >conftest.err
7186  rm -f conftest.er1
7187  cat conftest.err >&5
7188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189  (exit $ac_status); } && {
7190	 test -z "$ac_c_werror_flag" ||
7191	 test ! -s conftest.err
7192       } && test -s conftest.$ac_objext; then
7193  ac_cv_member_struct_utmp_ut_tv=yes
7194else
7195  echo "$as_me: failed program was:" >&5
7196sed 's/^/| /' conftest.$ac_ext >&5
7197
7198	ac_cv_member_struct_utmp_ut_tv=no
7199fi
7200
7201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202fi
7203
7204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205fi
7206{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_tv" >&5
7207echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_tv" >&6; }
7208if test $ac_cv_member_struct_utmp_ut_tv = yes; then
7209
7210cat >>confdefs.h <<_ACEOF
7211#define HAVE_STRUCT_UTMP_UT_TV 1
7212_ACEOF
7213
7214
7215fi
7216{ echo "$as_me:$LINENO: checking for struct utmp.ut_xtime" >&5
7217echo $ECHO_N "checking for struct utmp.ut_xtime... $ECHO_C" >&6; }
7218if test "${ac_cv_member_struct_utmp_ut_xtime+set}" = set; then
7219  echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221  cat >conftest.$ac_ext <<_ACEOF
7222/* confdefs.h.  */
7223_ACEOF
7224cat confdefs.h >>conftest.$ac_ext
7225cat >>conftest.$ac_ext <<_ACEOF
7226/* end confdefs.h.  */
7227#include <sys/types.h>
7228#ifdef HAVE_UTMPX_H
7229#include <utmpx.h>
7230#define utmp utmpx
7231#elif defined HAVE_UTMP_H
7232#include <utmp.h>
7233#endif
7234
7235int
7236main ()
7237{
7238static struct utmp ac_aggr;
7239if (ac_aggr.ut_xtime)
7240return 0;
7241  ;
7242  return 0;
7243}
7244_ACEOF
7245rm -f conftest.$ac_objext
7246if { (ac_try="$ac_compile"
7247case "(($ac_try" in
7248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249  *) ac_try_echo=$ac_try;;
7250esac
7251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252  (eval "$ac_compile") 2>conftest.er1
7253  ac_status=$?
7254  grep -v '^ *+' conftest.er1 >conftest.err
7255  rm -f conftest.er1
7256  cat conftest.err >&5
7257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258  (exit $ac_status); } && {
7259	 test -z "$ac_c_werror_flag" ||
7260	 test ! -s conftest.err
7261       } && test -s conftest.$ac_objext; then
7262  ac_cv_member_struct_utmp_ut_xtime=yes
7263else
7264  echo "$as_me: failed program was:" >&5
7265sed 's/^/| /' conftest.$ac_ext >&5
7266
7267	cat >conftest.$ac_ext <<_ACEOF
7268/* confdefs.h.  */
7269_ACEOF
7270cat confdefs.h >>conftest.$ac_ext
7271cat >>conftest.$ac_ext <<_ACEOF
7272/* end confdefs.h.  */
7273#include <sys/types.h>
7274#ifdef HAVE_UTMPX_H
7275#include <utmpx.h>
7276#define utmp utmpx
7277#elif defined HAVE_UTMP_H
7278#include <utmp.h>
7279#endif
7280
7281int
7282main ()
7283{
7284static struct utmp ac_aggr;
7285if (sizeof ac_aggr.ut_xtime)
7286return 0;
7287  ;
7288  return 0;
7289}
7290_ACEOF
7291rm -f conftest.$ac_objext
7292if { (ac_try="$ac_compile"
7293case "(($ac_try" in
7294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295  *) ac_try_echo=$ac_try;;
7296esac
7297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298  (eval "$ac_compile") 2>conftest.er1
7299  ac_status=$?
7300  grep -v '^ *+' conftest.er1 >conftest.err
7301  rm -f conftest.er1
7302  cat conftest.err >&5
7303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304  (exit $ac_status); } && {
7305	 test -z "$ac_c_werror_flag" ||
7306	 test ! -s conftest.err
7307       } && test -s conftest.$ac_objext; then
7308  ac_cv_member_struct_utmp_ut_xtime=yes
7309else
7310  echo "$as_me: failed program was:" >&5
7311sed 's/^/| /' conftest.$ac_ext >&5
7312
7313	ac_cv_member_struct_utmp_ut_xtime=no
7314fi
7315
7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317fi
7318
7319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320fi
7321{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_xtime" >&5
7322echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_xtime" >&6; }
7323if test $ac_cv_member_struct_utmp_ut_xtime = yes; then
7324
7325cat >>confdefs.h <<_ACEOF
7326#define HAVE_STRUCT_UTMP_UT_XTIME 1
7327_ACEOF
7328
7329
7330fi
7331
7332{ echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
7333echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
7334if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
7335  echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337  cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h.  */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h.  */
7343#include <sys/types.h>
7344#include <sys/socket.h>
7345
7346int
7347main ()
7348{
7349static struct sockaddr_storage ac_aggr;
7350if (ac_aggr.ss_family)
7351return 0;
7352  ;
7353  return 0;
7354}
7355_ACEOF
7356rm -f conftest.$ac_objext
7357if { (ac_try="$ac_compile"
7358case "(($ac_try" in
7359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360  *) ac_try_echo=$ac_try;;
7361esac
7362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363  (eval "$ac_compile") 2>conftest.er1
7364  ac_status=$?
7365  grep -v '^ *+' conftest.er1 >conftest.err
7366  rm -f conftest.er1
7367  cat conftest.err >&5
7368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369  (exit $ac_status); } && {
7370	 test -z "$ac_c_werror_flag" ||
7371	 test ! -s conftest.err
7372       } && test -s conftest.$ac_objext; then
7373  ac_cv_member_struct_sockaddr_storage_ss_family=yes
7374else
7375  echo "$as_me: failed program was:" >&5
7376sed 's/^/| /' conftest.$ac_ext >&5
7377
7378	cat >conftest.$ac_ext <<_ACEOF
7379/* confdefs.h.  */
7380_ACEOF
7381cat confdefs.h >>conftest.$ac_ext
7382cat >>conftest.$ac_ext <<_ACEOF
7383/* end confdefs.h.  */
7384#include <sys/types.h>
7385#include <sys/socket.h>
7386
7387int
7388main ()
7389{
7390static struct sockaddr_storage ac_aggr;
7391if (sizeof ac_aggr.ss_family)
7392return 0;
7393  ;
7394  return 0;
7395}
7396_ACEOF
7397rm -f conftest.$ac_objext
7398if { (ac_try="$ac_compile"
7399case "(($ac_try" in
7400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401  *) ac_try_echo=$ac_try;;
7402esac
7403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404  (eval "$ac_compile") 2>conftest.er1
7405  ac_status=$?
7406  grep -v '^ *+' conftest.er1 >conftest.err
7407  rm -f conftest.er1
7408  cat conftest.err >&5
7409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410  (exit $ac_status); } && {
7411	 test -z "$ac_c_werror_flag" ||
7412	 test ! -s conftest.err
7413       } && test -s conftest.$ac_objext; then
7414  ac_cv_member_struct_sockaddr_storage_ss_family=yes
7415else
7416  echo "$as_me: failed program was:" >&5
7417sed 's/^/| /' conftest.$ac_ext >&5
7418
7419	ac_cv_member_struct_sockaddr_storage_ss_family=no
7420fi
7421
7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423fi
7424
7425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426fi
7427{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
7428echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
7429if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
7430
7431cat >>confdefs.h <<_ACEOF
7432#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
7433_ACEOF
7434
7435
7436fi
7437
7438
7439{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7440echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7441if test "${ac_cv_c_const+set}" = set; then
7442  echo $ECHO_N "(cached) $ECHO_C" >&6
7443else
7444  cat >conftest.$ac_ext <<_ACEOF
7445/* confdefs.h.  */
7446_ACEOF
7447cat confdefs.h >>conftest.$ac_ext
7448cat >>conftest.$ac_ext <<_ACEOF
7449/* end confdefs.h.  */
7450
7451int
7452main ()
7453{
7454/* FIXME: Include the comments suggested by Paul. */
7455#ifndef __cplusplus
7456  /* Ultrix mips cc rejects this.  */
7457  typedef int charset[2];
7458  const charset cs;
7459  /* SunOS 4.1.1 cc rejects this.  */
7460  char const *const *pcpcc;
7461  char **ppc;
7462  /* NEC SVR4.0.2 mips cc rejects this.  */
7463  struct point {int x, y;};
7464  static struct point const zero = {0,0};
7465  /* AIX XL C 1.02.0.0 rejects this.
7466     It does not let you subtract one const X* pointer from another in
7467     an arm of an if-expression whose if-part is not a constant
7468     expression */
7469  const char *g = "string";
7470  pcpcc = &g + (g ? g-g : 0);
7471  /* HPUX 7.0 cc rejects these. */
7472  ++pcpcc;
7473  ppc = (char**) pcpcc;
7474  pcpcc = (char const *const *) ppc;
7475  { /* SCO 3.2v4 cc rejects this.  */
7476    char *t;
7477    char const *s = 0 ? (char *) 0 : (char const *) 0;
7478
7479    *t++ = 0;
7480    if (s) return 0;
7481  }
7482  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7483    int x[] = {25, 17};
7484    const int *foo = &x[0];
7485    ++foo;
7486  }
7487  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7488    typedef const int *iptr;
7489    iptr p = 0;
7490    ++p;
7491  }
7492  { /* AIX XL C 1.02.0.0 rejects this saying
7493       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7494    struct s { int j; const int *ap[3]; };
7495    struct s *b; b->j = 5;
7496  }
7497  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7498    const int foo = 10;
7499    if (!foo) return 0;
7500  }
7501  return !cs[0] && !zero.x;
7502#endif
7503
7504  ;
7505  return 0;
7506}
7507_ACEOF
7508rm -f conftest.$ac_objext
7509if { (ac_try="$ac_compile"
7510case "(($ac_try" in
7511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512  *) ac_try_echo=$ac_try;;
7513esac
7514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515  (eval "$ac_compile") 2>conftest.er1
7516  ac_status=$?
7517  grep -v '^ *+' conftest.er1 >conftest.err
7518  rm -f conftest.er1
7519  cat conftest.err >&5
7520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521  (exit $ac_status); } && {
7522	 test -z "$ac_c_werror_flag" ||
7523	 test ! -s conftest.err
7524       } && test -s conftest.$ac_objext; then
7525  ac_cv_c_const=yes
7526else
7527  echo "$as_me: failed program was:" >&5
7528sed 's/^/| /' conftest.$ac_ext >&5
7529
7530	ac_cv_c_const=no
7531fi
7532
7533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7534fi
7535{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7536echo "${ECHO_T}$ac_cv_c_const" >&6; }
7537if test $ac_cv_c_const = no; then
7538
7539cat >>confdefs.h <<\_ACEOF
7540#define const
7541_ACEOF
7542
7543fi
7544
7545{ echo "$as_me:$LINENO: checking for working volatile" >&5
7546echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
7547if test "${ac_cv_c_volatile+set}" = set; then
7548  echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550  cat >conftest.$ac_ext <<_ACEOF
7551/* confdefs.h.  */
7552_ACEOF
7553cat confdefs.h >>conftest.$ac_ext
7554cat >>conftest.$ac_ext <<_ACEOF
7555/* end confdefs.h.  */
7556
7557int
7558main ()
7559{
7560
7561volatile int x;
7562int * volatile y = (int *) 0;
7563return !x && !y;
7564  ;
7565  return 0;
7566}
7567_ACEOF
7568rm -f conftest.$ac_objext
7569if { (ac_try="$ac_compile"
7570case "(($ac_try" in
7571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572  *) ac_try_echo=$ac_try;;
7573esac
7574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7575  (eval "$ac_compile") 2>conftest.er1
7576  ac_status=$?
7577  grep -v '^ *+' conftest.er1 >conftest.err
7578  rm -f conftest.er1
7579  cat conftest.err >&5
7580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581  (exit $ac_status); } && {
7582	 test -z "$ac_c_werror_flag" ||
7583	 test ! -s conftest.err
7584       } && test -s conftest.$ac_objext; then
7585  ac_cv_c_volatile=yes
7586else
7587  echo "$as_me: failed program was:" >&5
7588sed 's/^/| /' conftest.$ac_ext >&5
7589
7590	ac_cv_c_volatile=no
7591fi
7592
7593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594fi
7595{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7596echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
7597if test $ac_cv_c_volatile = no; then
7598
7599cat >>confdefs.h <<\_ACEOF
7600#define volatile
7601_ACEOF
7602
7603fi
7604
7605
7606{ echo "$as_me:$LINENO: checking whether crypt is declared" >&5
7607echo $ECHO_N "checking whether crypt is declared... $ECHO_C" >&6; }
7608if test "${ac_cv_have_decl_crypt+set}" = set; then
7609  echo $ECHO_N "(cached) $ECHO_C" >&6
7610else
7611  cat >conftest.$ac_ext <<_ACEOF
7612/* confdefs.h.  */
7613_ACEOF
7614cat confdefs.h >>conftest.$ac_ext
7615cat >>conftest.$ac_ext <<_ACEOF
7616/* end confdefs.h.  */
7617#include "config_p.h"
7618$ac_includes_default
7619#ifdef HAVE_CRYPT_H
7620#include <crypt.h>
7621#endif
7622
7623
7624int
7625main ()
7626{
7627#ifndef crypt
7628  (void) crypt;
7629#endif
7630
7631  ;
7632  return 0;
7633}
7634_ACEOF
7635rm -f conftest.$ac_objext
7636if { (ac_try="$ac_compile"
7637case "(($ac_try" in
7638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639  *) ac_try_echo=$ac_try;;
7640esac
7641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642  (eval "$ac_compile") 2>conftest.er1
7643  ac_status=$?
7644  grep -v '^ *+' conftest.er1 >conftest.err
7645  rm -f conftest.er1
7646  cat conftest.err >&5
7647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648  (exit $ac_status); } && {
7649	 test -z "$ac_c_werror_flag" ||
7650	 test ! -s conftest.err
7651       } && test -s conftest.$ac_objext; then
7652  ac_cv_have_decl_crypt=yes
7653else
7654  echo "$as_me: failed program was:" >&5
7655sed 's/^/| /' conftest.$ac_ext >&5
7656
7657	ac_cv_have_decl_crypt=no
7658fi
7659
7660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661fi
7662{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_crypt" >&5
7663echo "${ECHO_T}$ac_cv_have_decl_crypt" >&6; }
7664if test $ac_cv_have_decl_crypt = yes; then
7665
7666cat >>confdefs.h <<_ACEOF
7667#define HAVE_DECL_CRYPT 1
7668_ACEOF
7669
7670
7671else
7672  cat >>confdefs.h <<_ACEOF
7673#define HAVE_DECL_CRYPT 0
7674_ACEOF
7675
7676
7677fi
7678{ echo "$as_me:$LINENO: checking whether environ is declared" >&5
7679echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
7680if test "${ac_cv_have_decl_environ+set}" = set; then
7681  echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683  cat >conftest.$ac_ext <<_ACEOF
7684/* confdefs.h.  */
7685_ACEOF
7686cat confdefs.h >>conftest.$ac_ext
7687cat >>conftest.$ac_ext <<_ACEOF
7688/* end confdefs.h.  */
7689#include "config_p.h"
7690$ac_includes_default
7691#ifdef HAVE_CRYPT_H
7692#include <crypt.h>
7693#endif
7694
7695
7696int
7697main ()
7698{
7699#ifndef environ
7700  (void) environ;
7701#endif
7702
7703  ;
7704  return 0;
7705}
7706_ACEOF
7707rm -f conftest.$ac_objext
7708if { (ac_try="$ac_compile"
7709case "(($ac_try" in
7710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711  *) ac_try_echo=$ac_try;;
7712esac
7713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7714  (eval "$ac_compile") 2>conftest.er1
7715  ac_status=$?
7716  grep -v '^ *+' conftest.er1 >conftest.err
7717  rm -f conftest.er1
7718  cat conftest.err >&5
7719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720  (exit $ac_status); } && {
7721	 test -z "$ac_c_werror_flag" ||
7722	 test ! -s conftest.err
7723       } && test -s conftest.$ac_objext; then
7724  ac_cv_have_decl_environ=yes
7725else
7726  echo "$as_me: failed program was:" >&5
7727sed 's/^/| /' conftest.$ac_ext >&5
7728
7729	ac_cv_have_decl_environ=no
7730fi
7731
7732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733fi
7734{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
7735echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
7736if test $ac_cv_have_decl_environ = yes; then
7737
7738cat >>confdefs.h <<_ACEOF
7739#define HAVE_DECL_ENVIRON 1
7740_ACEOF
7741
7742
7743else
7744  cat >>confdefs.h <<_ACEOF
7745#define HAVE_DECL_ENVIRON 0
7746_ACEOF
7747
7748
7749fi
7750{ echo "$as_me:$LINENO: checking whether gethostname is declared" >&5
7751echo $ECHO_N "checking whether gethostname is declared... $ECHO_C" >&6; }
7752if test "${ac_cv_have_decl_gethostname+set}" = set; then
7753  echo $ECHO_N "(cached) $ECHO_C" >&6
7754else
7755  cat >conftest.$ac_ext <<_ACEOF
7756/* confdefs.h.  */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
7760/* end confdefs.h.  */
7761#include "config_p.h"
7762$ac_includes_default
7763#ifdef HAVE_CRYPT_H
7764#include <crypt.h>
7765#endif
7766
7767
7768int
7769main ()
7770{
7771#ifndef gethostname
7772  (void) gethostname;
7773#endif
7774
7775  ;
7776  return 0;
7777}
7778_ACEOF
7779rm -f conftest.$ac_objext
7780if { (ac_try="$ac_compile"
7781case "(($ac_try" in
7782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783  *) ac_try_echo=$ac_try;;
7784esac
7785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786  (eval "$ac_compile") 2>conftest.er1
7787  ac_status=$?
7788  grep -v '^ *+' conftest.er1 >conftest.err
7789  rm -f conftest.er1
7790  cat conftest.err >&5
7791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792  (exit $ac_status); } && {
7793	 test -z "$ac_c_werror_flag" ||
7794	 test ! -s conftest.err
7795       } && test -s conftest.$ac_objext; then
7796  ac_cv_have_decl_gethostname=yes
7797else
7798  echo "$as_me: failed program was:" >&5
7799sed 's/^/| /' conftest.$ac_ext >&5
7800
7801	ac_cv_have_decl_gethostname=no
7802fi
7803
7804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805fi
7806{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostname" >&5
7807echo "${ECHO_T}$ac_cv_have_decl_gethostname" >&6; }
7808if test $ac_cv_have_decl_gethostname = yes; then
7809
7810cat >>confdefs.h <<_ACEOF
7811#define HAVE_DECL_GETHOSTNAME 1
7812_ACEOF
7813
7814
7815else
7816  cat >>confdefs.h <<_ACEOF
7817#define HAVE_DECL_GETHOSTNAME 0
7818_ACEOF
7819
7820
7821fi
7822{ echo "$as_me:$LINENO: checking whether getpgrp is declared" >&5
7823echo $ECHO_N "checking whether getpgrp is declared... $ECHO_C" >&6; }
7824if test "${ac_cv_have_decl_getpgrp+set}" = set; then
7825  echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827  cat >conftest.$ac_ext <<_ACEOF
7828/* confdefs.h.  */
7829_ACEOF
7830cat confdefs.h >>conftest.$ac_ext
7831cat >>conftest.$ac_ext <<_ACEOF
7832/* end confdefs.h.  */
7833#include "config_p.h"
7834$ac_includes_default
7835#ifdef HAVE_CRYPT_H
7836#include <crypt.h>
7837#endif
7838
7839
7840int
7841main ()
7842{
7843#ifndef getpgrp
7844  (void) getpgrp;
7845#endif
7846
7847  ;
7848  return 0;
7849}
7850_ACEOF
7851rm -f conftest.$ac_objext
7852if { (ac_try="$ac_compile"
7853case "(($ac_try" in
7854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855  *) ac_try_echo=$ac_try;;
7856esac
7857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858  (eval "$ac_compile") 2>conftest.er1
7859  ac_status=$?
7860  grep -v '^ *+' conftest.er1 >conftest.err
7861  rm -f conftest.er1
7862  cat conftest.err >&5
7863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864  (exit $ac_status); } && {
7865	 test -z "$ac_c_werror_flag" ||
7866	 test ! -s conftest.err
7867       } && test -s conftest.$ac_objext; then
7868  ac_cv_have_decl_getpgrp=yes
7869else
7870  echo "$as_me: failed program was:" >&5
7871sed 's/^/| /' conftest.$ac_ext >&5
7872
7873	ac_cv_have_decl_getpgrp=no
7874fi
7875
7876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877fi
7878{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpgrp" >&5
7879echo "${ECHO_T}$ac_cv_have_decl_getpgrp" >&6; }
7880if test $ac_cv_have_decl_getpgrp = yes; then
7881
7882cat >>confdefs.h <<_ACEOF
7883#define HAVE_DECL_GETPGRP 1
7884_ACEOF
7885
7886
7887else
7888  cat >>confdefs.h <<_ACEOF
7889#define HAVE_DECL_GETPGRP 0
7890_ACEOF
7891
7892
7893fi
7894
7895
7896{ echo "$as_me:$LINENO: checking for setlocale" >&5
7897echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
7898if test "${ac_cv_func_setlocale+set}" = set; then
7899  echo $ECHO_N "(cached) $ECHO_C" >&6
7900else
7901  cat >conftest.$ac_ext <<_ACEOF
7902/* confdefs.h.  */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h.  */
7907/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
7908   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7909#define setlocale innocuous_setlocale
7910
7911/* System header to define __stub macros and hopefully few prototypes,
7912    which can conflict with char setlocale (); below.
7913    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7914    <limits.h> exists even on freestanding compilers.  */
7915
7916#ifdef __STDC__
7917# include <limits.h>
7918#else
7919# include <assert.h>
7920#endif
7921
7922#undef setlocale
7923
7924/* Override any GCC internal prototype to avoid an error.
7925   Use char because int might match the return type of a GCC
7926   builtin and then its argument prototype would still apply.  */
7927#ifdef __cplusplus
7928extern "C"
7929#endif
7930char setlocale ();
7931/* The GNU C library defines this for functions which it implements
7932    to always fail with ENOSYS.  Some functions are actually named
7933    something starting with __ and the normal name is an alias.  */
7934#if defined __stub_setlocale || defined __stub___setlocale
7935choke me
7936#endif
7937
7938int
7939main ()
7940{
7941return setlocale ();
7942  ;
7943  return 0;
7944}
7945_ACEOF
7946rm -f conftest.$ac_objext conftest$ac_exeext
7947if { (ac_try="$ac_link"
7948case "(($ac_try" in
7949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950  *) ac_try_echo=$ac_try;;
7951esac
7952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953  (eval "$ac_link") 2>conftest.er1
7954  ac_status=$?
7955  grep -v '^ *+' conftest.er1 >conftest.err
7956  rm -f conftest.er1
7957  cat conftest.err >&5
7958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959  (exit $ac_status); } && {
7960	 test -z "$ac_c_werror_flag" ||
7961	 test ! -s conftest.err
7962       } && test -s conftest$ac_exeext &&
7963       $as_test_x conftest$ac_exeext; then
7964  ac_cv_func_setlocale=yes
7965else
7966  echo "$as_me: failed program was:" >&5
7967sed 's/^/| /' conftest.$ac_ext >&5
7968
7969	ac_cv_func_setlocale=no
7970fi
7971
7972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7973      conftest$ac_exeext conftest.$ac_ext
7974fi
7975{ echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
7976echo "${ECHO_T}$ac_cv_func_setlocale" >&6; }
7977if test $ac_cv_func_setlocale = yes; then
7978  have_setlocale=yes
7979else
7980  have_setlocale=no
7981fi
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001for ac_func in catgets dup2 getauthid getcwd gethostname getpwent 	getutent memmove memset nice nl_langinfo sbrk setpgid setpriority 	strerror strstr sysconf wcwidth
8002do
8003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8004{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8006if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8007  echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009  cat >conftest.$ac_ext <<_ACEOF
8010/* confdefs.h.  */
8011_ACEOF
8012cat confdefs.h >>conftest.$ac_ext
8013cat >>conftest.$ac_ext <<_ACEOF
8014/* end confdefs.h.  */
8015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8016   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8017#define $ac_func innocuous_$ac_func
8018
8019/* System header to define __stub macros and hopefully few prototypes,
8020    which can conflict with char $ac_func (); below.
8021    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8022    <limits.h> exists even on freestanding compilers.  */
8023
8024#ifdef __STDC__
8025# include <limits.h>
8026#else
8027# include <assert.h>
8028#endif
8029
8030#undef $ac_func
8031
8032/* Override any GCC internal prototype to avoid an error.
8033   Use char because int might match the return type of a GCC
8034   builtin and then its argument prototype would still apply.  */
8035#ifdef __cplusplus
8036extern "C"
8037#endif
8038char $ac_func ();
8039/* The GNU C library defines this for functions which it implements
8040    to always fail with ENOSYS.  Some functions are actually named
8041    something starting with __ and the normal name is an alias.  */
8042#if defined __stub_$ac_func || defined __stub___$ac_func
8043choke me
8044#endif
8045
8046int
8047main ()
8048{
8049return $ac_func ();
8050  ;
8051  return 0;
8052}
8053_ACEOF
8054rm -f conftest.$ac_objext conftest$ac_exeext
8055if { (ac_try="$ac_link"
8056case "(($ac_try" in
8057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058  *) ac_try_echo=$ac_try;;
8059esac
8060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061  (eval "$ac_link") 2>conftest.er1
8062  ac_status=$?
8063  grep -v '^ *+' conftest.er1 >conftest.err
8064  rm -f conftest.er1
8065  cat conftest.err >&5
8066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067  (exit $ac_status); } && {
8068	 test -z "$ac_c_werror_flag" ||
8069	 test ! -s conftest.err
8070       } && test -s conftest$ac_exeext &&
8071       $as_test_x conftest$ac_exeext; then
8072  eval "$as_ac_var=yes"
8073else
8074  echo "$as_me: failed program was:" >&5
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077	eval "$as_ac_var=no"
8078fi
8079
8080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8081      conftest$ac_exeext conftest.$ac_ext
8082fi
8083ac_res=`eval echo '${'$as_ac_var'}'`
8084	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8085echo "${ECHO_T}$ac_res" >&6; }
8086if test `eval echo '${'$as_ac_var'}'` = yes; then
8087  cat >>confdefs.h <<_ACEOF
8088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8089_ACEOF
8090
8091fi
8092done
8093
8094{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
8095echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
8096if test "${ac_cv_func_getpgrp_void+set}" = set; then
8097  echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099  # Use it with a single arg.
8100cat >conftest.$ac_ext <<_ACEOF
8101/* confdefs.h.  */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h.  */
8106$ac_includes_default
8107int
8108main ()
8109{
8110getpgrp (0);
8111  ;
8112  return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext
8116if { (ac_try="$ac_compile"
8117case "(($ac_try" in
8118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119  *) ac_try_echo=$ac_try;;
8120esac
8121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122  (eval "$ac_compile") 2>conftest.er1
8123  ac_status=$?
8124  grep -v '^ *+' conftest.er1 >conftest.err
8125  rm -f conftest.er1
8126  cat conftest.err >&5
8127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128  (exit $ac_status); } && {
8129	 test -z "$ac_c_werror_flag" ||
8130	 test ! -s conftest.err
8131       } && test -s conftest.$ac_objext; then
8132  ac_cv_func_getpgrp_void=no
8133else
8134  echo "$as_me: failed program was:" >&5
8135sed 's/^/| /' conftest.$ac_ext >&5
8136
8137	ac_cv_func_getpgrp_void=yes
8138fi
8139
8140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141
8142fi
8143{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
8144echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
8145if test $ac_cv_func_getpgrp_void = yes; then
8146
8147cat >>confdefs.h <<\_ACEOF
8148#define GETPGRP_VOID 1
8149_ACEOF
8150
8151fi
8152
8153
8154  { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
8155echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
8156if test "${ac_cv_func_mbrtowc+set}" = set; then
8157  echo $ECHO_N "(cached) $ECHO_C" >&6
8158else
8159  cat >conftest.$ac_ext <<_ACEOF
8160/* confdefs.h.  */
8161_ACEOF
8162cat confdefs.h >>conftest.$ac_ext
8163cat >>conftest.$ac_ext <<_ACEOF
8164/* end confdefs.h.  */
8165#include <wchar.h>
8166int
8167main ()
8168{
8169wchar_t wc;
8170	      char const s[] = "";
8171	      size_t n = 1;
8172	      mbstate_t state;
8173	      return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
8174  ;
8175  return 0;
8176}
8177_ACEOF
8178rm -f conftest.$ac_objext conftest$ac_exeext
8179if { (ac_try="$ac_link"
8180case "(($ac_try" in
8181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182  *) ac_try_echo=$ac_try;;
8183esac
8184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185  (eval "$ac_link") 2>conftest.er1
8186  ac_status=$?
8187  grep -v '^ *+' conftest.er1 >conftest.err
8188  rm -f conftest.er1
8189  cat conftest.err >&5
8190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191  (exit $ac_status); } && {
8192	 test -z "$ac_c_werror_flag" ||
8193	 test ! -s conftest.err
8194       } && test -s conftest$ac_exeext &&
8195       $as_test_x conftest$ac_exeext; then
8196  ac_cv_func_mbrtowc=yes
8197else
8198  echo "$as_me: failed program was:" >&5
8199sed 's/^/| /' conftest.$ac_ext >&5
8200
8201	ac_cv_func_mbrtowc=no
8202fi
8203
8204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8205      conftest$ac_exeext conftest.$ac_ext
8206fi
8207{ echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
8208echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; }
8209  if test $ac_cv_func_mbrtowc = yes; then
8210
8211cat >>confdefs.h <<\_ACEOF
8212#define HAVE_MBRTOWC 1
8213_ACEOF
8214
8215  fi
8216
8217{ echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
8218echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
8219if test "${ac_cv_func_setpgrp_void+set}" = set; then
8220  echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222  if test "$cross_compiling" = yes; then
8223  { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
8224echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
8225   { (exit 1); exit 1; }; }
8226else
8227  cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h.  */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h.  */
8233$ac_includes_default
8234int
8235main ()
8236{
8237/* If this system has a BSD-style setpgrp which takes arguments,
8238  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
8239  exit successfully. */
8240  return setpgrp (1,1) != -1;
8241  ;
8242  return 0;
8243}
8244_ACEOF
8245rm -f conftest$ac_exeext
8246if { (ac_try="$ac_link"
8247case "(($ac_try" in
8248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249  *) ac_try_echo=$ac_try;;
8250esac
8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252  (eval "$ac_link") 2>&5
8253  ac_status=$?
8254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8256  { (case "(($ac_try" in
8257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258  *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261  (eval "$ac_try") 2>&5
8262  ac_status=$?
8263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264  (exit $ac_status); }; }; then
8265  ac_cv_func_setpgrp_void=no
8266else
8267  echo "$as_me: program exited with status $ac_status" >&5
8268echo "$as_me: failed program was:" >&5
8269sed 's/^/| /' conftest.$ac_ext >&5
8270
8271( exit $ac_status )
8272ac_cv_func_setpgrp_void=yes
8273fi
8274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8275fi
8276
8277
8278fi
8279{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
8280echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
8281if test $ac_cv_func_setpgrp_void = yes; then
8282
8283cat >>confdefs.h <<\_ACEOF
8284#define SETPGRP_VOID 1
8285_ACEOF
8286
8287fi
8288
8289{ echo "$as_me:$LINENO: checking for working strcoll" >&5
8290echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
8291if test "${ac_cv_func_strcoll_works+set}" = set; then
8292  echo $ECHO_N "(cached) $ECHO_C" >&6
8293else
8294  if test "$cross_compiling" = yes; then
8295  ac_cv_func_strcoll_works=no
8296else
8297  cat >conftest.$ac_ext <<_ACEOF
8298/* confdefs.h.  */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h.  */
8303$ac_includes_default
8304int
8305main ()
8306{
8307return (strcoll ("abc", "def") >= 0 ||
8308	 strcoll ("ABC", "DEF") >= 0 ||
8309	 strcoll ("123", "456") >= 0)
8310  ;
8311  return 0;
8312}
8313_ACEOF
8314rm -f conftest$ac_exeext
8315if { (ac_try="$ac_link"
8316case "(($ac_try" in
8317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318  *) ac_try_echo=$ac_try;;
8319esac
8320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321  (eval "$ac_link") 2>&5
8322  ac_status=$?
8323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8325  { (case "(($ac_try" in
8326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327  *) ac_try_echo=$ac_try;;
8328esac
8329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330  (eval "$ac_try") 2>&5
8331  ac_status=$?
8332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333  (exit $ac_status); }; }; then
8334  ac_cv_func_strcoll_works=yes
8335else
8336  echo "$as_me: program exited with status $ac_status" >&5
8337echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5
8339
8340( exit $ac_status )
8341ac_cv_func_strcoll_works=no
8342fi
8343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8344fi
8345
8346
8347fi
8348{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
8349echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
8350if test $ac_cv_func_strcoll_works = yes; then
8351
8352cat >>confdefs.h <<\_ACEOF
8353#define HAVE_STRCOLL 1
8354_ACEOF
8355
8356fi
8357
8358
8359
8360
8361
8362if test "$have_setlocale" != no; then
8363  # Check whether --enable-nls was given.
8364if test "${enable_nls+set}" = set; then
8365  enableval=$enable_nls;
8366else
8367  enable_nls=yes
8368fi
8369
8370  if test "x$enable_nls" != xno; then
8371
8372cat >>confdefs.h <<\_ACEOF
8373#define NLS 1
8374_ACEOF
8375
8376  fi
8377fi
8378
8379
8380# Check whether --with-hesiod was given.
8381if test "${with_hesiod+set}" = set; then
8382  withval=$with_hesiod; hesiod="$withval"
8383else
8384  hesiod=no
8385fi
8386
8387if test "$hesiod" != no; then
8388  HESLIB="-lhesiod"
8389  { echo "$as_me:$LINENO: checking for res_send" >&5
8390echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
8391if test "${ac_cv_func_res_send+set}" = set; then
8392  echo $ECHO_N "(cached) $ECHO_C" >&6
8393else
8394  cat >conftest.$ac_ext <<_ACEOF
8395/* confdefs.h.  */
8396_ACEOF
8397cat confdefs.h >>conftest.$ac_ext
8398cat >>conftest.$ac_ext <<_ACEOF
8399/* end confdefs.h.  */
8400/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
8401   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8402#define res_send innocuous_res_send
8403
8404/* System header to define __stub macros and hopefully few prototypes,
8405    which can conflict with char res_send (); below.
8406    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8407    <limits.h> exists even on freestanding compilers.  */
8408
8409#ifdef __STDC__
8410# include <limits.h>
8411#else
8412# include <assert.h>
8413#endif
8414
8415#undef res_send
8416
8417/* Override any GCC internal prototype to avoid an error.
8418   Use char because int might match the return type of a GCC
8419   builtin and then its argument prototype would still apply.  */
8420#ifdef __cplusplus
8421extern "C"
8422#endif
8423char res_send ();
8424/* The GNU C library defines this for functions which it implements
8425    to always fail with ENOSYS.  Some functions are actually named
8426    something starting with __ and the normal name is an alias.  */
8427#if defined __stub_res_send || defined __stub___res_send
8428choke me
8429#endif
8430
8431int
8432main ()
8433{
8434return res_send ();
8435  ;
8436  return 0;
8437}
8438_ACEOF
8439rm -f conftest.$ac_objext conftest$ac_exeext
8440if { (ac_try="$ac_link"
8441case "(($ac_try" in
8442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443  *) ac_try_echo=$ac_try;;
8444esac
8445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446  (eval "$ac_link") 2>conftest.er1
8447  ac_status=$?
8448  grep -v '^ *+' conftest.er1 >conftest.err
8449  rm -f conftest.er1
8450  cat conftest.err >&5
8451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452  (exit $ac_status); } && {
8453	 test -z "$ac_c_werror_flag" ||
8454	 test ! -s conftest.err
8455       } && test -s conftest$ac_exeext &&
8456       $as_test_x conftest$ac_exeext; then
8457  ac_cv_func_res_send=yes
8458else
8459  echo "$as_me: failed program was:" >&5
8460sed 's/^/| /' conftest.$ac_ext >&5
8461
8462	ac_cv_func_res_send=no
8463fi
8464
8465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8466      conftest$ac_exeext conftest.$ac_ext
8467fi
8468{ echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
8469echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
8470if test $ac_cv_func_res_send = yes; then
8471  :
8472else
8473  { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
8474echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
8475if test "${ac_cv_lib_resolv_res_send+set}" = set; then
8476  echo $ECHO_N "(cached) $ECHO_C" >&6
8477else
8478  ac_check_lib_save_LIBS=$LIBS
8479LIBS="-lresolv  $LIBS"
8480cat >conftest.$ac_ext <<_ACEOF
8481/* confdefs.h.  */
8482_ACEOF
8483cat confdefs.h >>conftest.$ac_ext
8484cat >>conftest.$ac_ext <<_ACEOF
8485/* end confdefs.h.  */
8486
8487/* Override any GCC internal prototype to avoid an error.
8488   Use char because int might match the return type of a GCC
8489   builtin and then its argument prototype would still apply.  */
8490#ifdef __cplusplus
8491extern "C"
8492#endif
8493char res_send ();
8494int
8495main ()
8496{
8497return res_send ();
8498  ;
8499  return 0;
8500}
8501_ACEOF
8502rm -f conftest.$ac_objext conftest$ac_exeext
8503if { (ac_try="$ac_link"
8504case "(($ac_try" in
8505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506  *) ac_try_echo=$ac_try;;
8507esac
8508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509  (eval "$ac_link") 2>conftest.er1
8510  ac_status=$?
8511  grep -v '^ *+' conftest.er1 >conftest.err
8512  rm -f conftest.er1
8513  cat conftest.err >&5
8514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515  (exit $ac_status); } && {
8516	 test -z "$ac_c_werror_flag" ||
8517	 test ! -s conftest.err
8518       } && test -s conftest$ac_exeext &&
8519       $as_test_x conftest$ac_exeext; then
8520  ac_cv_lib_resolv_res_send=yes
8521else
8522  echo "$as_me: failed program was:" >&5
8523sed 's/^/| /' conftest.$ac_ext >&5
8524
8525	ac_cv_lib_resolv_res_send=no
8526fi
8527
8528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8529      conftest$ac_exeext conftest.$ac_ext
8530LIBS=$ac_check_lib_save_LIBS
8531fi
8532{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
8533echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
8534if test $ac_cv_lib_resolv_res_send = yes; then
8535  HESLIB="$HESLIB -lresolv"
8536fi
8537
8538fi
8539
8540  HESDEF=-DHESIOD
8541  if test "$hesiod" != yes; then
8542    HESDEF="$HESDEF -I$hesiod/include"
8543    HESLIB="-L$hesiod/lib $HESLIB"
8544  fi
8545fi
8546
8547
8548
8549ac_config_files="$ac_config_files Makefile"
8550
8551cat >confcache <<\_ACEOF
8552# This file is a shell script that caches the results of configure
8553# tests run on this system so they can be shared between configure
8554# scripts and configure runs, see configure's option --config-cache.
8555# It is not useful on other systems.  If it contains results you don't
8556# want to keep, you may remove or edit it.
8557#
8558# config.status only pays attention to the cache file if you give it
8559# the --recheck option to rerun configure.
8560#
8561# `ac_cv_env_foo' variables (set or unset) will be overridden when
8562# loading this file, other *unset* `ac_cv_foo' will be assigned the
8563# following values.
8564
8565_ACEOF
8566
8567# The following way of writing the cache mishandles newlines in values,
8568# but we know of no workaround that is simple, portable, and efficient.
8569# So, we kill variables containing newlines.
8570# Ultrix sh set writes to stderr and can't be redirected directly,
8571# and sets the high bit in the cache file unless we assign to the vars.
8572(
8573  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8574    eval ac_val=\$$ac_var
8575    case $ac_val in #(
8576    *${as_nl}*)
8577      case $ac_var in #(
8578      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8579echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8580      esac
8581      case $ac_var in #(
8582      _ | IFS | as_nl) ;; #(
8583      *) $as_unset $ac_var ;;
8584      esac ;;
8585    esac
8586  done
8587
8588  (set) 2>&1 |
8589    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8590    *${as_nl}ac_space=\ *)
8591      # `set' does not quote correctly, so add quotes (double-quote
8592      # substitution turns \\\\ into \\, and sed turns \\ into \).
8593      sed -n \
8594	"s/'/'\\\\''/g;
8595	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8596      ;; #(
8597    *)
8598      # `set' quotes correctly as required by POSIX, so do not add quotes.
8599      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8600      ;;
8601    esac |
8602    sort
8603) |
8604  sed '
8605     /^ac_cv_env_/b end
8606     t clear
8607     :clear
8608     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8609     t end
8610     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8611     :end' >>confcache
8612if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8613  if test -w "$cache_file"; then
8614    test "x$cache_file" != "x/dev/null" &&
8615      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8616echo "$as_me: updating cache $cache_file" >&6;}
8617    cat confcache >$cache_file
8618  else
8619    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8620echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8621  fi
8622fi
8623rm -f confcache
8624
8625test "x$prefix" = xNONE && prefix=$ac_default_prefix
8626# Let make expand exec_prefix.
8627test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8628
8629DEFS=-DHAVE_CONFIG_H
8630
8631ac_libobjs=
8632ac_ltlibobjs=
8633for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8634  # 1. Remove the extension, and $U if already installed.
8635  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8636  ac_i=`echo "$ac_i" | sed "$ac_script"`
8637  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8638  #    will be set to the directory where LIBOBJS objects are built.
8639  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8640  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8641done
8642LIBOBJS=$ac_libobjs
8643
8644LTLIBOBJS=$ac_ltlibobjs
8645
8646
8647
8648: ${CONFIG_STATUS=./config.status}
8649ac_clean_files_save=$ac_clean_files
8650ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8651{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8652echo "$as_me: creating $CONFIG_STATUS" >&6;}
8653cat >$CONFIG_STATUS <<_ACEOF
8654#! $SHELL
8655# Generated by $as_me.
8656# Run this file to recreate the current configuration.
8657# Compiler output produced by configure, useful for debugging
8658# configure, is in config.log if it exists.
8659
8660debug=false
8661ac_cs_recheck=false
8662ac_cs_silent=false
8663SHELL=\${CONFIG_SHELL-$SHELL}
8664_ACEOF
8665
8666cat >>$CONFIG_STATUS <<\_ACEOF
8667## --------------------- ##
8668## M4sh Initialization.  ##
8669## --------------------- ##
8670
8671# Be more Bourne compatible
8672DUALCASE=1; export DUALCASE # for MKS sh
8673if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8674  emulate sh
8675  NULLCMD=:
8676  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8677  # is contrary to our usage.  Disable this feature.
8678  alias -g '${1+"$@"}'='"$@"'
8679  setopt NO_GLOB_SUBST
8680else
8681  case `(set -o) 2>/dev/null` in
8682  *posix*) set -o posix ;;
8683esac
8684
8685fi
8686
8687
8688
8689
8690# PATH needs CR
8691# Avoid depending upon Character Ranges.
8692as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8693as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8694as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8695as_cr_digits='0123456789'
8696as_cr_alnum=$as_cr_Letters$as_cr_digits
8697
8698# The user is always right.
8699if test "${PATH_SEPARATOR+set}" != set; then
8700  echo "#! /bin/sh" >conf$$.sh
8701  echo  "exit 0"   >>conf$$.sh
8702  chmod +x conf$$.sh
8703  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8704    PATH_SEPARATOR=';'
8705  else
8706    PATH_SEPARATOR=:
8707  fi
8708  rm -f conf$$.sh
8709fi
8710
8711# Support unset when possible.
8712if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8713  as_unset=unset
8714else
8715  as_unset=false
8716fi
8717
8718
8719# IFS
8720# We need space, tab and new line, in precisely that order.  Quoting is
8721# there to prevent editors from complaining about space-tab.
8722# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8723# splitting by setting IFS to empty value.)
8724as_nl='
8725'
8726IFS=" ""	$as_nl"
8727
8728# Find who we are.  Look in the path if we contain no directory separator.
8729case $0 in
8730  *[\\/]* ) as_myself=$0 ;;
8731  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732for as_dir in $PATH
8733do
8734  IFS=$as_save_IFS
8735  test -z "$as_dir" && as_dir=.
8736  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8737done
8738IFS=$as_save_IFS
8739
8740     ;;
8741esac
8742# We did not find ourselves, most probably we were run as `sh COMMAND'
8743# in which case we are not to be found in the path.
8744if test "x$as_myself" = x; then
8745  as_myself=$0
8746fi
8747if test ! -f "$as_myself"; then
8748  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8749  { (exit 1); exit 1; }
8750fi
8751
8752# Work around bugs in pre-3.0 UWIN ksh.
8753for as_var in ENV MAIL MAILPATH
8754do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8755done
8756PS1='$ '
8757PS2='> '
8758PS4='+ '
8759
8760# NLS nuisances.
8761for as_var in \
8762  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8763  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8764  LC_TELEPHONE LC_TIME
8765do
8766  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8767    eval $as_var=C; export $as_var
8768  else
8769    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8770  fi
8771done
8772
8773# Required to use basename.
8774if expr a : '\(a\)' >/dev/null 2>&1 &&
8775   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8776  as_expr=expr
8777else
8778  as_expr=false
8779fi
8780
8781if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8782  as_basename=basename
8783else
8784  as_basename=false
8785fi
8786
8787
8788# Name of the executable.
8789as_me=`$as_basename -- "$0" ||
8790$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8791	 X"$0" : 'X\(//\)$' \| \
8792	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8793echo X/"$0" |
8794    sed '/^.*\/\([^/][^/]*\)\/*$/{
8795	    s//\1/
8796	    q
8797	  }
8798	  /^X\/\(\/\/\)$/{
8799	    s//\1/
8800	    q
8801	  }
8802	  /^X\/\(\/\).*/{
8803	    s//\1/
8804	    q
8805	  }
8806	  s/.*/./; q'`
8807
8808# CDPATH.
8809$as_unset CDPATH
8810
8811
8812
8813  as_lineno_1=$LINENO
8814  as_lineno_2=$LINENO
8815  test "x$as_lineno_1" != "x$as_lineno_2" &&
8816  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8817
8818  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8819  # uniformly replaced by the line number.  The first 'sed' inserts a
8820  # line-number line after each line using $LINENO; the second 'sed'
8821  # does the real work.  The second script uses 'N' to pair each
8822  # line-number line with the line containing $LINENO, and appends
8823  # trailing '-' during substitution so that $LINENO is not a special
8824  # case at line end.
8825  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8826  # scripts with optimization help from Paolo Bonzini.  Blame Lee
8827  # E. McMahon (1931-1989) for sed's syntax.  :-)
8828  sed -n '
8829    p
8830    /[$]LINENO/=
8831  ' <$as_myself |
8832    sed '
8833      s/[$]LINENO.*/&-/
8834      t lineno
8835      b
8836      :lineno
8837      N
8838      :loop
8839      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8840      t loop
8841      s/-\n.*//
8842    ' >$as_me.lineno &&
8843  chmod +x "$as_me.lineno" ||
8844    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8845   { (exit 1); exit 1; }; }
8846
8847  # Don't try to exec as it changes $[0], causing all sort of problems
8848  # (the dirname of $[0] is not the place where we might find the
8849  # original and so on.  Autoconf is especially sensitive to this).
8850  . "./$as_me.lineno"
8851  # Exit status is that of the last command.
8852  exit
8853}
8854
8855
8856if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8857  as_dirname=dirname
8858else
8859  as_dirname=false
8860fi
8861
8862ECHO_C= ECHO_N= ECHO_T=
8863case `echo -n x` in
8864-n*)
8865  case `echo 'x\c'` in
8866  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8867  *)   ECHO_C='\c';;
8868  esac;;
8869*)
8870  ECHO_N='-n';;
8871esac
8872
8873if expr a : '\(a\)' >/dev/null 2>&1 &&
8874   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8875  as_expr=expr
8876else
8877  as_expr=false
8878fi
8879
8880rm -f conf$$ conf$$.exe conf$$.file
8881if test -d conf$$.dir; then
8882  rm -f conf$$.dir/conf$$.file
8883else
8884  rm -f conf$$.dir
8885  mkdir conf$$.dir
8886fi
8887echo >conf$$.file
8888if ln -s conf$$.file conf$$ 2>/dev/null; then
8889  as_ln_s='ln -s'
8890  # ... but there are two gotchas:
8891  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8892  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8893  # In both cases, we have to default to `cp -p'.
8894  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8895    as_ln_s='cp -p'
8896elif ln conf$$.file conf$$ 2>/dev/null; then
8897  as_ln_s=ln
8898else
8899  as_ln_s='cp -p'
8900fi
8901rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8902rmdir conf$$.dir 2>/dev/null
8903
8904if mkdir -p . 2>/dev/null; then
8905  as_mkdir_p=:
8906else
8907  test -d ./-p && rmdir ./-p
8908  as_mkdir_p=false
8909fi
8910
8911if test -x / >/dev/null 2>&1; then
8912  as_test_x='test -x'
8913else
8914  if ls -dL / >/dev/null 2>&1; then
8915    as_ls_L_option=L
8916  else
8917    as_ls_L_option=
8918  fi
8919  as_test_x='
8920    eval sh -c '\''
8921      if test -d "$1"; then
8922        test -d "$1/.";
8923      else
8924	case $1 in
8925        -*)set "./$1";;
8926	esac;
8927	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8928	???[sx]*):;;*)false;;esac;fi
8929    '\'' sh
8930  '
8931fi
8932as_executable_p=$as_test_x
8933
8934# Sed expression to map a string onto a valid CPP name.
8935as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8936
8937# Sed expression to map a string onto a valid variable name.
8938as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8939
8940
8941exec 6>&1
8942
8943# Save the log message, to keep $[0] and so on meaningful, and to
8944# report actual input values of CONFIG_FILES etc. instead of their
8945# values after options handling.
8946ac_log="
8947This file was extended by tcsh $as_me 6.17.00, which was
8948generated by GNU Autoconf 2.61.  Invocation command line was
8949
8950  CONFIG_FILES    = $CONFIG_FILES
8951  CONFIG_HEADERS  = $CONFIG_HEADERS
8952  CONFIG_LINKS    = $CONFIG_LINKS
8953  CONFIG_COMMANDS = $CONFIG_COMMANDS
8954  $ $0 $@
8955
8956on `(hostname || uname -n) 2>/dev/null | sed 1q`
8957"
8958
8959_ACEOF
8960
8961cat >>$CONFIG_STATUS <<_ACEOF
8962# Files that config.status was made for.
8963config_files="$ac_config_files"
8964config_headers="$ac_config_headers"
8965config_commands="$ac_config_commands"
8966
8967_ACEOF
8968
8969cat >>$CONFIG_STATUS <<\_ACEOF
8970ac_cs_usage="\
8971\`$as_me' instantiates files from templates according to the
8972current configuration.
8973
8974Usage: $0 [OPTIONS] [FILE]...
8975
8976  -h, --help       print this help, then exit
8977  -V, --version    print version number and configuration settings, then exit
8978  -q, --quiet      do not print progress messages
8979  -d, --debug      don't remove temporary files
8980      --recheck    update $as_me by reconfiguring in the same conditions
8981  --file=FILE[:TEMPLATE]
8982		   instantiate the configuration file FILE
8983  --header=FILE[:TEMPLATE]
8984		   instantiate the configuration header FILE
8985
8986Configuration files:
8987$config_files
8988
8989Configuration headers:
8990$config_headers
8991
8992Configuration commands:
8993$config_commands
8994
8995Report bugs to <bug-autoconf@gnu.org>."
8996
8997_ACEOF
8998cat >>$CONFIG_STATUS <<_ACEOF
8999ac_cs_version="\\
9000tcsh config.status 6.17.00
9001configured by $0, generated by GNU Autoconf 2.61,
9002  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9003
9004Copyright (C) 2006 Free Software Foundation, Inc.
9005This config.status script is free software; the Free Software Foundation
9006gives unlimited permission to copy, distribute and modify it."
9007
9008ac_pwd='$ac_pwd'
9009srcdir='$srcdir'
9010_ACEOF
9011
9012cat >>$CONFIG_STATUS <<\_ACEOF
9013# If no file are specified by the user, then we need to provide default
9014# value.  By we need to know if files were specified by the user.
9015ac_need_defaults=:
9016while test $# != 0
9017do
9018  case $1 in
9019  --*=*)
9020    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9021    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9022    ac_shift=:
9023    ;;
9024  *)
9025    ac_option=$1
9026    ac_optarg=$2
9027    ac_shift=shift
9028    ;;
9029  esac
9030
9031  case $ac_option in
9032  # Handling of the options.
9033  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9034    ac_cs_recheck=: ;;
9035  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9036    echo "$ac_cs_version"; exit ;;
9037  --debug | --debu | --deb | --de | --d | -d )
9038    debug=: ;;
9039  --file | --fil | --fi | --f )
9040    $ac_shift
9041    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9042    ac_need_defaults=false;;
9043  --header | --heade | --head | --hea )
9044    $ac_shift
9045    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9046    ac_need_defaults=false;;
9047  --he | --h)
9048    # Conflict between --help and --header
9049    { echo "$as_me: error: ambiguous option: $1
9050Try \`$0 --help' for more information." >&2
9051   { (exit 1); exit 1; }; };;
9052  --help | --hel | -h )
9053    echo "$ac_cs_usage"; exit ;;
9054  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9055  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9056    ac_cs_silent=: ;;
9057
9058  # This is an error.
9059  -*) { echo "$as_me: error: unrecognized option: $1
9060Try \`$0 --help' for more information." >&2
9061   { (exit 1); exit 1; }; } ;;
9062
9063  *) ac_config_targets="$ac_config_targets $1"
9064     ac_need_defaults=false ;;
9065
9066  esac
9067  shift
9068done
9069
9070ac_configure_extra_args=
9071
9072if $ac_cs_silent; then
9073  exec 6>/dev/null
9074  ac_configure_extra_args="$ac_configure_extra_args --silent"
9075fi
9076
9077_ACEOF
9078cat >>$CONFIG_STATUS <<_ACEOF
9079if \$ac_cs_recheck; then
9080  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9081  CONFIG_SHELL=$SHELL
9082  export CONFIG_SHELL
9083  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9084fi
9085
9086_ACEOF
9087cat >>$CONFIG_STATUS <<\_ACEOF
9088exec 5>>config.log
9089{
9090  echo
9091  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9092## Running $as_me. ##
9093_ASBOX
9094  echo "$ac_log"
9095} >&5
9096
9097_ACEOF
9098cat >>$CONFIG_STATUS <<_ACEOF
9099_ACEOF
9100
9101cat >>$CONFIG_STATUS <<\_ACEOF
9102
9103# Handling of arguments.
9104for ac_config_target in $ac_config_targets
9105do
9106  case $ac_config_target in
9107    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9108    "./atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS ./atconfig" ;;
9109    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9110
9111  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9112echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9113   { (exit 1); exit 1; }; };;
9114  esac
9115done
9116
9117
9118# If the user did not use the arguments to specify the items to instantiate,
9119# then the envvar interface is used.  Set only those that are not.
9120# We use the long form for the default assignment because of an extremely
9121# bizarre bug on SunOS 4.1.3.
9122if $ac_need_defaults; then
9123  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9124  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9125  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9126fi
9127
9128# Have a temporary directory for convenience.  Make it in the build tree
9129# simply because there is no reason against having it here, and in addition,
9130# creating and moving files from /tmp can sometimes cause problems.
9131# Hook for its removal unless debugging.
9132# Note that there is a small window in which the directory will not be cleaned:
9133# after its creation but before its name has been assigned to `$tmp'.
9134$debug ||
9135{
9136  tmp=
9137  trap 'exit_status=$?
9138  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9139' 0
9140  trap '{ (exit 1); exit 1; }' 1 2 13 15
9141}
9142# Create a (secure) tmp directory for tmp files.
9143
9144{
9145  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9146  test -n "$tmp" && test -d "$tmp"
9147}  ||
9148{
9149  tmp=./conf$$-$RANDOM
9150  (umask 077 && mkdir "$tmp")
9151} ||
9152{
9153   echo "$me: cannot create a temporary directory in ." >&2
9154   { (exit 1); exit 1; }
9155}
9156
9157#
9158# Set up the sed scripts for CONFIG_FILES section.
9159#
9160
9161# No need to generate the scripts if there are no CONFIG_FILES.
9162# This happens for instance when ./config.status config.h
9163if test -n "$CONFIG_FILES"; then
9164
9165_ACEOF
9166
9167
9168
9169ac_delim='%!_!# '
9170for ac_last_try in false false false false false :; do
9171  cat >conf$$subs.sed <<_ACEOF
9172SHELL!$SHELL$ac_delim
9173PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9174PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9175PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9176PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9177PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9178PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9179exec_prefix!$exec_prefix$ac_delim
9180prefix!$prefix$ac_delim
9181program_transform_name!$program_transform_name$ac_delim
9182bindir!$bindir$ac_delim
9183sbindir!$sbindir$ac_delim
9184libexecdir!$libexecdir$ac_delim
9185datarootdir!$datarootdir$ac_delim
9186datadir!$datadir$ac_delim
9187sysconfdir!$sysconfdir$ac_delim
9188sharedstatedir!$sharedstatedir$ac_delim
9189localstatedir!$localstatedir$ac_delim
9190includedir!$includedir$ac_delim
9191oldincludedir!$oldincludedir$ac_delim
9192docdir!$docdir$ac_delim
9193infodir!$infodir$ac_delim
9194htmldir!$htmldir$ac_delim
9195dvidir!$dvidir$ac_delim
9196pdfdir!$pdfdir$ac_delim
9197psdir!$psdir$ac_delim
9198libdir!$libdir$ac_delim
9199localedir!$localedir$ac_delim
9200mandir!$mandir$ac_delim
9201DEFS!$DEFS$ac_delim
9202ECHO_C!$ECHO_C$ac_delim
9203ECHO_N!$ECHO_N$ac_delim
9204ECHO_T!$ECHO_T$ac_delim
9205LIBS!$LIBS$ac_delim
9206build_alias!$build_alias$ac_delim
9207host_alias!$host_alias$ac_delim
9208target_alias!$target_alias$ac_delim
9209build!$build$ac_delim
9210build_cpu!$build_cpu$ac_delim
9211build_vendor!$build_vendor$ac_delim
9212build_os!$build_os$ac_delim
9213host!$host$ac_delim
9214host_cpu!$host_cpu$ac_delim
9215host_vendor!$host_vendor$ac_delim
9216host_os!$host_os$ac_delim
9217CC!$CC$ac_delim
9218CFLAGS!$CFLAGS$ac_delim
9219LDFLAGS!$LDFLAGS$ac_delim
9220CPPFLAGS!$CPPFLAGS$ac_delim
9221ac_ct_CC!$ac_ct_CC$ac_delim
9222EXEEXT!$EXEEXT$ac_delim
9223OBJEXT!$OBJEXT$ac_delim
9224CPP!$CPP$ac_delim
9225GREP!$GREP$ac_delim
9226EGREP!$EGREP$ac_delim
9227LIBICONV!$LIBICONV$ac_delim
9228LTLIBICONV!$LTLIBICONV$ac_delim
9229DFLAGS!$DFLAGS$ac_delim
9230HESDEF!$HESDEF$ac_delim
9231HESLIB!$HESLIB$ac_delim
9232LIBOBJS!$LIBOBJS$ac_delim
9233LTLIBOBJS!$LTLIBOBJS$ac_delim
9234_ACEOF
9235
9236  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
9237    break
9238  elif $ac_last_try; then
9239    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9240echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9241   { (exit 1); exit 1; }; }
9242  else
9243    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9244  fi
9245done
9246
9247ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9248if test -n "$ac_eof"; then
9249  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9250  ac_eof=`expr $ac_eof + 1`
9251fi
9252
9253cat >>$CONFIG_STATUS <<_ACEOF
9254cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9255/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9256_ACEOF
9257sed '
9258s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9259s/^/s,@/; s/!/@,|#_!!_#|/
9260:n
9261t n
9262s/'"$ac_delim"'$/,g/; t
9263s/$/\\/; p
9264N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9265' >>$CONFIG_STATUS <conf$$subs.sed
9266rm -f conf$$subs.sed
9267cat >>$CONFIG_STATUS <<_ACEOF
9268:end
9269s/|#_!!_#|//g
9270CEOF$ac_eof
9271_ACEOF
9272
9273
9274# VPATH may cause trouble with some makes, so we remove $(srcdir),
9275# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9276# trailing colons and then remove the whole line if VPATH becomes empty
9277# (actually we leave an empty line to preserve line numbers).
9278if test "x$srcdir" = x.; then
9279  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
9280s/:*\$(srcdir):*/:/
9281s/:*\${srcdir}:*/:/
9282s/:*@srcdir@:*/:/
9283s/^\([^=]*=[	 ]*\):*/\1/
9284s/:*$//
9285s/^[^=]*=[	 ]*$//
9286}'
9287fi
9288
9289cat >>$CONFIG_STATUS <<\_ACEOF
9290fi # test -n "$CONFIG_FILES"
9291
9292
9293for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
9294do
9295  case $ac_tag in
9296  :[FHLC]) ac_mode=$ac_tag; continue;;
9297  esac
9298  case $ac_mode$ac_tag in
9299  :[FHL]*:*);;
9300  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9301echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9302   { (exit 1); exit 1; }; };;
9303  :[FH]-) ac_tag=-:-;;
9304  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9305  esac
9306  ac_save_IFS=$IFS
9307  IFS=:
9308  set x $ac_tag
9309  IFS=$ac_save_IFS
9310  shift
9311  ac_file=$1
9312  shift
9313
9314  case $ac_mode in
9315  :L) ac_source=$1;;
9316  :[FH])
9317    ac_file_inputs=
9318    for ac_f
9319    do
9320      case $ac_f in
9321      -) ac_f="$tmp/stdin";;
9322      *) # Look for the file first in the build tree, then in the source tree
9323	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
9324	 # because $ac_f cannot contain `:'.
9325	 test -f "$ac_f" ||
9326	   case $ac_f in
9327	   [\\/$]*) false;;
9328	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9329	   esac ||
9330	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9331echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9332   { (exit 1); exit 1; }; };;
9333      esac
9334      ac_file_inputs="$ac_file_inputs $ac_f"
9335    done
9336
9337    # Let's still pretend it is `configure' which instantiates (i.e., don't
9338    # use $as_me), people would be surprised to read:
9339    #    /* config.h.  Generated by config.status.  */
9340    configure_input="Generated from "`IFS=:
9341	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9342    if test x"$ac_file" != x-; then
9343      configure_input="$ac_file.  $configure_input"
9344      { echo "$as_me:$LINENO: creating $ac_file" >&5
9345echo "$as_me: creating $ac_file" >&6;}
9346    fi
9347
9348    case $ac_tag in
9349    *:-:* | *:-) cat >"$tmp/stdin";;
9350    esac
9351    ;;
9352  esac
9353
9354  ac_dir=`$as_dirname -- "$ac_file" ||
9355$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9356	 X"$ac_file" : 'X\(//\)[^/]' \| \
9357	 X"$ac_file" : 'X\(//\)$' \| \
9358	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9359echo X"$ac_file" |
9360    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9361	    s//\1/
9362	    q
9363	  }
9364	  /^X\(\/\/\)[^/].*/{
9365	    s//\1/
9366	    q
9367	  }
9368	  /^X\(\/\/\)$/{
9369	    s//\1/
9370	    q
9371	  }
9372	  /^X\(\/\).*/{
9373	    s//\1/
9374	    q
9375	  }
9376	  s/.*/./; q'`
9377  { as_dir="$ac_dir"
9378  case $as_dir in #(
9379  -*) as_dir=./$as_dir;;
9380  esac
9381  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9382    as_dirs=
9383    while :; do
9384      case $as_dir in #(
9385      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9386      *) as_qdir=$as_dir;;
9387      esac
9388      as_dirs="'$as_qdir' $as_dirs"
9389      as_dir=`$as_dirname -- "$as_dir" ||
9390$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9391	 X"$as_dir" : 'X\(//\)[^/]' \| \
9392	 X"$as_dir" : 'X\(//\)$' \| \
9393	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9394echo X"$as_dir" |
9395    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9396	    s//\1/
9397	    q
9398	  }
9399	  /^X\(\/\/\)[^/].*/{
9400	    s//\1/
9401	    q
9402	  }
9403	  /^X\(\/\/\)$/{
9404	    s//\1/
9405	    q
9406	  }
9407	  /^X\(\/\).*/{
9408	    s//\1/
9409	    q
9410	  }
9411	  s/.*/./; q'`
9412      test -d "$as_dir" && break
9413    done
9414    test -z "$as_dirs" || eval "mkdir $as_dirs"
9415  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9416echo "$as_me: error: cannot create directory $as_dir" >&2;}
9417   { (exit 1); exit 1; }; }; }
9418  ac_builddir=.
9419
9420case "$ac_dir" in
9421.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9422*)
9423  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9424  # A ".." for each directory in $ac_dir_suffix.
9425  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9426  case $ac_top_builddir_sub in
9427  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9428  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9429  esac ;;
9430esac
9431ac_abs_top_builddir=$ac_pwd
9432ac_abs_builddir=$ac_pwd$ac_dir_suffix
9433# for backward compatibility:
9434ac_top_builddir=$ac_top_build_prefix
9435
9436case $srcdir in
9437  .)  # We are building in place.
9438    ac_srcdir=.
9439    ac_top_srcdir=$ac_top_builddir_sub
9440    ac_abs_top_srcdir=$ac_pwd ;;
9441  [\\/]* | ?:[\\/]* )  # Absolute name.
9442    ac_srcdir=$srcdir$ac_dir_suffix;
9443    ac_top_srcdir=$srcdir
9444    ac_abs_top_srcdir=$srcdir ;;
9445  *) # Relative name.
9446    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9447    ac_top_srcdir=$ac_top_build_prefix$srcdir
9448    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9449esac
9450ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9451
9452
9453  case $ac_mode in
9454  :F)
9455  #
9456  # CONFIG_FILE
9457  #
9458
9459_ACEOF
9460
9461cat >>$CONFIG_STATUS <<\_ACEOF
9462# If the template does not know about datarootdir, expand it.
9463# FIXME: This hack should be removed a few years after 2.60.
9464ac_datarootdir_hack=; ac_datarootdir_seen=
9465
9466case `sed -n '/datarootdir/ {
9467  p
9468  q
9469}
9470/@datadir@/p
9471/@docdir@/p
9472/@infodir@/p
9473/@localedir@/p
9474/@mandir@/p
9475' $ac_file_inputs` in
9476*datarootdir*) ac_datarootdir_seen=yes;;
9477*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9478  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9479echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9480_ACEOF
9481cat >>$CONFIG_STATUS <<_ACEOF
9482  ac_datarootdir_hack='
9483  s&@datadir@&$datadir&g
9484  s&@docdir@&$docdir&g
9485  s&@infodir@&$infodir&g
9486  s&@localedir@&$localedir&g
9487  s&@mandir@&$mandir&g
9488    s&\\\${datarootdir}&$datarootdir&g' ;;
9489esac
9490_ACEOF
9491
9492# Neutralize VPATH when `$srcdir' = `.'.
9493# Shell code in configure.ac might set extrasub.
9494# FIXME: do we really want to maintain this feature?
9495cat >>$CONFIG_STATUS <<_ACEOF
9496  sed "$ac_vpsub
9497$extrasub
9498_ACEOF
9499cat >>$CONFIG_STATUS <<\_ACEOF
9500:t
9501/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9502s&@configure_input@&$configure_input&;t t
9503s&@top_builddir@&$ac_top_builddir_sub&;t t
9504s&@srcdir@&$ac_srcdir&;t t
9505s&@abs_srcdir@&$ac_abs_srcdir&;t t
9506s&@top_srcdir@&$ac_top_srcdir&;t t
9507s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9508s&@builddir@&$ac_builddir&;t t
9509s&@abs_builddir@&$ac_abs_builddir&;t t
9510s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9511$ac_datarootdir_hack
9512" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9513
9514test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9515  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9516  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9517  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9518which seems to be undefined.  Please make sure it is defined." >&5
9519echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9520which seems to be undefined.  Please make sure it is defined." >&2;}
9521
9522  rm -f "$tmp/stdin"
9523  case $ac_file in
9524  -) cat "$tmp/out"; rm -f "$tmp/out";;
9525  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9526  esac
9527 ;;
9528  :H)
9529  #
9530  # CONFIG_HEADER
9531  #
9532_ACEOF
9533
9534# Transform confdefs.h into a sed script `conftest.defines', that
9535# substitutes the proper values into config.h.in to produce config.h.
9536rm -f conftest.defines conftest.tail
9537# First, append a space to every undef/define line, to ease matching.
9538echo 's/$/ /' >conftest.defines
9539# Then, protect against being on the right side of a sed subst, or in
9540# an unquoted here document, in config.status.  If some macros were
9541# called several times there might be several #defines for the same
9542# symbol, which is useless.  But do not sort them, since the last
9543# AC_DEFINE must be honored.
9544ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9545# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9546# NAME is the cpp macro being defined, VALUE is the value it is being given.
9547# PARAMS is the parameter list in the macro definition--in most cases, it's
9548# just an empty string.
9549ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
9550ac_dB='\\)[	 (].*,\\1define\\2'
9551ac_dC=' '
9552ac_dD=' ,'
9553
9554uniq confdefs.h |
9555  sed -n '
9556	t rset
9557	:rset
9558	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
9559	t ok
9560	d
9561	:ok
9562	s/[\\&,]/\\&/g
9563	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9564	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9565  ' >>conftest.defines
9566
9567# Remove the space that was appended to ease matching.
9568# Then replace #undef with comments.  This is necessary, for
9569# example, in the case of _POSIX_SOURCE, which is predefined and required
9570# on some systems where configure will not decide to define it.
9571# (The regexp can be short, since the line contains either #define or #undef.)
9572echo 's/ $//
9573s,^[	 #]*u.*,/* & */,' >>conftest.defines
9574
9575# Break up conftest.defines:
9576ac_max_sed_lines=50
9577
9578# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9579# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9580# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9581# et cetera.
9582ac_in='$ac_file_inputs'
9583ac_out='"$tmp/out1"'
9584ac_nxt='"$tmp/out2"'
9585
9586while :
9587do
9588  # Write a here document:
9589    cat >>$CONFIG_STATUS <<_ACEOF
9590    # First, check the format of the line:
9591    cat >"\$tmp/defines.sed" <<\\CEOF
9592/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
9593/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
9594b
9595:def
9596_ACEOF
9597  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9598  echo 'CEOF
9599    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9600  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9601  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9602  grep . conftest.tail >/dev/null || break
9603  rm -f conftest.defines
9604  mv conftest.tail conftest.defines
9605done
9606rm -f conftest.defines conftest.tail
9607
9608echo "ac_result=$ac_in" >>$CONFIG_STATUS
9609cat >>$CONFIG_STATUS <<\_ACEOF
9610  if test x"$ac_file" != x-; then
9611    echo "/* $configure_input  */" >"$tmp/config.h"
9612    cat "$ac_result" >>"$tmp/config.h"
9613    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9614      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9615echo "$as_me: $ac_file is unchanged" >&6;}
9616    else
9617      rm -f $ac_file
9618      mv "$tmp/config.h" $ac_file
9619    fi
9620  else
9621    echo "/* $configure_input  */"
9622    cat "$ac_result"
9623  fi
9624  rm -f "$tmp/out12"
9625 ;;
9626
9627  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9628echo "$as_me: executing $ac_file commands" >&6;}
9629 ;;
9630  esac
9631
9632
9633  case $ac_file$ac_mode in
9634    "./atconfig":C) cat >./atconfig <<ATEOF
9635# Configurable variable values for building test suites.
9636# Generated by $0.
9637# Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
9638
9639# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
9640at_testdir='.'
9641abs_builddir='$ac_abs_builddir'
9642at_srcdir='$ac_srcdir'
9643abs_srcdir='$ac_abs_srcdir'
9644at_top_srcdir='$ac_top_srcdir'
9645abs_top_srcdir='$ac_abs_top_srcdir'
9646at_top_build_prefix='$ac_top_build_prefix'
9647abs_top_builddir='$ac_abs_top_builddir'
9648
9649# Backward compatibility with Autotest <= 2.59b:
9650at_top_builddir=\$at_top_build_prefix
9651
9652AUTOTEST_PATH='.'
9653
9654SHELL=\${CONFIG_SHELL-'$SHELL'}
9655ATEOF
9656 ;;
9657
9658  esac
9659done # for ac_tag
9660
9661
9662{ (exit 0); exit 0; }
9663_ACEOF
9664chmod +x $CONFIG_STATUS
9665ac_clean_files=$ac_clean_files_save
9666
9667
9668# configure is writing to config.log, and then calls config.status.
9669# config.status does its own redirection, appending to config.log.
9670# Unfortunately, on DOS this fails, as config.log is still kept open
9671# by configure, so config.status won't be able to write to it; its
9672# output is simply discarded.  So we exec the FD to /dev/null,
9673# effectively closing config.log, so it can be properly (re)opened and
9674# appended to by config.status.  When coming back to configure, we
9675# need to make the FD available again.
9676if test "$no_create" != yes; then
9677  ac_cs_success=:
9678  ac_config_status_args=
9679  test "$silent" = yes &&
9680    ac_config_status_args="$ac_config_status_args --quiet"
9681  exec 5>/dev/null
9682  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9683  exec 5>>config.log
9684  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9685  # would make configure fail if this is the last instruction.
9686  $ac_cs_success || { (exit 1); exit 1; }
9687fi
9688
9689