configure revision 131962
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
253ac_default_prefix=/usr/local
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete.  It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="tc.vers.c"
274ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP DFLAGS HESDEF HESLIB LIBOBJS LTLIBOBJS'
275ac_subst_files=''
276
277# Initialize some variables set by options.
278ac_init_help=
279ac_init_version=false
280# The variables have the same names as the options, with
281# dashes changed to underlines.
282cache_file=/dev/null
283exec_prefix=NONE
284no_create=
285no_recursion=
286prefix=NONE
287program_prefix=NONE
288program_suffix=NONE
289program_transform_name=s,x,x,
290silent=
291site=
292srcdir=
293verbose=
294x_includes=NONE
295x_libraries=NONE
296
297# Installation directory options.
298# These are left unexpanded so users can "make install exec_prefix=/foo"
299# and all the variables that are supposed to be based on exec_prefix
300# by default will actually change.
301# Use braces instead of parens because sh, perl, etc. also accept them.
302bindir='${exec_prefix}/bin'
303sbindir='${exec_prefix}/sbin'
304libexecdir='${exec_prefix}/libexec'
305datadir='${prefix}/share'
306sysconfdir='${prefix}/etc'
307sharedstatedir='${prefix}/com'
308localstatedir='${prefix}/var'
309libdir='${exec_prefix}/lib'
310includedir='${prefix}/include'
311oldincludedir='/usr/include'
312infodir='${prefix}/info'
313mandir='${prefix}/man'
314
315ac_prev=
316for ac_option
317do
318  # If the previous option needs an argument, assign it.
319  if test -n "$ac_prev"; then
320    eval "$ac_prev=\$ac_option"
321    ac_prev=
322    continue
323  fi
324
325  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
326
327  # Accept the important Cygnus configure options, so we can diagnose typos.
328
329  case $ac_option in
330
331  -bindir | --bindir | --bindi | --bind | --bin | --bi)
332    ac_prev=bindir ;;
333  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334    bindir=$ac_optarg ;;
335
336  -build | --build | --buil | --bui | --bu)
337    ac_prev=build_alias ;;
338  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339    build_alias=$ac_optarg ;;
340
341  -cache-file | --cache-file | --cache-fil | --cache-fi \
342  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343    ac_prev=cache_file ;;
344  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346    cache_file=$ac_optarg ;;
347
348  --config-cache | -C)
349    cache_file=config.cache ;;
350
351  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352    ac_prev=datadir ;;
353  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354  | --da=*)
355    datadir=$ac_optarg ;;
356
357  -disable-* | --disable-*)
358    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359    # Reject names that are not valid shell variable names.
360    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362   { (exit 1); exit 1; }; }
363    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364    eval "enable_$ac_feature=no" ;;
365
366  -enable-* | --enable-*)
367    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368    # Reject names that are not valid shell variable names.
369    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371   { (exit 1); exit 1; }; }
372    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373    case $ac_option in
374      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375      *) ac_optarg=yes ;;
376    esac
377    eval "enable_$ac_feature='$ac_optarg'" ;;
378
379  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381  | --exec | --exe | --ex)
382    ac_prev=exec_prefix ;;
383  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385  | --exec=* | --exe=* | --ex=*)
386    exec_prefix=$ac_optarg ;;
387
388  -gas | --gas | --ga | --g)
389    # Obsolete; use --with-gas.
390    with_gas=yes ;;
391
392  -help | --help | --hel | --he | -h)
393    ac_init_help=long ;;
394  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395    ac_init_help=recursive ;;
396  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397    ac_init_help=short ;;
398
399  -host | --host | --hos | --ho)
400    ac_prev=host_alias ;;
401  -host=* | --host=* | --hos=* | --ho=*)
402    host_alias=$ac_optarg ;;
403
404  -includedir | --includedir | --includedi | --included | --include \
405  | --includ | --inclu | --incl | --inc)
406    ac_prev=includedir ;;
407  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408  | --includ=* | --inclu=* | --incl=* | --inc=*)
409    includedir=$ac_optarg ;;
410
411  -infodir | --infodir | --infodi | --infod | --info | --inf)
412    ac_prev=infodir ;;
413  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414    infodir=$ac_optarg ;;
415
416  -libdir | --libdir | --libdi | --libd)
417    ac_prev=libdir ;;
418  -libdir=* | --libdir=* | --libdi=* | --libd=*)
419    libdir=$ac_optarg ;;
420
421  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422  | --libexe | --libex | --libe)
423    ac_prev=libexecdir ;;
424  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425  | --libexe=* | --libex=* | --libe=*)
426    libexecdir=$ac_optarg ;;
427
428  -localstatedir | --localstatedir | --localstatedi | --localstated \
429  | --localstate | --localstat | --localsta | --localst \
430  | --locals | --local | --loca | --loc | --lo)
431    ac_prev=localstatedir ;;
432  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435    localstatedir=$ac_optarg ;;
436
437  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438    ac_prev=mandir ;;
439  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440    mandir=$ac_optarg ;;
441
442  -nfp | --nfp | --nf)
443    # Obsolete; use --without-fp.
444    with_fp=no ;;
445
446  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447  | --no-cr | --no-c | -n)
448    no_create=yes ;;
449
450  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452    no_recursion=yes ;;
453
454  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456  | --oldin | --oldi | --old | --ol | --o)
457    ac_prev=oldincludedir ;;
458  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461    oldincludedir=$ac_optarg ;;
462
463  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464    ac_prev=prefix ;;
465  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466    prefix=$ac_optarg ;;
467
468  -program-prefix | --program-prefix | --program-prefi | --program-pref \
469  | --program-pre | --program-pr | --program-p)
470    ac_prev=program_prefix ;;
471  -program-prefix=* | --program-prefix=* | --program-prefi=* \
472  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473    program_prefix=$ac_optarg ;;
474
475  -program-suffix | --program-suffix | --program-suffi | --program-suff \
476  | --program-suf | --program-su | --program-s)
477    ac_prev=program_suffix ;;
478  -program-suffix=* | --program-suffix=* | --program-suffi=* \
479  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480    program_suffix=$ac_optarg ;;
481
482  -program-transform-name | --program-transform-name \
483  | --program-transform-nam | --program-transform-na \
484  | --program-transform-n | --program-transform- \
485  | --program-transform | --program-transfor \
486  | --program-transfo | --program-transf \
487  | --program-trans | --program-tran \
488  | --progr-tra | --program-tr | --program-t)
489    ac_prev=program_transform_name ;;
490  -program-transform-name=* | --program-transform-name=* \
491  | --program-transform-nam=* | --program-transform-na=* \
492  | --program-transform-n=* | --program-transform-=* \
493  | --program-transform=* | --program-transfor=* \
494  | --program-transfo=* | --program-transf=* \
495  | --program-trans=* | --program-tran=* \
496  | --progr-tra=* | --program-tr=* | --program-t=*)
497    program_transform_name=$ac_optarg ;;
498
499  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500  | -silent | --silent | --silen | --sile | --sil)
501    silent=yes ;;
502
503  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504    ac_prev=sbindir ;;
505  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506  | --sbi=* | --sb=*)
507    sbindir=$ac_optarg ;;
508
509  -sharedstatedir | --sharedstatedir | --sharedstatedi \
510  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511  | --sharedst | --shareds | --shared | --share | --shar \
512  | --sha | --sh)
513    ac_prev=sharedstatedir ;;
514  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517  | --sha=* | --sh=*)
518    sharedstatedir=$ac_optarg ;;
519
520  -site | --site | --sit)
521    ac_prev=site ;;
522  -site=* | --site=* | --sit=*)
523    site=$ac_optarg ;;
524
525  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526    ac_prev=srcdir ;;
527  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528    srcdir=$ac_optarg ;;
529
530  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531  | --syscon | --sysco | --sysc | --sys | --sy)
532    ac_prev=sysconfdir ;;
533  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535    sysconfdir=$ac_optarg ;;
536
537  -target | --target | --targe | --targ | --tar | --ta | --t)
538    ac_prev=target_alias ;;
539  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540    target_alias=$ac_optarg ;;
541
542  -v | -verbose | --verbose | --verbos | --verbo | --verb)
543    verbose=yes ;;
544
545  -version | --version | --versio | --versi | --vers | -V)
546    ac_init_version=: ;;
547
548  -with-* | --with-*)
549    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550    # Reject names that are not valid shell variable names.
551    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552      { echo "$as_me: error: invalid package name: $ac_package" >&2
553   { (exit 1); exit 1; }; }
554    ac_package=`echo $ac_package| sed 's/-/_/g'`
555    case $ac_option in
556      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557      *) ac_optarg=yes ;;
558    esac
559    eval "with_$ac_package='$ac_optarg'" ;;
560
561  -without-* | --without-*)
562    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563    # Reject names that are not valid shell variable names.
564    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565      { echo "$as_me: error: invalid package name: $ac_package" >&2
566   { (exit 1); exit 1; }; }
567    ac_package=`echo $ac_package | sed 's/-/_/g'`
568    eval "with_$ac_package=no" ;;
569
570  --x)
571    # Obsolete; use --with-x.
572    with_x=yes ;;
573
574  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575  | --x-incl | --x-inc | --x-in | --x-i)
576    ac_prev=x_includes ;;
577  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579    x_includes=$ac_optarg ;;
580
581  -x-libraries | --x-libraries | --x-librarie | --x-librari \
582  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583    ac_prev=x_libraries ;;
584  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586    x_libraries=$ac_optarg ;;
587
588  -*) { echo "$as_me: error: unrecognized option: $ac_option
589Try \`$0 --help' for more information." >&2
590   { (exit 1); exit 1; }; }
591    ;;
592
593  *=*)
594    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595    # Reject names that are not valid shell variable names.
596    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598   { (exit 1); exit 1; }; }
599    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600    eval "$ac_envvar='$ac_optarg'"
601    export $ac_envvar ;;
602
603  *)
604    # FIXME: should be removed in autoconf 3.0.
605    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609    ;;
610
611  esac
612done
613
614if test -n "$ac_prev"; then
615  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616  { echo "$as_me: error: missing argument to $ac_option" >&2
617   { (exit 1); exit 1; }; }
618fi
619
620# Be sure to have absolute paths.
621for ac_var in exec_prefix prefix
622do
623  eval ac_val=$`echo $ac_var`
624  case $ac_val in
625    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627   { (exit 1); exit 1; }; };;
628  esac
629done
630
631# Be sure to have absolute paths.
632for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633              localstatedir libdir includedir oldincludedir infodir mandir
634do
635  eval ac_val=$`echo $ac_var`
636  case $ac_val in
637    [\\/$]* | ?:[\\/]* ) ;;
638    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639   { (exit 1); exit 1; }; };;
640  esac
641done
642
643# There might be people who depend on the old broken behavior: `$host'
644# used to hold the argument of --host etc.
645# FIXME: To remove some day.
646build=$build_alias
647host=$host_alias
648target=$target_alias
649
650# FIXME: To remove some day.
651if test "x$host_alias" != x; then
652  if test "x$build_alias" = x; then
653    cross_compiling=maybe
654    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655    If a cross compiler is detected then cross compile mode will be used." >&2
656  elif test "x$build_alias" != "x$host_alias"; then
657    cross_compiling=yes
658  fi
659fi
660
661ac_tool_prefix=
662test -n "$host_alias" && ac_tool_prefix=$host_alias-
663
664test "$silent" = yes && exec 6>/dev/null
665
666
667# Find the source files, if location was not specified.
668if test -z "$srcdir"; then
669  ac_srcdir_defaulted=yes
670  # Try the directory containing this script, then its parent.
671  ac_confdir=`(dirname "$0") 2>/dev/null ||
672$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673         X"$0" : 'X\(//\)[^/]' \| \
674         X"$0" : 'X\(//\)$' \| \
675         X"$0" : 'X\(/\)' \| \
676         .     : '\(.\)' 2>/dev/null ||
677echo X"$0" |
678    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680  	  /^X\(\/\/\)$/{ s//\1/; q; }
681  	  /^X\(\/\).*/{ s//\1/; q; }
682  	  s/.*/./; q'`
683  srcdir=$ac_confdir
684  if test ! -r $srcdir/$ac_unique_file; then
685    srcdir=..
686  fi
687else
688  ac_srcdir_defaulted=no
689fi
690if test ! -r $srcdir/$ac_unique_file; then
691  if test "$ac_srcdir_defaulted" = yes; then
692    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693   { (exit 1); exit 1; }; }
694  else
695    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696   { (exit 1); exit 1; }; }
697  fi
698fi
699(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701   { (exit 1); exit 1; }; }
702srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703ac_env_build_alias_set=${build_alias+set}
704ac_env_build_alias_value=$build_alias
705ac_cv_env_build_alias_set=${build_alias+set}
706ac_cv_env_build_alias_value=$build_alias
707ac_env_host_alias_set=${host_alias+set}
708ac_env_host_alias_value=$host_alias
709ac_cv_env_host_alias_set=${host_alias+set}
710ac_cv_env_host_alias_value=$host_alias
711ac_env_target_alias_set=${target_alias+set}
712ac_env_target_alias_value=$target_alias
713ac_cv_env_target_alias_set=${target_alias+set}
714ac_cv_env_target_alias_value=$target_alias
715ac_env_CC_set=${CC+set}
716ac_env_CC_value=$CC
717ac_cv_env_CC_set=${CC+set}
718ac_cv_env_CC_value=$CC
719ac_env_CFLAGS_set=${CFLAGS+set}
720ac_env_CFLAGS_value=$CFLAGS
721ac_cv_env_CFLAGS_set=${CFLAGS+set}
722ac_cv_env_CFLAGS_value=$CFLAGS
723ac_env_LDFLAGS_set=${LDFLAGS+set}
724ac_env_LDFLAGS_value=$LDFLAGS
725ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
726ac_cv_env_LDFLAGS_value=$LDFLAGS
727ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728ac_env_CPPFLAGS_value=$CPPFLAGS
729ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731ac_env_CPP_set=${CPP+set}
732ac_env_CPP_value=$CPP
733ac_cv_env_CPP_set=${CPP+set}
734ac_cv_env_CPP_value=$CPP
735
736#
737# Report the --help message.
738#
739if test "$ac_init_help" = "long"; then
740  # Omit some internal or obsolete options to make the list less imposing.
741  # This message is too long to be a string in the A/UX 3.1 sh.
742  cat <<_ACEOF
743\`configure' configures this package to adapt to many kinds of systems.
744
745Usage: $0 [OPTION]... [VAR=VALUE]...
746
747To assign environment variables (e.g., CC, CFLAGS...), specify them as
748VAR=VALUE.  See below for descriptions of some of the useful variables.
749
750Defaults for the options are specified in brackets.
751
752Configuration:
753  -h, --help              display this help and exit
754      --help=short        display options specific to this package
755      --help=recursive    display the short help of all the included packages
756  -V, --version           display version information and exit
757  -q, --quiet, --silent   do not print \`checking...' messages
758      --cache-file=FILE   cache test results in FILE [disabled]
759  -C, --config-cache      alias for \`--cache-file=config.cache'
760  -n, --no-create         do not create output files
761      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
762
763_ACEOF
764
765  cat <<_ACEOF
766Installation directories:
767  --prefix=PREFIX         install architecture-independent files in PREFIX
768                          [$ac_default_prefix]
769  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
770                          [PREFIX]
771
772By default, \`make install' will install all the files in
773\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
774an installation prefix other than \`$ac_default_prefix' using \`--prefix',
775for instance \`--prefix=\$HOME'.
776
777For better control, use the options below.
778
779Fine tuning of the installation directories:
780  --bindir=DIR           user executables [EPREFIX/bin]
781  --sbindir=DIR          system admin executables [EPREFIX/sbin]
782  --libexecdir=DIR       program executables [EPREFIX/libexec]
783  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
784  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
785  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
786  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
787  --libdir=DIR           object code libraries [EPREFIX/lib]
788  --includedir=DIR       C header files [PREFIX/include]
789  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
790  --infodir=DIR          info documentation [PREFIX/info]
791  --mandir=DIR           man documentation [PREFIX/man]
792_ACEOF
793
794  cat <<\_ACEOF
795
796System types:
797  --build=BUILD     configure for building on BUILD [guessed]
798  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
799_ACEOF
800fi
801
802if test -n "$ac_init_help"; then
803
804  cat <<\_ACEOF
805
806Optional Packages:
807  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
808  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
809  --with-hesiod=PREFIX    Use Hesiod lookup for ~ expansion
810
811Some influential environment variables:
812  CC          C compiler command
813  CFLAGS      C compiler flags
814  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
815              nonstandard directory <lib dir>
816  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
817              headers in a nonstandard directory <include dir>
818  CPP         C preprocessor
819
820Use these variables to override the choices made by `configure' or to help
821it to find libraries and programs with nonstandard names/locations.
822
823_ACEOF
824fi
825
826if test "$ac_init_help" = "recursive"; then
827  # If there are subdirs, report their specific --help.
828  ac_popdir=`pwd`
829  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
830    test -d $ac_dir || continue
831    ac_builddir=.
832
833if test "$ac_dir" != .; then
834  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
835  # A "../" for each directory in $ac_dir_suffix.
836  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
837else
838  ac_dir_suffix= ac_top_builddir=
839fi
840
841case $srcdir in
842  .)  # No --srcdir option.  We are building in place.
843    ac_srcdir=.
844    if test -z "$ac_top_builddir"; then
845       ac_top_srcdir=.
846    else
847       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
848    fi ;;
849  [\\/]* | ?:[\\/]* )  # Absolute path.
850    ac_srcdir=$srcdir$ac_dir_suffix;
851    ac_top_srcdir=$srcdir ;;
852  *) # Relative path.
853    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
854    ac_top_srcdir=$ac_top_builddir$srcdir ;;
855esac
856# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
857# absolute.
858ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
859ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
860ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
861ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
862
863    cd $ac_dir
864    # Check for guested configure; otherwise get Cygnus style configure.
865    if test -f $ac_srcdir/configure.gnu; then
866      echo
867      $SHELL $ac_srcdir/configure.gnu  --help=recursive
868    elif test -f $ac_srcdir/configure; then
869      echo
870      $SHELL $ac_srcdir/configure  --help=recursive
871    elif test -f $ac_srcdir/configure.ac ||
872           test -f $ac_srcdir/configure.in; then
873      echo
874      $ac_configure --help
875    else
876      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
877    fi
878    cd $ac_popdir
879  done
880fi
881
882test -n "$ac_init_help" && exit 0
883if $ac_init_version; then
884  cat <<\_ACEOF
885
886Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
887Free Software Foundation, Inc.
888This configure script is free software; the Free Software Foundation
889gives unlimited permission to copy, distribute and modify it.
890_ACEOF
891  exit 0
892fi
893exec 5>config.log
894cat >&5 <<_ACEOF
895This file contains any messages produced by compilers while
896running configure, to aid debugging if configure makes a mistake.
897
898It was created by $as_me, which was
899generated by GNU Autoconf 2.57.  Invocation command line was
900
901  $ $0 $@
902
903_ACEOF
904{
905cat <<_ASUNAME
906## --------- ##
907## Platform. ##
908## --------- ##
909
910hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
911uname -m = `(uname -m) 2>/dev/null || echo unknown`
912uname -r = `(uname -r) 2>/dev/null || echo unknown`
913uname -s = `(uname -s) 2>/dev/null || echo unknown`
914uname -v = `(uname -v) 2>/dev/null || echo unknown`
915
916/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
917/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
918
919/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
920/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
921/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
922hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
923/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
924/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
925/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
926
927_ASUNAME
928
929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
930for as_dir in $PATH
931do
932  IFS=$as_save_IFS
933  test -z "$as_dir" && as_dir=.
934  echo "PATH: $as_dir"
935done
936
937} >&5
938
939cat >&5 <<_ACEOF
940
941
942## ----------- ##
943## Core tests. ##
944## ----------- ##
945
946_ACEOF
947
948
949# Keep a trace of the command line.
950# Strip out --no-create and --no-recursion so they do not pile up.
951# Strip out --silent because we don't want to record it for future runs.
952# Also quote any args containing shell meta-characters.
953# Make two passes to allow for proper duplicate-argument suppression.
954ac_configure_args=
955ac_configure_args0=
956ac_configure_args1=
957ac_sep=
958ac_must_keep_next=false
959for ac_pass in 1 2
960do
961  for ac_arg
962  do
963    case $ac_arg in
964    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
965    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
966    | -silent | --silent | --silen | --sile | --sil)
967      continue ;;
968    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
969      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
970    esac
971    case $ac_pass in
972    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
973    2)
974      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
975      if test $ac_must_keep_next = true; then
976        ac_must_keep_next=false # Got value, back to normal.
977      else
978        case $ac_arg in
979          *=* | --config-cache | -C | -disable-* | --disable-* \
980          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
981          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
982          | -with-* | --with-* | -without-* | --without-* | --x)
983            case "$ac_configure_args0 " in
984              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
985            esac
986            ;;
987          -* ) ac_must_keep_next=true ;;
988        esac
989      fi
990      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
991      # Get rid of the leading space.
992      ac_sep=" "
993      ;;
994    esac
995  done
996done
997$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
998$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
999
1000# When interrupted or exit'd, cleanup temporary files, and complete
1001# config.log.  We remove comments because anyway the quotes in there
1002# would cause problems or look ugly.
1003# WARNING: Be sure not to use single quotes in there, as some shells,
1004# such as our DU 5.0 friend, will then `close' the trap.
1005trap 'exit_status=$?
1006  # Save into config.log some information that might help in debugging.
1007  {
1008    echo
1009
1010    cat <<\_ASBOX
1011## ---------------- ##
1012## Cache variables. ##
1013## ---------------- ##
1014_ASBOX
1015    echo
1016    # The following way of writing the cache mishandles newlines in values,
1017{
1018  (set) 2>&1 |
1019    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1020    *ac_space=\ *)
1021      sed -n \
1022        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1023    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1024      ;;
1025    *)
1026      sed -n \
1027        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1028      ;;
1029    esac;
1030}
1031    echo
1032
1033    cat <<\_ASBOX
1034## ----------------- ##
1035## Output variables. ##
1036## ----------------- ##
1037_ASBOX
1038    echo
1039    for ac_var in $ac_subst_vars
1040    do
1041      eval ac_val=$`echo $ac_var`
1042      echo "$ac_var='"'"'$ac_val'"'"'"
1043    done | sort
1044    echo
1045
1046    if test -n "$ac_subst_files"; then
1047      cat <<\_ASBOX
1048## ------------- ##
1049## Output files. ##
1050## ------------- ##
1051_ASBOX
1052      echo
1053      for ac_var in $ac_subst_files
1054      do
1055	eval ac_val=$`echo $ac_var`
1056        echo "$ac_var='"'"'$ac_val'"'"'"
1057      done | sort
1058      echo
1059    fi
1060
1061    if test -s confdefs.h; then
1062      cat <<\_ASBOX
1063## ----------- ##
1064## confdefs.h. ##
1065## ----------- ##
1066_ASBOX
1067      echo
1068      sed "/^$/d" confdefs.h | sort
1069      echo
1070    fi
1071    test "$ac_signal" != 0 &&
1072      echo "$as_me: caught signal $ac_signal"
1073    echo "$as_me: exit $exit_status"
1074  } >&5
1075  rm -f core core.* *.core &&
1076  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1077    exit $exit_status
1078     ' 0
1079for ac_signal in 1 2 13 15; do
1080  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1081done
1082ac_signal=0
1083
1084# confdefs.h avoids OS command line length limits that DEFS can exceed.
1085rm -rf conftest* confdefs.h
1086# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1087echo >confdefs.h
1088
1089# Predefined preprocessor variables.
1090
1091cat >>confdefs.h <<_ACEOF
1092#define PACKAGE_NAME "$PACKAGE_NAME"
1093_ACEOF
1094
1095
1096cat >>confdefs.h <<_ACEOF
1097#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1098_ACEOF
1099
1100
1101cat >>confdefs.h <<_ACEOF
1102#define PACKAGE_VERSION "$PACKAGE_VERSION"
1103_ACEOF
1104
1105
1106cat >>confdefs.h <<_ACEOF
1107#define PACKAGE_STRING "$PACKAGE_STRING"
1108_ACEOF
1109
1110
1111cat >>confdefs.h <<_ACEOF
1112#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1113_ACEOF
1114
1115
1116# Let the site file select an alternate cache file if it wants to.
1117# Prefer explicitly selected file to automatically selected ones.
1118if test -z "$CONFIG_SITE"; then
1119  if test "x$prefix" != xNONE; then
1120    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1121  else
1122    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1123  fi
1124fi
1125for ac_site_file in $CONFIG_SITE; do
1126  if test -r "$ac_site_file"; then
1127    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1128echo "$as_me: loading site script $ac_site_file" >&6;}
1129    sed 's/^/| /' "$ac_site_file" >&5
1130    . "$ac_site_file"
1131  fi
1132done
1133
1134if test -r "$cache_file"; then
1135  # Some versions of bash will fail to source /dev/null (special
1136  # files actually), so we avoid doing that.
1137  if test -f "$cache_file"; then
1138    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1139echo "$as_me: loading cache $cache_file" >&6;}
1140    case $cache_file in
1141      [\\/]* | ?:[\\/]* ) . $cache_file;;
1142      *)                      . ./$cache_file;;
1143    esac
1144  fi
1145else
1146  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1147echo "$as_me: creating cache $cache_file" >&6;}
1148  >$cache_file
1149fi
1150
1151# Check that the precious variables saved in the cache have kept the same
1152# value.
1153ac_cache_corrupted=false
1154for ac_var in `(set) 2>&1 |
1155               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1156  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1157  eval ac_new_set=\$ac_env_${ac_var}_set
1158  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1159  eval ac_new_val="\$ac_env_${ac_var}_value"
1160  case $ac_old_set,$ac_new_set in
1161    set,)
1162      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1163echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1164      ac_cache_corrupted=: ;;
1165    ,set)
1166      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1167echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1168      ac_cache_corrupted=: ;;
1169    ,);;
1170    *)
1171      if test "x$ac_old_val" != "x$ac_new_val"; then
1172        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1173echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1174        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1175echo "$as_me:   former value:  $ac_old_val" >&2;}
1176        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1177echo "$as_me:   current value: $ac_new_val" >&2;}
1178        ac_cache_corrupted=:
1179      fi;;
1180  esac
1181  # Pass precious variables to config.status.
1182  if test "$ac_new_set" = set; then
1183    case $ac_new_val in
1184    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1185      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1186    *) ac_arg=$ac_var=$ac_new_val ;;
1187    esac
1188    case " $ac_configure_args " in
1189      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1190      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1191    esac
1192  fi
1193done
1194if $ac_cache_corrupted; then
1195  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1196echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1197  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1198echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1199   { (exit 1); exit 1; }; }
1200fi
1201
1202ac_ext=c
1203ac_cpp='$CPP $CPPFLAGS'
1204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1206ac_compiler_gnu=$ac_cv_c_compiler_gnu
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227ac_aux_dir=
1228for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1229  if test -f $ac_dir/install-sh; then
1230    ac_aux_dir=$ac_dir
1231    ac_install_sh="$ac_aux_dir/install-sh -c"
1232    break
1233  elif test -f $ac_dir/install.sh; then
1234    ac_aux_dir=$ac_dir
1235    ac_install_sh="$ac_aux_dir/install.sh -c"
1236    break
1237  elif test -f $ac_dir/shtool; then
1238    ac_aux_dir=$ac_dir
1239    ac_install_sh="$ac_aux_dir/shtool install -c"
1240    break
1241  fi
1242done
1243if test -z "$ac_aux_dir"; then
1244  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1245echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1246   { (exit 1); exit 1; }; }
1247fi
1248ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1249ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1250ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1251
1252# Make sure we can run config.sub.
1253$ac_config_sub sun4 >/dev/null 2>&1 ||
1254  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1255echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1256   { (exit 1); exit 1; }; }
1257
1258echo "$as_me:$LINENO: checking build system type" >&5
1259echo $ECHO_N "checking build system type... $ECHO_C" >&6
1260if test "${ac_cv_build+set}" = set; then
1261  echo $ECHO_N "(cached) $ECHO_C" >&6
1262else
1263  ac_cv_build_alias=$build_alias
1264test -z "$ac_cv_build_alias" &&
1265  ac_cv_build_alias=`$ac_config_guess`
1266test -z "$ac_cv_build_alias" &&
1267  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1268echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1269   { (exit 1); exit 1; }; }
1270ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1271  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1272echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1273   { (exit 1); exit 1; }; }
1274
1275fi
1276echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1277echo "${ECHO_T}$ac_cv_build" >&6
1278build=$ac_cv_build
1279build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1280build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1281build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1282
1283
1284echo "$as_me:$LINENO: checking host system type" >&5
1285echo $ECHO_N "checking host system type... $ECHO_C" >&6
1286if test "${ac_cv_host+set}" = set; then
1287  echo $ECHO_N "(cached) $ECHO_C" >&6
1288else
1289  ac_cv_host_alias=$host_alias
1290test -z "$ac_cv_host_alias" &&
1291  ac_cv_host_alias=$ac_cv_build_alias
1292ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1293  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1294echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1295   { (exit 1); exit 1; }; }
1296
1297fi
1298echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1299echo "${ECHO_T}$ac_cv_host" >&6
1300host=$ac_cv_host
1301host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1302host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1303host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1304
1305
1306
1307echo "$as_me:$LINENO: checking cached host tuple" >&5
1308echo $ECHO_N "checking cached host tuple... $ECHO_C" >&6
1309if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1310     test x"$ac_cv_host_system_type" != x"$host"; }; then
1311  echo "$as_me:$LINENO: result: different" >&5
1312echo "${ECHO_T}different" >&6
1313  { { echo "$as_me:$LINENO: error: remove config.cache and re-run configure" >&5
1314echo "$as_me: error: remove config.cache and re-run configure" >&2;}
1315   { (exit 1); exit 1; }; }
1316else
1317  echo "$as_me:$LINENO: result: ok" >&5
1318echo "${ECHO_T}ok" >&6
1319fi
1320ac_cv_host_system_type="$host"
1321
1322
1323
1324case "${host}" in
1325
1326  ## Alpha (DEC) machines.
1327  alpha*-dec-osf* )
1328    tcsh_config_file=decosf1
1329  ;;
1330
1331  ## Ultrix
1332  *-dec-ultrix* )
1333    tcsh_config_file=ultrix
1334  ;;
1335
1336  ## DGUX
1337  *-dg-dguxR4* )
1338    tcsh_config_file=dgux5.4
1339  ;;
1340  m88k-dg-dgux5.4R* )
1341    tcsh_config_file=dgux5.4
1342  ;;
1343
1344  ## HP/UX
1345  *-hp-hpux7* )
1346    tcsh_config_file=hpux7
1347  ;;
1348  *-hp-hpux[89]* )
1349    tcsh_config_file=hpux8
1350  ;;
1351  *-hp-hpux1[0-9]* )
1352    tcsh_config_file=hpux11
1353  ;;
1354
1355  ## IBM AIX systems
1356  *-ibm-aix*)
1357    tcsh_config_file=aix
1358  ;;
1359
1360  ## SX-4
1361  sx4-nec-*)
1362    CC='cc -h0,ansi,novector,float0'
1363    LDFLAGS='-Gsmall'
1364    tcsh_config_file=superux8
1365  ;;
1366
1367  ## IBM OS/390 systems
1368  *-ibm-os390*)
1369    CC='c89'
1370    tcsh_config_file=os390
1371  ;;
1372
1373  ## Linux
1374  *-*-linux* )
1375    tcsh_config_file=linux
1376  ;;
1377
1378  ## Motorola systems
1379  m68k-motorola-sysv* )
1380    tcsh_config_file=sysV68
1381  ;;
1382  m88k-motorola-sysv3* )
1383    tcsh_config_file=sysV88
1384  ;;
1385
1386  ## NetBSD systems
1387  *-*-netbsd*)
1388    tcsh_config_file=bsd4.4
1389  ;;
1390
1391  ## FreeBSD systems
1392  *-*-freebsd*)
1393    tcsh_config_file=bsd4.4
1394  ;;
1395
1396  ## OpenBSD systems
1397  *-*-openbsd*)
1398    tcsh_config_file=bsd4.4
1399  ;;
1400
1401  ## BSDI systems
1402  *-*-bsdi*)
1403    tcsh_config_file=bsd4.4
1404  ;;
1405
1406  ## Mac OS X Server
1407  *-*-rhapsody* )
1408    tcsh_config_file=bsd4.4
1409  ;;
1410
1411  ## Mac OS X Server
1412  *-*-darwin* )
1413    tcsh_config_file=bsd4.4
1414  ;;
1415
1416  ## Silicon Graphics machines
1417  *-sgi-iri* )
1418    tcsh_config_file=irix
1419    case "${host_os}" in
1420      irix[34]*) # Irix-3.x - Irix 4.x
1421        NON_GNU_DFLAGS='-D__STDC__'
1422        LIBS='-lsun -lbsd -lc_s'
1423      ;;
1424      irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
1425        LIBS='-lbsd'
1426      ;;
1427      irix6.[2-9]*) # Irix 6.2 and later
1428	tcsh_config_file=irix62
1429      ;;
1430    esac
1431  ;;
1432
1433  ## Suns
1434  *-sun-sunos3* )
1435    tcsh_config_file=sunos35
1436  ;;
1437  *-sun-sunos4.0* )
1438    tcsh_config_file=sunos40
1439  ;;
1440  *-sun-sunos4.1.[12]* )
1441    tcsh_config_file=sunos41
1442  ;;
1443  *-sun-sunos4.1.[3456]* )
1444    tcsh_config_file=sunos413
1445  ;;
1446  *-*-solaris2.[01]* ) # Should handle sparc or x86
1447    tcsh_config_file=sol2
1448  ;;
1449  *-sun-solaris2.2* ) # Sparc only release
1450    tcsh_config_file=sol22
1451  ;;
1452  *-sun-solaris2.3* ) # Sparc only release
1453    tcsh_config_file=sol23
1454  ;;
1455  *-*-solaris2.[45]* ) # Should handle sparc, x86 and powerpc
1456    tcsh_config_file=sol24
1457  ;;
1458  *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
1459    tcsh_config_file=sol26
1460  ;;
1461
1462  ## Dell SVR4
1463  *-dell-sysv4* )
1464    tcsh_config_file=sysv4
1465    DFLAGS="$DFLAGS -DDELL"
1466  ;;
1467
1468  ## SVR4 (Generic and otherwise)
1469  *-*-sysv4* )
1470    tcsh_config_file=sysv4
1471  ;;
1472
1473  ## Tektronix systems
1474  m68k-tektronix-bsd* )
1475    tcsh_config_file=bsd
1476    NON_GNU_DFLAGS='-DBSD -DUTek'
1477  ;;
1478  m88k-tektronix-sysv3* )
1479    tcsh_config_file=tekXD88
1480  ;;
1481
1482  ## SCO
1483  *-sco3.2v5*)
1484    tcsh_config_file=sco32v5
1485  ;;
1486  *-sco3.2v4*)
1487    tcsh_config_file=sco32v4
1488  ;;
1489  *-sco3.2v2*)
1490    tcsh_config_file=sco32v2
1491  ;;
1492
1493  ## Siemens BS2000 Mainframe
1494  bs2000-siemens-posix)
1495    tcsh_config_file=bs2000
1496  ;;
1497
1498  ## Convex
1499  *-convex*)
1500    tcsh_config_file=convex
1501  ;;
1502
1503  ## Cray
1504  *-cray-unicos*)
1505    tcsh_config_file=cray
1506  ;;
1507
1508  ## Cygnus GNU Win32
1509  *-cygwin)
1510    tcsh_config_file=cygwin32
1511  ;;
1512
1513  ## mips-compaq-nonstopux
1514  *-*-nonstopux)
1515    tcsh_config_file=sysv4
1516  ;;
1517
1518  ## Apollo Domain/OS
1519  *-apollo-*)
1520    tcsh_config_file=apollo
1521  ;;
1522
1523  * )
1524    { { echo "$as_me:$LINENO: error: Tcsh can't guess the configuration file name
1525for \`${host}' systems.
1526Check tcsh's \`Ported' file for manual configuration instructions." >&5
1527echo "$as_me: error: Tcsh can't guess the configuration file name
1528for \`${host}' systems.
1529Check tcsh's \`Ported' file for manual configuration instructions." >&2;}
1530   { (exit 1); exit 1; }; }
1531    ;;
1532
1533esac
1534
1535echo "Tcsh will use configuration file \`$tcsh_config_file'."
1536
1537          ac_config_headers="$ac_config_headers config.h:config/${tcsh_config_file}:config.h.in"
1538
1539ac_ext=c
1540ac_cpp='$CPP $CPPFLAGS'
1541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543ac_compiler_gnu=$ac_cv_c_compiler_gnu
1544if test -n "$ac_tool_prefix"; then
1545  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1546set dummy ${ac_tool_prefix}gcc; ac_word=$2
1547echo "$as_me:$LINENO: checking for $ac_word" >&5
1548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549if test "${ac_cv_prog_CC+set}" = set; then
1550  echo $ECHO_N "(cached) $ECHO_C" >&6
1551else
1552  if test -n "$CC"; then
1553  ac_cv_prog_CC="$CC" # Let the user override the test.
1554else
1555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556for as_dir in $PATH
1557do
1558  IFS=$as_save_IFS
1559  test -z "$as_dir" && as_dir=.
1560  for ac_exec_ext in '' $ac_executable_extensions; do
1561  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1563    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564    break 2
1565  fi
1566done
1567done
1568
1569fi
1570fi
1571CC=$ac_cv_prog_CC
1572if test -n "$CC"; then
1573  echo "$as_me:$LINENO: result: $CC" >&5
1574echo "${ECHO_T}$CC" >&6
1575else
1576  echo "$as_me:$LINENO: result: no" >&5
1577echo "${ECHO_T}no" >&6
1578fi
1579
1580fi
1581if test -z "$ac_cv_prog_CC"; then
1582  ac_ct_CC=$CC
1583  # Extract the first word of "gcc", so it can be a program name with args.
1584set dummy gcc; ac_word=$2
1585echo "$as_me:$LINENO: checking for $ac_word" >&5
1586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1588  echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590  if test -n "$ac_ct_CC"; then
1591  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592else
1593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594for as_dir in $PATH
1595do
1596  IFS=$as_save_IFS
1597  test -z "$as_dir" && as_dir=.
1598  for ac_exec_ext in '' $ac_executable_extensions; do
1599  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600    ac_cv_prog_ac_ct_CC="gcc"
1601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602    break 2
1603  fi
1604done
1605done
1606
1607fi
1608fi
1609ac_ct_CC=$ac_cv_prog_ac_ct_CC
1610if test -n "$ac_ct_CC"; then
1611  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1612echo "${ECHO_T}$ac_ct_CC" >&6
1613else
1614  echo "$as_me:$LINENO: result: no" >&5
1615echo "${ECHO_T}no" >&6
1616fi
1617
1618  CC=$ac_ct_CC
1619else
1620  CC="$ac_cv_prog_CC"
1621fi
1622
1623if test -z "$CC"; then
1624  if test -n "$ac_tool_prefix"; then
1625  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1626set dummy ${ac_tool_prefix}cc; ac_word=$2
1627echo "$as_me:$LINENO: checking for $ac_word" >&5
1628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629if test "${ac_cv_prog_CC+set}" = set; then
1630  echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632  if test -n "$CC"; then
1633  ac_cv_prog_CC="$CC" # Let the user override the test.
1634else
1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638  IFS=$as_save_IFS
1639  test -z "$as_dir" && as_dir=.
1640  for ac_exec_ext in '' $ac_executable_extensions; do
1641  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642    ac_cv_prog_CC="${ac_tool_prefix}cc"
1643    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644    break 2
1645  fi
1646done
1647done
1648
1649fi
1650fi
1651CC=$ac_cv_prog_CC
1652if test -n "$CC"; then
1653  echo "$as_me:$LINENO: result: $CC" >&5
1654echo "${ECHO_T}$CC" >&6
1655else
1656  echo "$as_me:$LINENO: result: no" >&5
1657echo "${ECHO_T}no" >&6
1658fi
1659
1660fi
1661if test -z "$ac_cv_prog_CC"; then
1662  ac_ct_CC=$CC
1663  # Extract the first word of "cc", so it can be a program name with args.
1664set dummy cc; ac_word=$2
1665echo "$as_me:$LINENO: checking for $ac_word" >&5
1666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1668  echo $ECHO_N "(cached) $ECHO_C" >&6
1669else
1670  if test -n "$ac_ct_CC"; then
1671  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1672else
1673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674for as_dir in $PATH
1675do
1676  IFS=$as_save_IFS
1677  test -z "$as_dir" && as_dir=.
1678  for ac_exec_ext in '' $ac_executable_extensions; do
1679  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680    ac_cv_prog_ac_ct_CC="cc"
1681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682    break 2
1683  fi
1684done
1685done
1686
1687fi
1688fi
1689ac_ct_CC=$ac_cv_prog_ac_ct_CC
1690if test -n "$ac_ct_CC"; then
1691  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1692echo "${ECHO_T}$ac_ct_CC" >&6
1693else
1694  echo "$as_me:$LINENO: result: no" >&5
1695echo "${ECHO_T}no" >&6
1696fi
1697
1698  CC=$ac_ct_CC
1699else
1700  CC="$ac_cv_prog_CC"
1701fi
1702
1703fi
1704if test -z "$CC"; then
1705  # Extract the first word of "cc", so it can be a program name with args.
1706set dummy cc; ac_word=$2
1707echo "$as_me:$LINENO: checking for $ac_word" >&5
1708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709if test "${ac_cv_prog_CC+set}" = set; then
1710  echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712  if test -n "$CC"; then
1713  ac_cv_prog_CC="$CC" # Let the user override the test.
1714else
1715  ac_prog_rejected=no
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719  IFS=$as_save_IFS
1720  test -z "$as_dir" && as_dir=.
1721  for ac_exec_ext in '' $ac_executable_extensions; do
1722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1724       ac_prog_rejected=yes
1725       continue
1726     fi
1727    ac_cv_prog_CC="cc"
1728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729    break 2
1730  fi
1731done
1732done
1733
1734if test $ac_prog_rejected = yes; then
1735  # We found a bogon in the path, so make sure we never use it.
1736  set dummy $ac_cv_prog_CC
1737  shift
1738  if test $# != 0; then
1739    # We chose a different compiler from the bogus one.
1740    # However, it has the same basename, so the bogon will be chosen
1741    # first if we set CC to just the basename; use the full file name.
1742    shift
1743    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1744  fi
1745fi
1746fi
1747fi
1748CC=$ac_cv_prog_CC
1749if test -n "$CC"; then
1750  echo "$as_me:$LINENO: result: $CC" >&5
1751echo "${ECHO_T}$CC" >&6
1752else
1753  echo "$as_me:$LINENO: result: no" >&5
1754echo "${ECHO_T}no" >&6
1755fi
1756
1757fi
1758if test -z "$CC"; then
1759  if test -n "$ac_tool_prefix"; then
1760  for ac_prog in cl
1761  do
1762    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1764echo "$as_me:$LINENO: checking for $ac_word" >&5
1765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766if test "${ac_cv_prog_CC+set}" = set; then
1767  echo $ECHO_N "(cached) $ECHO_C" >&6
1768else
1769  if test -n "$CC"; then
1770  ac_cv_prog_CC="$CC" # Let the user override the test.
1771else
1772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773for as_dir in $PATH
1774do
1775  IFS=$as_save_IFS
1776  test -z "$as_dir" && as_dir=.
1777  for ac_exec_ext in '' $ac_executable_extensions; do
1778  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781    break 2
1782  fi
1783done
1784done
1785
1786fi
1787fi
1788CC=$ac_cv_prog_CC
1789if test -n "$CC"; then
1790  echo "$as_me:$LINENO: result: $CC" >&5
1791echo "${ECHO_T}$CC" >&6
1792else
1793  echo "$as_me:$LINENO: result: no" >&5
1794echo "${ECHO_T}no" >&6
1795fi
1796
1797    test -n "$CC" && break
1798  done
1799fi
1800if test -z "$CC"; then
1801  ac_ct_CC=$CC
1802  for ac_prog in cl
1803do
1804  # Extract the first word of "$ac_prog", so it can be a program name with args.
1805set dummy $ac_prog; ac_word=$2
1806echo "$as_me:$LINENO: checking for $ac_word" >&5
1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809  echo $ECHO_N "(cached) $ECHO_C" >&6
1810else
1811  if test -n "$ac_ct_CC"; then
1812  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1813else
1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815for as_dir in $PATH
1816do
1817  IFS=$as_save_IFS
1818  test -z "$as_dir" && as_dir=.
1819  for ac_exec_ext in '' $ac_executable_extensions; do
1820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821    ac_cv_prog_ac_ct_CC="$ac_prog"
1822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823    break 2
1824  fi
1825done
1826done
1827
1828fi
1829fi
1830ac_ct_CC=$ac_cv_prog_ac_ct_CC
1831if test -n "$ac_ct_CC"; then
1832  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833echo "${ECHO_T}$ac_ct_CC" >&6
1834else
1835  echo "$as_me:$LINENO: result: no" >&5
1836echo "${ECHO_T}no" >&6
1837fi
1838
1839  test -n "$ac_ct_CC" && break
1840done
1841
1842  CC=$ac_ct_CC
1843fi
1844
1845fi
1846
1847
1848test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1849See \`config.log' for more details." >&5
1850echo "$as_me: error: no acceptable C compiler found in \$PATH
1851See \`config.log' for more details." >&2;}
1852   { (exit 1); exit 1; }; }
1853
1854# Provide some information about the compiler.
1855echo "$as_me:$LINENO:" \
1856     "checking for C compiler version" >&5
1857ac_compiler=`set X $ac_compile; echo $2`
1858{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1859  (eval $ac_compiler --version </dev/null >&5) 2>&5
1860  ac_status=$?
1861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862  (exit $ac_status); }
1863{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1864  (eval $ac_compiler -v </dev/null >&5) 2>&5
1865  ac_status=$?
1866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867  (exit $ac_status); }
1868{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1869  (eval $ac_compiler -V </dev/null >&5) 2>&5
1870  ac_status=$?
1871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872  (exit $ac_status); }
1873
1874cat >conftest.$ac_ext <<_ACEOF
1875#line $LINENO "configure"
1876/* confdefs.h.  */
1877_ACEOF
1878cat confdefs.h >>conftest.$ac_ext
1879cat >>conftest.$ac_ext <<_ACEOF
1880/* end confdefs.h.  */
1881
1882int
1883main ()
1884{
1885
1886  ;
1887  return 0;
1888}
1889_ACEOF
1890ac_clean_files_save=$ac_clean_files
1891ac_clean_files="$ac_clean_files a.out a.exe b.out"
1892# Try to create an executable without -o first, disregard a.out.
1893# It will help us diagnose broken compilers, and finding out an intuition
1894# of exeext.
1895echo "$as_me:$LINENO: checking for C compiler default output" >&5
1896echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1897ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1898if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1899  (eval $ac_link_default) 2>&5
1900  ac_status=$?
1901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902  (exit $ac_status); }; then
1903  # Find the output, starting from the most likely.  This scheme is
1904# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1905# resort.
1906
1907# Be careful to initialize this variable, since it used to be cached.
1908# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1909ac_cv_exeext=
1910# b.out is created by i960 compilers.
1911for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1912do
1913  test -f "$ac_file" || continue
1914  case $ac_file in
1915    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1916        ;;
1917    conftest.$ac_ext )
1918        # This is the source file.
1919        ;;
1920    [ab].out )
1921        # We found the default executable, but exeext='' is most
1922        # certainly right.
1923        break;;
1924    *.* )
1925        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1926        # FIXME: I believe we export ac_cv_exeext for Libtool,
1927        # but it would be cool to find out if it's true.  Does anybody
1928        # maintain Libtool? --akim.
1929        export ac_cv_exeext
1930        break;;
1931    * )
1932        break;;
1933  esac
1934done
1935else
1936  echo "$as_me: failed program was:" >&5
1937sed 's/^/| /' conftest.$ac_ext >&5
1938
1939{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1940See \`config.log' for more details." >&5
1941echo "$as_me: error: C compiler cannot create executables
1942See \`config.log' for more details." >&2;}
1943   { (exit 77); exit 77; }; }
1944fi
1945
1946ac_exeext=$ac_cv_exeext
1947echo "$as_me:$LINENO: result: $ac_file" >&5
1948echo "${ECHO_T}$ac_file" >&6
1949
1950# Check the compiler produces executables we can run.  If not, either
1951# the compiler is broken, or we cross compile.
1952echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1953echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1954# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1955# If not cross compiling, check that we can run a simple program.
1956if test "$cross_compiling" != yes; then
1957  if { ac_try='./$ac_file'
1958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1959  (eval $ac_try) 2>&5
1960  ac_status=$?
1961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962  (exit $ac_status); }; }; then
1963    cross_compiling=no
1964  else
1965    if test "$cross_compiling" = maybe; then
1966	cross_compiling=yes
1967    else
1968	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1969If you meant to cross compile, use \`--host'.
1970See \`config.log' for more details." >&5
1971echo "$as_me: error: cannot run C compiled programs.
1972If you meant to cross compile, use \`--host'.
1973See \`config.log' for more details." >&2;}
1974   { (exit 1); exit 1; }; }
1975    fi
1976  fi
1977fi
1978echo "$as_me:$LINENO: result: yes" >&5
1979echo "${ECHO_T}yes" >&6
1980
1981rm -f a.out a.exe conftest$ac_cv_exeext b.out
1982ac_clean_files=$ac_clean_files_save
1983# Check the compiler produces executables we can run.  If not, either
1984# the compiler is broken, or we cross compile.
1985echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1986echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1987echo "$as_me:$LINENO: result: $cross_compiling" >&5
1988echo "${ECHO_T}$cross_compiling" >&6
1989
1990echo "$as_me:$LINENO: checking for suffix of executables" >&5
1991echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1993  (eval $ac_link) 2>&5
1994  ac_status=$?
1995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996  (exit $ac_status); }; then
1997  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1998# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1999# work properly (i.e., refer to `conftest.exe'), while it won't with
2000# `rm'.
2001for ac_file in conftest.exe conftest conftest.*; do
2002  test -f "$ac_file" || continue
2003  case $ac_file in
2004    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2005    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2006          export ac_cv_exeext
2007          break;;
2008    * ) break;;
2009  esac
2010done
2011else
2012  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2013See \`config.log' for more details." >&5
2014echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2015See \`config.log' for more details." >&2;}
2016   { (exit 1); exit 1; }; }
2017fi
2018
2019rm -f conftest$ac_cv_exeext
2020echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2021echo "${ECHO_T}$ac_cv_exeext" >&6
2022
2023rm -f conftest.$ac_ext
2024EXEEXT=$ac_cv_exeext
2025ac_exeext=$EXEEXT
2026echo "$as_me:$LINENO: checking for suffix of object files" >&5
2027echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2028if test "${ac_cv_objext+set}" = set; then
2029  echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031  cat >conftest.$ac_ext <<_ACEOF
2032#line $LINENO "configure"
2033/* confdefs.h.  */
2034_ACEOF
2035cat confdefs.h >>conftest.$ac_ext
2036cat >>conftest.$ac_ext <<_ACEOF
2037/* end confdefs.h.  */
2038
2039int
2040main ()
2041{
2042
2043  ;
2044  return 0;
2045}
2046_ACEOF
2047rm -f conftest.o conftest.obj
2048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049  (eval $ac_compile) 2>&5
2050  ac_status=$?
2051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052  (exit $ac_status); }; then
2053  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2054  case $ac_file in
2055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2056    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2057       break;;
2058  esac
2059done
2060else
2061  echo "$as_me: failed program was:" >&5
2062sed 's/^/| /' conftest.$ac_ext >&5
2063
2064{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: cannot compute suffix of object files: cannot compile
2067See \`config.log' for more details." >&2;}
2068   { (exit 1); exit 1; }; }
2069fi
2070
2071rm -f conftest.$ac_cv_objext conftest.$ac_ext
2072fi
2073echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2074echo "${ECHO_T}$ac_cv_objext" >&6
2075OBJEXT=$ac_cv_objext
2076ac_objext=$OBJEXT
2077echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2078echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2079if test "${ac_cv_c_compiler_gnu+set}" = set; then
2080  echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082  cat >conftest.$ac_ext <<_ACEOF
2083#line $LINENO "configure"
2084/* confdefs.h.  */
2085_ACEOF
2086cat confdefs.h >>conftest.$ac_ext
2087cat >>conftest.$ac_ext <<_ACEOF
2088/* end confdefs.h.  */
2089
2090int
2091main ()
2092{
2093#ifndef __GNUC__
2094       choke me
2095#endif
2096
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101rm -f conftest.$ac_objext
2102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103  (eval $ac_compile) 2>&5
2104  ac_status=$?
2105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106  (exit $ac_status); } &&
2107         { ac_try='test -s conftest.$ac_objext'
2108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109  (eval $ac_try) 2>&5
2110  ac_status=$?
2111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112  (exit $ac_status); }; }; then
2113  ac_compiler_gnu=yes
2114else
2115  echo "$as_me: failed program was:" >&5
2116sed 's/^/| /' conftest.$ac_ext >&5
2117
2118ac_compiler_gnu=no
2119fi
2120rm -f conftest.$ac_objext conftest.$ac_ext
2121ac_cv_c_compiler_gnu=$ac_compiler_gnu
2122
2123fi
2124echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2125echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126GCC=`test $ac_compiler_gnu = yes && echo yes`
2127ac_test_CFLAGS=${CFLAGS+set}
2128ac_save_CFLAGS=$CFLAGS
2129CFLAGS="-g"
2130echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2131echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132if test "${ac_cv_prog_cc_g+set}" = set; then
2133  echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
2135  cat >conftest.$ac_ext <<_ACEOF
2136#line $LINENO "configure"
2137/* confdefs.h.  */
2138_ACEOF
2139cat confdefs.h >>conftest.$ac_ext
2140cat >>conftest.$ac_ext <<_ACEOF
2141/* end confdefs.h.  */
2142
2143int
2144main ()
2145{
2146
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151rm -f conftest.$ac_objext
2152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153  (eval $ac_compile) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); } &&
2157         { ac_try='test -s conftest.$ac_objext'
2158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159  (eval $ac_try) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }; }; then
2163  ac_cv_prog_cc_g=yes
2164else
2165  echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168ac_cv_prog_cc_g=no
2169fi
2170rm -f conftest.$ac_objext conftest.$ac_ext
2171fi
2172echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2173echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2174if test "$ac_test_CFLAGS" = set; then
2175  CFLAGS=$ac_save_CFLAGS
2176elif test $ac_cv_prog_cc_g = yes; then
2177  if test "$GCC" = yes; then
2178    CFLAGS="-g -O2"
2179  else
2180    CFLAGS="-g"
2181  fi
2182else
2183  if test "$GCC" = yes; then
2184    CFLAGS="-O2"
2185  else
2186    CFLAGS=
2187  fi
2188fi
2189echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2190echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2191if test "${ac_cv_prog_cc_stdc+set}" = set; then
2192  echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
2194  ac_cv_prog_cc_stdc=no
2195ac_save_CC=$CC
2196cat >conftest.$ac_ext <<_ACEOF
2197#line $LINENO "configure"
2198/* confdefs.h.  */
2199_ACEOF
2200cat confdefs.h >>conftest.$ac_ext
2201cat >>conftest.$ac_ext <<_ACEOF
2202/* end confdefs.h.  */
2203#include <stdarg.h>
2204#include <stdio.h>
2205#include <sys/types.h>
2206#include <sys/stat.h>
2207/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2208struct buf { int x; };
2209FILE * (*rcsopen) (struct buf *, struct stat *, int);
2210static char *e (p, i)
2211     char **p;
2212     int i;
2213{
2214  return p[i];
2215}
2216static char *f (char * (*g) (char **, int), char **p, ...)
2217{
2218  char *s;
2219  va_list v;
2220  va_start (v,p);
2221  s = g (p, va_arg (v,int));
2222  va_end (v);
2223  return s;
2224}
2225int test (int i, double x);
2226struct s1 {int (*f) (int a);};
2227struct s2 {int (*f) (double a);};
2228int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2229int argc;
2230char **argv;
2231int
2232main ()
2233{
2234return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2235  ;
2236  return 0;
2237}
2238_ACEOF
2239# Don't try gcc -ansi; that turns off useful extensions and
2240# breaks some systems' header files.
2241# AIX			-qlanglvl=ansi
2242# Ultrix and OSF/1	-std1
2243# HP-UX 10.20 and later	-Ae
2244# HP-UX older versions	-Aa -D_HPUX_SOURCE
2245# SVR4			-Xc -D__EXTENSIONS__
2246for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2247do
2248  CC="$ac_save_CC $ac_arg"
2249  rm -f conftest.$ac_objext
2250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251  (eval $ac_compile) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); } &&
2255         { ac_try='test -s conftest.$ac_objext'
2256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257  (eval $ac_try) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; }; then
2261  ac_cv_prog_cc_stdc=$ac_arg
2262break
2263else
2264  echo "$as_me: failed program was:" >&5
2265sed 's/^/| /' conftest.$ac_ext >&5
2266
2267fi
2268rm -f conftest.$ac_objext
2269done
2270rm -f conftest.$ac_ext conftest.$ac_objext
2271CC=$ac_save_CC
2272
2273fi
2274
2275case "x$ac_cv_prog_cc_stdc" in
2276  x|xno)
2277    echo "$as_me:$LINENO: result: none needed" >&5
2278echo "${ECHO_T}none needed" >&6 ;;
2279  *)
2280    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2281echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2282    CC="$CC $ac_cv_prog_cc_stdc" ;;
2283esac
2284
2285# Some people use a C++ compiler to compile C.  Since we use `exit',
2286# in C++ we need to declare it.  In case someone uses the same compiler
2287# for both compiling C and C++ we need to have the C++ compiler decide
2288# the declaration of exit, since it's the most demanding environment.
2289cat >conftest.$ac_ext <<_ACEOF
2290#ifndef __cplusplus
2291  choke me
2292#endif
2293_ACEOF
2294rm -f conftest.$ac_objext
2295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296  (eval $ac_compile) 2>&5
2297  ac_status=$?
2298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299  (exit $ac_status); } &&
2300         { ac_try='test -s conftest.$ac_objext'
2301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302  (eval $ac_try) 2>&5
2303  ac_status=$?
2304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305  (exit $ac_status); }; }; then
2306  for ac_declaration in \
2307   ''\
2308   '#include <stdlib.h>' \
2309   'extern "C" void std::exit (int) throw (); using std::exit;' \
2310   'extern "C" void std::exit (int); using std::exit;' \
2311   'extern "C" void exit (int) throw ();' \
2312   'extern "C" void exit (int);' \
2313   'void exit (int);'
2314do
2315  cat >conftest.$ac_ext <<_ACEOF
2316#line $LINENO "configure"
2317/* confdefs.h.  */
2318_ACEOF
2319cat confdefs.h >>conftest.$ac_ext
2320cat >>conftest.$ac_ext <<_ACEOF
2321/* end confdefs.h.  */
2322#include <stdlib.h>
2323$ac_declaration
2324int
2325main ()
2326{
2327exit (42);
2328  ;
2329  return 0;
2330}
2331_ACEOF
2332rm -f conftest.$ac_objext
2333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2334  (eval $ac_compile) 2>&5
2335  ac_status=$?
2336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337  (exit $ac_status); } &&
2338         { ac_try='test -s conftest.$ac_objext'
2339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340  (eval $ac_try) 2>&5
2341  ac_status=$?
2342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343  (exit $ac_status); }; }; then
2344  :
2345else
2346  echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349continue
2350fi
2351rm -f conftest.$ac_objext conftest.$ac_ext
2352  cat >conftest.$ac_ext <<_ACEOF
2353#line $LINENO "configure"
2354/* confdefs.h.  */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
2358/* end confdefs.h.  */
2359$ac_declaration
2360int
2361main ()
2362{
2363exit (42);
2364  ;
2365  return 0;
2366}
2367_ACEOF
2368rm -f conftest.$ac_objext
2369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370  (eval $ac_compile) 2>&5
2371  ac_status=$?
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); } &&
2374         { ac_try='test -s conftest.$ac_objext'
2375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376  (eval $ac_try) 2>&5
2377  ac_status=$?
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); }; }; then
2380  break
2381else
2382  echo "$as_me: failed program was:" >&5
2383sed 's/^/| /' conftest.$ac_ext >&5
2384
2385fi
2386rm -f conftest.$ac_objext conftest.$ac_ext
2387done
2388rm -f conftest*
2389if test -n "$ac_declaration"; then
2390  echo '#ifdef __cplusplus' >>confdefs.h
2391  echo $ac_declaration      >>confdefs.h
2392  echo '#endif'             >>confdefs.h
2393fi
2394
2395else
2396  echo "$as_me: failed program was:" >&5
2397sed 's/^/| /' conftest.$ac_ext >&5
2398
2399fi
2400rm -f conftest.$ac_objext conftest.$ac_ext
2401ac_ext=c
2402ac_cpp='$CPP $CPPFLAGS'
2403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406
2407ac_ext=c
2408ac_cpp='$CPP $CPPFLAGS'
2409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2413echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2414# On Suns, sometimes $CPP names a directory.
2415if test -n "$CPP" && test -d "$CPP"; then
2416  CPP=
2417fi
2418if test -z "$CPP"; then
2419  if test "${ac_cv_prog_CPP+set}" = set; then
2420  echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422      # Double quotes because CPP needs to be expanded
2423    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2424    do
2425      ac_preproc_ok=false
2426for ac_c_preproc_warn_flag in '' yes
2427do
2428  # Use a header file that comes with gcc, so configuring glibc
2429  # with a fresh cross-compiler works.
2430  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2431  # <limits.h> exists even on freestanding compilers.
2432  # On the NeXT, cc -E runs the code through the compiler's parser,
2433  # not just through cpp. "Syntax error" is here to catch this case.
2434  cat >conftest.$ac_ext <<_ACEOF
2435#line $LINENO "configure"
2436/* confdefs.h.  */
2437_ACEOF
2438cat confdefs.h >>conftest.$ac_ext
2439cat >>conftest.$ac_ext <<_ACEOF
2440/* end confdefs.h.  */
2441#ifdef __STDC__
2442# include <limits.h>
2443#else
2444# include <assert.h>
2445#endif
2446                     Syntax error
2447_ACEOF
2448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2449  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2450  ac_status=$?
2451  grep -v '^ *+' conftest.er1 >conftest.err
2452  rm -f conftest.er1
2453  cat conftest.err >&5
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); } >/dev/null; then
2456  if test -s conftest.err; then
2457    ac_cpp_err=$ac_c_preproc_warn_flag
2458  else
2459    ac_cpp_err=
2460  fi
2461else
2462  ac_cpp_err=yes
2463fi
2464if test -z "$ac_cpp_err"; then
2465  :
2466else
2467  echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470  # Broken: fails on valid input.
2471continue
2472fi
2473rm -f conftest.err conftest.$ac_ext
2474
2475  # OK, works on sane cases.  Now check whether non-existent headers
2476  # can be detected and how.
2477  cat >conftest.$ac_ext <<_ACEOF
2478#line $LINENO "configure"
2479/* confdefs.h.  */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h.  */
2484#include <ac_nonexistent.h>
2485_ACEOF
2486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2487  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2488  ac_status=$?
2489  grep -v '^ *+' conftest.er1 >conftest.err
2490  rm -f conftest.er1
2491  cat conftest.err >&5
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); } >/dev/null; then
2494  if test -s conftest.err; then
2495    ac_cpp_err=$ac_c_preproc_warn_flag
2496  else
2497    ac_cpp_err=
2498  fi
2499else
2500  ac_cpp_err=yes
2501fi
2502if test -z "$ac_cpp_err"; then
2503  # Broken: success on invalid input.
2504continue
2505else
2506  echo "$as_me: failed program was:" >&5
2507sed 's/^/| /' conftest.$ac_ext >&5
2508
2509  # Passes both tests.
2510ac_preproc_ok=:
2511break
2512fi
2513rm -f conftest.err conftest.$ac_ext
2514
2515done
2516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2517rm -f conftest.err conftest.$ac_ext
2518if $ac_preproc_ok; then
2519  break
2520fi
2521
2522    done
2523    ac_cv_prog_CPP=$CPP
2524
2525fi
2526  CPP=$ac_cv_prog_CPP
2527else
2528  ac_cv_prog_CPP=$CPP
2529fi
2530echo "$as_me:$LINENO: result: $CPP" >&5
2531echo "${ECHO_T}$CPP" >&6
2532ac_preproc_ok=false
2533for ac_c_preproc_warn_flag in '' yes
2534do
2535  # Use a header file that comes with gcc, so configuring glibc
2536  # with a fresh cross-compiler works.
2537  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2538  # <limits.h> exists even on freestanding compilers.
2539  # On the NeXT, cc -E runs the code through the compiler's parser,
2540  # not just through cpp. "Syntax error" is here to catch this case.
2541  cat >conftest.$ac_ext <<_ACEOF
2542#line $LINENO "configure"
2543/* confdefs.h.  */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
2547/* end confdefs.h.  */
2548#ifdef __STDC__
2549# include <limits.h>
2550#else
2551# include <assert.h>
2552#endif
2553                     Syntax error
2554_ACEOF
2555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2556  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2557  ac_status=$?
2558  grep -v '^ *+' conftest.er1 >conftest.err
2559  rm -f conftest.er1
2560  cat conftest.err >&5
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); } >/dev/null; then
2563  if test -s conftest.err; then
2564    ac_cpp_err=$ac_c_preproc_warn_flag
2565  else
2566    ac_cpp_err=
2567  fi
2568else
2569  ac_cpp_err=yes
2570fi
2571if test -z "$ac_cpp_err"; then
2572  :
2573else
2574  echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577  # Broken: fails on valid input.
2578continue
2579fi
2580rm -f conftest.err conftest.$ac_ext
2581
2582  # OK, works on sane cases.  Now check whether non-existent headers
2583  # can be detected and how.
2584  cat >conftest.$ac_ext <<_ACEOF
2585#line $LINENO "configure"
2586/* confdefs.h.  */
2587_ACEOF
2588cat confdefs.h >>conftest.$ac_ext
2589cat >>conftest.$ac_ext <<_ACEOF
2590/* end confdefs.h.  */
2591#include <ac_nonexistent.h>
2592_ACEOF
2593if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2594  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2595  ac_status=$?
2596  grep -v '^ *+' conftest.er1 >conftest.err
2597  rm -f conftest.er1
2598  cat conftest.err >&5
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); } >/dev/null; then
2601  if test -s conftest.err; then
2602    ac_cpp_err=$ac_c_preproc_warn_flag
2603  else
2604    ac_cpp_err=
2605  fi
2606else
2607  ac_cpp_err=yes
2608fi
2609if test -z "$ac_cpp_err"; then
2610  # Broken: success on invalid input.
2611continue
2612else
2613  echo "$as_me: failed program was:" >&5
2614sed 's/^/| /' conftest.$ac_ext >&5
2615
2616  # Passes both tests.
2617ac_preproc_ok=:
2618break
2619fi
2620rm -f conftest.err conftest.$ac_ext
2621
2622done
2623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2624rm -f conftest.err conftest.$ac_ext
2625if $ac_preproc_ok; then
2626  :
2627else
2628  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2629See \`config.log' for more details." >&5
2630echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2631See \`config.log' for more details." >&2;}
2632   { (exit 1); exit 1; }; }
2633fi
2634
2635ac_ext=c
2636ac_cpp='$CPP $CPPFLAGS'
2637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639ac_compiler_gnu=$ac_cv_c_compiler_gnu
2640
2641
2642
2643echo "$as_me:$LINENO: checking for egrep" >&5
2644echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2645if test "${ac_cv_prog_egrep+set}" = set; then
2646  echo $ECHO_N "(cached) $ECHO_C" >&6
2647else
2648  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2649    then ac_cv_prog_egrep='grep -E'
2650    else ac_cv_prog_egrep='egrep'
2651    fi
2652fi
2653echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2654echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2655 EGREP=$ac_cv_prog_egrep
2656
2657
2658if test $ac_cv_c_compiler_gnu = yes; then
2659    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2660echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2661if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2662  echo $ECHO_N "(cached) $ECHO_C" >&6
2663else
2664    ac_pattern="Autoconf.*'x'"
2665  cat >conftest.$ac_ext <<_ACEOF
2666#line $LINENO "configure"
2667/* confdefs.h.  */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
2671/* end confdefs.h.  */
2672#include <sgtty.h>
2673Autoconf TIOCGETP
2674_ACEOF
2675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2676  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2677  ac_cv_prog_gcc_traditional=yes
2678else
2679  ac_cv_prog_gcc_traditional=no
2680fi
2681rm -f conftest*
2682
2683
2684  if test $ac_cv_prog_gcc_traditional = no; then
2685    cat >conftest.$ac_ext <<_ACEOF
2686#line $LINENO "configure"
2687/* confdefs.h.  */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h.  */
2692#include <termio.h>
2693Autoconf TCGETA
2694_ACEOF
2695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2696  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2697  ac_cv_prog_gcc_traditional=yes
2698fi
2699rm -f conftest*
2700
2701  fi
2702fi
2703echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2704echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2705  if test $ac_cv_prog_gcc_traditional = yes; then
2706    CC="$CC -traditional"
2707  fi
2708fi
2709
2710
2711if test $ac_cv_c_compiler_gnu = no ; then
2712  DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
2713  CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
2714fi
2715
2716case "${host}" in
2717  ## Cygnus GNU Win32
2718  *-cygwin)
2719    CFLAGS="$CFLAGS -mno-win32"
2720  ;;
2721esac
2722
2723echo "$as_me:$LINENO: checking for library containing crypt" >&5
2724echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2725if test "${ac_cv_search_crypt+set}" = set; then
2726  echo $ECHO_N "(cached) $ECHO_C" >&6
2727else
2728  ac_func_search_save_LIBS=$LIBS
2729ac_cv_search_crypt=no
2730cat >conftest.$ac_ext <<_ACEOF
2731#line $LINENO "configure"
2732/* confdefs.h.  */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h.  */
2737
2738/* Override any gcc2 internal prototype to avoid an error.  */
2739#ifdef __cplusplus
2740extern "C"
2741#endif
2742/* We use char because int might match the return type of a gcc2
2743   builtin and then its argument prototype would still apply.  */
2744char crypt ();
2745int
2746main ()
2747{
2748crypt ();
2749  ;
2750  return 0;
2751}
2752_ACEOF
2753rm -f conftest.$ac_objext conftest$ac_exeext
2754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2755  (eval $ac_link) 2>&5
2756  ac_status=$?
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); } &&
2759         { ac_try='test -s conftest$ac_exeext'
2760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761  (eval $ac_try) 2>&5
2762  ac_status=$?
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); }; }; then
2765  ac_cv_search_crypt="none required"
2766else
2767  echo "$as_me: failed program was:" >&5
2768sed 's/^/| /' conftest.$ac_ext >&5
2769
2770fi
2771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2772if test "$ac_cv_search_crypt" = no; then
2773  for ac_lib in crypt; do
2774    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2775    cat >conftest.$ac_ext <<_ACEOF
2776#line $LINENO "configure"
2777/* confdefs.h.  */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
2781/* end confdefs.h.  */
2782
2783/* Override any gcc2 internal prototype to avoid an error.  */
2784#ifdef __cplusplus
2785extern "C"
2786#endif
2787/* We use char because int might match the return type of a gcc2
2788   builtin and then its argument prototype would still apply.  */
2789char crypt ();
2790int
2791main ()
2792{
2793crypt ();
2794  ;
2795  return 0;
2796}
2797_ACEOF
2798rm -f conftest.$ac_objext conftest$ac_exeext
2799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2800  (eval $ac_link) 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); } &&
2804         { ac_try='test -s conftest$ac_exeext'
2805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806  (eval $ac_try) 2>&5
2807  ac_status=$?
2808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809  (exit $ac_status); }; }; then
2810  ac_cv_search_crypt="-l$ac_lib"
2811break
2812else
2813  echo "$as_me: failed program was:" >&5
2814sed 's/^/| /' conftest.$ac_ext >&5
2815
2816fi
2817rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2818  done
2819fi
2820LIBS=$ac_func_search_save_LIBS
2821fi
2822echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2823echo "${ECHO_T}$ac_cv_search_crypt" >&6
2824if test "$ac_cv_search_crypt" != no; then
2825  test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2826
2827fi
2828
2829echo "$as_me:$LINENO: checking for library containing tgetent" >&5
2830echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
2831if test "${ac_cv_search_tgetent+set}" = set; then
2832  echo $ECHO_N "(cached) $ECHO_C" >&6
2833else
2834  ac_func_search_save_LIBS=$LIBS
2835ac_cv_search_tgetent=no
2836cat >conftest.$ac_ext <<_ACEOF
2837#line $LINENO "configure"
2838/* confdefs.h.  */
2839_ACEOF
2840cat confdefs.h >>conftest.$ac_ext
2841cat >>conftest.$ac_ext <<_ACEOF
2842/* end confdefs.h.  */
2843
2844/* Override any gcc2 internal prototype to avoid an error.  */
2845#ifdef __cplusplus
2846extern "C"
2847#endif
2848/* We use char because int might match the return type of a gcc2
2849   builtin and then its argument prototype would still apply.  */
2850char tgetent ();
2851int
2852main ()
2853{
2854tgetent ();
2855  ;
2856  return 0;
2857}
2858_ACEOF
2859rm -f conftest.$ac_objext conftest$ac_exeext
2860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2861  (eval $ac_link) 2>&5
2862  ac_status=$?
2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864  (exit $ac_status); } &&
2865         { ac_try='test -s conftest$ac_exeext'
2866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867  (eval $ac_try) 2>&5
2868  ac_status=$?
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); }; }; then
2871  ac_cv_search_tgetent="none required"
2872else
2873  echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876fi
2877rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2878if test "$ac_cv_search_tgetent" = no; then
2879  for ac_lib in termlib curses termcap; do
2880    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2881    cat >conftest.$ac_ext <<_ACEOF
2882#line $LINENO "configure"
2883/* confdefs.h.  */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h.  */
2888
2889/* Override any gcc2 internal prototype to avoid an error.  */
2890#ifdef __cplusplus
2891extern "C"
2892#endif
2893/* We use char because int might match the return type of a gcc2
2894   builtin and then its argument prototype would still apply.  */
2895char tgetent ();
2896int
2897main ()
2898{
2899tgetent ();
2900  ;
2901  return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext conftest$ac_exeext
2905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2906  (eval $ac_link) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); } &&
2910         { ac_try='test -s conftest$ac_exeext'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; }; then
2916  ac_cv_search_tgetent="-l$ac_lib"
2917break
2918else
2919  echo "$as_me: failed program was:" >&5
2920sed 's/^/| /' conftest.$ac_ext >&5
2921
2922fi
2923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2924  done
2925fi
2926LIBS=$ac_func_search_save_LIBS
2927fi
2928echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
2929echo "${ECHO_T}$ac_cv_search_tgetent" >&6
2930if test "$ac_cv_search_tgetent" != no; then
2931  test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
2932
2933fi
2934
2935echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
2936echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
2937if test "${ac_cv_search_gethostbyname+set}" = set; then
2938  echo $ECHO_N "(cached) $ECHO_C" >&6
2939else
2940  ac_func_search_save_LIBS=$LIBS
2941ac_cv_search_gethostbyname=no
2942cat >conftest.$ac_ext <<_ACEOF
2943#line $LINENO "configure"
2944/* confdefs.h.  */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h.  */
2949
2950/* Override any gcc2 internal prototype to avoid an error.  */
2951#ifdef __cplusplus
2952extern "C"
2953#endif
2954/* We use char because int might match the return type of a gcc2
2955   builtin and then its argument prototype would still apply.  */
2956char gethostbyname ();
2957int
2958main ()
2959{
2960gethostbyname ();
2961  ;
2962  return 0;
2963}
2964_ACEOF
2965rm -f conftest.$ac_objext conftest$ac_exeext
2966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2967  (eval $ac_link) 2>&5
2968  ac_status=$?
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); } &&
2971         { ac_try='test -s conftest$ac_exeext'
2972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973  (eval $ac_try) 2>&5
2974  ac_status=$?
2975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976  (exit $ac_status); }; }; then
2977  ac_cv_search_gethostbyname="none required"
2978else
2979  echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982fi
2983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2984if test "$ac_cv_search_gethostbyname" = no; then
2985  for ac_lib in nsl; do
2986    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2987    cat >conftest.$ac_ext <<_ACEOF
2988#line $LINENO "configure"
2989/* confdefs.h.  */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h.  */
2994
2995/* Override any gcc2 internal prototype to avoid an error.  */
2996#ifdef __cplusplus
2997extern "C"
2998#endif
2999/* We use char because int might match the return type of a gcc2
3000   builtin and then its argument prototype would still apply.  */
3001char gethostbyname ();
3002int
3003main ()
3004{
3005gethostbyname ();
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010rm -f conftest.$ac_objext conftest$ac_exeext
3011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3012  (eval $ac_link) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); } &&
3016         { ac_try='test -s conftest$ac_exeext'
3017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018  (eval $ac_try) 2>&5
3019  ac_status=$?
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); }; }; then
3022  ac_cv_search_gethostbyname="-l$ac_lib"
3023break
3024else
3025  echo "$as_me: failed program was:" >&5
3026sed 's/^/| /' conftest.$ac_ext >&5
3027
3028fi
3029rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3030  done
3031fi
3032LIBS=$ac_func_search_save_LIBS
3033fi
3034echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3035echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
3036if test "$ac_cv_search_gethostbyname" != no; then
3037  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
3038
3039fi
3040
3041echo "$as_me:$LINENO: checking for library containing connect" >&5
3042echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
3043if test "${ac_cv_search_connect+set}" = set; then
3044  echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046  ac_func_search_save_LIBS=$LIBS
3047ac_cv_search_connect=no
3048cat >conftest.$ac_ext <<_ACEOF
3049#line $LINENO "configure"
3050/* confdefs.h.  */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h.  */
3055
3056/* Override any gcc2 internal prototype to avoid an error.  */
3057#ifdef __cplusplus
3058extern "C"
3059#endif
3060/* We use char because int might match the return type of a gcc2
3061   builtin and then its argument prototype would still apply.  */
3062char connect ();
3063int
3064main ()
3065{
3066connect ();
3067  ;
3068  return 0;
3069}
3070_ACEOF
3071rm -f conftest.$ac_objext conftest$ac_exeext
3072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3073  (eval $ac_link) 2>&5
3074  ac_status=$?
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); } &&
3077         { ac_try='test -s conftest$ac_exeext'
3078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079  (eval $ac_try) 2>&5
3080  ac_status=$?
3081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082  (exit $ac_status); }; }; then
3083  ac_cv_search_connect="none required"
3084else
3085  echo "$as_me: failed program was:" >&5
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
3088fi
3089rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3090if test "$ac_cv_search_connect" = no; then
3091  for ac_lib in socket; do
3092    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3093    cat >conftest.$ac_ext <<_ACEOF
3094#line $LINENO "configure"
3095/* confdefs.h.  */
3096_ACEOF
3097cat confdefs.h >>conftest.$ac_ext
3098cat >>conftest.$ac_ext <<_ACEOF
3099/* end confdefs.h.  */
3100
3101/* Override any gcc2 internal prototype to avoid an error.  */
3102#ifdef __cplusplus
3103extern "C"
3104#endif
3105/* We use char because int might match the return type of a gcc2
3106   builtin and then its argument prototype would still apply.  */
3107char connect ();
3108int
3109main ()
3110{
3111connect ();
3112  ;
3113  return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext conftest$ac_exeext
3117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3118  (eval $ac_link) 2>&5
3119  ac_status=$?
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); } &&
3122         { ac_try='test -s conftest$ac_exeext'
3123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124  (eval $ac_try) 2>&5
3125  ac_status=$?
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); }; }; then
3128  ac_cv_search_connect="-l$ac_lib"
3129break
3130else
3131  echo "$as_me: failed program was:" >&5
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
3134fi
3135rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3136  done
3137fi
3138LIBS=$ac_func_search_save_LIBS
3139fi
3140echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
3141echo "${ECHO_T}$ac_cv_search_connect" >&6
3142if test "$ac_cv_search_connect" != no; then
3143  test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
3144
3145fi
3146
3147
3148
3149echo "$as_me:$LINENO: checking ss_family in sockaddr_storage" >&5
3150echo $ECHO_N "checking ss_family in sockaddr_storage... $ECHO_C" >&6
3151if test "${ac_cv_ss_family+set}" = set; then
3152  echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154  cat >conftest.$ac_ext <<_ACEOF
3155#line $LINENO "configure"
3156/* confdefs.h.  */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h.  */
3161#include <sys/types.h>
3162#include <sys/socket.h>
3163int
3164main ()
3165{
3166struct sockaddr_storage ss; ss.ss_family;
3167  ;
3168  return 0;
3169}
3170_ACEOF
3171rm -f conftest.$ac_objext
3172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173  (eval $ac_compile) 2>&5
3174  ac_status=$?
3175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176  (exit $ac_status); } &&
3177         { ac_try='test -s conftest.$ac_objext'
3178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179  (eval $ac_try) 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }; }; then
3183  ac_cv_ss_family=yes
3184else
3185  echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188ac_cv_ss_family=no
3189fi
3190rm -f conftest.$ac_objext conftest.$ac_ext
3191if test "$ac_cv_ss_family" = no; then
3192  DFLAGS="$DFLAGS -DNO_SS_FAMILY"
3193fi
3194
3195fi
3196echo "$as_me:$LINENO: result: $ac_cv_ss_family" >&5
3197echo "${ECHO_T}$ac_cv_ss_family" >&6
3198
3199
3200
3201
3202# Check whether --with-hesiod or --without-hesiod was given.
3203if test "${with_hesiod+set}" = set; then
3204  withval="$with_hesiod"
3205  hesiod="$withval"
3206else
3207  hesiod=no
3208fi;
3209if test "$hesiod" != no; then
3210  HESLIB="-lhesiod"
3211  echo "$as_me:$LINENO: checking for res_send" >&5
3212echo $ECHO_N "checking for res_send... $ECHO_C" >&6
3213if test "${ac_cv_func_res_send+set}" = set; then
3214  echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216  cat >conftest.$ac_ext <<_ACEOF
3217#line $LINENO "configure"
3218/* confdefs.h.  */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
3222/* end confdefs.h.  */
3223/* System header to define __stub macros and hopefully few prototypes,
3224    which can conflict with char res_send (); below.
3225    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226    <limits.h> exists even on freestanding compilers.  */
3227#ifdef __STDC__
3228# include <limits.h>
3229#else
3230# include <assert.h>
3231#endif
3232/* Override any gcc2 internal prototype to avoid an error.  */
3233#ifdef __cplusplus
3234extern "C"
3235{
3236#endif
3237/* We use char because int might match the return type of a gcc2
3238   builtin and then its argument prototype would still apply.  */
3239char res_send ();
3240/* The GNU C library defines this for functions which it implements
3241    to always fail with ENOSYS.  Some functions are actually named
3242    something starting with __ and the normal name is an alias.  */
3243#if defined (__stub_res_send) || defined (__stub___res_send)
3244choke me
3245#else
3246char (*f) () = res_send;
3247#endif
3248#ifdef __cplusplus
3249}
3250#endif
3251
3252int
3253main ()
3254{
3255return f != res_send;
3256  ;
3257  return 0;
3258}
3259_ACEOF
3260rm -f conftest.$ac_objext conftest$ac_exeext
3261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3262  (eval $ac_link) 2>&5
3263  ac_status=$?
3264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265  (exit $ac_status); } &&
3266         { ac_try='test -s conftest$ac_exeext'
3267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268  (eval $ac_try) 2>&5
3269  ac_status=$?
3270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271  (exit $ac_status); }; }; then
3272  ac_cv_func_res_send=yes
3273else
3274  echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
3277ac_cv_func_res_send=no
3278fi
3279rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3280fi
3281echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
3282echo "${ECHO_T}$ac_cv_func_res_send" >&6
3283if test $ac_cv_func_res_send = yes; then
3284  :
3285else
3286  echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
3287echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
3288if test "${ac_cv_lib_resolv_res_send+set}" = set; then
3289  echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291  ac_check_lib_save_LIBS=$LIBS
3292LIBS="-lresolv  $LIBS"
3293cat >conftest.$ac_ext <<_ACEOF
3294#line $LINENO "configure"
3295/* confdefs.h.  */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h.  */
3300
3301/* Override any gcc2 internal prototype to avoid an error.  */
3302#ifdef __cplusplus
3303extern "C"
3304#endif
3305/* We use char because int might match the return type of a gcc2
3306   builtin and then its argument prototype would still apply.  */
3307char res_send ();
3308int
3309main ()
3310{
3311res_send ();
3312  ;
3313  return 0;
3314}
3315_ACEOF
3316rm -f conftest.$ac_objext conftest$ac_exeext
3317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3318  (eval $ac_link) 2>&5
3319  ac_status=$?
3320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321  (exit $ac_status); } &&
3322         { ac_try='test -s conftest$ac_exeext'
3323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324  (eval $ac_try) 2>&5
3325  ac_status=$?
3326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); }; }; then
3328  ac_cv_lib_resolv_res_send=yes
3329else
3330  echo "$as_me: failed program was:" >&5
3331sed 's/^/| /' conftest.$ac_ext >&5
3332
3333ac_cv_lib_resolv_res_send=no
3334fi
3335rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3336LIBS=$ac_check_lib_save_LIBS
3337fi
3338echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
3339echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
3340if test $ac_cv_lib_resolv_res_send = yes; then
3341  HESLIB="$HESLIB -lresolv"
3342fi
3343
3344fi
3345
3346  HESDEF=-DHESIOD
3347  if test "$hesiod" != yes; then
3348    HESDEF="$HESDEF -I$hesiod/include"
3349    HESLIB="-L$hesiod/lib $HESLIB"
3350  fi
3351fi
3352
3353
3354
3355
3356
3357          ac_config_files="$ac_config_files Makefile"
3358cat >confcache <<\_ACEOF
3359# This file is a shell script that caches the results of configure
3360# tests run on this system so they can be shared between configure
3361# scripts and configure runs, see configure's option --config-cache.
3362# It is not useful on other systems.  If it contains results you don't
3363# want to keep, you may remove or edit it.
3364#
3365# config.status only pays attention to the cache file if you give it
3366# the --recheck option to rerun configure.
3367#
3368# `ac_cv_env_foo' variables (set or unset) will be overridden when
3369# loading this file, other *unset* `ac_cv_foo' will be assigned the
3370# following values.
3371
3372_ACEOF
3373
3374# The following way of writing the cache mishandles newlines in values,
3375# but we know of no workaround that is simple, portable, and efficient.
3376# So, don't put newlines in cache variables' values.
3377# Ultrix sh set writes to stderr and can't be redirected directly,
3378# and sets the high bit in the cache file unless we assign to the vars.
3379{
3380  (set) 2>&1 |
3381    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3382    *ac_space=\ *)
3383      # `set' does not quote correctly, so add quotes (double-quote
3384      # substitution turns \\\\ into \\, and sed turns \\ into \).
3385      sed -n \
3386        "s/'/'\\\\''/g;
3387    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3388      ;;
3389    *)
3390      # `set' quotes correctly as required by POSIX, so do not add quotes.
3391      sed -n \
3392        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3393      ;;
3394    esac;
3395} |
3396  sed '
3397     t clear
3398     : clear
3399     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3400     t end
3401     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3402     : end' >>confcache
3403if diff $cache_file confcache >/dev/null 2>&1; then :; else
3404  if test -w $cache_file; then
3405    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3406    cat confcache >$cache_file
3407  else
3408    echo "not updating unwritable cache $cache_file"
3409  fi
3410fi
3411rm -f confcache
3412
3413test "x$prefix" = xNONE && prefix=$ac_default_prefix
3414# Let make expand exec_prefix.
3415test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3416
3417# VPATH may cause trouble with some makes, so we remove $(srcdir),
3418# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3419# trailing colons and then remove the whole line if VPATH becomes empty
3420# (actually we leave an empty line to preserve line numbers).
3421if test "x$srcdir" = x.; then
3422  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
3423s/:*\$(srcdir):*/:/;
3424s/:*\${srcdir}:*/:/;
3425s/:*@srcdir@:*/:/;
3426s/^\([^=]*=[ 	]*\):*/\1/;
3427s/:*$//;
3428s/^[^=]*=[ 	]*$//;
3429}'
3430fi
3431
3432DEFS=-DHAVE_CONFIG_H
3433
3434ac_libobjs=
3435ac_ltlibobjs=
3436for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3437  # 1. Remove the extension, and $U if already installed.
3438  ac_i=`echo "$ac_i" |
3439         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3440  # 2. Add them.
3441  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3442  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3443done
3444LIBOBJS=$ac_libobjs
3445
3446LTLIBOBJS=$ac_ltlibobjs
3447
3448
3449
3450: ${CONFIG_STATUS=./config.status}
3451ac_clean_files_save=$ac_clean_files
3452ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3453{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3454echo "$as_me: creating $CONFIG_STATUS" >&6;}
3455cat >$CONFIG_STATUS <<_ACEOF
3456#! $SHELL
3457# Generated by $as_me.
3458# Run this file to recreate the current configuration.
3459# Compiler output produced by configure, useful for debugging
3460# configure, is in config.log if it exists.
3461
3462debug=false
3463ac_cs_recheck=false
3464ac_cs_silent=false
3465SHELL=\${CONFIG_SHELL-$SHELL}
3466_ACEOF
3467
3468cat >>$CONFIG_STATUS <<\_ACEOF
3469## --------------------- ##
3470## M4sh Initialization.  ##
3471## --------------------- ##
3472
3473# Be Bourne compatible
3474if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3475  emulate sh
3476  NULLCMD=:
3477  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3478  # is contrary to our usage.  Disable this feature.
3479  alias -g '${1+"$@"}'='"$@"'
3480elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3481  set -o posix
3482fi
3483
3484# Support unset when possible.
3485if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3486  as_unset=unset
3487else
3488  as_unset=false
3489fi
3490
3491
3492# Work around bugs in pre-3.0 UWIN ksh.
3493$as_unset ENV MAIL MAILPATH
3494PS1='$ '
3495PS2='> '
3496PS4='+ '
3497
3498# NLS nuisances.
3499for as_var in \
3500  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3501  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3502  LC_TELEPHONE LC_TIME
3503do
3504  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3505    eval $as_var=C; export $as_var
3506  else
3507    $as_unset $as_var
3508  fi
3509done
3510
3511# Required to use basename.
3512if expr a : '\(a\)' >/dev/null 2>&1; then
3513  as_expr=expr
3514else
3515  as_expr=false
3516fi
3517
3518if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3519  as_basename=basename
3520else
3521  as_basename=false
3522fi
3523
3524
3525# Name of the executable.
3526as_me=`$as_basename "$0" ||
3527$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3528	 X"$0" : 'X\(//\)$' \| \
3529	 X"$0" : 'X\(/\)$' \| \
3530	 .     : '\(.\)' 2>/dev/null ||
3531echo X/"$0" |
3532    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3533  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
3534  	  /^X\/\(\/\).*/{ s//\1/; q; }
3535  	  s/.*/./; q'`
3536
3537
3538# PATH needs CR, and LINENO needs CR and PATH.
3539# Avoid depending upon Character Ranges.
3540as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3541as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3542as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3543as_cr_digits='0123456789'
3544as_cr_alnum=$as_cr_Letters$as_cr_digits
3545
3546# The user is always right.
3547if test "${PATH_SEPARATOR+set}" != set; then
3548  echo "#! /bin/sh" >conf$$.sh
3549  echo  "exit 0"   >>conf$$.sh
3550  chmod +x conf$$.sh
3551  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3552    PATH_SEPARATOR=';'
3553  else
3554    PATH_SEPARATOR=:
3555  fi
3556  rm -f conf$$.sh
3557fi
3558
3559
3560  as_lineno_1=$LINENO
3561  as_lineno_2=$LINENO
3562  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3563  test "x$as_lineno_1" != "x$as_lineno_2" &&
3564  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3565  # Find who we are.  Look in the path if we contain no path at all
3566  # relative or not.
3567  case $0 in
3568    *[\\/]* ) as_myself=$0 ;;
3569    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570for as_dir in $PATH
3571do
3572  IFS=$as_save_IFS
3573  test -z "$as_dir" && as_dir=.
3574  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3575done
3576
3577       ;;
3578  esac
3579  # We did not find ourselves, most probably we were run as `sh COMMAND'
3580  # in which case we are not to be found in the path.
3581  if test "x$as_myself" = x; then
3582    as_myself=$0
3583  fi
3584  if test ! -f "$as_myself"; then
3585    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3586echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3587   { (exit 1); exit 1; }; }
3588  fi
3589  case $CONFIG_SHELL in
3590  '')
3591    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3593do
3594  IFS=$as_save_IFS
3595  test -z "$as_dir" && as_dir=.
3596  for as_base in sh bash ksh sh5; do
3597	 case $as_dir in
3598	 /*)
3599	   if ("$as_dir/$as_base" -c '
3600  as_lineno_1=$LINENO
3601  as_lineno_2=$LINENO
3602  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3603  test "x$as_lineno_1" != "x$as_lineno_2" &&
3604  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3605	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3606	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3607	     CONFIG_SHELL=$as_dir/$as_base
3608	     export CONFIG_SHELL
3609	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3610	   fi;;
3611	 esac
3612       done
3613done
3614;;
3615  esac
3616
3617  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3618  # uniformly replaced by the line number.  The first 'sed' inserts a
3619  # line-number line before each line; the second 'sed' does the real
3620  # work.  The second script uses 'N' to pair each line-number line
3621  # with the numbered line, and appends trailing '-' during
3622  # substitution so that $LINENO is not a special case at line end.
3623  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3624  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3625  sed '=' <$as_myself |
3626    sed '
3627      N
3628      s,$,-,
3629      : loop
3630      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3631      t loop
3632      s,-$,,
3633      s,^['$as_cr_digits']*\n,,
3634    ' >$as_me.lineno &&
3635  chmod +x $as_me.lineno ||
3636    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3637echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3638   { (exit 1); exit 1; }; }
3639
3640  # Don't try to exec as it changes $[0], causing all sort of problems
3641  # (the dirname of $[0] is not the place where we might find the
3642  # original and so on.  Autoconf is especially sensible to this).
3643  . ./$as_me.lineno
3644  # Exit status is that of the last command.
3645  exit
3646}
3647
3648
3649case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3650  *c*,-n*) ECHO_N= ECHO_C='
3651' ECHO_T='	' ;;
3652  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3653  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3654esac
3655
3656if expr a : '\(a\)' >/dev/null 2>&1; then
3657  as_expr=expr
3658else
3659  as_expr=false
3660fi
3661
3662rm -f conf$$ conf$$.exe conf$$.file
3663echo >conf$$.file
3664if ln -s conf$$.file conf$$ 2>/dev/null; then
3665  # We could just check for DJGPP; but this test a) works b) is more generic
3666  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3667  if test -f conf$$.exe; then
3668    # Don't use ln at all; we don't have any links
3669    as_ln_s='cp -p'
3670  else
3671    as_ln_s='ln -s'
3672  fi
3673elif ln conf$$.file conf$$ 2>/dev/null; then
3674  as_ln_s=ln
3675else
3676  as_ln_s='cp -p'
3677fi
3678rm -f conf$$ conf$$.exe conf$$.file
3679
3680if mkdir -p . 2>/dev/null; then
3681  as_mkdir_p=:
3682else
3683  as_mkdir_p=false
3684fi
3685
3686as_executable_p="test -f"
3687
3688# Sed expression to map a string onto a valid CPP name.
3689as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3690
3691# Sed expression to map a string onto a valid variable name.
3692as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3693
3694
3695# IFS
3696# We need space, tab and new line, in precisely that order.
3697as_nl='
3698'
3699IFS=" 	$as_nl"
3700
3701# CDPATH.
3702$as_unset CDPATH
3703
3704exec 6>&1
3705
3706# Open the log real soon, to keep \$[0] and so on meaningful, and to
3707# report actual input values of CONFIG_FILES etc. instead of their
3708# values after options handling.  Logging --version etc. is OK.
3709exec 5>>config.log
3710{
3711  echo
3712  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3713## Running $as_me. ##
3714_ASBOX
3715} >&5
3716cat >&5 <<_CSEOF
3717
3718This file was extended by $as_me, which was
3719generated by GNU Autoconf 2.57.  Invocation command line was
3720
3721  CONFIG_FILES    = $CONFIG_FILES
3722  CONFIG_HEADERS  = $CONFIG_HEADERS
3723  CONFIG_LINKS    = $CONFIG_LINKS
3724  CONFIG_COMMANDS = $CONFIG_COMMANDS
3725  $ $0 $@
3726
3727_CSEOF
3728echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3729echo >&5
3730_ACEOF
3731
3732# Files that config.status was made for.
3733if test -n "$ac_config_files"; then
3734  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3735fi
3736
3737if test -n "$ac_config_headers"; then
3738  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3739fi
3740
3741if test -n "$ac_config_links"; then
3742  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3743fi
3744
3745if test -n "$ac_config_commands"; then
3746  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3747fi
3748
3749cat >>$CONFIG_STATUS <<\_ACEOF
3750
3751ac_cs_usage="\
3752\`$as_me' instantiates files from templates according to the
3753current configuration.
3754
3755Usage: $0 [OPTIONS] [FILE]...
3756
3757  -h, --help       print this help, then exit
3758  -V, --version    print version number, then exit
3759  -q, --quiet      do not print progress messages
3760  -d, --debug      don't remove temporary files
3761      --recheck    update $as_me by reconfiguring in the same conditions
3762  --file=FILE[:TEMPLATE]
3763                   instantiate the configuration file FILE
3764  --header=FILE[:TEMPLATE]
3765                   instantiate the configuration header FILE
3766
3767Configuration files:
3768$config_files
3769
3770Configuration headers:
3771$config_headers
3772
3773Report bugs to <bug-autoconf@gnu.org>."
3774_ACEOF
3775
3776cat >>$CONFIG_STATUS <<_ACEOF
3777ac_cs_version="\\
3778config.status
3779configured by $0, generated by GNU Autoconf 2.57,
3780  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3781
3782Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3783Free Software Foundation, Inc.
3784This config.status script is free software; the Free Software Foundation
3785gives unlimited permission to copy, distribute and modify it."
3786srcdir=$srcdir
3787_ACEOF
3788
3789cat >>$CONFIG_STATUS <<\_ACEOF
3790# If no file are specified by the user, then we need to provide default
3791# value.  By we need to know if files were specified by the user.
3792ac_need_defaults=:
3793while test $# != 0
3794do
3795  case $1 in
3796  --*=*)
3797    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3798    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3799    ac_shift=:
3800    ;;
3801  -*)
3802    ac_option=$1
3803    ac_optarg=$2
3804    ac_shift=shift
3805    ;;
3806  *) # This is not an option, so the user has probably given explicit
3807     # arguments.
3808     ac_option=$1
3809     ac_need_defaults=false;;
3810  esac
3811
3812  case $ac_option in
3813  # Handling of the options.
3814_ACEOF
3815cat >>$CONFIG_STATUS <<\_ACEOF
3816  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3817    ac_cs_recheck=: ;;
3818  --version | --vers* | -V )
3819    echo "$ac_cs_version"; exit 0 ;;
3820  --he | --h)
3821    # Conflict between --help and --header
3822    { { echo "$as_me:$LINENO: error: ambiguous option: $1
3823Try \`$0 --help' for more information." >&5
3824echo "$as_me: error: ambiguous option: $1
3825Try \`$0 --help' for more information." >&2;}
3826   { (exit 1); exit 1; }; };;
3827  --help | --hel | -h )
3828    echo "$ac_cs_usage"; exit 0 ;;
3829  --debug | --d* | -d )
3830    debug=: ;;
3831  --file | --fil | --fi | --f )
3832    $ac_shift
3833    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3834    ac_need_defaults=false;;
3835  --header | --heade | --head | --hea )
3836    $ac_shift
3837    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3838    ac_need_defaults=false;;
3839  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3840  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3841    ac_cs_silent=: ;;
3842
3843  # This is an error.
3844  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3845Try \`$0 --help' for more information." >&5
3846echo "$as_me: error: unrecognized option: $1
3847Try \`$0 --help' for more information." >&2;}
3848   { (exit 1); exit 1; }; } ;;
3849
3850  *) ac_config_targets="$ac_config_targets $1" ;;
3851
3852  esac
3853  shift
3854done
3855
3856ac_configure_extra_args=
3857
3858if $ac_cs_silent; then
3859  exec 6>/dev/null
3860  ac_configure_extra_args="$ac_configure_extra_args --silent"
3861fi
3862
3863_ACEOF
3864cat >>$CONFIG_STATUS <<_ACEOF
3865if \$ac_cs_recheck; then
3866  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3867  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3868fi
3869
3870_ACEOF
3871
3872
3873
3874
3875
3876cat >>$CONFIG_STATUS <<\_ACEOF
3877for ac_config_target in $ac_config_targets
3878do
3879  case "$ac_config_target" in
3880  # Handling of arguments.
3881  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3882  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config/${tcsh_config_file}:config.h.in" ;;
3883  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3884echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3885   { (exit 1); exit 1; }; };;
3886  esac
3887done
3888
3889# If the user did not use the arguments to specify the items to instantiate,
3890# then the envvar interface is used.  Set only those that are not.
3891# We use the long form for the default assignment because of an extremely
3892# bizarre bug on SunOS 4.1.3.
3893if $ac_need_defaults; then
3894  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3895  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3896fi
3897
3898# Have a temporary directory for convenience.  Make it in the build tree
3899# simply because there is no reason to put it here, and in addition,
3900# creating and moving files from /tmp can sometimes cause problems.
3901# Create a temporary directory, and hook for its removal unless debugging.
3902$debug ||
3903{
3904  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3905  trap '{ (exit 1); exit 1; }' 1 2 13 15
3906}
3907
3908# Create a (secure) tmp directory for tmp files.
3909
3910{
3911  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3912  test -n "$tmp" && test -d "$tmp"
3913}  ||
3914{
3915  tmp=./confstat$$-$RANDOM
3916  (umask 077 && mkdir $tmp)
3917} ||
3918{
3919   echo "$me: cannot create a temporary directory in ." >&2
3920   { (exit 1); exit 1; }
3921}
3922
3923_ACEOF
3924
3925cat >>$CONFIG_STATUS <<_ACEOF
3926
3927#
3928# CONFIG_FILES section.
3929#
3930
3931# No need to generate the scripts if there are no CONFIG_FILES.
3932# This happens for instance when ./config.status config.h
3933if test -n "\$CONFIG_FILES"; then
3934  # Protect against being on the right side of a sed subst in config.status.
3935  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3936   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3937s,@SHELL@,$SHELL,;t t
3938s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3939s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3940s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3941s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3942s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3943s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3944s,@exec_prefix@,$exec_prefix,;t t
3945s,@prefix@,$prefix,;t t
3946s,@program_transform_name@,$program_transform_name,;t t
3947s,@bindir@,$bindir,;t t
3948s,@sbindir@,$sbindir,;t t
3949s,@libexecdir@,$libexecdir,;t t
3950s,@datadir@,$datadir,;t t
3951s,@sysconfdir@,$sysconfdir,;t t
3952s,@sharedstatedir@,$sharedstatedir,;t t
3953s,@localstatedir@,$localstatedir,;t t
3954s,@libdir@,$libdir,;t t
3955s,@includedir@,$includedir,;t t
3956s,@oldincludedir@,$oldincludedir,;t t
3957s,@infodir@,$infodir,;t t
3958s,@mandir@,$mandir,;t t
3959s,@build_alias@,$build_alias,;t t
3960s,@host_alias@,$host_alias,;t t
3961s,@target_alias@,$target_alias,;t t
3962s,@DEFS@,$DEFS,;t t
3963s,@ECHO_C@,$ECHO_C,;t t
3964s,@ECHO_N@,$ECHO_N,;t t
3965s,@ECHO_T@,$ECHO_T,;t t
3966s,@LIBS@,$LIBS,;t t
3967s,@build@,$build,;t t
3968s,@build_cpu@,$build_cpu,;t t
3969s,@build_vendor@,$build_vendor,;t t
3970s,@build_os@,$build_os,;t t
3971s,@host@,$host,;t t
3972s,@host_cpu@,$host_cpu,;t t
3973s,@host_vendor@,$host_vendor,;t t
3974s,@host_os@,$host_os,;t t
3975s,@CC@,$CC,;t t
3976s,@CFLAGS@,$CFLAGS,;t t
3977s,@LDFLAGS@,$LDFLAGS,;t t
3978s,@CPPFLAGS@,$CPPFLAGS,;t t
3979s,@ac_ct_CC@,$ac_ct_CC,;t t
3980s,@EXEEXT@,$EXEEXT,;t t
3981s,@OBJEXT@,$OBJEXT,;t t
3982s,@CPP@,$CPP,;t t
3983s,@EGREP@,$EGREP,;t t
3984s,@DFLAGS@,$DFLAGS,;t t
3985s,@HESDEF@,$HESDEF,;t t
3986s,@HESLIB@,$HESLIB,;t t
3987s,@LIBOBJS@,$LIBOBJS,;t t
3988s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3989CEOF
3990
3991_ACEOF
3992
3993  cat >>$CONFIG_STATUS <<\_ACEOF
3994  # Split the substitutions into bite-sized pieces for seds with
3995  # small command number limits, like on Digital OSF/1 and HP-UX.
3996  ac_max_sed_lines=48
3997  ac_sed_frag=1 # Number of current file.
3998  ac_beg=1 # First line for current file.
3999  ac_end=$ac_max_sed_lines # Line after last line for current file.
4000  ac_more_lines=:
4001  ac_sed_cmds=
4002  while $ac_more_lines; do
4003    if test $ac_beg -gt 1; then
4004      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4005    else
4006      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4007    fi
4008    if test ! -s $tmp/subs.frag; then
4009      ac_more_lines=false
4010    else
4011      # The purpose of the label and of the branching condition is to
4012      # speed up the sed processing (if there are no `@' at all, there
4013      # is no need to browse any of the substitutions).
4014      # These are the two extra sed commands mentioned above.
4015      (echo ':t
4016  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4017      if test -z "$ac_sed_cmds"; then
4018  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4019      else
4020  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4021      fi
4022      ac_sed_frag=`expr $ac_sed_frag + 1`
4023      ac_beg=$ac_end
4024      ac_end=`expr $ac_end + $ac_max_sed_lines`
4025    fi
4026  done
4027  if test -z "$ac_sed_cmds"; then
4028    ac_sed_cmds=cat
4029  fi
4030fi # test -n "$CONFIG_FILES"
4031
4032_ACEOF
4033cat >>$CONFIG_STATUS <<\_ACEOF
4034for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4035  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4036  case $ac_file in
4037  - | *:- | *:-:* ) # input from stdin
4038        cat >$tmp/stdin
4039        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4040        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4041  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4042        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4043  * )   ac_file_in=$ac_file.in ;;
4044  esac
4045
4046  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4047  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4048$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4049         X"$ac_file" : 'X\(//\)[^/]' \| \
4050         X"$ac_file" : 'X\(//\)$' \| \
4051         X"$ac_file" : 'X\(/\)' \| \
4052         .     : '\(.\)' 2>/dev/null ||
4053echo X"$ac_file" |
4054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4055  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4056  	  /^X\(\/\/\)$/{ s//\1/; q; }
4057  	  /^X\(\/\).*/{ s//\1/; q; }
4058  	  s/.*/./; q'`
4059  { if $as_mkdir_p; then
4060    mkdir -p "$ac_dir"
4061  else
4062    as_dir="$ac_dir"
4063    as_dirs=
4064    while test ! -d "$as_dir"; do
4065      as_dirs="$as_dir $as_dirs"
4066      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4067$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4068         X"$as_dir" : 'X\(//\)[^/]' \| \
4069         X"$as_dir" : 'X\(//\)$' \| \
4070         X"$as_dir" : 'X\(/\)' \| \
4071         .     : '\(.\)' 2>/dev/null ||
4072echo X"$as_dir" |
4073    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4074  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4075  	  /^X\(\/\/\)$/{ s//\1/; q; }
4076  	  /^X\(\/\).*/{ s//\1/; q; }
4077  	  s/.*/./; q'`
4078    done
4079    test ! -n "$as_dirs" || mkdir $as_dirs
4080  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4081echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4082   { (exit 1); exit 1; }; }; }
4083
4084  ac_builddir=.
4085
4086if test "$ac_dir" != .; then
4087  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4088  # A "../" for each directory in $ac_dir_suffix.
4089  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4090else
4091  ac_dir_suffix= ac_top_builddir=
4092fi
4093
4094case $srcdir in
4095  .)  # No --srcdir option.  We are building in place.
4096    ac_srcdir=.
4097    if test -z "$ac_top_builddir"; then
4098       ac_top_srcdir=.
4099    else
4100       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4101    fi ;;
4102  [\\/]* | ?:[\\/]* )  # Absolute path.
4103    ac_srcdir=$srcdir$ac_dir_suffix;
4104    ac_top_srcdir=$srcdir ;;
4105  *) # Relative path.
4106    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4107    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4108esac
4109# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4110# absolute.
4111ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4112ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4113ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4114ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4115
4116
4117
4118  if test x"$ac_file" != x-; then
4119    { echo "$as_me:$LINENO: creating $ac_file" >&5
4120echo "$as_me: creating $ac_file" >&6;}
4121    rm -f "$ac_file"
4122  fi
4123  # Let's still pretend it is `configure' which instantiates (i.e., don't
4124  # use $as_me), people would be surprised to read:
4125  #    /* config.h.  Generated by config.status.  */
4126  if test x"$ac_file" = x-; then
4127    configure_input=
4128  else
4129    configure_input="$ac_file.  "
4130  fi
4131  configure_input=$configure_input"Generated from `echo $ac_file_in |
4132                                     sed 's,.*/,,'` by configure."
4133
4134  # First look for the input files in the build tree, otherwise in the
4135  # src tree.
4136  ac_file_inputs=`IFS=:
4137    for f in $ac_file_in; do
4138      case $f in
4139      -) echo $tmp/stdin ;;
4140      [\\/$]*)
4141         # Absolute (can't be DOS-style, as IFS=:)
4142         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4143echo "$as_me: error: cannot find input file: $f" >&2;}
4144   { (exit 1); exit 1; }; }
4145         echo $f;;
4146      *) # Relative
4147         if test -f "$f"; then
4148           # Build tree
4149           echo $f
4150         elif test -f "$srcdir/$f"; then
4151           # Source tree
4152           echo $srcdir/$f
4153         else
4154           # /dev/null tree
4155           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4156echo "$as_me: error: cannot find input file: $f" >&2;}
4157   { (exit 1); exit 1; }; }
4158         fi;;
4159      esac
4160    done` || { (exit 1); exit 1; }
4161_ACEOF
4162cat >>$CONFIG_STATUS <<_ACEOF
4163  sed "$ac_vpsub
4164$extrasub
4165_ACEOF
4166cat >>$CONFIG_STATUS <<\_ACEOF
4167:t
4168/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4169s,@configure_input@,$configure_input,;t t
4170s,@srcdir@,$ac_srcdir,;t t
4171s,@abs_srcdir@,$ac_abs_srcdir,;t t
4172s,@top_srcdir@,$ac_top_srcdir,;t t
4173s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4174s,@builddir@,$ac_builddir,;t t
4175s,@abs_builddir@,$ac_abs_builddir,;t t
4176s,@top_builddir@,$ac_top_builddir,;t t
4177s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4178" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4179  rm -f $tmp/stdin
4180  if test x"$ac_file" != x-; then
4181    mv $tmp/out $ac_file
4182  else
4183    cat $tmp/out
4184    rm -f $tmp/out
4185  fi
4186
4187done
4188_ACEOF
4189cat >>$CONFIG_STATUS <<\_ACEOF
4190
4191#
4192# CONFIG_HEADER section.
4193#
4194
4195# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4196# NAME is the cpp macro being defined and VALUE is the value it is being given.
4197#
4198# ac_d sets the value in "#define NAME VALUE" lines.
4199ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
4200ac_dB='[ 	].*$,\1#\2'
4201ac_dC=' '
4202ac_dD=',;t'
4203# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4204ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
4205ac_uB='$,\1#\2define\3'
4206ac_uC=' '
4207ac_uD=',;t'
4208
4209for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4210  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4211  case $ac_file in
4212  - | *:- | *:-:* ) # input from stdin
4213        cat >$tmp/stdin
4214        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4215        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4216  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4217        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4218  * )   ac_file_in=$ac_file.in ;;
4219  esac
4220
4221  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4222echo "$as_me: creating $ac_file" >&6;}
4223
4224  # First look for the input files in the build tree, otherwise in the
4225  # src tree.
4226  ac_file_inputs=`IFS=:
4227    for f in $ac_file_in; do
4228      case $f in
4229      -) echo $tmp/stdin ;;
4230      [\\/$]*)
4231         # Absolute (can't be DOS-style, as IFS=:)
4232         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4233echo "$as_me: error: cannot find input file: $f" >&2;}
4234   { (exit 1); exit 1; }; }
4235         echo $f;;
4236      *) # Relative
4237         if test -f "$f"; then
4238           # Build tree
4239           echo $f
4240         elif test -f "$srcdir/$f"; then
4241           # Source tree
4242           echo $srcdir/$f
4243         else
4244           # /dev/null tree
4245           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4246echo "$as_me: error: cannot find input file: $f" >&2;}
4247   { (exit 1); exit 1; }; }
4248         fi;;
4249      esac
4250    done` || { (exit 1); exit 1; }
4251  # Remove the trailing spaces.
4252  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
4253
4254_ACEOF
4255
4256# Transform confdefs.h into two sed scripts, `conftest.defines' and
4257# `conftest.undefs', that substitutes the proper values into
4258# config.h.in to produce config.h.  The first handles `#define'
4259# templates, and the second `#undef' templates.
4260# And first: Protect against being on the right side of a sed subst in
4261# config.status.  Protect against being in an unquoted here document
4262# in config.status.
4263rm -f conftest.defines conftest.undefs
4264# Using a here document instead of a string reduces the quoting nightmare.
4265# Putting comments in sed scripts is not portable.
4266#
4267# `end' is used to avoid that the second main sed command (meant for
4268# 0-ary CPP macros) applies to n-ary macro definitions.
4269# See the Autoconf documentation for `clear'.
4270cat >confdef2sed.sed <<\_ACEOF
4271s/[\\&,]/\\&/g
4272s,[\\$`],\\&,g
4273t clear
4274: clear
4275s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4276t end
4277s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4278: end
4279_ACEOF
4280# If some macros were called several times there might be several times
4281# the same #defines, which is useless.  Nevertheless, we may not want to
4282# sort them, since we want the *last* AC-DEFINE to be honored.
4283uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4284sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4285rm -f confdef2sed.sed
4286
4287# This sed command replaces #undef with comments.  This is necessary, for
4288# example, in the case of _POSIX_SOURCE, which is predefined and required
4289# on some systems where configure will not decide to define it.
4290cat >>conftest.undefs <<\_ACEOF
4291s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4292_ACEOF
4293
4294# Break up conftest.defines because some shells have a limit on the size
4295# of here documents, and old seds have small limits too (100 cmds).
4296echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4297echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4298echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4299echo '  :' >>$CONFIG_STATUS
4300rm -f conftest.tail
4301while grep . conftest.defines >/dev/null
4302do
4303  # Write a limited-size here document to $tmp/defines.sed.
4304  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4305  # Speed up: don't consider the non `#define' lines.
4306  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
4307  # Work around the forget-to-reset-the-flag bug.
4308  echo 't clr' >>$CONFIG_STATUS
4309  echo ': clr' >>$CONFIG_STATUS
4310  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4311  echo 'CEOF
4312  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4313  rm -f $tmp/in
4314  mv $tmp/out $tmp/in
4315' >>$CONFIG_STATUS
4316  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4317  rm -f conftest.defines
4318  mv conftest.tail conftest.defines
4319done
4320rm -f conftest.defines
4321echo '  fi # grep' >>$CONFIG_STATUS
4322echo >>$CONFIG_STATUS
4323
4324# Break up conftest.undefs because some shells have a limit on the size
4325# of here documents, and old seds have small limits too (100 cmds).
4326echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4327rm -f conftest.tail
4328while grep . conftest.undefs >/dev/null
4329do
4330  # Write a limited-size here document to $tmp/undefs.sed.
4331  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4332  # Speed up: don't consider the non `#undef'
4333  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
4334  # Work around the forget-to-reset-the-flag bug.
4335  echo 't clr' >>$CONFIG_STATUS
4336  echo ': clr' >>$CONFIG_STATUS
4337  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4338  echo 'CEOF
4339  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4340  rm -f $tmp/in
4341  mv $tmp/out $tmp/in
4342' >>$CONFIG_STATUS
4343  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4344  rm -f conftest.undefs
4345  mv conftest.tail conftest.undefs
4346done
4347rm -f conftest.undefs
4348
4349cat >>$CONFIG_STATUS <<\_ACEOF
4350  # Let's still pretend it is `configure' which instantiates (i.e., don't
4351  # use $as_me), people would be surprised to read:
4352  #    /* config.h.  Generated by config.status.  */
4353  if test x"$ac_file" = x-; then
4354    echo "/* Generated by configure.  */" >$tmp/config.h
4355  else
4356    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4357  fi
4358  cat $tmp/in >>$tmp/config.h
4359  rm -f $tmp/in
4360  if test x"$ac_file" != x-; then
4361    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4362      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4363echo "$as_me: $ac_file is unchanged" >&6;}
4364    else
4365      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4366$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4367         X"$ac_file" : 'X\(//\)[^/]' \| \
4368         X"$ac_file" : 'X\(//\)$' \| \
4369         X"$ac_file" : 'X\(/\)' \| \
4370         .     : '\(.\)' 2>/dev/null ||
4371echo X"$ac_file" |
4372    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4373  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4374  	  /^X\(\/\/\)$/{ s//\1/; q; }
4375  	  /^X\(\/\).*/{ s//\1/; q; }
4376  	  s/.*/./; q'`
4377      { if $as_mkdir_p; then
4378    mkdir -p "$ac_dir"
4379  else
4380    as_dir="$ac_dir"
4381    as_dirs=
4382    while test ! -d "$as_dir"; do
4383      as_dirs="$as_dir $as_dirs"
4384      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4385$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4386         X"$as_dir" : 'X\(//\)[^/]' \| \
4387         X"$as_dir" : 'X\(//\)$' \| \
4388         X"$as_dir" : 'X\(/\)' \| \
4389         .     : '\(.\)' 2>/dev/null ||
4390echo X"$as_dir" |
4391    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4392  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4393  	  /^X\(\/\/\)$/{ s//\1/; q; }
4394  	  /^X\(\/\).*/{ s//\1/; q; }
4395  	  s/.*/./; q'`
4396    done
4397    test ! -n "$as_dirs" || mkdir $as_dirs
4398  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4399echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4400   { (exit 1); exit 1; }; }; }
4401
4402      rm -f $ac_file
4403      mv $tmp/config.h $ac_file
4404    fi
4405  else
4406    cat $tmp/config.h
4407    rm -f $tmp/config.h
4408  fi
4409done
4410_ACEOF
4411
4412cat >>$CONFIG_STATUS <<\_ACEOF
4413
4414{ (exit 0); exit 0; }
4415_ACEOF
4416chmod +x $CONFIG_STATUS
4417ac_clean_files=$ac_clean_files_save
4418
4419
4420# configure is writing to config.log, and then calls config.status.
4421# config.status does its own redirection, appending to config.log.
4422# Unfortunately, on DOS this fails, as config.log is still kept open
4423# by configure, so config.status won't be able to write to it; its
4424# output is simply discarded.  So we exec the FD to /dev/null,
4425# effectively closing config.log, so it can be properly (re)opened and
4426# appended to by config.status.  When coming back to configure, we
4427# need to make the FD available again.
4428if test "$no_create" != yes; then
4429  ac_cs_success=:
4430  ac_config_status_args=
4431  test "$silent" = yes &&
4432    ac_config_status_args="$ac_config_status_args --quiet"
4433  exec 5>/dev/null
4434  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4435  exec 5>>config.log
4436  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4437  # would make configure fail if this is the last instruction.
4438  $ac_cs_success || { (exit 1); exit 1; }
4439fi
4440
4441