OSDN Git Service

* configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
[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 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 CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS 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 fortran_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
462 ac_subst_files='language_hooks'
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923 ac_env_GMPLIBS_set=${GMPLIBS+set}
924 ac_env_GMPLIBS_value=$GMPLIBS
925 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
926 ac_cv_env_GMPLIBS_value=$GMPLIBS
927 ac_env_GMPINC_set=${GMPINC+set}
928 ac_env_GMPINC_value=$GMPINC
929 ac_cv_env_GMPINC_set=${GMPINC+set}
930 ac_cv_env_GMPINC_value=$GMPINC
931
932 #
933 # Report the --help message.
934 #
935 if test "$ac_init_help" = "long"; then
936   # Omit some internal or obsolete options to make the list less imposing.
937   # This message is too long to be a string in the A/UX 3.1 sh.
938   cat <<_ACEOF
939 \`configure' configures this package to adapt to many kinds of systems.
940
941 Usage: $0 [OPTION]... [VAR=VALUE]...
942
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE.  See below for descriptions of some of the useful variables.
945
946 Defaults for the options are specified in brackets.
947
948 Configuration:
949   -h, --help              display this help and exit
950       --help=short        display options specific to this package
951       --help=recursive    display the short help of all the included packages
952   -V, --version           display version information and exit
953   -q, --quiet, --silent   do not print \`checking...' messages
954       --cache-file=FILE   cache test results in FILE [disabled]
955   -C, --config-cache      alias for \`--cache-file=config.cache'
956   -n, --no-create         do not create output files
957       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
959 _ACEOF
960
961   cat <<_ACEOF
962 Installation directories:
963   --prefix=PREFIX         install architecture-independent files in PREFIX
964                           [$ac_default_prefix]
965   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966                           [PREFIX]
967
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
972
973 For better control, use the options below.
974
975 Fine tuning of the installation directories:
976   --bindir=DIR           user executables [EPREFIX/bin]
977   --sbindir=DIR          system admin executables [EPREFIX/sbin]
978   --libexecdir=DIR       program executables [EPREFIX/libexec]
979   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983   --libdir=DIR           object code libraries [EPREFIX/lib]
984   --includedir=DIR       C header files [PREFIX/include]
985   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986   --infodir=DIR          info documentation [PREFIX/info]
987   --mandir=DIR           man documentation [PREFIX/man]
988 _ACEOF
989
990   cat <<\_ACEOF
991
992 Program names:
993   --program-prefix=PREFIX            prepend PREFIX to installed program names
994   --program-suffix=SUFFIX            append SUFFIX to installed program names
995   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
996
997 System types:
998   --build=BUILD     configure for building on BUILD [guessed]
999   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000   --target=TARGET   configure for building compilers for TARGET [HOST]
1001 _ACEOF
1002 fi
1003
1004 if test -n "$ac_init_help"; then
1005
1006   cat <<\_ACEOF
1007
1008 Optional Features:
1009   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1010   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1011   --enable-generated-files-in-srcdir
1012                           put copies of generated files in source dir
1013                           intended for creating source tarballs for users
1014                           without texinfo bison or flex.
1015   --enable-werror-always  enable -Werror despite compiler version
1016   --enable-checking=LIST
1017                           enable expensive run-time checks.  With LIST,
1018                           enable only specific categories of checks.
1019                           Categories are: yes,no,all,none,release.
1020                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1021                           rtlflag,rtl,runtime,tree,valgrind,types.
1022   --enable-coverage=LEVEL
1023                           enable compiler's code coverage collection.
1024                           Use to measure compiler performance and locate
1025                           unused parts of the compiler. With LEVEL, specify
1026                           optimization. Values are opt, noopt,
1027                           default is noopt
1028   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1029   --enable-multilib       enable library support for multiple ABIs
1030   --enable-__cxa_atexit   enable __cxa_atexit for C++
1031   --enable-decimal-float={no,yes,bid,dpd}
1032                         enable decimal float extension to C.  Selecting 'bid'
1033                         or 'dpd' choses which decimal floating point format
1034                         to use
1035   --enable-fixed-point    enable fixed-point arithmetic extension to C
1036   --enable-threads        enable thread usage for target GCC
1037   --enable-threads=LIB    use LIB thread package for target GCC
1038   --enable-tls            enable or disable generation of tls code
1039                           overriding the assembler check for tls support
1040   --enable-objc-gc        enable the use of Boehm's garbage collector with
1041                           the GNU Objective-C runtime
1042   --disable-shared        don't provide a shared libgcc
1043   --enable-intermodule    build the compiler in one step
1044   --enable-languages=LIST specify which front-ends to build
1045   --disable-rpath         do not hardcode runtime library paths
1046   --enable-initfini-array       use .init_array/.fini_array sections
1047   --enable-sjlj-exceptions
1048                           arrange to use setjmp/longjmp exception handling
1049   --enable-secureplt      enable -msecure-plt by default for PowerPC
1050   --enable-cld            enable -mcld by default for 32bit x86
1051   --disable-win32-registry
1052                           disable lookup of installation paths in the
1053                           Registry on Windows hosts
1054   --enable-win32-registry enable registry lookup (default)
1055   --enable-win32-registry=KEY
1056                           use KEY instead of GCC version as the last portion
1057                           of the registry key
1058   --enable-shared[=PKGS]
1059                           build shared libraries [default=yes]
1060   --enable-static[=PKGS]
1061                           build static libraries [default=yes]
1062   --enable-fast-install[=PKGS]
1063                           optimize for fast installation [default=yes]
1064   --disable-libtool-lock  avoid locking (might break parallel builds)
1065   --enable-maintainer-mode
1066                           enable make rules and dependencies not useful
1067                           (and sometimes confusing) to the casual installer
1068   --enable-version-specific-runtime-libs
1069                           specify that runtime libraries should be
1070                           installed in a compiler-specific directory
1071
1072 Optional Packages:
1073   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1074   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1075   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1076   --with-local-prefix=DIR specifies directory to put local include
1077   --with-gxx-include-dir=DIR
1078                           specifies directory to put g++ header files
1079   --with-cpp-install-dir=DIR
1080                           install the user visible C preprocessor in DIR
1081                           (relative to PREFIX) as well as PREFIX/bin
1082   --with-gnu-ld           arrange to work with GNU ld.
1083   --with-ld               arrange to use the specified ld (full pathname)
1084   --with-demangler-in-ld  try to use demangler in GNU ld.
1085   --with-gnu-as           arrange to work with GNU as
1086   --with-as               arrange to use the specified as (full pathname)
1087   --with-stabs            arrange to use stabs instead of host debug format
1088   --with-dwarf2           force the default debug format to be DWARF 2
1089   --with-build-sysroot=sysroot
1090                           use sysroot as the system root during the build
1091   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1092   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1093   --with-bugurl=URL       Direct users to URL to report a bug
1094   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1095   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1096   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1097   --with-system-libunwind use installed libunwind
1098   --with-pic              try to use only PIC/non-PIC objects [default=use
1099                           both]
1100   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1101   --with-long-double-128  Use 128-bit long double by default.
1102   --with-gc={page,zone}   choose the garbage collection mechanism to use
1103                           with the compiler
1104   --with-system-zlib      use installed libz
1105   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1106   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
1107   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
1108   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
1109
1110 Some influential environment variables:
1111   CC          C compiler command
1112   CFLAGS      C compiler flags
1113   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1114               nonstandard directory <lib dir>
1115   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116               headers in a nonstandard directory <include dir>
1117   CPP         C preprocessor
1118   GMPLIBS     How to link GMP
1119   GMPINC      How to find GMP include files
1120
1121 Use these variables to override the choices made by `configure' or to help
1122 it to find libraries and programs with nonstandard names/locations.
1123
1124 _ACEOF
1125 fi
1126
1127 if test "$ac_init_help" = "recursive"; then
1128   # If there are subdirs, report their specific --help.
1129   ac_popdir=`pwd`
1130   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1131     test -d $ac_dir || continue
1132     ac_builddir=.
1133
1134 if test "$ac_dir" != .; then
1135   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1136   # A "../" for each directory in $ac_dir_suffix.
1137   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1138 else
1139   ac_dir_suffix= ac_top_builddir=
1140 fi
1141
1142 case $srcdir in
1143   .)  # No --srcdir option.  We are building in place.
1144     ac_srcdir=.
1145     if test -z "$ac_top_builddir"; then
1146        ac_top_srcdir=.
1147     else
1148        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1149     fi ;;
1150   [\\/]* | ?:[\\/]* )  # Absolute path.
1151     ac_srcdir=$srcdir$ac_dir_suffix;
1152     ac_top_srcdir=$srcdir ;;
1153   *) # Relative path.
1154     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1155     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1156 esac
1157
1158 # Do not use `cd foo && pwd` to compute absolute paths, because
1159 # the directories may not exist.
1160 case `pwd` in
1161 .) ac_abs_builddir="$ac_dir";;
1162 *)
1163   case "$ac_dir" in
1164   .) ac_abs_builddir=`pwd`;;
1165   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1166   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1167   esac;;
1168 esac
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1171 *)
1172   case ${ac_top_builddir}. in
1173   .) ac_abs_top_builddir=$ac_abs_builddir;;
1174   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1175   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1176   esac;;
1177 esac
1178 case $ac_abs_builddir in
1179 .) ac_abs_srcdir=$ac_srcdir;;
1180 *)
1181   case $ac_srcdir in
1182   .) ac_abs_srcdir=$ac_abs_builddir;;
1183   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1184   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1185   esac;;
1186 esac
1187 case $ac_abs_builddir in
1188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1189 *)
1190   case $ac_top_srcdir in
1191   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1192   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1193   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1194   esac;;
1195 esac
1196
1197     cd $ac_dir
1198     # Check for guested configure; otherwise get Cygnus style configure.
1199     if test -f $ac_srcdir/configure.gnu; then
1200       echo
1201       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1202     elif test -f $ac_srcdir/configure; then
1203       echo
1204       $SHELL $ac_srcdir/configure  --help=recursive
1205     elif test -f $ac_srcdir/configure.ac ||
1206            test -f $ac_srcdir/configure.in; then
1207       echo
1208       $ac_configure --help
1209     else
1210       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1211     fi
1212     cd $ac_popdir
1213   done
1214 fi
1215
1216 test -n "$ac_init_help" && exit 0
1217 if $ac_init_version; then
1218   cat <<\_ACEOF
1219
1220 Copyright (C) 2003 Free Software Foundation, Inc.
1221 This configure script is free software; the Free Software Foundation
1222 gives unlimited permission to copy, distribute and modify it.
1223 _ACEOF
1224   exit 0
1225 fi
1226 exec 5>config.log
1227 cat >&5 <<_ACEOF
1228 This file contains any messages produced by compilers while
1229 running configure, to aid debugging if configure makes a mistake.
1230
1231 It was created by $as_me, which was
1232 generated by GNU Autoconf 2.59.  Invocation command line was
1233
1234   $ $0 $@
1235
1236 _ACEOF
1237 {
1238 cat <<_ASUNAME
1239 ## --------- ##
1240 ## Platform. ##
1241 ## --------- ##
1242
1243 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1244 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1245 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1246 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1247 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1248
1249 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1250 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1251
1252 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1253 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1254 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1255 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1256 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1257 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1258 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1259
1260 _ASUNAME
1261
1262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1263 for as_dir in $PATH
1264 do
1265   IFS=$as_save_IFS
1266   test -z "$as_dir" && as_dir=.
1267   echo "PATH: $as_dir"
1268 done
1269
1270 } >&5
1271
1272 cat >&5 <<_ACEOF
1273
1274
1275 ## ----------- ##
1276 ## Core tests. ##
1277 ## ----------- ##
1278
1279 _ACEOF
1280
1281
1282 # Keep a trace of the command line.
1283 # Strip out --no-create and --no-recursion so they do not pile up.
1284 # Strip out --silent because we don't want to record it for future runs.
1285 # Also quote any args containing shell meta-characters.
1286 # Make two passes to allow for proper duplicate-argument suppression.
1287 ac_configure_args=
1288 ac_configure_args0=
1289 ac_configure_args1=
1290 ac_sep=
1291 ac_must_keep_next=false
1292 for ac_pass in 1 2
1293 do
1294   for ac_arg
1295   do
1296     case $ac_arg in
1297     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1298     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299     | -silent | --silent | --silen | --sile | --sil)
1300       continue ;;
1301     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1303     esac
1304     case $ac_pass in
1305     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1306     2)
1307       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1308       if test $ac_must_keep_next = true; then
1309         ac_must_keep_next=false # Got value, back to normal.
1310       else
1311         case $ac_arg in
1312           *=* | --config-cache | -C | -disable-* | --disable-* \
1313           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1314           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1315           | -with-* | --with-* | -without-* | --without-* | --x)
1316             case "$ac_configure_args0 " in
1317               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1318             esac
1319             ;;
1320           -* ) ac_must_keep_next=true ;;
1321         esac
1322       fi
1323       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1324       # Get rid of the leading space.
1325       ac_sep=" "
1326       ;;
1327     esac
1328   done
1329 done
1330 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1331 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1332
1333 # When interrupted or exit'd, cleanup temporary files, and complete
1334 # config.log.  We remove comments because anyway the quotes in there
1335 # would cause problems or look ugly.
1336 # WARNING: Be sure not to use single quotes in there, as some shells,
1337 # such as our DU 5.0 friend, will then `close' the trap.
1338 trap 'exit_status=$?
1339   # Save into config.log some information that might help in debugging.
1340   {
1341     echo
1342
1343     cat <<\_ASBOX
1344 ## ---------------- ##
1345 ## Cache variables. ##
1346 ## ---------------- ##
1347 _ASBOX
1348     echo
1349     # The following way of writing the cache mishandles newlines in values,
1350 {
1351   (set) 2>&1 |
1352     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1353     *ac_space=\ *)
1354       sed -n \
1355         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1356           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1357       ;;
1358     *)
1359       sed -n \
1360         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1361       ;;
1362     esac;
1363 }
1364     echo
1365
1366     cat <<\_ASBOX
1367 ## ----------------- ##
1368 ## Output variables. ##
1369 ## ----------------- ##
1370 _ASBOX
1371     echo
1372     for ac_var in $ac_subst_vars
1373     do
1374       eval ac_val=$`echo $ac_var`
1375       echo "$ac_var='"'"'$ac_val'"'"'"
1376     done | sort
1377     echo
1378
1379     if test -n "$ac_subst_files"; then
1380       cat <<\_ASBOX
1381 ## ------------- ##
1382 ## Output files. ##
1383 ## ------------- ##
1384 _ASBOX
1385       echo
1386       for ac_var in $ac_subst_files
1387       do
1388         eval ac_val=$`echo $ac_var`
1389         echo "$ac_var='"'"'$ac_val'"'"'"
1390       done | sort
1391       echo
1392     fi
1393
1394     if test -s confdefs.h; then
1395       cat <<\_ASBOX
1396 ## ----------- ##
1397 ## confdefs.h. ##
1398 ## ----------- ##
1399 _ASBOX
1400       echo
1401       sed "/^$/d" confdefs.h | sort
1402       echo
1403     fi
1404     test "$ac_signal" != 0 &&
1405       echo "$as_me: caught signal $ac_signal"
1406     echo "$as_me: exit $exit_status"
1407   } >&5
1408   rm -f core *.core &&
1409   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1410     exit $exit_status
1411      ' 0
1412 for ac_signal in 1 2 13 15; do
1413   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1414 done
1415 ac_signal=0
1416
1417 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1418 rm -rf conftest* confdefs.h
1419 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1420 echo >confdefs.h
1421
1422 # Predefined preprocessor variables.
1423
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_NAME "$PACKAGE_NAME"
1426 _ACEOF
1427
1428
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1431 _ACEOF
1432
1433
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1436 _ACEOF
1437
1438
1439 cat >>confdefs.h <<_ACEOF
1440 #define PACKAGE_STRING "$PACKAGE_STRING"
1441 _ACEOF
1442
1443
1444 cat >>confdefs.h <<_ACEOF
1445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1446 _ACEOF
1447
1448
1449 # Let the site file select an alternate cache file if it wants to.
1450 # Prefer explicitly selected file to automatically selected ones.
1451 if test -z "$CONFIG_SITE"; then
1452   if test "x$prefix" != xNONE; then
1453     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1454   else
1455     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1456   fi
1457 fi
1458 for ac_site_file in $CONFIG_SITE; do
1459   if test -r "$ac_site_file"; then
1460     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1461 echo "$as_me: loading site script $ac_site_file" >&6;}
1462     sed 's/^/| /' "$ac_site_file" >&5
1463     . "$ac_site_file"
1464   fi
1465 done
1466
1467 if test -r "$cache_file"; then
1468   # Some versions of bash will fail to source /dev/null (special
1469   # files actually), so we avoid doing that.
1470   if test -f "$cache_file"; then
1471     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1472 echo "$as_me: loading cache $cache_file" >&6;}
1473     case $cache_file in
1474       [\\/]* | ?:[\\/]* ) . $cache_file;;
1475       *)                      . ./$cache_file;;
1476     esac
1477   fi
1478 else
1479   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1480 echo "$as_me: creating cache $cache_file" >&6;}
1481   >$cache_file
1482 fi
1483
1484 # Check that the precious variables saved in the cache have kept the same
1485 # value.
1486 ac_cache_corrupted=false
1487 for ac_var in `(set) 2>&1 |
1488                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1489   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1490   eval ac_new_set=\$ac_env_${ac_var}_set
1491   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1492   eval ac_new_val="\$ac_env_${ac_var}_value"
1493   case $ac_old_set,$ac_new_set in
1494     set,)
1495       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1496 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1497       ac_cache_corrupted=: ;;
1498     ,set)
1499       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1500 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1501       ac_cache_corrupted=: ;;
1502     ,);;
1503     *)
1504       if test "x$ac_old_val" != "x$ac_new_val"; then
1505         # differences in whitespace do not lead to failure.
1506         ac_old_val_w=`echo x $ac_old_val`
1507         ac_new_val_w=`echo x $ac_new_val`
1508         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1509           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1510 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1511           ac_cache_corrupted=:
1512         else
1513           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1514 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1515           eval $ac_var=\$ac_old_val
1516         fi
1517         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1518 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1519         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1520 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1521       fi;;
1522   esac
1523   # Pass precious variables to config.status.
1524   if test "$ac_new_set" = set; then
1525     case $ac_new_val in
1526     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1527       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1528     *) ac_arg=$ac_var=$ac_new_val ;;
1529     esac
1530     case " $ac_configure_args " in
1531       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1532       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1533     esac
1534   fi
1535 done
1536 if $ac_cache_corrupted; then
1537   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1538 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1539   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1540 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1541   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1542 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1543    { (exit 1); exit 1; }; }
1544 fi
1545
1546 ac_ext=c
1547 ac_cpp='$CPP $CPPFLAGS'
1548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1575
1576
1577 gcc_version=`cat $srcdir/BASE-VER`
1578
1579 # Determine the host, build, and target systems
1580 ac_aux_dir=
1581 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1582   if test -f $ac_dir/install-sh; then
1583     ac_aux_dir=$ac_dir
1584     ac_install_sh="$ac_aux_dir/install-sh -c"
1585     break
1586   elif test -f $ac_dir/install.sh; then
1587     ac_aux_dir=$ac_dir
1588     ac_install_sh="$ac_aux_dir/install.sh -c"
1589     break
1590   elif test -f $ac_dir/shtool; then
1591     ac_aux_dir=$ac_dir
1592     ac_install_sh="$ac_aux_dir/shtool install -c"
1593     break
1594   fi
1595 done
1596 if test -z "$ac_aux_dir"; then
1597   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1598 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1599    { (exit 1); exit 1; }; }
1600 fi
1601 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1602 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1603 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1604
1605 # Make sure we can run config.sub.
1606 $ac_config_sub sun4 >/dev/null 2>&1 ||
1607   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1608 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1609    { (exit 1); exit 1; }; }
1610
1611 echo "$as_me:$LINENO: checking build system type" >&5
1612 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1613 if test "${ac_cv_build+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   ac_cv_build_alias=$build_alias
1617 test -z "$ac_cv_build_alias" &&
1618   ac_cv_build_alias=`$ac_config_guess`
1619 test -z "$ac_cv_build_alias" &&
1620   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1621 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1622    { (exit 1); exit 1; }; }
1623 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1624   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1626    { (exit 1); exit 1; }; }
1627
1628 fi
1629 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1630 echo "${ECHO_T}$ac_cv_build" >&6
1631 build=$ac_cv_build
1632 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635
1636
1637 echo "$as_me:$LINENO: checking host system type" >&5
1638 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1639 if test "${ac_cv_host+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   ac_cv_host_alias=$host_alias
1643 test -z "$ac_cv_host_alias" &&
1644   ac_cv_host_alias=$ac_cv_build_alias
1645 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1646   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1647 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1648    { (exit 1); exit 1; }; }
1649
1650 fi
1651 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1652 echo "${ECHO_T}$ac_cv_host" >&6
1653 host=$ac_cv_host
1654 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657
1658
1659 echo "$as_me:$LINENO: checking target system type" >&5
1660 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1661 if test "${ac_cv_target+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   ac_cv_target_alias=$target_alias
1665 test "x$ac_cv_target_alias" = "x" &&
1666   ac_cv_target_alias=$ac_cv_host_alias
1667 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1668   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1670    { (exit 1); exit 1; }; }
1671
1672 fi
1673 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1674 echo "${ECHO_T}$ac_cv_target" >&6
1675 target=$ac_cv_target
1676 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1679
1680
1681 # The aliases save the names the user supplied, while $host etc.
1682 # will get canonicalized.
1683 test -n "$target_alias" &&
1684   test "$program_prefix$program_suffix$program_transform_name" = \
1685     NONENONEs,x,x, &&
1686   program_prefix=${target_alias}-
1687
1688 # Determine the noncanonical target name, for directory use.
1689  case ${build_alias} in
1690   "") build_noncanonical=${build} ;;
1691   *) build_noncanonical=${build_alias} ;;
1692 esac
1693
1694  case ${host_alias} in
1695   "") host_noncanonical=${build_noncanonical} ;;
1696   *) host_noncanonical=${host_alias} ;;
1697 esac
1698
1699  case ${target_alias} in
1700   "") target_noncanonical=${host_noncanonical} ;;
1701   *) target_noncanonical=${target_alias} ;;
1702 esac
1703
1704
1705
1706
1707 # Determine the target- and build-specific subdirectories
1708
1709 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1710 # have matching libraries, they should use host libraries: Makefile.tpl
1711 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1712 # However, they still use the build modules, because the corresponding
1713 # host modules (e.g. bison) are only built for the host when bootstrap
1714 # finishes. So:
1715 # - build_subdir is where we find build modules, and never changes.
1716 # - build_libsubdir is where we find build libraries, and can be overridden.
1717
1718 # Prefix 'build-' so this never conflicts with target_subdir.
1719 build_subdir="build-${build_noncanonical}"
1720
1721 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1722 if test "${with_build_libsubdir+set}" = set; then
1723   withval="$with_build_libsubdir"
1724   build_libsubdir="$withval"
1725 else
1726   build_libsubdir="$build_subdir"
1727 fi;
1728 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1729 if ( test $srcdir = . && test -d gcc ) \
1730    || test -d $srcdir/../host-${host_noncanonical}; then
1731   host_subdir="host-${host_noncanonical}"
1732 else
1733   host_subdir=.
1734 fi
1735 # No prefix.
1736 target_subdir=${target_noncanonical}
1737
1738
1739 # Set program_transform_name
1740 test "$program_prefix" != NONE &&
1741   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742 # Use a double $ so make ignores it.
1743 test "$program_suffix" != NONE &&
1744   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745 # Double any \ or $.  echo might interpret backslashes.
1746 # By default was `s,x,x', remove it if useless.
1747 cat <<\_ACEOF >conftest.sed
1748 s/[\\$]/&&/g;s/;s,x,x,$//
1749 _ACEOF
1750 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1751 rm conftest.sed
1752
1753
1754 # Check for bogus environment variables.
1755 # Test if LIBRARY_PATH contains the notation for the current directory
1756 # since this would lead to problems installing/building glibc.
1757 # LIBRARY_PATH contains the current directory if one of the following
1758 # is true:
1759 # - one of the terminals (":" and ";") is the first or last sign
1760 # - two terminals occur directly after each other
1761 # - the path contains an element with a dot in it
1762 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1763 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1764 case ${LIBRARY_PATH} in
1765   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1766     library_path_setting="contains current directory"
1767     ;;
1768   *)
1769     library_path_setting="ok"
1770     ;;
1771 esac
1772 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1773 echo "${ECHO_T}$library_path_setting" >&6
1774 if test "$library_path_setting" != "ok"; then
1775 { { echo "$as_me:$LINENO: error:
1776 *** LIBRARY_PATH shouldn't contain the current directory when
1777 *** building gcc. Please change the environment variable
1778 *** and run configure again." >&5
1779 echo "$as_me: error:
1780 *** LIBRARY_PATH shouldn't contain the current directory when
1781 *** building gcc. Please change the environment variable
1782 *** and run configure again." >&2;}
1783    { (exit 1); exit 1; }; }
1784 fi
1785
1786 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1787 # since this would lead to problems installing/building glibc.
1788 # GCC_EXEC_PREFIX contains the current directory if one of the following
1789 # is true:
1790 # - one of the terminals (":" and ";") is the first or last sign
1791 # - two terminals occur directly after each other
1792 # - the path contains an element with a dot in it
1793 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1794 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1795 case ${GCC_EXEC_PREFIX} in
1796   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1797     gcc_exec_prefix_setting="contains current directory"
1798     ;;
1799   *)
1800     gcc_exec_prefix_setting="ok"
1801     ;;
1802 esac
1803 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1804 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1805 if test "$gcc_exec_prefix_setting" != "ok"; then
1806 { { echo "$as_me:$LINENO: error:
1807 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1808 *** building gcc. Please change the environment variable
1809 *** and run configure again." >&5
1810 echo "$as_me: error:
1811 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1812 *** building gcc. Please change the environment variable
1813 *** and run configure again." >&2;}
1814    { (exit 1); exit 1; }; }
1815 fi
1816
1817 # -----------
1818 # Directories
1819 # -----------
1820
1821 # Specify the local prefix
1822 local_prefix=
1823
1824 # Check whether --with-local-prefix or --without-local-prefix was given.
1825 if test "${with_local_prefix+set}" = set; then
1826   withval="$with_local_prefix"
1827   case "${withval}" in
1828 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1829 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1830    { (exit 1); exit 1; }; } ;;
1831 no)     ;;
1832 *)      local_prefix=$with_local_prefix ;;
1833 esac
1834 fi;
1835
1836 # Default local prefix if it is empty
1837 if test x$local_prefix = x; then
1838         local_prefix=/usr/local
1839 fi
1840
1841 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1842 # passed in by the toplevel make and thus we'd get different behavior
1843 # depending on where we built the sources.
1844 gcc_gxx_include_dir=
1845 # Specify the g++ header file directory
1846
1847 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1848 if test "${with_gxx_include_dir+set}" = set; then
1849   withval="$with_gxx_include_dir"
1850   case "${withval}" in
1851 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1852 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1853    { (exit 1); exit 1; }; } ;;
1854 no)     ;;
1855 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1856 esac
1857 fi;
1858
1859 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1860 if test x${gcc_gxx_include_dir} = x; then
1861   if test x${enable_version_specific_runtime_libs} = xyes; then
1862     gcc_gxx_include_dir='${libsubdir}/include/c++'
1863   else
1864     libstdcxx_incdir='include/c++/$(version)'
1865     if test x$host != x$target; then
1866        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1867     fi
1868     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1869   fi
1870 fi
1871
1872
1873 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1874 if test "${with_cpp_install_dir+set}" = set; then
1875   withval="$with_cpp_install_dir"
1876   if test x$withval = xyes; then
1877   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1878 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1879    { (exit 1); exit 1; }; }
1880 elif test x$withval != xno; then
1881   cpp_install_dir=$withval
1882 fi
1883 fi;
1884
1885 # We would like to our source tree to be readonly.  However when releases or
1886 # pre-releases are generated, the flex/bison generated files as well as the
1887 # various formats of manuals need to be included along with the rest of the
1888 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1889 # just that.
1890
1891 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1892 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1893     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1894 if test "${enable_generated_files_in_srcdir+set}" = set; then
1895   enableval="$enable_generated_files_in_srcdir"
1896   generated_files_in_srcdir=$enableval
1897 else
1898   generated_files_in_srcdir=no
1899 fi;
1900
1901 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1902 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1903
1904 if test "$generated_files_in_srcdir" = "yes"; then
1905   GENINSRC=''
1906 else
1907   GENINSRC='#'
1908 fi
1909
1910
1911 # -------------------
1912 # Find default linker
1913 # -------------------
1914
1915 # With GNU ld
1916
1917 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1918 if test "${with_gnu_ld+set}" = set; then
1919   withval="$with_gnu_ld"
1920   gnu_ld_flag="$with_gnu_ld"
1921 else
1922   gnu_ld_flag=no
1923 fi;
1924
1925 # With pre-defined ld
1926
1927 # Check whether --with-ld or --without-ld was given.
1928 if test "${with_ld+set}" = set; then
1929   withval="$with_ld"
1930   DEFAULT_LINKER="$with_ld"
1931 fi;
1932 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1933   if test ! -x "$DEFAULT_LINKER"; then
1934     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1935 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1936    { (exit 1); exit 1; }; }
1937   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1938     gnu_ld_flag=yes
1939   fi
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1943 _ACEOF
1944
1945 fi
1946
1947 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define HAVE_GNU_LD $gnu_ld
1951 _ACEOF
1952
1953
1954 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1955 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1956 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1957   if test x"$gnu_ld_flag" = x"no"; then
1958     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1959 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1960   else
1961     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1962 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1963   fi
1964 else
1965   echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969 # With demangler in GNU ld
1970
1971 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1972 if test "${with_demangler_in_ld+set}" = set; then
1973   withval="$with_demangler_in_ld"
1974   demangler_in_ld="$with_demangler_in_ld"
1975 else
1976   demangler_in_ld=no
1977 fi;
1978
1979 # ----------------------
1980 # Find default assembler
1981 # ----------------------
1982
1983 # With GNU as
1984
1985 # Check whether --with-gnu-as or --without-gnu-as was given.
1986 if test "${with_gnu_as+set}" = set; then
1987   withval="$with_gnu_as"
1988   gas_flag="$with_gnu_as"
1989 else
1990   gas_flag=no
1991 fi;
1992
1993
1994 # Check whether --with-as or --without-as was given.
1995 if test "${with_as+set}" = set; then
1996   withval="$with_as"
1997   DEFAULT_ASSEMBLER="$with_as"
1998 fi;
1999 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2000   if test ! -x "$DEFAULT_ASSEMBLER"; then
2001     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2002 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2003    { (exit 1); exit 1; }; }
2004   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2005     gas_flag=yes
2006   fi
2007
2008 cat >>confdefs.h <<_ACEOF
2009 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2010 _ACEOF
2011
2012 fi
2013
2014 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2015
2016 cat >>confdefs.h <<_ACEOF
2017 #define HAVE_GNU_AS $gnu_as
2018 _ACEOF
2019
2020
2021 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2022 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2023 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2024   if test x"$gas_flag" = x"no"; then
2025     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2026 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2027   else
2028     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2029 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2030   fi
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036 # ---------------
2037 # Find C compiler
2038 # ---------------
2039
2040 # If a non-executable a.out is present (e.g. created by GNU as above even if
2041 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2042 # file, even when creating an executable, so an execution test fails.
2043 # Remove possible default executable files to avoid this.
2044 #
2045 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2046 # Autoconf includes it.
2047 rm -f a.out a.exe b.out
2048
2049 # Find the native compiler
2050 ac_ext=c
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055 if test -n "$ac_tool_prefix"; then
2056   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2057 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_CC+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   if test -n "$CC"; then
2064   ac_cv_prog_CC="$CC" # Let the user override the test.
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2068 do
2069   IFS=$as_save_IFS
2070   test -z "$as_dir" && as_dir=.
2071   for ac_exec_ext in '' $ac_executable_extensions; do
2072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075     break 2
2076   fi
2077 done
2078 done
2079
2080 fi
2081 fi
2082 CC=$ac_cv_prog_CC
2083 if test -n "$CC"; then
2084   echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2086 else
2087   echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2089 fi
2090
2091 fi
2092 if test -z "$ac_cv_prog_CC"; then
2093   ac_ct_CC=$CC
2094   # Extract the first word of "gcc", so it can be a program name with args.
2095 set dummy gcc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099   echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101   if test -n "$ac_ct_CC"; then
2102   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107   IFS=$as_save_IFS
2108   test -z "$as_dir" && as_dir=.
2109   for ac_exec_ext in '' $ac_executable_extensions; do
2110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111     ac_cv_prog_ac_ct_CC="gcc"
2112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113     break 2
2114   fi
2115 done
2116 done
2117
2118 fi
2119 fi
2120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121 if test -n "$ac_ct_CC"; then
2122   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123 echo "${ECHO_T}$ac_ct_CC" >&6
2124 else
2125   echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2127 fi
2128
2129   CC=$ac_ct_CC
2130 else
2131   CC="$ac_cv_prog_CC"
2132 fi
2133
2134 if test -z "$CC"; then
2135   if test -n "$ac_tool_prefix"; then
2136   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2137 set dummy ${ac_tool_prefix}cc; ac_word=$2
2138 echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140 if test "${ac_cv_prog_CC+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   if test -n "$CC"; then
2144   ac_cv_prog_CC="$CC" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149   IFS=$as_save_IFS
2150   test -z "$as_dir" && as_dir=.
2151   for ac_exec_ext in '' $ac_executable_extensions; do
2152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153     ac_cv_prog_CC="${ac_tool_prefix}cc"
2154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155     break 2
2156   fi
2157 done
2158 done
2159
2160 fi
2161 fi
2162 CC=$ac_cv_prog_CC
2163 if test -n "$CC"; then
2164   echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6
2166 else
2167   echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2169 fi
2170
2171 fi
2172 if test -z "$ac_cv_prog_CC"; then
2173   ac_ct_CC=$CC
2174   # Extract the first word of "cc", so it can be a program name with args.
2175 set dummy cc; ac_word=$2
2176 echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   if test -n "$ac_ct_CC"; then
2182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187   IFS=$as_save_IFS
2188   test -z "$as_dir" && as_dir=.
2189   for ac_exec_ext in '' $ac_executable_extensions; do
2190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191     ac_cv_prog_ac_ct_CC="cc"
2192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193     break 2
2194   fi
2195 done
2196 done
2197
2198 fi
2199 fi
2200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6
2204 else
2205   echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2207 fi
2208
2209   CC=$ac_ct_CC
2210 else
2211   CC="$ac_cv_prog_CC"
2212 fi
2213
2214 fi
2215 if test -z "$CC"; then
2216   # Extract the first word of "cc", so it can be a program name with args.
2217 set dummy cc; ac_word=$2
2218 echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   if test -n "$CC"; then
2224   ac_cv_prog_CC="$CC" # Let the user override the test.
2225 else
2226   ac_prog_rejected=no
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230   IFS=$as_save_IFS
2231   test -z "$as_dir" && as_dir=.
2232   for ac_exec_ext in '' $ac_executable_extensions; do
2233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2235        ac_prog_rejected=yes
2236        continue
2237      fi
2238     ac_cv_prog_CC="cc"
2239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240     break 2
2241   fi
2242 done
2243 done
2244
2245 if test $ac_prog_rejected = yes; then
2246   # We found a bogon in the path, so make sure we never use it.
2247   set dummy $ac_cv_prog_CC
2248   shift
2249   if test $# != 0; then
2250     # We chose a different compiler from the bogus one.
2251     # However, it has the same basename, so the bogon will be chosen
2252     # first if we set CC to just the basename; use the full file name.
2253     shift
2254     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2255   fi
2256 fi
2257 fi
2258 fi
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261   echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6
2263 else
2264   echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2266 fi
2267
2268 fi
2269 if test -z "$CC"; then
2270   if test -n "$ac_tool_prefix"; then
2271   for ac_prog in cl
2272   do
2273     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   if test -n "$CC"; then
2281   ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292     break 2
2293   fi
2294 done
2295 done
2296
2297 fi
2298 fi
2299 CC=$ac_cv_prog_CC
2300 if test -n "$CC"; then
2301   echo "$as_me:$LINENO: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6
2303 else
2304   echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2306 fi
2307
2308     test -n "$CC" && break
2309   done
2310 fi
2311 if test -z "$CC"; then
2312   ac_ct_CC=$CC
2313   for ac_prog in cl
2314 do
2315   # Extract the first word of "$ac_prog", so it can be a program name with args.
2316 set dummy $ac_prog; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322   if test -n "$ac_ct_CC"; then
2323   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330   for ac_exec_ext in '' $ac_executable_extensions; do
2331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332     ac_cv_prog_ac_ct_CC="$ac_prog"
2333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334     break 2
2335   fi
2336 done
2337 done
2338
2339 fi
2340 fi
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2345 else
2346   echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 fi
2349
2350   test -n "$ac_ct_CC" && break
2351 done
2352
2353   CC=$ac_ct_CC
2354 fi
2355
2356 fi
2357
2358
2359 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2360 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: no acceptable C compiler found in \$PATH
2364 See \`config.log' for more details." >&2;}
2365    { (exit 1); exit 1; }; }; }
2366
2367 # Provide some information about the compiler.
2368 echo "$as_me:$LINENO:" \
2369      "checking for C compiler version" >&5
2370 ac_compiler=`set X $ac_compile; echo $2`
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372   (eval $ac_compiler --version </dev/null >&5) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377   (eval $ac_compiler -v </dev/null >&5) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382   (eval $ac_compiler -V </dev/null >&5) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }
2386
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 ac_clean_files_save=$ac_clean_files
2403 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404 # Try to create an executable without -o first, disregard a.out.
2405 # It will help us diagnose broken compilers, and finding out an intuition
2406 # of exeext.
2407 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411   (eval $ac_link_default) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; then
2415   # Find the output, starting from the most likely.  This scheme is
2416 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2417 # resort.
2418
2419 # Be careful to initialize this variable, since it used to be cached.
2420 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2421 ac_cv_exeext=
2422 # b.out is created by i960 compilers.
2423 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2424 do
2425   test -f "$ac_file" || continue
2426   case $ac_file in
2427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2428         ;;
2429     conftest.$ac_ext )
2430         # This is the source file.
2431         ;;
2432     [ab].out )
2433         # We found the default executable, but exeext='' is most
2434         # certainly right.
2435         break;;
2436     *.* )
2437         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438         # FIXME: I believe we export ac_cv_exeext for Libtool,
2439         # but it would be cool to find out if it's true.  Does anybody
2440         # maintain Libtool? --akim.
2441         export ac_cv_exeext
2442         break;;
2443     * )
2444         break;;
2445   esac
2446 done
2447 else
2448   echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2450
2451 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2452 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: C compiler cannot create executables
2456 See \`config.log' for more details." >&2;}
2457    { (exit 77); exit 77; }; }; }
2458 fi
2459
2460 ac_exeext=$ac_cv_exeext
2461 echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6
2463
2464 # Check the compiler produces executables we can run.  If not, either
2465 # the compiler is broken, or we cross compile.
2466 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2467 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2468 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2469 # If not cross compiling, check that we can run a simple program.
2470 if test "$cross_compiling" != yes; then
2471   if { ac_try='./$ac_file'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; }; then
2477     cross_compiling=no
2478   else
2479     if test "$cross_compiling" = maybe; then
2480         cross_compiling=yes
2481     else
2482         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2483 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: cannot run C compiled programs.
2488 If you meant to cross compile, use \`--host'.
2489 See \`config.log' for more details." >&2;}
2490    { (exit 1); exit 1; }; }; }
2491     fi
2492   fi
2493 fi
2494 echo "$as_me:$LINENO: result: yes" >&5
2495 echo "${ECHO_T}yes" >&6
2496
2497 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2498 ac_clean_files=$ac_clean_files_save
2499 # Check the compiler produces executables we can run.  If not, either
2500 # the compiler is broken, or we cross compile.
2501 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2502 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2503 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2504 echo "${ECHO_T}$cross_compiling" >&6
2505
2506 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2507 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509   (eval $ac_link) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; then
2513   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2514 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2515 # work properly (i.e., refer to `conftest.exe'), while it won't with
2516 # `rm'.
2517 for ac_file in conftest.exe conftest conftest.*; do
2518   test -f "$ac_file" || continue
2519   case $ac_file in
2520     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2521     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2522           export ac_cv_exeext
2523           break;;
2524     * ) break;;
2525   esac
2526 done
2527 else
2528   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&2;}
2534    { (exit 1); exit 1; }; }; }
2535 fi
2536
2537 rm -f conftest$ac_cv_exeext
2538 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539 echo "${ECHO_T}$ac_cv_exeext" >&6
2540
2541 rm -f conftest.$ac_ext
2542 EXEEXT=$ac_cv_exeext
2543 ac_exeext=$EXEEXT
2544 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2546 if test "${ac_cv_objext+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h.  */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h.  */
2555
2556 int
2557 main ()
2558 {
2559
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 rm -f conftest.o conftest.obj
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566   (eval $ac_compile) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; then
2570   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2571   case $ac_file in
2572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2573     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2574        break;;
2575   esac
2576 done
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2582 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2584 See \`config.log' for more details." >&5
2585 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&2;}
2587    { (exit 1); exit 1; }; }; }
2588 fi
2589
2590 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2591 fi
2592 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2593 echo "${ECHO_T}$ac_cv_objext" >&6
2594 OBJEXT=$ac_cv_objext
2595 ac_objext=$OBJEXT
2596 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2597 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2598 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607
2608 int
2609 main ()
2610 {
2611 #ifndef __GNUC__
2612        choke me
2613 #endif
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621   (eval $ac_compile) 2>conftest.er1
2622   ac_status=$?
2623   grep -v '^ *+' conftest.er1 >conftest.err
2624   rm -f conftest.er1
2625   cat conftest.err >&5
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); } &&
2628          { ac_try='test -z "$ac_c_werror_flag"
2629                          || test ! -s conftest.err'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; } &&
2635          { ac_try='test -s conftest.$ac_objext'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641   ac_compiler_gnu=yes
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 ac_compiler_gnu=no
2647 fi
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2650
2651 fi
2652 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2654 GCC=`test $ac_compiler_gnu = yes && echo yes`
2655 ac_test_CFLAGS=${CFLAGS+set}
2656 ac_save_CFLAGS=$CFLAGS
2657 CFLAGS="-g"
2658 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2659 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cc_g+set}" = set; then
2661   echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663   cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669
2670 int
2671 main ()
2672 {
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680   (eval $ac_compile) 2>conftest.er1
2681   ac_status=$?
2682   grep -v '^ *+' conftest.er1 >conftest.err
2683   rm -f conftest.er1
2684   cat conftest.err >&5
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); } &&
2687          { ac_try='test -z "$ac_c_werror_flag"
2688                          || test ! -s conftest.err'
2689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690   (eval $ac_try) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }; } &&
2694          { ac_try='test -s conftest.$ac_objext'
2695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; }; then
2700   ac_cv_prog_cc_g=yes
2701 else
2702   echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 ac_cv_prog_cc_g=no
2706 fi
2707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2708 fi
2709 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2710 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2711 if test "$ac_test_CFLAGS" = set; then
2712   CFLAGS=$ac_save_CFLAGS
2713 elif test $ac_cv_prog_cc_g = yes; then
2714   if test "$GCC" = yes; then
2715     CFLAGS="-g -O2"
2716   else
2717     CFLAGS="-g"
2718   fi
2719 else
2720   if test "$GCC" = yes; then
2721     CFLAGS="-O2"
2722   else
2723     CFLAGS=
2724   fi
2725 fi
2726 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2727 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2728 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731   ac_cv_prog_cc_stdc=no
2732 ac_save_CC=$CC
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h.  */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h.  */
2739 #include <stdarg.h>
2740 #include <stdio.h>
2741 #include <sys/types.h>
2742 #include <sys/stat.h>
2743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2744 struct buf { int x; };
2745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2746 static char *e (p, i)
2747      char **p;
2748      int i;
2749 {
2750   return p[i];
2751 }
2752 static char *f (char * (*g) (char **, int), char **p, ...)
2753 {
2754   char *s;
2755   va_list v;
2756   va_start (v,p);
2757   s = g (p, va_arg (v,int));
2758   va_end (v);
2759   return s;
2760 }
2761
2762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2763    function prototypes and stuff, but not '\xHH' hex character constants.
2764    These don't provoke an error unfortunately, instead are silently treated
2765    as 'x'.  The following induces an error, until -std1 is added to get
2766    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2767    array size at least.  It's necessary to write '\x00'==0 to get something
2768    that's true only with -std1.  */
2769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2770
2771 int test (int i, double x);
2772 struct s1 {int (*f) (int a);};
2773 struct s2 {int (*f) (double a);};
2774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2775 int argc;
2776 char **argv;
2777 int
2778 main ()
2779 {
2780 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2781   ;
2782   return 0;
2783 }
2784 _ACEOF
2785 # Don't try gcc -ansi; that turns off useful extensions and
2786 # breaks some systems' header files.
2787 # AIX                   -qlanglvl=ansi
2788 # Ultrix and OSF/1      -std1
2789 # HP-UX 10.20 and later -Ae
2790 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2791 # SVR4                  -Xc -D__EXTENSIONS__
2792 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2793 do
2794   CC="$ac_save_CC $ac_arg"
2795   rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797   (eval $ac_compile) 2>conftest.er1
2798   ac_status=$?
2799   grep -v '^ *+' conftest.er1 >conftest.err
2800   rm -f conftest.er1
2801   cat conftest.err >&5
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); } &&
2804          { ac_try='test -z "$ac_c_werror_flag"
2805                          || test ! -s conftest.err'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; } &&
2811          { ac_try='test -s conftest.$ac_objext'
2812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813   (eval $ac_try) 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; }; then
2817   ac_cv_prog_cc_stdc=$ac_arg
2818 break
2819 else
2820   echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2822
2823 fi
2824 rm -f conftest.err conftest.$ac_objext
2825 done
2826 rm -f conftest.$ac_ext conftest.$ac_objext
2827 CC=$ac_save_CC
2828
2829 fi
2830
2831 case "x$ac_cv_prog_cc_stdc" in
2832   x|xno)
2833     echo "$as_me:$LINENO: result: none needed" >&5
2834 echo "${ECHO_T}none needed" >&6 ;;
2835   *)
2836     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2837 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2838     CC="$CC $ac_cv_prog_cc_stdc" ;;
2839 esac
2840
2841 # Some people use a C++ compiler to compile C.  Since we use `exit',
2842 # in C++ we need to declare it.  In case someone uses the same compiler
2843 # for both compiling C and C++ we need to have the C++ compiler decide
2844 # the declaration of exit, since it's the most demanding environment.
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #ifndef __cplusplus
2847   choke me
2848 #endif
2849 _ACEOF
2850 rm -f conftest.$ac_objext
2851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2852   (eval $ac_compile) 2>conftest.er1
2853   ac_status=$?
2854   grep -v '^ *+' conftest.er1 >conftest.err
2855   rm -f conftest.er1
2856   cat conftest.err >&5
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); } &&
2859          { ac_try='test -z "$ac_c_werror_flag"
2860                          || test ! -s conftest.err'
2861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }; } &&
2866          { ac_try='test -s conftest.$ac_objext'
2867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868   (eval $ac_try) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); }; }; then
2872   for ac_declaration in \
2873    '' \
2874    'extern "C" void std::exit (int) throw (); using std::exit;' \
2875    'extern "C" void std::exit (int); using std::exit;' \
2876    'extern "C" void exit (int) throw ();' \
2877    'extern "C" void exit (int);' \
2878    'void exit (int);'
2879 do
2880   cat >conftest.$ac_ext <<_ACEOF
2881 /* confdefs.h.  */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h.  */
2886 $ac_declaration
2887 #include <stdlib.h>
2888 int
2889 main ()
2890 {
2891 exit (42);
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898   (eval $ac_compile) 2>conftest.er1
2899   ac_status=$?
2900   grep -v '^ *+' conftest.er1 >conftest.err
2901   rm -f conftest.er1
2902   cat conftest.err >&5
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); } &&
2905          { ac_try='test -z "$ac_c_werror_flag"
2906                          || test ! -s conftest.err'
2907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908   (eval $ac_try) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; } &&
2912          { ac_try='test -s conftest.$ac_objext'
2913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914   (eval $ac_try) 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }; }; then
2918   :
2919 else
2920   echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 continue
2924 fi
2925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926   cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 $ac_declaration
2933 int
2934 main ()
2935 {
2936 exit (42);
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943   (eval $ac_compile) 2>conftest.er1
2944   ac_status=$?
2945   grep -v '^ *+' conftest.er1 >conftest.err
2946   rm -f conftest.er1
2947   cat conftest.err >&5
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); } &&
2950          { ac_try='test -z "$ac_c_werror_flag"
2951                          || test ! -s conftest.err'
2952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953   (eval $ac_try) 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; } &&
2957          { ac_try='test -s conftest.$ac_objext'
2958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959   (eval $ac_try) 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; }; then
2963   break
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968 fi
2969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2970 done
2971 rm -f conftest*
2972 if test -n "$ac_declaration"; then
2973   echo '#ifdef __cplusplus' >>confdefs.h
2974   echo $ac_declaration      >>confdefs.h
2975   echo '#endif'             >>confdefs.h
2976 fi
2977
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 fi
2983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_ext=c
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989
2990 if test "x$CC" != xcc; then
2991   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2992 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2993 else
2994   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2995 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2996 fi
2997 set dummy $CC; ac_cc=`echo $2 |
2998                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2999 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 # Make sure it works both with $CC and with simple cc.
3018 # We do the test twice because some compilers refuse to overwrite an
3019 # existing .o file with -o, though they will create one.
3020 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3021 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); } &&
3026    test -f conftest.$ac_objext && { (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 then
3032   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3033   if test "x$CC" != xcc; then
3034     # Test first that cc exists at all.
3035     if { ac_try='cc -c conftest.$ac_ext >&5'
3036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037   (eval $ac_try) 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }; }; then
3041       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3042       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043   (eval $ac_try) 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); } &&
3047          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048   (eval $ac_try) 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); };
3052       then
3053         # cc works too.
3054         :
3055       else
3056         # cc exists but doesn't like -o.
3057         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3058       fi
3059     fi
3060   fi
3061 else
3062   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3063 fi
3064 rm -f conftest*
3065
3066 fi
3067 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3068   echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3070 else
3071   echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6
3073
3074 cat >>confdefs.h <<\_ACEOF
3075 #define NO_MINUS_C_MINUS_O 1
3076 _ACEOF
3077
3078 fi
3079
3080 # expand $ac_aux_dir to an absolute path
3081 am_aux_dir=`cd $ac_aux_dir && pwd`
3082
3083 # FIXME: we rely on the cache variable name because
3084 # there is no other way.
3085 set dummy $CC
3086 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3087 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3088    # Losing compiler, so override with the script.
3089    # FIXME: It is wrong to rewrite CC.
3090    # But if we don't then we get into trouble of one sort or another.
3091    # A longer-term fix would be to have automake use am__CC in this case,
3092    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3093    CC="$am_aux_dir/compile $CC"
3094 fi
3095
3096
3097
3098
3099 if test -n "$ac_tool_prefix"; then
3100   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3105   echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107   if test -n "$GNATBIND"; then
3108   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113   IFS=$as_save_IFS
3114   test -z "$as_dir" && as_dir=.
3115   for ac_exec_ext in '' $ac_executable_extensions; do
3116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119     break 2
3120   fi
3121 done
3122 done
3123
3124 fi
3125 fi
3126 GNATBIND=$ac_cv_prog_GNATBIND
3127 if test -n "$GNATBIND"; then
3128   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3129 echo "${ECHO_T}$GNATBIND" >&6
3130 else
3131   echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3133 fi
3134
3135 fi
3136 if test -z "$ac_cv_prog_GNATBIND"; then
3137   ac_ct_GNATBIND=$GNATBIND
3138   # Extract the first word of "gnatbind", so it can be a program name with args.
3139 set dummy gnatbind; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3143   echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145   if test -n "$ac_ct_GNATBIND"; then
3146   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153   for ac_exec_ext in '' $ac_executable_extensions; do
3154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160 done
3161
3162   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3163 fi
3164 fi
3165 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3166 if test -n "$ac_ct_GNATBIND"; then
3167   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3168 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3169 else
3170   echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3172 fi
3173
3174   GNATBIND=$ac_ct_GNATBIND
3175 else
3176   GNATBIND="$ac_cv_prog_GNATBIND"
3177 fi
3178
3179 if test -n "$ac_tool_prefix"; then
3180   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   if test -n "$GNATMAKE"; then
3188   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193   IFS=$as_save_IFS
3194   test -z "$as_dir" && as_dir=.
3195   for ac_exec_ext in '' $ac_executable_extensions; do
3196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199     break 2
3200   fi
3201 done
3202 done
3203
3204 fi
3205 fi
3206 GNATMAKE=$ac_cv_prog_GNATMAKE
3207 if test -n "$GNATMAKE"; then
3208   echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3209 echo "${ECHO_T}$GNATMAKE" >&6
3210 else
3211   echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3213 fi
3214
3215 fi
3216 if test -z "$ac_cv_prog_GNATMAKE"; then
3217   ac_ct_GNATMAKE=$GNATMAKE
3218   # Extract the first word of "gnatmake", so it can be a program name with args.
3219 set dummy gnatmake; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   if test -n "$ac_ct_GNATMAKE"; then
3226   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233   for ac_exec_ext in '' $ac_executable_extensions; do
3234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237     break 2
3238   fi
3239 done
3240 done
3241
3242   test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3243 fi
3244 fi
3245 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3246 if test -n "$ac_ct_GNATMAKE"; then
3247   echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3248 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254   GNATMAKE=$ac_ct_GNATMAKE
3255 else
3256   GNATMAKE="$ac_cv_prog_GNATMAKE"
3257 fi
3258
3259 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3260 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3261 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264   cat >conftest.adb <<EOF
3265 procedure conftest is begin null; end conftest;
3266 EOF
3267 acx_cv_cc_gcc_supports_ada=no
3268 # There is a bug in old released versions of GCC which causes the
3269 # driver to exit successfully when the appropriate language module
3270 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3271 # Therefore we must check for the error message as well as an
3272 # unsuccessful exit.
3273 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3274 # given a .adb file, but produce no object file.  So we must check
3275 # if an object file was really produced to guard against this.
3276 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3277 if test x"$errors" = x && test -f conftest.$ac_objext; then
3278   acx_cv_cc_gcc_supports_ada=yes
3279 fi
3280 rm -f conftest.*
3281 fi
3282 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3283 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3284
3285 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3286   have_gnat=yes
3287 else
3288   have_gnat=no
3289 fi
3290
3291
3292 # autoconf is lame and doesn't give us any substitution variable for this.
3293 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3294   NO_MINUS_C_MINUS_O=yes
3295 else
3296   OUTPUT_OPTION='-o $@'
3297 fi
3298
3299
3300
3301 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3302 # optimizations to be activated explicitly by the toplevel.
3303 case "$CC" in
3304   */prev-gcc/xgcc*) ;;
3305   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3306 esac
3307
3308
3309 # -------------------------
3310 # Check C compiler features
3311 # -------------------------
3312
3313
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3320 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3321 # On Suns, sometimes $CPP names a directory.
3322 if test -n "$CPP" && test -d "$CPP"; then
3323   CPP=
3324 fi
3325 if test -z "$CPP"; then
3326   if test "${ac_cv_prog_CPP+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329       # Double quotes because CPP needs to be expanded
3330     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3331     do
3332       ac_preproc_ok=false
3333 for ac_c_preproc_warn_flag in '' yes
3334 do
3335   # Use a header file that comes with gcc, so configuring glibc
3336   # with a fresh cross-compiler works.
3337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338   # <limits.h> exists even on freestanding compilers.
3339   # On the NeXT, cc -E runs the code through the compiler's parser,
3340   # not just through cpp. "Syntax error" is here to catch this case.
3341   cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #ifdef __STDC__
3348 # include <limits.h>
3349 #else
3350 # include <assert.h>
3351 #endif
3352                      Syntax error
3353 _ACEOF
3354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3356   ac_status=$?
3357   grep -v '^ *+' conftest.er1 >conftest.err
3358   rm -f conftest.er1
3359   cat conftest.err >&5
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); } >/dev/null; then
3362   if test -s conftest.err; then
3363     ac_cpp_err=$ac_c_preproc_warn_flag
3364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365   else
3366     ac_cpp_err=
3367   fi
3368 else
3369   ac_cpp_err=yes
3370 fi
3371 if test -z "$ac_cpp_err"; then
3372   :
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377   # Broken: fails on valid input.
3378 continue
3379 fi
3380 rm -f conftest.err conftest.$ac_ext
3381
3382   # OK, works on sane cases.  Now check whether non-existent headers
3383   # can be detected and how.
3384   cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h.  */
3390 #include <ac_nonexistent.h>
3391 _ACEOF
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394   ac_status=$?
3395   grep -v '^ *+' conftest.er1 >conftest.err
3396   rm -f conftest.er1
3397   cat conftest.err >&5
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); } >/dev/null; then
3400   if test -s conftest.err; then
3401     ac_cpp_err=$ac_c_preproc_warn_flag
3402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3403   else
3404     ac_cpp_err=
3405   fi
3406 else
3407   ac_cpp_err=yes
3408 fi
3409 if test -z "$ac_cpp_err"; then
3410   # Broken: success on invalid input.
3411 continue
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Passes both tests.
3417 ac_preproc_ok=:
3418 break
3419 fi
3420 rm -f conftest.err conftest.$ac_ext
3421
3422 done
3423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3424 rm -f conftest.err conftest.$ac_ext
3425 if $ac_preproc_ok; then
3426   break
3427 fi
3428
3429     done
3430     ac_cv_prog_CPP=$CPP
3431
3432 fi
3433   CPP=$ac_cv_prog_CPP
3434 else
3435   ac_cv_prog_CPP=$CPP
3436 fi
3437 echo "$as_me:$LINENO: result: $CPP" >&5
3438 echo "${ECHO_T}$CPP" >&6
3439 ac_preproc_ok=false
3440 for ac_c_preproc_warn_flag in '' yes
3441 do
3442   # Use a header file that comes with gcc, so configuring glibc
3443   # with a fresh cross-compiler works.
3444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445   # <limits.h> exists even on freestanding compilers.
3446   # On the NeXT, cc -E runs the code through the compiler's parser,
3447   # not just through cpp. "Syntax error" is here to catch this case.
3448   cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h.  */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h.  */
3454 #ifdef __STDC__
3455 # include <limits.h>
3456 #else
3457 # include <assert.h>
3458 #endif
3459                      Syntax error
3460 _ACEOF
3461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3463   ac_status=$?
3464   grep -v '^ *+' conftest.er1 >conftest.err
3465   rm -f conftest.er1
3466   cat conftest.err >&5
3467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468   (exit $ac_status); } >/dev/null; then
3469   if test -s conftest.err; then
3470     ac_cpp_err=$ac_c_preproc_warn_flag
3471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3472   else
3473     ac_cpp_err=
3474   fi
3475 else
3476   ac_cpp_err=yes
3477 fi
3478 if test -z "$ac_cpp_err"; then
3479   :
3480 else
3481   echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484   # Broken: fails on valid input.
3485 continue
3486 fi
3487 rm -f conftest.err conftest.$ac_ext
3488
3489   # OK, works on sane cases.  Now check whether non-existent headers
3490   # can be detected and how.
3491   cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h.  */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h.  */
3497 #include <ac_nonexistent.h>
3498 _ACEOF
3499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3501   ac_status=$?
3502   grep -v '^ *+' conftest.er1 >conftest.err
3503   rm -f conftest.er1
3504   cat conftest.err >&5
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); } >/dev/null; then
3507   if test -s conftest.err; then
3508     ac_cpp_err=$ac_c_preproc_warn_flag
3509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3510   else
3511     ac_cpp_err=
3512   fi
3513 else
3514   ac_cpp_err=yes
3515 fi
3516 if test -z "$ac_cpp_err"; then
3517   # Broken: success on invalid input.
3518 continue
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523   # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3526 fi
3527 rm -f conftest.err conftest.$ac_ext
3528
3529 done
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then
3533   :
3534 else
3535   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3536 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details." >&5
3539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&2;}
3541    { (exit 1); exit 1; }; }; }
3542 fi
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550
3551 echo "$as_me:$LINENO: checking for egrep" >&5
3552 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3553 if test "${ac_cv_prog_egrep+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3557     then ac_cv_prog_egrep='grep -E'
3558     else ac_cv_prog_egrep='egrep'
3559     fi
3560 fi
3561 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3562 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3563  EGREP=$ac_cv_prog_egrep
3564
3565
3566 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3568 if test "${ac_cv_header_stdc+set}" = set; then
3569   echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571   cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h.  */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h.  */
3577 #include <stdlib.h>
3578 #include <stdarg.h>
3579 #include <string.h>
3580 #include <float.h>
3581
3582 int
3583 main ()
3584 {
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592   (eval $ac_compile) 2>conftest.er1
3593   ac_status=$?
3594   grep -v '^ *+' conftest.er1 >conftest.err
3595   rm -f conftest.er1
3596   cat conftest.err >&5
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); } &&
3599          { ac_try='test -z "$ac_c_werror_flag"
3600                          || test ! -s conftest.err'
3601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602   (eval $ac_try) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }; } &&
3606          { ac_try='test -s conftest.$ac_objext'
3607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608   (eval $ac_try) 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }; }; then
3612   ac_cv_header_stdc=yes
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 ac_cv_header_stdc=no
3618 fi
3619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620
3621 if test $ac_cv_header_stdc = yes; then
3622   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623   cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629 #include <string.h>
3630
3631 _ACEOF
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633   $EGREP "memchr" >/dev/null 2>&1; then
3634   :
3635 else
3636   ac_cv_header_stdc=no
3637 fi
3638 rm -f conftest*
3639
3640 fi
3641
3642 if test $ac_cv_header_stdc = yes; then
3643   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644   cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650 #include <stdlib.h>
3651
3652 _ACEOF
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654   $EGREP "free" >/dev/null 2>&1; then
3655   :
3656 else
3657   ac_cv_header_stdc=no
3658 fi
3659 rm -f conftest*
3660
3661 fi
3662
3663 if test $ac_cv_header_stdc = yes; then
3664   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3665   if test "$cross_compiling" = yes; then
3666   :
3667 else
3668   cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 #include <ctype.h>
3675 #if ((' ' & 0x0FF) == 0x020)
3676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3678 #else
3679 # define ISLOWER(c) \
3680                    (('a' <= (c) && (c) <= 'i') \
3681                      || ('j' <= (c) && (c) <= 'r') \
3682                      || ('s' <= (c) && (c) <= 'z'))
3683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3684 #endif
3685
3686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3687 int
3688 main ()
3689 {
3690   int i;
3691   for (i = 0; i < 256; i++)
3692     if (XOR (islower (i), ISLOWER (i))
3693         || toupper (i) != TOUPPER (i))
3694       exit(2);
3695   exit (0);
3696 }
3697 _ACEOF
3698 rm -f conftest$ac_exeext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3700   (eval $ac_link) 2>&5
3701   ac_status=$?
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705   (eval $ac_try) 2>&5
3706   ac_status=$?
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); }; }; then
3709   :
3710 else
3711   echo "$as_me: program exited with status $ac_status" >&5
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 ( exit $ac_status )
3716 ac_cv_header_stdc=no
3717 fi
3718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3719 fi
3720 fi
3721 fi
3722 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3723 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3724 if test $ac_cv_header_stdc = yes; then
3725
3726 cat >>confdefs.h <<\_ACEOF
3727 #define STDC_HEADERS 1
3728 _ACEOF
3729
3730 fi
3731
3732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3743                   inttypes.h stdint.h unistd.h
3744 do
3745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h.  */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h.  */
3757 $ac_includes_default
3758
3759 #include <$ac_header>
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3763   (eval $ac_compile) 2>conftest.er1
3764   ac_status=$?
3765   grep -v '^ *+' conftest.er1 >conftest.err
3766   rm -f conftest.er1
3767   cat conftest.err >&5
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } &&
3770          { ac_try='test -z "$ac_c_werror_flag"
3771                          || test ! -s conftest.err'
3772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773   (eval $ac_try) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }; } &&
3777          { ac_try='test -s conftest.$ac_objext'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; }; then
3783   eval "$as_ac_Header=yes"
3784 else
3785   echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 eval "$as_ac_Header=no"
3789 fi
3790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3791 fi
3792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3795   cat >>confdefs.h <<_ACEOF
3796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3797 _ACEOF
3798
3799 fi
3800
3801 done
3802
3803
3804
3805   if test "${ac_cv_header_minix_config_h+set}" = set; then
3806   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3807 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3808 if test "${ac_cv_header_minix_config_h+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 fi
3811 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3812 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3813 else
3814   # Is the header compilable?
3815 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3816 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h.  */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h.  */
3823 $ac_includes_default
3824 #include <minix/config.h>
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828   (eval $ac_compile) 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } &&
3835          { ac_try='test -z "$ac_c_werror_flag"
3836                          || test ! -s conftest.err'
3837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838   (eval $ac_try) 2>&5
3839   ac_status=$?
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); }; } &&
3842          { ac_try='test -s conftest.$ac_objext'
3843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844   (eval $ac_try) 2>&5
3845   ac_status=$?
3846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847   (exit $ac_status); }; }; then
3848   ac_header_compiler=yes
3849 else
3850   echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3852
3853 ac_header_compiler=no
3854 fi
3855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3857 echo "${ECHO_T}$ac_header_compiler" >&6
3858
3859 # Is the header present?
3860 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3861 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h.  */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h.  */
3868 #include <minix/config.h>
3869 _ACEOF
3870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3872   ac_status=$?
3873   grep -v '^ *+' conftest.er1 >conftest.err
3874   rm -f conftest.er1
3875   cat conftest.err >&5
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); } >/dev/null; then
3878   if test -s conftest.err; then
3879     ac_cpp_err=$ac_c_preproc_warn_flag
3880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3881   else
3882     ac_cpp_err=
3883   fi
3884 else
3885   ac_cpp_err=yes
3886 fi
3887 if test -z "$ac_cpp_err"; then
3888   ac_header_preproc=yes
3889 else
3890   echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3892
3893   ac_header_preproc=no
3894 fi
3895 rm -f conftest.err conftest.$ac_ext
3896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3897 echo "${ECHO_T}$ac_header_preproc" >&6
3898
3899 # So?  What about this header?
3900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3901   yes:no: )
3902     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3903 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3904     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3905 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3906     ac_header_preproc=yes
3907     ;;
3908   no:yes:* )
3909     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3910 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3911     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3912 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3913     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3914 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3915     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3916 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3917     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3918 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3919     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3920 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3921     (
3922       cat <<\_ASBOX
3923 ## ------------------------------------------ ##
3924 ## Report this to the AC_PACKAGE_NAME lists.  ##
3925 ## ------------------------------------------ ##
3926 _ASBOX
3927     ) |
3928       sed "s/^/$as_me: WARNING:     /" >&2
3929     ;;
3930 esac
3931 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3932 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3933 if test "${ac_cv_header_minix_config_h+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   ac_cv_header_minix_config_h=$ac_header_preproc
3937 fi
3938 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3939 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3940
3941 fi
3942 if test $ac_cv_header_minix_config_h = yes; then
3943   MINIX=yes
3944 else
3945   MINIX=
3946 fi
3947
3948
3949   if test "$MINIX" = yes; then
3950
3951 cat >>confdefs.h <<\_ACEOF
3952 #define _POSIX_SOURCE 1
3953 _ACEOF
3954
3955
3956 cat >>confdefs.h <<\_ACEOF
3957 #define _POSIX_1_SOURCE 2
3958 _ACEOF
3959
3960
3961 cat >>confdefs.h <<\_ACEOF
3962 #define _MINIX 1
3963 _ACEOF
3964
3965   fi
3966
3967
3968
3969   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3970 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3971 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3972   echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974   cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h.  */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h.  */
3980
3981 #         define __EXTENSIONS__ 1
3982           $ac_includes_default
3983 int
3984 main ()
3985 {
3986
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993   (eval $ac_compile) 2>conftest.er1
3994   ac_status=$?
3995   grep -v '^ *+' conftest.er1 >conftest.err
3996   rm -f conftest.er1
3997   cat conftest.err >&5
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); } &&
4000          { ac_try='test -z "$ac_c_werror_flag"
4001                          || test ! -s conftest.err'
4002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003   (eval $ac_try) 2>&5
4004   ac_status=$?
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); }; } &&
4007          { ac_try='test -s conftest.$ac_objext'
4008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009   (eval $ac_try) 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); }; }; then
4013   ac_cv_safe_to_define___extensions__=yes
4014 else
4015   echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4017
4018 ac_cv_safe_to_define___extensions__=no
4019 fi
4020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4021 fi
4022 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4023 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4024   test $ac_cv_safe_to_define___extensions__ = yes &&
4025     cat >>confdefs.h <<\_ACEOF
4026 #define __EXTENSIONS__ 1
4027 _ACEOF
4028
4029   cat >>confdefs.h <<\_ACEOF
4030 #define _ALL_SOURCE 1
4031 _ACEOF
4032
4033   cat >>confdefs.h <<\_ACEOF
4034 #define _GNU_SOURCE 1
4035 _ACEOF
4036
4037   cat >>confdefs.h <<\_ACEOF
4038 #define _POSIX_PTHREAD_SEMANTICS 1
4039 _ACEOF
4040
4041   cat >>confdefs.h <<\_ACEOF
4042 #define _TANDEM_SOURCE 1
4043 _ACEOF
4044
4045
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4055   CPP=
4056 fi
4057 if test -z "$CPP"; then
4058   if test "${ac_cv_prog_CPP+set}" = set; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061       # Double quotes because CPP needs to be expanded
4062     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4063     do
4064       ac_preproc_ok=false
4065 for ac_c_preproc_warn_flag in '' yes
4066 do
4067   # Use a header file that comes with gcc, so configuring glibc
4068   # with a fresh cross-compiler works.
4069   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070   # <limits.h> exists even on freestanding compilers.
4071   # On the NeXT, cc -E runs the code through the compiler's parser,
4072   # not just through cpp. "Syntax error" is here to catch this case.
4073   cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 #ifdef __STDC__
4080 # include <limits.h>
4081 #else
4082 # include <assert.h>
4083 #endif
4084                      Syntax error
4085 _ACEOF
4086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } >/dev/null; then
4094   if test -s conftest.err; then
4095     ac_cpp_err=$ac_c_preproc_warn_flag
4096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097   else
4098     ac_cpp_err=
4099   fi
4100 else
4101   ac_cpp_err=yes
4102 fi
4103 if test -z "$ac_cpp_err"; then
4104   :
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109   # Broken: fails on valid input.
4110 continue
4111 fi
4112 rm -f conftest.err conftest.$ac_ext
4113
4114   # OK, works on sane cases.  Now check whether non-existent headers
4115   # can be detected and how.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #include <ac_nonexistent.h>
4123 _ACEOF
4124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4126   ac_status=$?
4127   grep -v '^ *+' conftest.er1 >conftest.err
4128   rm -f conftest.er1
4129   cat conftest.err >&5
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); } >/dev/null; then
4132   if test -s conftest.err; then
4133     ac_cpp_err=$ac_c_preproc_warn_flag
4134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4135   else
4136     ac_cpp_err=
4137   fi
4138 else
4139   ac_cpp_err=yes
4140 fi
4141 if test -z "$ac_cpp_err"; then
4142   # Broken: success on invalid input.
4143 continue
4144 else
4145   echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148   # Passes both tests.
4149 ac_preproc_ok=:
4150 break
4151 fi
4152 rm -f conftest.err conftest.$ac_ext
4153
4154 done
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then
4158   break
4159 fi
4160
4161     done
4162     ac_cv_prog_CPP=$CPP
4163
4164 fi
4165   CPP=$ac_cv_prog_CPP
4166 else
4167   ac_cv_prog_CPP=$CPP
4168 fi
4169 echo "$as_me:$LINENO: result: $CPP" >&5
4170 echo "${ECHO_T}$CPP" >&6
4171 ac_preproc_ok=false
4172 for ac_c_preproc_warn_flag in '' yes
4173 do
4174   # Use a header file that comes with gcc, so configuring glibc
4175   # with a fresh cross-compiler works.
4176   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177   # <limits.h> exists even on freestanding compilers.
4178   # On the NeXT, cc -E runs the code through the compiler's parser,
4179   # not just through cpp. "Syntax error" is here to catch this case.
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191                      Syntax error
4192 _ACEOF
4193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4195   ac_status=$?
4196   grep -v '^ *+' conftest.er1 >conftest.err
4197   rm -f conftest.er1
4198   cat conftest.err >&5
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); } >/dev/null; then
4201   if test -s conftest.err; then
4202     ac_cpp_err=$ac_c_preproc_warn_flag
4203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4204   else
4205     ac_cpp_err=
4206   fi
4207 else
4208   ac_cpp_err=yes
4209 fi
4210 if test -z "$ac_cpp_err"; then
4211   :
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216   # Broken: fails on valid input.
4217 continue
4218 fi
4219 rm -f conftest.err conftest.$ac_ext
4220
4221   # OK, works on sane cases.  Now check whether non-existent headers
4222   # can be detected and how.
4223   cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h.  */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h.  */
4229 #include <ac_nonexistent.h>
4230 _ACEOF
4231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } >/dev/null; then
4239   if test -s conftest.err; then
4240     ac_cpp_err=$ac_c_preproc_warn_flag
4241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4242   else
4243     ac_cpp_err=
4244   fi
4245 else
4246   ac_cpp_err=yes
4247 fi
4248 if test -z "$ac_cpp_err"; then
4249   # Broken: success on invalid input.
4250 continue
4251 else
4252   echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255   # Passes both tests.
4256 ac_preproc_ok=:
4257 break
4258 fi
4259 rm -f conftest.err conftest.$ac_ext
4260
4261 done
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4265   :
4266 else
4267   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4268 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log' for more details." >&5
4271 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4272 See \`config.log' for more details." >&2;}
4273    { (exit 1); exit 1; }; }; }
4274 fi
4275
4276 ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281
4282 echo "$as_me:$LINENO: checking for inline" >&5
4283 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4284 if test "${ac_cv_c_inline+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   ac_cv_c_inline=no
4288 for ac_kw in inline __inline__ __inline; do
4289   cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295 #ifndef __cplusplus
4296 typedef int foo_t;
4297 static $ac_kw foo_t static_foo () {return 0; }
4298 $ac_kw foo_t foo () {return 0; }
4299 #endif
4300
4301 _ACEOF
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304   (eval $ac_compile) 2>conftest.er1
4305   ac_status=$?
4306   grep -v '^ *+' conftest.er1 >conftest.err
4307   rm -f conftest.er1
4308   cat conftest.err >&5
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } &&
4311          { ac_try='test -z "$ac_c_werror_flag"
4312                          || test ! -s conftest.err'
4313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314   (eval $ac_try) 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); }; } &&
4318          { ac_try='test -s conftest.$ac_objext'
4319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320   (eval $ac_try) 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; }; then
4324   ac_cv_c_inline=$ac_kw; break
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 fi
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331 done
4332
4333 fi
4334 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4335 echo "${ECHO_T}$ac_cv_c_inline" >&6
4336
4337
4338 case $ac_cv_c_inline in
4339   inline | yes) ;;
4340   *)
4341     case $ac_cv_c_inline in
4342       no) ac_val=;;
4343       *) ac_val=$ac_cv_c_inline;;
4344     esac
4345     cat >>confdefs.h <<_ACEOF
4346 #ifndef __cplusplus
4347 #define inline $ac_val
4348 #endif
4349 _ACEOF
4350     ;;
4351 esac
4352
4353
4354 # sizeof(char) is 1 by definition.
4355 echo "$as_me:$LINENO: checking for void *" >&5
4356 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4357 if test "${ac_cv_type_void_p+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h.  */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h.  */
4366 $ac_includes_default
4367 int
4368 main ()
4369 {
4370 if ((void * *) 0)
4371   return 0;
4372 if (sizeof (void *))
4373   return 0;
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 rm -f conftest.$ac_objext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380   (eval $ac_compile) 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } &&
4387          { ac_try='test -z "$ac_c_werror_flag"
4388                          || test ! -s conftest.err'
4389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390   (eval $ac_try) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); }; } &&
4394          { ac_try='test -s conftest.$ac_objext'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   ac_cv_type_void_p=yes
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 ac_cv_type_void_p=no
4406 fi
4407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4408 fi
4409 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4410 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4411
4412 echo "$as_me:$LINENO: checking size of void *" >&5
4413 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4414 if test "${ac_cv_sizeof_void_p+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   if test "$ac_cv_type_void_p" = yes; then
4418   # The cast to unsigned long works around a bug in the HP C Compiler
4419   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4420   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4421   # This bug is HP SR number 8606223364.
4422   if test "$cross_compiling" = yes; then
4423   # Depending upon the size, compute the lo and hi bounds.
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h.  */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h.  */
4430 $ac_includes_default
4431 int
4432 main ()
4433 {
4434 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4435 test_array [0] = 0
4436
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443   (eval $ac_compile) 2>conftest.er1
4444   ac_status=$?
4445   grep -v '^ *+' conftest.er1 >conftest.err
4446   rm -f conftest.er1
4447   cat conftest.err >&5
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); } &&
4450          { ac_try='test -z "$ac_c_werror_flag"
4451                          || test ! -s conftest.err'
4452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453   (eval $ac_try) 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); }; } &&
4457          { ac_try='test -s conftest.$ac_objext'
4458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459   (eval $ac_try) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }; }; then
4463   ac_lo=0 ac_mid=0
4464   while :; do
4465     cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h.  */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h.  */
4471 $ac_includes_default
4472 int
4473 main ()
4474 {
4475 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4476 test_array [0] = 0
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 rm -f conftest.$ac_objext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484   (eval $ac_compile) 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } &&
4491          { ac_try='test -z "$ac_c_werror_flag"
4492                          || test ! -s conftest.err'
4493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494   (eval $ac_try) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; } &&
4498          { ac_try='test -s conftest.$ac_objext'
4499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500   (eval $ac_try) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; }; then
4504   ac_hi=$ac_mid; break
4505 else
4506   echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509 ac_lo=`expr $ac_mid + 1`
4510                     if test $ac_lo -le $ac_mid; then
4511                       ac_lo= ac_hi=
4512                       break
4513                     fi
4514                     ac_mid=`expr 2 '*' $ac_mid + 1`
4515 fi
4516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4517   done
4518 else
4519   echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4521
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 $ac_includes_default
4529 int
4530 main ()
4531 {
4532 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4533 test_array [0] = 0
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541   (eval $ac_compile) 2>conftest.er1
4542   ac_status=$?
4543   grep -v '^ *+' conftest.er1 >conftest.err
4544   rm -f conftest.er1
4545   cat conftest.err >&5
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); } &&
4548          { ac_try='test -z "$ac_c_werror_flag"
4549                          || test ! -s conftest.err'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; } &&
4555          { ac_try='test -s conftest.$ac_objext'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   ac_hi=-1 ac_mid=-1
4562   while :; do
4563     cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569 $ac_includes_default
4570 int
4571 main ()
4572 {
4573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4574 test_array [0] = 0
4575
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582   (eval $ac_compile) 2>conftest.er1
4583   ac_status=$?
4584   grep -v '^ *+' conftest.er1 >conftest.err
4585   rm -f conftest.er1
4586   cat conftest.err >&5
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); } &&
4589          { ac_try='test -z "$ac_c_werror_flag"
4590                          || test ! -s conftest.err'
4591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592   (eval $ac_try) 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }; } &&
4596          { ac_try='test -s conftest.$ac_objext'
4597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598   (eval $ac_try) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); }; }; then
4602   ac_lo=$ac_mid; break
4603 else
4604   echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 ac_hi=`expr '(' $ac_mid ')' - 1`
4608                        if test $ac_mid -le $ac_hi; then
4609                          ac_lo= ac_hi=
4610                          break
4611                        fi
4612                        ac_mid=`expr 2 '*' $ac_mid`
4613 fi
4614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4615   done
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 ac_lo= ac_hi=
4621 fi
4622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4623 fi
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 # Binary search between lo and hi bounds.
4626 while test "x$ac_lo" != "x$ac_hi"; do
4627   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4628   cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634 $ac_includes_default
4635 int
4636 main ()
4637 {
4638 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4639 test_array [0] = 0
4640
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647   (eval $ac_compile) 2>conftest.er1
4648   ac_status=$?
4649   grep -v '^ *+' conftest.er1 >conftest.err
4650   rm -f conftest.er1
4651   cat conftest.err >&5
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); } &&
4654          { ac_try='test -z "$ac_c_werror_flag"
4655                          || test ! -s conftest.err'
4656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657   (eval $ac_try) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); }; } &&
4661          { ac_try='test -s conftest.$ac_objext'
4662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663   (eval $ac_try) 2>&5
4664   ac_status=$?
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); }; }; then
4667   ac_hi=$ac_mid
4668 else
4669   echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 ac_lo=`expr '(' $ac_mid ')' + 1`
4673 fi
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4675 done
4676 case $ac_lo in
4677 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4678 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4679 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4681 See \`config.log' for more details." >&5
4682 echo "$as_me: error: cannot compute sizeof (void *), 77
4683 See \`config.log' for more details." >&2;}
4684    { (exit 1); exit 1; }; }; } ;;
4685 esac
4686 else
4687   if test "$cross_compiling" = yes; then
4688   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4689 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4691 See \`config.log' for more details." >&5
4692 echo "$as_me: error: cannot run test program while cross compiling
4693 See \`config.log' for more details." >&2;}
4694    { (exit 1); exit 1; }; }; }
4695 else
4696   cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h.  */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h.  */
4702 $ac_includes_default
4703 long longval () { return (long) (sizeof (void *)); }
4704 unsigned long ulongval () { return (long) (sizeof (void *)); }
4705 #include <stdio.h>
4706 #include <stdlib.h>
4707 int
4708 main ()
4709 {
4710
4711   FILE *f = fopen ("conftest.val", "w");
4712   if (! f)
4713     exit (1);
4714   if (((long) (sizeof (void *))) < 0)
4715     {
4716       long i = longval ();
4717       if (i != ((long) (sizeof (void *))))
4718         exit (1);
4719       fprintf (f, "%ld\n", i);
4720     }
4721   else
4722     {
4723       unsigned long i = ulongval ();
4724       if (i != ((long) (sizeof (void *))))
4725         exit (1);
4726       fprintf (f, "%lu\n", i);
4727     }
4728   exit (ferror (f) || fclose (f) != 0);
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest$ac_exeext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736   (eval $ac_link) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; }; then
4745   ac_cv_sizeof_void_p=`cat conftest.val`
4746 else
4747   echo "$as_me: program exited with status $ac_status" >&5
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 ( exit $ac_status )
4752 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4753 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4755 See \`config.log' for more details." >&5
4756 echo "$as_me: error: cannot compute sizeof (void *), 77
4757 See \`config.log' for more details." >&2;}
4758    { (exit 1); exit 1; }; }; }
4759 fi
4760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4761 fi
4762 fi
4763 rm -f conftest.val
4764 else
4765   ac_cv_sizeof_void_p=0
4766 fi
4767 fi
4768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4769 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4770 cat >>confdefs.h <<_ACEOF
4771 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4772 _ACEOF
4773
4774
4775 echo "$as_me:$LINENO: checking for short" >&5
4776 echo $ECHO_N "checking for short... $ECHO_C" >&6
4777 if test "${ac_cv_type_short+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h.  */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h.  */
4786 $ac_includes_default
4787 int
4788 main ()
4789 {
4790 if ((short *) 0)
4791   return 0;
4792 if (sizeof (short))
4793   return 0;
4794   ;
4795   return 0;
4796 }
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800   (eval $ac_compile) 2>conftest.er1
4801   ac_status=$?
4802   grep -v '^ *+' conftest.er1 >conftest.err
4803   rm -f conftest.er1
4804   cat conftest.err >&5
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } &&
4807          { ac_try='test -z "$ac_c_werror_flag"
4808                          || test ! -s conftest.err'
4809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810   (eval $ac_try) 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; } &&
4814          { ac_try='test -s conftest.$ac_objext'
4815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816   (eval $ac_try) 2>&5
4817   ac_status=$?
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); }; }; then
4820   ac_cv_type_short=yes
4821 else
4822   echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825 ac_cv_type_short=no
4826 fi
4827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4828 fi
4829 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4830 echo "${ECHO_T}$ac_cv_type_short" >&6
4831
4832 echo "$as_me:$LINENO: checking size of short" >&5
4833 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4834 if test "${ac_cv_sizeof_short+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   if test "$ac_cv_type_short" = yes; then
4838   # The cast to unsigned long works around a bug in the HP C Compiler
4839   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4840   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4841   # This bug is HP SR number 8606223364.
4842   if test "$cross_compiling" = yes; then
4843   # Depending upon the size, compute the lo and hi bounds.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850 $ac_includes_default
4851 int
4852 main ()
4853 {
4854 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4855 test_array [0] = 0
4856
4857   ;
4858   return 0;
4859 }
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863   (eval $ac_compile) 2>conftest.er1
4864   ac_status=$?
4865   grep -v '^ *+' conftest.er1 >conftest.err
4866   rm -f conftest.er1
4867   cat conftest.err >&5
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } &&
4870          { ac_try='test -z "$ac_c_werror_flag"
4871                          || test ! -s conftest.err'
4872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873   (eval $ac_try) 2>&5
4874   ac_status=$?
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); }; } &&
4877          { ac_try='test -s conftest.$ac_objext'
4878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879   (eval $ac_try) 2>&5
4880   ac_status=$?
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); }; }; then
4883   ac_lo=0 ac_mid=0
4884   while :; do
4885     cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h.  */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h.  */
4891 $ac_includes_default
4892 int
4893 main ()
4894 {
4895 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4896 test_array [0] = 0
4897
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904   (eval $ac_compile) 2>conftest.er1
4905   ac_status=$?
4906   grep -v '^ *+' conftest.er1 >conftest.err
4907   rm -f conftest.er1
4908   cat conftest.err >&5
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); } &&
4911          { ac_try='test -z "$ac_c_werror_flag"
4912                          || test ! -s conftest.err'
4913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914   (eval $ac_try) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); }; } &&
4918          { ac_try='test -s conftest.$ac_objext'
4919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920   (eval $ac_try) 2>&5
4921   ac_status=$?
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); }; }; then
4924   ac_hi=$ac_mid; break
4925 else
4926   echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929 ac_lo=`expr $ac_mid + 1`
4930                     if test $ac_lo -le $ac_mid; then
4931                       ac_lo= ac_hi=
4932                       break
4933                     fi
4934                     ac_mid=`expr 2 '*' $ac_mid + 1`
4935 fi
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937   done
4938 else
4939   echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948 $ac_includes_default
4949 int
4950 main ()
4951 {
4952 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4953 test_array [0] = 0
4954
4955   ;
4956   return 0;
4957 }
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961   (eval $ac_compile) 2>conftest.er1
4962   ac_status=$?
4963   grep -v '^ *+' conftest.er1 >conftest.err
4964   rm -f conftest.er1
4965   cat conftest.err >&5
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } &&
4968          { ac_try='test -z "$ac_c_werror_flag"
4969                          || test ! -s conftest.err'
4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971   (eval $ac_try) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); }; } &&
4975          { ac_try='test -s conftest.$ac_objext'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; }; then
4981   ac_hi=-1 ac_mid=-1
4982   while :; do
4983     cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h.  */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h.  */
4989 $ac_includes_default
4990 int
4991 main ()
4992 {
4993 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4994 test_array [0] = 0
4995
4996   ;
4997   return 0;
4998 }
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002   (eval $ac_compile) 2>conftest.er1
5003   ac_status=$?
5004   grep -v '^ *+' conftest.er1 >conftest.err
5005   rm -f conftest.er1
5006   cat conftest.err >&5
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); } &&
5009          { ac_try='test -z "$ac_c_werror_flag"
5010                          || test ! -s conftest.err'
5011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012   (eval $ac_try) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; } &&
5016          { ac_try='test -s conftest.$ac_objext'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; }; then
5022   ac_lo=$ac_mid; break
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 ac_hi=`expr '(' $ac_mid ')' - 1`
5028                        if test $ac_mid -le $ac_hi; then
5029                          ac_lo= ac_hi=
5030                          break
5031                        fi
5032                        ac_mid=`expr 2 '*' $ac_mid`
5033 fi
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035   done
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 ac_lo= ac_hi=
5041 fi
5042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5043 fi
5044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5045 # Binary search between lo and hi bounds.
5046 while test "x$ac_lo" != "x$ac_hi"; do
5047   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5048   cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h.  */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h.  */
5054 $ac_includes_default
5055 int
5056 main ()
5057 {
5058 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5059 test_array [0] = 0
5060
5061   ;
5062   return 0;
5063 }
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067   (eval $ac_compile) 2>conftest.er1
5068   ac_status=$?
5069   grep -v '^ *+' conftest.er1 >conftest.err
5070   rm -f conftest.er1
5071   cat conftest.err >&5
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); } &&
5074          { ac_try='test -z "$ac_c_werror_flag"
5075                          || test ! -s conftest.err'
5076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077   (eval $ac_try) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }; } &&
5081          { ac_try='test -s conftest.$ac_objext'
5082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083   (eval $ac_try) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); }; }; then
5087   ac_hi=$ac_mid
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 ac_lo=`expr '(' $ac_mid ')' + 1`
5093 fi
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 done
5096 case $ac_lo in
5097 ?*) ac_cv_sizeof_short=$ac_lo;;
5098 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5099 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5101 See \`config.log' for more details." >&5
5102 echo "$as_me: error: cannot compute sizeof (short), 77
5103 See \`config.log' for more details." >&2;}
5104    { (exit 1); exit 1; }; }; } ;;
5105 esac
5106 else
5107   if test "$cross_compiling" = yes; then
5108   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5109 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5110 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot run test program while cross compiling
5113 See \`config.log' for more details." >&2;}
5114    { (exit 1); exit 1; }; }; }
5115 else
5116   cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h.  */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h.  */
5122 $ac_includes_default
5123 long longval () { return (long) (sizeof (short)); }
5124 unsigned long ulongval () { return (long) (sizeof (short)); }
5125 #include <stdio.h>
5126 #include <stdlib.h>
5127 int
5128 main ()
5129 {
5130
5131   FILE *f = fopen ("conftest.val", "w");
5132   if (! f)
5133     exit (1);
5134   if (((long) (sizeof (short))) < 0)
5135     {
5136       long i = longval ();
5137       if (i != ((long) (sizeof (short))))
5138         exit (1);
5139       fprintf (f, "%ld\n", i);
5140     }
5141   else
5142     {
5143       unsigned long i = ulongval ();
5144       if (i != ((long) (sizeof (short))))
5145         exit (1);
5146       fprintf (f, "%lu\n", i);
5147     }
5148   exit (ferror (f) || fclose (f) != 0);
5149
5150   ;
5151   return 0;
5152 }
5153 _ACEOF
5154 rm -f conftest$ac_exeext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156   (eval $ac_link) 2>&5
5157   ac_status=$?
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161   (eval $ac_try) 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); }; }; then
5165   ac_cv_sizeof_short=`cat conftest.val`
5166 else
5167   echo "$as_me: program exited with status $ac_status" >&5
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5170
5171 ( exit $ac_status )
5172 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5173 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5175 See \`config.log' for more details." >&5
5176 echo "$as_me: error: cannot compute sizeof (short), 77
5177 See \`config.log' for more details." >&2;}
5178    { (exit 1); exit 1; }; }; }
5179 fi
5180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5181 fi
5182 fi
5183 rm -f conftest.val
5184 else
5185   ac_cv_sizeof_short=0
5186 fi
5187 fi
5188 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5189 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5190 cat >>confdefs.h <<_ACEOF
5191 #define SIZEOF_SHORT $ac_cv_sizeof_short
5192 _ACEOF
5193
5194
5195 echo "$as_me:$LINENO: checking for int" >&5
5196 echo $ECHO_N "checking for int... $ECHO_C" >&6
5197 if test "${ac_cv_type_int+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h.  */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h.  */
5206 $ac_includes_default
5207 int
5208 main ()
5209 {
5210 if ((int *) 0)
5211   return 0;
5212 if (sizeof (int))
5213   return 0;
5214   ;
5215   return 0;
5216 }
5217 _ACEOF
5218 rm -f conftest.$ac_objext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220   (eval $ac_compile) 2>conftest.er1
5221   ac_status=$?
5222   grep -v '^ *+' conftest.er1 >conftest.err
5223   rm -f conftest.er1
5224   cat conftest.err >&5
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); } &&
5227          { ac_try='test -z "$ac_c_werror_flag"
5228                          || test ! -s conftest.err'
5229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230   (eval $ac_try) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }; } &&
5234          { ac_try='test -s conftest.$ac_objext'
5235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236   (eval $ac_try) 2>&5
5237   ac_status=$?
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); }; }; then
5240   ac_cv_type_int=yes
5241 else
5242   echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245 ac_cv_type_int=no
5246 fi
5247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5248 fi
5249 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5250 echo "${ECHO_T}$ac_cv_type_int" >&6
5251
5252 echo "$as_me:$LINENO: checking size of int" >&5
5253 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5254 if test "${ac_cv_sizeof_int+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   if test "$ac_cv_type_int" = yes; then
5258   # The cast to unsigned long works around a bug in the HP C Compiler
5259   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5260   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5261   # This bug is HP SR number 8606223364.
5262   if test "$cross_compiling" = yes; then
5263   # Depending upon the size, compute the lo and hi bounds.
5264 cat >conftest.$ac_ext <<_ACEOF
5265 /* confdefs.h.  */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h.  */
5270 $ac_includes_default
5271 int
5272 main ()
5273 {
5274 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5275 test_array [0] = 0
5276
5277   ;
5278   return 0;
5279 }
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283   (eval $ac_compile) 2>conftest.er1
5284   ac_status=$?
5285   grep -v '^ *+' conftest.er1 >conftest.err
5286   rm -f conftest.er1
5287   cat conftest.err >&5
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); } &&
5290          { ac_try='test -z "$ac_c_werror_flag"
5291                          || test ! -s conftest.err'
5292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293   (eval $ac_try) 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); }; } &&
5297          { ac_try='test -s conftest.$ac_objext'
5298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299   (eval $ac_try) 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }; }; then
5303   ac_lo=0 ac_mid=0
5304   while :; do
5305     cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h.  */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h.  */
5311 $ac_includes_default
5312 int
5313 main ()
5314 {
5315 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5316 test_array [0] = 0
5317
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324   (eval $ac_compile) 2>conftest.er1
5325   ac_status=$?
5326   grep -v '^ *+' conftest.er1 >conftest.err
5327   rm -f conftest.er1
5328   cat conftest.err >&5
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); } &&
5331          { ac_try='test -z "$ac_c_werror_flag"
5332                          || test ! -s conftest.err'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; } &&
5338          { ac_try='test -s conftest.$ac_objext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_hi=$ac_mid; break
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_lo=`expr $ac_mid + 1`
5350                     if test $ac_lo -le $ac_mid; then
5351                       ac_lo= ac_hi=
5352                       break
5353                     fi
5354                     ac_mid=`expr 2 '*' $ac_mid + 1`
5355 fi
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357   done
5358 else
5359   echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5361
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368 $ac_includes_default
5369 int
5370 main ()
5371 {
5372 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5373 test_array [0] = 0
5374
5375   ;
5376   return 0;
5377 }
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381   (eval $ac_compile) 2>conftest.er1
5382   ac_status=$?
5383   grep -v '^ *+' conftest.er1 >conftest.err
5384   rm -f conftest.er1
5385   cat conftest.err >&5
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); } &&
5388          { ac_try='test -z "$ac_c_werror_flag"
5389                          || test ! -s conftest.err'
5390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391   (eval $ac_try) 2>&5
5392   ac_status=$?
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); }; } &&
5395          { ac_try='test -s conftest.$ac_objext'
5396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397   (eval $ac_try) 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); }; }; then
5401   ac_hi=-1 ac_mid=-1
5402   while :; do
5403     cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h.  */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h.  */
5409 $ac_includes_default
5410 int
5411 main ()
5412 {
5413 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5414 test_array [0] = 0
5415
5416   ;
5417   return 0;
5418 }
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422   (eval $ac_compile) 2>conftest.er1
5423   ac_status=$?
5424   grep -v '^ *+' conftest.er1 >conftest.err
5425   rm -f conftest.er1
5426   cat conftest.err >&5
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } &&
5429          { ac_try='test -z "$ac_c_werror_flag"
5430                          || test ! -s conftest.err'
5431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432   (eval $ac_try) 2>&5
5433   ac_status=$?
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); }; } &&
5436          { ac_try='test -s conftest.$ac_objext'
5437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438   (eval $ac_try) 2>&5
5439   ac_status=$?
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); }; }; then
5442   ac_lo=$ac_mid; break
5443 else
5444   echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447 ac_hi=`expr '(' $ac_mid ')' - 1`
5448                        if test $ac_mid -le $ac_hi; then
5449                          ac_lo= ac_hi=
5450                          break
5451                        fi
5452                        ac_mid=`expr 2 '*' $ac_mid`
5453 fi
5454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455   done
5456 else
5457   echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5459
5460 ac_lo= ac_hi=
5461 fi
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463 fi
5464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465 # Binary search between lo and hi bounds.
5466 while test "x$ac_lo" != "x$ac_hi"; do
5467   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5468   cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h.  */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h.  */
5474 $ac_includes_default
5475 int
5476 main ()
5477 {
5478 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5479 test_array [0] = 0
5480
5481   ;
5482   return 0;
5483 }
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487   (eval $ac_compile) 2>conftest.er1
5488   ac_status=$?
5489   grep -v '^ *+' conftest.er1 >conftest.err
5490   rm -f conftest.er1
5491   cat conftest.err >&5
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); } &&
5494          { ac_try='test -z "$ac_c_werror_flag"
5495                          || test ! -s conftest.err'
5496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497   (eval $ac_try) 2>&5
5498   ac_status=$?
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); }; } &&
5501          { ac_try='test -s conftest.$ac_objext'
5502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503   (eval $ac_try) 2>&5
5504   ac_status=$?
5505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); }; }; then
5507   ac_hi=$ac_mid
5508 else
5509   echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5511
5512 ac_lo=`expr '(' $ac_mid ')' + 1`
5513 fi
5514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5515 done
5516 case $ac_lo in
5517 ?*) ac_cv_sizeof_int=$ac_lo;;
5518 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5521 See \`config.log' for more details." >&5
5522 echo "$as_me: error: cannot compute sizeof (int), 77
5523 See \`config.log' for more details." >&2;}
5524    { (exit 1); exit 1; }; }; } ;;
5525 esac
5526 else
5527   if test "$cross_compiling" = yes; then
5528   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5530 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5531 See \`config.log' for more details." >&5
5532 echo "$as_me: error: cannot run test program while cross compiling
5533 See \`config.log' for more details." >&2;}
5534    { (exit 1); exit 1; }; }; }
5535 else
5536   cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h.  */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h.  */
5542 $ac_includes_default
5543 long longval () { return (long) (sizeof (int)); }
5544 unsigned long ulongval () { return (long) (sizeof (int)); }
5545 #include <stdio.h>
5546 #include <stdlib.h>
5547 int
5548 main ()
5549 {
5550
5551   FILE *f = fopen ("conftest.val", "w");
5552   if (! f)
5553     exit (1);
5554   if (((long) (sizeof (int))) < 0)
5555     {
5556       long i = longval ();
5557       if (i != ((long) (sizeof (int))))
5558         exit (1);
5559       fprintf (f, "%ld\n", i);
5560     }
5561   else
5562     {
5563       unsigned long i = ulongval ();
5564       if (i != ((long) (sizeof (int))))
5565         exit (1);
5566       fprintf (f, "%lu\n", i);
5567     }
5568   exit (ferror (f) || fclose (f) != 0);
5569
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest$ac_exeext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576   (eval $ac_link) 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581   (eval $ac_try) 2>&5
5582   ac_status=$?
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); }; }; then
5585   ac_cv_sizeof_int=`cat conftest.val`
5586 else
5587   echo "$as_me: program exited with status $ac_status" >&5
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5590
5591 ( exit $ac_status )
5592 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5593 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5595 See \`config.log' for more details." >&5
5596 echo "$as_me: error: cannot compute sizeof (int), 77
5597 See \`config.log' for more details." >&2;}
5598    { (exit 1); exit 1; }; }; }
5599 fi
5600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5601 fi
5602 fi
5603 rm -f conftest.val
5604 else
5605   ac_cv_sizeof_int=0
5606 fi
5607 fi
5608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5609 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5610 cat >>confdefs.h <<_ACEOF
5611 #define SIZEOF_INT $ac_cv_sizeof_int
5612 _ACEOF
5613
5614
5615 echo "$as_me:$LINENO: checking for long" >&5
5616 echo $ECHO_N "checking for long... $ECHO_C" >&6
5617 if test "${ac_cv_type_long+set}" = set; then
5618   echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620   cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h.  */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h.  */
5626 $ac_includes_default
5627 int
5628 main ()
5629 {
5630 if ((long *) 0)
5631   return 0;
5632 if (sizeof (long))
5633   return 0;
5634   ;
5635   return 0;
5636 }
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640   (eval $ac_compile) 2>conftest.er1
5641   ac_status=$?
5642   grep -v '^ *+' conftest.er1 >conftest.err
5643   rm -f conftest.er1
5644   cat conftest.err >&5
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); } &&
5647          { ac_try='test -z "$ac_c_werror_flag"
5648                          || test ! -s conftest.err'
5649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650   (eval $ac_try) 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); }; } &&
5654          { ac_try='test -s conftest.$ac_objext'
5655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656   (eval $ac_try) 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); }; }; then
5660   ac_cv_type_long=yes
5661 else
5662   echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665 ac_cv_type_long=no
5666 fi
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668 fi
5669 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5670 echo "${ECHO_T}$ac_cv_type_long" >&6
5671
5672 echo "$as_me:$LINENO: checking size of long" >&5
5673 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5674 if test "${ac_cv_sizeof_long+set}" = set; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   if test "$ac_cv_type_long" = yes; then
5678   # The cast to unsigned long works around a bug in the HP C Compiler
5679   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5680   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5681   # This bug is HP SR number 8606223364.
5682   if test "$cross_compiling" = yes; then
5683   # Depending upon the size, compute the lo and hi bounds.
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 $ac_includes_default
5691 int
5692 main ()
5693 {
5694 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5695 test_array [0] = 0
5696
5697   ;
5698   return 0;
5699 }
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703   (eval $ac_compile) 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } &&
5710          { ac_try='test -z "$ac_c_werror_flag"
5711                          || test ! -s conftest.err'
5712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713   (eval $ac_try) 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; } &&
5717          { ac_try='test -s conftest.$ac_objext'
5718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719   (eval $ac_try) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; }; then
5723   ac_lo=0 ac_mid=0
5724   while :; do
5725     cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731 $ac_includes_default
5732 int
5733 main ()
5734 {
5735 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5736 test_array [0] = 0
5737
5738   ;
5739   return 0;
5740 }
5741 _ACEOF
5742 rm -f conftest.$ac_objext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744   (eval $ac_compile) 2>conftest.er1
5745   ac_status=$?
5746   grep -v '^ *+' conftest.er1 >conftest.err
5747   rm -f conftest.er1
5748   cat conftest.err >&5
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); } &&
5751          { ac_try='test -z "$ac_c_werror_flag"
5752                          || test ! -s conftest.err'
5753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754   (eval $ac_try) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; } &&
5758          { ac_try='test -s conftest.$ac_objext'
5759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760   (eval $ac_try) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); }; }; then
5764   ac_hi=$ac_mid; break
5765 else
5766   echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 ac_lo=`expr $ac_mid + 1`
5770                     if test $ac_lo -le $ac_mid; then
5771                       ac_lo= ac_hi=
5772                       break
5773                     fi
5774                     ac_mid=`expr 2 '*' $ac_mid + 1`
5775 fi
5776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5777   done
5778 else
5779   echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 $ac_includes_default
5789 int
5790 main ()
5791 {
5792 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5793 test_array [0] = 0
5794
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801   (eval $ac_compile) 2>conftest.er1
5802   ac_status=$?
5803   grep -v '^ *+' conftest.er1 >conftest.err
5804   rm -f conftest.er1
5805   cat conftest.err >&5
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); } &&
5808          { ac_try='test -z "$ac_c_werror_flag"
5809                          || test ! -s conftest.err'
5810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811   (eval $ac_try) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }; } &&
5815          { ac_try='test -s conftest.$ac_objext'
5816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817   (eval $ac_try) 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); }; }; then
5821   ac_hi=-1 ac_mid=-1
5822   while :; do
5823     cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829 $ac_includes_default
5830 int
5831 main ()
5832 {
5833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5834 test_array [0] = 0
5835
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842   (eval $ac_compile) 2>conftest.er1
5843   ac_status=$?
5844   grep -v '^ *+' conftest.er1 >conftest.err
5845   rm -f conftest.er1
5846   cat conftest.err >&5
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); } &&
5849          { ac_try='test -z "$ac_c_werror_flag"
5850                          || test ! -s conftest.err'
5851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852   (eval $ac_try) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; } &&
5856          { ac_try='test -s conftest.$ac_objext'
5857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858   (eval $ac_try) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; }; then
5862   ac_lo=$ac_mid; break
5863 else
5864   echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867 ac_hi=`expr '(' $ac_mid ')' - 1`
5868                        if test $ac_mid -le $ac_hi; then
5869                          ac_lo= ac_hi=
5870                          break
5871                        fi
5872                        ac_mid=`expr 2 '*' $ac_mid`
5873 fi
5874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875   done
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 ac_lo= ac_hi=
5881 fi
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 fi
5884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885 # Binary search between lo and hi bounds.
5886 while test "x$ac_lo" != "x$ac_hi"; do
5887   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888   cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h.  */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h.  */
5894 $ac_includes_default
5895 int
5896 main ()
5897 {
5898 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5899 test_array [0] = 0
5900
5901   ;
5902   return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907   (eval $ac_compile) 2>conftest.er1
5908   ac_status=$?
5909   grep -v '^ *+' conftest.er1 >conftest.err
5910   rm -f conftest.er1
5911   cat conftest.err >&5
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } &&
5914          { ac_try='test -z "$ac_c_werror_flag"
5915                          || test ! -s conftest.err'
5916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917   (eval $ac_try) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; } &&
5921          { ac_try='test -s conftest.$ac_objext'
5922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923   (eval $ac_try) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; }; then
5927   ac_hi=$ac_mid
5928 else
5929   echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932 ac_lo=`expr '(' $ac_mid ')' + 1`
5933 fi
5934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5935 done
5936 case $ac_lo in
5937 ?*) ac_cv_sizeof_long=$ac_lo;;
5938 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5939 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5941 See \`config.log' for more details." >&5
5942 echo "$as_me: error: cannot compute sizeof (long), 77
5943 See \`config.log' for more details." >&2;}
5944    { (exit 1); exit 1; }; }; } ;;
5945 esac
5946 else
5947   if test "$cross_compiling" = yes; then
5948   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5949 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5951 See \`config.log' for more details." >&5
5952 echo "$as_me: error: cannot run test program while cross compiling
5953 See \`config.log' for more details." >&2;}
5954    { (exit 1); exit 1; }; }; }
5955 else
5956   cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 $ac_includes_default
5963 long longval () { return (long) (sizeof (long)); }
5964 unsigned long ulongval () { return (long) (sizeof (long)); }
5965 #include <stdio.h>
5966 #include <stdlib.h>
5967 int
5968 main ()
5969 {
5970
5971   FILE *f = fopen ("conftest.val", "w");
5972   if (! f)
5973     exit (1);
5974   if (((long) (sizeof (long))) < 0)
5975     {
5976       long i = longval ();
5977       if (i != ((long) (sizeof (long))))
5978         exit (1);
5979       fprintf (f, "%ld\n", i);
5980     }
5981   else
5982     {
5983       unsigned long i = ulongval ();
5984       if (i != ((long) (sizeof (long))))
5985         exit (1);
5986       fprintf (f, "%lu\n", i);
5987     }
5988   exit (ferror (f) || fclose (f) != 0);
5989
5990   ;
5991   return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996   (eval $ac_link) 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001   (eval $ac_try) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; }; then
6005   ac_cv_sizeof_long=`cat conftest.val`
6006 else
6007   echo "$as_me: program exited with status $ac_status" >&5
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 ( exit $ac_status )
6012 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6013 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (long), 77
6017 See \`config.log' for more details." >&2;}
6018    { (exit 1); exit 1; }; }; }
6019 fi
6020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6021 fi
6022 fi
6023 rm -f conftest.val
6024 else
6025   ac_cv_sizeof_long=0
6026 fi
6027 fi
6028 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6029 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6030 cat >>confdefs.h <<_ACEOF
6031 #define SIZEOF_LONG $ac_cv_sizeof_long
6032 _ACEOF
6033
6034
6035 echo "$as_me:$LINENO: checking for long long" >&5
6036 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6037 if test "${ac_cv_type_long_long+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h.  */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h.  */
6046 $ac_includes_default
6047 int
6048 main ()
6049 {
6050 if ((long long *) 0)
6051   return 0;
6052 if (sizeof (long long))
6053   return 0;
6054   ;
6055   return 0;
6056 }
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060   (eval $ac_compile) 2>conftest.er1
6061   ac_status=$?
6062   grep -v '^ *+' conftest.er1 >conftest.err
6063   rm -f conftest.er1
6064   cat conftest.err >&5
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); } &&
6067          { ac_try='test -z "$ac_c_werror_flag"
6068                          || test ! -s conftest.err'
6069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070   (eval $ac_try) 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }; } &&
6074          { ac_try='test -s conftest.$ac_objext'
6075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076   (eval $ac_try) 2>&5
6077   ac_status=$?
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); }; }; then
6080   ac_cv_type_long_long=yes
6081 else
6082   echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6084
6085 ac_cv_type_long_long=no
6086 fi
6087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6088 fi
6089 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6090 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6091 if test $ac_cv_type_long_long = yes; then
6092
6093 cat >>confdefs.h <<_ACEOF
6094 #define HAVE_LONG_LONG 1
6095 _ACEOF
6096
6097 echo "$as_me:$LINENO: checking for long long" >&5
6098 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6099 if test "${ac_cv_type_long_long+set}" = set; then
6100   echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102   cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h.  */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h.  */
6108 $ac_includes_default
6109 int
6110 main ()
6111 {
6112 if ((long long *) 0)
6113   return 0;
6114 if (sizeof (long long))
6115   return 0;
6116   ;
6117   return 0;
6118 }
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122   (eval $ac_compile) 2>conftest.er1
6123   ac_status=$?
6124   grep -v '^ *+' conftest.er1 >conftest.err
6125   rm -f conftest.er1
6126   cat conftest.err >&5
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } &&
6129          { ac_try='test -z "$ac_c_werror_flag"
6130                          || test ! -s conftest.err'
6131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132   (eval $ac_try) 2>&5
6133   ac_status=$?
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); }; } &&
6136          { ac_try='test -s conftest.$ac_objext'
6137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138   (eval $ac_try) 2>&5
6139   ac_status=$?
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); }; }; then
6142   ac_cv_type_long_long=yes
6143 else
6144   echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 ac_cv_type_long_long=no
6148 fi
6149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150 fi
6151 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6152 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6153
6154 echo "$as_me:$LINENO: checking size of long long" >&5
6155 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6156 if test "${ac_cv_sizeof_long_long+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   if test "$ac_cv_type_long_long" = yes; then
6160   # The cast to unsigned long works around a bug in the HP C Compiler
6161   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6162   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6163   # This bug is HP SR number 8606223364.
6164   if test "$cross_compiling" = yes; then
6165   # Depending upon the size, compute the lo and hi bounds.
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h.  */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h.  */
6172 $ac_includes_default
6173 int
6174 main ()
6175 {
6176 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6177 test_array [0] = 0
6178
6179   ;
6180   return 0;
6181 }
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185   (eval $ac_compile) 2>conftest.er1
6186   ac_status=$?
6187   grep -v '^ *+' conftest.er1 >conftest.err
6188   rm -f conftest.er1
6189   cat conftest.err >&5
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } &&
6192          { ac_try='test -z "$ac_c_werror_flag"
6193                          || test ! -s conftest.err'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; } &&
6199          { ac_try='test -s conftest.$ac_objext'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; }; then
6205   ac_lo=0 ac_mid=0
6206   while :; do
6207     cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h.  */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h.  */
6213 $ac_includes_default
6214 int
6215 main ()
6216 {
6217 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6218 test_array [0] = 0
6219
6220   ;
6221   return 0;
6222 }
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226   (eval $ac_compile) 2>conftest.er1
6227   ac_status=$?
6228   grep -v '^ *+' conftest.er1 >conftest.err
6229   rm -f conftest.er1
6230   cat conftest.err >&5
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); } &&
6233          { ac_try='test -z "$ac_c_werror_flag"
6234                          || test ! -s conftest.err'
6235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236   (eval $ac_try) 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); }; } &&
6240          { ac_try='test -s conftest.$ac_objext'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; }; then
6246   ac_hi=$ac_mid; break
6247 else
6248   echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251 ac_lo=`expr $ac_mid + 1`
6252                     if test $ac_lo -le $ac_mid; then
6253                       ac_lo= ac_hi=
6254                       break
6255                     fi
6256                     ac_mid=`expr 2 '*' $ac_mid + 1`
6257 fi
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259   done
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270 $ac_includes_default
6271 int
6272 main ()
6273 {
6274 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6275 test_array [0] = 0
6276
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283   (eval $ac_compile) 2>conftest.er1
6284   ac_status=$?
6285   grep -v '^ *+' conftest.er1 >conftest.err
6286   rm -f conftest.er1
6287   cat conftest.err >&5
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); } &&
6290          { ac_try='test -z "$ac_c_werror_flag"
6291                          || test ! -s conftest.err'
6292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293   (eval $ac_try) 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; } &&
6297          { ac_try='test -s conftest.$ac_objext'
6298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299   (eval $ac_try) 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); }; }; then
6303   ac_hi=-1 ac_mid=-1
6304   while :; do
6305     cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h.  */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h.  */
6311 $ac_includes_default
6312 int
6313 main ()
6314 {
6315 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6316 test_array [0] = 0
6317
6318   ;
6319   return 0;
6320 }
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324   (eval $ac_compile) 2>conftest.er1
6325   ac_status=$?
6326   grep -v '^ *+' conftest.er1 >conftest.err
6327   rm -f conftest.er1
6328   cat conftest.err >&5
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); } &&
6331          { ac_try='test -z "$ac_c_werror_flag"
6332                          || test ! -s conftest.err'
6333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334   (eval $ac_try) 2>&5
6335   ac_status=$?
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); }; } &&
6338          { ac_try='test -s conftest.$ac_objext'
6339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340   (eval $ac_try) 2>&5
6341   ac_status=$?
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); }; }; then
6344   ac_lo=$ac_mid; break
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349 ac_hi=`expr '(' $ac_mid ')' - 1`
6350                        if test $ac_mid -le $ac_hi; then
6351                          ac_lo= ac_hi=
6352                          break
6353                        fi
6354                        ac_mid=`expr 2 '*' $ac_mid`
6355 fi
6356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6357   done
6358 else
6359   echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6361
6362 ac_lo= ac_hi=
6363 fi
6364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6365 fi
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 # Binary search between lo and hi bounds.
6368 while test "x$ac_lo" != "x$ac_hi"; do
6369   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6370   cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h.  */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h.  */
6376 $ac_includes_default
6377 int
6378 main ()
6379 {
6380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6381 test_array [0] = 0
6382
6383   ;
6384   return 0;
6385 }
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389   (eval $ac_compile) 2>conftest.er1
6390   ac_status=$?
6391   grep -v '^ *+' conftest.er1 >conftest.err
6392   rm -f conftest.er1
6393   cat conftest.err >&5
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); } &&
6396          { ac_try='test -z "$ac_c_werror_flag"
6397                          || test ! -s conftest.err'
6398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399   (eval $ac_try) 2>&5
6400   ac_status=$?
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); }; } &&
6403          { ac_try='test -s conftest.$ac_objext'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; }; then
6409   ac_hi=$ac_mid
6410 else
6411   echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414 ac_lo=`expr '(' $ac_mid ')' + 1`
6415 fi
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 done
6418 case $ac_lo in
6419 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6420 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6421 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6423 See \`config.log' for more details." >&5
6424 echo "$as_me: error: cannot compute sizeof (long long), 77
6425 See \`config.log' for more details." >&2;}
6426    { (exit 1); exit 1; }; }; } ;;
6427 esac
6428 else
6429   if test "$cross_compiling" = yes; then
6430   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6431 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6433 See \`config.log' for more details." >&5
6434 echo "$as_me: error: cannot run test program while cross compiling
6435 See \`config.log' for more details." >&2;}
6436    { (exit 1); exit 1; }; }; }
6437 else
6438   cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h.  */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h.  */
6444 $ac_includes_default
6445 long longval () { return (long) (sizeof (long long)); }
6446 unsigned long ulongval () { return (long) (sizeof (long long)); }
6447 #include <stdio.h>
6448 #include <stdlib.h>
6449 int
6450 main ()
6451 {
6452
6453   FILE *f = fopen ("conftest.val", "w");
6454   if (! f)
6455     exit (1);
6456   if (((long) (sizeof (long long))) < 0)
6457     {
6458       long i = longval ();
6459       if (i != ((long) (sizeof (long long))))
6460         exit (1);
6461       fprintf (f, "%ld\n", i);
6462     }
6463   else
6464     {
6465       unsigned long i = ulongval ();
6466       if (i != ((long) (sizeof (long long))))
6467         exit (1);
6468       fprintf (f, "%lu\n", i);
6469     }
6470   exit (ferror (f) || fclose (f) != 0);
6471
6472   ;
6473   return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest$ac_exeext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478   (eval $ac_link) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483   (eval $ac_try) 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; }; then
6487   ac_cv_sizeof_long_long=`cat conftest.val`
6488 else
6489   echo "$as_me: program exited with status $ac_status" >&5
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6492
6493 ( exit $ac_status )
6494 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6495 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6497 See \`config.log' for more details." >&5
6498 echo "$as_me: error: cannot compute sizeof (long long), 77
6499 See \`config.log' for more details." >&2;}
6500    { (exit 1); exit 1; }; }; }
6501 fi
6502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 fi
6505 rm -f conftest.val
6506 else
6507   ac_cv_sizeof_long_long=0
6508 fi
6509 fi
6510 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6511 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6512 cat >>confdefs.h <<_ACEOF
6513 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6514 _ACEOF
6515
6516
6517 fi
6518
6519 echo "$as_me:$LINENO: checking for __int64" >&5
6520 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6521 if test "${ac_cv_type___int64+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h.  */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h.  */
6530 $ac_includes_default
6531 int
6532 main ()
6533 {
6534 if ((__int64 *) 0)
6535   return 0;
6536 if (sizeof (__int64))
6537   return 0;
6538   ;
6539   return 0;
6540 }
6541 _ACEOF
6542 rm -f conftest.$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544   (eval $ac_compile) 2>conftest.er1
6545   ac_status=$?
6546   grep -v '^ *+' conftest.er1 >conftest.err
6547   rm -f conftest.er1
6548   cat conftest.err >&5
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } &&
6551          { ac_try='test -z "$ac_c_werror_flag"
6552                          || test ! -s conftest.err'
6553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554   (eval $ac_try) 2>&5
6555   ac_status=$?
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); }; } &&
6558          { ac_try='test -s conftest.$ac_objext'
6559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560   (eval $ac_try) 2>&5
6561   ac_status=$?
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); }; }; then
6564   ac_cv_type___int64=yes
6565 else
6566   echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6568
6569 ac_cv_type___int64=no
6570 fi
6571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6572 fi
6573 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6574 echo "${ECHO_T}$ac_cv_type___int64" >&6
6575 if test $ac_cv_type___int64 = yes; then
6576
6577 cat >>confdefs.h <<_ACEOF
6578 #define HAVE___INT64 1
6579 _ACEOF
6580
6581 echo "$as_me:$LINENO: checking for __int64" >&5
6582 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6583 if test "${ac_cv_type___int64+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h.  */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h.  */
6592 $ac_includes_default
6593 int
6594 main ()
6595 {
6596 if ((__int64 *) 0)
6597   return 0;
6598 if (sizeof (__int64))
6599   return 0;
6600   ;
6601   return 0;
6602 }
6603 _ACEOF
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606   (eval $ac_compile) 2>conftest.er1
6607   ac_status=$?
6608   grep -v '^ *+' conftest.er1 >conftest.err
6609   rm -f conftest.er1
6610   cat conftest.err >&5
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } &&
6613          { ac_try='test -z "$ac_c_werror_flag"
6614                          || test ! -s conftest.err'
6615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616   (eval $ac_try) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; } &&
6620          { ac_try='test -s conftest.$ac_objext'
6621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622   (eval $ac_try) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; }; then
6626   ac_cv_type___int64=yes
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_cv_type___int64=no
6632 fi
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634 fi
6635 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6636 echo "${ECHO_T}$ac_cv_type___int64" >&6
6637
6638 echo "$as_me:$LINENO: checking size of __int64" >&5
6639 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6640 if test "${ac_cv_sizeof___int64+set}" = set; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643   if test "$ac_cv_type___int64" = yes; then
6644   # The cast to unsigned long works around a bug in the HP C Compiler
6645   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6646   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6647   # This bug is HP SR number 8606223364.
6648   if test "$cross_compiling" = yes; then
6649   # Depending upon the size, compute the lo and hi bounds.
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h.  */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h.  */
6656 $ac_includes_default
6657 int
6658 main ()
6659 {
6660 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6661 test_array [0] = 0
6662
6663   ;
6664   return 0;
6665 }
6666 _ACEOF
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669   (eval $ac_compile) 2>conftest.er1
6670   ac_status=$?
6671   grep -v '^ *+' conftest.er1 >conftest.err
6672   rm -f conftest.er1
6673   cat conftest.err >&5
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); } &&
6676          { ac_try='test -z "$ac_c_werror_flag"
6677                          || test ! -s conftest.err'
6678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679   (eval $ac_try) 2>&5
6680   ac_status=$?
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); }; } &&
6683          { ac_try='test -s conftest.$ac_objext'
6684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685   (eval $ac_try) 2>&5
6686   ac_status=$?
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); }; }; then
6689   ac_lo=0 ac_mid=0
6690   while :; do
6691     cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h.  */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h.  */
6697 $ac_includes_default
6698 int
6699 main ()
6700 {
6701 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6702 test_array [0] = 0
6703
6704   ;
6705   return 0;
6706 }
6707 _ACEOF
6708 rm -f conftest.$ac_objext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710   (eval $ac_compile) 2>conftest.er1
6711   ac_status=$?
6712   grep -v '^ *+' conftest.er1 >conftest.err
6713   rm -f conftest.er1
6714   cat conftest.err >&5
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); } &&
6717          { ac_try='test -z "$ac_c_werror_flag"
6718                          || test ! -s conftest.err'
6719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720   (eval $ac_try) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }; } &&
6724          { ac_try='test -s conftest.$ac_objext'
6725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726   (eval $ac_try) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; }; then
6730   ac_hi=$ac_mid; break
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 ac_lo=`expr $ac_mid + 1`
6736                     if test $ac_lo -le $ac_mid; then
6737                       ac_lo= ac_hi=
6738                       break
6739                     fi
6740                     ac_mid=`expr 2 '*' $ac_mid + 1`
6741 fi
6742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6743   done
6744 else
6745   echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h.  */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h.  */
6754 $ac_includes_default
6755 int
6756 main ()
6757 {
6758 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6759 test_array [0] = 0
6760
6761   ;
6762   return 0;
6763 }
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767   (eval $ac_compile) 2>conftest.er1
6768   ac_status=$?
6769   grep -v '^ *+' conftest.er1 >conftest.err
6770   rm -f conftest.er1
6771   cat conftest.err >&5
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); } &&
6774          { ac_try='test -z "$ac_c_werror_flag"
6775                          || test ! -s conftest.err'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; } &&
6781          { ac_try='test -s conftest.$ac_objext'
6782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783   (eval $ac_try) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); }; }; then
6787   ac_hi=-1 ac_mid=-1
6788   while :; do
6789     cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795 $ac_includes_default
6796 int
6797 main ()
6798 {
6799 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6800 test_array [0] = 0
6801
6802   ;
6803   return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808   (eval $ac_compile) 2>conftest.er1
6809   ac_status=$?
6810   grep -v '^ *+' conftest.er1 >conftest.err
6811   rm -f conftest.er1
6812   cat conftest.err >&5
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); } &&
6815          { ac_try='test -z "$ac_c_werror_flag"
6816                          || test ! -s conftest.err'
6817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818   (eval $ac_try) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); }; } &&
6822          { ac_try='test -s conftest.$ac_objext'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; }; then
6828   ac_lo=$ac_mid; break
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ac_hi=`expr '(' $ac_mid ')' - 1`
6834                        if test $ac_mid -le $ac_hi; then
6835                          ac_lo= ac_hi=
6836                          break
6837                        fi
6838                        ac_mid=`expr 2 '*' $ac_mid`
6839 fi
6840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6841   done
6842 else
6843   echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6845
6846 ac_lo= ac_hi=
6847 fi
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849 fi
6850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6851 # Binary search between lo and hi bounds.
6852 while test "x$ac_lo" != "x$ac_hi"; do
6853   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6854   cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h.  */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h.  */
6860 $ac_includes_default
6861 int
6862 main ()
6863 {
6864 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6865 test_array [0] = 0
6866
6867   ;
6868   return 0;
6869 }
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873   (eval $ac_compile) 2>conftest.er1
6874   ac_status=$?
6875   grep -v '^ *+' conftest.er1 >conftest.err
6876   rm -f conftest.er1
6877   cat conftest.err >&5
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); } &&
6880          { ac_try='test -z "$ac_c_werror_flag"
6881                          || test ! -s conftest.err'
6882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883   (eval $ac_try) 2>&5
6884   ac_status=$?
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); }; } &&
6887          { ac_try='test -s conftest.$ac_objext'
6888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889   (eval $ac_try) 2>&5
6890   ac_status=$?
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); }; }; then
6893   ac_hi=$ac_mid
6894 else
6895   echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898 ac_lo=`expr '(' $ac_mid ')' + 1`
6899 fi
6900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6901 done
6902 case $ac_lo in
6903 ?*) ac_cv_sizeof___int64=$ac_lo;;
6904 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6905 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6907 See \`config.log' for more details." >&5
6908 echo "$as_me: error: cannot compute sizeof (__int64), 77
6909 See \`config.log' for more details." >&2;}
6910    { (exit 1); exit 1; }; }; } ;;
6911 esac
6912 else
6913   if test "$cross_compiling" = yes; then
6914   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6915 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6917 See \`config.log' for more details." >&5
6918 echo "$as_me: error: cannot run test program while cross compiling
6919 See \`config.log' for more details." >&2;}
6920    { (exit 1); exit 1; }; }; }
6921 else
6922   cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h.  */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h.  */
6928 $ac_includes_default
6929 long longval () { return (long) (sizeof (__int64)); }
6930 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6931 #include <stdio.h>
6932 #include <stdlib.h>
6933 int
6934 main ()
6935 {
6936
6937   FILE *f = fopen ("conftest.val", "w");
6938   if (! f)
6939     exit (1);
6940   if (((long) (sizeof (__int64))) < 0)
6941     {
6942       long i = longval ();
6943       if (i != ((long) (sizeof (__int64))))
6944         exit (1);
6945       fprintf (f, "%ld\n", i);
6946     }
6947   else
6948     {
6949       unsigned long i = ulongval ();
6950       if (i != ((long) (sizeof (__int64))))
6951         exit (1);
6952       fprintf (f, "%lu\n", i);
6953     }
6954   exit (ferror (f) || fclose (f) != 0);
6955
6956   ;
6957   return 0;
6958 }
6959 _ACEOF
6960 rm -f conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962   (eval $ac_link) 2>&5
6963   ac_status=$?
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971   ac_cv_sizeof___int64=`cat conftest.val`
6972 else
6973   echo "$as_me: program exited with status $ac_status" >&5
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977 ( exit $ac_status )
6978 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6979 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6981 See \`config.log' for more details." >&5
6982 echo "$as_me: error: cannot compute sizeof (__int64), 77
6983 See \`config.log' for more details." >&2;}
6984    { (exit 1); exit 1; }; }; }
6985 fi
6986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6987 fi
6988 fi
6989 rm -f conftest.val
6990 else
6991   ac_cv_sizeof___int64=0
6992 fi
6993 fi
6994 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6995 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6996 cat >>confdefs.h <<_ACEOF
6997 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6998 _ACEOF
6999
7000
7001 fi
7002
7003
7004 # ---------------------
7005 # Warnings and checking
7006 # ---------------------
7007
7008 # Check $CC warning features (if it's GCC).
7009 # We want to use -pedantic, but we don't want warnings about
7010 # * 'long long'
7011 # * variadic macros
7012 # * overlong strings
7013 # So, we only use -pedantic if we can disable those warnings.
7014
7015 loose_warn=
7016 save_CFLAGS="$CFLAGS"
7017 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual; do
7018   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7019
7020   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7021 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7022 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7023   echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025   CFLAGS="$option"
7026     cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h.  */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h.  */
7032
7033 int
7034 main ()
7035 {
7036
7037   ;
7038   return 0;
7039 }
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043   (eval $ac_compile) 2>conftest.er1
7044   ac_status=$?
7045   grep -v '^ *+' conftest.er1 >conftest.err
7046   rm -f conftest.er1
7047   cat conftest.err >&5
7048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049   (exit $ac_status); } &&
7050          { ac_try='test -z "$ac_c_werror_flag"
7051                          || test ! -s conftest.err'
7052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053   (eval $ac_try) 2>&5
7054   ac_status=$?
7055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056   (exit $ac_status); }; } &&
7057          { ac_try='test -s conftest.$ac_objext'
7058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059   (eval $ac_try) 2>&5
7060   ac_status=$?
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); }; }; then
7063   eval "$as_acx_Woption=yes"
7064 else
7065   echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068 eval "$as_acx_Woption=no"
7069 fi
7070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071
7072 fi
7073 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7074 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7075   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7076   loose_warn="$loose_warn${loose_warn:+ }$option"
7077 fi
7078
7079   done
7080 CFLAGS="$save_CFLAGS"
7081
7082 strict_warn=
7083 save_CFLAGS="$CFLAGS"
7084 for option in -Wold-style-definition -Wc++-compat -Wmissing-format-attribute; do
7085   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7086
7087   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7088 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7089 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   CFLAGS="$option"
7093     cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h.  */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h.  */
7099
7100 int
7101 main ()
7102 {
7103
7104   ;
7105   return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7110   (eval $ac_compile) 2>conftest.er1
7111   ac_status=$?
7112   grep -v '^ *+' conftest.er1 >conftest.err
7113   rm -f conftest.er1
7114   cat conftest.err >&5
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); } &&
7117          { ac_try='test -z "$ac_c_werror_flag"
7118                          || test ! -s conftest.err'
7119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120   (eval $ac_try) 2>&5
7121   ac_status=$?
7122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123   (exit $ac_status); }; } &&
7124          { ac_try='test -s conftest.$ac_objext'
7125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126   (eval $ac_try) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); }; }; then
7130   eval "$as_acx_Woption=yes"
7131 else
7132   echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135 eval "$as_acx_Woption=no"
7136 fi
7137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7138
7139 fi
7140 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7141 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7142   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7143   strict_warn="$strict_warn${strict_warn:+ }$option"
7144 fi
7145
7146   done
7147 CFLAGS="$save_CFLAGS"
7148
7149 if test "$GCC" = yes; then
7150   echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7151 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7152 if test "${acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   save_CFLAGS="$CFLAGS"
7156 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7157 cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h.  */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h.  */
7163
7164 int
7165 main ()
7166 {
7167
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest.$ac_objext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7174   (eval $ac_compile) 2>conftest.er1
7175   ac_status=$?
7176   grep -v '^ *+' conftest.er1 >conftest.err
7177   rm -f conftest.er1
7178   cat conftest.err >&5
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); } &&
7181          { ac_try='test -z "$ac_c_werror_flag"
7182                          || test ! -s conftest.err'
7183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184   (eval $ac_try) 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; } &&
7188          { ac_try='test -s conftest.$ac_objext'
7189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190   (eval $ac_try) 2>&5
7191   ac_status=$?
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); }; }; then
7194   acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_=yes
7195 else
7196   echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7198
7199 acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_=no
7200 fi
7201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7202 CFLAGS="$save_CFLAGS"
7203 fi
7204 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_" >&5
7205 echo "${ECHO_T}$acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_" >&6
7206 if test $acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_ = yes; then
7207   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7208 fi
7209
7210
7211 fi
7212
7213
7214 # Check whether --enable-werror-always or --disable-werror-always was given.
7215 if test "${enable_werror_always+set}" = set; then
7216   enableval="$enable_werror_always"
7217
7218 else
7219   enable_werror_always=no
7220 fi;
7221 if test $enable_werror_always = yes; then
7222   strict_warn="$strict_warn${strict_warn:+ }-Werror"
7223 fi
7224
7225
7226
7227
7228 # The above macros do nothing if the compiler is not GCC.  However, the
7229 # Makefile has more goo to add other flags, so this variabl is used to
7230 # enables warnings only for GCC.
7231 warn_cflags=
7232 if test "x$GCC" = "xyes"; then
7233   warn_cflags='$(GCC_WARN_CFLAGS)'
7234 fi
7235
7236
7237 # Enable expensive internal checks
7238 is_release=
7239 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7240   is_release=yes
7241 fi
7242
7243 # Check whether --enable-checking or --disable-checking was given.
7244 if test "${enable_checking+set}" = set; then
7245   enableval="$enable_checking"
7246   ac_checking_flags="${enableval}"
7247 else
7248
7249 # Determine the default checks.
7250 if test x$is_release = x ; then
7251   ac_checking_flags=yes
7252 else
7253   ac_checking_flags=release
7254 fi
7255 fi;
7256 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7257 for check in release $ac_checking_flags
7258 do
7259         case $check in
7260         # these set all the flags to specific states
7261         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7262                         ac_fold_checking= ; ac_gc_checking=1 ;
7263                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7264                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7265                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7266                         ac_types_checking=1 ;;
7267         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7268                         ac_fold_checking= ; ac_gc_checking= ;
7269                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7270                         ac_rtlflag_checking= ; ac_runtime_checking= ;
7271                         ac_tree_checking= ; ac_valgrind_checking= ;
7272                         ac_types_checking= ;;
7273         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7274                         ac_fold_checking=1 ; ac_gc_checking=1 ;
7275                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7276                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7277                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7278                         ac_types_checking=1 ;;
7279         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7280                         ac_fold_checking= ; ac_gc_checking= ;
7281                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7282                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7283                         ac_tree_checking= ; ac_valgrind_checking= ;
7284                         ac_types_checking= ;;
7285         # these enable particular checks
7286         assert)         ac_assert_checking=1 ;;
7287         df)             ac_df_checking=1 ;;
7288         fold)           ac_fold_checking=1 ;;
7289         gc)             ac_gc_checking=1 ;;
7290         gcac)           ac_gc_always_collect=1 ;;
7291         gimple)         ac_gimple_checking=1 ;;
7292         misc)           ac_checking=1 ;;
7293         rtl)            ac_rtl_checking=1 ;;
7294         rtlflag)        ac_rtlflag_checking=1 ;;
7295         runtime)        ac_runtime_checking=1 ;;
7296         tree)           ac_tree_checking=1 ;;
7297         types)          ac_types_checking=1 ;;
7298         valgrind)       ac_valgrind_checking=1 ;;
7299         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7300 echo "$as_me: error: unknown check category $check" >&2;}
7301    { (exit 1); exit 1; }; } ;;
7302         esac
7303 done
7304 IFS="$ac_save_IFS"
7305
7306 nocommon_flag=""
7307 if test x$ac_checking != x ; then
7308
7309 cat >>confdefs.h <<\_ACEOF
7310 #define ENABLE_CHECKING 1
7311 _ACEOF
7312
7313   nocommon_flag=-fno-common
7314 fi
7315
7316 if test x$ac_df_checking != x ; then
7317
7318 cat >>confdefs.h <<\_ACEOF
7319 #define ENABLE_DF_CHECKING 1
7320 _ACEOF
7321
7322 fi
7323 if test x$ac_assert_checking != x ; then
7324
7325 cat >>confdefs.h <<\_ACEOF
7326 #define ENABLE_ASSERT_CHECKING 1
7327 _ACEOF
7328
7329 fi
7330 if test x$ac_gimple_checking != x ; then
7331
7332 cat >>confdefs.h <<\_ACEOF
7333 #define ENABLE_GIMPLE_CHECKING 1
7334 _ACEOF
7335
7336 fi
7337
7338 if test x$ac_runtime_checking != x ; then
7339
7340 cat >>confdefs.h <<\_ACEOF
7341 #define ENABLE_RUNTIME_CHECKING 1
7342 _ACEOF
7343
7344 fi
7345 if test x$ac_tree_checking != x ; then
7346
7347 cat >>confdefs.h <<\_ACEOF
7348 #define ENABLE_TREE_CHECKING 1
7349 _ACEOF
7350
7351   TREEBROWSER=tree-browser.o
7352 fi
7353 if test x$ac_types_checking != x ; then
7354
7355 cat >>confdefs.h <<\_ACEOF
7356 #define ENABLE_TYPES_CHECKING 1
7357 _ACEOF
7358
7359 fi
7360
7361 if test x$ac_rtl_checking != x ; then
7362
7363 cat >>confdefs.h <<\_ACEOF
7364 #define ENABLE_RTL_CHECKING 1
7365 _ACEOF
7366
7367 fi
7368 if test x$ac_rtlflag_checking != x ; then
7369
7370 cat >>confdefs.h <<\_ACEOF
7371 #define ENABLE_RTL_FLAG_CHECKING 1
7372 _ACEOF
7373
7374 fi
7375 if test x$ac_gc_checking != x ; then
7376
7377 cat >>confdefs.h <<\_ACEOF
7378 #define ENABLE_GC_CHECKING 1
7379 _ACEOF
7380
7381 fi
7382 if test x$ac_gc_always_collect != x ; then
7383
7384 cat >>confdefs.h <<\_ACEOF
7385 #define ENABLE_GC_ALWAYS_COLLECT 1
7386 _ACEOF
7387
7388 fi
7389 if test x$ac_fold_checking != x ; then
7390
7391 cat >>confdefs.h <<\_ACEOF
7392 #define ENABLE_FOLD_CHECKING 1
7393 _ACEOF
7394
7395 fi
7396 valgrind_path_defines=
7397 valgrind_command=
7398
7399 if test "${ac_cv_header_valgrind_h+set}" = set; then
7400   echo "$as_me:$LINENO: checking for valgrind.h" >&5
7401 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7402 if test "${ac_cv_header_valgrind_h+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 fi
7405 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7406 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7407 else
7408   # Is the header compilable?
7409 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7410 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7411 cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h.  */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h.  */
7417 $ac_includes_default
7418 #include <valgrind.h>
7419 _ACEOF
7420 rm -f conftest.$ac_objext
7421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7422   (eval $ac_compile) 2>conftest.er1
7423   ac_status=$?
7424   grep -v '^ *+' conftest.er1 >conftest.err
7425   rm -f conftest.er1
7426   cat conftest.err >&5
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); } &&
7429          { ac_try='test -z "$ac_c_werror_flag"
7430                          || test ! -s conftest.err'
7431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432   (eval $ac_try) 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); }; } &&
7436          { ac_try='test -s conftest.$ac_objext'
7437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438   (eval $ac_try) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); }; }; then
7442   ac_header_compiler=yes
7443 else
7444   echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7446
7447 ac_header_compiler=no
7448 fi
7449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7451 echo "${ECHO_T}$ac_header_compiler" >&6
7452
7453 # Is the header present?
7454 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7455 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h.  */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h.  */
7462 #include <valgrind.h>
7463 _ACEOF
7464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7466   ac_status=$?
7467   grep -v '^ *+' conftest.er1 >conftest.err
7468   rm -f conftest.er1
7469   cat conftest.err >&5
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } >/dev/null; then
7472   if test -s conftest.err; then
7473     ac_cpp_err=$ac_c_preproc_warn_flag
7474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7475   else
7476     ac_cpp_err=
7477   fi
7478 else
7479   ac_cpp_err=yes
7480 fi
7481 if test -z "$ac_cpp_err"; then
7482   ac_header_preproc=yes
7483 else
7484   echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487   ac_header_preproc=no
7488 fi
7489 rm -f conftest.err conftest.$ac_ext
7490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7491 echo "${ECHO_T}$ac_header_preproc" >&6
7492
7493 # So?  What about this header?
7494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7495   yes:no: )
7496     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7497 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7498     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7499 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7500     ac_header_preproc=yes
7501     ;;
7502   no:yes:* )
7503     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7504 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7505     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
7506 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
7507     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7508 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7509     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
7510 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7511     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7512 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7513     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7514 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7515     (
7516       cat <<\_ASBOX
7517 ## ------------------------------------------ ##
7518 ## Report this to the AC_PACKAGE_NAME lists.  ##
7519 ## ------------------------------------------ ##
7520 _ASBOX
7521     ) |
7522       sed "s/^/$as_me: WARNING:     /" >&2
7523     ;;
7524 esac
7525 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7526 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7527 if test "${ac_cv_header_valgrind_h+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   ac_cv_header_valgrind_h=$ac_header_preproc
7531 fi
7532 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7533 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7534
7535 fi
7536 if test $ac_cv_header_valgrind_h = yes; then
7537   have_valgrind_h=yes
7538 else
7539   have_valgrind_h=no
7540 fi
7541
7542
7543
7544 if test x$ac_valgrind_checking != x ; then
7545   # It is certainly possible that there's valgrind but no valgrind.h.
7546   # GCC relies on making annotations so we must have both.
7547   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7548 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7549   cat >conftest.$ac_ext <<_ACEOF
7550 /* confdefs.h.  */
7551 _ACEOF
7552 cat confdefs.h >>conftest.$ac_ext
7553 cat >>conftest.$ac_ext <<_ACEOF
7554 /* end confdefs.h.  */
7555 #include <valgrind/memcheck.h>
7556 #ifndef VALGRIND_DISCARD
7557 #error VALGRIND_DISCARD not defined
7558 #endif
7559 _ACEOF
7560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7562   ac_status=$?
7563   grep -v '^ *+' conftest.er1 >conftest.err
7564   rm -f conftest.er1
7565   cat conftest.err >&5
7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); } >/dev/null; then
7568   if test -s conftest.err; then
7569     ac_cpp_err=$ac_c_preproc_warn_flag
7570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7571   else
7572     ac_cpp_err=
7573   fi
7574 else
7575   ac_cpp_err=yes
7576 fi
7577 if test -z "$ac_cpp_err"; then
7578   gcc_cv_header_valgrind_memcheck_h=yes
7579 else
7580   echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7582
7583   gcc_cv_header_valgrind_memcheck_h=no
7584 fi
7585 rm -f conftest.err conftest.$ac_ext
7586   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7587 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7588   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7589 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7590   cat >conftest.$ac_ext <<_ACEOF
7591 /* confdefs.h.  */
7592 _ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h.  */
7596 #include <memcheck.h>
7597 #ifndef VALGRIND_DISCARD
7598 #error VALGRIND_DISCARD not defined
7599 #endif
7600 _ACEOF
7601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7602   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7603   ac_status=$?
7604   grep -v '^ *+' conftest.er1 >conftest.err
7605   rm -f conftest.er1
7606   cat conftest.err >&5
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); } >/dev/null; then
7609   if test -s conftest.err; then
7610     ac_cpp_err=$ac_c_preproc_warn_flag
7611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7612   else
7613     ac_cpp_err=
7614   fi
7615 else
7616   ac_cpp_err=yes
7617 fi
7618 if test -z "$ac_cpp_err"; then
7619   gcc_cv_header_memcheck_h=yes
7620 else
7621   echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7623
7624   gcc_cv_header_memcheck_h=no
7625 fi
7626 rm -f conftest.err conftest.$ac_ext
7627   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7628 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7629
7630 # Prepare PATH_SEPARATOR.
7631 # The user is always right.
7632 if test "${PATH_SEPARATOR+set}" != set; then
7633   echo "#! /bin/sh" >conf$$.sh
7634   echo  "exit 0"   >>conf$$.sh
7635   chmod +x conf$$.sh
7636   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7637     PATH_SEPARATOR=';'
7638   else
7639     PATH_SEPARATOR=:
7640   fi
7641   rm -f conf$$.sh
7642 fi
7643
7644 # Find out how to test for executable files. Don't use a zero-byte file,
7645 # as systems may use methods other than mode bits to determine executability.
7646 cat >conf$$.file <<_ASEOF
7647 #! /bin/sh
7648 exit 0
7649 _ASEOF
7650 chmod +x conf$$.file
7651 if test -x conf$$.file >/dev/null 2>&1; then
7652   ac_executable_p="test -x"
7653 else
7654   ac_executable_p="test -f"
7655 fi
7656 rm -f conf$$.file
7657
7658 # Extract the first word of "valgrind", so it can be a program name with args.
7659 set dummy valgrind; ac_word=$2
7660 echo "$as_me:$LINENO: checking for $ac_word" >&5
7661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7662 if test "${ac_cv_path_valgrind_path+set}" = set; then
7663   echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665   case "$valgrind_path" in
7666   [\\/]* | ?:[\\/]*)
7667     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7668     ;;
7669   *)
7670     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7671     for ac_dir in $PATH; do
7672       IFS="$ac_save_IFS"
7673       test -z "$ac_dir" && ac_dir=.
7674       for ac_exec_ext in '' $ac_executable_extensions; do
7675         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7676           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7677             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7678             break 2
7679           fi
7680         fi
7681       done
7682     done
7683     IFS="$ac_save_IFS"
7684     ;;
7685 esac
7686 fi
7687 valgrind_path="$ac_cv_path_valgrind_path"
7688 if test -n "$valgrind_path"; then
7689   echo "$as_me:$LINENO: result: $valgrind_path" >&5
7690 echo "${ECHO_T}$valgrind_path" >&6
7691 else
7692   echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6
7694 fi
7695
7696   if test "x$valgrind_path" = "x" \
7697     || (test $have_valgrind_h = no \
7698         && test $gcc_cv_header_memcheck_h = no \
7699         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7700         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7701 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7702    { (exit 1); exit 1; }; }
7703   fi
7704   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7705   valgrind_command="$valgrind_path -q"
7706
7707 cat >>confdefs.h <<\_ACEOF
7708 #define ENABLE_VALGRIND_CHECKING 1
7709 _ACEOF
7710
7711   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7712
7713 cat >>confdefs.h <<\_ACEOF
7714 #define HAVE_VALGRIND_MEMCHECK_H 1
7715 _ACEOF
7716
7717   fi
7718   if test $gcc_cv_header_memcheck_h = yes; then
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_MEMCHECK_H 1
7722 _ACEOF
7723
7724   fi
7725 fi
7726
7727
7728
7729 # Enable code coverage collection
7730 # Check whether --enable-coverage or --disable-coverage was given.
7731 if test "${enable_coverage+set}" = set; then
7732   enableval="$enable_coverage"
7733   case "${enableval}" in
7734   yes|noopt)
7735     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7736     ;;
7737   opt)
7738     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7739     ;;
7740   no)
7741     # a.k.a. --disable-coverage
7742     coverage_flags=""
7743     ;;
7744   *)
7745     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7746 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7747    { (exit 1); exit 1; }; }
7748     ;;
7749 esac
7750 else
7751   coverage_flags=""
7752 fi;
7753
7754
7755 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7756 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7757   enableval="$enable_gather_detailed_mem_stats"
7758
7759 else
7760   enable_gather_detailed_mem_stats=no
7761 fi;
7762 if test x$enable_gather_detailed_mem_stats = xyes ; then
7763
7764 cat >>confdefs.h <<\_ACEOF
7765 #define GATHER_STATISTICS 1
7766 _ACEOF
7767
7768 fi
7769
7770 # -------------------------------
7771 # Miscenalleous configure options
7772 # -------------------------------
7773
7774 # With stabs
7775
7776 # Check whether --with-stabs or --without-stabs was given.
7777 if test "${with_stabs+set}" = set; then
7778   withval="$with_stabs"
7779   stabs="$with_stabs"
7780 else
7781   stabs=no
7782 fi;
7783
7784 # Determine whether or not multilibs are enabled.
7785 # Check whether --enable-multilib or --disable-multilib was given.
7786 if test "${enable_multilib+set}" = set; then
7787   enableval="$enable_multilib"
7788
7789 else
7790   enable_multilib=yes
7791 fi;
7792
7793
7794 # Enable __cxa_atexit for C++.
7795 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7796 if test "${enable___cxa_atexit+set}" = set; then
7797   enableval="$enable___cxa_atexit"
7798
7799 fi;
7800
7801 # Enable C extension for decimal float if target supports it.
7802 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7803 if test "${enable_decimal_float+set}" = set; then
7804   enableval="$enable_decimal_float"
7805
7806   case $enable_decimal_float in
7807     yes | no | bid | dpd) ;;
7808     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7809 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7810 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7811 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7812    { (exit 1); exit 1; }; } ;;
7813   esac
7814
7815 else
7816
7817   case $target in
7818     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7819       enable_decimal_float=yes
7820       ;;
7821     *)
7822       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7823 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7824       enable_decimal_float=no
7825       ;;
7826   esac
7827
7828 fi;
7829
7830 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7831
7832 cat >>confdefs.h <<_ACEOF
7833 #define ENABLE_DECIMAL_FLOAT $dfp
7834 _ACEOF
7835
7836
7837 # x86's use BID format instead of DPD
7838 case x$enable_decimal_float in
7839   xyes)
7840     case $target in
7841       i?86*-*-linux* | x86_64*-*-linux*)
7842         enable_decimal_float=bid
7843         ;;
7844       *)
7845         enable_decimal_float=dpd
7846         ;;
7847     esac
7848     ;;
7849   xno)
7850     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7851     # dependency on libdecnumber.
7852     enable_decimal_float=dpd
7853     ;;
7854 esac
7855
7856
7857 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7858
7859 cat >>confdefs.h <<_ACEOF
7860 #define ENABLE_DECIMAL_BID_FORMAT $bid
7861 _ACEOF
7862
7863
7864 # Enable C extension for fixed-point arithmetic.
7865 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7866 if test "${enable_fixed_point+set}" = set; then
7867   enableval="$enable_fixed_point"
7868
7869
7870 else
7871
7872   case $target in
7873     mips*-*-*)
7874       case $host in
7875         mips*-sgi-irix*)
7876           { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7877 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7878           enable_fixed_point=no
7879           ;;
7880         *)
7881           enable_fixed_point=yes
7882           ;;
7883       esac
7884       ;;
7885     *)
7886       { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7887 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7888       enable_fixed_point=no
7889       ;;
7890   esac
7891
7892 fi;
7893
7894
7895 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7896
7897 cat >>confdefs.h <<_ACEOF
7898 #define ENABLE_FIXED_POINT $fixedpoint
7899 _ACEOF
7900
7901
7902 # Enable threads
7903 # Pass with no value to take the default
7904 # Pass with a value to specify a thread package
7905 # Check whether --enable-threads or --disable-threads was given.
7906 if test "${enable_threads+set}" = set; then
7907   enableval="$enable_threads"
7908
7909 else
7910   enable_threads=''
7911 fi;
7912
7913 # Check whether --enable-tls or --disable-tls was given.
7914 if test "${enable_tls+set}" = set; then
7915   enableval="$enable_tls"
7916
7917   case $enable_tls in
7918     yes | no) ;;
7919     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7920 Valid choices are 'yes' and 'no'." >&5
7921 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7922 Valid choices are 'yes' and 'no'." >&2;}
7923    { (exit 1); exit 1; }; } ;;
7924   esac
7925
7926 else
7927   enable_tls=''
7928 fi;
7929
7930 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7931 if test "${enable_objc_gc+set}" = set; then
7932   enableval="$enable_objc_gc"
7933   if test x$enable_objc_gc = xno; then
7934         objc_boehm_gc=''
7935 else
7936         objc_boehm_gc=1
7937 fi
7938 else
7939   objc_boehm_gc=''
7940 fi;
7941
7942
7943 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7944 if test "${with_dwarf2+set}" = set; then
7945   withval="$with_dwarf2"
7946   dwarf2="$with_dwarf2"
7947 else
7948   dwarf2=no
7949 fi;
7950
7951 # Check whether --enable-shared or --disable-shared was given.
7952 if test "${enable_shared+set}" = set; then
7953   enableval="$enable_shared"
7954
7955   case $enable_shared in
7956   yes | no) ;;
7957   *)
7958     enable_shared=no
7959     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7960     for pkg in $enableval; do
7961       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7962         enable_shared=yes
7963       fi
7964     done
7965     IFS="$ac_save_ifs"
7966     ;;
7967   esac
7968
7969 else
7970   enable_shared=yes
7971 fi;
7972
7973
7974
7975 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7976 if test "${with_build_sysroot+set}" = set; then
7977   withval="$with_build_sysroot"
7978
7979 fi;
7980
7981
7982 # Check whether --with-sysroot or --without-sysroot was given.
7983 if test "${with_sysroot+set}" = set; then
7984   withval="$with_sysroot"
7985
7986  case ${with_sysroot} in
7987  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7988  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7989  esac
7990
7991  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7992  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7993
7994  if test "x$prefix" = xNONE; then
7995   test_prefix=/usr/local
7996  else
7997   test_prefix=$prefix
7998  fi
7999  if test "x$exec_prefix" = xNONE; then
8000   test_exec_prefix=$test_prefix
8001  else
8002   test_exec_prefix=$exec_prefix
8003  fi
8004  case ${TARGET_SYSTEM_ROOT} in
8005  "${test_prefix}"|"${test_prefix}/"*|\
8006  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8007  '${prefix}'|'${prefix}/'*|\
8008  '${exec_prefix}'|'${exec_prefix}/'*)
8009    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8010    TARGET_SYSTEM_ROOT_DEFINE="$t"
8011    ;;
8012  esac
8013
8014 else
8015
8016  TARGET_SYSTEM_ROOT=
8017  TARGET_SYSTEM_ROOT_DEFINE=
8018  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8019
8020 fi;
8021
8022
8023
8024
8025 # Build with intermodule optimisations
8026 # Check whether --enable-intermodule or --disable-intermodule was given.
8027 if test "${enable_intermodule+set}" = set; then
8028   enableval="$enable_intermodule"
8029   case ${enable_intermodule} in
8030   yes) onestep="-onestep";;
8031   *) onestep="";;
8032 esac
8033 else
8034   onestep=""
8035 fi;
8036
8037
8038
8039
8040 # Check whether --with-pkgversion or --without-pkgversion was given.
8041 if test "${with_pkgversion+set}" = set; then
8042   withval="$with_pkgversion"
8043   case "$withval" in
8044       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8045 echo "$as_me: error: package version not specified" >&2;}
8046    { (exit 1); exit 1; }; } ;;
8047       no)  PKGVERSION= ;;
8048       *)   PKGVERSION="($withval) " ;;
8049      esac
8050 else
8051   PKGVERSION="(GCC) "
8052
8053 fi;
8054
8055
8056
8057
8058 # Check whether --with-bugurl or --without-bugurl was given.
8059 if test "${with_bugurl+set}" = set; then
8060   withval="$with_bugurl"
8061   case "$withval" in
8062       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8063 echo "$as_me: error: bug URL not specified" >&2;}
8064    { (exit 1); exit 1; }; } ;;
8065       no)  BUGURL=
8066            ;;
8067       *)   BUGURL="$withval"
8068            ;;
8069      esac
8070 else
8071   BUGURL="http://gcc.gnu.org/bugs.html"
8072
8073 fi;
8074   case ${BUGURL} in
8075   "")
8076     REPORT_BUGS_TO=
8077     REPORT_BUGS_TEXI=
8078     ;;
8079   *)
8080     REPORT_BUGS_TO="<$BUGURL>"
8081     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8082     ;;
8083   esac;
8084
8085
8086
8087
8088 # Sanity check enable_languages in case someone does not run the toplevel
8089 # configure # script.
8090 # Check whether --enable-languages or --disable-languages was given.
8091 if test "${enable_languages+set}" = set; then
8092   enableval="$enable_languages"
8093   case ,${enable_languages}, in
8094        ,,|,yes,)
8095                 # go safe -- we cannot be much sure without the toplevel
8096                 # configure's
8097                 # analysis of which target libs are present and usable
8098                 enable_languages=c
8099                 ;;
8100          *,all,*)
8101                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8102 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8103    { (exit 1); exit 1; }; }
8104                 ;;
8105         *,c,*)
8106                 ;;
8107         *)
8108                 enable_languages=c,${enable_languages}
8109                 ;;
8110 esac
8111 else
8112   enable_languages=c
8113 fi;
8114
8115 # Used by documentation targets
8116
8117
8118
8119
8120 # -------------------------
8121 # Checks for other programs
8122 # -------------------------
8123
8124 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8125 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8126 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8127 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   cat >conftest.make <<\_ACEOF
8131 all:
8132         @echo 'ac_maketemp="$(MAKE)"'
8133 _ACEOF
8134 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8135 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8136 if test -n "$ac_maketemp"; then
8137   eval ac_cv_prog_make_${ac_make}_set=yes
8138 else
8139   eval ac_cv_prog_make_${ac_make}_set=no
8140 fi
8141 rm -f conftest.make
8142 fi
8143 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8144   echo "$as_me:$LINENO: result: yes" >&5
8145 echo "${ECHO_T}yes" >&6
8146   SET_MAKE=
8147 else
8148   echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8150   SET_MAKE="MAKE=${MAKE-make}"
8151 fi
8152
8153
8154 # Find some useful tools
8155 for ac_prog in gawk mawk nawk awk
8156 do
8157   # Extract the first word of "$ac_prog", so it can be a program name with args.
8158 set dummy $ac_prog; ac_word=$2
8159 echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8161 if test "${ac_cv_prog_AWK+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   if test -n "$AWK"; then
8165   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170   IFS=$as_save_IFS
8171   test -z "$as_dir" && as_dir=.
8172   for ac_exec_ext in '' $ac_executable_extensions; do
8173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174     ac_cv_prog_AWK="$ac_prog"
8175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176     break 2
8177   fi
8178 done
8179 done
8180
8181 fi
8182 fi
8183 AWK=$ac_cv_prog_AWK
8184 if test -n "$AWK"; then
8185   echo "$as_me:$LINENO: result: $AWK" >&5
8186 echo "${ECHO_T}$AWK" >&6
8187 else
8188   echo "$as_me:$LINENO: result: no" >&5
8189 echo "${ECHO_T}no" >&6
8190 fi
8191
8192   test -n "$AWK" && break
8193 done
8194
8195 # We need awk to create options.c and options.h.
8196 # Bail out if it's missing.
8197 case ${AWK} in
8198   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8199 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8200    { (exit 1); exit 1; }; } ;;
8201 esac
8202
8203 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8204 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8205 if test "${gcc_cv_prog_LN_S+set}" = set; then
8206   echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208   rm -f conftestdata_t
8209 echo >conftestdata_f
8210 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8211 then
8212   gcc_cv_prog_LN_S="ln -s"
8213 else
8214   if ln conftestdata_f conftestdata_t 2>/dev/null
8215   then
8216     gcc_cv_prog_LN_S=ln
8217   else
8218     if cp -p conftestdata_f conftestdata_t 2>/dev/null
8219     then
8220       gcc_cv_prog_LN_S="cp -p"
8221     else
8222       gcc_cv_prog_LN_S=cp
8223     fi
8224   fi
8225 fi
8226 rm -f conftestdata_f conftestdata_t
8227
8228 fi
8229 LN_S="$gcc_cv_prog_LN_S"
8230 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8231   echo "$as_me:$LINENO: result: yes" >&5
8232 echo "${ECHO_T}yes" >&6
8233 else
8234   if test "$gcc_cv_prog_LN_S" = "ln"; then
8235     echo "$as_me:$LINENO: result: no, using ln" >&5
8236 echo "${ECHO_T}no, using ln" >&6
8237   else
8238     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8239 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8240   fi
8241 fi
8242
8243 echo "$as_me:$LINENO: checking whether ln works" >&5
8244 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8245 if test "${acx_cv_prog_LN+set}" = set; then
8246   echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248   rm -f conftestdata_t
8249 echo >conftestdata_f
8250 if ln conftestdata_f conftestdata_t 2>/dev/null
8251 then
8252   acx_cv_prog_LN=ln
8253 else
8254   acx_cv_prog_LN=no
8255 fi
8256 rm -f conftestdata_f conftestdata_t
8257
8258 fi
8259 if test $acx_cv_prog_LN = no; then
8260   LN="$LN_S"
8261   echo "$as_me:$LINENO: result: no, using $LN" >&5
8262 echo "${ECHO_T}no, using $LN" >&6
8263 else
8264   LN="$acx_cv_prog_LN"
8265   echo "$as_me:$LINENO: result: yes" >&5
8266 echo "${ECHO_T}yes" >&6
8267 fi
8268
8269 if test -n "$ac_tool_prefix"; then
8270   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8271 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8272 echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8274 if test "${ac_cv_prog_RANLIB+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   if test -n "$RANLIB"; then
8278   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283   IFS=$as_save_IFS
8284   test -z "$as_dir" && as_dir=.
8285   for ac_exec_ext in '' $ac_executable_extensions; do
8286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289     break 2
8290   fi
8291 done
8292 done
8293
8294 fi
8295 fi
8296 RANLIB=$ac_cv_prog_RANLIB
8297 if test -n "$RANLIB"; then
8298   echo "$as_me:$LINENO: result: $RANLIB" >&5
8299 echo "${ECHO_T}$RANLIB" >&6
8300 else
8301   echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8303 fi
8304
8305 fi
8306 if test -z "$ac_cv_prog_RANLIB"; then
8307   ac_ct_RANLIB=$RANLIB
8308   # Extract the first word of "ranlib", so it can be a program name with args.
8309 set dummy ranlib; ac_word=$2
8310 echo "$as_me:$LINENO: checking for $ac_word" >&5
8311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8312 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   if test -n "$ac_ct_RANLIB"; then
8316   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321   IFS=$as_save_IFS
8322   test -z "$as_dir" && as_dir=.
8323   for ac_exec_ext in '' $ac_executable_extensions; do
8324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325     ac_cv_prog_ac_ct_RANLIB="ranlib"
8326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327     break 2
8328   fi
8329 done
8330 done
8331
8332   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8333 fi
8334 fi
8335 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8336 if test -n "$ac_ct_RANLIB"; then
8337   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8338 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8339 else
8340   echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6
8342 fi
8343
8344   RANLIB=$ac_ct_RANLIB
8345 else
8346   RANLIB="$ac_cv_prog_RANLIB"
8347 fi
8348
8349 case "${host}" in
8350 *-*-darwin*)
8351   # By default, the Darwin ranlib will not treat common symbols as
8352   # definitions when  building the archive table of contents.  Other
8353   # ranlibs do that; pass an option to the Darwin ranlib that makes
8354   # it behave similarly.
8355   ranlib_flags="-c"
8356   ;;
8357 *)
8358   ranlib_flags=""
8359 esac
8360
8361
8362 # Find a good install program.  We prefer a C program (faster),
8363 # so one script is as good as another.  But avoid the broken or
8364 # incompatible versions:
8365 # SysV /etc/install, /usr/sbin/install
8366 # SunOS /usr/etc/install
8367 # IRIX /sbin/install
8368 # AIX /bin/install
8369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8371 # ./install, which can be erroneously created by make from ./install.sh.
8372 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8373 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8374 if test -z "$INSTALL"; then
8375 if test "${ac_cv_path_install+set}" = set; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8379   for ac_dir in $PATH; do
8380     # Account for people who put trailing slashes in PATH elements.
8381     case "$ac_dir/" in
8382     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8383     *)
8384       # OSF1 and SCO ODT 3.0 have their own names for install.
8385       for ac_prog in ginstall scoinst install; do
8386         if test -f $ac_dir/$ac_prog; then
8387           if test $ac_prog = install &&
8388             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8389             # AIX install.  It has an incompatible calling convention.
8390             # OSF/1 installbsd also uses dspmsg, but is usable.
8391             :
8392           else
8393             ac_cv_path_install="$ac_dir/$ac_prog -c"
8394             break 2
8395           fi
8396         fi
8397       done
8398       ;;
8399     esac
8400   done
8401   IFS="$ac_save_IFS"
8402
8403 fi
8404   if test "${ac_cv_path_install+set}" = set; then
8405     INSTALL="$ac_cv_path_install"
8406   else
8407     # As a last resort, use the slow shell script.  We don't cache a
8408     # path for INSTALL within a source directory, because that will
8409     # break other packages using the cache if that directory is
8410     # removed, or if the path is relative.
8411     INSTALL="$ac_install_sh"
8412   fi
8413 fi
8414 echo "$as_me:$LINENO: result: $INSTALL" >&5
8415 echo "${ECHO_T}$INSTALL" >&6
8416
8417 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8418 # It thinks the first close brace ends the variable substitution.
8419 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8420
8421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8422
8423
8424 # See if cmp has --ignore-initial.
8425 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8426 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8427 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8428   echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430    echo abfoo >t1
8431   echo cdfoo >t2
8432   gcc_cv_prog_cmp_skip=slowcompare
8433   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8434     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8435       :
8436     else
8437       gcc_cv_prog_cmp_skip=gnucompare
8438     fi
8439   fi
8440   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8441     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8442       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8443         :
8444       else
8445         gcc_cv_prog_cmp_skip=fastcompare
8446       fi
8447     fi
8448   fi
8449   rm t1 t2
8450
8451 fi
8452 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8453 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8454 make_compare_target=$gcc_cv_prog_cmp_skip
8455
8456
8457
8458 # See if we have the mktemp command.
8459 # Extract the first word of "mktemp", so it can be a program name with args.
8460 set dummy mktemp; ac_word=$2
8461 echo "$as_me:$LINENO: checking for $ac_word" >&5
8462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8463 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466   if test -n "$have_mktemp_command"; then
8467   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8468 else
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 for as_dir in $PATH
8471 do
8472   IFS=$as_save_IFS
8473   test -z "$as_dir" && as_dir=.
8474   for ac_exec_ext in '' $ac_executable_extensions; do
8475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476     ac_cv_prog_have_mktemp_command="yes"
8477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8478     break 2
8479   fi
8480 done
8481 done
8482
8483   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8484 fi
8485 fi
8486 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8487 if test -n "$have_mktemp_command"; then
8488   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8489 echo "${ECHO_T}$have_mktemp_command" >&6
8490 else
8491   echo "$as_me:$LINENO: result: no" >&5
8492 echo "${ECHO_T}no" >&6
8493 fi
8494
8495
8496 # See if makeinfo has been installed and is modern enough
8497 # that we can use it.
8498
8499   # Extract the first word of "makeinfo", so it can be a program name with args.
8500 set dummy makeinfo; ac_word=$2
8501 echo "$as_me:$LINENO: checking for $ac_word" >&5
8502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8503 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506   if test -n "$MAKEINFO"; then
8507   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8508 else
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512   IFS=$as_save_IFS
8513   test -z "$as_dir" && as_dir=.
8514   for ac_exec_ext in '' $ac_executable_extensions; do
8515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516     ac_cv_prog_MAKEINFO="makeinfo"
8517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518     break 2
8519   fi
8520 done
8521 done
8522
8523 fi
8524 fi
8525 MAKEINFO=$ac_cv_prog_MAKEINFO
8526 if test -n "$MAKEINFO"; then
8527   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8528 echo "${ECHO_T}$MAKEINFO" >&6
8529 else
8530   echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6
8532 fi
8533
8534   if test -n "$MAKEINFO"; then
8535     # Found it, now check the version.
8536     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8537 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8538 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8542                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8543
8544                     case $ac_prog_version in
8545                       '')  gcc_cv_prog_makeinfo_modern=no;;
8546                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8547                       *)   gcc_cv_prog_makeinfo_modern=no;;
8548                     esac
8549
8550 fi
8551 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8552 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8553   else
8554     gcc_cv_prog_makeinfo_modern=no
8555   fi
8556   if test $gcc_cv_prog_makeinfo_modern = no; then
8557     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8558   fi
8559
8560 if test $gcc_cv_prog_makeinfo_modern = no; then
8561   { echo "$as_me:$LINENO: WARNING:
8562 *** Makeinfo is missing or too old.
8563 *** Info documentation will not be built." >&5
8564 echo "$as_me: WARNING:
8565 *** Makeinfo is missing or too old.
8566 *** Info documentation will not be built." >&2;}
8567   BUILD_INFO=
8568 else
8569   BUILD_INFO=info
8570 fi
8571
8572
8573 # Is pod2man recent enough to regenerate manpages?
8574 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8575 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8576 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8577   echo "$as_me:$LINENO: result: yes" >&5
8578 echo "${ECHO_T}yes" >&6
8579   GENERATED_MANPAGES=generated-manpages
8580 else
8581   echo "$as_me:$LINENO: result: no" >&5
8582 echo "${ECHO_T}no" >&6
8583   GENERATED_MANPAGES=
8584 fi
8585
8586
8587 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8588
8589 # How about lex?
8590 for ac_prog in flex
8591 do
8592   # Extract the first word of "$ac_prog", so it can be a program name with args.
8593 set dummy $ac_prog; ac_word=$2
8594 echo "$as_me:$LINENO: checking for $ac_word" >&5
8595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8596 if test "${ac_cv_prog_FLEX+set}" = set; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599   if test -n "$FLEX"; then
8600   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8604 do
8605   IFS=$as_save_IFS
8606   test -z "$as_dir" && as_dir=.
8607   for ac_exec_ext in '' $ac_executable_extensions; do
8608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609     ac_cv_prog_FLEX="$ac_prog"
8610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8611     break 2
8612   fi
8613 done
8614 done
8615
8616 fi
8617 fi
8618 FLEX=$ac_cv_prog_FLEX
8619 if test -n "$FLEX"; then
8620   echo "$as_me:$LINENO: result: $FLEX" >&5
8621 echo "${ECHO_T}$FLEX" >&6
8622 else
8623   echo "$as_me:$LINENO: result: no" >&5
8624 echo "${ECHO_T}no" >&6
8625 fi
8626
8627   test -n "$FLEX" && break
8628 done
8629 test -n "$FLEX" || FLEX="$MISSING flex"
8630
8631
8632 # Bison?
8633 for ac_prog in bison
8634 do
8635   # Extract the first word of "$ac_prog", so it can be a program name with args.
8636 set dummy $ac_prog; ac_word=$2
8637 echo "$as_me:$LINENO: checking for $ac_word" >&5
8638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8639 if test "${ac_cv_prog_BISON+set}" = set; then
8640   echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642   if test -n "$BISON"; then
8643   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8644 else
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 for as_dir in $PATH
8647 do
8648   IFS=$as_save_IFS
8649   test -z "$as_dir" && as_dir=.
8650   for ac_exec_ext in '' $ac_executable_extensions; do
8651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8652     ac_cv_prog_BISON="$ac_prog"
8653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8654     break 2
8655   fi
8656 done
8657 done
8658
8659 fi
8660 fi
8661 BISON=$ac_cv_prog_BISON
8662 if test -n "$BISON"; then
8663   echo "$as_me:$LINENO: result: $BISON" >&5
8664 echo "${ECHO_T}$BISON" >&6
8665 else
8666   echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6
8668 fi
8669
8670   test -n "$BISON" && break
8671 done
8672 test -n "$BISON" || BISON="$MISSING bison"
8673
8674
8675 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8676 # check for build == host before using them.
8677
8678 # NM
8679 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8680   && test -d ../binutils ; then
8681   NM='$(objdir)/../binutils/nm-new'
8682 else
8683   # Extract the first word of "nm", so it can be a program name with args.
8684 set dummy nm; ac_word=$2
8685 echo "$as_me:$LINENO: checking for $ac_word" >&5
8686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8687 if test "${ac_cv_prog_NM+set}" = set; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690   if test -n "$NM"; then
8691   ac_cv_prog_NM="$NM" # Let the user override the test.
8692 else
8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 for as_dir in $PATH
8695 do
8696   IFS=$as_save_IFS
8697   test -z "$as_dir" && as_dir=.
8698   for ac_exec_ext in '' $ac_executable_extensions; do
8699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8700     ac_cv_prog_NM="nm"
8701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8702     break 2
8703   fi
8704 done
8705 done
8706
8707   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8708 fi
8709 fi
8710 NM=$ac_cv_prog_NM
8711 if test -n "$NM"; then
8712   echo "$as_me:$LINENO: result: $NM" >&5
8713 echo "${ECHO_T}$NM" >&6
8714 else
8715   echo "$as_me:$LINENO: result: no" >&5
8716 echo "${ECHO_T}no" >&6
8717 fi
8718
8719 fi
8720
8721 # AR
8722 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8723   && test -d ../binutils ; then
8724   AR='$(objdir)/../binutils/ar'
8725 else
8726   # Extract the first word of "ar", so it can be a program name with args.
8727 set dummy ar; ac_word=$2
8728 echo "$as_me:$LINENO: checking for $ac_word" >&5
8729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8730 if test "${ac_cv_prog_AR+set}" = set; then
8731   echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733   if test -n "$AR"; then
8734   ac_cv_prog_AR="$AR" # Let the user override the test.
8735 else
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8738 do
8739   IFS=$as_save_IFS
8740   test -z "$as_dir" && as_dir=.
8741   for ac_exec_ext in '' $ac_executable_extensions; do
8742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743     ac_cv_prog_AR="ar"
8744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8745     break 2
8746   fi
8747 done
8748 done
8749
8750   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8751 fi
8752 fi
8753 AR=$ac_cv_prog_AR
8754 if test -n "$AR"; then
8755   echo "$as_me:$LINENO: result: $AR" >&5
8756 echo "${ECHO_T}$AR" >&6
8757 else
8758   echo "$as_me:$LINENO: result: no" >&5
8759 echo "${ECHO_T}no" >&6
8760 fi
8761
8762 fi
8763
8764
8765 # --------------------
8766 # Checks for C headers
8767 # --------------------
8768
8769 # Need to reject headers which give warnings, so that the -Werror bootstrap
8770 # works later. *sigh*  This needs to come before all header checks.
8771
8772 ac_c_preproc_warn_flag=yes
8773
8774 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8775 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8776 if test "${ac_cv_header_stdc+set}" = set; then
8777   echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779   cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h.  */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h.  */
8785 #include <stdlib.h>
8786 #include <stdarg.h>
8787 #include <string.h>
8788 #include <float.h>
8789
8790 int
8791 main ()
8792 {
8793
8794   ;
8795   return 0;
8796 }
8797 _ACEOF
8798 rm -f conftest.$ac_objext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800   (eval $ac_compile) 2>conftest.er1
8801   ac_status=$?
8802   grep -v '^ *+' conftest.er1 >conftest.err
8803   rm -f conftest.er1
8804   cat conftest.err >&5
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); } &&
8807          { ac_try='test -z "$ac_c_werror_flag"
8808                          || test ! -s conftest.err'
8809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810   (eval $ac_try) 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); }; } &&
8814          { ac_try='test -s conftest.$ac_objext'
8815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816   (eval $ac_try) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); }; }; then
8820   ac_cv_header_stdc=yes
8821 else
8822   echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8824
8825 ac_cv_header_stdc=no
8826 fi
8827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828
8829 if test $ac_cv_header_stdc = yes; then
8830   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8831   cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837 #include <string.h>
8838
8839 _ACEOF
8840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8841   $EGREP "memchr" >/dev/null 2>&1; then
8842   :
8843 else
8844   ac_cv_header_stdc=no
8845 fi
8846 rm -f conftest*
8847
8848 fi
8849
8850 if test $ac_cv_header_stdc = yes; then
8851   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8852   cat >conftest.$ac_ext <<_ACEOF
8853 /* confdefs.h.  */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h.  */
8858 #include <stdlib.h>
8859
8860 _ACEOF
8861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8862   $EGREP "free" >/dev/null 2>&1; then
8863   :
8864 else
8865   ac_cv_header_stdc=no
8866 fi
8867 rm -f conftest*
8868
8869 fi
8870
8871 if test $ac_cv_header_stdc = yes; then
8872   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8873   if test "$cross_compiling" = yes; then
8874   :
8875 else
8876   cat >conftest.$ac_ext <<_ACEOF
8877 /* confdefs.h.  */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h.  */
8882 #include <ctype.h>
8883 #if ((' ' & 0x0FF) == 0x020)
8884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8886 #else
8887 # define ISLOWER(c) \
8888                    (('a' <= (c) && (c) <= 'i') \
8889                      || ('j' <= (c) && (c) <= 'r') \
8890                      || ('s' <= (c) && (c) <= 'z'))
8891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8892 #endif
8893
8894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8895 int
8896 main ()
8897 {
8898   int i;
8899   for (i = 0; i < 256; i++)
8900     if (XOR (islower (i), ISLOWER (i))
8901         || toupper (i) != TOUPPER (i))
8902       exit(2);
8903   exit (0);
8904 }
8905 _ACEOF
8906 rm -f conftest$ac_exeext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908   (eval $ac_link) 2>&5
8909   ac_status=$?
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913   (eval $ac_try) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; }; then
8917   :
8918 else
8919   echo "$as_me: program exited with status $ac_status" >&5
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923 ( exit $ac_status )
8924 ac_cv_header_stdc=no
8925 fi
8926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8927 fi
8928 fi
8929 fi
8930 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8931 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8932 if test $ac_cv_header_stdc = yes; then
8933
8934 cat >>confdefs.h <<\_ACEOF
8935 #define STDC_HEADERS 1
8936 _ACEOF
8937
8938 fi
8939
8940 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8941 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8942 if test "${ac_cv_header_time+set}" = set; then
8943   echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945   cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951 #include <sys/types.h>
8952 #include <sys/time.h>
8953 #include <time.h>
8954
8955 int
8956 main ()
8957 {
8958 if ((struct tm *) 0)
8959 return 0;
8960   ;
8961   return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966   (eval $ac_compile) 2>conftest.er1
8967   ac_status=$?
8968   grep -v '^ *+' conftest.er1 >conftest.err
8969   rm -f conftest.er1
8970   cat conftest.err >&5
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); } &&
8973          { ac_try='test -z "$ac_c_werror_flag"
8974                          || test ! -s conftest.err'
8975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976   (eval $ac_try) 2>&5
8977   ac_status=$?
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); }; } &&
8980          { ac_try='test -s conftest.$ac_objext'
8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982   (eval $ac_try) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; }; then
8986   ac_cv_header_time=yes
8987 else
8988   echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8990
8991 ac_cv_header_time=no
8992 fi
8993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994 fi
8995 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8996 echo "${ECHO_T}$ac_cv_header_time" >&6
8997 if test $ac_cv_header_time = yes; then
8998
8999 cat >>confdefs.h <<\_ACEOF
9000 #define TIME_WITH_SYS_TIME 1
9001 _ACEOF
9002
9003 fi
9004
9005 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9006 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9007 if test "${gcc_cv_header_string+set}" = set; then
9008   echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010   cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h.  */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h.  */
9016 #include <string.h>
9017 #include <strings.h>
9018 int
9019 main ()
9020 {
9021
9022   ;
9023   return 0;
9024 }
9025 _ACEOF
9026 rm -f conftest.$ac_objext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028   (eval $ac_compile) 2>conftest.er1
9029   ac_status=$?
9030   grep -v '^ *+' conftest.er1 >conftest.err
9031   rm -f conftest.er1
9032   cat conftest.err >&5
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } &&
9035          { ac_try='test -z "$ac_c_werror_flag"
9036                          || test ! -s conftest.err'
9037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038   (eval $ac_try) 2>&5
9039   ac_status=$?
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); }; } &&
9042          { ac_try='test -s conftest.$ac_objext'
9043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044   (eval $ac_try) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }; }; then
9048   gcc_cv_header_string=yes
9049 else
9050   echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9052
9053 gcc_cv_header_string=no
9054 fi
9055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9056 fi
9057 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9058 echo "${ECHO_T}$gcc_cv_header_string" >&6
9059 if test $gcc_cv_header_string = yes; then
9060
9061 cat >>confdefs.h <<\_ACEOF
9062 #define STRING_WITH_STRINGS 1
9063 _ACEOF
9064
9065 fi
9066
9067 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9068 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9069 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9070   echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072   cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h.  */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h.  */
9078 #include <sys/types.h>
9079 #include <sys/wait.h>
9080 #ifndef WEXITSTATUS
9081 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9082 #endif
9083 #ifndef WIFEXITED
9084 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9085 #endif
9086
9087 int
9088 main ()
9089 {
9090   int s;
9091   wait (&s);
9092   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9093   ;
9094   return 0;
9095 }
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099   (eval $ac_compile) 2>conftest.er1
9100   ac_status=$?
9101   grep -v '^ *+' conftest.er1 >conftest.err
9102   rm -f conftest.er1
9103   cat conftest.err >&5
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); } &&
9106          { ac_try='test -z "$ac_c_werror_flag"
9107                          || test ! -s conftest.err'
9108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109   (eval $ac_try) 2>&5
9110   ac_status=$?
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); }; } &&
9113          { ac_try='test -s conftest.$ac_objext'
9114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115   (eval $ac_try) 2>&5
9116   ac_status=$?
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); }; }; then
9119   ac_cv_header_sys_wait_h=yes
9120 else
9121   echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9123
9124 ac_cv_header_sys_wait_h=no
9125 fi
9126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9127 fi
9128 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9129 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9130 if test $ac_cv_header_sys_wait_h = yes; then
9131
9132 cat >>confdefs.h <<\_ACEOF
9133 #define HAVE_SYS_WAIT_H 1
9134 _ACEOF
9135
9136 fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9161                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9162                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
9163                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9164 do
9165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9166 echo "$as_me:$LINENO: checking for $ac_header" >&5
9167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169   echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171   cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h.  */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h.  */
9177 #include <$ac_header>
9178 _ACEOF
9179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9181   ac_status=$?
9182   grep -v '^ *+' conftest.er1 >conftest.err
9183   rm -f conftest.er1
9184   cat conftest.err >&5
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   (exit $ac_status); } >/dev/null; then
9187   if test -s conftest.err; then
9188     ac_cpp_err=$ac_c_preproc_warn_flag
9189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9190   else
9191     ac_cpp_err=
9192   fi
9193 else
9194   ac_cpp_err=yes
9195 fi
9196 if test -z "$ac_cpp_err"; then
9197   eval "$as_ac_Header=yes"
9198 else
9199   echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9201
9202   eval "$as_ac_Header=no"
9203 fi
9204 rm -f conftest.err conftest.$ac_ext
9205 fi
9206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9209   cat >>confdefs.h <<_ACEOF
9210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9211 _ACEOF
9212
9213 fi
9214 done
9215
9216
9217 # Check for thread headers.
9218 echo "$as_me:$LINENO: checking for thread.h" >&5
9219 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9220 if test "${ac_cv_header_thread_h+set}" = set; then
9221   echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223   cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h.  */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h.  */
9229 #include <thread.h>
9230 _ACEOF
9231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9233   ac_status=$?
9234   grep -v '^ *+' conftest.er1 >conftest.err
9235   rm -f conftest.er1
9236   cat conftest.err >&5
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); } >/dev/null; then
9239   if test -s conftest.err; then
9240     ac_cpp_err=$ac_c_preproc_warn_flag
9241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9242   else
9243     ac_cpp_err=
9244   fi
9245 else
9246   ac_cpp_err=yes
9247 fi
9248 if test -z "$ac_cpp_err"; then
9249   ac_cv_header_thread_h=yes
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254   ac_cv_header_thread_h=no
9255 fi
9256 rm -f conftest.err conftest.$ac_ext
9257 fi
9258 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9259 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9260 if test $ac_cv_header_thread_h = yes; then
9261   have_thread_h=yes
9262 else
9263   have_thread_h=
9264 fi
9265
9266 echo "$as_me:$LINENO: checking for pthread.h" >&5
9267 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9268 if test "${ac_cv_header_pthread_h+set}" = set; then
9269   echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271   cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h.  */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h.  */
9277 #include <pthread.h>
9278 _ACEOF
9279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9281   ac_status=$?
9282   grep -v '^ *+' conftest.er1 >conftest.err
9283   rm -f conftest.er1
9284   cat conftest.err >&5
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); } >/dev/null; then
9287   if test -s conftest.err; then
9288     ac_cpp_err=$ac_c_preproc_warn_flag
9289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9290   else
9291     ac_cpp_err=
9292   fi
9293 else
9294   ac_cpp_err=yes
9295 fi
9296 if test -z "$ac_cpp_err"; then
9297   ac_cv_header_pthread_h=yes
9298 else
9299   echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9301
9302   ac_cv_header_pthread_h=no
9303 fi
9304 rm -f conftest.err conftest.$ac_ext
9305 fi
9306 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9307 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9308 if test $ac_cv_header_pthread_h = yes; then
9309   have_pthread_h=yes
9310 else
9311   have_pthread_h=
9312 fi
9313
9314
9315 # These tests can't be done till we know if we have limits.h.
9316 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9317 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9318 if test "${gcc_cv_decl_char_bit+set}" = set; then
9319   echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321   cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327 #ifdef HAVE_LIMITS_H
9328 #include <limits.h>
9329 #endif
9330 #ifdef CHAR_BIT
9331 found
9332 #endif
9333 _ACEOF
9334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9335   $EGREP "found" >/dev/null 2>&1; then
9336   gcc_cv_decl_char_bit=yes
9337 else
9338   gcc_cv_decl_char_bit=no
9339 fi
9340 rm -f conftest*
9341
9342
9343 fi
9344 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9345 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9346 if test $gcc_cv_decl_char_bit = no; then
9347   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9348 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9349 if test "${gcc_cv_c_nbby+set}" = set; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352   i=8
9353  gcc_cv_c_nbby=
9354  while test $i -lt 65; do
9355    cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h.  */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h.  */
9361
9362 int
9363 main ()
9364 {
9365 switch(0) {
9366   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9367   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9368   ; }
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375   (eval $ac_compile) 2>conftest.er1
9376   ac_status=$?
9377   grep -v '^ *+' conftest.er1 >conftest.err
9378   rm -f conftest.er1
9379   cat conftest.err >&5
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); } &&
9382          { ac_try='test -z "$ac_c_werror_flag"
9383                          || test ! -s conftest.err'
9384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385   (eval $ac_try) 2>&5
9386   ac_status=$?
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); }; } &&
9389          { ac_try='test -s conftest.$ac_objext'
9390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391   (eval $ac_try) 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); }; }; then
9395   gcc_cv_c_nbby=$i; break
9396 else
9397   echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 fi
9401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9402    i=`expr $i + 1`
9403  done
9404  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9405
9406 fi
9407 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9408 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9409 if test $gcc_cv_c_nbby = failed; then
9410   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9411 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9412    { (exit 1); exit 1; }; }
9413 else
9414
9415 cat >>confdefs.h <<_ACEOF
9416 #define CHAR_BIT $gcc_cv_c_nbby
9417 _ACEOF
9418
9419 fi
9420 fi
9421 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9422 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9423 if test "${ac_cv_c_bigendian+set}" = set; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   # See if sys/param.h defines the BYTE_ORDER macro.
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h.  */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h.  */
9433 #include <sys/types.h>
9434 #include <sys/param.h>
9435
9436 int
9437 main ()
9438 {
9439 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9440  bogus endian macros
9441 #endif
9442
9443   ;
9444   return 0;
9445 }
9446 _ACEOF
9447 rm -f conftest.$ac_objext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9449   (eval $ac_compile) 2>conftest.er1
9450   ac_status=$?
9451   grep -v '^ *+' conftest.er1 >conftest.err
9452   rm -f conftest.er1
9453   cat conftest.err >&5
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); } &&
9456          { ac_try='test -z "$ac_c_werror_flag"
9457                          || test ! -s conftest.err'
9458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459   (eval $ac_try) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); }; } &&
9463          { ac_try='test -s conftest.$ac_objext'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; }; then
9469   # It does; now see whether it defined to BIG_ENDIAN or not.
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h.  */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h.  */
9476 #include <sys/types.h>
9477 #include <sys/param.h>
9478
9479 int
9480 main ()
9481 {
9482 #if BYTE_ORDER != BIG_ENDIAN
9483  not big endian
9484 #endif
9485
9486   ;
9487   return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492   (eval $ac_compile) 2>conftest.er1
9493   ac_status=$?
9494   grep -v '^ *+' conftest.er1 >conftest.err
9495   rm -f conftest.er1
9496   cat conftest.err >&5
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); } &&
9499          { ac_try='test -z "$ac_c_werror_flag"
9500                          || test ! -s conftest.err'
9501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502   (eval $ac_try) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); }; } &&
9506          { ac_try='test -s conftest.$ac_objext'
9507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508   (eval $ac_try) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; }; then
9512   ac_cv_c_bigendian=yes
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 ac_cv_c_bigendian=no
9518 fi
9519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9520 else
9521   echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9523
9524 # It does not; compile a test program.
9525 if test "$cross_compiling" = yes; then
9526   # try to guess the endianness by grepping values into an object file
9527   ac_cv_c_bigendian=unknown
9528   cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h.  */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h.  */
9534 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9535 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9536 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9537 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9538 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9539 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9540 int
9541 main ()
9542 {
9543  _ascii (); _ebcdic ();
9544   ;
9545   return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550   (eval $ac_compile) 2>conftest.er1
9551   ac_status=$?
9552   grep -v '^ *+' conftest.er1 >conftest.err
9553   rm -f conftest.er1
9554   cat conftest.err >&5
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } &&
9557          { ac_try='test -z "$ac_c_werror_flag"
9558                          || test ! -s conftest.err'
9559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560   (eval $ac_try) 2>&5
9561   ac_status=$?
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); }; } &&
9564          { ac_try='test -s conftest.$ac_objext'
9565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566   (eval $ac_try) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); }; }; then
9570   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9571   ac_cv_c_bigendian=yes
9572 fi
9573 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9574   if test "$ac_cv_c_bigendian" = unknown; then
9575     ac_cv_c_bigendian=no
9576   else
9577     # finding both strings is unlikely to happen, but who knows?
9578     ac_cv_c_bigendian=unknown
9579   fi
9580 fi
9581 else
9582   echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9584
9585 fi
9586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9587 else
9588   cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h.  */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h.  */
9594 int
9595 main ()
9596 {
9597   /* Are we little or big endian?  From Harbison&Steele.  */
9598   union
9599   {
9600     long l;
9601     char c[sizeof (long)];
9602   } u;
9603   u.l = 1;
9604   exit (u.c[sizeof (long) - 1] == 1);
9605 }
9606 _ACEOF
9607 rm -f conftest$ac_exeext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609   (eval $ac_link) 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614   (eval $ac_try) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; }; then
9618   ac_cv_c_bigendian=no
9619 else
9620   echo "$as_me: program exited with status $ac_status" >&5
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9623
9624 ( exit $ac_status )
9625 ac_cv_c_bigendian=yes
9626 fi
9627 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9628 fi
9629 fi
9630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9631 fi
9632 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9633 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9634 case $ac_cv_c_bigendian in
9635   yes)
9636
9637 cat >>confdefs.h <<\_ACEOF
9638 #define WORDS_BIGENDIAN 1
9639 _ACEOF
9640  ;;
9641   no)
9642      ;;
9643   *)
9644     { { echo "$as_me:$LINENO: error: unknown endianness
9645 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9646 echo "$as_me: error: unknown endianness
9647 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9648    { (exit 1); exit 1; }; } ;;
9649 esac
9650
9651
9652 # --------
9653 # UNSORTED
9654 # --------
9655
9656
9657 # These libraries may be used by collect2.
9658 # We may need a special search path to get them linked.
9659 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9660 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9661 if test "${gcc_cv_collect2_libs+set}" = set; then
9662   echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664   save_LIBS="$LIBS"
9665 for libs in '' -lld -lmld \
9666                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9667                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9668 do
9669         LIBS="$libs"
9670         cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676
9677 /* Override any gcc2 internal prototype to avoid an error.  */
9678 #ifdef __cplusplus
9679 extern "C"
9680 #endif
9681 /* We use char because int might match the return type of a gcc2
9682    builtin and then its argument prototype would still apply.  */
9683 char ldopen ();
9684 int
9685 main ()
9686 {
9687 ldopen ();
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694   (eval $ac_link) 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } &&
9701          { ac_try='test -z "$ac_c_werror_flag"
9702                          || test ! -s conftest.err'
9703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704   (eval $ac_try) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; } &&
9708          { ac_try='test -s conftest$ac_exeext'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   gcc_cv_collect2_libs="$libs"; break
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 fi
9720 rm -f conftest.err conftest.$ac_objext \
9721       conftest$ac_exeext conftest.$ac_ext
9722 done
9723 LIBS="$save_LIBS"
9724 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9725 fi
9726 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9727 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9728 case $gcc_cv_collect2_libs in
9729         "none required")        ;;
9730         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9731 esac
9732
9733
9734 # When building Ada code on Alpha, we need exc_resume which is usually in
9735 # -lexc.  So test for it.
9736 save_LIBS="$LIBS"
9737 LIBS=
9738 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9739 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9740 if test "${ac_cv_search_exc_resume+set}" = set; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743   ac_func_search_save_LIBS=$LIBS
9744 ac_cv_search_exc_resume=no
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h.  */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h.  */
9751
9752 /* Override any gcc2 internal prototype to avoid an error.  */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 /* We use char because int might match the return type of a gcc2
9757    builtin and then its argument prototype would still apply.  */
9758 char exc_resume ();
9759 int
9760 main ()
9761 {
9762 exc_resume ();
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769   (eval $ac_link) 2>conftest.er1
9770   ac_status=$?
9771   grep -v '^ *+' conftest.er1 >conftest.err
9772   rm -f conftest.er1
9773   cat conftest.err >&5
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); } &&
9776          { ac_try='test -z "$ac_c_werror_flag"
9777                          || test ! -s conftest.err'
9778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779   (eval $ac_try) 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); }; } &&
9783          { ac_try='test -s conftest$ac_exeext'
9784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785   (eval $ac_try) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; }; then
9789   ac_cv_search_exc_resume="none required"
9790 else
9791   echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9793
9794 fi
9795 rm -f conftest.err conftest.$ac_objext \
9796       conftest$ac_exeext conftest.$ac_ext
9797 if test "$ac_cv_search_exc_resume" = no; then
9798   for ac_lib in exc; do
9799     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9800     cat >conftest.$ac_ext <<_ACEOF
9801 /* confdefs.h.  */
9802 _ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h.  */
9806
9807 /* Override any gcc2 internal prototype to avoid an error.  */
9808 #ifdef __cplusplus
9809 extern "C"
9810 #endif
9811 /* We use char because int might match the return type of a gcc2
9812    builtin and then its argument prototype would still apply.  */
9813 char exc_resume ();
9814 int
9815 main ()
9816 {
9817 exc_resume ();
9818   ;
9819   return 0;
9820 }
9821 _ACEOF
9822 rm -f conftest.$ac_objext conftest$ac_exeext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824   (eval $ac_link) 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } &&
9831          { ac_try='test -z "$ac_c_werror_flag"
9832                          || test ! -s conftest.err'
9833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834   (eval $ac_try) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); }; } &&
9838          { ac_try='test -s conftest$ac_exeext'
9839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840   (eval $ac_try) 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; }; then
9844   ac_cv_search_exc_resume="-l$ac_lib"
9845 break
9846 else
9847   echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850 fi
9851 rm -f conftest.err conftest.$ac_objext \
9852       conftest$ac_exeext conftest.$ac_ext
9853   done
9854 fi
9855 LIBS=$ac_func_search_save_LIBS
9856 fi
9857 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9858 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9859 if test "$ac_cv_search_exc_resume" != no; then
9860   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9861
9862 fi
9863
9864 GNAT_LIBEXC="$LIBS"
9865 LIBS="$save_LIBS"
9866
9867
9868 # Some systems put ldexp and frexp in libm instead of libc; assume
9869 # they're both in the same place.  jcf-dump needs them.
9870 save_LIBS="$LIBS"
9871 LIBS=
9872 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9873 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9874 if test "${ac_cv_search_ldexp+set}" = set; then
9875   echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877   ac_func_search_save_LIBS=$LIBS
9878 ac_cv_search_ldexp=no
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h.  */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h.  */
9885
9886 /* Override any gcc2 internal prototype to avoid an error.  */
9887 #ifdef __cplusplus
9888 extern "C"
9889 #endif
9890 /* We use char because int might match the return type of a gcc2
9891    builtin and then its argument prototype would still apply.  */
9892 char ldexp ();
9893 int
9894 main ()
9895 {
9896 ldexp ();
9897   ;
9898   return 0;
9899 }
9900 _ACEOF
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903   (eval $ac_link) 2>conftest.er1
9904   ac_status=$?
9905   grep -v '^ *+' conftest.er1 >conftest.err
9906   rm -f conftest.er1
9907   cat conftest.err >&5
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); } &&
9910          { ac_try='test -z "$ac_c_werror_flag"
9911                          || test ! -s conftest.err'
9912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913   (eval $ac_try) 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; } &&
9917          { ac_try='test -s conftest$ac_exeext'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; }; then
9923   ac_cv_search_ldexp="none required"
9924 else
9925   echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9927
9928 fi
9929 rm -f conftest.err conftest.$ac_objext \
9930       conftest$ac_exeext conftest.$ac_ext
9931 if test "$ac_cv_search_ldexp" = no; then
9932   for ac_lib in m; do
9933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9934     cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h.  */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h.  */
9940
9941 /* Override any gcc2 internal prototype to avoid an error.  */
9942 #ifdef __cplusplus
9943 extern "C"
9944 #endif
9945 /* We use char because int might match the return type of a gcc2
9946    builtin and then its argument prototype would still apply.  */
9947 char ldexp ();
9948 int
9949 main ()
9950 {
9951 ldexp ();
9952   ;
9953   return 0;
9954 }
9955 _ACEOF
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958   (eval $ac_link) 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -z "$ac_c_werror_flag"
9966                          || test ! -s conftest.err'
9967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968   (eval $ac_try) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; } &&
9972          { ac_try='test -s conftest$ac_exeext'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978   ac_cv_search_ldexp="-l$ac_lib"
9979 break
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 fi
9985 rm -f conftest.err conftest.$ac_objext \
9986       conftest$ac_exeext conftest.$ac_ext
9987   done
9988 fi
9989 LIBS=$ac_func_search_save_LIBS
9990 fi
9991 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9992 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9993 if test "$ac_cv_search_ldexp" != no; then
9994   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9995
9996 fi
9997
9998 LDEXP_LIB="$LIBS"
9999 LIBS="$save_LIBS"
10000
10001
10002 # Use <inttypes.h> only if it exists,
10003 # doesn't clash with <sys/types.h>, and declares intmax_t.
10004 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10005 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10006 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10007   echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009   cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015 #include <sys/types.h>
10016 #include <inttypes.h>
10017 int
10018 main ()
10019 {
10020 intmax_t i = -1;
10021   ;
10022   return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest.$ac_objext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027   (eval $ac_compile) 2>conftest.er1
10028   ac_status=$?
10029   grep -v '^ *+' conftest.er1 >conftest.err
10030   rm -f conftest.er1
10031   cat conftest.err >&5
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); } &&
10034          { ac_try='test -z "$ac_c_werror_flag"
10035                          || test ! -s conftest.err'
10036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037   (eval $ac_try) 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); }; } &&
10041          { ac_try='test -s conftest.$ac_objext'
10042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043   (eval $ac_try) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; }; then
10047   gcc_cv_header_inttypes_h=yes
10048 else
10049   echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10051
10052 gcc_cv_header_inttypes_h=no
10053 fi
10054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10055 fi
10056
10057 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10058 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10059 if test $gcc_cv_header_inttypes_h = yes; then
10060
10061 cat >>confdefs.h <<\_ACEOF
10062 #define HAVE_INTTYPES_H 1
10063 _ACEOF
10064
10065 fi
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10103         sysconf strsignal getrusage nl_langinfo \
10104         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10105         clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
10106 do
10107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10108 echo "$as_me:$LINENO: checking for $ac_func" >&5
10109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10110 if eval "test \"\${$as_ac_var+set}\" = set"; then
10111   echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113   cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h.  */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h.  */
10119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10121 #define $ac_func innocuous_$ac_func
10122
10123 /* System header to define __stub macros and hopefully few prototypes,
10124     which can conflict with char $ac_func (); below.
10125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10126     <limits.h> exists even on freestanding compilers.  */
10127
10128 #ifdef __STDC__
10129 # include <limits.h>
10130 #else
10131 # include <assert.h>
10132 #endif
10133
10134 #undef $ac_func
10135
10136 /* Override any gcc2 internal prototype to avoid an error.  */
10137 #ifdef __cplusplus
10138 extern "C"
10139 {
10140 #endif
10141 /* We use char because int might match the return type of a gcc2
10142    builtin and then its argument prototype would still apply.  */
10143 char $ac_func ();
10144 /* The GNU C library defines this for functions which it implements
10145     to always fail with ENOSYS.  Some functions are actually named
10146     something starting with __ and the normal name is an alias.  */
10147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10148 choke me
10149 #else
10150 char (*f) () = $ac_func;
10151 #endif
10152 #ifdef __cplusplus
10153 }
10154 #endif
10155
10156 int
10157 main ()
10158 {
10159 return f != $ac_func;
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166   (eval $ac_link) 2>conftest.er1
10167   ac_status=$?
10168   grep -v '^ *+' conftest.er1 >conftest.err
10169   rm -f conftest.er1
10170   cat conftest.err >&5
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } &&
10173          { ac_try='test -z "$ac_c_werror_flag"
10174                          || test ! -s conftest.err'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; } &&
10180          { ac_try='test -s conftest$ac_exeext'
10181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182   (eval $ac_try) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); }; }; then
10186   eval "$as_ac_var=yes"
10187 else
10188   echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191 eval "$as_ac_var=no"
10192 fi
10193 rm -f conftest.err conftest.$ac_objext \
10194       conftest$ac_exeext conftest.$ac_ext
10195 fi
10196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10198 if test `eval echo '${'$as_ac_var'}'` = yes; then
10199   cat >>confdefs.h <<_ACEOF
10200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10201 _ACEOF
10202
10203 fi
10204 done
10205
10206
10207 if test x$ac_cv_func_mbstowcs = xyes; then
10208   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10209 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10210 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10211   echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213       if test "$cross_compiling" = yes; then
10214   gcc_cv_func_mbstowcs_works=yes
10215 else
10216   cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222 #include <stdlib.h>
10223 int main()
10224 {
10225   mbstowcs(0, "", 0);
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231   (eval $ac_link) 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236   (eval $ac_try) 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); }; }; then
10240   gcc_cv_func_mbstowcs_works=yes
10241 else
10242   echo "$as_me: program exited with status $ac_status" >&5
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10245
10246 ( exit $ac_status )
10247 gcc_cv_func_mbstowcs_works=no
10248 fi
10249 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10250 fi
10251 fi
10252 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10253 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10254   if test x$gcc_cv_func_mbstowcs_works = xyes; then
10255
10256 cat >>confdefs.h <<\_ACEOF
10257 #define HAVE_WORKING_MBSTOWCS 1
10258 _ACEOF
10259
10260   fi
10261 fi
10262
10263 echo "$as_me:$LINENO: checking for ssize_t" >&5
10264 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10265 if test "${ac_cv_type_ssize_t+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268   cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h.  */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h.  */
10274 $ac_includes_default
10275 int
10276 main ()
10277 {
10278 if ((ssize_t *) 0)
10279   return 0;
10280 if (sizeof (ssize_t))
10281   return 0;
10282   ;
10283   return 0;
10284 }
10285 _ACEOF
10286 rm -f conftest.$ac_objext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10288   (eval $ac_compile) 2>conftest.er1
10289   ac_status=$?
10290   grep -v '^ *+' conftest.er1 >conftest.err
10291   rm -f conftest.er1
10292   cat conftest.err >&5
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); } &&
10295          { ac_try='test -z "$ac_c_werror_flag"
10296                          || test ! -s conftest.err'
10297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298   (eval $ac_try) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); }; } &&
10302          { ac_try='test -s conftest.$ac_objext'
10303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304   (eval $ac_try) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; }; then
10308   ac_cv_type_ssize_t=yes
10309 else
10310   echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10312
10313 ac_cv_type_ssize_t=no
10314 fi
10315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10316 fi
10317 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10318 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10319 if test $ac_cv_type_ssize_t = yes; then
10320   :
10321 else
10322
10323 cat >>confdefs.h <<_ACEOF
10324 #define ssize_t int
10325 _ACEOF
10326
10327 fi
10328
10329 echo "$as_me:$LINENO: checking for caddr_t" >&5
10330 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10331 if test "${ac_cv_type_caddr_t+set}" = set; then
10332   echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334   cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h.  */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h.  */
10340 $ac_includes_default
10341 int
10342 main ()
10343 {
10344 if ((caddr_t *) 0)
10345   return 0;
10346 if (sizeof (caddr_t))
10347   return 0;
10348   ;
10349   return 0;
10350 }
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354   (eval $ac_compile) 2>conftest.er1
10355   ac_status=$?
10356   grep -v '^ *+' conftest.er1 >conftest.err
10357   rm -f conftest.er1
10358   cat conftest.err >&5
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } &&
10361          { ac_try='test -z "$ac_c_werror_flag"
10362                          || test ! -s conftest.err'
10363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364   (eval $ac_try) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; } &&
10368          { ac_try='test -s conftest.$ac_objext'
10369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370   (eval $ac_try) 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; }; then
10374   ac_cv_type_caddr_t=yes
10375 else
10376   echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10378
10379 ac_cv_type_caddr_t=no
10380 fi
10381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10382 fi
10383 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10384 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10385 if test $ac_cv_type_caddr_t = yes; then
10386   :
10387 else
10388
10389 cat >>confdefs.h <<_ACEOF
10390 #define caddr_t char *
10391 _ACEOF
10392
10393 fi
10394
10395
10396 # Try to determine the array type of the second argument of getgroups
10397 # for the target system (int or gid_t).
10398 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10399 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10400 if test "${ac_cv_type_uid_t+set}" = set; then
10401   echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403   cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h.  */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h.  */
10409 #include <sys/types.h>
10410
10411 _ACEOF
10412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10413   $EGREP "uid_t" >/dev/null 2>&1; then
10414   ac_cv_type_uid_t=yes
10415 else
10416   ac_cv_type_uid_t=no
10417 fi
10418 rm -f conftest*
10419
10420 fi
10421 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10422 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10423 if test $ac_cv_type_uid_t = no; then
10424
10425 cat >>confdefs.h <<\_ACEOF
10426 #define uid_t int
10427 _ACEOF
10428
10429
10430 cat >>confdefs.h <<\_ACEOF
10431 #define gid_t int
10432 _ACEOF
10433
10434 fi
10435
10436 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10437 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10438 if test "${ac_cv_type_getgroups+set}" = set; then
10439   echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441   if test "$cross_compiling" = yes; then
10442   ac_cv_type_getgroups=cross
10443 else
10444   cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 /* Thanks to Mike Rendell for this test.  */
10451 #include <sys/types.h>
10452 #define NGID 256
10453 #undef MAX
10454 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10455
10456 int
10457 main ()
10458 {
10459   gid_t gidset[NGID];
10460   int i, n;
10461   union { gid_t gval; long lval; }  val;
10462
10463   val.lval = -1;
10464   for (i = 0; i < NGID; i++)
10465     gidset[i] = val.gval;
10466   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10467                  gidset);
10468   /* Exit non-zero if getgroups seems to require an array of ints.  This
10469      happens when gid_t is short but getgroups modifies an array of ints.  */
10470   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10471 }
10472 _ACEOF
10473 rm -f conftest$ac_exeext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475   (eval $ac_link) 2>&5
10476   ac_status=$?
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480   (eval $ac_try) 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }; }; then
10484   ac_cv_type_getgroups=gid_t
10485 else
10486   echo "$as_me: program exited with status $ac_status" >&5
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490 ( exit $ac_status )
10491 ac_cv_type_getgroups=int
10492 fi
10493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10494 fi
10495 if test $ac_cv_type_getgroups = cross; then
10496         cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h.  */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h.  */
10502 #include <unistd.h>
10503
10504 _ACEOF
10505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10506   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10507   ac_cv_type_getgroups=gid_t
10508 else
10509   ac_cv_type_getgroups=int
10510 fi
10511 rm -f conftest*
10512
10513 fi
10514 fi
10515 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10516 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10517
10518 cat >>confdefs.h <<_ACEOF
10519 #define GETGROUPS_T $ac_cv_type_getgroups
10520 _ACEOF
10521
10522
10523 if test "${target}" = "${build}"; then
10524   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10525 else
10526   case "${target}" in
10527         # This condition may need some tweaking.  It should include all
10528         # targets where the array type of the second argument of getgroups
10529         # is int and the type of gid_t is not equivalent to int.
10530         *-*-sunos* | *-*-ultrix*)
10531                 TARGET_GETGROUPS_T=int
10532                 ;;
10533         *)
10534                 TARGET_GETGROUPS_T=gid_t
10535                 ;;
10536   esac
10537 fi
10538
10539
10540
10541 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10542 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10543 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10544   echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546   cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h.  */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h.  */
10552 #include <sys/mman.h>
10553 _ACEOF
10554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10555   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10556   ac_status=$?
10557   grep -v '^ *+' conftest.er1 >conftest.err
10558   rm -f conftest.er1
10559   cat conftest.err >&5
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); } >/dev/null; then
10562   if test -s conftest.err; then
10563     ac_cpp_err=$ac_c_preproc_warn_flag
10564     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10565   else
10566     ac_cpp_err=
10567   fi
10568 else
10569   ac_cpp_err=yes
10570 fi
10571 if test -z "$ac_cpp_err"; then
10572   ac_cv_header_sys_mman_h=yes
10573 else
10574   echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577   ac_cv_header_sys_mman_h=no
10578 fi
10579 rm -f conftest.err conftest.$ac_ext
10580 fi
10581 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10582 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10583 if test $ac_cv_header_sys_mman_h = yes; then
10584   gcc_header_sys_mman_h=yes
10585 else
10586   gcc_header_sys_mman_h=no
10587 fi
10588
10589 echo "$as_me:$LINENO: checking for mmap" >&5
10590 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10591 if test "${ac_cv_func_mmap+set}" = set; then
10592   echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594   cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h.  */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h.  */
10600 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10602 #define mmap innocuous_mmap
10603
10604 /* System header to define __stub macros and hopefully few prototypes,
10605     which can conflict with char mmap (); below.
10606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10607     <limits.h> exists even on freestanding compilers.  */
10608
10609 #ifdef __STDC__
10610 # include <limits.h>
10611 #else
10612 # include <assert.h>
10613 #endif
10614
10615 #undef mmap
10616
10617 /* Override any gcc2 internal prototype to avoid an error.  */
10618 #ifdef __cplusplus
10619 extern "C"
10620 {
10621 #endif
10622 /* We use char because int might match the return type of a gcc2
10623    builtin and then its argument prototype would still apply.  */
10624 char mmap ();
10625 /* The GNU C library defines this for functions which it implements
10626     to always fail with ENOSYS.  Some functions are actually named
10627     something starting with __ and the normal name is an alias.  */
10628 #if defined (__stub_mmap) || defined (__stub___mmap)
10629 choke me
10630 #else
10631 char (*f) () = mmap;
10632 #endif
10633 #ifdef __cplusplus
10634 }
10635 #endif
10636
10637 int
10638 main ()
10639 {
10640 return f != mmap;
10641   ;
10642   return 0;
10643 }
10644 _ACEOF
10645 rm -f conftest.$ac_objext conftest$ac_exeext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647   (eval $ac_link) 2>conftest.er1
10648   ac_status=$?
10649   grep -v '^ *+' conftest.er1 >conftest.err
10650   rm -f conftest.er1
10651   cat conftest.err >&5
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); } &&
10654          { ac_try='test -z "$ac_c_werror_flag"
10655                          || test ! -s conftest.err'
10656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657   (eval $ac_try) 2>&5
10658   ac_status=$?
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); }; } &&
10661          { ac_try='test -s conftest$ac_exeext'
10662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663   (eval $ac_try) 2>&5
10664   ac_status=$?
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); }; }; then
10667   ac_cv_func_mmap=yes
10668 else
10669   echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10671
10672 ac_cv_func_mmap=no
10673 fi
10674 rm -f conftest.err conftest.$ac_objext \
10675       conftest$ac_exeext conftest.$ac_ext
10676 fi
10677 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10678 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10679 if test $ac_cv_func_mmap = yes; then
10680   gcc_func_mmap=yes
10681 else
10682   gcc_func_mmap=no
10683 fi
10684
10685 if test "$gcc_header_sys_mman_h" != yes \
10686  || test "$gcc_func_mmap" != yes; then
10687    gcc_cv_func_mmap_file=no
10688    gcc_cv_func_mmap_dev_zero=no
10689    gcc_cv_func_mmap_anon=no
10690 else
10691    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10692 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10693 if test "${gcc_cv_func_mmap_file+set}" = set; then
10694   echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696   # Add a system to this blacklist if
10697    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10698    # memory area containing the same data that you'd get if you applied
10699    # read() to the same fd.  The only system known to have a problem here
10700    # is VMS, where text files have record structure.
10701    case "$host_os" in
10702      vms* | ultrix*)
10703         gcc_cv_func_mmap_file=no ;;
10704      *)
10705         gcc_cv_func_mmap_file=yes;;
10706    esac
10707 fi
10708 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10709 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10710    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10711 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10712 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10713   echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715   # Add a system to this blacklist if it has mmap() but /dev/zero
10716    # does not exist, or if mmapping /dev/zero does not give anonymous
10717    # zeroed pages with both the following properties:
10718    # 1. If you map N consecutive pages in with one call, and then
10719    #    unmap any subset of those pages, the pages that were not
10720    #    explicitly unmapped remain accessible.
10721    # 2. If you map two adjacent blocks of memory and then unmap them
10722    #    both at once, they must both go away.
10723    # Systems known to be in this category are Windows (all variants),
10724    # VMS, and Darwin.
10725    case "$host_os" in
10726      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10727         gcc_cv_func_mmap_dev_zero=no ;;
10728      *)
10729         gcc_cv_func_mmap_dev_zero=yes;;
10730    esac
10731 fi
10732 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10733 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10734
10735    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10736    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10737 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10738 if test "${gcc_cv_decl_map_anon+set}" = set; then
10739   echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741   cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h.  */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h.  */
10747 #include <sys/types.h>
10748 #include <sys/mman.h>
10749 #include <unistd.h>
10750
10751 #ifndef MAP_ANONYMOUS
10752 #define MAP_ANONYMOUS MAP_ANON
10753 #endif
10754
10755 int
10756 main ()
10757 {
10758 int n = MAP_ANONYMOUS;
10759   ;
10760   return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest.$ac_objext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10765   (eval $ac_compile) 2>conftest.er1
10766   ac_status=$?
10767   grep -v '^ *+' conftest.er1 >conftest.err
10768   rm -f conftest.er1
10769   cat conftest.err >&5
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); } &&
10772          { ac_try='test -z "$ac_c_werror_flag"
10773                          || test ! -s conftest.err'
10774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775   (eval $ac_try) 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; } &&
10779          { ac_try='test -s conftest.$ac_objext'
10780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781   (eval $ac_try) 2>&5
10782   ac_status=$?
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); }; }; then
10785   gcc_cv_decl_map_anon=yes
10786 else
10787   echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10789
10790 gcc_cv_decl_map_anon=no
10791 fi
10792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10793 fi
10794 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10795 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10796
10797    if test $gcc_cv_decl_map_anon = no; then
10798      gcc_cv_func_mmap_anon=no
10799    else
10800      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10801 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10802 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10803   echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10806    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10807    # doesn't give anonymous zeroed pages with the same properties listed
10808    # above for use of /dev/zero.
10809    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10810    case "$host_os" in
10811      vms* | cygwin* | pe | mingw* | sco* | udk* )
10812         gcc_cv_func_mmap_anon=no ;;
10813      *)
10814         gcc_cv_func_mmap_anon=yes;;
10815    esac
10816 fi
10817 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10818 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10819    fi
10820 fi
10821
10822 if test $gcc_cv_func_mmap_file = yes; then
10823
10824 cat >>confdefs.h <<\_ACEOF
10825 #define HAVE_MMAP_FILE 1
10826 _ACEOF
10827
10828 fi
10829 if test $gcc_cv_func_mmap_dev_zero = yes; then
10830
10831 cat >>confdefs.h <<\_ACEOF
10832 #define HAVE_MMAP_DEV_ZERO 1
10833 _ACEOF
10834
10835 fi
10836 if test $gcc_cv_func_mmap_anon = yes; then
10837
10838 cat >>confdefs.h <<\_ACEOF
10839 #define HAVE_MMAP_ANON 1
10840 _ACEOF
10841
10842 fi
10843
10844
10845 case "${host}" in
10846 *-*-*vms*)
10847   # Under VMS, vfork works very differently than on Unix. The standard test
10848   # won't work, and it isn't easily adaptable. It makes more sense to
10849   # just force it.
10850   ac_cv_func_vfork_works=yes
10851   ;;
10852 esac
10853 echo "$as_me:$LINENO: checking for pid_t" >&5
10854 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10855 if test "${ac_cv_type_pid_t+set}" = set; then
10856   echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858   cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864 $ac_includes_default
10865 int
10866 main ()
10867 {
10868 if ((pid_t *) 0)
10869   return 0;
10870 if (sizeof (pid_t))
10871   return 0;
10872   ;
10873   return 0;
10874 }
10875 _ACEOF
10876 rm -f conftest.$ac_objext
10877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10878   (eval $ac_compile) 2>conftest.er1
10879   ac_status=$?
10880   grep -v '^ *+' conftest.er1 >conftest.err
10881   rm -f conftest.er1
10882   cat conftest.err >&5
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } &&
10885          { ac_try='test -z "$ac_c_werror_flag"
10886                          || test ! -s conftest.err'
10887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888   (eval $ac_try) 2>&5
10889   ac_status=$?
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); }; } &&
10892          { ac_try='test -s conftest.$ac_objext'
10893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894   (eval $ac_try) 2>&5
10895   ac_status=$?
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); }; }; then
10898   ac_cv_type_pid_t=yes
10899 else
10900   echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10902
10903 ac_cv_type_pid_t=no
10904 fi
10905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10906 fi
10907 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10908 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10909 if test $ac_cv_type_pid_t = yes; then
10910   :
10911 else
10912
10913 cat >>confdefs.h <<_ACEOF
10914 #define pid_t int
10915 _ACEOF
10916
10917 fi
10918
10919
10920
10921 for ac_header in unistd.h vfork.h
10922 do
10923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 echo "$as_me:$LINENO: checking for $ac_header" >&5
10925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10927   echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929   cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h.  */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h.  */
10935 #include <$ac_header>
10936 _ACEOF
10937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10939   ac_status=$?
10940   grep -v '^ *+' conftest.er1 >conftest.err
10941   rm -f conftest.er1
10942   cat conftest.err >&5
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); } >/dev/null; then
10945   if test -s conftest.err; then
10946     ac_cpp_err=$ac_c_preproc_warn_flag
10947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10948   else
10949     ac_cpp_err=
10950   fi
10951 else
10952   ac_cpp_err=yes
10953 fi
10954 if test -z "$ac_cpp_err"; then
10955   eval "$as_ac_Header=yes"
10956 else
10957   echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10959
10960   eval "$as_ac_Header=no"
10961 fi
10962 rm -f conftest.err conftest.$ac_ext
10963 fi
10964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10967   cat >>confdefs.h <<_ACEOF
10968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10969 _ACEOF
10970
10971 fi
10972 done
10973
10974
10975
10976 for ac_func in fork vfork
10977 do
10978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10979 echo "$as_me:$LINENO: checking for $ac_func" >&5
10980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10981 if eval "test \"\${$as_ac_var+set}\" = set"; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984   cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h.  */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h.  */
10990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10992 #define $ac_func innocuous_$ac_func
10993
10994 /* System header to define __stub macros and hopefully few prototypes,
10995     which can conflict with char $ac_func (); below.
10996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10997     <limits.h> exists even on freestanding compilers.  */
10998
10999 #ifdef __STDC__
11000 # include <limits.h>
11001 #else
11002 # include <assert.h>
11003 #endif
11004
11005 #undef $ac_func
11006
11007 /* Override any gcc2 internal prototype to avoid an error.  */
11008 #ifdef __cplusplus
11009 extern "C"
11010 {
11011 #endif
11012 /* We use char because int might match the return type of a gcc2
11013    builtin and then its argument prototype would still apply.  */
11014 char $ac_func ();
11015 /* The GNU C library defines this for functions which it implements
11016     to always fail with ENOSYS.  Some functions are actually named
11017     something starting with __ and the normal name is an alias.  */
11018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11019 choke me
11020 #else
11021 char (*f) () = $ac_func;
11022 #endif
11023 #ifdef __cplusplus
11024 }
11025 #endif
11026
11027 int
11028 main ()
11029 {
11030 return f != $ac_func;
11031   ;
11032   return 0;
11033 }
11034 _ACEOF
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037   (eval $ac_link) 2>conftest.er1
11038   ac_status=$?
11039   grep -v '^ *+' conftest.er1 >conftest.err
11040   rm -f conftest.er1
11041   cat conftest.err >&5
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); } &&
11044          { ac_try='test -z "$ac_c_werror_flag"
11045                          || test ! -s conftest.err'
11046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047   (eval $ac_try) 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); }; } &&
11051          { ac_try='test -s conftest$ac_exeext'
11052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053   (eval $ac_try) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; }; then
11057   eval "$as_ac_var=yes"
11058 else
11059   echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062 eval "$as_ac_var=no"
11063 fi
11064 rm -f conftest.err conftest.$ac_objext \
11065       conftest$ac_exeext conftest.$ac_ext
11066 fi
11067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11069 if test `eval echo '${'$as_ac_var'}'` = yes; then
11070   cat >>confdefs.h <<_ACEOF
11071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11072 _ACEOF
11073
11074 fi
11075 done
11076
11077 if test "x$ac_cv_func_fork" = xyes; then
11078   echo "$as_me:$LINENO: checking for working fork" >&5
11079 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11080 if test "${ac_cv_func_fork_works+set}" = set; then
11081   echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083   if test "$cross_compiling" = yes; then
11084   ac_cv_func_fork_works=cross
11085 else
11086   cat >conftest.$ac_ext <<_ACEOF
11087 /* By Ruediger Kuhlmann. */
11088       #include <sys/types.h>
11089       #if HAVE_UNISTD_H
11090       # include <unistd.h>
11091       #endif
11092       /* Some systems only have a dummy stub for fork() */
11093       int main ()
11094       {
11095         if (fork() < 0)
11096           exit (1);
11097         exit (0);
11098       }
11099 _ACEOF
11100 rm -f conftest$ac_exeext
11101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11102   (eval $ac_link) 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107   (eval $ac_try) 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }; }; then
11111   ac_cv_func_fork_works=yes
11112 else
11113   echo "$as_me: program exited with status $ac_status" >&5
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11116
11117 ( exit $ac_status )
11118 ac_cv_func_fork_works=no
11119 fi
11120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11121 fi
11122 fi
11123 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11124 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11125
11126 else
11127   ac_cv_func_fork_works=$ac_cv_func_fork
11128 fi
11129 if test "x$ac_cv_func_fork_works" = xcross; then
11130   case $host in
11131     *-*-amigaos* | *-*-msdosdjgpp*)
11132       # Override, as these systems have only a dummy fork() stub
11133       ac_cv_func_fork_works=no
11134       ;;
11135     *)
11136       ac_cv_func_fork_works=yes
11137       ;;
11138   esac
11139   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11140 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11141 fi
11142 ac_cv_func_vfork_works=$ac_cv_func_vfork
11143 if test "x$ac_cv_func_vfork" = xyes; then
11144   echo "$as_me:$LINENO: checking for working vfork" >&5
11145 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11146 if test "${ac_cv_func_vfork_works+set}" = set; then
11147   echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149   if test "$cross_compiling" = yes; then
11150   ac_cv_func_vfork_works=cross
11151 else
11152   cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h.  */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h.  */
11158 /* Thanks to Paul Eggert for this test.  */
11159 #include <stdio.h>
11160 #include <stdlib.h>
11161 #include <sys/types.h>
11162 #include <sys/stat.h>
11163 #include <sys/wait.h>
11164 #if HAVE_UNISTD_H
11165 # include <unistd.h>
11166 #endif
11167 #if HAVE_VFORK_H
11168 # include <vfork.h>
11169 #endif
11170 /* On some sparc systems, changes by the child to local and incoming
11171    argument registers are propagated back to the parent.  The compiler
11172    is told about this with #include <vfork.h>, but some compilers
11173    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
11174    static variable whose address is put into a register that is
11175    clobbered by the vfork.  */
11176 static void
11177 #ifdef __cplusplus
11178 sparc_address_test (int arg)
11179 # else
11180 sparc_address_test (arg) int arg;
11181 #endif
11182 {
11183   static pid_t child;
11184   if (!child) {
11185     child = vfork ();
11186     if (child < 0) {
11187       perror ("vfork");
11188       _exit(2);
11189     }
11190     if (!child) {
11191       arg = getpid();
11192       write(-1, "", 0);
11193       _exit (arg);
11194     }
11195   }
11196 }
11197
11198 int
11199 main ()
11200 {
11201   pid_t parent = getpid ();
11202   pid_t child;
11203
11204   sparc_address_test (0);
11205
11206   child = vfork ();
11207
11208   if (child == 0) {
11209     /* Here is another test for sparc vfork register problems.  This
11210        test uses lots of local variables, at least as many local
11211        variables as main has allocated so far including compiler
11212        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
11213        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
11214        reuse the register of parent for one of the local variables,
11215        since it will think that parent can't possibly be used any more
11216        in this routine.  Assigning to the local variable will thus
11217        munge parent in the parent process.  */
11218     pid_t
11219       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11220       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11221     /* Convince the compiler that p..p7 are live; otherwise, it might
11222        use the same hardware register for all 8 local variables.  */
11223     if (p != p1 || p != p2 || p != p3 || p != p4
11224         || p != p5 || p != p6 || p != p7)
11225       _exit(1);
11226
11227     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11228        from child file descriptors.  If the child closes a descriptor
11229        before it execs or exits, this munges the parent's descriptor
11230        as well.  Test for this by closing stdout in the child.  */
11231     _exit(close(fileno(stdout)) != 0);
11232   } else {
11233     int status;
11234     struct stat st;
11235
11236     while (wait(&status) != child)
11237       ;
11238     exit(
11239          /* Was there some problem with vforking?  */
11240          child < 0
11241
11242          /* Did the child fail?  (This shouldn't happen.)  */
11243          || status
11244
11245          /* Did the vfork/compiler bug occur?  */
11246          || parent != getpid()
11247
11248          /* Did the file descriptor bug occur?  */
11249          || fstat(fileno(stdout), &st) != 0
11250          );
11251   }
11252 }
11253 _ACEOF
11254 rm -f conftest$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256   (eval $ac_link) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261   (eval $ac_try) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); }; }; then
11265   ac_cv_func_vfork_works=yes
11266 else
11267   echo "$as_me: program exited with status $ac_status" >&5
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271 ( exit $ac_status )
11272 ac_cv_func_vfork_works=no
11273 fi
11274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11275 fi
11276 fi
11277 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11278 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11279
11280 fi;
11281 if test "x$ac_cv_func_fork_works" = xcross; then
11282   ac_cv_func_vfork_works=$ac_cv_func_vfork
11283   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11284 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11285 fi
11286
11287 if test "x$ac_cv_func_vfork_works" = xyes; then
11288
11289 cat >>confdefs.h <<\_ACEOF
11290 #define HAVE_WORKING_VFORK 1
11291 _ACEOF
11292
11293 else
11294
11295 cat >>confdefs.h <<\_ACEOF
11296 #define vfork fork
11297 _ACEOF
11298
11299 fi
11300 if test "x$ac_cv_func_fork_works" = xyes; then
11301
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_WORKING_FORK 1
11304 _ACEOF
11305
11306 fi
11307
11308
11309
11310       if test "X$prefix" = "XNONE"; then
11311     acl_final_prefix="$ac_default_prefix"
11312   else
11313     acl_final_prefix="$prefix"
11314   fi
11315   if test "X$exec_prefix" = "XNONE"; then
11316     acl_final_exec_prefix='${prefix}'
11317   else
11318     acl_final_exec_prefix="$exec_prefix"
11319   fi
11320   acl_save_prefix="$prefix"
11321   prefix="$acl_final_prefix"
11322   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11323   prefix="$acl_save_prefix"
11324
11325
11326 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11327 if test "${with_gnu_ld+set}" = set; then
11328   withval="$with_gnu_ld"
11329   test "$withval" = no || with_gnu_ld=yes
11330 else
11331   with_gnu_ld=no
11332 fi;
11333 # Prepare PATH_SEPARATOR.
11334 # The user is always right.
11335 if test "${PATH_SEPARATOR+set}" != set; then
11336   echo "#! /bin/sh" >conf$$.sh
11337   echo  "exit 0"   >>conf$$.sh
11338   chmod +x conf$$.sh
11339   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11340     PATH_SEPARATOR=';'
11341   else
11342     PATH_SEPARATOR=:
11343   fi
11344   rm -f conf$$.sh
11345 fi
11346 ac_prog=ld
11347 if test "$GCC" = yes; then
11348   # Check if gcc -print-prog-name=ld gives a path.
11349   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11350 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11351   case $host in
11352   *-*-mingw*)
11353     # gcc leaves a trailing carriage return which upsets mingw
11354     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11355   *)
11356     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11357   esac
11358   case $ac_prog in
11359     # Accept absolute paths.
11360     [\\/]* | [A-Za-z]:[\\/]*)
11361       re_direlt='/[^/][^/]*/\.\./'
11362       # Canonicalize the path of ld
11363       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11364       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11365         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11366       done
11367       test -z "$LD" && LD="$ac_prog"
11368       ;;
11369   "")
11370     # If it fails, then pretend we aren't using GCC.
11371     ac_prog=ld
11372     ;;
11373   *)
11374     # If it is relative, then search for the first ld in PATH.
11375     with_gnu_ld=unknown
11376     ;;
11377   esac
11378 elif test "$with_gnu_ld" = yes; then
11379   echo "$as_me:$LINENO: checking for GNU ld" >&5
11380 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11381 else
11382   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11383 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11384 fi
11385 if test "${acl_cv_path_LD+set}" = set; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   if test -z "$LD"; then
11389   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11390   for ac_dir in $PATH; do
11391     test -z "$ac_dir" && ac_dir=.
11392     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11393       acl_cv_path_LD="$ac_dir/$ac_prog"
11394       # Check to see if the program is GNU ld.  I'd rather use --version,
11395       # but apparently some GNU ld's only accept -v.
11396       # Break only if it was the GNU/non-GNU ld that we prefer.
11397       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11398         test "$with_gnu_ld" != no && break
11399       else
11400         test "$with_gnu_ld" != yes && break
11401       fi
11402     fi
11403   done
11404   IFS="$ac_save_ifs"
11405 else
11406   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11407 fi
11408 fi
11409
11410 LD="$acl_cv_path_LD"
11411 if test -n "$LD"; then
11412   echo "$as_me:$LINENO: result: $LD" >&5
11413 echo "${ECHO_T}$LD" >&6
11414 else
11415   echo "$as_me:$LINENO: result: no" >&5
11416 echo "${ECHO_T}no" >&6
11417 fi
11418 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11419 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11420    { (exit 1); exit 1; }; }
11421 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11422 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11423 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11427 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11428   acl_cv_prog_gnu_ld=yes
11429 else
11430   acl_cv_prog_gnu_ld=no
11431 fi
11432 fi
11433 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11434 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11435 with_gnu_ld=$acl_cv_prog_gnu_ld
11436
11437
11438
11439                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11440 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11441 if test "${acl_cv_rpath+set}" = set; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444
11445     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11446     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11447     . ./conftest.sh
11448     rm -f ./conftest.sh
11449     acl_cv_rpath=done
11450
11451 fi
11452 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11453 echo "${ECHO_T}$acl_cv_rpath" >&6
11454   wl="$acl_cv_wl"
11455   libext="$acl_cv_libext"
11456   shlibext="$acl_cv_shlibext"
11457   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11458   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11459   hardcode_direct="$acl_cv_hardcode_direct"
11460   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11461     # Check whether --enable-rpath or --disable-rpath was given.
11462 if test "${enable_rpath+set}" = set; then
11463   enableval="$enable_rpath"
11464   :
11465 else
11466   enable_rpath=yes
11467 fi;
11468
11469
11470
11471
11472
11473
11474
11475     use_additional=yes
11476
11477   acl_save_prefix="$prefix"
11478   prefix="$acl_final_prefix"
11479   acl_save_exec_prefix="$exec_prefix"
11480   exec_prefix="$acl_final_exec_prefix"
11481
11482     eval additional_includedir=\"$includedir\"
11483     eval additional_libdir=\"$libdir\"
11484
11485   exec_prefix="$acl_save_exec_prefix"
11486   prefix="$acl_save_prefix"
11487
11488
11489 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11490 if test "${with_libiconv_prefix+set}" = set; then
11491   withval="$with_libiconv_prefix"
11492
11493     if test "X$withval" = "Xno"; then
11494       use_additional=no
11495     else
11496       if test "X$withval" = "X"; then
11497
11498   acl_save_prefix="$prefix"
11499   prefix="$acl_final_prefix"
11500   acl_save_exec_prefix="$exec_prefix"
11501   exec_prefix="$acl_final_exec_prefix"
11502
11503           eval additional_includedir=\"$includedir\"
11504           eval additional_libdir=\"$libdir\"
11505
11506   exec_prefix="$acl_save_exec_prefix"
11507   prefix="$acl_save_prefix"
11508
11509       else
11510         additional_includedir="$withval/include"
11511         additional_libdir="$withval/lib"
11512       fi
11513     fi
11514
11515 fi;
11516       LIBICONV=
11517   LTLIBICONV=
11518   INCICONV=
11519   rpathdirs=
11520   ltrpathdirs=
11521   names_already_handled=
11522   names_next_round='iconv '
11523   while test -n "$names_next_round"; do
11524     names_this_round="$names_next_round"
11525     names_next_round=
11526     for name in $names_this_round; do
11527       already_handled=
11528       for n in $names_already_handled; do
11529         if test "$n" = "$name"; then
11530           already_handled=yes
11531           break
11532         fi
11533       done
11534       if test -z "$already_handled"; then
11535         names_already_handled="$names_already_handled $name"
11536                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11537         eval value=\"\$HAVE_LIB$uppername\"
11538         if test -n "$value"; then
11539           if test "$value" = yes; then
11540             eval value=\"\$LIB$uppername\"
11541             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11542             eval value=\"\$LTLIB$uppername\"
11543             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11544           else
11545                                     :
11546           fi
11547         else
11548                               found_dir=
11549           found_la=
11550           found_so=
11551           found_a=
11552           if test $use_additional = yes; then
11553             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11554               found_dir="$additional_libdir"
11555               found_so="$additional_libdir/lib$name.$shlibext"
11556               if test -f "$additional_libdir/lib$name.la"; then
11557                 found_la="$additional_libdir/lib$name.la"
11558               fi
11559             else
11560               if test -f "$additional_libdir/lib$name.$libext"; then
11561                 found_dir="$additional_libdir"
11562                 found_a="$additional_libdir/lib$name.$libext"
11563                 if test -f "$additional_libdir/lib$name.la"; then
11564                   found_la="$additional_libdir/lib$name.la"
11565                 fi
11566               fi
11567             fi
11568           fi
11569           if test "X$found_dir" = "X"; then
11570             for x in $LDFLAGS $LTLIBICONV; do
11571
11572   acl_save_prefix="$prefix"
11573   prefix="$acl_final_prefix"
11574   acl_save_exec_prefix="$exec_prefix"
11575   exec_prefix="$acl_final_exec_prefix"
11576   eval x=\"$x\"
11577   exec_prefix="$acl_save_exec_prefix"
11578   prefix="$acl_save_prefix"
11579
11580               case "$x" in
11581                 -L*)
11582                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11583                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11584                     found_dir="$dir"
11585                     found_so="$dir/lib$name.$shlibext"
11586                     if test -f "$dir/lib$name.la"; then
11587                       found_la="$dir/lib$name.la"
11588                     fi
11589                   else
11590                     if test -f "$dir/lib$name.$libext"; then
11591                       found_dir="$dir"
11592                       found_a="$dir/lib$name.$libext"
11593                       if test -f "$dir/lib$name.la"; then
11594                         found_la="$dir/lib$name.la"
11595                       fi
11596                     fi
11597                   fi
11598                   ;;
11599               esac
11600               if test "X$found_dir" != "X"; then
11601                 break
11602               fi
11603             done
11604           fi
11605           if test "X$found_dir" != "X"; then
11606                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11607             if test "X$found_so" != "X"; then
11608                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11609                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11610               else
11611                                                                                 haveit=
11612                 for x in $ltrpathdirs; do
11613                   if test "X$x" = "X$found_dir"; then
11614                     haveit=yes
11615                     break
11616                   fi
11617                 done
11618                 if test -z "$haveit"; then
11619                   ltrpathdirs="$ltrpathdirs $found_dir"
11620                 fi
11621                                 if test "$hardcode_direct" = yes; then
11622                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11623                 else
11624                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11625                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11626                                                             haveit=
11627                     for x in $rpathdirs; do
11628                       if test "X$x" = "X$found_dir"; then
11629                         haveit=yes
11630                         break
11631                       fi
11632                     done
11633                     if test -z "$haveit"; then
11634                       rpathdirs="$rpathdirs $found_dir"
11635                     fi
11636                   else
11637                                                                                 haveit=
11638                     for x in $LDFLAGS $LIBICONV; do
11639
11640   acl_save_prefix="$prefix"
11641   prefix="$acl_final_prefix"
11642   acl_save_exec_prefix="$exec_prefix"
11643   exec_prefix="$acl_final_exec_prefix"
11644   eval x=\"$x\"
11645   exec_prefix="$acl_save_exec_prefix"
11646   prefix="$acl_save_prefix"
11647
11648                       if test "X$x" = "X-L$found_dir"; then
11649                         haveit=yes
11650                         break
11651                       fi
11652                     done
11653                     if test -z "$haveit"; then
11654                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11655                     fi
11656                     if test "$hardcode_minus_L" != no; then
11657                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11658                     else
11659                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11660                     fi
11661                   fi
11662                 fi
11663               fi
11664             else
11665               if test "X$found_a" != "X"; then
11666                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11667               else
11668                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11669               fi
11670             fi
11671                         additional_includedir=
11672             case "$found_dir" in
11673               */lib | */lib/)
11674                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11675                 additional_includedir="$basedir/include"
11676                 ;;
11677             esac
11678             if test "X$additional_includedir" != "X"; then
11679                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11680                 haveit=
11681                 if test "X$additional_includedir" = "X/usr/local/include"; then
11682                   if test -n "$GCC"; then
11683                     case $host_os in
11684                       linux*) haveit=yes;;
11685                     esac
11686                   fi
11687                 fi
11688                 if test -z "$haveit"; then
11689                   for x in $CPPFLAGS $INCICONV; do
11690
11691   acl_save_prefix="$prefix"
11692   prefix="$acl_final_prefix"
11693   acl_save_exec_prefix="$exec_prefix"
11694   exec_prefix="$acl_final_exec_prefix"
11695   eval x=\"$x\"
11696   exec_prefix="$acl_save_exec_prefix"
11697   prefix="$acl_save_prefix"
11698
11699                     if test "X$x" = "X-I$additional_includedir"; then
11700                       haveit=yes
11701                       break
11702                     fi
11703                   done
11704                   if test -z "$haveit"; then
11705                     if test -d "$additional_includedir"; then
11706                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11707                     fi
11708                   fi
11709                 fi
11710               fi
11711             fi
11712                         if test -n "$found_la"; then
11713                                                         save_libdir="$libdir"
11714               case "$found_la" in
11715                 */* | *\\*) . "$found_la" ;;
11716                 *) . "./$found_la" ;;
11717               esac
11718               libdir="$save_libdir"
11719                             for dep in $dependency_libs; do
11720                 case "$dep" in
11721                   -L*)
11722                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11723                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11724                       haveit=
11725                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11726                         if test -n "$GCC"; then
11727                           case $host_os in
11728                             linux*) haveit=yes;;
11729                           esac
11730                         fi
11731                       fi
11732                       if test -z "$haveit"; then
11733                         haveit=
11734                         for x in $LDFLAGS $LIBICONV; do
11735
11736   acl_save_prefix="$prefix"
11737   prefix="$acl_final_prefix"
11738   acl_save_exec_prefix="$exec_prefix"
11739   exec_prefix="$acl_final_exec_prefix"
11740   eval x=\"$x\"
11741   exec_prefix="$acl_save_exec_prefix"
11742   prefix="$acl_save_prefix"
11743
11744                           if test "X$x" = "X-L$additional_libdir"; then
11745                             haveit=yes
11746                             break
11747                           fi
11748                         done
11749                         if test -z "$haveit"; then
11750                           if test -d "$additional_libdir"; then
11751                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11752                           fi
11753                         fi
11754                         haveit=
11755                         for x in $LDFLAGS $LTLIBICONV; do
11756
11757   acl_save_prefix="$prefix"
11758   prefix="$acl_final_prefix"
11759   acl_save_exec_prefix="$exec_prefix"
11760   exec_prefix="$acl_final_exec_prefix"
11761   eval x=\"$x\"
11762   exec_prefix="$acl_save_exec_prefix"
11763   prefix="$acl_save_prefix"
11764
11765                           if test "X$x" = "X-L$additional_libdir"; then
11766                             haveit=yes
11767                             break
11768                           fi
11769                         done
11770                         if test -z "$haveit"; then
11771                           if test -d "$additional_libdir"; then
11772                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11773                           fi
11774                         fi
11775                       fi
11776                     fi
11777                     ;;
11778                   -R*)
11779                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11780                     if test "$enable_rpath" != no; then
11781                                                                   haveit=
11782                       for x in $rpathdirs; do
11783                         if test "X$x" = "X$dir"; then
11784                           haveit=yes
11785                           break
11786                         fi
11787                       done
11788                       if test -z "$haveit"; then
11789                         rpathdirs="$rpathdirs $dir"
11790                       fi
11791                                                                   haveit=
11792                       for x in $ltrpathdirs; do
11793                         if test "X$x" = "X$dir"; then
11794                           haveit=yes
11795                           break
11796                         fi
11797                       done
11798                       if test -z "$haveit"; then
11799                         ltrpathdirs="$ltrpathdirs $dir"
11800                       fi
11801                     fi
11802                     ;;
11803                   -l*)
11804                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11805                     ;;
11806                   *.la)
11807                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11808                     ;;
11809                   *)
11810                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11811                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11812                     ;;
11813                 esac
11814               done
11815             fi
11816           else
11817                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11818             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11819           fi
11820         fi
11821       fi
11822     done
11823   done
11824   if test "X$rpathdirs" != "X"; then
11825     if test -n "$hardcode_libdir_separator"; then
11826                         alldirs=
11827       for found_dir in $rpathdirs; do
11828         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11829       done
11830             acl_save_libdir="$libdir"
11831       libdir="$alldirs"
11832       eval flag=\"$hardcode_libdir_flag_spec\"
11833       libdir="$acl_save_libdir"
11834       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11835     else
11836             for found_dir in $rpathdirs; do
11837         acl_save_libdir="$libdir"
11838         libdir="$found_dir"
11839         eval flag=\"$hardcode_libdir_flag_spec\"
11840         libdir="$acl_save_libdir"
11841         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11842       done
11843     fi
11844   fi
11845   if test "X$ltrpathdirs" != "X"; then
11846             for found_dir in $ltrpathdirs; do
11847       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11848     done
11849   fi
11850
11851
11852
11853
11854
11855
11856
11857           am_save_CPPFLAGS="$CPPFLAGS"
11858
11859   for element in $INCICONV; do
11860     haveit=
11861     for x in $CPPFLAGS; do
11862
11863   acl_save_prefix="$prefix"
11864   prefix="$acl_final_prefix"
11865   acl_save_exec_prefix="$exec_prefix"
11866   exec_prefix="$acl_final_exec_prefix"
11867   eval x=\"$x\"
11868   exec_prefix="$acl_save_exec_prefix"
11869   prefix="$acl_save_prefix"
11870
11871       if test "X$x" = "X$element"; then
11872         haveit=yes
11873         break
11874       fi
11875     done
11876     if test -z "$haveit"; then
11877       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11878     fi
11879   done
11880
11881
11882   echo "$as_me:$LINENO: checking for iconv" >&5
11883 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11884 if test "${am_cv_func_iconv+set}" = set; then
11885   echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887
11888     am_cv_func_iconv="no, consider installing GNU libiconv"
11889     am_cv_lib_iconv=no
11890     cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896 #include <stdlib.h>
11897 #include <iconv.h>
11898 int
11899 main ()
11900 {
11901 iconv_t cd = iconv_open("","");
11902        iconv(cd,NULL,NULL,NULL,NULL);
11903        iconv_close(cd);
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910   (eval $ac_link) 2>conftest.er1
11911   ac_status=$?
11912   grep -v '^ *+' conftest.er1 >conftest.err
11913   rm -f conftest.er1
11914   cat conftest.err >&5
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); } &&
11917          { ac_try='test -z "$ac_c_werror_flag"
11918                          || test ! -s conftest.err'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; } &&
11924          { ac_try='test -s conftest$ac_exeext'
11925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926   (eval $ac_try) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; }; then
11930   am_cv_func_iconv=yes
11931 else
11932   echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 fi
11936 rm -f conftest.err conftest.$ac_objext \
11937       conftest$ac_exeext conftest.$ac_ext
11938     if test "$am_cv_func_iconv" != yes; then
11939       am_save_LIBS="$LIBS"
11940       LIBS="$LIBS $LIBICONV"
11941       cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h.  */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h.  */
11947 #include <stdlib.h>
11948 #include <iconv.h>
11949 int
11950 main ()
11951 {
11952 iconv_t cd = iconv_open("","");
11953          iconv(cd,NULL,NULL,NULL,NULL);
11954          iconv_close(cd);
11955   ;
11956   return 0;
11957 }
11958 _ACEOF
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11961   (eval $ac_link) 2>conftest.er1
11962   ac_status=$?
11963   grep -v '^ *+' conftest.er1 >conftest.err
11964   rm -f conftest.er1
11965   cat conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } &&
11968          { ac_try='test -z "$ac_c_werror_flag"
11969                          || test ! -s conftest.err'
11970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971   (eval $ac_try) 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; } &&
11975          { ac_try='test -s conftest$ac_exeext'
11976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977   (eval $ac_try) 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); }; }; then
11981   am_cv_lib_iconv=yes
11982         am_cv_func_iconv=yes
11983 else
11984   echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 fi
11988 rm -f conftest.err conftest.$ac_objext \
11989       conftest$ac_exeext conftest.$ac_ext
11990       LIBS="$am_save_LIBS"
11991     fi
11992
11993 fi
11994 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11995 echo "${ECHO_T}$am_cv_func_iconv" >&6
11996   if test "$am_cv_func_iconv" = yes; then
11997
11998 cat >>confdefs.h <<\_ACEOF
11999 #define HAVE_ICONV 1
12000 _ACEOF
12001
12002   fi
12003   if test "$am_cv_lib_iconv" = yes; then
12004     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12005 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12006     echo "$as_me:$LINENO: result: $LIBICONV" >&5
12007 echo "${ECHO_T}$LIBICONV" >&6
12008   else
12009             CPPFLAGS="$am_save_CPPFLAGS"
12010     LIBICONV=
12011     LTLIBICONV=
12012   fi
12013
12014
12015
12016   if test "$am_cv_func_iconv" = yes; then
12017     echo "$as_me:$LINENO: checking for iconv declaration" >&5
12018 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12019     if test "${am_cv_proto_iconv+set}" = set; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022
12023       cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h.  */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h.  */
12029
12030 #include <stdlib.h>
12031 #include <iconv.h>
12032 extern
12033 #ifdef __cplusplus
12034 "C"
12035 #endif
12036 #if defined(__STDC__) || defined(__cplusplus)
12037 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12038 #else
12039 size_t iconv();
12040 #endif
12041
12042 int
12043 main ()
12044 {
12045
12046   ;
12047   return 0;
12048 }
12049 _ACEOF
12050 rm -f conftest.$ac_objext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052   (eval $ac_compile) 2>conftest.er1
12053   ac_status=$?
12054   grep -v '^ *+' conftest.er1 >conftest.err
12055   rm -f conftest.er1
12056   cat conftest.err >&5
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); } &&
12059          { ac_try='test -z "$ac_c_werror_flag"
12060                          || test ! -s conftest.err'
12061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062   (eval $ac_try) 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); }; } &&
12066          { ac_try='test -s conftest.$ac_objext'
12067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068   (eval $ac_try) 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; }; then
12072   am_cv_proto_iconv_arg1=""
12073 else
12074   echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12076
12077 am_cv_proto_iconv_arg1="const"
12078 fi
12079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12080       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12081 fi
12082
12083     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12084     echo "$as_me:$LINENO: result: ${ac_t:-
12085          }$am_cv_proto_iconv" >&5
12086 echo "${ECHO_T}${ac_t:-
12087          }$am_cv_proto_iconv" >&6
12088
12089 cat >>confdefs.h <<_ACEOF
12090 #define ICONV_CONST $am_cv_proto_iconv_arg1
12091 _ACEOF
12092
12093   fi
12094
12095 # Until we have in-tree GNU iconv:
12096 LIBICONV_DEP=
12097
12098
12099
12100   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12101 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12102 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12103   echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105   cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h.  */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h.  */
12111 #include <locale.h>
12112 int
12113 main ()
12114 {
12115 return LC_MESSAGES
12116   ;
12117   return 0;
12118 }
12119 _ACEOF
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122   (eval $ac_link) 2>conftest.er1
12123   ac_status=$?
12124   grep -v '^ *+' conftest.er1 >conftest.err
12125   rm -f conftest.er1
12126   cat conftest.err >&5
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); } &&
12129          { ac_try='test -z "$ac_c_werror_flag"
12130                          || test ! -s conftest.err'
12131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132   (eval $ac_try) 2>&5
12133   ac_status=$?
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); }; } &&
12136          { ac_try='test -s conftest$ac_exeext'
12137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138   (eval $ac_try) 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); }; }; then
12142   am_cv_val_LC_MESSAGES=yes
12143 else
12144   echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12146
12147 am_cv_val_LC_MESSAGES=no
12148 fi
12149 rm -f conftest.err conftest.$ac_objext \
12150       conftest$ac_exeext conftest.$ac_ext
12151 fi
12152 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12153 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12154   if test $am_cv_val_LC_MESSAGES = yes; then
12155
12156 cat >>confdefs.h <<\_ACEOF
12157 #define HAVE_LC_MESSAGES 1
12158 _ACEOF
12159
12160   fi
12161
12162
12163
12164   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12165 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12166 if test "${am_cv_langinfo_codeset+set}" = set; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175 #include <langinfo.h>
12176 int
12177 main ()
12178 {
12179 char* cs = nl_langinfo(CODESET);
12180   ;
12181   return 0;
12182 }
12183 _ACEOF
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12186   (eval $ac_link) 2>conftest.er1
12187   ac_status=$?
12188   grep -v '^ *+' conftest.er1 >conftest.err
12189   rm -f conftest.er1
12190   cat conftest.err >&5
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); } &&
12193          { ac_try='test -z "$ac_c_werror_flag"
12194                          || test ! -s conftest.err'
12195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196   (eval $ac_try) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); }; } &&
12200          { ac_try='test -s conftest$ac_exeext'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; }; then
12206   am_cv_langinfo_codeset=yes
12207 else
12208   echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211 am_cv_langinfo_codeset=no
12212 fi
12213 rm -f conftest.err conftest.$ac_objext \
12214       conftest$ac_exeext conftest.$ac_ext
12215
12216 fi
12217 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12218 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12219   if test $am_cv_langinfo_codeset = yes; then
12220
12221 cat >>confdefs.h <<\_ACEOF
12222 #define HAVE_LANGINFO_CODESET 1
12223 _ACEOF
12224
12225   fi
12226
12227
12228 # We will need to find libiberty.h and ansidecl.h
12229 saved_CFLAGS="$CFLAGS"
12230 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12271         strsignal strstr strverscmp \
12272         errno snprintf vsnprintf vasprintf malloc realloc calloc \
12273         free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
12274 do
12275   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12276 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12277 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12278 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12279   echo $ECHO_N "(cached) $ECHO_C" >&6
12280 else
12281   cat >conftest.$ac_ext <<_ACEOF
12282 /* confdefs.h.  */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h.  */
12287 #undef $ac_tr_decl
12288 #define $ac_tr_decl 1
12289
12290 #include "ansidecl.h"
12291 #include "system.h"
12292
12293 int
12294 main ()
12295 {
12296 #ifndef $ac_func
12297 char *(*pfn) = (char *(*)) $ac_func ;
12298 #endif
12299   ;
12300   return 0;
12301 }
12302 _ACEOF
12303 rm -f conftest.$ac_objext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305   (eval $ac_compile) 2>conftest.er1
12306   ac_status=$?
12307   grep -v '^ *+' conftest.er1 >conftest.err
12308   rm -f conftest.er1
12309   cat conftest.err >&5
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } &&
12312          { ac_try='test -z "$ac_c_werror_flag"
12313                          || test ! -s conftest.err'
12314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315   (eval $ac_try) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; } &&
12319          { ac_try='test -s conftest.$ac_objext'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; }; then
12325   eval "gcc_cv_have_decl_$ac_func=yes"
12326 else
12327   echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330 eval "gcc_cv_have_decl_$ac_func=no"
12331 fi
12332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12333 fi
12334
12335 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12336   echo "$as_me:$LINENO: result: yes" >&5
12337 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12338 #define $ac_tr_decl 1
12339 _ACEOF
12340
12341 else
12342   echo "$as_me:$LINENO: result: no" >&5
12343 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12344 #define $ac_tr_decl 0
12345 _ACEOF
12346
12347 fi
12348
12349 done
12350
12351
12352
12353
12354
12355 for ac_func in getrlimit setrlimit getrusage
12356 do
12357   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12358 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12359 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12360 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12361   echo $ECHO_N "(cached) $ECHO_C" >&6
12362 else
12363   cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h.  */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h.  */
12369 #undef $ac_tr_decl
12370 #define $ac_tr_decl 1
12371
12372 #include "ansidecl.h"
12373 #include "system.h"
12374 #ifdef HAVE_SYS_RESOURCE_H
12375 #include <sys/resource.h>
12376 #endif
12377
12378
12379 int
12380 main ()
12381 {
12382 #ifndef $ac_func
12383 char *(*pfn) = (char *(*)) $ac_func ;
12384 #endif
12385   ;
12386   return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391   (eval $ac_compile) 2>conftest.er1
12392   ac_status=$?
12393   grep -v '^ *+' conftest.er1 >conftest.err
12394   rm -f conftest.er1
12395   cat conftest.err >&5
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); } &&
12398          { ac_try='test -z "$ac_c_werror_flag"
12399                          || test ! -s conftest.err'
12400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401   (eval $ac_try) 2>&5
12402   ac_status=$?
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); }; } &&
12405          { ac_try='test -s conftest.$ac_objext'
12406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407   (eval $ac_try) 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); }; }; then
12411   eval "gcc_cv_have_decl_$ac_func=yes"
12412 else
12413   echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 eval "gcc_cv_have_decl_$ac_func=no"
12417 fi
12418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12419 fi
12420
12421 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12422   echo "$as_me:$LINENO: result: yes" >&5
12423 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12424 #define $ac_tr_decl 1
12425 _ACEOF
12426
12427 else
12428   echo "$as_me:$LINENO: result: no" >&5
12429 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12430 #define $ac_tr_decl 0
12431 _ACEOF
12432
12433 fi
12434
12435 done
12436
12437
12438 cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h.  */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h.  */
12444
12445 #include "ansidecl.h"
12446 #include "system.h"
12447 #ifdef HAVE_SYS_RESOURCE_H
12448 #include <sys/resource.h>
12449 #endif
12450
12451 int
12452 main ()
12453 {
12454 rlim_t l = 0;
12455   ;
12456   return 0;
12457 }
12458 _ACEOF
12459 rm -f conftest.$ac_objext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461   (eval $ac_compile) 2>conftest.er1
12462   ac_status=$?
12463   grep -v '^ *+' conftest.er1 >conftest.err
12464   rm -f conftest.er1
12465   cat conftest.err >&5
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } &&
12468          { ac_try='test -z "$ac_c_werror_flag"
12469                          || test ! -s conftest.err'
12470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471   (eval $ac_try) 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; } &&
12475          { ac_try='test -s conftest.$ac_objext'
12476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477   (eval $ac_try) 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; }; then
12481   :
12482 else
12483   echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12485
12486
12487 cat >>confdefs.h <<\_ACEOF
12488 #define rlim_t long
12489 _ACEOF
12490
12491 fi
12492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12493
12494 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12495 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12496 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12497 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12498
12499 for ac_func in ldgetname
12500 do
12501   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12502 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12503 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12504 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12505   echo $ECHO_N "(cached) $ECHO_C" >&6
12506 else
12507   cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h.  */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h.  */
12513 #undef $ac_tr_decl
12514 #define $ac_tr_decl 1
12515
12516 #include "ansidecl.h"
12517 #include "system.h"
12518 #ifdef HAVE_LDFCN_H
12519 #undef FREAD
12520 #undef FWRITE
12521 #include <ldfcn.h>
12522 #endif
12523
12524
12525 int
12526 main ()
12527 {
12528 #ifndef $ac_func
12529 char *(*pfn) = (char *(*)) $ac_func ;
12530 #endif
12531   ;
12532   return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537   (eval $ac_compile) 2>conftest.er1
12538   ac_status=$?
12539   grep -v '^ *+' conftest.er1 >conftest.err
12540   rm -f conftest.er1
12541   cat conftest.err >&5
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); } &&
12544          { ac_try='test -z "$ac_c_werror_flag"
12545                          || test ! -s conftest.err'
12546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547   (eval $ac_try) 2>&5
12548   ac_status=$?
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); }; } &&
12551          { ac_try='test -s conftest.$ac_objext'
12552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553   (eval $ac_try) 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }; }; then
12557   eval "gcc_cv_have_decl_$ac_func=yes"
12558 else
12559   echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12561
12562 eval "gcc_cv_have_decl_$ac_func=no"
12563 fi
12564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12565 fi
12566
12567 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12568   echo "$as_me:$LINENO: result: yes" >&5
12569 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12570 #define $ac_tr_decl 1
12571 _ACEOF
12572
12573 else
12574   echo "$as_me:$LINENO: result: no" >&5
12575 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12576 #define $ac_tr_decl 0
12577 _ACEOF
12578
12579 fi
12580
12581 done
12582
12583
12584
12585 for ac_func in times
12586 do
12587   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12588 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12589 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12590 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12591   echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593   cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h.  */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h.  */
12599 #undef $ac_tr_decl
12600 #define $ac_tr_decl 1
12601
12602 #include "ansidecl.h"
12603 #include "system.h"
12604 #ifdef HAVE_SYS_TIMES_H
12605 #include <sys/times.h>
12606 #endif
12607
12608
12609 int
12610 main ()
12611 {
12612 #ifndef $ac_func
12613 char *(*pfn) = (char *(*)) $ac_func ;
12614 #endif
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621   (eval $ac_compile) 2>conftest.er1
12622   ac_status=$?
12623   grep -v '^ *+' conftest.er1 >conftest.err
12624   rm -f conftest.er1
12625   cat conftest.err >&5
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); } &&
12628          { ac_try='test -z "$ac_c_werror_flag"
12629                          || test ! -s conftest.err'
12630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631   (eval $ac_try) 2>&5
12632   ac_status=$?
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); }; } &&
12635          { ac_try='test -s conftest.$ac_objext'
12636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637   (eval $ac_try) 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); }; }; then
12641   eval "gcc_cv_have_decl_$ac_func=yes"
12642 else
12643   echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12645
12646 eval "gcc_cv_have_decl_$ac_func=no"
12647 fi
12648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12649 fi
12650
12651 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12652   echo "$as_me:$LINENO: result: yes" >&5
12653 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12654 #define $ac_tr_decl 1
12655 _ACEOF
12656
12657 else
12658   echo "$as_me:$LINENO: result: no" >&5
12659 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12660 #define $ac_tr_decl 0
12661 _ACEOF
12662
12663 fi
12664
12665 done
12666
12667
12668
12669 for ac_func in sigaltstack
12670 do
12671   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12672 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12673 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12674 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12675   echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677   cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h.  */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h.  */
12683 #undef $ac_tr_decl
12684 #define $ac_tr_decl 1
12685
12686 #include "ansidecl.h"
12687 #include "system.h"
12688 #include <signal.h>
12689
12690
12691 int
12692 main ()
12693 {
12694 #ifndef $ac_func
12695 char *(*pfn) = (char *(*)) $ac_func ;
12696 #endif
12697   ;
12698   return 0;
12699 }
12700 _ACEOF
12701 rm -f conftest.$ac_objext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703   (eval $ac_compile) 2>conftest.er1
12704   ac_status=$?
12705   grep -v '^ *+' conftest.er1 >conftest.err
12706   rm -f conftest.er1
12707   cat conftest.err >&5
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); } &&
12710          { ac_try='test -z "$ac_c_werror_flag"
12711                          || test ! -s conftest.err'
12712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713   (eval $ac_try) 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); }; } &&
12717          { ac_try='test -s conftest.$ac_objext'
12718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719   (eval $ac_try) 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; }; then
12723   eval "gcc_cv_have_decl_$ac_func=yes"
12724 else
12725   echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 eval "gcc_cv_have_decl_$ac_func=no"
12729 fi
12730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12731 fi
12732
12733 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12734   echo "$as_me:$LINENO: result: yes" >&5
12735 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12736 #define $ac_tr_decl 1
12737 _ACEOF
12738
12739 else
12740   echo "$as_me:$LINENO: result: no" >&5
12741 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12742 #define $ac_tr_decl 0
12743 _ACEOF
12744
12745 fi
12746
12747 done
12748
12749
12750 # More time-related stuff.
12751 echo "$as_me:$LINENO: checking for struct tms" >&5
12752 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12753 if test "${ac_cv_struct_tms+set}" = set; then
12754   echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h.  */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h.  */
12763
12764 #include "ansidecl.h"
12765 #include "system.h"
12766 #ifdef HAVE_SYS_TIMES_H
12767 #include <sys/times.h>
12768 #endif
12769
12770 int
12771 main ()
12772 {
12773 struct tms tms;
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 rm -f conftest.$ac_objext
12779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780   (eval $ac_compile) 2>conftest.er1
12781   ac_status=$?
12782   grep -v '^ *+' conftest.er1 >conftest.err
12783   rm -f conftest.er1
12784   cat conftest.err >&5
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); } &&
12787          { ac_try='test -z "$ac_c_werror_flag"
12788                          || test ! -s conftest.err'
12789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790   (eval $ac_try) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; } &&
12794          { ac_try='test -s conftest.$ac_objext'
12795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796   (eval $ac_try) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; }; then
12800   ac_cv_struct_tms=yes
12801 else
12802   echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805 ac_cv_struct_tms=no
12806 fi
12807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12808 fi
12809 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12810 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12811 if test $ac_cv_struct_tms = yes; then
12812
12813 cat >>confdefs.h <<\_ACEOF
12814 #define HAVE_STRUCT_TMS 1
12815 _ACEOF
12816
12817 fi
12818
12819 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12820 # revisit after autoconf 2.50.
12821 echo "$as_me:$LINENO: checking for clock_t" >&5
12822 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12823 if test "${gcc_cv_type_clock_t+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826
12827 cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h.  */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h.  */
12833
12834 #include "ansidecl.h"
12835 #include "system.h"
12836
12837 int
12838 main ()
12839 {
12840 clock_t x;
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847   (eval $ac_compile) 2>conftest.er1
12848   ac_status=$?
12849   grep -v '^ *+' conftest.er1 >conftest.err
12850   rm -f conftest.er1
12851   cat conftest.err >&5
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } &&
12854          { ac_try='test -z "$ac_c_werror_flag"
12855                          || test ! -s conftest.err'
12856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857   (eval $ac_try) 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; } &&
12861          { ac_try='test -s conftest.$ac_objext'
12862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863   (eval $ac_try) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; }; then
12867   gcc_cv_type_clock_t=yes
12868 else
12869   echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872 gcc_cv_type_clock_t=no
12873 fi
12874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12875 fi
12876 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12877 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12878 if test $gcc_cv_type_clock_t = yes; then
12879
12880 cat >>confdefs.h <<\_ACEOF
12881 #define HAVE_CLOCK_T 1
12882 _ACEOF
12883
12884 fi
12885
12886 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12887 CFLAGS="$saved_CFLAGS"
12888
12889 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12890 if test "${enable_initfini_array+set}" = set; then
12891   enableval="$enable_initfini_array"
12892
12893 else
12894
12895 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12896 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12897 if test "${gcc_cv_initfini_array+set}" = set; then
12898   echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900     if test "$cross_compiling" = yes; then
12901   gcc_cv_initfini_array=no
12902 else
12903   cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h.  */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h.  */
12909
12910 static int x = -1;
12911 int main (void) { return x; }
12912 int foo (void) { x = 0; }
12913 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12914 _ACEOF
12915 rm -f conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917   (eval $ac_link) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922   (eval $ac_try) 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); }; }; then
12926   gcc_cv_initfini_array=yes
12927 else
12928   echo "$as_me: program exited with status $ac_status" >&5
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12931
12932 ( exit $ac_status )
12933 gcc_cv_initfini_array=no
12934 fi
12935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12936 fi
12937 fi
12938 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12939 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12940   enable_initfini_array=$gcc_cv_initfini_array
12941
12942 fi;
12943 if test $enable_initfini_array = yes; then
12944
12945 cat >>confdefs.h <<\_ACEOF
12946 #define HAVE_INITFINI_ARRAY 1
12947 _ACEOF
12948
12949 fi
12950
12951 # mkdir takes a single argument on some systems.
12952 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12953 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12954 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12955   echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957   cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h.  */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h.  */
12963
12964 #include <sys/types.h>
12965 #ifdef HAVE_SYS_STAT_H
12966 # include <sys/stat.h>
12967 #endif
12968 #ifdef HAVE_UNISTD_H
12969 # include <unistd.h>
12970 #endif
12971 #ifdef HAVE_DIRECT_H
12972 # include <direct.h>
12973 #endif
12974 int
12975 main ()
12976 {
12977 mkdir ("foo", 0);
12978   ;
12979   return 0;
12980 }
12981 _ACEOF
12982 rm -f conftest.$ac_objext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984   (eval $ac_compile) 2>conftest.er1
12985   ac_status=$?
12986   grep -v '^ *+' conftest.er1 >conftest.err
12987   rm -f conftest.er1
12988   cat conftest.err >&5
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); } &&
12991          { ac_try='test -z "$ac_c_werror_flag"
12992                          || test ! -s conftest.err'
12993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994   (eval $ac_try) 2>&5
12995   ac_status=$?
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); }; } &&
12998          { ac_try='test -s conftest.$ac_objext'
12999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000   (eval $ac_try) 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); }; }; then
13004   gcc_cv_mkdir_takes_one_arg=no
13005 else
13006   echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13008
13009 gcc_cv_mkdir_takes_one_arg=yes
13010 fi
13011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13012 fi
13013 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
13014 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
13015 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13016
13017 cat >>confdefs.h <<\_ACEOF
13018 #define MKDIR_TAKES_ONE_ARG 1
13019 _ACEOF
13020
13021 fi
13022
13023
13024 # File extensions
13025 manext='.1'
13026 objext='.o'
13027
13028
13029
13030 # With Setjmp/Longjmp based exception handling.
13031 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
13032 if test "${enable_sjlj_exceptions+set}" = set; then
13033   enableval="$enable_sjlj_exceptions"
13034   case $target in
13035   *-*-hpux10*)
13036     if test $enableval != yes; then
13037       { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
13038 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
13039       enableval=yes
13040     fi
13041     ;;
13042 esac
13043 force_sjlj_exceptions=yes
13044 else
13045   case $target in
13046   *-*-hpux10*)
13047     force_sjlj_exceptions=yes
13048     enableval=yes
13049     ;;
13050   *)
13051     force_sjlj_exceptions=no
13052     ;;
13053 esac
13054 fi;
13055 if test $force_sjlj_exceptions = yes; then
13056   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
13057
13058 cat >>confdefs.h <<_ACEOF
13059 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13060 _ACEOF
13061
13062 fi
13063
13064 # For platforms with the unwind ABI which includes an unwind library,
13065 # libunwind, we can choose to use the system libunwind.
13066
13067 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13068 if test "${with_system_libunwind+set}" = set; then
13069   withval="$with_system_libunwind"
13070
13071 fi;
13072
13073 # config.gcc also contains tests of with_system_libunwind.
13074 if test x$with_system_libunwind = xyes; then
13075
13076 cat >>confdefs.h <<\_ACEOF
13077 #define HAVE_GETIPINFO 1
13078 _ACEOF
13079
13080 fi
13081
13082 # --------------------------------------------------------
13083 # Build, host, and target specific configuration fragments
13084 # --------------------------------------------------------
13085
13086 # Collect build-machine-specific information.
13087 . ${srcdir}/config.build
13088
13089 # Collect host-machine-specific information.
13090 . ${srcdir}/config.host
13091
13092 target_gtfiles=
13093
13094 # Collect target-machine-specific information.
13095 . ${srcdir}/config.gcc
13096
13097 extra_objs="${host_extra_objs} ${extra_objs}"
13098 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13099
13100 # Default the target-machine variables that were not explicitly set.
13101 if test x"$tm_file" = x
13102 then tm_file=$cpu_type/$cpu_type.h; fi
13103
13104 if test x"$extra_headers" = x
13105 then extra_headers=; fi
13106
13107 if test x$md_file = x
13108 then md_file=$cpu_type/$cpu_type.md; fi
13109
13110 if test x$out_file = x
13111 then out_file=$cpu_type/$cpu_type.c; fi
13112
13113 if test x"$tmake_file" = x
13114 then tmake_file=$cpu_type/t-$cpu_type
13115 fi
13116
13117 if test x"$dwarf2" = xyes
13118 then tm_file="$tm_file tm-dwarf2.h"
13119 fi
13120
13121 # Say what files are being used for the output code and MD file.
13122 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13123 echo "Using \`$srcdir/config/$md_file' as machine description file."
13124
13125 # If any of the xm_file variables contain nonexistent files, warn
13126 # about them and drop them.
13127
13128 bx=
13129 for x in $build_xm_file; do
13130   if    test -f $srcdir/config/$x
13131   then      bx="$bx $x"
13132   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13133 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13134   fi
13135 done
13136 build_xm_file="$bx"
13137
13138 hx=
13139 for x in $host_xm_file; do
13140   if    test -f $srcdir/config/$x
13141   then      hx="$hx $x"
13142   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13143 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13144   fi
13145 done
13146 host_xm_file="$hx"
13147
13148 tx=
13149 for x in $xm_file; do
13150   if    test -f $srcdir/config/$x
13151   then      tx="$tx $x"
13152   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13153 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13154   fi
13155 done
13156 xm_file="$tx"
13157
13158 count=a
13159 for f in $tm_file; do
13160         count=${count}x
13161 done
13162 if test $count = ax; then
13163         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13164 else
13165         echo "Using the following target machine macro files:"
13166         for f in $tm_file; do
13167                 echo "  $srcdir/config/$f"
13168         done
13169 fi
13170
13171 if test x$need_64bit_hwint = xyes; then
13172
13173 cat >>confdefs.h <<\_ACEOF
13174 #define NEED_64BIT_HOST_WIDE_INT 1
13175 _ACEOF
13176
13177 fi
13178
13179 if test x$use_long_long_for_widest_fast_int = xyes; then
13180
13181 cat >>confdefs.h <<\_ACEOF
13182 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13183 _ACEOF
13184
13185 fi
13186
13187 count=a
13188 for f in $host_xm_file; do
13189         count=${count}x
13190 done
13191 if test $count = a; then
13192         :
13193 elif test $count = ax; then
13194         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13195 else
13196         echo "Using the following host machine macro files:"
13197         for f in $host_xm_file; do
13198                 echo "  $srcdir/config/$f"
13199         done
13200 fi
13201 echo "Using ${out_host_hook_obj} for host machine hooks."
13202
13203 if test "$host_xm_file" != "$build_xm_file"; then
13204         count=a
13205         for f in $build_xm_file; do
13206                 count=${count}x
13207         done
13208         if test $count = a; then
13209                 :
13210         elif test $count = ax; then
13211                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13212         else
13213                 echo "Using the following build machine macro files:"
13214                 for f in $build_xm_file; do
13215                         echo "  $srcdir/config/$f"
13216                 done
13217         fi
13218 fi
13219
13220 case ${host} in
13221   powerpc*-*-darwin*)
13222     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13223 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13224 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13225   echo $ECHO_N "(cached) $ECHO_C" >&6
13226 else
13227   cat >conftest.$ac_ext <<_ACEOF
13228
13229 #include <sys/cdefs.h>
13230 #include <sys/signal.h>
13231 #include <ucontext.h>
13232 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13233
13234 _ACEOF
13235 rm -f conftest.$ac_objext
13236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13237   (eval $ac_compile) 2>conftest.er1
13238   ac_status=$?
13239   grep -v '^ *+' conftest.er1 >conftest.err
13240   rm -f conftest.er1
13241   cat conftest.err >&5
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); } &&
13244          { ac_try='test -z "$ac_c_werror_flag"
13245                          || test ! -s conftest.err'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; } &&
13251          { ac_try='test -s conftest.$ac_objext'
13252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253   (eval $ac_try) 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   gcc_cv_mcontext_underscores=no
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 gcc_cv_mcontext_underscores=yes
13263 fi
13264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13265 fi
13266 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13267 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13268       if test $gcc_cv_mcontext_underscores = yes; then
13269
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAS_MCONTEXT_T_UNDERSCORES
13272 _ACEOF
13273
13274       fi
13275     ;;
13276 esac
13277
13278 # ---------
13279 # Threading
13280 # ---------
13281
13282 # Check if a valid thread package
13283 case ${enable_threads} in
13284   "" | no)
13285     # No threads
13286     target_thread_file='single'
13287     ;;
13288   yes)
13289     # default
13290     target_thread_file='single'
13291     ;;
13292   aix | dce | gnat | irix | posix | posix95 | rtems | \
13293   single | solaris | vxworks | win32 | mipssde)
13294     target_thread_file=${enable_threads}
13295     ;;
13296   *)
13297     echo "${enable_threads} is an unknown thread package" 1>&2
13298     exit 1
13299     ;;
13300 esac
13301
13302 if test x${thread_file} = x; then
13303   # No thread file set by target-specific clauses in config.gcc,
13304   # so use file chosen by default logic above
13305   thread_file=${target_thread_file}
13306 fi
13307
13308 # Make gthr-default.h if we have a thread file.
13309 gthread_flags=
13310 if test $thread_file != single; then
13311   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13312   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13313     rm -f gthr-default.h-t
13314   else
13315     mv -f gthr-default.h-t gthr-default.h
13316   fi
13317   gthread_flags=-DHAVE_GTHR_DEFAULT
13318 fi
13319
13320
13321 # --------
13322 # UNSORTED
13323 # --------
13324
13325 use_cxa_atexit=no
13326 if test x$enable___cxa_atexit = xyes || \
13327    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13328   if test x$host = x$target; then
13329     case $host in
13330       # mingw32 doesn't have __cxa_atexit but uses atexit registration
13331       # keyed to flag_use_cxa_atexit
13332       *-*-mingw32*)
13333         use_cxa_atexit=yes
13334         ;;
13335       *)
13336         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13337 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13338 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13339   echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341   cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13349 #define __cxa_atexit innocuous___cxa_atexit
13350
13351 /* System header to define __stub macros and hopefully few prototypes,
13352     which can conflict with char __cxa_atexit (); below.
13353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13354     <limits.h> exists even on freestanding compilers.  */
13355
13356 #ifdef __STDC__
13357 # include <limits.h>
13358 #else
13359 # include <assert.h>
13360 #endif
13361
13362 #undef __cxa_atexit
13363
13364 /* Override any gcc2 internal prototype to avoid an error.  */
13365 #ifdef __cplusplus
13366 extern "C"
13367 {
13368 #endif
13369 /* We use char because int might match the return type of a gcc2
13370    builtin and then its argument prototype would still apply.  */
13371 char __cxa_atexit ();
13372 /* The GNU C library defines this for functions which it implements
13373     to always fail with ENOSYS.  Some functions are actually named
13374     something starting with __ and the normal name is an alias.  */
13375 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13376 choke me
13377 #else
13378 char (*f) () = __cxa_atexit;
13379 #endif
13380 #ifdef __cplusplus
13381 }
13382 #endif
13383
13384 int
13385 main ()
13386 {
13387 return f != __cxa_atexit;
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13394   (eval $ac_link) 2>conftest.er1
13395   ac_status=$?
13396   grep -v '^ *+' conftest.er1 >conftest.err
13397   rm -f conftest.er1
13398   cat conftest.err >&5
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } &&
13401          { ac_try='test -z "$ac_c_werror_flag"
13402                          || test ! -s conftest.err'
13403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404   (eval $ac_try) 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); }; } &&
13408          { ac_try='test -s conftest$ac_exeext'
13409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410   (eval $ac_try) 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; }; then
13414   ac_cv_func___cxa_atexit=yes
13415 else
13416   echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13418
13419 ac_cv_func___cxa_atexit=no
13420 fi
13421 rm -f conftest.err conftest.$ac_objext \
13422       conftest$ac_exeext conftest.$ac_ext
13423 fi
13424 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13425 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13426 if test $ac_cv_func___cxa_atexit = yes; then
13427   use_cxa_atexit=yes
13428 else
13429   echo "__cxa_atexit can't be enabled on this target"
13430 fi
13431
13432         ;;
13433     esac
13434   else
13435     # We can't check for __cxa_atexit when building a cross, so assume
13436     # it is available
13437     use_cxa_atexit=yes
13438   fi
13439   if test x$use_cxa_atexit = xyes; then
13440
13441 cat >>confdefs.h <<\_ACEOF
13442 #define DEFAULT_USE_CXA_ATEXIT 2
13443 _ACEOF
13444
13445   fi
13446 fi
13447
13448 use_getipinfo=yes
13449 if test x$with_system_libunwind = xyes; then
13450    if test x$host = x$target; then
13451      echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13452 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13453 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13454   echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456   ac_func_search_save_LIBS=$LIBS
13457 ac_cv_search__Unwind_GetIPInfo=no
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h.  */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h.  */
13464
13465 /* Override any gcc2 internal prototype to avoid an error.  */
13466 #ifdef __cplusplus
13467 extern "C"
13468 #endif
13469 /* We use char because int might match the return type of a gcc2
13470    builtin and then its argument prototype would still apply.  */
13471 char _Unwind_GetIPInfo ();
13472 int
13473 main ()
13474 {
13475 _Unwind_GetIPInfo ();
13476   ;
13477   return 0;
13478 }
13479 _ACEOF
13480 rm -f conftest.$ac_objext conftest$ac_exeext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482   (eval $ac_link) 2>conftest.er1
13483   ac_status=$?
13484   grep -v '^ *+' conftest.er1 >conftest.err
13485   rm -f conftest.er1
13486   cat conftest.err >&5
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); } &&
13489          { ac_try='test -z "$ac_c_werror_flag"
13490                          || test ! -s conftest.err'
13491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492   (eval $ac_try) 2>&5
13493   ac_status=$?
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); }; } &&
13496          { ac_try='test -s conftest$ac_exeext'
13497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498   (eval $ac_try) 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; }; then
13502   ac_cv_search__Unwind_GetIPInfo="none required"
13503 else
13504   echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13506
13507 fi
13508 rm -f conftest.err conftest.$ac_objext \
13509       conftest$ac_exeext conftest.$ac_ext
13510 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13511   for ac_lib in unwind; do
13512     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13513     cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h.  */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h.  */
13519
13520 /* Override any gcc2 internal prototype to avoid an error.  */
13521 #ifdef __cplusplus
13522 extern "C"
13523 #endif
13524 /* We use char because int might match the return type of a gcc2
13525    builtin and then its argument prototype would still apply.  */
13526 char _Unwind_GetIPInfo ();
13527 int
13528 main ()
13529 {
13530 _Unwind_GetIPInfo ();
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537   (eval $ac_link) 2>conftest.er1
13538   ac_status=$?
13539   grep -v '^ *+' conftest.er1 >conftest.err
13540   rm -f conftest.er1
13541   cat conftest.err >&5
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } &&
13544          { ac_try='test -z "$ac_c_werror_flag"
13545                          || test ! -s conftest.err'
13546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547   (eval $ac_try) 2>&5
13548   ac_status=$?
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); }; } &&
13551          { ac_try='test -s conftest$ac_exeext'
13552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553   (eval $ac_try) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); }; }; then
13557   ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13558 break
13559 else
13560   echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13562
13563 fi
13564 rm -f conftest.err conftest.$ac_objext \
13565       conftest$ac_exeext conftest.$ac_ext
13566   done
13567 fi
13568 LIBS=$ac_func_search_save_LIBS
13569 fi
13570 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13571 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13572 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13573   test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13574
13575 else
13576   use_getipinfo=no
13577 fi
13578
13579    fi
13580 fi
13581
13582 if test x$use_getipinfo = xyes; then
13583
13584 cat >>confdefs.h <<\_ACEOF
13585 #define HAVE_GETIPINFO 1
13586 _ACEOF
13587
13588 else
13589    echo "The system unwind library does not support _Unwind_GetIPInfo."
13590 fi
13591
13592 # Look for a file containing extra machine modes.
13593 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13594   extra_modes_file='$(srcdir)'/config/${extra_modes}
13595
13596
13597 cat >>confdefs.h <<_ACEOF
13598 #define EXTRA_MODES_FILE "config/$extra_modes"
13599 _ACEOF
13600
13601 fi
13602
13603 # Convert extra_options into a form suitable for Makefile use.
13604 extra_opt_files=
13605 for f in $extra_options; do
13606   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13607 done
13608
13609
13610 # auto-host.h is the file containing items generated by autoconf and is
13611 # the first file included by config.h.
13612 # If host=build, it is correct to have bconfig include auto-host.h
13613 # as well.  If host!=build, we are in error and need to do more
13614 # work to find out the build config parameters.
13615 if test x$host = x$build
13616 then
13617         build_auto=auto-host.h
13618 else
13619         # We create a subdir, then run autoconf in the subdir.
13620         # To prevent recursion we set host and build for the new
13621         # invocation of configure to the build for this invocation
13622         # of configure.
13623         tempdir=build.$$
13624         rm -rf $tempdir
13625         mkdir $tempdir
13626         cd $tempdir
13627         case ${srcdir} in
13628         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13629         *) realsrcdir=../${srcdir};;
13630         esac
13631         saved_CFLAGS="${CFLAGS}"
13632         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13633         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13634         ${realsrcdir}/configure \
13635                 --enable-languages=${enable_languages-all} \
13636                 --target=$target_alias --host=$build_alias --build=$build_alias
13637         CFLAGS="${saved_CFLAGS}"
13638
13639         # We just finished tests for the build machine, so rename
13640         # the file auto-build.h in the gcc directory.
13641         mv auto-host.h ../auto-build.h
13642         cd ..
13643         rm -rf $tempdir
13644         build_auto=auto-build.h
13645 fi
13646
13647
13648 tm_file="${tm_file} defaults.h"
13649 tm_p_file="${tm_p_file} tm-preds.h"
13650 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13651 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13652 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13653 # put this back in temporarily.
13654 xm_file="auto-host.h ansidecl.h ${xm_file}"
13655
13656 # --------
13657 # UNSORTED
13658 # --------
13659
13660 # Compile in configure arguments.
13661 if test -f configargs.h ; then
13662         # Being re-configured.
13663         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13664         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13665 else
13666         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13667 fi
13668
13669 # Double all backslashes and backslash all quotes to turn
13670 # gcc_config_arguments into a C string.
13671 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13672 $gcc_config_arguments
13673 EOF
13674 gcc_config_arguments_str=`cat conftest.out`
13675 rm -f conftest.out
13676
13677 cat > configargs.h <<EOF
13678 /* Generated automatically. */
13679 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13680 static const char thread_model[] = "$thread_file";
13681
13682 static const struct {
13683   const char *name, *value;
13684 } configure_default_options[] = $configure_default_options;
13685 EOF
13686
13687 # Internationalization
13688 # If we haven't got the data from the intl directory,
13689 # assume NLS is disabled.
13690 USE_NLS=no
13691 LIBINTL=
13692 LIBINTL_DEP=
13693 INCINTL=
13694 XGETTEXT=
13695 GMSGFMT=
13696 POSUB=
13697
13698 if test -f  ../intl/config.intl; then
13699   .  ../intl/config.intl
13700 fi
13701 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13702 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13703 if test x"$USE_NLS" != xyes; then
13704   echo "$as_me:$LINENO: result: no" >&5
13705 echo "${ECHO_T}no" >&6
13706 else
13707   echo "$as_me:$LINENO: result: yes" >&5
13708 echo "${ECHO_T}yes" >&6
13709
13710 cat >>confdefs.h <<\_ACEOF
13711 #define ENABLE_NLS 1
13712 _ACEOF
13713
13714
13715   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13716 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13717   # Look for .po and .gmo files in the source directory.
13718   CATALOGS=
13719   XLINGUAS=
13720   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13721     # If there aren't any .gmo files the shell will give us the
13722     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13723     # weeded out.
13724     case "$cat" in *\**)
13725       continue;;
13726     esac
13727     # The quadruple backslash is collapsed to a double backslash
13728     # by the backticks, then collapsed again by the double quotes,
13729     # leaving us with one backslash in the sed expression (right
13730     # before the dot that mustn't act as a wildcard).
13731     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13732     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13733     # The user is allowed to set LINGUAS to a list of languages to
13734     # install catalogs for.  If it's empty that means "all of them."
13735     if test "x$LINGUAS" = x; then
13736       CATALOGS="$CATALOGS $cat"
13737       XLINGUAS="$XLINGUAS $lang"
13738     else
13739       case "$LINGUAS" in *$lang*)
13740         CATALOGS="$CATALOGS $cat"
13741         XLINGUAS="$XLINGUAS $lang"
13742         ;;
13743       esac
13744     fi
13745   done
13746   LINGUAS="$XLINGUAS"
13747   echo "$as_me:$LINENO: result: $LINGUAS" >&5
13748 echo "${ECHO_T}$LINGUAS" >&6
13749
13750
13751     DATADIRNAME=share
13752
13753   INSTOBJEXT=.mo
13754
13755   GENCAT=gencat
13756
13757   CATOBJEXT=.gmo
13758
13759 fi
13760
13761 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13762 # -liconv on the link line twice.
13763 case "$LIBINTL" in *$LIBICONV*)
13764         LIBICONV= ;;
13765 esac
13766
13767 # Check whether --enable-secureplt or --disable-secureplt was given.
13768 if test "${enable_secureplt+set}" = set; then
13769   enableval="$enable_secureplt"
13770
13771 fi;
13772
13773 # Check whether --enable-cld or --disable-cld was given.
13774 if test "${enable_cld+set}" = set; then
13775   enableval="$enable_cld"
13776
13777 else
13778   enable_cld=no
13779 fi;
13780
13781 # Windows32 Registry support for specifying GCC installation paths.
13782 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13783 if test "${enable_win32_registry+set}" = set; then
13784   enableval="$enable_win32_registry"
13785
13786 fi;
13787
13788 case $host_os in
13789   win32 | pe | cygwin* | mingw32* | uwin*)
13790     if test "x$enable_win32_registry" != xno; then
13791       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13792 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13793 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13794   echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796   ac_func_search_save_LIBS=$LIBS
13797 ac_cv_search_RegOpenKeyExA=no
13798 cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h.  */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h.  */
13804
13805 /* Override any gcc2 internal prototype to avoid an error.  */
13806 #ifdef __cplusplus
13807 extern "C"
13808 #endif
13809 /* We use char because int might match the return type of a gcc2
13810    builtin and then its argument prototype would still apply.  */
13811 char RegOpenKeyExA ();
13812 int
13813 main ()
13814 {
13815 RegOpenKeyExA ();
13816   ;
13817   return 0;
13818 }
13819 _ACEOF
13820 rm -f conftest.$ac_objext conftest$ac_exeext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822   (eval $ac_link) 2>conftest.er1
13823   ac_status=$?
13824   grep -v '^ *+' conftest.er1 >conftest.err
13825   rm -f conftest.er1
13826   cat conftest.err >&5
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); } &&
13829          { ac_try='test -z "$ac_c_werror_flag"
13830                          || test ! -s conftest.err'
13831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832   (eval $ac_try) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; } &&
13836          { ac_try='test -s conftest$ac_exeext'
13837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838   (eval $ac_try) 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); }; }; then
13842   ac_cv_search_RegOpenKeyExA="none required"
13843 else
13844   echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 fi
13848 rm -f conftest.err conftest.$ac_objext \
13849       conftest$ac_exeext conftest.$ac_ext
13850 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13851   for ac_lib in advapi32; do
13852     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13853     cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h.  */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h.  */
13859
13860 /* Override any gcc2 internal prototype to avoid an error.  */
13861 #ifdef __cplusplus
13862 extern "C"
13863 #endif
13864 /* We use char because int might match the return type of a gcc2
13865    builtin and then its argument prototype would still apply.  */
13866 char RegOpenKeyExA ();
13867 int
13868 main ()
13869 {
13870 RegOpenKeyExA ();
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13877   (eval $ac_link) 2>conftest.er1
13878   ac_status=$?
13879   grep -v '^ *+' conftest.er1 >conftest.err
13880   rm -f conftest.er1
13881   cat conftest.err >&5
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); } &&
13884          { ac_try='test -z "$ac_c_werror_flag"
13885                          || test ! -s conftest.err'
13886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887   (eval $ac_try) 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); }; } &&
13891          { ac_try='test -s conftest$ac_exeext'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; }; then
13897   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13898 break
13899 else
13900   echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13902
13903 fi
13904 rm -f conftest.err conftest.$ac_objext \
13905       conftest$ac_exeext conftest.$ac_ext
13906   done
13907 fi
13908 LIBS=$ac_func_search_save_LIBS
13909 fi
13910 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13911 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13912 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13913   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13914
13915 else
13916   enable_win32_registry=no
13917 fi
13918
13919     fi
13920
13921     if test "x$enable_win32_registry" != xno; then
13922
13923 cat >>confdefs.h <<\_ACEOF
13924 #define ENABLE_WIN32_REGISTRY 1
13925 _ACEOF
13926
13927
13928       if test "x$enable_win32_registry" != xyes \
13929          && test "x$enable_win32_registry" != x; then
13930
13931 cat >>confdefs.h <<_ACEOF
13932 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13933 _ACEOF
13934
13935       fi
13936     fi
13937   ;;
13938 esac
13939
13940 # Get an absolute path to the GCC top-level source directory
13941 holddir=`${PWDCMD-pwd}`
13942 cd $srcdir
13943 topdir=`${PWDCMD-pwd}`
13944 cd $holddir
13945
13946 # Conditionalize the makefile for this host machine.
13947 xmake_file=
13948 for f in ${host_xmake_file}
13949 do
13950         if test -f ${srcdir}/config/$f
13951         then
13952                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13953         fi
13954 done
13955
13956 # Conditionalize the makefile for this target machine.
13957 tmake_file_=
13958 for f in ${tmake_file}
13959 do
13960         if test -f ${srcdir}/config/$f
13961         then
13962                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13963         fi
13964 done
13965 tmake_file="${tmake_file_}"
13966
13967 out_object_file=`basename $out_file .c`.o
13968
13969 tm_file_list="options.h"
13970 tm_include_list="options.h"
13971 for f in $tm_file; do
13972   case $f in
13973     ./* )
13974        f=`echo $f | sed 's/^..//'`
13975        tm_file_list="${tm_file_list} $f"
13976        tm_include_list="${tm_include_list} $f"
13977        ;;
13978     defaults.h )
13979        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13980        tm_include_list="${tm_include_list} $f"
13981        ;;
13982     * )
13983        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13984        tm_include_list="${tm_include_list} config/$f"
13985        ;;
13986   esac
13987 done
13988
13989 tm_p_file_list=
13990 tm_p_include_list=
13991 for f in $tm_p_file; do
13992   case $f in
13993     tm-preds.h )
13994        tm_p_file_list="${tm_p_file_list} $f"
13995        tm_p_include_list="${tm_p_include_list} $f"
13996        ;;
13997     * )
13998        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13999        tm_p_include_list="${tm_p_include_list} config/$f"
14000   esac
14001 done
14002
14003 xm_file_list=
14004 xm_include_list=
14005 for f in $xm_file; do
14006   case $f in
14007     ansidecl.h )
14008        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
14009        xm_include_list="${xm_include_list} $f"
14010        ;;
14011     auto-host.h )
14012        xm_file_list="${xm_file_list} $f"
14013        xm_include_list="${xm_include_list} $f"
14014        ;;
14015     * )
14016        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
14017        xm_include_list="${xm_include_list} config/$f"
14018        ;;
14019   esac
14020 done
14021
14022 host_xm_file_list=
14023 host_xm_include_list=
14024 for f in $host_xm_file; do
14025   case $f in
14026     ansidecl.h )
14027        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
14028        host_xm_include_list="${host_xm_include_list} $f"
14029        ;;
14030     auto-host.h )
14031        host_xm_file_list="${host_xm_file_list} $f"
14032        host_xm_include_list="${host_xm_include_list} $f"
14033        ;;
14034     * )
14035        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
14036        host_xm_include_list="${host_xm_include_list} config/$f"
14037        ;;
14038   esac
14039 done
14040
14041 build_xm_file_list=
14042 for f in $build_xm_file; do
14043   case $f in
14044     ansidecl.h )
14045        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
14046        build_xm_include_list="${build_xm_include_list} $f"
14047        ;;
14048     auto-build.h | auto-host.h )
14049        build_xm_file_list="${build_xm_file_list} $f"
14050        build_xm_include_list="${build_xm_include_list} $f"
14051        ;;
14052     * )
14053        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
14054        build_xm_include_list="${build_xm_include_list} config/$f"
14055        ;;
14056   esac
14057 done
14058
14059 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
14060 # cross-compiler which does not use the native headers and libraries.
14061 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
14062 CROSS=
14063 ALL=all.internal
14064 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14065
14066 if test "x$with_build_sysroot" != x; then
14067   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14068 else
14069   # This value is used, even on a native system, because
14070   # CROSS_SYSTEM_HEADER_DIR is just
14071   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14072   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
14073 fi
14074
14075 if test x$host != x$target
14076 then
14077         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
14078         ALL=all.cross
14079         SYSTEM_HEADER_DIR=$build_system_header_dir
14080         case "$host","$target" in
14081         # Darwin crosses can use the host system's libraries and headers,
14082         # because of the fat library support.  Of course, it must be the
14083         # same version of Darwin on both sides.  Allow the user to
14084         # just say --target=foo-darwin without a version number to mean
14085         # "the version on this system".
14086             *-*-darwin*,*-*-darwin*)
14087                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
14088                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
14089                 if test $hostos = $targetos -o $targetos = darwin ; then
14090                     CROSS=
14091                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14092                     with_headers=yes
14093                 fi
14094                 ;;
14095
14096             i?86-*-*,x86_64-*-* \
14097             | powerpc*-*-*,powerpc64*-*-*)
14098                 CROSS="$CROSS -DNATIVE_CROSS" ;;
14099         esac
14100 elif test "x$TARGET_SYSTEM_ROOT" != x; then
14101         SYSTEM_HEADER_DIR=$build_system_header_dir
14102 fi
14103
14104 # If this is a cross-compiler that does not
14105 # have its own set of headers then define
14106 # inhibit_libc
14107
14108 # If this is using newlib, without having the headers available now,
14109 # then define inhibit_libc in LIBGCC2_CFLAGS.
14110 # This prevents libgcc2 from containing any code which requires libc
14111 # support.
14112 : ${inhibit_libc=false}
14113 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
14114        test x$with_newlib = xyes ; } &&
14115      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
14116        inhibit_libc=true
14117 fi
14118
14119
14120 # When building gcc with a cross-compiler, we need to adjust things so
14121 # that the generator programs are still built with the native compiler.
14122 # Also, we cannot run fixincludes or fix-header.
14123
14124 # These are the normal (build=host) settings:
14125 CC_FOR_BUILD='$(CC)'
14126 BUILD_CFLAGS='$(ALL_CFLAGS)'
14127 BUILD_LDFLAGS='$(LDFLAGS)'
14128 STMP_FIXINC=stmp-fixinc
14129
14130 # Possibly disable fixproto, on a per-target basis.
14131 case ${use_fixproto} in
14132   no)
14133     STMP_FIXPROTO=
14134     ;;
14135   yes)
14136     STMP_FIXPROTO=stmp-fixproto
14137     ;;
14138 esac
14139
14140
14141 # And these apply if build != host, or we are generating coverage data
14142 if test x$build != x$host || test "x$coverage_flags" != x
14143 then
14144     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14145     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
14146
14147     if test "x$TARGET_SYSTEM_ROOT" = x; then
14148         if test "x$STMP_FIXPROTO" != x; then
14149           STMP_FIXPROTO=stmp-install-fixproto
14150         fi
14151     fi
14152 fi
14153
14154 # Expand extra_headers to include complete path.
14155 # This substitutes for lots of t-* files.
14156 extra_headers_list=
14157 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14158 for file in ${extra_headers} ; do
14159   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14160 done
14161
14162 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14163 if test x"$use_gcc_tgmath" = xyes
14164 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14165 fi
14166
14167 # Define collect2 in Makefile.
14168 case $host_can_use_collect2 in
14169   no) collect2= ;;
14170   *) collect2='collect2$(exeext)' ;;
14171 esac
14172
14173
14174 # Add a definition of USE_COLLECT2 if system wants one.
14175 case $use_collect2 in
14176   no) use_collect2= ;;
14177   "") ;;
14178   *)
14179     host_xm_defines="${host_xm_defines} USE_COLLECT2"
14180     xm_defines="${xm_defines} USE_COLLECT2"
14181     case $host_can_use_collect2 in
14182       no)
14183         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14184 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14185    { (exit 1); exit 1; }; }
14186         ;;
14187     esac
14188     ;;
14189 esac
14190
14191 # ---------------------------
14192 # Assembler & linker features
14193 # ---------------------------
14194
14195 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14196 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14197 # However when ld-new is first executed from the build tree, libtool will
14198 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14199 # to the build tree.  While doing this we need to use the previous-stage
14200 # linker, or we have an infinite loop.  The presence of a shell script as
14201 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14202 # the gcc/collect-ld script.  So we need to know how libtool works, or
14203 # exec-tool will fail.
14204
14205
14206
14207
14208 macro_version='2.1a'
14209 macro_revision='1.2435'
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222 ltmain="$ac_aux_dir/ltmain.sh"
14223
14224 # Set options
14225
14226 enable_dlopen=no
14227
14228
14229 enable_win32_dll=no
14230
14231
14232 # Check whether --enable-shared or --disable-shared was given.
14233 if test "${enable_shared+set}" = set; then
14234   enableval="$enable_shared"
14235   p=${PACKAGE-default}
14236     case $enableval in
14237     yes) enable_shared=yes ;;
14238     no) enable_shared=no ;;
14239     *)
14240       enable_shared=no
14241       # Look at the argument we got.  We use all the common list separators.
14242       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14243       for pkg in $enableval; do
14244         IFS="$lt_save_ifs"
14245         if test "X$pkg" = "X$p"; then
14246           enable_shared=yes
14247         fi
14248       done
14249       IFS="$lt_save_ifs"
14250       ;;
14251     esac
14252 else
14253   enable_shared=yes
14254 fi;
14255
14256
14257
14258
14259
14260
14261
14262
14263 # Check whether --enable-static or --disable-static was given.
14264 if test "${enable_static+set}" = set; then
14265   enableval="$enable_static"
14266   p=${PACKAGE-default}
14267     case $enableval in
14268     yes) enable_static=yes ;;
14269     no) enable_static=no ;;
14270     *)
14271      enable_static=no
14272       # Look at the argument we got.  We use all the common list separators.
14273       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14274       for pkg in $enableval; do
14275         IFS="$lt_save_ifs"
14276         if test "X$pkg" = "X$p"; then
14277           enable_static=yes
14278         fi
14279       done
14280       IFS="$lt_save_ifs"
14281       ;;
14282     esac
14283 else
14284   enable_static=yes
14285 fi;
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295 # Check whether --with-pic or --without-pic was given.
14296 if test "${with_pic+set}" = set; then
14297   withval="$with_pic"
14298   pic_mode="$withval"
14299 else
14300   pic_mode=default
14301 fi;
14302
14303 test -z "$pic_mode" && pic_mode=default
14304
14305
14306
14307
14308
14309
14310
14311 # Check whether --enable-fast-install or --disable-fast-install was given.
14312 if test "${enable_fast_install+set}" = set; then
14313   enableval="$enable_fast_install"
14314   p=${PACKAGE-default}
14315     case $enableval in
14316     yes) enable_fast_install=yes ;;
14317     no) enable_fast_install=no ;;
14318     *)
14319       enable_fast_install=no
14320       # Look at the argument we got.  We use all the common list separators.
14321       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14322       for pkg in $enableval; do
14323         IFS="$lt_save_ifs"
14324         if test "X$pkg" = "X$p"; then
14325           enable_fast_install=yes
14326         fi
14327       done
14328       IFS="$lt_save_ifs"
14329       ;;
14330     esac
14331 else
14332   enable_fast_install=yes
14333 fi;
14334
14335
14336
14337
14338
14339
14340
14341
14342 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14343 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14344 if test "${lt_cv_path_SED+set}" = set; then
14345   echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347   # Loop through the user's path and test for sed and gsed.
14348 # Then use that list of sed's as ones to test for truncation.
14349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14350 for as_dir in $PATH
14351 do
14352   IFS=$as_save_IFS
14353   test -z "$as_dir" && as_dir=.
14354   for lt_ac_prog in sed gsed; do
14355     for ac_exec_ext in '' $ac_executable_extensions; do
14356       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14357         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14358       fi
14359     done
14360   done
14361 done
14362 IFS=$as_save_IFS
14363 lt_ac_max=0
14364 lt_ac_count=0
14365 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14366 # along with /bin/sed that truncates output.
14367 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14368   test ! -f $lt_ac_sed && continue
14369   cat /dev/null > conftest.in
14370   lt_ac_count=0
14371   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14372   # Check for GNU sed and select it if it is found.
14373   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14374     lt_cv_path_SED=$lt_ac_sed
14375     break
14376   fi
14377   while true; do
14378     cat conftest.in conftest.in >conftest.tmp
14379     mv conftest.tmp conftest.in
14380     cp conftest.in conftest.nl
14381     echo >>conftest.nl
14382     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14383     cmp -s conftest.out conftest.nl || break
14384     # 10000 chars as input seems more than enough
14385     test $lt_ac_count -gt 10 && break
14386     lt_ac_count=`expr $lt_ac_count + 1`
14387     if test $lt_ac_count -gt $lt_ac_max; then
14388       lt_ac_max=$lt_ac_count
14389       lt_cv_path_SED=$lt_ac_sed
14390     fi
14391   done
14392 done
14393
14394 fi
14395
14396 SED=$lt_cv_path_SED
14397
14398 echo "$as_me:$LINENO: result: $SED" >&5
14399 echo "${ECHO_T}$SED" >&6
14400
14401 test -z "$SED" && SED=sed
14402 Xsed="$SED -e 1s/^X//"
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414 echo "$as_me:$LINENO: checking for fgrep" >&5
14415 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14416 if test "${ac_cv_prog_fgrep+set}" = set; then
14417   echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14420     then ac_cv_prog_fgrep='grep -F'
14421     else ac_cv_prog_fgrep='fgrep'
14422     fi
14423 fi
14424 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14425 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14426  FGREP=$ac_cv_prog_fgrep
14427
14428
14429 test -z "$GREP" && GREP=grep
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14450 if test "${with_gnu_ld+set}" = set; then
14451   withval="$with_gnu_ld"
14452   test "$withval" = no || with_gnu_ld=yes
14453 else
14454   with_gnu_ld=no
14455 fi;
14456 ac_prog=ld
14457 if test "$GCC" = yes; then
14458   # Check if gcc -print-prog-name=ld gives a path.
14459   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14460 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14461   case $host in
14462   *-*-mingw*)
14463     # gcc leaves a trailing carriage return which upsets mingw
14464     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14465   *)
14466     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14467   esac
14468   case $ac_prog in
14469     # Accept absolute paths.
14470     [\\/]* | ?:[\\/]*)
14471       re_direlt='/[^/][^/]*/\.\./'
14472       # Canonicalize the pathname of ld
14473       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14474       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14475         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14476       done
14477       test -z "$LD" && LD="$ac_prog"
14478       ;;
14479   "")
14480     # If it fails, then pretend we aren't using GCC.
14481     ac_prog=ld
14482     ;;
14483   *)
14484     # If it is relative, then search for the first ld in PATH.
14485     with_gnu_ld=unknown
14486     ;;
14487   esac
14488 elif test "$with_gnu_ld" = yes; then
14489   echo "$as_me:$LINENO: checking for GNU ld" >&5
14490 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14491 else
14492   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14493 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14494 fi
14495 if test "${lt_cv_path_LD+set}" = set; then
14496   echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498   if test -z "$LD"; then
14499   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14500   for ac_dir in $PATH; do
14501     IFS="$lt_save_ifs"
14502     test -z "$ac_dir" && ac_dir=.
14503     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14504       lt_cv_path_LD="$ac_dir/$ac_prog"
14505       # Check to see if the program is GNU ld.  I'd rather use --version,
14506       # but apparently some variants of GNU ld only accept -v.
14507       # Break only if it was the GNU/non-GNU ld that we prefer.
14508       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14509       *GNU* | *'with BFD'*)
14510         test "$with_gnu_ld" != no && break
14511         ;;
14512       *)
14513         test "$with_gnu_ld" != yes && break
14514         ;;
14515       esac
14516     fi
14517   done
14518   IFS="$lt_save_ifs"
14519 else
14520   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14521 fi
14522 fi
14523
14524 LD="$lt_cv_path_LD"
14525 if test -n "$LD"; then
14526   echo "$as_me:$LINENO: result: $LD" >&5
14527 echo "${ECHO_T}$LD" >&6
14528 else
14529   echo "$as_me:$LINENO: result: no" >&5
14530 echo "${ECHO_T}no" >&6
14531 fi
14532 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14533 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14534    { (exit 1); exit 1; }; }
14535 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14536 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14537 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14541 case `$LD -v 2>&1 </dev/null` in
14542 *GNU* | *'with BFD'*)
14543   lt_cv_prog_gnu_ld=yes
14544   ;;
14545 *)
14546   lt_cv_prog_gnu_ld=no
14547   ;;
14548 esac
14549 fi
14550 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14551 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14552 with_gnu_ld=$lt_cv_prog_gnu_ld
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14564 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14565 if test "${lt_cv_path_NM+set}" = set; then
14566   echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568   if test -n "$NM"; then
14569   # Let the user override the test.
14570   lt_cv_path_NM="$NM"
14571 else
14572   lt_nm_to_check="${ac_tool_prefix}nm"
14573   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14574     lt_nm_to_check="$lt_nm_to_check nm"
14575   fi
14576   for lt_tmp_nm in $lt_nm_to_check; do
14577     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14578     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14579       IFS="$lt_save_ifs"
14580       test -z "$ac_dir" && ac_dir=.
14581       tmp_nm="$ac_dir/$lt_tmp_nm"
14582       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14583         # Check to see if the nm accepts a BSD-compat flag.
14584         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14585         #   nm: unknown option "B" ignored
14586         # Tru64's nm complains that /dev/null is an invalid object file
14587         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14588         */dev/null* | *'Invalid file or object type'*)
14589           lt_cv_path_NM="$tmp_nm -B"
14590           break
14591           ;;
14592         *)
14593           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14594           */dev/null*)
14595             lt_cv_path_NM="$tmp_nm -p"
14596             break
14597             ;;
14598           *)
14599             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14600             continue # so that we can try to find one that supports BSD flags
14601             ;;
14602           esac
14603           ;;
14604         esac
14605       fi
14606     done
14607     IFS="$lt_save_ifs"
14608   done
14609   : ${lt_cv_path_NM=no}
14610 fi
14611 fi
14612 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14613 echo "${ECHO_T}$lt_cv_path_NM" >&6
14614 if test "$lt_cv_path_NM" != "no"; then
14615   NM="$lt_cv_path_NM"
14616 else
14617   # Didn't find any BSD compatible name lister, look for dumpbin.
14618   if test -n "$ac_tool_prefix"; then
14619   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14620   do
14621     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14622 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14623 echo "$as_me:$LINENO: checking for $ac_word" >&5
14624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14625 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14626   echo $ECHO_N "(cached) $ECHO_C" >&6
14627 else
14628   if test -n "$DUMPBIN"; then
14629   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14630 else
14631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14632 for as_dir in $PATH
14633 do
14634   IFS=$as_save_IFS
14635   test -z "$as_dir" && as_dir=.
14636   for ac_exec_ext in '' $ac_executable_extensions; do
14637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14638     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14640     break 2
14641   fi
14642 done
14643 done
14644
14645 fi
14646 fi
14647 DUMPBIN=$ac_cv_prog_DUMPBIN
14648 if test -n "$DUMPBIN"; then
14649   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14650 echo "${ECHO_T}$DUMPBIN" >&6
14651 else
14652   echo "$as_me:$LINENO: result: no" >&5
14653 echo "${ECHO_T}no" >&6
14654 fi
14655
14656     test -n "$DUMPBIN" && break
14657   done
14658 fi
14659 if test -z "$DUMPBIN"; then
14660   ac_ct_DUMPBIN=$DUMPBIN
14661   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14662 do
14663   # Extract the first word of "$ac_prog", so it can be a program name with args.
14664 set dummy $ac_prog; ac_word=$2
14665 echo "$as_me:$LINENO: checking for $ac_word" >&5
14666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14667 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14668   echo $ECHO_N "(cached) $ECHO_C" >&6
14669 else
14670   if test -n "$ac_ct_DUMPBIN"; then
14671   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14672 else
14673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14674 for as_dir in $PATH
14675 do
14676   IFS=$as_save_IFS
14677   test -z "$as_dir" && as_dir=.
14678   for ac_exec_ext in '' $ac_executable_extensions; do
14679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14680     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14682     break 2
14683   fi
14684 done
14685 done
14686
14687 fi
14688 fi
14689 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14690 if test -n "$ac_ct_DUMPBIN"; then
14691   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14692 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14693 else
14694   echo "$as_me:$LINENO: result: no" >&5
14695 echo "${ECHO_T}no" >&6
14696 fi
14697
14698   test -n "$ac_ct_DUMPBIN" && break
14699 done
14700 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14701
14702   DUMPBIN=$ac_ct_DUMPBIN
14703 fi
14704
14705
14706   if test "$DUMPBIN" != ":"; then
14707     NM="$DUMPBIN"
14708   fi
14709 fi
14710 test -z "$NM" && NM=nm
14711
14712
14713
14714
14715
14716
14717 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14718 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14719 if test "${lt_cv_nm_interface+set}" = set; then
14720   echo $ECHO_N "(cached) $ECHO_C" >&6
14721 else
14722   lt_cv_nm_interface="BSD nm"
14723   echo "int some_variable = 0;" > conftest.$ac_ext
14724   (eval echo "\"\$as_me:14724: $ac_compile\"" >&5)
14725   (eval "$ac_compile" 2>conftest.err)
14726   cat conftest.err >&5
14727   (eval echo "\"\$as_me:14727: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14728   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14729   cat conftest.err >&5
14730   (eval echo "\"\$as_me:14730: output\"" >&5)
14731   cat conftest.out >&5
14732   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14733     lt_cv_nm_interface="MS dumpbin"
14734   fi
14735   rm -f conftest*
14736 fi
14737 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14738 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14739
14740 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14741 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14742 LN_S=$as_ln_s
14743 if test "$LN_S" = "ln -s"; then
14744   echo "$as_me:$LINENO: result: yes" >&5
14745 echo "${ECHO_T}yes" >&6
14746 else
14747   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14748 echo "${ECHO_T}no, using $LN_S" >&6
14749 fi
14750
14751 # find the maximum length of command line arguments
14752 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14753 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14754 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14755   echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757     i=0
14758   teststring="ABCD"
14759
14760   case $build_os in
14761   msdosdjgpp*)
14762     # On DJGPP, this test can blow up pretty badly due to problems in libc
14763     # (any single argument exceeding 2000 bytes causes a buffer overrun
14764     # during glob expansion).  Even if it were fixed, the result of this
14765     # check would be larger than it should be.
14766     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14767     ;;
14768
14769   gnu*)
14770     # Under GNU Hurd, this test is not required because there is
14771     # no limit to the length of command line arguments.
14772     # Libtool will interpret -1 as no limit whatsoever
14773     lt_cv_sys_max_cmd_len=-1;
14774     ;;
14775
14776   cygwin* | mingw*)
14777     # On Win9x/ME, this test blows up -- it succeeds, but takes
14778     # about 5 minutes as the teststring grows exponentially.
14779     # Worse, since 9x/ME are not pre-emptively multitasking,
14780     # you end up with a "frozen" computer, even though with patience
14781     # the test eventually succeeds (with a max line length of 256k).
14782     # Instead, let's just punt: use the minimum linelength reported by
14783     # all of the supported platforms: 8192 (on NT/2K/XP).
14784     lt_cv_sys_max_cmd_len=8192;
14785     ;;
14786
14787   amigaos*)
14788     # On AmigaOS with pdksh, this test takes hours, literally.
14789     # So we just punt and use a minimum line length of 8192.
14790     lt_cv_sys_max_cmd_len=8192;
14791     ;;
14792
14793   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14794     # This has been around since 386BSD, at least.  Likely further.
14795     if test -x /sbin/sysctl; then
14796       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14797     elif test -x /usr/sbin/sysctl; then
14798       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14799     else
14800       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14801     fi
14802     # And add a safety zone
14803     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14804     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14805     ;;
14806
14807   interix*)
14808     # We know the value 262144 and hardcode it with a safety zone (like BSD)
14809     lt_cv_sys_max_cmd_len=196608
14810     ;;
14811
14812   osf*)
14813     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14814     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14815     # nice to cause kernel panics so lets avoid the loop below.
14816     # First set a reasonable default.
14817     lt_cv_sys_max_cmd_len=16384
14818     #
14819     if test -x /sbin/sysconfig; then
14820       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14821         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14822       esac
14823     fi
14824     ;;
14825   sco3.2v5*)
14826     lt_cv_sys_max_cmd_len=102400
14827     ;;
14828   sysv5* | sco5v6* | sysv4.2uw2*)
14829     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14830     if test -n "$kargmax"; then
14831       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
14832     else
14833       lt_cv_sys_max_cmd_len=32768
14834     fi
14835     ;;
14836   *)
14837     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
14838     if test -n $lt_cv_sys_max_cmd_len; then
14839       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14840       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14841     else
14842       # Make teststring a little bigger before we do anything with it.
14843       # a 1K string should be a reasonable start.
14844       for i in 1 2 3 4 5 6 7 8 ; do
14845         teststring=$teststring$teststring
14846       done
14847       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14848       # If test is not a shell built-in, we'll probably end up computing a
14849       # maximum length that is only half of the actual maximum length, but
14850       # we can't tell.
14851       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14852                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14853               test $i != 17 # 1/2 MB should be enough
14854       do
14855         i=`expr $i + 1`
14856         teststring=$teststring$teststring
14857       done
14858       # Only check the string length outside the loop.
14859       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14860       teststring=
14861       # Add a significant safety factor because C++ compilers can tack on
14862       # massive amounts of additional arguments before passing them to the
14863       # linker.  It appears as though 1/2 is a usable value.
14864       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14865     fi
14866     ;;
14867   esac
14868
14869 fi
14870
14871 if test -n $lt_cv_sys_max_cmd_len ; then
14872   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14873 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14874 else
14875   echo "$as_me:$LINENO: result: none" >&5
14876 echo "${ECHO_T}none" >&6
14877 fi
14878 max_cmd_len=$lt_cv_sys_max_cmd_len
14879
14880
14881
14882
14883
14884
14885
14886 : ${CP="cp -f"}
14887 : ${MV="mv -f"}
14888 : ${RM="rm -f"}
14889
14890 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14891 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14892 # Try some XSI features
14893 xsi_shell=no
14894 ( _lt_dummy="a/b/c"
14895   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14896       = c,a/b,, ) >/dev/null 2>&1 \
14897   && xsi_shell=yes
14898 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14899 echo "${ECHO_T}$xsi_shell" >&6
14900
14901
14902 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14903 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14904 lt_shell_append=no
14905 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14906     >/dev/null 2>&1 \
14907   && lt_shell_append=yes
14908 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14909 echo "${ECHO_T}$lt_shell_append" >&6
14910
14911
14912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14913   lt_unset=unset
14914 else
14915   lt_unset=false
14916 fi
14917
14918
14919
14920
14921
14922 # test EBCDIC or ASCII
14923 case `echo X|tr X '\101'` in
14924  A) # ASCII based system
14925     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14926   lt_SP2NL='tr \040 \012'
14927   lt_NL2SP='tr \015\012 \040\040'
14928   ;;
14929  *) # EBCDIC based system
14930   lt_SP2NL='tr \100 \n'
14931   lt_NL2SP='tr \r\n \100\100'
14932   ;;
14933 esac
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14944 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14945 if test "${lt_cv_ld_reload_flag+set}" = set; then
14946   echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948   lt_cv_ld_reload_flag='-r'
14949 fi
14950 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14951 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14952 reload_flag=$lt_cv_ld_reload_flag
14953 case $reload_flag in
14954 "" | " "*) ;;
14955 *) reload_flag=" $reload_flag" ;;
14956 esac
14957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14958 case $host_os in
14959   darwin*)
14960     if test "$GCC" = yes; then
14961       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14962     else
14963       reload_cmds='$LD$reload_flag -o $output$reload_objs'
14964     fi
14965     ;;
14966 esac
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14978 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14979 if test "${lt_cv_deplibs_check_method+set}" = set; then
14980   echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982   lt_cv_file_magic_cmd='$MAGIC_CMD'
14983 lt_cv_file_magic_test_file=
14984 lt_cv_deplibs_check_method='unknown'
14985 # Need to set the preceding variable on all platforms that support
14986 # interlibrary dependencies.
14987 # 'none' -- dependencies not supported.
14988 # `unknown' -- same as none, but documents that we really don't know.
14989 # 'pass_all' -- all dependencies passed with no checks.
14990 # 'test_compile' -- check by making test program.
14991 # 'file_magic [[regex]]' -- check by looking for files in library path
14992 # which responds to the $file_magic_cmd with a given extended regex.
14993 # If you have `file' or equivalent on your system and you're not sure
14994 # whether `pass_all' will *always* work, you probably want this one.
14995
14996 case $host_os in
14997 aix[4-9]*)
14998   lt_cv_deplibs_check_method=pass_all
14999   ;;
15000
15001 beos*)
15002   lt_cv_deplibs_check_method=pass_all
15003   ;;
15004
15005 bsdi[45]*)
15006   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15007   lt_cv_file_magic_cmd='/usr/bin/file -L'
15008   lt_cv_file_magic_test_file=/shlib/libc.so
15009   ;;
15010
15011 cygwin*)
15012   # func_win32_libid is a shell function defined in ltmain.sh
15013   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15014   lt_cv_file_magic_cmd='func_win32_libid'
15015   ;;
15016
15017 mingw* | pw32*)
15018   # Base MSYS/MinGW do not provide the 'file' command needed by
15019   # func_win32_libid shell function, so use a weaker test based on 'objdump',
15020   # unless we find 'file', for example because we are cross-compiling.
15021   if ( file / ) >/dev/null 2>&1; then
15022     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15023     lt_cv_file_magic_cmd='func_win32_libid'
15024   else
15025     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
15026     lt_cv_file_magic_cmd='$OBJDUMP -f'
15027   fi
15028   ;;
15029
15030 darwin* | rhapsody*)
15031   lt_cv_deplibs_check_method=pass_all
15032   ;;
15033
15034 freebsd* | dragonfly*)
15035   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15036     case $host_cpu in
15037     i*86 )
15038       # Not sure whether the presence of OpenBSD here was a mistake.
15039       # Let's accept both of them until this is cleared up.
15040       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15041       lt_cv_file_magic_cmd=/usr/bin/file
15042       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15043       ;;
15044     esac
15045   else
15046     lt_cv_deplibs_check_method=pass_all
15047   fi
15048   ;;
15049
15050 gnu*)
15051   lt_cv_deplibs_check_method=pass_all
15052   ;;
15053
15054 hpux10.20* | hpux11*)
15055   lt_cv_file_magic_cmd=/usr/bin/file
15056   case $host_cpu in
15057   ia64*)
15058     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15059     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15060     ;;
15061   hppa*64*)
15062     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
15063     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15064     ;;
15065   *)
15066     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15067     lt_cv_file_magic_test_file=/usr/lib/libc.sl
15068     ;;
15069   esac
15070   ;;
15071
15072 interix[3-9]*)
15073   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15074   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15075   ;;
15076
15077 irix5* | irix6* | nonstopux*)
15078   case $LD in
15079   *-32|*"-32 ") libmagic=32-bit;;
15080   *-n32|*"-n32 ") libmagic=N32;;
15081   *-64|*"-64 ") libmagic=64-bit;;
15082   *) libmagic=never-match;;
15083   esac
15084   lt_cv_deplibs_check_method=pass_all
15085   ;;
15086
15087 # This must be Linux ELF.
15088 linux* | k*bsd*-gnu)
15089   lt_cv_deplibs_check_method=pass_all
15090   ;;
15091
15092 netbsd*)
15093   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15094     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15095   else
15096     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15097   fi
15098   ;;
15099
15100 newos6*)
15101   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15102   lt_cv_file_magic_cmd=/usr/bin/file
15103   lt_cv_file_magic_test_file=/usr/lib/libnls.so
15104   ;;
15105
15106 *nto* | *qnx*)
15107   lt_cv_deplibs_check_method=pass_all
15108   ;;
15109
15110 openbsd*)
15111   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15112     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15113   else
15114     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15115   fi
15116   ;;
15117
15118 osf3* | osf4* | osf5*)
15119   lt_cv_deplibs_check_method=pass_all
15120   ;;
15121
15122 rdos*)
15123   lt_cv_deplibs_check_method=pass_all
15124   ;;
15125
15126 solaris*)
15127   lt_cv_deplibs_check_method=pass_all
15128   ;;
15129
15130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15131   lt_cv_deplibs_check_method=pass_all
15132   ;;
15133
15134 sysv4 | sysv4.3*)
15135   case $host_vendor in
15136   motorola)
15137     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
15138     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15139     ;;
15140   ncr)
15141     lt_cv_deplibs_check_method=pass_all
15142     ;;
15143   sequent)
15144     lt_cv_file_magic_cmd='/bin/file'
15145     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15146     ;;
15147   sni)
15148     lt_cv_file_magic_cmd='/bin/file'
15149     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15150     lt_cv_file_magic_test_file=/lib/libc.so
15151     ;;
15152   siemens)
15153     lt_cv_deplibs_check_method=pass_all
15154     ;;
15155   pc)
15156     lt_cv_deplibs_check_method=pass_all
15157     ;;
15158   esac
15159   ;;
15160
15161 tpf*)
15162   lt_cv_deplibs_check_method=pass_all
15163   ;;
15164 esac
15165
15166 fi
15167 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15168 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15169 file_magic_cmd=$lt_cv_file_magic_cmd
15170 deplibs_check_method=$lt_cv_deplibs_check_method
15171 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184 if test -n "$ac_tool_prefix"; then
15185   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15186 set dummy ${ac_tool_prefix}ar; ac_word=$2
15187 echo "$as_me:$LINENO: checking for $ac_word" >&5
15188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15189 if test "${ac_cv_prog_AR+set}" = set; then
15190   echo $ECHO_N "(cached) $ECHO_C" >&6
15191 else
15192   if test -n "$AR"; then
15193   ac_cv_prog_AR="$AR" # Let the user override the test.
15194 else
15195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15196 for as_dir in $PATH
15197 do
15198   IFS=$as_save_IFS
15199   test -z "$as_dir" && as_dir=.
15200   for ac_exec_ext in '' $ac_executable_extensions; do
15201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15202     ac_cv_prog_AR="${ac_tool_prefix}ar"
15203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15204     break 2
15205   fi
15206 done
15207 done
15208
15209 fi
15210 fi
15211 AR=$ac_cv_prog_AR
15212 if test -n "$AR"; then
15213   echo "$as_me:$LINENO: result: $AR" >&5
15214 echo "${ECHO_T}$AR" >&6
15215 else
15216   echo "$as_me:$LINENO: result: no" >&5
15217 echo "${ECHO_T}no" >&6
15218 fi
15219
15220 fi
15221 if test -z "$ac_cv_prog_AR"; then
15222   ac_ct_AR=$AR
15223   # Extract the first word of "ar", so it can be a program name with args.
15224 set dummy ar; ac_word=$2
15225 echo "$as_me:$LINENO: checking for $ac_word" >&5
15226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15227 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15228   echo $ECHO_N "(cached) $ECHO_C" >&6
15229 else
15230   if test -n "$ac_ct_AR"; then
15231   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15232 else
15233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15234 for as_dir in $PATH
15235 do
15236   IFS=$as_save_IFS
15237   test -z "$as_dir" && as_dir=.
15238   for ac_exec_ext in '' $ac_executable_extensions; do
15239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15240     ac_cv_prog_ac_ct_AR="ar"
15241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15242     break 2
15243   fi
15244 done
15245 done
15246
15247   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15248 fi
15249 fi
15250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15251 if test -n "$ac_ct_AR"; then
15252   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15253 echo "${ECHO_T}$ac_ct_AR" >&6
15254 else
15255   echo "$as_me:$LINENO: result: no" >&5
15256 echo "${ECHO_T}no" >&6
15257 fi
15258
15259   AR=$ac_ct_AR
15260 else
15261   AR="$ac_cv_prog_AR"
15262 fi
15263
15264 test -z "$AR" && AR=ar
15265 test -z "$AR_FLAGS" && AR_FLAGS=cru
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277 if test -n "$ac_tool_prefix"; then
15278   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15279 set dummy ${ac_tool_prefix}strip; ac_word=$2
15280 echo "$as_me:$LINENO: checking for $ac_word" >&5
15281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15282 if test "${ac_cv_prog_STRIP+set}" = set; then
15283   echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285   if test -n "$STRIP"; then
15286   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15287 else
15288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15289 for as_dir in $PATH
15290 do
15291   IFS=$as_save_IFS
15292   test -z "$as_dir" && as_dir=.
15293   for ac_exec_ext in '' $ac_executable_extensions; do
15294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15295     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15297     break 2
15298   fi
15299 done
15300 done
15301
15302 fi
15303 fi
15304 STRIP=$ac_cv_prog_STRIP
15305 if test -n "$STRIP"; then
15306   echo "$as_me:$LINENO: result: $STRIP" >&5
15307 echo "${ECHO_T}$STRIP" >&6
15308 else
15309   echo "$as_me:$LINENO: result: no" >&5
15310 echo "${ECHO_T}no" >&6
15311 fi
15312
15313 fi
15314 if test -z "$ac_cv_prog_STRIP"; then
15315   ac_ct_STRIP=$STRIP
15316   # Extract the first word of "strip", so it can be a program name with args.
15317 set dummy strip; ac_word=$2
15318 echo "$as_me:$LINENO: checking for $ac_word" >&5
15319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15320 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15321   echo $ECHO_N "(cached) $ECHO_C" >&6
15322 else
15323   if test -n "$ac_ct_STRIP"; then
15324   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15325 else
15326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327 for as_dir in $PATH
15328 do
15329   IFS=$as_save_IFS
15330   test -z "$as_dir" && as_dir=.
15331   for ac_exec_ext in '' $ac_executable_extensions; do
15332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15333     ac_cv_prog_ac_ct_STRIP="strip"
15334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15335     break 2
15336   fi
15337 done
15338 done
15339
15340   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15341 fi
15342 fi
15343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15344 if test -n "$ac_ct_STRIP"; then
15345   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15346 echo "${ECHO_T}$ac_ct_STRIP" >&6
15347 else
15348   echo "$as_me:$LINENO: result: no" >&5
15349 echo "${ECHO_T}no" >&6
15350 fi
15351
15352   STRIP=$ac_ct_STRIP
15353 else
15354   STRIP="$ac_cv_prog_STRIP"
15355 fi
15356
15357 test -z "$STRIP" && STRIP=:
15358
15359
15360
15361
15362
15363
15364 if test -n "$ac_tool_prefix"; then
15365   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15367 echo "$as_me:$LINENO: checking for $ac_word" >&5
15368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15369 if test "${ac_cv_prog_RANLIB+set}" = set; then
15370   echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372   if test -n "$RANLIB"; then
15373   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15374 else
15375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15376 for as_dir in $PATH
15377 do
15378   IFS=$as_save_IFS
15379   test -z "$as_dir" && as_dir=.
15380   for ac_exec_ext in '' $ac_executable_extensions; do
15381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15382     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15384     break 2
15385   fi
15386 done
15387 done
15388
15389 fi
15390 fi
15391 RANLIB=$ac_cv_prog_RANLIB
15392 if test -n "$RANLIB"; then
15393   echo "$as_me:$LINENO: result: $RANLIB" >&5
15394 echo "${ECHO_T}$RANLIB" >&6
15395 else
15396   echo "$as_me:$LINENO: result: no" >&5
15397 echo "${ECHO_T}no" >&6
15398 fi
15399
15400 fi
15401 if test -z "$ac_cv_prog_RANLIB"; then
15402   ac_ct_RANLIB=$RANLIB
15403   # Extract the first word of "ranlib", so it can be a program name with args.
15404 set dummy ranlib; ac_word=$2
15405 echo "$as_me:$LINENO: checking for $ac_word" >&5
15406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15407 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410   if test -n "$ac_ct_RANLIB"; then
15411   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15412 else
15413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15414 for as_dir in $PATH
15415 do
15416   IFS=$as_save_IFS
15417   test -z "$as_dir" && as_dir=.
15418   for ac_exec_ext in '' $ac_executable_extensions; do
15419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15420     ac_cv_prog_ac_ct_RANLIB="ranlib"
15421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15422     break 2
15423   fi
15424 done
15425 done
15426
15427   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15428 fi
15429 fi
15430 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15431 if test -n "$ac_ct_RANLIB"; then
15432   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15433 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15434 else
15435   echo "$as_me:$LINENO: result: no" >&5
15436 echo "${ECHO_T}no" >&6
15437 fi
15438
15439   RANLIB=$ac_ct_RANLIB
15440 else
15441   RANLIB="$ac_cv_prog_RANLIB"
15442 fi
15443
15444 test -z "$RANLIB" && RANLIB=:
15445
15446
15447
15448
15449
15450
15451 # Determine commands to create old-style static archives.
15452 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15453 old_postinstall_cmds='chmod 644 $oldlib'
15454 old_postuninstall_cmds=
15455
15456 if test -n "$RANLIB"; then
15457   case $host_os in
15458   openbsd*)
15459     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15460     ;;
15461   *)
15462     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15463     ;;
15464   esac
15465   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15466 fi
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501 # If no C compiler was specified, use CC.
15502 LTCC=${LTCC-"$CC"}
15503
15504 # If no C compiler flags were specified, use CFLAGS.
15505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15506
15507 # Allow CC to be a program name with arguments.
15508 compiler=$CC
15509
15510
15511 # Check for command to grab the raw symbol name followed by C symbol from nm.
15512 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15513 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15514 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15515   echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517
15518 # These are sane defaults that work on at least a few old systems.
15519 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15520
15521 # Character class describing NM global symbol codes.
15522 symcode='[BCDEGRST]'
15523
15524 # Regexp to match symbols that can be accessed directly from C.
15525 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15526
15527 # Define system-specific variables.
15528 case $host_os in
15529 aix*)
15530   symcode='[BCDT]'
15531   ;;
15532 cygwin* | mingw* | pw32*)
15533   symcode='[ABCDGISTW]'
15534   ;;
15535 hpux*)
15536   if test "$host_cpu" = ia64; then
15537     symcode='[ABCDEGRST]'
15538   fi
15539   ;;
15540 irix* | nonstopux*)
15541   symcode='[BCDEGRST]'
15542   ;;
15543 osf*)
15544   symcode='[BCDEGQRST]'
15545   ;;
15546 solaris*)
15547   symcode='[BDRT]'
15548   ;;
15549 sco3.2v5*)
15550   symcode='[DT]'
15551   ;;
15552 sysv4.2uw2*)
15553   symcode='[DT]'
15554   ;;
15555 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15556   symcode='[ABDT]'
15557   ;;
15558 sysv4)
15559   symcode='[DFNSTU]'
15560   ;;
15561 esac
15562
15563 # If we're using GNU nm, then use its standard symbol codes.
15564 case `$NM -V 2>&1` in
15565 *GNU* | *'with BFD'*)
15566   symcode='[ABCDGIRSTW]' ;;
15567 esac
15568
15569 # Transform an extracted symbol line into a proper C declaration.
15570 # Some systems (esp. on ia64) link data and code symbols differently,
15571 # so use this general approach.
15572 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15573
15574 # Transform an extracted symbol line into symbol name and symbol address
15575 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
15576
15577 # Handle CRLF in mingw tool chain
15578 opt_cr=
15579 case $build_os in
15580 mingw*)
15581   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15582   ;;
15583 esac
15584
15585 # Try without a prefix underscore, then with it.
15586 for ac_symprfx in "" "_"; do
15587
15588   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15589   symxfrm="\\1 $ac_symprfx\\2 \\2"
15590
15591   # Write the raw and C identifiers.
15592   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15593     # Fake it for dumpbin and say T for any non-static function
15594     # and D for any global variable.
15595     # Also find C++ and __fastcall symbols from MSVC++,
15596     # which start with @ or ?.
15597     lt_cv_sys_global_symbol_pipe="$AWK '"\
15598 "     {last_section=section; section=\$ 3};"\
15599 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15600 "     \$ 0!~/External *\|/{next};"\
15601 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15602 "     {if(hide[section]) next};"\
15603 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15604 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15605 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
15606 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15607 "     ' prfx=^$ac_symprfx"
15608   else
15609     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15610   fi
15611
15612   # Check to see that the pipe works correctly.
15613   pipe_works=no
15614
15615   rm -f conftest*
15616   cat > conftest.$ac_ext <<_LT_EOF
15617 #ifdef __cplusplus
15618 extern "C" {
15619 #endif
15620 char nm_test_var;
15621 void nm_test_func(void);
15622 void nm_test_func(void){}
15623 #ifdef __cplusplus
15624 }
15625 #endif
15626 int main(){nm_test_var='a';nm_test_func();return(0);}
15627 _LT_EOF
15628
15629   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15630   (eval $ac_compile) 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; then
15634     # Now try to grab the symbols.
15635     nlist=conftest.nm
15636     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15637   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); } && test -s "$nlist"; then
15641       # Try sorting and uniquifying the output.
15642       if sort "$nlist" | uniq > "$nlist"T; then
15643         mv -f "$nlist"T "$nlist"
15644       else
15645         rm -f "$nlist"T
15646       fi
15647
15648       # Make sure that we snagged all the symbols we need.
15649       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15650         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15651           cat <<_LT_EOF > conftest.$ac_ext
15652 #ifdef __cplusplus
15653 extern "C" {
15654 #endif
15655
15656 _LT_EOF
15657           # Now generate the symbol file.
15658           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15659
15660           cat <<_LT_EOF >> conftest.$ac_ext
15661
15662 /* The mapping between symbol names and symbols.  */
15663 const struct {
15664   const char *name;
15665   void       *address;
15666 }
15667 lt__PROGRAM__LTX_preloaded_symbols[] =
15668 {
15669   { "@PROGRAM@", (void *) 0 },
15670 _LT_EOF
15671           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15672           cat <<\_LT_EOF >> conftest.$ac_ext
15673   {0, (void *) 0}
15674 };
15675
15676 /* This works around a problem in FreeBSD linker */
15677 #ifdef FREEBSD_WORKAROUND
15678 static const void *lt_preloaded_setup() {
15679   return lt__PROGRAM__LTX_preloaded_symbols;
15680 }
15681 #endif
15682
15683 #ifdef __cplusplus
15684 }
15685 #endif
15686 _LT_EOF
15687           # Now try linking the two files.
15688           mv conftest.$ac_objext conftstm.$ac_objext
15689           lt_save_LIBS="$LIBS"
15690           lt_save_CFLAGS="$CFLAGS"
15691           LIBS="conftstm.$ac_objext"
15692           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15693           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15694   (eval $ac_link) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); } && test -s conftest${ac_exeext}; then
15698             pipe_works=yes
15699           fi
15700           LIBS="$lt_save_LIBS"
15701           CFLAGS="$lt_save_CFLAGS"
15702         else
15703           echo "cannot find nm_test_func in $nlist" >&5
15704         fi
15705       else
15706         echo "cannot find nm_test_var in $nlist" >&5
15707       fi
15708     else
15709       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15710     fi
15711   else
15712     echo "$progname: failed program was:" >&5
15713     cat conftest.$ac_ext >&5
15714   fi
15715   rm -f conftest* conftst*
15716
15717   # Do not use the global_symbol_pipe unless it works.
15718   if test "$pipe_works" = yes; then
15719     break
15720   else
15721     lt_cv_sys_global_symbol_pipe=
15722   fi
15723 done
15724
15725 fi
15726
15727 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15728   lt_cv_sys_global_symbol_to_cdecl=
15729 fi
15730 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15731   echo "$as_me:$LINENO: result: failed" >&5
15732 echo "${ECHO_T}failed" >&6
15733 else
15734   echo "$as_me:$LINENO: result: ok" >&5
15735 echo "${ECHO_T}ok" >&6
15736 fi
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15755 if test "${enable_libtool_lock+set}" = set; then
15756   enableval="$enable_libtool_lock"
15757
15758 fi;
15759 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15760
15761 # Some flags need to be propagated to the compiler or linker for good
15762 # libtool support.
15763 case $host in
15764 ia64-*-hpux*)
15765   # Find out which ABI we are using.
15766   echo 'int i;' > conftest.$ac_ext
15767   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15768   (eval $ac_compile) 2>&5
15769   ac_status=$?
15770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771   (exit $ac_status); }; then
15772     case `/usr/bin/file conftest.$ac_objext` in
15773       *ELF-32*)
15774         HPUX_IA64_MODE="32"
15775         ;;
15776       *ELF-64*)
15777         HPUX_IA64_MODE="64"
15778         ;;
15779     esac
15780   fi
15781   rm -rf conftest*
15782   ;;
15783 *-*-irix6*)
15784   # Find out which ABI we are using.
15785   echo '#line 15785 "configure"' > conftest.$ac_ext
15786   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15787   (eval $ac_compile) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; then
15791     if test "$lt_cv_prog_gnu_ld" = yes; then
15792       case `/usr/bin/file conftest.$ac_objext` in
15793         *32-bit*)
15794           LD="${LD-ld} -melf32bsmip"
15795           ;;
15796         *N32*)
15797           LD="${LD-ld} -melf32bmipn32"
15798           ;;
15799         *64-bit*)
15800           LD="${LD-ld} -melf64bmip"
15801         ;;
15802       esac
15803     else
15804       case `/usr/bin/file conftest.$ac_objext` in
15805         *32-bit*)
15806           LD="${LD-ld} -32"
15807           ;;
15808         *N32*)
15809           LD="${LD-ld} -n32"
15810           ;;
15811         *64-bit*)
15812           LD="${LD-ld} -64"
15813           ;;
15814       esac
15815     fi
15816   fi
15817   rm -rf conftest*
15818   ;;
15819
15820 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15821 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15822   # Find out which ABI we are using.
15823   echo 'int i;' > conftest.$ac_ext
15824   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15825   (eval $ac_compile) 2>&5
15826   ac_status=$?
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); }; then
15829     case `/usr/bin/file conftest.o` in
15830       *32-bit*)
15831         case $host in
15832           x86_64-*kfreebsd*-gnu)
15833             LD="${LD-ld} -m elf_i386_fbsd"
15834             ;;
15835           x86_64-*linux*)
15836             LD="${LD-ld} -m elf_i386"
15837             ;;
15838           ppc64-*linux*|powerpc64-*linux*)
15839             LD="${LD-ld} -m elf32ppclinux"
15840             ;;
15841           s390x-*linux*)
15842             LD="${LD-ld} -m elf_s390"
15843             ;;
15844           sparc64-*linux*)
15845             LD="${LD-ld} -m elf32_sparc"
15846             ;;
15847         esac
15848         ;;
15849       *64-bit*)
15850         case $host in
15851           x86_64-*kfreebsd*-gnu)
15852             LD="${LD-ld} -m elf_x86_64_fbsd"
15853             ;;
15854           x86_64-*linux*)
15855             LD="${LD-ld} -m elf_x86_64"
15856             ;;
15857           ppc*-*linux*|powerpc*-*linux*)
15858             LD="${LD-ld} -m elf64ppc"
15859             ;;
15860           s390*-*linux*|s390*-*tpf*)
15861             LD="${LD-ld} -m elf64_s390"
15862             ;;
15863           sparc*-*linux*)
15864             LD="${LD-ld} -m elf64_sparc"
15865             ;;
15866         esac
15867         ;;
15868     esac
15869   fi
15870   rm -rf conftest*
15871   ;;
15872
15873 *-*-sco3.2v5*)
15874   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15875   SAVE_CFLAGS="$CFLAGS"
15876   CFLAGS="$CFLAGS -belf"
15877   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15878 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15879 if test "${lt_cv_cc_needs_belf+set}" = set; then
15880   echo $ECHO_N "(cached) $ECHO_C" >&6
15881 else
15882   ac_ext=c
15883 ac_cpp='$CPP $CPPFLAGS'
15884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15887
15888      cat >conftest.$ac_ext <<_ACEOF
15889 /* confdefs.h.  */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h.  */
15894
15895 int
15896 main ()
15897 {
15898
15899   ;
15900   return 0;
15901 }
15902 _ACEOF
15903 rm -f conftest.$ac_objext conftest$ac_exeext
15904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15905   (eval $ac_link) 2>conftest.er1
15906   ac_status=$?
15907   grep -v '^ *+' conftest.er1 >conftest.err
15908   rm -f conftest.er1
15909   cat conftest.err >&5
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); } &&
15912          { ac_try='test -z "$ac_c_werror_flag"
15913                          || test ! -s conftest.err'
15914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915   (eval $ac_try) 2>&5
15916   ac_status=$?
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); }; } &&
15919          { ac_try='test -s conftest$ac_exeext'
15920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921   (eval $ac_try) 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); }; }; then
15925   lt_cv_cc_needs_belf=yes
15926 else
15927   echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15929
15930 lt_cv_cc_needs_belf=no
15931 fi
15932 rm -f conftest.err conftest.$ac_objext \
15933       conftest$ac_exeext conftest.$ac_ext
15934      ac_ext=c
15935 ac_cpp='$CPP $CPPFLAGS'
15936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15939
15940 fi
15941 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15942 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15943   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15944     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15945     CFLAGS="$SAVE_CFLAGS"
15946   fi
15947   ;;
15948 sparc*-*solaris*)
15949   # Find out which ABI we are using.
15950   echo 'int i;' > conftest.$ac_ext
15951   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15952   (eval $ac_compile) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; then
15956     case `/usr/bin/file conftest.o` in
15957     *64-bit*)
15958       case $lt_cv_prog_gnu_ld in
15959       yes*) LD="${LD-ld} -m elf64_sparc" ;;
15960       *)    LD="${LD-ld} -64" ;;
15961       esac
15962       ;;
15963     esac
15964   fi
15965   rm -rf conftest*
15966   ;;
15967 esac
15968
15969 need_locks="$enable_libtool_lock"
15970
15971
15972 for ac_header in dlfcn.h
15973 do
15974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15975 echo "$as_me:$LINENO: checking for $ac_header" >&5
15976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15978   echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980   cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h.  */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h.  */
15986 #include <$ac_header>
15987 _ACEOF
15988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15990   ac_status=$?
15991   grep -v '^ *+' conftest.er1 >conftest.err
15992   rm -f conftest.er1
15993   cat conftest.err >&5
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); } >/dev/null; then
15996   if test -s conftest.err; then
15997     ac_cpp_err=$ac_c_preproc_warn_flag
15998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15999   else
16000     ac_cpp_err=
16001   fi
16002 else
16003   ac_cpp_err=yes
16004 fi
16005 if test -z "$ac_cpp_err"; then
16006   eval "$as_ac_Header=yes"
16007 else
16008   echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16010
16011   eval "$as_ac_Header=no"
16012 fi
16013 rm -f conftest.err conftest.$ac_ext
16014 fi
16015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16018   cat >>confdefs.h <<_ACEOF
16019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16020 _ACEOF
16021
16022 fi
16023 done
16024
16025
16026
16027 # This can be used to rebuild libtool when needed
16028 LIBTOOL_DEPS="$ltmain"
16029
16030 # Always use our own libtool.
16031 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057 test -z "$LN_S" && LN_S="ln -s"
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072 if test -n "${ZSH_VERSION+set}" ; then
16073    setopt NO_GLOB_SUBST
16074 fi
16075
16076 echo "$as_me:$LINENO: checking for objdir" >&5
16077 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16078 if test "${lt_cv_objdir+set}" = set; then
16079   echo $ECHO_N "(cached) $ECHO_C" >&6
16080 else
16081   rm -f .libs 2>/dev/null
16082 mkdir .libs 2>/dev/null
16083 if test -d .libs; then
16084   lt_cv_objdir=.libs
16085 else
16086   # MS-DOS does not allow filenames that begin with a dot.
16087   lt_cv_objdir=_libs
16088 fi
16089 rmdir .libs 2>/dev/null
16090 fi
16091 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16092 echo "${ECHO_T}$lt_cv_objdir" >&6
16093 objdir=$lt_cv_objdir
16094
16095
16096
16097
16098
16099 cat >>confdefs.h <<_ACEOF
16100 #define LT_OBJDIR "$lt_cv_objdir/"
16101 _ACEOF
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119 case $host_os in
16120 aix3*)
16121   # AIX sometimes has problems with the GCC collect2 program.  For some
16122   # reason, if we set the COLLECT_NAMES environment variable, the problems
16123   # vanish in a puff of smoke.
16124   if test "X${COLLECT_NAMES+set}" != Xset; then
16125     COLLECT_NAMES=
16126     export COLLECT_NAMES
16127   fi
16128   ;;
16129 esac
16130
16131 # Sed substitution that helps us do robust quoting.  It backslashifies
16132 # metacharacters that are still active within double-quoted strings.
16133 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16134
16135 # Same as above, but do not quote variable references.
16136 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16137
16138 # Sed substitution to delay expansion of an escaped shell variable in a
16139 # double_quote_subst'ed string.
16140 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16141
16142 # Sed substitution to delay expansion of an escaped single quote.
16143 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16144
16145 # Sed substitution to avoid accidental globbing in evaled expressions
16146 no_glob_subst='s/\*/\\\*/g'
16147
16148 # Global variables:
16149 ofile=libtool
16150 can_build_shared=yes
16151
16152 # All known linkers require a `.a' archive for static linking (except MSVC,
16153 # which needs '.lib').
16154 libext=a
16155
16156 with_gnu_ld="$lt_cv_prog_gnu_ld"
16157
16158 old_CC="$CC"
16159 old_CFLAGS="$CFLAGS"
16160
16161 # Set sane defaults for various variables
16162 test -z "$CC" && CC=cc
16163 test -z "$LTCC" && LTCC=$CC
16164 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16165 test -z "$LD" && LD=ld
16166 test -z "$ac_objext" && ac_objext=o
16167
16168 for cc_temp in $compiler""; do
16169   case $cc_temp in
16170     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16171     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16172     \-*) ;;
16173     *) break;;
16174   esac
16175 done
16176 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16177
16178
16179 # Only perform the check for file, if the check method requires it
16180 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16181 case $deplibs_check_method in
16182 file_magic*)
16183   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16184     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16185 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16186 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16187   echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189   case $MAGIC_CMD in
16190 [\\/*] |  ?:[\\/]*)
16191   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16192   ;;
16193 *)
16194   lt_save_MAGIC_CMD="$MAGIC_CMD"
16195   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16196   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16197   for ac_dir in $ac_dummy; do
16198     IFS="$lt_save_ifs"
16199     test -z "$ac_dir" && ac_dir=.
16200     if test -f $ac_dir/${ac_tool_prefix}file; then
16201       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16202       if test -n "$file_magic_test_file"; then
16203         case $deplibs_check_method in
16204         "file_magic "*)
16205           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16206           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16207           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16208             $EGREP "$file_magic_regex" > /dev/null; then
16209             :
16210           else
16211             cat <<_LT_EOF 1>&2
16212
16213 *** Warning: the command libtool uses to detect shared libraries,
16214 *** $file_magic_cmd, produces output that libtool cannot recognize.
16215 *** The result is that libtool may fail to recognize shared libraries
16216 *** as such.  This will affect the creation of libtool libraries that
16217 *** depend on shared libraries, but programs linked with such libtool
16218 *** libraries will work regardless of this problem.  Nevertheless, you
16219 *** may want to report the problem to your system manager and/or to
16220 *** bug-libtool@gnu.org
16221
16222 _LT_EOF
16223           fi ;;
16224         esac
16225       fi
16226       break
16227     fi
16228   done
16229   IFS="$lt_save_ifs"
16230   MAGIC_CMD="$lt_save_MAGIC_CMD"
16231   ;;
16232 esac
16233 fi
16234
16235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16236 if test -n "$MAGIC_CMD"; then
16237   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16238 echo "${ECHO_T}$MAGIC_CMD" >&6
16239 else
16240   echo "$as_me:$LINENO: result: no" >&5
16241 echo "${ECHO_T}no" >&6
16242 fi
16243
16244
16245
16246
16247
16248 if test -z "$lt_cv_path_MAGIC_CMD"; then
16249   if test -n "$ac_tool_prefix"; then
16250     echo "$as_me:$LINENO: checking for file" >&5
16251 echo $ECHO_N "checking for file... $ECHO_C" >&6
16252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16253   echo $ECHO_N "(cached) $ECHO_C" >&6
16254 else
16255   case $MAGIC_CMD in
16256 [\\/*] |  ?:[\\/]*)
16257   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16258   ;;
16259 *)
16260   lt_save_MAGIC_CMD="$MAGIC_CMD"
16261   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16262   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16263   for ac_dir in $ac_dummy; do
16264     IFS="$lt_save_ifs"
16265     test -z "$ac_dir" && ac_dir=.
16266     if test -f $ac_dir/file; then
16267       lt_cv_path_MAGIC_CMD="$ac_dir/file"
16268       if test -n "$file_magic_test_file"; then
16269         case $deplibs_check_method in
16270         "file_magic "*)
16271           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16272           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16273           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16274             $EGREP "$file_magic_regex" > /dev/null; then
16275             :
16276           else
16277             cat <<_LT_EOF 1>&2
16278
16279 *** Warning: the command libtool uses to detect shared libraries,
16280 *** $file_magic_cmd, produces output that libtool cannot recognize.
16281 *** The result is that libtool may fail to recognize shared libraries
16282 *** as such.  This will affect the creation of libtool libraries that
16283 *** depend on shared libraries, but programs linked with such libtool
16284 *** libraries will work regardless of this problem.  Nevertheless, you
16285 *** may want to report the problem to your system manager and/or to
16286 *** bug-libtool@gnu.org
16287
16288 _LT_EOF
16289           fi ;;
16290         esac
16291       fi
16292       break
16293     fi
16294   done
16295   IFS="$lt_save_ifs"
16296   MAGIC_CMD="$lt_save_MAGIC_CMD"
16297   ;;
16298 esac
16299 fi
16300
16301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16302 if test -n "$MAGIC_CMD"; then
16303   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16304 echo "${ECHO_T}$MAGIC_CMD" >&6
16305 else
16306   echo "$as_me:$LINENO: result: no" >&5
16307 echo "${ECHO_T}no" >&6
16308 fi
16309
16310
16311   else
16312     MAGIC_CMD=:
16313   fi
16314 fi
16315
16316   fi
16317   ;;
16318 esac
16319
16320 # Use C for the default configuration in the libtool script
16321
16322 lt_save_CC="$CC"
16323 ac_ext=c
16324 ac_cpp='$CPP $CPPFLAGS'
16325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16328
16329
16330 # Source file extension for C test sources.
16331 ac_ext=c
16332
16333 # Object file extension for compiled C test sources.
16334 objext=o
16335 objext=$objext
16336
16337 # Code to be used in simple compile tests
16338 lt_simple_compile_test_code="int some_variable = 0;"
16339
16340 # Code to be used in simple link tests
16341 lt_simple_link_test_code='int main(){return(0);}'
16342
16343
16344
16345
16346
16347
16348
16349 # If no C compiler was specified, use CC.
16350 LTCC=${LTCC-"$CC"}
16351
16352 # If no C compiler flags were specified, use CFLAGS.
16353 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16354
16355 # Allow CC to be a program name with arguments.
16356 compiler=$CC
16357
16358 # Save the default compiler, since it gets overwritten when the other
16359 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16360 compiler_DEFAULT=$CC
16361
16362 # save warnings/boilerplate of simple test code
16363 ac_outfile=conftest.$ac_objext
16364 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16366 _lt_compiler_boilerplate=`cat conftest.err`
16367 $RM conftest*
16368
16369 ac_outfile=conftest.$ac_objext
16370 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16372 _lt_linker_boilerplate=`cat conftest.err`
16373 $RM conftest*
16374
16375
16376 ## CAVEAT EMPTOR:
16377 ## There is no encapsulation within the following macros, do not change
16378 ## the running order or otherwise move them around unless you know exactly
16379 ## what you are doing...
16380 if test -n "$compiler"; then
16381
16382 lt_prog_compiler_no_builtin_flag=
16383
16384 if test "$GCC" = yes; then
16385   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16386
16387   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16388 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16389 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16390   echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392   lt_cv_prog_compiler_rtti_exceptions=no
16393    ac_outfile=conftest.$ac_objext
16394    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16395    lt_compiler_flag="-fno-rtti -fno-exceptions"
16396    # Insert the option either (1) after the last *FLAGS variable, or
16397    # (2) before a word containing "conftest.", or (3) at the end.
16398    # Note that $ac_compile itself does not contain backslashes and begins
16399    # with a dollar sign (not a hyphen), so the echo should work correctly.
16400    # The option is referenced via a variable to avoid confusing sed.
16401    lt_compile=`echo "$ac_compile" | $SED \
16402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16404    -e 's:$: $lt_compiler_flag:'`
16405    (eval echo "\"\$as_me:16405: $lt_compile\"" >&5)
16406    (eval "$lt_compile" 2>conftest.err)
16407    ac_status=$?
16408    cat conftest.err >&5
16409    echo "$as_me:16409: \$? = $ac_status" >&5
16410    if (exit $ac_status) && test -s "$ac_outfile"; then
16411      # The compiler can only warn and ignore the option if not recognized
16412      # So say no if there are warnings other than the usual output.
16413      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16414      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16415      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16416        lt_cv_prog_compiler_rtti_exceptions=yes
16417      fi
16418    fi
16419    $RM conftest*
16420
16421 fi
16422 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16423 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16424
16425 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16426     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16427 else
16428     :
16429 fi
16430
16431 fi
16432
16433
16434
16435
16436
16437
16438   lt_prog_compiler_wl=
16439 lt_prog_compiler_pic=
16440 lt_prog_compiler_static=
16441
16442 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16443 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16444
16445   if test "$GCC" = yes; then
16446     lt_prog_compiler_wl='-Wl,'
16447     lt_prog_compiler_static='-static'
16448
16449     case $host_os in
16450       aix*)
16451       # All AIX code is PIC.
16452       if test "$host_cpu" = ia64; then
16453         # AIX 5 now supports IA64 processor
16454         lt_prog_compiler_static='-Bstatic'
16455       fi
16456       ;;
16457
16458     amigaos*)
16459       if test "$host_cpu" = m68k; then
16460         # FIXME: we need at least 68020 code to build shared libraries, but
16461         # adding the `-m68020' flag to GCC prevents building anything better,
16462         # like `-m68040'.
16463         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16464       fi
16465       ;;
16466
16467     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16468       # PIC is the default for these OSes.
16469       ;;
16470
16471     mingw* | cygwin* | pw32* | os2*)
16472       # This hack is so that the source file can tell whether it is being
16473       # built for inclusion in a dll (and should export symbols for example).
16474       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16475       # (--disable-auto-import) libraries
16476       lt_prog_compiler_pic='-DDLL_EXPORT'
16477       ;;
16478
16479     darwin* | rhapsody*)
16480       # PIC is the default on this platform
16481       # Common symbols not allowed in MH_DYLIB files
16482       lt_prog_compiler_pic='-fno-common'
16483       ;;
16484
16485     hpux*)
16486       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16487       # not for PA HP-UX.
16488       case $host_cpu in
16489       hppa*64*|ia64*)
16490         # +Z the default
16491         ;;
16492       *)
16493         lt_prog_compiler_pic='-fPIC'
16494         ;;
16495       esac
16496       ;;
16497
16498     interix[3-9]*)
16499       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16500       # Instead, we relocate shared libraries at runtime.
16501       ;;
16502
16503     msdosdjgpp*)
16504       # Just because we use GCC doesn't mean we suddenly get shared libraries
16505       # on systems that don't support them.
16506       lt_prog_compiler_can_build_shared=no
16507       enable_shared=no
16508       ;;
16509
16510     *nto* | *qnx*)
16511       # QNX uses GNU C++, but need to define -shared option too, otherwise
16512       # it will coredump.
16513       lt_prog_compiler_pic='-fPIC -shared'
16514       ;;
16515
16516     sysv4*MP*)
16517       if test -d /usr/nec; then
16518         lt_prog_compiler_pic=-Kconform_pic
16519       fi
16520       ;;
16521
16522     *)
16523       lt_prog_compiler_pic='-fPIC'
16524       ;;
16525     esac
16526   else
16527     # PORTME Check for flag to pass linker flags through the system compiler.
16528     case $host_os in
16529     aix*)
16530       lt_prog_compiler_wl='-Wl,'
16531       if test "$host_cpu" = ia64; then
16532         # AIX 5 now supports IA64 processor
16533         lt_prog_compiler_static='-Bstatic'
16534       else
16535         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16536       fi
16537       ;;
16538     darwin*)
16539       # PIC is the default on this platform
16540       # Common symbols not allowed in MH_DYLIB files
16541       case $cc_basename in
16542       xlc*)
16543         lt_prog_compiler_pic='-qnocommon'
16544         lt_prog_compiler_wl='-Wl,'
16545         ;;
16546       esac
16547       ;;
16548
16549     mingw* | cygwin* | pw32* | os2*)
16550       # This hack is so that the source file can tell whether it is being
16551       # built for inclusion in a dll (and should export symbols for example).
16552       lt_prog_compiler_pic='-DDLL_EXPORT'
16553       ;;
16554
16555     hpux9* | hpux10* | hpux11*)
16556       lt_prog_compiler_wl='-Wl,'
16557       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16558       # not for PA HP-UX.
16559       case $host_cpu in
16560       hppa*64*|ia64*)
16561         # +Z the default
16562         ;;
16563       *)
16564         lt_prog_compiler_pic='+Z'
16565         ;;
16566       esac
16567       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16568       lt_prog_compiler_static='${wl}-a ${wl}archive'
16569       ;;
16570
16571     irix5* | irix6* | nonstopux*)
16572       lt_prog_compiler_wl='-Wl,'
16573       # PIC (with -KPIC) is the default.
16574       lt_prog_compiler_static='-non_shared'
16575       ;;
16576
16577     linux* | k*bsd*-gnu)
16578       case $cc_basename in
16579       icc* | ecc*)
16580         lt_prog_compiler_wl='-Wl,'
16581         lt_prog_compiler_pic='-KPIC'
16582         lt_prog_compiler_static='-static'
16583         ;;
16584       pgcc* | pgf77* | pgf90* | pgf95*)
16585         # Portland Group compilers (*not* the Pentium gcc compiler,
16586         # which looks to be a dead project)
16587         lt_prog_compiler_wl='-Wl,'
16588         lt_prog_compiler_pic='-fpic'
16589         lt_prog_compiler_static='-Bstatic'
16590         ;;
16591       ccc*)
16592         lt_prog_compiler_wl='-Wl,'
16593         # All Alpha code is PIC.
16594         lt_prog_compiler_static='-non_shared'
16595         ;;
16596       *)
16597         case `$CC -V 2>&1 | sed 5q` in
16598         *Sun\ C*)
16599           # Sun C 5.9
16600           lt_prog_compiler_pic='-KPIC'
16601           lt_prog_compiler_static='-Bstatic'
16602           lt_prog_compiler_wl='-Wl,'
16603           ;;
16604         *Sun\ F*)
16605           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16606           lt_prog_compiler_pic='-KPIC'
16607           lt_prog_compiler_static='-Bstatic'
16608           lt_prog_compiler_wl=''
16609           ;;
16610         esac
16611         ;;
16612       esac
16613       ;;
16614
16615     newsos6)
16616       lt_prog_compiler_pic='-KPIC'
16617       lt_prog_compiler_static='-Bstatic'
16618       ;;
16619
16620     *nto* | *qnx*)
16621       # QNX uses GNU C++, but need to define -shared option too, otherwise
16622       # it will coredump.
16623       lt_prog_compiler_pic='-fPIC -shared'
16624       ;;
16625
16626     osf3* | osf4* | osf5*)
16627       lt_prog_compiler_wl='-Wl,'
16628       # All OSF/1 code is PIC.
16629       lt_prog_compiler_static='-non_shared'
16630       ;;
16631
16632     rdos*)
16633       lt_prog_compiler_static='-non_shared'
16634       ;;
16635
16636     solaris*)
16637       lt_prog_compiler_pic='-KPIC'
16638       lt_prog_compiler_static='-Bstatic'
16639       case $cc_basename in
16640       f77* | f90* | f95*)
16641         lt_prog_compiler_wl='-Qoption ld ';;
16642       *)
16643         lt_prog_compiler_wl='-Wl,';;
16644       esac
16645       ;;
16646
16647     sunos4*)
16648       lt_prog_compiler_wl='-Qoption ld '
16649       lt_prog_compiler_pic='-PIC'
16650       lt_prog_compiler_static='-Bstatic'
16651       ;;
16652
16653     sysv4 | sysv4.2uw2* | sysv4.3*)
16654       lt_prog_compiler_wl='-Wl,'
16655       lt_prog_compiler_pic='-KPIC'
16656       lt_prog_compiler_static='-Bstatic'
16657       ;;
16658
16659     sysv4*MP*)
16660       if test -d /usr/nec ;then
16661         lt_prog_compiler_pic='-Kconform_pic'
16662         lt_prog_compiler_static='-Bstatic'
16663       fi
16664       ;;
16665
16666     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16667       lt_prog_compiler_wl='-Wl,'
16668       lt_prog_compiler_pic='-KPIC'
16669       lt_prog_compiler_static='-Bstatic'
16670       ;;
16671
16672     unicos*)
16673       lt_prog_compiler_wl='-Wl,'
16674       lt_prog_compiler_can_build_shared=no
16675       ;;
16676
16677     uts4*)
16678       lt_prog_compiler_pic='-pic'
16679       lt_prog_compiler_static='-Bstatic'
16680       ;;
16681
16682     *)
16683       lt_prog_compiler_can_build_shared=no
16684       ;;
16685     esac
16686   fi
16687
16688 case $host_os in
16689   # For platforms which do not support PIC, -DPIC is meaningless:
16690   *djgpp*)
16691     lt_prog_compiler_pic=
16692     ;;
16693   *)
16694     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16695     ;;
16696 esac
16697 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16698 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16699
16700
16701
16702
16703
16704
16705 #
16706 # Check to make sure the PIC flag actually works.
16707 #
16708 if test -n "$lt_prog_compiler_pic"; then
16709   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16711 if test "${lt_prog_compiler_pic_works+set}" = set; then
16712   echo $ECHO_N "(cached) $ECHO_C" >&6
16713 else
16714   lt_prog_compiler_pic_works=no
16715    ac_outfile=conftest.$ac_objext
16716    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16717    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16718    # Insert the option either (1) after the last *FLAGS variable, or
16719    # (2) before a word containing "conftest.", or (3) at the end.
16720    # Note that $ac_compile itself does not contain backslashes and begins
16721    # with a dollar sign (not a hyphen), so the echo should work correctly.
16722    # The option is referenced via a variable to avoid confusing sed.
16723    lt_compile=`echo "$ac_compile" | $SED \
16724    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16726    -e 's:$: $lt_compiler_flag:'`
16727    (eval echo "\"\$as_me:16727: $lt_compile\"" >&5)
16728    (eval "$lt_compile" 2>conftest.err)
16729    ac_status=$?
16730    cat conftest.err >&5
16731    echo "$as_me:16731: \$? = $ac_status" >&5
16732    if (exit $ac_status) && test -s "$ac_outfile"; then
16733      # The compiler can only warn and ignore the option if not recognized
16734      # So say no if there are warnings other than the usual output.
16735      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16736      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16737      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16738        lt_prog_compiler_pic_works=yes
16739      fi
16740    fi
16741    $RM conftest*
16742
16743 fi
16744 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16745 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16746
16747 if test x"$lt_prog_compiler_pic_works" = xyes; then
16748     case $lt_prog_compiler_pic in
16749      "" | " "*) ;;
16750      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16751      esac
16752 else
16753     lt_prog_compiler_pic=
16754      lt_prog_compiler_can_build_shared=no
16755 fi
16756
16757 fi
16758
16759
16760
16761
16762
16763
16764 #
16765 # Check to make sure the static flag actually works.
16766 #
16767 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16768 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16769 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16770 if test "${lt_prog_compiler_static_works+set}" = set; then
16771   echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773   lt_prog_compiler_static_works=no
16774    save_LDFLAGS="$LDFLAGS"
16775    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16776    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16777    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16778      # The linker can only warn and ignore the option if not recognized
16779      # So say no if there are warnings
16780      if test -s conftest.err; then
16781        # Append any errors to the config.log.
16782        cat conftest.err 1>&5
16783        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16784        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16785        if diff conftest.exp conftest.er2 >/dev/null; then
16786          lt_prog_compiler_static_works=yes
16787        fi
16788      else
16789        lt_prog_compiler_static_works=yes
16790      fi
16791    fi
16792    $RM conftest*
16793    LDFLAGS="$save_LDFLAGS"
16794
16795 fi
16796 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16797 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16798
16799 if test x"$lt_prog_compiler_static_works" = xyes; then
16800     :
16801 else
16802     lt_prog_compiler_static=
16803 fi
16804
16805
16806
16807
16808
16809
16810
16811   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16812 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16813 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16814   echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816   lt_cv_prog_compiler_c_o=no
16817    $RM -r conftest 2>/dev/null
16818    mkdir conftest
16819    cd conftest
16820    mkdir out
16821    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16822
16823    lt_compiler_flag="-o out/conftest2.$ac_objext"
16824    # Insert the option either (1) after the last *FLAGS variable, or
16825    # (2) before a word containing "conftest.", or (3) at the end.
16826    # Note that $ac_compile itself does not contain backslashes and begins
16827    # with a dollar sign (not a hyphen), so the echo should work correctly.
16828    lt_compile=`echo "$ac_compile" | $SED \
16829    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16830    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16831    -e 's:$: $lt_compiler_flag:'`
16832    (eval echo "\"\$as_me:16832: $lt_compile\"" >&5)
16833    (eval "$lt_compile" 2>out/conftest.err)
16834    ac_status=$?
16835    cat out/conftest.err >&5
16836    echo "$as_me:16836: \$? = $ac_status" >&5
16837    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16838    then
16839      # The compiler can only warn and ignore the option if not recognized
16840      # So say no if there are warnings
16841      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16842      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16843      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16844        lt_cv_prog_compiler_c_o=yes
16845      fi
16846    fi
16847    chmod u+w . 2>&5
16848    $RM conftest*
16849    # SGI C++ compiler will create directory out/ii_files/ for
16850    # template instantiation
16851    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16852    $RM out/* && rmdir out
16853    cd ..
16854    $RM -r conftest
16855    $RM conftest*
16856
16857 fi
16858 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16859 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16860
16861
16862
16863
16864
16865
16866   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16868 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16869   echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871   lt_cv_prog_compiler_c_o=no
16872    $RM -r conftest 2>/dev/null
16873    mkdir conftest
16874    cd conftest
16875    mkdir out
16876    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16877
16878    lt_compiler_flag="-o out/conftest2.$ac_objext"
16879    # Insert the option either (1) after the last *FLAGS variable, or
16880    # (2) before a word containing "conftest.", or (3) at the end.
16881    # Note that $ac_compile itself does not contain backslashes and begins
16882    # with a dollar sign (not a hyphen), so the echo should work correctly.
16883    lt_compile=`echo "$ac_compile" | $SED \
16884    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16886    -e 's:$: $lt_compiler_flag:'`
16887    (eval echo "\"\$as_me:16887: $lt_compile\"" >&5)
16888    (eval "$lt_compile" 2>out/conftest.err)
16889    ac_status=$?
16890    cat out/conftest.err >&5
16891    echo "$as_me:16891: \$? = $ac_status" >&5
16892    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16893    then
16894      # The compiler can only warn and ignore the option if not recognized
16895      # So say no if there are warnings
16896      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16897      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16898      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16899        lt_cv_prog_compiler_c_o=yes
16900      fi
16901    fi
16902    chmod u+w . 2>&5
16903    $RM conftest*
16904    # SGI C++ compiler will create directory out/ii_files/ for
16905    # template instantiation
16906    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16907    $RM out/* && rmdir out
16908    cd ..
16909    $RM -r conftest
16910    $RM conftest*
16911
16912 fi
16913 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16914 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16915
16916
16917
16918
16919 hard_links="nottested"
16920 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16921   # do not overwrite the value of need_locks provided by the user
16922   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16923 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16924   hard_links=yes
16925   $RM conftest*
16926   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16927   touch conftest.a
16928   ln conftest.a conftest.b 2>&5 || hard_links=no
16929   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16930   echo "$as_me:$LINENO: result: $hard_links" >&5
16931 echo "${ECHO_T}$hard_links" >&6
16932   if test "$hard_links" = no; then
16933     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16934 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16935     need_locks=warn
16936   fi
16937 else
16938   need_locks=no
16939 fi
16940
16941
16942
16943
16944
16945
16946   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16948
16949   runpath_var=
16950   allow_undefined_flag=
16951   always_export_symbols=no
16952   archive_cmds=
16953   archive_expsym_cmds=
16954   compiler_needs_object=no
16955   enable_shared_with_static_runtimes=no
16956   export_dynamic_flag_spec=
16957   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16958   hardcode_automatic=no
16959   hardcode_direct=no
16960   hardcode_direct_absolute=no
16961   hardcode_libdir_flag_spec=
16962   hardcode_libdir_flag_spec_ld=
16963   hardcode_libdir_separator=
16964   hardcode_minus_L=no
16965   hardcode_shlibpath_var=unsupported
16966   inherit_rpath=no
16967   link_all_deplibs=unknown
16968   module_cmds=
16969   module_expsym_cmds=
16970   old_archive_from_new_cmds=
16971   old_archive_from_expsyms_cmds=
16972   thread_safe_flag_spec=
16973   whole_archive_flag_spec=
16974   # include_expsyms should be a list of space-separated symbols to be *always*
16975   # included in the symbol list
16976   include_expsyms=
16977   # exclude_expsyms can be an extended regexp of symbols to exclude
16978   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16979   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16980   # as well as any symbol that contains `d'.
16981   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16982   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16983   # platforms (ab)use it in PIC code, but their linkers get confused if
16984   # the symbol is explicitly referenced.  Since portable code cannot
16985   # rely on this symbol name, it's probably fine to never include it in
16986   # preloaded symbol tables.
16987   extract_expsyms_cmds=
16988
16989   case $host_os in
16990   cygwin* | mingw* | pw32*)
16991     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16992     # When not using gcc, we currently assume that we are using
16993     # Microsoft Visual C++.
16994     if test "$GCC" != yes; then
16995       with_gnu_ld=no
16996     fi
16997     ;;
16998   interix*)
16999     # we just hope/assume this is gcc and not c89 (= MSVC++)
17000     with_gnu_ld=yes
17001     ;;
17002   openbsd*)
17003     with_gnu_ld=no
17004     ;;
17005   esac
17006
17007   ld_shlibs=yes
17008   if test "$with_gnu_ld" = yes; then
17009     # If archive_cmds runs LD, not CC, wlarc should be empty
17010     wlarc='${wl}'
17011
17012     # Set some defaults for GNU ld with shared library support. These
17013     # are reset later if shared libraries are not supported. Putting them
17014     # here allows them to be overridden if necessary.
17015     runpath_var=LD_RUN_PATH
17016     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17017     export_dynamic_flag_spec='${wl}--export-dynamic'
17018     # ancient GNU ld didn't support --whole-archive et. al.
17019     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17020       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17021     else
17022       whole_archive_flag_spec=
17023     fi
17024     supports_anon_versioning=no
17025     case `$LD -v 2>&1` in
17026       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17027       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17028       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17029       *\ 2.11.*) ;; # other 2.11 versions
17030       *) supports_anon_versioning=yes ;;
17031     esac
17032
17033     # See if GNU ld supports shared libraries.
17034     case $host_os in
17035     aix[3-9]*)
17036       # On AIX/PPC, the GNU linker is very broken
17037       if test "$host_cpu" != ia64; then
17038         ld_shlibs=no
17039         cat <<_LT_EOF 1>&2
17040
17041 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17042 *** to be unable to reliably create shared libraries on AIX.
17043 *** Therefore, libtool is disabling shared libraries support.  If you
17044 *** really care for shared libraries, you may want to modify your PATH
17045 *** so that a non-GNU linker is found, and then restart.
17046
17047 _LT_EOF
17048       fi
17049       ;;
17050
17051     amigaos*)
17052       if test "$host_cpu" = m68k; then
17053         archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17054         hardcode_libdir_flag_spec='-L$libdir'
17055         hardcode_minus_L=yes
17056       fi
17057
17058       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17059       # that the semantics of dynamic libraries on AmigaOS, at least up
17060       # to version 4, is to share data among multiple programs linked
17061       # with the same dynamic library.  Since this doesn't match the
17062       # behavior of shared libraries on other platforms, we can't use
17063       # them.
17064       ld_shlibs=no
17065       ;;
17066
17067     beos*)
17068       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17069         allow_undefined_flag=unsupported
17070         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17071         # support --undefined.  This deserves some investigation.  FIXME
17072         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17073       else
17074         ld_shlibs=no
17075       fi
17076       ;;
17077
17078     cygwin* | mingw* | pw32*)
17079       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17080       # as there is no search path for DLLs.
17081       hardcode_libdir_flag_spec='-L$libdir'
17082       allow_undefined_flag=unsupported
17083       always_export_symbols=no
17084       enable_shared_with_static_runtimes=yes
17085       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17086
17087       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17088         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17089         # If the export-symbols file already is a .def file (1st line
17090         # is EXPORTS), use it as is; otherwise, prepend...
17091         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17092           cp $export_symbols $output_objdir/$soname.def;
17093         else
17094           echo EXPORTS > $output_objdir/$soname.def;
17095           cat $export_symbols >> $output_objdir/$soname.def;
17096         fi~
17097         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17098       else
17099         ld_shlibs=no
17100       fi
17101       ;;
17102
17103     interix[3-9]*)
17104       hardcode_direct=no
17105       hardcode_shlibpath_var=no
17106       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17107       export_dynamic_flag_spec='${wl}-E'
17108       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17109       # Instead, shared libraries are loaded at an image base (0x10000000 by
17110       # default) and relocated if they conflict, which is a slow very memory
17111       # consuming and fragmenting process.  To avoid this, we pick a random,
17112       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17113       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17114       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17115       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17116       ;;
17117
17118     gnu* | linux* | tpf* | k*bsd*-gnu)
17119       tmp_diet=no
17120       if test "$host_os" = linux-dietlibc; then
17121         case $cc_basename in
17122           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17123         esac
17124       fi
17125       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17126          && test "$tmp_diet" = no
17127       then
17128         tmp_addflag=
17129         case $cc_basename,$host_cpu in
17130         pgcc*)                          # Portland Group C compiler
17131           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17132           tmp_addflag=' $pic_flag'
17133           ;;
17134         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17135           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17136           tmp_addflag=' $pic_flag -Mnomain' ;;
17137         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17138           tmp_addflag=' -i_dynamic' ;;
17139         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17140           tmp_addflag=' -i_dynamic -nofor_main' ;;
17141         ifc* | ifort*)                  # Intel Fortran compiler
17142           tmp_addflag=' -nofor_main' ;;
17143         esac
17144         case `$CC -V 2>&1 | sed 5q` in
17145         *Sun\ C*)                       # Sun C 5.9
17146           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17147           compiler_needs_object=yes
17148           tmp_sharedflag='-G' ;;
17149         *Sun\ F*)                       # Sun Fortran 8.3
17150           tmp_sharedflag='-G' ;;
17151         *)
17152           tmp_sharedflag='-shared' ;;
17153         esac
17154         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17155
17156         if test "x$supports_anon_versioning" = xyes; then
17157           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17158             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17159             echo "local: *; };" >> $output_objdir/$libname.ver~
17160             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17161         fi
17162       else
17163         ld_shlibs=no
17164       fi
17165       ;;
17166
17167     netbsd*)
17168       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17169         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17170         wlarc=
17171       else
17172         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17173         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17174       fi
17175       ;;
17176
17177     solaris*)
17178       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17179         ld_shlibs=no
17180         cat <<_LT_EOF 1>&2
17181
17182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17183 *** create shared libraries on Solaris systems.  Therefore, libtool
17184 *** is disabling shared libraries support.  We urge you to upgrade GNU
17185 *** binutils to release 2.9.1 or newer.  Another option is to modify
17186 *** your PATH or compiler configuration so that the native linker is
17187 *** used, and then restart.
17188
17189 _LT_EOF
17190       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17191         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17192         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17193       else
17194         ld_shlibs=no
17195       fi
17196       ;;
17197
17198     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17199       case `$LD -v 2>&1` in
17200         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17201         ld_shlibs=no
17202         cat <<_LT_EOF 1>&2
17203
17204 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17205 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17206 *** is disabling shared libraries support.  We urge you to upgrade GNU
17207 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17208 *** your PATH or compiler configuration so that the native linker is
17209 *** used, and then restart.
17210
17211 _LT_EOF
17212         ;;
17213         *)
17214           # For security reasons, it is highly recommended that you always
17215           # use absolute paths for naming shared libraries, and exclude the
17216           # DT_RUNPATH tag from executables and libraries.  But doing so
17217           # requires that you compile everything twice, which is a pain.
17218           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17219             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17220             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17221             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17222           else
17223             ld_shlibs=no
17224           fi
17225         ;;
17226       esac
17227       ;;
17228
17229     sunos4*)
17230       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17231       wlarc=
17232       hardcode_direct=yes
17233       hardcode_shlibpath_var=no
17234       ;;
17235
17236     *)
17237       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17239         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17240       else
17241         ld_shlibs=no
17242       fi
17243       ;;
17244     esac
17245
17246     if test "$ld_shlibs" = no; then
17247       runpath_var=
17248       hardcode_libdir_flag_spec=
17249       export_dynamic_flag_spec=
17250       whole_archive_flag_spec=
17251     fi
17252   else
17253     # PORTME fill in a description of your system's linker (not GNU ld)
17254     case $host_os in
17255     aix3*)
17256       allow_undefined_flag=unsupported
17257       always_export_symbols=yes
17258       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17259       # Note: this linker hardcodes the directories in LIBPATH if there
17260       # are no directories specified by -L.
17261       hardcode_minus_L=yes
17262       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17263         # Neither direct hardcoding nor static linking is supported with a
17264         # broken collect2.
17265         hardcode_direct=unsupported
17266       fi
17267       ;;
17268
17269     aix[4-9]*)
17270       if test "$host_cpu" = ia64; then
17271         # On IA64, the linker does run time linking by default, so we don't
17272         # have to do anything special.
17273         aix_use_runtimelinking=no
17274         exp_sym_flag='-Bexport'
17275         no_entry_flag=""
17276       else
17277         # If we're using GNU nm, then we don't want the "-C" option.
17278         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17279         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17280           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17281         else
17282           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17283         fi
17284         aix_use_runtimelinking=no
17285
17286         # Test if we are trying to use run time linking or normal
17287         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17288         # need to do runtime linking.
17289         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17290           for ld_flag in $LDFLAGS; do
17291           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17292             aix_use_runtimelinking=yes
17293             break
17294           fi
17295           done
17296           ;;
17297         esac
17298
17299         exp_sym_flag='-bexport'
17300         no_entry_flag='-bnoentry'
17301       fi
17302
17303       # When large executables or shared objects are built, AIX ld can
17304       # have problems creating the table of contents.  If linking a library
17305       # or program results in "error TOC overflow" add -mminimal-toc to
17306       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17307       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17308
17309       archive_cmds=''
17310       hardcode_direct=yes
17311       hardcode_direct_absolute=yes
17312       hardcode_libdir_separator=':'
17313       link_all_deplibs=yes
17314       file_list_spec='${wl}-f,'
17315
17316       if test "$GCC" = yes; then
17317         case $host_os in aix4.[012]|aix4.[012].*)
17318         # We only want to do this on AIX 4.2 and lower, the check
17319         # below for broken collect2 doesn't work under 4.3+
17320           collect2name=`${CC} -print-prog-name=collect2`
17321           if test -f "$collect2name" &&
17322            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17323           then
17324           # We have reworked collect2
17325           :
17326           else
17327           # We have old collect2
17328           hardcode_direct=unsupported
17329           # It fails to find uninstalled libraries when the uninstalled
17330           # path is not listed in the libpath.  Setting hardcode_minus_L
17331           # to unsupported forces relinking
17332           hardcode_minus_L=yes
17333           hardcode_libdir_flag_spec='-L$libdir'
17334           hardcode_libdir_separator=
17335           fi
17336           ;;
17337         esac
17338         shared_flag='-shared'
17339         if test "$aix_use_runtimelinking" = yes; then
17340           shared_flag="$shared_flag "'${wl}-G'
17341         fi
17342       else
17343         # not using gcc
17344         if test "$host_cpu" = ia64; then
17345         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17346         # chokes on -Wl,-G. The following line is correct:
17347           shared_flag='-G'
17348         else
17349           if test "$aix_use_runtimelinking" = yes; then
17350             shared_flag='${wl}-G'
17351           else
17352             shared_flag='${wl}-bM:SRE'
17353           fi
17354         fi
17355       fi
17356
17357       # It seems that -bexpall does not export symbols beginning with
17358       # underscore (_), so it is better to generate a list of symbols to export.
17359       always_export_symbols=yes
17360       if test "$aix_use_runtimelinking" = yes; then
17361         # Warning - without using the other runtime loading flags (-brtl),
17362         # -berok will link without error, but may produce a broken library.
17363         allow_undefined_flag='-berok'
17364         # Determine the default libpath from the value encoded in an
17365         # empty executable.
17366         cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h.  */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h.  */
17372
17373 int
17374 main ()
17375 {
17376
17377   ;
17378   return 0;
17379 }
17380 _ACEOF
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383   (eval $ac_link) 2>conftest.er1
17384   ac_status=$?
17385   grep -v '^ *+' conftest.er1 >conftest.err
17386   rm -f conftest.er1
17387   cat conftest.err >&5
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); } &&
17390          { ac_try='test -z "$ac_c_werror_flag"
17391                          || test ! -s conftest.err'
17392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393   (eval $ac_try) 2>&5
17394   ac_status=$?
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); }; } &&
17397          { ac_try='test -s conftest$ac_exeext'
17398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399   (eval $ac_try) 2>&5
17400   ac_status=$?
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); }; }; then
17403
17404 lt_aix_libpath_sed='
17405     /Import File Strings/,/^$/ {
17406         /^0/ {
17407             s/^0  *\(.*\)$/\1/
17408             p
17409         }
17410     }'
17411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17412 # Check for a 64-bit object if we didn't find anything.
17413 if test -z "$aix_libpath"; then
17414   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17415 fi
17416 else
17417   echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17419
17420 fi
17421 rm -f conftest.err conftest.$ac_objext \
17422       conftest$ac_exeext conftest.$ac_ext
17423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17424
17425         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17426         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17427       else
17428         if test "$host_cpu" = ia64; then
17429           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17430           allow_undefined_flag="-z nodefs"
17431           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17432         else
17433          # Determine the default libpath from the value encoded in an
17434          # empty executable.
17435          cat >conftest.$ac_ext <<_ACEOF
17436 /* confdefs.h.  */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h.  */
17441
17442 int
17443 main ()
17444 {
17445
17446   ;
17447   return 0;
17448 }
17449 _ACEOF
17450 rm -f conftest.$ac_objext conftest$ac_exeext
17451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17452   (eval $ac_link) 2>conftest.er1
17453   ac_status=$?
17454   grep -v '^ *+' conftest.er1 >conftest.err
17455   rm -f conftest.er1
17456   cat conftest.err >&5
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); } &&
17459          { ac_try='test -z "$ac_c_werror_flag"
17460                          || test ! -s conftest.err'
17461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462   (eval $ac_try) 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); }; } &&
17466          { ac_try='test -s conftest$ac_exeext'
17467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468   (eval $ac_try) 2>&5
17469   ac_status=$?
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); }; }; then
17472
17473 lt_aix_libpath_sed='
17474     /Import File Strings/,/^$/ {
17475         /^0/ {
17476             s/^0  *\(.*\)$/\1/
17477             p
17478         }
17479     }'
17480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17481 # Check for a 64-bit object if we didn't find anything.
17482 if test -z "$aix_libpath"; then
17483   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17484 fi
17485 else
17486   echo "$as_me: failed program was:" >&5
17487 sed 's/^/| /' conftest.$ac_ext >&5
17488
17489 fi
17490 rm -f conftest.err conftest.$ac_objext \
17491       conftest$ac_exeext conftest.$ac_ext
17492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17493
17494          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17495           # Warning - without using the other run time loading flags,
17496           # -berok will link without error, but may produce a broken library.
17497           no_undefined_flag=' ${wl}-bernotok'
17498           allow_undefined_flag=' ${wl}-berok'
17499           # Exported symbols can be pulled into shared objects from archives
17500           whole_archive_flag_spec='$convenience'
17501           archive_cmds_need_lc=yes
17502           # This is similar to how AIX traditionally builds its shared libraries.
17503           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17504         fi
17505       fi
17506       ;;
17507
17508     amigaos*)
17509       if test "$host_cpu" = m68k; then
17510         archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17511         hardcode_libdir_flag_spec='-L$libdir'
17512         hardcode_minus_L=yes
17513       fi
17514       # see comment about different semantics on the GNU ld section
17515       ld_shlibs=no
17516       ;;
17517
17518     bsdi[45]*)
17519       export_dynamic_flag_spec=-rdynamic
17520       ;;
17521
17522     cygwin* | mingw* | pw32*)
17523       # When not using gcc, we currently assume that we are using
17524       # Microsoft Visual C++.
17525       # hardcode_libdir_flag_spec is actually meaningless, as there is
17526       # no search path for DLLs.
17527       hardcode_libdir_flag_spec=' '
17528       allow_undefined_flag=unsupported
17529       # Tell ltmain to make .lib files, not .a files.
17530       libext=lib
17531       # Tell ltmain to make .dll files, not .so files.
17532       shrext_cmds=".dll"
17533       # FIXME: Setting linknames here is a bad hack.
17534       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17535       # The linker will automatically build a .lib file if we build a DLL.
17536       old_archive_from_new_cmds='true'
17537       # FIXME: Should let the user specify the lib program.
17538       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17539       fix_srcfile_path='`cygpath -w "$srcfile"`'
17540       enable_shared_with_static_runtimes=yes
17541       ;;
17542
17543     darwin* | rhapsody*)
17544       case $host_os in
17545       rhapsody* | darwin1.[012])
17546         allow_undefined_flag='${wl}-undefined ${wl}suppress'
17547         ;;
17548       *) # Darwin 1.3 on
17549         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17550         10.[012])
17551           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17552           ;;
17553         10.*)
17554           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17555           ;;
17556         esac
17557         ;;
17558       esac
17559       archive_cmds_need_lc=no
17560       hardcode_direct=no
17561       hardcode_automatic=yes
17562       hardcode_shlibpath_var=unsupported
17563       whole_archive_flag_spec=''
17564       link_all_deplibs=yes
17565       if test "$GCC" = yes ; then
17566         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17567   echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569   lt_cv_apple_cc_single_mod=no
17570         if test -z "${LT_MULTI_MODULE}"; then
17571           # By default we will add the -single_module flag. You can override
17572           # by either setting the environment variable LT_MULTI_MODULE
17573           # non-empty at configure time, or by adding -multi-module to the
17574           # link flags.
17575           echo "int foo(void){return 1;}" > conftest.c
17576           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17577               -dynamiclib ${wl}-single_module conftest.c
17578           if test -f libconftest.dylib; then
17579               lt_cv_apple_cc_single_mod=yes
17580               rm libconftest.dylib
17581           fi
17582           rm conftest.$ac_ext
17583         fi
17584 fi
17585
17586         output_verbose_link_cmd=echo
17587         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
17588           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17589           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17590         else
17591           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17592           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17593         fi
17594         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17595         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17596       else
17597         case $cc_basename in
17598         xlc*)
17599           output_verbose_link_cmd=echo
17600           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17601           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17602           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17603           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17604           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17605           ;;
17606         *)
17607           ld_shlibs=no
17608           ;;
17609         esac
17610       fi
17611       ;;
17612
17613     dgux*)
17614       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17615       hardcode_libdir_flag_spec='-L$libdir'
17616       hardcode_shlibpath_var=no
17617       ;;
17618
17619     freebsd1*)
17620       ld_shlibs=no
17621       ;;
17622
17623     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17624     # support.  Future versions do this automatically, but an explicit c++rt0.o
17625     # does not break anything, and helps significantly (at the cost of a little
17626     # extra space).
17627     freebsd2.2*)
17628       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17629       hardcode_libdir_flag_spec='-R$libdir'
17630       hardcode_direct=yes
17631       hardcode_shlibpath_var=no
17632       ;;
17633
17634     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17635     freebsd2*)
17636       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17637       hardcode_direct=yes
17638       hardcode_minus_L=yes
17639       hardcode_shlibpath_var=no
17640       ;;
17641
17642     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17643     freebsd* | dragonfly*)
17644       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17645       hardcode_libdir_flag_spec='-R$libdir'
17646       hardcode_direct=yes
17647       hardcode_shlibpath_var=no
17648       ;;
17649
17650     hpux9*)
17651       if test "$GCC" = yes; then
17652         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17653       else
17654         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17655       fi
17656       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17657       hardcode_libdir_separator=:
17658       hardcode_direct=yes
17659
17660       # hardcode_minus_L: Not really in the search PATH,
17661       # but as the default location of the library.
17662       hardcode_minus_L=yes
17663       export_dynamic_flag_spec='${wl}-E'
17664       ;;
17665
17666     hpux10*)
17667       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17668         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17669       else
17670         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17671       fi
17672       if test "$with_gnu_ld" = no; then
17673         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17674         hardcode_libdir_flag_spec_ld='+b $libdir'
17675         hardcode_libdir_separator=:
17676         hardcode_direct=yes
17677         hardcode_direct_absolute=yes
17678         export_dynamic_flag_spec='${wl}-E'
17679         # hardcode_minus_L: Not really in the search PATH,
17680         # but as the default location of the library.
17681         hardcode_minus_L=yes
17682       fi
17683       ;;
17684
17685     hpux11*)
17686       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17687         case $host_cpu in
17688         hppa*64*)
17689           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17690           ;;
17691         ia64*)
17692           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17693           ;;
17694         *)
17695           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17696           ;;
17697         esac
17698       else
17699         case $host_cpu in
17700         hppa*64*)
17701           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17702           ;;
17703         ia64*)
17704           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17705           ;;
17706         *)
17707           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17708           ;;
17709         esac
17710       fi
17711       if test "$with_gnu_ld" = no; then
17712         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17713         hardcode_libdir_separator=:
17714
17715         case $host_cpu in
17716         hppa*64*|ia64*)
17717           hardcode_direct=no
17718           hardcode_shlibpath_var=no
17719           ;;
17720         *)
17721           hardcode_direct=yes
17722           hardcode_direct_absolute=yes
17723           export_dynamic_flag_spec='${wl}-E'
17724
17725           # hardcode_minus_L: Not really in the search PATH,
17726           # but as the default location of the library.
17727           hardcode_minus_L=yes
17728           ;;
17729         esac
17730       fi
17731       ;;
17732
17733     irix5* | irix6* | nonstopux*)
17734       if test "$GCC" = yes; then
17735         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17736         # Try to use the -exported_symbol ld option, if it does not
17737         # work, assume that -exports_file does not work either and
17738         # implicitly export all symbols.
17739         save_LDFLAGS="$LDFLAGS"
17740         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17741         cat >conftest.$ac_ext <<_ACEOF
17742 int foo(void) {}
17743 _ACEOF
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746   (eval $ac_link) 2>conftest.er1
17747   ac_status=$?
17748   grep -v '^ *+' conftest.er1 >conftest.err
17749   rm -f conftest.er1
17750   cat conftest.err >&5
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); } &&
17753          { ac_try='test -z "$ac_c_werror_flag"
17754                          || test ! -s conftest.err'
17755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756   (eval $ac_try) 2>&5
17757   ac_status=$?
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); }; } &&
17760          { ac_try='test -s conftest$ac_exeext'
17761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762   (eval $ac_try) 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; }; then
17766   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
17767
17768 else
17769   echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772 fi
17773 rm -f conftest.err conftest.$ac_objext \
17774       conftest$ac_exeext conftest.$ac_ext
17775         LDFLAGS="$save_LDFLAGS"
17776       else
17777         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17778         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
17779       fi
17780       archive_cmds_need_lc='no'
17781       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17782       hardcode_libdir_separator=:
17783       inherit_rpath=yes
17784       link_all_deplibs=yes
17785       ;;
17786
17787     netbsd*)
17788       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17789         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17790       else
17791         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17792       fi
17793       hardcode_libdir_flag_spec='-R$libdir'
17794       hardcode_direct=yes
17795       hardcode_shlibpath_var=no
17796       ;;
17797
17798     newsos6)
17799       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17800       hardcode_direct=yes
17801       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17802       hardcode_libdir_separator=:
17803       hardcode_shlibpath_var=no
17804       ;;
17805
17806     *nto* | *qnx*)
17807       ;;
17808
17809     openbsd*)
17810       hardcode_direct=yes
17811       hardcode_shlibpath_var=no
17812       hardcode_direct_absolute=yes
17813       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17814         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17815         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17816         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17817         export_dynamic_flag_spec='${wl}-E'
17818       else
17819         case $host_os in
17820         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17821           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17822           hardcode_libdir_flag_spec='-R$libdir'
17823           ;;
17824         *)
17825           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17826           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17827           ;;
17828         esac
17829       fi
17830       ;;
17831
17832     os2*)
17833       hardcode_libdir_flag_spec='-L$libdir'
17834       hardcode_minus_L=yes
17835       allow_undefined_flag=unsupported
17836       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17837       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17838       ;;
17839
17840     osf3*)
17841       if test "$GCC" = yes; then
17842         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17843         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17844       else
17845         allow_undefined_flag=' -expect_unresolved \*'
17846         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17847       fi
17848       archive_cmds_need_lc='no'
17849       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17850       hardcode_libdir_separator=:
17851       ;;
17852
17853     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17854       if test "$GCC" = yes; then
17855         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17856         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17857         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17858       else
17859         allow_undefined_flag=' -expect_unresolved \*'
17860         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17861         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
17862         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
17863
17864         # Both c and cxx compiler support -rpath directly
17865         hardcode_libdir_flag_spec='-rpath $libdir'
17866       fi
17867       archive_cmds_need_lc='no'
17868       hardcode_libdir_separator=:
17869       ;;
17870
17871     solaris*)
17872       no_undefined_flag=' -z defs'
17873       if test "$GCC" = yes; then
17874         wlarc='${wl}'
17875         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17876         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17877           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17878       else
17879         case `$CC -V 2>&1` in
17880         *"Compilers 5.0"*)
17881           wlarc=''
17882           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17883           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17884           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17885           ;;
17886         *)
17887           wlarc='${wl}'
17888           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17889           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17890           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17891           ;;
17892         esac
17893       fi
17894       hardcode_libdir_flag_spec='-R$libdir'
17895       hardcode_shlibpath_var=no
17896       case $host_os in
17897       solaris2.[0-5] | solaris2.[0-5].*) ;;
17898       *)
17899         # The compiler driver will combine and reorder linker options,
17900         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17901         # but is careful enough not to reorder.
17902         # Supported since Solaris 2.6 (maybe 2.5.1?)
17903         if test "$GCC" = yes; then
17904           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17905         else
17906           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17907         fi
17908         ;;
17909       esac
17910       link_all_deplibs=yes
17911       ;;
17912
17913     sunos4*)
17914       if test "x$host_vendor" = xsequent; then
17915         # Use $CC to link under sequent, because it throws in some extra .o
17916         # files that make .init and .fini sections work.
17917         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17918       else
17919         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17920       fi
17921       hardcode_libdir_flag_spec='-L$libdir'
17922       hardcode_direct=yes
17923       hardcode_minus_L=yes
17924       hardcode_shlibpath_var=no
17925       ;;
17926
17927     sysv4)
17928       case $host_vendor in
17929         sni)
17930           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17931           hardcode_direct=yes # is this really true???
17932         ;;
17933         siemens)
17934           ## LD is ld it makes a PLAMLIB
17935           ## CC just makes a GrossModule.
17936           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17937           reload_cmds='$CC -r -o $output$reload_objs'
17938           hardcode_direct=no
17939         ;;
17940         motorola)
17941           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17942           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17943         ;;
17944       esac
17945       runpath_var='LD_RUN_PATH'
17946       hardcode_shlibpath_var=no
17947       ;;
17948
17949     sysv4.3*)
17950       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17951       hardcode_shlibpath_var=no
17952       export_dynamic_flag_spec='-Bexport'
17953       ;;
17954
17955     sysv4*MP*)
17956       if test -d /usr/nec; then
17957         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17958         hardcode_shlibpath_var=no
17959         runpath_var=LD_RUN_PATH
17960         hardcode_runpath_var=yes
17961         ld_shlibs=yes
17962       fi
17963       ;;
17964
17965     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17966       no_undefined_flag='${wl}-z,text'
17967       archive_cmds_need_lc=no
17968       hardcode_shlibpath_var=no
17969       runpath_var='LD_RUN_PATH'
17970
17971       if test "$GCC" = yes; then
17972         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17973         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17974       else
17975         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17976         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17977       fi
17978       ;;
17979
17980     sysv5* | sco3.2v5* | sco5v6*)
17981       # Note: We can NOT use -z defs as we might desire, because we do not
17982       # link with -lc, and that would cause any symbols used from libc to
17983       # always be unresolved, which means just about no library would
17984       # ever link correctly.  If we're not using GNU ld we use -z text
17985       # though, which does catch some bad symbols but isn't as heavy-handed
17986       # as -z defs.
17987       no_undefined_flag='${wl}-z,text'
17988       allow_undefined_flag='${wl}-z,nodefs'
17989       archive_cmds_need_lc=no
17990       hardcode_shlibpath_var=no
17991       hardcode_libdir_flag_spec='${wl}-R,$libdir'
17992       hardcode_libdir_separator=':'
17993       link_all_deplibs=yes
17994       export_dynamic_flag_spec='${wl}-Bexport'
17995       runpath_var='LD_RUN_PATH'
17996
17997       if test "$GCC" = yes; then
17998         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17999         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18000       else
18001         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18002         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18003       fi
18004       ;;
18005
18006     uts4*)
18007       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18008       hardcode_libdir_flag_spec='-L$libdir'
18009       hardcode_shlibpath_var=no
18010       ;;
18011
18012     *)
18013       ld_shlibs=no
18014       ;;
18015     esac
18016
18017     if test x$host_vendor = xsni; then
18018       case $host in
18019       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18020         export_dynamic_flag_spec='${wl}-Blargedynsym'
18021         ;;
18022       esac
18023     fi
18024   fi
18025
18026 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18027 echo "${ECHO_T}$ld_shlibs" >&6
18028 test "$ld_shlibs" = no && can_build_shared=no
18029
18030 with_gnu_ld=$with_gnu_ld
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046 #
18047 # Do we need to explicitly link libc?
18048 #
18049 case "x$archive_cmds_need_lc" in
18050 x|xyes)
18051   # Assume -lc should be added
18052   archive_cmds_need_lc=yes
18053
18054   if test "$enable_shared" = yes && test "$GCC" = yes; then
18055     case $archive_cmds in
18056     *'~'*)
18057       # FIXME: we may have to deal with multi-command sequences.
18058       ;;
18059     '$CC '*)
18060       # Test whether the compiler implicitly links with -lc since on some
18061       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18062       # to ld, don't add -lc before -lgcc.
18063       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18064 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18065       $RM conftest*
18066       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18067
18068       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18069   (eval $ac_compile) 2>&5
18070   ac_status=$?
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); } 2>conftest.err; then
18073         soname=conftest
18074         lib=conftest
18075         libobjs=conftest.$ac_objext
18076         deplibs=
18077         wl=$lt_prog_compiler_wl
18078         pic_flag=$lt_prog_compiler_pic
18079         compiler_flags=-v
18080         linker_flags=-v
18081         verstring=
18082         output_objdir=.
18083         libname=conftest
18084         lt_save_allow_undefined_flag=$allow_undefined_flag
18085         allow_undefined_flag=
18086         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18087   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18088   ac_status=$?
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); }
18091         then
18092           archive_cmds_need_lc=no
18093         else
18094           archive_cmds_need_lc=yes
18095         fi
18096         allow_undefined_flag=$lt_save_allow_undefined_flag
18097       else
18098         cat conftest.err 1>&5
18099       fi
18100       $RM conftest*
18101       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18102 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18103       ;;
18104     esac
18105   fi
18106   ;;
18107 esac
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18266 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18267 withGCC=$GCC
18268 if test "$withGCC" = yes; then
18269   case $host_os in
18270     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18271     *) lt_awk_arg="/^libraries:/" ;;
18272   esac
18273   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18274   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18275     # if the path contains ";" then we assume it to be the separator
18276     # otherwise default to the standard path separator (i.e. ":") - it is
18277     # assumed that no part of a normal pathname contains ";" but that should
18278     # okay in the real world where ";" in dirpaths is itself problematic.
18279     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18280   else
18281     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18282   fi
18283   # Ok, now we have the path, separated by spaces, we can step through it
18284   # and add multilib dir if necessary.
18285   lt_tmp_lt_search_path_spec=
18286   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18287   for lt_sys_path in $lt_search_path_spec; do
18288     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18289       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18290     else
18291       test -d "$lt_sys_path" && \
18292         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18293     fi
18294   done
18295   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18296 BEGIN {RS=" "; FS="/|\n";} {
18297   lt_foo="";
18298   lt_count=0;
18299   for (lt_i = NF; lt_i > 0; lt_i--) {
18300     if ($lt_i != "" && $lt_i != ".") {
18301       if ($lt_i == "..") {
18302         lt_count++;
18303       } else {
18304         if (lt_count == 0) {
18305           lt_foo="/" $lt_i lt_foo;
18306         } else {
18307           lt_count--;
18308         }
18309       }
18310     }
18311   }
18312   if (lt_foo != "") { lt_freq[lt_foo]++; }
18313   if (lt_freq[lt_foo] == 1) { print lt_foo; }
18314 }'`
18315   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18316 else
18317   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18318 fi
18319 library_names_spec=
18320 libname_spec='lib$name'
18321 soname_spec=
18322 shrext_cmds=".so"
18323 postinstall_cmds=
18324 postuninstall_cmds=
18325 finish_cmds=
18326 finish_eval=
18327 shlibpath_var=
18328 shlibpath_overrides_runpath=unknown
18329 version_type=none
18330 dynamic_linker="$host_os ld.so"
18331 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18332 need_lib_prefix=unknown
18333 hardcode_into_libs=no
18334
18335 # when you set need_version to no, make sure it does not cause -set_version
18336 # flags to be left without arguments
18337 need_version=unknown
18338
18339 case $host_os in
18340 aix3*)
18341   version_type=linux
18342   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18343   shlibpath_var=LIBPATH
18344
18345   # AIX 3 has no versioning support, so we append a major version to the name.
18346   soname_spec='${libname}${release}${shared_ext}$major'
18347   ;;
18348
18349 aix[4-9]*)
18350   version_type=linux
18351   need_lib_prefix=no
18352   need_version=no
18353   hardcode_into_libs=yes
18354   if test "$host_cpu" = ia64; then
18355     # AIX 5 supports IA64
18356     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18357     shlibpath_var=LD_LIBRARY_PATH
18358   else
18359     # With GCC up to 2.95.x, collect2 would create an import file
18360     # for dependence libraries.  The import file would start with
18361     # the line `#! .'.  This would cause the generated library to
18362     # depend on `.', always an invalid library.  This was fixed in
18363     # development snapshots of GCC prior to 3.0.
18364     case $host_os in
18365       aix4 | aix4.[01] | aix4.[01].*)
18366       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18367            echo ' yes '
18368            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18369         :
18370       else
18371         can_build_shared=no
18372       fi
18373       ;;
18374     esac
18375     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18376     # soname into executable. Probably we can add versioning support to
18377     # collect2, so additional links can be useful in future.
18378     if test "$aix_use_runtimelinking" = yes; then
18379       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18380       # instead of lib<name>.a to let people know that these are not
18381       # typical AIX shared libraries.
18382       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18383     else
18384       # We preserve .a as extension for shared libraries through AIX4.2
18385       # and later when we are not doing run time linking.
18386       library_names_spec='${libname}${release}.a $libname.a'
18387       soname_spec='${libname}${release}${shared_ext}$major'
18388     fi
18389     shlibpath_var=LIBPATH
18390   fi
18391   ;;
18392
18393 amigaos*)
18394   if test "$host_cpu" = m68k; then
18395     library_names_spec='$libname.ixlibrary $libname.a'
18396     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18397     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18398   else
18399     dynamic_linker=no
18400   fi
18401   ;;
18402
18403 beos*)
18404   library_names_spec='${libname}${shared_ext}'
18405   dynamic_linker="$host_os ld.so"
18406   shlibpath_var=LIBRARY_PATH
18407   ;;
18408
18409 bsdi[45]*)
18410   version_type=linux
18411   need_version=no
18412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18413   soname_spec='${libname}${release}${shared_ext}$major'
18414   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18415   shlibpath_var=LD_LIBRARY_PATH
18416   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18417   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18418   # the default ld.so.conf also contains /usr/contrib/lib and
18419   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18420   # libtool to hard-code these into programs
18421   ;;
18422
18423 cygwin* | mingw* | pw32*)
18424   version_type=windows
18425   shrext_cmds=".dll"
18426   need_version=no
18427   need_lib_prefix=no
18428
18429   case $withGCC,$host_os in
18430   yes,cygwin* | yes,mingw* | yes,pw32*)
18431     library_names_spec='$libname.dll.a'
18432     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18433     postinstall_cmds='base_file=`basename \${file}`~
18434       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18435       dldir=$destdir/`dirname \$dlpath`~
18436       test -d \$dldir || mkdir -p \$dldir~
18437       $install_prog $dir/$dlname \$dldir/$dlname~
18438       chmod a+x \$dldir/$dlname~
18439       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18440         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18441       fi'
18442     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18443       dlpath=$dir/\$dldll~
18444        $RM \$dlpath'
18445     shlibpath_overrides_runpath=yes
18446
18447     case $host_os in
18448     cygwin*)
18449       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18450       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18451       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18452       ;;
18453     mingw*)
18454       # MinGW DLLs use traditional 'lib' prefix
18455       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18456       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18457       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18458         # It is most probably a Windows format PATH printed by
18459         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18460         # path with ; separators, and with drive letters. We can handle the
18461         # drive letters (cygwin fileutils understands them), so leave them,
18462         # especially as we might pass files found there to a mingw objdump,
18463         # which wouldn't understand a cygwinified path. Ahh.
18464         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18465       else
18466         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18467       fi
18468       ;;
18469     pw32*)
18470       # pw32 DLLs use 'pw' prefix rather than 'lib'
18471       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18472       ;;
18473     esac
18474     ;;
18475
18476   *)
18477     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18478     ;;
18479   esac
18480   dynamic_linker='Win32 ld.exe'
18481   # FIXME: first we should search . and the directory the executable is in
18482   shlibpath_var=PATH
18483   ;;
18484
18485 darwin* | rhapsody*)
18486   dynamic_linker="$host_os dyld"
18487   version_type=darwin
18488   need_lib_prefix=no
18489   need_version=no
18490   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18491   soname_spec='${libname}${release}${major}$shared_ext'
18492   shlibpath_overrides_runpath=yes
18493   shlibpath_var=DYLD_LIBRARY_PATH
18494   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18495
18496   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18497   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18498   ;;
18499
18500 dgux*)
18501   version_type=linux
18502   need_lib_prefix=no
18503   need_version=no
18504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18505   soname_spec='${libname}${release}${shared_ext}$major'
18506   shlibpath_var=LD_LIBRARY_PATH
18507   ;;
18508
18509 freebsd1*)
18510   dynamic_linker=no
18511   ;;
18512
18513 freebsd* | dragonfly*)
18514   # DragonFly does not have aout.  When/if they implement a new
18515   # versioning mechanism, adjust this.
18516   if test -x /usr/bin/objformat; then
18517     objformat=`/usr/bin/objformat`
18518   else
18519     case $host_os in
18520     freebsd[123]*) objformat=aout ;;
18521     *) objformat=elf ;;
18522     esac
18523   fi
18524   version_type=freebsd-$objformat
18525   case $version_type in
18526     freebsd-elf*)
18527       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18528       need_version=no
18529       need_lib_prefix=no
18530       ;;
18531     freebsd-*)
18532       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18533       need_version=yes
18534       ;;
18535   esac
18536   shlibpath_var=LD_LIBRARY_PATH
18537   case $host_os in
18538   freebsd2*)
18539     shlibpath_overrides_runpath=yes
18540     ;;
18541   freebsd3.[01]* | freebsdelf3.[01]*)
18542     shlibpath_overrides_runpath=yes
18543     hardcode_into_libs=yes
18544     ;;
18545   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18546   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18547     shlibpath_overrides_runpath=no
18548     hardcode_into_libs=yes
18549     ;;
18550   *) # from 4.6 on, and DragonFly
18551     shlibpath_overrides_runpath=yes
18552     hardcode_into_libs=yes
18553     ;;
18554   esac
18555   ;;
18556
18557 gnu*)
18558   version_type=linux
18559   need_lib_prefix=no
18560   need_version=no
18561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18562   soname_spec='${libname}${release}${shared_ext}$major'
18563   shlibpath_var=LD_LIBRARY_PATH
18564   hardcode_into_libs=yes
18565   ;;
18566
18567 hpux9* | hpux10* | hpux11*)
18568   # Give a soname corresponding to the major version so that dld.sl refuses to
18569   # link against other versions.
18570   version_type=sunos
18571   need_lib_prefix=no
18572   need_version=no
18573   case $host_cpu in
18574   ia64*)
18575     shrext_cmds='.so'
18576     hardcode_into_libs=yes
18577     dynamic_linker="$host_os dld.so"
18578     shlibpath_var=LD_LIBRARY_PATH
18579     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581     soname_spec='${libname}${release}${shared_ext}$major'
18582     if test "X$HPUX_IA64_MODE" = X32; then
18583       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18584     else
18585       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18586     fi
18587     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18588     ;;
18589   hppa*64*)
18590     shrext_cmds='.sl'
18591     hardcode_into_libs=yes
18592     dynamic_linker="$host_os dld.sl"
18593     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18594     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18596     soname_spec='${libname}${release}${shared_ext}$major'
18597     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18598     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18599     ;;
18600   *)
18601     shrext_cmds='.sl'
18602     dynamic_linker="$host_os dld.sl"
18603     shlibpath_var=SHLIB_PATH
18604     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18606     soname_spec='${libname}${release}${shared_ext}$major'
18607     ;;
18608   esac
18609   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18610   postinstall_cmds='chmod 555 $lib'
18611   ;;
18612
18613 interix[3-9]*)
18614   version_type=linux
18615   need_lib_prefix=no
18616   need_version=no
18617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18618   soname_spec='${libname}${release}${shared_ext}$major'
18619   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18620   shlibpath_var=LD_LIBRARY_PATH
18621   shlibpath_overrides_runpath=no
18622   hardcode_into_libs=yes
18623   ;;
18624
18625 irix5* | irix6* | nonstopux*)
18626   case $host_os in
18627     nonstopux*) version_type=nonstopux ;;
18628     *)
18629         if test "$lt_cv_prog_gnu_ld" = yes; then
18630                 version_type=linux
18631         else
18632                 version_type=irix
18633         fi ;;
18634   esac
18635   need_lib_prefix=no
18636   need_version=no
18637   soname_spec='${libname}${release}${shared_ext}$major'
18638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18639   case $host_os in
18640   irix5* | nonstopux*)
18641     libsuff= shlibsuff=
18642     ;;
18643   *)
18644     case $LD in # libtool.m4 will add one of these switches to LD
18645     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18646       libsuff= shlibsuff= libmagic=32-bit;;
18647     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18648       libsuff=32 shlibsuff=N32 libmagic=N32;;
18649     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18650       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18651     *) libsuff= shlibsuff= libmagic=never-match;;
18652     esac
18653     ;;
18654   esac
18655   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18656   shlibpath_overrides_runpath=no
18657   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18658   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18659   hardcode_into_libs=yes
18660   ;;
18661
18662 # No shared lib support for Linux oldld, aout, or coff.
18663 linux*oldld* | linux*aout* | linux*coff*)
18664   dynamic_linker=no
18665   ;;
18666
18667 # This must be Linux ELF.
18668 linux* | k*bsd*-gnu)
18669   version_type=linux
18670   need_lib_prefix=no
18671   need_version=no
18672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18673   soname_spec='${libname}${release}${shared_ext}$major'
18674   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18675   shlibpath_var=LD_LIBRARY_PATH
18676   shlibpath_overrides_runpath=no
18677   # Some binutils ld are patched to set DT_RUNPATH
18678   save_LDFLAGS=$LDFLAGS
18679   save_libdir=$libdir
18680   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18681        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18682   cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h.  */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h.  */
18688
18689 int
18690 main ()
18691 {
18692
18693   ;
18694   return 0;
18695 }
18696 _ACEOF
18697 rm -f conftest.$ac_objext conftest$ac_exeext
18698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18699   (eval $ac_link) 2>conftest.er1
18700   ac_status=$?
18701   grep -v '^ *+' conftest.er1 >conftest.err
18702   rm -f conftest.er1
18703   cat conftest.err >&5
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); } &&
18706          { ac_try='test -z "$ac_c_werror_flag"
18707                          || test ! -s conftest.err'
18708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709   (eval $ac_try) 2>&5
18710   ac_status=$?
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); }; } &&
18713          { ac_try='test -s conftest$ac_exeext'
18714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715   (eval $ac_try) 2>&5
18716   ac_status=$?
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); }; }; then
18719   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
18720   shlibpath_overrides_runpath=yes
18721 fi
18722
18723 else
18724   echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727 fi
18728 rm -f conftest.err conftest.$ac_objext \
18729       conftest$ac_exeext conftest.$ac_ext
18730   LDFLAGS=$save_LDFLAGS
18731   libdir=$save_libdir
18732
18733   # This implies no fast_install, which is unacceptable.
18734   # Some rework will be needed to allow for fast_install
18735   # before this can be enabled.
18736   hardcode_into_libs=yes
18737
18738   # Append ld.so.conf contents to the search path
18739   if test -f /etc/ld.so.conf; then
18740     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18741     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18742   fi
18743
18744   # We used to test for /lib/ld.so.1 and disable shared libraries on
18745   # powerpc, because MkLinux only supported shared libraries with the
18746   # GNU dynamic linker.  Since this was broken with cross compilers,
18747   # most powerpc-linux boxes support dynamic linking these days and
18748   # people can always --disable-shared, the test was removed, and we
18749   # assume the GNU/Linux dynamic linker is in use.
18750   dynamic_linker='GNU/Linux ld.so'
18751   ;;
18752
18753 netbsd*)
18754   version_type=sunos
18755   need_lib_prefix=no
18756   need_version=no
18757   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18759     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18760     dynamic_linker='NetBSD (a.out) ld.so'
18761   else
18762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18763     soname_spec='${libname}${release}${shared_ext}$major'
18764     dynamic_linker='NetBSD ld.elf_so'
18765   fi
18766   shlibpath_var=LD_LIBRARY_PATH
18767   shlibpath_overrides_runpath=yes
18768   hardcode_into_libs=yes
18769   ;;
18770
18771 newsos6)
18772   version_type=linux
18773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774   shlibpath_var=LD_LIBRARY_PATH
18775   shlibpath_overrides_runpath=yes
18776   ;;
18777
18778 *nto* | *qnx*)
18779   version_type=qnx
18780   need_lib_prefix=no
18781   need_version=no
18782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18783   soname_spec='${libname}${release}${shared_ext}$major'
18784   shlibpath_var=LD_LIBRARY_PATH
18785   shlibpath_overrides_runpath=no
18786   hardcode_into_libs=yes
18787   dynamic_linker='ldqnx.so'
18788   ;;
18789
18790 openbsd*)
18791   version_type=sunos
18792   sys_lib_dlsearch_path_spec="/usr/lib"
18793   need_lib_prefix=no
18794   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18795   case $host_os in
18796     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18797     *)                          need_version=no  ;;
18798   esac
18799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18800   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18801   shlibpath_var=LD_LIBRARY_PATH
18802   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18803     case $host_os in
18804       openbsd2.[89] | openbsd2.[89].*)
18805         shlibpath_overrides_runpath=no
18806         ;;
18807       *)
18808         shlibpath_overrides_runpath=yes
18809         ;;
18810       esac
18811   else
18812     shlibpath_overrides_runpath=yes
18813   fi
18814   ;;
18815
18816 os2*)
18817   libname_spec='$name'
18818   shrext_cmds=".dll"
18819   need_lib_prefix=no
18820   library_names_spec='$libname${shared_ext} $libname.a'
18821   dynamic_linker='OS/2 ld.exe'
18822   shlibpath_var=LIBPATH
18823   ;;
18824
18825 osf3* | osf4* | osf5*)
18826   version_type=osf
18827   need_lib_prefix=no
18828   need_version=no
18829   soname_spec='${libname}${release}${shared_ext}$major'
18830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18831   shlibpath_var=LD_LIBRARY_PATH
18832   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18833   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18834   ;;
18835
18836 rdos*)
18837   dynamic_linker=no
18838   ;;
18839
18840 solaris*)
18841   version_type=linux
18842   need_lib_prefix=no
18843   need_version=no
18844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18845   soname_spec='${libname}${release}${shared_ext}$major'
18846   shlibpath_var=LD_LIBRARY_PATH
18847   shlibpath_overrides_runpath=yes
18848   hardcode_into_libs=yes
18849   # ldd complains unless libraries are executable
18850   postinstall_cmds='chmod +x $lib'
18851   ;;
18852
18853 sunos4*)
18854   version_type=sunos
18855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18856   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18857   shlibpath_var=LD_LIBRARY_PATH
18858   shlibpath_overrides_runpath=yes
18859   if test "$with_gnu_ld" = yes; then
18860     need_lib_prefix=no
18861   fi
18862   need_version=yes
18863   ;;
18864
18865 sysv4 | sysv4.3*)
18866   version_type=linux
18867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868   soname_spec='${libname}${release}${shared_ext}$major'
18869   shlibpath_var=LD_LIBRARY_PATH
18870   case $host_vendor in
18871     sni)
18872       shlibpath_overrides_runpath=no
18873       need_lib_prefix=no
18874       runpath_var=LD_RUN_PATH
18875       ;;
18876     siemens)
18877       need_lib_prefix=no
18878       ;;
18879     motorola)
18880       need_lib_prefix=no
18881       need_version=no
18882       shlibpath_overrides_runpath=no
18883       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18884       ;;
18885   esac
18886   ;;
18887
18888 sysv4*MP*)
18889   if test -d /usr/nec ;then
18890     version_type=linux
18891     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18892     soname_spec='$libname${shared_ext}.$major'
18893     shlibpath_var=LD_LIBRARY_PATH
18894   fi
18895   ;;
18896
18897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18898   version_type=freebsd-elf
18899   need_lib_prefix=no
18900   need_version=no
18901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18902   soname_spec='${libname}${release}${shared_ext}$major'
18903   shlibpath_var=LD_LIBRARY_PATH
18904   shlibpath_overrides_runpath=yes
18905   hardcode_into_libs=yes
18906   if test "$with_gnu_ld" = yes; then
18907     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18908   else
18909     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18910     case $host_os in
18911       sco3.2v5*)
18912         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18913         ;;
18914     esac
18915   fi
18916   sys_lib_dlsearch_path_spec='/usr/lib'
18917   ;;
18918
18919 tpf*)
18920   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18921   version_type=linux
18922   need_lib_prefix=no
18923   need_version=no
18924   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18925   shlibpath_var=LD_LIBRARY_PATH
18926   shlibpath_overrides_runpath=no
18927   hardcode_into_libs=yes
18928   ;;
18929
18930 uts4*)
18931   version_type=linux
18932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18933   soname_spec='${libname}${release}${shared_ext}$major'
18934   shlibpath_var=LD_LIBRARY_PATH
18935   ;;
18936
18937 *)
18938   dynamic_linker=no
18939   ;;
18940 esac
18941 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18942 echo "${ECHO_T}$dynamic_linker" >&6
18943 test "$dynamic_linker" = no && can_build_shared=no
18944
18945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18946 if test "$GCC" = yes; then
18947   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18948 fi
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19037 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19038 hardcode_action=
19039 if test -n "$hardcode_libdir_flag_spec" ||
19040    test -n "$runpath_var" ||
19041    test "X$hardcode_automatic" = "Xyes" ; then
19042
19043   # We can hardcode non-existent directories.
19044   if test "$hardcode_direct" != no &&
19045      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19046      # have to relink, otherwise we might link with an installed library
19047      # when we should be linking with a yet-to-be-installed one
19048      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19049      test "$hardcode_minus_L" != no; then
19050     # Linking always hardcodes the temporary library directory.
19051     hardcode_action=relink
19052   else
19053     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19054     hardcode_action=immediate
19055   fi
19056 else
19057   # We cannot hardcode anything, or else we can only hardcode existing
19058   # directories.
19059   hardcode_action=unsupported
19060 fi
19061 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19062 echo "${ECHO_T}$hardcode_action" >&6
19063
19064 if test "$hardcode_action" = relink ||
19065    test "$inherit_rpath" = yes; then
19066   # Fast installation is not supported
19067   enable_fast_install=no
19068 elif test "$shlibpath_overrides_runpath" = yes ||
19069      test "$enable_shared" = no; then
19070   # Fast installation is not necessary
19071   enable_fast_install=needless
19072 fi
19073
19074
19075
19076
19077
19078
19079   if test "x$enable_dlopen" != xyes; then
19080   enable_dlopen=unknown
19081   enable_dlopen_self=unknown
19082   enable_dlopen_self_static=unknown
19083 else
19084   lt_cv_dlopen=no
19085   lt_cv_dlopen_libs=
19086
19087   case $host_os in
19088   beos*)
19089     lt_cv_dlopen="load_add_on"
19090     lt_cv_dlopen_libs=
19091     lt_cv_dlopen_self=yes
19092     ;;
19093
19094   mingw* | pw32*)
19095     lt_cv_dlopen="LoadLibrary"
19096     lt_cv_dlopen_libs=
19097     ;;
19098
19099   cygwin*)
19100     lt_cv_dlopen="dlopen"
19101     lt_cv_dlopen_libs=
19102     ;;
19103
19104   darwin*)
19105   # if libdl is installed we need to link against it
19106     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19107 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19108 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19109   echo $ECHO_N "(cached) $ECHO_C" >&6
19110 else
19111   ac_check_lib_save_LIBS=$LIBS
19112 LIBS="-ldl  $LIBS"
19113 cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h.  */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h.  */
19119
19120 /* Override any gcc2 internal prototype to avoid an error.  */
19121 #ifdef __cplusplus
19122 extern "C"
19123 #endif
19124 /* We use char because int might match the return type of a gcc2
19125    builtin and then its argument prototype would still apply.  */
19126 char dlopen ();
19127 int
19128 main ()
19129 {
19130 dlopen ();
19131   ;
19132   return 0;
19133 }
19134 _ACEOF
19135 rm -f conftest.$ac_objext conftest$ac_exeext
19136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19137   (eval $ac_link) 2>conftest.er1
19138   ac_status=$?
19139   grep -v '^ *+' conftest.er1 >conftest.err
19140   rm -f conftest.er1
19141   cat conftest.err >&5
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); } &&
19144          { ac_try='test -z "$ac_c_werror_flag"
19145                          || test ! -s conftest.err'
19146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147   (eval $ac_try) 2>&5
19148   ac_status=$?
19149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150   (exit $ac_status); }; } &&
19151          { ac_try='test -s conftest$ac_exeext'
19152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153   (eval $ac_try) 2>&5
19154   ac_status=$?
19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); }; }; then
19157   ac_cv_lib_dl_dlopen=yes
19158 else
19159   echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19161
19162 ac_cv_lib_dl_dlopen=no
19163 fi
19164 rm -f conftest.err conftest.$ac_objext \
19165       conftest$ac_exeext conftest.$ac_ext
19166 LIBS=$ac_check_lib_save_LIBS
19167 fi
19168 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19169 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19170 if test $ac_cv_lib_dl_dlopen = yes; then
19171   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19172 else
19173
19174     lt_cv_dlopen="dyld"
19175     lt_cv_dlopen_libs=
19176     lt_cv_dlopen_self=yes
19177
19178 fi
19179
19180     ;;
19181
19182   *)
19183     echo "$as_me:$LINENO: checking for shl_load" >&5
19184 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19185 if test "${ac_cv_func_shl_load+set}" = set; then
19186   echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188   cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h.  */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h.  */
19194 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19196 #define shl_load innocuous_shl_load
19197
19198 /* System header to define __stub macros and hopefully few prototypes,
19199     which can conflict with char shl_load (); below.
19200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19201     <limits.h> exists even on freestanding compilers.  */
19202
19203 #ifdef __STDC__
19204 # include <limits.h>
19205 #else
19206 # include <assert.h>
19207 #endif
19208
19209 #undef shl_load
19210
19211 /* Override any gcc2 internal prototype to avoid an error.  */
19212 #ifdef __cplusplus
19213 extern "C"
19214 {
19215 #endif
19216 /* We use char because int might match the return type of a gcc2
19217    builtin and then its argument prototype would still apply.  */
19218 char shl_load ();
19219 /* The GNU C library defines this for functions which it implements
19220     to always fail with ENOSYS.  Some functions are actually named
19221     something starting with __ and the normal name is an alias.  */
19222 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19223 choke me
19224 #else
19225 char (*f) () = shl_load;
19226 #endif
19227 #ifdef __cplusplus
19228 }
19229 #endif
19230
19231 int
19232 main ()
19233 {
19234 return f != shl_load;
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext conftest$ac_exeext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19241   (eval $ac_link) 2>conftest.er1
19242   ac_status=$?
19243   grep -v '^ *+' conftest.er1 >conftest.err
19244   rm -f conftest.er1
19245   cat conftest.err >&5
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); } &&
19248          { ac_try='test -z "$ac_c_werror_flag"
19249                          || test ! -s conftest.err'
19250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251   (eval $ac_try) 2>&5
19252   ac_status=$?
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); }; } &&
19255          { ac_try='test -s conftest$ac_exeext'
19256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257   (eval $ac_try) 2>&5
19258   ac_status=$?
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); }; }; then
19261   ac_cv_func_shl_load=yes
19262 else
19263   echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266 ac_cv_func_shl_load=no
19267 fi
19268 rm -f conftest.err conftest.$ac_objext \
19269       conftest$ac_exeext conftest.$ac_ext
19270 fi
19271 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19272 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19273 if test $ac_cv_func_shl_load = yes; then
19274   lt_cv_dlopen="shl_load"
19275 else
19276   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19277 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19278 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19279   echo $ECHO_N "(cached) $ECHO_C" >&6
19280 else
19281   ac_check_lib_save_LIBS=$LIBS
19282 LIBS="-ldld  $LIBS"
19283 cat >conftest.$ac_ext <<_ACEOF
19284 /* confdefs.h.  */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h.  */
19289
19290 /* Override any gcc2 internal prototype to avoid an error.  */
19291 #ifdef __cplusplus
19292 extern "C"
19293 #endif
19294 /* We use char because int might match the return type of a gcc2
19295    builtin and then its argument prototype would still apply.  */
19296 char shl_load ();
19297 int
19298 main ()
19299 {
19300 shl_load ();
19301   ;
19302   return 0;
19303 }
19304 _ACEOF
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19307   (eval $ac_link) 2>conftest.er1
19308   ac_status=$?
19309   grep -v '^ *+' conftest.er1 >conftest.err
19310   rm -f conftest.er1
19311   cat conftest.err >&5
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } &&
19314          { ac_try='test -z "$ac_c_werror_flag"
19315                          || test ! -s conftest.err'
19316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317   (eval $ac_try) 2>&5
19318   ac_status=$?
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); }; } &&
19321          { ac_try='test -s conftest$ac_exeext'
19322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323   (eval $ac_try) 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); }; }; then
19327   ac_cv_lib_dld_shl_load=yes
19328 else
19329   echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19331
19332 ac_cv_lib_dld_shl_load=no
19333 fi
19334 rm -f conftest.err conftest.$ac_objext \
19335       conftest$ac_exeext conftest.$ac_ext
19336 LIBS=$ac_check_lib_save_LIBS
19337 fi
19338 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19339 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19340 if test $ac_cv_lib_dld_shl_load = yes; then
19341   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19342 else
19343   echo "$as_me:$LINENO: checking for dlopen" >&5
19344 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19345 if test "${ac_cv_func_dlopen+set}" = set; then
19346   echo $ECHO_N "(cached) $ECHO_C" >&6
19347 else
19348   cat >conftest.$ac_ext <<_ACEOF
19349 /* confdefs.h.  */
19350 _ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h.  */
19354 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19356 #define dlopen innocuous_dlopen
19357
19358 /* System header to define __stub macros and hopefully few prototypes,
19359     which can conflict with char dlopen (); below.
19360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19361     <limits.h> exists even on freestanding compilers.  */
19362
19363 #ifdef __STDC__
19364 # include <limits.h>
19365 #else
19366 # include <assert.h>
19367 #endif
19368
19369 #undef dlopen
19370
19371 /* Override any gcc2 internal prototype to avoid an error.  */
19372 #ifdef __cplusplus
19373 extern "C"
19374 {
19375 #endif
19376 /* We use char because int might match the return type of a gcc2
19377    builtin and then its argument prototype would still apply.  */
19378 char dlopen ();
19379 /* The GNU C library defines this for functions which it implements
19380     to always fail with ENOSYS.  Some functions are actually named
19381     something starting with __ and the normal name is an alias.  */
19382 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19383 choke me
19384 #else
19385 char (*f) () = dlopen;
19386 #endif
19387 #ifdef __cplusplus
19388 }
19389 #endif
19390
19391 int
19392 main ()
19393 {
19394 return f != dlopen;
19395   ;
19396   return 0;
19397 }
19398 _ACEOF
19399 rm -f conftest.$ac_objext conftest$ac_exeext
19400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19401   (eval $ac_link) 2>conftest.er1
19402   ac_status=$?
19403   grep -v '^ *+' conftest.er1 >conftest.err
19404   rm -f conftest.er1
19405   cat conftest.err >&5
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); } &&
19408          { ac_try='test -z "$ac_c_werror_flag"
19409                          || test ! -s conftest.err'
19410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411   (eval $ac_try) 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); }; } &&
19415          { ac_try='test -s conftest$ac_exeext'
19416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417   (eval $ac_try) 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); }; }; then
19421   ac_cv_func_dlopen=yes
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426 ac_cv_func_dlopen=no
19427 fi
19428 rm -f conftest.err conftest.$ac_objext \
19429       conftest$ac_exeext conftest.$ac_ext
19430 fi
19431 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19432 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19433 if test $ac_cv_func_dlopen = yes; then
19434   lt_cv_dlopen="dlopen"
19435 else
19436   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19437 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19438 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19439   echo $ECHO_N "(cached) $ECHO_C" >&6
19440 else
19441   ac_check_lib_save_LIBS=$LIBS
19442 LIBS="-ldl  $LIBS"
19443 cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h.  */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h.  */
19449
19450 /* Override any gcc2 internal prototype to avoid an error.  */
19451 #ifdef __cplusplus
19452 extern "C"
19453 #endif
19454 /* We use char because int might match the return type of a gcc2
19455    builtin and then its argument prototype would still apply.  */
19456 char dlopen ();
19457 int
19458 main ()
19459 {
19460 dlopen ();
19461   ;
19462   return 0;
19463 }
19464 _ACEOF
19465 rm -f conftest.$ac_objext conftest$ac_exeext
19466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19467   (eval $ac_link) 2>conftest.er1
19468   ac_status=$?
19469   grep -v '^ *+' conftest.er1 >conftest.err
19470   rm -f conftest.er1
19471   cat conftest.err >&5
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); } &&
19474          { ac_try='test -z "$ac_c_werror_flag"
19475                          || test ! -s conftest.err'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; } &&
19481          { ac_try='test -s conftest$ac_exeext'
19482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483   (eval $ac_try) 2>&5
19484   ac_status=$?
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); }; }; then
19487   ac_cv_lib_dl_dlopen=yes
19488 else
19489   echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19491
19492 ac_cv_lib_dl_dlopen=no
19493 fi
19494 rm -f conftest.err conftest.$ac_objext \
19495       conftest$ac_exeext conftest.$ac_ext
19496 LIBS=$ac_check_lib_save_LIBS
19497 fi
19498 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19499 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19500 if test $ac_cv_lib_dl_dlopen = yes; then
19501   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19502 else
19503   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19504 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19505 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19506   echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508   ac_check_lib_save_LIBS=$LIBS
19509 LIBS="-lsvld  $LIBS"
19510 cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516
19517 /* Override any gcc2 internal prototype to avoid an error.  */
19518 #ifdef __cplusplus
19519 extern "C"
19520 #endif
19521 /* We use char because int might match the return type of a gcc2
19522    builtin and then its argument prototype would still apply.  */
19523 char dlopen ();
19524 int
19525 main ()
19526 {
19527 dlopen ();
19528   ;
19529   return 0;
19530 }
19531 _ACEOF
19532 rm -f conftest.$ac_objext conftest$ac_exeext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19534   (eval $ac_link) 2>conftest.er1
19535   ac_status=$?
19536   grep -v '^ *+' conftest.er1 >conftest.err
19537   rm -f conftest.er1
19538   cat conftest.err >&5
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); } &&
19541          { ac_try='test -z "$ac_c_werror_flag"
19542                          || test ! -s conftest.err'
19543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544   (eval $ac_try) 2>&5
19545   ac_status=$?
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); }; } &&
19548          { ac_try='test -s conftest$ac_exeext'
19549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550   (eval $ac_try) 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; }; then
19554   ac_cv_lib_svld_dlopen=yes
19555 else
19556   echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559 ac_cv_lib_svld_dlopen=no
19560 fi
19561 rm -f conftest.err conftest.$ac_objext \
19562       conftest$ac_exeext conftest.$ac_ext
19563 LIBS=$ac_check_lib_save_LIBS
19564 fi
19565 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19566 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19567 if test $ac_cv_lib_svld_dlopen = yes; then
19568   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19569 else
19570   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19571 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19572 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19573   echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575   ac_check_lib_save_LIBS=$LIBS
19576 LIBS="-ldld  $LIBS"
19577 cat >conftest.$ac_ext <<_ACEOF
19578 /* confdefs.h.  */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h.  */
19583
19584 /* Override any gcc2 internal prototype to avoid an error.  */
19585 #ifdef __cplusplus
19586 extern "C"
19587 #endif
19588 /* We use char because int might match the return type of a gcc2
19589    builtin and then its argument prototype would still apply.  */
19590 char dld_link ();
19591 int
19592 main ()
19593 {
19594 dld_link ();
19595   ;
19596   return 0;
19597 }
19598 _ACEOF
19599 rm -f conftest.$ac_objext conftest$ac_exeext
19600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19601   (eval $ac_link) 2>conftest.er1
19602   ac_status=$?
19603   grep -v '^ *+' conftest.er1 >conftest.err
19604   rm -f conftest.er1
19605   cat conftest.err >&5
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); } &&
19608          { ac_try='test -z "$ac_c_werror_flag"
19609                          || test ! -s conftest.err'
19610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611   (eval $ac_try) 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; } &&
19615          { ac_try='test -s conftest$ac_exeext'
19616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617   (eval $ac_try) 2>&5
19618   ac_status=$?
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); }; }; then
19621   ac_cv_lib_dld_dld_link=yes
19622 else
19623   echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19625
19626 ac_cv_lib_dld_dld_link=no
19627 fi
19628 rm -f conftest.err conftest.$ac_objext \
19629       conftest$ac_exeext conftest.$ac_ext
19630 LIBS=$ac_check_lib_save_LIBS
19631 fi
19632 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19633 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19634 if test $ac_cv_lib_dld_dld_link = yes; then
19635   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19636 fi
19637
19638
19639 fi
19640
19641
19642 fi
19643
19644
19645 fi
19646
19647
19648 fi
19649
19650
19651 fi
19652
19653     ;;
19654   esac
19655
19656   if test "x$lt_cv_dlopen" != xno; then
19657     enable_dlopen=yes
19658   else
19659     enable_dlopen=no
19660   fi
19661
19662   case $lt_cv_dlopen in
19663   dlopen)
19664     save_CPPFLAGS="$CPPFLAGS"
19665     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19666
19667     save_LDFLAGS="$LDFLAGS"
19668     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19669
19670     save_LIBS="$LIBS"
19671     LIBS="$lt_cv_dlopen_libs $LIBS"
19672
19673     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19674 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19675 if test "${lt_cv_dlopen_self+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678           if test "$cross_compiling" = yes; then :
19679   lt_cv_dlopen_self=cross
19680 else
19681   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19682   lt_status=$lt_dlunknown
19683   cat > conftest.$ac_ext <<_LT_EOF
19684 #line 19684 "configure"
19685 #include "confdefs.h"
19686
19687 #if HAVE_DLFCN_H
19688 #include <dlfcn.h>
19689 #endif
19690
19691 #include <stdio.h>
19692
19693 #ifdef RTLD_GLOBAL
19694 #  define LT_DLGLOBAL           RTLD_GLOBAL
19695 #else
19696 #  ifdef DL_GLOBAL
19697 #    define LT_DLGLOBAL         DL_GLOBAL
19698 #  else
19699 #    define LT_DLGLOBAL         0
19700 #  endif
19701 #endif
19702
19703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19704    find out it does not work in some platform. */
19705 #ifndef LT_DLLAZY_OR_NOW
19706 #  ifdef RTLD_LAZY
19707 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19708 #  else
19709 #    ifdef DL_LAZY
19710 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19711 #    else
19712 #      ifdef RTLD_NOW
19713 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19714 #      else
19715 #        ifdef DL_NOW
19716 #          define LT_DLLAZY_OR_NOW      DL_NOW
19717 #        else
19718 #          define LT_DLLAZY_OR_NOW      0
19719 #        endif
19720 #      endif
19721 #    endif
19722 #  endif
19723 #endif
19724
19725 #ifdef __cplusplus
19726 extern "C" void exit (int);
19727 #endif
19728
19729 void fnord() { int i=42;}
19730 int main ()
19731 {
19732   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19733   int status = $lt_dlunknown;
19734
19735   if (self)
19736     {
19737       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19738       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19739       /* dlclose (self); */
19740     }
19741   else
19742     puts (dlerror ());
19743
19744     exit (status);
19745 }
19746 _LT_EOF
19747   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19748   (eval $ac_link) 2>&5
19749   ac_status=$?
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19752     (./conftest; exit; ) >&5 2>/dev/null
19753     lt_status=$?
19754     case x$lt_status in
19755       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19756       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19757       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19758     esac
19759   else :
19760     # compilation failed
19761     lt_cv_dlopen_self=no
19762   fi
19763 fi
19764 rm -fr conftest*
19765
19766
19767 fi
19768 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19769 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19770
19771     if test "x$lt_cv_dlopen_self" = xyes; then
19772       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19773       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19774 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19775 if test "${lt_cv_dlopen_self_static+set}" = set; then
19776   echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778           if test "$cross_compiling" = yes; then :
19779   lt_cv_dlopen_self_static=cross
19780 else
19781   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19782   lt_status=$lt_dlunknown
19783   cat > conftest.$ac_ext <<_LT_EOF
19784 #line 19784 "configure"
19785 #include "confdefs.h"
19786
19787 #if HAVE_DLFCN_H
19788 #include <dlfcn.h>
19789 #endif
19790
19791 #include <stdio.h>
19792
19793 #ifdef RTLD_GLOBAL
19794 #  define LT_DLGLOBAL           RTLD_GLOBAL
19795 #else
19796 #  ifdef DL_GLOBAL
19797 #    define LT_DLGLOBAL         DL_GLOBAL
19798 #  else
19799 #    define LT_DLGLOBAL         0
19800 #  endif
19801 #endif
19802
19803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19804    find out it does not work in some platform. */
19805 #ifndef LT_DLLAZY_OR_NOW
19806 #  ifdef RTLD_LAZY
19807 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19808 #  else
19809 #    ifdef DL_LAZY
19810 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19811 #    else
19812 #      ifdef RTLD_NOW
19813 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19814 #      else
19815 #        ifdef DL_NOW
19816 #          define LT_DLLAZY_OR_NOW      DL_NOW
19817 #        else
19818 #          define LT_DLLAZY_OR_NOW      0
19819 #        endif
19820 #      endif
19821 #    endif
19822 #  endif
19823 #endif
19824
19825 #ifdef __cplusplus
19826 extern "C" void exit (int);
19827 #endif
19828
19829 void fnord() { int i=42;}
19830 int main ()
19831 {
19832   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19833   int status = $lt_dlunknown;
19834
19835   if (self)
19836     {
19837       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19838       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19839       /* dlclose (self); */
19840     }
19841   else
19842     puts (dlerror ());
19843
19844     exit (status);
19845 }
19846 _LT_EOF
19847   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19848   (eval $ac_link) 2>&5
19849   ac_status=$?
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19852     (./conftest; exit; ) >&5 2>/dev/null
19853     lt_status=$?
19854     case x$lt_status in
19855       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19856       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19857       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19858     esac
19859   else :
19860     # compilation failed
19861     lt_cv_dlopen_self_static=no
19862   fi
19863 fi
19864 rm -fr conftest*
19865
19866
19867 fi
19868 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19869 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19870     fi
19871
19872     CPPFLAGS="$save_CPPFLAGS"
19873     LDFLAGS="$save_LDFLAGS"
19874     LIBS="$save_LIBS"
19875     ;;
19876   esac
19877
19878   case $lt_cv_dlopen_self in
19879   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19880   *) enable_dlopen_self=unknown ;;
19881   esac
19882
19883   case $lt_cv_dlopen_self_static in
19884   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19885   *) enable_dlopen_self_static=unknown ;;
19886   esac
19887 fi
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905 striplib=
19906 old_striplib=
19907 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19908 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19909 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19910   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19911   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19912   echo "$as_me:$LINENO: result: yes" >&5
19913 echo "${ECHO_T}yes" >&6
19914 else
19915 # FIXME - insert some real tests, host_os isn't really good enough
19916   case $host_os in
19917   darwin*)
19918     if test -n "$STRIP" ; then
19919       striplib="$STRIP -x"
19920       old_striplib="$STRIP -S"
19921       echo "$as_me:$LINENO: result: yes" >&5
19922 echo "${ECHO_T}yes" >&6
19923     else
19924       echo "$as_me:$LINENO: result: no" >&5
19925 echo "${ECHO_T}no" >&6
19926     fi
19927     ;;
19928   *)
19929     echo "$as_me:$LINENO: result: no" >&5
19930 echo "${ECHO_T}no" >&6
19931     ;;
19932   esac
19933 fi
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946   # Report which library types will actually be built
19947   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19949   echo "$as_me:$LINENO: result: $can_build_shared" >&5
19950 echo "${ECHO_T}$can_build_shared" >&6
19951
19952   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19954   test "$can_build_shared" = "no" && enable_shared=no
19955
19956   # On AIX, shared libraries and static libraries use the same namespace, and
19957   # are all built from PIC.
19958   case $host_os in
19959   aix3*)
19960     test "$enable_shared" = yes && enable_static=no
19961     if test -n "$RANLIB"; then
19962       archive_cmds="$archive_cmds~\$RANLIB \$lib"
19963       postinstall_cmds='$RANLIB $lib'
19964     fi
19965     ;;
19966
19967   aix[4-9]*)
19968     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19969       test "$enable_shared" = yes && enable_static=no
19970     fi
19971     ;;
19972   esac
19973   echo "$as_me:$LINENO: result: $enable_shared" >&5
19974 echo "${ECHO_T}$enable_shared" >&6
19975
19976   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19977 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19978   # Make sure either enable_shared or enable_static is yes.
19979   test "$enable_shared" = yes || enable_static=yes
19980   echo "$as_me:$LINENO: result: $enable_static" >&5
19981 echo "${ECHO_T}$enable_static" >&6
19982
19983
19984
19985
19986 fi
19987 ac_ext=c
19988 ac_cpp='$CPP $CPPFLAGS'
19989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19992
19993 CC="$lt_save_CC"
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010 # Only expand once:
20011
20012
20013
20014
20015
20016 # Identify the assembler which will work hand-in-glove with the newly
20017 # built GCC, so that we can examine its features.  This is the assembler
20018 # which will be driven by the driver program.
20019 #
20020 # If build != host, and we aren't building gas in-tree, we identify a
20021 # build->target assembler and hope that it will have the same features
20022 # as the host->target assembler we'll be using.
20023 gcc_cv_gas_major_version=
20024 gcc_cv_gas_minor_version=
20025 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20026
20027 if test "${gcc_cv_as+set}" = set; then
20028   :
20029 else
20030
20031 if test -x "$DEFAULT_ASSEMBLER"; then
20032         gcc_cv_as="$DEFAULT_ASSEMBLER"
20033 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20034      && test -f ../gas/Makefile \
20035      && test x$build = x$host; then
20036         gcc_cv_as=../gas/as-new$build_exeext
20037 elif test -x as$build_exeext; then
20038         # Build using assembler in the current directory.
20039         gcc_cv_as=./as$build_exeext
20040 elif test -x $AS_FOR_TARGET; then
20041         gcc_cv_as="$AS_FOR_TARGET"
20042 else
20043         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20044 set dummy $AS_FOR_TARGET; ac_word=$2
20045 echo "$as_me:$LINENO: checking for $ac_word" >&5
20046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20047 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050   case $gcc_cv_as in
20051   [\\/]* | ?:[\\/]*)
20052   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20053   ;;
20054   *)
20055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20056 for as_dir in $PATH
20057 do
20058   IFS=$as_save_IFS
20059   test -z "$as_dir" && as_dir=.
20060   for ac_exec_ext in '' $ac_executable_extensions; do
20061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20062     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20064     break 2
20065   fi
20066 done
20067 done
20068
20069   ;;
20070 esac
20071 fi
20072 gcc_cv_as=$ac_cv_path_gcc_cv_as
20073
20074 if test -n "$gcc_cv_as"; then
20075   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20076 echo "${ECHO_T}$gcc_cv_as" >&6
20077 else
20078   echo "$as_me:$LINENO: result: no" >&5
20079 echo "${ECHO_T}no" >&6
20080 fi
20081
20082 fi
20083 fi
20084
20085
20086 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20087
20088 case "$ORIGINAL_AS_FOR_TARGET" in
20089   ./as | ./as$build_exeext) ;;
20090   *)           ac_config_files="$ac_config_files as:exec-tool.in"
20091  ;;
20092 esac
20093
20094 echo "$as_me:$LINENO: checking what assembler to use" >&5
20095 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20096 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20097   # Single tree build which includes gas.  We want to prefer it
20098   # over whatever linker top-level may have detected, since
20099   # we'll use what we're building after installation anyway.
20100   echo "$as_me:$LINENO: result: newly built gas" >&5
20101 echo "${ECHO_T}newly built gas" >&6
20102   in_tree_gas=yes
20103   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20104 for f in $gcc_cv_as_bfd_srcdir/configure \
20105          $gcc_cv_as_gas_srcdir/configure \
20106          $gcc_cv_as_gas_srcdir/configure.in \
20107          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20108   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20109   if test x$gcc_cv_gas_version != x; then
20110     break
20111   fi
20112 done
20113 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20114 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20115 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20116 case $gcc_cv_gas_patch_version in
20117   "") gcc_cv_gas_patch_version="0" ;;
20118 esac
20119 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20120                             + $gcc_cv_gas_minor_version \) \* 1000 \
20121                             + $gcc_cv_gas_patch_version`
20122
20123   in_tree_gas_is_elf=no
20124   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20125      || (grep 'obj_format = multi' ../gas/Makefile \
20126          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20127   then
20128     in_tree_gas_is_elf=yes
20129   fi
20130 else
20131   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20132 echo "${ECHO_T}$gcc_cv_as" >&6
20133   in_tree_gas=no
20134 fi
20135
20136 # Identify the linker which will work hand-in-glove with the newly
20137 # built GCC, so that we can examine its features.  This is the linker
20138 # which will be driven by the driver program.
20139 #
20140 # If build != host, and we aren't building gas in-tree, we identify a
20141 # build->target linker and hope that it will have the same features
20142 # as the host->target linker we'll be using.
20143 gcc_cv_gld_major_version=
20144 gcc_cv_gld_minor_version=
20145 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20146 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20147
20148 if test "${gcc_cv_ld+set}" = set; then
20149   :
20150 else
20151
20152 if test -x "$DEFAULT_LINKER"; then
20153         gcc_cv_ld="$DEFAULT_LINKER"
20154 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20155      && test -f ../ld/Makefile \
20156      && test x$build = x$host; then
20157         gcc_cv_ld=../ld/ld-new$build_exeext
20158 elif test -x collect-ld$build_exeext; then
20159         # Build using linker in the current directory.
20160         gcc_cv_ld=./collect-ld$build_exeext
20161 elif test -x $LD_FOR_TARGET; then
20162         gcc_cv_ld="$LD_FOR_TARGET"
20163 else
20164         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20165 set dummy $LD_FOR_TARGET; ac_word=$2
20166 echo "$as_me:$LINENO: checking for $ac_word" >&5
20167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20168 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20169   echo $ECHO_N "(cached) $ECHO_C" >&6
20170 else
20171   case $gcc_cv_ld in
20172   [\\/]* | ?:[\\/]*)
20173   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20174   ;;
20175   *)
20176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177 for as_dir in $PATH
20178 do
20179   IFS=$as_save_IFS
20180   test -z "$as_dir" && as_dir=.
20181   for ac_exec_ext in '' $ac_executable_extensions; do
20182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20183     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20185     break 2
20186   fi
20187 done
20188 done
20189
20190   ;;
20191 esac
20192 fi
20193 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20194
20195 if test -n "$gcc_cv_ld"; then
20196   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20197 echo "${ECHO_T}$gcc_cv_ld" >&6
20198 else
20199   echo "$as_me:$LINENO: result: no" >&5
20200 echo "${ECHO_T}no" >&6
20201 fi
20202
20203 fi
20204 fi
20205
20206
20207 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20208
20209 case "$ORIGINAL_LD_FOR_TARGET" in
20210   ./collect-ld | ./collect-ld$build_exeext) ;;
20211   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20212  ;;
20213 esac
20214
20215 echo "$as_me:$LINENO: checking what linker to use" >&5
20216 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20217 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20218         # Single tree build which includes ld.  We want to prefer it
20219         # over whatever linker top-level may have detected, since
20220         # we'll use what we're building after installation anyway.
20221         echo "$as_me:$LINENO: result: newly built ld" >&5
20222 echo "${ECHO_T}newly built ld" >&6
20223         in_tree_ld=yes
20224         in_tree_ld_is_elf=no
20225         if (grep 'EMUL = .*elf' ../ld/Makefile \
20226             || grep 'EMUL = .*linux' ../ld/Makefile \
20227             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20228           in_tree_ld_is_elf=yes
20229         fi
20230         for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
20231         do
20232                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20233                 if test x$gcc_cv_gld_version != x; then
20234                         break
20235                 fi
20236         done
20237         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20238         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20239 else
20240         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20241 echo "${ECHO_T}$gcc_cv_ld" >&6
20242         in_tree_ld=no
20243 fi
20244
20245 # Figure out what nm we will be using.
20246 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20247 if test "${gcc_cv_nm+set}" = set; then
20248   :
20249 else
20250
20251 if test -f $gcc_cv_binutils_srcdir/configure.in \
20252      && test -f ../binutils/Makefile \
20253      && test x$build = x$host; then
20254         gcc_cv_nm=../binutils/nm-new$build_exeext
20255 elif test -x nm$build_exeext; then
20256         gcc_cv_nm=./nm$build_exeext
20257 elif test -x $NM_FOR_TARGET; then
20258         gcc_cv_nm="$NM_FOR_TARGET"
20259 else
20260         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20261 set dummy $NM_FOR_TARGET; ac_word=$2
20262 echo "$as_me:$LINENO: checking for $ac_word" >&5
20263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20264 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20265   echo $ECHO_N "(cached) $ECHO_C" >&6
20266 else
20267   case $gcc_cv_nm in
20268   [\\/]* | ?:[\\/]*)
20269   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20270   ;;
20271   *)
20272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20273 for as_dir in $PATH
20274 do
20275   IFS=$as_save_IFS
20276   test -z "$as_dir" && as_dir=.
20277   for ac_exec_ext in '' $ac_executable_extensions; do
20278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20279     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20281     break 2
20282   fi
20283 done
20284 done
20285
20286   ;;
20287 esac
20288 fi
20289 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20290
20291 if test -n "$gcc_cv_nm"; then
20292   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20293 echo "${ECHO_T}$gcc_cv_nm" >&6
20294 else
20295   echo "$as_me:$LINENO: result: no" >&5
20296 echo "${ECHO_T}no" >&6
20297 fi
20298
20299 fi
20300 fi
20301
20302
20303 echo "$as_me:$LINENO: checking what nm to use" >&5
20304 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20305 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20306         # Single tree build which includes binutils.
20307         echo "$as_me:$LINENO: result: newly built nm" >&5
20308 echo "${ECHO_T}newly built nm" >&6
20309         in_tree_nm=yes
20310 else
20311         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20312 echo "${ECHO_T}$gcc_cv_nm" >&6
20313         in_tree_nm=no
20314 fi
20315
20316 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20317
20318 case "$ORIGINAL_NM_FOR_TARGET" in
20319   ./nm | ./nm$build_exeext) ;;
20320   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
20321  ;;
20322 esac
20323
20324
20325 # Figure out what objdump we will be using.
20326 if test "${gcc_cv_objdump+set}" = set; then
20327   :
20328 else
20329
20330 if test -f $gcc_cv_binutils_srcdir/configure.in \
20331      && test -f ../binutils/Makefile \
20332      && test x$build = x$host; then
20333         # Single tree build which includes binutils.
20334         gcc_cv_objdump=../binutils/objdump$build_exeext
20335 elif test -x objdump$build_exeext; then
20336         gcc_cv_objdump=./objdump$build_exeext
20337 elif test -x $OBJDUMP_FOR_TARGET; then
20338         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20339 else
20340         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20341 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20342 echo "$as_me:$LINENO: checking for $ac_word" >&5
20343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20344 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20345   echo $ECHO_N "(cached) $ECHO_C" >&6
20346 else
20347   case $gcc_cv_objdump in
20348   [\\/]* | ?:[\\/]*)
20349   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20350   ;;
20351   *)
20352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20353 for as_dir in $PATH
20354 do
20355   IFS=$as_save_IFS
20356   test -z "$as_dir" && as_dir=.
20357   for ac_exec_ext in '' $ac_executable_extensions; do
20358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20359     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20361     break 2
20362   fi
20363 done
20364 done
20365
20366   ;;
20367 esac
20368 fi
20369 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20370
20371 if test -n "$gcc_cv_objdump"; then
20372   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20373 echo "${ECHO_T}$gcc_cv_objdump" >&6
20374 else
20375   echo "$as_me:$LINENO: result: no" >&5
20376 echo "${ECHO_T}no" >&6
20377 fi
20378
20379 fi
20380 fi
20381
20382
20383 echo "$as_me:$LINENO: checking what objdump to use" >&5
20384 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20385 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20386         # Single tree build which includes binutils.
20387         echo "$as_me:$LINENO: result: newly built objdump" >&5
20388 echo "${ECHO_T}newly built objdump" >&6
20389 elif test x$gcc_cv_objdump = x; then
20390         echo "$as_me:$LINENO: result: not found" >&5
20391 echo "${ECHO_T}not found" >&6
20392 else
20393         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20394 echo "${ECHO_T}$gcc_cv_objdump" >&6
20395 fi
20396
20397 # Figure out what assembler alignment features are present.
20398 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20399 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20400 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20401   echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403   gcc_cv_as_balign_and_p2align=no
20404     if test $in_tree_gas = yes; then
20405     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20406   then gcc_cv_as_balign_and_p2align=yes
20407 fi
20408   elif test x$gcc_cv_as != x; then
20409     echo '.balign 4
20410 .p2align 2' > conftest.s
20411     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; }
20417     then
20418         gcc_cv_as_balign_and_p2align=yes
20419     else
20420       echo "configure: failed program was" >&5
20421       cat conftest.s >&5
20422     fi
20423     rm -f conftest.o conftest.s
20424   fi
20425 fi
20426 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20427 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20428 if test $gcc_cv_as_balign_and_p2align = yes; then
20429
20430 cat >>confdefs.h <<\_ACEOF
20431 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20432 _ACEOF
20433
20434 fi
20435
20436 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20437 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20438 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20439   echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20441   gcc_cv_as_max_skip_p2align=no
20442     if test $in_tree_gas = yes; then
20443     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20444   then gcc_cv_as_max_skip_p2align=yes
20445 fi
20446   elif test x$gcc_cv_as != x; then
20447     echo '.p2align 4,,7' > conftest.s
20448     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450   (eval $ac_try) 2>&5
20451   ac_status=$?
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); }; }
20454     then
20455         gcc_cv_as_max_skip_p2align=yes
20456     else
20457       echo "configure: failed program was" >&5
20458       cat conftest.s >&5
20459     fi
20460     rm -f conftest.o conftest.s
20461   fi
20462 fi
20463 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20464 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20465 if test $gcc_cv_as_max_skip_p2align = yes; then
20466
20467 cat >>confdefs.h <<\_ACEOF
20468 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20469 _ACEOF
20470
20471 fi
20472
20473 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20474 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20475 if test "${gcc_cv_as_literal16+set}" = set; then
20476   echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478   gcc_cv_as_literal16=no
20479     if test $in_tree_gas = yes; then
20480     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20481   then gcc_cv_as_literal16=yes
20482 fi
20483   elif test x$gcc_cv_as != x; then
20484     echo '.literal16' > conftest.s
20485     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487   (eval $ac_try) 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; }
20491     then
20492         gcc_cv_as_literal16=yes
20493     else
20494       echo "configure: failed program was" >&5
20495       cat conftest.s >&5
20496     fi
20497     rm -f conftest.o conftest.s
20498   fi
20499 fi
20500 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20501 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20502 if test $gcc_cv_as_literal16 = yes; then
20503
20504 cat >>confdefs.h <<\_ACEOF
20505 #define HAVE_GAS_LITERAL16 1
20506 _ACEOF
20507
20508 fi
20509
20510 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20511 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20512 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20513   echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515   gcc_cv_as_subsection_m1=no
20516     if test $in_tree_gas = yes; then
20517     if test $in_tree_gas_is_elf = yes \
20518   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20519   then gcc_cv_as_subsection_m1=yes
20520 fi
20521   elif test x$gcc_cv_as != x; then
20522     echo 'conftest_label1: .word 0
20523 .subsection -1
20524 conftest_label2: .word 0
20525 .previous' > conftest.s
20526     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; }
20532     then
20533         if test x$gcc_cv_nm != x; then
20534     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20535     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20536     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20537     then :
20538     else gcc_cv_as_subsection_m1=yes
20539     fi
20540     rm -f conftest.nm1 conftest.nm2
20541   fi
20542     else
20543       echo "configure: failed program was" >&5
20544       cat conftest.s >&5
20545     fi
20546     rm -f conftest.o conftest.s
20547   fi
20548 fi
20549 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20550 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20551 if test $gcc_cv_as_subsection_m1 = yes; then
20552
20553 cat >>confdefs.h <<\_ACEOF
20554 #define HAVE_GAS_SUBSECTION_ORDERING 1
20555 _ACEOF
20556
20557 fi
20558
20559 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20560 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20561 if test "${gcc_cv_as_weak+set}" = set; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   gcc_cv_as_weak=no
20565     if test $in_tree_gas = yes; then
20566     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20567   then gcc_cv_as_weak=yes
20568 fi
20569   elif test x$gcc_cv_as != x; then
20570     echo '      .weak foobar' > conftest.s
20571     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573   (eval $ac_try) 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); }; }
20577     then
20578         gcc_cv_as_weak=yes
20579     else
20580       echo "configure: failed program was" >&5
20581       cat conftest.s >&5
20582     fi
20583     rm -f conftest.o conftest.s
20584   fi
20585 fi
20586 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20587 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20588 if test $gcc_cv_as_weak = yes; then
20589
20590 cat >>confdefs.h <<\_ACEOF
20591 #define HAVE_GAS_WEAK 1
20592 _ACEOF
20593
20594 fi
20595
20596 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20597 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20598 if test "${gcc_cv_as_weakref+set}" = set; then
20599   echo $ECHO_N "(cached) $ECHO_C" >&6
20600 else
20601   gcc_cv_as_weakref=no
20602     if test $in_tree_gas = yes; then
20603     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20604   then gcc_cv_as_weakref=yes
20605 fi
20606   elif test x$gcc_cv_as != x; then
20607     echo '      .weakref foobar, barfnot' > conftest.s
20608     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610   (eval $ac_try) 2>&5
20611   ac_status=$?
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); }; }
20614     then
20615         gcc_cv_as_weakref=yes
20616     else
20617       echo "configure: failed program was" >&5
20618       cat conftest.s >&5
20619     fi
20620     rm -f conftest.o conftest.s
20621   fi
20622 fi
20623 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20624 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20625 if test $gcc_cv_as_weakref = yes; then
20626
20627 cat >>confdefs.h <<\_ACEOF
20628 #define HAVE_GAS_WEAKREF 1
20629 _ACEOF
20630
20631 fi
20632
20633 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20634 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20635 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 else
20638   gcc_cv_as_nsubspa_comdat=no
20639     if test $in_tree_gas = yes; then
20640     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20641   then gcc_cv_as_nsubspa_comdat=yes
20642 fi
20643   elif test x$gcc_cv_as != x; then
20644     echo '      .SPACE $TEXT$
20645         .NSUBSPA $CODE$,COMDAT' > conftest.s
20646     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648   (eval $ac_try) 2>&5
20649   ac_status=$?
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); }; }
20652     then
20653         gcc_cv_as_nsubspa_comdat=yes
20654     else
20655       echo "configure: failed program was" >&5
20656       cat conftest.s >&5
20657     fi
20658     rm -f conftest.o conftest.s
20659   fi
20660 fi
20661 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20662 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20663 if test $gcc_cv_as_nsubspa_comdat = yes; then
20664
20665 cat >>confdefs.h <<\_ACEOF
20666 #define HAVE_GAS_NSUBSPA_COMDAT 1
20667 _ACEOF
20668
20669 fi
20670
20671 # .hidden needs to be supported in both the assembler and the linker,
20672 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20673 # This is irritatingly difficult to feature test for; we have to check the
20674 # date string after the version number.  If we've got an in-tree
20675 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20676 # to be safe.
20677 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20678 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20679 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20680 if test "${gcc_cv_as_hidden+set}" = set; then
20681   echo $ECHO_N "(cached) $ECHO_C" >&6
20682 else
20683   gcc_cv_as_hidden=no
20684     if test $in_tree_gas = yes; then
20685     if test $in_tree_gas_is_elf = yes \
20686   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20687   then gcc_cv_as_hidden=yes
20688 fi
20689   elif test x$gcc_cv_as != x; then
20690     echo '      .hidden foobar
20691 foobar:' > conftest.s
20692     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694   (eval $ac_try) 2>&5
20695   ac_status=$?
20696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697   (exit $ac_status); }; }
20698     then
20699         gcc_cv_as_hidden=yes
20700     else
20701       echo "configure: failed program was" >&5
20702       cat conftest.s >&5
20703     fi
20704     rm -f conftest.o conftest.s
20705   fi
20706 fi
20707 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20708 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20709
20710
20711 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20712 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20713 if test "${gcc_cv_ld_hidden+set}" = set; then
20714   echo $ECHO_N "(cached) $ECHO_C" >&6
20715 else
20716   if test $in_tree_ld = yes ; then
20717   gcc_cv_ld_hidden=no
20718   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
20719      && test $in_tree_ld_is_elf = yes; then
20720      gcc_cv_ld_hidden=yes
20721   fi
20722 else
20723   gcc_cv_ld_hidden=yes
20724   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20725   if echo "$ld_ver" | grep GNU > /dev/null; then
20726     ld_vers=`echo $ld_ver | sed -n \
20727         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20728     ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
20729     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20730     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20731     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20732     if test 0"$ld_date" -lt 20020404; then
20733       if test -n "$ld_date"; then
20734         # If there was date string, but was earlier than 2002-04-04, fail
20735         gcc_cv_ld_hidden=no
20736       elif test -z "$ld_vers"; then
20737         # If there was no date string nor ld version number, something is wrong
20738         gcc_cv_ld_hidden=no
20739       else
20740         test -z "$ld_vers_patch" && ld_vers_patch=0
20741         if test "$ld_vers_major" -lt 2; then
20742           gcc_cv_ld_hidden=no
20743         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20744           gcc_cv_ld_hidden="no"
20745         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20746           gcc_cv_ld_hidden=no
20747         fi
20748       fi
20749     fi
20750   else
20751     case "${target}" in
20752       hppa64*-*-hpux* | ia64*-*-hpux*)
20753         gcc_cv_ld_hidden=yes
20754         ;;
20755       *)
20756         gcc_cv_ld_hidden=no
20757         ;;
20758     esac
20759   fi
20760 fi
20761 fi
20762 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20763 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20764 libgcc_visibility=no
20765
20766
20767 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20768   libgcc_visibility=yes
20769
20770 cat >>confdefs.h <<\_ACEOF
20771 #define HAVE_GAS_HIDDEN 1
20772 _ACEOF
20773
20774 fi
20775
20776 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20777 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20778 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20779 if test "${gcc_cv_as_leb128+set}" = set; then
20780   echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782   gcc_cv_as_leb128=no
20783     if test $in_tree_gas = yes; then
20784     if test $in_tree_gas_is_elf = yes \
20785   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20786   then gcc_cv_as_leb128=yes
20787 fi
20788   elif test x$gcc_cv_as != x; then
20789     echo '      .data
20790         .uleb128 L2 - L1
20791 L1:
20792         .uleb128 1280
20793         .sleb128 -1010
20794 L2:' > conftest.s
20795     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797   (eval $ac_try) 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); }; }
20801     then
20802         # GAS versions before 2.11 do not support uleb128,
20803   # despite appearing to.
20804   # ??? There exists an elf-specific test that will crash
20805   # the assembler.  Perhaps it's better to figure out whether
20806   # arbitrary sections are supported and try the test.
20807   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20808   if echo "$as_ver" | grep GNU > /dev/null; then
20809     as_vers=`echo $as_ver | sed -n \
20810         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20811     as_major=`expr "$as_vers" : '\([0-9]*\)'`
20812     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20813     if test $as_major -eq 2 && test $as_minor -lt 11
20814     then :
20815     else gcc_cv_as_leb128=yes
20816     fi
20817   fi
20818     else
20819       echo "configure: failed program was" >&5
20820       cat conftest.s >&5
20821     fi
20822     rm -f conftest.o conftest.s
20823   fi
20824 fi
20825 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20826 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20827 if test $gcc_cv_as_leb128 = yes; then
20828
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_AS_LEB128 1
20831 _ACEOF
20832
20833 fi
20834
20835 # Check if we have assembler support for unwind directives.
20836 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
20837 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
20838 if test "${gcc_cv_as_cfi_directive+set}" = set; then
20839   echo $ECHO_N "(cached) $ECHO_C" >&6
20840 else
20841   gcc_cv_as_cfi_directive=no
20842   if test x$gcc_cv_as != x; then
20843     echo '      .text
20844         .cfi_startproc
20845         .cfi_offset 0, 0
20846         .cfi_same_value 1
20847         .cfi_def_cfa 1, 2
20848         .cfi_escape 1, 2, 3, 4, 5
20849         .cfi_endproc' > conftest.s
20850     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852   (eval $ac_try) 2>&5
20853   ac_status=$?
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); }; }
20856     then
20857         gcc_cv_as_cfi_directive=yes
20858     else
20859       echo "configure: failed program was" >&5
20860       cat conftest.s >&5
20861     fi
20862     rm -f conftest.o conftest.s
20863   fi
20864 fi
20865 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
20866 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
20867
20868
20869 cat >>confdefs.h <<_ACEOF
20870 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes; then echo 1; else echo 0; fi`
20871 _ACEOF
20872
20873
20874 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
20875 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
20876 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
20877   echo $ECHO_N "(cached) $ECHO_C" >&6
20878 else
20879   gcc_cv_as_cfi_personality_directive=no
20880   if test x$gcc_cv_as != x; then
20881     echo '      .text
20882         .cfi_startproc,
20883         .cfi_personality 0, symbol
20884         .cfi_endproc' > conftest.s
20885     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887   (eval $ac_try) 2>&5
20888   ac_status=$?
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); }; }
20891     then
20892         gcc_cv_as_cfi_personality_directive=yes
20893     else
20894       echo "configure: failed program was" >&5
20895       cat conftest.s >&5
20896     fi
20897     rm -f conftest.o conftest.s
20898   fi
20899 fi
20900 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
20901 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
20902
20903
20904 cat >>confdefs.h <<_ACEOF
20905 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
20906     then echo 1; else echo 0; fi`
20907 _ACEOF
20908
20909
20910 # GAS versions up to and including 2.11.0 may mis-optimize
20911 # .eh_frame data.
20912 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20913 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20914 if test "${gcc_cv_as_eh_frame+set}" = set; then
20915   echo $ECHO_N "(cached) $ECHO_C" >&6
20916 else
20917   gcc_cv_as_eh_frame=no
20918     if test $in_tree_gas = yes; then
20919     if test $in_tree_gas_is_elf = yes \
20920   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20921   then gcc_cv_as_eh_frame=yes
20922 fi
20923   elif test x$gcc_cv_as != x; then
20924     echo '      .text
20925 .LFB1:
20926         .4byte  0
20927 .L1:
20928         .4byte  0
20929 .LFE1:
20930         .section        .eh_frame,"aw",@progbits
20931 __FRAME_BEGIN__:
20932         .4byte  .LECIE1-.LSCIE1
20933 .LSCIE1:
20934         .4byte  0x0
20935         .byte   0x1
20936         .ascii "z\0"
20937         .byte   0x1
20938         .byte   0x78
20939         .byte   0x1a
20940         .byte   0x0
20941         .byte   0x4
20942         .4byte  1
20943         .p2align 1
20944 .LECIE1:
20945 .LSFDE1:
20946         .4byte  .LEFDE1-.LASFDE1
20947 .LASFDE1:
20948         .4byte  .LASFDE1-__FRAME_BEGIN__
20949         .4byte  .LFB1
20950         .4byte  .LFE1-.LFB1
20951         .byte   0x4
20952         .4byte  .LFE1-.LFB1
20953         .byte   0x4
20954         .4byte  .L1-.LFB1
20955 .LEFDE1:' > conftest.s
20956     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958   (eval $ac_try) 2>&5
20959   ac_status=$?
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); }; }
20962     then
20963           cat > conftest.lit <<EOF
20964  0000 10000000 00000000 017a0001 781a0004  .........z..x...
20965  0010 01000000 12000000 18000000 00000000  ................
20966  0020 08000000 04080000 0044               .........D      
20967 EOF
20968 cat > conftest.big <<EOF
20969  0000 00000010 00000000 017a0001 781a0004  .........z..x...
20970  0010 00000001 00000012 00000018 00000000  ................
20971  0020 00000008 04000000 0844               .........D      
20972 EOF
20973   # If the assembler didn't choke, and we can objdump,
20974   # and we got the correct data, then succeed.
20975   # The text in the here-document typically retains its unix-style line
20976   # endings, while the output of objdump will use host line endings.
20977   # Therefore, use diff -b for the comparisons.
20978   if test x$gcc_cv_objdump != x \
20979   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
20980      | tail -3 > conftest.got \
20981   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
20982     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
20983   then
20984     gcc_cv_as_eh_frame=yes
20985   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987   (eval $ac_try) 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); }; }; then
20991     gcc_cv_as_eh_frame=buggy
20992   else
20993     # Uh oh, what do we do now?
20994     gcc_cv_as_eh_frame=no
20995   fi
20996     else
20997       echo "configure: failed program was" >&5
20998       cat conftest.s >&5
20999     fi
21000     rm -f conftest.o conftest.s
21001   fi
21002 fi
21003 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
21004 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
21005
21006
21007 if test $gcc_cv_as_eh_frame = buggy; then
21008
21009 cat >>confdefs.h <<\_ACEOF
21010 #define USE_AS_TRADITIONAL_FORMAT 1
21011 _ACEOF
21012
21013 fi
21014
21015 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21016 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21017 if test "${gcc_cv_as_shf_merge+set}" = set; then
21018   echo $ECHO_N "(cached) $ECHO_C" >&6
21019 else
21020   gcc_cv_as_shf_merge=no
21021     if test $in_tree_gas = yes; then
21022     if test $in_tree_gas_is_elf = yes \
21023   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21024   then gcc_cv_as_shf_merge=yes
21025 fi
21026   elif test x$gcc_cv_as != x; then
21027     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21028     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030   (eval $ac_try) 2>&5
21031   ac_status=$?
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); }; }
21034     then
21035         gcc_cv_as_shf_merge=yes
21036     else
21037       echo "configure: failed program was" >&5
21038       cat conftest.s >&5
21039     fi
21040     rm -f conftest.o conftest.s
21041   fi
21042 fi
21043 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21044 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21045
21046 if test $gcc_cv_as_shf_merge = no; then
21047   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21048 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21049 if test "${gcc_cv_as_shf_merge+set}" = set; then
21050   echo $ECHO_N "(cached) $ECHO_C" >&6
21051 else
21052   gcc_cv_as_shf_merge=no
21053     if test $in_tree_gas = yes; then
21054     if test $in_tree_gas_is_elf = yes \
21055   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21056   then gcc_cv_as_shf_merge=yes
21057 fi
21058   elif test x$gcc_cv_as != x; then
21059     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21060     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062   (eval $ac_try) 2>&5
21063   ac_status=$?
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); }; }
21066     then
21067         gcc_cv_as_shf_merge=yes
21068     else
21069       echo "configure: failed program was" >&5
21070       cat conftest.s >&5
21071     fi
21072     rm -f conftest.o conftest.s
21073   fi
21074 fi
21075 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21076 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21077
21078 fi
21079
21080 cat >>confdefs.h <<_ACEOF
21081 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21082 _ACEOF
21083
21084
21085 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21086 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21087 if test "${gcc_cv_as_comdat_group+set}" = set; then
21088   echo $ECHO_N "(cached) $ECHO_C" >&6
21089 else
21090   gcc_cv_as_comdat_group=no
21091     if test $in_tree_gas = yes; then
21092     if test $in_tree_gas_is_elf = yes \
21093   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21094   then gcc_cv_as_comdat_group=yes
21095 fi
21096   elif test x$gcc_cv_as != x; then
21097     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21098     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100   (eval $ac_try) 2>&5
21101   ac_status=$?
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); }; }
21104     then
21105         gcc_cv_as_comdat_group=yes
21106     else
21107       echo "configure: failed program was" >&5
21108       cat conftest.s >&5
21109     fi
21110     rm -f conftest.o conftest.s
21111   fi
21112 fi
21113 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21114 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21115
21116 if test $gcc_cv_as_comdat_group = yes; then
21117   gcc_cv_as_comdat_group_percent=no
21118 else
21119  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21120 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21121 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21122   echo $ECHO_N "(cached) $ECHO_C" >&6
21123 else
21124   gcc_cv_as_comdat_group_percent=no
21125     if test $in_tree_gas = yes; then
21126     if test $in_tree_gas_is_elf = yes \
21127   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21128   then gcc_cv_as_comdat_group_percent=yes
21129 fi
21130   elif test x$gcc_cv_as != x; then
21131     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21132     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134   (eval $ac_try) 2>&5
21135   ac_status=$?
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); }; }
21138     then
21139         gcc_cv_as_comdat_group_percent=yes
21140     else
21141       echo "configure: failed program was" >&5
21142       cat conftest.s >&5
21143     fi
21144     rm -f conftest.o conftest.s
21145   fi
21146 fi
21147 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21148 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21149
21150 fi
21151 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21152   comdat_group=yes
21153   if test 0"$ld_date" -lt 20050308; then
21154     if test -n "$ld_date"; then
21155       # If there was date string, but was earlier than 2005-03-08, fail
21156       comdat_group=no
21157     elif test "$ld_vers_major" -lt 2; then
21158       comdat_group=no
21159     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21160       comdat_group=no
21161     fi
21162   fi
21163 else
21164   # assume linkers other than GNU ld don't support COMDAT group
21165   comdat_group=no
21166 fi
21167 if test $comdat_group = no; then
21168   gcc_cv_as_comdat_group=no
21169   gcc_cv_as_comdat_group_percent=no
21170 fi
21171
21172 cat >>confdefs.h <<_ACEOF
21173 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21174 _ACEOF
21175
21176
21177 # Thread-local storage - the check is heavily parametrized.
21178 conftest_s=
21179 tls_first_major=
21180 tls_first_minor=
21181 tls_as_opt=
21182 case "$target" in
21183   alpha*-*-*)
21184     conftest_s='
21185         .section ".tdata","awT",@progbits
21186 foo:    .long   25
21187         .text
21188         ldq     $27,__tls_get_addr($29)         !literal!1
21189         lda     $16,foo($29)                    !tlsgd!1
21190         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
21191         ldq     $27,__tls_get_addr($29)         !literal!2
21192         lda     $16,foo($29)                    !tlsldm!2
21193         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
21194         ldq     $1,foo($29)                     !gotdtprel
21195         ldah    $2,foo($29)                     !dtprelhi
21196         lda     $3,foo($2)                      !dtprello
21197         lda     $4,foo($29)                     !dtprel
21198         ldq     $1,foo($29)                     !gottprel
21199         ldah    $2,foo($29)                     !tprelhi
21200         lda     $3,foo($2)                      !tprello
21201         lda     $4,foo($29)                     !tprel'
21202         tls_first_major=2
21203         tls_first_minor=13
21204         tls_as_opt=--fatal-warnings
21205         ;;
21206   frv*-*-*)
21207     conftest_s='
21208         .section ".tdata","awT",@progbits
21209 x:      .long   25
21210         .text
21211         call    #gettlsoff(x)'
21212         tls_first_major=2
21213         tls_first_minor=14
21214         ;;
21215   hppa*-*-linux*)
21216     conftest_s='
21217 t1:     .reg    %r20
21218 t2:     .reg    %r21
21219 gp:     .reg    %r19
21220         .section ".tdata","awT",@progbits
21221 foo:    .long   25
21222         .text
21223         .align  4
21224         addil LT%foo-$tls_gdidx$,gp
21225         ldo RT%foo-$tls_gdidx$(%r1),%arg0
21226         b __tls_get_addr
21227         nop
21228         addil LT%foo-$tls_ldidx$,gp
21229         b __tls_get_addr
21230         ldo RT%foo-$tls_ldidx$(%r1),%arg0
21231         addil LR%foo-$tls_dtpoff$,%ret0
21232         ldo RR%foo-$tls_dtpoff$(%r1),%t1
21233         mfctl %cr27,%t1
21234         addil LT%foo-$tls_ieoff$,gp
21235         ldw RT%foo-$tls_ieoff$(%r1),%t2
21236         add %t1,%t2,%t3
21237         mfctl %cr27,%t1
21238         addil LR%foo-$tls_leoff$,%t1
21239         ldo RR%foo-$tls_leoff$(%r1),%t2'
21240         tls_first_major=2
21241         tls_first_minor=15
21242         tls_as_opt=--fatal-warnings
21243         ;;
21244   arm*-*-*)
21245     conftest_s='
21246         .section ".tdata","awT",%progbits
21247 foo:    .long   25
21248         .text
21249 .word foo(gottpoff)
21250 .word foo(tpoff)
21251 .word foo(tlsgd)
21252 .word foo(tlsldm)
21253 .word foo(tlsldo)'
21254         tls_first_major=2
21255         tls_first_minor=17
21256         ;;
21257   i[34567]86-*-*)
21258     conftest_s='
21259         .section ".tdata","awT",@progbits
21260 foo:    .long   25
21261         .text
21262         movl    %gs:0, %eax
21263         leal    foo@TLSGD(,%ebx,1), %eax
21264         leal    foo@TLSLDM(%ebx), %eax
21265         leal    foo@DTPOFF(%eax), %edx
21266         movl    foo@GOTTPOFF(%ebx), %eax
21267         subl    foo@GOTTPOFF(%ebx), %eax
21268         addl    foo@GOTNTPOFF(%ebx), %eax
21269         movl    foo@INDNTPOFF, %eax
21270         movl    $foo@TPOFF, %eax
21271         subl    $foo@TPOFF, %eax
21272         leal    foo@NTPOFF(%ecx), %eax'
21273         tls_first_major=2
21274         tls_first_minor=14
21275         tls_as_opt=--fatal-warnings
21276         ;;
21277   x86_64-*-*)
21278     conftest_s='
21279         .section ".tdata","awT",@progbits
21280 foo:    .long   25
21281         .text
21282         movq    %fs:0, %rax
21283         leaq    foo@TLSGD(%rip), %rdi
21284         leaq    foo@TLSLD(%rip), %rdi
21285         leaq    foo@DTPOFF(%rax), %rdx
21286         movq    foo@GOTTPOFF(%rip), %rax
21287         movq    $foo@TPOFF, %rax'
21288         tls_first_major=2
21289         tls_first_minor=14
21290         tls_as_opt=--fatal-warnings
21291         ;;
21292   ia64-*-*)
21293     conftest_s='
21294         .section ".tdata","awT",@progbits
21295 foo:    data8   25
21296         .text
21297         addl    r16 = @ltoff(@dtpmod(foo#)), gp
21298         addl    r17 = @ltoff(@dtprel(foo#)), gp
21299         addl    r18 = @ltoff(@tprel(foo#)), gp
21300         addl    r19 = @dtprel(foo#), gp
21301         adds    r21 = @dtprel(foo#), r13
21302         movl    r23 = @dtprel(foo#)
21303         addl    r20 = @tprel(foo#), gp
21304         adds    r22 = @tprel(foo#), r13
21305         movl    r24 = @tprel(foo#)'
21306         tls_first_major=2
21307         tls_first_minor=13
21308         tls_as_opt=--fatal-warnings
21309         ;;
21310   mips*-*-*)
21311     conftest_s='
21312         .section .tdata,"awT",@progbits
21313 x:
21314         .word 2
21315         .text
21316         addiu $4, $28, %tlsgd(x)
21317         addiu $4, $28, %tlsldm(x)
21318         lui $4, %dtprel_hi(x)
21319         addiu $4, $4, %dtprel_lo(x)
21320         lw $4, %gottprel(x)($28)
21321         lui $4, %tprel_hi(x)
21322         addiu $4, $4, %tprel_lo(x)'
21323         tls_first_major=2
21324         tls_first_minor=16
21325         tls_as_opt='-32 --fatal-warnings'
21326         ;;
21327   powerpc-*-*)
21328     conftest_s='
21329         .section ".tdata","awT",@progbits
21330         .align 2
21331 ld0:    .space 4
21332 ld1:    .space 4
21333 x1:     .space 4
21334 x2:     .space 4
21335 x3:     .space 4
21336         .text
21337         addi 3,31,ld0@got@tlsgd
21338         bl __tls_get_addr
21339         addi 3,31,x1@got@tlsld
21340         bl __tls_get_addr
21341         addi 9,3,x1@dtprel
21342         addis 9,3,x2@dtprel@ha
21343         addi 9,9,x2@dtprel@l
21344         lwz 9,x3@got@tprel(31)
21345         add 9,9,x@tls
21346         addi 9,2,x1@tprel
21347         addis 9,2,x2@tprel@ha
21348         addi 9,9,x2@tprel@l'
21349         tls_first_major=2
21350         tls_first_minor=14
21351         tls_as_opt="-a32 --fatal-warnings"
21352         ;;
21353   powerpc64-*-*)
21354     conftest_s='
21355         .section ".tdata","awT",@progbits
21356         .align 3
21357 ld0:    .space 8
21358 ld1:    .space 8
21359 x1:     .space 8
21360 x2:     .space 8
21361 x3:     .space 8
21362         .text
21363         addi 3,2,ld0@got@tlsgd
21364         bl .__tls_get_addr
21365         nop
21366         addi 3,2,ld1@toc
21367         bl .__tls_get_addr
21368         nop
21369         addi 3,2,x1@got@tlsld
21370         bl .__tls_get_addr
21371         nop
21372         addi 9,3,x1@dtprel
21373         bl .__tls_get_addr
21374         nop
21375         addis 9,3,x2@dtprel@ha
21376         addi 9,9,x2@dtprel@l
21377         bl .__tls_get_addr
21378         nop
21379         ld 9,x3@got@dtprel(2)
21380         add 9,9,3
21381         bl .__tls_get_addr
21382         nop'
21383         tls_first_major=2
21384         tls_first_minor=14
21385         tls_as_opt="-a64 --fatal-warnings"
21386         ;;
21387   s390-*-*)
21388     conftest_s='
21389         .section ".tdata","awT",@progbits
21390 foo:    .long   25
21391         .text
21392         .long   foo@TLSGD
21393         .long   foo@TLSLDM
21394         .long   foo@DTPOFF
21395         .long   foo@NTPOFF
21396         .long   foo@GOTNTPOFF
21397         .long   foo@INDNTPOFF
21398         l       %r1,foo@GOTNTPOFF(%r12)
21399         l       %r1,0(%r1):tls_load:foo
21400         bas     %r14,0(%r1,%r13):tls_gdcall:foo
21401         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
21402         tls_first_major=2
21403         tls_first_minor=14
21404         tls_as_opt="-m31 --fatal-warnings"
21405         ;;
21406   s390x-*-*)
21407     conftest_s='
21408         .section ".tdata","awT",@progbits
21409 foo:    .long   25
21410         .text
21411         .quad   foo@TLSGD
21412         .quad   foo@TLSLDM
21413         .quad   foo@DTPOFF
21414         .quad   foo@NTPOFF
21415         .quad   foo@GOTNTPOFF
21416         lg      %r1,foo@GOTNTPOFF(%r12)
21417         larl    %r1,foo@INDNTPOFF
21418         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
21419         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21420         tls_first_major=2
21421         tls_first_minor=14
21422         tls_as_opt="-m64 -Aesame --fatal-warnings"
21423         ;;
21424   sh-*-* | sh[34]-*-*)
21425     conftest_s='
21426         .section ".tdata","awT",@progbits
21427 foo:    .long   25
21428         .text
21429         .long   foo@TLSGD
21430         .long   foo@TLSLDM
21431         .long   foo@DTPOFF
21432         .long   foo@GOTTPOFF
21433         .long   foo@TPOFF'
21434         tls_first_major=2
21435         tls_first_minor=13
21436         tls_as_opt=--fatal-warnings
21437         ;;
21438   sparc*-*-*)
21439     case "$target" in
21440       sparc*-sun-solaris2.[56789]*)
21441         # TLS was introduced in the Solaris 9 4/04 release but
21442         # we do not enable it by default on Solaris 9 either.
21443         if test "x$enable_tls" = xyes ; then
21444           on_solaris=yes
21445         else
21446           enable_tls=no;
21447         fi
21448         ;;
21449       sparc*-sun-solaris2.*)
21450         on_solaris=yes
21451         ;;
21452       *)
21453         on_solaris=no
21454         ;;
21455     esac
21456     if test x$on_solaris = xyes && test x$gas_flag = xno; then
21457       conftest_s='
21458         .section ".tdata",#alloc,#write,#tls
21459 foo:    .long   25
21460         .text
21461         sethi   %tgd_hi22(foo), %o0
21462         add     %o0, %tgd_lo10(foo), %o1
21463         add     %l7, %o1, %o0, %tgd_add(foo)
21464         call    __tls_get_addr, %tgd_call(foo)
21465         sethi   %tldm_hi22(foo), %l1
21466         add     %l1, %tldm_lo10(foo), %l2
21467         add     %l7, %l2, %o0, %tldm_add(foo)
21468         call    __tls_get_addr, %tldm_call(foo)
21469         sethi   %tldo_hix22(foo), %l3
21470         xor     %l3, %tldo_lox10(foo), %l4
21471         add     %o0, %l4, %l5, %tldo_add(foo)
21472         sethi   %tie_hi22(foo), %o3
21473         add     %o3, %tie_lo10(foo), %o3
21474         ld      [%l7 + %o3], %o2, %tie_ld(foo)
21475         add     %g7, %o2, %o4, %tie_add(foo)
21476         sethi   %tle_hix22(foo), %l1
21477         xor     %l1, %tle_lox10(foo), %o5
21478         ld      [%g7 + %o5], %o1'
21479         tls_first_major=0
21480         tls_first_minor=0
21481     else
21482       conftest_s='
21483         .section ".tdata","awT",@progbits
21484 foo:    .long   25
21485         .text
21486         sethi   %tgd_hi22(foo), %o0
21487         add     %o0, %tgd_lo10(foo), %o1
21488         add     %l7, %o1, %o0, %tgd_add(foo)
21489         call    __tls_get_addr, %tgd_call(foo)
21490         sethi   %tldm_hi22(foo), %l1
21491         add     %l1, %tldm_lo10(foo), %l2
21492         add     %l7, %l2, %o0, %tldm_add(foo)
21493         call    __tls_get_addr, %tldm_call(foo)
21494         sethi   %tldo_hix22(foo), %l3
21495         xor     %l3, %tldo_lox10(foo), %l4
21496         add     %o0, %l4, %l5, %tldo_add(foo)
21497         sethi   %tie_hi22(foo), %o3
21498         add     %o3, %tie_lo10(foo), %o3
21499         ld      [%l7 + %o3], %o2, %tie_ld(foo)
21500         add     %g7, %o2, %o4, %tie_add(foo)
21501         sethi   %tle_hix22(foo), %l1
21502         xor     %l1, %tle_lox10(foo), %o5
21503         ld      [%g7 + %o5], %o1'
21504         tls_first_major=2
21505         tls_first_minor=14
21506         tls_as_opt="-32 --fatal-warnings"
21507       fi
21508         ;;
21509 esac
21510 set_have_as_tls=no
21511 if test "x$enable_tls" = xno ; then
21512   : # TLS explicitly disabled.
21513 elif test "x$enable_tls" = xyes ; then
21514   set_have_as_tls=yes # TLS explicitly enabled.
21515 elif test -z "$tls_first_major"; then
21516   : # If we don't have a check, assume no support.
21517 else
21518   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21519 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21520 if test "${gcc_cv_as_tls+set}" = set; then
21521   echo $ECHO_N "(cached) $ECHO_C" >&6
21522 else
21523   gcc_cv_as_tls=no
21524     if test $in_tree_gas = yes; then
21525     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21526   then gcc_cv_as_tls=yes
21527 fi
21528   elif test x$gcc_cv_as != x; then
21529     echo "$conftest_s" > conftest.s
21530     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532   (eval $ac_try) 2>&5
21533   ac_status=$?
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); }; }
21536     then
21537         gcc_cv_as_tls=yes
21538     else
21539       echo "configure: failed program was" >&5
21540       cat conftest.s >&5
21541     fi
21542     rm -f conftest.o conftest.s
21543   fi
21544 fi
21545 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21546 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21547 if test $gcc_cv_as_tls = yes; then
21548   set_have_as_tls=yes
21549 fi
21550 fi
21551 if test $set_have_as_tls = yes ; then
21552
21553 cat >>confdefs.h <<\_ACEOF
21554 #define HAVE_AS_TLS 1
21555 _ACEOF
21556
21557 fi
21558
21559 # Target-specific assembler checks.
21560
21561 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21562 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21563 gcc_cv_ld_static_dynamic=no
21564 if test $in_tree_ld = yes ; then
21565   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21566     gcc_cv_ld_static_dynamic=yes
21567   fi
21568 elif test x$gcc_cv_ld != x; then
21569         # Check if linker supports -Bstatic/-Bdynamic option
21570         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21571           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21572                 gcc_cv_ld_static_dynamic=yes
21573         fi
21574 fi
21575 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21576
21577 cat >>confdefs.h <<\_ACEOF
21578 #define HAVE_LD_STATIC_DYNAMIC 1
21579 _ACEOF
21580
21581 fi
21582 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21583 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21584
21585 if test x"$demangler_in_ld" = xyes; then
21586   echo "$as_me:$LINENO: checking linker --demangle support" >&5
21587 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21588   gcc_cv_ld_demangle=no
21589   if test $in_tree_ld = yes; then
21590     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
21591       gcc_cv_ld_demangle=yes
21592     fi
21593   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21594     # Check if the GNU linker supports --demangle option
21595     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21596       gcc_cv_ld_demangle=yes
21597     fi
21598   fi
21599   if test x"$gcc_cv_ld_demangle" = xyes; then
21600
21601 cat >>confdefs.h <<\_ACEOF
21602 #define HAVE_LD_DEMANGLE 1
21603 _ACEOF
21604
21605   fi
21606   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21607 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21608 fi
21609
21610 case "$target" in
21611   # All TARGET_ABI_OSF targets.
21612   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21613     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21614 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21615 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21616   echo $ECHO_N "(cached) $ECHO_C" >&6
21617 else
21618   gcc_cv_as_alpha_explicit_relocs=no
21619     if test $in_tree_gas = yes; then
21620     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21621   then gcc_cv_as_alpha_explicit_relocs=yes
21622 fi
21623   elif test x$gcc_cv_as != x; then
21624     echo '      .set nomacro
21625         .text
21626         extbl   $3, $2, $3      !lituse_bytoff!1
21627         ldq     $2, a($29)      !literal!1
21628         ldq     $4, b($29)      !literal!2
21629         ldq_u   $3, 0($2)       !lituse_base!1
21630         ldq     $27, f($29)     !literal!5
21631         jsr     $26, ($27), f   !lituse_jsr!5
21632         ldah    $29, 0($26)     !gpdisp!3
21633         lda     $0, c($29)      !gprel
21634         ldah    $1, d($29)      !gprelhigh
21635         lda     $1, d($1)       !gprellow
21636         lda     $29, 0($29)     !gpdisp!3' > conftest.s
21637     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639   (eval $ac_try) 2>&5
21640   ac_status=$?
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); }; }
21643     then
21644         gcc_cv_as_alpha_explicit_relocs=yes
21645     else
21646       echo "configure: failed program was" >&5
21647       cat conftest.s >&5
21648     fi
21649     rm -f conftest.o conftest.s
21650   fi
21651 fi
21652 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21653 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21654 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21655
21656 cat >>confdefs.h <<\_ACEOF
21657 #define HAVE_AS_EXPLICIT_RELOCS 1
21658 _ACEOF
21659
21660 fi
21661     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21662 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21663 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21664   echo $ECHO_N "(cached) $ECHO_C" >&6
21665 else
21666   gcc_cv_as_alpha_jsrdirect_relocs=no
21667     if test $in_tree_gas = yes; then
21668     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21669   then gcc_cv_as_alpha_jsrdirect_relocs=yes
21670 fi
21671   elif test x$gcc_cv_as != x; then
21672     echo '      .set nomacro
21673         .text
21674         ldq     $27, a($29)     !literal!1
21675         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
21676     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678   (eval $ac_try) 2>&5
21679   ac_status=$?
21680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681   (exit $ac_status); }; }
21682     then
21683         gcc_cv_as_alpha_jsrdirect_relocs=yes
21684     else
21685       echo "configure: failed program was" >&5
21686       cat conftest.s >&5
21687     fi
21688     rm -f conftest.o conftest.s
21689   fi
21690 fi
21691 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21692 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21693 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21694
21695 cat >>confdefs.h <<\_ACEOF
21696 #define HAVE_AS_JSRDIRECT_RELOCS 1
21697 _ACEOF
21698
21699 fi
21700     ;;
21701
21702   cris-*-*)
21703     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21704 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21705 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21706   echo $ECHO_N "(cached) $ECHO_C" >&6
21707 else
21708   gcc_cv_as_cris_no_mul_bug=no
21709     if test $in_tree_gas = yes; then
21710     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21711   then gcc_cv_as_cris_no_mul_bug=yes
21712 fi
21713   elif test x$gcc_cv_as != x; then
21714     echo '.text' > conftest.s
21715     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717   (eval $ac_try) 2>&5
21718   ac_status=$?
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); }; }
21721     then
21722         gcc_cv_as_cris_no_mul_bug=yes
21723     else
21724       echo "configure: failed program was" >&5
21725       cat conftest.s >&5
21726     fi
21727     rm -f conftest.o conftest.s
21728   fi
21729 fi
21730 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21731 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21732 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21733
21734 cat >>confdefs.h <<\_ACEOF
21735 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21736 _ACEOF
21737
21738 fi
21739     ;;
21740
21741   sparc*-*-*)
21742     echo "$as_me:$LINENO: checking assembler for .register" >&5
21743 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21744 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21745   echo $ECHO_N "(cached) $ECHO_C" >&6
21746 else
21747   gcc_cv_as_sparc_register_op=no
21748   if test x$gcc_cv_as != x; then
21749     echo '.register %g2, #scratch' > conftest.s
21750     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752   (eval $ac_try) 2>&5
21753   ac_status=$?
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); }; }
21756     then
21757         gcc_cv_as_sparc_register_op=yes
21758     else
21759       echo "configure: failed program was" >&5
21760       cat conftest.s >&5
21761     fi
21762     rm -f conftest.o conftest.s
21763   fi
21764 fi
21765 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21766 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21767 if test $gcc_cv_as_sparc_register_op = yes; then
21768
21769 cat >>confdefs.h <<\_ACEOF
21770 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21771 _ACEOF
21772
21773 fi
21774
21775     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21776 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21777 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21778   echo $ECHO_N "(cached) $ECHO_C" >&6
21779 else
21780   gcc_cv_as_sparc_relax=no
21781   if test x$gcc_cv_as != x; then
21782     echo '.text' > conftest.s
21783     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785   (eval $ac_try) 2>&5
21786   ac_status=$?
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); }; }
21789     then
21790         gcc_cv_as_sparc_relax=yes
21791     else
21792       echo "configure: failed program was" >&5
21793       cat conftest.s >&5
21794     fi
21795     rm -f conftest.o conftest.s
21796   fi
21797 fi
21798 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21799 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21800 if test $gcc_cv_as_sparc_relax = yes; then
21801
21802 cat >>confdefs.h <<\_ACEOF
21803 #define HAVE_AS_RELAX_OPTION 1
21804 _ACEOF
21805
21806 fi
21807
21808     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21809 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21810 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21811   echo $ECHO_N "(cached) $ECHO_C" >&6
21812 else
21813   gcc_cv_as_sparc_ua_pcrel=no
21814   if test x$gcc_cv_as != x; then
21815     echo '.text
21816 foo:
21817         nop
21818 .data
21819 .align 4
21820 .byte 0
21821 .uaword %r_disp32(foo)' > conftest.s
21822     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824   (eval $ac_try) 2>&5
21825   ac_status=$?
21826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); }; }
21828     then
21829         if test x$gcc_cv_ld != x \
21830        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
21831          gcc_cv_as_sparc_ua_pcrel=yes
21832        fi
21833        rm -f conftest
21834     else
21835       echo "configure: failed program was" >&5
21836       cat conftest.s >&5
21837     fi
21838     rm -f conftest.o conftest.s
21839   fi
21840 fi
21841 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21842 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21843 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21844
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_AS_SPARC_UA_PCREL 1
21847 _ACEOF
21848
21849
21850       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21851 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21852 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21853   echo $ECHO_N "(cached) $ECHO_C" >&6
21854 else
21855   gcc_cv_as_sparc_ua_pcrel_hidden=no
21856   if test x$gcc_cv_as != x; then
21857     echo '.data
21858 .align 4
21859 .byte 0x31
21860 .uaword %r_disp32(foo)
21861 .byte 0x32, 0x33, 0x34
21862 .global foo
21863 .hidden foo
21864 foo:
21865 .skip 4' > conftest.s
21866     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868   (eval $ac_try) 2>&5
21869   ac_status=$?
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); }; }
21872     then
21873         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
21874          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
21875          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
21876             | grep ' 31000000 07323334' > /dev/null 2>&1; then
21877             if $gcc_cv_objdump -R conftest 2> /dev/null \
21878                | grep 'DISP32' > /dev/null 2>&1; then
21879                 :
21880             else
21881                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
21882             fi
21883          fi
21884          rm -f conftest
21885     else
21886       echo "configure: failed program was" >&5
21887       cat conftest.s >&5
21888     fi
21889     rm -f conftest.o conftest.s
21890   fi
21891 fi
21892 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21893 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21894 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21895
21896 cat >>confdefs.h <<\_ACEOF
21897 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21898 _ACEOF
21899
21900 fi
21901
21902 fi # unaligned pcrel relocs
21903
21904     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21905 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21906 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21907   echo $ECHO_N "(cached) $ECHO_C" >&6
21908 else
21909   gcc_cv_as_sparc_offsetable_lo10=no
21910   if test x$gcc_cv_as != x; then
21911     echo '.text
21912         or %g1, %lo(ab) + 12, %g1
21913         or %g1, %lo(ab + 12), %g1' > conftest.s
21914     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916   (eval $ac_try) 2>&5
21917   ac_status=$?
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); }; }
21920     then
21921         if test x$gcc_cv_objdump != x \
21922        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
21923           | grep ' 82106000 82106000' > /dev/null 2>&1; then
21924          gcc_cv_as_sparc_offsetable_lo10=yes
21925        fi
21926     else
21927       echo "configure: failed program was" >&5
21928       cat conftest.s >&5
21929     fi
21930     rm -f conftest.o conftest.s
21931   fi
21932 fi
21933 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21934 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21935 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21936
21937 cat >>confdefs.h <<\_ACEOF
21938 #define HAVE_AS_OFFSETABLE_LO10 1
21939 _ACEOF
21940
21941 fi
21942     ;;
21943
21944   i[34567]86-*-* | x86_64-*-*)
21945     case $target_os in
21946       cygwin* | pe | mingw32*)
21947         # Used for DWARF 2 in PE
21948         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21949 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21950 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21951   echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953   gcc_cv_as_ix86_pe_secrel32=no
21954     if test $in_tree_gas = yes; then
21955     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21956   then gcc_cv_as_ix86_pe_secrel32=yes
21957 fi
21958   elif test x$gcc_cv_as != x; then
21959     echo '.text
21960 foo:    nop
21961 .data
21962         .secrel32 foo' > conftest.s
21963     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965   (eval $ac_try) 2>&5
21966   ac_status=$?
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); }; }
21969     then
21970         if test x$gcc_cv_ld != x \
21971            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
21972              gcc_cv_as_ix86_pe_secrel32=yes
21973            fi
21974            rm -f conftest
21975     else
21976       echo "configure: failed program was" >&5
21977       cat conftest.s >&5
21978     fi
21979     rm -f conftest.o conftest.s
21980   fi
21981 fi
21982 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21983 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21984 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21985
21986 cat >>confdefs.h <<\_ACEOF
21987 #define HAVE_GAS_PE_SECREL32_RELOC 1
21988 _ACEOF
21989
21990 fi
21991         ;;
21992     esac
21993
21994     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21995 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21996 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21997   echo $ECHO_N "(cached) $ECHO_C" >&6
21998 else
21999   gcc_cv_as_ix86_filds_fists=no
22000     if test $in_tree_gas = yes; then
22001     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22002   then gcc_cv_as_ix86_filds_fists=yes
22003 fi
22004   elif test x$gcc_cv_as != x; then
22005     echo 'filds mem; fists mem' > conftest.s
22006     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008   (eval $ac_try) 2>&5
22009   ac_status=$?
22010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); }; }
22012     then
22013         gcc_cv_as_ix86_filds_fists=yes
22014     else
22015       echo "configure: failed program was" >&5
22016       cat conftest.s >&5
22017     fi
22018     rm -f conftest.o conftest.s
22019   fi
22020 fi
22021 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
22022 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
22023 if test $gcc_cv_as_ix86_filds_fists = yes; then
22024
22025 cat >>confdefs.h <<\_ACEOF
22026 #define HAVE_GAS_FILDS_FISTS 1
22027 _ACEOF
22028
22029 fi
22030
22031     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
22032 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
22033 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
22034   echo $ECHO_N "(cached) $ECHO_C" >&6
22035 else
22036   gcc_cv_as_ix86_cmov_sun_syntax=no
22037   if test x$gcc_cv_as != x; then
22038     echo 'cmovl.l %edx, %eax' > conftest.s
22039     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22041   (eval $ac_try) 2>&5
22042   ac_status=$?
22043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044   (exit $ac_status); }; }
22045     then
22046         gcc_cv_as_ix86_cmov_sun_syntax=yes
22047     else
22048       echo "configure: failed program was" >&5
22049       cat conftest.s >&5
22050     fi
22051     rm -f conftest.o conftest.s
22052   fi
22053 fi
22054 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22055 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
22056 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22057
22058 cat >>confdefs.h <<\_ACEOF
22059 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
22060 _ACEOF
22061
22062 fi
22063
22064     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22065 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22066 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22067   echo $ECHO_N "(cached) $ECHO_C" >&6
22068 else
22069   gcc_cv_as_ix86_ffreep=no
22070   if test x$gcc_cv_as != x; then
22071     echo 'ffreep %st(1)' > conftest.s
22072     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074   (eval $ac_try) 2>&5
22075   ac_status=$?
22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077   (exit $ac_status); }; }
22078     then
22079         gcc_cv_as_ix86_ffreep=yes
22080     else
22081       echo "configure: failed program was" >&5
22082       cat conftest.s >&5
22083     fi
22084     rm -f conftest.o conftest.s
22085   fi
22086 fi
22087 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22088 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22089 if test $gcc_cv_as_ix86_ffreep = yes; then
22090
22091 cat >>confdefs.h <<\_ACEOF
22092 #define HAVE_AS_IX86_FFREEP 1
22093 _ACEOF
22094
22095 fi
22096
22097     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22098 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22099 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22100   echo $ECHO_N "(cached) $ECHO_C" >&6
22101 else
22102   gcc_cv_as_ix86_sahf=no
22103   if test x$gcc_cv_as != x; then
22104     echo 'sahf' > conftest.s
22105     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22107   (eval $ac_try) 2>&5
22108   ac_status=$?
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); }; }
22111     then
22112         gcc_cv_as_ix86_sahf=yes
22113     else
22114       echo "configure: failed program was" >&5
22115       cat conftest.s >&5
22116     fi
22117     rm -f conftest.o conftest.s
22118   fi
22119 fi
22120 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22121 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22122 if test $gcc_cv_as_ix86_sahf = yes; then
22123
22124 cat >>confdefs.h <<\_ACEOF
22125 #define HAVE_AS_IX86_SAHF 1
22126 _ACEOF
22127
22128 fi
22129
22130     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22131 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22132 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22133   echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135   gcc_cv_as_ix86_diff_sect_delta=no
22136   if test x$gcc_cv_as != x; then
22137     echo '.section .rodata
22138 .L1:
22139         .long .L2-.L1
22140         .long .L3-.L1
22141         .text
22142 .L3:    nop
22143 .L2:    nop' > conftest.s
22144     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22146   (eval $ac_try) 2>&5
22147   ac_status=$?
22148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149   (exit $ac_status); }; }
22150     then
22151         gcc_cv_as_ix86_diff_sect_delta=yes
22152     else
22153       echo "configure: failed program was" >&5
22154       cat conftest.s >&5
22155     fi
22156     rm -f conftest.o conftest.s
22157   fi
22158 fi
22159 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22160 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22161 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22162
22163 cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22165 _ACEOF
22166
22167 fi
22168
22169     # This one is used unconditionally by i386.[ch]; it is to be defined
22170     # to 1 if the feature is present, 0 otherwise.
22171     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22172 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22173 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22174   echo $ECHO_N "(cached) $ECHO_C" >&6
22175 else
22176   gcc_cv_as_ix86_gotoff_in_data=no
22177     if test $in_tree_gas = yes; then
22178     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22179   then gcc_cv_as_ix86_gotoff_in_data=yes
22180 fi
22181   elif test x$gcc_cv_as != x; then
22182     echo '      .text
22183 .L0:
22184         nop
22185         .data
22186         .long .L0@GOTOFF' > conftest.s
22187     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22189   (eval $ac_try) 2>&5
22190   ac_status=$?
22191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); }; }
22193     then
22194         gcc_cv_as_ix86_gotoff_in_data=yes
22195     else
22196       echo "configure: failed program was" >&5
22197       cat conftest.s >&5
22198     fi
22199     rm -f conftest.o conftest.s
22200   fi
22201 fi
22202 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22203 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22204
22205
22206 cat >>confdefs.h <<_ACEOF
22207 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22208 _ACEOF
22209
22210     ;;
22211
22212   ia64*-*-*)
22213     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22214 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22215 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22216   echo $ECHO_N "(cached) $ECHO_C" >&6
22217 else
22218   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22219     if test $in_tree_gas = yes; then
22220     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22221   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22222 fi
22223   elif test x$gcc_cv_as != x; then
22224     echo '      .text
22225         addl r15 = @ltoffx(x#), gp
22226         ;;
22227         ld8.mov r16 = [r15], x#' > conftest.s
22228     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230   (eval $ac_try) 2>&5
22231   ac_status=$?
22232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233   (exit $ac_status); }; }
22234     then
22235         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22236     else
22237       echo "configure: failed program was" >&5
22238       cat conftest.s >&5
22239     fi
22240     rm -f conftest.o conftest.s
22241   fi
22242 fi
22243 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22244 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22245 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22246
22247 cat >>confdefs.h <<\_ACEOF
22248 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22249 _ACEOF
22250
22251 fi
22252
22253     ;;
22254
22255   powerpc*-*-*)
22256     case $target in
22257       *-*-aix*) conftest_s='    .machine "pwr5"
22258         .csect .text[PR]
22259         mfcr 3,128';;
22260       *-*-darwin*)
22261         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22262 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22263 if test "${gcc_cv_as_machine_directive+set}" = set; then
22264   echo $ECHO_N "(cached) $ECHO_C" >&6
22265 else
22266   gcc_cv_as_machine_directive=no
22267   if test x$gcc_cv_as != x; then
22268     echo '      .machine ppc7400' > conftest.s
22269     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271   (eval $ac_try) 2>&5
22272   ac_status=$?
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); }; }
22275     then
22276         gcc_cv_as_machine_directive=yes
22277     else
22278       echo "configure: failed program was" >&5
22279       cat conftest.s >&5
22280     fi
22281     rm -f conftest.o conftest.s
22282   fi
22283 fi
22284 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22285 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22286
22287         if test x$gcc_cv_as_machine_directive != xyes; then
22288           echo "*** This target requires an assembler supporting \".machine\"" >&2
22289           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22290           test x$build = x$target && exit 1
22291         fi
22292         conftest_s='    .text
22293         mfcr r3,128';;
22294       *) conftest_s='   .machine power4
22295         .text
22296         mfcr 3,128';;
22297     esac
22298
22299     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22300 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22301 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22302   echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304   gcc_cv_as_powerpc_mfcrf=no
22305     if test $in_tree_gas = yes; then
22306     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22307   then gcc_cv_as_powerpc_mfcrf=yes
22308 fi
22309   elif test x$gcc_cv_as != x; then
22310     echo "$conftest_s" > conftest.s
22311     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313   (eval $ac_try) 2>&5
22314   ac_status=$?
22315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316   (exit $ac_status); }; }
22317     then
22318         gcc_cv_as_powerpc_mfcrf=yes
22319     else
22320       echo "configure: failed program was" >&5
22321       cat conftest.s >&5
22322     fi
22323     rm -f conftest.o conftest.s
22324   fi
22325 fi
22326 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22327 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22328 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22329
22330 cat >>confdefs.h <<\_ACEOF
22331 #define HAVE_AS_MFCRF 1
22332 _ACEOF
22333
22334 fi
22335
22336     case $target in
22337       *-*-aix*) conftest_s='    .machine "pwr5"
22338         .csect .text[PR]
22339         popcntb 3,3';;
22340       *) conftest_s='   .machine power5
22341         .text
22342         popcntb 3,3';;
22343     esac
22344
22345     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22346 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22347 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22348   echo $ECHO_N "(cached) $ECHO_C" >&6
22349 else
22350   gcc_cv_as_powerpc_popcntb=no
22351     if test $in_tree_gas = yes; then
22352     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22353   then gcc_cv_as_powerpc_popcntb=yes
22354 fi
22355   elif test x$gcc_cv_as != x; then
22356     echo "$conftest_s" > conftest.s
22357     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359   (eval $ac_try) 2>&5
22360   ac_status=$?
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); }; }
22363     then
22364         gcc_cv_as_powerpc_popcntb=yes
22365     else
22366       echo "configure: failed program was" >&5
22367       cat conftest.s >&5
22368     fi
22369     rm -f conftest.o conftest.s
22370   fi
22371 fi
22372 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22373 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22374 if test $gcc_cv_as_powerpc_popcntb = yes; then
22375
22376 cat >>confdefs.h <<\_ACEOF
22377 #define HAVE_AS_POPCNTB 1
22378 _ACEOF
22379
22380 fi
22381
22382     case $target in
22383       *-*-aix*) conftest_s='    .machine "pwr5x"
22384         .csect .text[PR]
22385         frin 1,1';;
22386       *) conftest_s='   .machine power5
22387         .text
22388         frin 1,1';;
22389     esac
22390
22391     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22392 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22393 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22394   echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396   gcc_cv_as_powerpc_fprnd=no
22397     if test $in_tree_gas = yes; then
22398     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22399   then gcc_cv_as_powerpc_fprnd=yes
22400 fi
22401   elif test x$gcc_cv_as != x; then
22402     echo "$conftest_s" > conftest.s
22403     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405   (eval $ac_try) 2>&5
22406   ac_status=$?
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); }; }
22409     then
22410         gcc_cv_as_powerpc_fprnd=yes
22411     else
22412       echo "configure: failed program was" >&5
22413       cat conftest.s >&5
22414     fi
22415     rm -f conftest.o conftest.s
22416   fi
22417 fi
22418 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22419 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22420 if test $gcc_cv_as_powerpc_fprnd = yes; then
22421
22422 cat >>confdefs.h <<\_ACEOF
22423 #define HAVE_AS_FPRND 1
22424 _ACEOF
22425
22426 fi
22427
22428     case $target in
22429       *-*-aix*) conftest_s='    .machine "pwr6"
22430         .csect .text[PR]
22431         mffgpr 1,3';;
22432       *) conftest_s='   .machine power6
22433         .text
22434         mffgpr 1,3';;
22435     esac
22436
22437     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22438 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22439 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22440   echo $ECHO_N "(cached) $ECHO_C" >&6
22441 else
22442   gcc_cv_as_powerpc_mfpgpr=no
22443     if test $in_tree_gas = yes; then
22444     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22445   then gcc_cv_as_powerpc_mfpgpr=yes
22446 fi
22447   elif test x$gcc_cv_as != x; then
22448     echo "$conftest_s" > conftest.s
22449     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451   (eval $ac_try) 2>&5
22452   ac_status=$?
22453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454   (exit $ac_status); }; }
22455     then
22456         gcc_cv_as_powerpc_mfpgpr=yes
22457     else
22458       echo "configure: failed program was" >&5
22459       cat conftest.s >&5
22460     fi
22461     rm -f conftest.o conftest.s
22462   fi
22463 fi
22464 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22465 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22466 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22467
22468 cat >>confdefs.h <<\_ACEOF
22469 #define HAVE_AS_MFPGPR 1
22470 _ACEOF
22471
22472 fi
22473
22474     case $target in
22475       *-*-aix*) conftest_s='    .csect .text[PR]
22476 LCF..0:
22477         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22478       *-*-darwin*)
22479         conftest_s='    .text
22480 LCF0:
22481         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22482       *) conftest_s='   .text
22483 .LCF0:
22484         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22485     esac
22486
22487     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22488 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22489 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22490   echo $ECHO_N "(cached) $ECHO_C" >&6
22491 else
22492   gcc_cv_as_powerpc_rel16=no
22493     if test $in_tree_gas = yes; then
22494     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22495   then gcc_cv_as_powerpc_rel16=yes
22496 fi
22497   elif test x$gcc_cv_as != x; then
22498     echo "$conftest_s" > conftest.s
22499     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501   (eval $ac_try) 2>&5
22502   ac_status=$?
22503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504   (exit $ac_status); }; }
22505     then
22506         gcc_cv_as_powerpc_rel16=yes
22507     else
22508       echo "configure: failed program was" >&5
22509       cat conftest.s >&5
22510     fi
22511     rm -f conftest.o conftest.s
22512   fi
22513 fi
22514 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22515 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22516 if test $gcc_cv_as_powerpc_rel16 = yes; then
22517
22518 cat >>confdefs.h <<\_ACEOF
22519 #define HAVE_AS_REL16 1
22520 _ACEOF
22521
22522 fi
22523
22524     case $target in
22525       *-*-aix*) conftest_s='    .machine "pwr6"
22526         .csect .text[PR]
22527         cmpb 3,4,5';;
22528       *) conftest_s='   .machine power6
22529         .text
22530         cmpb 3,4,5';;
22531     esac
22532
22533     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22534 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22535 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22536   echo $ECHO_N "(cached) $ECHO_C" >&6
22537 else
22538   gcc_cv_as_powerpc_cmpb=no
22539     if test $in_tree_gas = yes; then
22540     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22541   then gcc_cv_as_powerpc_cmpb=yes
22542 fi
22543   elif test x$gcc_cv_as != x; then
22544     echo "$conftest_s" > conftest.s
22545     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22547   (eval $ac_try) 2>&5
22548   ac_status=$?
22549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550   (exit $ac_status); }; }
22551     then
22552         gcc_cv_as_powerpc_cmpb=yes
22553     else
22554       echo "configure: failed program was" >&5
22555       cat conftest.s >&5
22556     fi
22557     rm -f conftest.o conftest.s
22558   fi
22559 fi
22560 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22561 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22562 if test $gcc_cv_as_powerpc_cmpb = yes; then
22563
22564 cat >>confdefs.h <<\_ACEOF
22565 #define HAVE_AS_CMPB 1
22566 _ACEOF
22567
22568 fi
22569
22570     case $target in
22571       *-*-aix*) conftest_s='    .machine "pwr6"
22572         .csect .text[PR]
22573         dadd 1,2,3';;
22574       *) conftest_s='   .machine power6
22575         .text
22576         dadd 1,2,3';;
22577     esac
22578
22579     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22580 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22581 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22582   echo $ECHO_N "(cached) $ECHO_C" >&6
22583 else
22584   gcc_cv_as_powerpc_dfp=no
22585     if test $in_tree_gas = yes; then
22586     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22587   then gcc_cv_as_powerpc_dfp=yes
22588 fi
22589   elif test x$gcc_cv_as != x; then
22590     echo "$conftest_s" > conftest.s
22591     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22593   (eval $ac_try) 2>&5
22594   ac_status=$?
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); }; }
22597     then
22598         gcc_cv_as_powerpc_dfp=yes
22599     else
22600       echo "configure: failed program was" >&5
22601       cat conftest.s >&5
22602     fi
22603     rm -f conftest.o conftest.s
22604   fi
22605 fi
22606 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22607 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22608 if test $gcc_cv_as_powerpc_dfp = yes; then
22609
22610 cat >>confdefs.h <<\_ACEOF
22611 #define HAVE_AS_DFP 1
22612 _ACEOF
22613
22614 fi
22615
22616     case $target in
22617       *-*-aix*) conftest_s='    .machine "pwr7"
22618         .csect .text[PR]
22619         lxvd2x 1,2,3';;
22620       *) conftest_s='   .machine power7
22621         .text
22622         lxvd2x 1,2,3';;
22623     esac
22624
22625     echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
22626 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
22627 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
22628   echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630   gcc_cv_as_powerpc_vsx=no
22631     if test $in_tree_gas = yes; then
22632     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22633   then gcc_cv_as_powerpc_vsx=yes
22634 fi
22635   elif test x$gcc_cv_as != x; then
22636     echo "$conftest_s" > conftest.s
22637     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639   (eval $ac_try) 2>&5
22640   ac_status=$?
22641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); }; }
22643     then
22644         gcc_cv_as_powerpc_vsx=yes
22645     else
22646       echo "configure: failed program was" >&5
22647       cat conftest.s >&5
22648     fi
22649     rm -f conftest.o conftest.s
22650   fi
22651 fi
22652 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
22653 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
22654 if test $gcc_cv_as_powerpc_vsx = yes; then
22655
22656 cat >>confdefs.h <<\_ACEOF
22657 #define HAVE_AS_VSX 1
22658 _ACEOF
22659
22660 fi
22661
22662     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22663 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22664 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22665   echo $ECHO_N "(cached) $ECHO_C" >&6
22666 else
22667   gcc_cv_as_powerpc_gnu_attribute=no
22668     if test $in_tree_gas = yes; then
22669     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22670   then gcc_cv_as_powerpc_gnu_attribute=yes
22671 fi
22672   elif test x$gcc_cv_as != x; then
22673     echo '.gnu_attribute 4,1' > conftest.s
22674     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22676   (eval $ac_try) 2>&5
22677   ac_status=$?
22678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679   (exit $ac_status); }; }
22680     then
22681         gcc_cv_as_powerpc_gnu_attribute=yes
22682     else
22683       echo "configure: failed program was" >&5
22684       cat conftest.s >&5
22685     fi
22686     rm -f conftest.o conftest.s
22687   fi
22688 fi
22689 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22690 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22691 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22692
22693 cat >>confdefs.h <<\_ACEOF
22694 #define HAVE_AS_GNU_ATTRIBUTE 1
22695 _ACEOF
22696
22697 fi
22698     ;;
22699
22700   mips*-*-*)
22701     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22702 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22703 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22704   echo $ECHO_N "(cached) $ECHO_C" >&6
22705 else
22706   gcc_cv_as_mips_explicit_relocs=no
22707     if test $in_tree_gas = yes; then
22708     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22709   then gcc_cv_as_mips_explicit_relocs=yes
22710 fi
22711   elif test x$gcc_cv_as != x; then
22712     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
22713     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22715   (eval $ac_try) 2>&5
22716   ac_status=$?
22717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718   (exit $ac_status); }; }
22719     then
22720         gcc_cv_as_mips_explicit_relocs=yes
22721     else
22722       echo "configure: failed program was" >&5
22723       cat conftest.s >&5
22724     fi
22725     rm -f conftest.o conftest.s
22726   fi
22727 fi
22728 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22729 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22730 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22731   if test x$target_cpu_default = x
22732        then target_cpu_default=MASK_EXPLICIT_RELOCS
22733        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22734        fi
22735 fi
22736     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22737 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22738 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22739   echo $ECHO_N "(cached) $ECHO_C" >&6
22740 else
22741   gcc_cv_as_mips_no_shared=no
22742     if test $in_tree_gas = yes; then
22743     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22744   then gcc_cv_as_mips_no_shared=yes
22745 fi
22746   elif test x$gcc_cv_as != x; then
22747     echo 'nop' > conftest.s
22748     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750   (eval $ac_try) 2>&5
22751   ac_status=$?
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); }; }
22754     then
22755         gcc_cv_as_mips_no_shared=yes
22756     else
22757       echo "configure: failed program was" >&5
22758       cat conftest.s >&5
22759     fi
22760     rm -f conftest.o conftest.s
22761   fi
22762 fi
22763 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22764 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22765 if test $gcc_cv_as_mips_no_shared = yes; then
22766
22767 cat >>confdefs.h <<\_ACEOF
22768 #define HAVE_AS_NO_SHARED 1
22769 _ACEOF
22770
22771 fi
22772
22773     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22774 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22775 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22776   echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778   gcc_cv_as_mips_gnu_attribute=no
22779     if test $in_tree_gas = yes; then
22780     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22781   then gcc_cv_as_mips_gnu_attribute=yes
22782 fi
22783   elif test x$gcc_cv_as != x; then
22784     echo '.gnu_attribute 4,1' > conftest.s
22785     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787   (eval $ac_try) 2>&5
22788   ac_status=$?
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); }; }
22791     then
22792         gcc_cv_as_mips_gnu_attribute=yes
22793     else
22794       echo "configure: failed program was" >&5
22795       cat conftest.s >&5
22796     fi
22797     rm -f conftest.o conftest.s
22798   fi
22799 fi
22800 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22801 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22802 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22803
22804 cat >>confdefs.h <<\_ACEOF
22805 #define HAVE_AS_GNU_ATTRIBUTE 1
22806 _ACEOF
22807
22808 fi
22809
22810     echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22811 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22812 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22813   echo $ECHO_N "(cached) $ECHO_C" >&6
22814 else
22815   gcc_cv_as_mips_dtprelword=no
22816     if test $in_tree_gas = yes; then
22817     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22818   then gcc_cv_as_mips_dtprelword=yes
22819 fi
22820   elif test x$gcc_cv_as != x; then
22821     echo '.section .tdata,"awT",@progbits
22822 x:
22823         .word 2
22824         .text
22825         .dtprelword x+0x8000' > conftest.s
22826     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828   (eval $ac_try) 2>&5
22829   ac_status=$?
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); }; }
22832     then
22833         gcc_cv_as_mips_dtprelword=yes
22834     else
22835       echo "configure: failed program was" >&5
22836       cat conftest.s >&5
22837     fi
22838     rm -f conftest.o conftest.s
22839   fi
22840 fi
22841 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22842 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22843 if test $gcc_cv_as_mips_dtprelword = yes; then
22844
22845 cat >>confdefs.h <<\_ACEOF
22846 #define HAVE_AS_DTPRELWORD 1
22847 _ACEOF
22848
22849 fi
22850     ;;
22851 esac
22852
22853 # Mips and HP-UX need the GNU assembler.
22854 # Linux on IA64 might be able to use the Intel assembler.
22855
22856 case "$target" in
22857   mips*-*-* | *-*-hpux* )
22858     if test x$gas_flag = xyes \
22859        || test x"$host" != x"$build" \
22860        || test ! -x "$gcc_cv_as" \
22861        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
22862       :
22863     else
22864       echo "*** This configuration requires the GNU assembler" >&2
22865       exit 1
22866     fi
22867     ;;
22868 esac
22869
22870 # ??? Not all targets support dwarf2 debug_line, even within a version
22871 # of gas.  Moreover, we need to emit a valid instruction to trigger any
22872 # info to the output file.  So, as supported targets are added to gas 2.11,
22873 # add some instruction here to (also) show we expect this might work.
22874 # ??? Once 2.11 is released, probably need to add first known working
22875 # version to the per-target configury.
22876 case "$target" in
22877   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
22878   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
22879   | xstormy16*-*-* | cris-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
22880   | spu-*-* | fido*-*-*)
22881     insn="nop"
22882     ;;
22883   ia64*-*-* | s390*-*-*)
22884     insn="nop 0"
22885     ;;
22886   mmix-*-*)
22887     insn="swym 0"
22888     ;;
22889 esac
22890 if test x"$insn" != x; then
22891  conftest_s="\
22892         .file 1 \"conftest.s\"
22893         .loc 1 3 0
22894         $insn"
22895  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22896 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22897 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22898   echo $ECHO_N "(cached) $ECHO_C" >&6
22899 else
22900   gcc_cv_as_dwarf2_debug_line=no
22901     if test $in_tree_gas = yes; then
22902     if test $in_tree_gas_is_elf = yes \
22903   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22904   then gcc_cv_as_dwarf2_debug_line=yes
22905 fi
22906   elif test x$gcc_cv_as != x; then
22907     echo "$conftest_s" > conftest.s
22908     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910   (eval $ac_try) 2>&5
22911   ac_status=$?
22912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); }; }
22914     then
22915         if test x$gcc_cv_objdump != x \
22916    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
22917       | grep debug_line > /dev/null 2>&1; then
22918      gcc_cv_as_dwarf2_debug_line=yes
22919    fi
22920     else
22921       echo "configure: failed program was" >&5
22922       cat conftest.s >&5
22923     fi
22924     rm -f conftest.o conftest.s
22925   fi
22926 fi
22927 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22928 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22929
22930
22931 # The .debug_line file table must be in the exact order that
22932 # we specified the files, since these indices are also used
22933 # by DW_AT_decl_file.  Approximate this test by testing if
22934 # the assembler bitches if the same index is assigned twice.
22935  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22936 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22937 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22938   echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22940   gcc_cv_as_dwarf2_file_buggy=no
22941   if test x$gcc_cv_as != x; then
22942     echo '      .file 1 "foo.s"
22943         .file 1 "bar.s"' > conftest.s
22944     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946   (eval $ac_try) 2>&5
22947   ac_status=$?
22948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949   (exit $ac_status); }; }
22950     then
22951         gcc_cv_as_dwarf2_file_buggy=yes
22952     else
22953       echo "configure: failed program was" >&5
22954       cat conftest.s >&5
22955     fi
22956     rm -f conftest.o conftest.s
22957   fi
22958 fi
22959 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22960 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22961
22962
22963  if test $gcc_cv_as_dwarf2_debug_line = yes \
22964  && test $gcc_cv_as_dwarf2_file_buggy = no; then
22965
22966 cat >>confdefs.h <<\_ACEOF
22967 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22968 _ACEOF
22969
22970  fi
22971
22972  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22973 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22974 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22975   echo $ECHO_N "(cached) $ECHO_C" >&6
22976 else
22977   gcc_cv_as_gdwarf2_flag=no
22978     if test $in_tree_gas = yes; then
22979     if test $in_tree_gas_is_elf = yes \
22980   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22981   then gcc_cv_as_gdwarf2_flag=yes
22982 fi
22983   elif test x$gcc_cv_as != x; then
22984     echo "$insn" > conftest.s
22985     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987   (eval $ac_try) 2>&5
22988   ac_status=$?
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); }; }
22991     then
22992         gcc_cv_as_gdwarf2_flag=yes
22993     else
22994       echo "configure: failed program was" >&5
22995       cat conftest.s >&5
22996     fi
22997     rm -f conftest.o conftest.s
22998   fi
22999 fi
23000 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
23001 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
23002 if test $gcc_cv_as_gdwarf2_flag = yes; then
23003
23004 cat >>confdefs.h <<\_ACEOF
23005 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
23006 _ACEOF
23007
23008 fi
23009
23010  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
23011 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
23012 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
23013   echo $ECHO_N "(cached) $ECHO_C" >&6
23014 else
23015   gcc_cv_as_gstabs_flag=no
23016     if test $in_tree_gas = yes; then
23017     if test $in_tree_gas_is_elf = yes \
23018   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23019   then gcc_cv_as_gstabs_flag=yes
23020 fi
23021   elif test x$gcc_cv_as != x; then
23022     echo "$insn" > conftest.s
23023     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025   (eval $ac_try) 2>&5
23026   ac_status=$?
23027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028   (exit $ac_status); }; }
23029     then
23030         # The native Solaris 9/Intel assembler doesn't understand --gstabs
23031    # and warns about it, but still exits successfully.  So check for
23032    # this.
23033    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035   (eval $ac_try) 2>&5
23036   ac_status=$?
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); }; }
23039    then :
23040    else gcc_cv_as_gstabs_flag=yes
23041    fi
23042     else
23043       echo "configure: failed program was" >&5
23044       cat conftest.s >&5
23045     fi
23046     rm -f conftest.o conftest.s
23047   fi
23048 fi
23049 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
23050 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
23051 if test $gcc_cv_as_gstabs_flag = yes; then
23052
23053 cat >>confdefs.h <<\_ACEOF
23054 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
23055 _ACEOF
23056
23057 fi
23058
23059  echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
23060 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
23061 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
23062   echo $ECHO_N "(cached) $ECHO_C" >&6
23063 else
23064   gcc_cv_as_debug_prefix_map_flag=no
23065     if test $in_tree_gas = yes; then
23066     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23067   then gcc_cv_as_debug_prefix_map_flag=yes
23068 fi
23069   elif test x$gcc_cv_as != x; then
23070     echo "$insn" > conftest.s
23071     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073   (eval $ac_try) 2>&5
23074   ac_status=$?
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); }; }
23077     then
23078         gcc_cv_as_debug_prefix_map_flag=yes
23079     else
23080       echo "configure: failed program was" >&5
23081       cat conftest.s >&5
23082     fi
23083     rm -f conftest.o conftest.s
23084   fi
23085 fi
23086 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23087 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
23088 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23089
23090 cat >>confdefs.h <<\_ACEOF
23091 #define HAVE_AS_DEBUG_PREFIX_MAP 1
23092 _ACEOF
23093
23094 fi
23095 fi
23096
23097 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
23098 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
23099 if test "${gcc_cv_as_line_zero+set}" = set; then
23100   echo $ECHO_N "(cached) $ECHO_C" >&6
23101 else
23102   gcc_cv_as_line_zero=no
23103   if test $in_tree_gas = yes; then
23104     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23105   then gcc_cv_as_line_zero=yes
23106 fi
23107   elif test "x$gcc_cv_as" != x; then
23108     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23109     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111   (eval $ac_try) 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); }; } &&
23115        test "x`cat conftest.out`" = x
23116     then
23117       gcc_cv_as_line_zero=yes
23118     else
23119       echo "configure: failed program was" >&5
23120       cat conftest.s >&5
23121       echo "configure: error output was" >&5
23122       cat conftest.out >&5
23123     fi
23124     rm -f conftest.o conftest.s conftest.out
23125   fi
23126 fi
23127 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23128 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23129 if test "x$gcc_cv_as_line_zero" = xyes; then
23130
23131 cat >>confdefs.h <<\_ACEOF
23132 #define HAVE_AS_LINE_ZERO 1
23133 _ACEOF
23134
23135 fi
23136
23137 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
23138 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
23139 gcc_cv_ld_ro_rw_mix=unknown
23140 if test $in_tree_ld = yes ; then
23141   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
23142      && test $in_tree_ld_is_elf = yes; then
23143     gcc_cv_ld_ro_rw_mix=read-write
23144   fi
23145 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23146   echo '.section myfoosect, "a"' > conftest1.s
23147   echo '.section myfoosect, "aw"' > conftest2.s
23148   echo '.byte 1' >> conftest2.s
23149   echo '.section myfoosect, "a"' > conftest3.s
23150   echo '.byte 0' >> conftest3.s
23151   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23152      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23153      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23154      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23155         conftest2.o conftest3.o > /dev/null 2>&1; then
23156     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23157                          | sed -e '/myfoosect/!d' -e N`
23158     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23159       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23160         gcc_cv_ld_ro_rw_mix=read-only
23161       else
23162         gcc_cv_ld_ro_rw_mix=read-write
23163       fi
23164     fi
23165   fi
23166   rm -f conftest.* conftest[123].*
23167 fi
23168 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23169
23170 cat >>confdefs.h <<\_ACEOF
23171 #define HAVE_LD_RO_RW_SECTION_MIXING 1
23172 _ACEOF
23173
23174 fi
23175 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
23176 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
23177
23178 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23179 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23180 gcc_cv_ld_eh_frame_hdr=no
23181 if test $in_tree_ld = yes ; then
23182   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
23183      && test $in_tree_ld_is_elf = yes; then
23184     gcc_cv_ld_eh_frame_hdr=yes
23185   fi
23186 elif test x$gcc_cv_ld != x; then
23187         # Check if linker supports --eh-frame-hdr option
23188         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23189                 gcc_cv_ld_eh_frame_hdr=yes
23190         fi
23191 fi
23192
23193 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23194
23195 cat >>confdefs.h <<\_ACEOF
23196 #define HAVE_LD_EH_FRAME_HDR 1
23197 _ACEOF
23198
23199 fi
23200 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23201 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23202
23203 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23204 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23205 gcc_cv_ld_pie=no
23206 if test $in_tree_ld = yes ; then
23207   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
23208      && test $in_tree_ld_is_elf = yes; then
23209     gcc_cv_ld_pie=yes
23210   fi
23211 elif test x$gcc_cv_ld != x; then
23212         # Check if linker supports -pie option
23213         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23214                 gcc_cv_ld_pie=yes
23215         fi
23216 fi
23217 if test x"$gcc_cv_ld_pie" = xyes; then
23218
23219 cat >>confdefs.h <<\_ACEOF
23220 #define HAVE_LD_PIE 1
23221 _ACEOF
23222
23223 fi
23224 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23225 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23226
23227 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23228 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23229 gcc_cv_ld_eh_gc_sections=no
23230 if test $in_tree_ld = yes ; then
23231   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
23232      && test $in_tree_ld_is_elf = yes; then
23233     gcc_cv_ld_eh_gc_sections=yes
23234   fi
23235 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23236   cat > conftest.s <<EOF
23237         .section        .text
23238 .globl _start
23239         .type _start, @function
23240 _start:
23241         .long foo
23242         .size _start, .-_start
23243         .section        .text.foo,"ax",@progbits
23244         .type foo, @function
23245 foo:
23246         .long 0
23247         .size foo, .-foo
23248         .section        .gcc_except_table.foo,"a",@progbits
23249 .L0:
23250         .long 0
23251         .section        .eh_frame,"a",@progbits
23252         .long .L0
23253 EOF
23254   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23255     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23256          | grep "gc-sections option ignored" > /dev/null; then
23257       gcc_cv_ld_eh_gc_sections=no
23258     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23259       gcc_cv_ld_eh_gc_sections=yes
23260       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23261       if test x$gcc_cv_as_comdat_group != xyes; then
23262         gcc_cv_ld_eh_gc_sections=no
23263         cat > conftest.s <<EOF
23264         .section        .text
23265 .globl _start
23266         .type _start, @function
23267 _start:
23268         .long foo
23269         .size _start, .-_start
23270         .section        .gnu.linkonce.t.foo,"ax",@progbits
23271         .type foo, @function
23272 foo:
23273         .long 0
23274         .size foo, .-foo
23275         .section        .gcc_except_table.foo,"a",@progbits
23276 .L0:
23277         .long 0
23278         .section        .eh_frame,"a",@progbits
23279         .long .L0
23280 EOF
23281         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23282           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23283                | grep "gc-sections option ignored" > /dev/null; then
23284             gcc_cv_ld_eh_gc_sections=no
23285           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23286             gcc_cv_ld_eh_gc_sections=yes
23287           fi
23288         fi
23289       fi
23290     fi
23291   fi
23292   rm -f conftest.s conftest.o conftest
23293 fi
23294 case "$target" in
23295   hppa*-*-linux*)
23296     # ??? This apparently exposes a binutils bug with PC-relative relocations.
23297     gcc_cv_ld_eh_gc_sections=no
23298     ;;
23299 esac
23300 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23301
23302 cat >>confdefs.h <<\_ACEOF
23303 #define HAVE_LD_EH_GC_SECTIONS 1
23304 _ACEOF
23305
23306 fi
23307 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23308 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23309
23310 # --------
23311 # UNSORTED
23312 # --------
23313
23314 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23315 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23316 if test "${gcc_cv_ld_as_needed+set}" = set; then
23317   echo $ECHO_N "(cached) $ECHO_C" >&6
23318 else
23319   gcc_cv_ld_as_needed=no
23320 if test $in_tree_ld = yes ; then
23321   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
23322      && test $in_tree_ld_is_elf = yes; then
23323     gcc_cv_ld_as_needed=yes
23324   fi
23325 elif test x$gcc_cv_ld != x; then
23326         # Check if linker supports --as-needed and --no-as-needed options
23327         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23328                 gcc_cv_ld_as_needed=yes
23329         fi
23330 fi
23331
23332 fi
23333 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23334 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23335 if test x"$gcc_cv_ld_as_needed" = xyes; then
23336
23337 cat >>confdefs.h <<\_ACEOF
23338 #define HAVE_LD_AS_NEEDED 1
23339 _ACEOF
23340
23341 fi
23342
23343 case "$target:$tm_file" in
23344   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
23345     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23346 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
23347 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23348   echo $ECHO_N "(cached) $ECHO_C" >&6
23349 else
23350   gcc_cv_ld_no_dot_syms=no
23351     if test $in_tree_ld = yes ; then
23352       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
23353         gcc_cv_ld_no_dot_syms=yes
23354       fi
23355     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23356       cat > conftest1.s <<EOF
23357         .text
23358         bl .foo
23359 EOF
23360       cat > conftest2.s <<EOF
23361         .section ".opd","aw"
23362         .align 3
23363         .globl foo
23364         .type foo,@function
23365 foo:
23366         .quad .LEfoo,.TOC.@tocbase,0
23367         .text
23368 .LEfoo:
23369         blr
23370         .size foo,.-.LEfoo
23371 EOF
23372       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23373          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23374          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23375         gcc_cv_ld_no_dot_syms=yes
23376       fi
23377       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23378     fi
23379
23380 fi
23381 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
23382 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
23383     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23384
23385 cat >>confdefs.h <<\_ACEOF
23386 #define HAVE_LD_NO_DOT_SYMS 1
23387 _ACEOF
23388
23389     fi
23390     ;;
23391 esac
23392
23393 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23394 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23395 if test "${gcc_cv_ld_sysroot+set}" = set; then
23396   echo $ECHO_N "(cached) $ECHO_C" >&6
23397 else
23398   gcc_cv_ld_sysroot=no
23399   if test $in_tree_ld = yes ; then
23400       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
23401         gcc_cv_ld_sysroot=yes
23402       fi
23403   elif test x$gcc_cv_ld != x; then
23404     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23405       gcc_cv_ld_sysroot=yes
23406     fi
23407   fi
23408 fi
23409 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23410 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23411 if test x"$gcc_cv_ld_sysroot" = xyes; then
23412
23413 cat >>confdefs.h <<\_ACEOF
23414 #define HAVE_LD_SYSROOT 1
23415 _ACEOF
23416
23417 fi
23418
23419 if test x$with_sysroot = x && test x$host = x$target \
23420    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23421    && test "$prefix" != "NONE"; then
23422
23423 cat >>confdefs.h <<_ACEOF
23424 #define PREFIX_INCLUDE_DIR "$prefix/include"
23425 _ACEOF
23426
23427 fi
23428
23429 # Test for stack protector support in target C library.
23430 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23431 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23432 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23433   echo $ECHO_N "(cached) $ECHO_C" >&6
23434 else
23435   gcc_cv_libc_provides_ssp=no
23436     case "$target" in
23437        *-*-linux*)
23438       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23439         if test "x$with_sysroot" = x; then
23440           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23441         elif test "x$with_build_sysroot" != "x"; then
23442           glibc_header_dir="${with_build_sysroot}/usr/include"
23443         elif test "x$with_sysroot" = xyes; then
23444           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23445         else
23446           glibc_header_dir="${with_sysroot}/usr/include"
23447         fi
23448       else
23449         glibc_header_dir=/usr/include
23450       fi
23451       # glibc 2.4 and later provides __stack_chk_fail and
23452       # either __stack_chk_guard, or TLS access to stack guard canary.
23453       if test -f $glibc_header_dir/features.h \
23454          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
23455             $glibc_header_dir/features.h > /dev/null; then
23456         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
23457            $glibc_header_dir/features.h > /dev/null; then
23458           gcc_cv_libc_provides_ssp=yes
23459         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
23460              $glibc_header_dir/features.h > /dev/null \
23461              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
23462              $glibc_header_dir/features.h > /dev/null; then
23463           gcc_cv_libc_provides_ssp=yes
23464         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
23465              $glibc_header_dir/features.h > /dev/null && \
23466              test -f $glibc_header_dir/bits/uClibc_config.h && \
23467              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
23468              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23469           gcc_cv_libc_provides_ssp=yes
23470         fi
23471       fi
23472         ;;
23473        *-*-darwin*)
23474          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23475 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23476 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23477   echo $ECHO_N "(cached) $ECHO_C" >&6
23478 else
23479   cat >conftest.$ac_ext <<_ACEOF
23480 /* confdefs.h.  */
23481 _ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h.  */
23485 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23487 #define __stack_chk_fail innocuous___stack_chk_fail
23488
23489 /* System header to define __stub macros and hopefully few prototypes,
23490     which can conflict with char __stack_chk_fail (); below.
23491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23492     <limits.h> exists even on freestanding compilers.  */
23493
23494 #ifdef __STDC__
23495 # include <limits.h>
23496 #else
23497 # include <assert.h>
23498 #endif
23499
23500 #undef __stack_chk_fail
23501
23502 /* Override any gcc2 internal prototype to avoid an error.  */
23503 #ifdef __cplusplus
23504 extern "C"
23505 {
23506 #endif
23507 /* We use char because int might match the return type of a gcc2
23508    builtin and then its argument prototype would still apply.  */
23509 char __stack_chk_fail ();
23510 /* The GNU C library defines this for functions which it implements
23511     to always fail with ENOSYS.  Some functions are actually named
23512     something starting with __ and the normal name is an alias.  */
23513 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23514 choke me
23515 #else
23516 char (*f) () = __stack_chk_fail;
23517 #endif
23518 #ifdef __cplusplus
23519 }
23520 #endif
23521
23522 int
23523 main ()
23524 {
23525 return f != __stack_chk_fail;
23526   ;
23527   return 0;
23528 }
23529 _ACEOF
23530 rm -f conftest.$ac_objext conftest$ac_exeext
23531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23532   (eval $ac_link) 2>conftest.er1
23533   ac_status=$?
23534   grep -v '^ *+' conftest.er1 >conftest.err
23535   rm -f conftest.er1
23536   cat conftest.err >&5
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); } &&
23539          { ac_try='test -z "$ac_c_werror_flag"
23540                          || test ! -s conftest.err'
23541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23542   (eval $ac_try) 2>&5
23543   ac_status=$?
23544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545   (exit $ac_status); }; } &&
23546          { ac_try='test -s conftest$ac_exeext'
23547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23548   (eval $ac_try) 2>&5
23549   ac_status=$?
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); }; }; then
23552   ac_cv_func___stack_chk_fail=yes
23553 else
23554   echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23556
23557 ac_cv_func___stack_chk_fail=no
23558 fi
23559 rm -f conftest.err conftest.$ac_objext \
23560       conftest$ac_exeext conftest.$ac_ext
23561 fi
23562 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23563 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23564 if test $ac_cv_func___stack_chk_fail = yes; then
23565   gcc_cv_libc_provides_ssp=yes
23566 else
23567   echo "no __stack_chk_fail on this target"
23568 fi
23569
23570         ;;
23571   *) gcc_cv_libc_provides_ssp=no ;;
23572     esac
23573 fi
23574 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23575 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23576
23577 if test x$gcc_cv_libc_provides_ssp = xyes; then
23578
23579 cat >>confdefs.h <<\_ACEOF
23580 #define TARGET_LIBC_PROVIDES_SSP 1
23581 _ACEOF
23582
23583 fi
23584
23585 # Check if TFmode long double should be used by default or not.
23586 # Some glibc targets used DFmode long double, but with glibc 2.4
23587 # and later they can use TFmode.
23588 case "$target" in
23589   powerpc*-*-linux* | \
23590   powerpc*-*-gnu* | \
23591   sparc*-*-linux* | \
23592   s390*-*-linux* | \
23593   alpha*-*-linux*)
23594
23595 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23596 if test "${with_long_double_128+set}" = set; then
23597   withval="$with_long_double_128"
23598   gcc_cv_target_ldbl128="$with_long_double_128"
23599 else
23600   gcc_cv_target_ldbl128=no
23601       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23602         if test "x$with_sysroot" = x; then
23603           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23604         elif test "x$with_build_sysroot" != "x"; then
23605           glibc_header_dir="${with_build_sysroot}/usr/include"
23606         elif test "x$with_sysroot" = xyes; then
23607           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23608         else
23609           glibc_header_dir="${with_sysroot}/usr/include"
23610         fi
23611       else
23612         glibc_header_dir=/usr/include
23613       fi
23614       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23615         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23616       && gcc_cv_target_ldbl128=yes
23617
23618 fi;
23619     ;;
23620 esac
23621 if test x$gcc_cv_target_ldbl128 = xyes; then
23622
23623 cat >>confdefs.h <<\_ACEOF
23624 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23625 _ACEOF
23626
23627 fi
23628
23629 # Find out what GC implementation we want, or may, use.
23630
23631 # Check whether --with-gc or --without-gc was given.
23632 if test "${with_gc+set}" = set; then
23633   withval="$with_gc"
23634   case "$withval" in
23635   page)
23636     GGC=ggc-$withval
23637     ;;
23638   zone)
23639     GGC=ggc-$withval
23640
23641 cat >>confdefs.h <<\_ACEOF
23642 #define GGC_ZONE 1
23643 _ACEOF
23644
23645     ;;
23646   *)
23647     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23648 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23649    { (exit 1); exit 1; }; }
23650     ;;
23651 esac
23652 else
23653   GGC=ggc-page
23654 fi;
23655
23656 echo "Using $GGC for garbage collection."
23657
23658 # Use the system's zlib library.
23659 zlibdir=-L../zlib
23660 zlibinc="-I\$(srcdir)/../zlib"
23661
23662 # Check whether --with-system-zlib or --without-system-zlib was given.
23663 if test "${with_system_zlib+set}" = set; then
23664   withval="$with_system_zlib"
23665   zlibdir=
23666 zlibinc=
23667
23668 fi;
23669
23670
23671
23672
23673 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23674 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23675     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23676 if test "${enable_maintainer_mode+set}" = set; then
23677   enableval="$enable_maintainer_mode"
23678   maintainer_mode=$enableval
23679 else
23680   maintainer_mode=no
23681 fi;
23682
23683 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23684 echo "${ECHO_T}$maintainer_mode" >&6
23685
23686 if test "$maintainer_mode" = "yes"; then
23687   MAINT=''
23688 else
23689   MAINT='#'
23690 fi
23691
23692 # --------------
23693 # Language hooks
23694 # --------------
23695
23696 # Make empty files to contain the specs and options for each language.
23697 # Then add #include lines to for a compiler that has specs and/or options.
23698
23699 subdirs=
23700 lang_opt_files=
23701 lang_specs_files=
23702 lang_tree_files=
23703 # These (without "all_") are set in each config-lang.in.
23704 # `language' must be a single word so is spelled singularly.
23705 all_languages=
23706 all_compilers=
23707 all_outputs='Makefile gccbug'
23708 # List of language makefile fragments.
23709 all_lang_makefrags=
23710 # List of language subdirectory makefiles.  Deprecated.
23711 all_lang_makefiles=
23712 # Additional files for gengtype
23713 all_gtfiles="$target_gtfiles"
23714
23715 # These are the languages that are set in --enable-languages,
23716 # and are available in the GCC tree.
23717 all_selected_languages=
23718
23719 # Add the language fragments.
23720 # Languages are added via two mechanisms.  Some information must be
23721 # recorded in makefile variables, these are defined in config-lang.in.
23722 # We accumulate them and plug them into the main Makefile.
23723 # The other mechanism is a set of hooks for each of the main targets
23724 # like `clean', `install', etc.
23725
23726 language_hooks="Make-hooks"
23727
23728 for lang in ${srcdir}/*/config-lang.in
23729 do
23730         test "$lang" = "${srcdir}/*/config-lang.in" && continue
23731
23732         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
23733         if test "x$lang_alias" = x
23734         then
23735               echo "$lang doesn't set \$language." 1>&2
23736               exit 1
23737         fi
23738         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23739         subdirs="$subdirs $subdir"
23740
23741         # $gcc_subdir is where the gcc integration files are to be found
23742         # for a language, both for internal compiler purposes (compiler
23743         # sources implementing front-end to GCC tree converters), and for
23744         # build infrastructure purposes (Make-lang.in, etc.)
23745         #
23746         # This will be <subdir> (relative to $srcdir) if a line like
23747         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
23748         # is found in <langdir>/config-lang.in, and will remain <langdir>
23749         # otherwise.
23750         #
23751         # Except for the language alias (fetched above), the regular
23752         # "config-lang.in" contents are always retrieved from $gcc_subdir,
23753         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
23754         # only this and the language alias.
23755
23756         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
23757         if [ "$gcc_subdir" = "" ]; then
23758            gcc_subdir="$subdir"
23759         fi
23760
23761         case ",$enable_languages," in
23762         *,$lang_alias,*)
23763             all_selected_languages="$all_selected_languages $lang_alias"
23764             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
23765                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
23766             fi
23767             ;;
23768         esac
23769
23770         language=
23771         boot_language=
23772         compilers=
23773         outputs=
23774         gtfiles=
23775         subdir_requires=
23776         . ${srcdir}/$gcc_subdir/config-lang.in
23777         if test "x$language" = x
23778         then
23779                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
23780                 exit 1
23781         fi
23782
23783         ok=:
23784         case ",$enable_languages," in
23785                 *,$lang_alias,*) ;;
23786                 *)
23787                         for i in $subdir_requires; do
23788                                 test -f "${srcdir}/$i/config-lang.in" && continue
23789                                 ok=false
23790                                 break
23791                         done
23792                 ;;
23793         esac
23794         $ok || continue
23795
23796         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
23797         if test -f $srcdir/$gcc_subdir/lang.opt; then
23798             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
23799         fi
23800         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
23801             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
23802         fi
23803         if test -f ${srcdir}/$gcc_subdir/Makefile.in
23804                 then all_lang_makefiles="$gcc_subdir/Makefile"
23805         fi
23806         all_languages="$all_languages $language"
23807         all_compilers="$all_compilers $compilers"
23808         all_outputs="$all_outputs $outputs"
23809         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
23810 done
23811
23812 # Pick up gtfiles for c
23813 gtfiles=
23814 . ${srcdir}/c-config-lang.in
23815 all_gtfiles="$all_gtfiles [c] $gtfiles"
23816
23817 check_languages=
23818 for language in $all_selected_languages
23819 do
23820         check_languages="$check_languages check-$language"
23821 done
23822
23823 # We link each language in with a set of hooks, reached indirectly via
23824 # lang.${target}.  Only do so for selected languages.
23825
23826 rm -f Make-hooks
23827 touch Make-hooks
23828 target_list="all.cross start.encap rest.encap tags \
23829         install-common install-man install-info install-pdf dvi pdf \
23830         html uninstall info man srcextra srcman srcinfo \
23831         mostlyclean clean distclean maintainer-clean"
23832
23833 for t in $target_list
23834 do
23835         x=
23836         for lang in $all_selected_languages
23837         do
23838                 x="$x $lang.$t"
23839         done
23840         echo "lang.$t: $x" >> Make-hooks
23841 done
23842
23843 # --------
23844 # UNSORTED
23845 # --------
23846
23847 # Create .gdbinit.
23848
23849 echo "dir ." > .gdbinit
23850 echo "dir ${srcdir}" >> .gdbinit
23851 if test x$gdb_needs_out_file_path = xyes
23852 then
23853         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23854 fi
23855 if test "x$subdirs" != x; then
23856         for s in $subdirs
23857         do
23858                 echo "dir ${srcdir}/$s" >> .gdbinit
23859         done
23860 fi
23861 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23862
23863 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23864
23865
23866
23867 # Find a directory in which to install a shared libgcc.
23868
23869 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23870 if test "${enable_version_specific_runtime_libs+set}" = set; then
23871   enableval="$enable_version_specific_runtime_libs"
23872
23873 fi;
23874
23875
23876 # Check whether --with-slibdir or --without-slibdir was given.
23877 if test "${with_slibdir+set}" = set; then
23878   withval="$with_slibdir"
23879   slibdir="$with_slibdir"
23880 else
23881   if test "${enable_version_specific_runtime_libs+set}" = set; then
23882   slibdir='$(libsubdir)'
23883 elif test "$host" != "$target"; then
23884   slibdir='$(build_tooldir)/lib'
23885 else
23886   slibdir='$(libdir)'
23887 fi
23888 fi;
23889
23890
23891
23892 # Check whether --with-datarootdir or --without-datarootdir was given.
23893 if test "${with_datarootdir+set}" = set; then
23894   withval="$with_datarootdir"
23895   datarootdir="\${prefix}/$with_datarootdir"
23896 else
23897   datarootdir='$(prefix)/share'
23898 fi;
23899
23900
23901
23902 # Check whether --with-docdir or --without-docdir was given.
23903 if test "${with_docdir+set}" = set; then
23904   withval="$with_docdir"
23905   docdir="\${prefix}/$with_docdir"
23906 else
23907   docdir='$(datarootdir)'
23908 fi;
23909
23910
23911
23912 # Check whether --with-htmldir or --without-htmldir was given.
23913 if test "${with_htmldir+set}" = set; then
23914   withval="$with_htmldir"
23915   htmldir="\${prefix}/$with_htmldir"
23916 else
23917   htmldir='$(docdir)'
23918 fi;
23919
23920
23921 # Substitute configuration variables
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979 # Echo link setup.
23980 if test x${build} = x${host} ; then
23981   if test x${host} = x${target} ; then
23982     echo "Links are now set up to build a native compiler for ${target}." 1>&2
23983   else
23984     echo "Links are now set up to build a cross-compiler" 1>&2
23985     echo " from ${host} to ${target}." 1>&2
23986   fi
23987 else
23988   if test x${host} = x${target} ; then
23989     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23990     echo " for ${target}." 1>&2
23991   else
23992     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23993     echo " from ${host} to ${target}." 1>&2
23994   fi
23995 fi
23996
23997
23998
23999
24000 # Configure the subdirectories
24001 # AC_CONFIG_SUBDIRS($subdirs)
24002
24003 # Create the Makefile
24004 # and configure language subdirectories
24005           ac_config_files="$ac_config_files $all_outputs"
24006
24007
24008           ac_config_commands="$ac_config_commands default"
24009
24010 cat >confcache <<\_ACEOF
24011 # This file is a shell script that caches the results of configure
24012 # tests run on this system so they can be shared between configure
24013 # scripts and configure runs, see configure's option --config-cache.
24014 # It is not useful on other systems.  If it contains results you don't
24015 # want to keep, you may remove or edit it.
24016 #
24017 # config.status only pays attention to the cache file if you give it
24018 # the --recheck option to rerun configure.
24019 #
24020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24022 # following values.
24023
24024 _ACEOF
24025
24026 # The following way of writing the cache mishandles newlines in values,
24027 # but we know of no workaround that is simple, portable, and efficient.
24028 # So, don't put newlines in cache variables' values.
24029 # Ultrix sh set writes to stderr and can't be redirected directly,
24030 # and sets the high bit in the cache file unless we assign to the vars.
24031 {
24032   (set) 2>&1 |
24033     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24034     *ac_space=\ *)
24035       # `set' does not quote correctly, so add quotes (double-quote
24036       # substitution turns \\\\ into \\, and sed turns \\ into \).
24037       sed -n \
24038         "s/'/'\\\\''/g;
24039           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24040       ;;
24041     *)
24042       # `set' quotes correctly as required by POSIX, so do not add quotes.
24043       sed -n \
24044         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24045       ;;
24046     esac;
24047 } |
24048   sed '
24049      t clear
24050      : clear
24051      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24052      t end
24053      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24054      : end' >>confcache
24055 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24056   if test -w $cache_file; then
24057     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24058     cat confcache >$cache_file
24059   else
24060     echo "not updating unwritable cache $cache_file"
24061   fi
24062 fi
24063 rm -f confcache
24064
24065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24066 # Let make expand exec_prefix.
24067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24068
24069 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24070 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24071 # trailing colons and then remove the whole line if VPATH becomes empty
24072 # (actually we leave an empty line to preserve line numbers).
24073 if test "x$srcdir" = x.; then
24074   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24075 s/:*\$(srcdir):*/:/;
24076 s/:*\${srcdir}:*/:/;
24077 s/:*@srcdir@:*/:/;
24078 s/^\([^=]*=[     ]*\):*/\1/;
24079 s/:*$//;
24080 s/^[^=]*=[       ]*$//;
24081 }'
24082 fi
24083
24084 DEFS=-DHAVE_CONFIG_H
24085
24086 ac_libobjs=
24087 ac_ltlibobjs=
24088 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24089   # 1. Remove the extension, and $U if already installed.
24090   ac_i=`echo "$ac_i" |
24091          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24092   # 2. Add them.
24093   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24094   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24095 done
24096 LIBOBJS=$ac_libobjs
24097
24098 LTLIBOBJS=$ac_ltlibobjs
24099
24100
24101
24102 : ${CONFIG_STATUS=./config.status}
24103 ac_clean_files_save=$ac_clean_files
24104 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24105 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24106 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24107 cat >$CONFIG_STATUS <<_ACEOF
24108 #! $SHELL
24109 # Generated by $as_me.
24110 # Run this file to recreate the current configuration.
24111 # Compiler output produced by configure, useful for debugging
24112 # configure, is in config.log if it exists.
24113
24114 debug=false
24115 ac_cs_recheck=false
24116 ac_cs_silent=false
24117 SHELL=\${CONFIG_SHELL-$SHELL}
24118 _ACEOF
24119
24120 cat >>$CONFIG_STATUS <<\_ACEOF
24121 ## --------------------- ##
24122 ## M4sh Initialization.  ##
24123 ## --------------------- ##
24124
24125 # Be Bourne compatible
24126 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24127   emulate sh
24128   NULLCMD=:
24129   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24130   # is contrary to our usage.  Disable this feature.
24131   alias -g '${1+"$@"}'='"$@"'
24132 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24133   set -o posix
24134 fi
24135 DUALCASE=1; export DUALCASE # for MKS sh
24136
24137 # Support unset when possible.
24138 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24139   as_unset=unset
24140 else
24141   as_unset=false
24142 fi
24143
24144
24145 # Work around bugs in pre-3.0 UWIN ksh.
24146 $as_unset ENV MAIL MAILPATH
24147 PS1='$ '
24148 PS2='> '
24149 PS4='+ '
24150
24151 # NLS nuisances.
24152 for as_var in \
24153   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24154   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24155   LC_TELEPHONE LC_TIME
24156 do
24157   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24158     eval $as_var=C; export $as_var
24159   else
24160     $as_unset $as_var
24161   fi
24162 done
24163
24164 # Required to use basename.
24165 if expr a : '\(a\)' >/dev/null 2>&1; then
24166   as_expr=expr
24167 else
24168   as_expr=false
24169 fi
24170
24171 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24172   as_basename=basename
24173 else
24174   as_basename=false
24175 fi
24176
24177
24178 # Name of the executable.
24179 as_me=`$as_basename "$0" ||
24180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24181          X"$0" : 'X\(//\)$' \| \
24182          X"$0" : 'X\(/\)$' \| \
24183          .     : '\(.\)' 2>/dev/null ||
24184 echo X/"$0" |
24185     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24186           /^X\/\(\/\/\)$/{ s//\1/; q; }
24187           /^X\/\(\/\).*/{ s//\1/; q; }
24188           s/.*/./; q'`
24189
24190
24191 # PATH needs CR, and LINENO needs CR and PATH.
24192 # Avoid depending upon Character Ranges.
24193 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24194 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24195 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24196 as_cr_digits='0123456789'
24197 as_cr_alnum=$as_cr_Letters$as_cr_digits
24198
24199 # The user is always right.
24200 if test "${PATH_SEPARATOR+set}" != set; then
24201   echo "#! /bin/sh" >conf$$.sh
24202   echo  "exit 0"   >>conf$$.sh
24203   chmod +x conf$$.sh
24204   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24205     PATH_SEPARATOR=';'
24206   else
24207     PATH_SEPARATOR=:
24208   fi
24209   rm -f conf$$.sh
24210 fi
24211
24212
24213   as_lineno_1=$LINENO
24214   as_lineno_2=$LINENO
24215   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24216   test "x$as_lineno_1" != "x$as_lineno_2" &&
24217   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24218   # Find who we are.  Look in the path if we contain no path at all
24219   # relative or not.
24220   case $0 in
24221     *[\\/]* ) as_myself=$0 ;;
24222     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24223 for as_dir in $PATH
24224 do
24225   IFS=$as_save_IFS
24226   test -z "$as_dir" && as_dir=.
24227   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24228 done
24229
24230        ;;
24231   esac
24232   # We did not find ourselves, most probably we were run as `sh COMMAND'
24233   # in which case we are not to be found in the path.
24234   if test "x$as_myself" = x; then
24235     as_myself=$0
24236   fi
24237   if test ! -f "$as_myself"; then
24238     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24239 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24240    { (exit 1); exit 1; }; }
24241   fi
24242   case $CONFIG_SHELL in
24243   '')
24244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24246 do
24247   IFS=$as_save_IFS
24248   test -z "$as_dir" && as_dir=.
24249   for as_base in sh bash ksh sh5; do
24250          case $as_dir in
24251          /*)
24252            if ("$as_dir/$as_base" -c '
24253   as_lineno_1=$LINENO
24254   as_lineno_2=$LINENO
24255   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24256   test "x$as_lineno_1" != "x$as_lineno_2" &&
24257   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24258              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24259              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24260              CONFIG_SHELL=$as_dir/$as_base
24261              export CONFIG_SHELL
24262              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24263            fi;;
24264          esac
24265        done
24266 done
24267 ;;
24268   esac
24269
24270   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24271   # uniformly replaced by the line number.  The first 'sed' inserts a
24272   # line-number line before each line; the second 'sed' does the real
24273   # work.  The second script uses 'N' to pair each line-number line
24274   # with the numbered line, and appends trailing '-' during
24275   # substitution so that $LINENO is not a special case at line end.
24276   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24277   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24278   sed '=' <$as_myself |
24279     sed '
24280       N
24281       s,$,-,
24282       : loop
24283       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24284       t loop
24285       s,-$,,
24286       s,^['$as_cr_digits']*\n,,
24287     ' >$as_me.lineno &&
24288   chmod +x $as_me.lineno ||
24289     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24290 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24291    { (exit 1); exit 1; }; }
24292
24293   # Don't try to exec as it changes $[0], causing all sort of problems
24294   # (the dirname of $[0] is not the place where we might find the
24295   # original and so on.  Autoconf is especially sensible to this).
24296   . ./$as_me.lineno
24297   # Exit status is that of the last command.
24298   exit
24299 }
24300
24301
24302 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24303   *c*,-n*) ECHO_N= ECHO_C='
24304 ' ECHO_T='      ' ;;
24305   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24306   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24307 esac
24308
24309 if expr a : '\(a\)' >/dev/null 2>&1; then
24310   as_expr=expr
24311 else
24312   as_expr=false
24313 fi
24314
24315 rm -f conf$$ conf$$.exe conf$$.file
24316 echo >conf$$.file
24317 if ln -s conf$$.file conf$$ 2>/dev/null; then
24318   # We could just check for DJGPP; but this test a) works b) is more generic
24319   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24320   if test -f conf$$.exe; then
24321     # Don't use ln at all; we don't have any links
24322     as_ln_s='cp -p'
24323   else
24324     as_ln_s='ln -s'
24325   fi
24326 elif ln conf$$.file conf$$ 2>/dev/null; then
24327   as_ln_s=ln
24328 else
24329   as_ln_s='cp -p'
24330 fi
24331 rm -f conf$$ conf$$.exe conf$$.file
24332
24333 if mkdir -p . 2>/dev/null; then
24334   as_mkdir_p=:
24335 else
24336   test -d ./-p && rmdir ./-p
24337   as_mkdir_p=false
24338 fi
24339
24340 as_executable_p="test -f"
24341
24342 # Sed expression to map a string onto a valid CPP name.
24343 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24344
24345 # Sed expression to map a string onto a valid variable name.
24346 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24347
24348
24349 # IFS
24350 # We need space, tab and new line, in precisely that order.
24351 as_nl='
24352 '
24353 IFS="   $as_nl"
24354
24355 # CDPATH.
24356 $as_unset CDPATH
24357
24358 exec 6>&1
24359
24360 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24361 # report actual input values of CONFIG_FILES etc. instead of their
24362 # values after options handling.  Logging --version etc. is OK.
24363 exec 5>>config.log
24364 {
24365   echo
24366   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24367 ## Running $as_me. ##
24368 _ASBOX
24369 } >&5
24370 cat >&5 <<_CSEOF
24371
24372 This file was extended by $as_me, which was
24373 generated by GNU Autoconf 2.59.  Invocation command line was
24374
24375   CONFIG_FILES    = $CONFIG_FILES
24376   CONFIG_HEADERS  = $CONFIG_HEADERS
24377   CONFIG_LINKS    = $CONFIG_LINKS
24378   CONFIG_COMMANDS = $CONFIG_COMMANDS
24379   $ $0 $@
24380
24381 _CSEOF
24382 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24383 echo >&5
24384 _ACEOF
24385
24386 # Files that config.status was made for.
24387 if test -n "$ac_config_files"; then
24388   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24389 fi
24390
24391 if test -n "$ac_config_headers"; then
24392   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24393 fi
24394
24395 if test -n "$ac_config_links"; then
24396   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24397 fi
24398
24399 if test -n "$ac_config_commands"; then
24400   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24401 fi
24402
24403 cat >>$CONFIG_STATUS <<\_ACEOF
24404
24405 ac_cs_usage="\
24406 \`$as_me' instantiates files from templates according to the
24407 current configuration.
24408
24409 Usage: $0 [OPTIONS] [FILE]...
24410
24411   -h, --help       print this help, then exit
24412   -V, --version    print version number, then exit
24413   -q, --quiet      do not print progress messages
24414   -d, --debug      don't remove temporary files
24415       --recheck    update $as_me by reconfiguring in the same conditions
24416   --file=FILE[:TEMPLATE]
24417                    instantiate the configuration file FILE
24418   --header=FILE[:TEMPLATE]
24419                    instantiate the configuration header FILE
24420
24421 Configuration files:
24422 $config_files
24423
24424 Configuration headers:
24425 $config_headers
24426
24427 Configuration commands:
24428 $config_commands
24429
24430 Report bugs to <bug-autoconf@gnu.org>."
24431 _ACEOF
24432
24433 cat >>$CONFIG_STATUS <<_ACEOF
24434 ac_cs_version="\\
24435 config.status
24436 configured by $0, generated by GNU Autoconf 2.59,
24437   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24438
24439 Copyright (C) 2003 Free Software Foundation, Inc.
24440 This config.status script is free software; the Free Software Foundation
24441 gives unlimited permission to copy, distribute and modify it."
24442 srcdir=$srcdir
24443 _ACEOF
24444
24445 cat >>$CONFIG_STATUS <<\_ACEOF
24446 # If no file are specified by the user, then we need to provide default
24447 # value.  By we need to know if files were specified by the user.
24448 ac_need_defaults=:
24449 while test $# != 0
24450 do
24451   case $1 in
24452   --*=*)
24453     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24454     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24455     ac_shift=:
24456     ;;
24457   -*)
24458     ac_option=$1
24459     ac_optarg=$2
24460     ac_shift=shift
24461     ;;
24462   *) # This is not an option, so the user has probably given explicit
24463      # arguments.
24464      ac_option=$1
24465      ac_need_defaults=false;;
24466   esac
24467
24468   case $ac_option in
24469   # Handling of the options.
24470 _ACEOF
24471 cat >>$CONFIG_STATUS <<\_ACEOF
24472   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24473     ac_cs_recheck=: ;;
24474   --version | --vers* | -V )
24475     echo "$ac_cs_version"; exit 0 ;;
24476   --he | --h)
24477     # Conflict between --help and --header
24478     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24479 Try \`$0 --help' for more information." >&5
24480 echo "$as_me: error: ambiguous option: $1
24481 Try \`$0 --help' for more information." >&2;}
24482    { (exit 1); exit 1; }; };;
24483   --help | --hel | -h )
24484     echo "$ac_cs_usage"; exit 0 ;;
24485   --debug | --d* | -d )
24486     debug=: ;;
24487   --file | --fil | --fi | --f )
24488     $ac_shift
24489     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24490     ac_need_defaults=false;;
24491   --header | --heade | --head | --hea )
24492     $ac_shift
24493     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24494     ac_need_defaults=false;;
24495   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24496   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24497     ac_cs_silent=: ;;
24498
24499   # This is an error.
24500   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24501 Try \`$0 --help' for more information." >&5
24502 echo "$as_me: error: unrecognized option: $1
24503 Try \`$0 --help' for more information." >&2;}
24504    { (exit 1); exit 1; }; } ;;
24505
24506   *) ac_config_targets="$ac_config_targets $1" ;;
24507
24508   esac
24509   shift
24510 done
24511
24512 ac_configure_extra_args=
24513
24514 if $ac_cs_silent; then
24515   exec 6>/dev/null
24516   ac_configure_extra_args="$ac_configure_extra_args --silent"
24517 fi
24518
24519 _ACEOF
24520 cat >>$CONFIG_STATUS <<_ACEOF
24521 if \$ac_cs_recheck; then
24522   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24523   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24524 fi
24525
24526 _ACEOF
24527
24528 cat >>$CONFIG_STATUS <<_ACEOF
24529 #
24530 # INIT-COMMANDS section.
24531 #
24532
24533 subdirs='$subdirs'
24534
24535 _ACEOF
24536
24537
24538
24539 cat >>$CONFIG_STATUS <<\_ACEOF
24540 for ac_config_target in $ac_config_targets
24541 do
24542   case "$ac_config_target" in
24543   # Handling of arguments.
24544   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
24545   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24546   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
24547   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
24548   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24549   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
24550   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24551 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24552    { (exit 1); exit 1; }; };;
24553   esac
24554 done
24555
24556 # If the user did not use the arguments to specify the items to instantiate,
24557 # then the envvar interface is used.  Set only those that are not.
24558 # We use the long form for the default assignment because of an extremely
24559 # bizarre bug on SunOS 4.1.3.
24560 if $ac_need_defaults; then
24561   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24562   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24563   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24564 fi
24565
24566 # Have a temporary directory for convenience.  Make it in the build tree
24567 # simply because there is no reason to put it here, and in addition,
24568 # creating and moving files from /tmp can sometimes cause problems.
24569 # Create a temporary directory, and hook for its removal unless debugging.
24570 $debug ||
24571 {
24572   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24573   trap '{ (exit 1); exit 1; }' 1 2 13 15
24574 }
24575
24576 # Create a (secure) tmp directory for tmp files.
24577
24578 {
24579   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24580   test -n "$tmp" && test -d "$tmp"
24581 }  ||
24582 {
24583   tmp=./confstat$$-$RANDOM
24584   (umask 077 && mkdir $tmp)
24585 } ||
24586 {
24587    echo "$me: cannot create a temporary directory in ." >&2
24588    { (exit 1); exit 1; }
24589 }
24590
24591 _ACEOF
24592
24593 cat >>$CONFIG_STATUS <<_ACEOF
24594
24595 #
24596 # CONFIG_FILES section.
24597 #
24598
24599 # No need to generate the scripts if there are no CONFIG_FILES.
24600 # This happens for instance when ./config.status config.h
24601 if test -n "\$CONFIG_FILES"; then
24602   # Protect against being on the right side of a sed subst in config.status.
24603   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24604    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24605 s,@SHELL@,$SHELL,;t t
24606 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24607 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24608 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24609 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24610 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24611 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24612 s,@exec_prefix@,$exec_prefix,;t t
24613 s,@prefix@,$prefix,;t t
24614 s,@program_transform_name@,$program_transform_name,;t t
24615 s,@bindir@,$bindir,;t t
24616 s,@sbindir@,$sbindir,;t t
24617 s,@libexecdir@,$libexecdir,;t t
24618 s,@datadir@,$datadir,;t t
24619 s,@sysconfdir@,$sysconfdir,;t t
24620 s,@sharedstatedir@,$sharedstatedir,;t t
24621 s,@localstatedir@,$localstatedir,;t t
24622 s,@libdir@,$libdir,;t t
24623 s,@includedir@,$includedir,;t t
24624 s,@oldincludedir@,$oldincludedir,;t t
24625 s,@infodir@,$infodir,;t t
24626 s,@mandir@,$mandir,;t t
24627 s,@build_alias@,$build_alias,;t t
24628 s,@host_alias@,$host_alias,;t t
24629 s,@target_alias@,$target_alias,;t t
24630 s,@DEFS@,$DEFS,;t t
24631 s,@ECHO_C@,$ECHO_C,;t t
24632 s,@ECHO_N@,$ECHO_N,;t t
24633 s,@ECHO_T@,$ECHO_T,;t t
24634 s,@LIBS@,$LIBS,;t t
24635 s,@build@,$build,;t t
24636 s,@build_cpu@,$build_cpu,;t t
24637 s,@build_vendor@,$build_vendor,;t t
24638 s,@build_os@,$build_os,;t t
24639 s,@host@,$host,;t t
24640 s,@host_cpu@,$host_cpu,;t t
24641 s,@host_vendor@,$host_vendor,;t t
24642 s,@host_os@,$host_os,;t t
24643 s,@target@,$target,;t t
24644 s,@target_cpu@,$target_cpu,;t t
24645 s,@target_vendor@,$target_vendor,;t t
24646 s,@target_os@,$target_os,;t t
24647 s,@target_noncanonical@,$target_noncanonical,;t t
24648 s,@build_libsubdir@,$build_libsubdir,;t t
24649 s,@build_subdir@,$build_subdir,;t t
24650 s,@host_subdir@,$host_subdir,;t t
24651 s,@target_subdir@,$target_subdir,;t t
24652 s,@GENINSRC@,$GENINSRC,;t t
24653 s,@CC@,$CC,;t t
24654 s,@CFLAGS@,$CFLAGS,;t t
24655 s,@LDFLAGS@,$LDFLAGS,;t t
24656 s,@CPPFLAGS@,$CPPFLAGS,;t t
24657 s,@ac_ct_CC@,$ac_ct_CC,;t t
24658 s,@EXEEXT@,$EXEEXT,;t t
24659 s,@OBJEXT@,$OBJEXT,;t t
24660 s,@GNATBIND@,$GNATBIND,;t t
24661 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
24662 s,@GNATMAKE@,$GNATMAKE,;t t
24663 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
24664 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24665 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24666 s,@CPP@,$CPP,;t t
24667 s,@EGREP@,$EGREP,;t t
24668 s,@loose_warn@,$loose_warn,;t t
24669 s,@strict_warn@,$strict_warn,;t t
24670 s,@warn_cflags@,$warn_cflags,;t t
24671 s,@nocommon_flag@,$nocommon_flag,;t t
24672 s,@TREEBROWSER@,$TREEBROWSER,;t t
24673 s,@valgrind_path@,$valgrind_path,;t t
24674 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24675 s,@valgrind_command@,$valgrind_command,;t t
24676 s,@coverage_flags@,$coverage_flags,;t t
24677 s,@enable_multilib@,$enable_multilib,;t t
24678 s,@enable_decimal_float@,$enable_decimal_float,;t t
24679 s,@enable_fixed_point@,$enable_fixed_point,;t t
24680 s,@enable_shared@,$enable_shared,;t t
24681 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24682 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24683 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24684 s,@onestep@,$onestep,;t t
24685 s,@PKGVERSION@,$PKGVERSION,;t t
24686 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24687 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24688 s,@datarootdir@,$datarootdir,;t t
24689 s,@docdir@,$docdir,;t t
24690 s,@htmldir@,$htmldir,;t t
24691 s,@SET_MAKE@,$SET_MAKE,;t t
24692 s,@AWK@,$AWK,;t t
24693 s,@LN_S@,$LN_S,;t t
24694 s,@LN@,$LN,;t t
24695 s,@RANLIB@,$RANLIB,;t t
24696 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24697 s,@ranlib_flags@,$ranlib_flags,;t t
24698 s,@INSTALL@,$INSTALL,;t t
24699 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24700 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24701 s,@make_compare_target@,$make_compare_target,;t t
24702 s,@have_mktemp_command@,$have_mktemp_command,;t t
24703 s,@MAKEINFO@,$MAKEINFO,;t t
24704 s,@BUILD_INFO@,$BUILD_INFO,;t t
24705 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24706 s,@FLEX@,$FLEX,;t t
24707 s,@BISON@,$BISON,;t t
24708 s,@NM@,$NM,;t t
24709 s,@AR@,$AR,;t t
24710 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24711 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24712 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24713 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24714 s,@LIBICONV@,$LIBICONV,;t t
24715 s,@LTLIBICONV@,$LTLIBICONV,;t t
24716 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24717 s,@manext@,$manext,;t t
24718 s,@objext@,$objext,;t t
24719 s,@gthread_flags@,$gthread_flags,;t t
24720 s,@extra_modes_file@,$extra_modes_file,;t t
24721 s,@extra_opt_files@,$extra_opt_files,;t t
24722 s,@USE_NLS@,$USE_NLS,;t t
24723 s,@LIBINTL@,$LIBINTL,;t t
24724 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24725 s,@INCINTL@,$INCINTL,;t t
24726 s,@XGETTEXT@,$XGETTEXT,;t t
24727 s,@GMSGFMT@,$GMSGFMT,;t t
24728 s,@POSUB@,$POSUB,;t t
24729 s,@CATALOGS@,$CATALOGS,;t t
24730 s,@DATADIRNAME@,$DATADIRNAME,;t t
24731 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24732 s,@GENCAT@,$GENCAT,;t t
24733 s,@CATOBJEXT@,$CATOBJEXT,;t t
24734 s,@CROSS@,$CROSS,;t t
24735 s,@ALL@,$ALL,;t t
24736 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24737 s,@inhibit_libc@,$inhibit_libc,;t t
24738 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24739 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24740 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
24741 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24742 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24743 s,@collect2@,$collect2,;t t
24744 s,@LIBTOOL@,$LIBTOOL,;t t
24745 s,@SED@,$SED,;t t
24746 s,@FGREP@,$FGREP,;t t
24747 s,@GREP@,$GREP,;t t
24748 s,@LD@,$LD,;t t
24749 s,@DUMPBIN@,$DUMPBIN,;t t
24750 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24751 s,@ac_ct_AR@,$ac_ct_AR,;t t
24752 s,@STRIP@,$STRIP,;t t
24753 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24754 s,@lt_ECHO@,$lt_ECHO,;t t
24755 s,@objdir@,$objdir,;t t
24756 s,@enable_fast_install@,$enable_fast_install,;t t
24757 s,@gcc_cv_as@,$gcc_cv_as,;t t
24758 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24759 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24760 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24761 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24762 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24763 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24764 s,@libgcc_visibility@,$libgcc_visibility,;t t
24765 s,@GGC@,$GGC,;t t
24766 s,@zlibdir@,$zlibdir,;t t
24767 s,@zlibinc@,$zlibinc,;t t
24768 s,@MAINT@,$MAINT,;t t
24769 s,@gcc_tooldir@,$gcc_tooldir,;t t
24770 s,@dollar@,$dollar,;t t
24771 s,@slibdir@,$slibdir,;t t
24772 s,@subdirs@,$subdirs,;t t
24773 s,@srcdir@,$srcdir,;t t
24774 s,@all_compilers@,$all_compilers,;t t
24775 s,@all_gtfiles@,$all_gtfiles,;t t
24776 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24777 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24778 s,@all_languages@,$all_languages,;t t
24779 s,@all_selected_languages@,$all_selected_languages,;t t
24780 s,@build_exeext@,$build_exeext,;t t
24781 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24782 s,@build_xm_file_list@,$build_xm_file_list,;t t
24783 s,@build_xm_include_list@,$build_xm_include_list,;t t
24784 s,@build_xm_defines@,$build_xm_defines,;t t
24785 s,@build_file_translate@,$build_file_translate,;t t
24786 s,@check_languages@,$check_languages,;t t
24787 s,@cpp_install_dir@,$cpp_install_dir,;t t
24788 s,@xmake_file@,$xmake_file,;t t
24789 s,@tmake_file@,$tmake_file,;t t
24790 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24791 s,@extra_headers_list@,$extra_headers_list,;t t
24792 s,@extra_objs@,$extra_objs,;t t
24793 s,@extra_parts@,$extra_parts,;t t
24794 s,@extra_passes@,$extra_passes,;t t
24795 s,@extra_programs@,$extra_programs,;t t
24796 s,@float_h_file@,$float_h_file,;t t
24797 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24798 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24799 s,@host_exeext@,$host_exeext,;t t
24800 s,@host_xm_file_list@,$host_xm_file_list,;t t
24801 s,@host_xm_include_list@,$host_xm_include_list,;t t
24802 s,@host_xm_defines@,$host_xm_defines,;t t
24803 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24804 s,@install@,$install,;t t
24805 s,@lang_opt_files@,$lang_opt_files,;t t
24806 s,@lang_specs_files@,$lang_specs_files,;t t
24807 s,@lang_tree_files@,$lang_tree_files,;t t
24808 s,@local_prefix@,$local_prefix,;t t
24809 s,@md_file@,$md_file,;t t
24810 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24811 s,@out_file@,$out_file,;t t
24812 s,@out_object_file@,$out_object_file,;t t
24813 s,@thread_file@,$thread_file,;t t
24814 s,@tm_file_list@,$tm_file_list,;t t
24815 s,@tm_include_list@,$tm_include_list,;t t
24816 s,@tm_defines@,$tm_defines,;t t
24817 s,@tm_p_file_list@,$tm_p_file_list,;t t
24818 s,@tm_p_include_list@,$tm_p_include_list,;t t
24819 s,@xm_file_list@,$xm_file_list,;t t
24820 s,@xm_include_list@,$xm_include_list,;t t
24821 s,@xm_defines@,$xm_defines,;t t
24822 s,@c_target_objs@,$c_target_objs,;t t
24823 s,@cxx_target_objs@,$cxx_target_objs,;t t
24824 s,@fortran_target_objs@,$fortran_target_objs,;t t
24825 s,@target_cpu_default@,$target_cpu_default,;t t
24826 s,@GMPLIBS@,$GMPLIBS,;t t
24827 s,@GMPINC@,$GMPINC,;t t
24828 s,@LIBOBJS@,$LIBOBJS,;t t
24829 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24830 /@language_hooks@/r $language_hooks
24831 s,@language_hooks@,,;t t
24832 CEOF
24833
24834 _ACEOF
24835
24836   cat >>$CONFIG_STATUS <<\_ACEOF
24837   # Split the substitutions into bite-sized pieces for seds with
24838   # small command number limits, like on Digital OSF/1 and HP-UX.
24839   ac_max_sed_lines=48
24840   ac_sed_frag=1 # Number of current file.
24841   ac_beg=1 # First line for current file.
24842   ac_end=$ac_max_sed_lines # Line after last line for current file.
24843   ac_more_lines=:
24844   ac_sed_cmds=
24845   while $ac_more_lines; do
24846     if test $ac_beg -gt 1; then
24847       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24848     else
24849       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24850     fi
24851     if test ! -s $tmp/subs.frag; then
24852       ac_more_lines=false
24853     else
24854       # The purpose of the label and of the branching condition is to
24855       # speed up the sed processing (if there are no `@' at all, there
24856       # is no need to browse any of the substitutions).
24857       # These are the two extra sed commands mentioned above.
24858       (echo ':t
24859   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24860       if test -z "$ac_sed_cmds"; then
24861         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24862       else
24863         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24864       fi
24865       ac_sed_frag=`expr $ac_sed_frag + 1`
24866       ac_beg=$ac_end
24867       ac_end=`expr $ac_end + $ac_max_sed_lines`
24868     fi
24869   done
24870   if test -z "$ac_sed_cmds"; then
24871     ac_sed_cmds=cat
24872   fi
24873 fi # test -n "$CONFIG_FILES"
24874
24875 _ACEOF
24876 cat >>$CONFIG_STATUS <<\_ACEOF
24877 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24878   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24879   case $ac_file in
24880   - | *:- | *:-:* ) # input from stdin
24881         cat >$tmp/stdin
24882         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24883         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24884   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24885         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24886   * )   ac_file_in=$ac_file.in ;;
24887   esac
24888
24889   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24890   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24891 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24892          X"$ac_file" : 'X\(//\)[^/]' \| \
24893          X"$ac_file" : 'X\(//\)$' \| \
24894          X"$ac_file" : 'X\(/\)' \| \
24895          .     : '\(.\)' 2>/dev/null ||
24896 echo X"$ac_file" |
24897     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24898           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24899           /^X\(\/\/\)$/{ s//\1/; q; }
24900           /^X\(\/\).*/{ s//\1/; q; }
24901           s/.*/./; q'`
24902   { if $as_mkdir_p; then
24903     mkdir -p "$ac_dir"
24904   else
24905     as_dir="$ac_dir"
24906     as_dirs=
24907     while test ! -d "$as_dir"; do
24908       as_dirs="$as_dir $as_dirs"
24909       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24910 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24911          X"$as_dir" : 'X\(//\)[^/]' \| \
24912          X"$as_dir" : 'X\(//\)$' \| \
24913          X"$as_dir" : 'X\(/\)' \| \
24914          .     : '\(.\)' 2>/dev/null ||
24915 echo X"$as_dir" |
24916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24917           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24918           /^X\(\/\/\)$/{ s//\1/; q; }
24919           /^X\(\/\).*/{ s//\1/; q; }
24920           s/.*/./; q'`
24921     done
24922     test ! -n "$as_dirs" || mkdir $as_dirs
24923   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24924 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24925    { (exit 1); exit 1; }; }; }
24926
24927   ac_builddir=.
24928
24929 if test "$ac_dir" != .; then
24930   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24931   # A "../" for each directory in $ac_dir_suffix.
24932   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24933 else
24934   ac_dir_suffix= ac_top_builddir=
24935 fi
24936
24937 case $srcdir in
24938   .)  # No --srcdir option.  We are building in place.
24939     ac_srcdir=.
24940     if test -z "$ac_top_builddir"; then
24941        ac_top_srcdir=.
24942     else
24943        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24944     fi ;;
24945   [\\/]* | ?:[\\/]* )  # Absolute path.
24946     ac_srcdir=$srcdir$ac_dir_suffix;
24947     ac_top_srcdir=$srcdir ;;
24948   *) # Relative path.
24949     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24950     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24951 esac
24952
24953 # Do not use `cd foo && pwd` to compute absolute paths, because
24954 # the directories may not exist.
24955 case `pwd` in
24956 .) ac_abs_builddir="$ac_dir";;
24957 *)
24958   case "$ac_dir" in
24959   .) ac_abs_builddir=`pwd`;;
24960   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24961   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24962   esac;;
24963 esac
24964 case $ac_abs_builddir in
24965 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24966 *)
24967   case ${ac_top_builddir}. in
24968   .) ac_abs_top_builddir=$ac_abs_builddir;;
24969   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24970   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24971   esac;;
24972 esac
24973 case $ac_abs_builddir in
24974 .) ac_abs_srcdir=$ac_srcdir;;
24975 *)
24976   case $ac_srcdir in
24977   .) ac_abs_srcdir=$ac_abs_builddir;;
24978   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24979   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24980   esac;;
24981 esac
24982 case $ac_abs_builddir in
24983 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24984 *)
24985   case $ac_top_srcdir in
24986   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24987   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24988   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24989   esac;;
24990 esac
24991
24992
24993
24994   if test x"$ac_file" != x-; then
24995     { echo "$as_me:$LINENO: creating $ac_file" >&5
24996 echo "$as_me: creating $ac_file" >&6;}
24997     rm -f "$ac_file"
24998   fi
24999   # Let's still pretend it is `configure' which instantiates (i.e., don't
25000   # use $as_me), people would be surprised to read:
25001   #    /* config.h.  Generated by config.status.  */
25002   if test x"$ac_file" = x-; then
25003     configure_input=
25004   else
25005     configure_input="$ac_file.  "
25006   fi
25007   configure_input=$configure_input"Generated from `echo $ac_file_in |
25008                                      sed 's,.*/,,'` by configure."
25009
25010   # First look for the input files in the build tree, otherwise in the
25011   # src tree.
25012   ac_file_inputs=`IFS=:
25013     for f in $ac_file_in; do
25014       case $f in
25015       -) echo $tmp/stdin ;;
25016       [\\/$]*)
25017          # Absolute (can't be DOS-style, as IFS=:)
25018          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25019 echo "$as_me: error: cannot find input file: $f" >&2;}
25020    { (exit 1); exit 1; }; }
25021          echo "$f";;
25022       *) # Relative
25023          if test -f "$f"; then
25024            # Build tree
25025            echo "$f"
25026          elif test -f "$srcdir/$f"; then
25027            # Source tree
25028            echo "$srcdir/$f"
25029          else
25030            # /dev/null tree
25031            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25032 echo "$as_me: error: cannot find input file: $f" >&2;}
25033    { (exit 1); exit 1; }; }
25034          fi;;
25035       esac
25036     done` || { (exit 1); exit 1; }
25037 _ACEOF
25038 cat >>$CONFIG_STATUS <<_ACEOF
25039   sed "$ac_vpsub
25040 $extrasub
25041 _ACEOF
25042 cat >>$CONFIG_STATUS <<\_ACEOF
25043 :t
25044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25045 s,@configure_input@,$configure_input,;t t
25046 s,@srcdir@,$ac_srcdir,;t t
25047 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25048 s,@top_srcdir@,$ac_top_srcdir,;t t
25049 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25050 s,@builddir@,$ac_builddir,;t t
25051 s,@abs_builddir@,$ac_abs_builddir,;t t
25052 s,@top_builddir@,$ac_top_builddir,;t t
25053 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25054 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25055   rm -f $tmp/stdin
25056   if test x"$ac_file" != x-; then
25057     mv $tmp/out $ac_file
25058   else
25059     cat $tmp/out
25060     rm -f $tmp/out
25061   fi
25062
25063   # Run the commands associated with the file.
25064   case $ac_file in
25065     as ) chmod +x as ;;
25066     collect-ld ) chmod +x collect-ld ;;
25067     nm ) chmod +x nm ;;
25068   esac
25069 done
25070 _ACEOF
25071 cat >>$CONFIG_STATUS <<\_ACEOF
25072
25073 #
25074 # CONFIG_HEADER section.
25075 #
25076
25077 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25078 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25079 #
25080 # ac_d sets the value in "#define NAME VALUE" lines.
25081 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25082 ac_dB='[         ].*$,\1#\2'
25083 ac_dC=' '
25084 ac_dD=',;t'
25085 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25086 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25087 ac_uB='$,\1#\2define\3'
25088 ac_uC=' '
25089 ac_uD=',;t'
25090
25091 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25092   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25093   case $ac_file in
25094   - | *:- | *:-:* ) # input from stdin
25095         cat >$tmp/stdin
25096         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25097         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25098   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25099         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25100   * )   ac_file_in=$ac_file.in ;;
25101   esac
25102
25103   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25104 echo "$as_me: creating $ac_file" >&6;}
25105
25106   # First look for the input files in the build tree, otherwise in the
25107   # src tree.
25108   ac_file_inputs=`IFS=:
25109     for f in $ac_file_in; do
25110       case $f in
25111       -) echo $tmp/stdin ;;
25112       [\\/$]*)
25113          # Absolute (can't be DOS-style, as IFS=:)
25114          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25115 echo "$as_me: error: cannot find input file: $f" >&2;}
25116    { (exit 1); exit 1; }; }
25117          # Do quote $f, to prevent DOS paths from being IFS'd.
25118          echo "$f";;
25119       *) # Relative
25120          if test -f "$f"; then
25121            # Build tree
25122            echo "$f"
25123          elif test -f "$srcdir/$f"; then
25124            # Source tree
25125            echo "$srcdir/$f"
25126          else
25127            # /dev/null tree
25128            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25129 echo "$as_me: error: cannot find input file: $f" >&2;}
25130    { (exit 1); exit 1; }; }
25131          fi;;
25132       esac
25133     done` || { (exit 1); exit 1; }
25134   # Remove the trailing spaces.
25135   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25136
25137 _ACEOF
25138
25139 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25140 # `conftest.undefs', that substitutes the proper values into
25141 # config.h.in to produce config.h.  The first handles `#define'
25142 # templates, and the second `#undef' templates.
25143 # And first: Protect against being on the right side of a sed subst in
25144 # config.status.  Protect against being in an unquoted here document
25145 # in config.status.
25146 rm -f conftest.defines conftest.undefs
25147 # Using a here document instead of a string reduces the quoting nightmare.
25148 # Putting comments in sed scripts is not portable.
25149 #
25150 # `end' is used to avoid that the second main sed command (meant for
25151 # 0-ary CPP macros) applies to n-ary macro definitions.
25152 # See the Autoconf documentation for `clear'.
25153 cat >confdef2sed.sed <<\_ACEOF
25154 s/[\\&,]/\\&/g
25155 s,[\\$`],\\&,g
25156 t clear
25157 : clear
25158 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25159 t end
25160 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25161 : end
25162 _ACEOF
25163 # If some macros were called several times there might be several times
25164 # the same #defines, which is useless.  Nevertheless, we may not want to
25165 # sort them, since we want the *last* AC-DEFINE to be honored.
25166 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25167 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25168 rm -f confdef2sed.sed
25169
25170 # This sed command replaces #undef with comments.  This is necessary, for
25171 # example, in the case of _POSIX_SOURCE, which is predefined and required
25172 # on some systems where configure will not decide to define it.
25173 cat >>conftest.undefs <<\_ACEOF
25174 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25175 _ACEOF
25176
25177 # Break up conftest.defines because some shells have a limit on the size
25178 # of here documents, and old seds have small limits too (100 cmds).
25179 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25180 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25181 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25182 echo '  :' >>$CONFIG_STATUS
25183 rm -f conftest.tail
25184 while grep . conftest.defines >/dev/null
25185 do
25186   # Write a limited-size here document to $tmp/defines.sed.
25187   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25188   # Speed up: don't consider the non `#define' lines.
25189   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25190   # Work around the forget-to-reset-the-flag bug.
25191   echo 't clr' >>$CONFIG_STATUS
25192   echo ': clr' >>$CONFIG_STATUS
25193   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25194   echo 'CEOF
25195   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25196   rm -f $tmp/in
25197   mv $tmp/out $tmp/in
25198 ' >>$CONFIG_STATUS
25199   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25200   rm -f conftest.defines
25201   mv conftest.tail conftest.defines
25202 done
25203 rm -f conftest.defines
25204 echo '  fi # grep' >>$CONFIG_STATUS
25205 echo >>$CONFIG_STATUS
25206
25207 # Break up conftest.undefs because some shells have a limit on the size
25208 # of here documents, and old seds have small limits too (100 cmds).
25209 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25210 rm -f conftest.tail
25211 while grep . conftest.undefs >/dev/null
25212 do
25213   # Write a limited-size here document to $tmp/undefs.sed.
25214   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25215   # Speed up: don't consider the non `#undef'
25216   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25217   # Work around the forget-to-reset-the-flag bug.
25218   echo 't clr' >>$CONFIG_STATUS
25219   echo ': clr' >>$CONFIG_STATUS
25220   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25221   echo 'CEOF
25222   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25223   rm -f $tmp/in
25224   mv $tmp/out $tmp/in
25225 ' >>$CONFIG_STATUS
25226   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25227   rm -f conftest.undefs
25228   mv conftest.tail conftest.undefs
25229 done
25230 rm -f conftest.undefs
25231
25232 cat >>$CONFIG_STATUS <<\_ACEOF
25233   # Let's still pretend it is `configure' which instantiates (i.e., don't
25234   # use $as_me), people would be surprised to read:
25235   #    /* config.h.  Generated by config.status.  */
25236   if test x"$ac_file" = x-; then
25237     echo "/* Generated by configure.  */" >$tmp/config.h
25238   else
25239     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25240   fi
25241   cat $tmp/in >>$tmp/config.h
25242   rm -f $tmp/in
25243   if test x"$ac_file" != x-; then
25244     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25245       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25246 echo "$as_me: $ac_file is unchanged" >&6;}
25247     else
25248       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25250          X"$ac_file" : 'X\(//\)[^/]' \| \
25251          X"$ac_file" : 'X\(//\)$' \| \
25252          X"$ac_file" : 'X\(/\)' \| \
25253          .     : '\(.\)' 2>/dev/null ||
25254 echo X"$ac_file" |
25255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25256           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25257           /^X\(\/\/\)$/{ s//\1/; q; }
25258           /^X\(\/\).*/{ s//\1/; q; }
25259           s/.*/./; q'`
25260       { if $as_mkdir_p; then
25261     mkdir -p "$ac_dir"
25262   else
25263     as_dir="$ac_dir"
25264     as_dirs=
25265     while test ! -d "$as_dir"; do
25266       as_dirs="$as_dir $as_dirs"
25267       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25269          X"$as_dir" : 'X\(//\)[^/]' \| \
25270          X"$as_dir" : 'X\(//\)$' \| \
25271          X"$as_dir" : 'X\(/\)' \| \
25272          .     : '\(.\)' 2>/dev/null ||
25273 echo X"$as_dir" |
25274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25275           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25276           /^X\(\/\/\)$/{ s//\1/; q; }
25277           /^X\(\/\).*/{ s//\1/; q; }
25278           s/.*/./; q'`
25279     done
25280     test ! -n "$as_dirs" || mkdir $as_dirs
25281   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25282 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25283    { (exit 1); exit 1; }; }; }
25284
25285       rm -f $ac_file
25286       mv $tmp/config.h $ac_file
25287     fi
25288   else
25289     cat $tmp/config.h
25290     rm -f $tmp/config.h
25291   fi
25292 done
25293 _ACEOF
25294 cat >>$CONFIG_STATUS <<\_ACEOF
25295
25296 #
25297 # CONFIG_COMMANDS section.
25298 #
25299 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25300   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25301   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25302   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25303 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25304          X"$ac_dest" : 'X\(//\)[^/]' \| \
25305          X"$ac_dest" : 'X\(//\)$' \| \
25306          X"$ac_dest" : 'X\(/\)' \| \
25307          .     : '\(.\)' 2>/dev/null ||
25308 echo X"$ac_dest" |
25309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25310           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25311           /^X\(\/\/\)$/{ s//\1/; q; }
25312           /^X\(\/\).*/{ s//\1/; q; }
25313           s/.*/./; q'`
25314   { if $as_mkdir_p; then
25315     mkdir -p "$ac_dir"
25316   else
25317     as_dir="$ac_dir"
25318     as_dirs=
25319     while test ! -d "$as_dir"; do
25320       as_dirs="$as_dir $as_dirs"
25321       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25323          X"$as_dir" : 'X\(//\)[^/]' \| \
25324          X"$as_dir" : 'X\(//\)$' \| \
25325          X"$as_dir" : 'X\(/\)' \| \
25326          .     : '\(.\)' 2>/dev/null ||
25327 echo X"$as_dir" |
25328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25329           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25330           /^X\(\/\/\)$/{ s//\1/; q; }
25331           /^X\(\/\).*/{ s//\1/; q; }
25332           s/.*/./; q'`
25333     done
25334     test ! -n "$as_dirs" || mkdir $as_dirs
25335   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25336 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25337    { (exit 1); exit 1; }; }; }
25338
25339   ac_builddir=.
25340
25341 if test "$ac_dir" != .; then
25342   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25343   # A "../" for each directory in $ac_dir_suffix.
25344   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25345 else
25346   ac_dir_suffix= ac_top_builddir=
25347 fi
25348
25349 case $srcdir in
25350   .)  # No --srcdir option.  We are building in place.
25351     ac_srcdir=.
25352     if test -z "$ac_top_builddir"; then
25353        ac_top_srcdir=.
25354     else
25355        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25356     fi ;;
25357   [\\/]* | ?:[\\/]* )  # Absolute path.
25358     ac_srcdir=$srcdir$ac_dir_suffix;
25359     ac_top_srcdir=$srcdir ;;
25360   *) # Relative path.
25361     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25362     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25363 esac
25364
25365 # Do not use `cd foo && pwd` to compute absolute paths, because
25366 # the directories may not exist.
25367 case `pwd` in
25368 .) ac_abs_builddir="$ac_dir";;
25369 *)
25370   case "$ac_dir" in
25371   .) ac_abs_builddir=`pwd`;;
25372   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25373   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25374   esac;;
25375 esac
25376 case $ac_abs_builddir in
25377 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25378 *)
25379   case ${ac_top_builddir}. in
25380   .) ac_abs_top_builddir=$ac_abs_builddir;;
25381   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25382   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25383   esac;;
25384 esac
25385 case $ac_abs_builddir in
25386 .) ac_abs_srcdir=$ac_srcdir;;
25387 *)
25388   case $ac_srcdir in
25389   .) ac_abs_srcdir=$ac_abs_builddir;;
25390   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25391   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25392   esac;;
25393 esac
25394 case $ac_abs_builddir in
25395 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25396 *)
25397   case $ac_top_srcdir in
25398   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25399   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25400   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25401   esac;;
25402 esac
25403
25404
25405   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25406 echo "$as_me: executing $ac_dest commands" >&6;}
25407   case $ac_dest in
25408     default )
25409 case ${CONFIG_HEADERS} in
25410   *auto-host.h:config.in*)
25411   echo > cstamp-h ;;
25412 esac
25413 # Make sure all the subdirs exist.
25414 for d in $subdirs doc build
25415 do
25416     test -d $d || mkdir $d
25417 done
25418  ;;
25419   esac
25420 done
25421 _ACEOF
25422
25423 cat >>$CONFIG_STATUS <<\_ACEOF
25424
25425 { (exit 0); exit 0; }
25426 _ACEOF
25427 chmod +x $CONFIG_STATUS
25428 ac_clean_files=$ac_clean_files_save
25429
25430
25431 # configure is writing to config.log, and then calls config.status.
25432 # config.status does its own redirection, appending to config.log.
25433 # Unfortunately, on DOS this fails, as config.log is still kept open
25434 # by configure, so config.status won't be able to write to it; its
25435 # output is simply discarded.  So we exec the FD to /dev/null,
25436 # effectively closing config.log, so it can be properly (re)opened and
25437 # appended to by config.status.  When coming back to configure, we
25438 # need to make the FD available again.
25439 if test "$no_create" != yes; then
25440   ac_cs_success=:
25441   ac_config_status_args=
25442   test "$silent" = yes &&
25443     ac_config_status_args="$ac_config_status_args --quiet"
25444   exec 5>/dev/null
25445   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25446   exec 5>>config.log
25447   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25448   # would make configure fail if this is the last instruction.
25449   $ac_cs_success || { (exit 1); exit 1; }
25450 fi
25451