* configure.in, configure, sdccconf_in.h, src/SDCCglobal,
[fw/sdcc] / debugger / mcs51 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LIBREADLINE CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB AUTOCONF STRIP AS CP M_OR_MM sdccconf_h_dir_separator lib_dir_suffix LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
774 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
775 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
776 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
777 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
778 ac_env_lib_dir_suffix_value=$lib_dir_suffix
779 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
780 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846   cat <<\_ACEOF
847
848 Some influential environment variables:
849   CC          C compiler command
850   CFLAGS      C compiler flags
851   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
852               nonstandard directory <lib dir>
853   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
854               headers in a nonstandard directory <include dir>
855   CPP         C preprocessor
856   sdccconf_h_dir_separator
857               needed in sdccconf.h: either "/" (default) or "\\"
858   lib_dir_suffix
859               appended to datadir to define SDCC's library root directory
860
861 Use these variables to override the choices made by `configure' or to help
862 it to find libraries and programs with nonstandard names/locations.
863
864 _ACEOF
865 fi
866
867 if test "$ac_init_help" = "recursive"; then
868   # If there are subdirs, report their specific --help.
869   ac_popdir=`pwd`
870   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
871     test -d $ac_dir || continue
872     ac_builddir=.
873
874 if test "$ac_dir" != .; then
875   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
876   # A "../" for each directory in $ac_dir_suffix.
877   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
878 else
879   ac_dir_suffix= ac_top_builddir=
880 fi
881
882 case $srcdir in
883   .)  # No --srcdir option.  We are building in place.
884     ac_srcdir=.
885     if test -z "$ac_top_builddir"; then
886        ac_top_srcdir=.
887     else
888        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
889     fi ;;
890   [\\/]* | ?:[\\/]* )  # Absolute path.
891     ac_srcdir=$srcdir$ac_dir_suffix;
892     ac_top_srcdir=$srcdir ;;
893   *) # Relative path.
894     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
895     ac_top_srcdir=$ac_top_builddir$srcdir ;;
896 esac
897
898 # Do not use `cd foo && pwd` to compute absolute paths, because
899 # the directories may not exist.
900 case `pwd` in
901 .) ac_abs_builddir="$ac_dir";;
902 *)
903   case "$ac_dir" in
904   .) ac_abs_builddir=`pwd`;;
905   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
906   *) ac_abs_builddir=`pwd`/"$ac_dir";;
907   esac;;
908 esac
909 case $ac_abs_builddir in
910 .) ac_abs_top_builddir=${ac_top_builddir}.;;
911 *)
912   case ${ac_top_builddir}. in
913   .) ac_abs_top_builddir=$ac_abs_builddir;;
914   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
915   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
916   esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_srcdir=$ac_srcdir;;
920 *)
921   case $ac_srcdir in
922   .) ac_abs_srcdir=$ac_abs_builddir;;
923   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
924   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
925   esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_srcdir=$ac_top_srcdir;;
929 *)
930   case $ac_top_srcdir in
931   .) ac_abs_top_srcdir=$ac_abs_builddir;;
932   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
933   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
934   esac;;
935 esac
936
937     cd $ac_dir
938     # Check for guested configure; otherwise get Cygnus style configure.
939     if test -f $ac_srcdir/configure.gnu; then
940       echo
941       $SHELL $ac_srcdir/configure.gnu  --help=recursive
942     elif test -f $ac_srcdir/configure; then
943       echo
944       $SHELL $ac_srcdir/configure  --help=recursive
945     elif test -f $ac_srcdir/configure.ac ||
946            test -f $ac_srcdir/configure.in; then
947       echo
948       $ac_configure --help
949     else
950       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951     fi
952     cd $ac_popdir
953   done
954 fi
955
956 test -n "$ac_init_help" && exit 0
957 if $ac_init_version; then
958   cat <<\_ACEOF
959
960 Copyright (C) 2003 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964   exit 0
965 fi
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
970
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.59.  Invocation command line was
973
974   $ $0 $@
975
976 _ACEOF
977 {
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
982
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
991
992 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
993 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
996 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
997 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
998 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
999
1000 _ASUNAME
1001
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1004 do
1005   IFS=$as_save_IFS
1006   test -z "$as_dir" && as_dir=.
1007   echo "PATH: $as_dir"
1008 done
1009
1010 } >&5
1011
1012 cat >&5 <<_ACEOF
1013
1014
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1018
1019 _ACEOF
1020
1021
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1027 ac_configure_args=
1028 ac_configure_args0=
1029 ac_configure_args1=
1030 ac_sep=
1031 ac_must_keep_next=false
1032 for ac_pass in 1 2
1033 do
1034   for ac_arg
1035   do
1036     case $ac_arg in
1037     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039     | -silent | --silent | --silen | --sile | --sil)
1040       continue ;;
1041     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043     esac
1044     case $ac_pass in
1045     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046     2)
1047       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048       if test $ac_must_keep_next = true; then
1049         ac_must_keep_next=false # Got value, back to normal.
1050       else
1051         case $ac_arg in
1052           *=* | --config-cache | -C | -disable-* | --disable-* \
1053           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055           | -with-* | --with-* | -without-* | --without-* | --x)
1056             case "$ac_configure_args0 " in
1057               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058             esac
1059             ;;
1060           -* ) ac_must_keep_next=true ;;
1061         esac
1062       fi
1063       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064       # Get rid of the leading space.
1065       ac_sep=" "
1066       ;;
1067     esac
1068   done
1069 done
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log.  We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079   # Save into config.log some information that might help in debugging.
1080   {
1081     echo
1082
1083     cat <<\_ASBOX
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1087 _ASBOX
1088     echo
1089     # The following way of writing the cache mishandles newlines in values,
1090 {
1091   (set) 2>&1 |
1092     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093     *ac_space=\ *)
1094       sed -n \
1095         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097       ;;
1098     *)
1099       sed -n \
1100         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101       ;;
1102     esac;
1103 }
1104     echo
1105
1106     cat <<\_ASBOX
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1110 _ASBOX
1111     echo
1112     for ac_var in $ac_subst_vars
1113     do
1114       eval ac_val=$`echo $ac_var`
1115       echo "$ac_var='"'"'$ac_val'"'"'"
1116     done | sort
1117     echo
1118
1119     if test -n "$ac_subst_files"; then
1120       cat <<\_ASBOX
1121 ## ------------- ##
1122 ## Output files. ##
1123 ## ------------- ##
1124 _ASBOX
1125       echo
1126       for ac_var in $ac_subst_files
1127       do
1128         eval ac_val=$`echo $ac_var`
1129         echo "$ac_var='"'"'$ac_val'"'"'"
1130       done | sort
1131       echo
1132     fi
1133
1134     if test -s confdefs.h; then
1135       cat <<\_ASBOX
1136 ## ----------- ##
1137 ## confdefs.h. ##
1138 ## ----------- ##
1139 _ASBOX
1140       echo
1141       sed "/^$/d" confdefs.h | sort
1142       echo
1143     fi
1144     test "$ac_signal" != 0 &&
1145       echo "$as_me: caught signal $ac_signal"
1146     echo "$as_me: exit $exit_status"
1147   } >&5
1148   rm -f core *.core &&
1149   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150     exit $exit_status
1151      ' 0
1152 for ac_signal in 1 2 13 15; do
1153   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154 done
1155 ac_signal=0
1156
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 echo >confdefs.h
1161
1162 # Predefined preprocessor variables.
1163
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1166 _ACEOF
1167
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171 _ACEOF
1172
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186 _ACEOF
1187
1188
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192   if test "x$prefix" != xNONE; then
1193     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194   else
1195     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196   fi
1197 fi
1198 for ac_site_file in $CONFIG_SITE; do
1199   if test -r "$ac_site_file"; then
1200     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202     sed 's/^/| /' "$ac_site_file" >&5
1203     . "$ac_site_file"
1204   fi
1205 done
1206
1207 if test -r "$cache_file"; then
1208   # Some versions of bash will fail to source /dev/null (special
1209   # files actually), so we avoid doing that.
1210   if test -f "$cache_file"; then
1211     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1213     case $cache_file in
1214       [\\/]* | ?:[\\/]* ) . $cache_file;;
1215       *)                      . ./$cache_file;;
1216     esac
1217   fi
1218 else
1219   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1221   >$cache_file
1222 fi
1223
1224 # Check that the precious variables saved in the cache have kept the same
1225 # value.
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230   eval ac_new_set=\$ac_env_${ac_var}_set
1231   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232   eval ac_new_val="\$ac_env_${ac_var}_value"
1233   case $ac_old_set,$ac_new_set in
1234     set,)
1235       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237       ac_cache_corrupted=: ;;
1238     ,set)
1239       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241       ac_cache_corrupted=: ;;
1242     ,);;
1243     *)
1244       if test "x$ac_old_val" != "x$ac_new_val"; then
1245         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1248 echo "$as_me:   former value:  $ac_old_val" >&2;}
1249         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1250 echo "$as_me:   current value: $ac_new_val" >&2;}
1251         ac_cache_corrupted=:
1252       fi;;
1253   esac
1254   # Pass precious variables to config.status.
1255   if test "$ac_new_set" = set; then
1256     case $ac_new_val in
1257     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259     *) ac_arg=$ac_var=$ac_new_val ;;
1260     esac
1261     case " $ac_configure_args " in
1262       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1263       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264     esac
1265   fi
1266 done
1267 if $ac_cache_corrupted; then
1268   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272    { (exit 1); exit 1; }; }
1273 fi
1274
1275 ac_ext=c
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300           ac_config_headers="$ac_config_headers config.h"
1301
1302
1303
1304 ac_ext=c
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 if test -n "$ac_tool_prefix"; then
1310   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1311 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1312 echo "$as_me:$LINENO: checking for $ac_word" >&5
1313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1314 if test "${ac_cv_prog_CC+set}" = set; then
1315   echo $ECHO_N "(cached) $ECHO_C" >&6
1316 else
1317   if test -n "$CC"; then
1318   ac_cv_prog_CC="$CC" # Let the user override the test.
1319 else
1320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1321 for as_dir in $PATH
1322 do
1323   IFS=$as_save_IFS
1324   test -z "$as_dir" && as_dir=.
1325   for ac_exec_ext in '' $ac_executable_extensions; do
1326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1327     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1329     break 2
1330   fi
1331 done
1332 done
1333
1334 fi
1335 fi
1336 CC=$ac_cv_prog_CC
1337 if test -n "$CC"; then
1338   echo "$as_me:$LINENO: result: $CC" >&5
1339 echo "${ECHO_T}$CC" >&6
1340 else
1341   echo "$as_me:$LINENO: result: no" >&5
1342 echo "${ECHO_T}no" >&6
1343 fi
1344
1345 fi
1346 if test -z "$ac_cv_prog_CC"; then
1347   ac_ct_CC=$CC
1348   # Extract the first word of "gcc", so it can be a program name with args.
1349 set dummy gcc; ac_word=$2
1350 echo "$as_me:$LINENO: checking for $ac_word" >&5
1351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1353   echo $ECHO_N "(cached) $ECHO_C" >&6
1354 else
1355   if test -n "$ac_ct_CC"; then
1356   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1357 else
1358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1359 for as_dir in $PATH
1360 do
1361   IFS=$as_save_IFS
1362   test -z "$as_dir" && as_dir=.
1363   for ac_exec_ext in '' $ac_executable_extensions; do
1364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1365     ac_cv_prog_ac_ct_CC="gcc"
1366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1367     break 2
1368   fi
1369 done
1370 done
1371
1372 fi
1373 fi
1374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1375 if test -n "$ac_ct_CC"; then
1376   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1377 echo "${ECHO_T}$ac_ct_CC" >&6
1378 else
1379   echo "$as_me:$LINENO: result: no" >&5
1380 echo "${ECHO_T}no" >&6
1381 fi
1382
1383   CC=$ac_ct_CC
1384 else
1385   CC="$ac_cv_prog_CC"
1386 fi
1387
1388 if test -z "$CC"; then
1389   if test -n "$ac_tool_prefix"; then
1390   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1391 set dummy ${ac_tool_prefix}cc; ac_word=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_CC+set}" = set; then
1395   echo $ECHO_N "(cached) $ECHO_C" >&6
1396 else
1397   if test -n "$CC"; then
1398   ac_cv_prog_CC="$CC" # Let the user override the test.
1399 else
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 for as_dir in $PATH
1402 do
1403   IFS=$as_save_IFS
1404   test -z "$as_dir" && as_dir=.
1405   for ac_exec_ext in '' $ac_executable_extensions; do
1406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407     ac_cv_prog_CC="${ac_tool_prefix}cc"
1408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1409     break 2
1410   fi
1411 done
1412 done
1413
1414 fi
1415 fi
1416 CC=$ac_cv_prog_CC
1417 if test -n "$CC"; then
1418   echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1420 else
1421   echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1423 fi
1424
1425 fi
1426 if test -z "$ac_cv_prog_CC"; then
1427   ac_ct_CC=$CC
1428   # Extract the first word of "cc", so it can be a program name with args.
1429 set dummy cc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433   echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435   if test -n "$ac_ct_CC"; then
1436   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1437 else
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 for as_dir in $PATH
1440 do
1441   IFS=$as_save_IFS
1442   test -z "$as_dir" && as_dir=.
1443   for ac_exec_ext in '' $ac_executable_extensions; do
1444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445     ac_cv_prog_ac_ct_CC="cc"
1446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447     break 2
1448   fi
1449 done
1450 done
1451
1452 fi
1453 fi
1454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1455 if test -n "$ac_ct_CC"; then
1456   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457 echo "${ECHO_T}$ac_ct_CC" >&6
1458 else
1459   echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1461 fi
1462
1463   CC=$ac_ct_CC
1464 else
1465   CC="$ac_cv_prog_CC"
1466 fi
1467
1468 fi
1469 if test -z "$CC"; then
1470   # Extract the first word of "cc", so it can be a program name with args.
1471 set dummy cc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475   echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477   if test -n "$CC"; then
1478   ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480   ac_prog_rejected=no
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484   IFS=$as_save_IFS
1485   test -z "$as_dir" && as_dir=.
1486   for ac_exec_ext in '' $ac_executable_extensions; do
1487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1489        ac_prog_rejected=yes
1490        continue
1491      fi
1492     ac_cv_prog_CC="cc"
1493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494     break 2
1495   fi
1496 done
1497 done
1498
1499 if test $ac_prog_rejected = yes; then
1500   # We found a bogon in the path, so make sure we never use it.
1501   set dummy $ac_cv_prog_CC
1502   shift
1503   if test $# != 0; then
1504     # We chose a different compiler from the bogus one.
1505     # However, it has the same basename, so the bogon will be chosen
1506     # first if we set CC to just the basename; use the full file name.
1507     shift
1508     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1509   fi
1510 fi
1511 fi
1512 fi
1513 CC=$ac_cv_prog_CC
1514 if test -n "$CC"; then
1515   echo "$as_me:$LINENO: result: $CC" >&5
1516 echo "${ECHO_T}$CC" >&6
1517 else
1518   echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520 fi
1521
1522 fi
1523 if test -z "$CC"; then
1524   if test -n "$ac_tool_prefix"; then
1525   for ac_prog in cl
1526   do
1527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532   echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534   if test -n "$CC"; then
1535   ac_cv_prog_CC="$CC" # Let the user override the test.
1536 else
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 for as_dir in $PATH
1539 do
1540   IFS=$as_save_IFS
1541   test -z "$as_dir" && as_dir=.
1542   for ac_exec_ext in '' $ac_executable_extensions; do
1543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546     break 2
1547   fi
1548 done
1549 done
1550
1551 fi
1552 fi
1553 CC=$ac_cv_prog_CC
1554 if test -n "$CC"; then
1555   echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1557 else
1558   echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 fi
1561
1562     test -n "$CC" && break
1563   done
1564 fi
1565 if test -z "$CC"; then
1566   ac_ct_CC=$CC
1567   for ac_prog in cl
1568 do
1569   # Extract the first word of "$ac_prog", so it can be a program name with args.
1570 set dummy $ac_prog; ac_word=$2
1571 echo "$as_me:$LINENO: checking for $ac_word" >&5
1572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1574   echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576   if test -n "$ac_ct_CC"; then
1577   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1578 else
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 for as_dir in $PATH
1581 do
1582   IFS=$as_save_IFS
1583   test -z "$as_dir" && as_dir=.
1584   for ac_exec_ext in '' $ac_executable_extensions; do
1585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586     ac_cv_prog_ac_ct_CC="$ac_prog"
1587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588     break 2
1589   fi
1590 done
1591 done
1592
1593 fi
1594 fi
1595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1596 if test -n "$ac_ct_CC"; then
1597   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1598 echo "${ECHO_T}$ac_ct_CC" >&6
1599 else
1600   echo "$as_me:$LINENO: result: no" >&5
1601 echo "${ECHO_T}no" >&6
1602 fi
1603
1604   test -n "$ac_ct_CC" && break
1605 done
1606
1607   CC=$ac_ct_CC
1608 fi
1609
1610 fi
1611
1612
1613 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1614 See \`config.log' for more details." >&5
1615 echo "$as_me: error: no acceptable C compiler found in \$PATH
1616 See \`config.log' for more details." >&2;}
1617    { (exit 1); exit 1; }; }
1618
1619 # Provide some information about the compiler.
1620 echo "$as_me:$LINENO:" \
1621      "checking for C compiler version" >&5
1622 ac_compiler=`set X $ac_compile; echo $2`
1623 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1624   (eval $ac_compiler --version </dev/null >&5) 2>&5
1625   ac_status=$?
1626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1627   (exit $ac_status); }
1628 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1629   (eval $ac_compiler -v </dev/null >&5) 2>&5
1630   ac_status=$?
1631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1632   (exit $ac_status); }
1633 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1634   (eval $ac_compiler -V </dev/null >&5) 2>&5
1635   ac_status=$?
1636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1637   (exit $ac_status); }
1638
1639 cat >conftest.$ac_ext <<_ACEOF
1640 /* confdefs.h.  */
1641 _ACEOF
1642 cat confdefs.h >>conftest.$ac_ext
1643 cat >>conftest.$ac_ext <<_ACEOF
1644 /* end confdefs.h.  */
1645
1646 int
1647 main ()
1648 {
1649
1650   ;
1651   return 0;
1652 }
1653 _ACEOF
1654 ac_clean_files_save=$ac_clean_files
1655 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1656 # Try to create an executable without -o first, disregard a.out.
1657 # It will help us diagnose broken compilers, and finding out an intuition
1658 # of exeext.
1659 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1660 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1661 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1662 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1663   (eval $ac_link_default) 2>&5
1664   ac_status=$?
1665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1666   (exit $ac_status); }; then
1667   # Find the output, starting from the most likely.  This scheme is
1668 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1669 # resort.
1670
1671 # Be careful to initialize this variable, since it used to be cached.
1672 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1673 ac_cv_exeext=
1674 # b.out is created by i960 compilers.
1675 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1676 do
1677   test -f "$ac_file" || continue
1678   case $ac_file in
1679     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1680         ;;
1681     conftest.$ac_ext )
1682         # This is the source file.
1683         ;;
1684     [ab].out )
1685         # We found the default executable, but exeext='' is most
1686         # certainly right.
1687         break;;
1688     *.* )
1689         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1690         # FIXME: I believe we export ac_cv_exeext for Libtool,
1691         # but it would be cool to find out if it's true.  Does anybody
1692         # maintain Libtool? --akim.
1693         export ac_cv_exeext
1694         break;;
1695     * )
1696         break;;
1697   esac
1698 done
1699 else
1700   echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1704 See \`config.log' for more details." >&5
1705 echo "$as_me: error: C compiler cannot create executables
1706 See \`config.log' for more details." >&2;}
1707    { (exit 77); exit 77; }; }
1708 fi
1709
1710 ac_exeext=$ac_cv_exeext
1711 echo "$as_me:$LINENO: result: $ac_file" >&5
1712 echo "${ECHO_T}$ac_file" >&6
1713
1714 # Check the compiler produces executables we can run.  If not, either
1715 # the compiler is broken, or we cross compile.
1716 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1717 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1718 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1719 # If not cross compiling, check that we can run a simple program.
1720 if test "$cross_compiling" != yes; then
1721   if { ac_try='./$ac_file'
1722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1723   (eval $ac_try) 2>&5
1724   ac_status=$?
1725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726   (exit $ac_status); }; }; then
1727     cross_compiling=no
1728   else
1729     if test "$cross_compiling" = maybe; then
1730         cross_compiling=yes
1731     else
1732         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1733 If you meant to cross compile, use \`--host'.
1734 See \`config.log' for more details." >&5
1735 echo "$as_me: error: cannot run C compiled programs.
1736 If you meant to cross compile, use \`--host'.
1737 See \`config.log' for more details." >&2;}
1738    { (exit 1); exit 1; }; }
1739     fi
1740   fi
1741 fi
1742 echo "$as_me:$LINENO: result: yes" >&5
1743 echo "${ECHO_T}yes" >&6
1744
1745 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1746 ac_clean_files=$ac_clean_files_save
1747 # Check the compiler produces executables we can run.  If not, either
1748 # the compiler is broken, or we cross compile.
1749 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1750 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1751 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1752 echo "${ECHO_T}$cross_compiling" >&6
1753
1754 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1755 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1757   (eval $ac_link) 2>&5
1758   ac_status=$?
1759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760   (exit $ac_status); }; then
1761   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1762 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1763 # work properly (i.e., refer to `conftest.exe'), while it won't with
1764 # `rm'.
1765 for ac_file in conftest.exe conftest conftest.*; do
1766   test -f "$ac_file" || continue
1767   case $ac_file in
1768     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1769     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1770           export ac_cv_exeext
1771           break;;
1772     * ) break;;
1773   esac
1774 done
1775 else
1776   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1777 See \`config.log' for more details." >&5
1778 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1779 See \`config.log' for more details." >&2;}
1780    { (exit 1); exit 1; }; }
1781 fi
1782
1783 rm -f conftest$ac_cv_exeext
1784 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1785 echo "${ECHO_T}$ac_cv_exeext" >&6
1786
1787 rm -f conftest.$ac_ext
1788 EXEEXT=$ac_cv_exeext
1789 ac_exeext=$EXEEXT
1790 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1791 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1792 if test "${ac_cv_objext+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   cat >conftest.$ac_ext <<_ACEOF
1796 /* confdefs.h.  */
1797 _ACEOF
1798 cat confdefs.h >>conftest.$ac_ext
1799 cat >>conftest.$ac_ext <<_ACEOF
1800 /* end confdefs.h.  */
1801
1802 int
1803 main ()
1804 {
1805
1806   ;
1807   return 0;
1808 }
1809 _ACEOF
1810 rm -f conftest.o conftest.obj
1811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1812   (eval $ac_compile) 2>&5
1813   ac_status=$?
1814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815   (exit $ac_status); }; then
1816   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1817   case $ac_file in
1818     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1819     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1820        break;;
1821   esac
1822 done
1823 else
1824   echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1830 See \`config.log' for more details." >&2;}
1831    { (exit 1); exit 1; }; }
1832 fi
1833
1834 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1835 fi
1836 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1837 echo "${ECHO_T}$ac_cv_objext" >&6
1838 OBJEXT=$ac_cv_objext
1839 ac_objext=$OBJEXT
1840 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1841 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1842 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1843   echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845   cat >conftest.$ac_ext <<_ACEOF
1846 /* confdefs.h.  */
1847 _ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h.  */
1851
1852 int
1853 main ()
1854 {
1855 #ifndef __GNUC__
1856        choke me
1857 #endif
1858
1859   ;
1860   return 0;
1861 }
1862 _ACEOF
1863 rm -f conftest.$ac_objext
1864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1865   (eval $ac_compile) 2>conftest.er1
1866   ac_status=$?
1867   grep -v '^ *+' conftest.er1 >conftest.err
1868   rm -f conftest.er1
1869   cat conftest.err >&5
1870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871   (exit $ac_status); } &&
1872          { ac_try='test -z "$ac_c_werror_flag"
1873                          || test ! -s conftest.err'
1874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1875   (eval $ac_try) 2>&5
1876   ac_status=$?
1877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878   (exit $ac_status); }; } &&
1879          { ac_try='test -s conftest.$ac_objext'
1880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1881   (eval $ac_try) 2>&5
1882   ac_status=$?
1883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884   (exit $ac_status); }; }; then
1885   ac_compiler_gnu=yes
1886 else
1887   echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 ac_compiler_gnu=no
1891 fi
1892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1894
1895 fi
1896 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1897 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1898 GCC=`test $ac_compiler_gnu = yes && echo yes`
1899 ac_test_CFLAGS=${CFLAGS+set}
1900 ac_save_CFLAGS=$CFLAGS
1901 CFLAGS="-g"
1902 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1903 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1904 if test "${ac_cv_prog_cc_g+set}" = set; then
1905   echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907   cat >conftest.$ac_ext <<_ACEOF
1908 /* confdefs.h.  */
1909 _ACEOF
1910 cat confdefs.h >>conftest.$ac_ext
1911 cat >>conftest.$ac_ext <<_ACEOF
1912 /* end confdefs.h.  */
1913
1914 int
1915 main ()
1916 {
1917
1918   ;
1919   return 0;
1920 }
1921 _ACEOF
1922 rm -f conftest.$ac_objext
1923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1924   (eval $ac_compile) 2>conftest.er1
1925   ac_status=$?
1926   grep -v '^ *+' conftest.er1 >conftest.err
1927   rm -f conftest.er1
1928   cat conftest.err >&5
1929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930   (exit $ac_status); } &&
1931          { ac_try='test -z "$ac_c_werror_flag"
1932                          || test ! -s conftest.err'
1933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934   (eval $ac_try) 2>&5
1935   ac_status=$?
1936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937   (exit $ac_status); }; } &&
1938          { ac_try='test -s conftest.$ac_objext'
1939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940   (eval $ac_try) 2>&5
1941   ac_status=$?
1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943   (exit $ac_status); }; }; then
1944   ac_cv_prog_cc_g=yes
1945 else
1946   echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 ac_cv_prog_cc_g=no
1950 fi
1951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1954 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1955 if test "$ac_test_CFLAGS" = set; then
1956   CFLAGS=$ac_save_CFLAGS
1957 elif test $ac_cv_prog_cc_g = yes; then
1958   if test "$GCC" = yes; then
1959     CFLAGS="-g -O2"
1960   else
1961     CFLAGS="-g"
1962   fi
1963 else
1964   if test "$GCC" = yes; then
1965     CFLAGS="-O2"
1966   else
1967     CFLAGS=
1968   fi
1969 fi
1970 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1971 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1972 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   ac_cv_prog_cc_stdc=no
1976 ac_save_CC=$CC
1977 cat >conftest.$ac_ext <<_ACEOF
1978 /* confdefs.h.  */
1979 _ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h.  */
1983 #include <stdarg.h>
1984 #include <stdio.h>
1985 #include <sys/types.h>
1986 #include <sys/stat.h>
1987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1988 struct buf { int x; };
1989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1990 static char *e (p, i)
1991      char **p;
1992      int i;
1993 {
1994   return p[i];
1995 }
1996 static char *f (char * (*g) (char **, int), char **p, ...)
1997 {
1998   char *s;
1999   va_list v;
2000   va_start (v,p);
2001   s = g (p, va_arg (v,int));
2002   va_end (v);
2003   return s;
2004 }
2005
2006 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2007    function prototypes and stuff, but not '\xHH' hex character constants.
2008    These don't provoke an error unfortunately, instead are silently treated
2009    as 'x'.  The following induces an error, until -std1 is added to get
2010    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2011    array size at least.  It's necessary to write '\x00'==0 to get something
2012    that's true only with -std1.  */
2013 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2014
2015 int test (int i, double x);
2016 struct s1 {int (*f) (int a);};
2017 struct s2 {int (*f) (double a);};
2018 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2019 int argc;
2020 char **argv;
2021 int
2022 main ()
2023 {
2024 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 # Don't try gcc -ansi; that turns off useful extensions and
2030 # breaks some systems' header files.
2031 # AIX                   -qlanglvl=ansi
2032 # Ultrix and OSF/1      -std1
2033 # HP-UX 10.20 and later -Ae
2034 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2035 # SVR4                  -Xc -D__EXTENSIONS__
2036 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2037 do
2038   CC="$ac_save_CC $ac_arg"
2039   rm -f conftest.$ac_objext
2040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2041   (eval $ac_compile) 2>conftest.er1
2042   ac_status=$?
2043   grep -v '^ *+' conftest.er1 >conftest.err
2044   rm -f conftest.er1
2045   cat conftest.err >&5
2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047   (exit $ac_status); } &&
2048          { ac_try='test -z "$ac_c_werror_flag"
2049                          || test ! -s conftest.err'
2050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051   (eval $ac_try) 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }; } &&
2055          { ac_try='test -s conftest.$ac_objext'
2056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057   (eval $ac_try) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); }; }; then
2061   ac_cv_prog_cc_stdc=$ac_arg
2062 break
2063 else
2064   echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2066
2067 fi
2068 rm -f conftest.err conftest.$ac_objext
2069 done
2070 rm -f conftest.$ac_ext conftest.$ac_objext
2071 CC=$ac_save_CC
2072
2073 fi
2074
2075 case "x$ac_cv_prog_cc_stdc" in
2076   x|xno)
2077     echo "$as_me:$LINENO: result: none needed" >&5
2078 echo "${ECHO_T}none needed" >&6 ;;
2079   *)
2080     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2081 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2082     CC="$CC $ac_cv_prog_cc_stdc" ;;
2083 esac
2084
2085 # Some people use a C++ compiler to compile C.  Since we use `exit',
2086 # in C++ we need to declare it.  In case someone uses the same compiler
2087 # for both compiling C and C++ we need to have the C++ compiler decide
2088 # the declaration of exit, since it's the most demanding environment.
2089 cat >conftest.$ac_ext <<_ACEOF
2090 #ifndef __cplusplus
2091   choke me
2092 #endif
2093 _ACEOF
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096   (eval $ac_compile) 2>conftest.er1
2097   ac_status=$?
2098   grep -v '^ *+' conftest.er1 >conftest.err
2099   rm -f conftest.er1
2100   cat conftest.err >&5
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); } &&
2103          { ac_try='test -z "$ac_c_werror_flag"
2104                          || test ! -s conftest.err'
2105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106   (eval $ac_try) 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }; } &&
2110          { ac_try='test -s conftest.$ac_objext'
2111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112   (eval $ac_try) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }; }; then
2116   for ac_declaration in \
2117    '' \
2118    'extern "C" void std::exit (int) throw (); using std::exit;' \
2119    'extern "C" void std::exit (int); using std::exit;' \
2120    'extern "C" void exit (int) throw ();' \
2121    'extern "C" void exit (int);' \
2122    'void exit (int);'
2123 do
2124   cat >conftest.$ac_ext <<_ACEOF
2125 /* confdefs.h.  */
2126 _ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h.  */
2130 $ac_declaration
2131 #include <stdlib.h>
2132 int
2133 main ()
2134 {
2135 exit (42);
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142   (eval $ac_compile) 2>conftest.er1
2143   ac_status=$?
2144   grep -v '^ *+' conftest.er1 >conftest.err
2145   rm -f conftest.er1
2146   cat conftest.err >&5
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); } &&
2149          { ac_try='test -z "$ac_c_werror_flag"
2150                          || test ! -s conftest.err'
2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; } &&
2156          { ac_try='test -s conftest.$ac_objext'
2157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158   (eval $ac_try) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; }; then
2162   :
2163 else
2164   echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 continue
2168 fi
2169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170   cat >conftest.$ac_ext <<_ACEOF
2171 /* confdefs.h.  */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h.  */
2176 $ac_declaration
2177 int
2178 main ()
2179 {
2180 exit (42);
2181   ;
2182   return 0;
2183 }
2184 _ACEOF
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187   (eval $ac_compile) 2>conftest.er1
2188   ac_status=$?
2189   grep -v '^ *+' conftest.er1 >conftest.err
2190   rm -f conftest.er1
2191   cat conftest.err >&5
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); } &&
2194          { ac_try='test -z "$ac_c_werror_flag"
2195                          || test ! -s conftest.err'
2196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197   (eval $ac_try) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }; } &&
2201          { ac_try='test -s conftest.$ac_objext'
2202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203   (eval $ac_try) 2>&5
2204   ac_status=$?
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); }; }; then
2207   break
2208 else
2209   echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211
2212 fi
2213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2214 done
2215 rm -f conftest*
2216 if test -n "$ac_declaration"; then
2217   echo '#ifdef __cplusplus' >>confdefs.h
2218   echo $ac_declaration      >>confdefs.h
2219   echo '#endif'             >>confdefs.h
2220 fi
2221
2222 else
2223   echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 fi
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228 ac_ext=c
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233
2234
2235 ac_ext=c
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2241 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2242 # On Suns, sometimes $CPP names a directory.
2243 if test -n "$CPP" && test -d "$CPP"; then
2244   CPP=
2245 fi
2246 if test -z "$CPP"; then
2247   if test "${ac_cv_prog_CPP+set}" = set; then
2248   echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250       # Double quotes because CPP needs to be expanded
2251     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2252     do
2253       ac_preproc_ok=false
2254 for ac_c_preproc_warn_flag in '' yes
2255 do
2256   # Use a header file that comes with gcc, so configuring glibc
2257   # with a fresh cross-compiler works.
2258   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2259   # <limits.h> exists even on freestanding compilers.
2260   # On the NeXT, cc -E runs the code through the compiler's parser,
2261   # not just through cpp. "Syntax error" is here to catch this case.
2262   cat >conftest.$ac_ext <<_ACEOF
2263 /* confdefs.h.  */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h.  */
2268 #ifdef __STDC__
2269 # include <limits.h>
2270 #else
2271 # include <assert.h>
2272 #endif
2273                      Syntax error
2274 _ACEOF
2275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2277   ac_status=$?
2278   grep -v '^ *+' conftest.er1 >conftest.err
2279   rm -f conftest.er1
2280   cat conftest.err >&5
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); } >/dev/null; then
2283   if test -s conftest.err; then
2284     ac_cpp_err=$ac_c_preproc_warn_flag
2285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2286   else
2287     ac_cpp_err=
2288   fi
2289 else
2290   ac_cpp_err=yes
2291 fi
2292 if test -z "$ac_cpp_err"; then
2293   :
2294 else
2295   echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298   # Broken: fails on valid input.
2299 continue
2300 fi
2301 rm -f conftest.err conftest.$ac_ext
2302
2303   # OK, works on sane cases.  Now check whether non-existent headers
2304   # can be detected and how.
2305   cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h.  */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h.  */
2311 #include <ac_nonexistent.h>
2312 _ACEOF
2313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2315   ac_status=$?
2316   grep -v '^ *+' conftest.er1 >conftest.err
2317   rm -f conftest.er1
2318   cat conftest.err >&5
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); } >/dev/null; then
2321   if test -s conftest.err; then
2322     ac_cpp_err=$ac_c_preproc_warn_flag
2323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2324   else
2325     ac_cpp_err=
2326   fi
2327 else
2328   ac_cpp_err=yes
2329 fi
2330 if test -z "$ac_cpp_err"; then
2331   # Broken: success on invalid input.
2332 continue
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337   # Passes both tests.
2338 ac_preproc_ok=:
2339 break
2340 fi
2341 rm -f conftest.err conftest.$ac_ext
2342
2343 done
2344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2345 rm -f conftest.err conftest.$ac_ext
2346 if $ac_preproc_ok; then
2347   break
2348 fi
2349
2350     done
2351     ac_cv_prog_CPP=$CPP
2352
2353 fi
2354   CPP=$ac_cv_prog_CPP
2355 else
2356   ac_cv_prog_CPP=$CPP
2357 fi
2358 echo "$as_me:$LINENO: result: $CPP" >&5
2359 echo "${ECHO_T}$CPP" >&6
2360 ac_preproc_ok=false
2361 for ac_c_preproc_warn_flag in '' yes
2362 do
2363   # Use a header file that comes with gcc, so configuring glibc
2364   # with a fresh cross-compiler works.
2365   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2366   # <limits.h> exists even on freestanding compilers.
2367   # On the NeXT, cc -E runs the code through the compiler's parser,
2368   # not just through cpp. "Syntax error" is here to catch this case.
2369   cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h.  */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h.  */
2375 #ifdef __STDC__
2376 # include <limits.h>
2377 #else
2378 # include <assert.h>
2379 #endif
2380                      Syntax error
2381 _ACEOF
2382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2384   ac_status=$?
2385   grep -v '^ *+' conftest.er1 >conftest.err
2386   rm -f conftest.er1
2387   cat conftest.err >&5
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); } >/dev/null; then
2390   if test -s conftest.err; then
2391     ac_cpp_err=$ac_c_preproc_warn_flag
2392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2393   else
2394     ac_cpp_err=
2395   fi
2396 else
2397   ac_cpp_err=yes
2398 fi
2399 if test -z "$ac_cpp_err"; then
2400   :
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405   # Broken: fails on valid input.
2406 continue
2407 fi
2408 rm -f conftest.err conftest.$ac_ext
2409
2410   # OK, works on sane cases.  Now check whether non-existent headers
2411   # can be detected and how.
2412   cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h.  */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h.  */
2418 #include <ac_nonexistent.h>
2419 _ACEOF
2420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2422   ac_status=$?
2423   grep -v '^ *+' conftest.er1 >conftest.err
2424   rm -f conftest.er1
2425   cat conftest.err >&5
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); } >/dev/null; then
2428   if test -s conftest.err; then
2429     ac_cpp_err=$ac_c_preproc_warn_flag
2430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2431   else
2432     ac_cpp_err=
2433   fi
2434 else
2435   ac_cpp_err=yes
2436 fi
2437 if test -z "$ac_cpp_err"; then
2438   # Broken: success on invalid input.
2439 continue
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444   # Passes both tests.
2445 ac_preproc_ok=:
2446 break
2447 fi
2448 rm -f conftest.err conftest.$ac_ext
2449
2450 done
2451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2452 rm -f conftest.err conftest.$ac_ext
2453 if $ac_preproc_ok; then
2454   :
2455 else
2456   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2457 See \`config.log' for more details." >&5
2458 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2459 See \`config.log' for more details." >&2;}
2460    { (exit 1); exit 1; }; }
2461 fi
2462
2463 ac_ext=c
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468
2469
2470 echo "$as_me:$LINENO: checking for egrep" >&5
2471 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2472 if test "${ac_cv_prog_egrep+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2476     then ac_cv_prog_egrep='grep -E'
2477     else ac_cv_prog_egrep='egrep'
2478     fi
2479 fi
2480 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2481 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2482  EGREP=$ac_cv_prog_egrep
2483
2484
2485 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2486 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2487 if test "${ac_cv_header_stdc+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   cat >conftest.$ac_ext <<_ACEOF
2491 /* confdefs.h.  */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h.  */
2496 #include <stdlib.h>
2497 #include <stdarg.h>
2498 #include <string.h>
2499 #include <float.h>
2500
2501 int
2502 main ()
2503 {
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 rm -f conftest.$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511   (eval $ac_compile) 2>conftest.er1
2512   ac_status=$?
2513   grep -v '^ *+' conftest.er1 >conftest.err
2514   rm -f conftest.er1
2515   cat conftest.err >&5
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); } &&
2518          { ac_try='test -z "$ac_c_werror_flag"
2519                          || test ! -s conftest.err'
2520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521   (eval $ac_try) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; } &&
2525          { ac_try='test -s conftest.$ac_objext'
2526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527   (eval $ac_try) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; }; then
2531   ac_cv_header_stdc=yes
2532 else
2533   echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2535
2536 ac_cv_header_stdc=no
2537 fi
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539
2540 if test $ac_cv_header_stdc = yes; then
2541   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2542   cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548 #include <string.h>
2549
2550 _ACEOF
2551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2552   $EGREP "memchr" >/dev/null 2>&1; then
2553   :
2554 else
2555   ac_cv_header_stdc=no
2556 fi
2557 rm -f conftest*
2558
2559 fi
2560
2561 if test $ac_cv_header_stdc = yes; then
2562   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2563   cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h.  */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h.  */
2569 #include <stdlib.h>
2570
2571 _ACEOF
2572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2573   $EGREP "free" >/dev/null 2>&1; then
2574   :
2575 else
2576   ac_cv_header_stdc=no
2577 fi
2578 rm -f conftest*
2579
2580 fi
2581
2582 if test $ac_cv_header_stdc = yes; then
2583   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2584   if test "$cross_compiling" = yes; then
2585   :
2586 else
2587   cat >conftest.$ac_ext <<_ACEOF
2588 /* confdefs.h.  */
2589 _ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h.  */
2593 #include <ctype.h>
2594 #if ((' ' & 0x0FF) == 0x020)
2595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2597 #else
2598 # define ISLOWER(c) \
2599                    (('a' <= (c) && (c) <= 'i') \
2600                      || ('j' <= (c) && (c) <= 'r') \
2601                      || ('s' <= (c) && (c) <= 'z'))
2602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2603 #endif
2604
2605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2606 int
2607 main ()
2608 {
2609   int i;
2610   for (i = 0; i < 256; i++)
2611     if (XOR (islower (i), ISLOWER (i))
2612         || toupper (i) != TOUPPER (i))
2613       exit(2);
2614   exit (0);
2615 }
2616 _ACEOF
2617 rm -f conftest$ac_exeext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619   (eval $ac_link) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; }; then
2628   :
2629 else
2630   echo "$as_me: program exited with status $ac_status" >&5
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 ( exit $ac_status )
2635 ac_cv_header_stdc=no
2636 fi
2637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2638 fi
2639 fi
2640 fi
2641 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2642 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2643 if test $ac_cv_header_stdc = yes; then
2644
2645 cat >>confdefs.h <<\_ACEOF
2646 #define STDC_HEADERS 1
2647 _ACEOF
2648
2649 fi
2650
2651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2662                   inttypes.h stdint.h unistd.h
2663 do
2664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2665 echo "$as_me:$LINENO: checking for $ac_header" >&5
2666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2668   echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670   cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676 $ac_includes_default
2677
2678 #include <$ac_header>
2679 _ACEOF
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682   (eval $ac_compile) 2>conftest.er1
2683   ac_status=$?
2684   grep -v '^ *+' conftest.er1 >conftest.err
2685   rm -f conftest.er1
2686   cat conftest.err >&5
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); } &&
2689          { ac_try='test -z "$ac_c_werror_flag"
2690                          || test ! -s conftest.err'
2691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692   (eval $ac_try) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }; } &&
2696          { ac_try='test -s conftest.$ac_objext'
2697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }; }; then
2702   eval "$as_ac_Header=yes"
2703 else
2704   echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2706
2707 eval "$as_ac_Header=no"
2708 fi
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710 fi
2711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2714   cat >>confdefs.h <<_ACEOF
2715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2716 _ACEOF
2717
2718 fi
2719
2720 done
2721
2722
2723
2724 echo "$as_me:$LINENO: checking for GNU Readline library, version 2.0 or newer" >&5
2725 echo $ECHO_N "checking for GNU Readline library, version 2.0 or newer... $ECHO_C" >&6
2726
2727 wi_cv_lib_readline=no
2728 wi_cv_lib_readline_result=no
2729 ac_save_LIBS="$LIBS"
2730 # Note: $LIBCURSES is permitted to be empty.
2731 for LIBREADLINE in "-lreadline" "-lreadline $LIBCURSES" "-lreadline -ltermcap" "-lreadline -lncurses" "-lreadline -lcurses"
2732 do
2733         LIBS="$ac_save_LIBS $LIBREADLINE"
2734         if test "$cross_compiling" = yes; then
2735
2736         # action if cross compiling
2737         wi_cv_lib_readline=no
2738
2739 else
2740   cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h.  */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h.  */
2746
2747         /* program */
2748 #include <stdio.h>
2749 #include <stdlib.h>
2750
2751 main(int argc, char **argv)
2752 {
2753         /* Note:  don't actually call readline, since it may block;
2754          * We just want to see if it (dynamic) linked in okay.
2755          */
2756         if (argc == 0)  /* never true */
2757                 readline(0);
2758         exit(0);
2759 }
2760
2761 _ACEOF
2762 rm -f conftest$ac_exeext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2764   (eval $ac_link) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; }; then
2773
2774         # action if true
2775         wi_cv_lib_readline=yes
2776
2777 else
2778   echo "$as_me: program exited with status $ac_status" >&5
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 ( exit $ac_status )
2783
2784         # action if false
2785         wi_cv_lib_readline=no
2786
2787 fi
2788 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2789 fi
2790
2791         if test "$wi_cv_lib_readline" = yes ; then break ; fi
2792 done
2793
2794 # Now try it again, to be sure it is recent enough.
2795 # rl_function_of_keyseq appeared in version 2.0
2796 #
2797         cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h.  */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h.  */
2803
2804                 /* includes */
2805
2806 int
2807 main ()
2808 {
2809
2810                 /* function-body */
2811                 readline(0);
2812                 rl_function_of_keyseq(0);
2813
2814   ;
2815   return 0;
2816 }
2817 _ACEOF
2818 rm -f conftest.$ac_objext conftest$ac_exeext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2820   (eval $ac_link) 2>conftest.er1
2821   ac_status=$?
2822   grep -v '^ *+' conftest.er1 >conftest.err
2823   rm -f conftest.er1
2824   cat conftest.err >&5
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); } &&
2827          { ac_try='test -z "$ac_c_werror_flag"
2828                          || test ! -s conftest.err'
2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830   (eval $ac_try) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; } &&
2834          { ac_try='test -s conftest$ac_exeext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840
2841                 wi_cv_lib_readline=yes
2842
2843 else
2844   echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2846
2847
2848                 wi_cv_lib_readline=no
2849                 wi_cv_lib_readline_result="no (it is present but too old to use)"
2850
2851 fi
2852 rm -f conftest.err conftest.$ac_objext \
2853       conftest$ac_exeext conftest.$ac_ext
2854
2855 if test "$wi_cv_lib_readline" = no ; then
2856         LIBREADLINE=""
2857         # restore LIBS
2858         LIBS="$ac_save_LIBS"
2859 else
2860         /bin/rm -f readline.ver
2861         touch readline.ver
2862
2863         if test "$cross_compiling" = yes; then
2864
2865                 # action if cross compiling
2866                 rl_library_version=''
2867                 rlver=''
2868                 /bin/rm -f readline.ver
2869
2870 else
2871   cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h.  */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h.  */
2877
2878         /* program */
2879 #include <unistd.h>
2880 #include <sys/types.h>
2881 #include <stdio.h>
2882
2883 extern char *rl_library_version;
2884
2885 main()
2886 {
2887         FILE *fp;
2888         double d;
2889
2890         sscanf(rl_library_version, "%lf", &d);
2891         fp = fopen("readline.ver", "w");
2892         if (fp == NULL) exit(1);
2893         if (fprintf(fp, "%s\n", rl_library_version) < 0) exit(1);
2894         if (fprintf(fp, "%03d\n", (int) (d * 100.0)) < 0) exit(1);
2895         if (fclose(fp) < 0) exit(1);
2896         exit(0);
2897 }
2898
2899 _ACEOF
2900 rm -f conftest$ac_exeext
2901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2902   (eval $ac_link) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907   (eval $ac_try) 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; }; then
2911
2912                 # action if true
2913                 rl_library_version=`sed -n 1,1p readline.ver 2>/dev/null`
2914                 rlver=`sed -n 2,2p readline.ver 2>/dev/null`
2915                 /bin/rm -f readline.ver
2916
2917 else
2918   echo "$as_me: program exited with status $ac_status" >&5
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 ( exit $ac_status )
2923
2924                 # action if false
2925                 rl_library_version=''
2926                 rlver=''
2927                 /bin/rm -f readline.ver
2928
2929 fi
2930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2931 fi
2932
2933         case "$rlver" in
2934                 ???)
2935                         wi_cv_lib_readline_result="yes, installed version is $rl_library_version"
2936                         ;;
2937                 *)
2938                         # Test using current LIBS.
2939                         cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945
2946                                 /* includes */
2947                                 extern int rl_completion_append_character;
2948
2949 int
2950 main ()
2951 {
2952
2953                                 /* function-body */
2954                                 readline(0);
2955                                 rl_completion_append_character = 0;
2956
2957   ;
2958   return 0;
2959 }
2960 _ACEOF
2961 rm -f conftest.$ac_objext conftest$ac_exeext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2963   (eval $ac_link) 2>conftest.er1
2964   ac_status=$?
2965   grep -v '^ *+' conftest.er1 >conftest.err
2966   rm -f conftest.er1
2967   cat conftest.err >&5
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); } &&
2970          { ac_try='test -z "$ac_c_werror_flag"
2971                          || test ! -s conftest.err'
2972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973   (eval $ac_try) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; } &&
2977          { ac_try='test -s conftest$ac_exeext'
2978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979   (eval $ac_try) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983
2984                                 rlver="210"
2985
2986 else
2987   echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990
2991                                 rlver="200"
2992
2993 fi
2994 rm -f conftest.err conftest.$ac_objext \
2995       conftest$ac_exeext conftest.$ac_ext
2996
2997                         if test "$rlver" = "210" ; then
2998                                 wi_cv_lib_readline_result="yes, version 2.1 or higher"
2999                         else
3000                                 wi_cv_lib_readline_result="yes, version 2.0"
3001                         fi
3002                         ;;
3003         esac
3004
3005         wi_cv_lib_readline=yes
3006         # restore LIBS
3007         LIBS="$ac_save_LIBS"
3008 fi
3009 echo "$as_me:$LINENO: result: $wi_cv_lib_readline_result" >&5
3010 echo "${ECHO_T}$wi_cv_lib_readline_result" >&6
3011
3012
3013 if test "$wi_cv_lib_readline" = yes ; then
3014         # Now verify that all the headers are installed.
3015         #
3016
3017         unset ac_cv_header_readline_chardefs_h
3018         unset ac_cv_header_readline_history_h
3019         unset ac_cv_header_readline_keymaps_h
3020         unset ac_cv_header_readline_readline_h
3021         unset ac_cv_header_readline_tilde_h
3022
3023
3024
3025
3026
3027 for ac_header in readline/chardefs.h readline/history.h readline/keymaps.h readline/readline.h readline/tilde.h
3028 do
3029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3031   echo "$as_me:$LINENO: checking for $ac_header" >&5
3032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3034   echo $ECHO_N "(cached) $ECHO_C" >&6
3035 fi
3036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3038 else
3039   # Is the header compilable?
3040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048 $ac_includes_default
3049 #include <$ac_header>
3050 _ACEOF
3051 rm -f conftest.$ac_objext
3052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053   (eval $ac_compile) 2>conftest.er1
3054   ac_status=$?
3055   grep -v '^ *+' conftest.er1 >conftest.err
3056   rm -f conftest.er1
3057   cat conftest.err >&5
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } &&
3060          { ac_try='test -z "$ac_c_werror_flag"
3061                          || test ! -s conftest.err'
3062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063   (eval $ac_try) 2>&5
3064   ac_status=$?
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); }; } &&
3067          { ac_try='test -s conftest.$ac_objext'
3068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069   (eval $ac_try) 2>&5
3070   ac_status=$?
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); }; }; then
3073   ac_header_compiler=yes
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 ac_header_compiler=no
3079 fi
3080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3082 echo "${ECHO_T}$ac_header_compiler" >&6
3083
3084 # Is the header present?
3085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3087 cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h.  */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h.  */
3093 #include <$ac_header>
3094 _ACEOF
3095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097   ac_status=$?
3098   grep -v '^ *+' conftest.er1 >conftest.err
3099   rm -f conftest.er1
3100   cat conftest.err >&5
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } >/dev/null; then
3103   if test -s conftest.err; then
3104     ac_cpp_err=$ac_c_preproc_warn_flag
3105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3106   else
3107     ac_cpp_err=
3108   fi
3109 else
3110   ac_cpp_err=yes
3111 fi
3112 if test -z "$ac_cpp_err"; then
3113   ac_header_preproc=yes
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118   ac_header_preproc=no
3119 fi
3120 rm -f conftest.err conftest.$ac_ext
3121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3122 echo "${ECHO_T}$ac_header_preproc" >&6
3123
3124 # So?  What about this header?
3125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3126   yes:no: )
3127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3131     ac_header_preproc=yes
3132     ;;
3133   no:yes:* )
3134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3146     (
3147       cat <<\_ASBOX
3148 ## ------------------------------------------ ##
3149 ## Report this to the AC_PACKAGE_NAME lists.  ##
3150 ## ------------------------------------------ ##
3151 _ASBOX
3152     ) |
3153       sed "s/^/$as_me: WARNING:     /" >&2
3154     ;;
3155 esac
3156 echo "$as_me:$LINENO: checking for $ac_header" >&5
3157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3159   echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161   eval "$as_ac_Header=\$ac_header_preproc"
3162 fi
3163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3165
3166 fi
3167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3168   cat >>confdefs.h <<_ACEOF
3169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3170 _ACEOF
3171
3172 fi
3173
3174 done
3175
3176
3177         for xxwi in \
3178                 "$ac_cv_header_readline_chardefs_h" \
3179                 "$ac_cv_header_readline_history_h" \
3180                 "$ac_cv_header_readline_keymaps_h" \
3181                 "$ac_cv_header_readline_readline_h" \
3182                 "$ac_cv_header_readline_tilde_h"
3183         do
3184                 if test "$xxwi" = no ; then
3185                         break
3186                 fi
3187         done
3188
3189         if test "$xxwi" = no ; then
3190                 { echo "$as_me:$LINENO: WARNING: GNU Readline headers are not installed or could not be found -- GNU Readline will not be used." >&5
3191 echo "$as_me: WARNING: GNU Readline headers are not installed or could not be found -- GNU Readline will not be used." >&2;}
3192                 wi_cv_lib_readline=no
3193                 wi_cv_lib_readline_result="no (headers not installed)"
3194         else
3195
3196 cat >>confdefs.h <<_ACEOF
3197 #define HAVE_LIBREADLINE $rlver
3198 _ACEOF
3199
3200         fi
3201 fi
3202                         if test "$wi_cv_lib_readline" = "yes" ; then
3203                 ac_save_LIBS="$LIBS"
3204                 LIBS="$ac_save_LIBS $LIBREADLINE"
3205
3206
3207 for ac_func in rl_completion_matches completion_matches
3208 do
3209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3210 echo "$as_me:$LINENO: checking for $ac_func" >&5
3211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3212 if eval "test \"\${$as_ac_var+set}\" = set"; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3223 #define $ac_func innocuous_$ac_func
3224
3225 /* System header to define __stub macros and hopefully few prototypes,
3226     which can conflict with char $ac_func (); below.
3227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228     <limits.h> exists even on freestanding compilers.  */
3229
3230 #ifdef __STDC__
3231 # include <limits.h>
3232 #else
3233 # include <assert.h>
3234 #endif
3235
3236 #undef $ac_func
3237
3238 /* Override any gcc2 internal prototype to avoid an error.  */
3239 #ifdef __cplusplus
3240 extern "C"
3241 {
3242 #endif
3243 /* We use char because int might match the return type of a gcc2
3244    builtin and then its argument prototype would still apply.  */
3245 char $ac_func ();
3246 /* The GNU C library defines this for functions which it implements
3247     to always fail with ENOSYS.  Some functions are actually named
3248     something starting with __ and the normal name is an alias.  */
3249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3250 choke me
3251 #else
3252 char (*f) () = $ac_func;
3253 #endif
3254 #ifdef __cplusplus
3255 }
3256 #endif
3257
3258 int
3259 main ()
3260 {
3261 return f != $ac_func;
3262   ;
3263   return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.$ac_objext conftest$ac_exeext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3268   (eval $ac_link) 2>conftest.er1
3269   ac_status=$?
3270   grep -v '^ *+' conftest.er1 >conftest.err
3271   rm -f conftest.er1
3272   cat conftest.err >&5
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); } &&
3275          { ac_try='test -z "$ac_c_werror_flag"
3276                          || test ! -s conftest.err'
3277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278   (eval $ac_try) 2>&5
3279   ac_status=$?
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); }; } &&
3282          { ac_try='test -s conftest$ac_exeext'
3283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284   (eval $ac_try) 2>&5
3285   ac_status=$?
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); }; }; then
3288   eval "$as_ac_var=yes"
3289 else
3290   echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 eval "$as_ac_var=no"
3294 fi
3295 rm -f conftest.err conftest.$ac_objext \
3296       conftest$ac_exeext conftest.$ac_ext
3297 fi
3298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3300 if test `eval echo '${'$as_ac_var'}'` = yes; then
3301   cat >>confdefs.h <<_ACEOF
3302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3303 _ACEOF
3304
3305 fi
3306 done
3307
3308                 # restore LIBS
3309                 LIBS="$ac_save_LIBS"
3310         fi
3311                 echo "$as_me:$LINENO: checking to see if readline callbacks take a cast" >&5
3312 echo $ECHO_N "checking to see if readline callbacks take a cast... $ECHO_C" >&6
3313         ac_save_LIBS="$LIBS"
3314         LIBS="$ac_save_LIBS $LIBREADLINE"
3315         ac_save_CC="$CC"
3316         CC="$CXX"
3317         cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h.  */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h.  */
3323
3324 #include <stdio.h>
3325 #include <readline/readline.h>
3326 void func(void) { return; }
3327
3328 int
3329 main ()
3330 {
3331
3332                 rl_callback_handler_install(">", (void(*)(char*))func);
3333
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.$ac_objext conftest$ac_exeext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3340   (eval $ac_link) 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } &&
3347          { ac_try='test -z "$ac_c_werror_flag"
3348                          || test ! -s conftest.err'
3349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350   (eval $ac_try) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; } &&
3354          { ac_try='test -s conftest$ac_exeext'
3355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356   (eval $ac_try) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; }; then
3360
3361
3362 cat >>confdefs.h <<\_ACEOF
3363 #define READLINE_CB_TAKES_CAST 1
3364 _ACEOF
3365
3366                 echo "$as_me:$LINENO: result: yes" >&5
3367 echo "${ECHO_T}yes" >&6
3368
3369 else
3370   echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373
3374                 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376
3377 fi
3378 rm -f conftest.err conftest.$ac_objext \
3379       conftest$ac_exeext conftest.$ac_ext
3380         # restore LIBS
3381         LIBS="$ac_save_LIBS"
3382         CC="$ac_save_CC"
3383
3384
3385 # Required programs
3386 # ===========================================================================
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 if test -n "$ac_tool_prefix"; then
3393   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_prog_CC+set}" = set; then
3398   echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400   if test -n "$CC"; then
3401   ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408   for ac_exec_ext in '' $ac_executable_extensions; do
3409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412     break 2
3413   fi
3414 done
3415 done
3416
3417 fi
3418 fi
3419 CC=$ac_cv_prog_CC
3420 if test -n "$CC"; then
3421   echo "$as_me:$LINENO: result: $CC" >&5
3422 echo "${ECHO_T}$CC" >&6
3423 else
3424   echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3426 fi
3427
3428 fi
3429 if test -z "$ac_cv_prog_CC"; then
3430   ac_ct_CC=$CC
3431   # Extract the first word of "gcc", so it can be a program name with args.
3432 set dummy gcc; ac_word=$2
3433 echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   if test -n "$ac_ct_CC"; then
3439   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446   for ac_exec_ext in '' $ac_executable_extensions; do
3447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448     ac_cv_prog_ac_ct_CC="gcc"
3449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453 done
3454
3455 fi
3456 fi
3457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3458 if test -n "$ac_ct_CC"; then
3459   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3460 echo "${ECHO_T}$ac_ct_CC" >&6
3461 else
3462   echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3464 fi
3465
3466   CC=$ac_ct_CC
3467 else
3468   CC="$ac_cv_prog_CC"
3469 fi
3470
3471 if test -z "$CC"; then
3472   if test -n "$ac_tool_prefix"; then
3473   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}cc; ac_word=$2
3475 echo "$as_me:$LINENO: checking for $ac_word" >&5
3476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477 if test "${ac_cv_prog_CC+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   if test -n "$CC"; then
3481   ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486   IFS=$as_save_IFS
3487   test -z "$as_dir" && as_dir=.
3488   for ac_exec_ext in '' $ac_executable_extensions; do
3489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490     ac_cv_prog_CC="${ac_tool_prefix}cc"
3491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492     break 2
3493   fi
3494 done
3495 done
3496
3497 fi
3498 fi
3499 CC=$ac_cv_prog_CC
3500 if test -n "$CC"; then
3501   echo "$as_me:$LINENO: result: $CC" >&5
3502 echo "${ECHO_T}$CC" >&6
3503 else
3504   echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3506 fi
3507
3508 fi
3509 if test -z "$ac_cv_prog_CC"; then
3510   ac_ct_CC=$CC
3511   # Extract the first word of "cc", so it can be a program name with args.
3512 set dummy cc; ac_word=$2
3513 echo "$as_me:$LINENO: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   if test -n "$ac_ct_CC"; then
3519   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524   IFS=$as_save_IFS
3525   test -z "$as_dir" && as_dir=.
3526   for ac_exec_ext in '' $ac_executable_extensions; do
3527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528     ac_cv_prog_ac_ct_CC="cc"
3529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530     break 2
3531   fi
3532 done
3533 done
3534
3535 fi
3536 fi
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540 echo "${ECHO_T}$ac_ct_CC" >&6
3541 else
3542   echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3544 fi
3545
3546   CC=$ac_ct_CC
3547 else
3548   CC="$ac_cv_prog_CC"
3549 fi
3550
3551 fi
3552 if test -z "$CC"; then
3553   # Extract the first word of "cc", so it can be a program name with args.
3554 set dummy cc; ac_word=$2
3555 echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557 if test "${ac_cv_prog_CC+set}" = set; then
3558   echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560   if test -n "$CC"; then
3561   ac_cv_prog_CC="$CC" # Let the user override the test.
3562 else
3563   ac_prog_rejected=no
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567   IFS=$as_save_IFS
3568   test -z "$as_dir" && as_dir=.
3569   for ac_exec_ext in '' $ac_executable_extensions; do
3570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3572        ac_prog_rejected=yes
3573        continue
3574      fi
3575     ac_cv_prog_CC="cc"
3576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3577     break 2
3578   fi
3579 done
3580 done
3581
3582 if test $ac_prog_rejected = yes; then
3583   # We found a bogon in the path, so make sure we never use it.
3584   set dummy $ac_cv_prog_CC
3585   shift
3586   if test $# != 0; then
3587     # We chose a different compiler from the bogus one.
3588     # However, it has the same basename, so the bogon will be chosen
3589     # first if we set CC to just the basename; use the full file name.
3590     shift
3591     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3592   fi
3593 fi
3594 fi
3595 fi
3596 CC=$ac_cv_prog_CC
3597 if test -n "$CC"; then
3598   echo "$as_me:$LINENO: result: $CC" >&5
3599 echo "${ECHO_T}$CC" >&6
3600 else
3601   echo "$as_me:$LINENO: result: no" >&5
3602 echo "${ECHO_T}no" >&6
3603 fi
3604
3605 fi
3606 if test -z "$CC"; then
3607   if test -n "$ac_tool_prefix"; then
3608   for ac_prog in cl
3609   do
3610     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3612 echo "$as_me:$LINENO: checking for $ac_word" >&5
3613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3614 if test "${ac_cv_prog_CC+set}" = set; then
3615   echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617   if test -n "$CC"; then
3618   ac_cv_prog_CC="$CC" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623   IFS=$as_save_IFS
3624   test -z "$as_dir" && as_dir=.
3625   for ac_exec_ext in '' $ac_executable_extensions; do
3626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629     break 2
3630   fi
3631 done
3632 done
3633
3634 fi
3635 fi
3636 CC=$ac_cv_prog_CC
3637 if test -n "$CC"; then
3638   echo "$as_me:$LINENO: result: $CC" >&5
3639 echo "${ECHO_T}$CC" >&6
3640 else
3641   echo "$as_me:$LINENO: result: no" >&5
3642 echo "${ECHO_T}no" >&6
3643 fi
3644
3645     test -n "$CC" && break
3646   done
3647 fi
3648 if test -z "$CC"; then
3649   ac_ct_CC=$CC
3650   for ac_prog in cl
3651 do
3652   # Extract the first word of "$ac_prog", so it can be a program name with args.
3653 set dummy $ac_prog; ac_word=$2
3654 echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   if test -n "$ac_ct_CC"; then
3660   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665   IFS=$as_save_IFS
3666   test -z "$as_dir" && as_dir=.
3667   for ac_exec_ext in '' $ac_executable_extensions; do
3668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669     ac_cv_prog_ac_ct_CC="$ac_prog"
3670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671     break 2
3672   fi
3673 done
3674 done
3675
3676 fi
3677 fi
3678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3679 if test -n "$ac_ct_CC"; then
3680   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3681 echo "${ECHO_T}$ac_ct_CC" >&6
3682 else
3683   echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3685 fi
3686
3687   test -n "$ac_ct_CC" && break
3688 done
3689
3690   CC=$ac_ct_CC
3691 fi
3692
3693 fi
3694
3695
3696 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3697 See \`config.log' for more details." >&5
3698 echo "$as_me: error: no acceptable C compiler found in \$PATH
3699 See \`config.log' for more details." >&2;}
3700    { (exit 1); exit 1; }; }
3701
3702 # Provide some information about the compiler.
3703 echo "$as_me:$LINENO:" \
3704      "checking for C compiler version" >&5
3705 ac_compiler=`set X $ac_compile; echo $2`
3706 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3707   (eval $ac_compiler --version </dev/null >&5) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }
3711 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3712   (eval $ac_compiler -v </dev/null >&5) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }
3716 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3717   (eval $ac_compiler -V </dev/null >&5) 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); }
3721
3722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3725   echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727   cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h.  */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h.  */
3733
3734 int
3735 main ()
3736 {
3737 #ifndef __GNUC__
3738        choke me
3739 #endif
3740
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 rm -f conftest.$ac_objext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3747   (eval $ac_compile) 2>conftest.er1
3748   ac_status=$?
3749   grep -v '^ *+' conftest.er1 >conftest.err
3750   rm -f conftest.er1
3751   cat conftest.err >&5
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); } &&
3754          { ac_try='test -z "$ac_c_werror_flag"
3755                          || test ! -s conftest.err'
3756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757   (eval $ac_try) 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); }; } &&
3761          { ac_try='test -s conftest.$ac_objext'
3762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763   (eval $ac_try) 2>&5
3764   ac_status=$?
3765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); }; }; then
3767   ac_compiler_gnu=yes
3768 else
3769   echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772 ac_compiler_gnu=no
3773 fi
3774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3776
3777 fi
3778 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3780 GCC=`test $ac_compiler_gnu = yes && echo yes`
3781 ac_test_CFLAGS=${CFLAGS+set}
3782 ac_save_CFLAGS=$CFLAGS
3783 CFLAGS="-g"
3784 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3786 if test "${ac_cv_prog_cc_g+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h.  */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h.  */
3795
3796 int
3797 main ()
3798 {
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806   (eval $ac_compile) 2>conftest.er1
3807   ac_status=$?
3808   grep -v '^ *+' conftest.er1 >conftest.err
3809   rm -f conftest.er1
3810   cat conftest.err >&5
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); } &&
3813          { ac_try='test -z "$ac_c_werror_flag"
3814                          || test ! -s conftest.err'
3815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816   (eval $ac_try) 2>&5
3817   ac_status=$?
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); }; } &&
3820          { ac_try='test -s conftest.$ac_objext'
3821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822   (eval $ac_try) 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }; }; then
3826   ac_cv_prog_cc_g=yes
3827 else
3828   echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 ac_cv_prog_cc_g=no
3832 fi
3833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3834 fi
3835 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3836 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3837 if test "$ac_test_CFLAGS" = set; then
3838   CFLAGS=$ac_save_CFLAGS
3839 elif test $ac_cv_prog_cc_g = yes; then
3840   if test "$GCC" = yes; then
3841     CFLAGS="-g -O2"
3842   else
3843     CFLAGS="-g"
3844   fi
3845 else
3846   if test "$GCC" = yes; then
3847     CFLAGS="-O2"
3848   else
3849     CFLAGS=
3850   fi
3851 fi
3852 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3853 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3854 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   ac_cv_prog_cc_stdc=no
3858 ac_save_CC=$CC
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h.  */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h.  */
3865 #include <stdarg.h>
3866 #include <stdio.h>
3867 #include <sys/types.h>
3868 #include <sys/stat.h>
3869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3870 struct buf { int x; };
3871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3872 static char *e (p, i)
3873      char **p;
3874      int i;
3875 {
3876   return p[i];
3877 }
3878 static char *f (char * (*g) (char **, int), char **p, ...)
3879 {
3880   char *s;
3881   va_list v;
3882   va_start (v,p);
3883   s = g (p, va_arg (v,int));
3884   va_end (v);
3885   return s;
3886 }
3887
3888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3889    function prototypes and stuff, but not '\xHH' hex character constants.
3890    These don't provoke an error unfortunately, instead are silently treated
3891    as 'x'.  The following induces an error, until -std1 is added to get
3892    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3893    array size at least.  It's necessary to write '\x00'==0 to get something
3894    that's true only with -std1.  */
3895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3896
3897 int test (int i, double x);
3898 struct s1 {int (*f) (int a);};
3899 struct s2 {int (*f) (double a);};
3900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3901 int argc;
3902 char **argv;
3903 int
3904 main ()
3905 {
3906 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3907   ;
3908   return 0;
3909 }
3910 _ACEOF
3911 # Don't try gcc -ansi; that turns off useful extensions and
3912 # breaks some systems' header files.
3913 # AIX                   -qlanglvl=ansi
3914 # Ultrix and OSF/1      -std1
3915 # HP-UX 10.20 and later -Ae
3916 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3917 # SVR4                  -Xc -D__EXTENSIONS__
3918 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3919 do
3920   CC="$ac_save_CC $ac_arg"
3921   rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923   (eval $ac_compile) 2>conftest.er1
3924   ac_status=$?
3925   grep -v '^ *+' conftest.er1 >conftest.err
3926   rm -f conftest.er1
3927   cat conftest.err >&5
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); } &&
3930          { ac_try='test -z "$ac_c_werror_flag"
3931                          || test ! -s conftest.err'
3932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933   (eval $ac_try) 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); }; } &&
3937          { ac_try='test -s conftest.$ac_objext'
3938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939   (eval $ac_try) 2>&5
3940   ac_status=$?
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); }; }; then
3943   ac_cv_prog_cc_stdc=$ac_arg
3944 break
3945 else
3946   echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 fi
3950 rm -f conftest.err conftest.$ac_objext
3951 done
3952 rm -f conftest.$ac_ext conftest.$ac_objext
3953 CC=$ac_save_CC
3954
3955 fi
3956
3957 case "x$ac_cv_prog_cc_stdc" in
3958   x|xno)
3959     echo "$as_me:$LINENO: result: none needed" >&5
3960 echo "${ECHO_T}none needed" >&6 ;;
3961   *)
3962     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3963 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3964     CC="$CC $ac_cv_prog_cc_stdc" ;;
3965 esac
3966
3967 # Some people use a C++ compiler to compile C.  Since we use `exit',
3968 # in C++ we need to declare it.  In case someone uses the same compiler
3969 # for both compiling C and C++ we need to have the C++ compiler decide
3970 # the declaration of exit, since it's the most demanding environment.
3971 cat >conftest.$ac_ext <<_ACEOF
3972 #ifndef __cplusplus
3973   choke me
3974 #endif
3975 _ACEOF
3976 rm -f conftest.$ac_objext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978   (eval $ac_compile) 2>conftest.er1
3979   ac_status=$?
3980   grep -v '^ *+' conftest.er1 >conftest.err
3981   rm -f conftest.er1
3982   cat conftest.err >&5
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } &&
3985          { ac_try='test -z "$ac_c_werror_flag"
3986                          || test ! -s conftest.err'
3987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988   (eval $ac_try) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; } &&
3992          { ac_try='test -s conftest.$ac_objext'
3993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994   (eval $ac_try) 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; }; then
3998   for ac_declaration in \
3999    '' \
4000    'extern "C" void std::exit (int) throw (); using std::exit;' \
4001    'extern "C" void std::exit (int); using std::exit;' \
4002    'extern "C" void exit (int) throw ();' \
4003    'extern "C" void exit (int);' \
4004    'void exit (int);'
4005 do
4006   cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012 $ac_declaration
4013 #include <stdlib.h>
4014 int
4015 main ()
4016 {
4017 exit (42);
4018   ;
4019   return 0;
4020 }
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024   (eval $ac_compile) 2>conftest.er1
4025   ac_status=$?
4026   grep -v '^ *+' conftest.er1 >conftest.err
4027   rm -f conftest.er1
4028   cat conftest.err >&5
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); } &&
4031          { ac_try='test -z "$ac_c_werror_flag"
4032                          || test ! -s conftest.err'
4033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034   (eval $ac_try) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); }; } &&
4038          { ac_try='test -s conftest.$ac_objext'
4039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040   (eval $ac_try) 2>&5
4041   ac_status=$?
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); }; }; then
4044   :
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 continue
4050 fi
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052   cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058 $ac_declaration
4059 int
4060 main ()
4061 {
4062 exit (42);
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069   (eval $ac_compile) 2>conftest.er1
4070   ac_status=$?
4071   grep -v '^ *+' conftest.er1 >conftest.err
4072   rm -f conftest.er1
4073   cat conftest.err >&5
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } &&
4076          { ac_try='test -z "$ac_c_werror_flag"
4077                          || test ! -s conftest.err'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; } &&
4083          { ac_try='test -s conftest.$ac_objext'
4084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085   (eval $ac_try) 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; }; then
4089   break
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 fi
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096 done
4097 rm -f conftest*
4098 if test -n "$ac_declaration"; then
4099   echo '#ifdef __cplusplus' >>confdefs.h
4100   echo $ac_declaration      >>confdefs.h
4101   echo '#endif'             >>confdefs.h
4102 fi
4103
4104 else
4105   echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 fi
4109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_ext=c
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115
4116 ac_ext=c
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4122 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4123 # On Suns, sometimes $CPP names a directory.
4124 if test -n "$CPP" && test -d "$CPP"; then
4125   CPP=
4126 fi
4127 if test -z "$CPP"; then
4128   if test "${ac_cv_prog_CPP+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131       # Double quotes because CPP needs to be expanded
4132     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4133     do
4134       ac_preproc_ok=false
4135 for ac_c_preproc_warn_flag in '' yes
4136 do
4137   # Use a header file that comes with gcc, so configuring glibc
4138   # with a fresh cross-compiler works.
4139   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140   # <limits.h> exists even on freestanding compilers.
4141   # On the NeXT, cc -E runs the code through the compiler's parser,
4142   # not just through cpp. "Syntax error" is here to catch this case.
4143   cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #ifdef __STDC__
4150 # include <limits.h>
4151 #else
4152 # include <assert.h>
4153 #endif
4154                      Syntax error
4155 _ACEOF
4156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4158   ac_status=$?
4159   grep -v '^ *+' conftest.er1 >conftest.err
4160   rm -f conftest.er1
4161   cat conftest.err >&5
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } >/dev/null; then
4164   if test -s conftest.err; then
4165     ac_cpp_err=$ac_c_preproc_warn_flag
4166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4167   else
4168     ac_cpp_err=
4169   fi
4170 else
4171   ac_cpp_err=yes
4172 fi
4173 if test -z "$ac_cpp_err"; then
4174   :
4175 else
4176   echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179   # Broken: fails on valid input.
4180 continue
4181 fi
4182 rm -f conftest.err conftest.$ac_ext
4183
4184   # OK, works on sane cases.  Now check whether non-existent headers
4185   # can be detected and how.
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 #include <ac_nonexistent.h>
4193 _ACEOF
4194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4196   ac_status=$?
4197   grep -v '^ *+' conftest.er1 >conftest.err
4198   rm -f conftest.er1
4199   cat conftest.err >&5
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } >/dev/null; then
4202   if test -s conftest.err; then
4203     ac_cpp_err=$ac_c_preproc_warn_flag
4204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4205   else
4206     ac_cpp_err=
4207   fi
4208 else
4209   ac_cpp_err=yes
4210 fi
4211 if test -z "$ac_cpp_err"; then
4212   # Broken: success on invalid input.
4213 continue
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218   # Passes both tests.
4219 ac_preproc_ok=:
4220 break
4221 fi
4222 rm -f conftest.err conftest.$ac_ext
4223
4224 done
4225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4226 rm -f conftest.err conftest.$ac_ext
4227 if $ac_preproc_ok; then
4228   break
4229 fi
4230
4231     done
4232     ac_cv_prog_CPP=$CPP
4233
4234 fi
4235   CPP=$ac_cv_prog_CPP
4236 else
4237   ac_cv_prog_CPP=$CPP
4238 fi
4239 echo "$as_me:$LINENO: result: $CPP" >&5
4240 echo "${ECHO_T}$CPP" >&6
4241 ac_preproc_ok=false
4242 for ac_c_preproc_warn_flag in '' yes
4243 do
4244   # Use a header file that comes with gcc, so configuring glibc
4245   # with a fresh cross-compiler works.
4246   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4247   # <limits.h> exists even on freestanding compilers.
4248   # On the NeXT, cc -E runs the code through the compiler's parser,
4249   # not just through cpp. "Syntax error" is here to catch this case.
4250   cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 #ifdef __STDC__
4257 # include <limits.h>
4258 #else
4259 # include <assert.h>
4260 #endif
4261                      Syntax error
4262 _ACEOF
4263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4264   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4265   ac_status=$?
4266   grep -v '^ *+' conftest.er1 >conftest.err
4267   rm -f conftest.er1
4268   cat conftest.err >&5
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } >/dev/null; then
4271   if test -s conftest.err; then
4272     ac_cpp_err=$ac_c_preproc_warn_flag
4273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4274   else
4275     ac_cpp_err=
4276   fi
4277 else
4278   ac_cpp_err=yes
4279 fi
4280 if test -z "$ac_cpp_err"; then
4281   :
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286   # Broken: fails on valid input.
4287 continue
4288 fi
4289 rm -f conftest.err conftest.$ac_ext
4290
4291   # OK, works on sane cases.  Now check whether non-existent headers
4292   # can be detected and how.
4293   cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h.  */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h.  */
4299 #include <ac_nonexistent.h>
4300 _ACEOF
4301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4303   ac_status=$?
4304   grep -v '^ *+' conftest.er1 >conftest.err
4305   rm -f conftest.er1
4306   cat conftest.err >&5
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); } >/dev/null; then
4309   if test -s conftest.err; then
4310     ac_cpp_err=$ac_c_preproc_warn_flag
4311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4312   else
4313     ac_cpp_err=
4314   fi
4315 else
4316   ac_cpp_err=yes
4317 fi
4318 if test -z "$ac_cpp_err"; then
4319   # Broken: success on invalid input.
4320 continue
4321 else
4322   echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325   # Passes both tests.
4326 ac_preproc_ok=:
4327 break
4328 fi
4329 rm -f conftest.err conftest.$ac_ext
4330
4331 done
4332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4333 rm -f conftest.err conftest.$ac_ext
4334 if $ac_preproc_ok; then
4335   :
4336 else
4337   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4338 See \`config.log' for more details." >&5
4339 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4340 See \`config.log' for more details." >&2;}
4341    { (exit 1); exit 1; }; }
4342 fi
4343
4344 ac_ext=c
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349
4350 ac_aux_dir=
4351 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4352   if test -f $ac_dir/install-sh; then
4353     ac_aux_dir=$ac_dir
4354     ac_install_sh="$ac_aux_dir/install-sh -c"
4355     break
4356   elif test -f $ac_dir/install.sh; then
4357     ac_aux_dir=$ac_dir
4358     ac_install_sh="$ac_aux_dir/install.sh -c"
4359     break
4360   elif test -f $ac_dir/shtool; then
4361     ac_aux_dir=$ac_dir
4362     ac_install_sh="$ac_aux_dir/shtool install -c"
4363     break
4364   fi
4365 done
4366 if test -z "$ac_aux_dir"; then
4367   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4368 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4369    { (exit 1); exit 1; }; }
4370 fi
4371 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4372 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4373 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4374
4375 # Find a good install program.  We prefer a C program (faster),
4376 # so one script is as good as another.  But avoid the broken or
4377 # incompatible versions:
4378 # SysV /etc/install, /usr/sbin/install
4379 # SunOS /usr/etc/install
4380 # IRIX /sbin/install
4381 # AIX /bin/install
4382 # AmigaOS /C/install, which installs bootblocks on floppy discs
4383 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4384 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4385 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4386 # OS/2's system install, which has a completely different semantic
4387 # ./install, which can be erroneously created by make from ./install.sh.
4388 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4389 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4390 if test -z "$INSTALL"; then
4391 if test "${ac_cv_path_install+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399   # Account for people who put trailing slashes in PATH elements.
4400 case $as_dir/ in
4401   ./ | .// | /cC/* | \
4402   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4403   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4404   /usr/ucb/* ) ;;
4405   *)
4406     # OSF1 and SCO ODT 3.0 have their own names for install.
4407     # Don't use installbsd from OSF since it installs stuff as root
4408     # by default.
4409     for ac_prog in ginstall scoinst install; do
4410       for ac_exec_ext in '' $ac_executable_extensions; do
4411         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4412           if test $ac_prog = install &&
4413             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4414             # AIX install.  It has an incompatible calling convention.
4415             :
4416           elif test $ac_prog = install &&
4417             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4418             # program-specific install script used by HP pwplus--don't use.
4419             :
4420           else
4421             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4422             break 3
4423           fi
4424         fi
4425       done
4426     done
4427     ;;
4428 esac
4429 done
4430
4431
4432 fi
4433   if test "${ac_cv_path_install+set}" = set; then
4434     INSTALL=$ac_cv_path_install
4435   else
4436     # As a last resort, use the slow shell script.  We don't cache a
4437     # path for INSTALL within a source directory, because that will
4438     # break other packages using the cache if that directory is
4439     # removed, or if the path is relative.
4440     INSTALL=$ac_install_sh
4441   fi
4442 fi
4443 echo "$as_me:$LINENO: result: $INSTALL" >&5
4444 echo "${ECHO_T}$INSTALL" >&6
4445
4446 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4447 # It thinks the first close brace ends the variable substitution.
4448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4449
4450 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4451
4452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4453
4454 if test -n "$ac_tool_prefix"; then
4455   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4456 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_prog_RANLIB+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   if test -n "$RANLIB"; then
4463   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468   IFS=$as_save_IFS
4469   test -z "$as_dir" && as_dir=.
4470   for ac_exec_ext in '' $ac_executable_extensions; do
4471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474     break 2
4475   fi
4476 done
4477 done
4478
4479 fi
4480 fi
4481 RANLIB=$ac_cv_prog_RANLIB
4482 if test -n "$RANLIB"; then
4483   echo "$as_me:$LINENO: result: $RANLIB" >&5
4484 echo "${ECHO_T}$RANLIB" >&6
4485 else
4486   echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4488 fi
4489
4490 fi
4491 if test -z "$ac_cv_prog_RANLIB"; then
4492   ac_ct_RANLIB=$RANLIB
4493   # Extract the first word of "ranlib", so it can be a program name with args.
4494 set dummy ranlib; ac_word=$2
4495 echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   if test -n "$ac_ct_RANLIB"; then
4501   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508   for ac_exec_ext in '' $ac_executable_extensions; do
4509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510     ac_cv_prog_ac_ct_RANLIB="ranlib"
4511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512     break 2
4513   fi
4514 done
4515 done
4516
4517   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4518 fi
4519 fi
4520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4521 if test -n "$ac_ct_RANLIB"; then
4522   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4523 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4524 else
4525   echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6
4527 fi
4528
4529   RANLIB=$ac_ct_RANLIB
4530 else
4531   RANLIB="$ac_cv_prog_RANLIB"
4532 fi
4533
4534 # Extract the first word of "autoconf", so it can be a program name with args.
4535 set dummy autoconf; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   if test -n "$AUTOCONF"; then
4542   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549   for ac_exec_ext in '' $ac_executable_extensions; do
4550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551     ac_cv_prog_AUTOCONF="autoconf"
4552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556 done
4557
4558   test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
4559 fi
4560 fi
4561 AUTOCONF=$ac_cv_prog_AUTOCONF
4562 if test -n "$AUTOCONF"; then
4563   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
4564 echo "${ECHO_T}$AUTOCONF" >&6
4565 else
4566   echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4568 fi
4569
4570 # Extract the first word of "strip", so it can be a program name with args.
4571 set dummy strip; ac_word=$2
4572 echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574 if test "${ac_cv_prog_STRIP+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   if test -n "$STRIP"; then
4578   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587     ac_cv_prog_STRIP="strip"
4588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589     break 2
4590   fi
4591 done
4592 done
4593
4594   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4595 fi
4596 fi
4597 STRIP=$ac_cv_prog_STRIP
4598 if test -n "$STRIP"; then
4599   echo "$as_me:$LINENO: result: $STRIP" >&5
4600 echo "${ECHO_T}$STRIP" >&6
4601 else
4602   echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4604 fi
4605
4606 # Extract the first word of "as", so it can be a program name with args.
4607 set dummy as; ac_word=$2
4608 echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4610 if test "${ac_cv_prog_AS+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   if test -n "$AS"; then
4614   ac_cv_prog_AS="$AS" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621   for ac_exec_ext in '' $ac_executable_extensions; do
4622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623     ac_cv_prog_AS="as"
4624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625     break 2
4626   fi
4627 done
4628 done
4629
4630   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
4631 fi
4632 fi
4633 AS=$ac_cv_prog_AS
4634 if test -n "$AS"; then
4635   echo "$as_me:$LINENO: result: $AS" >&5
4636 echo "${ECHO_T}$AS" >&6
4637 else
4638   echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 fi
4641
4642 # Extract the first word of "cp", so it can be a program name with args.
4643 set dummy cp; ac_word=$2
4644 echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4646 if test "${ac_cv_prog_CP+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   if test -n "$CP"; then
4650   ac_cv_prog_CP="$CP" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_exec_ext in '' $ac_executable_extensions; do
4658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659     ac_cv_prog_CP="cp"
4660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664 done
4665
4666   test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
4667 fi
4668 fi
4669 CP=$ac_cv_prog_CP
4670 if test -n "$CP"; then
4671   echo "$as_me:$LINENO: result: $CP" >&5
4672 echo "${ECHO_T}$CP" >&6
4673 else
4674   echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4676 fi
4677
4678
4679 ac_ext=c
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684
4685
4686
4687 # Checking for header files.
4688 # ===========================================================================
4689 socket_type=unknown
4690
4691 for ac_header in sys/socket.h
4692 do
4693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4695   echo "$as_me:$LINENO: checking for $ac_header" >&5
4696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 fi
4700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4702 else
4703   # Is the header compilable?
4704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h.  */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h.  */
4712 $ac_includes_default
4713 #include <$ac_header>
4714 _ACEOF
4715 rm -f conftest.$ac_objext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717   (eval $ac_compile) 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -z "$ac_c_werror_flag"
4725                          || test ! -s conftest.err'
4726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727   (eval $ac_try) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }; } &&
4731          { ac_try='test -s conftest.$ac_objext'
4732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733   (eval $ac_try) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; }; then
4737   ac_header_compiler=yes
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742 ac_header_compiler=no
4743 fi
4744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4746 echo "${ECHO_T}$ac_header_compiler" >&6
4747
4748 # Is the header present?
4749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4751 cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h.  */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h.  */
4757 #include <$ac_header>
4758 _ACEOF
4759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4760   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4761   ac_status=$?
4762   grep -v '^ *+' conftest.er1 >conftest.err
4763   rm -f conftest.er1
4764   cat conftest.err >&5
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } >/dev/null; then
4767   if test -s conftest.err; then
4768     ac_cpp_err=$ac_c_preproc_warn_flag
4769     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4770   else
4771     ac_cpp_err=
4772   fi
4773 else
4774   ac_cpp_err=yes
4775 fi
4776 if test -z "$ac_cpp_err"; then
4777   ac_header_preproc=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782   ac_header_preproc=no
4783 fi
4784 rm -f conftest.err conftest.$ac_ext
4785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4786 echo "${ECHO_T}$ac_header_preproc" >&6
4787
4788 # So?  What about this header?
4789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4790   yes:no: )
4791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4795     ac_header_preproc=yes
4796     ;;
4797   no:yes:* )
4798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4800     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4801 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4802     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4804     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4805 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4808     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4810     (
4811       cat <<\_ASBOX
4812 ## ------------------------------------------ ##
4813 ## Report this to the AC_PACKAGE_NAME lists.  ##
4814 ## ------------------------------------------ ##
4815 _ASBOX
4816     ) |
4817       sed "s/^/$as_me: WARNING:     /" >&2
4818     ;;
4819 esac
4820 echo "$as_me:$LINENO: checking for $ac_header" >&5
4821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   eval "$as_ac_Header=\$ac_header_preproc"
4826 fi
4827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4829
4830 fi
4831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4832   cat >>confdefs.h <<_ACEOF
4833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4834 _ACEOF
4835  socket_type=sys_socket_h
4836 fi
4837
4838 done
4839
4840 if test $socket_type = unknown; then
4841
4842 for ac_header in winsock2.h
4843 do
4844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4846   echo "$as_me:$LINENO: checking for $ac_header" >&5
4847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4849   echo $ECHO_N "(cached) $ECHO_C" >&6
4850 fi
4851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4853 else
4854   # Is the header compilable?
4855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4857 cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863 $ac_includes_default
4864 #include <$ac_header>
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868   (eval $ac_compile) 2>conftest.er1
4869   ac_status=$?
4870   grep -v '^ *+' conftest.er1 >conftest.err
4871   rm -f conftest.er1
4872   cat conftest.err >&5
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } &&
4875          { ac_try='test -z "$ac_c_werror_flag"
4876                          || test ! -s conftest.err'
4877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878   (eval $ac_try) 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); }; } &&
4882          { ac_try='test -s conftest.$ac_objext'
4883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884   (eval $ac_try) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; }; then
4888   ac_header_compiler=yes
4889 else
4890   echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 ac_header_compiler=no
4894 fi
4895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4897 echo "${ECHO_T}$ac_header_compiler" >&6
4898
4899 # Is the header present?
4900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h.  */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h.  */
4908 #include <$ac_header>
4909 _ACEOF
4910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4912   ac_status=$?
4913   grep -v '^ *+' conftest.er1 >conftest.err
4914   rm -f conftest.er1
4915   cat conftest.err >&5
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); } >/dev/null; then
4918   if test -s conftest.err; then
4919     ac_cpp_err=$ac_c_preproc_warn_flag
4920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4921   else
4922     ac_cpp_err=
4923   fi
4924 else
4925   ac_cpp_err=yes
4926 fi
4927 if test -z "$ac_cpp_err"; then
4928   ac_header_preproc=yes
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933   ac_header_preproc=no
4934 fi
4935 rm -f conftest.err conftest.$ac_ext
4936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4937 echo "${ECHO_T}$ac_header_preproc" >&6
4938
4939 # So?  What about this header?
4940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4941   yes:no: )
4942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4946     ac_header_preproc=yes
4947     ;;
4948   no:yes:* )
4949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4951     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4952 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4953     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4955     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4956 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4959     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4961     (
4962       cat <<\_ASBOX
4963 ## ------------------------------------------ ##
4964 ## Report this to the AC_PACKAGE_NAME lists.  ##
4965 ## ------------------------------------------ ##
4966 _ASBOX
4967     ) |
4968       sed "s/^/$as_me: WARNING:     /" >&2
4969     ;;
4970 esac
4971 echo "$as_me:$LINENO: checking for $ac_header" >&5
4972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4974   echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976   eval "$as_ac_Header=\$ac_header_preproc"
4977 fi
4978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4980
4981 fi
4982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4983   cat >>confdefs.h <<_ACEOF
4984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4985 _ACEOF
4986  socket_type=winsock2_h
4987 fi
4988
4989 done
4990
4991 fi
4992
4993
4994 # Checking for functions/libs
4995 # ===========================================================================
4996 if test $socket_type = winsock2_h; then
4997   LIBS="-lws2_32 $LIBS"
4998 else
4999
5000 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5001 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5002 if test "${ac_cv_lib_socket_socket+set}" = set; then
5003   echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005   ac_check_lib_save_LIBS=$LIBS
5006 LIBS="-lsocket  $LIBS"
5007 cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013
5014 /* Override any gcc2 internal prototype to avoid an error.  */
5015 #ifdef __cplusplus
5016 extern "C"
5017 #endif
5018 /* We use char because int might match the return type of a gcc2
5019    builtin and then its argument prototype would still apply.  */
5020 char socket ();
5021 int
5022 main ()
5023 {
5024 socket ();
5025   ;
5026   return 0;
5027 }
5028 _ACEOF
5029 rm -f conftest.$ac_objext conftest$ac_exeext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031   (eval $ac_link) 2>conftest.er1
5032   ac_status=$?
5033   grep -v '^ *+' conftest.er1 >conftest.err
5034   rm -f conftest.er1
5035   cat conftest.err >&5
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); } &&
5038          { ac_try='test -z "$ac_c_werror_flag"
5039                          || test ! -s conftest.err'
5040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041   (eval $ac_try) 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; } &&
5045          { ac_try='test -s conftest$ac_exeext'
5046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047   (eval $ac_try) 2>&5
5048   ac_status=$?
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); }; }; then
5051   ac_cv_lib_socket_socket=yes
5052 else
5053   echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5055
5056 ac_cv_lib_socket_socket=no
5057 fi
5058 rm -f conftest.err conftest.$ac_objext \
5059       conftest$ac_exeext conftest.$ac_ext
5060 LIBS=$ac_check_lib_save_LIBS
5061 fi
5062 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5063 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5064 if test $ac_cv_lib_socket_socket = yes; then
5065   cat >>confdefs.h <<_ACEOF
5066 #define HAVE_LIBSOCKET 1
5067 _ACEOF
5068
5069   LIBS="-lsocket $LIBS"
5070
5071 fi
5072
5073
5074 echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
5075 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
5076 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
5077   echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079   ac_check_lib_save_LIBS=$LIBS
5080 LIBS="-lnsl  $LIBS"
5081 cat >conftest.$ac_ext <<_ACEOF
5082 /* confdefs.h.  */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h.  */
5087
5088 /* Override any gcc2 internal prototype to avoid an error.  */
5089 #ifdef __cplusplus
5090 extern "C"
5091 #endif
5092 /* We use char because int might match the return type of a gcc2
5093    builtin and then its argument prototype would still apply.  */
5094 char xdr_short ();
5095 int
5096 main ()
5097 {
5098 xdr_short ();
5099   ;
5100   return 0;
5101 }
5102 _ACEOF
5103 rm -f conftest.$ac_objext conftest$ac_exeext
5104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5105   (eval $ac_link) 2>conftest.er1
5106   ac_status=$?
5107   grep -v '^ *+' conftest.er1 >conftest.err
5108   rm -f conftest.er1
5109   cat conftest.err >&5
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); } &&
5112          { ac_try='test -z "$ac_c_werror_flag"
5113                          || test ! -s conftest.err'
5114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115   (eval $ac_try) 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }; } &&
5119          { ac_try='test -s conftest$ac_exeext'
5120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121   (eval $ac_try) 2>&5
5122   ac_status=$?
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); }; }; then
5125   ac_cv_lib_nsl_xdr_short=yes
5126 else
5127   echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5129
5130 ac_cv_lib_nsl_xdr_short=no
5131 fi
5132 rm -f conftest.err conftest.$ac_objext \
5133       conftest$ac_exeext conftest.$ac_ext
5134 LIBS=$ac_check_lib_save_LIBS
5135 fi
5136 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
5137 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
5138 if test $ac_cv_lib_nsl_xdr_short = yes; then
5139   cat >>confdefs.h <<_ACEOF
5140 #define HAVE_LIBNSL 1
5141 _ACEOF
5142
5143   LIBS="-lnsl $LIBS"
5144
5145 fi
5146
5147 fi
5148
5149
5150 # Macro definitions
5151 # ===========================================================================
5152
5153 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
5154 # supports option specified as the 2nd parameter
5155 # For example: DD_CPORT(CXX, fPIC)
5156
5157
5158
5159 # This macro expands DIR and assigns it to RET.
5160 # If DIR is NONE, then it's replaced by DEFAULT.
5161 #
5162 # Based on AC_DEFINE_DIR
5163 #
5164 # Examples:
5165 #
5166 #  adl_EXPAND(prefix, "/usr/local", expanded_prefix)
5167
5168
5169
5170 # adl_NORMALIZE_PATH
5171 #
5172 #  - empty paths are changed to '.'
5173 #  - trailing slashes are removed
5174 #  - repeated slashes are squeezed except a leading doubled slash '//'
5175 #    (which might indicate a networked disk on some OS).
5176 #
5177 #
5178 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
5179 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
5180 # are turned into backslashes, otherwise they are all turned into slashes.
5181 #
5182 # This makes processing of DOS filenames quite easier, because you can turn a
5183 # filename to the Unix notation, make your processing, and turn it back to
5184 # original notation.
5185
5186
5187
5188
5189
5190
5191
5192 # Checking characteristics of compilers and other programs
5193 # ===========================================================================
5194 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
5195 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
5196 if test "${sdcc_cv_MM+set}" = set; then
5197   echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199   echo "#include <stdio.h>" >_test_.c
5200 echo "" >>_test_.c
5201 $CPP -v -MM _test_.c 1>&5 2>&5
5202 if test "$?" = "0"; then
5203   sdcc_cv_MM="-MM"
5204 else
5205   sdcc_cv_MM="-M"
5206 fi
5207 rm -f _test_.*
5208 fi
5209 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
5210 echo "${ECHO_T}$sdcc_cv_MM" >&6
5211 M_OR_MM=$sdcc_cv_MM
5212
5213
5214 # This is the first time when CFLAGS are set/modified!!
5215
5216 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
5217 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
5218 if test "${sdcc_cv_CCggdb+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   cat >_test_.c <<EOF
5222 #include <stdio.h>
5223 void main(void) {}
5224 EOF
5225 $CC -v -ggdb -c _test_.c 1>&5 2>&5
5226 if test "$?" = "0"; then
5227   sdcc_cv_CCggdb="yes"
5228 else
5229   sdcc_cv_CCggdb="no"
5230 fi
5231 rm -f _test_.* a.out
5232 fi
5233 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
5234 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
5235
5236 if test "$sdcc_cv_CCggdb" = "yes"; then
5237   CFLAGS="-ggdb ${CFLAGS}"
5238 fi
5239
5240
5241 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
5242 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
5243 if test "${sdcc_cv_CCpipe+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   cat >_test_.c <<EOF
5247 #include <stdio.h>
5248 void main(void) {}
5249 EOF
5250 $CC -v -pipe -c _test_.c 1>&5 2>&5
5251 if test "$?" = "0"; then
5252   sdcc_cv_CCpipe="yes"
5253 else
5254   sdcc_cv_CCpipe="no"
5255 fi
5256 rm -f _test_.* a.out
5257 fi
5258 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
5259 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
5260
5261 if test "$sdcc_cv_CCpipe" = "yes"; then
5262   CFLAGS="-pipe $CFLAGS"
5263 fi
5264
5265
5266 # Set standard installation paths
5267 # ===========================================================================
5268
5269 # In the Makefiles we need paths with '/' as directory separator, even if
5270 # crosscompiling for Win32.
5271 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
5272 # The variables in the Makefiles are replaced by AC_SUBST()
5273 #
5274 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
5275 #
5276 # The macros are expanded for the header.
5277 # The variables in the header are replaced by AC_*DEFINE*()
5278 # sdccconf_h_dir_separator contains a backslash.
5279
5280 if test "x${sdccconf_h_dir_separator}" = "x"; then
5281     sdccconf_h_dir_separator="/"
5282 fi
5283
5284 # Makefiles
5285 ###########
5286
5287 # lib_dir_suffix:
5288 # *nix default: "sdcc/lib"
5289
5290 if test "${lib_dir_suffix}" = ""; then
5291     lib_dir_suffix="sdcc/lib"
5292 fi
5293
5294
5295
5296
5297 # sdccconf.h
5298 ############
5299
5300 cat >>confdefs.h <<_ACEOF
5301 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
5302 _ACEOF
5303
5304
5305 # datadir:
5306 # default: "${prefix}/share"
5307
5308   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5309   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5310   ac_expand=$datadir
5311   test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5312   ac_expand=`eval echo $ac_expand`
5313   expanded_datadir=`eval echo $ac_expand`
5314
5315
5316   ac_ndu=$expanded_datadir
5317   case ":$ac_ndu:" in
5318   ::) ac_ndu='.' ;;
5319   :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5320   :*:) ;;
5321 esac
5322 case $sdccconf_h_dir_separator in
5323
5324     *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5325                                   s,^[\\/],\\\\\\\\,'` ;;
5326
5327  *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5328 esac
5329   cat >>confdefs.h <<_ACEOF
5330 #define DATADIR "${ac_ndu}"
5331 _ACEOF
5332
5333
5334
5335 # lib suffix
5336 norm_lib_dir_suffix=${lib_dir_suffix}
5337 case ":$norm_lib_dir_suffix:" in
5338   ::) norm_lib_dir_suffix='.' ;;
5339   :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5340   :*:) ;;
5341 esac
5342 case $sdccconf_h_dir_separator in
5343
5344     *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5345                                   s,^[\\/],\\\\\\\\,'` ;;
5346
5347  *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5348 esac
5349 cat >>confdefs.h <<_ACEOF
5350 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
5351 _ACEOF
5352
5353
5354
5355 # Generating output files
5356 # ===========================================================================
5357           ac_config_files="$ac_config_files Makefile"
5358
5359 cat >confcache <<\_ACEOF
5360 # This file is a shell script that caches the results of configure
5361 # tests run on this system so they can be shared between configure
5362 # scripts and configure runs, see configure's option --config-cache.
5363 # It is not useful on other systems.  If it contains results you don't
5364 # want to keep, you may remove or edit it.
5365 #
5366 # config.status only pays attention to the cache file if you give it
5367 # the --recheck option to rerun configure.
5368 #
5369 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5370 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5371 # following values.
5372
5373 _ACEOF
5374
5375 # The following way of writing the cache mishandles newlines in values,
5376 # but we know of no workaround that is simple, portable, and efficient.
5377 # So, don't put newlines in cache variables' values.
5378 # Ultrix sh set writes to stderr and can't be redirected directly,
5379 # and sets the high bit in the cache file unless we assign to the vars.
5380 {
5381   (set) 2>&1 |
5382     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5383     *ac_space=\ *)
5384       # `set' does not quote correctly, so add quotes (double-quote
5385       # substitution turns \\\\ into \\, and sed turns \\ into \).
5386       sed -n \
5387         "s/'/'\\\\''/g;
5388           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5389       ;;
5390     *)
5391       # `set' quotes correctly as required by POSIX, so do not add quotes.
5392       sed -n \
5393         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5394       ;;
5395     esac;
5396 } |
5397   sed '
5398      t clear
5399      : clear
5400      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5401      t end
5402      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5403      : end' >>confcache
5404 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5405   if test -w $cache_file; then
5406     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5407     cat confcache >$cache_file
5408   else
5409     echo "not updating unwritable cache $cache_file"
5410   fi
5411 fi
5412 rm -f confcache
5413
5414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5415 # Let make expand exec_prefix.
5416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5417
5418 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5419 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5420 # trailing colons and then remove the whole line if VPATH becomes empty
5421 # (actually we leave an empty line to preserve line numbers).
5422 if test "x$srcdir" = x.; then
5423   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5424 s/:*\$(srcdir):*/:/;
5425 s/:*\${srcdir}:*/:/;
5426 s/:*@srcdir@:*/:/;
5427 s/^\([^=]*=[     ]*\):*/\1/;
5428 s/:*$//;
5429 s/^[^=]*=[       ]*$//;
5430 }'
5431 fi
5432
5433 DEFS=-DHAVE_CONFIG_H
5434
5435 ac_libobjs=
5436 ac_ltlibobjs=
5437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5438   # 1. Remove the extension, and $U if already installed.
5439   ac_i=`echo "$ac_i" |
5440          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5441   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5442   #    will be set to the directory where LIBOBJS objects are built.
5443   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5444   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5445 done
5446 LIBOBJS=$ac_libobjs
5447
5448 LTLIBOBJS=$ac_ltlibobjs
5449
5450
5451
5452 : ${CONFIG_STATUS=./config.status}
5453 ac_clean_files_save=$ac_clean_files
5454 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5455 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5456 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5457 cat >$CONFIG_STATUS <<_ACEOF
5458 #! $SHELL
5459 # Generated by $as_me.
5460 # Run this file to recreate the current configuration.
5461 # Compiler output produced by configure, useful for debugging
5462 # configure, is in config.log if it exists.
5463
5464 debug=false
5465 ac_cs_recheck=false
5466 ac_cs_silent=false
5467 SHELL=\${CONFIG_SHELL-$SHELL}
5468 _ACEOF
5469
5470 cat >>$CONFIG_STATUS <<\_ACEOF
5471 ## --------------------- ##
5472 ## M4sh Initialization.  ##
5473 ## --------------------- ##
5474
5475 # Be Bourne compatible
5476 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5477   emulate sh
5478   NULLCMD=:
5479   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5480   # is contrary to our usage.  Disable this feature.
5481   alias -g '${1+"$@"}'='"$@"'
5482 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5483   set -o posix
5484 fi
5485 DUALCASE=1; export DUALCASE # for MKS sh
5486
5487 # Support unset when possible.
5488 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5489   as_unset=unset
5490 else
5491   as_unset=false
5492 fi
5493
5494
5495 # Work around bugs in pre-3.0 UWIN ksh.
5496 $as_unset ENV MAIL MAILPATH
5497 PS1='$ '
5498 PS2='> '
5499 PS4='+ '
5500
5501 # NLS nuisances.
5502 for as_var in \
5503   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5504   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5505   LC_TELEPHONE LC_TIME
5506 do
5507   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5508     eval $as_var=C; export $as_var
5509   else
5510     $as_unset $as_var
5511   fi
5512 done
5513
5514 # Required to use basename.
5515 if expr a : '\(a\)' >/dev/null 2>&1; then
5516   as_expr=expr
5517 else
5518   as_expr=false
5519 fi
5520
5521 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5522   as_basename=basename
5523 else
5524   as_basename=false
5525 fi
5526
5527
5528 # Name of the executable.
5529 as_me=`$as_basename "$0" ||
5530 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5531          X"$0" : 'X\(//\)$' \| \
5532          X"$0" : 'X\(/\)$' \| \
5533          .     : '\(.\)' 2>/dev/null ||
5534 echo X/"$0" |
5535     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5536           /^X\/\(\/\/\)$/{ s//\1/; q; }
5537           /^X\/\(\/\).*/{ s//\1/; q; }
5538           s/.*/./; q'`
5539
5540
5541 # PATH needs CR, and LINENO needs CR and PATH.
5542 # Avoid depending upon Character Ranges.
5543 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5544 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5545 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5546 as_cr_digits='0123456789'
5547 as_cr_alnum=$as_cr_Letters$as_cr_digits
5548
5549 # The user is always right.
5550 if test "${PATH_SEPARATOR+set}" != set; then
5551   echo "#! /bin/sh" >conf$$.sh
5552   echo  "exit 0"   >>conf$$.sh
5553   chmod +x conf$$.sh
5554   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5555     PATH_SEPARATOR=';'
5556   else
5557     PATH_SEPARATOR=:
5558   fi
5559   rm -f conf$$.sh
5560 fi
5561
5562
5563   as_lineno_1=$LINENO
5564   as_lineno_2=$LINENO
5565   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5566   test "x$as_lineno_1" != "x$as_lineno_2" &&
5567   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5568   # Find who we are.  Look in the path if we contain no path at all
5569   # relative or not.
5570   case $0 in
5571     *[\\/]* ) as_myself=$0 ;;
5572     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5578 done
5579
5580        ;;
5581   esac
5582   # We did not find ourselves, most probably we were run as `sh COMMAND'
5583   # in which case we are not to be found in the path.
5584   if test "x$as_myself" = x; then
5585     as_myself=$0
5586   fi
5587   if test ! -f "$as_myself"; then
5588     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5589 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5590    { (exit 1); exit 1; }; }
5591   fi
5592   case $CONFIG_SHELL in
5593   '')
5594     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5596 do
5597   IFS=$as_save_IFS
5598   test -z "$as_dir" && as_dir=.
5599   for as_base in sh bash ksh sh5; do
5600          case $as_dir in
5601          /*)
5602            if ("$as_dir/$as_base" -c '
5603   as_lineno_1=$LINENO
5604   as_lineno_2=$LINENO
5605   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5606   test "x$as_lineno_1" != "x$as_lineno_2" &&
5607   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5608              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5609              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5610              CONFIG_SHELL=$as_dir/$as_base
5611              export CONFIG_SHELL
5612              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5613            fi;;
5614          esac
5615        done
5616 done
5617 ;;
5618   esac
5619
5620   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5621   # uniformly replaced by the line number.  The first 'sed' inserts a
5622   # line-number line before each line; the second 'sed' does the real
5623   # work.  The second script uses 'N' to pair each line-number line
5624   # with the numbered line, and appends trailing '-' during
5625   # substitution so that $LINENO is not a special case at line end.
5626   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5627   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5628   sed '=' <$as_myself |
5629     sed '
5630       N
5631       s,$,-,
5632       : loop
5633       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5634       t loop
5635       s,-$,,
5636       s,^['$as_cr_digits']*\n,,
5637     ' >$as_me.lineno &&
5638   chmod +x $as_me.lineno ||
5639     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5640 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5641    { (exit 1); exit 1; }; }
5642
5643   # Don't try to exec as it changes $[0], causing all sort of problems
5644   # (the dirname of $[0] is not the place where we might find the
5645   # original and so on.  Autoconf is especially sensible to this).
5646   . ./$as_me.lineno
5647   # Exit status is that of the last command.
5648   exit
5649 }
5650
5651
5652 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5653   *c*,-n*) ECHO_N= ECHO_C='
5654 ' ECHO_T='      ' ;;
5655   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5656   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5657 esac
5658
5659 if expr a : '\(a\)' >/dev/null 2>&1; then
5660   as_expr=expr
5661 else
5662   as_expr=false
5663 fi
5664
5665 rm -f conf$$ conf$$.exe conf$$.file
5666 echo >conf$$.file
5667 if ln -s conf$$.file conf$$ 2>/dev/null; then
5668   # We could just check for DJGPP; but this test a) works b) is more generic
5669   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5670   if test -f conf$$.exe; then
5671     # Don't use ln at all; we don't have any links
5672     as_ln_s='cp -p'
5673   else
5674     as_ln_s='ln -s'
5675   fi
5676 elif ln conf$$.file conf$$ 2>/dev/null; then
5677   as_ln_s=ln
5678 else
5679   as_ln_s='cp -p'
5680 fi
5681 rm -f conf$$ conf$$.exe conf$$.file
5682
5683 if mkdir -p . 2>/dev/null; then
5684   as_mkdir_p=:
5685 else
5686   test -d ./-p && rmdir ./-p
5687   as_mkdir_p=false
5688 fi
5689
5690 as_executable_p="test -f"
5691
5692 # Sed expression to map a string onto a valid CPP name.
5693 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5694
5695 # Sed expression to map a string onto a valid variable name.
5696 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5697
5698
5699 # IFS
5700 # We need space, tab and new line, in precisely that order.
5701 as_nl='
5702 '
5703 IFS="   $as_nl"
5704
5705 # CDPATH.
5706 $as_unset CDPATH
5707
5708 exec 6>&1
5709
5710 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5711 # report actual input values of CONFIG_FILES etc. instead of their
5712 # values after options handling.  Logging --version etc. is OK.
5713 exec 5>>config.log
5714 {
5715   echo
5716   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5717 ## Running $as_me. ##
5718 _ASBOX
5719 } >&5
5720 cat >&5 <<_CSEOF
5721
5722 This file was extended by $as_me, which was
5723 generated by GNU Autoconf 2.59.  Invocation command line was
5724
5725   CONFIG_FILES    = $CONFIG_FILES
5726   CONFIG_HEADERS  = $CONFIG_HEADERS
5727   CONFIG_LINKS    = $CONFIG_LINKS
5728   CONFIG_COMMANDS = $CONFIG_COMMANDS
5729   $ $0 $@
5730
5731 _CSEOF
5732 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5733 echo >&5
5734 _ACEOF
5735
5736 # Files that config.status was made for.
5737 if test -n "$ac_config_files"; then
5738   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5739 fi
5740
5741 if test -n "$ac_config_headers"; then
5742   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5743 fi
5744
5745 if test -n "$ac_config_links"; then
5746   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5747 fi
5748
5749 if test -n "$ac_config_commands"; then
5750   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5751 fi
5752
5753 cat >>$CONFIG_STATUS <<\_ACEOF
5754
5755 ac_cs_usage="\
5756 \`$as_me' instantiates files from templates according to the
5757 current configuration.
5758
5759 Usage: $0 [OPTIONS] [FILE]...
5760
5761   -h, --help       print this help, then exit
5762   -V, --version    print version number, then exit
5763   -q, --quiet      do not print progress messages
5764   -d, --debug      don't remove temporary files
5765       --recheck    update $as_me by reconfiguring in the same conditions
5766   --file=FILE[:TEMPLATE]
5767                    instantiate the configuration file FILE
5768   --header=FILE[:TEMPLATE]
5769                    instantiate the configuration header FILE
5770
5771 Configuration files:
5772 $config_files
5773
5774 Configuration headers:
5775 $config_headers
5776
5777 Report bugs to <bug-autoconf@gnu.org>."
5778 _ACEOF
5779
5780 cat >>$CONFIG_STATUS <<_ACEOF
5781 ac_cs_version="\\
5782 config.status
5783 configured by $0, generated by GNU Autoconf 2.59,
5784   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5785
5786 Copyright (C) 2003 Free Software Foundation, Inc.
5787 This config.status script is free software; the Free Software Foundation
5788 gives unlimited permission to copy, distribute and modify it."
5789 srcdir=$srcdir
5790 INSTALL="$INSTALL"
5791 _ACEOF
5792
5793 cat >>$CONFIG_STATUS <<\_ACEOF
5794 # If no file are specified by the user, then we need to provide default
5795 # value.  By we need to know if files were specified by the user.
5796 ac_need_defaults=:
5797 while test $# != 0
5798 do
5799   case $1 in
5800   --*=*)
5801     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5802     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5803     ac_shift=:
5804     ;;
5805   -*)
5806     ac_option=$1
5807     ac_optarg=$2
5808     ac_shift=shift
5809     ;;
5810   *) # This is not an option, so the user has probably given explicit
5811      # arguments.
5812      ac_option=$1
5813      ac_need_defaults=false;;
5814   esac
5815
5816   case $ac_option in
5817   # Handling of the options.
5818 _ACEOF
5819 cat >>$CONFIG_STATUS <<\_ACEOF
5820   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5821     ac_cs_recheck=: ;;
5822   --version | --vers* | -V )
5823     echo "$ac_cs_version"; exit 0 ;;
5824   --he | --h)
5825     # Conflict between --help and --header
5826     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5827 Try \`$0 --help' for more information." >&5
5828 echo "$as_me: error: ambiguous option: $1
5829 Try \`$0 --help' for more information." >&2;}
5830    { (exit 1); exit 1; }; };;
5831   --help | --hel | -h )
5832     echo "$ac_cs_usage"; exit 0 ;;
5833   --debug | --d* | -d )
5834     debug=: ;;
5835   --file | --fil | --fi | --f )
5836     $ac_shift
5837     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5838     ac_need_defaults=false;;
5839   --header | --heade | --head | --hea )
5840     $ac_shift
5841     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5842     ac_need_defaults=false;;
5843   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5844   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5845     ac_cs_silent=: ;;
5846
5847   # This is an error.
5848   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5849 Try \`$0 --help' for more information." >&5
5850 echo "$as_me: error: unrecognized option: $1
5851 Try \`$0 --help' for more information." >&2;}
5852    { (exit 1); exit 1; }; } ;;
5853
5854   *) ac_config_targets="$ac_config_targets $1" ;;
5855
5856   esac
5857   shift
5858 done
5859
5860 ac_configure_extra_args=
5861
5862 if $ac_cs_silent; then
5863   exec 6>/dev/null
5864   ac_configure_extra_args="$ac_configure_extra_args --silent"
5865 fi
5866
5867 _ACEOF
5868 cat >>$CONFIG_STATUS <<_ACEOF
5869 if \$ac_cs_recheck; then
5870   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5871   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5872 fi
5873
5874 _ACEOF
5875
5876
5877
5878
5879
5880 cat >>$CONFIG_STATUS <<\_ACEOF
5881 for ac_config_target in $ac_config_targets
5882 do
5883   case "$ac_config_target" in
5884   # Handling of arguments.
5885   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5886   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5887   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5888 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5889    { (exit 1); exit 1; }; };;
5890   esac
5891 done
5892
5893 # If the user did not use the arguments to specify the items to instantiate,
5894 # then the envvar interface is used.  Set only those that are not.
5895 # We use the long form for the default assignment because of an extremely
5896 # bizarre bug on SunOS 4.1.3.
5897 if $ac_need_defaults; then
5898   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5899   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5900 fi
5901
5902 # Have a temporary directory for convenience.  Make it in the build tree
5903 # simply because there is no reason to put it here, and in addition,
5904 # creating and moving files from /tmp can sometimes cause problems.
5905 # Create a temporary directory, and hook for its removal unless debugging.
5906 $debug ||
5907 {
5908   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5909   trap '{ (exit 1); exit 1; }' 1 2 13 15
5910 }
5911
5912 # Create a (secure) tmp directory for tmp files.
5913
5914 {
5915   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5916   test -n "$tmp" && test -d "$tmp"
5917 }  ||
5918 {
5919   tmp=./confstat$$-$RANDOM
5920   (umask 077 && mkdir $tmp)
5921 } ||
5922 {
5923    echo "$me: cannot create a temporary directory in ." >&2
5924    { (exit 1); exit 1; }
5925 }
5926
5927 _ACEOF
5928
5929 cat >>$CONFIG_STATUS <<_ACEOF
5930
5931 #
5932 # CONFIG_FILES section.
5933 #
5934
5935 # No need to generate the scripts if there are no CONFIG_FILES.
5936 # This happens for instance when ./config.status config.h
5937 if test -n "\$CONFIG_FILES"; then
5938   # Protect against being on the right side of a sed subst in config.status.
5939   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5940    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5941 s,@SHELL@,$SHELL,;t t
5942 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5943 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5944 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5945 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5946 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5947 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5948 s,@exec_prefix@,$exec_prefix,;t t
5949 s,@prefix@,$prefix,;t t
5950 s,@program_transform_name@,$program_transform_name,;t t
5951 s,@bindir@,$bindir,;t t
5952 s,@sbindir@,$sbindir,;t t
5953 s,@libexecdir@,$libexecdir,;t t
5954 s,@datadir@,$datadir,;t t
5955 s,@sysconfdir@,$sysconfdir,;t t
5956 s,@sharedstatedir@,$sharedstatedir,;t t
5957 s,@localstatedir@,$localstatedir,;t t
5958 s,@libdir@,$libdir,;t t
5959 s,@includedir@,$includedir,;t t
5960 s,@oldincludedir@,$oldincludedir,;t t
5961 s,@infodir@,$infodir,;t t
5962 s,@mandir@,$mandir,;t t
5963 s,@build_alias@,$build_alias,;t t
5964 s,@host_alias@,$host_alias,;t t
5965 s,@target_alias@,$target_alias,;t t
5966 s,@DEFS@,$DEFS,;t t
5967 s,@ECHO_C@,$ECHO_C,;t t
5968 s,@ECHO_N@,$ECHO_N,;t t
5969 s,@ECHO_T@,$ECHO_T,;t t
5970 s,@LIBS@,$LIBS,;t t
5971 s,@CC@,$CC,;t t
5972 s,@CFLAGS@,$CFLAGS,;t t
5973 s,@LDFLAGS@,$LDFLAGS,;t t
5974 s,@CPPFLAGS@,$CPPFLAGS,;t t
5975 s,@ac_ct_CC@,$ac_ct_CC,;t t
5976 s,@EXEEXT@,$EXEEXT,;t t
5977 s,@OBJEXT@,$OBJEXT,;t t
5978 s,@LIBREADLINE@,$LIBREADLINE,;t t
5979 s,@CPP@,$CPP,;t t
5980 s,@EGREP@,$EGREP,;t t
5981 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5982 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5983 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5984 s,@RANLIB@,$RANLIB,;t t
5985 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5986 s,@AUTOCONF@,$AUTOCONF,;t t
5987 s,@STRIP@,$STRIP,;t t
5988 s,@AS@,$AS,;t t
5989 s,@CP@,$CP,;t t
5990 s,@M_OR_MM@,$M_OR_MM,;t t
5991 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
5992 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
5993 s,@LIBOBJS@,$LIBOBJS,;t t
5994 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5995 CEOF
5996
5997 _ACEOF
5998
5999   cat >>$CONFIG_STATUS <<\_ACEOF
6000   # Split the substitutions into bite-sized pieces for seds with
6001   # small command number limits, like on Digital OSF/1 and HP-UX.
6002   ac_max_sed_lines=48
6003   ac_sed_frag=1 # Number of current file.
6004   ac_beg=1 # First line for current file.
6005   ac_end=$ac_max_sed_lines # Line after last line for current file.
6006   ac_more_lines=:
6007   ac_sed_cmds=
6008   while $ac_more_lines; do
6009     if test $ac_beg -gt 1; then
6010       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6011     else
6012       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6013     fi
6014     if test ! -s $tmp/subs.frag; then
6015       ac_more_lines=false
6016     else
6017       # The purpose of the label and of the branching condition is to
6018       # speed up the sed processing (if there are no `@' at all, there
6019       # is no need to browse any of the substitutions).
6020       # These are the two extra sed commands mentioned above.
6021       (echo ':t
6022   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6023       if test -z "$ac_sed_cmds"; then
6024         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6025       else
6026         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6027       fi
6028       ac_sed_frag=`expr $ac_sed_frag + 1`
6029       ac_beg=$ac_end
6030       ac_end=`expr $ac_end + $ac_max_sed_lines`
6031     fi
6032   done
6033   if test -z "$ac_sed_cmds"; then
6034     ac_sed_cmds=cat
6035   fi
6036 fi # test -n "$CONFIG_FILES"
6037
6038 _ACEOF
6039 cat >>$CONFIG_STATUS <<\_ACEOF
6040 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6041   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6042   case $ac_file in
6043   - | *:- | *:-:* ) # input from stdin
6044         cat >$tmp/stdin
6045         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6046         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6047   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6048         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6049   * )   ac_file_in=$ac_file.in ;;
6050   esac
6051
6052   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6053   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6055          X"$ac_file" : 'X\(//\)[^/]' \| \
6056          X"$ac_file" : 'X\(//\)$' \| \
6057          X"$ac_file" : 'X\(/\)' \| \
6058          .     : '\(.\)' 2>/dev/null ||
6059 echo X"$ac_file" |
6060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6061           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6062           /^X\(\/\/\)$/{ s//\1/; q; }
6063           /^X\(\/\).*/{ s//\1/; q; }
6064           s/.*/./; q'`
6065   { if $as_mkdir_p; then
6066     mkdir -p "$ac_dir"
6067   else
6068     as_dir="$ac_dir"
6069     as_dirs=
6070     while test ! -d "$as_dir"; do
6071       as_dirs="$as_dir $as_dirs"
6072       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6074          X"$as_dir" : 'X\(//\)[^/]' \| \
6075          X"$as_dir" : 'X\(//\)$' \| \
6076          X"$as_dir" : 'X\(/\)' \| \
6077          .     : '\(.\)' 2>/dev/null ||
6078 echo X"$as_dir" |
6079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6080           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6081           /^X\(\/\/\)$/{ s//\1/; q; }
6082           /^X\(\/\).*/{ s//\1/; q; }
6083           s/.*/./; q'`
6084     done
6085     test ! -n "$as_dirs" || mkdir $as_dirs
6086   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6087 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6088    { (exit 1); exit 1; }; }; }
6089
6090   ac_builddir=.
6091
6092 if test "$ac_dir" != .; then
6093   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6094   # A "../" for each directory in $ac_dir_suffix.
6095   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6096 else
6097   ac_dir_suffix= ac_top_builddir=
6098 fi
6099
6100 case $srcdir in
6101   .)  # No --srcdir option.  We are building in place.
6102     ac_srcdir=.
6103     if test -z "$ac_top_builddir"; then
6104        ac_top_srcdir=.
6105     else
6106        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6107     fi ;;
6108   [\\/]* | ?:[\\/]* )  # Absolute path.
6109     ac_srcdir=$srcdir$ac_dir_suffix;
6110     ac_top_srcdir=$srcdir ;;
6111   *) # Relative path.
6112     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6113     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6114 esac
6115
6116 # Do not use `cd foo && pwd` to compute absolute paths, because
6117 # the directories may not exist.
6118 case `pwd` in
6119 .) ac_abs_builddir="$ac_dir";;
6120 *)
6121   case "$ac_dir" in
6122   .) ac_abs_builddir=`pwd`;;
6123   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6124   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6125   esac;;
6126 esac
6127 case $ac_abs_builddir in
6128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6129 *)
6130   case ${ac_top_builddir}. in
6131   .) ac_abs_top_builddir=$ac_abs_builddir;;
6132   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6133   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6134   esac;;
6135 esac
6136 case $ac_abs_builddir in
6137 .) ac_abs_srcdir=$ac_srcdir;;
6138 *)
6139   case $ac_srcdir in
6140   .) ac_abs_srcdir=$ac_abs_builddir;;
6141   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6142   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6143   esac;;
6144 esac
6145 case $ac_abs_builddir in
6146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6147 *)
6148   case $ac_top_srcdir in
6149   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6150   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6151   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6152   esac;;
6153 esac
6154
6155
6156   case $INSTALL in
6157   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6158   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6159   esac
6160
6161   if test x"$ac_file" != x-; then
6162     { echo "$as_me:$LINENO: creating $ac_file" >&5
6163 echo "$as_me: creating $ac_file" >&6;}
6164     rm -f "$ac_file"
6165   fi
6166   # Let's still pretend it is `configure' which instantiates (i.e., don't
6167   # use $as_me), people would be surprised to read:
6168   #    /* config.h.  Generated by config.status.  */
6169   if test x"$ac_file" = x-; then
6170     configure_input=
6171   else
6172     configure_input="$ac_file.  "
6173   fi
6174   configure_input=$configure_input"Generated from `echo $ac_file_in |
6175                                      sed 's,.*/,,'` by configure."
6176
6177   # First look for the input files in the build tree, otherwise in the
6178   # src tree.
6179   ac_file_inputs=`IFS=:
6180     for f in $ac_file_in; do
6181       case $f in
6182       -) echo $tmp/stdin ;;
6183       [\\/$]*)
6184          # Absolute (can't be DOS-style, as IFS=:)
6185          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6186 echo "$as_me: error: cannot find input file: $f" >&2;}
6187    { (exit 1); exit 1; }; }
6188          echo "$f";;
6189       *) # Relative
6190          if test -f "$f"; then
6191            # Build tree
6192            echo "$f"
6193          elif test -f "$srcdir/$f"; then
6194            # Source tree
6195            echo "$srcdir/$f"
6196          else
6197            # /dev/null tree
6198            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6199 echo "$as_me: error: cannot find input file: $f" >&2;}
6200    { (exit 1); exit 1; }; }
6201          fi;;
6202       esac
6203     done` || { (exit 1); exit 1; }
6204 _ACEOF
6205 cat >>$CONFIG_STATUS <<_ACEOF
6206   sed "$ac_vpsub
6207 $extrasub
6208 _ACEOF
6209 cat >>$CONFIG_STATUS <<\_ACEOF
6210 :t
6211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6212 s,@configure_input@,$configure_input,;t t
6213 s,@srcdir@,$ac_srcdir,;t t
6214 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6215 s,@top_srcdir@,$ac_top_srcdir,;t t
6216 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6217 s,@builddir@,$ac_builddir,;t t
6218 s,@abs_builddir@,$ac_abs_builddir,;t t
6219 s,@top_builddir@,$ac_top_builddir,;t t
6220 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6221 s,@INSTALL@,$ac_INSTALL,;t t
6222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6223   rm -f $tmp/stdin
6224   if test x"$ac_file" != x-; then
6225     mv $tmp/out $ac_file
6226   else
6227     cat $tmp/out
6228     rm -f $tmp/out
6229   fi
6230
6231 done
6232 _ACEOF
6233 cat >>$CONFIG_STATUS <<\_ACEOF
6234
6235 #
6236 # CONFIG_HEADER section.
6237 #
6238
6239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6241 #
6242 # ac_d sets the value in "#define NAME VALUE" lines.
6243 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
6244 ac_dB='[         ].*$,\1#\2'
6245 ac_dC=' '
6246 ac_dD=',;t'
6247 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6248 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6249 ac_uB='$,\1#\2define\3'
6250 ac_uC=' '
6251 ac_uD=',;t'
6252
6253 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6254   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6255   case $ac_file in
6256   - | *:- | *:-:* ) # input from stdin
6257         cat >$tmp/stdin
6258         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6259         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6260   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6261         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6262   * )   ac_file_in=$ac_file.in ;;
6263   esac
6264
6265   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6266 echo "$as_me: creating $ac_file" >&6;}
6267
6268   # First look for the input files in the build tree, otherwise in the
6269   # src tree.
6270   ac_file_inputs=`IFS=:
6271     for f in $ac_file_in; do
6272       case $f in
6273       -) echo $tmp/stdin ;;
6274       [\\/$]*)
6275          # Absolute (can't be DOS-style, as IFS=:)
6276          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6277 echo "$as_me: error: cannot find input file: $f" >&2;}
6278    { (exit 1); exit 1; }; }
6279          # Do quote $f, to prevent DOS paths from being IFS'd.
6280          echo "$f";;
6281       *) # Relative
6282          if test -f "$f"; then
6283            # Build tree
6284            echo "$f"
6285          elif test -f "$srcdir/$f"; then
6286            # Source tree
6287            echo "$srcdir/$f"
6288          else
6289            # /dev/null tree
6290            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6291 echo "$as_me: error: cannot find input file: $f" >&2;}
6292    { (exit 1); exit 1; }; }
6293          fi;;
6294       esac
6295     done` || { (exit 1); exit 1; }
6296   # Remove the trailing spaces.
6297   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
6298
6299 _ACEOF
6300
6301 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6302 # `conftest.undefs', that substitutes the proper values into
6303 # config.h.in to produce config.h.  The first handles `#define'
6304 # templates, and the second `#undef' templates.
6305 # And first: Protect against being on the right side of a sed subst in
6306 # config.status.  Protect against being in an unquoted here document
6307 # in config.status.
6308 rm -f conftest.defines conftest.undefs
6309 # Using a here document instead of a string reduces the quoting nightmare.
6310 # Putting comments in sed scripts is not portable.
6311 #
6312 # `end' is used to avoid that the second main sed command (meant for
6313 # 0-ary CPP macros) applies to n-ary macro definitions.
6314 # See the Autoconf documentation for `clear'.
6315 cat >confdef2sed.sed <<\_ACEOF
6316 s/[\\&,]/\\&/g
6317 s,[\\$`],\\&,g
6318 t clear
6319 : clear
6320 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6321 t end
6322 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6323 : end
6324 _ACEOF
6325 # If some macros were called several times there might be several times
6326 # the same #defines, which is useless.  Nevertheless, we may not want to
6327 # sort them, since we want the *last* AC-DEFINE to be honored.
6328 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6329 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6330 rm -f confdef2sed.sed
6331
6332 # This sed command replaces #undef with comments.  This is necessary, for
6333 # example, in the case of _POSIX_SOURCE, which is predefined and required
6334 # on some systems where configure will not decide to define it.
6335 cat >>conftest.undefs <<\_ACEOF
6336 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6337 _ACEOF
6338
6339 # Break up conftest.defines because some shells have a limit on the size
6340 # of here documents, and old seds have small limits too (100 cmds).
6341 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6342 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6343 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6344 echo '  :' >>$CONFIG_STATUS
6345 rm -f conftest.tail
6346 while grep . conftest.defines >/dev/null
6347 do
6348   # Write a limited-size here document to $tmp/defines.sed.
6349   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6350   # Speed up: don't consider the non `#define' lines.
6351   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6352   # Work around the forget-to-reset-the-flag bug.
6353   echo 't clr' >>$CONFIG_STATUS
6354   echo ': clr' >>$CONFIG_STATUS
6355   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6356   echo 'CEOF
6357   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6358   rm -f $tmp/in
6359   mv $tmp/out $tmp/in
6360 ' >>$CONFIG_STATUS
6361   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6362   rm -f conftest.defines
6363   mv conftest.tail conftest.defines
6364 done
6365 rm -f conftest.defines
6366 echo '  fi # grep' >>$CONFIG_STATUS
6367 echo >>$CONFIG_STATUS
6368
6369 # Break up conftest.undefs because some shells have a limit on the size
6370 # of here documents, and old seds have small limits too (100 cmds).
6371 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6372 rm -f conftest.tail
6373 while grep . conftest.undefs >/dev/null
6374 do
6375   # Write a limited-size here document to $tmp/undefs.sed.
6376   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6377   # Speed up: don't consider the non `#undef'
6378   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6379   # Work around the forget-to-reset-the-flag bug.
6380   echo 't clr' >>$CONFIG_STATUS
6381   echo ': clr' >>$CONFIG_STATUS
6382   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6383   echo 'CEOF
6384   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6385   rm -f $tmp/in
6386   mv $tmp/out $tmp/in
6387 ' >>$CONFIG_STATUS
6388   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6389   rm -f conftest.undefs
6390   mv conftest.tail conftest.undefs
6391 done
6392 rm -f conftest.undefs
6393
6394 cat >>$CONFIG_STATUS <<\_ACEOF
6395   # Let's still pretend it is `configure' which instantiates (i.e., don't
6396   # use $as_me), people would be surprised to read:
6397   #    /* config.h.  Generated by config.status.  */
6398   if test x"$ac_file" = x-; then
6399     echo "/* Generated by configure.  */" >$tmp/config.h
6400   else
6401     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6402   fi
6403   cat $tmp/in >>$tmp/config.h
6404   rm -f $tmp/in
6405   if test x"$ac_file" != x-; then
6406     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6407       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6408 echo "$as_me: $ac_file is unchanged" >&6;}
6409     else
6410       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6412          X"$ac_file" : 'X\(//\)[^/]' \| \
6413          X"$ac_file" : 'X\(//\)$' \| \
6414          X"$ac_file" : 'X\(/\)' \| \
6415          .     : '\(.\)' 2>/dev/null ||
6416 echo X"$ac_file" |
6417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6418           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6419           /^X\(\/\/\)$/{ s//\1/; q; }
6420           /^X\(\/\).*/{ s//\1/; q; }
6421           s/.*/./; q'`
6422       { if $as_mkdir_p; then
6423     mkdir -p "$ac_dir"
6424   else
6425     as_dir="$ac_dir"
6426     as_dirs=
6427     while test ! -d "$as_dir"; do
6428       as_dirs="$as_dir $as_dirs"
6429       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6431          X"$as_dir" : 'X\(//\)[^/]' \| \
6432          X"$as_dir" : 'X\(//\)$' \| \
6433          X"$as_dir" : 'X\(/\)' \| \
6434          .     : '\(.\)' 2>/dev/null ||
6435 echo X"$as_dir" |
6436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6438           /^X\(\/\/\)$/{ s//\1/; q; }
6439           /^X\(\/\).*/{ s//\1/; q; }
6440           s/.*/./; q'`
6441     done
6442     test ! -n "$as_dirs" || mkdir $as_dirs
6443   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6445    { (exit 1); exit 1; }; }; }
6446
6447       rm -f $ac_file
6448       mv $tmp/config.h $ac_file
6449     fi
6450   else
6451     cat $tmp/config.h
6452     rm -f $tmp/config.h
6453   fi
6454 done
6455 _ACEOF
6456
6457 cat >>$CONFIG_STATUS <<\_ACEOF
6458
6459 { (exit 0); exit 0; }
6460 _ACEOF
6461 chmod +x $CONFIG_STATUS
6462 ac_clean_files=$ac_clean_files_save
6463
6464
6465 # configure is writing to config.log, and then calls config.status.
6466 # config.status does its own redirection, appending to config.log.
6467 # Unfortunately, on DOS this fails, as config.log is still kept open
6468 # by configure, so config.status won't be able to write to it; its
6469 # output is simply discarded.  So we exec the FD to /dev/null,
6470 # effectively closing config.log, so it can be properly (re)opened and
6471 # appended to by config.status.  When coming back to configure, we
6472 # need to make the FD available again.
6473 if test "$no_create" != yes; then
6474   ac_cs_success=:
6475   ac_config_status_args=
6476   test "$silent" = yes &&
6477     ac_config_status_args="$ac_config_status_args --quiet"
6478   exec 5>/dev/null
6479   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6480   exec 5>>config.log
6481   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6482   # would make configure fail if this is the last instruction.
6483   $ac_cs_success || { (exit 1); exit 1; }
6484 fi
6485
6486
6487 # Prepare result message
6488 # ======================
6489
6490 # In the C-header we need \\ as dir-separator, but in the message only \
6491 dirch=${sdccconf_h_dir_separator}
6492 test ${dirch} = '\\' && dirch='\'
6493
6494 echo "$as_me:$LINENO: result:
6495 sdcdb is now configured for
6496
6497   Build:                ${build_alias}
6498   Host:                 ${host_alias}
6499   Source directory:     ${srcdir}
6500   C compiler:           ${CC}
6501   CFLAGS:               ${CFLAGS}
6502
6503   Install paths:
6504     binary files:       ${exec_prefix}
6505     include files:      ${datadir}/${include_dir_suffix}
6506     library files:      ${datadir}/${lib_dir_suffix}
6507     documentation:      ${docdir}
6508
6509     prefix:             ${prefix}
6510     datadir:            ${datadir}
6511
6512   Search paths (incomplete, see manual for all search paths):
6513     binary files:       \$SDCC_HOME${binPath}
6514     include files:      ${incPath1}
6515                         path(argv[0])${incPath2}
6516                         ${incPath3}
6517     library files:      \$SDCC_HOME${libPath1}${dirch}<model>
6518                         path(argv[0])${libPath2}${dirch}<model>
6519                         ${libPath3}${dirch}<model>
6520 " >&5
6521 echo "${ECHO_T}
6522 sdcdb is now configured for
6523
6524   Build:                ${build_alias}
6525   Host:                 ${host_alias}
6526   Source directory:     ${srcdir}
6527   C compiler:           ${CC}
6528   CFLAGS:               ${CFLAGS}
6529
6530   Install paths:
6531     binary files:       ${exec_prefix}
6532     include files:      ${datadir}/${include_dir_suffix}
6533     library files:      ${datadir}/${lib_dir_suffix}
6534     documentation:      ${docdir}
6535
6536     prefix:             ${prefix}
6537     datadir:            ${datadir}
6538
6539   Search paths (incomplete, see manual for all search paths):
6540     binary files:       \$SDCC_HOME${binPath}
6541     include files:      ${incPath1}
6542                         path(argv[0])${incPath2}
6543                         ${incPath3}
6544     library files:      \$SDCC_HOME${libPath1}${dirch}<model>
6545                         path(argv[0])${libPath2}${dirch}<model>
6546                         ${libPath3}${dirch}<model>
6547 " >&6
6548 # End of configure/configure.in