OSDN Git Service

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