]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
[thirdparty/gcc.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 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 collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN OBJDUMP ac_ct_OBJDUMP ac_ct_AR STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 gcc_cv_readelf 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 TM_ENDIAN_CONFIG TM_MULTILIB_CONFIG TM_MULTILIB_EXCEPTIONS_CONFIG 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 use_gcc_stdint c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC PPLLIBS PPLINC CLOOGLIBS CLOOGINC pluginlibs enable_plugin 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 ac_env_PPLLIBS_set=${PPLLIBS+set}
932 ac_env_PPLLIBS_value=$PPLLIBS
933 ac_cv_env_PPLLIBS_set=${PPLLIBS+set}
934 ac_cv_env_PPLLIBS_value=$PPLLIBS
935 ac_env_PPLINC_set=${PPLINC+set}
936 ac_env_PPLINC_value=$PPLINC
937 ac_cv_env_PPLINC_set=${PPLINC+set}
938 ac_cv_env_PPLINC_value=$PPLINC
939 ac_env_CLOOGLIBS_set=${CLOOGLIBS+set}
940 ac_env_CLOOGLIBS_value=$CLOOGLIBS
941 ac_cv_env_CLOOGLIBS_set=${CLOOGLIBS+set}
942 ac_cv_env_CLOOGLIBS_value=$CLOOGLIBS
943 ac_env_CLOOGINC_set=${CLOOGINC+set}
944 ac_env_CLOOGINC_value=$CLOOGINC
945 ac_cv_env_CLOOGINC_set=${CLOOGINC+set}
946 ac_cv_env_CLOOGINC_value=$CLOOGINC
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1005
1006 cat <<\_ACEOF
1007
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022 cat <<\_ACEOF
1023
1024 Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-generated-files-in-srcdir
1028 put copies of generated files in source dir
1029 intended for creating source tarballs for users
1030 without texinfo bison or flex.
1031 --enable-werror-always enable -Werror despite compiler version
1032 --enable-checking=LIST
1033 enable expensive run-time checks. With LIST,
1034 enable only specific categories of checks.
1035 Categories are: yes,no,all,none,release.
1036 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1037 rtlflag,rtl,runtime,tree,valgrind,types.
1038 --enable-coverage=LEVEL
1039 enable compiler's code coverage collection.
1040 Use to measure compiler performance and locate
1041 unused parts of the compiler. With LEVEL, specify
1042 optimization. Values are opt, noopt,
1043 default is noopt
1044 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1045 --enable-multilib enable library support for multiple ABIs
1046 --enable-__cxa_atexit enable __cxa_atexit for C++
1047 --enable-decimal-float={no,yes,bid,dpd}
1048 enable decimal float extension to C. Selecting 'bid'
1049 or 'dpd' choses which decimal floating point format
1050 to use
1051 --enable-fixed-point enable fixed-point arithmetic extension to C
1052 --enable-threads enable thread usage for target GCC
1053 --enable-threads=LIB use LIB thread package for target GCC
1054 --enable-tls enable or disable generation of tls code
1055 overriding the assembler check for tls support
1056 --enable-objc-gc enable the use of Boehm's garbage collector with
1057 the GNU Objective-C runtime
1058 --disable-shared don't provide a shared libgcc
1059 --enable-intermodule build the compiler in one step
1060 --enable-languages=LIST specify which front-ends to build
1061 --disable-rpath do not hardcode runtime library paths
1062 --enable-initfini-array use .init_array/.fini_array sections
1063 --enable-sjlj-exceptions
1064 arrange to use setjmp/longjmp exception handling
1065 --enable-secureplt enable -msecure-plt by default for PowerPC
1066 --enable-cld enable -mcld by default for 32bit x86
1067 --disable-win32-registry
1068 disable lookup of installation paths in the
1069 Registry on Windows hosts
1070 --enable-win32-registry enable registry lookup (default)
1071 --enable-win32-registry=KEY
1072 use KEY instead of GCC version as the last portion
1073 of the registry key
1074 --enable-shared[=PKGS]
1075 build shared libraries [default=yes]
1076 --enable-static[=PKGS]
1077 build static libraries [default=yes]
1078 --enable-fast-install[=PKGS]
1079 optimize for fast installation [default=yes]
1080 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --enable-linker-build-id
1082 compiler will always pass --build-id to linker
1083 --enable-maintainer-mode
1084 enable make rules and dependencies not useful
1085 (and sometimes confusing) to the casual installer
1086 --enable-version-specific-runtime-libs
1087 specify that runtime libraries should be
1088 installed in a compiler-specific directory
1089 --enable-plugin enable plugin support
1090
1091 Optional Packages:
1092 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1093 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1094 --with-build-libsubdir=DIR Directory where to find libraries for build system
1095 --with-local-prefix=DIR specifies directory to put local include
1096 --with-gxx-include-dir=DIR
1097 specifies directory to put g++ header files
1098 --with-cpp-install-dir=DIR
1099 install the user visible C preprocessor in DIR
1100 (relative to PREFIX) as well as PREFIX/bin
1101 --with-gnu-ld arrange to work with GNU ld.
1102 --with-ld arrange to use the specified ld (full pathname)
1103 --with-demangler-in-ld try to use demangler in GNU ld.
1104 --with-gnu-as arrange to work with GNU as
1105 --with-as arrange to use the specified as (full pathname)
1106 --with-stabs arrange to use stabs instead of host debug format
1107 --with-dwarf2 force the default debug format to be DWARF 2
1108 --with-build-sysroot=sysroot
1109 use sysroot as the system root during the build
1110 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1111 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1112 --with-bugurl=URL Direct users to URL to report a bug
1113 --with-multilib-list Select multilibs (SH only)
1114 --with-gnu-ld assume the C compiler uses GNU ld default=no
1115 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1116 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1117 --with-system-libunwind use installed libunwind
1118 --with-pic try to use only PIC/non-PIC objects [default=use
1119 both]
1120 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1121 --with-long-double-128 Use 128-bit long double by default.
1122 --with-gc={page,zone} choose the garbage collection mechanism to use
1123 with the compiler
1124 --with-system-zlib use installed libz
1125 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1126 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1127 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1128 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1129
1130 Some influential environment variables:
1131 CC C compiler command
1132 CFLAGS C compiler flags
1133 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1134 nonstandard directory <lib dir>
1135 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1136 headers in a nonstandard directory <include dir>
1137 CPP C preprocessor
1138 GMPLIBS How to link GMP
1139 GMPINC How to find GMP include files
1140 PPLLIBS How to link PPL
1141 PPLINC How to find PPL include files
1142 CLOOGLIBS How to link CLOOG
1143 CLOOGINC How to find CLOOG include files
1144
1145 Use these variables to override the choices made by `configure' or to help
1146 it to find libraries and programs with nonstandard names/locations.
1147
1148 _ACEOF
1149 fi
1150
1151 if test "$ac_init_help" = "recursive"; then
1152 # If there are subdirs, report their specific --help.
1153 ac_popdir=`pwd`
1154 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1155 test -d $ac_dir || continue
1156 ac_builddir=.
1157
1158 if test "$ac_dir" != .; then
1159 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1160 # A "../" for each directory in $ac_dir_suffix.
1161 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1162 else
1163 ac_dir_suffix= ac_top_builddir=
1164 fi
1165
1166 case $srcdir in
1167 .) # No --srcdir option. We are building in place.
1168 ac_srcdir=.
1169 if test -z "$ac_top_builddir"; then
1170 ac_top_srcdir=.
1171 else
1172 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1173 fi ;;
1174 [\\/]* | ?:[\\/]* ) # Absolute path.
1175 ac_srcdir=$srcdir$ac_dir_suffix;
1176 ac_top_srcdir=$srcdir ;;
1177 *) # Relative path.
1178 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1179 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1180 esac
1181
1182 # Do not use `cd foo && pwd` to compute absolute paths, because
1183 # the directories may not exist.
1184 case `pwd` in
1185 .) ac_abs_builddir="$ac_dir";;
1186 *)
1187 case "$ac_dir" in
1188 .) ac_abs_builddir=`pwd`;;
1189 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1190 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1191 esac;;
1192 esac
1193 case $ac_abs_builddir in
1194 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1195 *)
1196 case ${ac_top_builddir}. in
1197 .) ac_abs_top_builddir=$ac_abs_builddir;;
1198 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1199 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1200 esac;;
1201 esac
1202 case $ac_abs_builddir in
1203 .) ac_abs_srcdir=$ac_srcdir;;
1204 *)
1205 case $ac_srcdir in
1206 .) ac_abs_srcdir=$ac_abs_builddir;;
1207 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1208 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1209 esac;;
1210 esac
1211 case $ac_abs_builddir in
1212 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1213 *)
1214 case $ac_top_srcdir in
1215 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1216 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1217 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1218 esac;;
1219 esac
1220
1221 cd $ac_dir
1222 # Check for guested configure; otherwise get Cygnus style configure.
1223 if test -f $ac_srcdir/configure.gnu; then
1224 echo
1225 $SHELL $ac_srcdir/configure.gnu --help=recursive
1226 elif test -f $ac_srcdir/configure; then
1227 echo
1228 $SHELL $ac_srcdir/configure --help=recursive
1229 elif test -f $ac_srcdir/configure.ac ||
1230 test -f $ac_srcdir/configure.in; then
1231 echo
1232 $ac_configure --help
1233 else
1234 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1235 fi
1236 cd $ac_popdir
1237 done
1238 fi
1239
1240 test -n "$ac_init_help" && exit 0
1241 if $ac_init_version; then
1242 cat <<\_ACEOF
1243
1244 Copyright (C) 2003 Free Software Foundation, Inc.
1245 This configure script is free software; the Free Software Foundation
1246 gives unlimited permission to copy, distribute and modify it.
1247 _ACEOF
1248 exit 0
1249 fi
1250 exec 5>config.log
1251 cat >&5 <<_ACEOF
1252 This file contains any messages produced by compilers while
1253 running configure, to aid debugging if configure makes a mistake.
1254
1255 It was created by $as_me, which was
1256 generated by GNU Autoconf 2.59. Invocation command line was
1257
1258 $ $0 $@
1259
1260 _ACEOF
1261 {
1262 cat <<_ASUNAME
1263 ## --------- ##
1264 ## Platform. ##
1265 ## --------- ##
1266
1267 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1272
1273 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1275
1276 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1277 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1278 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1280 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1281 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1282 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1283
1284 _ASUNAME
1285
1286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1287 for as_dir in $PATH
1288 do
1289 IFS=$as_save_IFS
1290 test -z "$as_dir" && as_dir=.
1291 echo "PATH: $as_dir"
1292 done
1293
1294 } >&5
1295
1296 cat >&5 <<_ACEOF
1297
1298
1299 ## ----------- ##
1300 ## Core tests. ##
1301 ## ----------- ##
1302
1303 _ACEOF
1304
1305
1306 # Keep a trace of the command line.
1307 # Strip out --no-create and --no-recursion so they do not pile up.
1308 # Strip out --silent because we don't want to record it for future runs.
1309 # Also quote any args containing shell meta-characters.
1310 # Make two passes to allow for proper duplicate-argument suppression.
1311 ac_configure_args=
1312 ac_configure_args0=
1313 ac_configure_args1=
1314 ac_sep=
1315 ac_must_keep_next=false
1316 for ac_pass in 1 2
1317 do
1318 for ac_arg
1319 do
1320 case $ac_arg in
1321 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323 | -silent | --silent | --silen | --sile | --sil)
1324 continue ;;
1325 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327 esac
1328 case $ac_pass in
1329 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1330 2)
1331 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332 if test $ac_must_keep_next = true; then
1333 ac_must_keep_next=false # Got value, back to normal.
1334 else
1335 case $ac_arg in
1336 *=* | --config-cache | -C | -disable-* | --disable-* \
1337 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339 | -with-* | --with-* | -without-* | --without-* | --x)
1340 case "$ac_configure_args0 " in
1341 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342 esac
1343 ;;
1344 -* ) ac_must_keep_next=true ;;
1345 esac
1346 fi
1347 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348 # Get rid of the leading space.
1349 ac_sep=" "
1350 ;;
1351 esac
1352 done
1353 done
1354 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1356
1357 # When interrupted or exit'd, cleanup temporary files, and complete
1358 # config.log. We remove comments because anyway the quotes in there
1359 # would cause problems or look ugly.
1360 # WARNING: Be sure not to use single quotes in there, as some shells,
1361 # such as our DU 5.0 friend, will then `close' the trap.
1362 trap 'exit_status=$?
1363 # Save into config.log some information that might help in debugging.
1364 {
1365 echo
1366
1367 cat <<\_ASBOX
1368 ## ---------------- ##
1369 ## Cache variables. ##
1370 ## ---------------- ##
1371 _ASBOX
1372 echo
1373 # The following way of writing the cache mishandles newlines in values,
1374 {
1375 (set) 2>&1 |
1376 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377 *ac_space=\ *)
1378 sed -n \
1379 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1381 ;;
1382 *)
1383 sed -n \
1384 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1385 ;;
1386 esac;
1387 }
1388 echo
1389
1390 cat <<\_ASBOX
1391 ## ----------------- ##
1392 ## Output variables. ##
1393 ## ----------------- ##
1394 _ASBOX
1395 echo
1396 for ac_var in $ac_subst_vars
1397 do
1398 eval ac_val=$`echo $ac_var`
1399 echo "$ac_var='"'"'$ac_val'"'"'"
1400 done | sort
1401 echo
1402
1403 if test -n "$ac_subst_files"; then
1404 cat <<\_ASBOX
1405 ## ------------- ##
1406 ## Output files. ##
1407 ## ------------- ##
1408 _ASBOX
1409 echo
1410 for ac_var in $ac_subst_files
1411 do
1412 eval ac_val=$`echo $ac_var`
1413 echo "$ac_var='"'"'$ac_val'"'"'"
1414 done | sort
1415 echo
1416 fi
1417
1418 if test -s confdefs.h; then
1419 cat <<\_ASBOX
1420 ## ----------- ##
1421 ## confdefs.h. ##
1422 ## ----------- ##
1423 _ASBOX
1424 echo
1425 sed "/^$/d" confdefs.h | sort
1426 echo
1427 fi
1428 test "$ac_signal" != 0 &&
1429 echo "$as_me: caught signal $ac_signal"
1430 echo "$as_me: exit $exit_status"
1431 } >&5
1432 rm -f core *.core &&
1433 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1434 exit $exit_status
1435 ' 0
1436 for ac_signal in 1 2 13 15; do
1437 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1438 done
1439 ac_signal=0
1440
1441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1442 rm -rf conftest* confdefs.h
1443 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444 echo >confdefs.h
1445
1446 # Predefined preprocessor variables.
1447
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_NAME "$PACKAGE_NAME"
1450 _ACEOF
1451
1452
1453 cat >>confdefs.h <<_ACEOF
1454 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1455 _ACEOF
1456
1457
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1460 _ACEOF
1461
1462
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_STRING "$PACKAGE_STRING"
1465 _ACEOF
1466
1467
1468 cat >>confdefs.h <<_ACEOF
1469 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1470 _ACEOF
1471
1472
1473 # Let the site file select an alternate cache file if it wants to.
1474 # Prefer explicitly selected file to automatically selected ones.
1475 if test -z "$CONFIG_SITE"; then
1476 if test "x$prefix" != xNONE; then
1477 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1478 else
1479 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480 fi
1481 fi
1482 for ac_site_file in $CONFIG_SITE; do
1483 if test -r "$ac_site_file"; then
1484 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485 echo "$as_me: loading site script $ac_site_file" >&6;}
1486 sed 's/^/| /' "$ac_site_file" >&5
1487 . "$ac_site_file"
1488 fi
1489 done
1490
1491 if test -r "$cache_file"; then
1492 # Some versions of bash will fail to source /dev/null (special
1493 # files actually), so we avoid doing that.
1494 if test -f "$cache_file"; then
1495 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496 echo "$as_me: loading cache $cache_file" >&6;}
1497 case $cache_file in
1498 [\\/]* | ?:[\\/]* ) . $cache_file;;
1499 *) . ./$cache_file;;
1500 esac
1501 fi
1502 else
1503 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504 echo "$as_me: creating cache $cache_file" >&6;}
1505 >$cache_file
1506 fi
1507
1508 # Check that the precious variables saved in the cache have kept the same
1509 # value.
1510 ac_cache_corrupted=false
1511 for ac_var in `(set) 2>&1 |
1512 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514 eval ac_new_set=\$ac_env_${ac_var}_set
1515 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516 eval ac_new_val="\$ac_env_${ac_var}_value"
1517 case $ac_old_set,$ac_new_set in
1518 set,)
1519 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521 ac_cache_corrupted=: ;;
1522 ,set)
1523 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525 ac_cache_corrupted=: ;;
1526 ,);;
1527 *)
1528 if test "x$ac_old_val" != "x$ac_new_val"; then
1529 # differences in whitespace do not lead to failure.
1530 ac_old_val_w=`echo x $ac_old_val`
1531 ac_new_val_w=`echo x $ac_new_val`
1532 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1533 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1534 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1535 ac_cache_corrupted=:
1536 else
1537 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1538 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1539 eval $ac_var=\$ac_old_val
1540 fi
1541 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1542 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1543 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1544 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1545 fi;;
1546 esac
1547 # Pass precious variables to config.status.
1548 if test "$ac_new_set" = set; then
1549 case $ac_new_val in
1550 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1551 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1552 *) ac_arg=$ac_var=$ac_new_val ;;
1553 esac
1554 case " $ac_configure_args " in
1555 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1556 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1557 esac
1558 fi
1559 done
1560 if $ac_cache_corrupted; then
1561 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1562 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1563 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1564 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1565 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1566 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1567 { (exit 1); exit 1; }; }
1568 fi
1569
1570 ac_ext=c
1571 ac_cpp='$CPP $CPPFLAGS'
1572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1599
1600
1601 gcc_version=`cat $srcdir/BASE-VER`
1602
1603 # Determine the host, build, and target systems
1604 ac_aux_dir=
1605 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1606 if test -f $ac_dir/install-sh; then
1607 ac_aux_dir=$ac_dir
1608 ac_install_sh="$ac_aux_dir/install-sh -c"
1609 break
1610 elif test -f $ac_dir/install.sh; then
1611 ac_aux_dir=$ac_dir
1612 ac_install_sh="$ac_aux_dir/install.sh -c"
1613 break
1614 elif test -f $ac_dir/shtool; then
1615 ac_aux_dir=$ac_dir
1616 ac_install_sh="$ac_aux_dir/shtool install -c"
1617 break
1618 fi
1619 done
1620 if test -z "$ac_aux_dir"; then
1621 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1622 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1623 { (exit 1); exit 1; }; }
1624 fi
1625 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1626 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1627 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1628
1629 # Make sure we can run config.sub.
1630 $ac_config_sub sun4 >/dev/null 2>&1 ||
1631 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1632 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1633 { (exit 1); exit 1; }; }
1634
1635 echo "$as_me:$LINENO: checking build system type" >&5
1636 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1637 if test "${ac_cv_build+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640 ac_cv_build_alias=$build_alias
1641 test -z "$ac_cv_build_alias" &&
1642 ac_cv_build_alias=`$ac_config_guess`
1643 test -z "$ac_cv_build_alias" &&
1644 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1645 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1646 { (exit 1); exit 1; }; }
1647 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1648 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1649 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1650 { (exit 1); exit 1; }; }
1651
1652 fi
1653 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1654 echo "${ECHO_T}$ac_cv_build" >&6
1655 build=$ac_cv_build
1656 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1657 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1658 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659
1660
1661 echo "$as_me:$LINENO: checking host system type" >&5
1662 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1663 if test "${ac_cv_host+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 ac_cv_host_alias=$host_alias
1667 test -z "$ac_cv_host_alias" &&
1668 ac_cv_host_alias=$ac_cv_build_alias
1669 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1670 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1671 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1672 { (exit 1); exit 1; }; }
1673
1674 fi
1675 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1676 echo "${ECHO_T}$ac_cv_host" >&6
1677 host=$ac_cv_host
1678 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681
1682
1683 echo "$as_me:$LINENO: checking target system type" >&5
1684 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1685 if test "${ac_cv_target+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688 ac_cv_target_alias=$target_alias
1689 test "x$ac_cv_target_alias" = "x" &&
1690 ac_cv_target_alias=$ac_cv_host_alias
1691 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1692 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1693 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1694 { (exit 1); exit 1; }; }
1695
1696 fi
1697 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1698 echo "${ECHO_T}$ac_cv_target" >&6
1699 target=$ac_cv_target
1700 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1701 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1702 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1703
1704
1705 # The aliases save the names the user supplied, while $host etc.
1706 # will get canonicalized.
1707 test -n "$target_alias" &&
1708 test "$program_prefix$program_suffix$program_transform_name" = \
1709 NONENONEs,x,x, &&
1710 program_prefix=${target_alias}-
1711
1712 # Determine the noncanonical target name, for directory use.
1713 case ${build_alias} in
1714 "") build_noncanonical=${build} ;;
1715 *) build_noncanonical=${build_alias} ;;
1716 esac
1717
1718 case ${host_alias} in
1719 "") host_noncanonical=${build_noncanonical} ;;
1720 *) host_noncanonical=${host_alias} ;;
1721 esac
1722
1723 case ${target_alias} in
1724 "") target_noncanonical=${host_noncanonical} ;;
1725 *) target_noncanonical=${target_alias} ;;
1726 esac
1727
1728
1729
1730
1731 # Determine the target- and build-specific subdirectories
1732
1733 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1734 # have matching libraries, they should use host libraries: Makefile.tpl
1735 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1736 # However, they still use the build modules, because the corresponding
1737 # host modules (e.g. bison) are only built for the host when bootstrap
1738 # finishes. So:
1739 # - build_subdir is where we find build modules, and never changes.
1740 # - build_libsubdir is where we find build libraries, and can be overridden.
1741
1742 # Prefix 'build-' so this never conflicts with target_subdir.
1743 build_subdir="build-${build_noncanonical}"
1744
1745 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1746 if test "${with_build_libsubdir+set}" = set; then
1747 withval="$with_build_libsubdir"
1748 build_libsubdir="$withval"
1749 else
1750 build_libsubdir="$build_subdir"
1751 fi;
1752 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1753 if ( test $srcdir = . && test -d gcc ) \
1754 || test -d $srcdir/../host-${host_noncanonical}; then
1755 host_subdir="host-${host_noncanonical}"
1756 else
1757 host_subdir=.
1758 fi
1759 # No prefix.
1760 target_subdir=${target_noncanonical}
1761
1762
1763 # Set program_transform_name
1764 test "$program_prefix" != NONE &&
1765 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1766 # Use a double $ so make ignores it.
1767 test "$program_suffix" != NONE &&
1768 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1769 # Double any \ or $. echo might interpret backslashes.
1770 # By default was `s,x,x', remove it if useless.
1771 cat <<\_ACEOF >conftest.sed
1772 s/[\\$]/&&/g;s/;s,x,x,$//
1773 _ACEOF
1774 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1775 rm conftest.sed
1776
1777
1778 # Check for bogus environment variables.
1779 # Test if LIBRARY_PATH contains the notation for the current directory
1780 # since this would lead to problems installing/building glibc.
1781 # LIBRARY_PATH contains the current directory if one of the following
1782 # is true:
1783 # - one of the terminals (":" and ";") is the first or last sign
1784 # - two terminals occur directly after each other
1785 # - the path contains an element with a dot in it
1786 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1787 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1788 case ${LIBRARY_PATH} in
1789 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1790 library_path_setting="contains current directory"
1791 ;;
1792 *)
1793 library_path_setting="ok"
1794 ;;
1795 esac
1796 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1797 echo "${ECHO_T}$library_path_setting" >&6
1798 if test "$library_path_setting" != "ok"; then
1799 { { echo "$as_me:$LINENO: error:
1800 *** LIBRARY_PATH shouldn't contain the current directory when
1801 *** building gcc. Please change the environment variable
1802 *** and run configure again." >&5
1803 echo "$as_me: error:
1804 *** LIBRARY_PATH shouldn't contain the current directory when
1805 *** building gcc. Please change the environment variable
1806 *** and run configure again." >&2;}
1807 { (exit 1); exit 1; }; }
1808 fi
1809
1810 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1811 # since this would lead to problems installing/building glibc.
1812 # GCC_EXEC_PREFIX contains the current directory if one of the following
1813 # is true:
1814 # - one of the terminals (":" and ";") is the first or last sign
1815 # - two terminals occur directly after each other
1816 # - the path contains an element with a dot in it
1817 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1818 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1819 case ${GCC_EXEC_PREFIX} in
1820 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1821 gcc_exec_prefix_setting="contains current directory"
1822 ;;
1823 *)
1824 gcc_exec_prefix_setting="ok"
1825 ;;
1826 esac
1827 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1828 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1829 if test "$gcc_exec_prefix_setting" != "ok"; then
1830 { { echo "$as_me:$LINENO: error:
1831 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1832 *** building gcc. Please change the environment variable
1833 *** and run configure again." >&5
1834 echo "$as_me: error:
1835 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1836 *** building gcc. Please change the environment variable
1837 *** and run configure again." >&2;}
1838 { (exit 1); exit 1; }; }
1839 fi
1840
1841 # -----------
1842 # Directories
1843 # -----------
1844
1845 # Specify the local prefix
1846 local_prefix=
1847
1848 # Check whether --with-local-prefix or --without-local-prefix was given.
1849 if test "${with_local_prefix+set}" = set; then
1850 withval="$with_local_prefix"
1851 case "${withval}" in
1852 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1853 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1854 { (exit 1); exit 1; }; } ;;
1855 no) ;;
1856 *) local_prefix=$with_local_prefix ;;
1857 esac
1858 fi;
1859
1860 # Default local prefix if it is empty
1861 if test x$local_prefix = x; then
1862 local_prefix=/usr/local
1863 fi
1864
1865 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1866 # passed in by the toplevel make and thus we'd get different behavior
1867 # depending on where we built the sources.
1868 gcc_gxx_include_dir=
1869 # Specify the g++ header file directory
1870
1871 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1872 if test "${with_gxx_include_dir+set}" = set; then
1873 withval="$with_gxx_include_dir"
1874 case "${withval}" in
1875 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1876 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1877 { (exit 1); exit 1; }; } ;;
1878 no) ;;
1879 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1880 esac
1881 fi;
1882
1883 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1884 if test x${gcc_gxx_include_dir} = x; then
1885 if test x${enable_version_specific_runtime_libs} = xyes; then
1886 gcc_gxx_include_dir='${libsubdir}/include/c++'
1887 else
1888 libstdcxx_incdir='include/c++/$(version)'
1889 if test x$host != x$target; then
1890 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1891 fi
1892 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1893 fi
1894 fi
1895
1896
1897 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1898 if test "${with_cpp_install_dir+set}" = set; then
1899 withval="$with_cpp_install_dir"
1900 if test x$withval = xyes; then
1901 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1902 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1903 { (exit 1); exit 1; }; }
1904 elif test x$withval != xno; then
1905 cpp_install_dir=$withval
1906 fi
1907 fi;
1908
1909 # We would like to our source tree to be readonly. However when releases or
1910 # pre-releases are generated, the flex/bison generated files as well as the
1911 # various formats of manuals need to be included along with the rest of the
1912 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1913 # just that.
1914
1915 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1916 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1917 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1918 if test "${enable_generated_files_in_srcdir+set}" = set; then
1919 enableval="$enable_generated_files_in_srcdir"
1920 generated_files_in_srcdir=$enableval
1921 else
1922 generated_files_in_srcdir=no
1923 fi;
1924
1925 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1926 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1927
1928 if test "$generated_files_in_srcdir" = "yes"; then
1929 GENINSRC=''
1930 else
1931 GENINSRC='#'
1932 fi
1933
1934
1935 # -------------------
1936 # Find default linker
1937 # -------------------
1938
1939 # With GNU ld
1940
1941 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1942 if test "${with_gnu_ld+set}" = set; then
1943 withval="$with_gnu_ld"
1944 gnu_ld_flag="$with_gnu_ld"
1945 else
1946 gnu_ld_flag=no
1947 fi;
1948
1949 # With pre-defined ld
1950
1951 # Check whether --with-ld or --without-ld was given.
1952 if test "${with_ld+set}" = set; then
1953 withval="$with_ld"
1954 DEFAULT_LINKER="$with_ld"
1955 fi;
1956 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1957 if test ! -x "$DEFAULT_LINKER"; then
1958 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1959 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1960 { (exit 1); exit 1; }; }
1961 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1962 gnu_ld_flag=yes
1963 fi
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1967 _ACEOF
1968
1969 fi
1970
1971 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define HAVE_GNU_LD $gnu_ld
1975 _ACEOF
1976
1977
1978 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1979 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1980 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1981 if test x"$gnu_ld_flag" = x"no"; then
1982 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1983 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1984 else
1985 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1986 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1987 fi
1988 else
1989 echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6
1991 fi
1992
1993 # With demangler in GNU ld
1994
1995 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1996 if test "${with_demangler_in_ld+set}" = set; then
1997 withval="$with_demangler_in_ld"
1998 demangler_in_ld="$with_demangler_in_ld"
1999 else
2000 demangler_in_ld=no
2001 fi;
2002
2003 # ----------------------
2004 # Find default assembler
2005 # ----------------------
2006
2007 # With GNU as
2008
2009 # Check whether --with-gnu-as or --without-gnu-as was given.
2010 if test "${with_gnu_as+set}" = set; then
2011 withval="$with_gnu_as"
2012 gas_flag="$with_gnu_as"
2013 else
2014 gas_flag=no
2015 fi;
2016
2017
2018 # Check whether --with-as or --without-as was given.
2019 if test "${with_as+set}" = set; then
2020 withval="$with_as"
2021 DEFAULT_ASSEMBLER="$with_as"
2022 fi;
2023 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2024 if test ! -x "$DEFAULT_ASSEMBLER"; then
2025 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2026 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2027 { (exit 1); exit 1; }; }
2028 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2029 gas_flag=yes
2030 fi
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2034 _ACEOF
2035
2036 fi
2037
2038 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define HAVE_GNU_AS $gnu_as
2042 _ACEOF
2043
2044
2045 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2046 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2047 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2048 if test x"$gas_flag" = x"no"; then
2049 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2050 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2051 else
2052 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2053 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2054 fi
2055 else
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2058 fi
2059
2060 # ---------------
2061 # Find C compiler
2062 # ---------------
2063
2064 # If a non-executable a.out is present (e.g. created by GNU as above even if
2065 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2066 # file, even when creating an executable, so an execution test fails.
2067 # Remove possible default executable files to avoid this.
2068 #
2069 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2070 # Autoconf includes it.
2071 rm -f a.out a.exe b.out
2072
2073 # Find the native compiler
2074 ac_ext=c
2075 ac_cpp='$CPP $CPPFLAGS'
2076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2079 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2081 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2082 echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC="$CC" # Let the user override the test.
2089 else
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 break 2
2100 fi
2101 done
2102 done
2103
2104 fi
2105 fi
2106 CC=$ac_cv_prog_CC
2107 if test -n "$CC"; then
2108 echo "$as_me:$LINENO: result: $CC" >&5
2109 echo "${ECHO_T}$CC" >&6
2110 else
2111 echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6
2113 fi
2114
2115 fi
2116 if test -z "$ac_cv_prog_CC"; then
2117 ac_ct_CC=$CC
2118 # Extract the first word of "gcc", so it can be a program name with args.
2119 set dummy gcc; ac_word=$2
2120 echo "$as_me:$LINENO: checking for $ac_word" >&5
2121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 if test -n "$ac_ct_CC"; then
2126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2127 else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2135 ac_cv_prog_ac_ct_CC="gcc"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 break 2
2138 fi
2139 done
2140 done
2141
2142 fi
2143 fi
2144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2145 if test -n "$ac_ct_CC"; then
2146 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2147 echo "${ECHO_T}$ac_ct_CC" >&6
2148 else
2149 echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6
2151 fi
2152
2153 CC=$ac_ct_CC
2154 else
2155 CC="$ac_cv_prog_CC"
2156 fi
2157
2158 if test -z "$CC"; then
2159 if test -n "$ac_tool_prefix"; then
2160 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2161 set dummy ${ac_tool_prefix}cc; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167 if test -n "$CC"; then
2168 ac_cv_prog_CC="$CC" # Let the user override the test.
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 ac_cv_prog_CC="${ac_tool_prefix}cc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 break 2
2180 fi
2181 done
2182 done
2183
2184 fi
2185 fi
2186 CC=$ac_cv_prog_CC
2187 if test -n "$CC"; then
2188 echo "$as_me:$LINENO: result: $CC" >&5
2189 echo "${ECHO_T}$CC" >&6
2190 else
2191 echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2193 fi
2194
2195 fi
2196 if test -z "$ac_cv_prog_CC"; then
2197 ac_ct_CC=$CC
2198 # Extract the first word of "cc", so it can be a program name with args.
2199 set dummy cc; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 if test -n "$ac_ct_CC"; then
2206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_ac_ct_CC="cc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2218 fi
2219 done
2220 done
2221
2222 fi
2223 fi
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227 echo "${ECHO_T}$ac_ct_CC" >&6
2228 else
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2231 fi
2232
2233 CC=$ac_ct_CC
2234 else
2235 CC="$ac_cv_prog_CC"
2236 fi
2237
2238 fi
2239 if test -z "$CC"; then
2240 # Extract the first word of "cc", so it can be a program name with args.
2241 set dummy cc; ac_word=$2
2242 echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2249 else
2250 ac_prog_rejected=no
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2259 ac_prog_rejected=yes
2260 continue
2261 fi
2262 ac_cv_prog_CC="cc"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 break 2
2265 fi
2266 done
2267 done
2268
2269 if test $ac_prog_rejected = yes; then
2270 # We found a bogon in the path, so make sure we never use it.
2271 set dummy $ac_cv_prog_CC
2272 shift
2273 if test $# != 0; then
2274 # We chose a different compiler from the bogus one.
2275 # However, it has the same basename, so the bogon will be chosen
2276 # first if we set CC to just the basename; use the full file name.
2277 shift
2278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2279 fi
2280 fi
2281 fi
2282 fi
2283 CC=$ac_cv_prog_CC
2284 if test -n "$CC"; then
2285 echo "$as_me:$LINENO: result: $CC" >&5
2286 echo "${ECHO_T}$CC" >&6
2287 else
2288 echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2290 fi
2291
2292 fi
2293 if test -z "$CC"; then
2294 if test -n "$ac_tool_prefix"; then
2295 for ac_prog in cl
2296 do
2297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC="$CC" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2317 fi
2318 done
2319 done
2320
2321 fi
2322 fi
2323 CC=$ac_cv_prog_CC
2324 if test -n "$CC"; then
2325 echo "$as_me:$LINENO: result: $CC" >&5
2326 echo "${ECHO_T}$CC" >&6
2327 else
2328 echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2330 fi
2331
2332 test -n "$CC" && break
2333 done
2334 fi
2335 if test -z "$CC"; then
2336 ac_ct_CC=$CC
2337 for ac_prog in cl
2338 do
2339 # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy $ac_prog; ac_word=$2
2341 echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346 if test -n "$ac_ct_CC"; then
2347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2356 ac_cv_prog_ac_ct_CC="$ac_prog"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 break 2
2359 fi
2360 done
2361 done
2362
2363 fi
2364 fi
2365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2366 if test -n "$ac_ct_CC"; then
2367 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2368 echo "${ECHO_T}$ac_ct_CC" >&6
2369 else
2370 echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6
2372 fi
2373
2374 test -n "$ac_ct_CC" && break
2375 done
2376
2377 CC=$ac_ct_CC
2378 fi
2379
2380 fi
2381
2382
2383 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2384 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2386 See \`config.log' for more details." >&5
2387 echo "$as_me: error: no acceptable C compiler found in \$PATH
2388 See \`config.log' for more details." >&2;}
2389 { (exit 1); exit 1; }; }; }
2390
2391 # Provide some information about the compiler.
2392 echo "$as_me:$LINENO:" \
2393 "checking for C compiler version" >&5
2394 ac_compiler=`set X $ac_compile; echo $2`
2395 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2396 (eval $ac_compiler --version </dev/null >&5) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }
2400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2401 (eval $ac_compiler -v </dev/null >&5) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }
2405 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2406 (eval $ac_compiler -V </dev/null >&5) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }
2410
2411 cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h. */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2417
2418 int
2419 main ()
2420 {
2421
2422 ;
2423 return 0;
2424 }
2425 _ACEOF
2426 ac_clean_files_save=$ac_clean_files
2427 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2428 # Try to create an executable without -o first, disregard a.out.
2429 # It will help us diagnose broken compilers, and finding out an intuition
2430 # of exeext.
2431 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2432 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2433 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2434 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2435 (eval $ac_link_default) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; then
2439 # Find the output, starting from the most likely. This scheme is
2440 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2441 # resort.
2442
2443 # Be careful to initialize this variable, since it used to be cached.
2444 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2445 ac_cv_exeext=
2446 # b.out is created by i960 compilers.
2447 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2448 do
2449 test -f "$ac_file" || continue
2450 case $ac_file in
2451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2452 ;;
2453 conftest.$ac_ext )
2454 # This is the source file.
2455 ;;
2456 [ab].out )
2457 # We found the default executable, but exeext='' is most
2458 # certainly right.
2459 break;;
2460 *.* )
2461 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462 # FIXME: I believe we export ac_cv_exeext for Libtool,
2463 # but it would be cool to find out if it's true. Does anybody
2464 # maintain Libtool? --akim.
2465 export ac_cv_exeext
2466 break;;
2467 * )
2468 break;;
2469 esac
2470 done
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2476 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2477 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: C compiler cannot create executables
2480 See \`config.log' for more details." >&2;}
2481 { (exit 77); exit 77; }; }; }
2482 fi
2483
2484 ac_exeext=$ac_cv_exeext
2485 echo "$as_me:$LINENO: result: $ac_file" >&5
2486 echo "${ECHO_T}$ac_file" >&6
2487
2488 # Check the compiler produces executables we can run. If not, either
2489 # the compiler is broken, or we cross compile.
2490 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2491 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2492 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2493 # If not cross compiling, check that we can run a simple program.
2494 if test "$cross_compiling" != yes; then
2495 if { ac_try='./$ac_file'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2501 cross_compiling=no
2502 else
2503 if test "$cross_compiling" = maybe; then
2504 cross_compiling=yes
2505 else
2506 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2507 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2509 If you meant to cross compile, use \`--host'.
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot run C compiled programs.
2512 If you meant to cross compile, use \`--host'.
2513 See \`config.log' for more details." >&2;}
2514 { (exit 1); exit 1; }; }; }
2515 fi
2516 fi
2517 fi
2518 echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6
2520
2521 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2522 ac_clean_files=$ac_clean_files_save
2523 # Check the compiler produces executables we can run. If not, either
2524 # the compiler is broken, or we cross compile.
2525 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2526 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2527 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2528 echo "${ECHO_T}$cross_compiling" >&6
2529
2530 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2531 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533 (eval $ac_link) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; then
2537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2539 # work properly (i.e., refer to `conftest.exe'), while it won't with
2540 # `rm'.
2541 for ac_file in conftest.exe conftest conftest.*; do
2542 test -f "$ac_file" || continue
2543 case $ac_file in
2544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546 export ac_cv_exeext
2547 break;;
2548 * ) break;;
2549 esac
2550 done
2551 else
2552 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2553 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2557 See \`config.log' for more details." >&2;}
2558 { (exit 1); exit 1; }; }; }
2559 fi
2560
2561 rm -f conftest$ac_cv_exeext
2562 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2563 echo "${ECHO_T}$ac_cv_exeext" >&6
2564
2565 rm -f conftest.$ac_ext
2566 EXEEXT=$ac_cv_exeext
2567 ac_exeext=$EXEEXT
2568 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2569 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2570 if test "${ac_cv_objext+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573 cat >conftest.$ac_ext <<_ACEOF
2574 /* confdefs.h. */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2579
2580 int
2581 main ()
2582 {
2583
2584 ;
2585 return 0;
2586 }
2587 _ACEOF
2588 rm -f conftest.o conftest.obj
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2595 case $ac_file in
2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2598 break;;
2599 esac
2600 done
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2606 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }; }
2612 fi
2613
2614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2615 fi
2616 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2617 echo "${ECHO_T}$ac_cv_objext" >&6
2618 OBJEXT=$ac_cv_objext
2619 ac_objext=$OBJEXT
2620 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2621 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2622 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625 cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h. */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2631
2632 int
2633 main ()
2634 {
2635 #ifndef __GNUC__
2636 choke me
2637 #endif
2638
2639 ;
2640 return 0;
2641 }
2642 _ACEOF
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2646 ac_status=$?
2647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 ac_compiler_gnu=yes
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 ac_compiler_gnu=no
2671 fi
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2674
2675 fi
2676 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2677 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2678 GCC=`test $ac_compiler_gnu = yes && echo yes`
2679 ac_test_CFLAGS=${CFLAGS+set}
2680 ac_save_CFLAGS=$CFLAGS
2681 CFLAGS="-g"
2682 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2684 if test "${ac_cv_prog_cc_g+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2693
2694 int
2695 main ()
2696 {
2697
2698 ;
2699 return 0;
2700 }
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 (eval $ac_try) 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2724 ac_cv_prog_cc_g=yes
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729 ac_cv_prog_cc_g=no
2730 fi
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 fi
2733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2734 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2735 if test "$ac_test_CFLAGS" = set; then
2736 CFLAGS=$ac_save_CFLAGS
2737 elif test $ac_cv_prog_cc_g = yes; then
2738 if test "$GCC" = yes; then
2739 CFLAGS="-g -O2"
2740 else
2741 CFLAGS="-g"
2742 fi
2743 else
2744 if test "$GCC" = yes; then
2745 CFLAGS="-O2"
2746 else
2747 CFLAGS=
2748 fi
2749 fi
2750 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2751 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2752 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 ac_cv_prog_cc_stdc=no
2756 ac_save_CC=$CC
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h. */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2763 #include <stdarg.h>
2764 #include <stdio.h>
2765 #include <sys/types.h>
2766 #include <sys/stat.h>
2767 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2768 struct buf { int x; };
2769 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2770 static char *e (p, i)
2771 char **p;
2772 int i;
2773 {
2774 return p[i];
2775 }
2776 static char *f (char * (*g) (char **, int), char **p, ...)
2777 {
2778 char *s;
2779 va_list v;
2780 va_start (v,p);
2781 s = g (p, va_arg (v,int));
2782 va_end (v);
2783 return s;
2784 }
2785
2786 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2787 function prototypes and stuff, but not '\xHH' hex character constants.
2788 These don't provoke an error unfortunately, instead are silently treated
2789 as 'x'. The following induces an error, until -std1 is added to get
2790 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2791 array size at least. It's necessary to write '\x00'==0 to get something
2792 that's true only with -std1. */
2793 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2794
2795 int test (int i, double x);
2796 struct s1 {int (*f) (int a);};
2797 struct s2 {int (*f) (double a);};
2798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2799 int argc;
2800 char **argv;
2801 int
2802 main ()
2803 {
2804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2805 ;
2806 return 0;
2807 }
2808 _ACEOF
2809 # Don't try gcc -ansi; that turns off useful extensions and
2810 # breaks some systems' header files.
2811 # AIX -qlanglvl=ansi
2812 # Ultrix and OSF/1 -std1
2813 # HP-UX 10.20 and later -Ae
2814 # HP-UX older versions -Aa -D_HPUX_SOURCE
2815 # SVR4 -Xc -D__EXTENSIONS__
2816 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2817 do
2818 CC="$ac_save_CC $ac_arg"
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2822 ac_status=$?
2823 grep -v '^ *+' conftest.er1 >conftest.err
2824 rm -f conftest.er1
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 ac_cv_prog_cc_stdc=$ac_arg
2842 break
2843 else
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2846
2847 fi
2848 rm -f conftest.err conftest.$ac_objext
2849 done
2850 rm -f conftest.$ac_ext conftest.$ac_objext
2851 CC=$ac_save_CC
2852
2853 fi
2854
2855 case "x$ac_cv_prog_cc_stdc" in
2856 x|xno)
2857 echo "$as_me:$LINENO: result: none needed" >&5
2858 echo "${ECHO_T}none needed" >&6 ;;
2859 *)
2860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2862 CC="$CC $ac_cv_prog_cc_stdc" ;;
2863 esac
2864
2865 # Some people use a C++ compiler to compile C. Since we use `exit',
2866 # in C++ we need to declare it. In case someone uses the same compiler
2867 # for both compiling C and C++ we need to have the C++ compiler decide
2868 # the declaration of exit, since it's the most demanding environment.
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #ifndef __cplusplus
2871 choke me
2872 #endif
2873 _ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>conftest.er1
2877 ac_status=$?
2878 grep -v '^ *+' conftest.er1 >conftest.err
2879 rm -f conftest.er1
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 for ac_declaration in \
2897 '' \
2898 'extern "C" void std::exit (int) throw (); using std::exit;' \
2899 'extern "C" void std::exit (int); using std::exit;' \
2900 'extern "C" void exit (int) throw ();' \
2901 'extern "C" void exit (int);' \
2902 'void exit (int);'
2903 do
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 $ac_declaration
2911 #include <stdlib.h>
2912 int
2913 main ()
2914 {
2915 exit (42);
2916 ;
2917 return 0;
2918 }
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2923 ac_status=$?
2924 grep -v '^ *+' conftest.er1 >conftest.err
2925 rm -f conftest.er1
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_c_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 :
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 continue
2948 fi
2949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 $ac_declaration
2957 int
2958 main ()
2959 {
2960 exit (42);
2961 ;
2962 return 0;
2963 }
2964 _ACEOF
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 break
2988 else
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 fi
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2994 done
2995 rm -f conftest*
2996 if test -n "$ac_declaration"; then
2997 echo '#ifdef __cplusplus' >>confdefs.h
2998 echo $ac_declaration >>confdefs.h
2999 echo '#endif' >>confdefs.h
3000 fi
3001
3002 else
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 fi
3007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3008 ac_ext=c
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013
3014 if test "x$CC" != xcc; then
3015 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3016 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3017 else
3018 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3019 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3020 fi
3021 set dummy $CC; ac_cc=`echo $2 |
3022 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3023 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032
3033 int
3034 main ()
3035 {
3036
3037 ;
3038 return 0;
3039 }
3040 _ACEOF
3041 # Make sure it works both with $CC and with simple cc.
3042 # We do the test twice because some compilers refuse to overwrite an
3043 # existing .o file with -o, though they will create one.
3044 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3045 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 (eval $ac_try) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 (eval $ac_try) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); };
3055 then
3056 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3057 if test "x$CC" != xcc; then
3058 # Test first that cc exists at all.
3059 if { ac_try='cc -c conftest.$ac_ext >&5'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3066 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 (eval $ac_try) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); };
3076 then
3077 # cc works too.
3078 :
3079 else
3080 # cc exists but doesn't like -o.
3081 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3082 fi
3083 fi
3084 fi
3085 else
3086 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3087 fi
3088 rm -f conftest*
3089
3090 fi
3091 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3092 echo "$as_me:$LINENO: result: yes" >&5
3093 echo "${ECHO_T}yes" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3097
3098 cat >>confdefs.h <<\_ACEOF
3099 #define NO_MINUS_C_MINUS_O 1
3100 _ACEOF
3101
3102 fi
3103
3104 # expand $ac_aux_dir to an absolute path
3105 am_aux_dir=`cd $ac_aux_dir && pwd`
3106
3107 # FIXME: we rely on the cache variable name because
3108 # there is no other way.
3109 set dummy $CC
3110 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3111 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3112 # Losing compiler, so override with the script.
3113 # FIXME: It is wrong to rewrite CC.
3114 # But if we don't then we get into trouble of one sort or another.
3115 # A longer-term fix would be to have automake use am__CC in this case,
3116 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3117 CC="$am_aux_dir/compile $CC"
3118 fi
3119
3120
3121
3122
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3126 echo "$as_me:$LINENO: checking for $ac_word" >&5
3127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131 if test -n "$GNATBIND"; then
3132 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3144 fi
3145 done
3146 done
3147
3148 fi
3149 fi
3150 GNATBIND=$ac_cv_prog_GNATBIND
3151 if test -n "$GNATBIND"; then
3152 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3153 echo "${ECHO_T}$GNATBIND" >&6
3154 else
3155 echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6
3157 fi
3158
3159 fi
3160 if test -z "$ac_cv_prog_GNATBIND"; then
3161 ac_ct_GNATBIND=$GNATBIND
3162 # Extract the first word of "gnatbind", so it can be a program name with args.
3163 set dummy gnatbind; ac_word=$2
3164 echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169 if test -n "$ac_ct_GNATBIND"; then
3170 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183 done
3184 done
3185
3186 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3187 fi
3188 fi
3189 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3190 if test -n "$ac_ct_GNATBIND"; then
3191 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3192 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3193 else
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3196 fi
3197
3198 GNATBIND=$ac_ct_GNATBIND
3199 else
3200 GNATBIND="$ac_cv_prog_GNATBIND"
3201 fi
3202
3203 if test -n "$ac_tool_prefix"; then
3204 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3205 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211 if test -n "$GNATMAKE"; then
3212 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 break 2
3224 fi
3225 done
3226 done
3227
3228 fi
3229 fi
3230 GNATMAKE=$ac_cv_prog_GNATMAKE
3231 if test -n "$GNATMAKE"; then
3232 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3233 echo "${ECHO_T}$GNATMAKE" >&6
3234 else
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3237 fi
3238
3239 fi
3240 if test -z "$ac_cv_prog_GNATMAKE"; then
3241 ac_ct_GNATMAKE=$GNATMAKE
3242 # Extract the first word of "gnatmake", so it can be a program name with args.
3243 set dummy gnatmake; ac_word=$2
3244 echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249 if test -n "$ac_ct_GNATMAKE"; then
3250 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3262 fi
3263 done
3264 done
3265
3266 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3267 fi
3268 fi
3269 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3270 if test -n "$ac_ct_GNATMAKE"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3272 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3273 else
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3276 fi
3277
3278 GNATMAKE=$ac_ct_GNATMAKE
3279 else
3280 GNATMAKE="$ac_cv_prog_GNATMAKE"
3281 fi
3282
3283 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3284 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3285 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 cat >conftest.adb <<EOF
3289 procedure conftest is begin null; end conftest;
3290 EOF
3291 acx_cv_cc_gcc_supports_ada=no
3292 # There is a bug in old released versions of GCC which causes the
3293 # driver to exit successfully when the appropriate language module
3294 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3295 # Therefore we must check for the error message as well as an
3296 # unsuccessful exit.
3297 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3298 # given a .adb file, but produce no object file. So we must check
3299 # if an object file was really produced to guard against this.
3300 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3301 if test x"$errors" = x && test -f conftest.$ac_objext; then
3302 acx_cv_cc_gcc_supports_ada=yes
3303 fi
3304 rm -f conftest.*
3305 fi
3306 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3307 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3308
3309 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3310 have_gnat=yes
3311 else
3312 have_gnat=no
3313 fi
3314
3315
3316 # autoconf is lame and doesn't give us any substitution variable for this.
3317 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3318 NO_MINUS_C_MINUS_O=yes
3319 else
3320 OUTPUT_OPTION='-o $@'
3321 fi
3322
3323
3324
3325 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3326 # optimizations to be activated explicitly by the toplevel.
3327 case "$CC" in
3328 */prev-gcc/xgcc*) ;;
3329 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3330 esac
3331
3332
3333 # -------------------------
3334 # Check C compiler features
3335 # -------------------------
3336
3337
3338 ac_ext=c
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3345 # On Suns, sometimes $CPP names a directory.
3346 if test -n "$CPP" && test -d "$CPP"; then
3347 CPP=
3348 fi
3349 if test -z "$CPP"; then
3350 if test "${ac_cv_prog_CPP+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 # Double quotes because CPP needs to be expanded
3354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3355 do
3356 ac_preproc_ok=false
3357 for ac_c_preproc_warn_flag in '' yes
3358 do
3359 # Use a header file that comes with gcc, so configuring glibc
3360 # with a fresh cross-compiler works.
3361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362 # <limits.h> exists even on freestanding compilers.
3363 # On the NeXT, cc -E runs the code through the compiler's parser,
3364 # not just through cpp. "Syntax error" is here to catch this case.
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h. */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3371 #ifdef __STDC__
3372 # include <limits.h>
3373 #else
3374 # include <assert.h>
3375 #endif
3376 Syntax error
3377 _ACEOF
3378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } >/dev/null; then
3386 if test -s conftest.err; then
3387 ac_cpp_err=$ac_c_preproc_warn_flag
3388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3389 else
3390 ac_cpp_err=
3391 fi
3392 else
3393 ac_cpp_err=yes
3394 fi
3395 if test -z "$ac_cpp_err"; then
3396 :
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 # Broken: fails on valid input.
3402 continue
3403 fi
3404 rm -f conftest.err conftest.$ac_ext
3405
3406 # OK, works on sane cases. Now check whether non-existent headers
3407 # can be detected and how.
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <ac_nonexistent.h>
3415 _ACEOF
3416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3418 ac_status=$?
3419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null; then
3424 if test -s conftest.err; then
3425 ac_cpp_err=$ac_c_preproc_warn_flag
3426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427 else
3428 ac_cpp_err=
3429 fi
3430 else
3431 ac_cpp_err=yes
3432 fi
3433 if test -z "$ac_cpp_err"; then
3434 # Broken: success on invalid input.
3435 continue
3436 else
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 # Passes both tests.
3441 ac_preproc_ok=:
3442 break
3443 fi
3444 rm -f conftest.err conftest.$ac_ext
3445
3446 done
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.$ac_ext
3449 if $ac_preproc_ok; then
3450 break
3451 fi
3452
3453 done
3454 ac_cv_prog_CPP=$CPP
3455
3456 fi
3457 CPP=$ac_cv_prog_CPP
3458 else
3459 ac_cv_prog_CPP=$CPP
3460 fi
3461 echo "$as_me:$LINENO: result: $CPP" >&5
3462 echo "${ECHO_T}$CPP" >&6
3463 ac_preproc_ok=false
3464 for ac_c_preproc_warn_flag in '' yes
3465 do
3466 # Use a header file that comes with gcc, so configuring glibc
3467 # with a fresh cross-compiler works.
3468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 # <limits.h> exists even on freestanding compilers.
3470 # On the NeXT, cc -E runs the code through the compiler's parser,
3471 # not just through cpp. "Syntax error" is here to catch this case.
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #ifdef __STDC__
3479 # include <limits.h>
3480 #else
3481 # include <assert.h>
3482 #endif
3483 Syntax error
3484 _ACEOF
3485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } >/dev/null; then
3493 if test -s conftest.err; then
3494 ac_cpp_err=$ac_c_preproc_warn_flag
3495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3496 else
3497 ac_cpp_err=
3498 fi
3499 else
3500 ac_cpp_err=yes
3501 fi
3502 if test -z "$ac_cpp_err"; then
3503 :
3504 else
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 # Broken: fails on valid input.
3509 continue
3510 fi
3511 rm -f conftest.err conftest.$ac_ext
3512
3513 # OK, works on sane cases. Now check whether non-existent headers
3514 # can be detected and how.
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 #include <ac_nonexistent.h>
3522 _ACEOF
3523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } >/dev/null; then
3531 if test -s conftest.err; then
3532 ac_cpp_err=$ac_c_preproc_warn_flag
3533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3534 else
3535 ac_cpp_err=
3536 fi
3537 else
3538 ac_cpp_err=yes
3539 fi
3540 if test -z "$ac_cpp_err"; then
3541 # Broken: success on invalid input.
3542 continue
3543 else
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 # Passes both tests.
3548 ac_preproc_ok=:
3549 break
3550 fi
3551 rm -f conftest.err conftest.$ac_ext
3552
3553 done
3554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555 rm -f conftest.err conftest.$ac_ext
3556 if $ac_preproc_ok; then
3557 :
3558 else
3559 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3560 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3562 See \`config.log' for more details." >&5
3563 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }; }
3566 fi
3567
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573
3574
3575 echo "$as_me:$LINENO: checking for egrep" >&5
3576 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3577 if test "${ac_cv_prog_egrep+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3581 then ac_cv_prog_egrep='grep -E'
3582 else ac_cv_prog_egrep='egrep'
3583 fi
3584 fi
3585 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3586 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3587 EGREP=$ac_cv_prog_egrep
3588
3589
3590 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3592 if test "${ac_cv_header_stdc+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595 cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h. */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 #include <stdlib.h>
3602 #include <stdarg.h>
3603 #include <string.h>
3604 #include <float.h>
3605
3606 int
3607 main ()
3608 {
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3617 ac_status=$?
3618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 ac_cv_header_stdc=yes
3637 else
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641 ac_cv_header_stdc=no
3642 fi
3643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3644
3645 if test $ac_cv_header_stdc = yes; then
3646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3647 cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h. */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3653 #include <string.h>
3654
3655 _ACEOF
3656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3657 $EGREP "memchr" >/dev/null 2>&1; then
3658 :
3659 else
3660 ac_cv_header_stdc=no
3661 fi
3662 rm -f conftest*
3663
3664 fi
3665
3666 if test $ac_cv_header_stdc = yes; then
3667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
3675
3676 _ACEOF
3677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3678 $EGREP "free" >/dev/null 2>&1; then
3679 :
3680 else
3681 ac_cv_header_stdc=no
3682 fi
3683 rm -f conftest*
3684
3685 fi
3686
3687 if test $ac_cv_header_stdc = yes; then
3688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3689 if test "$cross_compiling" = yes; then
3690 :
3691 else
3692 cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h. */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 #include <ctype.h>
3699 #if ((' ' & 0x0FF) == 0x020)
3700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3702 #else
3703 # define ISLOWER(c) \
3704 (('a' <= (c) && (c) <= 'i') \
3705 || ('j' <= (c) && (c) <= 'r') \
3706 || ('s' <= (c) && (c) <= 'z'))
3707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3708 #endif
3709
3710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3711 int
3712 main ()
3713 {
3714 int i;
3715 for (i = 0; i < 256; i++)
3716 if (XOR (islower (i), ISLOWER (i))
3717 || toupper (i) != TOUPPER (i))
3718 exit(2);
3719 exit (0);
3720 }
3721 _ACEOF
3722 rm -f conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 :
3734 else
3735 echo "$as_me: program exited with status $ac_status" >&5
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 ( exit $ac_status )
3740 ac_cv_header_stdc=no
3741 fi
3742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3743 fi
3744 fi
3745 fi
3746 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3747 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3748 if test $ac_cv_header_stdc = yes; then
3749
3750 cat >>confdefs.h <<\_ACEOF
3751 #define STDC_HEADERS 1
3752 _ACEOF
3753
3754 fi
3755
3756 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3767 inttypes.h stdint.h unistd.h
3768 do
3769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3770 echo "$as_me:$LINENO: checking for $ac_header" >&5
3771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 $ac_includes_default
3782
3783 #include <$ac_header>
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 eval "$as_ac_Header=yes"
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 eval "$as_ac_Header=no"
3813 fi
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3819 cat >>confdefs.h <<_ACEOF
3820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3821 _ACEOF
3822
3823 fi
3824
3825 done
3826
3827
3828
3829 if test "${ac_cv_header_minix_config_h+set}" = set; then
3830 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3831 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3832 if test "${ac_cv_header_minix_config_h+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 fi
3835 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3836 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3837 else
3838 # Is the header compilable?
3839 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3840 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 $ac_includes_default
3848 #include <minix/config.h>
3849 _ACEOF
3850 rm -f conftest.$ac_objext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag"
3860 || test ! -s conftest.err'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try='test -s conftest.$ac_objext'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_header_compiler=yes
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 ac_header_compiler=no
3878 fi
3879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3881 echo "${ECHO_T}$ac_header_compiler" >&6
3882
3883 # Is the header present?
3884 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3885 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <minix/config.h>
3893 _ACEOF
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev/null; then
3902 if test -s conftest.err; then
3903 ac_cpp_err=$ac_c_preproc_warn_flag
3904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3905 else
3906 ac_cpp_err=
3907 fi
3908 else
3909 ac_cpp_err=yes
3910 fi
3911 if test -z "$ac_cpp_err"; then
3912 ac_header_preproc=yes
3913 else
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917 ac_header_preproc=no
3918 fi
3919 rm -f conftest.err conftest.$ac_ext
3920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3921 echo "${ECHO_T}$ac_header_preproc" >&6
3922
3923 # So? What about this header?
3924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3925 yes:no: )
3926 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3927 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3929 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3930 ac_header_preproc=yes
3931 ;;
3932 no:yes:* )
3933 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3934 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3936 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3937 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3938 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3940 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3941 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3942 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3943 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3944 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3945 (
3946 cat <<\_ASBOX
3947 ## ------------------------------------------ ##
3948 ## Report this to the AC_PACKAGE_NAME lists. ##
3949 ## ------------------------------------------ ##
3950 _ASBOX
3951 ) |
3952 sed "s/^/$as_me: WARNING: /" >&2
3953 ;;
3954 esac
3955 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3956 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3957 if test "${ac_cv_header_minix_config_h+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960 ac_cv_header_minix_config_h=$ac_header_preproc
3961 fi
3962 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3963 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3964
3965 fi
3966 if test $ac_cv_header_minix_config_h = yes; then
3967 MINIX=yes
3968 else
3969 MINIX=
3970 fi
3971
3972
3973 if test "$MINIX" = yes; then
3974
3975 cat >>confdefs.h <<\_ACEOF
3976 #define _POSIX_SOURCE 1
3977 _ACEOF
3978
3979
3980 cat >>confdefs.h <<\_ACEOF
3981 #define _POSIX_1_SOURCE 2
3982 _ACEOF
3983
3984
3985 cat >>confdefs.h <<\_ACEOF
3986 #define _MINIX 1
3987 _ACEOF
3988
3989 fi
3990
3991
3992
3993 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3994 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3995 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004
4005 # define __EXTENSIONS__ 1
4006 $ac_includes_default
4007 int
4008 main ()
4009 {
4010
4011 ;
4012 return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>conftest.er1
4018 ac_status=$?
4019 grep -v '^ *+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_c_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 (eval $ac_try) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 ac_cv_safe_to_define___extensions__=yes
4038 else
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 ac_cv_safe_to_define___extensions__=no
4043 fi
4044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045 fi
4046 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4047 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4048 test $ac_cv_safe_to_define___extensions__ = yes &&
4049 cat >>confdefs.h <<\_ACEOF
4050 #define __EXTENSIONS__ 1
4051 _ACEOF
4052
4053 cat >>confdefs.h <<\_ACEOF
4054 #define _ALL_SOURCE 1
4055 _ACEOF
4056
4057 cat >>confdefs.h <<\_ACEOF
4058 #define _GNU_SOURCE 1
4059 _ACEOF
4060
4061 cat >>confdefs.h <<\_ACEOF
4062 #define _POSIX_PTHREAD_SEMANTICS 1
4063 _ACEOF
4064
4065 cat >>confdefs.h <<\_ACEOF
4066 #define _TANDEM_SOURCE 1
4067 _ACEOF
4068
4069
4070 ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4076 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4077 # On Suns, sometimes $CPP names a directory.
4078 if test -n "$CPP" && test -d "$CPP"; then
4079 CPP=
4080 fi
4081 if test -z "$CPP"; then
4082 if test "${ac_cv_prog_CPP+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085 # Double quotes because CPP needs to be expanded
4086 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4087 do
4088 ac_preproc_ok=false
4089 for ac_c_preproc_warn_flag in '' yes
4090 do
4091 # Use a header file that comes with gcc, so configuring glibc
4092 # with a fresh cross-compiler works.
4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4094 # <limits.h> exists even on freestanding compilers.
4095 # On the NeXT, cc -E runs the code through the compiler's parser,
4096 # not just through cpp. "Syntax error" is here to catch this case.
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 #ifdef __STDC__
4104 # include <limits.h>
4105 #else
4106 # include <assert.h>
4107 #endif
4108 Syntax error
4109 _ACEOF
4110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev/null; then
4118 if test -s conftest.err; then
4119 ac_cpp_err=$ac_c_preproc_warn_flag
4120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4121 else
4122 ac_cpp_err=
4123 fi
4124 else
4125 ac_cpp_err=yes
4126 fi
4127 if test -z "$ac_cpp_err"; then
4128 :
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 # Broken: fails on valid input.
4134 continue
4135 fi
4136 rm -f conftest.err conftest.$ac_ext
4137
4138 # OK, works on sane cases. Now check whether non-existent headers
4139 # can be detected and how.
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <ac_nonexistent.h>
4147 _ACEOF
4148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null; then
4156 if test -s conftest.err; then
4157 ac_cpp_err=$ac_c_preproc_warn_flag
4158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4159 else
4160 ac_cpp_err=
4161 fi
4162 else
4163 ac_cpp_err=yes
4164 fi
4165 if test -z "$ac_cpp_err"; then
4166 # Broken: success on invalid input.
4167 continue
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 # Passes both tests.
4173 ac_preproc_ok=:
4174 break
4175 fi
4176 rm -f conftest.err conftest.$ac_ext
4177
4178 done
4179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4180 rm -f conftest.err conftest.$ac_ext
4181 if $ac_preproc_ok; then
4182 break
4183 fi
4184
4185 done
4186 ac_cv_prog_CPP=$CPP
4187
4188 fi
4189 CPP=$ac_cv_prog_CPP
4190 else
4191 ac_cv_prog_CPP=$CPP
4192 fi
4193 echo "$as_me:$LINENO: result: $CPP" >&5
4194 echo "${ECHO_T}$CPP" >&6
4195 ac_preproc_ok=false
4196 for ac_c_preproc_warn_flag in '' yes
4197 do
4198 # Use a header file that comes with gcc, so configuring glibc
4199 # with a fresh cross-compiler works.
4200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4201 # <limits.h> exists even on freestanding compilers.
4202 # On the NeXT, cc -E runs the code through the compiler's parser,
4203 # not just through cpp. "Syntax error" is here to catch this case.
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #ifdef __STDC__
4211 # include <limits.h>
4212 #else
4213 # include <assert.h>
4214 #endif
4215 Syntax error
4216 _ACEOF
4217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } >/dev/null; then
4225 if test -s conftest.err; then
4226 ac_cpp_err=$ac_c_preproc_warn_flag
4227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4228 else
4229 ac_cpp_err=
4230 fi
4231 else
4232 ac_cpp_err=yes
4233 fi
4234 if test -z "$ac_cpp_err"; then
4235 :
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 # Broken: fails on valid input.
4241 continue
4242 fi
4243 rm -f conftest.err conftest.$ac_ext
4244
4245 # OK, works on sane cases. Now check whether non-existent headers
4246 # can be detected and how.
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #include <ac_nonexistent.h>
4254 _ACEOF
4255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } >/dev/null; then
4263 if test -s conftest.err; then
4264 ac_cpp_err=$ac_c_preproc_warn_flag
4265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4266 else
4267 ac_cpp_err=
4268 fi
4269 else
4270 ac_cpp_err=yes
4271 fi
4272 if test -z "$ac_cpp_err"; then
4273 # Broken: success on invalid input.
4274 continue
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279 # Passes both tests.
4280 ac_preproc_ok=:
4281 break
4282 fi
4283 rm -f conftest.err conftest.$ac_ext
4284
4285 done
4286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287 rm -f conftest.err conftest.$ac_ext
4288 if $ac_preproc_ok; then
4289 :
4290 else
4291 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4292 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details." >&5
4295 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4296 See \`config.log' for more details." >&2;}
4297 { (exit 1); exit 1; }; }; }
4298 fi
4299
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305
4306 echo "$as_me:$LINENO: checking for inline" >&5
4307 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4308 if test "${ac_cv_c_inline+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 ac_cv_c_inline=no
4312 for ac_kw in inline __inline__ __inline; do
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #ifndef __cplusplus
4320 typedef int foo_t;
4321 static $ac_kw foo_t static_foo () {return 0; }
4322 $ac_kw foo_t foo () {return 0; }
4323 #endif
4324
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_c_inline=$ac_kw; break
4349 else
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 fi
4354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4355 done
4356
4357 fi
4358 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4359 echo "${ECHO_T}$ac_cv_c_inline" >&6
4360
4361
4362 case $ac_cv_c_inline in
4363 inline | yes) ;;
4364 *)
4365 case $ac_cv_c_inline in
4366 no) ac_val=;;
4367 *) ac_val=$ac_cv_c_inline;;
4368 esac
4369 cat >>confdefs.h <<_ACEOF
4370 #ifndef __cplusplus
4371 #define inline $ac_val
4372 #endif
4373 _ACEOF
4374 ;;
4375 esac
4376
4377
4378 # sizeof(char) is 1 by definition.
4379 echo "$as_me:$LINENO: checking for void *" >&5
4380 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4381 if test "${ac_cv_type_void_p+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h. */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 $ac_includes_default
4391 int
4392 main ()
4393 {
4394 if ((void * *) 0)
4395 return 0;
4396 if (sizeof (void *))
4397 return 0;
4398 ;
4399 return 0;
4400 }
4401 _ACEOF
4402 rm -f conftest.$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag"
4412 || test ! -s conftest.err'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_type_void_p=yes
4425 else
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4428
4429 ac_cv_type_void_p=no
4430 fi
4431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4432 fi
4433 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4434 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4435
4436 echo "$as_me:$LINENO: checking size of void *" >&5
4437 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4438 if test "${ac_cv_sizeof_void_p+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 if test "$ac_cv_type_void_p" = yes; then
4442 # The cast to unsigned long works around a bug in the HP C Compiler
4443 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4444 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4445 # This bug is HP SR number 8606223364.
4446 if test "$cross_compiling" = yes; then
4447 # Depending upon the size, compute the lo and hi bounds.
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h. */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 $ac_includes_default
4455 int
4456 main ()
4457 {
4458 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4459 test_array [0] = 0
4460
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try='test -z "$ac_c_werror_flag"
4475 || test ! -s conftest.err'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try='test -s conftest.$ac_objext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 (eval $ac_try) 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4487 ac_lo=0 ac_mid=0
4488 while :; do
4489 cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h. */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 $ac_includes_default
4496 int
4497 main ()
4498 {
4499 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4500 test_array [0] = 0
4501
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_hi=$ac_mid; break
4529 else
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 ac_lo=`expr $ac_mid + 1`
4534 if test $ac_lo -le $ac_mid; then
4535 ac_lo= ac_hi=
4536 break
4537 fi
4538 ac_mid=`expr 2 '*' $ac_mid + 1`
4539 fi
4540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4541 done
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h. */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552 $ac_includes_default
4553 int
4554 main ()
4555 {
4556 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4557 test_array [0] = 0
4558
4559 ;
4560 return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest.$ac_objext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_hi=-1 ac_mid=-1
4586 while :; do
4587 cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h. */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593 $ac_includes_default
4594 int
4595 main ()
4596 {
4597 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4598 test_array [0] = 0
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606 (eval $ac_compile) 2>conftest.er1
4607 ac_status=$?
4608 grep -v '^ *+' conftest.er1 >conftest.err
4609 rm -f conftest.er1
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try='test -z "$ac_c_werror_flag"
4614 || test ! -s conftest.err'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; } &&
4620 { ac_try='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 (eval $ac_try) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_lo=$ac_mid; break
4627 else
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 ac_hi=`expr '(' $ac_mid ')' - 1`
4632 if test $ac_mid -le $ac_hi; then
4633 ac_lo= ac_hi=
4634 break
4635 fi
4636 ac_mid=`expr 2 '*' $ac_mid`
4637 fi
4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639 done
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644 ac_lo= ac_hi=
4645 fi
4646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4647 fi
4648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4649 # Binary search between lo and hi bounds.
4650 while test "x$ac_lo" != "x$ac_hi"; do
4651 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 $ac_includes_default
4659 int
4660 main ()
4661 {
4662 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4663 test_array [0] = 0
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_c_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_hi=$ac_mid
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 ac_lo=`expr '(' $ac_mid ')' + 1`
4697 fi
4698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 done
4700 case $ac_lo in
4701 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4702 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4703 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4705 See \`config.log' for more details." >&5
4706 echo "$as_me: error: cannot compute sizeof (void *), 77
4707 See \`config.log' for more details." >&2;}
4708 { (exit 1); exit 1; }; }; } ;;
4709 esac
4710 else
4711 if test "$cross_compiling" = yes; then
4712 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4713 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4714 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4715 See \`config.log' for more details." >&5
4716 echo "$as_me: error: cannot run test program while cross compiling
4717 See \`config.log' for more details." >&2;}
4718 { (exit 1); exit 1; }; }; }
4719 else
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 $ac_includes_default
4727 long longval () { return (long) (sizeof (void *)); }
4728 unsigned long ulongval () { return (long) (sizeof (void *)); }
4729 #include <stdio.h>
4730 #include <stdlib.h>
4731 int
4732 main ()
4733 {
4734
4735 FILE *f = fopen ("conftest.val", "w");
4736 if (! f)
4737 exit (1);
4738 if (((long) (sizeof (void *))) < 0)
4739 {
4740 long i = longval ();
4741 if (i != ((long) (sizeof (void *))))
4742 exit (1);
4743 fprintf (f, "%ld\n", i);
4744 }
4745 else
4746 {
4747 unsigned long i = ulongval ();
4748 if (i != ((long) (sizeof (void *))))
4749 exit (1);
4750 fprintf (f, "%lu\n", i);
4751 }
4752 exit (ferror (f) || fclose (f) != 0);
4753
4754 ;
4755 return 0;
4756 }
4757 _ACEOF
4758 rm -f conftest$ac_exeext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 ac_cv_sizeof_void_p=`cat conftest.val`
4770 else
4771 echo "$as_me: program exited with status $ac_status" >&5
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775 ( exit $ac_status )
4776 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4777 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4778 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4779 See \`config.log' for more details." >&5
4780 echo "$as_me: error: cannot compute sizeof (void *), 77
4781 See \`config.log' for more details." >&2;}
4782 { (exit 1); exit 1; }; }; }
4783 fi
4784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4785 fi
4786 fi
4787 rm -f conftest.val
4788 else
4789 ac_cv_sizeof_void_p=0
4790 fi
4791 fi
4792 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4793 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4794 cat >>confdefs.h <<_ACEOF
4795 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4796 _ACEOF
4797
4798
4799 echo "$as_me:$LINENO: checking for short" >&5
4800 echo $ECHO_N "checking for short... $ECHO_C" >&6
4801 if test "${ac_cv_type_short+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 $ac_includes_default
4811 int
4812 main ()
4813 {
4814 if ((short *) 0)
4815 return 0;
4816 if (sizeof (short))
4817 return 0;
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_type_short=yes
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4848
4849 ac_cv_type_short=no
4850 fi
4851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4852 fi
4853 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4854 echo "${ECHO_T}$ac_cv_type_short" >&6
4855
4856 echo "$as_me:$LINENO: checking size of short" >&5
4857 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4858 if test "${ac_cv_sizeof_short+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861 if test "$ac_cv_type_short" = yes; then
4862 # The cast to unsigned long works around a bug in the HP C Compiler
4863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4865 # This bug is HP SR number 8606223364.
4866 if test "$cross_compiling" = yes; then
4867 # Depending upon the size, compute the lo and hi bounds.
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 $ac_includes_default
4875 int
4876 main ()
4877 {
4878 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4879 test_array [0] = 0
4880
4881 ;
4882 return 0;
4883 }
4884 _ACEOF
4885 rm -f conftest.$ac_objext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887 (eval $ac_compile) 2>conftest.er1
4888 ac_status=$?
4889 grep -v '^ *+' conftest.er1 >conftest.err
4890 rm -f conftest.er1
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try='test -z "$ac_c_werror_flag"
4895 || test ! -s conftest.err'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; } &&
4901 { ac_try='test -s conftest.$ac_objext'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 (eval $ac_try) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4907 ac_lo=0 ac_mid=0
4908 while :; do
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 $ac_includes_default
4916 int
4917 main ()
4918 {
4919 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4920 test_array [0] = 0
4921
4922 ;
4923 return 0;
4924 }
4925 _ACEOF
4926 rm -f conftest.$ac_objext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -z "$ac_c_werror_flag"
4936 || test ! -s conftest.err'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; } &&
4942 { ac_try='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_hi=$ac_mid; break
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 ac_lo=`expr $ac_mid + 1`
4954 if test $ac_lo -le $ac_mid; then
4955 ac_lo= ac_hi=
4956 break
4957 fi
4958 ac_mid=`expr 2 '*' $ac_mid + 1`
4959 fi
4960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961 done
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 $ac_includes_default
4973 int
4974 main ()
4975 {
4976 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4977 test_array [0] = 0
4978
4979 ;
4980 return 0;
4981 }
4982 _ACEOF
4983 rm -f conftest.$ac_objext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try='test -z "$ac_c_werror_flag"
4993 || test ! -s conftest.err'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; } &&
4999 { ac_try='test -s conftest.$ac_objext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 ac_hi=-1 ac_mid=-1
5006 while :; do
5007 cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h. */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 $ac_includes_default
5014 int
5015 main ()
5016 {
5017 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5018 test_array [0] = 0
5019
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try='test -z "$ac_c_werror_flag"
5034 || test ! -s conftest.err'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 (eval $ac_try) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; } &&
5040 { ac_try='test -s conftest.$ac_objext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_lo=$ac_mid; break
5047 else
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 ac_hi=`expr '(' $ac_mid ')' - 1`
5052 if test $ac_mid -le $ac_hi; then
5053 ac_lo= ac_hi=
5054 break
5055 fi
5056 ac_mid=`expr 2 '*' $ac_mid`
5057 fi
5058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5059 done
5060 else
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 ac_lo= ac_hi=
5065 fi
5066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5067 fi
5068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5069 # Binary search between lo and hi bounds.
5070 while test "x$ac_lo" != "x$ac_hi"; do
5071 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 $ac_includes_default
5079 int
5080 main ()
5081 {
5082 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5083 test_array [0] = 0
5084
5085 ;
5086 return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -z "$ac_c_werror_flag"
5099 || test ! -s conftest.err'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 (eval $ac_try) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; } &&
5105 { ac_try='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_hi=$ac_mid
5112 else
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ac_lo=`expr '(' $ac_mid ')' + 1`
5117 fi
5118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5119 done
5120 case $ac_lo in
5121 ?*) ac_cv_sizeof_short=$ac_lo;;
5122 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5123 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5125 See \`config.log' for more details." >&5
5126 echo "$as_me: error: cannot compute sizeof (short), 77
5127 See \`config.log' for more details." >&2;}
5128 { (exit 1); exit 1; }; }; } ;;
5129 esac
5130 else
5131 if test "$cross_compiling" = yes; then
5132 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5133 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5134 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5135 See \`config.log' for more details." >&5
5136 echo "$as_me: error: cannot run test program while cross compiling
5137 See \`config.log' for more details." >&2;}
5138 { (exit 1); exit 1; }; }; }
5139 else
5140 cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h. */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 $ac_includes_default
5147 long longval () { return (long) (sizeof (short)); }
5148 unsigned long ulongval () { return (long) (sizeof (short)); }
5149 #include <stdio.h>
5150 #include <stdlib.h>
5151 int
5152 main ()
5153 {
5154
5155 FILE *f = fopen ("conftest.val", "w");
5156 if (! f)
5157 exit (1);
5158 if (((long) (sizeof (short))) < 0)
5159 {
5160 long i = longval ();
5161 if (i != ((long) (sizeof (short))))
5162 exit (1);
5163 fprintf (f, "%ld\n", i);
5164 }
5165 else
5166 {
5167 unsigned long i = ulongval ();
5168 if (i != ((long) (sizeof (short))))
5169 exit (1);
5170 fprintf (f, "%lu\n", i);
5171 }
5172 exit (ferror (f) || fclose (f) != 0);
5173
5174 ;
5175 return 0;
5176 }
5177 _ACEOF
5178 rm -f conftest$ac_exeext
5179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5180 (eval $ac_link) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 (eval $ac_try) 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_cv_sizeof_short=`cat conftest.val`
5190 else
5191 echo "$as_me: program exited with status $ac_status" >&5
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5194
5195 ( exit $ac_status )
5196 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5197 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5198 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5199 See \`config.log' for more details." >&5
5200 echo "$as_me: error: cannot compute sizeof (short), 77
5201 See \`config.log' for more details." >&2;}
5202 { (exit 1); exit 1; }; }; }
5203 fi
5204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5205 fi
5206 fi
5207 rm -f conftest.val
5208 else
5209 ac_cv_sizeof_short=0
5210 fi
5211 fi
5212 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5213 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5214 cat >>confdefs.h <<_ACEOF
5215 #define SIZEOF_SHORT $ac_cv_sizeof_short
5216 _ACEOF
5217
5218
5219 echo "$as_me:$LINENO: checking for int" >&5
5220 echo $ECHO_N "checking for int... $ECHO_C" >&6
5221 if test "${ac_cv_type_int+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h. */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 $ac_includes_default
5231 int
5232 main ()
5233 {
5234 if ((int *) 0)
5235 return 0;
5236 if (sizeof (int))
5237 return 0;
5238 ;
5239 return 0;
5240 }
5241 _ACEOF
5242 rm -f conftest.$ac_objext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244 (eval $ac_compile) 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -z "$ac_c_werror_flag"
5252 || test ! -s conftest.err'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 (eval $ac_try) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; } &&
5258 { ac_try='test -s conftest.$ac_objext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 ac_cv_type_int=yes
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269 ac_cv_type_int=no
5270 fi
5271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5272 fi
5273 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5274 echo "${ECHO_T}$ac_cv_type_int" >&6
5275
5276 echo "$as_me:$LINENO: checking size of int" >&5
5277 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5278 if test "${ac_cv_sizeof_int+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 if test "$ac_cv_type_int" = yes; then
5282 # The cast to unsigned long works around a bug in the HP C Compiler
5283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5285 # This bug is HP SR number 8606223364.
5286 if test "$cross_compiling" = yes; then
5287 # Depending upon the size, compute the lo and hi bounds.
5288 cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h. */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 $ac_includes_default
5295 int
5296 main ()
5297 {
5298 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5299 test_array [0] = 0
5300
5301 ;
5302 return 0;
5303 }
5304 _ACEOF
5305 rm -f conftest.$ac_objext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5307 (eval $ac_compile) 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -z "$ac_c_werror_flag"
5315 || test ! -s conftest.err'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; } &&
5321 { ac_try='test -s conftest.$ac_objext'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 (eval $ac_try) 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; }; then
5327 ac_lo=0 ac_mid=0
5328 while :; do
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 $ac_includes_default
5336 int
5337 main ()
5338 {
5339 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5340 test_array [0] = 0
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>conftest.er1
5349 ac_status=$?
5350 grep -v '^ *+' conftest.er1 >conftest.err
5351 rm -f conftest.er1
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_c_werror_flag"
5356 || test ! -s conftest.err'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 (eval $ac_try) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; } &&
5362 { ac_try='test -s conftest.$ac_objext'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 (eval $ac_try) 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5368 ac_hi=$ac_mid; break
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 ac_lo=`expr $ac_mid + 1`
5374 if test $ac_lo -le $ac_mid; then
5375 ac_lo= ac_hi=
5376 break
5377 fi
5378 ac_mid=`expr 2 '*' $ac_mid + 1`
5379 fi
5380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5381 done
5382 else
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5385
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 $ac_includes_default
5393 int
5394 main ()
5395 {
5396 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5397 test_array [0] = 0
5398
5399 ;
5400 return 0;
5401 }
5402 _ACEOF
5403 rm -f conftest.$ac_objext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -z "$ac_c_werror_flag"
5413 || test ! -s conftest.err'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 (eval $ac_try) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; } &&
5419 { ac_try='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_hi=-1 ac_mid=-1
5426 while :; do
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5434 int
5435 main ()
5436 {
5437 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5438 test_array [0] = 0
5439
5440 ;
5441 return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try='test -z "$ac_c_werror_flag"
5454 || test ! -s conftest.err'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; } &&
5460 { ac_try='test -s conftest.$ac_objext'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462 (eval $ac_try) 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
5466 ac_lo=$ac_mid; break
5467 else
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471 ac_hi=`expr '(' $ac_mid ')' - 1`
5472 if test $ac_mid -le $ac_hi; then
5473 ac_lo= ac_hi=
5474 break
5475 fi
5476 ac_mid=`expr 2 '*' $ac_mid`
5477 fi
5478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5479 done
5480 else
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484 ac_lo= ac_hi=
5485 fi
5486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5487 fi
5488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5489 # Binary search between lo and hi bounds.
5490 while test "x$ac_lo" != "x$ac_hi"; do
5491 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5492 cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h. */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 $ac_includes_default
5499 int
5500 main ()
5501 {
5502 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5503 test_array [0] = 0
5504
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try='test -z "$ac_c_werror_flag"
5519 || test ! -s conftest.err'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try='test -s conftest.$ac_objext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 ac_hi=$ac_mid
5532 else
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5535
5536 ac_lo=`expr '(' $ac_mid ')' + 1`
5537 fi
5538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5539 done
5540 case $ac_lo in
5541 ?*) ac_cv_sizeof_int=$ac_lo;;
5542 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5543 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5545 See \`config.log' for more details." >&5
5546 echo "$as_me: error: cannot compute sizeof (int), 77
5547 See \`config.log' for more details." >&2;}
5548 { (exit 1); exit 1; }; }; } ;;
5549 esac
5550 else
5551 if test "$cross_compiling" = yes; then
5552 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5553 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5554 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5555 See \`config.log' for more details." >&5
5556 echo "$as_me: error: cannot run test program while cross compiling
5557 See \`config.log' for more details." >&2;}
5558 { (exit 1); exit 1; }; }; }
5559 else
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 $ac_includes_default
5567 long longval () { return (long) (sizeof (int)); }
5568 unsigned long ulongval () { return (long) (sizeof (int)); }
5569 #include <stdio.h>
5570 #include <stdlib.h>
5571 int
5572 main ()
5573 {
5574
5575 FILE *f = fopen ("conftest.val", "w");
5576 if (! f)
5577 exit (1);
5578 if (((long) (sizeof (int))) < 0)
5579 {
5580 long i = longval ();
5581 if (i != ((long) (sizeof (int))))
5582 exit (1);
5583 fprintf (f, "%ld\n", i);
5584 }
5585 else
5586 {
5587 unsigned long i = ulongval ();
5588 if (i != ((long) (sizeof (int))))
5589 exit (1);
5590 fprintf (f, "%lu\n", i);
5591 }
5592 exit (ferror (f) || fclose (f) != 0);
5593
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_sizeof_int=`cat conftest.val`
5610 else
5611 echo "$as_me: program exited with status $ac_status" >&5
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615 ( exit $ac_status )
5616 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5617 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5619 See \`config.log' for more details." >&5
5620 echo "$as_me: error: cannot compute sizeof (int), 77
5621 See \`config.log' for more details." >&2;}
5622 { (exit 1); exit 1; }; }; }
5623 fi
5624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5625 fi
5626 fi
5627 rm -f conftest.val
5628 else
5629 ac_cv_sizeof_int=0
5630 fi
5631 fi
5632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5633 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5634 cat >>confdefs.h <<_ACEOF
5635 #define SIZEOF_INT $ac_cv_sizeof_int
5636 _ACEOF
5637
5638
5639 echo "$as_me:$LINENO: checking for long" >&5
5640 echo $ECHO_N "checking for long... $ECHO_C" >&6
5641 if test "${ac_cv_type_long+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h. */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 $ac_includes_default
5651 int
5652 main ()
5653 {
5654 if ((long *) 0)
5655 return 0;
5656 if (sizeof (long))
5657 return 0;
5658 ;
5659 return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_type_long=yes
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 ac_cv_type_long=no
5690 fi
5691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5692 fi
5693 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5694 echo "${ECHO_T}$ac_cv_type_long" >&6
5695
5696 echo "$as_me:$LINENO: checking size of long" >&5
5697 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5698 if test "${ac_cv_sizeof_long+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 if test "$ac_cv_type_long" = yes; then
5702 # The cast to unsigned long works around a bug in the HP C Compiler
5703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5705 # This bug is HP SR number 8606223364.
5706 if test "$cross_compiling" = yes; then
5707 # Depending upon the size, compute the lo and hi bounds.
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 $ac_includes_default
5715 int
5716 main ()
5717 {
5718 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5719 test_array [0] = 0
5720
5721 ;
5722 return 0;
5723 }
5724 _ACEOF
5725 rm -f conftest.$ac_objext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727 (eval $ac_compile) 2>conftest.er1
5728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try='test -z "$ac_c_werror_flag"
5735 || test ! -s conftest.err'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 ac_lo=0 ac_mid=0
5748 while :; do
5749 cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h. */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 $ac_includes_default
5756 int
5757 main ()
5758 {
5759 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5760 test_array [0] = 0
5761
5762 ;
5763 return 0;
5764 }
5765 _ACEOF
5766 rm -f conftest.$ac_objext
5767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768 (eval $ac_compile) 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -z "$ac_c_werror_flag"
5776 || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_hi=$ac_mid; break
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5792
5793 ac_lo=`expr $ac_mid + 1`
5794 if test $ac_lo -le $ac_mid; then
5795 ac_lo= ac_hi=
5796 break
5797 fi
5798 ac_mid=`expr 2 '*' $ac_mid + 1`
5799 fi
5800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5801 done
5802 else
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h. */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 $ac_includes_default
5813 int
5814 main ()
5815 {
5816 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5817 test_array [0] = 0
5818
5819 ;
5820 return 0;
5821 }
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825 (eval $ac_compile) 2>conftest.er1
5826 ac_status=$?
5827 grep -v '^ *+' conftest.er1 >conftest.err
5828 rm -f conftest.er1
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } &&
5832 { ac_try='test -z "$ac_c_werror_flag"
5833 || test ! -s conftest.err'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 (eval $ac_try) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 ac_hi=-1 ac_mid=-1
5846 while :; do
5847 cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h. */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 $ac_includes_default
5854 int
5855 main ()
5856 {
5857 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5858 test_array [0] = 0
5859
5860 ;
5861 return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_lo=$ac_mid; break
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 ac_hi=`expr '(' $ac_mid ')' - 1`
5892 if test $ac_mid -le $ac_hi; then
5893 ac_lo= ac_hi=
5894 break
5895 fi
5896 ac_mid=`expr 2 '*' $ac_mid`
5897 fi
5898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 done
5900 else
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 ac_lo= ac_hi=
5905 fi
5906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907 fi
5908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5909 # Binary search between lo and hi bounds.
5910 while test "x$ac_lo" != "x$ac_hi"; do
5911 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5919 int
5920 main ()
5921 {
5922 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5923 test_array [0] = 0
5924
5925 ;
5926 return 0;
5927 }
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag"
5939 || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_hi=$ac_mid
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 ac_lo=`expr '(' $ac_mid ')' + 1`
5957 fi
5958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959 done
5960 case $ac_lo in
5961 ?*) ac_cv_sizeof_long=$ac_lo;;
5962 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5963 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5964 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5965 See \`config.log' for more details." >&5
5966 echo "$as_me: error: cannot compute sizeof (long), 77
5967 See \`config.log' for more details." >&2;}
5968 { (exit 1); exit 1; }; }; } ;;
5969 esac
5970 else
5971 if test "$cross_compiling" = yes; then
5972 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5973 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5975 See \`config.log' for more details." >&5
5976 echo "$as_me: error: cannot run test program while cross compiling
5977 See \`config.log' for more details." >&2;}
5978 { (exit 1); exit 1; }; }; }
5979 else
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 $ac_includes_default
5987 long longval () { return (long) (sizeof (long)); }
5988 unsigned long ulongval () { return (long) (sizeof (long)); }
5989 #include <stdio.h>
5990 #include <stdlib.h>
5991 int
5992 main ()
5993 {
5994
5995 FILE *f = fopen ("conftest.val", "w");
5996 if (! f)
5997 exit (1);
5998 if (((long) (sizeof (long))) < 0)
5999 {
6000 long i = longval ();
6001 if (i != ((long) (sizeof (long))))
6002 exit (1);
6003 fprintf (f, "%ld\n", i);
6004 }
6005 else
6006 {
6007 unsigned long i = ulongval ();
6008 if (i != ((long) (sizeof (long))))
6009 exit (1);
6010 fprintf (f, "%lu\n", i);
6011 }
6012 exit (ferror (f) || fclose (f) != 0);
6013
6014 ;
6015 return 0;
6016 }
6017 _ACEOF
6018 rm -f conftest$ac_exeext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6020 (eval $ac_link) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_sizeof_long=`cat conftest.val`
6030 else
6031 echo "$as_me: program exited with status $ac_status" >&5
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6034
6035 ( exit $ac_status )
6036 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6037 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6039 See \`config.log' for more details." >&5
6040 echo "$as_me: error: cannot compute sizeof (long), 77
6041 See \`config.log' for more details." >&2;}
6042 { (exit 1); exit 1; }; }; }
6043 fi
6044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6045 fi
6046 fi
6047 rm -f conftest.val
6048 else
6049 ac_cv_sizeof_long=0
6050 fi
6051 fi
6052 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6053 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6054 cat >>confdefs.h <<_ACEOF
6055 #define SIZEOF_LONG $ac_cv_sizeof_long
6056 _ACEOF
6057
6058
6059 echo "$as_me:$LINENO: checking for long long" >&5
6060 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6061 if test "${ac_cv_type_long_long+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6071 int
6072 main ()
6073 {
6074 if ((long long *) 0)
6075 return 0;
6076 if (sizeof (long long))
6077 return 0;
6078 ;
6079 return 0;
6080 }
6081 _ACEOF
6082 rm -f conftest.$ac_objext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084 (eval $ac_compile) 2>conftest.er1
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_c_werror_flag"
6092 || test ! -s conftest.err'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try='test -s conftest.$ac_objext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 ac_cv_type_long_long=yes
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 ac_cv_type_long_long=no
6110 fi
6111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112 fi
6113 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6114 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6115 if test $ac_cv_type_long_long = yes; then
6116
6117 cat >>confdefs.h <<_ACEOF
6118 #define HAVE_LONG_LONG 1
6119 _ACEOF
6120
6121 echo "$as_me:$LINENO: checking for long long" >&5
6122 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6123 if test "${ac_cv_type_long_long+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 $ac_includes_default
6133 int
6134 main ()
6135 {
6136 if ((long long *) 0)
6137 return 0;
6138 if (sizeof (long long))
6139 return 0;
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 rm -f conftest.$ac_objext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6146 (eval $ac_compile) 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -z "$ac_c_werror_flag"
6154 || test ! -s conftest.err'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_type_long_long=yes
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6170
6171 ac_cv_type_long_long=no
6172 fi
6173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6174 fi
6175 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6176 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6177
6178 echo "$as_me:$LINENO: checking size of long long" >&5
6179 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6180 if test "${ac_cv_sizeof_long_long+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183 if test "$ac_cv_type_long_long" = yes; then
6184 # The cast to unsigned long works around a bug in the HP C Compiler
6185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6187 # This bug is HP SR number 8606223364.
6188 if test "$cross_compiling" = yes; then
6189 # Depending upon the size, compute the lo and hi bounds.
6190 cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h. */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 $ac_includes_default
6197 int
6198 main ()
6199 {
6200 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6201 test_array [0] = 0
6202
6203 ;
6204 return 0;
6205 }
6206 _ACEOF
6207 rm -f conftest.$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -z "$ac_c_werror_flag"
6217 || test ! -s conftest.err'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; } &&
6223 { ac_try='test -s conftest.$ac_objext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 ac_lo=0 ac_mid=0
6230 while :; do
6231 cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 $ac_includes_default
6238 int
6239 main ()
6240 {
6241 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6242 test_array [0] = 0
6243
6244 ;
6245 return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_c_werror_flag"
6258 || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_hi=$ac_mid; break
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 ac_lo=`expr $ac_mid + 1`
6276 if test $ac_lo -le $ac_mid; then
6277 ac_lo= ac_hi=
6278 break
6279 fi
6280 ac_mid=`expr 2 '*' $ac_mid + 1`
6281 fi
6282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283 done
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 $ac_includes_default
6295 int
6296 main ()
6297 {
6298 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6299 test_array [0] = 0
6300
6301 ;
6302 return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307 (eval $ac_compile) 2>conftest.er1
6308 ac_status=$?
6309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest.$ac_objext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 (eval $ac_try) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_hi=-1 ac_mid=-1
6328 while :; do
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 $ac_includes_default
6336 int
6337 main ()
6338 {
6339 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6340 test_array [0] = 0
6341
6342 ;
6343 return 0;
6344 }
6345 _ACEOF
6346 rm -f conftest.$ac_objext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -z "$ac_c_werror_flag"
6356 || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest.$ac_objext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_lo=$ac_mid; break
6369 else
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373 ac_hi=`expr '(' $ac_mid ')' - 1`
6374 if test $ac_mid -le $ac_hi; then
6375 ac_lo= ac_hi=
6376 break
6377 fi
6378 ac_mid=`expr 2 '*' $ac_mid`
6379 fi
6380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381 done
6382 else
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 ac_lo= ac_hi=
6387 fi
6388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6389 fi
6390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6391 # Binary search between lo and hi bounds.
6392 while test "x$ac_lo" != "x$ac_hi"; do
6393 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6394 cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h. */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 $ac_includes_default
6401 int
6402 main ()
6403 {
6404 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6405 test_array [0] = 0
6406
6407 ;
6408 return 0;
6409 }
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_hi=$ac_mid
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 ac_lo=`expr '(' $ac_mid ')' + 1`
6439 fi
6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441 done
6442 case $ac_lo in
6443 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6444 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6445 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6446 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6447 See \`config.log' for more details." >&5
6448 echo "$as_me: error: cannot compute sizeof (long long), 77
6449 See \`config.log' for more details." >&2;}
6450 { (exit 1); exit 1; }; }; } ;;
6451 esac
6452 else
6453 if test "$cross_compiling" = yes; then
6454 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6455 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6456 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6457 See \`config.log' for more details." >&5
6458 echo "$as_me: error: cannot run test program while cross compiling
6459 See \`config.log' for more details." >&2;}
6460 { (exit 1); exit 1; }; }; }
6461 else
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 $ac_includes_default
6469 long longval () { return (long) (sizeof (long long)); }
6470 unsigned long ulongval () { return (long) (sizeof (long long)); }
6471 #include <stdio.h>
6472 #include <stdlib.h>
6473 int
6474 main ()
6475 {
6476
6477 FILE *f = fopen ("conftest.val", "w");
6478 if (! f)
6479 exit (1);
6480 if (((long) (sizeof (long long))) < 0)
6481 {
6482 long i = longval ();
6483 if (i != ((long) (sizeof (long long))))
6484 exit (1);
6485 fprintf (f, "%ld\n", i);
6486 }
6487 else
6488 {
6489 unsigned long i = ulongval ();
6490 if (i != ((long) (sizeof (long long))))
6491 exit (1);
6492 fprintf (f, "%lu\n", i);
6493 }
6494 exit (ferror (f) || fclose (f) != 0);
6495
6496 ;
6497 return 0;
6498 }
6499 _ACEOF
6500 rm -f conftest$ac_exeext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6502 (eval $ac_link) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_cv_sizeof_long_long=`cat conftest.val`
6512 else
6513 echo "$as_me: program exited with status $ac_status" >&5
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6516
6517 ( exit $ac_status )
6518 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6521 See \`config.log' for more details." >&5
6522 echo "$as_me: error: cannot compute sizeof (long long), 77
6523 See \`config.log' for more details." >&2;}
6524 { (exit 1); exit 1; }; }; }
6525 fi
6526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6527 fi
6528 fi
6529 rm -f conftest.val
6530 else
6531 ac_cv_sizeof_long_long=0
6532 fi
6533 fi
6534 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6535 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6536 cat >>confdefs.h <<_ACEOF
6537 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6538 _ACEOF
6539
6540
6541 fi
6542
6543 echo "$as_me:$LINENO: checking for __int64" >&5
6544 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6545 if test "${ac_cv_type___int64+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548 cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h. */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 $ac_includes_default
6555 int
6556 main ()
6557 {
6558 if ((__int64 *) 0)
6559 return 0;
6560 if (sizeof (__int64))
6561 return 0;
6562 ;
6563 return 0;
6564 }
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_c_werror_flag"
6576 || test ! -s conftest.err'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 ac_cv_type___int64=yes
6589 else
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_cv_type___int64=no
6594 fi
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6598 echo "${ECHO_T}$ac_cv_type___int64" >&6
6599 if test $ac_cv_type___int64 = yes; then
6600
6601 cat >>confdefs.h <<_ACEOF
6602 #define HAVE___INT64 1
6603 _ACEOF
6604
6605 echo "$as_me:$LINENO: checking for __int64" >&5
6606 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6607 if test "${ac_cv_type___int64+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 int
6618 main ()
6619 {
6620 if ((__int64 *) 0)
6621 return 0;
6622 if (sizeof (__int64))
6623 return 0;
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -z "$ac_c_werror_flag"
6638 || test ! -s conftest.err'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 (eval $ac_try) 2>&5
6641 ac_status=$?
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; } &&
6644 { ac_try='test -s conftest.$ac_objext'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; }; then
6650 ac_cv_type___int64=yes
6651 else
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6654
6655 ac_cv_type___int64=no
6656 fi
6657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6658 fi
6659 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6660 echo "${ECHO_T}$ac_cv_type___int64" >&6
6661
6662 echo "$as_me:$LINENO: checking size of __int64" >&5
6663 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6664 if test "${ac_cv_sizeof___int64+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 if test "$ac_cv_type___int64" = yes; then
6668 # The cast to unsigned long works around a bug in the HP C Compiler
6669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6671 # This bug is HP SR number 8606223364.
6672 if test "$cross_compiling" = yes; then
6673 # Depending upon the size, compute the lo and hi bounds.
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 $ac_includes_default
6681 int
6682 main ()
6683 {
6684 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6685 test_array [0] = 0
6686
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_lo=0 ac_mid=0
6714 while :; do
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h. */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 $ac_includes_default
6722 int
6723 main ()
6724 {
6725 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6726 test_array [0] = 0
6727
6728 ;
6729 return 0;
6730 }
6731 _ACEOF
6732 rm -f conftest.$ac_objext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734 (eval $ac_compile) 2>conftest.er1
6735 ac_status=$?
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try='test -z "$ac_c_werror_flag"
6742 || test ! -s conftest.err'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 (eval $ac_try) 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; } &&
6748 { ac_try='test -s conftest.$ac_objext'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 (eval $ac_try) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; }; then
6754 ac_hi=$ac_mid; break
6755 else
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6758
6759 ac_lo=`expr $ac_mid + 1`
6760 if test $ac_lo -le $ac_mid; then
6761 ac_lo= ac_hi=
6762 break
6763 fi
6764 ac_mid=`expr 2 '*' $ac_mid + 1`
6765 fi
6766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6767 done
6768 else
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772 cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h. */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 $ac_includes_default
6779 int
6780 main ()
6781 {
6782 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6783 test_array [0] = 0
6784
6785 ;
6786 return 0;
6787 }
6788 _ACEOF
6789 rm -f conftest.$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try='test -s conftest.$ac_objext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_hi=-1 ac_mid=-1
6812 while :; do
6813 cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h. */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 $ac_includes_default
6820 int
6821 main ()
6822 {
6823 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6824 test_array [0] = 0
6825
6826 ;
6827 return 0;
6828 }
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try='test -z "$ac_c_werror_flag"
6840 || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 (eval $ac_try) 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try='test -s conftest.$ac_objext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 (eval $ac_try) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_lo=$ac_mid; break
6853 else
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ac_hi=`expr '(' $ac_mid ')' - 1`
6858 if test $ac_mid -le $ac_hi; then
6859 ac_lo= ac_hi=
6860 break
6861 fi
6862 ac_mid=`expr 2 '*' $ac_mid`
6863 fi
6864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6865 done
6866 else
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6869
6870 ac_lo= ac_hi=
6871 fi
6872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6873 fi
6874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6875 # Binary search between lo and hi bounds.
6876 while test "x$ac_lo" != "x$ac_hi"; do
6877 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6885 int
6886 main ()
6887 {
6888 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6889 test_array [0] = 0
6890
6891 ;
6892 return 0;
6893 }
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_hi=$ac_mid
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922 ac_lo=`expr '(' $ac_mid ')' + 1`
6923 fi
6924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6925 done
6926 case $ac_lo in
6927 ?*) ac_cv_sizeof___int64=$ac_lo;;
6928 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6929 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6930 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6931 See \`config.log' for more details." >&5
6932 echo "$as_me: error: cannot compute sizeof (__int64), 77
6933 See \`config.log' for more details." >&2;}
6934 { (exit 1); exit 1; }; }; } ;;
6935 esac
6936 else
6937 if test "$cross_compiling" = yes; then
6938 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6939 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6940 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6941 See \`config.log' for more details." >&5
6942 echo "$as_me: error: cannot run test program while cross compiling
6943 See \`config.log' for more details." >&2;}
6944 { (exit 1); exit 1; }; }; }
6945 else
6946 cat >conftest.$ac_ext <<_ACEOF
6947 /* confdefs.h. */
6948 _ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6952 $ac_includes_default
6953 long longval () { return (long) (sizeof (__int64)); }
6954 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6955 #include <stdio.h>
6956 #include <stdlib.h>
6957 int
6958 main ()
6959 {
6960
6961 FILE *f = fopen ("conftest.val", "w");
6962 if (! f)
6963 exit (1);
6964 if (((long) (sizeof (__int64))) < 0)
6965 {
6966 long i = longval ();
6967 if (i != ((long) (sizeof (__int64))))
6968 exit (1);
6969 fprintf (f, "%ld\n", i);
6970 }
6971 else
6972 {
6973 unsigned long i = ulongval ();
6974 if (i != ((long) (sizeof (__int64))))
6975 exit (1);
6976 fprintf (f, "%lu\n", i);
6977 }
6978 exit (ferror (f) || fclose (f) != 0);
6979
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest$ac_exeext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6986 (eval $ac_link) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6995 ac_cv_sizeof___int64=`cat conftest.val`
6996 else
6997 echo "$as_me: program exited with status $ac_status" >&5
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ( exit $ac_status )
7002 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7003 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7005 See \`config.log' for more details." >&5
7006 echo "$as_me: error: cannot compute sizeof (__int64), 77
7007 See \`config.log' for more details." >&2;}
7008 { (exit 1); exit 1; }; }; }
7009 fi
7010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7011 fi
7012 fi
7013 rm -f conftest.val
7014 else
7015 ac_cv_sizeof___int64=0
7016 fi
7017 fi
7018 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7019 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
7020 cat >>confdefs.h <<_ACEOF
7021 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7022 _ACEOF
7023
7024
7025 fi
7026
7027
7028 # ---------------------
7029 # Warnings and checking
7030 # ---------------------
7031
7032 # Check $CC warning features (if it's GCC).
7033 # We want to use -pedantic, but we don't want warnings about
7034 # * 'long long'
7035 # * variadic macros
7036 # * overlong strings
7037 # So, we only use -pedantic if we can disable those warnings.
7038
7039 loose_warn=
7040 save_CFLAGS="$CFLAGS"
7041 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual; do
7042 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7043
7044 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7045 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7046 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049 CFLAGS="$option"
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056
7057 int
7058 main ()
7059 {
7060
7061 ;
7062 return 0;
7063 }
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_c_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 eval "$as_acx_Woption=yes"
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 eval "$as_acx_Woption=no"
7093 fi
7094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095
7096 fi
7097 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7098 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7099 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7100 loose_warn="$loose_warn${loose_warn:+ }$option"
7101 fi
7102
7103 done
7104 CFLAGS="$save_CFLAGS"
7105
7106 strict_warn=
7107 save_CFLAGS="$CFLAGS"
7108 for option in -Wold-style-definition -Wc++-compat -Wmissing-format-attribute; do
7109 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7110
7111 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7112 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7113 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116 CFLAGS="$option"
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h. */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123
7124 int
7125 main ()
7126 {
7127
7128 ;
7129 return 0;
7130 }
7131 _ACEOF
7132 rm -f conftest.$ac_objext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7134 (eval $ac_compile) 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } &&
7141 { ac_try='test -z "$ac_c_werror_flag"
7142 || test ! -s conftest.err'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 (eval $ac_try) 2>&5
7145 ac_status=$?
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; } &&
7148 { ac_try='test -s conftest.$ac_objext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 (eval $ac_try) 2>&5
7151 ac_status=$?
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 eval "$as_acx_Woption=yes"
7155 else
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159 eval "$as_acx_Woption=no"
7160 fi
7161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7162
7163 fi
7164 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7165 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7166 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7167 strict_warn="$strict_warn${strict_warn:+ }$option"
7168 fi
7169
7170 done
7171 CFLAGS="$save_CFLAGS"
7172
7173 if test "$GCC" = yes; then
7174 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7175 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7176 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179 save_CFLAGS="$CFLAGS"
7180 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7181 cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h. */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187
7188 int
7189 main ()
7190 {
7191
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
7219 else
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7222
7223 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
7224 fi
7225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7226 CFLAGS="$save_CFLAGS"
7227 fi
7228 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
7229 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6
7230 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then
7231 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7232 fi
7233
7234
7235 fi
7236
7237
7238 # Check whether --enable-werror-always or --disable-werror-always was given.
7239 if test "${enable_werror_always+set}" = set; then
7240 enableval="$enable_werror_always"
7241
7242 else
7243 enable_werror_always=no
7244 fi;
7245 if test $enable_werror_always = yes; then
7246 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7247 fi
7248
7249
7250
7251
7252 # The above macros do nothing if the compiler is not GCC. However, the
7253 # Makefile has more goo to add other flags, so this variabl is used to
7254 # enables warnings only for GCC.
7255 warn_cflags=
7256 if test "x$GCC" = "xyes"; then
7257 warn_cflags='$(GCC_WARN_CFLAGS)'
7258 fi
7259
7260
7261 # Enable expensive internal checks
7262 is_release=
7263 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7264 is_release=yes
7265 fi
7266
7267 # Check whether --enable-checking or --disable-checking was given.
7268 if test "${enable_checking+set}" = set; then
7269 enableval="$enable_checking"
7270 ac_checking_flags="${enableval}"
7271 else
7272
7273 # Determine the default checks.
7274 if test x$is_release = x ; then
7275 ac_checking_flags=yes
7276 else
7277 ac_checking_flags=release
7278 fi
7279 fi;
7280 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7281 for check in release $ac_checking_flags
7282 do
7283 case $check in
7284 # these set all the flags to specific states
7285 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7286 ac_fold_checking= ; ac_gc_checking=1 ;
7287 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7288 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7289 ac_tree_checking=1 ; ac_valgrind_checking= ;
7290 ac_types_checking=1 ;;
7291 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7292 ac_fold_checking= ; ac_gc_checking= ;
7293 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7294 ac_rtlflag_checking= ; ac_runtime_checking= ;
7295 ac_tree_checking= ; ac_valgrind_checking= ;
7296 ac_types_checking= ;;
7297 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7298 ac_fold_checking=1 ; ac_gc_checking=1 ;
7299 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7300 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7301 ac_tree_checking=1 ; ac_valgrind_checking= ;
7302 ac_types_checking=1 ;;
7303 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7304 ac_fold_checking= ; ac_gc_checking= ;
7305 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7306 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7307 ac_tree_checking= ; ac_valgrind_checking= ;
7308 ac_types_checking= ;;
7309 # these enable particular checks
7310 assert) ac_assert_checking=1 ;;
7311 df) ac_df_checking=1 ;;
7312 fold) ac_fold_checking=1 ;;
7313 gc) ac_gc_checking=1 ;;
7314 gcac) ac_gc_always_collect=1 ;;
7315 gimple) ac_gimple_checking=1 ;;
7316 misc) ac_checking=1 ;;
7317 rtl) ac_rtl_checking=1 ;;
7318 rtlflag) ac_rtlflag_checking=1 ;;
7319 runtime) ac_runtime_checking=1 ;;
7320 tree) ac_tree_checking=1 ;;
7321 types) ac_types_checking=1 ;;
7322 valgrind) ac_valgrind_checking=1 ;;
7323 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7324 echo "$as_me: error: unknown check category $check" >&2;}
7325 { (exit 1); exit 1; }; } ;;
7326 esac
7327 done
7328 IFS="$ac_save_IFS"
7329
7330 nocommon_flag=""
7331 if test x$ac_checking != x ; then
7332
7333 cat >>confdefs.h <<\_ACEOF
7334 #define ENABLE_CHECKING 1
7335 _ACEOF
7336
7337 nocommon_flag=-fno-common
7338 fi
7339
7340 if test x$ac_df_checking != x ; then
7341
7342 cat >>confdefs.h <<\_ACEOF
7343 #define ENABLE_DF_CHECKING 1
7344 _ACEOF
7345
7346 fi
7347 if test x$ac_assert_checking != x ; then
7348
7349 cat >>confdefs.h <<\_ACEOF
7350 #define ENABLE_ASSERT_CHECKING 1
7351 _ACEOF
7352
7353 fi
7354 if test x$ac_gimple_checking != x ; then
7355
7356 cat >>confdefs.h <<\_ACEOF
7357 #define ENABLE_GIMPLE_CHECKING 1
7358 _ACEOF
7359
7360 fi
7361
7362 if test x$ac_runtime_checking != x ; then
7363
7364 cat >>confdefs.h <<\_ACEOF
7365 #define ENABLE_RUNTIME_CHECKING 1
7366 _ACEOF
7367
7368 fi
7369 if test x$ac_tree_checking != x ; then
7370
7371 cat >>confdefs.h <<\_ACEOF
7372 #define ENABLE_TREE_CHECKING 1
7373 _ACEOF
7374
7375 TREEBROWSER=tree-browser.o
7376 fi
7377 if test x$ac_types_checking != x ; then
7378
7379 cat >>confdefs.h <<\_ACEOF
7380 #define ENABLE_TYPES_CHECKING 1
7381 _ACEOF
7382
7383 fi
7384
7385 if test x$ac_rtl_checking != x ; then
7386
7387 cat >>confdefs.h <<\_ACEOF
7388 #define ENABLE_RTL_CHECKING 1
7389 _ACEOF
7390
7391 fi
7392 if test x$ac_rtlflag_checking != x ; then
7393
7394 cat >>confdefs.h <<\_ACEOF
7395 #define ENABLE_RTL_FLAG_CHECKING 1
7396 _ACEOF
7397
7398 fi
7399 if test x$ac_gc_checking != x ; then
7400
7401 cat >>confdefs.h <<\_ACEOF
7402 #define ENABLE_GC_CHECKING 1
7403 _ACEOF
7404
7405 fi
7406 if test x$ac_gc_always_collect != x ; then
7407
7408 cat >>confdefs.h <<\_ACEOF
7409 #define ENABLE_GC_ALWAYS_COLLECT 1
7410 _ACEOF
7411
7412 fi
7413 if test x$ac_fold_checking != x ; then
7414
7415 cat >>confdefs.h <<\_ACEOF
7416 #define ENABLE_FOLD_CHECKING 1
7417 _ACEOF
7418
7419 fi
7420 valgrind_path_defines=
7421 valgrind_command=
7422
7423 if test "${ac_cv_header_valgrind_h+set}" = set; then
7424 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7425 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7426 if test "${ac_cv_header_valgrind_h+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 fi
7429 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7430 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7431 else
7432 # Is the header compilable?
7433 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7434 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h. */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 $ac_includes_default
7442 #include <valgrind.h>
7443 _ACEOF
7444 rm -f conftest.$ac_objext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7446 (eval $ac_compile) 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try='test -z "$ac_c_werror_flag"
7454 || test ! -s conftest.err'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 (eval $ac_try) 2>&5
7457 ac_status=$?
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; } &&
7460 { ac_try='test -s conftest.$ac_objext'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 (eval $ac_try) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; }; then
7466 ac_header_compiler=yes
7467 else
7468 echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7470
7471 ac_header_compiler=no
7472 fi
7473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7475 echo "${ECHO_T}$ac_header_compiler" >&6
7476
7477 # Is the header present?
7478 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7479 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7480 cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h. */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 #include <valgrind.h>
7487 _ACEOF
7488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7490 ac_status=$?
7491 grep -v '^ *+' conftest.er1 >conftest.err
7492 rm -f conftest.er1
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } >/dev/null; then
7496 if test -s conftest.err; then
7497 ac_cpp_err=$ac_c_preproc_warn_flag
7498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7499 else
7500 ac_cpp_err=
7501 fi
7502 else
7503 ac_cpp_err=yes
7504 fi
7505 if test -z "$ac_cpp_err"; then
7506 ac_header_preproc=yes
7507 else
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7510
7511 ac_header_preproc=no
7512 fi
7513 rm -f conftest.err conftest.$ac_ext
7514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7515 echo "${ECHO_T}$ac_header_preproc" >&6
7516
7517 # So? What about this header?
7518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7519 yes:no: )
7520 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7521 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7522 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7523 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7524 ac_header_preproc=yes
7525 ;;
7526 no:yes:* )
7527 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7528 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7530 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7532 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7534 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7536 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7537 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7538 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7539 (
7540 cat <<\_ASBOX
7541 ## ------------------------------------------ ##
7542 ## Report this to the AC_PACKAGE_NAME lists. ##
7543 ## ------------------------------------------ ##
7544 _ASBOX
7545 ) |
7546 sed "s/^/$as_me: WARNING: /" >&2
7547 ;;
7548 esac
7549 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7550 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7551 if test "${ac_cv_header_valgrind_h+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 ac_cv_header_valgrind_h=$ac_header_preproc
7555 fi
7556 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7557 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7558
7559 fi
7560 if test $ac_cv_header_valgrind_h = yes; then
7561 have_valgrind_h=yes
7562 else
7563 have_valgrind_h=no
7564 fi
7565
7566
7567
7568 if test x$ac_valgrind_checking != x ; then
7569 # It is certainly possible that there's valgrind but no valgrind.h.
7570 # GCC relies on making annotations so we must have both.
7571 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7572 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7573 cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h. */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 #include <valgrind/memcheck.h>
7580 #ifndef VALGRIND_DISCARD
7581 #error VALGRIND_DISCARD not defined
7582 #endif
7583 _ACEOF
7584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7586 ac_status=$?
7587 grep -v '^ *+' conftest.er1 >conftest.err
7588 rm -f conftest.er1
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } >/dev/null; then
7592 if test -s conftest.err; then
7593 ac_cpp_err=$ac_c_preproc_warn_flag
7594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7595 else
7596 ac_cpp_err=
7597 fi
7598 else
7599 ac_cpp_err=yes
7600 fi
7601 if test -z "$ac_cpp_err"; then
7602 gcc_cv_header_valgrind_memcheck_h=yes
7603 else
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7606
7607 gcc_cv_header_valgrind_memcheck_h=no
7608 fi
7609 rm -f conftest.err conftest.$ac_ext
7610 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7611 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7612 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7613 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7614 cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 #include <memcheck.h>
7621 #ifndef VALGRIND_DISCARD
7622 #error VALGRIND_DISCARD not defined
7623 #endif
7624 _ACEOF
7625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7627 ac_status=$?
7628 grep -v '^ *+' conftest.er1 >conftest.err
7629 rm -f conftest.er1
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } >/dev/null; then
7633 if test -s conftest.err; then
7634 ac_cpp_err=$ac_c_preproc_warn_flag
7635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7636 else
7637 ac_cpp_err=
7638 fi
7639 else
7640 ac_cpp_err=yes
7641 fi
7642 if test -z "$ac_cpp_err"; then
7643 gcc_cv_header_memcheck_h=yes
7644 else
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648 gcc_cv_header_memcheck_h=no
7649 fi
7650 rm -f conftest.err conftest.$ac_ext
7651 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7652 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7653
7654 # Prepare PATH_SEPARATOR.
7655 # The user is always right.
7656 if test "${PATH_SEPARATOR+set}" != set; then
7657 echo "#! /bin/sh" >conf$$.sh
7658 echo "exit 0" >>conf$$.sh
7659 chmod +x conf$$.sh
7660 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7661 PATH_SEPARATOR=';'
7662 else
7663 PATH_SEPARATOR=:
7664 fi
7665 rm -f conf$$.sh
7666 fi
7667
7668 # Find out how to test for executable files. Don't use a zero-byte file,
7669 # as systems may use methods other than mode bits to determine executability.
7670 cat >conf$$.file <<_ASEOF
7671 #! /bin/sh
7672 exit 0
7673 _ASEOF
7674 chmod +x conf$$.file
7675 if test -x conf$$.file >/dev/null 2>&1; then
7676 ac_executable_p="test -x"
7677 else
7678 ac_executable_p="test -f"
7679 fi
7680 rm -f conf$$.file
7681
7682 # Extract the first word of "valgrind", so it can be a program name with args.
7683 set dummy valgrind; ac_word=$2
7684 echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7686 if test "${ac_cv_path_valgrind_path+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689 case "$valgrind_path" in
7690 [\\/]* | ?:[\\/]*)
7691 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7692 ;;
7693 *)
7694 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7695 for ac_dir in $PATH; do
7696 IFS="$ac_save_IFS"
7697 test -z "$ac_dir" && ac_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7700 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7701 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7702 break 2
7703 fi
7704 fi
7705 done
7706 done
7707 IFS="$ac_save_IFS"
7708 ;;
7709 esac
7710 fi
7711 valgrind_path="$ac_cv_path_valgrind_path"
7712 if test -n "$valgrind_path"; then
7713 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7714 echo "${ECHO_T}$valgrind_path" >&6
7715 else
7716 echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6
7718 fi
7719
7720 if test "x$valgrind_path" = "x" \
7721 || (test $have_valgrind_h = no \
7722 && test $gcc_cv_header_memcheck_h = no \
7723 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7724 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7725 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7726 { (exit 1); exit 1; }; }
7727 fi
7728 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7729 valgrind_command="$valgrind_path -q"
7730
7731 cat >>confdefs.h <<\_ACEOF
7732 #define ENABLE_VALGRIND_CHECKING 1
7733 _ACEOF
7734
7735 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7736
7737 cat >>confdefs.h <<\_ACEOF
7738 #define HAVE_VALGRIND_MEMCHECK_H 1
7739 _ACEOF
7740
7741 fi
7742 if test $gcc_cv_header_memcheck_h = yes; then
7743
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_MEMCHECK_H 1
7746 _ACEOF
7747
7748 fi
7749 fi
7750
7751
7752
7753 # Enable code coverage collection
7754 # Check whether --enable-coverage or --disable-coverage was given.
7755 if test "${enable_coverage+set}" = set; then
7756 enableval="$enable_coverage"
7757 case "${enableval}" in
7758 yes|noopt)
7759 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7760 ;;
7761 opt)
7762 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7763 ;;
7764 no)
7765 # a.k.a. --disable-coverage
7766 coverage_flags=""
7767 ;;
7768 *)
7769 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7770 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7771 { (exit 1); exit 1; }; }
7772 ;;
7773 esac
7774 else
7775 coverage_flags=""
7776 fi;
7777
7778
7779 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7780 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7781 enableval="$enable_gather_detailed_mem_stats"
7782
7783 else
7784 enable_gather_detailed_mem_stats=no
7785 fi;
7786 if test x$enable_gather_detailed_mem_stats = xyes ; then
7787
7788 cat >>confdefs.h <<\_ACEOF
7789 #define GATHER_STATISTICS 1
7790 _ACEOF
7791
7792 fi
7793
7794 # -------------------------------
7795 # Miscenalleous configure options
7796 # -------------------------------
7797
7798 # With stabs
7799
7800 # Check whether --with-stabs or --without-stabs was given.
7801 if test "${with_stabs+set}" = set; then
7802 withval="$with_stabs"
7803 stabs="$with_stabs"
7804 else
7805 stabs=no
7806 fi;
7807
7808 # Determine whether or not multilibs are enabled.
7809 # Check whether --enable-multilib or --disable-multilib was given.
7810 if test "${enable_multilib+set}" = set; then
7811 enableval="$enable_multilib"
7812
7813 else
7814 enable_multilib=yes
7815 fi;
7816
7817
7818 # Enable __cxa_atexit for C++.
7819 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7820 if test "${enable___cxa_atexit+set}" = set; then
7821 enableval="$enable___cxa_atexit"
7822
7823 fi;
7824
7825 # Enable C extension for decimal float if target supports it.
7826 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7827 if test "${enable_decimal_float+set}" = set; then
7828 enableval="$enable_decimal_float"
7829
7830 case $enable_decimal_float in
7831 yes | no | bid | dpd) ;;
7832 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7833 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7834 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7835 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7836 { (exit 1); exit 1; }; } ;;
7837 esac
7838
7839 else
7840
7841 case $target in
7842 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7843 enable_decimal_float=yes
7844 ;;
7845 *)
7846 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7847 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7848 enable_decimal_float=no
7849 ;;
7850 esac
7851
7852 fi;
7853
7854 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7855
7856 cat >>confdefs.h <<_ACEOF
7857 #define ENABLE_DECIMAL_FLOAT $dfp
7858 _ACEOF
7859
7860
7861 # x86's use BID format instead of DPD
7862 case x$enable_decimal_float in
7863 xyes)
7864 case $target in
7865 i?86*-*-linux* | x86_64*-*-linux*)
7866 enable_decimal_float=bid
7867 ;;
7868 *)
7869 enable_decimal_float=dpd
7870 ;;
7871 esac
7872 ;;
7873 xno)
7874 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7875 # dependency on libdecnumber.
7876 enable_decimal_float=dpd
7877 ;;
7878 esac
7879
7880
7881 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7882
7883 cat >>confdefs.h <<_ACEOF
7884 #define ENABLE_DECIMAL_BID_FORMAT $bid
7885 _ACEOF
7886
7887
7888 # Enable C extension for fixed-point arithmetic.
7889 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7890 if test "${enable_fixed_point+set}" = set; then
7891 enableval="$enable_fixed_point"
7892
7893
7894 else
7895
7896 case $target in
7897 mips*-*-*)
7898 case $host in
7899 mips*-sgi-irix*)
7900 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7901 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7902 enable_fixed_point=no
7903 ;;
7904 *)
7905 enable_fixed_point=yes
7906 ;;
7907 esac
7908 ;;
7909 *)
7910 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7911 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7912 enable_fixed_point=no
7913 ;;
7914 esac
7915
7916 fi;
7917
7918
7919 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7920
7921 cat >>confdefs.h <<_ACEOF
7922 #define ENABLE_FIXED_POINT $fixedpoint
7923 _ACEOF
7924
7925
7926 # Enable threads
7927 # Pass with no value to take the default
7928 # Pass with a value to specify a thread package
7929 # Check whether --enable-threads or --disable-threads was given.
7930 if test "${enable_threads+set}" = set; then
7931 enableval="$enable_threads"
7932
7933 else
7934 enable_threads=''
7935 fi;
7936
7937 # Check whether --enable-tls or --disable-tls was given.
7938 if test "${enable_tls+set}" = set; then
7939 enableval="$enable_tls"
7940
7941 case $enable_tls in
7942 yes | no) ;;
7943 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7944 Valid choices are 'yes' and 'no'." >&5
7945 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7946 Valid choices are 'yes' and 'no'." >&2;}
7947 { (exit 1); exit 1; }; } ;;
7948 esac
7949
7950 else
7951 enable_tls=''
7952 fi;
7953
7954 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7955 if test "${enable_objc_gc+set}" = set; then
7956 enableval="$enable_objc_gc"
7957 if test x$enable_objc_gc = xno; then
7958 objc_boehm_gc=''
7959 else
7960 objc_boehm_gc=1
7961 fi
7962 else
7963 objc_boehm_gc=''
7964 fi;
7965
7966
7967 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7968 if test "${with_dwarf2+set}" = set; then
7969 withval="$with_dwarf2"
7970 dwarf2="$with_dwarf2"
7971 else
7972 dwarf2=no
7973 fi;
7974
7975 # Check whether --enable-shared or --disable-shared was given.
7976 if test "${enable_shared+set}" = set; then
7977 enableval="$enable_shared"
7978
7979 case $enable_shared in
7980 yes | no) ;;
7981 *)
7982 enable_shared=no
7983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7984 for pkg in $enableval; do
7985 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7986 enable_shared=yes
7987 fi
7988 done
7989 IFS="$ac_save_ifs"
7990 ;;
7991 esac
7992
7993 else
7994 enable_shared=yes
7995 fi;
7996
7997
7998
7999 # Check whether --with-build-sysroot or --without-build-sysroot was given.
8000 if test "${with_build_sysroot+set}" = set; then
8001 withval="$with_build_sysroot"
8002
8003 fi;
8004
8005
8006 # Check whether --with-sysroot or --without-sysroot was given.
8007 if test "${with_sysroot+set}" = set; then
8008 withval="$with_sysroot"
8009
8010 case ${with_sysroot} in
8011 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8012 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
8013 esac
8014
8015 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8016 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8017
8018 if test "x$prefix" = xNONE; then
8019 test_prefix=/usr/local
8020 else
8021 test_prefix=$prefix
8022 fi
8023 if test "x$exec_prefix" = xNONE; then
8024 test_exec_prefix=$test_prefix
8025 else
8026 test_exec_prefix=$exec_prefix
8027 fi
8028 case ${TARGET_SYSTEM_ROOT} in
8029 "${test_prefix}"|"${test_prefix}/"*|\
8030 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8031 '${prefix}'|'${prefix}/'*|\
8032 '${exec_prefix}'|'${exec_prefix}/'*)
8033 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8034 TARGET_SYSTEM_ROOT_DEFINE="$t"
8035 ;;
8036 esac
8037
8038 else
8039
8040 TARGET_SYSTEM_ROOT=
8041 TARGET_SYSTEM_ROOT_DEFINE=
8042 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8043
8044 fi;
8045
8046
8047
8048
8049 # Build with intermodule optimisations
8050 # Check whether --enable-intermodule or --disable-intermodule was given.
8051 if test "${enable_intermodule+set}" = set; then
8052 enableval="$enable_intermodule"
8053 case ${enable_intermodule} in
8054 yes) onestep="-onestep";;
8055 *) onestep="";;
8056 esac
8057 else
8058 onestep=""
8059 fi;
8060
8061
8062
8063
8064 # Check whether --with-pkgversion or --without-pkgversion was given.
8065 if test "${with_pkgversion+set}" = set; then
8066 withval="$with_pkgversion"
8067 case "$withval" in
8068 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8069 echo "$as_me: error: package version not specified" >&2;}
8070 { (exit 1); exit 1; }; } ;;
8071 no) PKGVERSION= ;;
8072 *) PKGVERSION="($withval) " ;;
8073 esac
8074 else
8075 PKGVERSION="(GCC) "
8076
8077 fi;
8078
8079
8080
8081
8082 # Check whether --with-bugurl or --without-bugurl was given.
8083 if test "${with_bugurl+set}" = set; then
8084 withval="$with_bugurl"
8085 case "$withval" in
8086 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8087 echo "$as_me: error: bug URL not specified" >&2;}
8088 { (exit 1); exit 1; }; } ;;
8089 no) BUGURL=
8090 ;;
8091 *) BUGURL="$withval"
8092 ;;
8093 esac
8094 else
8095 BUGURL="http://gcc.gnu.org/bugs.html"
8096
8097 fi;
8098 case ${BUGURL} in
8099 "")
8100 REPORT_BUGS_TO=
8101 REPORT_BUGS_TEXI=
8102 ;;
8103 *)
8104 REPORT_BUGS_TO="<$BUGURL>"
8105 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8106 ;;
8107 esac;
8108
8109
8110
8111
8112 # Sanity check enable_languages in case someone does not run the toplevel
8113 # configure # script.
8114 # Check whether --enable-languages or --disable-languages was given.
8115 if test "${enable_languages+set}" = set; then
8116 enableval="$enable_languages"
8117 case ,${enable_languages}, in
8118 ,,|,yes,)
8119 # go safe -- we cannot be much sure without the toplevel
8120 # configure's
8121 # analysis of which target libs are present and usable
8122 enable_languages=c
8123 ;;
8124 *,all,*)
8125 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8126 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8127 { (exit 1); exit 1; }; }
8128 ;;
8129 *,c,*)
8130 ;;
8131 *)
8132 enable_languages=c,${enable_languages}
8133 ;;
8134 esac
8135 else
8136 enable_languages=c
8137 fi;
8138
8139 # Used by documentation targets
8140
8141
8142
8143
8144
8145 # Check whether --with-multilib-list or --without-multilib-list was given.
8146 if test "${with_multilib_list+set}" = set; then
8147 withval="$with_multilib_list"
8148 :
8149 else
8150 with_multilib_list=default
8151 fi;
8152
8153 # -------------------------
8154 # Checks for other programs
8155 # -------------------------
8156
8157 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8158 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8159 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8160 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163 cat >conftest.make <<\_ACEOF
8164 all:
8165 @echo 'ac_maketemp="$(MAKE)"'
8166 _ACEOF
8167 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8168 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8169 if test -n "$ac_maketemp"; then
8170 eval ac_cv_prog_make_${ac_make}_set=yes
8171 else
8172 eval ac_cv_prog_make_${ac_make}_set=no
8173 fi
8174 rm -f conftest.make
8175 fi
8176 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8177 echo "$as_me:$LINENO: result: yes" >&5
8178 echo "${ECHO_T}yes" >&6
8179 SET_MAKE=
8180 else
8181 echo "$as_me:$LINENO: result: no" >&5
8182 echo "${ECHO_T}no" >&6
8183 SET_MAKE="MAKE=${MAKE-make}"
8184 fi
8185
8186
8187 # Find some useful tools
8188 for ac_prog in gawk mawk nawk awk
8189 do
8190 # Extract the first word of "$ac_prog", so it can be a program name with args.
8191 set dummy $ac_prog; ac_word=$2
8192 echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8194 if test "${ac_cv_prog_AWK+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197 if test -n "$AWK"; then
8198 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8199 else
8200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 for as_dir in $PATH
8202 do
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207 ac_cv_prog_AWK="$ac_prog"
8208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 break 2
8210 fi
8211 done
8212 done
8213
8214 fi
8215 fi
8216 AWK=$ac_cv_prog_AWK
8217 if test -n "$AWK"; then
8218 echo "$as_me:$LINENO: result: $AWK" >&5
8219 echo "${ECHO_T}$AWK" >&6
8220 else
8221 echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6
8223 fi
8224
8225 test -n "$AWK" && break
8226 done
8227
8228 # We need awk to create options.c and options.h.
8229 # Bail out if it's missing.
8230 case ${AWK} in
8231 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8232 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8233 { (exit 1); exit 1; }; } ;;
8234 esac
8235
8236 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8237 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8238 if test "${gcc_cv_prog_LN_S+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241 rm -f conftestdata_t
8242 echo >conftestdata_f
8243 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8244 then
8245 gcc_cv_prog_LN_S="ln -s"
8246 else
8247 if ln conftestdata_f conftestdata_t 2>/dev/null
8248 then
8249 gcc_cv_prog_LN_S=ln
8250 else
8251 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8252 then
8253 gcc_cv_prog_LN_S="cp -p"
8254 else
8255 gcc_cv_prog_LN_S=cp
8256 fi
8257 fi
8258 fi
8259 rm -f conftestdata_f conftestdata_t
8260
8261 fi
8262 LN_S="$gcc_cv_prog_LN_S"
8263 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8264 echo "$as_me:$LINENO: result: yes" >&5
8265 echo "${ECHO_T}yes" >&6
8266 else
8267 if test "$gcc_cv_prog_LN_S" = "ln"; then
8268 echo "$as_me:$LINENO: result: no, using ln" >&5
8269 echo "${ECHO_T}no, using ln" >&6
8270 else
8271 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8272 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8273 fi
8274 fi
8275
8276 echo "$as_me:$LINENO: checking whether ln works" >&5
8277 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8278 if test "${acx_cv_prog_LN+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8281 rm -f conftestdata_t
8282 echo >conftestdata_f
8283 if ln conftestdata_f conftestdata_t 2>/dev/null
8284 then
8285 acx_cv_prog_LN=ln
8286 else
8287 acx_cv_prog_LN=no
8288 fi
8289 rm -f conftestdata_f conftestdata_t
8290
8291 fi
8292 if test $acx_cv_prog_LN = no; then
8293 LN="$LN_S"
8294 echo "$as_me:$LINENO: result: no, using $LN" >&5
8295 echo "${ECHO_T}no, using $LN" >&6
8296 else
8297 LN="$acx_cv_prog_LN"
8298 echo "$as_me:$LINENO: result: yes" >&5
8299 echo "${ECHO_T}yes" >&6
8300 fi
8301
8302 if test -n "$ac_tool_prefix"; then
8303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8305 echo "$as_me:$LINENO: checking for $ac_word" >&5
8306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8307 if test "${ac_cv_prog_RANLIB+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310 if test -n "$RANLIB"; then
8311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8312 else
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8315 do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 break 2
8323 fi
8324 done
8325 done
8326
8327 fi
8328 fi
8329 RANLIB=$ac_cv_prog_RANLIB
8330 if test -n "$RANLIB"; then
8331 echo "$as_me:$LINENO: result: $RANLIB" >&5
8332 echo "${ECHO_T}$RANLIB" >&6
8333 else
8334 echo "$as_me:$LINENO: result: no" >&5
8335 echo "${ECHO_T}no" >&6
8336 fi
8337
8338 fi
8339 if test -z "$ac_cv_prog_RANLIB"; then
8340 ac_ct_RANLIB=$RANLIB
8341 # Extract the first word of "ranlib", so it can be a program name with args.
8342 set dummy ranlib; ac_word=$2
8343 echo "$as_me:$LINENO: checking for $ac_word" >&5
8344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8345 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348 if test -n "$ac_ct_RANLIB"; then
8349 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358 ac_cv_prog_ac_ct_RANLIB="ranlib"
8359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8361 fi
8362 done
8363 done
8364
8365 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8366 fi
8367 fi
8368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8369 if test -n "$ac_ct_RANLIB"; then
8370 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8371 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8372 else
8373 echo "$as_me:$LINENO: result: no" >&5
8374 echo "${ECHO_T}no" >&6
8375 fi
8376
8377 RANLIB=$ac_ct_RANLIB
8378 else
8379 RANLIB="$ac_cv_prog_RANLIB"
8380 fi
8381
8382 case "${host}" in
8383 *-*-darwin*)
8384 # By default, the Darwin ranlib will not treat common symbols as
8385 # definitions when building the archive table of contents. Other
8386 # ranlibs do that; pass an option to the Darwin ranlib that makes
8387 # it behave similarly.
8388 ranlib_flags="-c"
8389 ;;
8390 *)
8391 ranlib_flags=""
8392 esac
8393
8394
8395 # Find a good install program. We prefer a C program (faster),
8396 # so one script is as good as another. But avoid the broken or
8397 # incompatible versions:
8398 # SysV /etc/install, /usr/sbin/install
8399 # SunOS /usr/etc/install
8400 # IRIX /sbin/install
8401 # AIX /bin/install
8402 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8403 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8404 # ./install, which can be erroneously created by make from ./install.sh.
8405 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8406 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8407 if test -z "$INSTALL"; then
8408 if test "${ac_cv_path_install+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8412 for ac_dir in $PATH; do
8413 # Account for people who put trailing slashes in PATH elements.
8414 case "$ac_dir/" in
8415 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8416 *)
8417 # OSF1 and SCO ODT 3.0 have their own names for install.
8418 for ac_prog in ginstall scoinst install; do
8419 if test -f $ac_dir/$ac_prog; then
8420 if test $ac_prog = install &&
8421 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8422 # AIX install. It has an incompatible calling convention.
8423 # OSF/1 installbsd also uses dspmsg, but is usable.
8424 :
8425 else
8426 ac_cv_path_install="$ac_dir/$ac_prog -c"
8427 break 2
8428 fi
8429 fi
8430 done
8431 ;;
8432 esac
8433 done
8434 IFS="$ac_save_IFS"
8435
8436 fi
8437 if test "${ac_cv_path_install+set}" = set; then
8438 INSTALL="$ac_cv_path_install"
8439 else
8440 # As a last resort, use the slow shell script. We don't cache a
8441 # path for INSTALL within a source directory, because that will
8442 # break other packages using the cache if that directory is
8443 # removed, or if the path is relative.
8444 INSTALL="$ac_install_sh"
8445 fi
8446 fi
8447 echo "$as_me:$LINENO: result: $INSTALL" >&5
8448 echo "${ECHO_T}$INSTALL" >&6
8449
8450 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8451 # It thinks the first close brace ends the variable substitution.
8452 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8453
8454 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8455
8456
8457 # See if cmp has --ignore-initial.
8458 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8459 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8460 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463 echo abfoo >t1
8464 echo cdfoo >t2
8465 gcc_cv_prog_cmp_skip=slowcompare
8466 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8467 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8468 :
8469 else
8470 gcc_cv_prog_cmp_skip=gnucompare
8471 fi
8472 fi
8473 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8474 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8475 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8476 :
8477 else
8478 gcc_cv_prog_cmp_skip=fastcompare
8479 fi
8480 fi
8481 fi
8482 rm t1 t2
8483
8484 fi
8485 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8486 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8487 make_compare_target=$gcc_cv_prog_cmp_skip
8488
8489
8490
8491 # See if we have the mktemp command.
8492 # Extract the first word of "mktemp", so it can be a program name with args.
8493 set dummy mktemp; ac_word=$2
8494 echo "$as_me:$LINENO: checking for $ac_word" >&5
8495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8496 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499 if test -n "$have_mktemp_command"; then
8500 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8501 else
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8504 do
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509 ac_cv_prog_have_mktemp_command="yes"
8510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8512 fi
8513 done
8514 done
8515
8516 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8517 fi
8518 fi
8519 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8520 if test -n "$have_mktemp_command"; then
8521 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8522 echo "${ECHO_T}$have_mktemp_command" >&6
8523 else
8524 echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6
8526 fi
8527
8528
8529 # See if makeinfo has been installed and is modern enough
8530 # that we can use it.
8531
8532 # Extract the first word of "makeinfo", so it can be a program name with args.
8533 set dummy makeinfo; ac_word=$2
8534 echo "$as_me:$LINENO: checking for $ac_word" >&5
8535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8536 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539 if test -n "$MAKEINFO"; then
8540 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8544 do
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_MAKEINFO="makeinfo"
8550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553 done
8554 done
8555
8556 fi
8557 fi
8558 MAKEINFO=$ac_cv_prog_MAKEINFO
8559 if test -n "$MAKEINFO"; then
8560 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8561 echo "${ECHO_T}$MAKEINFO" >&6
8562 else
8563 echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6
8565 fi
8566
8567 if test -n "$MAKEINFO"; then
8568 # Found it, now check the version.
8569 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8570 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8571 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8575 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8576
8577 case $ac_prog_version in
8578 '') gcc_cv_prog_makeinfo_modern=no;;
8579 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8580 *) gcc_cv_prog_makeinfo_modern=no;;
8581 esac
8582
8583 fi
8584 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8585 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8586 else
8587 gcc_cv_prog_makeinfo_modern=no
8588 fi
8589 if test $gcc_cv_prog_makeinfo_modern = no; then
8590 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8591 fi
8592
8593 if test $gcc_cv_prog_makeinfo_modern = no; then
8594 { echo "$as_me:$LINENO: WARNING:
8595 *** Makeinfo is missing or too old.
8596 *** Info documentation will not be built." >&5
8597 echo "$as_me: WARNING:
8598 *** Makeinfo is missing or too old.
8599 *** Info documentation will not be built." >&2;}
8600 BUILD_INFO=
8601 else
8602 BUILD_INFO=info
8603 fi
8604
8605
8606 # Is pod2man recent enough to regenerate manpages?
8607 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8608 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8609 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8610 echo "$as_me:$LINENO: result: yes" >&5
8611 echo "${ECHO_T}yes" >&6
8612 GENERATED_MANPAGES=generated-manpages
8613 else
8614 echo "$as_me:$LINENO: result: no" >&5
8615 echo "${ECHO_T}no" >&6
8616 GENERATED_MANPAGES=
8617 fi
8618
8619
8620 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8621
8622 # How about lex?
8623 for ac_prog in flex
8624 do
8625 # Extract the first word of "$ac_prog", so it can be a program name with args.
8626 set dummy $ac_prog; ac_word=$2
8627 echo "$as_me:$LINENO: checking for $ac_word" >&5
8628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8629 if test "${ac_cv_prog_FLEX+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632 if test -n "$FLEX"; then
8633 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8634 else
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636 for as_dir in $PATH
8637 do
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642 ac_cv_prog_FLEX="$ac_prog"
8643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8645 fi
8646 done
8647 done
8648
8649 fi
8650 fi
8651 FLEX=$ac_cv_prog_FLEX
8652 if test -n "$FLEX"; then
8653 echo "$as_me:$LINENO: result: $FLEX" >&5
8654 echo "${ECHO_T}$FLEX" >&6
8655 else
8656 echo "$as_me:$LINENO: result: no" >&5
8657 echo "${ECHO_T}no" >&6
8658 fi
8659
8660 test -n "$FLEX" && break
8661 done
8662 test -n "$FLEX" || FLEX="$MISSING flex"
8663
8664
8665 # Bison?
8666 for ac_prog in bison
8667 do
8668 # Extract the first word of "$ac_prog", so it can be a program name with args.
8669 set dummy $ac_prog; ac_word=$2
8670 echo "$as_me:$LINENO: checking for $ac_word" >&5
8671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8672 if test "${ac_cv_prog_BISON+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675 if test -n "$BISON"; then
8676 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8677 else
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8680 do
8681 IFS=$as_save_IFS
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685 ac_cv_prog_BISON="$ac_prog"
8686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 break 2
8688 fi
8689 done
8690 done
8691
8692 fi
8693 fi
8694 BISON=$ac_cv_prog_BISON
8695 if test -n "$BISON"; then
8696 echo "$as_me:$LINENO: result: $BISON" >&5
8697 echo "${ECHO_T}$BISON" >&6
8698 else
8699 echo "$as_me:$LINENO: result: no" >&5
8700 echo "${ECHO_T}no" >&6
8701 fi
8702
8703 test -n "$BISON" && break
8704 done
8705 test -n "$BISON" || BISON="$MISSING bison"
8706
8707
8708 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8709 # check for build == host before using them.
8710
8711 # NM
8712 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8713 && test -d ../binutils ; then
8714 NM='$(objdir)/../binutils/nm-new'
8715 else
8716 # Extract the first word of "nm", so it can be a program name with args.
8717 set dummy nm; ac_word=$2
8718 echo "$as_me:$LINENO: checking for $ac_word" >&5
8719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8720 if test "${ac_cv_prog_NM+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723 if test -n "$NM"; then
8724 ac_cv_prog_NM="$NM" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729 IFS=$as_save_IFS
8730 test -z "$as_dir" && as_dir=.
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733 ac_cv_prog_NM="nm"
8734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8735 break 2
8736 fi
8737 done
8738 done
8739
8740 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8741 fi
8742 fi
8743 NM=$ac_cv_prog_NM
8744 if test -n "$NM"; then
8745 echo "$as_me:$LINENO: result: $NM" >&5
8746 echo "${ECHO_T}$NM" >&6
8747 else
8748 echo "$as_me:$LINENO: result: no" >&5
8749 echo "${ECHO_T}no" >&6
8750 fi
8751
8752 fi
8753
8754 # AR
8755 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8756 && test -d ../binutils ; then
8757 AR='$(objdir)/../binutils/ar'
8758 else
8759 # Extract the first word of "ar", so it can be a program name with args.
8760 set dummy ar; ac_word=$2
8761 echo "$as_me:$LINENO: checking for $ac_word" >&5
8762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8763 if test "${ac_cv_prog_AR+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766 if test -n "$AR"; then
8767 ac_cv_prog_AR="$AR" # Let the user override the test.
8768 else
8769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 for as_dir in $PATH
8771 do
8772 IFS=$as_save_IFS
8773 test -z "$as_dir" && as_dir=.
8774 for ac_exec_ext in '' $ac_executable_extensions; do
8775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8776 ac_cv_prog_AR="ar"
8777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8778 break 2
8779 fi
8780 done
8781 done
8782
8783 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8784 fi
8785 fi
8786 AR=$ac_cv_prog_AR
8787 if test -n "$AR"; then
8788 echo "$as_me:$LINENO: result: $AR" >&5
8789 echo "${ECHO_T}$AR" >&6
8790 else
8791 echo "$as_me:$LINENO: result: no" >&5
8792 echo "${ECHO_T}no" >&6
8793 fi
8794
8795 fi
8796
8797
8798 # --------------------
8799 # Checks for C headers
8800 # --------------------
8801
8802 # Need to reject headers which give warnings, so that the -Werror bootstrap
8803 # works later. *sigh* This needs to come before all header checks.
8804
8805 ac_c_preproc_warn_flag=yes
8806
8807 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8809 if test "${ac_cv_header_stdc+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 else
8812 cat >conftest.$ac_ext <<_ACEOF
8813 /* confdefs.h. */
8814 _ACEOF
8815 cat confdefs.h >>conftest.$ac_ext
8816 cat >>conftest.$ac_ext <<_ACEOF
8817 /* end confdefs.h. */
8818 #include <stdlib.h>
8819 #include <stdarg.h>
8820 #include <string.h>
8821 #include <float.h>
8822
8823 int
8824 main ()
8825 {
8826
8827 ;
8828 return 0;
8829 }
8830 _ACEOF
8831 rm -f conftest.$ac_objext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8833 (eval $ac_compile) 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -z "$ac_c_werror_flag"
8841 || test ! -s conftest.err'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 (eval $ac_try) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; } &&
8847 { ac_try='test -s conftest.$ac_objext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 ac_cv_header_stdc=yes
8854 else
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 ac_cv_header_stdc=no
8859 fi
8860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8861
8862 if test $ac_cv_header_stdc = yes; then
8863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 #include <string.h>
8871
8872 _ACEOF
8873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8874 $EGREP "memchr" >/dev/null 2>&1; then
8875 :
8876 else
8877 ac_cv_header_stdc=no
8878 fi
8879 rm -f conftest*
8880
8881 fi
8882
8883 if test $ac_cv_header_stdc = yes; then
8884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h. */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 #include <stdlib.h>
8892
8893 _ACEOF
8894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8895 $EGREP "free" >/dev/null 2>&1; then
8896 :
8897 else
8898 ac_cv_header_stdc=no
8899 fi
8900 rm -f conftest*
8901
8902 fi
8903
8904 if test $ac_cv_header_stdc = yes; then
8905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8906 if test "$cross_compiling" = yes; then
8907 :
8908 else
8909 cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h. */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 #include <ctype.h>
8916 #if ((' ' & 0x0FF) == 0x020)
8917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8919 #else
8920 # define ISLOWER(c) \
8921 (('a' <= (c) && (c) <= 'i') \
8922 || ('j' <= (c) && (c) <= 'r') \
8923 || ('s' <= (c) && (c) <= 'z'))
8924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8925 #endif
8926
8927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8928 int
8929 main ()
8930 {
8931 int i;
8932 for (i = 0; i < 256; i++)
8933 if (XOR (islower (i), ISLOWER (i))
8934 || toupper (i) != TOUPPER (i))
8935 exit(2);
8936 exit (0);
8937 }
8938 _ACEOF
8939 rm -f conftest$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941 (eval $ac_link) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 (eval $ac_try) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 :
8951 else
8952 echo "$as_me: program exited with status $ac_status" >&5
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956 ( exit $ac_status )
8957 ac_cv_header_stdc=no
8958 fi
8959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8960 fi
8961 fi
8962 fi
8963 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8964 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8965 if test $ac_cv_header_stdc = yes; then
8966
8967 cat >>confdefs.h <<\_ACEOF
8968 #define STDC_HEADERS 1
8969 _ACEOF
8970
8971 fi
8972
8973 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8974 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8975 if test "${ac_cv_header_time+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h. */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984 #include <sys/types.h>
8985 #include <sys/time.h>
8986 #include <time.h>
8987
8988 int
8989 main ()
8990 {
8991 if ((struct tm *) 0)
8992 return 0;
8993 ;
8994 return 0;
8995 }
8996 _ACEOF
8997 rm -f conftest.$ac_objext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -z "$ac_c_werror_flag"
9007 || test ! -s conftest.err'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; } &&
9013 { ac_try='test -s conftest.$ac_objext'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 ac_cv_header_time=yes
9020 else
9021 echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9023
9024 ac_cv_header_time=no
9025 fi
9026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9027 fi
9028 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9029 echo "${ECHO_T}$ac_cv_header_time" >&6
9030 if test $ac_cv_header_time = yes; then
9031
9032 cat >>confdefs.h <<\_ACEOF
9033 #define TIME_WITH_SYS_TIME 1
9034 _ACEOF
9035
9036 fi
9037
9038 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9039 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9040 if test "${gcc_cv_header_string+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043 cat >conftest.$ac_ext <<_ACEOF
9044 /* confdefs.h. */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9049 #include <string.h>
9050 #include <strings.h>
9051 int
9052 main ()
9053 {
9054
9055 ;
9056 return 0;
9057 }
9058 _ACEOF
9059 rm -f conftest.$ac_objext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061 (eval $ac_compile) 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -z "$ac_c_werror_flag"
9069 || test ! -s conftest.err'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try='test -s conftest.$ac_objext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 (eval $ac_try) 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 gcc_cv_header_string=yes
9082 else
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9085
9086 gcc_cv_header_string=no
9087 fi
9088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9089 fi
9090 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9091 echo "${ECHO_T}$gcc_cv_header_string" >&6
9092 if test $gcc_cv_header_string = yes; then
9093
9094 cat >>confdefs.h <<\_ACEOF
9095 #define STRING_WITH_STRINGS 1
9096 _ACEOF
9097
9098 fi
9099
9100 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9101 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9102 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105 cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h. */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9111 #include <sys/types.h>
9112 #include <sys/wait.h>
9113 #ifndef WEXITSTATUS
9114 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9115 #endif
9116 #ifndef WIFEXITED
9117 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9118 #endif
9119
9120 int
9121 main ()
9122 {
9123 int s;
9124 wait (&s);
9125 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9126 ;
9127 return 0;
9128 }
9129 _ACEOF
9130 rm -f conftest.$ac_objext
9131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9132 (eval $ac_compile) 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } &&
9139 { ac_try='test -z "$ac_c_werror_flag"
9140 || test ! -s conftest.err'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; } &&
9146 { ac_try='test -s conftest.$ac_objext'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 (eval $ac_try) 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_header_sys_wait_h=yes
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9156
9157 ac_cv_header_sys_wait_h=no
9158 fi
9159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9160 fi
9161 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9162 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9163 if test $ac_cv_header_sys_wait_h = yes; then
9164
9165 cat >>confdefs.h <<\_ACEOF
9166 #define HAVE_SYS_WAIT_H 1
9167 _ACEOF
9168
9169 fi
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9194 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9195 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9196 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9197 do
9198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9199 echo "$as_me:$LINENO: checking for $ac_header" >&5
9200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204 cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h. */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210 #include <$ac_header>
9211 _ACEOF
9212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } >/dev/null; then
9220 if test -s conftest.err; then
9221 ac_cpp_err=$ac_c_preproc_warn_flag
9222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9223 else
9224 ac_cpp_err=
9225 fi
9226 else
9227 ac_cpp_err=yes
9228 fi
9229 if test -z "$ac_cpp_err"; then
9230 eval "$as_ac_Header=yes"
9231 else
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9234
9235 eval "$as_ac_Header=no"
9236 fi
9237 rm -f conftest.err conftest.$ac_ext
9238 fi
9239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9242 cat >>confdefs.h <<_ACEOF
9243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9244 _ACEOF
9245
9246 fi
9247 done
9248
9249
9250 # Check for thread headers.
9251 echo "$as_me:$LINENO: checking for thread.h" >&5
9252 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9253 if test "${ac_cv_header_thread_h+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 else
9256 cat >conftest.$ac_ext <<_ACEOF
9257 /* confdefs.h. */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262 #include <thread.h>
9263 _ACEOF
9264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } >/dev/null; then
9272 if test -s conftest.err; then
9273 ac_cpp_err=$ac_c_preproc_warn_flag
9274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9275 else
9276 ac_cpp_err=
9277 fi
9278 else
9279 ac_cpp_err=yes
9280 fi
9281 if test -z "$ac_cpp_err"; then
9282 ac_cv_header_thread_h=yes
9283 else
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9286
9287 ac_cv_header_thread_h=no
9288 fi
9289 rm -f conftest.err conftest.$ac_ext
9290 fi
9291 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9292 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9293 if test $ac_cv_header_thread_h = yes; then
9294 have_thread_h=yes
9295 else
9296 have_thread_h=
9297 fi
9298
9299 echo "$as_me:$LINENO: checking for pthread.h" >&5
9300 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9301 if test "${ac_cv_header_pthread_h+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 #include <pthread.h>
9311 _ACEOF
9312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9314 ac_status=$?
9315 grep -v '^ *+' conftest.er1 >conftest.err
9316 rm -f conftest.er1
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } >/dev/null; then
9320 if test -s conftest.err; then
9321 ac_cpp_err=$ac_c_preproc_warn_flag
9322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9323 else
9324 ac_cpp_err=
9325 fi
9326 else
9327 ac_cpp_err=yes
9328 fi
9329 if test -z "$ac_cpp_err"; then
9330 ac_cv_header_pthread_h=yes
9331 else
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335 ac_cv_header_pthread_h=no
9336 fi
9337 rm -f conftest.err conftest.$ac_ext
9338 fi
9339 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9340 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9341 if test $ac_cv_header_pthread_h = yes; then
9342 have_pthread_h=yes
9343 else
9344 have_pthread_h=
9345 fi
9346
9347
9348 # These tests can't be done till we know if we have limits.h.
9349 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9350 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9351 if test "${gcc_cv_decl_char_bit+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 #ifdef HAVE_LIMITS_H
9361 #include <limits.h>
9362 #endif
9363 #ifdef CHAR_BIT
9364 found
9365 #endif
9366 _ACEOF
9367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9368 $EGREP "found" >/dev/null 2>&1; then
9369 gcc_cv_decl_char_bit=yes
9370 else
9371 gcc_cv_decl_char_bit=no
9372 fi
9373 rm -f conftest*
9374
9375
9376 fi
9377 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9378 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9379 if test $gcc_cv_decl_char_bit = no; then
9380 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9381 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9382 if test "${gcc_cv_c_nbby+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385 i=8
9386 gcc_cv_c_nbby=
9387 while test $i -lt 65; do
9388 cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h. */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394
9395 int
9396 main ()
9397 {
9398 switch(0) {
9399 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9400 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9401 ; }
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 rm -f conftest.$ac_objext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9408 (eval $ac_compile) 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try='test -z "$ac_c_werror_flag"
9416 || test ! -s conftest.err'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; } &&
9422 { ac_try='test -s conftest.$ac_objext'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 (eval $ac_try) 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; }; then
9428 gcc_cv_c_nbby=$i; break
9429 else
9430 echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9432
9433 fi
9434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9435 i=`expr $i + 1`
9436 done
9437 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9438
9439 fi
9440 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9441 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9442 if test $gcc_cv_c_nbby = failed; then
9443 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9444 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9445 { (exit 1); exit 1; }; }
9446 else
9447
9448 cat >>confdefs.h <<_ACEOF
9449 #define CHAR_BIT $gcc_cv_c_nbby
9450 _ACEOF
9451
9452 fi
9453 fi
9454 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9455 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9456 if test "${ac_cv_c_bigendian+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459 # See if sys/param.h defines the BYTE_ORDER macro.
9460 cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h. */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 #include <sys/types.h>
9467 #include <sys/param.h>
9468
9469 int
9470 main ()
9471 {
9472 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9473 bogus endian macros
9474 #endif
9475
9476 ;
9477 return 0;
9478 }
9479 _ACEOF
9480 rm -f conftest.$ac_objext
9481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9482 (eval $ac_compile) 2>conftest.er1
9483 ac_status=$?
9484 grep -v '^ *+' conftest.er1 >conftest.err
9485 rm -f conftest.er1
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } &&
9489 { ac_try='test -z "$ac_c_werror_flag"
9490 || test ! -s conftest.err'
9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 (eval $ac_try) 2>&5
9493 ac_status=$?
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; } &&
9496 { ac_try='test -s conftest.$ac_objext'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; }; then
9502 # It does; now see whether it defined to BIG_ENDIAN or not.
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 #include <sys/types.h>
9510 #include <sys/param.h>
9511
9512 int
9513 main ()
9514 {
9515 #if BYTE_ORDER != BIG_ENDIAN
9516 not big endian
9517 #endif
9518
9519 ;
9520 return 0;
9521 }
9522 _ACEOF
9523 rm -f conftest.$ac_objext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9525 (eval $ac_compile) 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
9532 { ac_try='test -z "$ac_c_werror_flag"
9533 || test ! -s conftest.err'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; } &&
9539 { ac_try='test -s conftest.$ac_objext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_c_bigendian=yes
9546 else
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550 ac_cv_c_bigendian=no
9551 fi
9552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9553 else
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 # It does not; compile a test program.
9558 if test "$cross_compiling" = yes; then
9559 # try to guess the endianness by grepping values into an object file
9560 ac_cv_c_bigendian=unknown
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9568 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9569 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9570 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9571 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9572 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9573 int
9574 main ()
9575 {
9576 _ascii (); _ebcdic ();
9577 ;
9578 return 0;
9579 }
9580 _ACEOF
9581 rm -f conftest.$ac_objext
9582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9583 (eval $ac_compile) 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try='test -z "$ac_c_werror_flag"
9591 || test ! -s conftest.err'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest.$ac_objext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 (eval $ac_try) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9604 ac_cv_c_bigendian=yes
9605 fi
9606 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9607 if test "$ac_cv_c_bigendian" = unknown; then
9608 ac_cv_c_bigendian=no
9609 else
9610 # finding both strings is unlikely to happen, but who knows?
9611 ac_cv_c_bigendian=unknown
9612 fi
9613 fi
9614 else
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9617
9618 fi
9619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9620 else
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 int
9628 main ()
9629 {
9630 /* Are we little or big endian? From Harbison&Steele. */
9631 union
9632 {
9633 long l;
9634 char c[sizeof (long)];
9635 } u;
9636 u.l = 1;
9637 exit (u.c[sizeof (long) - 1] == 1);
9638 }
9639 _ACEOF
9640 rm -f conftest$ac_exeext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642 (eval $ac_link) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_c_bigendian=no
9652 else
9653 echo "$as_me: program exited with status $ac_status" >&5
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9656
9657 ( exit $ac_status )
9658 ac_cv_c_bigendian=yes
9659 fi
9660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9661 fi
9662 fi
9663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9664 fi
9665 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9666 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9667 case $ac_cv_c_bigendian in
9668 yes)
9669
9670 cat >>confdefs.h <<\_ACEOF
9671 #define WORDS_BIGENDIAN 1
9672 _ACEOF
9673 ;;
9674 no)
9675 ;;
9676 *)
9677 { { echo "$as_me:$LINENO: error: unknown endianness
9678 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9679 echo "$as_me: error: unknown endianness
9680 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9681 { (exit 1); exit 1; }; } ;;
9682 esac
9683
9684
9685 # --------
9686 # UNSORTED
9687 # --------
9688
9689
9690 # These libraries may be used by collect2.
9691 # We may need a special search path to get them linked.
9692 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9693 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9694 if test "${gcc_cv_collect2_libs+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 else
9697 save_LIBS="$LIBS"
9698 for libs in '' -lld -lmld \
9699 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9700 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9701 do
9702 LIBS="$libs"
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h. */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709
9710 /* Override any gcc2 internal prototype to avoid an error. */
9711 #ifdef __cplusplus
9712 extern "C"
9713 #endif
9714 /* We use char because int might match the return type of a gcc2
9715 builtin and then its argument prototype would still apply. */
9716 char ldopen ();
9717 int
9718 main ()
9719 {
9720 ldopen ();
9721 ;
9722 return 0;
9723 }
9724 _ACEOF
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727 (eval $ac_link) 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag"
9735 || test ! -s conftest.err'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 (eval $ac_try) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 gcc_cv_collect2_libs="$libs"; break
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 fi
9753 rm -f conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755 done
9756 LIBS="$save_LIBS"
9757 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9758 fi
9759 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9760 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9761 case $gcc_cv_collect2_libs in
9762 "none required") ;;
9763 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9764 esac
9765
9766
9767 # When building Ada code on Alpha, we need exc_resume which is usually in
9768 # -lexc. So test for it.
9769 save_LIBS="$LIBS"
9770 LIBS=
9771 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9772 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9773 if test "${ac_cv_search_exc_resume+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776 ac_func_search_save_LIBS=$LIBS
9777 ac_cv_search_exc_resume=no
9778 cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h. */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784
9785 /* Override any gcc2 internal prototype to avoid an error. */
9786 #ifdef __cplusplus
9787 extern "C"
9788 #endif
9789 /* We use char because int might match the return type of a gcc2
9790 builtin and then its argument prototype would still apply. */
9791 char exc_resume ();
9792 int
9793 main ()
9794 {
9795 exc_resume ();
9796 ;
9797 return 0;
9798 }
9799 _ACEOF
9800 rm -f conftest.$ac_objext conftest$ac_exeext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9802 (eval $ac_link) 2>conftest.er1
9803 ac_status=$?
9804 grep -v '^ *+' conftest.er1 >conftest.err
9805 rm -f conftest.er1
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -z "$ac_c_werror_flag"
9810 || test ! -s conftest.err'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 (eval $ac_try) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_cv_search_exc_resume="none required"
9823 else
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9826
9827 fi
9828 rm -f conftest.err conftest.$ac_objext \
9829 conftest$ac_exeext conftest.$ac_ext
9830 if test "$ac_cv_search_exc_resume" = no; then
9831 for ac_lib in exc; do
9832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h. */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839
9840 /* Override any gcc2 internal prototype to avoid an error. */
9841 #ifdef __cplusplus
9842 extern "C"
9843 #endif
9844 /* We use char because int might match the return type of a gcc2
9845 builtin and then its argument prototype would still apply. */
9846 char exc_resume ();
9847 int
9848 main ()
9849 {
9850 exc_resume ();
9851 ;
9852 return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9857 (eval $ac_link) 2>conftest.er1
9858 ac_status=$?
9859 grep -v '^ *+' conftest.er1 >conftest.err
9860 rm -f conftest.er1
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 (eval $ac_try) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest$ac_exeext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 (eval $ac_try) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_search_exc_resume="-l$ac_lib"
9878 break
9879 else
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9882
9883 fi
9884 rm -f conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9886 done
9887 fi
9888 LIBS=$ac_func_search_save_LIBS
9889 fi
9890 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9891 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9892 if test "$ac_cv_search_exc_resume" != no; then
9893 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9894
9895 fi
9896
9897 GNAT_LIBEXC="$LIBS"
9898 LIBS="$save_LIBS"
9899
9900
9901 # Some systems put ldexp and frexp in libm instead of libc; assume
9902 # they're both in the same place. jcf-dump needs them.
9903 save_LIBS="$LIBS"
9904 LIBS=
9905 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9906 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9907 if test "${ac_cv_search_ldexp+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910 ac_func_search_save_LIBS=$LIBS
9911 ac_cv_search_ldexp=no
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h. */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9918
9919 /* Override any gcc2 internal prototype to avoid an error. */
9920 #ifdef __cplusplus
9921 extern "C"
9922 #endif
9923 /* We use char because int might match the return type of a gcc2
9924 builtin and then its argument prototype would still apply. */
9925 char ldexp ();
9926 int
9927 main ()
9928 {
9929 ldexp ();
9930 ;
9931 return 0;
9932 }
9933 _ACEOF
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936 (eval $ac_link) 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -z "$ac_c_werror_flag"
9944 || test ! -s conftest.err'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 (eval $ac_try) 2>&5
9947 ac_status=$?
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; } &&
9950 { ac_try='test -s conftest$ac_exeext'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; }; then
9956 ac_cv_search_ldexp="none required"
9957 else
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 fi
9962 rm -f conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964 if test "$ac_cv_search_ldexp" = no; then
9965 for ac_lib in m; do
9966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h. */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973
9974 /* Override any gcc2 internal prototype to avoid an error. */
9975 #ifdef __cplusplus
9976 extern "C"
9977 #endif
9978 /* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9980 char ldexp ();
9981 int
9982 main ()
9983 {
9984 ldexp ();
9985 ;
9986 return 0;
9987 }
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9991 (eval $ac_link) 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } &&
9998 { ac_try='test -z "$ac_c_werror_flag"
9999 || test ! -s conftest.err'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; } &&
10005 { ac_try='test -s conftest$ac_exeext'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011 ac_cv_search_ldexp="-l$ac_lib"
10012 break
10013 else
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017 fi
10018 rm -f conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020 done
10021 fi
10022 LIBS=$ac_func_search_save_LIBS
10023 fi
10024 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10025 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10026 if test "$ac_cv_search_ldexp" != no; then
10027 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
10028
10029 fi
10030
10031 LDEXP_LIB="$LIBS"
10032 LIBS="$save_LIBS"
10033
10034
10035 # Use <inttypes.h> only if it exists,
10036 # doesn't clash with <sys/types.h>, and declares intmax_t.
10037 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10038 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10039 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h. */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <sys/types.h>
10049 #include <inttypes.h>
10050 int
10051 main ()
10052 {
10053 intmax_t i = -1;
10054 ;
10055 return 0;
10056 }
10057 _ACEOF
10058 rm -f conftest.$ac_objext
10059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10060 (eval $ac_compile) 2>conftest.er1
10061 ac_status=$?
10062 grep -v '^ *+' conftest.er1 >conftest.err
10063 rm -f conftest.er1
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -z "$ac_c_werror_flag"
10068 || test ! -s conftest.err'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; } &&
10074 { ac_try='test -s conftest.$ac_objext'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10080 gcc_cv_header_inttypes_h=yes
10081 else
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085 gcc_cv_header_inttypes_h=no
10086 fi
10087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10088 fi
10089
10090 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10091 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10092 if test $gcc_cv_header_inttypes_h = yes; then
10093
10094 cat >>confdefs.h <<\_ACEOF
10095 #define HAVE_INTTYPES_H 1
10096 _ACEOF
10097
10098 fi
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10136 sysconf strsignal getrusage nl_langinfo \
10137 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10138 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
10139 do
10140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10141 echo "$as_me:$LINENO: checking for $ac_func" >&5
10142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10143 if eval "test \"\${$as_ac_var+set}\" = set"; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146 cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h. */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10154 #define $ac_func innocuous_$ac_func
10155
10156 /* System header to define __stub macros and hopefully few prototypes,
10157 which can conflict with char $ac_func (); below.
10158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10159 <limits.h> exists even on freestanding compilers. */
10160
10161 #ifdef __STDC__
10162 # include <limits.h>
10163 #else
10164 # include <assert.h>
10165 #endif
10166
10167 #undef $ac_func
10168
10169 /* Override any gcc2 internal prototype to avoid an error. */
10170 #ifdef __cplusplus
10171 extern "C"
10172 {
10173 #endif
10174 /* We use char because int might match the return type of a gcc2
10175 builtin and then its argument prototype would still apply. */
10176 char $ac_func ();
10177 /* The GNU C library defines this for functions which it implements
10178 to always fail with ENOSYS. Some functions are actually named
10179 something starting with __ and the normal name is an alias. */
10180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10181 choke me
10182 #else
10183 char (*f) () = $ac_func;
10184 #endif
10185 #ifdef __cplusplus
10186 }
10187 #endif
10188
10189 int
10190 main ()
10191 {
10192 return f != $ac_func;
10193 ;
10194 return 0;
10195 }
10196 _ACEOF
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10199 (eval $ac_link) 2>conftest.er1
10200 ac_status=$?
10201 grep -v '^ *+' conftest.er1 >conftest.err
10202 rm -f conftest.er1
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } &&
10206 { ac_try='test -z "$ac_c_werror_flag"
10207 || test ! -s conftest.err'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; } &&
10213 { ac_try='test -s conftest$ac_exeext'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 eval "$as_ac_var=yes"
10220 else
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10223
10224 eval "$as_ac_var=no"
10225 fi
10226 rm -f conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 fi
10229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10231 if test `eval echo '${'$as_ac_var'}'` = yes; then
10232 cat >>confdefs.h <<_ACEOF
10233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10234 _ACEOF
10235
10236 fi
10237 done
10238
10239
10240 if test x$ac_cv_func_mbstowcs = xyes; then
10241 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10242 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10243 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246 if test "$cross_compiling" = yes; then
10247 gcc_cv_func_mbstowcs_works=yes
10248 else
10249 cat >conftest.$ac_ext <<_ACEOF
10250 /* confdefs.h. */
10251 _ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10255 #include <stdlib.h>
10256 int main()
10257 {
10258 mbstowcs(0, "", 0);
10259 return 0;
10260 }
10261 _ACEOF
10262 rm -f conftest$ac_exeext
10263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10264 (eval $ac_link) 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 gcc_cv_func_mbstowcs_works=yes
10274 else
10275 echo "$as_me: program exited with status $ac_status" >&5
10276 echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10278
10279 ( exit $ac_status )
10280 gcc_cv_func_mbstowcs_works=no
10281 fi
10282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10283 fi
10284 fi
10285 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10286 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10287 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10288
10289 cat >>confdefs.h <<\_ACEOF
10290 #define HAVE_WORKING_MBSTOWCS 1
10291 _ACEOF
10292
10293 fi
10294 fi
10295
10296 echo "$as_me:$LINENO: checking for ssize_t" >&5
10297 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10298 if test "${ac_cv_type_ssize_t+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301 cat >conftest.$ac_ext <<_ACEOF
10302 /* confdefs.h. */
10303 _ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 $ac_includes_default
10308 int
10309 main ()
10310 {
10311 if ((ssize_t *) 0)
10312 return 0;
10313 if (sizeof (ssize_t))
10314 return 0;
10315 ;
10316 return 0;
10317 }
10318 _ACEOF
10319 rm -f conftest.$ac_objext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try='test -z "$ac_c_werror_flag"
10329 || test ! -s conftest.err'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest.$ac_objext'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; }; then
10341 ac_cv_type_ssize_t=yes
10342 else
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10345
10346 ac_cv_type_ssize_t=no
10347 fi
10348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10349 fi
10350 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10351 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10352 if test $ac_cv_type_ssize_t = yes; then
10353 :
10354 else
10355
10356 cat >>confdefs.h <<_ACEOF
10357 #define ssize_t int
10358 _ACEOF
10359
10360 fi
10361
10362 echo "$as_me:$LINENO: checking for caddr_t" >&5
10363 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10364 if test "${ac_cv_type_caddr_t+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 $ac_includes_default
10374 int
10375 main ()
10376 {
10377 if ((caddr_t *) 0)
10378 return 0;
10379 if (sizeof (caddr_t))
10380 return 0;
10381 ;
10382 return 0;
10383 }
10384 _ACEOF
10385 rm -f conftest.$ac_objext
10386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10387 (eval $ac_compile) 2>conftest.er1
10388 ac_status=$?
10389 grep -v '^ *+' conftest.er1 >conftest.err
10390 rm -f conftest.er1
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } &&
10394 { ac_try='test -z "$ac_c_werror_flag"
10395 || test ! -s conftest.err'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; } &&
10401 { ac_try='test -s conftest.$ac_objext'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 ac_cv_type_caddr_t=yes
10408 else
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412 ac_cv_type_caddr_t=no
10413 fi
10414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10415 fi
10416 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10417 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10418 if test $ac_cv_type_caddr_t = yes; then
10419 :
10420 else
10421
10422 cat >>confdefs.h <<_ACEOF
10423 #define caddr_t char *
10424 _ACEOF
10425
10426 fi
10427
10428
10429
10430 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10431 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10432 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <sys/mman.h>
10442 _ACEOF
10443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } >/dev/null; then
10451 if test -s conftest.err; then
10452 ac_cpp_err=$ac_c_preproc_warn_flag
10453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10454 else
10455 ac_cpp_err=
10456 fi
10457 else
10458 ac_cpp_err=yes
10459 fi
10460 if test -z "$ac_cpp_err"; then
10461 ac_cv_header_sys_mman_h=yes
10462 else
10463 echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10465
10466 ac_cv_header_sys_mman_h=no
10467 fi
10468 rm -f conftest.err conftest.$ac_ext
10469 fi
10470 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10471 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10472 if test $ac_cv_header_sys_mman_h = yes; then
10473 gcc_header_sys_mman_h=yes
10474 else
10475 gcc_header_sys_mman_h=no
10476 fi
10477
10478 echo "$as_me:$LINENO: checking for mmap" >&5
10479 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10480 if test "${ac_cv_func_mmap+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h. */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10491 #define mmap innocuous_mmap
10492
10493 /* System header to define __stub macros and hopefully few prototypes,
10494 which can conflict with char mmap (); below.
10495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10496 <limits.h> exists even on freestanding compilers. */
10497
10498 #ifdef __STDC__
10499 # include <limits.h>
10500 #else
10501 # include <assert.h>
10502 #endif
10503
10504 #undef mmap
10505
10506 /* Override any gcc2 internal prototype to avoid an error. */
10507 #ifdef __cplusplus
10508 extern "C"
10509 {
10510 #endif
10511 /* We use char because int might match the return type of a gcc2
10512 builtin and then its argument prototype would still apply. */
10513 char mmap ();
10514 /* The GNU C library defines this for functions which it implements
10515 to always fail with ENOSYS. Some functions are actually named
10516 something starting with __ and the normal name is an alias. */
10517 #if defined (__stub_mmap) || defined (__stub___mmap)
10518 choke me
10519 #else
10520 char (*f) () = mmap;
10521 #endif
10522 #ifdef __cplusplus
10523 }
10524 #endif
10525
10526 int
10527 main ()
10528 {
10529 return f != mmap;
10530 ;
10531 return 0;
10532 }
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -z "$ac_c_werror_flag"
10544 || test ! -s conftest.err'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; } &&
10550 { ac_try='test -s conftest$ac_exeext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 ac_cv_func_mmap=yes
10557 else
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561 ac_cv_func_mmap=no
10562 fi
10563 rm -f conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 fi
10566 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10567 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10568 if test $ac_cv_func_mmap = yes; then
10569 gcc_func_mmap=yes
10570 else
10571 gcc_func_mmap=no
10572 fi
10573
10574 if test "$gcc_header_sys_mman_h" != yes \
10575 || test "$gcc_func_mmap" != yes; then
10576 gcc_cv_func_mmap_file=no
10577 gcc_cv_func_mmap_dev_zero=no
10578 gcc_cv_func_mmap_anon=no
10579 else
10580 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10581 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10582 if test "${gcc_cv_func_mmap_file+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585 # Add a system to this blacklist if
10586 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10587 # memory area containing the same data that you'd get if you applied
10588 # read() to the same fd. The only system known to have a problem here
10589 # is VMS, where text files have record structure.
10590 case "$host_os" in
10591 vms* | ultrix*)
10592 gcc_cv_func_mmap_file=no ;;
10593 *)
10594 gcc_cv_func_mmap_file=yes;;
10595 esac
10596 fi
10597 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10598 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10599 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10600 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10601 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604 # Add a system to this blacklist if it has mmap() but /dev/zero
10605 # does not exist, or if mmapping /dev/zero does not give anonymous
10606 # zeroed pages with both the following properties:
10607 # 1. If you map N consecutive pages in with one call, and then
10608 # unmap any subset of those pages, the pages that were not
10609 # explicitly unmapped remain accessible.
10610 # 2. If you map two adjacent blocks of memory and then unmap them
10611 # both at once, they must both go away.
10612 # Systems known to be in this category are Windows (all variants),
10613 # VMS, and Darwin.
10614 case "$host_os" in
10615 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10616 gcc_cv_func_mmap_dev_zero=no ;;
10617 *)
10618 gcc_cv_func_mmap_dev_zero=yes;;
10619 esac
10620 fi
10621 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10622 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10623
10624 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10625 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10626 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10627 if test "${gcc_cv_decl_map_anon+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h. */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 #include <sys/types.h>
10637 #include <sys/mman.h>
10638 #include <unistd.h>
10639
10640 #ifndef MAP_ANONYMOUS
10641 #define MAP_ANONYMOUS MAP_ANON
10642 #endif
10643
10644 int
10645 main ()
10646 {
10647 int n = MAP_ANONYMOUS;
10648 ;
10649 return 0;
10650 }
10651 _ACEOF
10652 rm -f conftest.$ac_objext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10654 (eval $ac_compile) 2>conftest.er1
10655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try='test -z "$ac_c_werror_flag"
10662 || test ! -s conftest.err'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try='test -s conftest.$ac_objext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 gcc_cv_decl_map_anon=yes
10675 else
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 gcc_cv_decl_map_anon=no
10680 fi
10681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10682 fi
10683 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10684 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10685
10686 if test $gcc_cv_decl_map_anon = no; then
10687 gcc_cv_func_mmap_anon=no
10688 else
10689 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10690 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10691 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10695 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10696 # doesn't give anonymous zeroed pages with the same properties listed
10697 # above for use of /dev/zero.
10698 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10699 case "$host_os" in
10700 vms* | cygwin* | pe | mingw* | sco* | udk* )
10701 gcc_cv_func_mmap_anon=no ;;
10702 *)
10703 gcc_cv_func_mmap_anon=yes;;
10704 esac
10705 fi
10706 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10707 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10708 fi
10709 fi
10710
10711 if test $gcc_cv_func_mmap_file = yes; then
10712
10713 cat >>confdefs.h <<\_ACEOF
10714 #define HAVE_MMAP_FILE 1
10715 _ACEOF
10716
10717 fi
10718 if test $gcc_cv_func_mmap_dev_zero = yes; then
10719
10720 cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_MMAP_DEV_ZERO 1
10722 _ACEOF
10723
10724 fi
10725 if test $gcc_cv_func_mmap_anon = yes; then
10726
10727 cat >>confdefs.h <<\_ACEOF
10728 #define HAVE_MMAP_ANON 1
10729 _ACEOF
10730
10731 fi
10732
10733
10734 case "${host}" in
10735 *-*-*vms*)
10736 # Under VMS, vfork works very differently than on Unix. The standard test
10737 # won't work, and it isn't easily adaptable. It makes more sense to
10738 # just force it.
10739 ac_cv_func_vfork_works=yes
10740 ;;
10741 esac
10742 echo "$as_me:$LINENO: checking for pid_t" >&5
10743 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10744 if test "${ac_cv_type_pid_t+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 $ac_includes_default
10754 int
10755 main ()
10756 {
10757 if ((pid_t *) 0)
10758 return 0;
10759 if (sizeof (pid_t))
10760 return 0;
10761 ;
10762 return 0;
10763 }
10764 _ACEOF
10765 rm -f conftest.$ac_objext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10767 (eval $ac_compile) 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -z "$ac_c_werror_flag"
10775 || test ! -s conftest.err'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; } &&
10781 { ac_try='test -s conftest.$ac_objext'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; }; then
10787 ac_cv_type_pid_t=yes
10788 else
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10791
10792 ac_cv_type_pid_t=no
10793 fi
10794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10795 fi
10796 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10797 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10798 if test $ac_cv_type_pid_t = yes; then
10799 :
10800 else
10801
10802 cat >>confdefs.h <<_ACEOF
10803 #define pid_t int
10804 _ACEOF
10805
10806 fi
10807
10808
10809
10810 for ac_header in unistd.h vfork.h
10811 do
10812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10813 echo "$as_me:$LINENO: checking for $ac_header" >&5
10814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 #include <$ac_header>
10825 _ACEOF
10826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } >/dev/null; then
10834 if test -s conftest.err; then
10835 ac_cpp_err=$ac_c_preproc_warn_flag
10836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10837 else
10838 ac_cpp_err=
10839 fi
10840 else
10841 ac_cpp_err=yes
10842 fi
10843 if test -z "$ac_cpp_err"; then
10844 eval "$as_ac_Header=yes"
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 eval "$as_ac_Header=no"
10850 fi
10851 rm -f conftest.err conftest.$ac_ext
10852 fi
10853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10856 cat >>confdefs.h <<_ACEOF
10857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858 _ACEOF
10859
10860 fi
10861 done
10862
10863
10864
10865 for ac_func in fork vfork
10866 do
10867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10868 echo "$as_me:$LINENO: checking for $ac_func" >&5
10869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10870 if eval "test \"\${$as_ac_var+set}\" = set"; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873 cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h. */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10881 #define $ac_func innocuous_$ac_func
10882
10883 /* System header to define __stub macros and hopefully few prototypes,
10884 which can conflict with char $ac_func (); below.
10885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10886 <limits.h> exists even on freestanding compilers. */
10887
10888 #ifdef __STDC__
10889 # include <limits.h>
10890 #else
10891 # include <assert.h>
10892 #endif
10893
10894 #undef $ac_func
10895
10896 /* Override any gcc2 internal prototype to avoid an error. */
10897 #ifdef __cplusplus
10898 extern "C"
10899 {
10900 #endif
10901 /* We use char because int might match the return type of a gcc2
10902 builtin and then its argument prototype would still apply. */
10903 char $ac_func ();
10904 /* The GNU C library defines this for functions which it implements
10905 to always fail with ENOSYS. Some functions are actually named
10906 something starting with __ and the normal name is an alias. */
10907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10908 choke me
10909 #else
10910 char (*f) () = $ac_func;
10911 #endif
10912 #ifdef __cplusplus
10913 }
10914 #endif
10915
10916 int
10917 main ()
10918 {
10919 return f != $ac_func;
10920 ;
10921 return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926 (eval $ac_link) 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -z "$ac_c_werror_flag"
10934 || test ! -s conftest.err'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest$ac_exeext'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 eval "$as_ac_var=yes"
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 eval "$as_ac_var=no"
10952 fi
10953 rm -f conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
10955 fi
10956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10958 if test `eval echo '${'$as_ac_var'}'` = yes; then
10959 cat >>confdefs.h <<_ACEOF
10960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10961 _ACEOF
10962
10963 fi
10964 done
10965
10966 if test "x$ac_cv_func_fork" = xyes; then
10967 echo "$as_me:$LINENO: checking for working fork" >&5
10968 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10969 if test "${ac_cv_func_fork_works+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 else
10972 if test "$cross_compiling" = yes; then
10973 ac_cv_func_fork_works=cross
10974 else
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* By Ruediger Kuhlmann. */
10977 #include <sys/types.h>
10978 #if HAVE_UNISTD_H
10979 # include <unistd.h>
10980 #endif
10981 /* Some systems only have a dummy stub for fork() */
10982 int main ()
10983 {
10984 if (fork() < 0)
10985 exit (1);
10986 exit (0);
10987 }
10988 _ACEOF
10989 rm -f conftest$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 ac_cv_func_fork_works=yes
11001 else
11002 echo "$as_me: program exited with status $ac_status" >&5
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11005
11006 ( exit $ac_status )
11007 ac_cv_func_fork_works=no
11008 fi
11009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11010 fi
11011 fi
11012 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11013 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11014
11015 else
11016 ac_cv_func_fork_works=$ac_cv_func_fork
11017 fi
11018 if test "x$ac_cv_func_fork_works" = xcross; then
11019 case $host in
11020 *-*-amigaos* | *-*-msdosdjgpp*)
11021 # Override, as these systems have only a dummy fork() stub
11022 ac_cv_func_fork_works=no
11023 ;;
11024 *)
11025 ac_cv_func_fork_works=yes
11026 ;;
11027 esac
11028 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11029 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11030 fi
11031 ac_cv_func_vfork_works=$ac_cv_func_vfork
11032 if test "x$ac_cv_func_vfork" = xyes; then
11033 echo "$as_me:$LINENO: checking for working vfork" >&5
11034 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11035 if test "${ac_cv_func_vfork_works+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 else
11038 if test "$cross_compiling" = yes; then
11039 ac_cv_func_vfork_works=cross
11040 else
11041 cat >conftest.$ac_ext <<_ACEOF
11042 /* confdefs.h. */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11047 /* Thanks to Paul Eggert for this test. */
11048 #include <stdio.h>
11049 #include <stdlib.h>
11050 #include <sys/types.h>
11051 #include <sys/stat.h>
11052 #include <sys/wait.h>
11053 #if HAVE_UNISTD_H
11054 # include <unistd.h>
11055 #endif
11056 #if HAVE_VFORK_H
11057 # include <vfork.h>
11058 #endif
11059 /* On some sparc systems, changes by the child to local and incoming
11060 argument registers are propagated back to the parent. The compiler
11061 is told about this with #include <vfork.h>, but some compilers
11062 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11063 static variable whose address is put into a register that is
11064 clobbered by the vfork. */
11065 static void
11066 #ifdef __cplusplus
11067 sparc_address_test (int arg)
11068 # else
11069 sparc_address_test (arg) int arg;
11070 #endif
11071 {
11072 static pid_t child;
11073 if (!child) {
11074 child = vfork ();
11075 if (child < 0) {
11076 perror ("vfork");
11077 _exit(2);
11078 }
11079 if (!child) {
11080 arg = getpid();
11081 write(-1, "", 0);
11082 _exit (arg);
11083 }
11084 }
11085 }
11086
11087 int
11088 main ()
11089 {
11090 pid_t parent = getpid ();
11091 pid_t child;
11092
11093 sparc_address_test (0);
11094
11095 child = vfork ();
11096
11097 if (child == 0) {
11098 /* Here is another test for sparc vfork register problems. This
11099 test uses lots of local variables, at least as many local
11100 variables as main has allocated so far including compiler
11101 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11102 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11103 reuse the register of parent for one of the local variables,
11104 since it will think that parent can't possibly be used any more
11105 in this routine. Assigning to the local variable will thus
11106 munge parent in the parent process. */
11107 pid_t
11108 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11109 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11110 /* Convince the compiler that p..p7 are live; otherwise, it might
11111 use the same hardware register for all 8 local variables. */
11112 if (p != p1 || p != p2 || p != p3 || p != p4
11113 || p != p5 || p != p6 || p != p7)
11114 _exit(1);
11115
11116 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11117 from child file descriptors. If the child closes a descriptor
11118 before it execs or exits, this munges the parent's descriptor
11119 as well. Test for this by closing stdout in the child. */
11120 _exit(close(fileno(stdout)) != 0);
11121 } else {
11122 int status;
11123 struct stat st;
11124
11125 while (wait(&status) != child)
11126 ;
11127 exit(
11128 /* Was there some problem with vforking? */
11129 child < 0
11130
11131 /* Did the child fail? (This shouldn't happen.) */
11132 || status
11133
11134 /* Did the vfork/compiler bug occur? */
11135 || parent != getpid()
11136
11137 /* Did the file descriptor bug occur? */
11138 || fstat(fileno(stdout), &st) != 0
11139 );
11140 }
11141 }
11142 _ACEOF
11143 rm -f conftest$ac_exeext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11145 (eval $ac_link) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 ac_cv_func_vfork_works=yes
11155 else
11156 echo "$as_me: program exited with status $ac_status" >&5
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11159
11160 ( exit $ac_status )
11161 ac_cv_func_vfork_works=no
11162 fi
11163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11164 fi
11165 fi
11166 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11167 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11168
11169 fi;
11170 if test "x$ac_cv_func_fork_works" = xcross; then
11171 ac_cv_func_vfork_works=$ac_cv_func_vfork
11172 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11173 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11174 fi
11175
11176 if test "x$ac_cv_func_vfork_works" = xyes; then
11177
11178 cat >>confdefs.h <<\_ACEOF
11179 #define HAVE_WORKING_VFORK 1
11180 _ACEOF
11181
11182 else
11183
11184 cat >>confdefs.h <<\_ACEOF
11185 #define vfork fork
11186 _ACEOF
11187
11188 fi
11189 if test "x$ac_cv_func_fork_works" = xyes; then
11190
11191 cat >>confdefs.h <<\_ACEOF
11192 #define HAVE_WORKING_FORK 1
11193 _ACEOF
11194
11195 fi
11196
11197
11198
11199 if test "X$prefix" = "XNONE"; then
11200 acl_final_prefix="$ac_default_prefix"
11201 else
11202 acl_final_prefix="$prefix"
11203 fi
11204 if test "X$exec_prefix" = "XNONE"; then
11205 acl_final_exec_prefix='${prefix}'
11206 else
11207 acl_final_exec_prefix="$exec_prefix"
11208 fi
11209 acl_save_prefix="$prefix"
11210 prefix="$acl_final_prefix"
11211 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11212 prefix="$acl_save_prefix"
11213
11214
11215 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11216 if test "${with_gnu_ld+set}" = set; then
11217 withval="$with_gnu_ld"
11218 test "$withval" = no || with_gnu_ld=yes
11219 else
11220 with_gnu_ld=no
11221 fi;
11222 # Prepare PATH_SEPARATOR.
11223 # The user is always right.
11224 if test "${PATH_SEPARATOR+set}" != set; then
11225 echo "#! /bin/sh" >conf$$.sh
11226 echo "exit 0" >>conf$$.sh
11227 chmod +x conf$$.sh
11228 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11229 PATH_SEPARATOR=';'
11230 else
11231 PATH_SEPARATOR=:
11232 fi
11233 rm -f conf$$.sh
11234 fi
11235 ac_prog=ld
11236 if test "$GCC" = yes; then
11237 # Check if gcc -print-prog-name=ld gives a path.
11238 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11239 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11240 case $host in
11241 *-*-mingw*)
11242 # gcc leaves a trailing carriage return which upsets mingw
11243 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11244 *)
11245 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11246 esac
11247 case $ac_prog in
11248 # Accept absolute paths.
11249 [\\/]* | [A-Za-z]:[\\/]*)
11250 re_direlt='/[^/][^/]*/\.\./'
11251 # Canonicalize the path of ld
11252 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11253 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11254 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11255 done
11256 test -z "$LD" && LD="$ac_prog"
11257 ;;
11258 "")
11259 # If it fails, then pretend we aren't using GCC.
11260 ac_prog=ld
11261 ;;
11262 *)
11263 # If it is relative, then search for the first ld in PATH.
11264 with_gnu_ld=unknown
11265 ;;
11266 esac
11267 elif test "$with_gnu_ld" = yes; then
11268 echo "$as_me:$LINENO: checking for GNU ld" >&5
11269 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11270 else
11271 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11272 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11273 fi
11274 if test "${acl_cv_path_LD+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277 if test -z "$LD"; then
11278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11279 for ac_dir in $PATH; do
11280 test -z "$ac_dir" && ac_dir=.
11281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11282 acl_cv_path_LD="$ac_dir/$ac_prog"
11283 # Check to see if the program is GNU ld. I'd rather use --version,
11284 # but apparently some GNU ld's only accept -v.
11285 # Break only if it was the GNU/non-GNU ld that we prefer.
11286 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11287 test "$with_gnu_ld" != no && break
11288 else
11289 test "$with_gnu_ld" != yes && break
11290 fi
11291 fi
11292 done
11293 IFS="$ac_save_ifs"
11294 else
11295 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11296 fi
11297 fi
11298
11299 LD="$acl_cv_path_LD"
11300 if test -n "$LD"; then
11301 echo "$as_me:$LINENO: result: $LD" >&5
11302 echo "${ECHO_T}$LD" >&6
11303 else
11304 echo "$as_me:$LINENO: result: no" >&5
11305 echo "${ECHO_T}no" >&6
11306 fi
11307 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11308 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11309 { (exit 1); exit 1; }; }
11310 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11311 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11312 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11316 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11317 acl_cv_prog_gnu_ld=yes
11318 else
11319 acl_cv_prog_gnu_ld=no
11320 fi
11321 fi
11322 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11323 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11324 with_gnu_ld=$acl_cv_prog_gnu_ld
11325
11326
11327
11328 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11329 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11330 if test "${acl_cv_rpath+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333
11334 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11335 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11336 . ./conftest.sh
11337 rm -f ./conftest.sh
11338 acl_cv_rpath=done
11339
11340 fi
11341 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11342 echo "${ECHO_T}$acl_cv_rpath" >&6
11343 wl="$acl_cv_wl"
11344 libext="$acl_cv_libext"
11345 shlibext="$acl_cv_shlibext"
11346 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11347 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11348 hardcode_direct="$acl_cv_hardcode_direct"
11349 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11350 # Check whether --enable-rpath or --disable-rpath was given.
11351 if test "${enable_rpath+set}" = set; then
11352 enableval="$enable_rpath"
11353 :
11354 else
11355 enable_rpath=yes
11356 fi;
11357
11358
11359
11360
11361
11362
11363
11364 use_additional=yes
11365
11366 acl_save_prefix="$prefix"
11367 prefix="$acl_final_prefix"
11368 acl_save_exec_prefix="$exec_prefix"
11369 exec_prefix="$acl_final_exec_prefix"
11370
11371 eval additional_includedir=\"$includedir\"
11372 eval additional_libdir=\"$libdir\"
11373
11374 exec_prefix="$acl_save_exec_prefix"
11375 prefix="$acl_save_prefix"
11376
11377
11378 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11379 if test "${with_libiconv_prefix+set}" = set; then
11380 withval="$with_libiconv_prefix"
11381
11382 if test "X$withval" = "Xno"; then
11383 use_additional=no
11384 else
11385 if test "X$withval" = "X"; then
11386
11387 acl_save_prefix="$prefix"
11388 prefix="$acl_final_prefix"
11389 acl_save_exec_prefix="$exec_prefix"
11390 exec_prefix="$acl_final_exec_prefix"
11391
11392 eval additional_includedir=\"$includedir\"
11393 eval additional_libdir=\"$libdir\"
11394
11395 exec_prefix="$acl_save_exec_prefix"
11396 prefix="$acl_save_prefix"
11397
11398 else
11399 additional_includedir="$withval/include"
11400 additional_libdir="$withval/lib"
11401 fi
11402 fi
11403
11404 fi;
11405 LIBICONV=
11406 LTLIBICONV=
11407 INCICONV=
11408 rpathdirs=
11409 ltrpathdirs=
11410 names_already_handled=
11411 names_next_round='iconv '
11412 while test -n "$names_next_round"; do
11413 names_this_round="$names_next_round"
11414 names_next_round=
11415 for name in $names_this_round; do
11416 already_handled=
11417 for n in $names_already_handled; do
11418 if test "$n" = "$name"; then
11419 already_handled=yes
11420 break
11421 fi
11422 done
11423 if test -z "$already_handled"; then
11424 names_already_handled="$names_already_handled $name"
11425 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11426 eval value=\"\$HAVE_LIB$uppername\"
11427 if test -n "$value"; then
11428 if test "$value" = yes; then
11429 eval value=\"\$LIB$uppername\"
11430 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11431 eval value=\"\$LTLIB$uppername\"
11432 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11433 else
11434 :
11435 fi
11436 else
11437 found_dir=
11438 found_la=
11439 found_so=
11440 found_a=
11441 if test $use_additional = yes; then
11442 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11443 found_dir="$additional_libdir"
11444 found_so="$additional_libdir/lib$name.$shlibext"
11445 if test -f "$additional_libdir/lib$name.la"; then
11446 found_la="$additional_libdir/lib$name.la"
11447 fi
11448 else
11449 if test -f "$additional_libdir/lib$name.$libext"; then
11450 found_dir="$additional_libdir"
11451 found_a="$additional_libdir/lib$name.$libext"
11452 if test -f "$additional_libdir/lib$name.la"; then
11453 found_la="$additional_libdir/lib$name.la"
11454 fi
11455 fi
11456 fi
11457 fi
11458 if test "X$found_dir" = "X"; then
11459 for x in $LDFLAGS $LTLIBICONV; do
11460
11461 acl_save_prefix="$prefix"
11462 prefix="$acl_final_prefix"
11463 acl_save_exec_prefix="$exec_prefix"
11464 exec_prefix="$acl_final_exec_prefix"
11465 eval x=\"$x\"
11466 exec_prefix="$acl_save_exec_prefix"
11467 prefix="$acl_save_prefix"
11468
11469 case "$x" in
11470 -L*)
11471 dir=`echo "X$x" | sed -e 's/^X-L//'`
11472 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11473 found_dir="$dir"
11474 found_so="$dir/lib$name.$shlibext"
11475 if test -f "$dir/lib$name.la"; then
11476 found_la="$dir/lib$name.la"
11477 fi
11478 else
11479 if test -f "$dir/lib$name.$libext"; then
11480 found_dir="$dir"
11481 found_a="$dir/lib$name.$libext"
11482 if test -f "$dir/lib$name.la"; then
11483 found_la="$dir/lib$name.la"
11484 fi
11485 fi
11486 fi
11487 ;;
11488 esac
11489 if test "X$found_dir" != "X"; then
11490 break
11491 fi
11492 done
11493 fi
11494 if test "X$found_dir" != "X"; then
11495 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11496 if test "X$found_so" != "X"; then
11497 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11498 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11499 else
11500 haveit=
11501 for x in $ltrpathdirs; do
11502 if test "X$x" = "X$found_dir"; then
11503 haveit=yes
11504 break
11505 fi
11506 done
11507 if test -z "$haveit"; then
11508 ltrpathdirs="$ltrpathdirs $found_dir"
11509 fi
11510 if test "$hardcode_direct" = yes; then
11511 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11512 else
11513 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11514 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11515 haveit=
11516 for x in $rpathdirs; do
11517 if test "X$x" = "X$found_dir"; then
11518 haveit=yes
11519 break
11520 fi
11521 done
11522 if test -z "$haveit"; then
11523 rpathdirs="$rpathdirs $found_dir"
11524 fi
11525 else
11526 haveit=
11527 for x in $LDFLAGS $LIBICONV; do
11528
11529 acl_save_prefix="$prefix"
11530 prefix="$acl_final_prefix"
11531 acl_save_exec_prefix="$exec_prefix"
11532 exec_prefix="$acl_final_exec_prefix"
11533 eval x=\"$x\"
11534 exec_prefix="$acl_save_exec_prefix"
11535 prefix="$acl_save_prefix"
11536
11537 if test "X$x" = "X-L$found_dir"; then
11538 haveit=yes
11539 break
11540 fi
11541 done
11542 if test -z "$haveit"; then
11543 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11544 fi
11545 if test "$hardcode_minus_L" != no; then
11546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11547 else
11548 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11549 fi
11550 fi
11551 fi
11552 fi
11553 else
11554 if test "X$found_a" != "X"; then
11555 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11556 else
11557 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11558 fi
11559 fi
11560 additional_includedir=
11561 case "$found_dir" in
11562 */lib | */lib/)
11563 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11564 additional_includedir="$basedir/include"
11565 ;;
11566 esac
11567 if test "X$additional_includedir" != "X"; then
11568 if test "X$additional_includedir" != "X/usr/include"; then
11569 haveit=
11570 if test "X$additional_includedir" = "X/usr/local/include"; then
11571 if test -n "$GCC"; then
11572 case $host_os in
11573 linux*) haveit=yes;;
11574 esac
11575 fi
11576 fi
11577 if test -z "$haveit"; then
11578 for x in $CPPFLAGS $INCICONV; do
11579
11580 acl_save_prefix="$prefix"
11581 prefix="$acl_final_prefix"
11582 acl_save_exec_prefix="$exec_prefix"
11583 exec_prefix="$acl_final_exec_prefix"
11584 eval x=\"$x\"
11585 exec_prefix="$acl_save_exec_prefix"
11586 prefix="$acl_save_prefix"
11587
11588 if test "X$x" = "X-I$additional_includedir"; then
11589 haveit=yes
11590 break
11591 fi
11592 done
11593 if test -z "$haveit"; then
11594 if test -d "$additional_includedir"; then
11595 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11596 fi
11597 fi
11598 fi
11599 fi
11600 fi
11601 if test -n "$found_la"; then
11602 save_libdir="$libdir"
11603 case "$found_la" in
11604 */* | *\\*) . "$found_la" ;;
11605 *) . "./$found_la" ;;
11606 esac
11607 libdir="$save_libdir"
11608 for dep in $dependency_libs; do
11609 case "$dep" in
11610 -L*)
11611 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11612 if test "X$additional_libdir" != "X/usr/lib"; then
11613 haveit=
11614 if test "X$additional_libdir" = "X/usr/local/lib"; then
11615 if test -n "$GCC"; then
11616 case $host_os in
11617 linux*) haveit=yes;;
11618 esac
11619 fi
11620 fi
11621 if test -z "$haveit"; then
11622 haveit=
11623 for x in $LDFLAGS $LIBICONV; do
11624
11625 acl_save_prefix="$prefix"
11626 prefix="$acl_final_prefix"
11627 acl_save_exec_prefix="$exec_prefix"
11628 exec_prefix="$acl_final_exec_prefix"
11629 eval x=\"$x\"
11630 exec_prefix="$acl_save_exec_prefix"
11631 prefix="$acl_save_prefix"
11632
11633 if test "X$x" = "X-L$additional_libdir"; then
11634 haveit=yes
11635 break
11636 fi
11637 done
11638 if test -z "$haveit"; then
11639 if test -d "$additional_libdir"; then
11640 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11641 fi
11642 fi
11643 haveit=
11644 for x in $LDFLAGS $LTLIBICONV; do
11645
11646 acl_save_prefix="$prefix"
11647 prefix="$acl_final_prefix"
11648 acl_save_exec_prefix="$exec_prefix"
11649 exec_prefix="$acl_final_exec_prefix"
11650 eval x=\"$x\"
11651 exec_prefix="$acl_save_exec_prefix"
11652 prefix="$acl_save_prefix"
11653
11654 if test "X$x" = "X-L$additional_libdir"; then
11655 haveit=yes
11656 break
11657 fi
11658 done
11659 if test -z "$haveit"; then
11660 if test -d "$additional_libdir"; then
11661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11662 fi
11663 fi
11664 fi
11665 fi
11666 ;;
11667 -R*)
11668 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11669 if test "$enable_rpath" != no; then
11670 haveit=
11671 for x in $rpathdirs; do
11672 if test "X$x" = "X$dir"; then
11673 haveit=yes
11674 break
11675 fi
11676 done
11677 if test -z "$haveit"; then
11678 rpathdirs="$rpathdirs $dir"
11679 fi
11680 haveit=
11681 for x in $ltrpathdirs; do
11682 if test "X$x" = "X$dir"; then
11683 haveit=yes
11684 break
11685 fi
11686 done
11687 if test -z "$haveit"; then
11688 ltrpathdirs="$ltrpathdirs $dir"
11689 fi
11690 fi
11691 ;;
11692 -l*)
11693 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11694 ;;
11695 *.la)
11696 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11697 ;;
11698 *)
11699 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11700 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11701 ;;
11702 esac
11703 done
11704 fi
11705 else
11706 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11707 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11708 fi
11709 fi
11710 fi
11711 done
11712 done
11713 if test "X$rpathdirs" != "X"; then
11714 if test -n "$hardcode_libdir_separator"; then
11715 alldirs=
11716 for found_dir in $rpathdirs; do
11717 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11718 done
11719 acl_save_libdir="$libdir"
11720 libdir="$alldirs"
11721 eval flag=\"$hardcode_libdir_flag_spec\"
11722 libdir="$acl_save_libdir"
11723 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11724 else
11725 for found_dir in $rpathdirs; do
11726 acl_save_libdir="$libdir"
11727 libdir="$found_dir"
11728 eval flag=\"$hardcode_libdir_flag_spec\"
11729 libdir="$acl_save_libdir"
11730 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11731 done
11732 fi
11733 fi
11734 if test "X$ltrpathdirs" != "X"; then
11735 for found_dir in $ltrpathdirs; do
11736 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11737 done
11738 fi
11739
11740
11741
11742
11743
11744
11745
11746 am_save_CPPFLAGS="$CPPFLAGS"
11747
11748 for element in $INCICONV; do
11749 haveit=
11750 for x in $CPPFLAGS; do
11751
11752 acl_save_prefix="$prefix"
11753 prefix="$acl_final_prefix"
11754 acl_save_exec_prefix="$exec_prefix"
11755 exec_prefix="$acl_final_exec_prefix"
11756 eval x=\"$x\"
11757 exec_prefix="$acl_save_exec_prefix"
11758 prefix="$acl_save_prefix"
11759
11760 if test "X$x" = "X$element"; then
11761 haveit=yes
11762 break
11763 fi
11764 done
11765 if test -z "$haveit"; then
11766 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11767 fi
11768 done
11769
11770
11771 echo "$as_me:$LINENO: checking for iconv" >&5
11772 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11773 if test "${am_cv_func_iconv+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 else
11776
11777 am_cv_func_iconv="no, consider installing GNU libiconv"
11778 am_cv_lib_iconv=no
11779 cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h. */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 #include <stdlib.h>
11786 #include <iconv.h>
11787 int
11788 main ()
11789 {
11790 iconv_t cd = iconv_open("","");
11791 iconv(cd,NULL,NULL,NULL,NULL);
11792 iconv_close(cd);
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11799 (eval $ac_link) 2>conftest.er1
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try='test -z "$ac_c_werror_flag"
11807 || test ! -s conftest.err'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest$ac_exeext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 am_cv_func_iconv=yes
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 fi
11825 rm -f conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11827 if test "$am_cv_func_iconv" != yes; then
11828 am_save_LIBS="$LIBS"
11829 LIBS="$LIBS $LIBICONV"
11830 cat >conftest.$ac_ext <<_ACEOF
11831 /* confdefs.h. */
11832 _ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11836 #include <stdlib.h>
11837 #include <iconv.h>
11838 int
11839 main ()
11840 {
11841 iconv_t cd = iconv_open("","");
11842 iconv(cd,NULL,NULL,NULL,NULL);
11843 iconv_close(cd);
11844 ;
11845 return 0;
11846 }
11847 _ACEOF
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11850 (eval $ac_link) 2>conftest.er1
11851 ac_status=$?
11852 grep -v '^ *+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -z "$ac_c_werror_flag"
11858 || test ! -s conftest.err'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; } &&
11864 { ac_try='test -s conftest$ac_exeext'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 am_cv_lib_iconv=yes
11871 am_cv_func_iconv=yes
11872 else
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11875
11876 fi
11877 rm -f conftest.err conftest.$ac_objext \
11878 conftest$ac_exeext conftest.$ac_ext
11879 LIBS="$am_save_LIBS"
11880 fi
11881
11882 fi
11883 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11884 echo "${ECHO_T}$am_cv_func_iconv" >&6
11885 if test "$am_cv_func_iconv" = yes; then
11886
11887 cat >>confdefs.h <<\_ACEOF
11888 #define HAVE_ICONV 1
11889 _ACEOF
11890
11891 fi
11892 if test "$am_cv_lib_iconv" = yes; then
11893 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11894 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11895 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11896 echo "${ECHO_T}$LIBICONV" >&6
11897 else
11898 CPPFLAGS="$am_save_CPPFLAGS"
11899 LIBICONV=
11900 LTLIBICONV=
11901 fi
11902
11903
11904
11905 if test "$am_cv_func_iconv" = yes; then
11906 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11907 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11908 if test "${am_cv_proto_iconv+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911
11912 cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h. */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918
11919 #include <stdlib.h>
11920 #include <iconv.h>
11921 extern
11922 #ifdef __cplusplus
11923 "C"
11924 #endif
11925 #if defined(__STDC__) || defined(__cplusplus)
11926 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11927 #else
11928 size_t iconv();
11929 #endif
11930
11931 int
11932 main ()
11933 {
11934
11935 ;
11936 return 0;
11937 }
11938 _ACEOF
11939 rm -f conftest.$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>conftest.er1
11942 ac_status=$?
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -z "$ac_c_werror_flag"
11949 || test ! -s conftest.err'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 am_cv_proto_iconv_arg1=""
11962 else
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 am_cv_proto_iconv_arg1="const"
11967 fi
11968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11969 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);"
11970 fi
11971
11972 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11973 echo "$as_me:$LINENO: result: ${ac_t:-
11974 }$am_cv_proto_iconv" >&5
11975 echo "${ECHO_T}${ac_t:-
11976 }$am_cv_proto_iconv" >&6
11977
11978 cat >>confdefs.h <<_ACEOF
11979 #define ICONV_CONST $am_cv_proto_iconv_arg1
11980 _ACEOF
11981
11982 fi
11983
11984 # Until we have in-tree GNU iconv:
11985 LIBICONV_DEP=
11986
11987
11988
11989 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11990 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11991 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994 cat >conftest.$ac_ext <<_ACEOF
11995 /* confdefs.h. */
11996 _ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 #include <locale.h>
12001 int
12002 main ()
12003 {
12004 return LC_MESSAGES
12005 ;
12006 return 0;
12007 }
12008 _ACEOF
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>conftest.er1
12012 ac_status=$?
12013 grep -v '^ *+' conftest.er1 >conftest.err
12014 rm -f conftest.er1
12015 cat conftest.err >&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try='test -z "$ac_c_werror_flag"
12019 || test ! -s conftest.err'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; } &&
12025 { ac_try='test -s conftest$ac_exeext'
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 am_cv_val_LC_MESSAGES=yes
12032 else
12033 echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 am_cv_val_LC_MESSAGES=no
12037 fi
12038 rm -f conftest.err conftest.$ac_objext \
12039 conftest$ac_exeext conftest.$ac_ext
12040 fi
12041 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12042 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12043 if test $am_cv_val_LC_MESSAGES = yes; then
12044
12045 cat >>confdefs.h <<\_ACEOF
12046 #define HAVE_LC_MESSAGES 1
12047 _ACEOF
12048
12049 fi
12050
12051
12052
12053 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12054 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12055 if test "${am_cv_langinfo_codeset+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h. */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 #include <langinfo.h>
12065 int
12066 main ()
12067 {
12068 char* cs = nl_langinfo(CODESET);
12069 ;
12070 return 0;
12071 }
12072 _ACEOF
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075 (eval $ac_link) 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 am_cv_langinfo_codeset=yes
12096 else
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100 am_cv_langinfo_codeset=no
12101 fi
12102 rm -f conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104
12105 fi
12106 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12107 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12108 if test $am_cv_langinfo_codeset = yes; then
12109
12110 cat >>confdefs.h <<\_ACEOF
12111 #define HAVE_LANGINFO_CODESET 1
12112 _ACEOF
12113
12114 fi
12115
12116
12117 # We will need to find libiberty.h and ansidecl.h
12118 saved_CFLAGS="$CFLAGS"
12119 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12160 strsignal strstr strverscmp \
12161 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12162 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
12163 do
12164 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12165 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12166 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12167 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 #undef $ac_tr_decl
12177 #define $ac_tr_decl 1
12178
12179 #include "ansidecl.h"
12180 #include "system.h"
12181
12182 int
12183 main ()
12184 {
12185 #ifndef $ac_func
12186 char *(*pfn) = (char *(*)) $ac_func ;
12187 #endif
12188 ;
12189 return 0;
12190 }
12191 _ACEOF
12192 rm -f conftest.$ac_objext
12193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12194 (eval $ac_compile) 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try='test -z "$ac_c_werror_flag"
12202 || test ! -s conftest.err'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try='test -s conftest.$ac_objext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 eval "gcc_cv_have_decl_$ac_func=yes"
12215 else
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 eval "gcc_cv_have_decl_$ac_func=no"
12220 fi
12221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12222 fi
12223
12224 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12225 echo "$as_me:$LINENO: result: yes" >&5
12226 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12227 #define $ac_tr_decl 1
12228 _ACEOF
12229
12230 else
12231 echo "$as_me:$LINENO: result: no" >&5
12232 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12233 #define $ac_tr_decl 0
12234 _ACEOF
12235
12236 fi
12237
12238 done
12239
12240
12241
12242
12243
12244 for ac_func in getrlimit setrlimit getrusage
12245 do
12246 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12247 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12248 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12249 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252 cat >conftest.$ac_ext <<_ACEOF
12253 /* confdefs.h. */
12254 _ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12258 #undef $ac_tr_decl
12259 #define $ac_tr_decl 1
12260
12261 #include "ansidecl.h"
12262 #include "system.h"
12263 #ifdef HAVE_SYS_RESOURCE_H
12264 #include <sys/resource.h>
12265 #endif
12266
12267
12268 int
12269 main ()
12270 {
12271 #ifndef $ac_func
12272 char *(*pfn) = (char *(*)) $ac_func ;
12273 #endif
12274 ;
12275 return 0;
12276 }
12277 _ACEOF
12278 rm -f conftest.$ac_objext
12279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12280 (eval $ac_compile) 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -z "$ac_c_werror_flag"
12288 || test ! -s conftest.err'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest.$ac_objext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 eval "gcc_cv_have_decl_$ac_func=yes"
12301 else
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 eval "gcc_cv_have_decl_$ac_func=no"
12306 fi
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 fi
12309
12310 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12311 echo "$as_me:$LINENO: result: yes" >&5
12312 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12313 #define $ac_tr_decl 1
12314 _ACEOF
12315
12316 else
12317 echo "$as_me:$LINENO: result: no" >&5
12318 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12319 #define $ac_tr_decl 0
12320 _ACEOF
12321
12322 fi
12323
12324 done
12325
12326
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333
12334 #include "ansidecl.h"
12335 #include "system.h"
12336 #ifdef HAVE_SYS_RESOURCE_H
12337 #include <sys/resource.h>
12338 #endif
12339
12340 int
12341 main ()
12342 {
12343 rlim_t l = 0;
12344 ;
12345 return 0;
12346 }
12347 _ACEOF
12348 rm -f conftest.$ac_objext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350 (eval $ac_compile) 2>conftest.er1
12351 ac_status=$?
12352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -z "$ac_c_werror_flag"
12358 || test ! -s conftest.err'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 :
12371 else
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375
12376 cat >>confdefs.h <<\_ACEOF
12377 #define rlim_t long
12378 _ACEOF
12379
12380 fi
12381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12382
12383 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12384 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12385 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12386 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12387
12388 for ac_func in ldgetname
12389 do
12390 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12391 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12392 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12393 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 #undef $ac_tr_decl
12403 #define $ac_tr_decl 1
12404
12405 #include "ansidecl.h"
12406 #include "system.h"
12407 #ifdef HAVE_LDFCN_H
12408 #undef FREAD
12409 #undef FWRITE
12410 #include <ldfcn.h>
12411 #endif
12412
12413
12414 int
12415 main ()
12416 {
12417 #ifndef $ac_func
12418 char *(*pfn) = (char *(*)) $ac_func ;
12419 #endif
12420 ;
12421 return 0;
12422 }
12423 _ACEOF
12424 rm -f conftest.$ac_objext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426 (eval $ac_compile) 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
12433 { ac_try='test -z "$ac_c_werror_flag"
12434 || test ! -s conftest.err'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 eval "gcc_cv_have_decl_$ac_func=yes"
12447 else
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12450
12451 eval "gcc_cv_have_decl_$ac_func=no"
12452 fi
12453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12454 fi
12455
12456 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12457 echo "$as_me:$LINENO: result: yes" >&5
12458 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12459 #define $ac_tr_decl 1
12460 _ACEOF
12461
12462 else
12463 echo "$as_me:$LINENO: result: no" >&5
12464 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12465 #define $ac_tr_decl 0
12466 _ACEOF
12467
12468 fi
12469
12470 done
12471
12472
12473
12474 for ac_func in times
12475 do
12476 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12477 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12478 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12479 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 else
12482 cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h. */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 #undef $ac_tr_decl
12489 #define $ac_tr_decl 1
12490
12491 #include "ansidecl.h"
12492 #include "system.h"
12493 #ifdef HAVE_SYS_TIMES_H
12494 #include <sys/times.h>
12495 #endif
12496
12497
12498 int
12499 main ()
12500 {
12501 #ifndef $ac_func
12502 char *(*pfn) = (char *(*)) $ac_func ;
12503 #endif
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 rm -f conftest.$ac_objext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510 (eval $ac_compile) 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -z "$ac_c_werror_flag"
12518 || test ! -s conftest.err'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 eval "gcc_cv_have_decl_$ac_func=yes"
12531 else
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12534
12535 eval "gcc_cv_have_decl_$ac_func=no"
12536 fi
12537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12538 fi
12539
12540 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12541 echo "$as_me:$LINENO: result: yes" >&5
12542 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12543 #define $ac_tr_decl 1
12544 _ACEOF
12545
12546 else
12547 echo "$as_me:$LINENO: result: no" >&5
12548 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12549 #define $ac_tr_decl 0
12550 _ACEOF
12551
12552 fi
12553
12554 done
12555
12556
12557
12558 for ac_func in sigaltstack
12559 do
12560 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12561 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12562 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12563 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 else
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h. */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 #undef $ac_tr_decl
12573 #define $ac_tr_decl 1
12574
12575 #include "ansidecl.h"
12576 #include "system.h"
12577 #include <signal.h>
12578
12579
12580 int
12581 main ()
12582 {
12583 #ifndef $ac_func
12584 char *(*pfn) = (char *(*)) $ac_func ;
12585 #endif
12586 ;
12587 return 0;
12588 }
12589 _ACEOF
12590 rm -f conftest.$ac_objext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12592 (eval $ac_compile) 2>conftest.er1
12593 ac_status=$?
12594 grep -v '^ *+' conftest.er1 >conftest.err
12595 rm -f conftest.er1
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag"
12600 || test ! -s conftest.err'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 eval "gcc_cv_have_decl_$ac_func=yes"
12613 else
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12616
12617 eval "gcc_cv_have_decl_$ac_func=no"
12618 fi
12619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12620 fi
12621
12622 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12623 echo "$as_me:$LINENO: result: yes" >&5
12624 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12625 #define $ac_tr_decl 1
12626 _ACEOF
12627
12628 else
12629 echo "$as_me:$LINENO: result: no" >&5
12630 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12631 #define $ac_tr_decl 0
12632 _ACEOF
12633
12634 fi
12635
12636 done
12637
12638
12639 # More time-related stuff.
12640 echo "$as_me:$LINENO: checking for struct tms" >&5
12641 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12642 if test "${ac_cv_struct_tms+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645
12646 cat >conftest.$ac_ext <<_ACEOF
12647 /* confdefs.h. */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12652
12653 #include "ansidecl.h"
12654 #include "system.h"
12655 #ifdef HAVE_SYS_TIMES_H
12656 #include <sys/times.h>
12657 #endif
12658
12659 int
12660 main ()
12661 {
12662 struct tms tms;
12663 ;
12664 return 0;
12665 }
12666 _ACEOF
12667 rm -f conftest.$ac_objext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669 (eval $ac_compile) 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -z "$ac_c_werror_flag"
12677 || test ! -s conftest.err'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; } &&
12683 { ac_try='test -s conftest.$ac_objext'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 ac_cv_struct_tms=yes
12690 else
12691 echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12693
12694 ac_cv_struct_tms=no
12695 fi
12696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12697 fi
12698 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12699 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12700 if test $ac_cv_struct_tms = yes; then
12701
12702 cat >>confdefs.h <<\_ACEOF
12703 #define HAVE_STRUCT_TMS 1
12704 _ACEOF
12705
12706 fi
12707
12708 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12709 # revisit after autoconf 2.50.
12710 echo "$as_me:$LINENO: checking for clock_t" >&5
12711 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12712 if test "${gcc_cv_type_clock_t+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715
12716 cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h. */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722
12723 #include "ansidecl.h"
12724 #include "system.h"
12725
12726 int
12727 main ()
12728 {
12729 clock_t x;
12730 ;
12731 return 0;
12732 }
12733 _ACEOF
12734 rm -f conftest.$ac_objext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12736 (eval $ac_compile) 2>conftest.er1
12737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } &&
12743 { ac_try='test -z "$ac_c_werror_flag"
12744 || test ! -s conftest.err'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; } &&
12750 { ac_try='test -s conftest.$ac_objext'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 gcc_cv_type_clock_t=yes
12757 else
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761 gcc_cv_type_clock_t=no
12762 fi
12763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12764 fi
12765 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12766 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12767 if test $gcc_cv_type_clock_t = yes; then
12768
12769 cat >>confdefs.h <<\_ACEOF
12770 #define HAVE_CLOCK_T 1
12771 _ACEOF
12772
12773 fi
12774
12775 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12776 CFLAGS="$saved_CFLAGS"
12777
12778 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12779 if test "${enable_initfini_array+set}" = set; then
12780 enableval="$enable_initfini_array"
12781
12782 else
12783
12784 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12785 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12786 if test "${gcc_cv_initfini_array+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 else
12789 if test "$cross_compiling" = yes; then
12790 gcc_cv_initfini_array=no
12791 else
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h. */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798
12799 static int x = -1;
12800 int main (void) { return x; }
12801 int foo (void) { x = 0; }
12802 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12803 _ACEOF
12804 rm -f conftest$ac_exeext
12805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12806 (eval $ac_link) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 gcc_cv_initfini_array=yes
12816 else
12817 echo "$as_me: program exited with status $ac_status" >&5
12818 echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12820
12821 ( exit $ac_status )
12822 gcc_cv_initfini_array=no
12823 fi
12824 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12825 fi
12826 fi
12827 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12828 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12829 enable_initfini_array=$gcc_cv_initfini_array
12830
12831 fi;
12832 if test $enable_initfini_array = yes; then
12833
12834 cat >>confdefs.h <<\_ACEOF
12835 #define HAVE_INITFINI_ARRAY 1
12836 _ACEOF
12837
12838 fi
12839
12840 # mkdir takes a single argument on some systems.
12841 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12842 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12843 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846 cat >conftest.$ac_ext <<_ACEOF
12847 /* confdefs.h. */
12848 _ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12852
12853 #include <sys/types.h>
12854 #ifdef HAVE_SYS_STAT_H
12855 # include <sys/stat.h>
12856 #endif
12857 #ifdef HAVE_UNISTD_H
12858 # include <unistd.h>
12859 #endif
12860 #ifdef HAVE_DIRECT_H
12861 # include <direct.h>
12862 #endif
12863 int
12864 main ()
12865 {
12866 mkdir ("foo", 0);
12867 ;
12868 return 0;
12869 }
12870 _ACEOF
12871 rm -f conftest.$ac_objext
12872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12873 (eval $ac_compile) 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try='test -z "$ac_c_werror_flag"
12881 || test ! -s conftest.err'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12884 ac_status=$?
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; } &&
12887 { ac_try='test -s conftest.$ac_objext'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 gcc_cv_mkdir_takes_one_arg=no
12894 else
12895 echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12897
12898 gcc_cv_mkdir_takes_one_arg=yes
12899 fi
12900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12901 fi
12902 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12903 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12904 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12905
12906 cat >>confdefs.h <<\_ACEOF
12907 #define MKDIR_TAKES_ONE_ARG 1
12908 _ACEOF
12909
12910 fi
12911
12912
12913 # File extensions
12914 manext='.1'
12915 objext='.o'
12916
12917
12918
12919 # With Setjmp/Longjmp based exception handling.
12920 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12921 if test "${enable_sjlj_exceptions+set}" = set; then
12922 enableval="$enable_sjlj_exceptions"
12923 case $target in
12924 *-*-hpux10*)
12925 if test $enableval != yes; then
12926 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12927 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12928 enableval=yes
12929 fi
12930 ;;
12931 esac
12932 force_sjlj_exceptions=yes
12933 else
12934 case $target in
12935 *-*-hpux10*)
12936 force_sjlj_exceptions=yes
12937 enableval=yes
12938 ;;
12939 *)
12940 force_sjlj_exceptions=no
12941 ;;
12942 esac
12943 fi;
12944 if test $force_sjlj_exceptions = yes; then
12945 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12946
12947 cat >>confdefs.h <<_ACEOF
12948 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12949 _ACEOF
12950
12951 fi
12952
12953 # For platforms with the unwind ABI which includes an unwind library,
12954 # libunwind, we can choose to use the system libunwind.
12955 # config.gcc also contains tests of with_system_libunwind.
12956
12957
12958 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12959 if test "${with_system_libunwind+set}" = set; then
12960 withval="$with_system_libunwind"
12961
12962 fi;
12963 # If system-libunwind was not specifically set, pick a default setting.
12964 if test x$with_system_libunwind = x; then
12965 case ${target} in
12966 ia64-*-hpux*) with_system_libunwind=yes ;;
12967 *) with_system_libunwind=no ;;
12968 esac
12969 fi
12970 # Based on system-libunwind and target, do we have ipinfo?
12971 if test x$with_system_libunwind = xyes; then
12972 case ${target} in
12973 ia64-*-*) have_unwind_getipinfo=no ;;
12974 *) have_unwind_getipinfo=yes ;;
12975 esac
12976 else
12977 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12978
12979 case ${target} in
12980 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12981 *) have_unwind_getipinfo=yes ;;
12982 esac
12983
12984 fi
12985
12986 if test x$have_unwind_getipinfo = xyes; then
12987
12988 cat >>confdefs.h <<\_ACEOF
12989 #define HAVE_GETIPINFO 1
12990 _ACEOF
12991
12992 fi
12993
12994
12995 # --------------------------------------------------------
12996 # Build, host, and target specific configuration fragments
12997 # --------------------------------------------------------
12998
12999 # Collect build-machine-specific information.
13000 . ${srcdir}/config.build
13001
13002 # Collect host-machine-specific information.
13003 . ${srcdir}/config.host
13004
13005 target_gtfiles=
13006
13007 # Collect target-machine-specific information.
13008 . ${srcdir}/config.gcc
13009
13010 extra_objs="${host_extra_objs} ${extra_objs}"
13011 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13012
13013 # Default the target-machine variables that were not explicitly set.
13014 if test x"$tm_file" = x
13015 then tm_file=$cpu_type/$cpu_type.h; fi
13016
13017 if test x"$extra_headers" = x
13018 then extra_headers=; fi
13019
13020 if test x$md_file = x
13021 then md_file=$cpu_type/$cpu_type.md; fi
13022
13023 if test x$out_file = x
13024 then out_file=$cpu_type/$cpu_type.c; fi
13025
13026 if test x"$tmake_file" = x
13027 then tmake_file=$cpu_type/t-$cpu_type
13028 fi
13029
13030 if test x"$dwarf2" = xyes
13031 then tm_file="$tm_file tm-dwarf2.h"
13032 fi
13033
13034 # Say what files are being used for the output code and MD file.
13035 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13036 echo "Using \`$srcdir/config/$md_file' as machine description file."
13037
13038 # If any of the xm_file variables contain nonexistent files, warn
13039 # about them and drop them.
13040
13041 bx=
13042 for x in $build_xm_file; do
13043 if test -f $srcdir/config/$x
13044 then bx="$bx $x"
13045 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13046 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13047 fi
13048 done
13049 build_xm_file="$bx"
13050
13051 hx=
13052 for x in $host_xm_file; do
13053 if test -f $srcdir/config/$x
13054 then hx="$hx $x"
13055 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13056 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13057 fi
13058 done
13059 host_xm_file="$hx"
13060
13061 tx=
13062 for x in $xm_file; do
13063 if test -f $srcdir/config/$x
13064 then tx="$tx $x"
13065 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13066 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13067 fi
13068 done
13069 xm_file="$tx"
13070
13071 count=a
13072 for f in $tm_file; do
13073 count=${count}x
13074 done
13075 if test $count = ax; then
13076 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13077 else
13078 echo "Using the following target machine macro files:"
13079 for f in $tm_file; do
13080 echo " $srcdir/config/$f"
13081 done
13082 fi
13083
13084 if test x$need_64bit_hwint = xyes; then
13085
13086 cat >>confdefs.h <<\_ACEOF
13087 #define NEED_64BIT_HOST_WIDE_INT 1
13088 _ACEOF
13089
13090 fi
13091
13092 if test x$use_long_long_for_widest_fast_int = xyes; then
13093
13094 cat >>confdefs.h <<\_ACEOF
13095 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13096 _ACEOF
13097
13098 fi
13099
13100 count=a
13101 for f in $host_xm_file; do
13102 count=${count}x
13103 done
13104 if test $count = a; then
13105 :
13106 elif test $count = ax; then
13107 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13108 else
13109 echo "Using the following host machine macro files:"
13110 for f in $host_xm_file; do
13111 echo " $srcdir/config/$f"
13112 done
13113 fi
13114 echo "Using ${out_host_hook_obj} for host machine hooks."
13115
13116 if test "$host_xm_file" != "$build_xm_file"; then
13117 count=a
13118 for f in $build_xm_file; do
13119 count=${count}x
13120 done
13121 if test $count = a; then
13122 :
13123 elif test $count = ax; then
13124 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13125 else
13126 echo "Using the following build machine macro files:"
13127 for f in $build_xm_file; do
13128 echo " $srcdir/config/$f"
13129 done
13130 fi
13131 fi
13132
13133 case ${host} in
13134 powerpc*-*-darwin*)
13135 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13136 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13137 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140 cat >conftest.$ac_ext <<_ACEOF
13141
13142 #include <sys/cdefs.h>
13143 #include <sys/signal.h>
13144 #include <ucontext.h>
13145 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13146
13147 _ACEOF
13148 rm -f conftest.$ac_objext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
13157 { ac_try='test -z "$ac_c_werror_flag"
13158 || test ! -s conftest.err'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } &&
13164 { ac_try='test -s conftest.$ac_objext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
13170 gcc_cv_mcontext_underscores=no
13171 else
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 gcc_cv_mcontext_underscores=yes
13176 fi
13177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13178 fi
13179 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13180 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13181 if test $gcc_cv_mcontext_underscores = yes; then
13182
13183 cat >>confdefs.h <<\_ACEOF
13184 #define HAS_MCONTEXT_T_UNDERSCORES
13185 _ACEOF
13186
13187 fi
13188 ;;
13189 esac
13190
13191 # ---------
13192 # Threading
13193 # ---------
13194
13195 # Check if a valid thread package
13196 case ${enable_threads} in
13197 "" | no)
13198 # No threads
13199 target_thread_file='single'
13200 ;;
13201 yes)
13202 # default
13203 target_thread_file='single'
13204 ;;
13205 aix | dce | gnat | irix | posix | posix95 | rtems | \
13206 single | solaris | vxworks | win32 | mipssde)
13207 target_thread_file=${enable_threads}
13208 ;;
13209 *)
13210 echo "${enable_threads} is an unknown thread package" 1>&2
13211 exit 1
13212 ;;
13213 esac
13214
13215 if test x${thread_file} = x; then
13216 # No thread file set by target-specific clauses in config.gcc,
13217 # so use file chosen by default logic above
13218 thread_file=${target_thread_file}
13219 fi
13220
13221 # Make gthr-default.h if we have a thread file.
13222 gthread_flags=
13223 if test $thread_file != single; then
13224 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13225 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13226 rm -f gthr-default.h-t
13227 else
13228 mv -f gthr-default.h-t gthr-default.h
13229 fi
13230 gthread_flags=-DHAVE_GTHR_DEFAULT
13231 fi
13232
13233
13234 # --------
13235 # UNSORTED
13236 # --------
13237
13238 use_cxa_atexit=no
13239 if test x$enable___cxa_atexit = xyes || \
13240 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13241 if test x$host = x$target; then
13242 case $host in
13243 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13244 # keyed to flag_use_cxa_atexit
13245 *-*-mingw32*)
13246 use_cxa_atexit=yes
13247 ;;
13248 *)
13249 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13250 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13251 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254 cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h. */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13262 #define __cxa_atexit innocuous___cxa_atexit
13263
13264 /* System header to define __stub macros and hopefully few prototypes,
13265 which can conflict with char __cxa_atexit (); below.
13266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13267 <limits.h> exists even on freestanding compilers. */
13268
13269 #ifdef __STDC__
13270 # include <limits.h>
13271 #else
13272 # include <assert.h>
13273 #endif
13274
13275 #undef __cxa_atexit
13276
13277 /* Override any gcc2 internal prototype to avoid an error. */
13278 #ifdef __cplusplus
13279 extern "C"
13280 {
13281 #endif
13282 /* We use char because int might match the return type of a gcc2
13283 builtin and then its argument prototype would still apply. */
13284 char __cxa_atexit ();
13285 /* The GNU C library defines this for functions which it implements
13286 to always fail with ENOSYS. Some functions are actually named
13287 something starting with __ and the normal name is an alias. */
13288 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13289 choke me
13290 #else
13291 char (*f) () = __cxa_atexit;
13292 #endif
13293 #ifdef __cplusplus
13294 }
13295 #endif
13296
13297 int
13298 main ()
13299 {
13300 return f != __cxa_atexit;
13301 ;
13302 return 0;
13303 }
13304 _ACEOF
13305 rm -f conftest.$ac_objext conftest$ac_exeext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13307 (eval $ac_link) 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
13314 { ac_try='test -z "$ac_c_werror_flag"
13315 || test ! -s conftest.err'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; } &&
13321 { ac_try='test -s conftest$ac_exeext'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_cv_func___cxa_atexit=yes
13328 else
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_cv_func___cxa_atexit=no
13333 fi
13334 rm -f conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13336 fi
13337 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13338 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13339 if test $ac_cv_func___cxa_atexit = yes; then
13340 use_cxa_atexit=yes
13341 else
13342 echo "__cxa_atexit can't be enabled on this target"
13343 fi
13344
13345 ;;
13346 esac
13347 else
13348 # We can't check for __cxa_atexit when building a cross, so assume
13349 # it is available
13350 use_cxa_atexit=yes
13351 fi
13352 if test x$use_cxa_atexit = xyes; then
13353
13354 cat >>confdefs.h <<\_ACEOF
13355 #define DEFAULT_USE_CXA_ATEXIT 2
13356 _ACEOF
13357
13358 fi
13359 fi
13360
13361 # Look for a file containing extra machine modes.
13362 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13363 extra_modes_file='$(srcdir)'/config/${extra_modes}
13364
13365
13366 cat >>confdefs.h <<_ACEOF
13367 #define EXTRA_MODES_FILE "config/$extra_modes"
13368 _ACEOF
13369
13370 fi
13371
13372 # Convert extra_options into a form suitable for Makefile use.
13373 extra_opt_files=
13374 for f in $extra_options; do
13375 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13376 done
13377
13378
13379 # auto-host.h is the file containing items generated by autoconf and is
13380 # the first file included by config.h.
13381 # If host=build, it is correct to have bconfig include auto-host.h
13382 # as well. If host!=build, we are in error and need to do more
13383 # work to find out the build config parameters.
13384 if test x$host = x$build
13385 then
13386 build_auto=auto-host.h
13387 else
13388 # We create a subdir, then run autoconf in the subdir.
13389 # To prevent recursion we set host and build for the new
13390 # invocation of configure to the build for this invocation
13391 # of configure.
13392 tempdir=build.$$
13393 rm -rf $tempdir
13394 mkdir $tempdir
13395 cd $tempdir
13396 case ${srcdir} in
13397 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13398 *) realsrcdir=../${srcdir};;
13399 esac
13400 saved_CFLAGS="${CFLAGS}"
13401 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13402 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13403 ${realsrcdir}/configure \
13404 --enable-languages=${enable_languages-all} \
13405 --target=$target_alias --host=$build_alias --build=$build_alias
13406 CFLAGS="${saved_CFLAGS}"
13407
13408 # We just finished tests for the build machine, so rename
13409 # the file auto-build.h in the gcc directory.
13410 mv auto-host.h ../auto-build.h
13411 cd ..
13412 rm -rf $tempdir
13413 build_auto=auto-build.h
13414 fi
13415
13416
13417 tm_file="${tm_file} defaults.h"
13418 tm_p_file="${tm_p_file} tm-preds.h"
13419 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13420 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13421 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13422 # put this back in temporarily.
13423 xm_file="auto-host.h ansidecl.h ${xm_file}"
13424
13425 # --------
13426 # UNSORTED
13427 # --------
13428
13429 # Compile in configure arguments.
13430 if test -f configargs.h ; then
13431 # Being re-configured.
13432 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13433 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13434 else
13435 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13436 fi
13437
13438 # Double all backslashes and backslash all quotes to turn
13439 # gcc_config_arguments into a C string.
13440 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13441 $gcc_config_arguments
13442 EOF
13443 gcc_config_arguments_str=`cat conftest.out`
13444 rm -f conftest.out
13445
13446 cat > configargs.h <<EOF
13447 /* Generated automatically. */
13448 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13449 static const char thread_model[] = "$thread_file";
13450
13451 static const struct {
13452 const char *name, *value;
13453 } configure_default_options[] = $configure_default_options;
13454 EOF
13455
13456 gcc_BASEVER=$(cat $srcdir/BASE-VER)
13457 gcc_DEVPHASE=$(cat $srcdir/DEV-PHASE)
13458 gcc_DATESTAMP=$(cat $srcdir/DATESTAMP)
13459 if test -f $srcdir/REVISION ; then
13460 gcc_REVISION=$(cat $srcdir/REVISION)
13461 else
13462 gcc_REVISION=""
13463 fi
13464 cat > plugin-version.h <<EOF
13465 #include "configargs.h"
13466
13467 static char basever[] = "$gcc_BASEVER";
13468 static char datestamp[] = "$gcc_DATESTAMP";
13469 static char devphase[] = "$gcc_DEVPHASE";
13470 static char revision[] = "$gcc_REVISION";
13471
13472 /* FIXME plugins: We should make the version information more precise.
13473 One way to do is to add a checksum. */
13474
13475 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13476 devphase, revision,
13477 configuration_arguments};
13478 EOF
13479
13480 # Internationalization
13481 # If we haven't got the data from the intl directory,
13482 # assume NLS is disabled.
13483 USE_NLS=no
13484 LIBINTL=
13485 LIBINTL_DEP=
13486 INCINTL=
13487 XGETTEXT=
13488 GMSGFMT=
13489 POSUB=
13490
13491 if test -f ../intl/config.intl; then
13492 . ../intl/config.intl
13493 fi
13494 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13495 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13496 if test x"$USE_NLS" != xyes; then
13497 echo "$as_me:$LINENO: result: no" >&5
13498 echo "${ECHO_T}no" >&6
13499 else
13500 echo "$as_me:$LINENO: result: yes" >&5
13501 echo "${ECHO_T}yes" >&6
13502
13503 cat >>confdefs.h <<\_ACEOF
13504 #define ENABLE_NLS 1
13505 _ACEOF
13506
13507
13508 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13509 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13510 # Look for .po and .gmo files in the source directory.
13511 CATALOGS=
13512 XLINGUAS=
13513 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13514 # If there aren't any .gmo files the shell will give us the
13515 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13516 # weeded out.
13517 case "$cat" in *\**)
13518 continue;;
13519 esac
13520 # The quadruple backslash is collapsed to a double backslash
13521 # by the backticks, then collapsed again by the double quotes,
13522 # leaving us with one backslash in the sed expression (right
13523 # before the dot that mustn't act as a wildcard).
13524 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13525 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13526 # The user is allowed to set LINGUAS to a list of languages to
13527 # install catalogs for. If it's empty that means "all of them."
13528 if test "x$LINGUAS" = x; then
13529 CATALOGS="$CATALOGS $cat"
13530 XLINGUAS="$XLINGUAS $lang"
13531 else
13532 case "$LINGUAS" in *$lang*)
13533 CATALOGS="$CATALOGS $cat"
13534 XLINGUAS="$XLINGUAS $lang"
13535 ;;
13536 esac
13537 fi
13538 done
13539 LINGUAS="$XLINGUAS"
13540 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13541 echo "${ECHO_T}$LINGUAS" >&6
13542
13543
13544 DATADIRNAME=share
13545
13546 INSTOBJEXT=.mo
13547
13548 GENCAT=gencat
13549
13550 CATOBJEXT=.gmo
13551
13552 fi
13553
13554 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13555 # -liconv on the link line twice.
13556 case "$LIBINTL" in *$LIBICONV*)
13557 LIBICONV= ;;
13558 esac
13559
13560 # Check whether --enable-secureplt or --disable-secureplt was given.
13561 if test "${enable_secureplt+set}" = set; then
13562 enableval="$enable_secureplt"
13563
13564 fi;
13565
13566 # Check whether --enable-cld or --disable-cld was given.
13567 if test "${enable_cld+set}" = set; then
13568 enableval="$enable_cld"
13569
13570 else
13571 enable_cld=no
13572 fi;
13573
13574 # Windows32 Registry support for specifying GCC installation paths.
13575 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13576 if test "${enable_win32_registry+set}" = set; then
13577 enableval="$enable_win32_registry"
13578
13579 fi;
13580
13581 case $host_os in
13582 win32 | pe | cygwin* | mingw32* | uwin*)
13583 if test "x$enable_win32_registry" != xno; then
13584 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13585 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13586 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589 ac_func_search_save_LIBS=$LIBS
13590 ac_cv_search_RegOpenKeyExA=no
13591 cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h. */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597
13598 /* Override any gcc2 internal prototype to avoid an error. */
13599 #ifdef __cplusplus
13600 extern "C"
13601 #endif
13602 /* We use char because int might match the return type of a gcc2
13603 builtin and then its argument prototype would still apply. */
13604 char RegOpenKeyExA ();
13605 int
13606 main ()
13607 {
13608 RegOpenKeyExA ();
13609 ;
13610 return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615 (eval $ac_link) 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag"
13623 || test ! -s conftest.err'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 ac_cv_search_RegOpenKeyExA="none required"
13636 else
13637 echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13639
13640 fi
13641 rm -f conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext conftest.$ac_ext
13643 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13644 for ac_lib in advapi32; do
13645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13646 cat >conftest.$ac_ext <<_ACEOF
13647 /* confdefs.h. */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652
13653 /* Override any gcc2 internal prototype to avoid an error. */
13654 #ifdef __cplusplus
13655 extern "C"
13656 #endif
13657 /* We use char because int might match the return type of a gcc2
13658 builtin and then its argument prototype would still apply. */
13659 char RegOpenKeyExA ();
13660 int
13661 main ()
13662 {
13663 RegOpenKeyExA ();
13664 ;
13665 return 0;
13666 }
13667 _ACEOF
13668 rm -f conftest.$ac_objext conftest$ac_exeext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13670 (eval $ac_link) 2>conftest.er1
13671 ac_status=$?
13672 grep -v '^ *+' conftest.er1 >conftest.err
13673 rm -f conftest.er1
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } &&
13677 { ac_try='test -z "$ac_c_werror_flag"
13678 || test ! -s conftest.err'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest$ac_exeext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13691 break
13692 else
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696 fi
13697 rm -f conftest.err conftest.$ac_objext \
13698 conftest$ac_exeext conftest.$ac_ext
13699 done
13700 fi
13701 LIBS=$ac_func_search_save_LIBS
13702 fi
13703 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13704 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13705 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13706 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13707
13708 else
13709 enable_win32_registry=no
13710 fi
13711
13712 fi
13713
13714 if test "x$enable_win32_registry" != xno; then
13715
13716 cat >>confdefs.h <<\_ACEOF
13717 #define ENABLE_WIN32_REGISTRY 1
13718 _ACEOF
13719
13720
13721 if test "x$enable_win32_registry" != xyes \
13722 && test "x$enable_win32_registry" != x; then
13723
13724 cat >>confdefs.h <<_ACEOF
13725 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13726 _ACEOF
13727
13728 fi
13729 fi
13730 ;;
13731 esac
13732
13733 # Get an absolute path to the GCC top-level source directory
13734 holddir=`${PWDCMD-pwd}`
13735 cd $srcdir
13736 topdir=`${PWDCMD-pwd}`
13737 cd $holddir
13738
13739 # Conditionalize the makefile for this host machine.
13740 xmake_file=
13741 for f in ${host_xmake_file}
13742 do
13743 if test -f ${srcdir}/config/$f
13744 then
13745 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13746 fi
13747 done
13748
13749 # Conditionalize the makefile for this target machine.
13750 tmake_file_=
13751 for f in ${tmake_file}
13752 do
13753 if test -f ${srcdir}/config/$f
13754 then
13755 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13756 fi
13757 done
13758 tmake_file="${tmake_file_}"
13759
13760 out_object_file=`basename $out_file .c`.o
13761
13762 tm_file_list="options.h"
13763 tm_include_list="options.h"
13764 for f in $tm_file; do
13765 case $f in
13766 ./* )
13767 f=`echo $f | sed 's/^..//'`
13768 tm_file_list="${tm_file_list} $f"
13769 tm_include_list="${tm_include_list} $f"
13770 ;;
13771 defaults.h )
13772 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13773 tm_include_list="${tm_include_list} $f"
13774 ;;
13775 * )
13776 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13777 tm_include_list="${tm_include_list} config/$f"
13778 ;;
13779 esac
13780 done
13781
13782 tm_p_file_list=
13783 tm_p_include_list=
13784 for f in $tm_p_file; do
13785 case $f in
13786 tm-preds.h )
13787 tm_p_file_list="${tm_p_file_list} $f"
13788 tm_p_include_list="${tm_p_include_list} $f"
13789 ;;
13790 * )
13791 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13792 tm_p_include_list="${tm_p_include_list} config/$f"
13793 esac
13794 done
13795
13796 xm_file_list=
13797 xm_include_list=
13798 for f in $xm_file; do
13799 case $f in
13800 ansidecl.h )
13801 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13802 xm_include_list="${xm_include_list} $f"
13803 ;;
13804 auto-host.h )
13805 xm_file_list="${xm_file_list} $f"
13806 xm_include_list="${xm_include_list} $f"
13807 ;;
13808 * )
13809 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13810 xm_include_list="${xm_include_list} config/$f"
13811 ;;
13812 esac
13813 done
13814
13815 host_xm_file_list=
13816 host_xm_include_list=
13817 for f in $host_xm_file; do
13818 case $f in
13819 ansidecl.h )
13820 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13821 host_xm_include_list="${host_xm_include_list} $f"
13822 ;;
13823 auto-host.h )
13824 host_xm_file_list="${host_xm_file_list} $f"
13825 host_xm_include_list="${host_xm_include_list} $f"
13826 ;;
13827 * )
13828 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13829 host_xm_include_list="${host_xm_include_list} config/$f"
13830 ;;
13831 esac
13832 done
13833
13834 build_xm_file_list=
13835 for f in $build_xm_file; do
13836 case $f in
13837 ansidecl.h )
13838 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13839 build_xm_include_list="${build_xm_include_list} $f"
13840 ;;
13841 auto-build.h | auto-host.h )
13842 build_xm_file_list="${build_xm_file_list} $f"
13843 build_xm_include_list="${build_xm_include_list} $f"
13844 ;;
13845 * )
13846 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13847 build_xm_include_list="${build_xm_include_list} config/$f"
13848 ;;
13849 esac
13850 done
13851
13852 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13853 # cross-compiler which does not use the native headers and libraries.
13854 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13855 CROSS=
13856 ALL=all.internal
13857 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13858
13859 if test "x$with_build_sysroot" != x; then
13860 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13861 else
13862 # This value is used, even on a native system, because
13863 # CROSS_SYSTEM_HEADER_DIR is just
13864 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13865 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13866 fi
13867
13868 if test x$host != x$target
13869 then
13870 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13871 ALL=all.cross
13872 SYSTEM_HEADER_DIR=$build_system_header_dir
13873 case "$host","$target" in
13874 # Darwin crosses can use the host system's libraries and headers,
13875 # because of the fat library support. Of course, it must be the
13876 # same version of Darwin on both sides. Allow the user to
13877 # just say --target=foo-darwin without a version number to mean
13878 # "the version on this system".
13879 *-*-darwin*,*-*-darwin*)
13880 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13881 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13882 if test $hostos = $targetos -o $targetos = darwin ; then
13883 CROSS=
13884 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13885 with_headers=yes
13886 fi
13887 ;;
13888
13889 i?86-*-*,x86_64-*-* \
13890 | powerpc*-*-*,powerpc64*-*-*)
13891 CROSS="$CROSS -DNATIVE_CROSS" ;;
13892 esac
13893 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13894 SYSTEM_HEADER_DIR=$build_system_header_dir
13895 fi
13896
13897 # If this is a cross-compiler that does not
13898 # have its own set of headers then define
13899 # inhibit_libc
13900
13901 # If this is using newlib, without having the headers available now,
13902 # then define inhibit_libc in LIBGCC2_CFLAGS.
13903 # This prevents libgcc2 from containing any code which requires libc
13904 # support.
13905 : ${inhibit_libc=false}
13906 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13907 test x$with_newlib = xyes ; } &&
13908 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13909 inhibit_libc=true
13910 fi
13911
13912
13913 # When building gcc with a cross-compiler, we need to adjust things so
13914 # that the generator programs are still built with the native compiler.
13915 # Also, we cannot run fixincludes.
13916
13917 # These are the normal (build=host) settings:
13918 CC_FOR_BUILD='$(CC)'
13919 BUILD_CFLAGS='$(ALL_CFLAGS)'
13920 BUILD_LDFLAGS='$(LDFLAGS)'
13921 STMP_FIXINC=stmp-fixinc
13922
13923 # And these apply if build != host, or we are generating coverage data
13924 if test x$build != x$host || test "x$coverage_flags" != x
13925 then
13926 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13927 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13928 fi
13929
13930 # Expand extra_headers to include complete path.
13931 # This substitutes for lots of t-* files.
13932 extra_headers_list=
13933 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13934 for file in ${extra_headers} ; do
13935 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13936 done
13937
13938 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13939 if test x"$use_gcc_tgmath" = xyes
13940 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13941 fi
13942
13943 # Define collect2 in Makefile.
13944 case $host_can_use_collect2 in
13945 no) collect2= ;;
13946 *) collect2='collect2$(exeext)' ;;
13947 esac
13948
13949
13950 # Add a definition of USE_COLLECT2 if system wants one.
13951 case $use_collect2 in
13952 no) use_collect2= ;;
13953 "") ;;
13954 *)
13955 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13956 xm_defines="${xm_defines} USE_COLLECT2"
13957 case $host_can_use_collect2 in
13958 no)
13959 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13960 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13961 { (exit 1); exit 1; }; }
13962 ;;
13963 esac
13964 ;;
13965 esac
13966
13967 # ---------------------------
13968 # Assembler & linker features
13969 # ---------------------------
13970
13971 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13972 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13973 # However when ld-new is first executed from the build tree, libtool will
13974 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13975 # to the build tree. While doing this we need to use the previous-stage
13976 # linker, or we have an infinite loop. The presence of a shell script as
13977 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13978 # the gcc/collect-ld script. So we need to know how libtool works, or
13979 # exec-tool will fail.
13980
13981
13982 case `pwd` in
13983 *\ * | *\ *)
13984 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13985 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13986 esac
13987
13988
13989
13990 macro_version='2.2.6'
13991 macro_revision='1.3012'
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005 ltmain="$ac_aux_dir/ltmain.sh"
14006
14007 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14008 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14009 if test "${lt_cv_path_SED+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 else
14012 # Loop through the user's path and test for sed and gsed.
14013 # Then use that list of sed's as ones to test for truncation.
14014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14015 for as_dir in $PATH
14016 do
14017 IFS=$as_save_IFS
14018 test -z "$as_dir" && as_dir=.
14019 for lt_ac_prog in sed gsed; do
14020 for ac_exec_ext in '' $ac_executable_extensions; do
14021 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14022 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14023 fi
14024 done
14025 done
14026 done
14027 IFS=$as_save_IFS
14028 lt_ac_max=0
14029 lt_ac_count=0
14030 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14031 # along with /bin/sed that truncates output.
14032 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14033 test ! -f $lt_ac_sed && continue
14034 cat /dev/null > conftest.in
14035 lt_ac_count=0
14036 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14037 # Check for GNU sed and select it if it is found.
14038 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14039 lt_cv_path_SED=$lt_ac_sed
14040 break
14041 fi
14042 while true; do
14043 cat conftest.in conftest.in >conftest.tmp
14044 mv conftest.tmp conftest.in
14045 cp conftest.in conftest.nl
14046 echo >>conftest.nl
14047 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14048 cmp -s conftest.out conftest.nl || break
14049 # 10000 chars as input seems more than enough
14050 test $lt_ac_count -gt 10 && break
14051 lt_ac_count=`expr $lt_ac_count + 1`
14052 if test $lt_ac_count -gt $lt_ac_max; then
14053 lt_ac_max=$lt_ac_count
14054 lt_cv_path_SED=$lt_ac_sed
14055 fi
14056 done
14057 done
14058
14059 fi
14060
14061 SED=$lt_cv_path_SED
14062
14063 echo "$as_me:$LINENO: result: $SED" >&5
14064 echo "${ECHO_T}$SED" >&6
14065
14066 test -z "$SED" && SED=sed
14067 Xsed="$SED -e 1s/^X//"
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079 echo "$as_me:$LINENO: checking for fgrep" >&5
14080 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14081 if test "${ac_cv_prog_fgrep+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14085 then ac_cv_prog_fgrep='grep -F'
14086 else ac_cv_prog_fgrep='fgrep'
14087 fi
14088 fi
14089 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14090 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14091 FGREP=$ac_cv_prog_fgrep
14092
14093
14094 test -z "$GREP" && GREP=grep
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14115 if test "${with_gnu_ld+set}" = set; then
14116 withval="$with_gnu_ld"
14117 test "$withval" = no || with_gnu_ld=yes
14118 else
14119 with_gnu_ld=no
14120 fi;
14121 ac_prog=ld
14122 if test "$GCC" = yes; then
14123 # Check if gcc -print-prog-name=ld gives a path.
14124 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14126 case $host in
14127 *-*-mingw*)
14128 # gcc leaves a trailing carriage return which upsets mingw
14129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14130 *)
14131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14132 esac
14133 case $ac_prog in
14134 # Accept absolute paths.
14135 [\\/]* | ?:[\\/]*)
14136 re_direlt='/[^/][^/]*/\.\./'
14137 # Canonicalize the pathname of ld
14138 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14139 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14140 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14141 done
14142 test -z "$LD" && LD="$ac_prog"
14143 ;;
14144 "")
14145 # If it fails, then pretend we aren't using GCC.
14146 ac_prog=ld
14147 ;;
14148 *)
14149 # If it is relative, then search for the first ld in PATH.
14150 with_gnu_ld=unknown
14151 ;;
14152 esac
14153 elif test "$with_gnu_ld" = yes; then
14154 echo "$as_me:$LINENO: checking for GNU ld" >&5
14155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14156 else
14157 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14159 fi
14160 if test "${lt_cv_path_LD+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 else
14163 if test -z "$LD"; then
14164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14165 for ac_dir in $PATH; do
14166 IFS="$lt_save_ifs"
14167 test -z "$ac_dir" && ac_dir=.
14168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14169 lt_cv_path_LD="$ac_dir/$ac_prog"
14170 # Check to see if the program is GNU ld. I'd rather use --version,
14171 # but apparently some variants of GNU ld only accept -v.
14172 # Break only if it was the GNU/non-GNU ld that we prefer.
14173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14174 *GNU* | *'with BFD'*)
14175 test "$with_gnu_ld" != no && break
14176 ;;
14177 *)
14178 test "$with_gnu_ld" != yes && break
14179 ;;
14180 esac
14181 fi
14182 done
14183 IFS="$lt_save_ifs"
14184 else
14185 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14186 fi
14187 fi
14188
14189 LD="$lt_cv_path_LD"
14190 if test -n "$LD"; then
14191 echo "$as_me:$LINENO: result: $LD" >&5
14192 echo "${ECHO_T}$LD" >&6
14193 else
14194 echo "$as_me:$LINENO: result: no" >&5
14195 echo "${ECHO_T}no" >&6
14196 fi
14197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14199 { (exit 1); exit 1; }; }
14200 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14206 case `$LD -v 2>&1 </dev/null` in
14207 *GNU* | *'with BFD'*)
14208 lt_cv_prog_gnu_ld=yes
14209 ;;
14210 *)
14211 lt_cv_prog_gnu_ld=no
14212 ;;
14213 esac
14214 fi
14215 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14217 with_gnu_ld=$lt_cv_prog_gnu_ld
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14228 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14229 if test "${lt_cv_path_NM+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232 if test -n "$NM"; then
14233 # Let the user override the test.
14234 lt_cv_path_NM="$NM"
14235 else
14236 lt_nm_to_check="${ac_tool_prefix}nm"
14237 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14238 lt_nm_to_check="$lt_nm_to_check nm"
14239 fi
14240 for lt_tmp_nm in $lt_nm_to_check; do
14241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14242 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14243 IFS="$lt_save_ifs"
14244 test -z "$ac_dir" && ac_dir=.
14245 tmp_nm="$ac_dir/$lt_tmp_nm"
14246 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14247 # Check to see if the nm accepts a BSD-compat flag.
14248 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14249 # nm: unknown option "B" ignored
14250 # Tru64's nm complains that /dev/null is an invalid object file
14251 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14252 */dev/null* | *'Invalid file or object type'*)
14253 lt_cv_path_NM="$tmp_nm -B"
14254 break
14255 ;;
14256 *)
14257 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14258 */dev/null*)
14259 lt_cv_path_NM="$tmp_nm -p"
14260 break
14261 ;;
14262 *)
14263 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14264 continue # so that we can try to find one that supports BSD flags
14265 ;;
14266 esac
14267 ;;
14268 esac
14269 fi
14270 done
14271 IFS="$lt_save_ifs"
14272 done
14273 : ${lt_cv_path_NM=no}
14274 fi
14275 fi
14276 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14277 echo "${ECHO_T}$lt_cv_path_NM" >&6
14278 if test "$lt_cv_path_NM" != "no"; then
14279 NM="$lt_cv_path_NM"
14280 else
14281 # Didn't find any BSD compatible name lister, look for dumpbin.
14282 if test -n "$ac_tool_prefix"; then
14283 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14284 do
14285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14287 echo "$as_me:$LINENO: checking for $ac_word" >&5
14288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14289 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292 if test -n "$DUMPBIN"; then
14293 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14294 else
14295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296 for as_dir in $PATH
14297 do
14298 IFS=$as_save_IFS
14299 test -z "$as_dir" && as_dir=.
14300 for ac_exec_ext in '' $ac_executable_extensions; do
14301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14302 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14304 break 2
14305 fi
14306 done
14307 done
14308
14309 fi
14310 fi
14311 DUMPBIN=$ac_cv_prog_DUMPBIN
14312 if test -n "$DUMPBIN"; then
14313 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14314 echo "${ECHO_T}$DUMPBIN" >&6
14315 else
14316 echo "$as_me:$LINENO: result: no" >&5
14317 echo "${ECHO_T}no" >&6
14318 fi
14319
14320 test -n "$DUMPBIN" && break
14321 done
14322 fi
14323 if test -z "$DUMPBIN"; then
14324 ac_ct_DUMPBIN=$DUMPBIN
14325 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14326 do
14327 # Extract the first word of "$ac_prog", so it can be a program name with args.
14328 set dummy $ac_prog; ac_word=$2
14329 echo "$as_me:$LINENO: checking for $ac_word" >&5
14330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14331 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 else
14334 if test -n "$ac_ct_DUMPBIN"; then
14335 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14336 else
14337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14338 for as_dir in $PATH
14339 do
14340 IFS=$as_save_IFS
14341 test -z "$as_dir" && as_dir=.
14342 for ac_exec_ext in '' $ac_executable_extensions; do
14343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14344 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14346 break 2
14347 fi
14348 done
14349 done
14350
14351 fi
14352 fi
14353 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14354 if test -n "$ac_ct_DUMPBIN"; then
14355 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14356 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14357 else
14358 echo "$as_me:$LINENO: result: no" >&5
14359 echo "${ECHO_T}no" >&6
14360 fi
14361
14362 test -n "$ac_ct_DUMPBIN" && break
14363 done
14364 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14365
14366 DUMPBIN=$ac_ct_DUMPBIN
14367 fi
14368
14369
14370 if test "$DUMPBIN" != ":"; then
14371 NM="$DUMPBIN"
14372 fi
14373 fi
14374 test -z "$NM" && NM=nm
14375
14376
14377
14378
14379
14380
14381 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14382 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14383 if test "${lt_cv_nm_interface+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386 lt_cv_nm_interface="BSD nm"
14387 echo "int some_variable = 0;" > conftest.$ac_ext
14388 (eval echo "\"\$as_me:14388: $ac_compile\"" >&5)
14389 (eval "$ac_compile" 2>conftest.err)
14390 cat conftest.err >&5
14391 (eval echo "\"\$as_me:14391: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14392 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14393 cat conftest.err >&5
14394 (eval echo "\"\$as_me:14394: output\"" >&5)
14395 cat conftest.out >&5
14396 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14397 lt_cv_nm_interface="MS dumpbin"
14398 fi
14399 rm -f conftest*
14400 fi
14401 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14402 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14403
14404 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14405 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14406 LN_S=$as_ln_s
14407 if test "$LN_S" = "ln -s"; then
14408 echo "$as_me:$LINENO: result: yes" >&5
14409 echo "${ECHO_T}yes" >&6
14410 else
14411 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14412 echo "${ECHO_T}no, using $LN_S" >&6
14413 fi
14414
14415 # find the maximum length of command line arguments
14416 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14417 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14418 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421 i=0
14422 teststring="ABCD"
14423
14424 case $build_os in
14425 msdosdjgpp*)
14426 # On DJGPP, this test can blow up pretty badly due to problems in libc
14427 # (any single argument exceeding 2000 bytes causes a buffer overrun
14428 # during glob expansion). Even if it were fixed, the result of this
14429 # check would be larger than it should be.
14430 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14431 ;;
14432
14433 gnu*)
14434 # Under GNU Hurd, this test is not required because there is
14435 # no limit to the length of command line arguments.
14436 # Libtool will interpret -1 as no limit whatsoever
14437 lt_cv_sys_max_cmd_len=-1;
14438 ;;
14439
14440 cygwin* | mingw* | cegcc*)
14441 # On Win9x/ME, this test blows up -- it succeeds, but takes
14442 # about 5 minutes as the teststring grows exponentially.
14443 # Worse, since 9x/ME are not pre-emptively multitasking,
14444 # you end up with a "frozen" computer, even though with patience
14445 # the test eventually succeeds (with a max line length of 256k).
14446 # Instead, let's just punt: use the minimum linelength reported by
14447 # all of the supported platforms: 8192 (on NT/2K/XP).
14448 lt_cv_sys_max_cmd_len=8192;
14449 ;;
14450
14451 amigaos*)
14452 # On AmigaOS with pdksh, this test takes hours, literally.
14453 # So we just punt and use a minimum line length of 8192.
14454 lt_cv_sys_max_cmd_len=8192;
14455 ;;
14456
14457 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14458 # This has been around since 386BSD, at least. Likely further.
14459 if test -x /sbin/sysctl; then
14460 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14461 elif test -x /usr/sbin/sysctl; then
14462 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14463 else
14464 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14465 fi
14466 # And add a safety zone
14467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14469 ;;
14470
14471 interix*)
14472 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14473 lt_cv_sys_max_cmd_len=196608
14474 ;;
14475
14476 osf*)
14477 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14478 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14479 # nice to cause kernel panics so lets avoid the loop below.
14480 # First set a reasonable default.
14481 lt_cv_sys_max_cmd_len=16384
14482 #
14483 if test -x /sbin/sysconfig; then
14484 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14485 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14486 esac
14487 fi
14488 ;;
14489 sco3.2v5*)
14490 lt_cv_sys_max_cmd_len=102400
14491 ;;
14492 sysv5* | sco5v6* | sysv4.2uw2*)
14493 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14494 if test -n "$kargmax"; then
14495 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14496 else
14497 lt_cv_sys_max_cmd_len=32768
14498 fi
14499 ;;
14500 *)
14501 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14502 if test -n "$lt_cv_sys_max_cmd_len"; then
14503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14505 else
14506 # Make teststring a little bigger before we do anything with it.
14507 # a 1K string should be a reasonable start.
14508 for i in 1 2 3 4 5 6 7 8 ; do
14509 teststring=$teststring$teststring
14510 done
14511 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14512 # If test is not a shell built-in, we'll probably end up computing a
14513 # maximum length that is only half of the actual maximum length, but
14514 # we can't tell.
14515 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14516 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14517 test $i != 17 # 1/2 MB should be enough
14518 do
14519 i=`expr $i + 1`
14520 teststring=$teststring$teststring
14521 done
14522 # Only check the string length outside the loop.
14523 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14524 teststring=
14525 # Add a significant safety factor because C++ compilers can tack on
14526 # massive amounts of additional arguments before passing them to the
14527 # linker. It appears as though 1/2 is a usable value.
14528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14529 fi
14530 ;;
14531 esac
14532
14533 fi
14534
14535 if test -n $lt_cv_sys_max_cmd_len ; then
14536 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14537 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14538 else
14539 echo "$as_me:$LINENO: result: none" >&5
14540 echo "${ECHO_T}none" >&6
14541 fi
14542 max_cmd_len=$lt_cv_sys_max_cmd_len
14543
14544
14545
14546
14547
14548
14549 : ${CP="cp -f"}
14550 : ${MV="mv -f"}
14551 : ${RM="rm -f"}
14552
14553 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14554 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14555 # Try some XSI features
14556 xsi_shell=no
14557 ( _lt_dummy="a/b/c"
14558 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14559 = c,a/b,, \
14560 && eval 'test $(( 1 + 1 )) -eq 2 \
14561 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14562 && xsi_shell=yes
14563 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14564 echo "${ECHO_T}$xsi_shell" >&6
14565
14566
14567 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14568 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14569 lt_shell_append=no
14570 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14571 >/dev/null 2>&1 \
14572 && lt_shell_append=yes
14573 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14574 echo "${ECHO_T}$lt_shell_append" >&6
14575
14576
14577 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14578 lt_unset=unset
14579 else
14580 lt_unset=false
14581 fi
14582
14583
14584
14585
14586
14587 # test EBCDIC or ASCII
14588 case `echo X|tr X '\101'` in
14589 A) # ASCII based system
14590 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14591 lt_SP2NL='tr \040 \012'
14592 lt_NL2SP='tr \015\012 \040\040'
14593 ;;
14594 *) # EBCDIC based system
14595 lt_SP2NL='tr \100 \n'
14596 lt_NL2SP='tr \r\n \100\100'
14597 ;;
14598 esac
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14609 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14610 if test "${lt_cv_ld_reload_flag+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613 lt_cv_ld_reload_flag='-r'
14614 fi
14615 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14616 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14617 reload_flag=$lt_cv_ld_reload_flag
14618 case $reload_flag in
14619 "" | " "*) ;;
14620 *) reload_flag=" $reload_flag" ;;
14621 esac
14622 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14623 case $host_os in
14624 darwin*)
14625 if test "$GCC" = yes; then
14626 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14627 else
14628 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14629 fi
14630 ;;
14631 esac
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641 if test -n "$ac_tool_prefix"; then
14642 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14643 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14644 echo "$as_me:$LINENO: checking for $ac_word" >&5
14645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14646 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649 if test -n "$OBJDUMP"; then
14650 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14651 else
14652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14653 for as_dir in $PATH
14654 do
14655 IFS=$as_save_IFS
14656 test -z "$as_dir" && as_dir=.
14657 for ac_exec_ext in '' $ac_executable_extensions; do
14658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14659 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14661 break 2
14662 fi
14663 done
14664 done
14665
14666 fi
14667 fi
14668 OBJDUMP=$ac_cv_prog_OBJDUMP
14669 if test -n "$OBJDUMP"; then
14670 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
14671 echo "${ECHO_T}$OBJDUMP" >&6
14672 else
14673 echo "$as_me:$LINENO: result: no" >&5
14674 echo "${ECHO_T}no" >&6
14675 fi
14676
14677 fi
14678 if test -z "$ac_cv_prog_OBJDUMP"; then
14679 ac_ct_OBJDUMP=$OBJDUMP
14680 # Extract the first word of "objdump", so it can be a program name with args.
14681 set dummy objdump; ac_word=$2
14682 echo "$as_me:$LINENO: checking for $ac_word" >&5
14683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14684 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687 if test -n "$ac_ct_OBJDUMP"; then
14688 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14689 else
14690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691 for as_dir in $PATH
14692 do
14693 IFS=$as_save_IFS
14694 test -z "$as_dir" && as_dir=.
14695 for ac_exec_ext in '' $ac_executable_extensions; do
14696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14697 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14699 break 2
14700 fi
14701 done
14702 done
14703
14704 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
14705 fi
14706 fi
14707 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14708 if test -n "$ac_ct_OBJDUMP"; then
14709 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
14710 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
14711 else
14712 echo "$as_me:$LINENO: result: no" >&5
14713 echo "${ECHO_T}no" >&6
14714 fi
14715
14716 OBJDUMP=$ac_ct_OBJDUMP
14717 else
14718 OBJDUMP="$ac_cv_prog_OBJDUMP"
14719 fi
14720
14721 test -z "$OBJDUMP" && OBJDUMP=objdump
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14732 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14733 if test "${lt_cv_deplibs_check_method+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 else
14736 lt_cv_file_magic_cmd='$MAGIC_CMD'
14737 lt_cv_file_magic_test_file=
14738 lt_cv_deplibs_check_method='unknown'
14739 # Need to set the preceding variable on all platforms that support
14740 # interlibrary dependencies.
14741 # 'none' -- dependencies not supported.
14742 # `unknown' -- same as none, but documents that we really don't know.
14743 # 'pass_all' -- all dependencies passed with no checks.
14744 # 'test_compile' -- check by making test program.
14745 # 'file_magic [[regex]]' -- check by looking for files in library path
14746 # which responds to the $file_magic_cmd with a given extended regex.
14747 # If you have `file' or equivalent on your system and you're not sure
14748 # whether `pass_all' will *always* work, you probably want this one.
14749
14750 case $host_os in
14751 aix[4-9]*)
14752 lt_cv_deplibs_check_method=pass_all
14753 ;;
14754
14755 beos*)
14756 lt_cv_deplibs_check_method=pass_all
14757 ;;
14758
14759 bsdi[45]*)
14760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14761 lt_cv_file_magic_cmd='/usr/bin/file -L'
14762 lt_cv_file_magic_test_file=/shlib/libc.so
14763 ;;
14764
14765 cygwin*)
14766 # func_win32_libid is a shell function defined in ltmain.sh
14767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14768 lt_cv_file_magic_cmd='func_win32_libid'
14769 ;;
14770
14771 mingw* | pw32*)
14772 # Base MSYS/MinGW do not provide the 'file' command needed by
14773 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14774 # unless we find 'file', for example because we are cross-compiling.
14775 if ( file / ) >/dev/null 2>&1; then
14776 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14777 lt_cv_file_magic_cmd='func_win32_libid'
14778 else
14779 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14780 lt_cv_file_magic_cmd='$OBJDUMP -f'
14781 fi
14782 ;;
14783
14784 cegcc)
14785 # use the weaker test based on 'objdump'. See mingw*.
14786 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14787 lt_cv_file_magic_cmd='$OBJDUMP -f'
14788 ;;
14789
14790 darwin* | rhapsody*)
14791 lt_cv_deplibs_check_method=pass_all
14792 ;;
14793
14794 freebsd* | dragonfly*)
14795 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14796 case $host_cpu in
14797 i*86 )
14798 # Not sure whether the presence of OpenBSD here was a mistake.
14799 # Let's accept both of them until this is cleared up.
14800 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14801 lt_cv_file_magic_cmd=/usr/bin/file
14802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14803 ;;
14804 esac
14805 else
14806 lt_cv_deplibs_check_method=pass_all
14807 fi
14808 ;;
14809
14810 gnu*)
14811 lt_cv_deplibs_check_method=pass_all
14812 ;;
14813
14814 hpux10.20* | hpux11*)
14815 lt_cv_file_magic_cmd=/usr/bin/file
14816 case $host_cpu in
14817 ia64*)
14818 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14819 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14820 ;;
14821 hppa*64*)
14822 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]'
14823 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14824 ;;
14825 *)
14826 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14827 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14828 ;;
14829 esac
14830 ;;
14831
14832 interix[3-9]*)
14833 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14835 ;;
14836
14837 irix5* | irix6* | nonstopux*)
14838 case $LD in
14839 *-32|*"-32 ") libmagic=32-bit;;
14840 *-n32|*"-n32 ") libmagic=N32;;
14841 *-64|*"-64 ") libmagic=64-bit;;
14842 *) libmagic=never-match;;
14843 esac
14844 lt_cv_deplibs_check_method=pass_all
14845 ;;
14846
14847 # This must be Linux ELF.
14848 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14849 lt_cv_deplibs_check_method=pass_all
14850 ;;
14851
14852 netbsd*)
14853 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14855 else
14856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14857 fi
14858 ;;
14859
14860 newos6*)
14861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14862 lt_cv_file_magic_cmd=/usr/bin/file
14863 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14864 ;;
14865
14866 *nto* | *qnx*)
14867 lt_cv_deplibs_check_method=pass_all
14868 ;;
14869
14870 openbsd*)
14871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14873 else
14874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14875 fi
14876 ;;
14877
14878 osf3* | osf4* | osf5*)
14879 lt_cv_deplibs_check_method=pass_all
14880 ;;
14881
14882 rdos*)
14883 lt_cv_deplibs_check_method=pass_all
14884 ;;
14885
14886 solaris*)
14887 lt_cv_deplibs_check_method=pass_all
14888 ;;
14889
14890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14891 lt_cv_deplibs_check_method=pass_all
14892 ;;
14893
14894 sysv4 | sysv4.3*)
14895 case $host_vendor in
14896 motorola)
14897 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]'
14898 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14899 ;;
14900 ncr)
14901 lt_cv_deplibs_check_method=pass_all
14902 ;;
14903 sequent)
14904 lt_cv_file_magic_cmd='/bin/file'
14905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14906 ;;
14907 sni)
14908 lt_cv_file_magic_cmd='/bin/file'
14909 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14910 lt_cv_file_magic_test_file=/lib/libc.so
14911 ;;
14912 siemens)
14913 lt_cv_deplibs_check_method=pass_all
14914 ;;
14915 pc)
14916 lt_cv_deplibs_check_method=pass_all
14917 ;;
14918 esac
14919 ;;
14920
14921 tpf*)
14922 lt_cv_deplibs_check_method=pass_all
14923 ;;
14924 esac
14925
14926 fi
14927 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14928 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14929 file_magic_cmd=$lt_cv_file_magic_cmd
14930 deplibs_check_method=$lt_cv_deplibs_check_method
14931 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944 if test -n "$ac_tool_prefix"; then
14945 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14946 set dummy ${ac_tool_prefix}ar; ac_word=$2
14947 echo "$as_me:$LINENO: checking for $ac_word" >&5
14948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14949 if test "${ac_cv_prog_AR+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952 if test -n "$AR"; then
14953 ac_cv_prog_AR="$AR" # Let the user override the test.
14954 else
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 for as_dir in $PATH
14957 do
14958 IFS=$as_save_IFS
14959 test -z "$as_dir" && as_dir=.
14960 for ac_exec_ext in '' $ac_executable_extensions; do
14961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14962 ac_cv_prog_AR="${ac_tool_prefix}ar"
14963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14964 break 2
14965 fi
14966 done
14967 done
14968
14969 fi
14970 fi
14971 AR=$ac_cv_prog_AR
14972 if test -n "$AR"; then
14973 echo "$as_me:$LINENO: result: $AR" >&5
14974 echo "${ECHO_T}$AR" >&6
14975 else
14976 echo "$as_me:$LINENO: result: no" >&5
14977 echo "${ECHO_T}no" >&6
14978 fi
14979
14980 fi
14981 if test -z "$ac_cv_prog_AR"; then
14982 ac_ct_AR=$AR
14983 # Extract the first word of "ar", so it can be a program name with args.
14984 set dummy ar; ac_word=$2
14985 echo "$as_me:$LINENO: checking for $ac_word" >&5
14986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14987 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989 else
14990 if test -n "$ac_ct_AR"; then
14991 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14992 else
14993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14994 for as_dir in $PATH
14995 do
14996 IFS=$as_save_IFS
14997 test -z "$as_dir" && as_dir=.
14998 for ac_exec_ext in '' $ac_executable_extensions; do
14999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15000 ac_cv_prog_ac_ct_AR="ar"
15001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15002 break 2
15003 fi
15004 done
15005 done
15006
15007 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15008 fi
15009 fi
15010 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15011 if test -n "$ac_ct_AR"; then
15012 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15013 echo "${ECHO_T}$ac_ct_AR" >&6
15014 else
15015 echo "$as_me:$LINENO: result: no" >&5
15016 echo "${ECHO_T}no" >&6
15017 fi
15018
15019 AR=$ac_ct_AR
15020 else
15021 AR="$ac_cv_prog_AR"
15022 fi
15023
15024 test -z "$AR" && AR=ar
15025 test -z "$AR_FLAGS" && AR_FLAGS=cru
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037 if test -n "$ac_tool_prefix"; then
15038 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15039 set dummy ${ac_tool_prefix}strip; ac_word=$2
15040 echo "$as_me:$LINENO: checking for $ac_word" >&5
15041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15042 if test "${ac_cv_prog_STRIP+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045 if test -n "$STRIP"; then
15046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15047 else
15048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15049 for as_dir in $PATH
15050 do
15051 IFS=$as_save_IFS
15052 test -z "$as_dir" && as_dir=.
15053 for ac_exec_ext in '' $ac_executable_extensions; do
15054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15055 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15057 break 2
15058 fi
15059 done
15060 done
15061
15062 fi
15063 fi
15064 STRIP=$ac_cv_prog_STRIP
15065 if test -n "$STRIP"; then
15066 echo "$as_me:$LINENO: result: $STRIP" >&5
15067 echo "${ECHO_T}$STRIP" >&6
15068 else
15069 echo "$as_me:$LINENO: result: no" >&5
15070 echo "${ECHO_T}no" >&6
15071 fi
15072
15073 fi
15074 if test -z "$ac_cv_prog_STRIP"; then
15075 ac_ct_STRIP=$STRIP
15076 # Extract the first word of "strip", so it can be a program name with args.
15077 set dummy strip; ac_word=$2
15078 echo "$as_me:$LINENO: checking for $ac_word" >&5
15079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15080 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083 if test -n "$ac_ct_STRIP"; then
15084 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15085 else
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15088 do
15089 IFS=$as_save_IFS
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_ac_ct_STRIP="strip"
15094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15095 break 2
15096 fi
15097 done
15098 done
15099
15100 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15101 fi
15102 fi
15103 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15104 if test -n "$ac_ct_STRIP"; then
15105 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15106 echo "${ECHO_T}$ac_ct_STRIP" >&6
15107 else
15108 echo "$as_me:$LINENO: result: no" >&5
15109 echo "${ECHO_T}no" >&6
15110 fi
15111
15112 STRIP=$ac_ct_STRIP
15113 else
15114 STRIP="$ac_cv_prog_STRIP"
15115 fi
15116
15117 test -z "$STRIP" && STRIP=:
15118
15119
15120
15121
15122
15123
15124 if test -n "$ac_tool_prefix"; then
15125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15127 echo "$as_me:$LINENO: checking for $ac_word" >&5
15128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15129 if test "${ac_cv_prog_RANLIB+set}" = set; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
15131 else
15132 if test -n "$RANLIB"; then
15133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15134 else
15135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15136 for as_dir in $PATH
15137 do
15138 IFS=$as_save_IFS
15139 test -z "$as_dir" && as_dir=.
15140 for ac_exec_ext in '' $ac_executable_extensions; do
15141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15144 break 2
15145 fi
15146 done
15147 done
15148
15149 fi
15150 fi
15151 RANLIB=$ac_cv_prog_RANLIB
15152 if test -n "$RANLIB"; then
15153 echo "$as_me:$LINENO: result: $RANLIB" >&5
15154 echo "${ECHO_T}$RANLIB" >&6
15155 else
15156 echo "$as_me:$LINENO: result: no" >&5
15157 echo "${ECHO_T}no" >&6
15158 fi
15159
15160 fi
15161 if test -z "$ac_cv_prog_RANLIB"; then
15162 ac_ct_RANLIB=$RANLIB
15163 # Extract the first word of "ranlib", so it can be a program name with args.
15164 set dummy ranlib; ac_word=$2
15165 echo "$as_me:$LINENO: checking for $ac_word" >&5
15166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170 if test -n "$ac_ct_RANLIB"; then
15171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15172 else
15173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15174 for as_dir in $PATH
15175 do
15176 IFS=$as_save_IFS
15177 test -z "$as_dir" && as_dir=.
15178 for ac_exec_ext in '' $ac_executable_extensions; do
15179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15180 ac_cv_prog_ac_ct_RANLIB="ranlib"
15181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15182 break 2
15183 fi
15184 done
15185 done
15186
15187 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15188 fi
15189 fi
15190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15191 if test -n "$ac_ct_RANLIB"; then
15192 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15193 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15194 else
15195 echo "$as_me:$LINENO: result: no" >&5
15196 echo "${ECHO_T}no" >&6
15197 fi
15198
15199 RANLIB=$ac_ct_RANLIB
15200 else
15201 RANLIB="$ac_cv_prog_RANLIB"
15202 fi
15203
15204 test -z "$RANLIB" && RANLIB=:
15205
15206
15207
15208
15209
15210
15211 # Determine commands to create old-style static archives.
15212 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15213 old_postinstall_cmds='chmod 644 $oldlib'
15214 old_postuninstall_cmds=
15215
15216 if test -n "$RANLIB"; then
15217 case $host_os in
15218 openbsd*)
15219 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15220 ;;
15221 *)
15222 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15223 ;;
15224 esac
15225 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15226 fi
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261 # If no C compiler was specified, use CC.
15262 LTCC=${LTCC-"$CC"}
15263
15264 # If no C compiler flags were specified, use CFLAGS.
15265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15266
15267 # Allow CC to be a program name with arguments.
15268 compiler=$CC
15269
15270
15271 # Check for command to grab the raw symbol name followed by C symbol from nm.
15272 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15273 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15274 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277
15278 # These are sane defaults that work on at least a few old systems.
15279 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15280
15281 # Character class describing NM global symbol codes.
15282 symcode='[BCDEGRST]'
15283
15284 # Regexp to match symbols that can be accessed directly from C.
15285 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15286
15287 # Define system-specific variables.
15288 case $host_os in
15289 aix*)
15290 symcode='[BCDT]'
15291 ;;
15292 cygwin* | mingw* | pw32* | cegcc*)
15293 symcode='[ABCDGISTW]'
15294 ;;
15295 hpux*)
15296 if test "$host_cpu" = ia64; then
15297 symcode='[ABCDEGRST]'
15298 fi
15299 ;;
15300 irix* | nonstopux*)
15301 symcode='[BCDEGRST]'
15302 ;;
15303 osf*)
15304 symcode='[BCDEGQRST]'
15305 ;;
15306 solaris*)
15307 symcode='[BDRT]'
15308 ;;
15309 sco3.2v5*)
15310 symcode='[DT]'
15311 ;;
15312 sysv4.2uw2*)
15313 symcode='[DT]'
15314 ;;
15315 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15316 symcode='[ABDT]'
15317 ;;
15318 sysv4)
15319 symcode='[DFNSTU]'
15320 ;;
15321 esac
15322
15323 # If we're using GNU nm, then use its standard symbol codes.
15324 case `$NM -V 2>&1` in
15325 *GNU* | *'with BFD'*)
15326 symcode='[ABCDGIRSTW]' ;;
15327 esac
15328
15329 # Transform an extracted symbol line into a proper C declaration.
15330 # Some systems (esp. on ia64) link data and code symbols differently,
15331 # so use this general approach.
15332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15333
15334 # Transform an extracted symbol line into symbol name and symbol address
15335 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15336 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
15337
15338 # Handle CRLF in mingw tool chain
15339 opt_cr=
15340 case $build_os in
15341 mingw*)
15342 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15343 ;;
15344 esac
15345
15346 # Try without a prefix underscore, then with it.
15347 for ac_symprfx in "" "_"; do
15348
15349 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15350 symxfrm="\\1 $ac_symprfx\\2 \\2"
15351
15352 # Write the raw and C identifiers.
15353 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15354 # Fake it for dumpbin and say T for any non-static function
15355 # and D for any global variable.
15356 # Also find C++ and __fastcall symbols from MSVC++,
15357 # which start with @ or ?.
15358 lt_cv_sys_global_symbol_pipe="$AWK '"\
15359 " {last_section=section; section=\$ 3};"\
15360 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15361 " \$ 0!~/External *\|/{next};"\
15362 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15363 " {if(hide[section]) next};"\
15364 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15365 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15366 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15367 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15368 " ' prfx=^$ac_symprfx"
15369 else
15370 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15371 fi
15372
15373 # Check to see that the pipe works correctly.
15374 pipe_works=no
15375
15376 rm -f conftest*
15377 cat > conftest.$ac_ext <<_LT_EOF
15378 #ifdef __cplusplus
15379 extern "C" {
15380 #endif
15381 char nm_test_var;
15382 void nm_test_func(void);
15383 void nm_test_func(void){}
15384 #ifdef __cplusplus
15385 }
15386 #endif
15387 int main(){nm_test_var='a';nm_test_func();return(0);}
15388 _LT_EOF
15389
15390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15391 (eval $ac_compile) 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; then
15395 # Now try to grab the symbols.
15396 nlist=conftest.nm
15397 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15398 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } && test -s "$nlist"; then
15402 # Try sorting and uniquifying the output.
15403 if sort "$nlist" | uniq > "$nlist"T; then
15404 mv -f "$nlist"T "$nlist"
15405 else
15406 rm -f "$nlist"T
15407 fi
15408
15409 # Make sure that we snagged all the symbols we need.
15410 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15411 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15412 cat <<_LT_EOF > conftest.$ac_ext
15413 #ifdef __cplusplus
15414 extern "C" {
15415 #endif
15416
15417 _LT_EOF
15418 # Now generate the symbol file.
15419 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15420
15421 cat <<_LT_EOF >> conftest.$ac_ext
15422
15423 /* The mapping between symbol names and symbols. */
15424 const struct {
15425 const char *name;
15426 void *address;
15427 }
15428 lt__PROGRAM__LTX_preloaded_symbols[] =
15429 {
15430 { "@PROGRAM@", (void *) 0 },
15431 _LT_EOF
15432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15433 cat <<\_LT_EOF >> conftest.$ac_ext
15434 {0, (void *) 0}
15435 };
15436
15437 /* This works around a problem in FreeBSD linker */
15438 #ifdef FREEBSD_WORKAROUND
15439 static const void *lt_preloaded_setup() {
15440 return lt__PROGRAM__LTX_preloaded_symbols;
15441 }
15442 #endif
15443
15444 #ifdef __cplusplus
15445 }
15446 #endif
15447 _LT_EOF
15448 # Now try linking the two files.
15449 mv conftest.$ac_objext conftstm.$ac_objext
15450 lt_save_LIBS="$LIBS"
15451 lt_save_CFLAGS="$CFLAGS"
15452 LIBS="conftstm.$ac_objext"
15453 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15455 (eval $ac_link) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15459 pipe_works=yes
15460 fi
15461 LIBS="$lt_save_LIBS"
15462 CFLAGS="$lt_save_CFLAGS"
15463 else
15464 echo "cannot find nm_test_func in $nlist" >&5
15465 fi
15466 else
15467 echo "cannot find nm_test_var in $nlist" >&5
15468 fi
15469 else
15470 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15471 fi
15472 else
15473 echo "$progname: failed program was:" >&5
15474 cat conftest.$ac_ext >&5
15475 fi
15476 rm -rf conftest* conftst*
15477
15478 # Do not use the global_symbol_pipe unless it works.
15479 if test "$pipe_works" = yes; then
15480 break
15481 else
15482 lt_cv_sys_global_symbol_pipe=
15483 fi
15484 done
15485
15486 fi
15487
15488 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15489 lt_cv_sys_global_symbol_to_cdecl=
15490 fi
15491 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15492 echo "$as_me:$LINENO: result: failed" >&5
15493 echo "${ECHO_T}failed" >&6
15494 else
15495 echo "$as_me:$LINENO: result: ok" >&5
15496 echo "${ECHO_T}ok" >&6
15497 fi
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15521 if test "${enable_libtool_lock+set}" = set; then
15522 enableval="$enable_libtool_lock"
15523
15524 fi;
15525 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15526
15527 # Some flags need to be propagated to the compiler or linker for good
15528 # libtool support.
15529 case $host in
15530 ia64-*-hpux*)
15531 # Find out which ABI we are using.
15532 echo 'int i;' > conftest.$ac_ext
15533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15534 (eval $ac_compile) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; then
15538 case `/usr/bin/file conftest.$ac_objext` in
15539 *ELF-32*)
15540 HPUX_IA64_MODE="32"
15541 ;;
15542 *ELF-64*)
15543 HPUX_IA64_MODE="64"
15544 ;;
15545 esac
15546 fi
15547 rm -rf conftest*
15548 ;;
15549 *-*-irix6*)
15550 # Find out which ABI we are using.
15551 echo '#line 15551 "configure"' > conftest.$ac_ext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553 (eval $ac_compile) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; then
15557 if test "$lt_cv_prog_gnu_ld" = yes; then
15558 case `/usr/bin/file conftest.$ac_objext` in
15559 *32-bit*)
15560 LD="${LD-ld} -melf32bsmip"
15561 ;;
15562 *N32*)
15563 LD="${LD-ld} -melf32bmipn32"
15564 ;;
15565 *64-bit*)
15566 LD="${LD-ld} -melf64bmip"
15567 ;;
15568 esac
15569 else
15570 case `/usr/bin/file conftest.$ac_objext` in
15571 *32-bit*)
15572 LD="${LD-ld} -32"
15573 ;;
15574 *N32*)
15575 LD="${LD-ld} -n32"
15576 ;;
15577 *64-bit*)
15578 LD="${LD-ld} -64"
15579 ;;
15580 esac
15581 fi
15582 fi
15583 rm -rf conftest*
15584 ;;
15585
15586 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15587 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15588 # Find out which ABI we are using.
15589 echo 'int i;' > conftest.$ac_ext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591 (eval $ac_compile) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; then
15595 case `/usr/bin/file conftest.o` in
15596 *32-bit*)
15597 case $host in
15598 x86_64-*kfreebsd*-gnu)
15599 LD="${LD-ld} -m elf_i386_fbsd"
15600 ;;
15601 x86_64-*linux*)
15602 LD="${LD-ld} -m elf_i386"
15603 ;;
15604 ppc64-*linux*|powerpc64-*linux*)
15605 LD="${LD-ld} -m elf32ppclinux"
15606 ;;
15607 s390x-*linux*)
15608 LD="${LD-ld} -m elf_s390"
15609 ;;
15610 sparc64-*linux*)
15611 LD="${LD-ld} -m elf32_sparc"
15612 ;;
15613 esac
15614 ;;
15615 *64-bit*)
15616 case $host in
15617 x86_64-*kfreebsd*-gnu)
15618 LD="${LD-ld} -m elf_x86_64_fbsd"
15619 ;;
15620 x86_64-*linux*)
15621 LD="${LD-ld} -m elf_x86_64"
15622 ;;
15623 ppc*-*linux*|powerpc*-*linux*)
15624 LD="${LD-ld} -m elf64ppc"
15625 ;;
15626 s390*-*linux*|s390*-*tpf*)
15627 LD="${LD-ld} -m elf64_s390"
15628 ;;
15629 sparc*-*linux*)
15630 LD="${LD-ld} -m elf64_sparc"
15631 ;;
15632 esac
15633 ;;
15634 esac
15635 fi
15636 rm -rf conftest*
15637 ;;
15638
15639 *-*-sco3.2v5*)
15640 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15641 SAVE_CFLAGS="$CFLAGS"
15642 CFLAGS="$CFLAGS -belf"
15643 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15644 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15645 if test "${lt_cv_cc_needs_belf+set}" = set; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 else
15648 ac_ext=c
15649 ac_cpp='$CPP $CPPFLAGS'
15650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15653
15654 cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h. */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660
15661 int
15662 main ()
15663 {
15664
15665 ;
15666 return 0;
15667 }
15668 _ACEOF
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15671 (eval $ac_link) 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag"
15679 || test ! -s conftest.err'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest$ac_exeext'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 lt_cv_cc_needs_belf=yes
15692 else
15693 echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15695
15696 lt_cv_cc_needs_belf=no
15697 fi
15698 rm -f conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15700 ac_ext=c
15701 ac_cpp='$CPP $CPPFLAGS'
15702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15705
15706 fi
15707 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15708 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15709 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15710 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15711 CFLAGS="$SAVE_CFLAGS"
15712 fi
15713 ;;
15714 sparc*-*solaris*)
15715 # Find out which ABI we are using.
15716 echo 'int i;' > conftest.$ac_ext
15717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15718 (eval $ac_compile) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; then
15722 case `/usr/bin/file conftest.o` in
15723 *64-bit*)
15724 case $lt_cv_prog_gnu_ld in
15725 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15726 *)
15727 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15728 LD="${LD-ld} -64"
15729 fi
15730 ;;
15731 esac
15732 ;;
15733 esac
15734 fi
15735 rm -rf conftest*
15736 ;;
15737 esac
15738
15739 need_locks="$enable_libtool_lock"
15740
15741
15742 case $host_os in
15743 rhapsody* | darwin*)
15744 if test -n "$ac_tool_prefix"; then
15745 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15746 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15747 echo "$as_me:$LINENO: checking for $ac_word" >&5
15748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15749 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 else
15752 if test -n "$DSYMUTIL"; then
15753 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15754 else
15755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15756 for as_dir in $PATH
15757 do
15758 IFS=$as_save_IFS
15759 test -z "$as_dir" && as_dir=.
15760 for ac_exec_ext in '' $ac_executable_extensions; do
15761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15762 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15764 break 2
15765 fi
15766 done
15767 done
15768
15769 fi
15770 fi
15771 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15772 if test -n "$DSYMUTIL"; then
15773 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
15774 echo "${ECHO_T}$DSYMUTIL" >&6
15775 else
15776 echo "$as_me:$LINENO: result: no" >&5
15777 echo "${ECHO_T}no" >&6
15778 fi
15779
15780 fi
15781 if test -z "$ac_cv_prog_DSYMUTIL"; then
15782 ac_ct_DSYMUTIL=$DSYMUTIL
15783 # Extract the first word of "dsymutil", so it can be a program name with args.
15784 set dummy dsymutil; ac_word=$2
15785 echo "$as_me:$LINENO: checking for $ac_word" >&5
15786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15787 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
15788 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 else
15790 if test -n "$ac_ct_DSYMUTIL"; then
15791 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15792 else
15793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15794 for as_dir in $PATH
15795 do
15796 IFS=$as_save_IFS
15797 test -z "$as_dir" && as_dir=.
15798 for ac_exec_ext in '' $ac_executable_extensions; do
15799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15800 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15802 break 2
15803 fi
15804 done
15805 done
15806
15807 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
15808 fi
15809 fi
15810 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15811 if test -n "$ac_ct_DSYMUTIL"; then
15812 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
15813 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
15814 else
15815 echo "$as_me:$LINENO: result: no" >&5
15816 echo "${ECHO_T}no" >&6
15817 fi
15818
15819 DSYMUTIL=$ac_ct_DSYMUTIL
15820 else
15821 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15822 fi
15823
15824 if test -n "$ac_tool_prefix"; then
15825 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15826 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15827 echo "$as_me:$LINENO: checking for $ac_word" >&5
15828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15829 if test "${ac_cv_prog_NMEDIT+set}" = set; then
15830 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 else
15832 if test -n "$NMEDIT"; then
15833 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15834 else
15835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836 for as_dir in $PATH
15837 do
15838 IFS=$as_save_IFS
15839 test -z "$as_dir" && as_dir=.
15840 for ac_exec_ext in '' $ac_executable_extensions; do
15841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15842 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15844 break 2
15845 fi
15846 done
15847 done
15848
15849 fi
15850 fi
15851 NMEDIT=$ac_cv_prog_NMEDIT
15852 if test -n "$NMEDIT"; then
15853 echo "$as_me:$LINENO: result: $NMEDIT" >&5
15854 echo "${ECHO_T}$NMEDIT" >&6
15855 else
15856 echo "$as_me:$LINENO: result: no" >&5
15857 echo "${ECHO_T}no" >&6
15858 fi
15859
15860 fi
15861 if test -z "$ac_cv_prog_NMEDIT"; then
15862 ac_ct_NMEDIT=$NMEDIT
15863 # Extract the first word of "nmedit", so it can be a program name with args.
15864 set dummy nmedit; ac_word=$2
15865 echo "$as_me:$LINENO: checking for $ac_word" >&5
15866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15867 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870 if test -n "$ac_ct_NMEDIT"; then
15871 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15872 else
15873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15874 for as_dir in $PATH
15875 do
15876 IFS=$as_save_IFS
15877 test -z "$as_dir" && as_dir=.
15878 for ac_exec_ext in '' $ac_executable_extensions; do
15879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15880 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15882 break 2
15883 fi
15884 done
15885 done
15886
15887 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
15888 fi
15889 fi
15890 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15891 if test -n "$ac_ct_NMEDIT"; then
15892 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
15893 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
15894 else
15895 echo "$as_me:$LINENO: result: no" >&5
15896 echo "${ECHO_T}no" >&6
15897 fi
15898
15899 NMEDIT=$ac_ct_NMEDIT
15900 else
15901 NMEDIT="$ac_cv_prog_NMEDIT"
15902 fi
15903
15904 if test -n "$ac_tool_prefix"; then
15905 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15906 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15907 echo "$as_me:$LINENO: checking for $ac_word" >&5
15908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15909 if test "${ac_cv_prog_LIPO+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912 if test -n "$LIPO"; then
15913 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15914 else
15915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15917 do
15918 IFS=$as_save_IFS
15919 test -z "$as_dir" && as_dir=.
15920 for ac_exec_ext in '' $ac_executable_extensions; do
15921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15922 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15924 break 2
15925 fi
15926 done
15927 done
15928
15929 fi
15930 fi
15931 LIPO=$ac_cv_prog_LIPO
15932 if test -n "$LIPO"; then
15933 echo "$as_me:$LINENO: result: $LIPO" >&5
15934 echo "${ECHO_T}$LIPO" >&6
15935 else
15936 echo "$as_me:$LINENO: result: no" >&5
15937 echo "${ECHO_T}no" >&6
15938 fi
15939
15940 fi
15941 if test -z "$ac_cv_prog_LIPO"; then
15942 ac_ct_LIPO=$LIPO
15943 # Extract the first word of "lipo", so it can be a program name with args.
15944 set dummy lipo; ac_word=$2
15945 echo "$as_me:$LINENO: checking for $ac_word" >&5
15946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15947 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15949 else
15950 if test -n "$ac_ct_LIPO"; then
15951 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15952 else
15953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15954 for as_dir in $PATH
15955 do
15956 IFS=$as_save_IFS
15957 test -z "$as_dir" && as_dir=.
15958 for ac_exec_ext in '' $ac_executable_extensions; do
15959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15960 ac_cv_prog_ac_ct_LIPO="lipo"
15961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15962 break 2
15963 fi
15964 done
15965 done
15966
15967 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
15968 fi
15969 fi
15970 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15971 if test -n "$ac_ct_LIPO"; then
15972 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
15973 echo "${ECHO_T}$ac_ct_LIPO" >&6
15974 else
15975 echo "$as_me:$LINENO: result: no" >&5
15976 echo "${ECHO_T}no" >&6
15977 fi
15978
15979 LIPO=$ac_ct_LIPO
15980 else
15981 LIPO="$ac_cv_prog_LIPO"
15982 fi
15983
15984 if test -n "$ac_tool_prefix"; then
15985 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15986 set dummy ${ac_tool_prefix}otool; ac_word=$2
15987 echo "$as_me:$LINENO: checking for $ac_word" >&5
15988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15989 if test "${ac_cv_prog_OTOOL+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992 if test -n "$OTOOL"; then
15993 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15994 else
15995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15996 for as_dir in $PATH
15997 do
15998 IFS=$as_save_IFS
15999 test -z "$as_dir" && as_dir=.
16000 for ac_exec_ext in '' $ac_executable_extensions; do
16001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16002 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16004 break 2
16005 fi
16006 done
16007 done
16008
16009 fi
16010 fi
16011 OTOOL=$ac_cv_prog_OTOOL
16012 if test -n "$OTOOL"; then
16013 echo "$as_me:$LINENO: result: $OTOOL" >&5
16014 echo "${ECHO_T}$OTOOL" >&6
16015 else
16016 echo "$as_me:$LINENO: result: no" >&5
16017 echo "${ECHO_T}no" >&6
16018 fi
16019
16020 fi
16021 if test -z "$ac_cv_prog_OTOOL"; then
16022 ac_ct_OTOOL=$OTOOL
16023 # Extract the first word of "otool", so it can be a program name with args.
16024 set dummy otool; ac_word=$2
16025 echo "$as_me:$LINENO: checking for $ac_word" >&5
16026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16027 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 else
16030 if test -n "$ac_ct_OTOOL"; then
16031 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16032 else
16033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16034 for as_dir in $PATH
16035 do
16036 IFS=$as_save_IFS
16037 test -z "$as_dir" && as_dir=.
16038 for ac_exec_ext in '' $ac_executable_extensions; do
16039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16040 ac_cv_prog_ac_ct_OTOOL="otool"
16041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16042 break 2
16043 fi
16044 done
16045 done
16046
16047 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
16048 fi
16049 fi
16050 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16051 if test -n "$ac_ct_OTOOL"; then
16052 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
16053 echo "${ECHO_T}$ac_ct_OTOOL" >&6
16054 else
16055 echo "$as_me:$LINENO: result: no" >&5
16056 echo "${ECHO_T}no" >&6
16057 fi
16058
16059 OTOOL=$ac_ct_OTOOL
16060 else
16061 OTOOL="$ac_cv_prog_OTOOL"
16062 fi
16063
16064 if test -n "$ac_tool_prefix"; then
16065 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16066 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16067 echo "$as_me:$LINENO: checking for $ac_word" >&5
16068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16069 if test "${ac_cv_prog_OTOOL64+set}" = set; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 else
16072 if test -n "$OTOOL64"; then
16073 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16074 else
16075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16076 for as_dir in $PATH
16077 do
16078 IFS=$as_save_IFS
16079 test -z "$as_dir" && as_dir=.
16080 for ac_exec_ext in '' $ac_executable_extensions; do
16081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16082 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16084 break 2
16085 fi
16086 done
16087 done
16088
16089 fi
16090 fi
16091 OTOOL64=$ac_cv_prog_OTOOL64
16092 if test -n "$OTOOL64"; then
16093 echo "$as_me:$LINENO: result: $OTOOL64" >&5
16094 echo "${ECHO_T}$OTOOL64" >&6
16095 else
16096 echo "$as_me:$LINENO: result: no" >&5
16097 echo "${ECHO_T}no" >&6
16098 fi
16099
16100 fi
16101 if test -z "$ac_cv_prog_OTOOL64"; then
16102 ac_ct_OTOOL64=$OTOOL64
16103 # Extract the first word of "otool64", so it can be a program name with args.
16104 set dummy otool64; ac_word=$2
16105 echo "$as_me:$LINENO: checking for $ac_word" >&5
16106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16107 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110 if test -n "$ac_ct_OTOOL64"; then
16111 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16112 else
16113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16114 for as_dir in $PATH
16115 do
16116 IFS=$as_save_IFS
16117 test -z "$as_dir" && as_dir=.
16118 for ac_exec_ext in '' $ac_executable_extensions; do
16119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16120 ac_cv_prog_ac_ct_OTOOL64="otool64"
16121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16122 break 2
16123 fi
16124 done
16125 done
16126
16127 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
16128 fi
16129 fi
16130 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16131 if test -n "$ac_ct_OTOOL64"; then
16132 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
16133 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
16134 else
16135 echo "$as_me:$LINENO: result: no" >&5
16136 echo "${ECHO_T}no" >&6
16137 fi
16138
16139 OTOOL64=$ac_ct_OTOOL64
16140 else
16141 OTOOL64="$ac_cv_prog_OTOOL64"
16142 fi
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
16171 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
16172 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 else
16175 lt_cv_apple_cc_single_mod=no
16176 if test -z "${LT_MULTI_MODULE}"; then
16177 # By default we will add the -single_module flag. You can override
16178 # by either setting the environment variable LT_MULTI_MODULE
16179 # non-empty at configure time, or by adding -multi_module to the
16180 # link flags.
16181 rm -rf libconftest.dylib*
16182 echo "int foo(void){return 1;}" > conftest.c
16183 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16184 -dynamiclib -Wl,-single_module conftest.c" >&5
16185 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16186 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16187 _lt_result=$?
16188 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16189 lt_cv_apple_cc_single_mod=yes
16190 else
16191 cat conftest.err >&5
16192 fi
16193 rm -rf libconftest.dylib*
16194 rm -f conftest.*
16195 fi
16196 fi
16197 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
16198 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
16199 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
16200 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
16201 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204 lt_cv_ld_exported_symbols_list=no
16205 save_LDFLAGS=$LDFLAGS
16206 echo "_main" > conftest.sym
16207 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16208 cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h. */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214
16215 int
16216 main ()
16217 {
16218
16219 ;
16220 return 0;
16221 }
16222 _ACEOF
16223 rm -f conftest.$ac_objext conftest$ac_exeext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16225 (eval $ac_link) 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest$ac_exeext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 lt_cv_ld_exported_symbols_list=yes
16246 else
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16249
16250 lt_cv_ld_exported_symbols_list=no
16251 fi
16252 rm -f conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 LDFLAGS="$save_LDFLAGS"
16255
16256 fi
16257 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
16258 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
16259 case $host_os in
16260 rhapsody* | darwin1.[012])
16261 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16262 darwin1.*)
16263 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16264 darwin*) # darwin 5.x on
16265 # if running on 10.5 or later, the deployment target defaults
16266 # to the OS version, if on x86, and 10.4, the deployment
16267 # target defaults to 10.4. Don't you love it?
16268 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16269 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16270 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16271 10.[012]*)
16272 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16273 10.*)
16274 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16275 esac
16276 ;;
16277 esac
16278 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16279 _lt_dar_single_mod='$single_module'
16280 fi
16281 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16282 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16283 else
16284 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16285 fi
16286 if test "$DSYMUTIL" != ":"; then
16287 _lt_dsymutil='~$DSYMUTIL $lib || :'
16288 else
16289 _lt_dsymutil=
16290 fi
16291 ;;
16292 esac
16293
16294
16295 for ac_header in dlfcn.h
16296 do
16297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16298 echo "$as_me:$LINENO: checking for $ac_header" >&5
16299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 else
16303 cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h. */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16309 #include <$ac_header>
16310 _ACEOF
16311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16313 ac_status=$?
16314 grep -v '^ *+' conftest.er1 >conftest.err
16315 rm -f conftest.er1
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } >/dev/null; then
16319 if test -s conftest.err; then
16320 ac_cpp_err=$ac_c_preproc_warn_flag
16321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16322 else
16323 ac_cpp_err=
16324 fi
16325 else
16326 ac_cpp_err=yes
16327 fi
16328 if test -z "$ac_cpp_err"; then
16329 eval "$as_ac_Header=yes"
16330 else
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334 eval "$as_ac_Header=no"
16335 fi
16336 rm -f conftest.err conftest.$ac_ext
16337 fi
16338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16341 cat >>confdefs.h <<_ACEOF
16342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16343 _ACEOF
16344
16345 fi
16346 done
16347
16348
16349
16350 # Set options
16351
16352
16353
16354 enable_dlopen=no
16355
16356
16357 enable_win32_dll=no
16358
16359
16360 # Check whether --enable-shared or --disable-shared was given.
16361 if test "${enable_shared+set}" = set; then
16362 enableval="$enable_shared"
16363 p=${PACKAGE-default}
16364 case $enableval in
16365 yes) enable_shared=yes ;;
16366 no) enable_shared=no ;;
16367 *)
16368 enable_shared=no
16369 # Look at the argument we got. We use all the common list separators.
16370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16371 for pkg in $enableval; do
16372 IFS="$lt_save_ifs"
16373 if test "X$pkg" = "X$p"; then
16374 enable_shared=yes
16375 fi
16376 done
16377 IFS="$lt_save_ifs"
16378 ;;
16379 esac
16380 else
16381 enable_shared=yes
16382 fi;
16383
16384
16385
16386
16387
16388
16389
16390
16391 # Check whether --enable-static or --disable-static was given.
16392 if test "${enable_static+set}" = set; then
16393 enableval="$enable_static"
16394 p=${PACKAGE-default}
16395 case $enableval in
16396 yes) enable_static=yes ;;
16397 no) enable_static=no ;;
16398 *)
16399 enable_static=no
16400 # Look at the argument we got. We use all the common list separators.
16401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16402 for pkg in $enableval; do
16403 IFS="$lt_save_ifs"
16404 if test "X$pkg" = "X$p"; then
16405 enable_static=yes
16406 fi
16407 done
16408 IFS="$lt_save_ifs"
16409 ;;
16410 esac
16411 else
16412 enable_static=yes
16413 fi;
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423 # Check whether --with-pic or --without-pic was given.
16424 if test "${with_pic+set}" = set; then
16425 withval="$with_pic"
16426 pic_mode="$withval"
16427 else
16428 pic_mode=default
16429 fi;
16430
16431 test -z "$pic_mode" && pic_mode=default
16432
16433
16434
16435
16436
16437
16438
16439 # Check whether --enable-fast-install or --disable-fast-install was given.
16440 if test "${enable_fast_install+set}" = set; then
16441 enableval="$enable_fast_install"
16442 p=${PACKAGE-default}
16443 case $enableval in
16444 yes) enable_fast_install=yes ;;
16445 no) enable_fast_install=no ;;
16446 *)
16447 enable_fast_install=no
16448 # Look at the argument we got. We use all the common list separators.
16449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16450 for pkg in $enableval; do
16451 IFS="$lt_save_ifs"
16452 if test "X$pkg" = "X$p"; then
16453 enable_fast_install=yes
16454 fi
16455 done
16456 IFS="$lt_save_ifs"
16457 ;;
16458 esac
16459 else
16460 enable_fast_install=yes
16461 fi;
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472 # This can be used to rebuild libtool when needed
16473 LIBTOOL_DEPS="$ltmain"
16474
16475 # Always use our own libtool.
16476 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502 test -z "$LN_S" && LN_S="ln -s"
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517 if test -n "${ZSH_VERSION+set}" ; then
16518 setopt NO_GLOB_SUBST
16519 fi
16520
16521 echo "$as_me:$LINENO: checking for objdir" >&5
16522 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16523 if test "${lt_cv_objdir+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526 rm -f .libs 2>/dev/null
16527 mkdir .libs 2>/dev/null
16528 if test -d .libs; then
16529 lt_cv_objdir=.libs
16530 else
16531 # MS-DOS does not allow filenames that begin with a dot.
16532 lt_cv_objdir=_libs
16533 fi
16534 rmdir .libs 2>/dev/null
16535 fi
16536 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16537 echo "${ECHO_T}$lt_cv_objdir" >&6
16538 objdir=$lt_cv_objdir
16539
16540
16541
16542
16543
16544 cat >>confdefs.h <<_ACEOF
16545 #define LT_OBJDIR "$lt_cv_objdir/"
16546 _ACEOF
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564 case $host_os in
16565 aix3*)
16566 # AIX sometimes has problems with the GCC collect2 program. For some
16567 # reason, if we set the COLLECT_NAMES environment variable, the problems
16568 # vanish in a puff of smoke.
16569 if test "X${COLLECT_NAMES+set}" != Xset; then
16570 COLLECT_NAMES=
16571 export COLLECT_NAMES
16572 fi
16573 ;;
16574 esac
16575
16576 # Sed substitution that helps us do robust quoting. It backslashifies
16577 # metacharacters that are still active within double-quoted strings.
16578 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16579
16580 # Same as above, but do not quote variable references.
16581 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16582
16583 # Sed substitution to delay expansion of an escaped shell variable in a
16584 # double_quote_subst'ed string.
16585 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16586
16587 # Sed substitution to delay expansion of an escaped single quote.
16588 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16589
16590 # Sed substitution to avoid accidental globbing in evaled expressions
16591 no_glob_subst='s/\*/\\\*/g'
16592
16593 # Global variables:
16594 ofile=libtool
16595 can_build_shared=yes
16596
16597 # All known linkers require a `.a' archive for static linking (except MSVC,
16598 # which needs '.lib').
16599 libext=a
16600
16601 with_gnu_ld="$lt_cv_prog_gnu_ld"
16602
16603 old_CC="$CC"
16604 old_CFLAGS="$CFLAGS"
16605
16606 # Set sane defaults for various variables
16607 test -z "$CC" && CC=cc
16608 test -z "$LTCC" && LTCC=$CC
16609 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16610 test -z "$LD" && LD=ld
16611 test -z "$ac_objext" && ac_objext=o
16612
16613 for cc_temp in $compiler""; do
16614 case $cc_temp in
16615 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16616 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16617 \-*) ;;
16618 *) break;;
16619 esac
16620 done
16621 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16622
16623
16624 # Only perform the check for file, if the check method requires it
16625 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16626 case $deplibs_check_method in
16627 file_magic*)
16628 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16629 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16630 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16631 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634 case $MAGIC_CMD in
16635 [\\/*] | ?:[\\/]*)
16636 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16637 ;;
16638 *)
16639 lt_save_MAGIC_CMD="$MAGIC_CMD"
16640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16642 for ac_dir in $ac_dummy; do
16643 IFS="$lt_save_ifs"
16644 test -z "$ac_dir" && ac_dir=.
16645 if test -f $ac_dir/${ac_tool_prefix}file; then
16646 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16647 if test -n "$file_magic_test_file"; then
16648 case $deplibs_check_method in
16649 "file_magic "*)
16650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16653 $EGREP "$file_magic_regex" > /dev/null; then
16654 :
16655 else
16656 cat <<_LT_EOF 1>&2
16657
16658 *** Warning: the command libtool uses to detect shared libraries,
16659 *** $file_magic_cmd, produces output that libtool cannot recognize.
16660 *** The result is that libtool may fail to recognize shared libraries
16661 *** as such. This will affect the creation of libtool libraries that
16662 *** depend on shared libraries, but programs linked with such libtool
16663 *** libraries will work regardless of this problem. Nevertheless, you
16664 *** may want to report the problem to your system manager and/or to
16665 *** bug-libtool@gnu.org
16666
16667 _LT_EOF
16668 fi ;;
16669 esac
16670 fi
16671 break
16672 fi
16673 done
16674 IFS="$lt_save_ifs"
16675 MAGIC_CMD="$lt_save_MAGIC_CMD"
16676 ;;
16677 esac
16678 fi
16679
16680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16681 if test -n "$MAGIC_CMD"; then
16682 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16683 echo "${ECHO_T}$MAGIC_CMD" >&6
16684 else
16685 echo "$as_me:$LINENO: result: no" >&5
16686 echo "${ECHO_T}no" >&6
16687 fi
16688
16689
16690
16691
16692
16693 if test -z "$lt_cv_path_MAGIC_CMD"; then
16694 if test -n "$ac_tool_prefix"; then
16695 echo "$as_me:$LINENO: checking for file" >&5
16696 echo $ECHO_N "checking for file... $ECHO_C" >&6
16697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 else
16700 case $MAGIC_CMD in
16701 [\\/*] | ?:[\\/]*)
16702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16703 ;;
16704 *)
16705 lt_save_MAGIC_CMD="$MAGIC_CMD"
16706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16707 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16708 for ac_dir in $ac_dummy; do
16709 IFS="$lt_save_ifs"
16710 test -z "$ac_dir" && ac_dir=.
16711 if test -f $ac_dir/file; then
16712 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16713 if test -n "$file_magic_test_file"; then
16714 case $deplibs_check_method in
16715 "file_magic "*)
16716 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16717 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16718 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16719 $EGREP "$file_magic_regex" > /dev/null; then
16720 :
16721 else
16722 cat <<_LT_EOF 1>&2
16723
16724 *** Warning: the command libtool uses to detect shared libraries,
16725 *** $file_magic_cmd, produces output that libtool cannot recognize.
16726 *** The result is that libtool may fail to recognize shared libraries
16727 *** as such. This will affect the creation of libtool libraries that
16728 *** depend on shared libraries, but programs linked with such libtool
16729 *** libraries will work regardless of this problem. Nevertheless, you
16730 *** may want to report the problem to your system manager and/or to
16731 *** bug-libtool@gnu.org
16732
16733 _LT_EOF
16734 fi ;;
16735 esac
16736 fi
16737 break
16738 fi
16739 done
16740 IFS="$lt_save_ifs"
16741 MAGIC_CMD="$lt_save_MAGIC_CMD"
16742 ;;
16743 esac
16744 fi
16745
16746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16747 if test -n "$MAGIC_CMD"; then
16748 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16749 echo "${ECHO_T}$MAGIC_CMD" >&6
16750 else
16751 echo "$as_me:$LINENO: result: no" >&5
16752 echo "${ECHO_T}no" >&6
16753 fi
16754
16755
16756 else
16757 MAGIC_CMD=:
16758 fi
16759 fi
16760
16761 fi
16762 ;;
16763 esac
16764
16765 # Use C for the default configuration in the libtool script
16766
16767 lt_save_CC="$CC"
16768 ac_ext=c
16769 ac_cpp='$CPP $CPPFLAGS'
16770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16773
16774
16775 # Source file extension for C test sources.
16776 ac_ext=c
16777
16778 # Object file extension for compiled C test sources.
16779 objext=o
16780 objext=$objext
16781
16782 # Code to be used in simple compile tests
16783 lt_simple_compile_test_code="int some_variable = 0;"
16784
16785 # Code to be used in simple link tests
16786 lt_simple_link_test_code='int main(){return(0);}'
16787
16788
16789
16790
16791
16792
16793
16794 # If no C compiler was specified, use CC.
16795 LTCC=${LTCC-"$CC"}
16796
16797 # If no C compiler flags were specified, use CFLAGS.
16798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16799
16800 # Allow CC to be a program name with arguments.
16801 compiler=$CC
16802
16803 # Save the default compiler, since it gets overwritten when the other
16804 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16805 compiler_DEFAULT=$CC
16806
16807 # save warnings/boilerplate of simple test code
16808 ac_outfile=conftest.$ac_objext
16809 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16810 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16811 _lt_compiler_boilerplate=`cat conftest.err`
16812 $RM conftest*
16813
16814 ac_outfile=conftest.$ac_objext
16815 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16816 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16817 _lt_linker_boilerplate=`cat conftest.err`
16818 $RM -r conftest*
16819
16820
16821 ## CAVEAT EMPTOR:
16822 ## There is no encapsulation within the following macros, do not change
16823 ## the running order or otherwise move them around unless you know exactly
16824 ## what you are doing...
16825 if test -n "$compiler"; then
16826
16827 lt_prog_compiler_no_builtin_flag=
16828
16829 if test "$GCC" = yes; then
16830 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16831
16832 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16833 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16834 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837 lt_cv_prog_compiler_rtti_exceptions=no
16838 ac_outfile=conftest.$ac_objext
16839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16840 lt_compiler_flag="-fno-rtti -fno-exceptions"
16841 # Insert the option either (1) after the last *FLAGS variable, or
16842 # (2) before a word containing "conftest.", or (3) at the end.
16843 # Note that $ac_compile itself does not contain backslashes and begins
16844 # with a dollar sign (not a hyphen), so the echo should work correctly.
16845 # The option is referenced via a variable to avoid confusing sed.
16846 lt_compile=`echo "$ac_compile" | $SED \
16847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16849 -e 's:$: $lt_compiler_flag:'`
16850 (eval echo "\"\$as_me:16850: $lt_compile\"" >&5)
16851 (eval "$lt_compile" 2>conftest.err)
16852 ac_status=$?
16853 cat conftest.err >&5
16854 echo "$as_me:16854: \$? = $ac_status" >&5
16855 if (exit $ac_status) && test -s "$ac_outfile"; then
16856 # The compiler can only warn and ignore the option if not recognized
16857 # So say no if there are warnings other than the usual output.
16858 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16860 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16861 lt_cv_prog_compiler_rtti_exceptions=yes
16862 fi
16863 fi
16864 $RM conftest*
16865
16866 fi
16867 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16868 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16869
16870 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16871 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16872 else
16873 :
16874 fi
16875
16876 fi
16877
16878
16879
16880
16881
16882
16883 lt_prog_compiler_wl=
16884 lt_prog_compiler_pic=
16885 lt_prog_compiler_static=
16886
16887 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16888 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16889
16890 if test "$GCC" = yes; then
16891 lt_prog_compiler_wl='-Wl,'
16892 lt_prog_compiler_static='-static'
16893
16894 case $host_os in
16895 aix*)
16896 # All AIX code is PIC.
16897 if test "$host_cpu" = ia64; then
16898 # AIX 5 now supports IA64 processor
16899 lt_prog_compiler_static='-Bstatic'
16900 fi
16901 ;;
16902
16903 amigaos*)
16904 case $host_cpu in
16905 powerpc)
16906 # see comment about AmigaOS4 .so support
16907 lt_prog_compiler_pic='-fPIC'
16908 ;;
16909 m68k)
16910 # FIXME: we need at least 68020 code to build shared libraries, but
16911 # adding the `-m68020' flag to GCC prevents building anything better,
16912 # like `-m68040'.
16913 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16914 ;;
16915 esac
16916 ;;
16917
16918 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16919 # PIC is the default for these OSes.
16920 ;;
16921
16922 mingw* | cygwin* | pw32* | os2* | cegcc*)
16923 # This hack is so that the source file can tell whether it is being
16924 # built for inclusion in a dll (and should export symbols for example).
16925 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16926 # (--disable-auto-import) libraries
16927 lt_prog_compiler_pic='-DDLL_EXPORT'
16928 ;;
16929
16930 darwin* | rhapsody*)
16931 # PIC is the default on this platform
16932 # Common symbols not allowed in MH_DYLIB files
16933 lt_prog_compiler_pic='-fno-common'
16934 ;;
16935
16936 hpux*)
16937 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16938 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16939 # sets the default TLS model and affects inlining.
16940 case $host_cpu in
16941 hppa*64*)
16942 # +Z the default
16943 ;;
16944 *)
16945 lt_prog_compiler_pic='-fPIC'
16946 ;;
16947 esac
16948 ;;
16949
16950 interix[3-9]*)
16951 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16952 # Instead, we relocate shared libraries at runtime.
16953 ;;
16954
16955 msdosdjgpp*)
16956 # Just because we use GCC doesn't mean we suddenly get shared libraries
16957 # on systems that don't support them.
16958 lt_prog_compiler_can_build_shared=no
16959 enable_shared=no
16960 ;;
16961
16962 *nto* | *qnx*)
16963 # QNX uses GNU C++, but need to define -shared option too, otherwise
16964 # it will coredump.
16965 lt_prog_compiler_pic='-fPIC -shared'
16966 ;;
16967
16968 sysv4*MP*)
16969 if test -d /usr/nec; then
16970 lt_prog_compiler_pic=-Kconform_pic
16971 fi
16972 ;;
16973
16974 *)
16975 lt_prog_compiler_pic='-fPIC'
16976 ;;
16977 esac
16978 else
16979 # PORTME Check for flag to pass linker flags through the system compiler.
16980 case $host_os in
16981 aix*)
16982 lt_prog_compiler_wl='-Wl,'
16983 if test "$host_cpu" = ia64; then
16984 # AIX 5 now supports IA64 processor
16985 lt_prog_compiler_static='-Bstatic'
16986 else
16987 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16988 fi
16989 ;;
16990
16991 mingw* | cygwin* | pw32* | os2* | cegcc*)
16992 # This hack is so that the source file can tell whether it is being
16993 # built for inclusion in a dll (and should export symbols for example).
16994 lt_prog_compiler_pic='-DDLL_EXPORT'
16995 ;;
16996
16997 hpux9* | hpux10* | hpux11*)
16998 lt_prog_compiler_wl='-Wl,'
16999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17000 # not for PA HP-UX.
17001 case $host_cpu in
17002 hppa*64*|ia64*)
17003 # +Z the default
17004 ;;
17005 *)
17006 lt_prog_compiler_pic='+Z'
17007 ;;
17008 esac
17009 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17010 lt_prog_compiler_static='${wl}-a ${wl}archive'
17011 ;;
17012
17013 irix5* | irix6* | nonstopux*)
17014 lt_prog_compiler_wl='-Wl,'
17015 # PIC (with -KPIC) is the default.
17016 lt_prog_compiler_static='-non_shared'
17017 ;;
17018
17019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17020 case $cc_basename in
17021 # old Intel for x86_64 which still supported -KPIC.
17022 ecc*)
17023 lt_prog_compiler_wl='-Wl,'
17024 lt_prog_compiler_pic='-KPIC'
17025 lt_prog_compiler_static='-static'
17026 ;;
17027 # icc used to be incompatible with GCC.
17028 # ICC 10 doesn't accept -KPIC any more.
17029 icc* | ifort*)
17030 lt_prog_compiler_wl='-Wl,'
17031 lt_prog_compiler_pic='-fPIC'
17032 lt_prog_compiler_static='-static'
17033 ;;
17034 # Lahey Fortran 8.1.
17035 lf95*)
17036 lt_prog_compiler_wl='-Wl,'
17037 lt_prog_compiler_pic='--shared'
17038 lt_prog_compiler_static='--static'
17039 ;;
17040 pgcc* | pgf77* | pgf90* | pgf95*)
17041 # Portland Group compilers (*not* the Pentium gcc compiler,
17042 # which looks to be a dead project)
17043 lt_prog_compiler_wl='-Wl,'
17044 lt_prog_compiler_pic='-fpic'
17045 lt_prog_compiler_static='-Bstatic'
17046 ;;
17047 ccc*)
17048 lt_prog_compiler_wl='-Wl,'
17049 # All Alpha code is PIC.
17050 lt_prog_compiler_static='-non_shared'
17051 ;;
17052 xl*)
17053 # IBM XL C 8.0/Fortran 10.1 on PPC
17054 lt_prog_compiler_wl='-Wl,'
17055 lt_prog_compiler_pic='-qpic'
17056 lt_prog_compiler_static='-qstaticlink'
17057 ;;
17058 *)
17059 case `$CC -V 2>&1 | sed 5q` in
17060 *Sun\ C*)
17061 # Sun C 5.9
17062 lt_prog_compiler_pic='-KPIC'
17063 lt_prog_compiler_static='-Bstatic'
17064 lt_prog_compiler_wl='-Wl,'
17065 ;;
17066 *Sun\ F*)
17067 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17068 lt_prog_compiler_pic='-KPIC'
17069 lt_prog_compiler_static='-Bstatic'
17070 lt_prog_compiler_wl=''
17071 ;;
17072 esac
17073 ;;
17074 esac
17075 ;;
17076
17077 newsos6)
17078 lt_prog_compiler_pic='-KPIC'
17079 lt_prog_compiler_static='-Bstatic'
17080 ;;
17081
17082 *nto* | *qnx*)
17083 # QNX uses GNU C++, but need to define -shared option too, otherwise
17084 # it will coredump.
17085 lt_prog_compiler_pic='-fPIC -shared'
17086 ;;
17087
17088 osf3* | osf4* | osf5*)
17089 lt_prog_compiler_wl='-Wl,'
17090 # All OSF/1 code is PIC.
17091 lt_prog_compiler_static='-non_shared'
17092 ;;
17093
17094 rdos*)
17095 lt_prog_compiler_static='-non_shared'
17096 ;;
17097
17098 solaris*)
17099 lt_prog_compiler_pic='-KPIC'
17100 lt_prog_compiler_static='-Bstatic'
17101 case $cc_basename in
17102 f77* | f90* | f95*)
17103 lt_prog_compiler_wl='-Qoption ld ';;
17104 *)
17105 lt_prog_compiler_wl='-Wl,';;
17106 esac
17107 ;;
17108
17109 sunos4*)
17110 lt_prog_compiler_wl='-Qoption ld '
17111 lt_prog_compiler_pic='-PIC'
17112 lt_prog_compiler_static='-Bstatic'
17113 ;;
17114
17115 sysv4 | sysv4.2uw2* | sysv4.3*)
17116 lt_prog_compiler_wl='-Wl,'
17117 lt_prog_compiler_pic='-KPIC'
17118 lt_prog_compiler_static='-Bstatic'
17119 ;;
17120
17121 sysv4*MP*)
17122 if test -d /usr/nec ;then
17123 lt_prog_compiler_pic='-Kconform_pic'
17124 lt_prog_compiler_static='-Bstatic'
17125 fi
17126 ;;
17127
17128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17129 lt_prog_compiler_wl='-Wl,'
17130 lt_prog_compiler_pic='-KPIC'
17131 lt_prog_compiler_static='-Bstatic'
17132 ;;
17133
17134 unicos*)
17135 lt_prog_compiler_wl='-Wl,'
17136 lt_prog_compiler_can_build_shared=no
17137 ;;
17138
17139 uts4*)
17140 lt_prog_compiler_pic='-pic'
17141 lt_prog_compiler_static='-Bstatic'
17142 ;;
17143
17144 *)
17145 lt_prog_compiler_can_build_shared=no
17146 ;;
17147 esac
17148 fi
17149
17150 case $host_os in
17151 # For platforms which do not support PIC, -DPIC is meaningless:
17152 *djgpp*)
17153 lt_prog_compiler_pic=
17154 ;;
17155 *)
17156 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17157 ;;
17158 esac
17159 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17160 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17161
17162
17163
17164
17165
17166
17167 #
17168 # Check to make sure the PIC flag actually works.
17169 #
17170 if test -n "$lt_prog_compiler_pic"; then
17171 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17172 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17173 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 else
17176 lt_cv_prog_compiler_pic_works=no
17177 ac_outfile=conftest.$ac_objext
17178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17179 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17180 # Insert the option either (1) after the last *FLAGS variable, or
17181 # (2) before a word containing "conftest.", or (3) at the end.
17182 # Note that $ac_compile itself does not contain backslashes and begins
17183 # with a dollar sign (not a hyphen), so the echo should work correctly.
17184 # The option is referenced via a variable to avoid confusing sed.
17185 lt_compile=`echo "$ac_compile" | $SED \
17186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17188 -e 's:$: $lt_compiler_flag:'`
17189 (eval echo "\"\$as_me:17189: $lt_compile\"" >&5)
17190 (eval "$lt_compile" 2>conftest.err)
17191 ac_status=$?
17192 cat conftest.err >&5
17193 echo "$as_me:17193: \$? = $ac_status" >&5
17194 if (exit $ac_status) && test -s "$ac_outfile"; then
17195 # The compiler can only warn and ignore the option if not recognized
17196 # So say no if there are warnings other than the usual output.
17197 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17200 lt_cv_prog_compiler_pic_works=yes
17201 fi
17202 fi
17203 $RM conftest*
17204
17205 fi
17206 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17207 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
17208
17209 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17210 case $lt_prog_compiler_pic in
17211 "" | " "*) ;;
17212 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17213 esac
17214 else
17215 lt_prog_compiler_pic=
17216 lt_prog_compiler_can_build_shared=no
17217 fi
17218
17219 fi
17220
17221
17222
17223
17224
17225
17226 #
17227 # Check to make sure the static flag actually works.
17228 #
17229 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17230 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17231 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17232 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 else
17235 lt_cv_prog_compiler_static_works=no
17236 save_LDFLAGS="$LDFLAGS"
17237 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17238 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17239 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17240 # The linker can only warn and ignore the option if not recognized
17241 # So say no if there are warnings
17242 if test -s conftest.err; then
17243 # Append any errors to the config.log.
17244 cat conftest.err 1>&5
17245 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17247 if diff conftest.exp conftest.er2 >/dev/null; then
17248 lt_cv_prog_compiler_static_works=yes
17249 fi
17250 else
17251 lt_cv_prog_compiler_static_works=yes
17252 fi
17253 fi
17254 $RM -r conftest*
17255 LDFLAGS="$save_LDFLAGS"
17256
17257 fi
17258 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17259 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
17260
17261 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17262 :
17263 else
17264 lt_prog_compiler_static=
17265 fi
17266
17267
17268
17269
17270
17271
17272
17273 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17274 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17275 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278 lt_cv_prog_compiler_c_o=no
17279 $RM -r conftest 2>/dev/null
17280 mkdir conftest
17281 cd conftest
17282 mkdir out
17283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17284
17285 lt_compiler_flag="-o out/conftest2.$ac_objext"
17286 # Insert the option either (1) after the last *FLAGS variable, or
17287 # (2) before a word containing "conftest.", or (3) at the end.
17288 # Note that $ac_compile itself does not contain backslashes and begins
17289 # with a dollar sign (not a hyphen), so the echo should work correctly.
17290 lt_compile=`echo "$ac_compile" | $SED \
17291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17293 -e 's:$: $lt_compiler_flag:'`
17294 (eval echo "\"\$as_me:17294: $lt_compile\"" >&5)
17295 (eval "$lt_compile" 2>out/conftest.err)
17296 ac_status=$?
17297 cat out/conftest.err >&5
17298 echo "$as_me:17298: \$? = $ac_status" >&5
17299 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17300 then
17301 # The compiler can only warn and ignore the option if not recognized
17302 # So say no if there are warnings
17303 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17304 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17305 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17306 lt_cv_prog_compiler_c_o=yes
17307 fi
17308 fi
17309 chmod u+w . 2>&5
17310 $RM conftest*
17311 # SGI C++ compiler will create directory out/ii_files/ for
17312 # template instantiation
17313 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17314 $RM out/* && rmdir out
17315 cd ..
17316 $RM -r conftest
17317 $RM conftest*
17318
17319 fi
17320 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17321 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17322
17323
17324
17325
17326
17327
17328 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17329 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17330 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333 lt_cv_prog_compiler_c_o=no
17334 $RM -r conftest 2>/dev/null
17335 mkdir conftest
17336 cd conftest
17337 mkdir out
17338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17339
17340 lt_compiler_flag="-o out/conftest2.$ac_objext"
17341 # Insert the option either (1) after the last *FLAGS variable, or
17342 # (2) before a word containing "conftest.", or (3) at the end.
17343 # Note that $ac_compile itself does not contain backslashes and begins
17344 # with a dollar sign (not a hyphen), so the echo should work correctly.
17345 lt_compile=`echo "$ac_compile" | $SED \
17346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17348 -e 's:$: $lt_compiler_flag:'`
17349 (eval echo "\"\$as_me:17349: $lt_compile\"" >&5)
17350 (eval "$lt_compile" 2>out/conftest.err)
17351 ac_status=$?
17352 cat out/conftest.err >&5
17353 echo "$as_me:17353: \$? = $ac_status" >&5
17354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17355 then
17356 # The compiler can only warn and ignore the option if not recognized
17357 # So say no if there are warnings
17358 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17361 lt_cv_prog_compiler_c_o=yes
17362 fi
17363 fi
17364 chmod u+w . 2>&5
17365 $RM conftest*
17366 # SGI C++ compiler will create directory out/ii_files/ for
17367 # template instantiation
17368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17369 $RM out/* && rmdir out
17370 cd ..
17371 $RM -r conftest
17372 $RM conftest*
17373
17374 fi
17375 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17376 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17377
17378
17379
17380
17381 hard_links="nottested"
17382 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17383 # do not overwrite the value of need_locks provided by the user
17384 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17385 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17386 hard_links=yes
17387 $RM conftest*
17388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17389 touch conftest.a
17390 ln conftest.a conftest.b 2>&5 || hard_links=no
17391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17392 echo "$as_me:$LINENO: result: $hard_links" >&5
17393 echo "${ECHO_T}$hard_links" >&6
17394 if test "$hard_links" = no; then
17395 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17396 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17397 need_locks=warn
17398 fi
17399 else
17400 need_locks=no
17401 fi
17402
17403
17404
17405
17406
17407
17408 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17410
17411 runpath_var=
17412 allow_undefined_flag=
17413 always_export_symbols=no
17414 archive_cmds=
17415 archive_expsym_cmds=
17416 compiler_needs_object=no
17417 enable_shared_with_static_runtimes=no
17418 export_dynamic_flag_spec=
17419 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17420 hardcode_automatic=no
17421 hardcode_direct=no
17422 hardcode_direct_absolute=no
17423 hardcode_libdir_flag_spec=
17424 hardcode_libdir_flag_spec_ld=
17425 hardcode_libdir_separator=
17426 hardcode_minus_L=no
17427 hardcode_shlibpath_var=unsupported
17428 inherit_rpath=no
17429 link_all_deplibs=unknown
17430 module_cmds=
17431 module_expsym_cmds=
17432 old_archive_from_new_cmds=
17433 old_archive_from_expsyms_cmds=
17434 thread_safe_flag_spec=
17435 whole_archive_flag_spec=
17436 # include_expsyms should be a list of space-separated symbols to be *always*
17437 # included in the symbol list
17438 include_expsyms=
17439 # exclude_expsyms can be an extended regexp of symbols to exclude
17440 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17441 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17442 # as well as any symbol that contains `d'.
17443 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17444 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17445 # platforms (ab)use it in PIC code, but their linkers get confused if
17446 # the symbol is explicitly referenced. Since portable code cannot
17447 # rely on this symbol name, it's probably fine to never include it in
17448 # preloaded symbol tables.
17449 # Exclude shared library initialization/finalization symbols.
17450 extract_expsyms_cmds=
17451
17452 case $host_os in
17453 cygwin* | mingw* | pw32* | cegcc*)
17454 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17455 # When not using gcc, we currently assume that we are using
17456 # Microsoft Visual C++.
17457 if test "$GCC" != yes; then
17458 with_gnu_ld=no
17459 fi
17460 ;;
17461 interix*)
17462 # we just hope/assume this is gcc and not c89 (= MSVC++)
17463 with_gnu_ld=yes
17464 ;;
17465 openbsd*)
17466 with_gnu_ld=no
17467 ;;
17468 esac
17469
17470 ld_shlibs=yes
17471 if test "$with_gnu_ld" = yes; then
17472 # If archive_cmds runs LD, not CC, wlarc should be empty
17473 wlarc='${wl}'
17474
17475 # Set some defaults for GNU ld with shared library support. These
17476 # are reset later if shared libraries are not supported. Putting them
17477 # here allows them to be overridden if necessary.
17478 runpath_var=LD_RUN_PATH
17479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17480 export_dynamic_flag_spec='${wl}--export-dynamic'
17481 # ancient GNU ld didn't support --whole-archive et. al.
17482 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17483 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17484 else
17485 whole_archive_flag_spec=
17486 fi
17487 supports_anon_versioning=no
17488 case `$LD -v 2>&1` in
17489 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17490 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17491 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17492 *\ 2.11.*) ;; # other 2.11 versions
17493 *) supports_anon_versioning=yes ;;
17494 esac
17495
17496 # See if GNU ld supports shared libraries.
17497 case $host_os in
17498 aix[3-9]*)
17499 # On AIX/PPC, the GNU linker is very broken
17500 if test "$host_cpu" != ia64; then
17501 ld_shlibs=no
17502 cat <<_LT_EOF 1>&2
17503
17504 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17505 *** to be unable to reliably create shared libraries on AIX.
17506 *** Therefore, libtool is disabling shared libraries support. If you
17507 *** really care for shared libraries, you may want to modify your PATH
17508 *** so that a non-GNU linker is found, and then restart.
17509
17510 _LT_EOF
17511 fi
17512 ;;
17513
17514 amigaos*)
17515 case $host_cpu in
17516 powerpc)
17517 # see comment about AmigaOS4 .so support
17518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17519 archive_expsym_cmds=''
17520 ;;
17521 m68k)
17522 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)'
17523 hardcode_libdir_flag_spec='-L$libdir'
17524 hardcode_minus_L=yes
17525 ;;
17526 esac
17527 ;;
17528
17529 beos*)
17530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17531 allow_undefined_flag=unsupported
17532 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17533 # support --undefined. This deserves some investigation. FIXME
17534 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17535 else
17536 ld_shlibs=no
17537 fi
17538 ;;
17539
17540 cygwin* | mingw* | pw32* | cegcc*)
17541 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17542 # as there is no search path for DLLs.
17543 hardcode_libdir_flag_spec='-L$libdir'
17544 allow_undefined_flag=unsupported
17545 always_export_symbols=no
17546 enable_shared_with_static_runtimes=yes
17547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17548
17549 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17551 # If the export-symbols file already is a .def file (1st line
17552 # is EXPORTS), use it as is; otherwise, prepend...
17553 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17554 cp $export_symbols $output_objdir/$soname.def;
17555 else
17556 echo EXPORTS > $output_objdir/$soname.def;
17557 cat $export_symbols >> $output_objdir/$soname.def;
17558 fi~
17559 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17560 else
17561 ld_shlibs=no
17562 fi
17563 ;;
17564
17565 interix[3-9]*)
17566 hardcode_direct=no
17567 hardcode_shlibpath_var=no
17568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17569 export_dynamic_flag_spec='${wl}-E'
17570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17571 # Instead, shared libraries are loaded at an image base (0x10000000 by
17572 # default) and relocated if they conflict, which is a slow very memory
17573 # consuming and fragmenting process. To avoid this, we pick a random,
17574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17577 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'
17578 ;;
17579
17580 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17581 tmp_diet=no
17582 if test "$host_os" = linux-dietlibc; then
17583 case $cc_basename in
17584 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17585 esac
17586 fi
17587 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17588 && test "$tmp_diet" = no
17589 then
17590 tmp_addflag=
17591 tmp_sharedflag='-shared'
17592 case $cc_basename,$host_cpu in
17593 pgcc*) # Portland Group C compiler
17594 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'
17595 tmp_addflag=' $pic_flag'
17596 ;;
17597 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17598 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'
17599 tmp_addflag=' $pic_flag -Mnomain' ;;
17600 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17601 tmp_addflag=' -i_dynamic' ;;
17602 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17603 tmp_addflag=' -i_dynamic -nofor_main' ;;
17604 ifc* | ifort*) # Intel Fortran compiler
17605 tmp_addflag=' -nofor_main' ;;
17606 lf95*) # Lahey Fortran 8.1
17607 whole_archive_flag_spec=
17608 tmp_sharedflag='--shared' ;;
17609 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17610 tmp_sharedflag='-qmkshrobj'
17611 tmp_addflag= ;;
17612 esac
17613 case `$CC -V 2>&1 | sed 5q` in
17614 *Sun\ C*) # Sun C 5.9
17615 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'
17616 compiler_needs_object=yes
17617 tmp_sharedflag='-G' ;;
17618 *Sun\ F*) # Sun Fortran 8.3
17619 tmp_sharedflag='-G' ;;
17620 esac
17621 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17622
17623 if test "x$supports_anon_versioning" = xyes; then
17624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17626 echo "local: *; };" >> $output_objdir/$libname.ver~
17627 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17628 fi
17629
17630 case $cc_basename in
17631 xlf*)
17632 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17633 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17634 hardcode_libdir_flag_spec=
17635 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17636 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17637 if test "x$supports_anon_versioning" = xyes; then
17638 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17640 echo "local: *; };" >> $output_objdir/$libname.ver~
17641 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17642 fi
17643 ;;
17644 esac
17645 else
17646 ld_shlibs=no
17647 fi
17648 ;;
17649
17650 netbsd*)
17651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17652 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17653 wlarc=
17654 else
17655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17657 fi
17658 ;;
17659
17660 solaris*)
17661 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17662 ld_shlibs=no
17663 cat <<_LT_EOF 1>&2
17664
17665 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17666 *** create shared libraries on Solaris systems. Therefore, libtool
17667 *** is disabling shared libraries support. We urge you to upgrade GNU
17668 *** binutils to release 2.9.1 or newer. Another option is to modify
17669 *** your PATH or compiler configuration so that the native linker is
17670 *** used, and then restart.
17671
17672 _LT_EOF
17673 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17676 else
17677 ld_shlibs=no
17678 fi
17679 ;;
17680
17681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17682 case `$LD -v 2>&1` in
17683 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17684 ld_shlibs=no
17685 cat <<_LT_EOF 1>&2
17686
17687 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17688 *** reliably create shared libraries on SCO systems. Therefore, libtool
17689 *** is disabling shared libraries support. We urge you to upgrade GNU
17690 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17691 *** your PATH or compiler configuration so that the native linker is
17692 *** used, and then restart.
17693
17694 _LT_EOF
17695 ;;
17696 *)
17697 # For security reasons, it is highly recommended that you always
17698 # use absolute paths for naming shared libraries, and exclude the
17699 # DT_RUNPATH tag from executables and libraries. But doing so
17700 # requires that you compile everything twice, which is a pain.
17701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17705 else
17706 ld_shlibs=no
17707 fi
17708 ;;
17709 esac
17710 ;;
17711
17712 sunos4*)
17713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17714 wlarc=
17715 hardcode_direct=yes
17716 hardcode_shlibpath_var=no
17717 ;;
17718
17719 *)
17720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17723 else
17724 ld_shlibs=no
17725 fi
17726 ;;
17727 esac
17728
17729 if test "$ld_shlibs" = no; then
17730 runpath_var=
17731 hardcode_libdir_flag_spec=
17732 export_dynamic_flag_spec=
17733 whole_archive_flag_spec=
17734 fi
17735 else
17736 # PORTME fill in a description of your system's linker (not GNU ld)
17737 case $host_os in
17738 aix3*)
17739 allow_undefined_flag=unsupported
17740 always_export_symbols=yes
17741 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'
17742 # Note: this linker hardcodes the directories in LIBPATH if there
17743 # are no directories specified by -L.
17744 hardcode_minus_L=yes
17745 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17746 # Neither direct hardcoding nor static linking is supported with a
17747 # broken collect2.
17748 hardcode_direct=unsupported
17749 fi
17750 ;;
17751
17752 aix[4-9]*)
17753 if test "$host_cpu" = ia64; then
17754 # On IA64, the linker does run time linking by default, so we don't
17755 # have to do anything special.
17756 aix_use_runtimelinking=no
17757 exp_sym_flag='-Bexport'
17758 no_entry_flag=""
17759 else
17760 # If we're using GNU nm, then we don't want the "-C" option.
17761 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17762 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17763 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'
17764 else
17765 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'
17766 fi
17767 aix_use_runtimelinking=no
17768
17769 # Test if we are trying to use run time linking or normal
17770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17771 # need to do runtime linking.
17772 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17773 for ld_flag in $LDFLAGS; do
17774 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17775 aix_use_runtimelinking=yes
17776 break
17777 fi
17778 done
17779 ;;
17780 esac
17781
17782 exp_sym_flag='-bexport'
17783 no_entry_flag='-bnoentry'
17784 fi
17785
17786 # When large executables or shared objects are built, AIX ld can
17787 # have problems creating the table of contents. If linking a library
17788 # or program results in "error TOC overflow" add -mminimal-toc to
17789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17791
17792 archive_cmds=''
17793 hardcode_direct=yes
17794 hardcode_direct_absolute=yes
17795 hardcode_libdir_separator=':'
17796 link_all_deplibs=yes
17797 file_list_spec='${wl}-f,'
17798
17799 if test "$GCC" = yes; then
17800 case $host_os in aix4.[012]|aix4.[012].*)
17801 # We only want to do this on AIX 4.2 and lower, the check
17802 # below for broken collect2 doesn't work under 4.3+
17803 collect2name=`${CC} -print-prog-name=collect2`
17804 if test -f "$collect2name" &&
17805 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17806 then
17807 # We have reworked collect2
17808 :
17809 else
17810 # We have old collect2
17811 hardcode_direct=unsupported
17812 # It fails to find uninstalled libraries when the uninstalled
17813 # path is not listed in the libpath. Setting hardcode_minus_L
17814 # to unsupported forces relinking
17815 hardcode_minus_L=yes
17816 hardcode_libdir_flag_spec='-L$libdir'
17817 hardcode_libdir_separator=
17818 fi
17819 ;;
17820 esac
17821 shared_flag='-shared'
17822 if test "$aix_use_runtimelinking" = yes; then
17823 shared_flag="$shared_flag "'${wl}-G'
17824 fi
17825 else
17826 # not using gcc
17827 if test "$host_cpu" = ia64; then
17828 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17829 # chokes on -Wl,-G. The following line is correct:
17830 shared_flag='-G'
17831 else
17832 if test "$aix_use_runtimelinking" = yes; then
17833 shared_flag='${wl}-G'
17834 else
17835 shared_flag='${wl}-bM:SRE'
17836 fi
17837 fi
17838 fi
17839
17840 export_dynamic_flag_spec='${wl}-bexpall'
17841 # It seems that -bexpall does not export symbols beginning with
17842 # underscore (_), so it is better to generate a list of symbols to export.
17843 always_export_symbols=yes
17844 if test "$aix_use_runtimelinking" = yes; then
17845 # Warning - without using the other runtime loading flags (-brtl),
17846 # -berok will link without error, but may produce a broken library.
17847 allow_undefined_flag='-berok'
17848 # Determine the default libpath from the value encoded in an
17849 # empty executable.
17850 cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h. */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856
17857 int
17858 main ()
17859 {
17860
17861 ;
17862 return 0;
17863 }
17864 _ACEOF
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>conftest.er1
17868 ac_status=$?
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag"
17875 || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887
17888 lt_aix_libpath_sed='
17889 /Import File Strings/,/^$/ {
17890 /^0/ {
17891 s/^0 *\(.*\)$/\1/
17892 p
17893 }
17894 }'
17895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17896 # Check for a 64-bit object if we didn't find anything.
17897 if test -z "$aix_libpath"; then
17898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17899 fi
17900 else
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17903
17904 fi
17905 rm -f conftest.err conftest.$ac_objext \
17906 conftest$ac_exeext conftest.$ac_ext
17907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17908
17909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17910 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"
17911 else
17912 if test "$host_cpu" = ia64; then
17913 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17914 allow_undefined_flag="-z nodefs"
17915 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"
17916 else
17917 # Determine the default libpath from the value encoded in an
17918 # empty executable.
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925
17926 int
17927 main ()
17928 {
17929
17930 ;
17931 return 0;
17932 }
17933 _ACEOF
17934 rm -f conftest.$ac_objext conftest$ac_exeext
17935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17936 (eval $ac_link) 2>conftest.er1
17937 ac_status=$?
17938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
17943 { ac_try='test -z "$ac_c_werror_flag"
17944 || test ! -s conftest.err'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest$ac_exeext'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17953 ac_status=$?
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956
17957 lt_aix_libpath_sed='
17958 /Import File Strings/,/^$/ {
17959 /^0/ {
17960 s/^0 *\(.*\)$/\1/
17961 p
17962 }
17963 }'
17964 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17965 # Check for a 64-bit object if we didn't find anything.
17966 if test -z "$aix_libpath"; then
17967 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17968 fi
17969 else
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973 fi
17974 rm -f conftest.err conftest.$ac_objext \
17975 conftest$ac_exeext conftest.$ac_ext
17976 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17977
17978 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17979 # Warning - without using the other run time loading flags,
17980 # -berok will link without error, but may produce a broken library.
17981 no_undefined_flag=' ${wl}-bernotok'
17982 allow_undefined_flag=' ${wl}-berok'
17983 # Exported symbols can be pulled into shared objects from archives
17984 whole_archive_flag_spec='$convenience'
17985 archive_cmds_need_lc=yes
17986 # This is similar to how AIX traditionally builds its shared libraries.
17987 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'
17988 fi
17989 fi
17990 ;;
17991
17992 amigaos*)
17993 case $host_cpu in
17994 powerpc)
17995 # see comment about AmigaOS4 .so support
17996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17997 archive_expsym_cmds=''
17998 ;;
17999 m68k)
18000 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)'
18001 hardcode_libdir_flag_spec='-L$libdir'
18002 hardcode_minus_L=yes
18003 ;;
18004 esac
18005 ;;
18006
18007 bsdi[45]*)
18008 export_dynamic_flag_spec=-rdynamic
18009 ;;
18010
18011 cygwin* | mingw* | pw32* | cegcc*)
18012 # When not using gcc, we currently assume that we are using
18013 # Microsoft Visual C++.
18014 # hardcode_libdir_flag_spec is actually meaningless, as there is
18015 # no search path for DLLs.
18016 hardcode_libdir_flag_spec=' '
18017 allow_undefined_flag=unsupported
18018 # Tell ltmain to make .lib files, not .a files.
18019 libext=lib
18020 # Tell ltmain to make .dll files, not .so files.
18021 shrext_cmds=".dll"
18022 # FIXME: Setting linknames here is a bad hack.
18023 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18024 # The linker will automatically build a .lib file if we build a DLL.
18025 old_archive_from_new_cmds='true'
18026 # FIXME: Should let the user specify the lib program.
18027 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18028 fix_srcfile_path='`cygpath -w "$srcfile"`'
18029 enable_shared_with_static_runtimes=yes
18030 ;;
18031
18032 darwin* | rhapsody*)
18033
18034
18035 archive_cmds_need_lc=no
18036 hardcode_direct=no
18037 hardcode_automatic=yes
18038 hardcode_shlibpath_var=unsupported
18039 whole_archive_flag_spec=''
18040 link_all_deplibs=yes
18041 allow_undefined_flag="$_lt_dar_allow_undefined"
18042 case $cc_basename in
18043 ifort*) _lt_dar_can_shared=yes ;;
18044 *) _lt_dar_can_shared=$GCC ;;
18045 esac
18046 if test "$_lt_dar_can_shared" = "yes"; then
18047 output_verbose_link_cmd=echo
18048 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18049 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18050 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18051 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18052
18053 else
18054 ld_shlibs=no
18055 fi
18056
18057 ;;
18058
18059 dgux*)
18060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18061 hardcode_libdir_flag_spec='-L$libdir'
18062 hardcode_shlibpath_var=no
18063 ;;
18064
18065 freebsd1*)
18066 ld_shlibs=no
18067 ;;
18068
18069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18070 # support. Future versions do this automatically, but an explicit c++rt0.o
18071 # does not break anything, and helps significantly (at the cost of a little
18072 # extra space).
18073 freebsd2.2*)
18074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18075 hardcode_libdir_flag_spec='-R$libdir'
18076 hardcode_direct=yes
18077 hardcode_shlibpath_var=no
18078 ;;
18079
18080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18081 freebsd2*)
18082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18083 hardcode_direct=yes
18084 hardcode_minus_L=yes
18085 hardcode_shlibpath_var=no
18086 ;;
18087
18088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18089 freebsd* | dragonfly*)
18090 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18091 hardcode_libdir_flag_spec='-R$libdir'
18092 hardcode_direct=yes
18093 hardcode_shlibpath_var=no
18094 ;;
18095
18096 hpux9*)
18097 if test "$GCC" = yes; then
18098 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'
18099 else
18100 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'
18101 fi
18102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18103 hardcode_libdir_separator=:
18104 hardcode_direct=yes
18105
18106 # hardcode_minus_L: Not really in the search PATH,
18107 # but as the default location of the library.
18108 hardcode_minus_L=yes
18109 export_dynamic_flag_spec='${wl}-E'
18110 ;;
18111
18112 hpux10*)
18113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18115 else
18116 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18117 fi
18118 if test "$with_gnu_ld" = no; then
18119 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18120 hardcode_libdir_flag_spec_ld='+b $libdir'
18121 hardcode_libdir_separator=:
18122 hardcode_direct=yes
18123 hardcode_direct_absolute=yes
18124 export_dynamic_flag_spec='${wl}-E'
18125 # hardcode_minus_L: Not really in the search PATH,
18126 # but as the default location of the library.
18127 hardcode_minus_L=yes
18128 fi
18129 ;;
18130
18131 hpux11*)
18132 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18133 case $host_cpu in
18134 hppa*64*)
18135 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18136 ;;
18137 ia64*)
18138 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18139 ;;
18140 *)
18141 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18142 ;;
18143 esac
18144 else
18145 case $host_cpu in
18146 hppa*64*)
18147 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148 ;;
18149 ia64*)
18150 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18151 ;;
18152 *)
18153 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18154 ;;
18155 esac
18156 fi
18157 if test "$with_gnu_ld" = no; then
18158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18159 hardcode_libdir_separator=:
18160
18161 case $host_cpu in
18162 hppa*64*|ia64*)
18163 hardcode_direct=no
18164 hardcode_shlibpath_var=no
18165 ;;
18166 *)
18167 hardcode_direct=yes
18168 hardcode_direct_absolute=yes
18169 export_dynamic_flag_spec='${wl}-E'
18170
18171 # hardcode_minus_L: Not really in the search PATH,
18172 # but as the default location of the library.
18173 hardcode_minus_L=yes
18174 ;;
18175 esac
18176 fi
18177 ;;
18178
18179 irix5* | irix6* | nonstopux*)
18180 if test "$GCC" = yes; then
18181 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'
18182 # Try to use the -exported_symbol ld option, if it does not
18183 # work, assume that -exports_file does not work either and
18184 # implicitly export all symbols.
18185 save_LDFLAGS="$LDFLAGS"
18186 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18187 cat >conftest.$ac_ext <<_ACEOF
18188 int foo(void) {}
18189 _ACEOF
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18192 (eval $ac_link) 2>conftest.er1
18193 ac_status=$?
18194 grep -v '^ *+' conftest.er1 >conftest.err
18195 rm -f conftest.er1
18196 cat conftest.err >&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } &&
18199 { ac_try='test -z "$ac_c_werror_flag"
18200 || test ! -s conftest.err'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest$ac_exeext'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18212 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'
18213
18214 else
18215 echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18217
18218 fi
18219 rm -f conftest.err conftest.$ac_objext \
18220 conftest$ac_exeext conftest.$ac_ext
18221 LDFLAGS="$save_LDFLAGS"
18222 else
18223 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'
18224 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'
18225 fi
18226 archive_cmds_need_lc='no'
18227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18228 hardcode_libdir_separator=:
18229 inherit_rpath=yes
18230 link_all_deplibs=yes
18231 ;;
18232
18233 netbsd*)
18234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18236 else
18237 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18238 fi
18239 hardcode_libdir_flag_spec='-R$libdir'
18240 hardcode_direct=yes
18241 hardcode_shlibpath_var=no
18242 ;;
18243
18244 newsos6)
18245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18246 hardcode_direct=yes
18247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18248 hardcode_libdir_separator=:
18249 hardcode_shlibpath_var=no
18250 ;;
18251
18252 *nto* | *qnx*)
18253 ;;
18254
18255 openbsd*)
18256 if test -f /usr/libexec/ld.so; then
18257 hardcode_direct=yes
18258 hardcode_shlibpath_var=no
18259 hardcode_direct_absolute=yes
18260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18262 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18263 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18264 export_dynamic_flag_spec='${wl}-E'
18265 else
18266 case $host_os in
18267 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18269 hardcode_libdir_flag_spec='-R$libdir'
18270 ;;
18271 *)
18272 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18273 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18274 ;;
18275 esac
18276 fi
18277 else
18278 ld_shlibs=no
18279 fi
18280 ;;
18281
18282 os2*)
18283 hardcode_libdir_flag_spec='-L$libdir'
18284 hardcode_minus_L=yes
18285 allow_undefined_flag=unsupported
18286 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'
18287 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18288 ;;
18289
18290 osf3*)
18291 if test "$GCC" = yes; then
18292 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18293 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'
18294 else
18295 allow_undefined_flag=' -expect_unresolved \*'
18296 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'
18297 fi
18298 archive_cmds_need_lc='no'
18299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18300 hardcode_libdir_separator=:
18301 ;;
18302
18303 osf4* | osf5*) # as osf3* with the addition of -msym flag
18304 if test "$GCC" = yes; then
18305 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18306 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'
18307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18308 else
18309 allow_undefined_flag=' -expect_unresolved \*'
18310 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'
18311 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~
18312 $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'
18313
18314 # Both c and cxx compiler support -rpath directly
18315 hardcode_libdir_flag_spec='-rpath $libdir'
18316 fi
18317 archive_cmds_need_lc='no'
18318 hardcode_libdir_separator=:
18319 ;;
18320
18321 solaris*)
18322 no_undefined_flag=' -z defs'
18323 if test "$GCC" = yes; then
18324 wlarc='${wl}'
18325 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18326 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18327 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18328 else
18329 case `$CC -V 2>&1` in
18330 *"Compilers 5.0"*)
18331 wlarc=''
18332 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18334 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18335 ;;
18336 *)
18337 wlarc='${wl}'
18338 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18340 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18341 ;;
18342 esac
18343 fi
18344 hardcode_libdir_flag_spec='-R$libdir'
18345 hardcode_shlibpath_var=no
18346 case $host_os in
18347 solaris2.[0-5] | solaris2.[0-5].*) ;;
18348 *)
18349 # The compiler driver will combine and reorder linker options,
18350 # but understands `-z linker_flag'. GCC discards it without `$wl',
18351 # but is careful enough not to reorder.
18352 # Supported since Solaris 2.6 (maybe 2.5.1?)
18353 if test "$GCC" = yes; then
18354 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18355 else
18356 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18357 fi
18358 ;;
18359 esac
18360 link_all_deplibs=yes
18361 ;;
18362
18363 sunos4*)
18364 if test "x$host_vendor" = xsequent; then
18365 # Use $CC to link under sequent, because it throws in some extra .o
18366 # files that make .init and .fini sections work.
18367 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18368 else
18369 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18370 fi
18371 hardcode_libdir_flag_spec='-L$libdir'
18372 hardcode_direct=yes
18373 hardcode_minus_L=yes
18374 hardcode_shlibpath_var=no
18375 ;;
18376
18377 sysv4)
18378 case $host_vendor in
18379 sni)
18380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18381 hardcode_direct=yes # is this really true???
18382 ;;
18383 siemens)
18384 ## LD is ld it makes a PLAMLIB
18385 ## CC just makes a GrossModule.
18386 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18387 reload_cmds='$CC -r -o $output$reload_objs'
18388 hardcode_direct=no
18389 ;;
18390 motorola)
18391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18392 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18393 ;;
18394 esac
18395 runpath_var='LD_RUN_PATH'
18396 hardcode_shlibpath_var=no
18397 ;;
18398
18399 sysv4.3*)
18400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18401 hardcode_shlibpath_var=no
18402 export_dynamic_flag_spec='-Bexport'
18403 ;;
18404
18405 sysv4*MP*)
18406 if test -d /usr/nec; then
18407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18408 hardcode_shlibpath_var=no
18409 runpath_var=LD_RUN_PATH
18410 hardcode_runpath_var=yes
18411 ld_shlibs=yes
18412 fi
18413 ;;
18414
18415 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18416 no_undefined_flag='${wl}-z,text'
18417 archive_cmds_need_lc=no
18418 hardcode_shlibpath_var=no
18419 runpath_var='LD_RUN_PATH'
18420
18421 if test "$GCC" = yes; then
18422 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18423 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18424 else
18425 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18426 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18427 fi
18428 ;;
18429
18430 sysv5* | sco3.2v5* | sco5v6*)
18431 # Note: We can NOT use -z defs as we might desire, because we do not
18432 # link with -lc, and that would cause any symbols used from libc to
18433 # always be unresolved, which means just about no library would
18434 # ever link correctly. If we're not using GNU ld we use -z text
18435 # though, which does catch some bad symbols but isn't as heavy-handed
18436 # as -z defs.
18437 no_undefined_flag='${wl}-z,text'
18438 allow_undefined_flag='${wl}-z,nodefs'
18439 archive_cmds_need_lc=no
18440 hardcode_shlibpath_var=no
18441 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18442 hardcode_libdir_separator=':'
18443 link_all_deplibs=yes
18444 export_dynamic_flag_spec='${wl}-Bexport'
18445 runpath_var='LD_RUN_PATH'
18446
18447 if test "$GCC" = yes; then
18448 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18449 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18450 else
18451 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18452 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18453 fi
18454 ;;
18455
18456 uts4*)
18457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18458 hardcode_libdir_flag_spec='-L$libdir'
18459 hardcode_shlibpath_var=no
18460 ;;
18461
18462 *)
18463 ld_shlibs=no
18464 ;;
18465 esac
18466
18467 if test x$host_vendor = xsni; then
18468 case $host in
18469 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18470 export_dynamic_flag_spec='${wl}-Blargedynsym'
18471 ;;
18472 esac
18473 fi
18474 fi
18475
18476 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18477 echo "${ECHO_T}$ld_shlibs" >&6
18478 test "$ld_shlibs" = no && can_build_shared=no
18479
18480 with_gnu_ld=$with_gnu_ld
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496 #
18497 # Do we need to explicitly link libc?
18498 #
18499 case "x$archive_cmds_need_lc" in
18500 x|xyes)
18501 # Assume -lc should be added
18502 archive_cmds_need_lc=yes
18503
18504 if test "$enable_shared" = yes && test "$GCC" = yes; then
18505 case $archive_cmds in
18506 *'~'*)
18507 # FIXME: we may have to deal with multi-command sequences.
18508 ;;
18509 '$CC '*)
18510 # Test whether the compiler implicitly links with -lc since on some
18511 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18512 # to ld, don't add -lc before -lgcc.
18513 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18514 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18515 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518 $RM conftest*
18519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18520
18521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18522 (eval $ac_compile) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } 2>conftest.err; then
18526 soname=conftest
18527 lib=conftest
18528 libobjs=conftest.$ac_objext
18529 deplibs=
18530 wl=$lt_prog_compiler_wl
18531 pic_flag=$lt_prog_compiler_pic
18532 compiler_flags=-v
18533 linker_flags=-v
18534 verstring=
18535 output_objdir=.
18536 libname=conftest
18537 lt_save_allow_undefined_flag=$allow_undefined_flag
18538 allow_undefined_flag=
18539 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18540 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }
18544 then
18545 lt_cv_archive_cmds_need_lc=no
18546 else
18547 lt_cv_archive_cmds_need_lc=yes
18548 fi
18549 allow_undefined_flag=$lt_save_allow_undefined_flag
18550 else
18551 cat conftest.err 1>&5
18552 fi
18553 $RM conftest*
18554
18555 fi
18556 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
18557 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
18558 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18559 ;;
18560 esac
18561 fi
18562 ;;
18563 esac
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18722 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18723
18724 if test "$GCC" = yes; then
18725 case $host_os in
18726 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18727 *) lt_awk_arg="/^libraries:/" ;;
18728 esac
18729 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18730 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18731 # if the path contains ";" then we assume it to be the separator
18732 # otherwise default to the standard path separator (i.e. ":") - it is
18733 # assumed that no part of a normal pathname contains ";" but that should
18734 # okay in the real world where ";" in dirpaths is itself problematic.
18735 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18736 else
18737 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18738 fi
18739 # Ok, now we have the path, separated by spaces, we can step through it
18740 # and add multilib dir if necessary.
18741 lt_tmp_lt_search_path_spec=
18742 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18743 for lt_sys_path in $lt_search_path_spec; do
18744 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18745 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18746 else
18747 test -d "$lt_sys_path" && \
18748 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18749 fi
18750 done
18751 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18752 BEGIN {RS=" "; FS="/|\n";} {
18753 lt_foo="";
18754 lt_count=0;
18755 for (lt_i = NF; lt_i > 0; lt_i--) {
18756 if ($lt_i != "" && $lt_i != ".") {
18757 if ($lt_i == "..") {
18758 lt_count++;
18759 } else {
18760 if (lt_count == 0) {
18761 lt_foo="/" $lt_i lt_foo;
18762 } else {
18763 lt_count--;
18764 }
18765 }
18766 }
18767 }
18768 if (lt_foo != "") { lt_freq[lt_foo]++; }
18769 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18770 }'`
18771 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18772 else
18773 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18774 fi
18775 library_names_spec=
18776 libname_spec='lib$name'
18777 soname_spec=
18778 shrext_cmds=".so"
18779 postinstall_cmds=
18780 postuninstall_cmds=
18781 finish_cmds=
18782 finish_eval=
18783 shlibpath_var=
18784 shlibpath_overrides_runpath=unknown
18785 version_type=none
18786 dynamic_linker="$host_os ld.so"
18787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18788 need_lib_prefix=unknown
18789 hardcode_into_libs=no
18790
18791 # when you set need_version to no, make sure it does not cause -set_version
18792 # flags to be left without arguments
18793 need_version=unknown
18794
18795 case $host_os in
18796 aix3*)
18797 version_type=linux
18798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18799 shlibpath_var=LIBPATH
18800
18801 # AIX 3 has no versioning support, so we append a major version to the name.
18802 soname_spec='${libname}${release}${shared_ext}$major'
18803 ;;
18804
18805 aix[4-9]*)
18806 version_type=linux
18807 need_lib_prefix=no
18808 need_version=no
18809 hardcode_into_libs=yes
18810 if test "$host_cpu" = ia64; then
18811 # AIX 5 supports IA64
18812 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18813 shlibpath_var=LD_LIBRARY_PATH
18814 else
18815 # With GCC up to 2.95.x, collect2 would create an import file
18816 # for dependence libraries. The import file would start with
18817 # the line `#! .'. This would cause the generated library to
18818 # depend on `.', always an invalid library. This was fixed in
18819 # development snapshots of GCC prior to 3.0.
18820 case $host_os in
18821 aix4 | aix4.[01] | aix4.[01].*)
18822 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18823 echo ' yes '
18824 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18825 :
18826 else
18827 can_build_shared=no
18828 fi
18829 ;;
18830 esac
18831 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18832 # soname into executable. Probably we can add versioning support to
18833 # collect2, so additional links can be useful in future.
18834 if test "$aix_use_runtimelinking" = yes; then
18835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18836 # instead of lib<name>.a to let people know that these are not
18837 # typical AIX shared libraries.
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839 else
18840 # We preserve .a as extension for shared libraries through AIX4.2
18841 # and later when we are not doing run time linking.
18842 library_names_spec='${libname}${release}.a $libname.a'
18843 soname_spec='${libname}${release}${shared_ext}$major'
18844 fi
18845 shlibpath_var=LIBPATH
18846 fi
18847 ;;
18848
18849 amigaos*)
18850 case $host_cpu in
18851 powerpc)
18852 # Since July 2007 AmigaOS4 officially supports .so libraries.
18853 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18855 ;;
18856 m68k)
18857 library_names_spec='$libname.ixlibrary $libname.a'
18858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18859 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'
18860 ;;
18861 esac
18862 ;;
18863
18864 beos*)
18865 library_names_spec='${libname}${shared_ext}'
18866 dynamic_linker="$host_os ld.so"
18867 shlibpath_var=LIBRARY_PATH
18868 ;;
18869
18870 bsdi[45]*)
18871 version_type=linux
18872 need_version=no
18873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18874 soname_spec='${libname}${release}${shared_ext}$major'
18875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18876 shlibpath_var=LD_LIBRARY_PATH
18877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18879 # the default ld.so.conf also contains /usr/contrib/lib and
18880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18881 # libtool to hard-code these into programs
18882 ;;
18883
18884 cygwin* | mingw* | pw32* | cegcc*)
18885 version_type=windows
18886 shrext_cmds=".dll"
18887 need_version=no
18888 need_lib_prefix=no
18889
18890 case $GCC,$host_os in
18891 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18892 library_names_spec='$libname.dll.a'
18893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18894 postinstall_cmds='base_file=`basename \${file}`~
18895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18896 dldir=$destdir/`dirname \$dlpath`~
18897 test -d \$dldir || mkdir -p \$dldir~
18898 $install_prog $dir/$dlname \$dldir/$dlname~
18899 chmod a+x \$dldir/$dlname~
18900 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18901 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18902 fi'
18903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18904 dlpath=$dir/\$dldll~
18905 $RM \$dlpath'
18906 shlibpath_overrides_runpath=yes
18907
18908 case $host_os in
18909 cygwin*)
18910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18913 ;;
18914 mingw* | cegcc*)
18915 # MinGW DLLs use traditional 'lib' prefix
18916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18917 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18918 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18919 # It is most probably a Windows format PATH printed by
18920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18921 # path with ; separators, and with drive letters. We can handle the
18922 # drive letters (cygwin fileutils understands them), so leave them,
18923 # especially as we might pass files found there to a mingw objdump,
18924 # which wouldn't understand a cygwinified path. Ahh.
18925 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18926 else
18927 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18928 fi
18929 ;;
18930 pw32*)
18931 # pw32 DLLs use 'pw' prefix rather than 'lib'
18932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18933 ;;
18934 esac
18935 ;;
18936
18937 *)
18938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18939 ;;
18940 esac
18941 dynamic_linker='Win32 ld.exe'
18942 # FIXME: first we should search . and the directory the executable is in
18943 shlibpath_var=PATH
18944 ;;
18945
18946 darwin* | rhapsody*)
18947 dynamic_linker="$host_os dyld"
18948 version_type=darwin
18949 need_lib_prefix=no
18950 need_version=no
18951 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18952 soname_spec='${libname}${release}${major}$shared_ext'
18953 shlibpath_overrides_runpath=yes
18954 shlibpath_var=DYLD_LIBRARY_PATH
18955 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18956
18957 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18959 ;;
18960
18961 dgux*)
18962 version_type=linux
18963 need_lib_prefix=no
18964 need_version=no
18965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18966 soname_spec='${libname}${release}${shared_ext}$major'
18967 shlibpath_var=LD_LIBRARY_PATH
18968 ;;
18969
18970 freebsd1*)
18971 dynamic_linker=no
18972 ;;
18973
18974 freebsd* | dragonfly*)
18975 # DragonFly does not have aout. When/if they implement a new
18976 # versioning mechanism, adjust this.
18977 if test -x /usr/bin/objformat; then
18978 objformat=`/usr/bin/objformat`
18979 else
18980 case $host_os in
18981 freebsd[123]*) objformat=aout ;;
18982 *) objformat=elf ;;
18983 esac
18984 fi
18985 version_type=freebsd-$objformat
18986 case $version_type in
18987 freebsd-elf*)
18988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18989 need_version=no
18990 need_lib_prefix=no
18991 ;;
18992 freebsd-*)
18993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18994 need_version=yes
18995 ;;
18996 esac
18997 shlibpath_var=LD_LIBRARY_PATH
18998 case $host_os in
18999 freebsd2*)
19000 shlibpath_overrides_runpath=yes
19001 ;;
19002 freebsd3.[01]* | freebsdelf3.[01]*)
19003 shlibpath_overrides_runpath=yes
19004 hardcode_into_libs=yes
19005 ;;
19006 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19007 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19008 shlibpath_overrides_runpath=no
19009 hardcode_into_libs=yes
19010 ;;
19011 *) # from 4.6 on, and DragonFly
19012 shlibpath_overrides_runpath=yes
19013 hardcode_into_libs=yes
19014 ;;
19015 esac
19016 ;;
19017
19018 gnu*)
19019 version_type=linux
19020 need_lib_prefix=no
19021 need_version=no
19022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19023 soname_spec='${libname}${release}${shared_ext}$major'
19024 shlibpath_var=LD_LIBRARY_PATH
19025 hardcode_into_libs=yes
19026 ;;
19027
19028 hpux9* | hpux10* | hpux11*)
19029 # Give a soname corresponding to the major version so that dld.sl refuses to
19030 # link against other versions.
19031 version_type=sunos
19032 need_lib_prefix=no
19033 need_version=no
19034 case $host_cpu in
19035 ia64*)
19036 shrext_cmds='.so'
19037 hardcode_into_libs=yes
19038 dynamic_linker="$host_os dld.so"
19039 shlibpath_var=LD_LIBRARY_PATH
19040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19042 soname_spec='${libname}${release}${shared_ext}$major'
19043 if test "X$HPUX_IA64_MODE" = X32; then
19044 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19045 else
19046 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19047 fi
19048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19049 ;;
19050 hppa*64*)
19051 shrext_cmds='.sl'
19052 hardcode_into_libs=yes
19053 dynamic_linker="$host_os dld.sl"
19054 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19057 soname_spec='${libname}${release}${shared_ext}$major'
19058 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19060 ;;
19061 *)
19062 shrext_cmds='.sl'
19063 dynamic_linker="$host_os dld.sl"
19064 shlibpath_var=SHLIB_PATH
19065 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19067 soname_spec='${libname}${release}${shared_ext}$major'
19068 ;;
19069 esac
19070 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19071 postinstall_cmds='chmod 555 $lib'
19072 ;;
19073
19074 interix[3-9]*)
19075 version_type=linux
19076 need_lib_prefix=no
19077 need_version=no
19078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19079 soname_spec='${libname}${release}${shared_ext}$major'
19080 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19081 shlibpath_var=LD_LIBRARY_PATH
19082 shlibpath_overrides_runpath=no
19083 hardcode_into_libs=yes
19084 ;;
19085
19086 irix5* | irix6* | nonstopux*)
19087 case $host_os in
19088 nonstopux*) version_type=nonstopux ;;
19089 *)
19090 if test "$lt_cv_prog_gnu_ld" = yes; then
19091 version_type=linux
19092 else
19093 version_type=irix
19094 fi ;;
19095 esac
19096 need_lib_prefix=no
19097 need_version=no
19098 soname_spec='${libname}${release}${shared_ext}$major'
19099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19100 case $host_os in
19101 irix5* | nonstopux*)
19102 libsuff= shlibsuff=
19103 ;;
19104 *)
19105 case $LD in # libtool.m4 will add one of these switches to LD
19106 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19107 libsuff= shlibsuff= libmagic=32-bit;;
19108 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19109 libsuff=32 shlibsuff=N32 libmagic=N32;;
19110 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19111 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19112 *) libsuff= shlibsuff= libmagic=never-match;;
19113 esac
19114 ;;
19115 esac
19116 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19117 shlibpath_overrides_runpath=no
19118 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19119 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19120 hardcode_into_libs=yes
19121 ;;
19122
19123 # No shared lib support for Linux oldld, aout, or coff.
19124 linux*oldld* | linux*aout* | linux*coff*)
19125 dynamic_linker=no
19126 ;;
19127
19128 # This must be Linux ELF.
19129 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19130 version_type=linux
19131 need_lib_prefix=no
19132 need_version=no
19133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19134 soname_spec='${libname}${release}${shared_ext}$major'
19135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19136 shlibpath_var=LD_LIBRARY_PATH
19137 shlibpath_overrides_runpath=no
19138
19139 # Some binutils ld are patched to set DT_RUNPATH
19140 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143 lt_cv_shlibpath_overrides_runpath=no
19144 save_LDFLAGS=$LDFLAGS
19145 save_libdir=$libdir
19146 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19147 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19148 cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h. */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154
19155 int
19156 main ()
19157 {
19158
19159 ;
19160 return 0;
19161 }
19162 _ACEOF
19163 rm -f conftest.$ac_objext conftest$ac_exeext
19164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19165 (eval $ac_link) 2>conftest.er1
19166 ac_status=$?
19167 grep -v '^ *+' conftest.er1 >conftest.err
19168 rm -f conftest.er1
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } &&
19172 { ac_try='test -z "$ac_c_werror_flag"
19173 || test ! -s conftest.err'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; } &&
19179 { ac_try='test -s conftest$ac_exeext'
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
19186 lt_cv_shlibpath_overrides_runpath=yes
19187 fi
19188
19189 else
19190 echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19192
19193 fi
19194 rm -f conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
19196 LDFLAGS=$save_LDFLAGS
19197 libdir=$save_libdir
19198
19199 fi
19200
19201 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19202
19203 # This implies no fast_install, which is unacceptable.
19204 # Some rework will be needed to allow for fast_install
19205 # before this can be enabled.
19206 hardcode_into_libs=yes
19207
19208 # Append ld.so.conf contents to the search path
19209 if test -f /etc/ld.so.conf; then
19210 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19211 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19212 fi
19213
19214 # We used to test for /lib/ld.so.1 and disable shared libraries on
19215 # powerpc, because MkLinux only supported shared libraries with the
19216 # GNU dynamic linker. Since this was broken with cross compilers,
19217 # most powerpc-linux boxes support dynamic linking these days and
19218 # people can always --disable-shared, the test was removed, and we
19219 # assume the GNU/Linux dynamic linker is in use.
19220 dynamic_linker='GNU/Linux ld.so'
19221 ;;
19222
19223 netbsd*)
19224 version_type=sunos
19225 need_lib_prefix=no
19226 need_version=no
19227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19230 dynamic_linker='NetBSD (a.out) ld.so'
19231 else
19232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19233 soname_spec='${libname}${release}${shared_ext}$major'
19234 dynamic_linker='NetBSD ld.elf_so'
19235 fi
19236 shlibpath_var=LD_LIBRARY_PATH
19237 shlibpath_overrides_runpath=yes
19238 hardcode_into_libs=yes
19239 ;;
19240
19241 newsos6)
19242 version_type=linux
19243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19244 shlibpath_var=LD_LIBRARY_PATH
19245 shlibpath_overrides_runpath=yes
19246 ;;
19247
19248 *nto* | *qnx*)
19249 version_type=qnx
19250 need_lib_prefix=no
19251 need_version=no
19252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19253 soname_spec='${libname}${release}${shared_ext}$major'
19254 shlibpath_var=LD_LIBRARY_PATH
19255 shlibpath_overrides_runpath=no
19256 hardcode_into_libs=yes
19257 dynamic_linker='ldqnx.so'
19258 ;;
19259
19260 openbsd*)
19261 version_type=sunos
19262 sys_lib_dlsearch_path_spec="/usr/lib"
19263 need_lib_prefix=no
19264 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19265 case $host_os in
19266 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19267 *) need_version=no ;;
19268 esac
19269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19271 shlibpath_var=LD_LIBRARY_PATH
19272 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19273 case $host_os in
19274 openbsd2.[89] | openbsd2.[89].*)
19275 shlibpath_overrides_runpath=no
19276 ;;
19277 *)
19278 shlibpath_overrides_runpath=yes
19279 ;;
19280 esac
19281 else
19282 shlibpath_overrides_runpath=yes
19283 fi
19284 ;;
19285
19286 os2*)
19287 libname_spec='$name'
19288 shrext_cmds=".dll"
19289 need_lib_prefix=no
19290 library_names_spec='$libname${shared_ext} $libname.a'
19291 dynamic_linker='OS/2 ld.exe'
19292 shlibpath_var=LIBPATH
19293 ;;
19294
19295 osf3* | osf4* | osf5*)
19296 version_type=osf
19297 need_lib_prefix=no
19298 need_version=no
19299 soname_spec='${libname}${release}${shared_ext}$major'
19300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19301 shlibpath_var=LD_LIBRARY_PATH
19302 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19303 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19304 ;;
19305
19306 rdos*)
19307 dynamic_linker=no
19308 ;;
19309
19310 solaris*)
19311 version_type=linux
19312 need_lib_prefix=no
19313 need_version=no
19314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19315 soname_spec='${libname}${release}${shared_ext}$major'
19316 shlibpath_var=LD_LIBRARY_PATH
19317 shlibpath_overrides_runpath=yes
19318 hardcode_into_libs=yes
19319 # ldd complains unless libraries are executable
19320 postinstall_cmds='chmod +x $lib'
19321 ;;
19322
19323 sunos4*)
19324 version_type=sunos
19325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19327 shlibpath_var=LD_LIBRARY_PATH
19328 shlibpath_overrides_runpath=yes
19329 if test "$with_gnu_ld" = yes; then
19330 need_lib_prefix=no
19331 fi
19332 need_version=yes
19333 ;;
19334
19335 sysv4 | sysv4.3*)
19336 version_type=linux
19337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19338 soname_spec='${libname}${release}${shared_ext}$major'
19339 shlibpath_var=LD_LIBRARY_PATH
19340 case $host_vendor in
19341 sni)
19342 shlibpath_overrides_runpath=no
19343 need_lib_prefix=no
19344 runpath_var=LD_RUN_PATH
19345 ;;
19346 siemens)
19347 need_lib_prefix=no
19348 ;;
19349 motorola)
19350 need_lib_prefix=no
19351 need_version=no
19352 shlibpath_overrides_runpath=no
19353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19354 ;;
19355 esac
19356 ;;
19357
19358 sysv4*MP*)
19359 if test -d /usr/nec ;then
19360 version_type=linux
19361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19362 soname_spec='$libname${shared_ext}.$major'
19363 shlibpath_var=LD_LIBRARY_PATH
19364 fi
19365 ;;
19366
19367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19368 version_type=freebsd-elf
19369 need_lib_prefix=no
19370 need_version=no
19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19372 soname_spec='${libname}${release}${shared_ext}$major'
19373 shlibpath_var=LD_LIBRARY_PATH
19374 shlibpath_overrides_runpath=yes
19375 hardcode_into_libs=yes
19376 if test "$with_gnu_ld" = yes; then
19377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19378 else
19379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19380 case $host_os in
19381 sco3.2v5*)
19382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19383 ;;
19384 esac
19385 fi
19386 sys_lib_dlsearch_path_spec='/usr/lib'
19387 ;;
19388
19389 tpf*)
19390 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19391 version_type=linux
19392 need_lib_prefix=no
19393 need_version=no
19394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19395 shlibpath_var=LD_LIBRARY_PATH
19396 shlibpath_overrides_runpath=no
19397 hardcode_into_libs=yes
19398 ;;
19399
19400 uts4*)
19401 version_type=linux
19402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19403 soname_spec='${libname}${release}${shared_ext}$major'
19404 shlibpath_var=LD_LIBRARY_PATH
19405 ;;
19406
19407 *)
19408 dynamic_linker=no
19409 ;;
19410 esac
19411 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19412 echo "${ECHO_T}$dynamic_linker" >&6
19413 test "$dynamic_linker" = no && can_build_shared=no
19414
19415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19416 if test "$GCC" = yes; then
19417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19418 fi
19419
19420 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19421 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19422 fi
19423 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19424 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19425 fi
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19514 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19515 hardcode_action=
19516 if test -n "$hardcode_libdir_flag_spec" ||
19517 test -n "$runpath_var" ||
19518 test "X$hardcode_automatic" = "Xyes" ; then
19519
19520 # We can hardcode non-existent directories.
19521 if test "$hardcode_direct" != no &&
19522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19523 # have to relink, otherwise we might link with an installed library
19524 # when we should be linking with a yet-to-be-installed one
19525 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19526 test "$hardcode_minus_L" != no; then
19527 # Linking always hardcodes the temporary library directory.
19528 hardcode_action=relink
19529 else
19530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19531 hardcode_action=immediate
19532 fi
19533 else
19534 # We cannot hardcode anything, or else we can only hardcode existing
19535 # directories.
19536 hardcode_action=unsupported
19537 fi
19538 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19539 echo "${ECHO_T}$hardcode_action" >&6
19540
19541 if test "$hardcode_action" = relink ||
19542 test "$inherit_rpath" = yes; then
19543 # Fast installation is not supported
19544 enable_fast_install=no
19545 elif test "$shlibpath_overrides_runpath" = yes ||
19546 test "$enable_shared" = no; then
19547 # Fast installation is not necessary
19548 enable_fast_install=needless
19549 fi
19550
19551
19552
19553
19554
19555
19556 if test "x$enable_dlopen" != xyes; then
19557 enable_dlopen=unknown
19558 enable_dlopen_self=unknown
19559 enable_dlopen_self_static=unknown
19560 else
19561 lt_cv_dlopen=no
19562 lt_cv_dlopen_libs=
19563
19564 case $host_os in
19565 beos*)
19566 lt_cv_dlopen="load_add_on"
19567 lt_cv_dlopen_libs=
19568 lt_cv_dlopen_self=yes
19569 ;;
19570
19571 mingw* | pw32* | cegcc*)
19572 lt_cv_dlopen="LoadLibrary"
19573 lt_cv_dlopen_libs=
19574 ;;
19575
19576 cygwin*)
19577 lt_cv_dlopen="dlopen"
19578 lt_cv_dlopen_libs=
19579 ;;
19580
19581 darwin*)
19582 # if libdl is installed we need to link against it
19583 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19584 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588 ac_check_lib_save_LIBS=$LIBS
19589 LIBS="-ldl $LIBS"
19590 cat >conftest.$ac_ext <<_ACEOF
19591 /* confdefs.h. */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596
19597 /* Override any gcc2 internal prototype to avoid an error. */
19598 #ifdef __cplusplus
19599 extern "C"
19600 #endif
19601 /* We use char because int might match the return type of a gcc2
19602 builtin and then its argument prototype would still apply. */
19603 char dlopen ();
19604 int
19605 main ()
19606 {
19607 dlopen ();
19608 ;
19609 return 0;
19610 }
19611 _ACEOF
19612 rm -f conftest.$ac_objext conftest$ac_exeext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19614 (eval $ac_link) 2>conftest.er1
19615 ac_status=$?
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } &&
19621 { ac_try='test -z "$ac_c_werror_flag"
19622 || test ! -s conftest.err'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; } &&
19628 { ac_try='test -s conftest$ac_exeext'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 ac_cv_lib_dl_dlopen=yes
19635 else
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 ac_cv_lib_dl_dlopen=no
19640 fi
19641 rm -f conftest.err conftest.$ac_objext \
19642 conftest$ac_exeext conftest.$ac_ext
19643 LIBS=$ac_check_lib_save_LIBS
19644 fi
19645 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19646 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19647 if test $ac_cv_lib_dl_dlopen = yes; then
19648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19649 else
19650
19651 lt_cv_dlopen="dyld"
19652 lt_cv_dlopen_libs=
19653 lt_cv_dlopen_self=yes
19654
19655 fi
19656
19657 ;;
19658
19659 *)
19660 echo "$as_me:$LINENO: checking for shl_load" >&5
19661 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19662 if test "${ac_cv_func_shl_load+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 else
19665 cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h. */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19673 #define shl_load innocuous_shl_load
19674
19675 /* System header to define __stub macros and hopefully few prototypes,
19676 which can conflict with char shl_load (); below.
19677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19678 <limits.h> exists even on freestanding compilers. */
19679
19680 #ifdef __STDC__
19681 # include <limits.h>
19682 #else
19683 # include <assert.h>
19684 #endif
19685
19686 #undef shl_load
19687
19688 /* Override any gcc2 internal prototype to avoid an error. */
19689 #ifdef __cplusplus
19690 extern "C"
19691 {
19692 #endif
19693 /* We use char because int might match the return type of a gcc2
19694 builtin and then its argument prototype would still apply. */
19695 char shl_load ();
19696 /* The GNU C library defines this for functions which it implements
19697 to always fail with ENOSYS. Some functions are actually named
19698 something starting with __ and the normal name is an alias. */
19699 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19700 choke me
19701 #else
19702 char (*f) () = shl_load;
19703 #endif
19704 #ifdef __cplusplus
19705 }
19706 #endif
19707
19708 int
19709 main ()
19710 {
19711 return f != shl_load;
19712 ;
19713 return 0;
19714 }
19715 _ACEOF
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19718 (eval $ac_link) 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try='test -z "$ac_c_werror_flag"
19726 || test ! -s conftest.err'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest$ac_exeext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 ac_cv_func_shl_load=yes
19739 else
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 ac_cv_func_shl_load=no
19744 fi
19745 rm -f conftest.err conftest.$ac_objext \
19746 conftest$ac_exeext conftest.$ac_ext
19747 fi
19748 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19749 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19750 if test $ac_cv_func_shl_load = yes; then
19751 lt_cv_dlopen="shl_load"
19752 else
19753 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19754 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19755 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 else
19758 ac_check_lib_save_LIBS=$LIBS
19759 LIBS="-ldld $LIBS"
19760 cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h. */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19766
19767 /* Override any gcc2 internal prototype to avoid an error. */
19768 #ifdef __cplusplus
19769 extern "C"
19770 #endif
19771 /* We use char because int might match the return type of a gcc2
19772 builtin and then its argument prototype would still apply. */
19773 char shl_load ();
19774 int
19775 main ()
19776 {
19777 shl_load ();
19778 ;
19779 return 0;
19780 }
19781 _ACEOF
19782 rm -f conftest.$ac_objext conftest$ac_exeext
19783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19784 (eval $ac_link) 2>conftest.er1
19785 ac_status=$?
19786 grep -v '^ *+' conftest.er1 >conftest.err
19787 rm -f conftest.er1
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } &&
19791 { ac_try='test -z "$ac_c_werror_flag"
19792 || test ! -s conftest.err'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; } &&
19798 { ac_try='test -s conftest$ac_exeext'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
19804 ac_cv_lib_dld_shl_load=yes
19805 else
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19808
19809 ac_cv_lib_dld_shl_load=no
19810 fi
19811 rm -f conftest.err conftest.$ac_objext \
19812 conftest$ac_exeext conftest.$ac_ext
19813 LIBS=$ac_check_lib_save_LIBS
19814 fi
19815 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19816 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19817 if test $ac_cv_lib_dld_shl_load = yes; then
19818 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19819 else
19820 echo "$as_me:$LINENO: checking for dlopen" >&5
19821 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19822 if test "${ac_cv_func_dlopen+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 else
19825 cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h. */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19833 #define dlopen innocuous_dlopen
19834
19835 /* System header to define __stub macros and hopefully few prototypes,
19836 which can conflict with char dlopen (); below.
19837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19838 <limits.h> exists even on freestanding compilers. */
19839
19840 #ifdef __STDC__
19841 # include <limits.h>
19842 #else
19843 # include <assert.h>
19844 #endif
19845
19846 #undef dlopen
19847
19848 /* Override any gcc2 internal prototype to avoid an error. */
19849 #ifdef __cplusplus
19850 extern "C"
19851 {
19852 #endif
19853 /* We use char because int might match the return type of a gcc2
19854 builtin and then its argument prototype would still apply. */
19855 char dlopen ();
19856 /* The GNU C library defines this for functions which it implements
19857 to always fail with ENOSYS. Some functions are actually named
19858 something starting with __ and the normal name is an alias. */
19859 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19860 choke me
19861 #else
19862 char (*f) () = dlopen;
19863 #endif
19864 #ifdef __cplusplus
19865 }
19866 #endif
19867
19868 int
19869 main ()
19870 {
19871 return f != dlopen;
19872 ;
19873 return 0;
19874 }
19875 _ACEOF
19876 rm -f conftest.$ac_objext conftest$ac_exeext
19877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19878 (eval $ac_link) 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
19885 { ac_try='test -z "$ac_c_werror_flag"
19886 || test ! -s conftest.err'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try='test -s conftest$ac_exeext'
19893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_func_dlopen=yes
19899 else
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903 ac_cv_func_dlopen=no
19904 fi
19905 rm -f conftest.err conftest.$ac_objext \
19906 conftest$ac_exeext conftest.$ac_ext
19907 fi
19908 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19909 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19910 if test $ac_cv_func_dlopen = yes; then
19911 lt_cv_dlopen="dlopen"
19912 else
19913 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19914 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19915 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918 ac_check_lib_save_LIBS=$LIBS
19919 LIBS="-ldl $LIBS"
19920 cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h. */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19926
19927 /* Override any gcc2 internal prototype to avoid an error. */
19928 #ifdef __cplusplus
19929 extern "C"
19930 #endif
19931 /* We use char because int might match the return type of a gcc2
19932 builtin and then its argument prototype would still apply. */
19933 char dlopen ();
19934 int
19935 main ()
19936 {
19937 dlopen ();
19938 ;
19939 return 0;
19940 }
19941 _ACEOF
19942 rm -f conftest.$ac_objext conftest$ac_exeext
19943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19944 (eval $ac_link) 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -z "$ac_c_werror_flag"
19952 || test ! -s conftest.err'
19953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954 (eval $ac_try) 2>&5
19955 ac_status=$?
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; } &&
19958 { ac_try='test -s conftest$ac_exeext'
19959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19960 (eval $ac_try) 2>&5
19961 ac_status=$?
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; }; then
19964 ac_cv_lib_dl_dlopen=yes
19965 else
19966 echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969 ac_cv_lib_dl_dlopen=no
19970 fi
19971 rm -f conftest.err conftest.$ac_objext \
19972 conftest$ac_exeext conftest.$ac_ext
19973 LIBS=$ac_check_lib_save_LIBS
19974 fi
19975 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19977 if test $ac_cv_lib_dl_dlopen = yes; then
19978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19979 else
19980 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19981 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19982 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985 ac_check_lib_save_LIBS=$LIBS
19986 LIBS="-lsvld $LIBS"
19987 cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h. */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h. */
19993
19994 /* Override any gcc2 internal prototype to avoid an error. */
19995 #ifdef __cplusplus
19996 extern "C"
19997 #endif
19998 /* We use char because int might match the return type of a gcc2
19999 builtin and then its argument prototype would still apply. */
20000 char dlopen ();
20001 int
20002 main ()
20003 {
20004 dlopen ();
20005 ;
20006 return 0;
20007 }
20008 _ACEOF
20009 rm -f conftest.$ac_objext conftest$ac_exeext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20011 (eval $ac_link) 2>conftest.er1
20012 ac_status=$?
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
20018 { ac_try='test -z "$ac_c_werror_flag"
20019 || test ! -s conftest.err'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } &&
20025 { ac_try='test -s conftest$ac_exeext'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_cv_lib_svld_dlopen=yes
20032 else
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036 ac_cv_lib_svld_dlopen=no
20037 fi
20038 rm -f conftest.err conftest.$ac_objext \
20039 conftest$ac_exeext conftest.$ac_ext
20040 LIBS=$ac_check_lib_save_LIBS
20041 fi
20042 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20043 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20044 if test $ac_cv_lib_svld_dlopen = yes; then
20045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20046 else
20047 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20048 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052 ac_check_lib_save_LIBS=$LIBS
20053 LIBS="-ldld $LIBS"
20054 cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h. */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060
20061 /* Override any gcc2 internal prototype to avoid an error. */
20062 #ifdef __cplusplus
20063 extern "C"
20064 #endif
20065 /* We use char because int might match the return type of a gcc2
20066 builtin and then its argument prototype would still apply. */
20067 char dld_link ();
20068 int
20069 main ()
20070 {
20071 dld_link ();
20072 ;
20073 return 0;
20074 }
20075 _ACEOF
20076 rm -f conftest.$ac_objext conftest$ac_exeext
20077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20078 (eval $ac_link) 2>conftest.er1
20079 ac_status=$?
20080 grep -v '^ *+' conftest.er1 >conftest.err
20081 rm -f conftest.er1
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } &&
20085 { ac_try='test -z "$ac_c_werror_flag"
20086 || test ! -s conftest.err'
20087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20088 (eval $ac_try) 2>&5
20089 ac_status=$?
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; } &&
20092 { ac_try='test -s conftest$ac_exeext'
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094 (eval $ac_try) 2>&5
20095 ac_status=$?
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; }; then
20098 ac_cv_lib_dld_dld_link=yes
20099 else
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20102
20103 ac_cv_lib_dld_dld_link=no
20104 fi
20105 rm -f conftest.err conftest.$ac_objext \
20106 conftest$ac_exeext conftest.$ac_ext
20107 LIBS=$ac_check_lib_save_LIBS
20108 fi
20109 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20110 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20111 if test $ac_cv_lib_dld_dld_link = yes; then
20112 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
20113 fi
20114
20115
20116 fi
20117
20118
20119 fi
20120
20121
20122 fi
20123
20124
20125 fi
20126
20127
20128 fi
20129
20130 ;;
20131 esac
20132
20133 if test "x$lt_cv_dlopen" != xno; then
20134 enable_dlopen=yes
20135 else
20136 enable_dlopen=no
20137 fi
20138
20139 case $lt_cv_dlopen in
20140 dlopen)
20141 save_CPPFLAGS="$CPPFLAGS"
20142 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20143
20144 save_LDFLAGS="$LDFLAGS"
20145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20146
20147 save_LIBS="$LIBS"
20148 LIBS="$lt_cv_dlopen_libs $LIBS"
20149
20150 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20151 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20152 if test "${lt_cv_dlopen_self+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 else
20155 if test "$cross_compiling" = yes; then :
20156 lt_cv_dlopen_self=cross
20157 else
20158 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20159 lt_status=$lt_dlunknown
20160 cat > conftest.$ac_ext <<_LT_EOF
20161 #line 20161 "configure"
20162 #include "confdefs.h"
20163
20164 #if HAVE_DLFCN_H
20165 #include <dlfcn.h>
20166 #endif
20167
20168 #include <stdio.h>
20169
20170 #ifdef RTLD_GLOBAL
20171 # define LT_DLGLOBAL RTLD_GLOBAL
20172 #else
20173 # ifdef DL_GLOBAL
20174 # define LT_DLGLOBAL DL_GLOBAL
20175 # else
20176 # define LT_DLGLOBAL 0
20177 # endif
20178 #endif
20179
20180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20181 find out it does not work in some platform. */
20182 #ifndef LT_DLLAZY_OR_NOW
20183 # ifdef RTLD_LAZY
20184 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20185 # else
20186 # ifdef DL_LAZY
20187 # define LT_DLLAZY_OR_NOW DL_LAZY
20188 # else
20189 # ifdef RTLD_NOW
20190 # define LT_DLLAZY_OR_NOW RTLD_NOW
20191 # else
20192 # ifdef DL_NOW
20193 # define LT_DLLAZY_OR_NOW DL_NOW
20194 # else
20195 # define LT_DLLAZY_OR_NOW 0
20196 # endif
20197 # endif
20198 # endif
20199 # endif
20200 #endif
20201
20202 void fnord() { int i=42;}
20203 int main ()
20204 {
20205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20206 int status = $lt_dlunknown;
20207
20208 if (self)
20209 {
20210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20211 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20212 /* dlclose (self); */
20213 }
20214 else
20215 puts (dlerror ());
20216
20217 return status;
20218 }
20219 _LT_EOF
20220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20221 (eval $ac_link) 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20225 (./conftest; exit; ) >&5 2>/dev/null
20226 lt_status=$?
20227 case x$lt_status in
20228 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20229 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20230 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20231 esac
20232 else :
20233 # compilation failed
20234 lt_cv_dlopen_self=no
20235 fi
20236 fi
20237 rm -fr conftest*
20238
20239
20240 fi
20241 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20242 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20243
20244 if test "x$lt_cv_dlopen_self" = xyes; then
20245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20246 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20247 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20248 if test "${lt_cv_dlopen_self_static+set}" = set; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20250 else
20251 if test "$cross_compiling" = yes; then :
20252 lt_cv_dlopen_self_static=cross
20253 else
20254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20255 lt_status=$lt_dlunknown
20256 cat > conftest.$ac_ext <<_LT_EOF
20257 #line 20257 "configure"
20258 #include "confdefs.h"
20259
20260 #if HAVE_DLFCN_H
20261 #include <dlfcn.h>
20262 #endif
20263
20264 #include <stdio.h>
20265
20266 #ifdef RTLD_GLOBAL
20267 # define LT_DLGLOBAL RTLD_GLOBAL
20268 #else
20269 # ifdef DL_GLOBAL
20270 # define LT_DLGLOBAL DL_GLOBAL
20271 # else
20272 # define LT_DLGLOBAL 0
20273 # endif
20274 #endif
20275
20276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20277 find out it does not work in some platform. */
20278 #ifndef LT_DLLAZY_OR_NOW
20279 # ifdef RTLD_LAZY
20280 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20281 # else
20282 # ifdef DL_LAZY
20283 # define LT_DLLAZY_OR_NOW DL_LAZY
20284 # else
20285 # ifdef RTLD_NOW
20286 # define LT_DLLAZY_OR_NOW RTLD_NOW
20287 # else
20288 # ifdef DL_NOW
20289 # define LT_DLLAZY_OR_NOW DL_NOW
20290 # else
20291 # define LT_DLLAZY_OR_NOW 0
20292 # endif
20293 # endif
20294 # endif
20295 # endif
20296 #endif
20297
20298 void fnord() { int i=42;}
20299 int main ()
20300 {
20301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20302 int status = $lt_dlunknown;
20303
20304 if (self)
20305 {
20306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20307 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20308 /* dlclose (self); */
20309 }
20310 else
20311 puts (dlerror ());
20312
20313 return status;
20314 }
20315 _LT_EOF
20316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20317 (eval $ac_link) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20321 (./conftest; exit; ) >&5 2>/dev/null
20322 lt_status=$?
20323 case x$lt_status in
20324 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20325 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20326 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20327 esac
20328 else :
20329 # compilation failed
20330 lt_cv_dlopen_self_static=no
20331 fi
20332 fi
20333 rm -fr conftest*
20334
20335
20336 fi
20337 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20338 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20339 fi
20340
20341 CPPFLAGS="$save_CPPFLAGS"
20342 LDFLAGS="$save_LDFLAGS"
20343 LIBS="$save_LIBS"
20344 ;;
20345 esac
20346
20347 case $lt_cv_dlopen_self in
20348 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20349 *) enable_dlopen_self=unknown ;;
20350 esac
20351
20352 case $lt_cv_dlopen_self_static in
20353 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20354 *) enable_dlopen_self_static=unknown ;;
20355 esac
20356 fi
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374 striplib=
20375 old_striplib=
20376 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20377 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20378 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20379 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20380 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20381 echo "$as_me:$LINENO: result: yes" >&5
20382 echo "${ECHO_T}yes" >&6
20383 else
20384 # FIXME - insert some real tests, host_os isn't really good enough
20385 case $host_os in
20386 darwin*)
20387 if test -n "$STRIP" ; then
20388 striplib="$STRIP -x"
20389 old_striplib="$STRIP -S"
20390 echo "$as_me:$LINENO: result: yes" >&5
20391 echo "${ECHO_T}yes" >&6
20392 else
20393 echo "$as_me:$LINENO: result: no" >&5
20394 echo "${ECHO_T}no" >&6
20395 fi
20396 ;;
20397 *)
20398 echo "$as_me:$LINENO: result: no" >&5
20399 echo "${ECHO_T}no" >&6
20400 ;;
20401 esac
20402 fi
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415 # Report which library types will actually be built
20416 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20417 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20418 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20419 echo "${ECHO_T}$can_build_shared" >&6
20420
20421 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20422 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20423 test "$can_build_shared" = "no" && enable_shared=no
20424
20425 # On AIX, shared libraries and static libraries use the same namespace, and
20426 # are all built from PIC.
20427 case $host_os in
20428 aix3*)
20429 test "$enable_shared" = yes && enable_static=no
20430 if test -n "$RANLIB"; then
20431 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20432 postinstall_cmds='$RANLIB $lib'
20433 fi
20434 ;;
20435
20436 aix[4-9]*)
20437 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20438 test "$enable_shared" = yes && enable_static=no
20439 fi
20440 ;;
20441 esac
20442 echo "$as_me:$LINENO: result: $enable_shared" >&5
20443 echo "${ECHO_T}$enable_shared" >&6
20444
20445 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20446 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20447 # Make sure either enable_shared or enable_static is yes.
20448 test "$enable_shared" = yes || enable_static=yes
20449 echo "$as_me:$LINENO: result: $enable_static" >&5
20450 echo "${ECHO_T}$enable_static" >&6
20451
20452
20453
20454
20455 fi
20456 ac_ext=c
20457 ac_cpp='$CPP $CPPFLAGS'
20458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20461
20462 CC="$lt_save_CC"
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479 # Only expand once:
20480
20481
20482
20483
20484
20485 # Identify the assembler which will work hand-in-glove with the newly
20486 # built GCC, so that we can examine its features. This is the assembler
20487 # which will be driven by the driver program.
20488 #
20489 # If build != host, and we aren't building gas in-tree, we identify a
20490 # build->target assembler and hope that it will have the same features
20491 # as the host->target assembler we'll be using.
20492 gcc_cv_gas_major_version=
20493 gcc_cv_gas_minor_version=
20494 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20495
20496 if test "${gcc_cv_as+set}" = set; then
20497 :
20498 else
20499
20500 if test -x "$DEFAULT_ASSEMBLER"; then
20501 gcc_cv_as="$DEFAULT_ASSEMBLER"
20502 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20503 && test -f ../gas/Makefile \
20504 && test x$build = x$host; then
20505 gcc_cv_as=../gas/as-new$build_exeext
20506 elif test -x as$build_exeext; then
20507 # Build using assembler in the current directory.
20508 gcc_cv_as=./as$build_exeext
20509 elif test -x $AS_FOR_TARGET; then
20510 gcc_cv_as="$AS_FOR_TARGET"
20511 else
20512 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20513 set dummy $AS_FOR_TARGET; ac_word=$2
20514 echo "$as_me:$LINENO: checking for $ac_word" >&5
20515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20516 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
20518 else
20519 case $gcc_cv_as in
20520 [\\/]* | ?:[\\/]*)
20521 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20522 ;;
20523 *)
20524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20525 for as_dir in $PATH
20526 do
20527 IFS=$as_save_IFS
20528 test -z "$as_dir" && as_dir=.
20529 for ac_exec_ext in '' $ac_executable_extensions; do
20530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20531 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20533 break 2
20534 fi
20535 done
20536 done
20537
20538 ;;
20539 esac
20540 fi
20541 gcc_cv_as=$ac_cv_path_gcc_cv_as
20542
20543 if test -n "$gcc_cv_as"; then
20544 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20545 echo "${ECHO_T}$gcc_cv_as" >&6
20546 else
20547 echo "$as_me:$LINENO: result: no" >&5
20548 echo "${ECHO_T}no" >&6
20549 fi
20550
20551 fi
20552 fi
20553
20554
20555 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20556
20557 case "$ORIGINAL_AS_FOR_TARGET" in
20558 ./as | ./as$build_exeext) ;;
20559 *) ac_config_files="$ac_config_files as:exec-tool.in"
20560 ;;
20561 esac
20562
20563 echo "$as_me:$LINENO: checking what assembler to use" >&5
20564 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20565 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20566 # Single tree build which includes gas. We want to prefer it
20567 # over whatever linker top-level may have detected, since
20568 # we'll use what we're building after installation anyway.
20569 echo "$as_me:$LINENO: result: newly built gas" >&5
20570 echo "${ECHO_T}newly built gas" >&6
20571 in_tree_gas=yes
20572 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20573 for f in $gcc_cv_as_bfd_srcdir/configure \
20574 $gcc_cv_as_gas_srcdir/configure \
20575 $gcc_cv_as_gas_srcdir/configure.in \
20576 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20577 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20578 if test x$gcc_cv_gas_version != x; then
20579 break
20580 fi
20581 done
20582 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20583 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20584 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20585 case $gcc_cv_gas_patch_version in
20586 "") gcc_cv_gas_patch_version="0" ;;
20587 esac
20588 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20589 + $gcc_cv_gas_minor_version \) \* 1000 \
20590 + $gcc_cv_gas_patch_version`
20591
20592 in_tree_gas_is_elf=no
20593 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20594 || (grep 'obj_format = multi' ../gas/Makefile \
20595 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20596 then
20597 in_tree_gas_is_elf=yes
20598 fi
20599 else
20600 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20601 echo "${ECHO_T}$gcc_cv_as" >&6
20602 in_tree_gas=no
20603 fi
20604
20605 # Identify the linker which will work hand-in-glove with the newly
20606 # built GCC, so that we can examine its features. This is the linker
20607 # which will be driven by the driver program.
20608 #
20609 # If build != host, and we aren't building gas in-tree, we identify a
20610 # build->target linker and hope that it will have the same features
20611 # as the host->target linker we'll be using.
20612 gcc_cv_gld_major_version=
20613 gcc_cv_gld_minor_version=
20614 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20615 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20616
20617 if test "${gcc_cv_ld+set}" = set; then
20618 :
20619 else
20620
20621 if test -x "$DEFAULT_LINKER"; then
20622 gcc_cv_ld="$DEFAULT_LINKER"
20623 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20624 && test -f ../ld/Makefile \
20625 && test x$build = x$host; then
20626 gcc_cv_ld=../ld/ld-new$build_exeext
20627 elif test -x collect-ld$build_exeext; then
20628 # Build using linker in the current directory.
20629 gcc_cv_ld=./collect-ld$build_exeext
20630 elif test -x $LD_FOR_TARGET; then
20631 gcc_cv_ld="$LD_FOR_TARGET"
20632 else
20633 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20634 set dummy $LD_FOR_TARGET; ac_word=$2
20635 echo "$as_me:$LINENO: checking for $ac_word" >&5
20636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20637 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 else
20640 case $gcc_cv_ld in
20641 [\\/]* | ?:[\\/]*)
20642 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20643 ;;
20644 *)
20645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20646 for as_dir in $PATH
20647 do
20648 IFS=$as_save_IFS
20649 test -z "$as_dir" && as_dir=.
20650 for ac_exec_ext in '' $ac_executable_extensions; do
20651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20652 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20654 break 2
20655 fi
20656 done
20657 done
20658
20659 ;;
20660 esac
20661 fi
20662 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20663
20664 if test -n "$gcc_cv_ld"; then
20665 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20666 echo "${ECHO_T}$gcc_cv_ld" >&6
20667 else
20668 echo "$as_me:$LINENO: result: no" >&5
20669 echo "${ECHO_T}no" >&6
20670 fi
20671
20672 fi
20673 fi
20674
20675
20676 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20677
20678 case "$ORIGINAL_LD_FOR_TARGET" in
20679 ./collect-ld | ./collect-ld$build_exeext) ;;
20680 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20681 ;;
20682 esac
20683
20684 echo "$as_me:$LINENO: checking what linker to use" >&5
20685 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20686 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20687 # Single tree build which includes ld. We want to prefer it
20688 # over whatever linker top-level may have detected, since
20689 # we'll use what we're building after installation anyway.
20690 echo "$as_me:$LINENO: result: newly built ld" >&5
20691 echo "${ECHO_T}newly built ld" >&6
20692 in_tree_ld=yes
20693 in_tree_ld_is_elf=no
20694 if (grep 'EMUL = .*elf' ../ld/Makefile \
20695 || grep 'EMUL = .*linux' ../ld/Makefile \
20696 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20697 in_tree_ld_is_elf=yes
20698 fi
20699 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
20700 do
20701 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20702 if test x$gcc_cv_gld_version != x; then
20703 break
20704 fi
20705 done
20706 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20707 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20708 else
20709 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20710 echo "${ECHO_T}$gcc_cv_ld" >&6
20711 in_tree_ld=no
20712 fi
20713
20714 # Figure out what nm we will be using.
20715 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20716 if test "${gcc_cv_nm+set}" = set; then
20717 :
20718 else
20719
20720 if test -f $gcc_cv_binutils_srcdir/configure.in \
20721 && test -f ../binutils/Makefile \
20722 && test x$build = x$host; then
20723 gcc_cv_nm=../binutils/nm-new$build_exeext
20724 elif test -x nm$build_exeext; then
20725 gcc_cv_nm=./nm$build_exeext
20726 elif test -x $NM_FOR_TARGET; then
20727 gcc_cv_nm="$NM_FOR_TARGET"
20728 else
20729 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20730 set dummy $NM_FOR_TARGET; ac_word=$2
20731 echo "$as_me:$LINENO: checking for $ac_word" >&5
20732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20733 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736 case $gcc_cv_nm in
20737 [\\/]* | ?:[\\/]*)
20738 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20739 ;;
20740 *)
20741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20742 for as_dir in $PATH
20743 do
20744 IFS=$as_save_IFS
20745 test -z "$as_dir" && as_dir=.
20746 for ac_exec_ext in '' $ac_executable_extensions; do
20747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20748 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20750 break 2
20751 fi
20752 done
20753 done
20754
20755 ;;
20756 esac
20757 fi
20758 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20759
20760 if test -n "$gcc_cv_nm"; then
20761 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20762 echo "${ECHO_T}$gcc_cv_nm" >&6
20763 else
20764 echo "$as_me:$LINENO: result: no" >&5
20765 echo "${ECHO_T}no" >&6
20766 fi
20767
20768 fi
20769 fi
20770
20771
20772 echo "$as_me:$LINENO: checking what nm to use" >&5
20773 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20774 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20775 # Single tree build which includes binutils.
20776 echo "$as_me:$LINENO: result: newly built nm" >&5
20777 echo "${ECHO_T}newly built nm" >&6
20778 in_tree_nm=yes
20779 else
20780 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20781 echo "${ECHO_T}$gcc_cv_nm" >&6
20782 in_tree_nm=no
20783 fi
20784
20785 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20786
20787 case "$ORIGINAL_NM_FOR_TARGET" in
20788 ./nm | ./nm$build_exeext) ;;
20789 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20790 ;;
20791 esac
20792
20793
20794 # Figure out what objdump we will be using.
20795 if test "${gcc_cv_objdump+set}" = set; then
20796 :
20797 else
20798
20799 if test -f $gcc_cv_binutils_srcdir/configure.in \
20800 && test -f ../binutils/Makefile \
20801 && test x$build = x$host; then
20802 # Single tree build which includes binutils.
20803 gcc_cv_objdump=../binutils/objdump$build_exeext
20804 elif test -x objdump$build_exeext; then
20805 gcc_cv_objdump=./objdump$build_exeext
20806 elif test -x $OBJDUMP_FOR_TARGET; then
20807 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20808 else
20809 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20810 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20811 echo "$as_me:$LINENO: checking for $ac_word" >&5
20812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20813 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816 case $gcc_cv_objdump in
20817 [\\/]* | ?:[\\/]*)
20818 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20819 ;;
20820 *)
20821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20822 for as_dir in $PATH
20823 do
20824 IFS=$as_save_IFS
20825 test -z "$as_dir" && as_dir=.
20826 for ac_exec_ext in '' $ac_executable_extensions; do
20827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20828 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20830 break 2
20831 fi
20832 done
20833 done
20834
20835 ;;
20836 esac
20837 fi
20838 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20839
20840 if test -n "$gcc_cv_objdump"; then
20841 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20842 echo "${ECHO_T}$gcc_cv_objdump" >&6
20843 else
20844 echo "$as_me:$LINENO: result: no" >&5
20845 echo "${ECHO_T}no" >&6
20846 fi
20847
20848 fi
20849 fi
20850
20851
20852 echo "$as_me:$LINENO: checking what objdump to use" >&5
20853 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20854 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20855 # Single tree build which includes binutils.
20856 echo "$as_me:$LINENO: result: newly built objdump" >&5
20857 echo "${ECHO_T}newly built objdump" >&6
20858 elif test x$gcc_cv_objdump = x; then
20859 echo "$as_me:$LINENO: result: not found" >&5
20860 echo "${ECHO_T}not found" >&6
20861 else
20862 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20863 echo "${ECHO_T}$gcc_cv_objdump" >&6
20864 fi
20865
20866 # Figure out what readelf we will be using.
20867 if test "${gcc_cv_readelf+set}" = set; then
20868 :
20869 else
20870
20871 if test -f $gcc_cv_binutils_srcdir/configure.in \
20872 && test -f ../binutils/Makefile \
20873 && test x$build = x$host; then
20874 # Single tree build which includes binutils.
20875 gcc_cv_readelf=../binutils/readelf$build_exeext
20876 elif test -x readelf$build_exeext; then
20877 gcc_cv_readelf=./readelf$build_exeext
20878 else
20879 # Extract the first word of "readelf", so it can be a program name with args.
20880 set dummy readelf; ac_word=$2
20881 echo "$as_me:$LINENO: checking for $ac_word" >&5
20882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20883 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20885 else
20886 case $gcc_cv_readelf in
20887 [\\/]* | ?:[\\/]*)
20888 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20889 ;;
20890 *)
20891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20892 for as_dir in $PATH
20893 do
20894 IFS=$as_save_IFS
20895 test -z "$as_dir" && as_dir=.
20896 for ac_exec_ext in '' $ac_executable_extensions; do
20897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20898 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20900 break 2
20901 fi
20902 done
20903 done
20904
20905 ;;
20906 esac
20907 fi
20908 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20909
20910 if test -n "$gcc_cv_readelf"; then
20911 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20912 echo "${ECHO_T}$gcc_cv_readelf" >&6
20913 else
20914 echo "$as_me:$LINENO: result: no" >&5
20915 echo "${ECHO_T}no" >&6
20916 fi
20917
20918 fi
20919 fi
20920
20921
20922 echo "$as_me:$LINENO: checking what readelf to use" >&5
20923 echo $ECHO_N "checking what readelf to use... $ECHO_C" >&6
20924 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20925 # Single tree build which includes binutils.
20926 echo "$as_me:$LINENO: result: newly built readelf" >&5
20927 echo "${ECHO_T}newly built readelf" >&6
20928 elif test x$gcc_cv_readelf = x; then
20929 echo "$as_me:$LINENO: result: not found" >&5
20930 echo "${ECHO_T}not found" >&6
20931 else
20932 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20933 echo "${ECHO_T}$gcc_cv_readelf" >&6
20934 fi
20935
20936 # Figure out what assembler alignment features are present.
20937 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20938 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20939 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942 gcc_cv_as_balign_and_p2align=no
20943 if test $in_tree_gas = yes; then
20944 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20945 then gcc_cv_as_balign_and_p2align=yes
20946 fi
20947 elif test x$gcc_cv_as != x; then
20948 echo '.balign 4
20949 .p2align 2' > conftest.s
20950 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; }
20956 then
20957 gcc_cv_as_balign_and_p2align=yes
20958 else
20959 echo "configure: failed program was" >&5
20960 cat conftest.s >&5
20961 fi
20962 rm -f conftest.o conftest.s
20963 fi
20964 fi
20965 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20966 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20967 if test $gcc_cv_as_balign_and_p2align = yes; then
20968
20969 cat >>confdefs.h <<\_ACEOF
20970 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20971 _ACEOF
20972
20973 fi
20974
20975 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20976 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20977 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20978 echo $ECHO_N "(cached) $ECHO_C" >&6
20979 else
20980 gcc_cv_as_max_skip_p2align=no
20981 if test $in_tree_gas = yes; then
20982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20983 then gcc_cv_as_max_skip_p2align=yes
20984 fi
20985 elif test x$gcc_cv_as != x; then
20986 echo '.p2align 4,,7' > conftest.s
20987 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }
20993 then
20994 gcc_cv_as_max_skip_p2align=yes
20995 else
20996 echo "configure: failed program was" >&5
20997 cat conftest.s >&5
20998 fi
20999 rm -f conftest.o conftest.s
21000 fi
21001 fi
21002 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
21003 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
21004 if test $gcc_cv_as_max_skip_p2align = yes; then
21005
21006 cat >>confdefs.h <<\_ACEOF
21007 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
21008 _ACEOF
21009
21010 fi
21011
21012 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
21013 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
21014 if test "${gcc_cv_as_literal16+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017 gcc_cv_as_literal16=no
21018 if test $in_tree_gas = yes; then
21019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21020 then gcc_cv_as_literal16=yes
21021 fi
21022 elif test x$gcc_cv_as != x; then
21023 echo '.literal16' > conftest.s
21024 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }
21030 then
21031 gcc_cv_as_literal16=yes
21032 else
21033 echo "configure: failed program was" >&5
21034 cat conftest.s >&5
21035 fi
21036 rm -f conftest.o conftest.s
21037 fi
21038 fi
21039 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
21040 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
21041 if test $gcc_cv_as_literal16 = yes; then
21042
21043 cat >>confdefs.h <<\_ACEOF
21044 #define HAVE_GAS_LITERAL16 1
21045 _ACEOF
21046
21047 fi
21048
21049 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
21050 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
21051 if test "${gcc_cv_as_subsection_m1+set}" = set; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 else
21054 gcc_cv_as_subsection_m1=no
21055 if test $in_tree_gas = yes; then
21056 if test $in_tree_gas_is_elf = yes \
21057 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21058 then gcc_cv_as_subsection_m1=yes
21059 fi
21060 elif test x$gcc_cv_as != x; then
21061 echo 'conftest_label1: .word 0
21062 .subsection -1
21063 conftest_label2: .word 0
21064 .previous' > conftest.s
21065 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; }
21071 then
21072 if test x$gcc_cv_nm != x; then
21073 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21074 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21075 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21076 then :
21077 else gcc_cv_as_subsection_m1=yes
21078 fi
21079 rm -f conftest.nm1 conftest.nm2
21080 fi
21081 else
21082 echo "configure: failed program was" >&5
21083 cat conftest.s >&5
21084 fi
21085 rm -f conftest.o conftest.s
21086 fi
21087 fi
21088 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
21089 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
21090 if test $gcc_cv_as_subsection_m1 = yes; then
21091
21092 cat >>confdefs.h <<\_ACEOF
21093 #define HAVE_GAS_SUBSECTION_ORDERING 1
21094 _ACEOF
21095
21096 fi
21097
21098 echo "$as_me:$LINENO: checking assembler for .weak" >&5
21099 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
21100 if test "${gcc_cv_as_weak+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21102 else
21103 gcc_cv_as_weak=no
21104 if test $in_tree_gas = yes; then
21105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21106 then gcc_cv_as_weak=yes
21107 fi
21108 elif test x$gcc_cv_as != x; then
21109 echo ' .weak foobar' > conftest.s
21110 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }
21116 then
21117 gcc_cv_as_weak=yes
21118 else
21119 echo "configure: failed program was" >&5
21120 cat conftest.s >&5
21121 fi
21122 rm -f conftest.o conftest.s
21123 fi
21124 fi
21125 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
21126 echo "${ECHO_T}$gcc_cv_as_weak" >&6
21127 if test $gcc_cv_as_weak = yes; then
21128
21129 cat >>confdefs.h <<\_ACEOF
21130 #define HAVE_GAS_WEAK 1
21131 _ACEOF
21132
21133 fi
21134
21135 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
21136 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
21137 if test "${gcc_cv_as_weakref+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 else
21140 gcc_cv_as_weakref=no
21141 if test $in_tree_gas = yes; then
21142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21143 then gcc_cv_as_weakref=yes
21144 fi
21145 elif test x$gcc_cv_as != x; then
21146 echo ' .weakref foobar, barfnot' > conftest.s
21147 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }
21153 then
21154 gcc_cv_as_weakref=yes
21155 else
21156 echo "configure: failed program was" >&5
21157 cat conftest.s >&5
21158 fi
21159 rm -f conftest.o conftest.s
21160 fi
21161 fi
21162 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
21163 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
21164 if test $gcc_cv_as_weakref = yes; then
21165
21166 cat >>confdefs.h <<\_ACEOF
21167 #define HAVE_GAS_WEAKREF 1
21168 _ACEOF
21169
21170 fi
21171
21172 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
21173 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
21174 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21176 else
21177 gcc_cv_as_nsubspa_comdat=no
21178 if test $in_tree_gas = yes; then
21179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21180 then gcc_cv_as_nsubspa_comdat=yes
21181 fi
21182 elif test x$gcc_cv_as != x; then
21183 echo ' .SPACE $TEXT$
21184 .NSUBSPA $CODE$,COMDAT' > conftest.s
21185 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }
21191 then
21192 gcc_cv_as_nsubspa_comdat=yes
21193 else
21194 echo "configure: failed program was" >&5
21195 cat conftest.s >&5
21196 fi
21197 rm -f conftest.o conftest.s
21198 fi
21199 fi
21200 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
21201 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
21202 if test $gcc_cv_as_nsubspa_comdat = yes; then
21203
21204 cat >>confdefs.h <<\_ACEOF
21205 #define HAVE_GAS_NSUBSPA_COMDAT 1
21206 _ACEOF
21207
21208 fi
21209
21210 # .hidden needs to be supported in both the assembler and the linker,
21211 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21212 # This is irritatingly difficult to feature test for; we have to check the
21213 # date string after the version number. If we've got an in-tree
21214 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21215 # to be safe.
21216 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21217 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
21218 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
21219 if test "${gcc_cv_as_hidden+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222 gcc_cv_as_hidden=no
21223 if test $in_tree_gas = yes; then
21224 if test $in_tree_gas_is_elf = yes \
21225 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21226 then gcc_cv_as_hidden=yes
21227 fi
21228 elif test x$gcc_cv_as != x; then
21229 echo ' .hidden foobar
21230 foobar:' > conftest.s
21231 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }
21237 then
21238 gcc_cv_as_hidden=yes
21239 else
21240 echo "configure: failed program was" >&5
21241 cat conftest.s >&5
21242 fi
21243 rm -f conftest.o conftest.s
21244 fi
21245 fi
21246 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
21247 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
21248
21249
21250 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
21251 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
21252 if test "${gcc_cv_ld_hidden+set}" = set; then
21253 echo $ECHO_N "(cached) $ECHO_C" >&6
21254 else
21255 if test $in_tree_ld = yes ; then
21256 gcc_cv_ld_hidden=no
21257 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 \
21258 && test $in_tree_ld_is_elf = yes; then
21259 gcc_cv_ld_hidden=yes
21260 fi
21261 else
21262 gcc_cv_ld_hidden=yes
21263 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21264 if echo "$ld_ver" | grep GNU > /dev/null; then
21265 ld_vers=`echo $ld_ver | sed -n \
21266 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21267 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'`
21268 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21269 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21270 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21271 if test 0"$ld_date" -lt 20020404; then
21272 if test -n "$ld_date"; then
21273 # If there was date string, but was earlier than 2002-04-04, fail
21274 gcc_cv_ld_hidden=no
21275 elif test -z "$ld_vers"; then
21276 # If there was no date string nor ld version number, something is wrong
21277 gcc_cv_ld_hidden=no
21278 else
21279 test -z "$ld_vers_patch" && ld_vers_patch=0
21280 if test "$ld_vers_major" -lt 2; then
21281 gcc_cv_ld_hidden=no
21282 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21283 gcc_cv_ld_hidden="no"
21284 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21285 gcc_cv_ld_hidden=no
21286 fi
21287 fi
21288 fi
21289 else
21290 case "${target}" in
21291 hppa64*-*-hpux* | ia64*-*-hpux*)
21292 gcc_cv_ld_hidden=yes
21293 ;;
21294 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21295 gcc_cv_ld_hidden=yes
21296 ;;
21297 *)
21298 gcc_cv_ld_hidden=no
21299 ;;
21300 esac
21301 fi
21302 fi
21303 fi
21304 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
21305 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
21306 libgcc_visibility=no
21307
21308
21309 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21310 libgcc_visibility=yes
21311
21312 cat >>confdefs.h <<\_ACEOF
21313 #define HAVE_GAS_HIDDEN 1
21314 _ACEOF
21315
21316 fi
21317
21318 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
21319 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
21320 gcc_cv_ld_ro_rw_mix=unknown
21321 if test $in_tree_ld = yes ; then
21322 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 \
21323 && test $in_tree_ld_is_elf = yes; then
21324 gcc_cv_ld_ro_rw_mix=read-write
21325 fi
21326 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21327 echo '.section myfoosect, "a"' > conftest1.s
21328 echo '.section myfoosect, "aw"' > conftest2.s
21329 echo '.byte 1' >> conftest2.s
21330 echo '.section myfoosect, "a"' > conftest3.s
21331 echo '.byte 0' >> conftest3.s
21332 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21333 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21334 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21335 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21336 conftest2.o conftest3.o > /dev/null 2>&1; then
21337 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21338 | sed -e '/myfoosect/!d' -e N`
21339 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21340 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21341 gcc_cv_ld_ro_rw_mix=read-only
21342 else
21343 gcc_cv_ld_ro_rw_mix=read-write
21344 fi
21345 fi
21346 fi
21347 rm -f conftest.* conftest[123].*
21348 fi
21349 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21350
21351 cat >>confdefs.h <<\_ACEOF
21352 #define HAVE_LD_RO_RW_SECTION_MIXING 1
21353 _ACEOF
21354
21355 fi
21356 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
21357 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
21358
21359 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21360 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
21361 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
21362 if test "${gcc_cv_as_leb128+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21364 else
21365 gcc_cv_as_leb128=no
21366 if test $in_tree_gas = yes; then
21367 if test $in_tree_gas_is_elf = yes \
21368 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21369 then gcc_cv_as_leb128=yes
21370 fi
21371 elif test x$gcc_cv_as != x; then
21372 echo ' .data
21373 .uleb128 L2 - L1
21374 L1:
21375 .uleb128 1280
21376 .sleb128 -1010
21377 L2:' > conftest.s
21378 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380 (eval $ac_try) 2>&5
21381 ac_status=$?
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; }
21384 then
21385 # GAS versions before 2.11 do not support uleb128,
21386 # despite appearing to.
21387 # ??? There exists an elf-specific test that will crash
21388 # the assembler. Perhaps it's better to figure out whether
21389 # arbitrary sections are supported and try the test.
21390 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21391 if echo "$as_ver" | grep GNU > /dev/null; then
21392 as_vers=`echo $as_ver | sed -n \
21393 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21394 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21395 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21396 if test $as_major -eq 2 && test $as_minor -lt 11
21397 then :
21398 else gcc_cv_as_leb128=yes
21399 fi
21400 fi
21401 else
21402 echo "configure: failed program was" >&5
21403 cat conftest.s >&5
21404 fi
21405 rm -f conftest.o conftest.s
21406 fi
21407 fi
21408 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
21409 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
21410 if test $gcc_cv_as_leb128 = yes; then
21411
21412 cat >>confdefs.h <<\_ACEOF
21413 #define HAVE_AS_LEB128 1
21414 _ACEOF
21415
21416 fi
21417
21418 # Check if we have assembler support for unwind directives.
21419 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
21420 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
21421 if test "${gcc_cv_as_cfi_directive+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424 gcc_cv_as_cfi_directive=no
21425 if test x$gcc_cv_as != x; then
21426 echo ' .text
21427 .cfi_startproc
21428 .cfi_offset 0, 0
21429 .cfi_same_value 1
21430 .cfi_def_cfa 1, 2
21431 .cfi_escape 1, 2, 3, 4, 5
21432 .cfi_endproc' > conftest.s
21433 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }
21439 then
21440 case "$target" in
21441 *-*-solaris*)
21442 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21443 # read-only and read-write sections, we need to make sure that the
21444 # assembler used emits read-write .eh_frame sections.
21445 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21446 if test "x$gcc_cv_objdump" != x; then
21447 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21448 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21449 gcc_cv_as_cfi_directive=no
21450 else
21451 gcc_cv_as_cfi_directive=yes
21452 fi
21453 else
21454 # no objdump, err on the side of caution
21455 gcc_cv_as_cfi_directive=no
21456 fi
21457 else
21458 gcc_cv_as_cfi_directive=yes
21459 fi
21460 ;;
21461 *-*-*)
21462 gcc_cv_as_cfi_directive=yes
21463 ;;
21464 esac
21465 else
21466 echo "configure: failed program was" >&5
21467 cat conftest.s >&5
21468 fi
21469 rm -f conftest.o conftest.s
21470 fi
21471 fi
21472 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
21473 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
21474
21475 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21476 echo "$as_me:$LINENO: checking assembler for working cfi advance" >&5
21477 echo $ECHO_N "checking assembler for working cfi advance... $ECHO_C" >&6
21478 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 else
21481 gcc_cv_as_cfi_advance_working=no
21482 if test x$gcc_cv_as != x; then
21483 echo ' .text
21484 .cfi_startproc
21485 .cfi_adjust_cfa_offset 64
21486 .skip 512, 0
21487 .cfi_adjust_cfa_offset 128
21488 .cfi_endproc' > conftest.s
21489 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21492 ac_status=$?
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; }
21495 then
21496
21497 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21498 | grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev/null; then
21499 gcc_cv_as_cfi_advance_working=yes
21500 fi
21501
21502 else
21503 echo "configure: failed program was" >&5
21504 cat conftest.s >&5
21505 fi
21506 rm -f conftest.o conftest.s
21507 fi
21508 fi
21509 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_advance_working" >&5
21510 echo "${ECHO_T}$gcc_cv_as_cfi_advance_working" >&6
21511
21512 else
21513 # no readelf, err on the side of caution
21514 gcc_cv_as_cfi_advance_working=no
21515 fi
21516
21517 cat >>confdefs.h <<_ACEOF
21518 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21519 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21520 _ACEOF
21521
21522
21523 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
21524 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
21525 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 else
21528 gcc_cv_as_cfi_personality_directive=no
21529 if test x$gcc_cv_as != x; then
21530 echo ' .text
21531 .cfi_startproc
21532 .cfi_personality 0, symbol
21533 .cfi_endproc' > conftest.s
21534 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }
21540 then
21541 gcc_cv_as_cfi_personality_directive=yes
21542 else
21543 echo "configure: failed program was" >&5
21544 cat conftest.s >&5
21545 fi
21546 rm -f conftest.o conftest.s
21547 fi
21548 fi
21549 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
21550 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
21551
21552
21553 cat >>confdefs.h <<_ACEOF
21554 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21555 then echo 1; else echo 0; fi`
21556 _ACEOF
21557
21558
21559 # GAS versions up to and including 2.11.0 may mis-optimize
21560 # .eh_frame data.
21561 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
21562 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
21563 if test "${gcc_cv_as_eh_frame+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 else
21566 gcc_cv_as_eh_frame=no
21567 if test $in_tree_gas = yes; then
21568 if test $in_tree_gas_is_elf = yes \
21569 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21570 then gcc_cv_as_eh_frame=yes
21571 fi
21572 elif test x$gcc_cv_as != x; then
21573 echo ' .text
21574 .LFB1:
21575 .4byte 0
21576 .L1:
21577 .4byte 0
21578 .LFE1:
21579 .section .eh_frame,"aw",@progbits
21580 __FRAME_BEGIN__:
21581 .4byte .LECIE1-.LSCIE1
21582 .LSCIE1:
21583 .4byte 0x0
21584 .byte 0x1
21585 .ascii "z\0"
21586 .byte 0x1
21587 .byte 0x78
21588 .byte 0x1a
21589 .byte 0x0
21590 .byte 0x4
21591 .4byte 1
21592 .p2align 1
21593 .LECIE1:
21594 .LSFDE1:
21595 .4byte .LEFDE1-.LASFDE1
21596 .LASFDE1:
21597 .4byte .LASFDE1-__FRAME_BEGIN__
21598 .4byte .LFB1
21599 .4byte .LFE1-.LFB1
21600 .byte 0x4
21601 .4byte .LFE1-.LFB1
21602 .byte 0x4
21603 .4byte .L1-.LFB1
21604 .LEFDE1:' > conftest.s
21605 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; }
21611 then
21612 cat > conftest.lit <<EOF
21613 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21614 0010 01000000 12000000 18000000 00000000 ................
21615 0020 08000000 04080000 0044 .........D
21616 EOF
21617 cat > conftest.big <<EOF
21618 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21619 0010 00000001 00000012 00000018 00000000 ................
21620 0020 00000008 04000000 0844 .........D
21621 EOF
21622 # If the assembler didn't choke, and we can objdump,
21623 # and we got the correct data, then succeed.
21624 # The text in the here-document typically retains its unix-style line
21625 # endings, while the output of objdump will use host line endings.
21626 # Therefore, use diff -b for the comparisons.
21627 if test x$gcc_cv_objdump != x \
21628 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21629 | tail -3 > conftest.got \
21630 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21631 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21632 then
21633 gcc_cv_as_eh_frame=yes
21634 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
21640 gcc_cv_as_eh_frame=buggy
21641 else
21642 # Uh oh, what do we do now?
21643 gcc_cv_as_eh_frame=no
21644 fi
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_eh_frame" >&5
21653 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
21654
21655
21656 if test $gcc_cv_as_eh_frame = buggy; then
21657
21658 cat >>confdefs.h <<\_ACEOF
21659 #define USE_AS_TRADITIONAL_FORMAT 1
21660 _ACEOF
21661
21662 fi
21663
21664 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21665 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21666 if test "${gcc_cv_as_shf_merge+set}" = set; then
21667 echo $ECHO_N "(cached) $ECHO_C" >&6
21668 else
21669 gcc_cv_as_shf_merge=no
21670 if test $in_tree_gas = yes; then
21671 if test $in_tree_gas_is_elf = yes \
21672 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21673 then gcc_cv_as_shf_merge=yes
21674 fi
21675 elif test x$gcc_cv_as != x; then
21676 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21677 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21680 ac_status=$?
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; }
21683 then
21684 gcc_cv_as_shf_merge=yes
21685 else
21686 echo "configure: failed program was" >&5
21687 cat conftest.s >&5
21688 fi
21689 rm -f conftest.o conftest.s
21690 fi
21691 fi
21692 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21693 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21694
21695 if test $gcc_cv_as_shf_merge = no; then
21696 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21697 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21698 if test "${gcc_cv_as_shf_merge+set}" = set; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21700 else
21701 gcc_cv_as_shf_merge=no
21702 if test $in_tree_gas = yes; then
21703 if test $in_tree_gas_is_elf = yes \
21704 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21705 then gcc_cv_as_shf_merge=yes
21706 fi
21707 elif test x$gcc_cv_as != x; then
21708 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21709 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; }
21715 then
21716 gcc_cv_as_shf_merge=yes
21717 else
21718 echo "configure: failed program was" >&5
21719 cat conftest.s >&5
21720 fi
21721 rm -f conftest.o conftest.s
21722 fi
21723 fi
21724 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21725 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21726
21727 fi
21728
21729 cat >>confdefs.h <<_ACEOF
21730 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21731 _ACEOF
21732
21733
21734 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21735 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21736 if test "${gcc_cv_as_comdat_group+set}" = set; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21738 else
21739 gcc_cv_as_comdat_group=no
21740 if test $in_tree_gas = yes; then
21741 if test $in_tree_gas_is_elf = yes \
21742 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21743 then gcc_cv_as_comdat_group=yes
21744 fi
21745 elif test x$gcc_cv_as != x; then
21746 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21747 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21750 ac_status=$?
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }
21753 then
21754 gcc_cv_as_comdat_group=yes
21755 else
21756 echo "configure: failed program was" >&5
21757 cat conftest.s >&5
21758 fi
21759 rm -f conftest.o conftest.s
21760 fi
21761 fi
21762 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21763 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21764
21765 if test $gcc_cv_as_comdat_group = yes; then
21766 gcc_cv_as_comdat_group_percent=no
21767 else
21768 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21769 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21770 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21771 echo $ECHO_N "(cached) $ECHO_C" >&6
21772 else
21773 gcc_cv_as_comdat_group_percent=no
21774 if test $in_tree_gas = yes; then
21775 if test $in_tree_gas_is_elf = yes \
21776 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21777 then gcc_cv_as_comdat_group_percent=yes
21778 fi
21779 elif test x$gcc_cv_as != x; then
21780 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21781 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }
21787 then
21788 gcc_cv_as_comdat_group_percent=yes
21789 else
21790 echo "configure: failed program was" >&5
21791 cat conftest.s >&5
21792 fi
21793 rm -f conftest.o conftest.s
21794 fi
21795 fi
21796 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21797 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21798
21799 fi
21800 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21801 comdat_group=yes
21802 if test 0"$ld_date" -lt 20050308; then
21803 if test -n "$ld_date"; then
21804 # If there was date string, but was earlier than 2005-03-08, fail
21805 comdat_group=no
21806 elif test "$ld_vers_major" -lt 2; then
21807 comdat_group=no
21808 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21809 comdat_group=no
21810 fi
21811 fi
21812 else
21813 # assume linkers other than GNU ld don't support COMDAT group
21814 comdat_group=no
21815 fi
21816 if test $comdat_group = no; then
21817 gcc_cv_as_comdat_group=no
21818 gcc_cv_as_comdat_group_percent=no
21819 fi
21820
21821 cat >>confdefs.h <<_ACEOF
21822 #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`
21823 _ACEOF
21824
21825
21826 # Thread-local storage - the check is heavily parameterized.
21827 conftest_s=
21828 tls_first_major=
21829 tls_first_minor=
21830 tls_as_opt=
21831 case "$target" in
21832 alpha*-*-*)
21833 conftest_s='
21834 .section ".tdata","awT",@progbits
21835 foo: .long 25
21836 .text
21837 ldq $27,__tls_get_addr($29) !literal!1
21838 lda $16,foo($29) !tlsgd!1
21839 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21840 ldq $27,__tls_get_addr($29) !literal!2
21841 lda $16,foo($29) !tlsldm!2
21842 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21843 ldq $1,foo($29) !gotdtprel
21844 ldah $2,foo($29) !dtprelhi
21845 lda $3,foo($2) !dtprello
21846 lda $4,foo($29) !dtprel
21847 ldq $1,foo($29) !gottprel
21848 ldah $2,foo($29) !tprelhi
21849 lda $3,foo($2) !tprello
21850 lda $4,foo($29) !tprel'
21851 tls_first_major=2
21852 tls_first_minor=13
21853 tls_as_opt=--fatal-warnings
21854 ;;
21855 cris-*-*|crisv32-*-*)
21856 conftest_s='
21857 .section ".tdata","awT",@progbits
21858 x: .long 25
21859 .text
21860 move.d x:IE,$r10
21861 nop'
21862 tls_first_major=2
21863 tls_first_minor=20
21864 tls_as_opt=--fatal-warnings
21865 ;;
21866 frv*-*-*)
21867 conftest_s='
21868 .section ".tdata","awT",@progbits
21869 x: .long 25
21870 .text
21871 call #gettlsoff(x)'
21872 tls_first_major=2
21873 tls_first_minor=14
21874 ;;
21875 hppa*-*-linux*)
21876 conftest_s='
21877 t1: .reg %r20
21878 t2: .reg %r21
21879 gp: .reg %r19
21880 .section ".tdata","awT",@progbits
21881 foo: .long 25
21882 .text
21883 .align 4
21884 addil LT%foo-$tls_gdidx$,gp
21885 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21886 b __tls_get_addr
21887 nop
21888 addil LT%foo-$tls_ldidx$,gp
21889 b __tls_get_addr
21890 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21891 addil LR%foo-$tls_dtpoff$,%ret0
21892 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21893 mfctl %cr27,%t1
21894 addil LT%foo-$tls_ieoff$,gp
21895 ldw RT%foo-$tls_ieoff$(%r1),%t2
21896 add %t1,%t2,%t3
21897 mfctl %cr27,%t1
21898 addil LR%foo-$tls_leoff$,%t1
21899 ldo RR%foo-$tls_leoff$(%r1),%t2'
21900 tls_first_major=2
21901 tls_first_minor=15
21902 tls_as_opt=--fatal-warnings
21903 ;;
21904 arm*-*-*)
21905 conftest_s='
21906 .section ".tdata","awT",%progbits
21907 foo: .long 25
21908 .text
21909 .word foo(gottpoff)
21910 .word foo(tpoff)
21911 .word foo(tlsgd)
21912 .word foo(tlsldm)
21913 .word foo(tlsldo)'
21914 tls_first_major=2
21915 tls_first_minor=17
21916 ;;
21917 i[34567]86-*-*)
21918 conftest_s='
21919 .section ".tdata","awT",@progbits
21920 foo: .long 25
21921 .text
21922 movl %gs:0, %eax
21923 leal foo@TLSGD(,%ebx,1), %eax
21924 leal foo@TLSLDM(%ebx), %eax
21925 leal foo@DTPOFF(%eax), %edx
21926 movl foo@GOTTPOFF(%ebx), %eax
21927 subl foo@GOTTPOFF(%ebx), %eax
21928 addl foo@GOTNTPOFF(%ebx), %eax
21929 movl foo@INDNTPOFF, %eax
21930 movl $foo@TPOFF, %eax
21931 subl $foo@TPOFF, %eax
21932 leal foo@NTPOFF(%ecx), %eax'
21933 tls_first_major=2
21934 tls_first_minor=14
21935 tls_as_opt=--fatal-warnings
21936 ;;
21937 x86_64-*-*)
21938 conftest_s='
21939 .section ".tdata","awT",@progbits
21940 foo: .long 25
21941 .text
21942 movq %fs:0, %rax
21943 leaq foo@TLSGD(%rip), %rdi
21944 leaq foo@TLSLD(%rip), %rdi
21945 leaq foo@DTPOFF(%rax), %rdx
21946 movq foo@GOTTPOFF(%rip), %rax
21947 movq $foo@TPOFF, %rax'
21948 tls_first_major=2
21949 tls_first_minor=14
21950 tls_as_opt=--fatal-warnings
21951 ;;
21952 ia64-*-*)
21953 conftest_s='
21954 .section ".tdata","awT",@progbits
21955 foo: data8 25
21956 .text
21957 addl r16 = @ltoff(@dtpmod(foo#)), gp
21958 addl r17 = @ltoff(@dtprel(foo#)), gp
21959 addl r18 = @ltoff(@tprel(foo#)), gp
21960 addl r19 = @dtprel(foo#), gp
21961 adds r21 = @dtprel(foo#), r13
21962 movl r23 = @dtprel(foo#)
21963 addl r20 = @tprel(foo#), gp
21964 adds r22 = @tprel(foo#), r13
21965 movl r24 = @tprel(foo#)'
21966 tls_first_major=2
21967 tls_first_minor=13
21968 tls_as_opt=--fatal-warnings
21969 ;;
21970 mips*-*-*)
21971 conftest_s='
21972 .section .tdata,"awT",@progbits
21973 x:
21974 .word 2
21975 .text
21976 addiu $4, $28, %tlsgd(x)
21977 addiu $4, $28, %tlsldm(x)
21978 lui $4, %dtprel_hi(x)
21979 addiu $4, $4, %dtprel_lo(x)
21980 lw $4, %gottprel(x)($28)
21981 lui $4, %tprel_hi(x)
21982 addiu $4, $4, %tprel_lo(x)'
21983 tls_first_major=2
21984 tls_first_minor=16
21985 tls_as_opt='-32 --fatal-warnings'
21986 ;;
21987 powerpc-*-*)
21988 conftest_s='
21989 .section ".tdata","awT",@progbits
21990 .align 2
21991 ld0: .space 4
21992 ld1: .space 4
21993 x1: .space 4
21994 x2: .space 4
21995 x3: .space 4
21996 .text
21997 addi 3,31,ld0@got@tlsgd
21998 bl __tls_get_addr
21999 addi 3,31,x1@got@tlsld
22000 bl __tls_get_addr
22001 addi 9,3,x1@dtprel
22002 addis 9,3,x2@dtprel@ha
22003 addi 9,9,x2@dtprel@l
22004 lwz 9,x3@got@tprel(31)
22005 add 9,9,x@tls
22006 addi 9,2,x1@tprel
22007 addis 9,2,x2@tprel@ha
22008 addi 9,9,x2@tprel@l'
22009 tls_first_major=2
22010 tls_first_minor=14
22011 tls_as_opt="-a32 --fatal-warnings"
22012 ;;
22013 powerpc64-*-*)
22014 conftest_s='
22015 .section ".tdata","awT",@progbits
22016 .align 3
22017 ld0: .space 8
22018 ld1: .space 8
22019 x1: .space 8
22020 x2: .space 8
22021 x3: .space 8
22022 .text
22023 addi 3,2,ld0@got@tlsgd
22024 bl .__tls_get_addr
22025 nop
22026 addi 3,2,ld1@toc
22027 bl .__tls_get_addr
22028 nop
22029 addi 3,2,x1@got@tlsld
22030 bl .__tls_get_addr
22031 nop
22032 addi 9,3,x1@dtprel
22033 bl .__tls_get_addr
22034 nop
22035 addis 9,3,x2@dtprel@ha
22036 addi 9,9,x2@dtprel@l
22037 bl .__tls_get_addr
22038 nop
22039 ld 9,x3@got@dtprel(2)
22040 add 9,9,3
22041 bl .__tls_get_addr
22042 nop'
22043 tls_first_major=2
22044 tls_first_minor=14
22045 tls_as_opt="-a64 --fatal-warnings"
22046 ;;
22047 s390-*-*)
22048 conftest_s='
22049 .section ".tdata","awT",@progbits
22050 foo: .long 25
22051 .text
22052 .long foo@TLSGD
22053 .long foo@TLSLDM
22054 .long foo@DTPOFF
22055 .long foo@NTPOFF
22056 .long foo@GOTNTPOFF
22057 .long foo@INDNTPOFF
22058 l %r1,foo@GOTNTPOFF(%r12)
22059 l %r1,0(%r1):tls_load:foo
22060 bas %r14,0(%r1,%r13):tls_gdcall:foo
22061 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22062 tls_first_major=2
22063 tls_first_minor=14
22064 tls_as_opt="-m31 --fatal-warnings"
22065 ;;
22066 s390x-*-*)
22067 conftest_s='
22068 .section ".tdata","awT",@progbits
22069 foo: .long 25
22070 .text
22071 .quad foo@TLSGD
22072 .quad foo@TLSLDM
22073 .quad foo@DTPOFF
22074 .quad foo@NTPOFF
22075 .quad foo@GOTNTPOFF
22076 lg %r1,foo@GOTNTPOFF(%r12)
22077 larl %r1,foo@INDNTPOFF
22078 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22079 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22080 tls_first_major=2
22081 tls_first_minor=14
22082 tls_as_opt="-m64 -Aesame --fatal-warnings"
22083 ;;
22084 sh-*-* | sh[34]-*-*)
22085 conftest_s='
22086 .section ".tdata","awT",@progbits
22087 foo: .long 25
22088 .text
22089 .long foo@TLSGD
22090 .long foo@TLSLDM
22091 .long foo@DTPOFF
22092 .long foo@GOTTPOFF
22093 .long foo@TPOFF'
22094 tls_first_major=2
22095 tls_first_minor=13
22096 tls_as_opt=--fatal-warnings
22097 ;;
22098 sparc*-*-*)
22099 case "$target" in
22100 sparc*-sun-solaris2.[56789]*)
22101 # TLS was introduced in the Solaris 9 4/04 release but
22102 # we do not enable it by default on Solaris 9 either.
22103 if test "x$enable_tls" = xyes ; then
22104 on_solaris=yes
22105 else
22106 enable_tls=no;
22107 fi
22108 ;;
22109 sparc*-sun-solaris2.*)
22110 on_solaris=yes
22111 ;;
22112 *)
22113 on_solaris=no
22114 ;;
22115 esac
22116 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22117 conftest_s='
22118 .section ".tdata",#alloc,#write,#tls
22119 foo: .long 25
22120 .text
22121 sethi %tgd_hi22(foo), %o0
22122 add %o0, %tgd_lo10(foo), %o1
22123 add %l7, %o1, %o0, %tgd_add(foo)
22124 call __tls_get_addr, %tgd_call(foo)
22125 sethi %tldm_hi22(foo), %l1
22126 add %l1, %tldm_lo10(foo), %l2
22127 add %l7, %l2, %o0, %tldm_add(foo)
22128 call __tls_get_addr, %tldm_call(foo)
22129 sethi %tldo_hix22(foo), %l3
22130 xor %l3, %tldo_lox10(foo), %l4
22131 add %o0, %l4, %l5, %tldo_add(foo)
22132 sethi %tie_hi22(foo), %o3
22133 add %o3, %tie_lo10(foo), %o3
22134 ld [%l7 + %o3], %o2, %tie_ld(foo)
22135 add %g7, %o2, %o4, %tie_add(foo)
22136 sethi %tle_hix22(foo), %l1
22137 xor %l1, %tle_lox10(foo), %o5
22138 ld [%g7 + %o5], %o1'
22139 tls_first_major=0
22140 tls_first_minor=0
22141 else
22142 conftest_s='
22143 .section ".tdata","awT",@progbits
22144 foo: .long 25
22145 .text
22146 sethi %tgd_hi22(foo), %o0
22147 add %o0, %tgd_lo10(foo), %o1
22148 add %l7, %o1, %o0, %tgd_add(foo)
22149 call __tls_get_addr, %tgd_call(foo)
22150 sethi %tldm_hi22(foo), %l1
22151 add %l1, %tldm_lo10(foo), %l2
22152 add %l7, %l2, %o0, %tldm_add(foo)
22153 call __tls_get_addr, %tldm_call(foo)
22154 sethi %tldo_hix22(foo), %l3
22155 xor %l3, %tldo_lox10(foo), %l4
22156 add %o0, %l4, %l5, %tldo_add(foo)
22157 sethi %tie_hi22(foo), %o3
22158 add %o3, %tie_lo10(foo), %o3
22159 ld [%l7 + %o3], %o2, %tie_ld(foo)
22160 add %g7, %o2, %o4, %tie_add(foo)
22161 sethi %tle_hix22(foo), %l1
22162 xor %l1, %tle_lox10(foo), %o5
22163 ld [%g7 + %o5], %o1'
22164 tls_first_major=2
22165 tls_first_minor=14
22166 tls_as_opt="-32 --fatal-warnings"
22167 fi
22168 ;;
22169 xtensa*-*-*)
22170 conftest_s='
22171 .section ".tdata","awT",@progbits
22172 foo: .long 25
22173 .text
22174 movi a8, foo@TLSFUNC
22175 movi a10, foo@TLSARG
22176 callx8.tls a8, foo@TLSCALL'
22177 tls_first_major=2
22178 tls_first_minor=19
22179 ;;
22180 esac
22181 set_have_as_tls=no
22182 if test "x$enable_tls" = xno ; then
22183 : # TLS explicitly disabled.
22184 elif test "x$enable_tls" = xyes ; then
22185 set_have_as_tls=yes # TLS explicitly enabled.
22186 elif test -z "$tls_first_major"; then
22187 : # If we don't have a check, assume no support.
22188 else
22189 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
22190 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
22191 if test "${gcc_cv_as_tls+set}" = set; then
22192 echo $ECHO_N "(cached) $ECHO_C" >&6
22193 else
22194 gcc_cv_as_tls=no
22195 if test $in_tree_gas = yes; then
22196 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22197 then gcc_cv_as_tls=yes
22198 fi
22199 elif test x$gcc_cv_as != x; then
22200 echo "$conftest_s" > conftest.s
22201 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }
22207 then
22208 gcc_cv_as_tls=yes
22209 else
22210 echo "configure: failed program was" >&5
22211 cat conftest.s >&5
22212 fi
22213 rm -f conftest.o conftest.s
22214 fi
22215 fi
22216 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
22217 echo "${ECHO_T}$gcc_cv_as_tls" >&6
22218 if test $gcc_cv_as_tls = yes; then
22219 set_have_as_tls=yes
22220 fi
22221 fi
22222 if test $set_have_as_tls = yes ; then
22223
22224 cat >>confdefs.h <<\_ACEOF
22225 #define HAVE_AS_TLS 1
22226 _ACEOF
22227
22228 fi
22229
22230 # Target-specific assembler checks.
22231
22232 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
22233 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
22234 gcc_cv_ld_static_dynamic=no
22235 if test $in_tree_ld = yes ; then
22236 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; then
22237 gcc_cv_ld_static_dynamic=yes
22238 fi
22239 elif test x$gcc_cv_ld != x; then
22240 # Check if linker supports -Bstatic/-Bdynamic option
22241 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22242 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22243 gcc_cv_ld_static_dynamic=yes
22244 fi
22245 fi
22246 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22247
22248 cat >>confdefs.h <<\_ACEOF
22249 #define HAVE_LD_STATIC_DYNAMIC 1
22250 _ACEOF
22251
22252 fi
22253 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
22254 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
22255
22256 if test x"$demangler_in_ld" = xyes; then
22257 echo "$as_me:$LINENO: checking linker --demangle support" >&5
22258 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
22259 gcc_cv_ld_demangle=no
22260 if test $in_tree_ld = yes; then
22261 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 \
22262 gcc_cv_ld_demangle=yes
22263 fi
22264 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22265 # Check if the GNU linker supports --demangle option
22266 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22267 gcc_cv_ld_demangle=yes
22268 fi
22269 fi
22270 if test x"$gcc_cv_ld_demangle" = xyes; then
22271
22272 cat >>confdefs.h <<\_ACEOF
22273 #define HAVE_LD_DEMANGLE 1
22274 _ACEOF
22275
22276 fi
22277 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
22278 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
22279 fi
22280
22281 case "$target" in
22282 # All TARGET_ABI_OSF targets.
22283 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22284 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22285 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22286 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22288 else
22289 gcc_cv_as_alpha_explicit_relocs=no
22290 if test $in_tree_gas = yes; then
22291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22292 then gcc_cv_as_alpha_explicit_relocs=yes
22293 fi
22294 elif test x$gcc_cv_as != x; then
22295 echo ' .set nomacro
22296 .text
22297 extbl $3, $2, $3 !lituse_bytoff!1
22298 ldq $2, a($29) !literal!1
22299 ldq $4, b($29) !literal!2
22300 ldq_u $3, 0($2) !lituse_base!1
22301 ldq $27, f($29) !literal!5
22302 jsr $26, ($27), f !lituse_jsr!5
22303 ldah $29, 0($26) !gpdisp!3
22304 lda $0, c($29) !gprel
22305 ldah $1, d($29) !gprelhigh
22306 lda $1, d($1) !gprellow
22307 lda $29, 0($29) !gpdisp!3' > conftest.s
22308 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310 (eval $ac_try) 2>&5
22311 ac_status=$?
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); }; }
22314 then
22315 gcc_cv_as_alpha_explicit_relocs=yes
22316 else
22317 echo "configure: failed program was" >&5
22318 cat conftest.s >&5
22319 fi
22320 rm -f conftest.o conftest.s
22321 fi
22322 fi
22323 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22324 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
22325 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22326
22327 cat >>confdefs.h <<\_ACEOF
22328 #define HAVE_AS_EXPLICIT_RELOCS 1
22329 _ACEOF
22330
22331 fi
22332 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
22333 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
22334 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
22336 else
22337 gcc_cv_as_alpha_jsrdirect_relocs=no
22338 if test $in_tree_gas = yes; then
22339 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22340 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22341 fi
22342 elif test x$gcc_cv_as != x; then
22343 echo ' .set nomacro
22344 .text
22345 ldq $27, a($29) !literal!1
22346 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22347 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }
22353 then
22354 gcc_cv_as_alpha_jsrdirect_relocs=yes
22355 else
22356 echo "configure: failed program was" >&5
22357 cat conftest.s >&5
22358 fi
22359 rm -f conftest.o conftest.s
22360 fi
22361 fi
22362 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22363 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
22364 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22365
22366 cat >>confdefs.h <<\_ACEOF
22367 #define HAVE_AS_JSRDIRECT_RELOCS 1
22368 _ACEOF
22369
22370 fi
22371 ;;
22372
22373 cris-*-*)
22374 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
22375 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
22376 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 else
22379 gcc_cv_as_cris_no_mul_bug=no
22380 if test $in_tree_gas = yes; then
22381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22382 then gcc_cv_as_cris_no_mul_bug=yes
22383 fi
22384 elif test x$gcc_cv_as != x; then
22385 echo '.text' > conftest.s
22386 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22389 ac_status=$?
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; }
22392 then
22393 gcc_cv_as_cris_no_mul_bug=yes
22394 else
22395 echo "configure: failed program was" >&5
22396 cat conftest.s >&5
22397 fi
22398 rm -f conftest.o conftest.s
22399 fi
22400 fi
22401 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
22402 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
22403 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22404
22405 cat >>confdefs.h <<\_ACEOF
22406 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
22407 _ACEOF
22408
22409 fi
22410 ;;
22411
22412 sparc*-*-*)
22413 echo "$as_me:$LINENO: checking assembler for .register" >&5
22414 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
22415 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 else
22418 gcc_cv_as_sparc_register_op=no
22419 if test x$gcc_cv_as != x; then
22420 echo '.register %g2, #scratch' > conftest.s
22421 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423 (eval $ac_try) 2>&5
22424 ac_status=$?
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; }
22427 then
22428 gcc_cv_as_sparc_register_op=yes
22429 else
22430 echo "configure: failed program was" >&5
22431 cat conftest.s >&5
22432 fi
22433 rm -f conftest.o conftest.s
22434 fi
22435 fi
22436 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
22437 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
22438 if test $gcc_cv_as_sparc_register_op = yes; then
22439
22440 cat >>confdefs.h <<\_ACEOF
22441 #define HAVE_AS_REGISTER_PSEUDO_OP 1
22442 _ACEOF
22443
22444 fi
22445
22446 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
22447 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
22448 if test "${gcc_cv_as_sparc_relax+set}" = set; then
22449 echo $ECHO_N "(cached) $ECHO_C" >&6
22450 else
22451 gcc_cv_as_sparc_relax=no
22452 if test x$gcc_cv_as != x; then
22453 echo '.text' > conftest.s
22454 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22457 ac_status=$?
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }
22460 then
22461 gcc_cv_as_sparc_relax=yes
22462 else
22463 echo "configure: failed program was" >&5
22464 cat conftest.s >&5
22465 fi
22466 rm -f conftest.o conftest.s
22467 fi
22468 fi
22469 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
22470 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
22471 if test $gcc_cv_as_sparc_relax = yes; then
22472
22473 cat >>confdefs.h <<\_ACEOF
22474 #define HAVE_AS_RELAX_OPTION 1
22475 _ACEOF
22476
22477 fi
22478
22479 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
22480 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
22481 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
22482 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 else
22484 gcc_cv_as_sparc_ua_pcrel=no
22485 if test x$gcc_cv_as != x; then
22486 echo '.text
22487 foo:
22488 nop
22489 .data
22490 .align 4
22491 .byte 0
22492 .uaword %r_disp32(foo)' > conftest.s
22493 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }
22499 then
22500 if test x$gcc_cv_ld != x \
22501 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22502 gcc_cv_as_sparc_ua_pcrel=yes
22503 fi
22504 rm -f conftest
22505 else
22506 echo "configure: failed program was" >&5
22507 cat conftest.s >&5
22508 fi
22509 rm -f conftest.o conftest.s
22510 fi
22511 fi
22512 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22513 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
22514 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22515
22516 cat >>confdefs.h <<\_ACEOF
22517 #define HAVE_AS_SPARC_UA_PCREL 1
22518 _ACEOF
22519
22520
22521 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22522 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
22523 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22525 else
22526 gcc_cv_as_sparc_ua_pcrel_hidden=no
22527 if test x$gcc_cv_as != x; then
22528 echo '.data
22529 .align 4
22530 .byte 0x31
22531 .uaword %r_disp32(foo)
22532 .byte 0x32, 0x33, 0x34
22533 .global foo
22534 .hidden foo
22535 foo:
22536 .skip 4' > conftest.s
22537 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }
22543 then
22544 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22545 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22546 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22547 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22548 if $gcc_cv_objdump -R conftest 2> /dev/null \
22549 | grep 'DISP32' > /dev/null 2>&1; then
22550 :
22551 else
22552 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22553 fi
22554 fi
22555 rm -f conftest
22556 else
22557 echo "configure: failed program was" >&5
22558 cat conftest.s >&5
22559 fi
22560 rm -f conftest.o conftest.s
22561 fi
22562 fi
22563 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22564 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
22565 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22566
22567 cat >>confdefs.h <<\_ACEOF
22568 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
22569 _ACEOF
22570
22571 fi
22572
22573 fi # unaligned pcrel relocs
22574
22575 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
22576 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
22577 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
22578 echo $ECHO_N "(cached) $ECHO_C" >&6
22579 else
22580 gcc_cv_as_sparc_offsetable_lo10=no
22581 if test x$gcc_cv_as != x; then
22582 echo '.text
22583 or %g1, %lo(ab) + 12, %g1
22584 or %g1, %lo(ab + 12), %g1' > conftest.s
22585 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22587 (eval $ac_try) 2>&5
22588 ac_status=$?
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); }; }
22591 then
22592 if test x$gcc_cv_objdump != x \
22593 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22594 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22595 gcc_cv_as_sparc_offsetable_lo10=yes
22596 fi
22597 else
22598 echo "configure: failed program was" >&5
22599 cat conftest.s >&5
22600 fi
22601 rm -f conftest.o conftest.s
22602 fi
22603 fi
22604 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22605 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
22606 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22607
22608 cat >>confdefs.h <<\_ACEOF
22609 #define HAVE_AS_OFFSETABLE_LO10 1
22610 _ACEOF
22611
22612 fi
22613 ;;
22614
22615 i[34567]86-*-* | x86_64-*-*)
22616 case $target_os in
22617 cygwin* | pe | mingw32*)
22618 # Used for DWARF 2 in PE
22619 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
22620 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
22621 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22623 else
22624 gcc_cv_as_ix86_pe_secrel32=no
22625 if test $in_tree_gas = yes; then
22626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22627 then gcc_cv_as_ix86_pe_secrel32=yes
22628 fi
22629 elif test x$gcc_cv_as != x; then
22630 echo '.text
22631 foo: nop
22632 .data
22633 .secrel32 foo' > conftest.s
22634 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636 (eval $ac_try) 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; }
22640 then
22641 if test x$gcc_cv_ld != x \
22642 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22643 gcc_cv_as_ix86_pe_secrel32=yes
22644 fi
22645 rm -f conftest
22646 else
22647 echo "configure: failed program was" >&5
22648 cat conftest.s >&5
22649 fi
22650 rm -f conftest.o conftest.s
22651 fi
22652 fi
22653 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22654 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
22655 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22656
22657 cat >>confdefs.h <<\_ACEOF
22658 #define HAVE_GAS_PE_SECREL32_RELOC 1
22659 _ACEOF
22660
22661 fi
22662 ;;
22663 esac
22664
22665 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
22666 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
22667 if test "${gcc_cv_as_ix86_filds+set}" = set; then
22668 echo $ECHO_N "(cached) $ECHO_C" >&6
22669 else
22670 gcc_cv_as_ix86_filds=no
22671 if test x$gcc_cv_as != x; then
22672 echo 'filds mem; fists mem' > conftest.s
22673 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675 (eval $ac_try) 2>&5
22676 ac_status=$?
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; }
22679 then
22680 gcc_cv_as_ix86_filds=yes
22681 else
22682 echo "configure: failed program was" >&5
22683 cat conftest.s >&5
22684 fi
22685 rm -f conftest.o conftest.s
22686 fi
22687 fi
22688 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds" >&5
22689 echo "${ECHO_T}$gcc_cv_as_ix86_filds" >&6
22690 if test $gcc_cv_as_ix86_filds = yes; then
22691
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_AS_IX86_FILDS 1
22694 _ACEOF
22695
22696 fi
22697
22698 echo "$as_me:$LINENO: checking assembler for fildq and fistpq mnemonics" >&5
22699 echo $ECHO_N "checking assembler for fildq and fistpq mnemonics... $ECHO_C" >&6
22700 if test "${gcc_cv_as_ix86_fildq+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22703 gcc_cv_as_ix86_fildq=no
22704 if test x$gcc_cv_as != x; then
22705 echo 'fildq mem; fistpq mem' > conftest.s
22706 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708 (eval $ac_try) 2>&5
22709 ac_status=$?
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; }
22712 then
22713 gcc_cv_as_ix86_fildq=yes
22714 else
22715 echo "configure: failed program was" >&5
22716 cat conftest.s >&5
22717 fi
22718 rm -f conftest.o conftest.s
22719 fi
22720 fi
22721 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_fildq" >&5
22722 echo "${ECHO_T}$gcc_cv_as_ix86_fildq" >&6
22723 if test $gcc_cv_as_ix86_fildq = yes; then
22724
22725 cat >>confdefs.h <<\_ACEOF
22726 #define HAVE_AS_IX86_FILDQ 1
22727 _ACEOF
22728
22729 fi
22730
22731 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
22732 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
22733 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
22734 echo $ECHO_N "(cached) $ECHO_C" >&6
22735 else
22736 gcc_cv_as_ix86_cmov_sun_syntax=no
22737 if test x$gcc_cv_as != x; then
22738 echo 'cmovl.l %edx, %eax' > conftest.s
22739 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741 (eval $ac_try) 2>&5
22742 ac_status=$?
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); }; }
22745 then
22746 gcc_cv_as_ix86_cmov_sun_syntax=yes
22747 else
22748 echo "configure: failed program was" >&5
22749 cat conftest.s >&5
22750 fi
22751 rm -f conftest.o conftest.s
22752 fi
22753 fi
22754 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22755 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
22756 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22757
22758 cat >>confdefs.h <<\_ACEOF
22759 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
22760 _ACEOF
22761
22762 fi
22763
22764 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22765 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22766 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22768 else
22769 gcc_cv_as_ix86_ffreep=no
22770 if test x$gcc_cv_as != x; then
22771 echo 'ffreep %st(1)' > conftest.s
22772 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22775 ac_status=$?
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; }
22778 then
22779 gcc_cv_as_ix86_ffreep=yes
22780 else
22781 echo "configure: failed program was" >&5
22782 cat conftest.s >&5
22783 fi
22784 rm -f conftest.o conftest.s
22785 fi
22786 fi
22787 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22788 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22789 if test $gcc_cv_as_ix86_ffreep = yes; then
22790
22791 cat >>confdefs.h <<\_ACEOF
22792 #define HAVE_AS_IX86_FFREEP 1
22793 _ACEOF
22794
22795 fi
22796
22797 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22798 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22799 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22801 else
22802 gcc_cv_as_ix86_sahf=no
22803 if test x$gcc_cv_as != x; then
22804 echo 'sahf' > conftest.s
22805 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }
22811 then
22812 gcc_cv_as_ix86_sahf=yes
22813 else
22814 echo "configure: failed program was" >&5
22815 cat conftest.s >&5
22816 fi
22817 rm -f conftest.o conftest.s
22818 fi
22819 fi
22820 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22821 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22822 if test $gcc_cv_as_ix86_sahf = yes; then
22823
22824 cat >>confdefs.h <<\_ACEOF
22825 #define HAVE_AS_IX86_SAHF 1
22826 _ACEOF
22827
22828 fi
22829
22830 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22831 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22832 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22834 else
22835 gcc_cv_as_ix86_diff_sect_delta=no
22836 if test x$gcc_cv_as != x; then
22837 echo '.section .rodata
22838 .L1:
22839 .long .L2-.L1
22840 .long .L3-.L1
22841 .text
22842 .L3: nop
22843 .L2: nop' > conftest.s
22844 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; }
22850 then
22851 gcc_cv_as_ix86_diff_sect_delta=yes
22852 else
22853 echo "configure: failed program was" >&5
22854 cat conftest.s >&5
22855 fi
22856 rm -f conftest.o conftest.s
22857 fi
22858 fi
22859 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22860 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22861 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22862
22863 cat >>confdefs.h <<\_ACEOF
22864 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22865 _ACEOF
22866
22867 fi
22868
22869 # This one is used unconditionally by i386.[ch]; it is to be defined
22870 # to 1 if the feature is present, 0 otherwise.
22871 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22872 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22873 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22874 echo $ECHO_N "(cached) $ECHO_C" >&6
22875 else
22876 gcc_cv_as_ix86_gotoff_in_data=no
22877 if test $in_tree_gas = yes; then
22878 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22879 then gcc_cv_as_ix86_gotoff_in_data=yes
22880 fi
22881 elif test x$gcc_cv_as != x; then
22882 echo ' .text
22883 .L0:
22884 nop
22885 .data
22886 .long .L0@GOTOFF' > conftest.s
22887 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22890 ac_status=$?
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; }
22893 then
22894 gcc_cv_as_ix86_gotoff_in_data=yes
22895 else
22896 echo "configure: failed program was" >&5
22897 cat conftest.s >&5
22898 fi
22899 rm -f conftest.o conftest.s
22900 fi
22901 fi
22902 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22903 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22904
22905
22906 cat >>confdefs.h <<_ACEOF
22907 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22908 _ACEOF
22909
22910 ;;
22911
22912 ia64*-*-*)
22913 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22914 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22915 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22916 echo $ECHO_N "(cached) $ECHO_C" >&6
22917 else
22918 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22919 if test $in_tree_gas = yes; then
22920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22921 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22922 fi
22923 elif test x$gcc_cv_as != x; then
22924 echo ' .text
22925 addl r15 = @ltoffx(x#), gp
22926 ;;
22927 ld8.mov r16 = [r15], x#' > conftest.s
22928 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930 (eval $ac_try) 2>&5
22931 ac_status=$?
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); }; }
22934 then
22935 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22936 else
22937 echo "configure: failed program was" >&5
22938 cat conftest.s >&5
22939 fi
22940 rm -f conftest.o conftest.s
22941 fi
22942 fi
22943 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22944 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22945 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22946
22947 cat >>confdefs.h <<\_ACEOF
22948 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22949 _ACEOF
22950
22951 fi
22952
22953 ;;
22954
22955 powerpc*-*-*)
22956 case $target in
22957 *-*-aix*) conftest_s=' .machine "pwr5"
22958 .csect .text[PR]
22959 mfcr 3,128';;
22960 *-*-darwin*)
22961 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22962 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22963 if test "${gcc_cv_as_machine_directive+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 else
22966 gcc_cv_as_machine_directive=no
22967 if test x$gcc_cv_as != x; then
22968 echo ' .machine ppc7400' > conftest.s
22969 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22971 (eval $ac_try) 2>&5
22972 ac_status=$?
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); }; }
22975 then
22976 gcc_cv_as_machine_directive=yes
22977 else
22978 echo "configure: failed program was" >&5
22979 cat conftest.s >&5
22980 fi
22981 rm -f conftest.o conftest.s
22982 fi
22983 fi
22984 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22985 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22986
22987 if test x$gcc_cv_as_machine_directive != xyes; then
22988 echo "*** This target requires an assembler supporting \".machine\"" >&2
22989 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22990 test x$build = x$target && exit 1
22991 fi
22992 conftest_s=' .text
22993 mfcr r3,128';;
22994 *) conftest_s=' .machine power4
22995 .text
22996 mfcr 3,128';;
22997 esac
22998
22999 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
23000 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
23001 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
23002 echo $ECHO_N "(cached) $ECHO_C" >&6
23003 else
23004 gcc_cv_as_powerpc_mfcrf=no
23005 if test $in_tree_gas = yes; then
23006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23007 then gcc_cv_as_powerpc_mfcrf=yes
23008 fi
23009 elif test x$gcc_cv_as != x; then
23010 echo "$conftest_s" > conftest.s
23011 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013 (eval $ac_try) 2>&5
23014 ac_status=$?
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); }; }
23017 then
23018 gcc_cv_as_powerpc_mfcrf=yes
23019 else
23020 echo "configure: failed program was" >&5
23021 cat conftest.s >&5
23022 fi
23023 rm -f conftest.o conftest.s
23024 fi
23025 fi
23026 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
23027 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
23028 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23029
23030 cat >>confdefs.h <<\_ACEOF
23031 #define HAVE_AS_MFCRF 1
23032 _ACEOF
23033
23034 fi
23035
23036 case $target in
23037 *-*-aix*) conftest_s=' .machine "pwr5"
23038 .csect .text[PR]
23039 popcntb 3,3';;
23040 *) conftest_s=' .machine power5
23041 .text
23042 popcntb 3,3';;
23043 esac
23044
23045 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
23046 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
23047 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23049 else
23050 gcc_cv_as_powerpc_popcntb=no
23051 if test $in_tree_gas = yes; then
23052 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23053 then gcc_cv_as_powerpc_popcntb=yes
23054 fi
23055 elif test x$gcc_cv_as != x; then
23056 echo "$conftest_s" > conftest.s
23057 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059 (eval $ac_try) 2>&5
23060 ac_status=$?
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; }
23063 then
23064 gcc_cv_as_powerpc_popcntb=yes
23065 else
23066 echo "configure: failed program was" >&5
23067 cat conftest.s >&5
23068 fi
23069 rm -f conftest.o conftest.s
23070 fi
23071 fi
23072 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
23073 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
23074 if test $gcc_cv_as_powerpc_popcntb = yes; then
23075
23076 cat >>confdefs.h <<\_ACEOF
23077 #define HAVE_AS_POPCNTB 1
23078 _ACEOF
23079
23080 fi
23081
23082 case $target in
23083 *-*-aix*) conftest_s=' .machine "pwr5x"
23084 .csect .text[PR]
23085 frin 1,1';;
23086 *) conftest_s=' .machine power5
23087 .text
23088 frin 1,1';;
23089 esac
23090
23091 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
23092 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
23093 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
23094 echo $ECHO_N "(cached) $ECHO_C" >&6
23095 else
23096 gcc_cv_as_powerpc_fprnd=no
23097 if test $in_tree_gas = yes; then
23098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23099 then gcc_cv_as_powerpc_fprnd=yes
23100 fi
23101 elif test x$gcc_cv_as != x; then
23102 echo "$conftest_s" > conftest.s
23103 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105 (eval $ac_try) 2>&5
23106 ac_status=$?
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; }
23109 then
23110 gcc_cv_as_powerpc_fprnd=yes
23111 else
23112 echo "configure: failed program was" >&5
23113 cat conftest.s >&5
23114 fi
23115 rm -f conftest.o conftest.s
23116 fi
23117 fi
23118 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
23119 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
23120 if test $gcc_cv_as_powerpc_fprnd = yes; then
23121
23122 cat >>confdefs.h <<\_ACEOF
23123 #define HAVE_AS_FPRND 1
23124 _ACEOF
23125
23126 fi
23127
23128 case $target in
23129 *-*-aix*) conftest_s=' .machine "pwr6"
23130 .csect .text[PR]
23131 mffgpr 1,3';;
23132 *) conftest_s=' .machine power6
23133 .text
23134 mffgpr 1,3';;
23135 esac
23136
23137 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
23138 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
23139 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23141 else
23142 gcc_cv_as_powerpc_mfpgpr=no
23143 if test $in_tree_gas = yes; then
23144 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23145 then gcc_cv_as_powerpc_mfpgpr=yes
23146 fi
23147 elif test x$gcc_cv_as != x; then
23148 echo "$conftest_s" > conftest.s
23149 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151 (eval $ac_try) 2>&5
23152 ac_status=$?
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); }; }
23155 then
23156 gcc_cv_as_powerpc_mfpgpr=yes
23157 else
23158 echo "configure: failed program was" >&5
23159 cat conftest.s >&5
23160 fi
23161 rm -f conftest.o conftest.s
23162 fi
23163 fi
23164 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23165 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
23166 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23167
23168 cat >>confdefs.h <<\_ACEOF
23169 #define HAVE_AS_MFPGPR 1
23170 _ACEOF
23171
23172 fi
23173
23174 case $target in
23175 *-*-aix*) conftest_s=' .csect .text[PR]
23176 LCF..0:
23177 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23178 *-*-darwin*)
23179 conftest_s=' .text
23180 LCF0:
23181 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23182 *) conftest_s=' .text
23183 .LCF0:
23184 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23185 esac
23186
23187 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
23188 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
23189 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23191 else
23192 gcc_cv_as_powerpc_rel16=no
23193 if test $in_tree_gas = yes; then
23194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23195 then gcc_cv_as_powerpc_rel16=yes
23196 fi
23197 elif test x$gcc_cv_as != x; then
23198 echo "$conftest_s" > conftest.s
23199 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23201 (eval $ac_try) 2>&5
23202 ac_status=$?
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); }; }
23205 then
23206 gcc_cv_as_powerpc_rel16=yes
23207 else
23208 echo "configure: failed program was" >&5
23209 cat conftest.s >&5
23210 fi
23211 rm -f conftest.o conftest.s
23212 fi
23213 fi
23214 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
23215 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
23216 if test $gcc_cv_as_powerpc_rel16 = yes; then
23217
23218 cat >>confdefs.h <<\_ACEOF
23219 #define HAVE_AS_REL16 1
23220 _ACEOF
23221
23222 fi
23223
23224 case $target in
23225 *-*-aix*) conftest_s=' .machine "pwr6"
23226 .csect .text[PR]
23227 cmpb 3,4,5';;
23228 *) conftest_s=' .machine power6
23229 .text
23230 cmpb 3,4,5';;
23231 esac
23232
23233 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
23234 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
23235 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
23236 echo $ECHO_N "(cached) $ECHO_C" >&6
23237 else
23238 gcc_cv_as_powerpc_cmpb=no
23239 if test $in_tree_gas = yes; then
23240 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23241 then gcc_cv_as_powerpc_cmpb=yes
23242 fi
23243 elif test x$gcc_cv_as != x; then
23244 echo "$conftest_s" > conftest.s
23245 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247 (eval $ac_try) 2>&5
23248 ac_status=$?
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); }; }
23251 then
23252 gcc_cv_as_powerpc_cmpb=yes
23253 else
23254 echo "configure: failed program was" >&5
23255 cat conftest.s >&5
23256 fi
23257 rm -f conftest.o conftest.s
23258 fi
23259 fi
23260 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
23261 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
23262 if test $gcc_cv_as_powerpc_cmpb = yes; then
23263
23264 cat >>confdefs.h <<\_ACEOF
23265 #define HAVE_AS_CMPB 1
23266 _ACEOF
23267
23268 fi
23269
23270 case $target in
23271 *-*-aix*) conftest_s=' .machine "pwr6"
23272 .csect .text[PR]
23273 dadd 1,2,3';;
23274 *) conftest_s=' .machine power6
23275 .text
23276 dadd 1,2,3';;
23277 esac
23278
23279 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
23280 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
23281 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23283 else
23284 gcc_cv_as_powerpc_dfp=no
23285 if test $in_tree_gas = yes; then
23286 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23287 then gcc_cv_as_powerpc_dfp=yes
23288 fi
23289 elif test x$gcc_cv_as != x; then
23290 echo "$conftest_s" > conftest.s
23291 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293 (eval $ac_try) 2>&5
23294 ac_status=$?
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; }
23297 then
23298 gcc_cv_as_powerpc_dfp=yes
23299 else
23300 echo "configure: failed program was" >&5
23301 cat conftest.s >&5
23302 fi
23303 rm -f conftest.o conftest.s
23304 fi
23305 fi
23306 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
23307 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
23308 if test $gcc_cv_as_powerpc_dfp = yes; then
23309
23310 cat >>confdefs.h <<\_ACEOF
23311 #define HAVE_AS_DFP 1
23312 _ACEOF
23313
23314 fi
23315
23316 case $target in
23317 *-*-aix*) conftest_s=' .machine "pwr7"
23318 .csect .text[PR]
23319 lxvd2x 1,2,3';;
23320 *) conftest_s=' .machine power7
23321 .text
23322 lxvd2x 1,2,3';;
23323 esac
23324
23325 echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
23326 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
23327 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
23328 echo $ECHO_N "(cached) $ECHO_C" >&6
23329 else
23330 gcc_cv_as_powerpc_vsx=no
23331 if test $in_tree_gas = yes; then
23332 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23333 then gcc_cv_as_powerpc_vsx=yes
23334 fi
23335 elif test x$gcc_cv_as != x; then
23336 echo "$conftest_s" > conftest.s
23337 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339 (eval $ac_try) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); }; }
23343 then
23344 gcc_cv_as_powerpc_vsx=yes
23345 else
23346 echo "configure: failed program was" >&5
23347 cat conftest.s >&5
23348 fi
23349 rm -f conftest.o conftest.s
23350 fi
23351 fi
23352 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
23353 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
23354 if test $gcc_cv_as_powerpc_vsx = yes; then
23355
23356 cat >>confdefs.h <<\_ACEOF
23357 #define HAVE_AS_VSX 1
23358 _ACEOF
23359
23360 fi
23361
23362 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23363 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23364 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
23365 echo $ECHO_N "(cached) $ECHO_C" >&6
23366 else
23367 gcc_cv_as_powerpc_gnu_attribute=no
23368 if test $in_tree_gas = yes; then
23369 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23370 then gcc_cv_as_powerpc_gnu_attribute=yes
23371 fi
23372 elif test x$gcc_cv_as != x; then
23373 echo '.gnu_attribute 4,1' > conftest.s
23374 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23376 (eval $ac_try) 2>&5
23377 ac_status=$?
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); }; }
23380 then
23381 gcc_cv_as_powerpc_gnu_attribute=yes
23382 else
23383 echo "configure: failed program was" >&5
23384 cat conftest.s >&5
23385 fi
23386 rm -f conftest.o conftest.s
23387 fi
23388 fi
23389 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23390 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
23391 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23392
23393 cat >>confdefs.h <<\_ACEOF
23394 #define HAVE_AS_GNU_ATTRIBUTE 1
23395 _ACEOF
23396
23397 fi
23398
23399 echo "$as_me:$LINENO: checking assembler for tls marker support" >&5
23400 echo $ECHO_N "checking assembler for tls marker support... $ECHO_C" >&6
23401 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then
23402 echo $ECHO_N "(cached) $ECHO_C" >&6
23403 else
23404 gcc_cv_as_powerpc_tls_markers=no
23405 if test $in_tree_gas = yes; then
23406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23407 then gcc_cv_as_powerpc_tls_markers=yes
23408 fi
23409 elif test x$gcc_cv_as != x; then
23410 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23411 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413 (eval $ac_try) 2>&5
23414 ac_status=$?
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); }; }
23417 then
23418 gcc_cv_as_powerpc_tls_markers=yes
23419 else
23420 echo "configure: failed program was" >&5
23421 cat conftest.s >&5
23422 fi
23423 rm -f conftest.o conftest.s
23424 fi
23425 fi
23426 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_tls_markers" >&5
23427 echo "${ECHO_T}$gcc_cv_as_powerpc_tls_markers" >&6
23428 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23429
23430 cat >>confdefs.h <<\_ACEOF
23431 #define HAVE_AS_TLS_MARKERS 1
23432 _ACEOF
23433
23434 fi
23435 ;;
23436
23437 mips*-*-*)
23438 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
23439 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
23440 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23443 gcc_cv_as_mips_explicit_relocs=no
23444 if test $in_tree_gas = yes; then
23445 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23446 then gcc_cv_as_mips_explicit_relocs=yes
23447 fi
23448 elif test x$gcc_cv_as != x; then
23449 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23450 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23453 ac_status=$?
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; }
23456 then
23457 gcc_cv_as_mips_explicit_relocs=yes
23458 else
23459 echo "configure: failed program was" >&5
23460 cat conftest.s >&5
23461 fi
23462 rm -f conftest.o conftest.s
23463 fi
23464 fi
23465 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
23466 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
23467 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23468 if test x$target_cpu_default = x
23469 then target_cpu_default=MASK_EXPLICIT_RELOCS
23470 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23471 fi
23472 fi
23473 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
23474 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
23475 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
23476 echo $ECHO_N "(cached) $ECHO_C" >&6
23477 else
23478 gcc_cv_as_mips_no_shared=no
23479 if test $in_tree_gas = yes; then
23480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23481 then gcc_cv_as_mips_no_shared=yes
23482 fi
23483 elif test x$gcc_cv_as != x; then
23484 echo 'nop' > conftest.s
23485 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23487 (eval $ac_try) 2>&5
23488 ac_status=$?
23489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); }; }
23491 then
23492 gcc_cv_as_mips_no_shared=yes
23493 else
23494 echo "configure: failed program was" >&5
23495 cat conftest.s >&5
23496 fi
23497 rm -f conftest.o conftest.s
23498 fi
23499 fi
23500 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
23501 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
23502 if test $gcc_cv_as_mips_no_shared = yes; then
23503
23504 cat >>confdefs.h <<\_ACEOF
23505 #define HAVE_AS_NO_SHARED 1
23506 _ACEOF
23507
23508 fi
23509
23510 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23511 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23512 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
23513 echo $ECHO_N "(cached) $ECHO_C" >&6
23514 else
23515 gcc_cv_as_mips_gnu_attribute=no
23516 if test $in_tree_gas = yes; then
23517 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23518 then gcc_cv_as_mips_gnu_attribute=yes
23519 fi
23520 elif test x$gcc_cv_as != x; then
23521 echo '.gnu_attribute 4,1' > conftest.s
23522 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }
23528 then
23529 gcc_cv_as_mips_gnu_attribute=yes
23530 else
23531 echo "configure: failed program was" >&5
23532 cat conftest.s >&5
23533 fi
23534 rm -f conftest.o conftest.s
23535 fi
23536 fi
23537 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
23538 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
23539 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23540
23541 cat >>confdefs.h <<\_ACEOF
23542 #define HAVE_AS_GNU_ATTRIBUTE 1
23543 _ACEOF
23544
23545 fi
23546
23547 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
23548 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
23549 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
23550 echo $ECHO_N "(cached) $ECHO_C" >&6
23551 else
23552 gcc_cv_as_mips_dtprelword=no
23553 if test $in_tree_gas = yes; then
23554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23555 then gcc_cv_as_mips_dtprelword=yes
23556 fi
23557 elif test x$gcc_cv_as != x; then
23558 echo '.section .tdata,"awT",@progbits
23559 x:
23560 .word 2
23561 .text
23562 .dtprelword x+0x8000' > conftest.s
23563 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565 (eval $ac_try) 2>&5
23566 ac_status=$?
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; }
23569 then
23570 gcc_cv_as_mips_dtprelword=yes
23571 else
23572 echo "configure: failed program was" >&5
23573 cat conftest.s >&5
23574 fi
23575 rm -f conftest.o conftest.s
23576 fi
23577 fi
23578 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
23579 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
23580 if test $gcc_cv_as_mips_dtprelword = yes; then
23581
23582 cat >>confdefs.h <<\_ACEOF
23583 #define HAVE_AS_DTPRELWORD 1
23584 _ACEOF
23585
23586 fi
23587 ;;
23588 esac
23589
23590 # Mips and HP-UX need the GNU assembler.
23591 # Linux on IA64 might be able to use the Intel assembler.
23592
23593 case "$target" in
23594 mips*-*-* | *-*-hpux* )
23595 if test x$gas_flag = xyes \
23596 || test x"$host" != x"$build" \
23597 || test ! -x "$gcc_cv_as" \
23598 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23599 :
23600 else
23601 echo "*** This configuration requires the GNU assembler" >&2
23602 exit 1
23603 fi
23604 ;;
23605 esac
23606
23607 # ??? Not all targets support dwarf2 debug_line, even within a version
23608 # of gas. Moreover, we need to emit a valid instruction to trigger any
23609 # info to the output file. So, as supported targets are added to gas 2.11,
23610 # add some instruction here to (also) show we expect this might work.
23611 # ??? Once 2.11 is released, probably need to add first known working
23612 # version to the per-target configury.
23613 case "$target" in
23614 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23615 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23616 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23617 | spu-*-* | fido*-*-* | m32c-*-*)
23618 insn="nop"
23619 ;;
23620 ia64*-*-* | s390*-*-*)
23621 insn="nop 0"
23622 ;;
23623 mmix-*-*)
23624 insn="swym 0"
23625 ;;
23626 esac
23627 if test x"$insn" != x; then
23628 conftest_s="\
23629 .file 1 \"conftest.s\"
23630 .loc 1 3 0
23631 $insn"
23632 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
23633 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
23634 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637 gcc_cv_as_dwarf2_debug_line=no
23638 if test $in_tree_gas = yes; then
23639 if test $in_tree_gas_is_elf = yes \
23640 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23641 then gcc_cv_as_dwarf2_debug_line=yes
23642 fi
23643 elif test x$gcc_cv_as != x; then
23644 echo "$conftest_s" > conftest.s
23645 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23647 (eval $ac_try) 2>&5
23648 ac_status=$?
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); }; }
23651 then
23652 if test x$gcc_cv_objdump != x \
23653 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23654 | grep debug_line > /dev/null 2>&1; then
23655 gcc_cv_as_dwarf2_debug_line=yes
23656 fi
23657 else
23658 echo "configure: failed program was" >&5
23659 cat conftest.s >&5
23660 fi
23661 rm -f conftest.o conftest.s
23662 fi
23663 fi
23664 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
23665 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
23666
23667
23668 # The .debug_line file table must be in the exact order that
23669 # we specified the files, since these indices are also used
23670 # by DW_AT_decl_file. Approximate this test by testing if
23671 # the assembler bitches if the same index is assigned twice.
23672 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
23673 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
23674 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
23675 echo $ECHO_N "(cached) $ECHO_C" >&6
23676 else
23677 gcc_cv_as_dwarf2_file_buggy=no
23678 if test x$gcc_cv_as != x; then
23679 echo ' .file 1 "foo.s"
23680 .file 1 "bar.s"' > conftest.s
23681 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23684 ac_status=$?
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; }
23687 then
23688 gcc_cv_as_dwarf2_file_buggy=yes
23689 else
23690 echo "configure: failed program was" >&5
23691 cat conftest.s >&5
23692 fi
23693 rm -f conftest.o conftest.s
23694 fi
23695 fi
23696 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23697 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
23698
23699
23700 if test $gcc_cv_as_dwarf2_debug_line = yes \
23701 && test $gcc_cv_as_dwarf2_file_buggy = no; then
23702
23703 cat >>confdefs.h <<\_ACEOF
23704 #define HAVE_AS_DWARF2_DEBUG_LINE 1
23705 _ACEOF
23706
23707 fi
23708
23709 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
23710 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
23711 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
23712 echo $ECHO_N "(cached) $ECHO_C" >&6
23713 else
23714 gcc_cv_as_gdwarf2_flag=no
23715 if test $in_tree_gas = yes; then
23716 if test $in_tree_gas_is_elf = yes \
23717 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23718 then gcc_cv_as_gdwarf2_flag=yes
23719 fi
23720 elif test x$gcc_cv_as != x; then
23721 echo "$insn" > conftest.s
23722 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724 (eval $ac_try) 2>&5
23725 ac_status=$?
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); }; }
23728 then
23729 gcc_cv_as_gdwarf2_flag=yes
23730 else
23731 echo "configure: failed program was" >&5
23732 cat conftest.s >&5
23733 fi
23734 rm -f conftest.o conftest.s
23735 fi
23736 fi
23737 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
23738 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
23739 if test $gcc_cv_as_gdwarf2_flag = yes; then
23740
23741 cat >>confdefs.h <<\_ACEOF
23742 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
23743 _ACEOF
23744
23745 fi
23746
23747 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
23748 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
23749 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
23750 echo $ECHO_N "(cached) $ECHO_C" >&6
23751 else
23752 gcc_cv_as_gstabs_flag=no
23753 if test $in_tree_gas = yes; then
23754 if test $in_tree_gas_is_elf = yes \
23755 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23756 then gcc_cv_as_gstabs_flag=yes
23757 fi
23758 elif test x$gcc_cv_as != x; then
23759 echo "$insn" > conftest.s
23760 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; }
23766 then
23767 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23768 # and warns about it, but still exits successfully. So check for
23769 # this.
23770 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23772 (eval $ac_try) 2>&5
23773 ac_status=$?
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); }; }
23776 then :
23777 else gcc_cv_as_gstabs_flag=yes
23778 fi
23779 else
23780 echo "configure: failed program was" >&5
23781 cat conftest.s >&5
23782 fi
23783 rm -f conftest.o conftest.s
23784 fi
23785 fi
23786 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
23787 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
23788 if test $gcc_cv_as_gstabs_flag = yes; then
23789
23790 cat >>confdefs.h <<\_ACEOF
23791 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
23792 _ACEOF
23793
23794 fi
23795
23796 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
23797 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
23798 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
23799 echo $ECHO_N "(cached) $ECHO_C" >&6
23800 else
23801 gcc_cv_as_debug_prefix_map_flag=no
23802 if test $in_tree_gas = yes; then
23803 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23804 then gcc_cv_as_debug_prefix_map_flag=yes
23805 fi
23806 elif test x$gcc_cv_as != x; then
23807 echo "$insn" > conftest.s
23808 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810 (eval $ac_try) 2>&5
23811 ac_status=$?
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); }; }
23814 then
23815 gcc_cv_as_debug_prefix_map_flag=yes
23816 else
23817 echo "configure: failed program was" >&5
23818 cat conftest.s >&5
23819 fi
23820 rm -f conftest.o conftest.s
23821 fi
23822 fi
23823 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23824 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
23825 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23826
23827 cat >>confdefs.h <<\_ACEOF
23828 #define HAVE_AS_DEBUG_PREFIX_MAP 1
23829 _ACEOF
23830
23831 fi
23832 fi
23833
23834 echo "$as_me:$LINENO: checking assembler for .lcomm with alignment" >&5
23835 echo $ECHO_N "checking assembler for .lcomm with alignment... $ECHO_C" >&6
23836 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then
23837 echo $ECHO_N "(cached) $ECHO_C" >&6
23838 else
23839 gcc_cv_as_lcomm_with_alignment=no
23840 if test x$gcc_cv_as != x; then
23841 echo '.lcomm bar,4,16' > conftest.s
23842 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844 (eval $ac_try) 2>&5
23845 ac_status=$?
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); }; }
23848 then
23849 gcc_cv_as_lcomm_with_alignment=yes
23850 else
23851 echo "configure: failed program was" >&5
23852 cat conftest.s >&5
23853 fi
23854 rm -f conftest.o conftest.s
23855 fi
23856 fi
23857 echo "$as_me:$LINENO: result: $gcc_cv_as_lcomm_with_alignment" >&5
23858 echo "${ECHO_T}$gcc_cv_as_lcomm_with_alignment" >&6
23859 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23860
23861 cat >>confdefs.h <<\_ACEOF
23862 #define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1
23863 _ACEOF
23864
23865 fi
23866
23867 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
23868 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
23869 if test "${gcc_cv_as_line_zero+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872 gcc_cv_as_line_zero=no
23873 if test $in_tree_gas = yes; then
23874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23875 then gcc_cv_as_line_zero=yes
23876 fi
23877 elif test "x$gcc_cv_as" != x; then
23878 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23879 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23881 (eval $ac_try) 2>&5
23882 ac_status=$?
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); }; } &&
23885 test "x`cat conftest.out`" = x
23886 then
23887 gcc_cv_as_line_zero=yes
23888 else
23889 echo "configure: failed program was" >&5
23890 cat conftest.s >&5
23891 echo "configure: error output was" >&5
23892 cat conftest.out >&5
23893 fi
23894 rm -f conftest.o conftest.s conftest.out
23895 fi
23896 fi
23897 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23898 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23899 if test "x$gcc_cv_as_line_zero" = xyes; then
23900
23901 cat >>confdefs.h <<\_ACEOF
23902 #define HAVE_AS_LINE_ZERO 1
23903 _ACEOF
23904
23905 fi
23906
23907 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23908 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23909 gcc_cv_ld_eh_frame_hdr=no
23910 if test $in_tree_ld = yes ; then
23911 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 \
23912 && test $in_tree_ld_is_elf = yes; then
23913 gcc_cv_ld_eh_frame_hdr=yes
23914 fi
23915 elif test x$gcc_cv_ld != x; then
23916 # Check if linker supports --eh-frame-hdr option
23917 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23918 gcc_cv_ld_eh_frame_hdr=yes
23919 fi
23920 fi
23921
23922 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23923
23924 cat >>confdefs.h <<\_ACEOF
23925 #define HAVE_LD_EH_FRAME_HDR 1
23926 _ACEOF
23927
23928 fi
23929 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23930 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23931
23932 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23933 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23934 gcc_cv_ld_pie=no
23935 if test $in_tree_ld = yes ; then
23936 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 \
23937 && test $in_tree_ld_is_elf = yes; then
23938 gcc_cv_ld_pie=yes
23939 fi
23940 elif test x$gcc_cv_ld != x; then
23941 # Check if linker supports -pie option
23942 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23943 gcc_cv_ld_pie=yes
23944 fi
23945 fi
23946 if test x"$gcc_cv_ld_pie" = xyes; then
23947
23948 cat >>confdefs.h <<\_ACEOF
23949 #define HAVE_LD_PIE 1
23950 _ACEOF
23951
23952 fi
23953 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23954 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23955
23956 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23957 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23958 gcc_cv_ld_eh_gc_sections=no
23959 if test $in_tree_ld = yes ; then
23960 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 \
23961 && test $in_tree_ld_is_elf = yes; then
23962 gcc_cv_ld_eh_gc_sections=yes
23963 fi
23964 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23965 cat > conftest.s <<EOF
23966 .section .text
23967 .globl _start
23968 .type _start, @function
23969 _start:
23970 .long foo
23971 .size _start, .-_start
23972 .section .text.foo,"ax",@progbits
23973 .type foo, @function
23974 foo:
23975 .long 0
23976 .size foo, .-foo
23977 .section .gcc_except_table.foo,"a",@progbits
23978 .L0:
23979 .long 0
23980 .section .eh_frame,"a",@progbits
23981 .long .L0
23982 EOF
23983 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23984 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23985 | grep "gc-sections option ignored" > /dev/null; then
23986 gcc_cv_ld_eh_gc_sections=no
23987 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23988 gcc_cv_ld_eh_gc_sections=yes
23989 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23990 if test x$gcc_cv_as_comdat_group != xyes; then
23991 gcc_cv_ld_eh_gc_sections=no
23992 cat > conftest.s <<EOF
23993 .section .text
23994 .globl _start
23995 .type _start, @function
23996 _start:
23997 .long foo
23998 .size _start, .-_start
23999 .section .gnu.linkonce.t.foo,"ax",@progbits
24000 .type foo, @function
24001 foo:
24002 .long 0
24003 .size foo, .-foo
24004 .section .gcc_except_table.foo,"a",@progbits
24005 .L0:
24006 .long 0
24007 .section .eh_frame,"a",@progbits
24008 .long .L0
24009 EOF
24010 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24011 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24012 | grep "gc-sections option ignored" > /dev/null; then
24013 gcc_cv_ld_eh_gc_sections=no
24014 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24015 gcc_cv_ld_eh_gc_sections=yes
24016 fi
24017 fi
24018 fi
24019 fi
24020 fi
24021 rm -f conftest.s conftest.o conftest
24022 fi
24023 case "$target" in
24024 hppa*-*-linux*)
24025 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24026 gcc_cv_ld_eh_gc_sections=no
24027 ;;
24028 esac
24029 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24030
24031 cat >>confdefs.h <<\_ACEOF
24032 #define HAVE_LD_EH_GC_SECTIONS 1
24033 _ACEOF
24034
24035 fi
24036 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
24037 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
24038
24039 # --------
24040 # UNSORTED
24041 # --------
24042
24043 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
24044 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
24045 if test "${gcc_cv_ld_as_needed+set}" = set; then
24046 echo $ECHO_N "(cached) $ECHO_C" >&6
24047 else
24048 gcc_cv_ld_as_needed=no
24049 if test $in_tree_ld = yes ; then
24050 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 \
24051 && test $in_tree_ld_is_elf = yes; then
24052 gcc_cv_ld_as_needed=yes
24053 fi
24054 elif test x$gcc_cv_ld != x; then
24055 # Check if linker supports --as-needed and --no-as-needed options
24056 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24057 gcc_cv_ld_as_needed=yes
24058 fi
24059 fi
24060
24061 fi
24062 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
24063 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
24064 if test x"$gcc_cv_ld_as_needed" = xyes; then
24065
24066 cat >>confdefs.h <<\_ACEOF
24067 #define HAVE_LD_AS_NEEDED 1
24068 _ACEOF
24069
24070 fi
24071
24072 case "$target:$tm_file" in
24073 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24074 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
24075 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
24076 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
24077 echo $ECHO_N "(cached) $ECHO_C" >&6
24078 else
24079 gcc_cv_ld_no_dot_syms=no
24080 if test $in_tree_ld = yes ; then
24081 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
24082 gcc_cv_ld_no_dot_syms=yes
24083 fi
24084 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24085 cat > conftest1.s <<EOF
24086 .text
24087 bl .foo
24088 EOF
24089 cat > conftest2.s <<EOF
24090 .section ".opd","aw"
24091 .align 3
24092 .globl foo
24093 .type foo,@function
24094 foo:
24095 .quad .LEfoo,.TOC.@tocbase,0
24096 .text
24097 .LEfoo:
24098 blr
24099 .size foo,.-.LEfoo
24100 EOF
24101 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24102 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24103 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24104 gcc_cv_ld_no_dot_syms=yes
24105 fi
24106 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24107 fi
24108
24109 fi
24110 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
24111 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
24112 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24113
24114 cat >>confdefs.h <<\_ACEOF
24115 #define HAVE_LD_NO_DOT_SYMS 1
24116 _ACEOF
24117
24118 fi
24119 ;;
24120 esac
24121
24122 echo "$as_me:$LINENO: checking linker --build-id support" >&5
24123 echo $ECHO_N "checking linker --build-id support... $ECHO_C" >&6
24124 if test "${gcc_cv_ld_buildid+set}" = set; then
24125 echo $ECHO_N "(cached) $ECHO_C" >&6
24126 else
24127 gcc_cv_ld_buildid=no
24128 if test $in_tree_ld = yes ; then
24129 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24130 "$gcc_cv_gld_minor_version" -ge 18 -o \
24131 "$gcc_cv_gld_major_version" -gt 2 \
24132 && test $in_tree_ld_is_elf = yes; then
24133 gcc_cv_ld_buildid=yes
24134 fi
24135 elif test x$gcc_cv_ld != x; then
24136 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24137 gcc_cv_ld_buildid=yes
24138 fi
24139 fi
24140 fi
24141 echo "$as_me:$LINENO: result: $gcc_cv_ld_buildid" >&5
24142 echo "${ECHO_T}$gcc_cv_ld_buildid" >&6
24143 if test x"$gcc_cv_ld_buildid" = xyes; then
24144
24145 cat >>confdefs.h <<\_ACEOF
24146 #define HAVE_LD_BUILDID 1
24147 _ACEOF
24148
24149 fi
24150
24151 # Check whether --enable-linker-build-id or --disable-linker-build-id was given.
24152 if test "${enable_linker_build_id+set}" = set; then
24153 enableval="$enable_linker_build_id"
24154
24155 else
24156 enable_linker_build_id=no
24157 fi;
24158
24159 if test x"$enable_linker_build_id" = xyes; then
24160 if test x"$gcc_cv_ld_buildid" = xyes; then
24161
24162 cat >>confdefs.h <<\_ACEOF
24163 #define ENABLE_LD_BUILDID 1
24164 _ACEOF
24165
24166 else
24167 { echo "$as_me:$LINENO: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24168 echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24169 fi
24170 fi
24171
24172 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
24173 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
24174 if test "${gcc_cv_ld_sysroot+set}" = set; then
24175 echo $ECHO_N "(cached) $ECHO_C" >&6
24176 else
24177 gcc_cv_ld_sysroot=no
24178 if test $in_tree_ld = yes ; then
24179 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
24180 gcc_cv_ld_sysroot=yes
24181 fi
24182 elif test x$gcc_cv_ld != x; then
24183 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24184 gcc_cv_ld_sysroot=yes
24185 fi
24186 fi
24187 fi
24188 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
24189 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
24190 if test x"$gcc_cv_ld_sysroot" = xyes; then
24191
24192 cat >>confdefs.h <<\_ACEOF
24193 #define HAVE_LD_SYSROOT 1
24194 _ACEOF
24195
24196 fi
24197
24198 if test x$with_sysroot = x && test x$host = x$target \
24199 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24200 && test "$prefix" != "NONE"; then
24201
24202 cat >>confdefs.h <<_ACEOF
24203 #define PREFIX_INCLUDE_DIR "$prefix/include"
24204 _ACEOF
24205
24206 fi
24207
24208 # Test for stack protector support in target C library.
24209 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
24210 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
24211 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
24212 echo $ECHO_N "(cached) $ECHO_C" >&6
24213 else
24214 gcc_cv_libc_provides_ssp=no
24215 case "$target" in
24216 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24217 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24218 if test "x$with_sysroot" = x; then
24219 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24220 elif test "x$with_build_sysroot" != "x"; then
24221 glibc_header_dir="${with_build_sysroot}/usr/include"
24222 elif test "x$with_sysroot" = xyes; then
24223 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24224 else
24225 glibc_header_dir="${with_sysroot}/usr/include"
24226 fi
24227 else
24228 glibc_header_dir=/usr/include
24229 fi
24230 # glibc 2.4 and later provides __stack_chk_fail and
24231 # either __stack_chk_guard, or TLS access to stack guard canary.
24232 if test -f $glibc_header_dir/features.h \
24233 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24234 $glibc_header_dir/features.h > /dev/null; then
24235 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24236 $glibc_header_dir/features.h > /dev/null; then
24237 gcc_cv_libc_provides_ssp=yes
24238 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24239 $glibc_header_dir/features.h > /dev/null \
24240 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24241 $glibc_header_dir/features.h > /dev/null; then
24242 gcc_cv_libc_provides_ssp=yes
24243 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24244 $glibc_header_dir/features.h > /dev/null && \
24245 test -f $glibc_header_dir/bits/uClibc_config.h && \
24246 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24247 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24248 gcc_cv_libc_provides_ssp=yes
24249 fi
24250 fi
24251 ;;
24252 *-*-gnu*)
24253 # Avoid complicated tests (see
24254 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24255 # simply assert that glibc does provide this, which is true for all
24256 # realistically usable GNU/Hurd configurations.
24257 gcc_cv_libc_provides_ssp=yes;;
24258 *-*-darwin*)
24259 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
24260 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
24261 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
24262 echo $ECHO_N "(cached) $ECHO_C" >&6
24263 else
24264 cat >conftest.$ac_ext <<_ACEOF
24265 /* confdefs.h. */
24266 _ACEOF
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h. */
24270 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
24271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24272 #define __stack_chk_fail innocuous___stack_chk_fail
24273
24274 /* System header to define __stub macros and hopefully few prototypes,
24275 which can conflict with char __stack_chk_fail (); below.
24276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24277 <limits.h> exists even on freestanding compilers. */
24278
24279 #ifdef __STDC__
24280 # include <limits.h>
24281 #else
24282 # include <assert.h>
24283 #endif
24284
24285 #undef __stack_chk_fail
24286
24287 /* Override any gcc2 internal prototype to avoid an error. */
24288 #ifdef __cplusplus
24289 extern "C"
24290 {
24291 #endif
24292 /* We use char because int might match the return type of a gcc2
24293 builtin and then its argument prototype would still apply. */
24294 char __stack_chk_fail ();
24295 /* The GNU C library defines this for functions which it implements
24296 to always fail with ENOSYS. Some functions are actually named
24297 something starting with __ and the normal name is an alias. */
24298 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
24299 choke me
24300 #else
24301 char (*f) () = __stack_chk_fail;
24302 #endif
24303 #ifdef __cplusplus
24304 }
24305 #endif
24306
24307 int
24308 main ()
24309 {
24310 return f != __stack_chk_fail;
24311 ;
24312 return 0;
24313 }
24314 _ACEOF
24315 rm -f conftest.$ac_objext conftest$ac_exeext
24316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24317 (eval $ac_link) 2>conftest.er1
24318 ac_status=$?
24319 grep -v '^ *+' conftest.er1 >conftest.err
24320 rm -f conftest.er1
24321 cat conftest.err >&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } &&
24324 { ac_try='test -z "$ac_c_werror_flag"
24325 || test ! -s conftest.err'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; } &&
24331 { ac_try='test -s conftest$ac_exeext'
24332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333 (eval $ac_try) 2>&5
24334 ac_status=$?
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); }; }; then
24337 ac_cv_func___stack_chk_fail=yes
24338 else
24339 echo "$as_me: failed program was:" >&5
24340 sed 's/^/| /' conftest.$ac_ext >&5
24341
24342 ac_cv_func___stack_chk_fail=no
24343 fi
24344 rm -f conftest.err conftest.$ac_objext \
24345 conftest$ac_exeext conftest.$ac_ext
24346 fi
24347 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
24348 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
24349 if test $ac_cv_func___stack_chk_fail = yes; then
24350 gcc_cv_libc_provides_ssp=yes
24351 else
24352 echo "no __stack_chk_fail on this target"
24353 fi
24354
24355 ;;
24356 *) gcc_cv_libc_provides_ssp=no ;;
24357 esac
24358 fi
24359 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
24360 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
24361
24362 if test x$gcc_cv_libc_provides_ssp = xyes; then
24363
24364 cat >>confdefs.h <<\_ACEOF
24365 #define TARGET_LIBC_PROVIDES_SSP 1
24366 _ACEOF
24367
24368 fi
24369
24370 # Check if TFmode long double should be used by default or not.
24371 # Some glibc targets used DFmode long double, but with glibc 2.4
24372 # and later they can use TFmode.
24373 case "$target" in
24374 powerpc*-*-linux* | \
24375 powerpc*-*-gnu* | \
24376 sparc*-*-linux* | \
24377 s390*-*-linux* | \
24378 alpha*-*-linux*)
24379
24380 # Check whether --with-long-double-128 or --without-long-double-128 was given.
24381 if test "${with_long_double_128+set}" = set; then
24382 withval="$with_long_double_128"
24383 gcc_cv_target_ldbl128="$with_long_double_128"
24384 else
24385 gcc_cv_target_ldbl128=no
24386 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24387 if test "x$with_sysroot" = x; then
24388 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24389 elif test "x$with_build_sysroot" != "x"; then
24390 glibc_header_dir="${with_build_sysroot}/usr/include"
24391 elif test "x$with_sysroot" = xyes; then
24392 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24393 else
24394 glibc_header_dir="${with_sysroot}/usr/include"
24395 fi
24396 else
24397 glibc_header_dir=/usr/include
24398 fi
24399 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24400 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24401 && gcc_cv_target_ldbl128=yes
24402
24403 fi;
24404 ;;
24405 esac
24406 if test x$gcc_cv_target_ldbl128 = xyes; then
24407
24408 cat >>confdefs.h <<\_ACEOF
24409 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
24410 _ACEOF
24411
24412 fi
24413
24414 # Find out what GC implementation we want, or may, use.
24415
24416 # Check whether --with-gc or --without-gc was given.
24417 if test "${with_gc+set}" = set; then
24418 withval="$with_gc"
24419 case "$withval" in
24420 page)
24421 GGC=ggc-$withval
24422 ;;
24423 zone)
24424 GGC=ggc-$withval
24425
24426 cat >>confdefs.h <<\_ACEOF
24427 #define GGC_ZONE 1
24428 _ACEOF
24429
24430 ;;
24431 *)
24432 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
24433 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
24434 { (exit 1); exit 1; }; }
24435 ;;
24436 esac
24437 else
24438 GGC=ggc-page
24439 fi;
24440
24441 echo "Using $GGC for garbage collection."
24442
24443 # Use the system's zlib library.
24444 zlibdir=-L../zlib
24445 zlibinc="-I\$(srcdir)/../zlib"
24446
24447 # Check whether --with-system-zlib or --without-system-zlib was given.
24448 if test "${with_system_zlib+set}" = set; then
24449 withval="$with_system_zlib"
24450 zlibdir=
24451 zlibinc=
24452
24453 fi;
24454
24455
24456
24457
24458 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24459 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24460 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24461 if test "${enable_maintainer_mode+set}" = set; then
24462 enableval="$enable_maintainer_mode"
24463 maintainer_mode=$enableval
24464 else
24465 maintainer_mode=no
24466 fi;
24467
24468 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
24469 echo "${ECHO_T}$maintainer_mode" >&6
24470
24471 if test "$maintainer_mode" = "yes"; then
24472 MAINT=''
24473 else
24474 MAINT='#'
24475 fi
24476
24477 # --------------
24478 # Language hooks
24479 # --------------
24480
24481 # Make empty files to contain the specs and options for each language.
24482 # Then add #include lines to for a compiler that has specs and/or options.
24483
24484 subdirs=
24485 lang_opt_files=
24486 lang_specs_files=
24487 lang_tree_files=
24488 # These (without "all_") are set in each config-lang.in.
24489 # `language' must be a single word so is spelled singularly.
24490 all_languages=
24491 all_compilers=
24492 all_outputs='Makefile gccbug'
24493 # List of language makefile fragments.
24494 all_lang_makefrags=
24495 # List of language subdirectory makefiles. Deprecated.
24496 all_lang_makefiles=
24497 # Additional files for gengtype
24498 all_gtfiles="$target_gtfiles"
24499
24500 # These are the languages that are set in --enable-languages,
24501 # and are available in the GCC tree.
24502 all_selected_languages=
24503
24504 # Add the language fragments.
24505 # Languages are added via two mechanisms. Some information must be
24506 # recorded in makefile variables, these are defined in config-lang.in.
24507 # We accumulate them and plug them into the main Makefile.
24508 # The other mechanism is a set of hooks for each of the main targets
24509 # like `clean', `install', etc.
24510
24511 language_hooks="Make-hooks"
24512
24513 for lang in ${srcdir}/*/config-lang.in
24514 do
24515 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24516
24517 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24518 if test "x$lang_alias" = x
24519 then
24520 echo "$lang doesn't set \$language." 1>&2
24521 exit 1
24522 fi
24523 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24524 subdirs="$subdirs $subdir"
24525
24526 # $gcc_subdir is where the gcc integration files are to be found
24527 # for a language, both for internal compiler purposes (compiler
24528 # sources implementing front-end to GCC tree converters), and for
24529 # build infrastructure purposes (Make-lang.in, etc.)
24530 #
24531 # This will be <subdir> (relative to $srcdir) if a line like
24532 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24533 # is found in <langdir>/config-lang.in, and will remain <langdir>
24534 # otherwise.
24535 #
24536 # Except for the language alias (fetched above), the regular
24537 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24538 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24539 # only this and the language alias.
24540
24541 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24542 if [ "$gcc_subdir" = "" ]; then
24543 gcc_subdir="$subdir"
24544 fi
24545
24546 case ",$enable_languages," in
24547 *,$lang_alias,*)
24548 all_selected_languages="$all_selected_languages $lang_alias"
24549 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24550 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24551 fi
24552 ;;
24553 esac
24554
24555 language=
24556 boot_language=
24557 compilers=
24558 outputs=
24559 gtfiles=
24560 subdir_requires=
24561 . ${srcdir}/$gcc_subdir/config-lang.in
24562 if test "x$language" = x
24563 then
24564 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24565 exit 1
24566 fi
24567
24568 ok=:
24569 case ",$enable_languages," in
24570 *,$lang_alias,*) ;;
24571 *)
24572 for i in $subdir_requires; do
24573 test -f "${srcdir}/$i/config-lang.in" && continue
24574 ok=false
24575 break
24576 done
24577 ;;
24578 esac
24579 $ok || continue
24580
24581 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24582 if test -f $srcdir/$gcc_subdir/lang.opt; then
24583 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24584 fi
24585 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24586 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24587 fi
24588 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24589 then all_lang_makefiles="$gcc_subdir/Makefile"
24590 fi
24591 all_languages="$all_languages $language"
24592 all_compilers="$all_compilers $compilers"
24593 all_outputs="$all_outputs $outputs"
24594 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24595 done
24596
24597 # Pick up gtfiles for c
24598 gtfiles=
24599 . ${srcdir}/c-config-lang.in
24600 all_gtfiles="$all_gtfiles [c] $gtfiles"
24601
24602 check_languages=
24603 for language in $all_selected_languages
24604 do
24605 check_languages="$check_languages check-$language"
24606 done
24607
24608 # We link each language in with a set of hooks, reached indirectly via
24609 # lang.${target}. Only do so for selected languages.
24610
24611 rm -f Make-hooks
24612 touch Make-hooks
24613 target_list="all.cross start.encap rest.encap tags \
24614 install-common install-man install-info install-pdf dvi pdf \
24615 html uninstall info man srcextra srcman srcinfo \
24616 mostlyclean clean distclean maintainer-clean"
24617
24618 for t in $target_list
24619 do
24620 x=
24621 for lang in $all_selected_languages
24622 do
24623 x="$x $lang.$t"
24624 done
24625 echo "lang.$t: $x" >> Make-hooks
24626 done
24627
24628 # --------
24629 # UNSORTED
24630 # --------
24631
24632 # Create .gdbinit.
24633
24634 echo "dir ." > .gdbinit
24635 echo "dir ${srcdir}" >> .gdbinit
24636 if test x$gdb_needs_out_file_path = xyes
24637 then
24638 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24639 fi
24640 if test "x$subdirs" != x; then
24641 for s in $subdirs
24642 do
24643 echo "dir ${srcdir}/$s" >> .gdbinit
24644 done
24645 fi
24646 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24647
24648 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24649
24650
24651
24652 # Find a directory in which to install a shared libgcc.
24653
24654 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24655 if test "${enable_version_specific_runtime_libs+set}" = set; then
24656 enableval="$enable_version_specific_runtime_libs"
24657
24658 fi;
24659
24660
24661 # Check whether --with-slibdir or --without-slibdir was given.
24662 if test "${with_slibdir+set}" = set; then
24663 withval="$with_slibdir"
24664 slibdir="$with_slibdir"
24665 else
24666 if test "${enable_version_specific_runtime_libs+set}" = set; then
24667 slibdir='$(libsubdir)'
24668 elif test "$host" != "$target"; then
24669 slibdir='$(build_tooldir)/lib'
24670 else
24671 slibdir='$(libdir)'
24672 fi
24673 fi;
24674
24675
24676
24677 # Check whether --with-datarootdir or --without-datarootdir was given.
24678 if test "${with_datarootdir+set}" = set; then
24679 withval="$with_datarootdir"
24680 datarootdir="\${prefix}/$with_datarootdir"
24681 else
24682 datarootdir='$(prefix)/share'
24683 fi;
24684
24685
24686
24687 # Check whether --with-docdir or --without-docdir was given.
24688 if test "${with_docdir+set}" = set; then
24689 withval="$with_docdir"
24690 docdir="\${prefix}/$with_docdir"
24691 else
24692 docdir='$(datarootdir)'
24693 fi;
24694
24695
24696
24697 # Check whether --with-htmldir or --without-htmldir was given.
24698 if test "${with_htmldir+set}" = set; then
24699 withval="$with_htmldir"
24700 htmldir="\${prefix}/$with_htmldir"
24701 else
24702 htmldir='$(docdir)'
24703 fi;
24704
24705
24706 # Substitute configuration variables
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768 # Echo link setup.
24769 if test x${build} = x${host} ; then
24770 if test x${host} = x${target} ; then
24771 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24772 else
24773 echo "Links are now set up to build a cross-compiler" 1>&2
24774 echo " from ${host} to ${target}." 1>&2
24775 fi
24776 else
24777 if test x${host} = x${target} ; then
24778 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24779 echo " for ${target}." 1>&2
24780 else
24781 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24782 echo " from ${host} to ${target}." 1>&2
24783 fi
24784 fi
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794 if test "x${CLOOGLIBS}" != "x" ; then
24795
24796 cat >>confdefs.h <<\_ACEOF
24797 #define HAVE_cloog 1
24798 _ACEOF
24799
24800 fi
24801
24802 # Check for plugin support
24803 # Check whether --enable-plugin or --disable-plugin was given.
24804 if test "${enable_plugin+set}" = set; then
24805 enableval="$enable_plugin"
24806 enable_plugin=$enableval
24807 else
24808 enable_plugin=yes; default_plugin=yes
24809 fi;
24810
24811 pluginlibs=
24812 if test x"$enable_plugin" = x"yes"; then
24813 # Check that the host supports -rdynamic and -ldl
24814 have_rdynamic=no
24815 have_dl=no
24816 saved_LDFLAGS="$LDFLAGS"
24817 saved_LIBS="$LIBS"
24818 LIBS=
24819
24820 # Check -rdynamic
24821 LDFLAGS="$LDFLAGS -rdynamic"
24822 echo "$as_me:$LINENO: checking for -rdynamic" >&5
24823 echo $ECHO_N "checking for -rdynamic... $ECHO_C" >&6
24824 cat >conftest.$ac_ext <<_ACEOF
24825 /* confdefs.h. */
24826 _ACEOF
24827 cat confdefs.h >>conftest.$ac_ext
24828 cat >>conftest.$ac_ext <<_ACEOF
24829 /* end confdefs.h. */
24830
24831 int
24832 main ()
24833 {
24834 return 0;
24835 ;
24836 return 0;
24837 }
24838 _ACEOF
24839 rm -f conftest.$ac_objext conftest$ac_exeext
24840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24841 (eval $ac_link) 2>conftest.er1
24842 ac_status=$?
24843 grep -v '^ *+' conftest.er1 >conftest.err
24844 rm -f conftest.er1
24845 cat conftest.err >&5
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); } &&
24848 { ac_try='test -z "$ac_c_werror_flag"
24849 || test ! -s conftest.err'
24850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851 (eval $ac_try) 2>&5
24852 ac_status=$?
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); }; } &&
24855 { ac_try='test -s conftest$ac_exeext'
24856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857 (eval $ac_try) 2>&5
24858 ac_status=$?
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; }; then
24861 echo "$as_me:$LINENO: result: yes" >&5
24862 echo "${ECHO_T}yes" >&6; have_rdynamic=yes
24863 else
24864 echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24866
24867 echo "$as_me:$LINENO: result: no" >&5
24868 echo "${ECHO_T}no" >&6
24869 fi
24870 rm -f conftest.err conftest.$ac_objext \
24871 conftest$ac_exeext conftest.$ac_ext
24872 if test x"$have_rdynamic" = x"yes" ; then
24873 pluginlibs="-rdynamic"
24874 fi
24875
24876 # Check -ldl
24877 LDFLAGS="$LDFLAGS -ldl"
24878 echo "$as_me:$LINENO: checking for -ldl" >&5
24879 echo $ECHO_N "checking for -ldl... $ECHO_C" >&6
24880 cat >conftest.$ac_ext <<_ACEOF
24881 /* confdefs.h. */
24882 _ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h. */
24886 #include <dlfcn.h>
24887 int
24888 main ()
24889 {
24890 volatile int f = 0; if (f) dlopen ("dummy", 0);
24891 ;
24892 return 0;
24893 }
24894 _ACEOF
24895 rm -f conftest.$ac_objext conftest$ac_exeext
24896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24897 (eval $ac_link) 2>conftest.er1
24898 ac_status=$?
24899 grep -v '^ *+' conftest.er1 >conftest.err
24900 rm -f conftest.er1
24901 cat conftest.err >&5
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); } &&
24904 { ac_try='test -z "$ac_c_werror_flag"
24905 || test ! -s conftest.err'
24906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24907 (eval $ac_try) 2>&5
24908 ac_status=$?
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); }; } &&
24911 { ac_try='test -s conftest$ac_exeext'
24912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); }; }; then
24917 echo "$as_me:$LINENO: result: yes" >&5
24918 echo "${ECHO_T}yes" >&6; have_dl=yes
24919 else
24920 echo "$as_me: failed program was:" >&5
24921 sed 's/^/| /' conftest.$ac_ext >&5
24922
24923 echo "$as_me:$LINENO: result: no" >&5
24924 echo "${ECHO_T}no" >&6
24925 fi
24926 rm -f conftest.err conftest.$ac_objext \
24927 conftest$ac_exeext conftest.$ac_ext
24928 if test x"$have_dl" = x"yes"; then
24929 pluginlibs="$pluginlibs -ldl"
24930 fi
24931
24932 # Check that we can build shared objects with -fPIC -shared
24933 LDFLAGS="$LDFLAGS -fPIC -shared"
24934 echo "$as_me:$LINENO: checking for -fPIC -shared" >&5
24935 echo $ECHO_N "checking for -fPIC -shared... $ECHO_C" >&6
24936 cat >conftest.$ac_ext <<_ACEOF
24937 /* confdefs.h. */
24938 _ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h. */
24942 extern int X;
24943 int
24944 main ()
24945 {
24946 return X == 0;
24947 ;
24948 return 0;
24949 }
24950 _ACEOF
24951 rm -f conftest.$ac_objext conftest$ac_exeext
24952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24953 (eval $ac_link) 2>conftest.er1
24954 ac_status=$?
24955 grep -v '^ *+' conftest.er1 >conftest.err
24956 rm -f conftest.er1
24957 cat conftest.err >&5
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); } &&
24960 { ac_try='test -z "$ac_c_werror_flag"
24961 || test ! -s conftest.err'
24962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24963 (eval $ac_try) 2>&5
24964 ac_status=$?
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; } &&
24967 { ac_try='test -s conftest$ac_exeext'
24968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24969 (eval $ac_try) 2>&5
24970 ac_status=$?
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); }; }; then
24973 echo "$as_me:$LINENO: result: yes" >&5
24974 echo "${ECHO_T}yes" >&6; have_pic_shared=yes
24975 else
24976 echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24978
24979 echo "$as_me:$LINENO: result: no" >&5
24980 echo "${ECHO_T}no" >&6; have_pic_shared=no
24981 fi
24982 rm -f conftest.err conftest.$ac_objext \
24983 conftest$ac_exeext conftest.$ac_ext
24984 if test x"$have_pic_shared" != x"yes"; then
24985 pluginlibs=
24986 enable_plugin=no
24987 fi
24988
24989 # If plugin support had been requested but not available, fail.
24990 if test x"$enable_plugin" = x"no" ; then
24991 if test x"$default_plugin" != x"yes"; then
24992 { { echo "$as_me:$LINENO: error:
24993 Building GCC with plugin support requires a host that supports
24994 -fPIC, -shared, -ldl and -rdynamic." >&5
24995 echo "$as_me: error:
24996 Building GCC with plugin support requires a host that supports
24997 -fPIC, -shared, -ldl and -rdynamic." >&2;}
24998 { (exit 1); exit 1; }; }
24999 fi
25000 fi
25001
25002 LDFLAGS="$saved_LDFLAGS"
25003 LIBS="$saved_LIBS"
25004 fi
25005
25006
25007
25008 if test x"$enable_plugin" = x"yes"; then
25009
25010 cat >>confdefs.h <<\_ACEOF
25011 #define ENABLE_PLUGIN 1
25012 _ACEOF
25013
25014 fi
25015
25016 # Configure the subdirectories
25017 # AC_CONFIG_SUBDIRS($subdirs)
25018
25019 # Create the Makefile
25020 # and configure language subdirectories
25021 ac_config_files="$ac_config_files $all_outputs"
25022
25023
25024 ac_config_commands="$ac_config_commands default"
25025
25026 cat >confcache <<\_ACEOF
25027 # This file is a shell script that caches the results of configure
25028 # tests run on this system so they can be shared between configure
25029 # scripts and configure runs, see configure's option --config-cache.
25030 # It is not useful on other systems. If it contains results you don't
25031 # want to keep, you may remove or edit it.
25032 #
25033 # config.status only pays attention to the cache file if you give it
25034 # the --recheck option to rerun configure.
25035 #
25036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25038 # following values.
25039
25040 _ACEOF
25041
25042 # The following way of writing the cache mishandles newlines in values,
25043 # but we know of no workaround that is simple, portable, and efficient.
25044 # So, don't put newlines in cache variables' values.
25045 # Ultrix sh set writes to stderr and can't be redirected directly,
25046 # and sets the high bit in the cache file unless we assign to the vars.
25047 {
25048 (set) 2>&1 |
25049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25050 *ac_space=\ *)
25051 # `set' does not quote correctly, so add quotes (double-quote
25052 # substitution turns \\\\ into \\, and sed turns \\ into \).
25053 sed -n \
25054 "s/'/'\\\\''/g;
25055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25056 ;;
25057 *)
25058 # `set' quotes correctly as required by POSIX, so do not add quotes.
25059 sed -n \
25060 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25061 ;;
25062 esac;
25063 } |
25064 sed '
25065 t clear
25066 : clear
25067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25068 t end
25069 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25070 : end' >>confcache
25071 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25072 if test -w $cache_file; then
25073 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25074 cat confcache >$cache_file
25075 else
25076 echo "not updating unwritable cache $cache_file"
25077 fi
25078 fi
25079 rm -f confcache
25080
25081 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25082 # Let make expand exec_prefix.
25083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25084
25085 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25086 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25087 # trailing colons and then remove the whole line if VPATH becomes empty
25088 # (actually we leave an empty line to preserve line numbers).
25089 if test "x$srcdir" = x.; then
25090 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25091 s/:*\$(srcdir):*/:/;
25092 s/:*\${srcdir}:*/:/;
25093 s/:*@srcdir@:*/:/;
25094 s/^\([^=]*=[ ]*\):*/\1/;
25095 s/:*$//;
25096 s/^[^=]*=[ ]*$//;
25097 }'
25098 fi
25099
25100 DEFS=-DHAVE_CONFIG_H
25101
25102 ac_libobjs=
25103 ac_ltlibobjs=
25104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25105 # 1. Remove the extension, and $U if already installed.
25106 ac_i=`echo "$ac_i" |
25107 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25108 # 2. Add them.
25109 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25110 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25111 done
25112 LIBOBJS=$ac_libobjs
25113
25114 LTLIBOBJS=$ac_ltlibobjs
25115
25116
25117
25118 : ${CONFIG_STATUS=./config.status}
25119 ac_clean_files_save=$ac_clean_files
25120 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25121 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25122 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25123 cat >$CONFIG_STATUS <<_ACEOF
25124 #! $SHELL
25125 # Generated by $as_me.
25126 # Run this file to recreate the current configuration.
25127 # Compiler output produced by configure, useful for debugging
25128 # configure, is in config.log if it exists.
25129
25130 debug=false
25131 ac_cs_recheck=false
25132 ac_cs_silent=false
25133 SHELL=\${CONFIG_SHELL-$SHELL}
25134 _ACEOF
25135
25136 cat >>$CONFIG_STATUS <<\_ACEOF
25137 ## --------------------- ##
25138 ## M4sh Initialization. ##
25139 ## --------------------- ##
25140
25141 # Be Bourne compatible
25142 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25143 emulate sh
25144 NULLCMD=:
25145 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25146 # is contrary to our usage. Disable this feature.
25147 alias -g '${1+"$@"}'='"$@"'
25148 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25149 set -o posix
25150 fi
25151 DUALCASE=1; export DUALCASE # for MKS sh
25152
25153 # Support unset when possible.
25154 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25155 as_unset=unset
25156 else
25157 as_unset=false
25158 fi
25159
25160
25161 # Work around bugs in pre-3.0 UWIN ksh.
25162 $as_unset ENV MAIL MAILPATH
25163 PS1='$ '
25164 PS2='> '
25165 PS4='+ '
25166
25167 # NLS nuisances.
25168 for as_var in \
25169 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25170 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25171 LC_TELEPHONE LC_TIME
25172 do
25173 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25174 eval $as_var=C; export $as_var
25175 else
25176 $as_unset $as_var
25177 fi
25178 done
25179
25180 # Required to use basename.
25181 if expr a : '\(a\)' >/dev/null 2>&1; then
25182 as_expr=expr
25183 else
25184 as_expr=false
25185 fi
25186
25187 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25188 as_basename=basename
25189 else
25190 as_basename=false
25191 fi
25192
25193
25194 # Name of the executable.
25195 as_me=`$as_basename "$0" ||
25196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25197 X"$0" : 'X\(//\)$' \| \
25198 X"$0" : 'X\(/\)$' \| \
25199 . : '\(.\)' 2>/dev/null ||
25200 echo X/"$0" |
25201 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25202 /^X\/\(\/\/\)$/{ s//\1/; q; }
25203 /^X\/\(\/\).*/{ s//\1/; q; }
25204 s/.*/./; q'`
25205
25206
25207 # PATH needs CR, and LINENO needs CR and PATH.
25208 # Avoid depending upon Character Ranges.
25209 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25210 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25211 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25212 as_cr_digits='0123456789'
25213 as_cr_alnum=$as_cr_Letters$as_cr_digits
25214
25215 # The user is always right.
25216 if test "${PATH_SEPARATOR+set}" != set; then
25217 echo "#! /bin/sh" >conf$$.sh
25218 echo "exit 0" >>conf$$.sh
25219 chmod +x conf$$.sh
25220 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25221 PATH_SEPARATOR=';'
25222 else
25223 PATH_SEPARATOR=:
25224 fi
25225 rm -f conf$$.sh
25226 fi
25227
25228
25229 as_lineno_1=$LINENO
25230 as_lineno_2=$LINENO
25231 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25232 test "x$as_lineno_1" != "x$as_lineno_2" &&
25233 test "x$as_lineno_3" = "x$as_lineno_2" || {
25234 # Find who we are. Look in the path if we contain no path at all
25235 # relative or not.
25236 case $0 in
25237 *[\\/]* ) as_myself=$0 ;;
25238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25239 for as_dir in $PATH
25240 do
25241 IFS=$as_save_IFS
25242 test -z "$as_dir" && as_dir=.
25243 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25244 done
25245
25246 ;;
25247 esac
25248 # We did not find ourselves, most probably we were run as `sh COMMAND'
25249 # in which case we are not to be found in the path.
25250 if test "x$as_myself" = x; then
25251 as_myself=$0
25252 fi
25253 if test ! -f "$as_myself"; then
25254 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25255 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25256 { (exit 1); exit 1; }; }
25257 fi
25258 case $CONFIG_SHELL in
25259 '')
25260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25261 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25262 do
25263 IFS=$as_save_IFS
25264 test -z "$as_dir" && as_dir=.
25265 for as_base in sh bash ksh sh5; do
25266 case $as_dir in
25267 /*)
25268 if ("$as_dir/$as_base" -c '
25269 as_lineno_1=$LINENO
25270 as_lineno_2=$LINENO
25271 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25272 test "x$as_lineno_1" != "x$as_lineno_2" &&
25273 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25274 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25275 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25276 CONFIG_SHELL=$as_dir/$as_base
25277 export CONFIG_SHELL
25278 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25279 fi;;
25280 esac
25281 done
25282 done
25283 ;;
25284 esac
25285
25286 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25287 # uniformly replaced by the line number. The first 'sed' inserts a
25288 # line-number line before each line; the second 'sed' does the real
25289 # work. The second script uses 'N' to pair each line-number line
25290 # with the numbered line, and appends trailing '-' during
25291 # substitution so that $LINENO is not a special case at line end.
25292 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25293 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25294 sed '=' <$as_myself |
25295 sed '
25296 N
25297 s,$,-,
25298 : loop
25299 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25300 t loop
25301 s,-$,,
25302 s,^['$as_cr_digits']*\n,,
25303 ' >$as_me.lineno &&
25304 chmod +x $as_me.lineno ||
25305 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25306 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25307 { (exit 1); exit 1; }; }
25308
25309 # Don't try to exec as it changes $[0], causing all sort of problems
25310 # (the dirname of $[0] is not the place where we might find the
25311 # original and so on. Autoconf is especially sensible to this).
25312 . ./$as_me.lineno
25313 # Exit status is that of the last command.
25314 exit
25315 }
25316
25317
25318 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25319 *c*,-n*) ECHO_N= ECHO_C='
25320 ' ECHO_T=' ' ;;
25321 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25322 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25323 esac
25324
25325 if expr a : '\(a\)' >/dev/null 2>&1; then
25326 as_expr=expr
25327 else
25328 as_expr=false
25329 fi
25330
25331 rm -f conf$$ conf$$.exe conf$$.file
25332 echo >conf$$.file
25333 if ln -s conf$$.file conf$$ 2>/dev/null; then
25334 # We could just check for DJGPP; but this test a) works b) is more generic
25335 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25336 if test -f conf$$.exe; then
25337 # Don't use ln at all; we don't have any links
25338 as_ln_s='cp -p'
25339 else
25340 as_ln_s='ln -s'
25341 fi
25342 elif ln conf$$.file conf$$ 2>/dev/null; then
25343 as_ln_s=ln
25344 else
25345 as_ln_s='cp -p'
25346 fi
25347 rm -f conf$$ conf$$.exe conf$$.file
25348
25349 if mkdir -p . 2>/dev/null; then
25350 as_mkdir_p=:
25351 else
25352 test -d ./-p && rmdir ./-p
25353 as_mkdir_p=false
25354 fi
25355
25356 as_executable_p="test -f"
25357
25358 # Sed expression to map a string onto a valid CPP name.
25359 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25360
25361 # Sed expression to map a string onto a valid variable name.
25362 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25363
25364
25365 # IFS
25366 # We need space, tab and new line, in precisely that order.
25367 as_nl='
25368 '
25369 IFS=" $as_nl"
25370
25371 # CDPATH.
25372 $as_unset CDPATH
25373
25374 exec 6>&1
25375
25376 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25377 # report actual input values of CONFIG_FILES etc. instead of their
25378 # values after options handling. Logging --version etc. is OK.
25379 exec 5>>config.log
25380 {
25381 echo
25382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25383 ## Running $as_me. ##
25384 _ASBOX
25385 } >&5
25386 cat >&5 <<_CSEOF
25387
25388 This file was extended by $as_me, which was
25389 generated by GNU Autoconf 2.59. Invocation command line was
25390
25391 CONFIG_FILES = $CONFIG_FILES
25392 CONFIG_HEADERS = $CONFIG_HEADERS
25393 CONFIG_LINKS = $CONFIG_LINKS
25394 CONFIG_COMMANDS = $CONFIG_COMMANDS
25395 $ $0 $@
25396
25397 _CSEOF
25398 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25399 echo >&5
25400 _ACEOF
25401
25402 # Files that config.status was made for.
25403 if test -n "$ac_config_files"; then
25404 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25405 fi
25406
25407 if test -n "$ac_config_headers"; then
25408 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25409 fi
25410
25411 if test -n "$ac_config_links"; then
25412 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25413 fi
25414
25415 if test -n "$ac_config_commands"; then
25416 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25417 fi
25418
25419 cat >>$CONFIG_STATUS <<\_ACEOF
25420
25421 ac_cs_usage="\
25422 \`$as_me' instantiates files from templates according to the
25423 current configuration.
25424
25425 Usage: $0 [OPTIONS] [FILE]...
25426
25427 -h, --help print this help, then exit
25428 -V, --version print version number, then exit
25429 -q, --quiet do not print progress messages
25430 -d, --debug don't remove temporary files
25431 --recheck update $as_me by reconfiguring in the same conditions
25432 --file=FILE[:TEMPLATE]
25433 instantiate the configuration file FILE
25434 --header=FILE[:TEMPLATE]
25435 instantiate the configuration header FILE
25436
25437 Configuration files:
25438 $config_files
25439
25440 Configuration headers:
25441 $config_headers
25442
25443 Configuration commands:
25444 $config_commands
25445
25446 Report bugs to <bug-autoconf@gnu.org>."
25447 _ACEOF
25448
25449 cat >>$CONFIG_STATUS <<_ACEOF
25450 ac_cs_version="\\
25451 config.status
25452 configured by $0, generated by GNU Autoconf 2.59,
25453 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25454
25455 Copyright (C) 2003 Free Software Foundation, Inc.
25456 This config.status script is free software; the Free Software Foundation
25457 gives unlimited permission to copy, distribute and modify it."
25458 srcdir=$srcdir
25459 _ACEOF
25460
25461 cat >>$CONFIG_STATUS <<\_ACEOF
25462 # If no file are specified by the user, then we need to provide default
25463 # value. By we need to know if files were specified by the user.
25464 ac_need_defaults=:
25465 while test $# != 0
25466 do
25467 case $1 in
25468 --*=*)
25469 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25470 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25471 ac_shift=:
25472 ;;
25473 -*)
25474 ac_option=$1
25475 ac_optarg=$2
25476 ac_shift=shift
25477 ;;
25478 *) # This is not an option, so the user has probably given explicit
25479 # arguments.
25480 ac_option=$1
25481 ac_need_defaults=false;;
25482 esac
25483
25484 case $ac_option in
25485 # Handling of the options.
25486 _ACEOF
25487 cat >>$CONFIG_STATUS <<\_ACEOF
25488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25489 ac_cs_recheck=: ;;
25490 --version | --vers* | -V )
25491 echo "$ac_cs_version"; exit 0 ;;
25492 --he | --h)
25493 # Conflict between --help and --header
25494 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25495 Try \`$0 --help' for more information." >&5
25496 echo "$as_me: error: ambiguous option: $1
25497 Try \`$0 --help' for more information." >&2;}
25498 { (exit 1); exit 1; }; };;
25499 --help | --hel | -h )
25500 echo "$ac_cs_usage"; exit 0 ;;
25501 --debug | --d* | -d )
25502 debug=: ;;
25503 --file | --fil | --fi | --f )
25504 $ac_shift
25505 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25506 ac_need_defaults=false;;
25507 --header | --heade | --head | --hea )
25508 $ac_shift
25509 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25510 ac_need_defaults=false;;
25511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25512 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25513 ac_cs_silent=: ;;
25514
25515 # This is an error.
25516 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25517 Try \`$0 --help' for more information." >&5
25518 echo "$as_me: error: unrecognized option: $1
25519 Try \`$0 --help' for more information." >&2;}
25520 { (exit 1); exit 1; }; } ;;
25521
25522 *) ac_config_targets="$ac_config_targets $1" ;;
25523
25524 esac
25525 shift
25526 done
25527
25528 ac_configure_extra_args=
25529
25530 if $ac_cs_silent; then
25531 exec 6>/dev/null
25532 ac_configure_extra_args="$ac_configure_extra_args --silent"
25533 fi
25534
25535 _ACEOF
25536 cat >>$CONFIG_STATUS <<_ACEOF
25537 if \$ac_cs_recheck; then
25538 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25539 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25540 fi
25541
25542 _ACEOF
25543
25544 cat >>$CONFIG_STATUS <<_ACEOF
25545 #
25546 # INIT-COMMANDS section.
25547 #
25548
25549 subdirs='$subdirs'
25550
25551 _ACEOF
25552
25553
25554
25555 cat >>$CONFIG_STATUS <<\_ACEOF
25556 for ac_config_target in $ac_config_targets
25557 do
25558 case "$ac_config_target" in
25559 # Handling of arguments.
25560 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25561 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25562 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25563 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25564 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25565 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25566 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25567 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25568 { (exit 1); exit 1; }; };;
25569 esac
25570 done
25571
25572 # If the user did not use the arguments to specify the items to instantiate,
25573 # then the envvar interface is used. Set only those that are not.
25574 # We use the long form for the default assignment because of an extremely
25575 # bizarre bug on SunOS 4.1.3.
25576 if $ac_need_defaults; then
25577 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25578 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25579 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25580 fi
25581
25582 # Have a temporary directory for convenience. Make it in the build tree
25583 # simply because there is no reason to put it here, and in addition,
25584 # creating and moving files from /tmp can sometimes cause problems.
25585 # Create a temporary directory, and hook for its removal unless debugging.
25586 $debug ||
25587 {
25588 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25589 trap '{ (exit 1); exit 1; }' 1 2 13 15
25590 }
25591
25592 # Create a (secure) tmp directory for tmp files.
25593
25594 {
25595 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25596 test -n "$tmp" && test -d "$tmp"
25597 } ||
25598 {
25599 tmp=./confstat$$-$RANDOM
25600 (umask 077 && mkdir $tmp)
25601 } ||
25602 {
25603 echo "$me: cannot create a temporary directory in ." >&2
25604 { (exit 1); exit 1; }
25605 }
25606
25607 _ACEOF
25608
25609 cat >>$CONFIG_STATUS <<_ACEOF
25610
25611 #
25612 # CONFIG_FILES section.
25613 #
25614
25615 # No need to generate the scripts if there are no CONFIG_FILES.
25616 # This happens for instance when ./config.status config.h
25617 if test -n "\$CONFIG_FILES"; then
25618 # Protect against being on the right side of a sed subst in config.status.
25619 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25620 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25621 s,@SHELL@,$SHELL,;t t
25622 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25623 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25624 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25625 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25626 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25627 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25628 s,@exec_prefix@,$exec_prefix,;t t
25629 s,@prefix@,$prefix,;t t
25630 s,@program_transform_name@,$program_transform_name,;t t
25631 s,@bindir@,$bindir,;t t
25632 s,@sbindir@,$sbindir,;t t
25633 s,@libexecdir@,$libexecdir,;t t
25634 s,@datadir@,$datadir,;t t
25635 s,@sysconfdir@,$sysconfdir,;t t
25636 s,@sharedstatedir@,$sharedstatedir,;t t
25637 s,@localstatedir@,$localstatedir,;t t
25638 s,@libdir@,$libdir,;t t
25639 s,@includedir@,$includedir,;t t
25640 s,@oldincludedir@,$oldincludedir,;t t
25641 s,@infodir@,$infodir,;t t
25642 s,@mandir@,$mandir,;t t
25643 s,@build_alias@,$build_alias,;t t
25644 s,@host_alias@,$host_alias,;t t
25645 s,@target_alias@,$target_alias,;t t
25646 s,@DEFS@,$DEFS,;t t
25647 s,@ECHO_C@,$ECHO_C,;t t
25648 s,@ECHO_N@,$ECHO_N,;t t
25649 s,@ECHO_T@,$ECHO_T,;t t
25650 s,@LIBS@,$LIBS,;t t
25651 s,@build@,$build,;t t
25652 s,@build_cpu@,$build_cpu,;t t
25653 s,@build_vendor@,$build_vendor,;t t
25654 s,@build_os@,$build_os,;t t
25655 s,@host@,$host,;t t
25656 s,@host_cpu@,$host_cpu,;t t
25657 s,@host_vendor@,$host_vendor,;t t
25658 s,@host_os@,$host_os,;t t
25659 s,@target@,$target,;t t
25660 s,@target_cpu@,$target_cpu,;t t
25661 s,@target_vendor@,$target_vendor,;t t
25662 s,@target_os@,$target_os,;t t
25663 s,@target_noncanonical@,$target_noncanonical,;t t
25664 s,@build_libsubdir@,$build_libsubdir,;t t
25665 s,@build_subdir@,$build_subdir,;t t
25666 s,@host_subdir@,$host_subdir,;t t
25667 s,@target_subdir@,$target_subdir,;t t
25668 s,@GENINSRC@,$GENINSRC,;t t
25669 s,@CC@,$CC,;t t
25670 s,@CFLAGS@,$CFLAGS,;t t
25671 s,@LDFLAGS@,$LDFLAGS,;t t
25672 s,@CPPFLAGS@,$CPPFLAGS,;t t
25673 s,@ac_ct_CC@,$ac_ct_CC,;t t
25674 s,@EXEEXT@,$EXEEXT,;t t
25675 s,@OBJEXT@,$OBJEXT,;t t
25676 s,@GNATBIND@,$GNATBIND,;t t
25677 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
25678 s,@GNATMAKE@,$GNATMAKE,;t t
25679 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
25680 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
25681 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
25682 s,@CPP@,$CPP,;t t
25683 s,@EGREP@,$EGREP,;t t
25684 s,@loose_warn@,$loose_warn,;t t
25685 s,@strict_warn@,$strict_warn,;t t
25686 s,@warn_cflags@,$warn_cflags,;t t
25687 s,@nocommon_flag@,$nocommon_flag,;t t
25688 s,@TREEBROWSER@,$TREEBROWSER,;t t
25689 s,@valgrind_path@,$valgrind_path,;t t
25690 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
25691 s,@valgrind_command@,$valgrind_command,;t t
25692 s,@coverage_flags@,$coverage_flags,;t t
25693 s,@enable_multilib@,$enable_multilib,;t t
25694 s,@enable_decimal_float@,$enable_decimal_float,;t t
25695 s,@enable_fixed_point@,$enable_fixed_point,;t t
25696 s,@enable_shared@,$enable_shared,;t t
25697 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25698 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25699 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
25700 s,@onestep@,$onestep,;t t
25701 s,@PKGVERSION@,$PKGVERSION,;t t
25702 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
25703 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
25704 s,@datarootdir@,$datarootdir,;t t
25705 s,@docdir@,$docdir,;t t
25706 s,@htmldir@,$htmldir,;t t
25707 s,@SET_MAKE@,$SET_MAKE,;t t
25708 s,@AWK@,$AWK,;t t
25709 s,@LN_S@,$LN_S,;t t
25710 s,@LN@,$LN,;t t
25711 s,@RANLIB@,$RANLIB,;t t
25712 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25713 s,@ranlib_flags@,$ranlib_flags,;t t
25714 s,@INSTALL@,$INSTALL,;t t
25715 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25716 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25717 s,@make_compare_target@,$make_compare_target,;t t
25718 s,@have_mktemp_command@,$have_mktemp_command,;t t
25719 s,@MAKEINFO@,$MAKEINFO,;t t
25720 s,@BUILD_INFO@,$BUILD_INFO,;t t
25721 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
25722 s,@FLEX@,$FLEX,;t t
25723 s,@BISON@,$BISON,;t t
25724 s,@NM@,$NM,;t t
25725 s,@AR@,$AR,;t t
25726 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
25727 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
25728 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
25729 s,@LIBICONV@,$LIBICONV,;t t
25730 s,@LTLIBICONV@,$LTLIBICONV,;t t
25731 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
25732 s,@manext@,$manext,;t t
25733 s,@objext@,$objext,;t t
25734 s,@gthread_flags@,$gthread_flags,;t t
25735 s,@extra_modes_file@,$extra_modes_file,;t t
25736 s,@extra_opt_files@,$extra_opt_files,;t t
25737 s,@USE_NLS@,$USE_NLS,;t t
25738 s,@LIBINTL@,$LIBINTL,;t t
25739 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25740 s,@INCINTL@,$INCINTL,;t t
25741 s,@XGETTEXT@,$XGETTEXT,;t t
25742 s,@GMSGFMT@,$GMSGFMT,;t t
25743 s,@POSUB@,$POSUB,;t t
25744 s,@CATALOGS@,$CATALOGS,;t t
25745 s,@DATADIRNAME@,$DATADIRNAME,;t t
25746 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25747 s,@GENCAT@,$GENCAT,;t t
25748 s,@CATOBJEXT@,$CATOBJEXT,;t t
25749 s,@CROSS@,$CROSS,;t t
25750 s,@ALL@,$ALL,;t t
25751 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
25752 s,@inhibit_libc@,$inhibit_libc,;t t
25753 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
25754 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
25755 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
25756 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
25757 s,@collect2@,$collect2,;t t
25758 s,@LIBTOOL@,$LIBTOOL,;t t
25759 s,@SED@,$SED,;t t
25760 s,@FGREP@,$FGREP,;t t
25761 s,@GREP@,$GREP,;t t
25762 s,@LD@,$LD,;t t
25763 s,@DUMPBIN@,$DUMPBIN,;t t
25764 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
25765 s,@OBJDUMP@,$OBJDUMP,;t t
25766 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
25767 s,@ac_ct_AR@,$ac_ct_AR,;t t
25768 s,@STRIP@,$STRIP,;t t
25769 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25770 s,@lt_ECHO@,$lt_ECHO,;t t
25771 s,@DSYMUTIL@,$DSYMUTIL,;t t
25772 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
25773 s,@NMEDIT@,$NMEDIT,;t t
25774 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
25775 s,@LIPO@,$LIPO,;t t
25776 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
25777 s,@OTOOL@,$OTOOL,;t t
25778 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
25779 s,@OTOOL64@,$OTOOL64,;t t
25780 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
25781 s,@objdir@,$objdir,;t t
25782 s,@enable_fast_install@,$enable_fast_install,;t t
25783 s,@gcc_cv_as@,$gcc_cv_as,;t t
25784 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
25785 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
25786 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
25787 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
25788 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
25789 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
25790 s,@gcc_cv_readelf@,$gcc_cv_readelf,;t t
25791 s,@libgcc_visibility@,$libgcc_visibility,;t t
25792 s,@GGC@,$GGC,;t t
25793 s,@zlibdir@,$zlibdir,;t t
25794 s,@zlibinc@,$zlibinc,;t t
25795 s,@MAINT@,$MAINT,;t t
25796 s,@gcc_tooldir@,$gcc_tooldir,;t t
25797 s,@dollar@,$dollar,;t t
25798 s,@slibdir@,$slibdir,;t t
25799 s,@subdirs@,$subdirs,;t t
25800 s,@srcdir@,$srcdir,;t t
25801 s,@all_compilers@,$all_compilers,;t t
25802 s,@all_gtfiles@,$all_gtfiles,;t t
25803 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
25804 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
25805 s,@all_languages@,$all_languages,;t t
25806 s,@all_selected_languages@,$all_selected_languages,;t t
25807 s,@build_exeext@,$build_exeext,;t t
25808 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
25809 s,@build_xm_file_list@,$build_xm_file_list,;t t
25810 s,@build_xm_include_list@,$build_xm_include_list,;t t
25811 s,@build_xm_defines@,$build_xm_defines,;t t
25812 s,@build_file_translate@,$build_file_translate,;t t
25813 s,@check_languages@,$check_languages,;t t
25814 s,@cpp_install_dir@,$cpp_install_dir,;t t
25815 s,@xmake_file@,$xmake_file,;t t
25816 s,@tmake_file@,$tmake_file,;t t
25817 s,@TM_ENDIAN_CONFIG@,$TM_ENDIAN_CONFIG,;t t
25818 s,@TM_MULTILIB_CONFIG@,$TM_MULTILIB_CONFIG,;t t
25819 s,@TM_MULTILIB_EXCEPTIONS_CONFIG@,$TM_MULTILIB_EXCEPTIONS_CONFIG,;t t
25820 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
25821 s,@extra_headers_list@,$extra_headers_list,;t t
25822 s,@extra_objs@,$extra_objs,;t t
25823 s,@extra_parts@,$extra_parts,;t t
25824 s,@extra_passes@,$extra_passes,;t t
25825 s,@extra_programs@,$extra_programs,;t t
25826 s,@float_h_file@,$float_h_file,;t t
25827 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
25828 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
25829 s,@host_exeext@,$host_exeext,;t t
25830 s,@host_xm_file_list@,$host_xm_file_list,;t t
25831 s,@host_xm_include_list@,$host_xm_include_list,;t t
25832 s,@host_xm_defines@,$host_xm_defines,;t t
25833 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
25834 s,@install@,$install,;t t
25835 s,@lang_opt_files@,$lang_opt_files,;t t
25836 s,@lang_specs_files@,$lang_specs_files,;t t
25837 s,@lang_tree_files@,$lang_tree_files,;t t
25838 s,@local_prefix@,$local_prefix,;t t
25839 s,@md_file@,$md_file,;t t
25840 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
25841 s,@out_file@,$out_file,;t t
25842 s,@out_object_file@,$out_object_file,;t t
25843 s,@thread_file@,$thread_file,;t t
25844 s,@tm_file_list@,$tm_file_list,;t t
25845 s,@tm_include_list@,$tm_include_list,;t t
25846 s,@tm_defines@,$tm_defines,;t t
25847 s,@tm_p_file_list@,$tm_p_file_list,;t t
25848 s,@tm_p_include_list@,$tm_p_include_list,;t t
25849 s,@xm_file_list@,$xm_file_list,;t t
25850 s,@xm_include_list@,$xm_include_list,;t t
25851 s,@xm_defines@,$xm_defines,;t t
25852 s,@use_gcc_stdint@,$use_gcc_stdint,;t t
25853 s,@c_target_objs@,$c_target_objs,;t t
25854 s,@cxx_target_objs@,$cxx_target_objs,;t t
25855 s,@fortran_target_objs@,$fortran_target_objs,;t t
25856 s,@target_cpu_default@,$target_cpu_default,;t t
25857 s,@GMPLIBS@,$GMPLIBS,;t t
25858 s,@GMPINC@,$GMPINC,;t t
25859 s,@PPLLIBS@,$PPLLIBS,;t t
25860 s,@PPLINC@,$PPLINC,;t t
25861 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
25862 s,@CLOOGINC@,$CLOOGINC,;t t
25863 s,@pluginlibs@,$pluginlibs,;t t
25864 s,@enable_plugin@,$enable_plugin,;t t
25865 s,@LIBOBJS@,$LIBOBJS,;t t
25866 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25867 /@language_hooks@/r $language_hooks
25868 s,@language_hooks@,,;t t
25869 CEOF
25870
25871 _ACEOF
25872
25873 cat >>$CONFIG_STATUS <<\_ACEOF
25874 # Split the substitutions into bite-sized pieces for seds with
25875 # small command number limits, like on Digital OSF/1 and HP-UX.
25876 ac_max_sed_lines=48
25877 ac_sed_frag=1 # Number of current file.
25878 ac_beg=1 # First line for current file.
25879 ac_end=$ac_max_sed_lines # Line after last line for current file.
25880 ac_more_lines=:
25881 ac_sed_cmds=
25882 while $ac_more_lines; do
25883 if test $ac_beg -gt 1; then
25884 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25885 else
25886 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25887 fi
25888 if test ! -s $tmp/subs.frag; then
25889 ac_more_lines=false
25890 else
25891 # The purpose of the label and of the branching condition is to
25892 # speed up the sed processing (if there are no `@' at all, there
25893 # is no need to browse any of the substitutions).
25894 # These are the two extra sed commands mentioned above.
25895 (echo ':t
25896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25897 if test -z "$ac_sed_cmds"; then
25898 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25899 else
25900 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25901 fi
25902 ac_sed_frag=`expr $ac_sed_frag + 1`
25903 ac_beg=$ac_end
25904 ac_end=`expr $ac_end + $ac_max_sed_lines`
25905 fi
25906 done
25907 if test -z "$ac_sed_cmds"; then
25908 ac_sed_cmds=cat
25909 fi
25910 fi # test -n "$CONFIG_FILES"
25911
25912 _ACEOF
25913 cat >>$CONFIG_STATUS <<\_ACEOF
25914 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25915 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25916 case $ac_file in
25917 - | *:- | *:-:* ) # input from stdin
25918 cat >$tmp/stdin
25919 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25920 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25921 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25923 * ) ac_file_in=$ac_file.in ;;
25924 esac
25925
25926 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25927 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25929 X"$ac_file" : 'X\(//\)[^/]' \| \
25930 X"$ac_file" : 'X\(//\)$' \| \
25931 X"$ac_file" : 'X\(/\)' \| \
25932 . : '\(.\)' 2>/dev/null ||
25933 echo X"$ac_file" |
25934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25936 /^X\(\/\/\)$/{ s//\1/; q; }
25937 /^X\(\/\).*/{ s//\1/; q; }
25938 s/.*/./; q'`
25939 { if $as_mkdir_p; then
25940 mkdir -p "$ac_dir"
25941 else
25942 as_dir="$ac_dir"
25943 as_dirs=
25944 while test ! -d "$as_dir"; do
25945 as_dirs="$as_dir $as_dirs"
25946 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25948 X"$as_dir" : 'X\(//\)[^/]' \| \
25949 X"$as_dir" : 'X\(//\)$' \| \
25950 X"$as_dir" : 'X\(/\)' \| \
25951 . : '\(.\)' 2>/dev/null ||
25952 echo X"$as_dir" |
25953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25955 /^X\(\/\/\)$/{ s//\1/; q; }
25956 /^X\(\/\).*/{ s//\1/; q; }
25957 s/.*/./; q'`
25958 done
25959 test ! -n "$as_dirs" || mkdir $as_dirs
25960 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25961 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25962 { (exit 1); exit 1; }; }; }
25963
25964 ac_builddir=.
25965
25966 if test "$ac_dir" != .; then
25967 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25968 # A "../" for each directory in $ac_dir_suffix.
25969 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25970 else
25971 ac_dir_suffix= ac_top_builddir=
25972 fi
25973
25974 case $srcdir in
25975 .) # No --srcdir option. We are building in place.
25976 ac_srcdir=.
25977 if test -z "$ac_top_builddir"; then
25978 ac_top_srcdir=.
25979 else
25980 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25981 fi ;;
25982 [\\/]* | ?:[\\/]* ) # Absolute path.
25983 ac_srcdir=$srcdir$ac_dir_suffix;
25984 ac_top_srcdir=$srcdir ;;
25985 *) # Relative path.
25986 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25987 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25988 esac
25989
25990 # Do not use `cd foo && pwd` to compute absolute paths, because
25991 # the directories may not exist.
25992 case `pwd` in
25993 .) ac_abs_builddir="$ac_dir";;
25994 *)
25995 case "$ac_dir" in
25996 .) ac_abs_builddir=`pwd`;;
25997 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25998 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25999 esac;;
26000 esac
26001 case $ac_abs_builddir in
26002 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26003 *)
26004 case ${ac_top_builddir}. in
26005 .) ac_abs_top_builddir=$ac_abs_builddir;;
26006 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26007 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26008 esac;;
26009 esac
26010 case $ac_abs_builddir in
26011 .) ac_abs_srcdir=$ac_srcdir;;
26012 *)
26013 case $ac_srcdir in
26014 .) ac_abs_srcdir=$ac_abs_builddir;;
26015 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26016 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26017 esac;;
26018 esac
26019 case $ac_abs_builddir in
26020 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26021 *)
26022 case $ac_top_srcdir in
26023 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26024 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26025 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26026 esac;;
26027 esac
26028
26029
26030
26031 if test x"$ac_file" != x-; then
26032 { echo "$as_me:$LINENO: creating $ac_file" >&5
26033 echo "$as_me: creating $ac_file" >&6;}
26034 rm -f "$ac_file"
26035 fi
26036 # Let's still pretend it is `configure' which instantiates (i.e., don't
26037 # use $as_me), people would be surprised to read:
26038 # /* config.h. Generated by config.status. */
26039 if test x"$ac_file" = x-; then
26040 configure_input=
26041 else
26042 configure_input="$ac_file. "
26043 fi
26044 configure_input=$configure_input"Generated from `echo $ac_file_in |
26045 sed 's,.*/,,'` by configure."
26046
26047 # First look for the input files in the build tree, otherwise in the
26048 # src tree.
26049 ac_file_inputs=`IFS=:
26050 for f in $ac_file_in; do
26051 case $f in
26052 -) echo $tmp/stdin ;;
26053 [\\/$]*)
26054 # Absolute (can't be DOS-style, as IFS=:)
26055 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26056 echo "$as_me: error: cannot find input file: $f" >&2;}
26057 { (exit 1); exit 1; }; }
26058 echo "$f";;
26059 *) # Relative
26060 if test -f "$f"; then
26061 # Build tree
26062 echo "$f"
26063 elif test -f "$srcdir/$f"; then
26064 # Source tree
26065 echo "$srcdir/$f"
26066 else
26067 # /dev/null tree
26068 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26069 echo "$as_me: error: cannot find input file: $f" >&2;}
26070 { (exit 1); exit 1; }; }
26071 fi;;
26072 esac
26073 done` || { (exit 1); exit 1; }
26074 _ACEOF
26075 cat >>$CONFIG_STATUS <<_ACEOF
26076 sed "$ac_vpsub
26077 $extrasub
26078 _ACEOF
26079 cat >>$CONFIG_STATUS <<\_ACEOF
26080 :t
26081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26082 s,@configure_input@,$configure_input,;t t
26083 s,@srcdir@,$ac_srcdir,;t t
26084 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26085 s,@top_srcdir@,$ac_top_srcdir,;t t
26086 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26087 s,@builddir@,$ac_builddir,;t t
26088 s,@abs_builddir@,$ac_abs_builddir,;t t
26089 s,@top_builddir@,$ac_top_builddir,;t t
26090 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26091 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26092 rm -f $tmp/stdin
26093 if test x"$ac_file" != x-; then
26094 mv $tmp/out $ac_file
26095 else
26096 cat $tmp/out
26097 rm -f $tmp/out
26098 fi
26099
26100 # Run the commands associated with the file.
26101 case $ac_file in
26102 as ) chmod +x as ;;
26103 collect-ld ) chmod +x collect-ld ;;
26104 nm ) chmod +x nm ;;
26105 esac
26106 done
26107 _ACEOF
26108 cat >>$CONFIG_STATUS <<\_ACEOF
26109
26110 #
26111 # CONFIG_HEADER section.
26112 #
26113
26114 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26115 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26116 #
26117 # ac_d sets the value in "#define NAME VALUE" lines.
26118 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26119 ac_dB='[ ].*$,\1#\2'
26120 ac_dC=' '
26121 ac_dD=',;t'
26122 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26123 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26124 ac_uB='$,\1#\2define\3'
26125 ac_uC=' '
26126 ac_uD=',;t'
26127
26128 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26129 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26130 case $ac_file in
26131 - | *:- | *:-:* ) # input from stdin
26132 cat >$tmp/stdin
26133 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26134 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26135 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26137 * ) ac_file_in=$ac_file.in ;;
26138 esac
26139
26140 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26141 echo "$as_me: creating $ac_file" >&6;}
26142
26143 # First look for the input files in the build tree, otherwise in the
26144 # src tree.
26145 ac_file_inputs=`IFS=:
26146 for f in $ac_file_in; do
26147 case $f in
26148 -) echo $tmp/stdin ;;
26149 [\\/$]*)
26150 # Absolute (can't be DOS-style, as IFS=:)
26151 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26152 echo "$as_me: error: cannot find input file: $f" >&2;}
26153 { (exit 1); exit 1; }; }
26154 # Do quote $f, to prevent DOS paths from being IFS'd.
26155 echo "$f";;
26156 *) # Relative
26157 if test -f "$f"; then
26158 # Build tree
26159 echo "$f"
26160 elif test -f "$srcdir/$f"; then
26161 # Source tree
26162 echo "$srcdir/$f"
26163 else
26164 # /dev/null tree
26165 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26166 echo "$as_me: error: cannot find input file: $f" >&2;}
26167 { (exit 1); exit 1; }; }
26168 fi;;
26169 esac
26170 done` || { (exit 1); exit 1; }
26171 # Remove the trailing spaces.
26172 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26173
26174 _ACEOF
26175
26176 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26177 # `conftest.undefs', that substitutes the proper values into
26178 # config.h.in to produce config.h. The first handles `#define'
26179 # templates, and the second `#undef' templates.
26180 # And first: Protect against being on the right side of a sed subst in
26181 # config.status. Protect against being in an unquoted here document
26182 # in config.status.
26183 rm -f conftest.defines conftest.undefs
26184 # Using a here document instead of a string reduces the quoting nightmare.
26185 # Putting comments in sed scripts is not portable.
26186 #
26187 # `end' is used to avoid that the second main sed command (meant for
26188 # 0-ary CPP macros) applies to n-ary macro definitions.
26189 # See the Autoconf documentation for `clear'.
26190 cat >confdef2sed.sed <<\_ACEOF
26191 s/[\\&,]/\\&/g
26192 s,[\\$`],\\&,g
26193 t clear
26194 : clear
26195 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26196 t end
26197 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26198 : end
26199 _ACEOF
26200 # If some macros were called several times there might be several times
26201 # the same #defines, which is useless. Nevertheless, we may not want to
26202 # sort them, since we want the *last* AC-DEFINE to be honored.
26203 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26204 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26205 rm -f confdef2sed.sed
26206
26207 # This sed command replaces #undef with comments. This is necessary, for
26208 # example, in the case of _POSIX_SOURCE, which is predefined and required
26209 # on some systems where configure will not decide to define it.
26210 cat >>conftest.undefs <<\_ACEOF
26211 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26212 _ACEOF
26213
26214 # Break up conftest.defines because some shells have a limit on the size
26215 # of here documents, and old seds have small limits too (100 cmds).
26216 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26217 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26218 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26219 echo ' :' >>$CONFIG_STATUS
26220 rm -f conftest.tail
26221 while grep . conftest.defines >/dev/null
26222 do
26223 # Write a limited-size here document to $tmp/defines.sed.
26224 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26225 # Speed up: don't consider the non `#define' lines.
26226 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26227 # Work around the forget-to-reset-the-flag bug.
26228 echo 't clr' >>$CONFIG_STATUS
26229 echo ': clr' >>$CONFIG_STATUS
26230 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26231 echo 'CEOF
26232 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26233 rm -f $tmp/in
26234 mv $tmp/out $tmp/in
26235 ' >>$CONFIG_STATUS
26236 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26237 rm -f conftest.defines
26238 mv conftest.tail conftest.defines
26239 done
26240 rm -f conftest.defines
26241 echo ' fi # grep' >>$CONFIG_STATUS
26242 echo >>$CONFIG_STATUS
26243
26244 # Break up conftest.undefs because some shells have a limit on the size
26245 # of here documents, and old seds have small limits too (100 cmds).
26246 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26247 rm -f conftest.tail
26248 while grep . conftest.undefs >/dev/null
26249 do
26250 # Write a limited-size here document to $tmp/undefs.sed.
26251 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26252 # Speed up: don't consider the non `#undef'
26253 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26254 # Work around the forget-to-reset-the-flag bug.
26255 echo 't clr' >>$CONFIG_STATUS
26256 echo ': clr' >>$CONFIG_STATUS
26257 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26258 echo 'CEOF
26259 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26260 rm -f $tmp/in
26261 mv $tmp/out $tmp/in
26262 ' >>$CONFIG_STATUS
26263 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26264 rm -f conftest.undefs
26265 mv conftest.tail conftest.undefs
26266 done
26267 rm -f conftest.undefs
26268
26269 cat >>$CONFIG_STATUS <<\_ACEOF
26270 # Let's still pretend it is `configure' which instantiates (i.e., don't
26271 # use $as_me), people would be surprised to read:
26272 # /* config.h. Generated by config.status. */
26273 if test x"$ac_file" = x-; then
26274 echo "/* Generated by configure. */" >$tmp/config.h
26275 else
26276 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26277 fi
26278 cat $tmp/in >>$tmp/config.h
26279 rm -f $tmp/in
26280 if test x"$ac_file" != x-; then
26281 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26282 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26283 echo "$as_me: $ac_file is unchanged" >&6;}
26284 else
26285 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26287 X"$ac_file" : 'X\(//\)[^/]' \| \
26288 X"$ac_file" : 'X\(//\)$' \| \
26289 X"$ac_file" : 'X\(/\)' \| \
26290 . : '\(.\)' 2>/dev/null ||
26291 echo X"$ac_file" |
26292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26294 /^X\(\/\/\)$/{ s//\1/; q; }
26295 /^X\(\/\).*/{ s//\1/; q; }
26296 s/.*/./; q'`
26297 { if $as_mkdir_p; then
26298 mkdir -p "$ac_dir"
26299 else
26300 as_dir="$ac_dir"
26301 as_dirs=
26302 while test ! -d "$as_dir"; do
26303 as_dirs="$as_dir $as_dirs"
26304 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26306 X"$as_dir" : 'X\(//\)[^/]' \| \
26307 X"$as_dir" : 'X\(//\)$' \| \
26308 X"$as_dir" : 'X\(/\)' \| \
26309 . : '\(.\)' 2>/dev/null ||
26310 echo X"$as_dir" |
26311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26313 /^X\(\/\/\)$/{ s//\1/; q; }
26314 /^X\(\/\).*/{ s//\1/; q; }
26315 s/.*/./; q'`
26316 done
26317 test ! -n "$as_dirs" || mkdir $as_dirs
26318 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26319 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26320 { (exit 1); exit 1; }; }; }
26321
26322 rm -f $ac_file
26323 mv $tmp/config.h $ac_file
26324 fi
26325 else
26326 cat $tmp/config.h
26327 rm -f $tmp/config.h
26328 fi
26329 done
26330 _ACEOF
26331 cat >>$CONFIG_STATUS <<\_ACEOF
26332
26333 #
26334 # CONFIG_COMMANDS section.
26335 #
26336 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26337 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26338 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26339 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26340 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26341 X"$ac_dest" : 'X\(//\)[^/]' \| \
26342 X"$ac_dest" : 'X\(//\)$' \| \
26343 X"$ac_dest" : 'X\(/\)' \| \
26344 . : '\(.\)' 2>/dev/null ||
26345 echo X"$ac_dest" |
26346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26348 /^X\(\/\/\)$/{ s//\1/; q; }
26349 /^X\(\/\).*/{ s//\1/; q; }
26350 s/.*/./; q'`
26351 { if $as_mkdir_p; then
26352 mkdir -p "$ac_dir"
26353 else
26354 as_dir="$ac_dir"
26355 as_dirs=
26356 while test ! -d "$as_dir"; do
26357 as_dirs="$as_dir $as_dirs"
26358 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26360 X"$as_dir" : 'X\(//\)[^/]' \| \
26361 X"$as_dir" : 'X\(//\)$' \| \
26362 X"$as_dir" : 'X\(/\)' \| \
26363 . : '\(.\)' 2>/dev/null ||
26364 echo X"$as_dir" |
26365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26367 /^X\(\/\/\)$/{ s//\1/; q; }
26368 /^X\(\/\).*/{ s//\1/; q; }
26369 s/.*/./; q'`
26370 done
26371 test ! -n "$as_dirs" || mkdir $as_dirs
26372 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26373 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26374 { (exit 1); exit 1; }; }; }
26375
26376 ac_builddir=.
26377
26378 if test "$ac_dir" != .; then
26379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26380 # A "../" for each directory in $ac_dir_suffix.
26381 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26382 else
26383 ac_dir_suffix= ac_top_builddir=
26384 fi
26385
26386 case $srcdir in
26387 .) # No --srcdir option. We are building in place.
26388 ac_srcdir=.
26389 if test -z "$ac_top_builddir"; then
26390 ac_top_srcdir=.
26391 else
26392 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26393 fi ;;
26394 [\\/]* | ?:[\\/]* ) # Absolute path.
26395 ac_srcdir=$srcdir$ac_dir_suffix;
26396 ac_top_srcdir=$srcdir ;;
26397 *) # Relative path.
26398 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26399 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26400 esac
26401
26402 # Do not use `cd foo && pwd` to compute absolute paths, because
26403 # the directories may not exist.
26404 case `pwd` in
26405 .) ac_abs_builddir="$ac_dir";;
26406 *)
26407 case "$ac_dir" in
26408 .) ac_abs_builddir=`pwd`;;
26409 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26410 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26411 esac;;
26412 esac
26413 case $ac_abs_builddir in
26414 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26415 *)
26416 case ${ac_top_builddir}. in
26417 .) ac_abs_top_builddir=$ac_abs_builddir;;
26418 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26419 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26420 esac;;
26421 esac
26422 case $ac_abs_builddir in
26423 .) ac_abs_srcdir=$ac_srcdir;;
26424 *)
26425 case $ac_srcdir in
26426 .) ac_abs_srcdir=$ac_abs_builddir;;
26427 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26428 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26429 esac;;
26430 esac
26431 case $ac_abs_builddir in
26432 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26433 *)
26434 case $ac_top_srcdir in
26435 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26436 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26437 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26438 esac;;
26439 esac
26440
26441
26442 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26443 echo "$as_me: executing $ac_dest commands" >&6;}
26444 case $ac_dest in
26445 default )
26446 case ${CONFIG_HEADERS} in
26447 *auto-host.h:config.in*)
26448 echo > cstamp-h ;;
26449 esac
26450 # Make sure all the subdirs exist.
26451 for d in $subdirs doc build
26452 do
26453 test -d $d || mkdir $d
26454 done
26455 ;;
26456 esac
26457 done
26458 _ACEOF
26459
26460 cat >>$CONFIG_STATUS <<\_ACEOF
26461
26462 { (exit 0); exit 0; }
26463 _ACEOF
26464 chmod +x $CONFIG_STATUS
26465 ac_clean_files=$ac_clean_files_save
26466
26467
26468 # configure is writing to config.log, and then calls config.status.
26469 # config.status does its own redirection, appending to config.log.
26470 # Unfortunately, on DOS this fails, as config.log is still kept open
26471 # by configure, so config.status won't be able to write to it; its
26472 # output is simply discarded. So we exec the FD to /dev/null,
26473 # effectively closing config.log, so it can be properly (re)opened and
26474 # appended to by config.status. When coming back to configure, we
26475 # need to make the FD available again.
26476 if test "$no_create" != yes; then
26477 ac_cs_success=:
26478 ac_config_status_args=
26479 test "$silent" = yes &&
26480 ac_config_status_args="$ac_config_status_args --quiet"
26481 exec 5>/dev/null
26482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26483 exec 5>>config.log
26484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26485 # would make configure fail if this is the last instruction.
26486 $ac_cs_success || { (exit 1); exit 1; }
26487 fi
26488