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