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