Error Buddy

Do you have an error message from your application? Then find the answer with Error Buddy. You can search over 40000 source code files and troubleshooting documents using our beta lucene/nutch search interface or if you prefer, search as normal using google. With LXR technology you can drill right down into the line of source code where it came from with full cross-referencing.

If after searching you didn't get your ideal answer, or you are still unclear what the error means, you can choose to post that question to the community forums following the link included in the search results.

corestack/ readline-5.0/ configure [1.6]
001 #! /bin/sh
002 # From configure.in for Readline 5.0, version 2.52, from autoconf version AC_ACVERSION.
003 # Guess values for system-dependent variables and create Makefiles.
004 # Generated by GNU Autoconf 2.57 for readline 5.0.
005 #
006 # Report bugs to <bug-readline@gnu.org>.
007 #
008 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
009 # Free Software Foundation, Inc.
010 # This configure script is free software; the Free Software Foundation
011 # gives unlimited permission to copy, distribute and modify it.
012 ## --------------------- ##
013 ## M4sh Initialization.  ##
014 ## --------------------- ##
015 
016 # Be Bourne compatible
017 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
018   emulate sh
019   NULLCMD=:
020   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
021   # is contrary to our usage.  Disable this feature.
022   alias -g '${1+"$@"}'='"$@"'
023 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
024   set -o posix
025 fi
026 
027 # Support unset when possible.
028 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
029   as_unset=unset
030 else
031   as_unset=false
032 fi
033 
034 
035 # Work around bugs in pre-3.0 UWIN ksh.
036 $as_unset ENV MAIL MAILPATH
037 PS1='$ '
038 PS2='> '
039 PS4='+ '
040 
041 # NLS nuisances.
042 for as_var in \
043   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
044   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
045   LC_TELEPHONE LC_TIME
046 do
047   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
048     eval $as_var=C; export $as_var
049   else
050     $as_unset $as_var
051   fi
052 done
053 
054 # Required to use basename.
055 if expr a : '\(a\)' >/dev/null 2>&1; then
056   as_expr=expr
057 else
058   as_expr=false
059 fi
060 
061 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
062   as_basename=basename
063 else
064   as_basename=false
065 fi
066 
067 
068 # Name of the executable.
069 as_me=`$as_basename "$0" ||
070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
071          X"$0" : 'X\(//\)$' \| \
072          X"$0" : 'X\(/\)$' \| \
073          .     : '\(.\)' 2>/dev/null ||
074 echo X/"$0" |
075     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
076           /^X\/\(\/\/\)$/{ s//\1/; q; }
077           /^X\/\(\/\).*/{ s//\1/; q; }
078           s/.*/./; q'`
079 
080 
081 # PATH needs CR, and LINENO needs CR and PATH.
082 # Avoid depending upon Character Ranges.
083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
086 as_cr_digits='0123456789'
087 as_cr_alnum=$as_cr_Letters$as_cr_digits
088 
089 # The user is always right.
090 if test "${PATH_SEPARATOR+set}" != set; then
091   echo "#! /bin/sh" >conf$$.sh
092   echo  "exit 0"   >>conf$$.sh
093   chmod +x conf$$.sh
094   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
095     PATH_SEPARATOR=';'
096   else
097     PATH_SEPARATOR=:
098   fi
099   rm -f conf$$.sh
100 fi
101 
102 
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119 
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158 
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180 
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188 
189 
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196 
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202 
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220 
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   as_mkdir_p=false
225 fi
226 
227 as_executable_p="test -f"
228 
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 
235 
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241 
242 # CDPATH.
243 $as_unset CDPATH
244 
245 
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 
251 exec 6>&1
252 
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263 
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268 
269 # Identity of this package.
270 PACKAGE_NAME='readline'
271 PACKAGE_TARNAME='readline'
272 PACKAGE_VERSION='5.0'
273 PACKAGE_STRING='readline 5.0'
274 PACKAGE_BUGREPORT='bug-readline@gnu.org'
275 
276 ac_unique_file="readline.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313 
314 ac_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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB MAKE_SHELL SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS SHLIB_STATUS SHLIB_XLDFLAGS SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
316 
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336 
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354 
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364 
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368 
369   case $ac_option in
370 
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375 
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380 
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387 
388   --config-cache | -C)
389     cache_file=config.cache ;;
390 
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396 
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405 
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418 
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427 
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431 
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438 
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443 
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450 
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455 
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460 
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467 
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476 
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481 
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485 
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489 
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493 
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502 
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507 
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514 
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521 
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538 
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542 
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548 
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559 
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564 
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569 
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576 
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581 
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584 
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587 
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600 
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609 
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613 
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620 
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627 
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632 
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642 
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650 
651   esac
652 done
653 
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659 
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670 
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682 
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689 
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700 
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 
704 test "$silent" = yes && exec 6>/dev/null
705 
706 
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775 
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures readline 5.0 to adapt to many kinds of systems.
784 
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786 
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789 
790 Defaults for the options are specified in brackets.
791 
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802 
803 _ACEOF
804 
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811 
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816 
817 For better control, use the options below.
818 
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833 
834   cat <<\_ACEOF
835 
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839 _ACEOF
840 fi
841 
842 if test -n "$ac_init_help"; then
843   case $ac_init_help in
844      short | recursive ) echo "Configuration of readline 5.0:";;
845    esac
846   cat <<\_ACEOF
847 
848 Optional Features:
849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851   --enable-multibyte      enable multibyte characters if OS supports them
852   --enable-shared         build shared libraries [default=YES]
853   --enable-static         build static libraries [default=YES]
854 
855 Optional Packages:
856   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
857   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
858   --with-curses           use the curses library instead of the termcap
859                           library
860 
861 Some influential environment variables:
862   CC          C compiler command
863   CFLAGS      C compiler flags
864   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
865               nonstandard directory <lib dir>
866   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
867               headers in a nonstandard directory <include dir>
868   CPP         C preprocessor
869 
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
872 
873 Report bugs to <bug-readline@gnu.org>.
874 _ACEOF
875 fi
876 
877 if test "$ac_init_help" = "recursive"; then
878   # If there are subdirs, report their specific --help.
879   ac_popdir=`pwd`
880   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881     test -d $ac_dir || continue
882     ac_builddir=.
883 
884 if test "$ac_dir" != .; then
885   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886   # A "../" for each directory in $ac_dir_suffix.
887   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889   ac_dir_suffix= ac_top_builddir=
890 fi
891 
892 case $srcdir in
893   .)  # No --srcdir option.  We are building in place.
894     ac_srcdir=.
895     if test -z "$ac_top_builddir"; then
896        ac_top_srcdir=.
897     else
898        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899     fi ;;
900   [\\/]* | ?:[\\/]* )  # Absolute path.
901     ac_srcdir=$srcdir$ac_dir_suffix;
902     ac_top_srcdir=$srcdir ;;
903   *) # Relative path.
904     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905     ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 
914     cd $ac_dir
915     # Check for guested configure; otherwise get Cygnus style configure.
916     if test -f $ac_srcdir/configure.gnu; then
917       echo
918       $SHELL $ac_srcdir/configure.gnu  --help=recursive
919     elif test -f $ac_srcdir/configure; then
920       echo
921       $SHELL $ac_srcdir/configure  --help=recursive
922     elif test -f $ac_srcdir/configure.ac ||
923            test -f $ac_srcdir/configure.in; then
924       echo
925       $ac_configure --help
926     else
927       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928     fi
929     cd $ac_popdir
930   done
931 fi
932 
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935   cat <<\_ACEOF
936 readline configure 5.0
937 generated by GNU Autoconf 2.57
938 
939 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
940 Free Software Foundation, Inc.
941 This configure script is free software; the Free Software Foundation
942 gives unlimited permission to copy, distribute and modify it.
943 _ACEOF
944   exit 0
945 fi
946 exec 5>config.log
947 cat >&5 <<_ACEOF
948 This file contains any messages produced by compilers while
949 running configure, to aid debugging if configure makes a mistake.
950 
951 It was created by readline $as_me 5.0, which was
952 generated by GNU Autoconf 2.57.  Invocation command line was
953 
954   $ $0 $@
955 
956 _ACEOF
957 {
958 cat <<_ASUNAME
959 ## --------- ##
960 ## Platform. ##
961 ## --------- ##
962 
963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
968 
969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
971 
972 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
973 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
976 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
977 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
978 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
979 
980 _ASUNAME
981 
982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983 for as_dir in $PATH
984 do
985   IFS=$as_save_IFS
986   test -z "$as_dir" && as_dir=.
987   echo "PATH: $as_dir"
988 done
989 
990 } >&5
991 
992 cat >&5 <<_ACEOF
993 
994 
995 ## ----------- ##
996 ## Core tests. ##
997 ## ----------- ##
998 
999 _ACEOF
1000 
1001 
1002 # Keep a trace of the command line.
1003 # Strip out --no-create and --no-recursion so they do not pile up.
1004 # Strip out --silent because we don't want to record it for future runs.
1005 # Also quote any args containing shell meta-characters.
1006 # Make two passes to allow for proper duplicate-argument suppression.
1007 ac_configure_args=
1008 ac_configure_args0=
1009 ac_configure_args1=
1010 ac_sep=
1011 ac_must_keep_next=false
1012 for ac_pass in 1 2
1013 do
1014   for ac_arg
1015   do
1016     case $ac_arg in
1017     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1018     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019     | -silent | --silent | --silen | --sile | --sil)
1020       continue ;;
1021     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1022       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023     esac
1024     case $ac_pass in
1025     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1026     2)
1027       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1028       if test $ac_must_keep_next = true; then
1029         ac_must_keep_next=false # Got value, back to normal.
1030       else
1031         case $ac_arg in
1032           *=* | --config-cache | -C | -disable-* | --disable-* \
1033           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1034           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1035           | -with-* | --with-* | -without-* | --without-* | --x)
1036             case "$ac_configure_args0 " in
1037               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1038             esac
1039             ;;
1040           -* ) ac_must_keep_next=true ;;
1041         esac
1042       fi
1043       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1044       # Get rid of the leading space.
1045       ac_sep=" "
1046       ;;
1047     esac
1048   done
1049 done
1050 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1051 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1052 
1053 # When interrupted or exit'd, cleanup temporary files, and complete
1054 # config.log.  We remove comments because anyway the quotes in there
1055 # would cause problems or look ugly.
1056 # WARNING: Be sure not to use single quotes in there, as some shells,
1057 # such as our DU 5.0 friend, will then `close' the trap.
1058 trap 'exit_status=$?
1059   # Save into config.log some information that might help in debugging.
1060   {
1061     echo
1062 
1063     cat <<\_ASBOX
1064 ## ---------------- ##
1065 ## Cache variables. ##
1066 ## ---------------- ##
1067 _ASBOX
1068     echo
1069     # The following way of writing the cache mishandles newlines in values,
1070 {
1071   (set) 2>&1 |
1072     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1073     *ac_space=\ *)
1074       sed -n \
1075         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1076           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077       ;;
1078     *)
1079       sed -n \
1080         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1081       ;;
1082     esac;
1083 }
1084     echo
1085 
1086     cat <<\_ASBOX
1087 ## ----------------- ##
1088 ## Output variables. ##
1089 ## ----------------- ##
1090 _ASBOX
1091     echo
1092     for ac_var in $ac_subst_vars
1093     do
1094       eval ac_val=$`echo $ac_var`
1095       echo "$ac_var='"'"'$ac_val'"'"'"
1096     done | sort
1097     echo
1098 
1099     if test -n "$ac_subst_files"; then
1100       cat <<\_ASBOX
1101 ## ------------- ##
1102 ## Output files. ##
1103 ## ------------- ##
1104 _ASBOX
1105       echo
1106       for ac_var in $ac_subst_files
1107       do
1108         eval ac_val=$`echo $ac_var`
1109         echo "$ac_var='"'"'$ac_val'"'"'"
1110       done | sort
1111       echo
1112     fi
1113 
1114     if test -s confdefs.h; then
1115       cat <<\_ASBOX
1116 ## ----------- ##
1117 ## confdefs.h. ##
1118 ## ----------- ##
1119 _ASBOX
1120       echo
1121       sed "/^$/d" confdefs.h | sort
1122       echo
1123     fi
1124     test "$ac_signal" != 0 &&
1125       echo "$as_me: caught signal $ac_signal"
1126     echo "$as_me: exit $exit_status"
1127   } >&5
1128   rm -f core core.* *.core &&
1129   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1130     exit $exit_status
1131      ' 0
1132 for ac_signal in 1 2 13 15; do
1133   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1134 done
1135 ac_signal=0
1136 
1137 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1138 rm -rf conftest* confdefs.h
1139 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1140 echo >confdefs.h
1141 
1142 # Predefined preprocessor variables.
1143 
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_NAME "$PACKAGE_NAME"
1146 _ACEOF
1147 
1148 
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1151 _ACEOF
1152 
1153 
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1156 _ACEOF
1157 
1158 
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_STRING "$PACKAGE_STRING"
1161 _ACEOF
1162 
1163 
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1166 _ACEOF
1167 
1168 
1169 # Let the site file select an alternate cache file if it wants to.
1170 # Prefer explicitly selected file to automatically selected ones.
1171 if test -z "$CONFIG_SITE"; then
1172   if test "x$prefix" != xNONE; then
1173     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1174   else
1175     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176   fi
1177 fi
1178 for ac_site_file in $CONFIG_SITE; do
1179   if test -r "$ac_site_file"; then
1180     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1181 echo "$as_me: loading site script $ac_site_file" >&6;}
1182     sed 's/^/| /' "$ac_site_file" >&5
1183     . "$ac_site_file"
1184   fi
1185 done
1186 
1187 if test -r "$cache_file"; then
1188   # Some versions of bash will fail to source /dev/null (special
1189   # files actually), so we avoid doing that.
1190   if test -f "$cache_file"; then
1191     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1192 echo "$as_me: loading cache $cache_file" >&6;}
1193     case $cache_file in
1194       [\\/]* | ?:[\\/]* ) . $cache_file;;
1195       *)                      . ./$cache_file;;
1196     esac
1197   fi
1198 else
1199   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1200 echo "$as_me: creating cache $cache_file" >&6;}
1201   >$cache_file
1202 fi
1203 
1204 # Check that the precious variables saved in the cache have kept the same
1205 # value.
1206 ac_cache_corrupted=false
1207 for ac_var in `(set) 2>&1 |
1208                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1209   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1210   eval ac_new_set=\$ac_env_${ac_var}_set
1211   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1212   eval ac_new_val="\$ac_env_${ac_var}_value"
1213   case $ac_old_set,$ac_new_set in
1214     set,)
1215       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1217       ac_cache_corrupted=: ;;
1218     ,set)
1219       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1220 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1221       ac_cache_corrupted=: ;;
1222     ,);;
1223     *)
1224       if test "x$ac_old_val" != "x$ac_new_val"; then
1225         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1226 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1227         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1228 echo "$as_me:   former value:  $ac_old_val" >&2;}
1229         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1230 echo "$as_me:   current value: $ac_new_val" >&2;}
1231         ac_cache_corrupted=:
1232       fi;;
1233   esac
1234   # Pass precious variables to config.status.
1235   if test "$ac_new_set" = set; then
1236     case $ac_new_val in
1237     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1238       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1239     *) ac_arg=$ac_var=$ac_new_val ;;
1240     esac
1241     case " $ac_configure_args " in
1242       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1243       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1244     esac
1245   fi
1246 done
1247 if $ac_cache_corrupted; then
1248   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1249 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1250   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1251 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1252    { (exit 1); exit 1; }; }
1253 fi
1254 
1255 ac_ext=c
1256 ac_cpp='$CPP $CPPFLAGS'
1257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1260 
1261 
1262 
1263 
1264 
1265 
1266 
1267 
1268 
1269 
1270 
1271 
1272 
1273 
1274 
1275 
1276 
1277 
1278 
1279 
1280 
1281 
1282 
1283 
1284 
1285 
1286 
1287 
1288 
1289 
1290 
1291 ac_aux_dir=
1292 for ac_dir in ./support $srcdir/./support; do
1293   if test -f $ac_dir/install-sh; then
1294     ac_aux_dir=$ac_dir
1295     ac_install_sh="$ac_aux_dir/install-sh -c"
1296     break
1297   elif test -f $ac_dir/install.sh; then
1298     ac_aux_dir=$ac_dir
1299     ac_install_sh="$ac_aux_dir/install.sh -c"
1300     break
1301   elif test -f $ac_dir/shtool; then
1302     ac_aux_dir=$ac_dir
1303     ac_install_sh="$ac_aux_dir/shtool install -c"
1304     break
1305   fi
1306 done
1307 if test -z "$ac_aux_dir"; then
1308   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1309 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1310    { (exit 1); exit 1; }; }
1311 fi
1312 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1313 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1314 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1315 
1316           ac_config_headers="$ac_config_headers config.h"
1317 
1318 
1319 LIBVERSION=5.0
1320 
1321 # Make sure we can run config.sub.
1322 $ac_config_sub sun4 >/dev/null 2>&1 ||
1323   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1324 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1325    { (exit 1); exit 1; }; }
1326 
1327 echo "$as_me:$LINENO: checking build system type" >&5
1328 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1329 if test "${ac_cv_build+set}" = set; then
1330   echo $ECHO_N "(cached) $ECHO_C" >&6
1331 else
1332   ac_cv_build_alias=$build_alias
1333 test -z "$ac_cv_build_alias" &&
1334   ac_cv_build_alias=`$ac_config_guess`
1335 test -z "$ac_cv_build_alias" &&
1336   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1337 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1338    { (exit 1); exit 1; }; }
1339 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1340   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1341 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1342    { (exit 1); exit 1; }; }
1343 
1344 fi
1345 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1346 echo "${ECHO_T}$ac_cv_build" >&6
1347 build=$ac_cv_build
1348 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1349 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1350 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1351 
1352 
1353 echo "$as_me:$LINENO: checking host system type" >&5
1354 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1355 if test "${ac_cv_host+set}" = set; then
1356   echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358   ac_cv_host_alias=$host_alias
1359 test -z "$ac_cv_host_alias" &&
1360   ac_cv_host_alias=$ac_cv_build_alias
1361 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1362   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1363 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1364    { (exit 1); exit 1; }; }
1365 
1366 fi
1367 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1368 echo "${ECHO_T}$ac_cv_host" >&6
1369 host=$ac_cv_host
1370 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1373 
1374 
1375 
1376 opt_curses=no
1377 
1378 
1379 # Check whether --with-curses or --without-curses was given.
1380 if test "${with_curses+set}" = set; then
1381   withval="$with_curses"
1382   opt_curses=$withval
1383 fi;
1384 
1385 if test "$opt_curses" = "yes"; then
1386         prefer_curses=yes
1387 fi
1388 
1389 opt_multibyte=yes
1390 opt_static_libs=yes
1391 opt_shared_libs=yes
1392 
1393 # Check whether --enable-multibyte or --disable-multibyte was given.
1394 if test "${enable_multibyte+set}" = set; then
1395   enableval="$enable_multibyte"
1396   opt_multibyte=$enableval
1397 fi;
1398 # Check whether --enable-shared or --disable-shared was given.
1399 if test "${enable_shared+set}" = set; then
1400   enableval="$enable_shared"
1401   opt_shared_libs=$enableval
1402 fi;
1403 # Check whether --enable-static or --disable-static was given.
1404 if test "${enable_static+set}" = set; then
1405   enableval="$enable_static"
1406   opt_static_libs=$enableval
1407 fi;
1408 
1409 if test $opt_multibyte = no; then
1410 cat >>confdefs.h <<\_ACEOF
1411 #define NO_MULTIBYTE_SUPPORT 1
1412 _ACEOF
1413 
1414 fi
1415 
1416 echo ""
1417 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
1418 echo ""
1419 
1420 # We want these before the checks, so the checks can modify their values.
1421 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1422 
1423 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1424 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1425 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1426 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1427   echo $ECHO_N "(cached) $ECHO_C" >&6
1428 else
1429   cat >conftest.make <<\_ACEOF
1430 all:
1431         @echo 'ac_maketemp="$(MAKE)"'
1432 _ACEOF
1433 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1434 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1435 if test -n "$ac_maketemp"; then
1436   eval ac_cv_prog_make_${ac_make}_set=yes
1437 else
1438   eval ac_cv_prog_make_${ac_make}_set=no
1439 fi
1440 rm -f conftest.make
1441 fi
1442 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1443   echo "$as_me:$LINENO: result: yes" >&5
1444 echo "${ECHO_T}yes" >&6
1445   SET_MAKE=
1446 else
1447   echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1449   SET_MAKE="MAKE=${MAKE-make}"
1450 fi
1451 
1452 ac_ext=c
1453 ac_cpp='$CPP $CPPFLAGS'
1454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1457 if test -n "$ac_tool_prefix"; then
1458   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1460 echo "$as_me:$LINENO: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_prog_CC+set}" = set; then
1463   echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465   if test -n "$CC"; then
1466   ac_cv_prog_CC="$CC" # Let the user override the test.
1467 else
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 for as_dir in $PATH
1470 do
1471   IFS=$as_save_IFS
1472   test -z "$as_dir" && as_dir=.
1473   for ac_exec_ext in '' $ac_executable_extensions; do
1474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477     break 2
1478   fi
1479 done
1480 done
1481 
1482 fi
1483 fi
1484 CC=$ac_cv_prog_CC
1485 if test -n "$CC"; then
1486   echo "$as_me:$LINENO: result: $CC" >&5
1487 echo "${ECHO_T}$CC" >&6
1488 else
1489   echo "$as_me:$LINENO: result: no" >&5
1490 echo "${ECHO_T}no" >&6
1491 fi
1492 
1493 fi
1494 if test -z "$ac_cv_prog_CC"; then
1495   ac_ct_CC=$CC
1496   # Extract the first word of "gcc", so it can be a program name with args.
1497 set dummy gcc; ac_word=$2
1498 echo "$as_me:$LINENO: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1501   echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503   if test -n "$ac_ct_CC"; then
1504   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1505 else
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1508 do
1509   IFS=$as_save_IFS
1510   test -z "$as_dir" && as_dir=.
1511   for ac_exec_ext in '' $ac_executable_extensions; do
1512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513     ac_cv_prog_ac_ct_CC="gcc"
1514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515     break 2
1516   fi
1517 done
1518 done
1519 
1520 fi
1521 fi
1522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1523 if test -n "$ac_ct_CC"; then
1524   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1525 echo "${ECHO_T}$ac_ct_CC" >&6
1526 else
1527   echo "$as_me:$LINENO: result: no" >&5
1528 echo "${ECHO_T}no" >&6
1529 fi
1530 
1531   CC=$ac_ct_CC
1532 else
1533   CC="$ac_cv_prog_CC"
1534 fi
1535 
1536 if test -z "$CC"; then
1537   if test -n "$ac_tool_prefix"; then
1538   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1539 set dummy ${ac_tool_prefix}cc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543   echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545   if test -n "$CC"; then
1546   ac_cv_prog_CC="$CC" # Let the user override the test.
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1550 do
1551   IFS=$as_save_IFS
1552   test -z "$as_dir" && as_dir=.
1553   for ac_exec_ext in '' $ac_executable_extensions; do
1554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555     ac_cv_prog_CC="${ac_tool_prefix}cc"
1556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557     break 2
1558   fi
1559 done
1560 done
1561 
1562 fi
1563 fi
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566   echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569   echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 fi
1572 
1573 fi
1574 if test -z "$ac_cv_prog_CC"; then
1575   ac_ct_CC=$CC
1576   # Extract the first word of "cc", so it can be a program name with args.
1577 set dummy cc; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581   echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583   if test -n "$ac_ct_CC"; then
1584   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589   IFS=$as_save_IFS
1590   test -z "$as_dir" && as_dir=.
1591   for ac_exec_ext in '' $ac_executable_extensions; do
1592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593     ac_cv_prog_ac_ct_CC="cc"
1594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595     break 2
1596   fi
1597 done
1598 done
1599 
1600 fi
1601 fi
1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1603 if test -n "$ac_ct_CC"; then
1604   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1605 echo "${ECHO_T}$ac_ct_CC" >&6
1606 else
1607   echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1609 fi
1610 
1611   CC=$ac_ct_CC
1612 else
1613   CC="$ac_cv_prog_CC"
1614 fi
1615 
1616 fi
1617 if test -z "$CC"; then
1618   # Extract the first word of "cc", so it can be a program name with args.
1619 set dummy cc; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623   echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625   if test -n "$CC"; then
1626   ac_cv_prog_CC="$CC" # Let the user override the test.
1627 else
1628   ac_prog_rejected=no
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   for ac_exec_ext in '' $ac_executable_extensions; do
1635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1637        ac_prog_rejected=yes
1638        continue
1639      fi
1640     ac_cv_prog_CC="cc"
1641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642     break 2
1643   fi
1644 done
1645 done
1646 
1647 if test $ac_prog_rejected = yes; then
1648   # We found a bogon in the path, so make sure we never use it.
1649   set dummy $ac_cv_prog_CC
1650   shift
1651   if test $# != 0; then
1652     # We chose a different compiler from the bogus one.
1653     # However, it has the same basename, so the bogon will be chosen
1654     # first if we set CC to just the basename; use the full file name.
1655     shift
1656     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1657   fi
1658 fi
1659 fi
1660 fi
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663   echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669 
1670 fi
1671 if test -z "$CC"; then
1672   if test -n "$ac_tool_prefix"; then
1673   for ac_prog in cl
1674   do
1675     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1677 echo "$as_me:$LINENO: checking for $ac_word" >&5
1678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679 if test "${ac_cv_prog_CC+set}" = set; then
1680   echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682   if test -n "$CC"; then
1683   ac_cv_prog_CC="$CC" # Let the user override the test.
1684 else
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1687 do
1688   IFS=$as_save_IFS
1689   test -z "$as_dir" && as_dir=.
1690   for ac_exec_ext in '' $ac_executable_extensions; do
1691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694     break 2
1695   fi
1696 done
1697 done
1698 
1699 fi
1700 fi
1701 CC=$ac_cv_prog_CC
1702 if test -n "$CC"; then
1703   echo "$as_me:$LINENO: result: $CC" >&5
1704 echo "${ECHO_T}$CC" >&6
1705 else
1706   echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1708 fi
1709 
1710     test -n "$CC" && break
1711   done
1712 fi
1713 if test -z "$CC"; then
1714   ac_ct_CC=$CC
1715   for ac_prog in cl
1716 do
1717   # Extract the first word of "$ac_prog", so it can be a program name with args.
1718 set dummy $ac_prog; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1722   echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724   if test -n "$ac_ct_CC"; then
1725   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1726 else
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   for ac_exec_ext in '' $ac_executable_extensions; do
1733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734     ac_cv_prog_ac_ct_CC="$ac_prog"
1735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736     break 2
1737   fi
1738 done
1739 done
1740 
1741 fi
1742 fi
1743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1744 if test -n "$ac_ct_CC"; then
1745   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1746 echo "${ECHO_T}$ac_ct_CC" >&6
1747 else
1748   echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 fi
1751 
1752   test -n "$ac_ct_CC" && break
1753 done
1754 
1755   CC=$ac_ct_CC
1756 fi
1757 
1758 fi
1759 
1760 
1761 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1762 See \`config.log' for more details." >&5
1763 echo "$as_me: error: no acceptable C compiler found in \$PATH
1764 See \`config.log' for more details." >&2;}
1765    { (exit 1); exit 1; }; }
1766 
1767 # Provide some information about the compiler.
1768 echo "$as_me:$LINENO:" \
1769      "checking for C compiler version" >&5
1770 ac_compiler=`set X $ac_compile; echo $2`
1771 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1772   (eval $ac_compiler --version </dev/null >&5) 2>&5
1773   ac_status=$?
1774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775   (exit $ac_status); }
1776 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1777   (eval $ac_compiler -v </dev/null >&5) 2>&5
1778   ac_status=$?
1779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780   (exit $ac_status); }
1781 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1782   (eval $ac_compiler -V </dev/null >&5) 2>&5
1783   ac_status=$?
1784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1785   (exit $ac_status); }
1786 
1787 cat >conftest.$ac_ext <<_ACEOF
1788 #line $LINENO "configure"
1789 /* confdefs.h.  */
1790 _ACEOF
1791 cat confdefs.h >>conftest.$ac_ext
1792 cat >>conftest.$ac_ext <<_ACEOF
1793 /* end confdefs.h.  */
1794 
1795 int
1796 main ()
1797 {
1798 
1799   ;
1800   return 0;
1801 }
1802 _ACEOF
1803 ac_clean_files_save=$ac_clean_files
1804 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1805 # Try to create an executable without -o first, disregard a.out.
1806 # It will help us diagnose broken compilers, and finding out an intuition
1807 # of exeext.
1808 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1809 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1810 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1811 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1812   (eval $ac_link_default) 2>&5
1813   ac_status=$?
1814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815   (exit $ac_status); }; then
1816   # Find the output, starting from the most likely.  This scheme is
1817 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1818 # resort.
1819 
1820 # Be careful to initialize this variable, since it used to be cached.
1821 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1822 ac_cv_exeext=
1823 # b.out is created by i960 compilers.
1824 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1825 do
1826   test -f "$ac_file" || continue
1827   case $ac_file in
1828     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1829         ;;
1830     conftest.$ac_ext )
1831         # This is the source file.
1832         ;;
1833     [ab].out )
1834         # We found the default executable, but exeext='' is most
1835         # certainly right.
1836         break;;
1837     *.* )
1838         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1839         # FIXME: I believe we export ac_cv_exeext for Libtool,
1840         # but it would be cool to find out if it's true.  Does anybody
1841         # maintain Libtool? --akim.
1842         export ac_cv_exeext
1843         break;;
1844     * )
1845         break;;
1846   esac
1847 done
1848 else
1849   echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851 
1852 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1853 See \`config.log' for more details." >&5
1854 echo "$as_me: error: C compiler cannot create executables
1855 See \`config.log' for more details." >&2;}
1856    { (exit 77); exit 77; }; }
1857 fi
1858 
1859 ac_exeext=$ac_cv_exeext
1860 echo "$as_me:$LINENO: result: $ac_file" >&5
1861 echo "${ECHO_T}$ac_file" >&6
1862 
1863 # Check the compiler produces executables we can run.  If not, either
1864 # the compiler is broken, or we cross compile.
1865 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1866 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1867 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1868 # If not cross compiling, check that we can run a simple program.
1869 if test "$cross_compiling" != yes; then
1870   if { ac_try='./$ac_file'
1871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1872   (eval $ac_try) 2>&5
1873   ac_status=$?
1874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875   (exit $ac_status); }; }; then
1876     cross_compiling=no
1877   else
1878     if test "$cross_compiling" = maybe; then
1879         cross_compiling=yes
1880     else
1881         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1882 If you meant to cross compile, use \`--host'.
1883 See \`config.log' for more details." >&5
1884 echo "$as_me: error: cannot run C compiled programs.
1885 If you meant to cross compile, use \`--host'.
1886 See \`config.log' for more details." >&2;}
1887    { (exit 1); exit 1; }; }
1888     fi
1889   fi
1890 fi
1891 echo "$as_me:$LINENO: result: yes" >&5
1892 echo "${ECHO_T}yes" >&6
1893 
1894 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1895 ac_clean_files=$ac_clean_files_save
1896 # Check the compiler produces executables we can run.  If not, either
1897 # the compiler is broken, or we cross compile.
1898 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1899 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1900 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1901 echo "${ECHO_T}$cross_compiling" >&6
1902 
1903 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1904 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1906   (eval $ac_link) 2>&5
1907   ac_status=$?
1908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909   (exit $ac_status); }; then
1910   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1911 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1912 # work properly (i.e., refer to `conftest.exe'), while it won't with
1913 # `rm'.
1914 for ac_file in conftest.exe conftest conftest.*; do
1915   test -f "$ac_file" || continue
1916   case $ac_file in
1917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1918     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919           export ac_cv_exeext
1920           break;;
1921     * ) break;;
1922   esac
1923 done
1924 else
1925   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1926 See \`config.log' for more details." >&5
1927 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1928 See \`config.log' for more details." >&2;}
1929    { (exit 1); exit 1; }; }
1930 fi
1931 
1932 rm -f conftest$ac_cv_exeext
1933 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1934 echo "${ECHO_T}$ac_cv_exeext" >&6
1935 
1936 rm -f conftest.$ac_ext
1937 EXEEXT=$ac_cv_exeext
1938 ac_exeext=$EXEEXT
1939 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1940 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1941 if test "${ac_cv_objext+set}" = set; then
1942   echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944   cat >conftest.$ac_ext <<_ACEOF
1945 #line $LINENO "configure"
1946 /* confdefs.h.  */
1947 _ACEOF
1948 cat confdefs.h >>conftest.$ac_ext
1949 cat >>conftest.$ac_ext <<_ACEOF
1950 /* end confdefs.h.  */
1951 
1952 int
1953 main ()
1954 {
1955 
1956   ;
1957   return 0;
1958 }
1959 _ACEOF
1960 rm -f conftest.o conftest.obj
1961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1962   (eval $ac_compile) 2>&5
1963   ac_status=$?
1964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965   (exit $ac_status); }; then
1966   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1967   case $ac_file in
1968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1969     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1970        break;;
1971   esac
1972 done
1973 else
1974   echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1976 
1977 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1978 See \`config.log' for more details." >&5
1979 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1980 See \`config.log' for more details." >&2;}
1981    { (exit 1); exit 1; }; }
1982 fi
1983 
1984 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1985 fi
1986 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1987 echo "${ECHO_T}$ac_cv_objext" >&6
1988 OBJEXT=$ac_cv_objext
1989 ac_objext=$OBJEXT
1990 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1991 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1992 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1993   echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995   cat >conftest.$ac_ext <<_ACEOF
1996 #line $LINENO "configure"
1997 /* confdefs.h.  */
1998 _ACEOF
1999 cat confdefs.h >>conftest.$ac_ext
2000 cat >>conftest.$ac_ext <<_ACEOF
2001 /* end confdefs.h.  */
2002 
2003 int
2004 main ()
2005 {
2006 #ifndef __GNUC__
2007        choke me
2008 #endif
2009 
2010   ;
2011   return 0;
2012 }
2013 _ACEOF
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016   (eval $ac_compile) 2>&5
2017   ac_status=$?
2018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019   (exit $ac_status); } &&
2020          { ac_try='test -s conftest.$ac_objext'
2021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022   (eval $ac_try) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }; }; then
2026   ac_compiler_gnu=yes
2027 else
2028   echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2030 
2031 ac_compiler_gnu=no
2032 fi
2033 rm -f conftest.$ac_objext conftest.$ac_ext
2034 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2035 
2036 fi
2037 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2038 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2039 GCC=`test $ac_compiler_gnu = yes && echo yes`
2040 ac_test_CFLAGS=${CFLAGS+set}
2041 ac_save_CFLAGS=$CFLAGS
2042 CFLAGS="-g"
2043 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2044 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2045 if test "${ac_cv_prog_cc_g+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   cat >conftest.$ac_ext <<_ACEOF
2049 #line $LINENO "configure"
2050 /* confdefs.h.  */
2051 _ACEOF
2052 cat confdefs.h >>conftest.$ac_ext
2053 cat >>conftest.$ac_ext <<_ACEOF
2054 /* end confdefs.h.  */
2055 
2056 int
2057 main ()
2058 {
2059 
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 rm -f conftest.$ac_objext
2065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2066   (eval $ac_compile) 2>&5
2067   ac_status=$?
2068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069   (exit $ac_status); } &&
2070          { ac_try='test -s conftest.$ac_objext'
2071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072   (eval $ac_try) 2>&5
2073   ac_status=$?
2074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075   (exit $ac_status); }; }; then
2076   ac_cv_prog_cc_g=yes
2077 else
2078   echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2080 
2081 ac_cv_prog_cc_g=no
2082 fi
2083 rm -f conftest.$ac_objext conftest.$ac_ext
2084 fi
2085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2086 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2087 if test "$ac_test_CFLAGS" = set; then
2088   CFLAGS=$ac_save_CFLAGS
2089 elif test $ac_cv_prog_cc_g = yes; then
2090   if test "$GCC" = yes; then
2091     CFLAGS="-g -O2"
2092   else
2093     CFLAGS="-g"
2094   fi
2095 else
2096   if test "$GCC" = yes; then
2097     CFLAGS="-O2"
2098   else
2099     CFLAGS=
2100   fi
2101 fi
2102 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2103 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2104 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2105   echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107   ac_cv_prog_cc_stdc=no
2108 ac_save_CC=$CC
2109 cat >conftest.$ac_ext <<_ACEOF
2110 #line $LINENO "configure"
2111 /* confdefs.h.  */
2112 _ACEOF
2113 cat confdefs.h >>conftest.$ac_ext
2114 cat >>conftest.$ac_ext <<_ACEOF
2115 /* end confdefs.h.  */
2116 #include <stdarg.h>
2117 #include <stdio.h>
2118 #include <sys/types.h>
2119 #include <sys/stat.h>
2120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2121 struct buf { int x; };
2122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2123 static char *e (p, i)
2124      char **p;
2125      int i;
2126 {
2127   return p[i];
2128 }
2129 static char *f (char * (*g) (char **, int), char **p, ...)
2130 {
2131   char *s;
2132   va_list v;
2133   va_start (v,p);
2134   s = g (p, va_arg (v,int));
2135   va_end (v);
2136   return s;
2137 }
2138 int test (int i, double x);
2139 struct s1 {int (*f) (int a);};
2140 struct s2 {int (*f) (double a);};
2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2142 int argc;
2143 char **argv;
2144 int
2145 main ()
2146 {
2147 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 # Don't try gcc -ansi; that turns off useful extensions and
2153 # breaks some systems' header files.
2154 # AIX                   -qlanglvl=ansi
2155 # Ultrix and OSF/1      -std1
2156 # HP-UX 10.20 and later -Ae
2157 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2158 # SVR4                  -Xc -D__EXTENSIONS__
2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2160 do
2161   CC="$ac_save_CC $ac_arg"
2162   rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164   (eval $ac_compile) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); } &&
2168          { ac_try='test -s conftest.$ac_objext'
2169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170   (eval $ac_try) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; }; then
2174   ac_cv_prog_cc_stdc=$ac_arg
2175 break
2176 else
2177   echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2179 
2180 fi
2181 rm -f conftest.$ac_objext
2182 done
2183 rm -f conftest.$ac_ext conftest.$ac_objext
2184 CC=$ac_save_CC
2185 
2186 fi
2187 
2188 case "x$ac_cv_prog_cc_stdc" in
2189   x|xno)
2190     echo "$as_me:$LINENO: result: none needed" >&5
2191 echo "${ECHO_T}none needed" >&6 ;;
2192   *)
2193     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2194 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2195     CC="$CC $ac_cv_prog_cc_stdc" ;;
2196 esac
2197 
2198 # Some people use a C++ compiler to compile C.  Since we use `exit',
2199 # in C++ we need to declare it.  In case someone uses the same compiler
2200 # for both compiling C and C++ we need to have the C++ compiler decide
2201 # the declaration of exit, since it's the most demanding environment.
2202 cat >conftest.$ac_ext <<_ACEOF
2203 #ifndef __cplusplus
2204   choke me
2205 #endif
2206 _ACEOF
2207 rm -f conftest.$ac_objext
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209   (eval $ac_compile) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); } &&
2213          { ac_try='test -s conftest.$ac_objext'
2214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215   (eval $ac_try) 2>&5
2216   ac_status=$?
2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218   (exit $ac_status); }; }; then
2219   for ac_declaration in \
2220    ''\
2221    '#include <stdlib.h>' \
2222    'extern "C" void std::exit (int) throw (); using std::exit;' \
2223    'extern "C" void std::exit (int); using std::exit;' \
2224    'extern "C" void exit (int) throw ();' \
2225    'extern "C" void exit (int);' \
2226    'void exit (int);'
2227 do
2228   cat >conftest.$ac_ext <<_ACEOF
2229 #line $LINENO "configure"
2230 /* confdefs.h.  */
2231 _ACEOF
2232 cat confdefs.h >>conftest.$ac_ext
2233 cat >>conftest.$ac_ext <<_ACEOF
2234 /* end confdefs.h.  */
2235 #include <stdlib.h>
2236 $ac_declaration
2237 int
2238 main ()
2239 {
2240 exit (42);
2241   ;
2242   return 0;
2243 }
2244 _ACEOF
2245 rm -f conftest.$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247   (eval $ac_compile) 2>&5
2248   ac_status=$?
2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250   (exit $ac_status); } &&
2251          { ac_try='test -s conftest.$ac_objext'
2252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253   (eval $ac_try) 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); }; }; then
2257   :
2258 else
2259   echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2261 
2262 continue
2263 fi
2264 rm -f conftest.$ac_objext conftest.$ac_ext
2265   cat >conftest.$ac_ext <<_ACEOF
2266 #line $LINENO "configure"
2267 /* confdefs.h.  */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h.  */
2272 $ac_declaration
2273 int
2274 main ()
2275 {
2276 exit (42);
2277   ;
2278   return 0;
2279 }
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283   (eval $ac_compile) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); } &&
2287          { ac_try='test -s conftest.$ac_objext'
2288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289   (eval $ac_try) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }; }; then
2293   break
2294 else
2295   echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297 
2298 fi
2299 rm -f conftest.$ac_objext conftest.$ac_ext
2300 done
2301 rm -f conftest*
2302 if test -n "$ac_declaration"; then
2303   echo '#ifdef __cplusplus' >>confdefs.h
2304   echo $ac_declaration      >>confdefs.h
2305   echo '#endif'             >>confdefs.h
2306 fi
2307 
2308 else
2309   echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2311 
2312 fi
2313 rm -f conftest.$ac_objext conftest.$ac_ext
2314 ac_ext=c
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319 
2320 
2321 ac_ext=c
2322 ac_cpp='$CPP $CPPFLAGS'
2323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2326 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2327 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2328 # On Suns, sometimes $CPP names a directory.
2329 if test -n "$CPP" && test -d "$CPP"; then
2330   CPP=
2331 fi
2332 if test -z "$CPP"; then
2333   if test "${ac_cv_prog_CPP+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336       # Double quotes because CPP needs to be expanded
2337     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2338     do
2339       ac_preproc_ok=false
2340 for ac_c_preproc_warn_flag in '' yes
2341 do
2342   # Use a header file that comes with gcc, so configuring glibc
2343   # with a fresh cross-compiler works.
2344   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2345   # <limits.h> exists even on freestanding compilers.
2346   # On the NeXT, cc -E runs the code through the compiler's parser,
2347   # not just through cpp. "Syntax error" is here to catch this case.
2348   cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 /* confdefs.h.  */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h.  */
2355 #ifdef __STDC__
2356 # include <limits.h>
2357 #else
2358 # include <assert.h>
2359 #endif
2360                      Syntax error
2361 _ACEOF
2362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2364   ac_status=$?
2365   grep -v '^ *+' conftest.er1 >conftest.err
2366   rm -f conftest.er1
2367   cat conftest.err >&5
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); } >/dev/null; then
2370   if test -s conftest.err; then
2371     ac_cpp_err=$ac_c_preproc_warn_flag
2372   else
2373     ac_cpp_err=
2374   fi
2375 else
2376   ac_cpp_err=yes
2377 fi
2378 if test -z "$ac_cpp_err"; then
2379   :
2380 else
2381   echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383 
2384   # Broken: fails on valid input.
2385 continue
2386 fi
2387 rm -f conftest.err conftest.$ac_ext
2388 
2389   # OK, works on sane cases.  Now check whether non-existent headers
2390   # can be detected and how.
2391   cat >conftest.$ac_ext <<_ACEOF
2392 #line $LINENO "configure"
2393 /* confdefs.h.  */
2394 _ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h.  */
2398 #include <ac_nonexistent.h>
2399 _ACEOF
2400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } >/dev/null; then
2408   if test -s conftest.err; then
2409     ac_cpp_err=$ac_c_preproc_warn_flag
2410   else
2411     ac_cpp_err=
2412   fi
2413 else
2414   ac_cpp_err=yes
2415 fi
2416 if test -z "$ac_cpp_err"; then
2417   # Broken: success on invalid input.
2418 continue
2419 else
2420   echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422 
2423   # Passes both tests.
2424 ac_preproc_ok=:
2425 break
2426 fi
2427 rm -f conftest.err conftest.$ac_ext
2428 
2429 done
2430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2431 rm -f conftest.err conftest.$ac_ext
2432 if $ac_preproc_ok; then
2433   break
2434 fi
2435 
2436     done
2437     ac_cv_prog_CPP=$CPP
2438 
2439 fi
2440   CPP=$ac_cv_prog_CPP
2441 else
2442   ac_cv_prog_CPP=$CPP
2443 fi
2444 echo "$as_me:$LINENO: result: $CPP" >&5
2445 echo "${ECHO_T}$CPP" >&6
2446 ac_preproc_ok=false
2447 for ac_c_preproc_warn_flag in '' yes
2448 do
2449   # Use a header file that comes with gcc, so configuring glibc
2450   # with a fresh cross-compiler works.
2451   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2452   # <limits.h> exists even on freestanding compilers.
2453   # On the NeXT, cc -E runs the code through the compiler's parser,
2454   # not just through cpp. "Syntax error" is here to catch this case.
2455   cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2457 /* confdefs.h.  */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h.  */
2462 #ifdef __STDC__
2463 # include <limits.h>
2464 #else
2465 # include <assert.h>
2466 #endif
2467                      Syntax error
2468 _ACEOF
2469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2470   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2471   ac_status=$?
2472   grep -v '^ *+' conftest.er1 >conftest.err
2473   rm -f conftest.er1
2474   cat conftest.err >&5
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); } >/dev/null; then
2477   if test -s conftest.err; then
2478     ac_cpp_err=$ac_c_preproc_warn_flag
2479   else
2480     ac_cpp_err=
2481   fi
2482 else
2483   ac_cpp_err=yes
2484 fi
2485 if test -z "$ac_cpp_err"; then
2486   :
2487 else
2488   echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490 
2491   # Broken: fails on valid input.
2492 continue
2493 fi
2494 rm -f conftest.err conftest.$ac_ext
2495 
2496   # OK, works on sane cases.  Now check whether non-existent headers
2497   # can be detected and how.
2498   cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 /* confdefs.h.  */
2501 _ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h.  */
2505 #include <ac_nonexistent.h>
2506 _ACEOF
2507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2509   ac_status=$?
2510   grep -v '^ *+' conftest.er1 >conftest.err
2511   rm -f conftest.er1
2512   cat conftest.err >&5
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); } >/dev/null; then
2515   if test -s conftest.err; then
2516     ac_cpp_err=$ac_c_preproc_warn_flag
2517   else
2518     ac_cpp_err=
2519   fi
2520 else
2521   ac_cpp_err=yes
2522 fi
2523 if test -z "$ac_cpp_err"; then
2524   # Broken: success on invalid input.
2525 continue
2526 else
2527   echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529 
2530   # Passes both tests.
2531 ac_preproc_ok=:
2532 break
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535 
2536 done
2537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2538 rm -f conftest.err conftest.$ac_ext
2539 if $ac_preproc_ok; then
2540   :
2541 else
2542   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2545 See \`config.log' for more details." >&2;}
2546    { (exit 1); exit 1; }; }
2547 fi
2548 
2549 ac_ext=c
2550 ac_cpp='$CPP $CPPFLAGS'
2551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554 
2555 
2556 echo "$as_me:$LINENO: checking for egrep" >&5
2557 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2558 if test "${ac_cv_prog_egrep+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2562     then ac_cv_prog_egrep='grep -E'
2563     else ac_cv_prog_egrep='egrep'
2564     fi
2565 fi
2566 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2567 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2568  EGREP=$ac_cv_prog_egrep
2569 
2570 
2571 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2572 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2573 if test "${ac_cv_header_stdc+set}" = set; then
2574   echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576   cat >conftest.$ac_ext <<_ACEOF
2577 #line $LINENO "configure"
2578 /* confdefs.h.  */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h.  */
2583 #include <stdlib.h>
2584 #include <stdarg.h>
2585 #include <string.h>
2586 #include <float.h>
2587 
2588 int
2589 main ()
2590 {
2591 
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598   (eval $ac_compile) 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } &&
2602          { ac_try='test -s conftest.$ac_objext'
2603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604   (eval $ac_try) 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608   ac_cv_header_stdc=yes
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612 
2613 ac_cv_header_stdc=no
2614 fi
2615 rm -f conftest.$ac_objext conftest.$ac_ext
2616 
2617 if test $ac_cv_header_stdc = yes; then
2618   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2619   cat >conftest.$ac_ext <<_ACEOF
2620 #line $LINENO "configure"
2621 /* confdefs.h.  */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h.  */
2626 #include <string.h>
2627 
2628 _ACEOF
2629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2630   $EGREP "memchr" >/dev/null 2>&1; then
2631   :
2632 else
2633   ac_cv_header_stdc=no
2634 fi
2635 rm -f conftest*
2636 
2637 fi
2638 
2639 if test $ac_cv_header_stdc = yes; then
2640   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2641   cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648 #include <stdlib.h>
2649 
2650 _ACEOF
2651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2652   $EGREP "free" >/dev/null 2>&1; then
2653   :
2654 else
2655   ac_cv_header_stdc=no
2656 fi
2657 rm -f conftest*
2658 
2659 fi
2660 
2661 if test $ac_cv_header_stdc = yes; then
2662   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2663   if test "$cross_compiling" = yes; then
2664   :
2665 else
2666   cat >conftest.$ac_ext <<_ACEOF
2667 #line $LINENO "configure"
2668 /* confdefs.h.  */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h.  */
2673 #include <ctype.h>
2674 #if ((' ' & 0x0FF) == 0x020)
2675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2677 #else
2678 # define ISLOWER(c) \
2679                    (('a' <= (c) && (c) <= 'i') \
2680                      || ('j' <= (c) && (c) <= 'r') \
2681                      || ('s' <= (c) && (c) <= 'z'))
2682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2683 #endif
2684 
2685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2686 int
2687 main ()
2688 {
2689   int i;
2690   for (i = 0; i < 256; i++)
2691     if (XOR (islower (i), ISLOWER (i))
2692         || toupper (i) != TOUPPER (i))
2693       exit(2);
2694   exit (0);
2695 }
2696 _ACEOF
2697 rm -