Moved here from autoconf/missing.
[libsigsegv/ericb.git] / configure
blob6004c7cc631204056e3928d3effb422c84d1c381
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 echo=${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
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
276 exit 0
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
283 if test -z "$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 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
294 done
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 exec 6>&1
406 # Initializations.
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
428 ac_unique_file="src/sigsegv.h.in"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
466 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os PLATFORM EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL FAULT_CONTEXT FAULT_CONTEXT_INCLUDE FAULT_CONTEXT_INCLUDE2 HAVE_SIGSEGV_RECOVERY CFG_STACKVMA HAVE_STACK_OVERFLOW_RECOVERY CFG_LEAVE CFG_HANDLER RELOCATABLE LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
507 ac_prev=
508 for ac_option
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
521 case $ac_option in
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
540 --config-cache | -C)
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 esac
804 done
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
879 else
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
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.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
962 Defaults for the options are specified in brackets.
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 \`..']
975 _ACEOF
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]
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'.
989 For better control, use the options below.
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
1006 cat <<\_ACEOF
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
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 _ACEOF
1019 if test -n "$ac_init_help"; then
1021 cat <<\_ACEOF
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=no]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-relocatable install a package that can be moved in the filesystem
1037 Optional Packages:
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1041 --with-pic try to use only PIC/non-PIC objects [default=use
1042 both]
1043 --with-tags[=TAGS]
1044 include additional configurations [automatic]
1046 Some influential environment variables:
1047 CC C compiler command
1048 CFLAGS C compiler flags
1049 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1050 nonstandard directory <lib dir>
1051 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052 headers in a nonstandard directory <include dir>
1053 CPP C preprocessor
1054 CXX C++ compiler command
1055 CXXFLAGS C++ compiler flags
1056 CXXCPP C++ preprocessor
1057 F77 Fortran 77 compiler command
1058 FFLAGS Fortran 77 compiler flags
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1063 _ACEOF
1066 if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
1068 ac_popdir=`pwd`
1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070 test -d $ac_dir || continue
1071 ac_builddir=.
1073 if test "$ac_dir" != .; then
1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077 else
1078 ac_dir_suffix= ac_top_builddir=
1081 case $srcdir in
1082 .) # No --srcdir option. We are building in place.
1083 ac_srcdir=.
1084 if test -z "$ac_top_builddir"; then
1085 ac_top_srcdir=.
1086 else
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088 fi ;;
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1090 ac_srcdir=$srcdir$ac_dir_suffix;
1091 ac_top_srcdir=$srcdir ;;
1092 *) # Relative path.
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095 esac
1097 # Do not use `cd foo && pwd` to compute absolute paths, because
1098 # the directories may not exist.
1099 case `pwd` in
1100 .) ac_abs_builddir="$ac_dir";;
1102 case "$ac_dir" in
1103 .) ac_abs_builddir=`pwd`;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1106 esac;;
1107 esac
1108 case $ac_abs_builddir in
1109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1115 esac;;
1116 esac
1117 case $ac_abs_builddir in
1118 .) ac_abs_srcdir=$ac_srcdir;;
1120 case $ac_srcdir in
1121 .) ac_abs_srcdir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1124 esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1133 esac;;
1134 esac
1136 cd $ac_dir
1137 # Check for guested configure; otherwise get Cygnus style configure.
1138 if test -f $ac_srcdir/configure.gnu; then
1139 echo
1140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
1142 echo
1143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
1145 test -f $ac_srcdir/configure.in; then
1146 echo
1147 $ac_configure --help
1148 else
1149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1151 cd $ac_popdir
1152 done
1155 test -n "$ac_init_help" && exit 0
1156 if $ac_init_version; then
1157 cat <<\_ACEOF
1159 Copyright (C) 2003 Free Software Foundation, Inc.
1160 This configure script is free software; the Free Software Foundation
1161 gives unlimited permission to copy, distribute and modify it.
1162 _ACEOF
1163 exit 0
1165 exec 5>config.log
1166 cat >&5 <<_ACEOF
1167 This file contains any messages produced by compilers while
1168 running configure, to aid debugging if configure makes a mistake.
1170 It was created by $as_me, which was
1171 generated by GNU Autoconf 2.59. Invocation command line was
1173 $ $0 $@
1175 _ACEOF
1177 cat <<_ASUNAME
1178 ## --------- ##
1179 ## Platform. ##
1180 ## --------- ##
1182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1191 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1195 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1199 _ASUNAME
1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1202 for as_dir in $PATH
1204 IFS=$as_save_IFS
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1207 done
1209 } >&5
1211 cat >&5 <<_ACEOF
1214 ## ----------- ##
1215 ## Core tests. ##
1216 ## ----------- ##
1218 _ACEOF
1221 # Keep a trace of the command line.
1222 # Strip out --no-create and --no-recursion so they do not pile up.
1223 # Strip out --silent because we don't want to record it for future runs.
1224 # Also quote any args containing shell meta-characters.
1225 # Make two passes to allow for proper duplicate-argument suppression.
1226 ac_configure_args=
1227 ac_configure_args0=
1228 ac_configure_args1=
1229 ac_sep=
1230 ac_must_keep_next=false
1231 for ac_pass in 1 2
1233 for ac_arg
1235 case $ac_arg in
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1239 continue ;;
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 esac
1243 case $ac_pass in
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1249 else
1250 case $ac_arg in
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1257 esac
1259 -* ) ac_must_keep_next=true ;;
1260 esac
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1264 ac_sep=" "
1266 esac
1267 done
1268 done
1269 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272 # When interrupted or exit'd, cleanup temporary files, and complete
1273 # config.log. We remove comments because anyway the quotes in there
1274 # would cause problems or look ugly.
1275 # WARNING: Be sure not to use single quotes in there, as some shells,
1276 # such as our DU 5.0 friend, will then `close' the trap.
1277 trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1280 echo
1282 cat <<\_ASBOX
1283 ## ---------------- ##
1284 ## Cache variables. ##
1285 ## ---------------- ##
1286 _ASBOX
1287 echo
1288 # The following way of writing the cache mishandles newlines in values,
1290 (set) 2>&1 |
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1292 *ac_space=\ *)
1293 sed -n \
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1298 sed -n \
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1301 esac;
1303 echo
1305 cat <<\_ASBOX
1306 ## ----------------- ##
1307 ## Output variables. ##
1308 ## ----------------- ##
1309 _ASBOX
1310 echo
1311 for ac_var in $ac_subst_vars
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1315 done | sort
1316 echo
1318 if test -n "$ac_subst_files"; then
1319 cat <<\_ASBOX
1320 ## ------------- ##
1321 ## Output files. ##
1322 ## ------------- ##
1323 _ASBOX
1324 echo
1325 for ac_var in $ac_subst_files
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1329 done | sort
1330 echo
1333 if test -s confdefs.h; then
1334 cat <<\_ASBOX
1335 ## ----------- ##
1336 ## confdefs.h. ##
1337 ## ----------- ##
1338 _ASBOX
1339 echo
1340 sed "/^$/d" confdefs.h | sort
1341 echo
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1346 } >&5
1347 rm -f core *.core &&
1348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1349 exit $exit_status
1351 for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1353 done
1354 ac_signal=0
1356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1357 rm -rf conftest* confdefs.h
1358 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1359 echo >confdefs.h
1361 # Predefined preprocessor variables.
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_NAME "$PACKAGE_NAME"
1365 _ACEOF
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1370 _ACEOF
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1375 _ACEOF
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_STRING "$PACKAGE_STRING"
1380 _ACEOF
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1385 _ACEOF
1388 # Let the site file select an alternate cache file if it wants to.
1389 # Prefer explicitly selected file to automatically selected ones.
1390 if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1393 else
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397 for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400 echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
1402 . "$ac_site_file"
1404 done
1406 if test -r "$cache_file"; then
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411 echo "$as_me: loading cache $cache_file" >&6;}
1412 case $cache_file in
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1415 esac
1417 else
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419 echo "$as_me: creating cache $cache_file" >&6;}
1420 >$cache_file
1423 # Check that the precious variables saved in the cache have kept the same
1424 # value.
1425 ac_cache_corrupted=false
1426 for ac_var in `(set) 2>&1 |
1427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1433 set,)
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1437 ,set)
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1441 ,);;
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
1444 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1445 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1446 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1447 echo "$as_me: former value: $ac_old_val" >&2;}
1448 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1449 echo "$as_me: current value: $ac_new_val" >&2;}
1450 ac_cache_corrupted=:
1451 fi;;
1452 esac
1453 # Pass precious variables to config.status.
1454 if test "$ac_new_set" = set; then
1455 case $ac_new_val in
1456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1457 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1458 *) ac_arg=$ac_var=$ac_new_val ;;
1459 esac
1460 case " $ac_configure_args " in
1461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1462 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1463 esac
1465 done
1466 if $ac_cache_corrupted; then
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1474 ac_ext=c
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499 ac_aux_dir=
1500 for ac_dir in autoconf $srcdir/autoconf; do
1501 if test -f $ac_dir/install-sh; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/install-sh -c"
1504 break
1505 elif test -f $ac_dir/install.sh; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/install.sh -c"
1508 break
1509 elif test -f $ac_dir/shtool; then
1510 ac_aux_dir=$ac_dir
1511 ac_install_sh="$ac_aux_dir/shtool install -c"
1512 break
1514 done
1515 if test -z "$ac_aux_dir"; then
1516 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1517 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1518 { (exit 1); exit 1; }; }
1520 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1521 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1522 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527 case $TERM in
1528 # for the most important terminal types we directly know the sequences
1529 xterm*|vt220*)
1530 term_bold=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
1531 term_norm=`${AWK:-awk} 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
1533 vt100*)
1534 term_bold=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
1535 term_norm=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
1537 # for all others, we try to use a possibly existing `tput' or `tcout' utility
1539 paths=`echo "$PATH" | sed -e 's/:/ /g'`
1540 for tool in tput tcout; do
1541 for dir in $paths; do
1542 if test -r "$dir/$tool"; then
1543 for seq in bold md smso; do # 'smso' is last
1544 bold="`$dir/$tool $seq 2>/dev/null`"
1545 if test -n "$bold"; then
1546 term_bold="$bold"
1547 break
1549 done
1550 if test -n "$term_bold"; then
1551 for seq in sgr0 me rmso reset; do # 'reset' is last
1552 norm="`$dir/$tool $seq 2>/dev/null`"
1553 if test -n "$norm"; then
1554 term_norm="$norm"
1555 break
1557 done
1559 break
1561 done
1562 if test -n "$term_bold" && test -n "$term_norm"; then
1563 break
1565 done
1567 esac
1568 echo "$term_bold" | tr -d '\n' > termbold
1569 echo "$term_norm" | tr -d '\n' > termnorm
1572 { echo; echo "${term_bold}Build Tools:${term_norm}"; } >& 6
1574 am__api_version="1.9"
1575 # Find a good install program. We prefer a C program (faster),
1576 # so one script is as good as another. But avoid the broken or
1577 # incompatible versions:
1578 # SysV /etc/install, /usr/sbin/install
1579 # SunOS /usr/etc/install
1580 # IRIX /sbin/install
1581 # AIX /bin/install
1582 # AmigaOS /C/install, which installs bootblocks on floppy discs
1583 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1584 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1585 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1586 # OS/2's system install, which has a completely different semantic
1587 # ./install, which can be erroneously created by make from ./install.sh.
1588 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1589 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1590 if test -z "$INSTALL"; then
1591 if test "${ac_cv_path_install+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 # Account for people who put trailing slashes in PATH elements.
1600 case $as_dir/ in
1601 ./ | .// | /cC/* | \
1602 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1603 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1604 /usr/ucb/* ) ;;
1606 # OSF1 and SCO ODT 3.0 have their own names for install.
1607 # Don't use installbsd from OSF since it installs stuff as root
1608 # by default.
1609 for ac_prog in ginstall scoinst install; do
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1612 if test $ac_prog = install &&
1613 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1614 # AIX install. It has an incompatible calling convention.
1616 elif test $ac_prog = install &&
1617 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1618 # program-specific install script used by HP pwplus--don't use.
1620 else
1621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1622 break 3
1625 done
1626 done
1628 esac
1629 done
1633 if test "${ac_cv_path_install+set}" = set; then
1634 INSTALL=$ac_cv_path_install
1635 else
1636 # As a last resort, use the slow shell script. We don't cache a
1637 # path for INSTALL within a source directory, because that will
1638 # break other packages using the cache if that directory is
1639 # removed, or if the path is relative.
1640 INSTALL=$ac_install_sh
1643 echo "$as_me:$LINENO: result: $INSTALL" >&5
1644 echo "${ECHO_T}$INSTALL" >&6
1646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1647 # It thinks the first close brace ends the variable substitution.
1648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1654 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1655 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1656 # Just in case
1657 sleep 1
1658 echo timestamp > conftest.file
1659 # Do `set' in a subshell so we don't clobber the current shell's
1660 # arguments. Must try -L first in case configure is actually a
1661 # symlink; some systems play weird games with the mod time of symlinks
1662 # (eg FreeBSD returns the mod time of the symlink's containing
1663 # directory).
1664 if (
1665 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1666 if test "$*" = "X"; then
1667 # -L didn't work.
1668 set X `ls -t $srcdir/configure conftest.file`
1670 rm -f conftest.file
1671 if test "$*" != "X $srcdir/configure conftest.file" \
1672 && test "$*" != "X conftest.file $srcdir/configure"; then
1674 # If neither matched, then we have a broken ls. This can happen
1675 # if, for instance, CONFIG_SHELL is bash and it inherits a
1676 # broken ls alias from the environment. This has actually
1677 # happened. Such a system could not be considered "sane".
1678 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1679 alias in your environment" >&5
1680 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1681 alias in your environment" >&2;}
1682 { (exit 1); exit 1; }; }
1685 test "$2" = conftest.file
1687 then
1688 # Ok.
1690 else
1691 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1692 Check your system clock" >&5
1693 echo "$as_me: error: newly created file is older than distributed files!
1694 Check your system clock" >&2;}
1695 { (exit 1); exit 1; }; }
1697 echo "$as_me:$LINENO: result: yes" >&5
1698 echo "${ECHO_T}yes" >&6
1699 test "$program_prefix" != NONE &&
1700 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1701 # Use a double $ so make ignores it.
1702 test "$program_suffix" != NONE &&
1703 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1704 # Double any \ or $. echo might interpret backslashes.
1705 # By default was `s,x,x', remove it if useless.
1706 cat <<\_ACEOF >conftest.sed
1707 s/[\\$]/&&/g;s/;s,x,x,$//
1708 _ACEOF
1709 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1710 rm conftest.sed
1712 # expand $ac_aux_dir to an absolute path
1713 am_aux_dir=`cd $ac_aux_dir && pwd`
1715 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1716 # Use eval to expand $SHELL
1717 if eval "$MISSING --run true"; then
1718 am_missing_run="$MISSING --run "
1719 else
1720 am_missing_run=
1721 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1722 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1725 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1726 # We used to keeping the `.' as first argument, in order to
1727 # allow $(mkdir_p) to be used without argument. As in
1728 # $(mkdir_p) $(somedir)
1729 # where $(somedir) is conditionally defined. However this is wrong
1730 # for two reasons:
1731 # 1. if the package is installed by a user who cannot write `.'
1732 # make install will fail,
1733 # 2. the above comment should most certainly read
1734 # $(mkdir_p) $(DESTDIR)$(somedir)
1735 # so it does not work when $(somedir) is undefined and
1736 # $(DESTDIR) is not.
1737 # To support the latter case, we have to write
1738 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1739 # so the `.' trick is pointless.
1740 mkdir_p='mkdir -p --'
1741 else
1742 # On NextStep and OpenStep, the `mkdir' command does not
1743 # recognize any option. It will interpret all options as
1744 # directories to create, and then abort because `.' already
1745 # exists.
1746 for d in ./-p ./--version;
1748 test -d $d && rmdir $d
1749 done
1750 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1751 if test -f "$ac_aux_dir/mkinstalldirs"; then
1752 mkdir_p='$(mkinstalldirs)'
1753 else
1754 mkdir_p='$(install_sh) -d'
1758 for ac_prog in gawk mawk nawk awk
1760 # Extract the first word of "$ac_prog", so it can be a program name with args.
1761 set dummy $ac_prog; ac_word=$2
1762 echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764 if test "${ac_cv_prog_AWK+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767 if test -n "$AWK"; then
1768 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1769 else
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1773 IFS=$as_save_IFS
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 ac_cv_prog_AWK="$ac_prog"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 break 2
1781 done
1782 done
1786 AWK=$ac_cv_prog_AWK
1787 if test -n "$AWK"; then
1788 echo "$as_me:$LINENO: result: $AWK" >&5
1789 echo "${ECHO_T}$AWK" >&6
1790 else
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1795 test -n "$AWK" && break
1796 done
1798 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1799 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1800 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1801 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804 cat >conftest.make <<\_ACEOF
1805 all:
1806 @echo 'ac_maketemp="$(MAKE)"'
1807 _ACEOF
1808 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1809 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1810 if test -n "$ac_maketemp"; then
1811 eval ac_cv_prog_make_${ac_make}_set=yes
1812 else
1813 eval ac_cv_prog_make_${ac_make}_set=no
1815 rm -f conftest.make
1817 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820 SET_MAKE=
1821 else
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 SET_MAKE="MAKE=${MAKE-make}"
1827 rm -rf .tst 2>/dev/null
1828 mkdir .tst 2>/dev/null
1829 if test -d .tst; then
1830 am__leading_dot=.
1831 else
1832 am__leading_dot=_
1834 rmdir .tst 2>/dev/null
1836 # test to see if srcdir already configured
1837 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1838 test -f $srcdir/config.status; then
1839 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1840 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1841 { (exit 1); exit 1; }; }
1844 # test whether we have cygpath
1845 if test -z "$CYGPATH_W"; then
1846 if (cygpath --version) >/dev/null 2>/dev/null; then
1847 CYGPATH_W='cygpath -w'
1848 else
1849 CYGPATH_W=echo
1854 # Define the identity of the package.
1855 PACKAGE=libsigsegv
1856 VERSION=2.2
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE "$PACKAGE"
1861 _ACEOF
1864 cat >>confdefs.h <<_ACEOF
1865 #define VERSION "$VERSION"
1866 _ACEOF
1868 # Some tools Automake needs.
1870 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1873 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1876 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1879 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1882 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1884 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1886 # Installed binaries are usually stripped using `strip' when the user
1887 # run `make install-strip'. However `strip' might not be the right
1888 # tool to use in cross-compilation environments, therefore Automake
1889 # will honor the `STRIP' environment variable to overrule this program.
1890 if test "$cross_compiling" != no; then
1891 if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1893 set dummy ${ac_tool_prefix}strip; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_STRIP+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$STRIP"; then
1900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1913 done
1914 done
1918 STRIP=$ac_cv_prog_STRIP
1919 if test -n "$STRIP"; then
1920 echo "$as_me:$LINENO: result: $STRIP" >&5
1921 echo "${ECHO_T}$STRIP" >&6
1922 else
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1928 if test -z "$ac_cv_prog_STRIP"; then
1929 ac_ct_STRIP=$STRIP
1930 # Extract the first word of "strip", so it can be a program name with args.
1931 set dummy strip; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 if test -n "$ac_ct_STRIP"; then
1938 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_ac_ct_STRIP="strip"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 break 2
1951 done
1952 done
1954 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1957 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1958 if test -n "$ac_ct_STRIP"; then
1959 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1960 echo "${ECHO_T}$ac_ct_STRIP" >&6
1961 else
1962 echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6
1966 STRIP=$ac_ct_STRIP
1967 else
1968 STRIP="$ac_cv_prog_STRIP"
1972 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1974 # We need awk for the "check" target. The system "awk" is bad on
1975 # some platforms.
1976 # Always define AMTAR for backward compatibility.
1978 AMTAR=${AMTAR-"${am_missing_run}tar"}
1980 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1986 ac_config_headers="$ac_config_headers config.h"
1989 ac_ext=c
1990 ac_cpp='$CPP $CPPFLAGS'
1991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994 if test -n "$ac_tool_prefix"; then
1995 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1996 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002 if test -n "$CC"; then
2003 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 break 2
2016 done
2017 done
2021 CC=$ac_cv_prog_CC
2022 if test -n "$CC"; then
2023 echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2025 else
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2031 if test -z "$ac_cv_prog_CC"; then
2032 ac_ct_CC=$CC
2033 # Extract the first word of "gcc", so it can be a program name with args.
2034 set dummy gcc; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040 if test -n "$ac_ct_CC"; then
2041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_ac_ct_CC="gcc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2054 done
2055 done
2059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2060 if test -n "$ac_ct_CC"; then
2061 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2062 echo "${ECHO_T}$ac_ct_CC" >&6
2063 else
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2068 CC=$ac_ct_CC
2069 else
2070 CC="$ac_cv_prog_CC"
2073 if test -z "$CC"; then
2074 if test -n "$ac_tool_prefix"; then
2075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2076 set dummy ${ac_tool_prefix}cc; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082 if test -n "$CC"; then
2083 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 ac_cv_prog_CC="${ac_tool_prefix}cc"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2096 done
2097 done
2101 CC=$ac_cv_prog_CC
2102 if test -n "$CC"; then
2103 echo "$as_me:$LINENO: result: $CC" >&5
2104 echo "${ECHO_T}$CC" >&6
2105 else
2106 echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6
2111 if test -z "$ac_cv_prog_CC"; then
2112 ac_ct_CC=$CC
2113 # Extract the first word of "cc", so it can be a program name with args.
2114 set dummy cc; ac_word=$2
2115 echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120 if test -n "$ac_ct_CC"; then
2121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2122 else
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130 ac_cv_prog_ac_ct_CC="cc"
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 break 2
2134 done
2135 done
2139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2140 if test -n "$ac_ct_CC"; then
2141 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2142 echo "${ECHO_T}$ac_ct_CC" >&6
2143 else
2144 echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6
2148 CC=$ac_ct_CC
2149 else
2150 CC="$ac_cv_prog_CC"
2154 if test -z "$CC"; then
2155 # Extract the first word of "cc", so it can be a program name with args.
2156 set dummy cc; ac_word=$2
2157 echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159 if test "${ac_cv_prog_CC+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162 if test -n "$CC"; then
2163 ac_cv_prog_CC="$CC" # Let the user override the test.
2164 else
2165 ac_prog_rejected=no
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2174 ac_prog_rejected=yes
2175 continue
2177 ac_cv_prog_CC="cc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 break 2
2181 done
2182 done
2184 if test $ac_prog_rejected = yes; then
2185 # We found a bogon in the path, so make sure we never use it.
2186 set dummy $ac_cv_prog_CC
2187 shift
2188 if test $# != 0; then
2189 # We chose a different compiler from the bogus one.
2190 # However, it has the same basename, so the bogon will be chosen
2191 # first if we set CC to just the basename; use the full file name.
2192 shift
2193 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2198 CC=$ac_cv_prog_CC
2199 if test -n "$CC"; then
2200 echo "$as_me:$LINENO: result: $CC" >&5
2201 echo "${ECHO_T}$CC" >&6
2202 else
2203 echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2208 if test -z "$CC"; then
2209 if test -n "$ac_tool_prefix"; then
2210 for ac_prog in cl
2212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2233 done
2234 done
2238 CC=$ac_cv_prog_CC
2239 if test -n "$CC"; then
2240 echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2242 else
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2247 test -n "$CC" && break
2248 done
2250 if test -z "$CC"; then
2251 ac_ct_CC=$CC
2252 for ac_prog in cl
2254 # Extract the first word of "$ac_prog", so it can be a program name with args.
2255 set dummy $ac_prog; ac_word=$2
2256 echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261 if test -n "$ac_ct_CC"; then
2262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271 ac_cv_prog_ac_ct_CC="$ac_prog"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 break 2
2275 done
2276 done
2280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281 if test -n "$ac_ct_CC"; then
2282 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2283 echo "${ECHO_T}$ac_ct_CC" >&6
2284 else
2285 echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6
2289 test -n "$ac_ct_CC" && break
2290 done
2292 CC=$ac_ct_CC
2298 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: no acceptable C compiler found in \$PATH
2301 See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
2304 # Provide some information about the compiler.
2305 echo "$as_me:$LINENO:" \
2306 "checking for C compiler version" >&5
2307 ac_compiler=`set X $ac_compile; echo $2`
2308 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2309 (eval $ac_compiler --version </dev/null >&5) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }
2313 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2314 (eval $ac_compiler -v </dev/null >&5) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }
2318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2319 (eval $ac_compiler -V </dev/null >&5) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }
2324 cat >conftest.$ac_ext <<_ACEOF
2325 /* confdefs.h. */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2332 main ()
2336 return 0;
2338 _ACEOF
2339 ac_clean_files_save=$ac_clean_files
2340 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2341 # Try to create an executable without -o first, disregard a.out.
2342 # It will help us diagnose broken compilers, and finding out an intuition
2343 # of exeext.
2344 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2345 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2346 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2347 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2348 (eval $ac_link_default) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; then
2352 # Find the output, starting from the most likely. This scheme is
2353 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2354 # resort.
2356 # Be careful to initialize this variable, since it used to be cached.
2357 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2358 ac_cv_exeext=
2359 # b.out is created by i960 compilers.
2360 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2362 test -f "$ac_file" || continue
2363 case $ac_file in
2364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2366 conftest.$ac_ext )
2367 # This is the source file.
2369 [ab].out )
2370 # We found the default executable, but exeext='' is most
2371 # certainly right.
2372 break;;
2373 *.* )
2374 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2375 # FIXME: I believe we export ac_cv_exeext for Libtool,
2376 # but it would be cool to find out if it's true. Does anybody
2377 # maintain Libtool? --akim.
2378 export ac_cv_exeext
2379 break;;
2381 break;;
2382 esac
2383 done
2384 else
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2388 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: C compiler cannot create executables
2391 See \`config.log' for more details." >&2;}
2392 { (exit 77); exit 77; }; }
2395 ac_exeext=$ac_cv_exeext
2396 echo "$as_me:$LINENO: result: $ac_file" >&5
2397 echo "${ECHO_T}$ac_file" >&6
2399 # Check the compiler produces executables we can run. If not, either
2400 # the compiler is broken, or we cross compile.
2401 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2402 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2403 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2404 # If not cross compiling, check that we can run a simple program.
2405 if test "$cross_compiling" != yes; then
2406 if { ac_try='./$ac_file'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 cross_compiling=no
2413 else
2414 if test "$cross_compiling" = maybe; then
2415 cross_compiling=yes
2416 else
2417 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2418 If you meant to cross compile, use \`--host'.
2419 See \`config.log' for more details." >&5
2420 echo "$as_me: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }
2427 echo "$as_me:$LINENO: result: yes" >&5
2428 echo "${ECHO_T}yes" >&6
2430 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2431 ac_clean_files=$ac_clean_files_save
2432 # Check the compiler produces executables we can run. If not, either
2433 # the compiler is broken, or we cross compile.
2434 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2435 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2436 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2437 echo "${ECHO_T}$cross_compiling" >&6
2439 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2440 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2442 (eval $ac_link) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; then
2446 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2447 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2448 # work properly (i.e., refer to `conftest.exe'), while it won't with
2449 # `rm'.
2450 for ac_file in conftest.exe conftest conftest.*; do
2451 test -f "$ac_file" || continue
2452 case $ac_file in
2453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2454 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2455 export ac_cv_exeext
2456 break;;
2457 * ) break;;
2458 esac
2459 done
2460 else
2461 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2462 See \`config.log' for more details." >&5
2463 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2464 See \`config.log' for more details." >&2;}
2465 { (exit 1); exit 1; }; }
2468 rm -f conftest$ac_cv_exeext
2469 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2470 echo "${ECHO_T}$ac_cv_exeext" >&6
2472 rm -f conftest.$ac_ext
2473 EXEEXT=$ac_cv_exeext
2474 ac_exeext=$EXEEXT
2475 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2476 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2477 if test "${ac_cv_objext+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 cat >conftest.$ac_ext <<_ACEOF
2481 /* confdefs.h. */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2488 main ()
2492 return 0;
2494 _ACEOF
2495 rm -f conftest.o conftest.obj
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; then
2501 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2502 case $ac_file in
2503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2505 break;;
2506 esac
2507 done
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2512 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2513 See \`config.log' for more details." >&5
2514 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2515 See \`config.log' for more details." >&2;}
2516 { (exit 1); exit 1; }; }
2519 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2521 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2522 echo "${ECHO_T}$ac_cv_objext" >&6
2523 OBJEXT=$ac_cv_objext
2524 ac_objext=$OBJEXT
2525 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2526 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2527 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530 cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h. */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2538 main ()
2540 #ifndef __GNUC__
2541 choke me
2542 #endif
2545 return 0;
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>conftest.er1
2551 ac_status=$?
2552 grep -v '^ *+' conftest.er1 >conftest.err
2553 rm -f conftest.er1
2554 cat conftest.err >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try='test -z "$ac_c_werror_flag"
2558 || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 ac_compiler_gnu=yes
2571 else
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 ac_compiler_gnu=no
2577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2581 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2582 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2583 GCC=`test $ac_compiler_gnu = yes && echo yes`
2584 ac_test_CFLAGS=${CFLAGS+set}
2585 ac_save_CFLAGS=$CFLAGS
2586 CFLAGS="-g"
2587 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2588 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2589 if test "${ac_cv_prog_cc_g+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592 cat >conftest.$ac_ext <<_ACEOF
2593 /* confdefs.h. */
2594 _ACEOF
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h. */
2600 main ()
2604 return 0;
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 ac_cv_prog_cc_g=yes
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 ac_cv_prog_cc_g=no
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2638 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2639 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2640 if test "$ac_test_CFLAGS" = set; then
2641 CFLAGS=$ac_save_CFLAGS
2642 elif test $ac_cv_prog_cc_g = yes; then
2643 if test "$GCC" = yes; then
2644 CFLAGS="-g -O2"
2645 else
2646 CFLAGS="-g"
2648 else
2649 if test "$GCC" = yes; then
2650 CFLAGS="-O2"
2651 else
2652 CFLAGS=
2655 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2656 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2657 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 ac_cv_prog_cc_stdc=no
2661 ac_save_CC=$CC
2662 cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h. */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2668 #include <stdarg.h>
2669 #include <stdio.h>
2670 #include <sys/types.h>
2671 #include <sys/stat.h>
2672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2673 struct buf { int x; };
2674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2675 static char *e (p, i)
2676 char **p;
2677 int i;
2679 return p[i];
2681 static char *f (char * (*g) (char **, int), char **p, ...)
2683 char *s;
2684 va_list v;
2685 va_start (v,p);
2686 s = g (p, va_arg (v,int));
2687 va_end (v);
2688 return s;
2691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2692 function prototypes and stuff, but not '\xHH' hex character constants.
2693 These don't provoke an error unfortunately, instead are silently treated
2694 as 'x'. The following induces an error, until -std1 is added to get
2695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2696 array size at least. It's necessary to write '\x00'==0 to get something
2697 that's true only with -std1. */
2698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2700 int test (int i, double x);
2701 struct s1 {int (*f) (int a);};
2702 struct s2 {int (*f) (double a);};
2703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2704 int argc;
2705 char **argv;
2707 main ()
2709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2711 return 0;
2713 _ACEOF
2714 # Don't try gcc -ansi; that turns off useful extensions and
2715 # breaks some systems' header files.
2716 # AIX -qlanglvl=ansi
2717 # Ultrix and OSF/1 -std1
2718 # HP-UX 10.20 and later -Ae
2719 # HP-UX older versions -Aa -D_HPUX_SOURCE
2720 # SVR4 -Xc -D__EXTENSIONS__
2721 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2723 CC="$ac_save_CC $ac_arg"
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2727 ac_status=$?
2728 grep -v '^ *+' conftest.er1 >conftest.err
2729 rm -f conftest.er1
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 (eval $ac_try) 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 ac_cv_prog_cc_stdc=$ac_arg
2747 break
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2753 rm -f conftest.err conftest.$ac_objext
2754 done
2755 rm -f conftest.$ac_ext conftest.$ac_objext
2756 CC=$ac_save_CC
2760 case "x$ac_cv_prog_cc_stdc" in
2761 x|xno)
2762 echo "$as_me:$LINENO: result: none needed" >&5
2763 echo "${ECHO_T}none needed" >&6 ;;
2765 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2766 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2767 CC="$CC $ac_cv_prog_cc_stdc" ;;
2768 esac
2770 # Some people use a C++ compiler to compile C. Since we use `exit',
2771 # in C++ we need to declare it. In case someone uses the same compiler
2772 # for both compiling C and C++ we need to have the C++ compiler decide
2773 # the declaration of exit, since it's the most demanding environment.
2774 cat >conftest.$ac_ext <<_ACEOF
2775 #ifndef __cplusplus
2776 choke me
2777 #endif
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 for ac_declaration in \
2802 '' \
2803 'extern "C" void std::exit (int) throw (); using std::exit;' \
2804 'extern "C" void std::exit (int); using std::exit;' \
2805 'extern "C" void exit (int) throw ();' \
2806 'extern "C" void exit (int);' \
2807 'void exit (int);'
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 $ac_declaration
2816 #include <stdlib.h>
2818 main ()
2820 exit (42);
2822 return 0;
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -z "$ac_c_werror_flag"
2835 || test ! -s conftest.err'
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); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2848 else
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2852 continue
2854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h. */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2861 $ac_declaration
2863 main ()
2865 exit (42);
2867 return 0;
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2873 ac_status=$?
2874 grep -v '^ *+' conftest.er1 >conftest.err
2875 rm -f conftest.er1
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try='test -z "$ac_c_werror_flag"
2880 || test ! -s conftest.err'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882 (eval $ac_try) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 break
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2899 done
2900 rm -f conftest*
2901 if test -n "$ac_declaration"; then
2902 echo '#ifdef __cplusplus' >>confdefs.h
2903 echo $ac_declaration >>confdefs.h
2904 echo '#endif' >>confdefs.h
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 DEPDIR="${am__leading_dot}deps"
2920 ac_config_commands="$ac_config_commands depfiles"
2923 am_make=${MAKE-make}
2924 cat > confinc << 'END'
2925 am__doit:
2926 @echo done
2927 .PHONY: am__doit
2929 # If we don't find an include directive, just comment out the code.
2930 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2931 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2932 am__include="#"
2933 am__quote=
2934 _am_result=none
2935 # First try GNU make style include.
2936 echo "include confinc" > confmf
2937 # We grep out `Entering directory' and `Leaving directory'
2938 # messages which can occur if `w' ends up in MAKEFLAGS.
2939 # In particular we don't look at `^make:' because GNU make might
2940 # be invoked under some other name (usually "gmake"), in which
2941 # case it prints its new name instead of `make'.
2942 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2943 am__include=include
2944 am__quote=
2945 _am_result=GNU
2947 # Now try BSD make style include.
2948 if test "$am__include" = "#"; then
2949 echo '.include "confinc"' > confmf
2950 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2951 am__include=.include
2952 am__quote="\""
2953 _am_result=BSD
2958 echo "$as_me:$LINENO: result: $_am_result" >&5
2959 echo "${ECHO_T}$_am_result" >&6
2960 rm -f confinc confmf
2962 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2963 if test "${enable_dependency_tracking+set}" = set; then
2964 enableval="$enable_dependency_tracking"
2967 if test "x$enable_dependency_tracking" != xno; then
2968 am_depcomp="$ac_aux_dir/depcomp"
2969 AMDEPBACKSLASH='\'
2973 if test "x$enable_dependency_tracking" != xno; then
2974 AMDEP_TRUE=
2975 AMDEP_FALSE='#'
2976 else
2977 AMDEP_TRUE='#'
2978 AMDEP_FALSE=
2984 depcc="$CC" am_compiler_list=
2986 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2987 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2988 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2992 # We make a subdir and do the tests there. Otherwise we can end up
2993 # making bogus files that we don't know about and never remove. For
2994 # instance it was reported that on HP-UX the gcc test will end up
2995 # making a dummy file named `D' -- because `-MD' means `put the output
2996 # in D'.
2997 mkdir conftest.dir
2998 # Copy depcomp to subdir because otherwise we won't find it if we're
2999 # using a relative directory.
3000 cp "$am_depcomp" conftest.dir
3001 cd conftest.dir
3002 # We will build objects and dependencies in a subdirectory because
3003 # it helps to detect inapplicable dependency modes. For instance
3004 # both Tru64's cc and ICC support -MD to output dependencies as a
3005 # side effect of compilation, but ICC will put the dependencies in
3006 # the current directory while Tru64 will put them in the object
3007 # directory.
3008 mkdir sub
3010 am_cv_CC_dependencies_compiler_type=none
3011 if test "$am_compiler_list" = ""; then
3012 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3014 for depmode in $am_compiler_list; do
3015 # Setup a source with many dependencies, because some compilers
3016 # like to wrap large dependency lists on column 80 (with \), and
3017 # we should not choose a depcomp mode which is confused by this.
3019 # We need to recreate these files for each test, as the compiler may
3020 # overwrite some of them when testing with obscure command lines.
3021 # This happens at least with the AIX C compiler.
3022 : > sub/conftest.c
3023 for i in 1 2 3 4 5 6; do
3024 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3025 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3026 # Solaris 8's {/usr,}/bin/sh.
3027 touch sub/conftst$i.h
3028 done
3029 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3031 case $depmode in
3032 nosideeffect)
3033 # after this tag, mechanisms are not by side-effect, so they'll
3034 # only be used when explicitly requested
3035 if test "x$enable_dependency_tracking" = xyes; then
3036 continue
3037 else
3038 break
3041 none) break ;;
3042 esac
3043 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3044 # mode. It turns out that the SunPro C++ compiler does not properly
3045 # handle `-M -o', and we need to detect this.
3046 if depmode=$depmode \
3047 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3048 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3049 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3050 >/dev/null 2>conftest.err &&
3051 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3052 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3053 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3054 # icc doesn't choke on unknown options, it will just issue warnings
3055 # or remarks (even with -Werror). So we grep stderr for any message
3056 # that says an option was ignored or not supported.
3057 # When given -MP, icc 7.0 and 7.1 complain thusly:
3058 # icc: Command line warning: ignoring option '-M'; no argument required
3059 # The diagnosis changed in icc 8.0:
3060 # icc: Command line remark: option '-MP' not supported
3061 if (grep 'ignoring option' conftest.err ||
3062 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3063 am_cv_CC_dependencies_compiler_type=$depmode
3064 break
3067 done
3069 cd ..
3070 rm -rf conftest.dir
3071 else
3072 am_cv_CC_dependencies_compiler_type=none
3076 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3077 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3078 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3083 test "x$enable_dependency_tracking" != xno \
3084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3085 am__fastdepCC_TRUE=
3086 am__fastdepCC_FALSE='#'
3087 else
3088 am__fastdepCC_TRUE='#'
3089 am__fastdepCC_FALSE=
3093 ac_ext=c
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3100 # On Suns, sometimes $CPP names a directory.
3101 if test -n "$CPP" && test -d "$CPP"; then
3102 CPP=
3104 if test -z "$CPP"; then
3105 if test "${ac_cv_prog_CPP+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 # Double quotes because CPP needs to be expanded
3109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3111 ac_preproc_ok=false
3112 for ac_c_preproc_warn_flag in '' yes
3114 # Use a header file that comes with gcc, so configuring glibc
3115 # with a fresh cross-compiler works.
3116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3117 # <limits.h> exists even on freestanding compilers.
3118 # On the NeXT, cc -E runs the code through the compiler's parser,
3119 # not just through cpp. "Syntax error" is here to catch this case.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #ifdef __STDC__
3127 # include <limits.h>
3128 #else
3129 # include <assert.h>
3130 #endif
3131 Syntax error
3132 _ACEOF
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null; then
3141 if test -s conftest.err; then
3142 ac_cpp_err=$ac_c_preproc_warn_flag
3143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3144 else
3145 ac_cpp_err=
3147 else
3148 ac_cpp_err=yes
3150 if test -z "$ac_cpp_err"; then
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 # Broken: fails on valid input.
3157 continue
3159 rm -f conftest.err conftest.$ac_ext
3161 # OK, works on sane cases. Now check whether non-existent headers
3162 # can be detected and how.
3163 cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h. */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #include <ac_nonexistent.h>
3170 _ACEOF
3171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev/null; then
3179 if test -s conftest.err; then
3180 ac_cpp_err=$ac_c_preproc_warn_flag
3181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3182 else
3183 ac_cpp_err=
3185 else
3186 ac_cpp_err=yes
3188 if test -z "$ac_cpp_err"; then
3189 # Broken: success on invalid input.
3190 continue
3191 else
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 # Passes both tests.
3196 ac_preproc_ok=:
3197 break
3199 rm -f conftest.err conftest.$ac_ext
3201 done
3202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3203 rm -f conftest.err conftest.$ac_ext
3204 if $ac_preproc_ok; then
3205 break
3208 done
3209 ac_cv_prog_CPP=$CPP
3212 CPP=$ac_cv_prog_CPP
3213 else
3214 ac_cv_prog_CPP=$CPP
3216 echo "$as_me:$LINENO: result: $CPP" >&5
3217 echo "${ECHO_T}$CPP" >&6
3218 ac_preproc_ok=false
3219 for ac_c_preproc_warn_flag in '' yes
3221 # Use a header file that comes with gcc, so configuring glibc
3222 # with a fresh cross-compiler works.
3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224 # <limits.h> exists even on freestanding compilers.
3225 # On the NeXT, cc -E runs the code through the compiler's parser,
3226 # not just through cpp. "Syntax error" is here to catch this case.
3227 cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h. */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233 #ifdef __STDC__
3234 # include <limits.h>
3235 #else
3236 # include <assert.h>
3237 #endif
3238 Syntax error
3239 _ACEOF
3240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null; then
3248 if test -s conftest.err; then
3249 ac_cpp_err=$ac_c_preproc_warn_flag
3250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3251 else
3252 ac_cpp_err=
3254 else
3255 ac_cpp_err=yes
3257 if test -z "$ac_cpp_err"; then
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 # Broken: fails on valid input.
3264 continue
3266 rm -f conftest.err conftest.$ac_ext
3268 # OK, works on sane cases. Now check whether non-existent headers
3269 # can be detected and how.
3270 cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h. */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276 #include <ac_nonexistent.h>
3277 _ACEOF
3278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } >/dev/null; then
3286 if test -s conftest.err; then
3287 ac_cpp_err=$ac_c_preproc_warn_flag
3288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3289 else
3290 ac_cpp_err=
3292 else
3293 ac_cpp_err=yes
3295 if test -z "$ac_cpp_err"; then
3296 # Broken: success on invalid input.
3297 continue
3298 else
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 # Passes both tests.
3303 ac_preproc_ok=:
3304 break
3306 rm -f conftest.err conftest.$ac_ext
3308 done
3309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3310 rm -f conftest.err conftest.$ac_ext
3311 if $ac_preproc_ok; then
3313 else
3314 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3315 See \`config.log' for more details." >&5
3316 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3317 See \`config.log' for more details." >&2;}
3318 { (exit 1); exit 1; }; }
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 # Make sure we can run config.sub.
3329 $ac_config_sub sun4 >/dev/null 2>&1 ||
3330 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3331 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3332 { (exit 1); exit 1; }; }
3334 echo "$as_me:$LINENO: checking build system type" >&5
3335 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3336 if test "${ac_cv_build+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 ac_cv_build_alias=$build_alias
3340 test -z "$ac_cv_build_alias" &&
3341 ac_cv_build_alias=`$ac_config_guess`
3342 test -z "$ac_cv_build_alias" &&
3343 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3344 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3345 { (exit 1); exit 1; }; }
3346 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3347 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3348 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3349 { (exit 1); exit 1; }; }
3352 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3353 echo "${ECHO_T}$ac_cv_build" >&6
3354 build=$ac_cv_build
3355 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3356 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3357 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3360 echo "$as_me:$LINENO: checking host system type" >&5
3361 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3362 if test "${ac_cv_host+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 ac_cv_host_alias=$host_alias
3366 test -z "$ac_cv_host_alias" &&
3367 ac_cv_host_alias=$ac_cv_build_alias
3368 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3370 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3371 { (exit 1); exit 1; }; }
3374 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3375 echo "${ECHO_T}$ac_cv_host" >&6
3376 host=$ac_cv_host
3377 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3378 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3379 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3382 echo "$as_me:$LINENO: checking host platform" >&5
3383 echo $ECHO_N "checking host platform... $ECHO_C" >&6
3384 sv_cv_host="$host"
3385 case "$host_os" in
3386 linux | linux-*)
3387 kernelversion=`uname -r | sed -e 's/^\([0-9.]*\).*/\1/'`
3388 sv_cv_host=`echo $sv_cv_host | sed -e "s/linux/linux$kernelversion/"`
3390 esac
3391 cat > conftest.c << EOF
3392 #include <features.h>
3393 #ifdef __GNU_LIBRARY__
3394 Version __GLIBC__ . __GLIBC_MINOR__
3395 #endif
3397 glibcversion=`$CPP $CPPFLAGS conftest.c 2>/dev/null | grep Version | sed -e 's/Version//' -e 's/ //g'`
3398 if test -n "$glibcversion"; then
3399 sv_cv_host="$sv_cv_host-glibc$glibcversion"
3401 echo "$as_me:$LINENO: result: $sv_cv_host" >&5
3402 echo "${ECHO_T}$sv_cv_host" >&6
3403 PLATFORM="$sv_cv_host"
3406 # Find a good install program. We prefer a C program (faster),
3407 # so one script is as good as another. But avoid the broken or
3408 # incompatible versions:
3409 # SysV /etc/install, /usr/sbin/install
3410 # SunOS /usr/etc/install
3411 # IRIX /sbin/install
3412 # AIX /bin/install
3413 # AmigaOS /C/install, which installs bootblocks on floppy discs
3414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3417 # OS/2's system install, which has a completely different semantic
3418 # ./install, which can be erroneously created by make from ./install.sh.
3419 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3420 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3421 if test -z "$INSTALL"; then
3422 if test "${ac_cv_path_install+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 # Account for people who put trailing slashes in PATH elements.
3431 case $as_dir/ in
3432 ./ | .// | /cC/* | \
3433 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3434 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3435 /usr/ucb/* ) ;;
3437 # OSF1 and SCO ODT 3.0 have their own names for install.
3438 # Don't use installbsd from OSF since it installs stuff as root
3439 # by default.
3440 for ac_prog in ginstall scoinst install; do
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3443 if test $ac_prog = install &&
3444 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3445 # AIX install. It has an incompatible calling convention.
3447 elif test $ac_prog = install &&
3448 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3449 # program-specific install script used by HP pwplus--don't use.
3451 else
3452 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3453 break 3
3456 done
3457 done
3459 esac
3460 done
3464 if test "${ac_cv_path_install+set}" = set; then
3465 INSTALL=$ac_cv_path_install
3466 else
3467 # As a last resort, use the slow shell script. We don't cache a
3468 # path for INSTALL within a source directory, because that will
3469 # break other packages using the cache if that directory is
3470 # removed, or if the path is relative.
3471 INSTALL=$ac_install_sh
3474 echo "$as_me:$LINENO: result: $INSTALL" >&5
3475 echo "${ECHO_T}$INSTALL" >&6
3477 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3478 # It thinks the first close brace ends the variable substitution.
3479 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3481 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3483 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3486 # Check whether --enable-shared or --disable-shared was given.
3487 if test "${enable_shared+set}" = set; then
3488 enableval="$enable_shared"
3489 p=${PACKAGE-default}
3490 case $enableval in
3491 yes) enable_shared=yes ;;
3492 no) enable_shared=no ;;
3494 enable_shared=no
3495 # Look at the argument we got. We use all the common list separators.
3496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3497 for pkg in $enableval; do
3498 IFS="$lt_save_ifs"
3499 if test "X$pkg" = "X$p"; then
3500 enable_shared=yes
3502 done
3503 IFS="$lt_save_ifs"
3505 esac
3506 else
3507 enable_shared=no
3511 # Check whether --enable-static or --disable-static was given.
3512 if test "${enable_static+set}" = set; then
3513 enableval="$enable_static"
3514 p=${PACKAGE-default}
3515 case $enableval in
3516 yes) enable_static=yes ;;
3517 no) enable_static=no ;;
3519 enable_static=no
3520 # Look at the argument we got. We use all the common list separators.
3521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3522 for pkg in $enableval; do
3523 IFS="$lt_save_ifs"
3524 if test "X$pkg" = "X$p"; then
3525 enable_static=yes
3527 done
3528 IFS="$lt_save_ifs"
3530 esac
3531 else
3532 enable_static=yes
3535 # Check whether --enable-fast-install or --disable-fast-install was given.
3536 if test "${enable_fast_install+set}" = set; then
3537 enableval="$enable_fast_install"
3538 p=${PACKAGE-default}
3539 case $enableval in
3540 yes) enable_fast_install=yes ;;
3541 no) enable_fast_install=no ;;
3543 enable_fast_install=no
3544 # Look at the argument we got. We use all the common list separators.
3545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3546 for pkg in $enableval; do
3547 IFS="$lt_save_ifs"
3548 if test "X$pkg" = "X$p"; then
3549 enable_fast_install=yes
3551 done
3552 IFS="$lt_save_ifs"
3554 esac
3555 else
3556 enable_fast_install=yes
3559 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3560 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3561 if test "${lt_cv_path_SED+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 # Loop through the user's path and test for sed and gsed.
3565 # Then use that list of sed's as ones to test for truncation.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for lt_ac_prog in sed gsed; do
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3574 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3576 done
3577 done
3578 done
3579 lt_ac_max=0
3580 lt_ac_count=0
3581 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3582 # along with /bin/sed that truncates output.
3583 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3584 test ! -f $lt_ac_sed && continue
3585 cat /dev/null > conftest.in
3586 lt_ac_count=0
3587 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3588 # Check for GNU sed and select it if it is found.
3589 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3590 lt_cv_path_SED=$lt_ac_sed
3591 break
3593 while true; do
3594 cat conftest.in conftest.in >conftest.tmp
3595 mv conftest.tmp conftest.in
3596 cp conftest.in conftest.nl
3597 echo >>conftest.nl
3598 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3599 cmp -s conftest.out conftest.nl || break
3600 # 10000 chars as input seems more than enough
3601 test $lt_ac_count -gt 10 && break
3602 lt_ac_count=`expr $lt_ac_count + 1`
3603 if test $lt_ac_count -gt $lt_ac_max; then
3604 lt_ac_max=$lt_ac_count
3605 lt_cv_path_SED=$lt_ac_sed
3607 done
3608 done
3612 SED=$lt_cv_path_SED
3613 echo "$as_me:$LINENO: result: $SED" >&5
3614 echo "${ECHO_T}$SED" >&6
3616 echo "$as_me:$LINENO: checking for egrep" >&5
3617 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3618 if test "${ac_cv_prog_egrep+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3622 then ac_cv_prog_egrep='grep -E'
3623 else ac_cv_prog_egrep='egrep'
3626 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3627 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3628 EGREP=$ac_cv_prog_egrep
3632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3633 if test "${with_gnu_ld+set}" = set; then
3634 withval="$with_gnu_ld"
3635 test "$withval" = no || with_gnu_ld=yes
3636 else
3637 with_gnu_ld=no
3639 ac_prog=ld
3640 if test "$GCC" = yes; then
3641 # Check if gcc -print-prog-name=ld gives a path.
3642 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3644 case $host in
3645 *-*-mingw*)
3646 # gcc leaves a trailing carriage return which upsets mingw
3647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3650 esac
3651 case $ac_prog in
3652 # Accept absolute paths.
3653 [\\/]* | ?:[\\/]*)
3654 re_direlt='/[^/][^/]*/\.\./'
3655 # Canonicalize the pathname of ld
3656 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3657 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3658 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3659 done
3660 test -z "$LD" && LD="$ac_prog"
3663 # If it fails, then pretend we aren't using GCC.
3664 ac_prog=ld
3667 # If it is relative, then search for the first ld in PATH.
3668 with_gnu_ld=unknown
3670 esac
3671 elif test "$with_gnu_ld" = yes; then
3672 echo "$as_me:$LINENO: checking for GNU ld" >&5
3673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3674 else
3675 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3678 if test "${lt_cv_path_LD+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 if test -z "$LD"; then
3682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3683 for ac_dir in $PATH; do
3684 IFS="$lt_save_ifs"
3685 test -z "$ac_dir" && ac_dir=.
3686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3687 lt_cv_path_LD="$ac_dir/$ac_prog"
3688 # Check to see if the program is GNU ld. I'd rather use --version,
3689 # but apparently some GNU ld's only accept -v.
3690 # Break only if it was the GNU/non-GNU ld that we prefer.
3691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3692 *GNU* | *'with BFD'*)
3693 test "$with_gnu_ld" != no && break
3696 test "$with_gnu_ld" != yes && break
3698 esac
3700 done
3701 IFS="$lt_save_ifs"
3702 else
3703 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3707 LD="$lt_cv_path_LD"
3708 if test -n "$LD"; then
3709 echo "$as_me:$LINENO: result: $LD" >&5
3710 echo "${ECHO_T}$LD" >&6
3711 else
3712 echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3717 { (exit 1); exit 1; }; }
3718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3724 case `$LD -v 2>&1 </dev/null` in
3725 *GNU* | *'with BFD'*)
3726 lt_cv_prog_gnu_ld=yes
3729 lt_cv_prog_gnu_ld=no
3731 esac
3733 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3735 with_gnu_ld=$lt_cv_prog_gnu_ld
3738 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3739 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3740 if test "${lt_cv_ld_reload_flag+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 lt_cv_ld_reload_flag='-r'
3745 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3746 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3747 reload_flag=$lt_cv_ld_reload_flag
3748 case $reload_flag in
3749 "" | " "*) ;;
3750 *) reload_flag=" $reload_flag" ;;
3751 esac
3752 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3753 case $host_os in
3754 darwin*)
3755 if test "$GCC" = yes; then
3756 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3757 else
3758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3761 esac
3763 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3764 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3765 if test "${lt_cv_path_NM+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 if test -n "$NM"; then
3769 # Let the user override the test.
3770 lt_cv_path_NM="$NM"
3771 else
3772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3773 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3774 IFS="$lt_save_ifs"
3775 test -z "$ac_dir" && ac_dir=.
3776 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3777 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3778 # Check to see if the nm accepts a BSD-compat flag.
3779 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3780 # nm: unknown option "B" ignored
3781 # Tru64's nm complains that /dev/null is an invalid object file
3782 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3783 */dev/null* | *'Invalid file or object type'*)
3784 lt_cv_path_NM="$tmp_nm -B"
3785 break
3788 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3789 */dev/null*)
3790 lt_cv_path_NM="$tmp_nm -p"
3791 break
3794 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3795 continue # so that we can try to find one that supports BSD flags
3797 esac
3798 esac
3800 done
3801 IFS="$lt_save_ifs"
3802 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3805 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3806 echo "${ECHO_T}$lt_cv_path_NM" >&6
3807 NM="$lt_cv_path_NM"
3809 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3810 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3811 LN_S=$as_ln_s
3812 if test "$LN_S" = "ln -s"; then
3813 echo "$as_me:$LINENO: result: yes" >&5
3814 echo "${ECHO_T}yes" >&6
3815 else
3816 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3817 echo "${ECHO_T}no, using $LN_S" >&6
3820 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3821 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3822 if test "${lt_cv_deplibs_check_method+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 lt_cv_file_magic_cmd='$MAGIC_CMD'
3826 lt_cv_file_magic_test_file=
3827 lt_cv_deplibs_check_method='unknown'
3828 # Need to set the preceding variable on all platforms that support
3829 # interlibrary dependencies.
3830 # 'none' -- dependencies not supported.
3831 # `unknown' -- same as none, but documents that we really don't know.
3832 # 'pass_all' -- all dependencies passed with no checks.
3833 # 'test_compile' -- check by making test program.
3834 # 'file_magic [[regex]]' -- check by looking for files in library path
3835 # which responds to the $file_magic_cmd with a given extended regex.
3836 # If you have `file' or equivalent on your system and you're not sure
3837 # whether `pass_all' will *always* work, you probably want this one.
3839 case $host_os in
3840 aix4* | aix5*)
3841 lt_cv_deplibs_check_method=pass_all
3844 beos*)
3845 lt_cv_deplibs_check_method=pass_all
3848 bsdi[45]*)
3849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3850 lt_cv_file_magic_cmd='/usr/bin/file -L'
3851 lt_cv_file_magic_test_file=/shlib/libc.so
3854 cygwin*)
3855 # func_win32_libid is a shell function defined in ltmain.sh
3856 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3857 lt_cv_file_magic_cmd='func_win32_libid'
3860 mingw* | pw32*)
3861 # Base MSYS/MinGW do not provide the 'file' command needed by
3862 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3863 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3864 lt_cv_file_magic_cmd='$OBJDUMP -f'
3867 darwin* | rhapsody*)
3868 lt_cv_deplibs_check_method=pass_all
3871 freebsd* | kfreebsd*-gnu | dragonfly*)
3872 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3873 case $host_cpu in
3874 i*86 )
3875 # Not sure whether the presence of OpenBSD here was a mistake.
3876 # Let's accept both of them until this is cleared up.
3877 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3878 lt_cv_file_magic_cmd=/usr/bin/file
3879 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3881 esac
3882 else
3883 lt_cv_deplibs_check_method=pass_all
3887 gnu*)
3888 lt_cv_deplibs_check_method=pass_all
3891 hpux10.20* | hpux11*)
3892 lt_cv_file_magic_cmd=/usr/bin/file
3893 case "$host_cpu" in
3894 ia64*)
3895 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3896 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3898 hppa*64*)
3899 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]'
3900 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3903 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3904 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3906 esac
3909 irix5* | irix6* | nonstopux*)
3910 case $LD in
3911 *-32|*"-32 ") libmagic=32-bit;;
3912 *-n32|*"-n32 ") libmagic=N32;;
3913 *-64|*"-64 ") libmagic=64-bit;;
3914 *) libmagic=never-match;;
3915 esac
3916 lt_cv_deplibs_check_method=pass_all
3919 # This must be Linux ELF.
3920 linux*)
3921 lt_cv_deplibs_check_method=pass_all
3924 netbsd*)
3925 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3927 else
3928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3932 newos6*)
3933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3934 lt_cv_file_magic_cmd=/usr/bin/file
3935 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3938 nto-qnx*)
3939 lt_cv_deplibs_check_method=unknown
3942 openbsd*)
3943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3945 else
3946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3950 osf3* | osf4* | osf5*)
3951 lt_cv_deplibs_check_method=pass_all
3954 sco3.2v5*)
3955 lt_cv_deplibs_check_method=pass_all
3958 solaris*)
3959 lt_cv_deplibs_check_method=pass_all
3962 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3963 case $host_vendor in
3964 motorola)
3965 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]'
3966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3968 ncr)
3969 lt_cv_deplibs_check_method=pass_all
3971 sequent)
3972 lt_cv_file_magic_cmd='/bin/file'
3973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3975 sni)
3976 lt_cv_file_magic_cmd='/bin/file'
3977 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3978 lt_cv_file_magic_test_file=/lib/libc.so
3980 siemens)
3981 lt_cv_deplibs_check_method=pass_all
3983 esac
3986 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3987 lt_cv_deplibs_check_method=pass_all
3989 esac
3992 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3993 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3994 file_magic_cmd=$lt_cv_file_magic_cmd
3995 deplibs_check_method=$lt_cv_deplibs_check_method
3996 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4001 # If no C compiler was specified, use CC.
4002 LTCC=${LTCC-"$CC"}
4004 # Allow CC to be a program name with arguments.
4005 compiler=$CC
4008 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4009 if test "${enable_libtool_lock+set}" = set; then
4010 enableval="$enable_libtool_lock"
4013 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4015 # Some flags need to be propagated to the compiler or linker for good
4016 # libtool support.
4017 case $host in
4018 ia64-*-hpux*)
4019 # Find out which ABI we are using.
4020 echo 'int i;' > conftest.$ac_ext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; then
4026 case `/usr/bin/file conftest.$ac_objext` in
4027 *ELF-32*)
4028 HPUX_IA64_MODE="32"
4030 *ELF-64*)
4031 HPUX_IA64_MODE="64"
4033 esac
4035 rm -rf conftest*
4037 *-*-irix6*)
4038 # Find out which ABI we are using.
4039 echo '#line 4039 "configure"' > conftest.$ac_ext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; then
4045 if test "$lt_cv_prog_gnu_ld" = yes; then
4046 case `/usr/bin/file conftest.$ac_objext` in
4047 *32-bit*)
4048 LD="${LD-ld} -melf32bsmip"
4050 *N32*)
4051 LD="${LD-ld} -melf32bmipn32"
4053 *64-bit*)
4054 LD="${LD-ld} -melf64bmip"
4056 esac
4057 else
4058 case `/usr/bin/file conftest.$ac_objext` in
4059 *32-bit*)
4060 LD="${LD-ld} -32"
4062 *N32*)
4063 LD="${LD-ld} -n32"
4065 *64-bit*)
4066 LD="${LD-ld} -64"
4068 esac
4071 rm -rf conftest*
4074 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4075 # Find out which ABI we are using.
4076 echo 'int i;' > conftest.$ac_ext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; then
4082 case "`/usr/bin/file conftest.o`" in
4083 *32-bit*)
4084 case $host in
4085 x86_64-*linux*)
4086 LD="${LD-ld} -m elf_i386"
4088 ppc64-*linux*|powerpc64-*linux*)
4089 LD="${LD-ld} -m elf32ppclinux"
4091 s390x-*linux*)
4092 LD="${LD-ld} -m elf_s390"
4094 sparc64-*linux*)
4095 LD="${LD-ld} -m elf32_sparc"
4097 esac
4099 *64-bit*)
4100 case $host in
4101 x86_64-*linux*)
4102 LD="${LD-ld} -m elf_x86_64"
4104 ppc*-*linux*|powerpc*-*linux*)
4105 LD="${LD-ld} -m elf64ppc"
4107 s390*-*linux*)
4108 LD="${LD-ld} -m elf64_s390"
4110 sparc*-*linux*)
4111 LD="${LD-ld} -m elf64_sparc"
4113 esac
4115 esac
4117 rm -rf conftest*
4120 *-*-sco3.2v5*)
4121 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4122 SAVE_CFLAGS="$CFLAGS"
4123 CFLAGS="$CFLAGS -belf"
4124 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4125 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4126 if test "${lt_cv_cc_needs_belf+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4143 main ()
4147 return 0;
4149 _ACEOF
4150 rm -f conftest.$ac_objext conftest$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest$ac_exeext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 lt_cv_cc_needs_belf=yes
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 lt_cv_cc_needs_belf=no
4179 rm -f conftest.err conftest.$ac_objext \
4180 conftest$ac_exeext conftest.$ac_ext
4181 ac_ext=c
4182 ac_cpp='$CPP $CPPFLAGS'
4183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4189 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4190 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4191 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4192 CFLAGS="$SAVE_CFLAGS"
4196 esac
4198 need_locks="$enable_libtool_lock"
4202 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4203 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4204 if test "${ac_cv_header_stdc+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4213 #include <stdlib.h>
4214 #include <stdarg.h>
4215 #include <string.h>
4216 #include <float.h>
4219 main ()
4223 return 0;
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag"
4236 || test ! -s conftest.err'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_header_stdc=yes
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 ac_cv_header_stdc=no
4255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4257 if test $ac_cv_header_stdc = yes; then
4258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4259 cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h. */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 #include <string.h>
4267 _ACEOF
4268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4269 $EGREP "memchr" >/dev/null 2>&1; then
4271 else
4272 ac_cv_header_stdc=no
4274 rm -f conftest*
4278 if test $ac_cv_header_stdc = yes; then
4279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h. */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 #include <stdlib.h>
4288 _ACEOF
4289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290 $EGREP "free" >/dev/null 2>&1; then
4292 else
4293 ac_cv_header_stdc=no
4295 rm -f conftest*
4299 if test $ac_cv_header_stdc = yes; then
4300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4301 if test "$cross_compiling" = yes; then
4303 else
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 #include <ctype.h>
4311 #if ((' ' & 0x0FF) == 0x020)
4312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4314 #else
4315 # define ISLOWER(c) \
4316 (('a' <= (c) && (c) <= 'i') \
4317 || ('j' <= (c) && (c) <= 'r') \
4318 || ('s' <= (c) && (c) <= 'z'))
4319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4320 #endif
4322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4324 main ()
4326 int i;
4327 for (i = 0; i < 256; i++)
4328 if (XOR (islower (i), ISLOWER (i))
4329 || toupper (i) != TOUPPER (i))
4330 exit(2);
4331 exit (0);
4333 _ACEOF
4334 rm -f conftest$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4346 else
4347 echo "$as_me: program exited with status $ac_status" >&5
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4351 ( exit $ac_status )
4352 ac_cv_header_stdc=no
4354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4359 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4360 if test $ac_cv_header_stdc = yes; then
4362 cat >>confdefs.h <<\_ACEOF
4363 #define STDC_HEADERS 1
4364 _ACEOF
4368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4378 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4379 inttypes.h stdint.h unistd.h
4381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4382 echo "$as_me:$LINENO: checking for $ac_header" >&5
4383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h. */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 $ac_includes_default
4395 #include <$ac_header>
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag"
4407 || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try='test -s conftest.$ac_objext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 eval "$as_ac_Header=yes"
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 eval "$as_ac_Header=no"
4426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4431 cat >>confdefs.h <<_ACEOF
4432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4433 _ACEOF
4437 done
4441 for ac_header in dlfcn.h
4443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4445 echo "$as_me:$LINENO: checking for $ac_header" >&5
4446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4452 else
4453 # Is the header compilable?
4454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 $ac_includes_default
4463 #include <$ac_header>
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_header_compiler=yes
4488 else
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 ac_header_compiler=no
4494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4496 echo "${ECHO_T}$ac_header_compiler" >&6
4498 # Is the header present?
4499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4501 cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h. */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 #include <$ac_header>
4508 _ACEOF
4509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4511 ac_status=$?
4512 grep -v '^ *+' conftest.er1 >conftest.err
4513 rm -f conftest.er1
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } >/dev/null; then
4517 if test -s conftest.err; then
4518 ac_cpp_err=$ac_c_preproc_warn_flag
4519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4520 else
4521 ac_cpp_err=
4523 else
4524 ac_cpp_err=yes
4526 if test -z "$ac_cpp_err"; then
4527 ac_header_preproc=yes
4528 else
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4532 ac_header_preproc=no
4534 rm -f conftest.err conftest.$ac_ext
4535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4536 echo "${ECHO_T}$ac_header_preproc" >&6
4538 # So? What about this header?
4539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4540 yes:no: )
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4545 ac_header_preproc=yes
4547 no:yes:* )
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4561 cat <<\_ASBOX
4562 ## ------------------------------------------ ##
4563 ## Report this to the AC_PACKAGE_NAME lists. ##
4564 ## ------------------------------------------ ##
4565 _ASBOX
4567 sed "s/^/$as_me: WARNING: /" >&2
4569 esac
4570 echo "$as_me:$LINENO: checking for $ac_header" >&5
4571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 eval "$as_ac_Header=\$ac_header_preproc"
4577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4582 cat >>confdefs.h <<_ACEOF
4583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584 _ACEOF
4588 done
4590 ac_ext=cc
4591 ac_cpp='$CXXCPP $CPPFLAGS'
4592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4595 if test -n "$ac_tool_prefix"; then
4596 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_CXX+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if test -n "$CXX"; then
4606 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4619 done
4620 done
4624 CXX=$ac_cv_prog_CXX
4625 if test -n "$CXX"; then
4626 echo "$as_me:$LINENO: result: $CXX" >&5
4627 echo "${ECHO_T}$CXX" >&6
4628 else
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4633 test -n "$CXX" && break
4634 done
4636 if test -z "$CXX"; then
4637 ac_ct_CXX=$CXX
4638 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 if test -n "$ac_ct_CXX"; then
4648 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_CXX="$ac_prog"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4661 done
4662 done
4666 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4667 if test -n "$ac_ct_CXX"; then
4668 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4669 echo "${ECHO_T}$ac_ct_CXX" >&6
4670 else
4671 echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6
4675 test -n "$ac_ct_CXX" && break
4676 done
4677 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4679 CXX=$ac_ct_CXX
4683 # Provide some information about the compiler.
4684 echo "$as_me:$LINENO:" \
4685 "checking for C++ compiler version" >&5
4686 ac_compiler=`set X $ac_compile; echo $2`
4687 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4688 (eval $ac_compiler --version </dev/null >&5) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }
4692 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4693 (eval $ac_compiler -v </dev/null >&5) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }
4697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4698 (eval $ac_compiler -V </dev/null >&5) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }
4703 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4704 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4705 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4716 main ()
4718 #ifndef __GNUC__
4719 choke me
4720 #endif
4723 return 0;
4725 _ACEOF
4726 rm -f conftest.$ac_objext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4728 (eval $ac_compile) 2>conftest.er1
4729 ac_status=$?
4730 grep -v '^ *+' conftest.er1 >conftest.err
4731 rm -f conftest.er1
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
4735 { ac_try='test -z "$ac_cxx_werror_flag"
4736 || test ! -s conftest.err'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; } &&
4742 { ac_try='test -s conftest.$ac_objext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 ac_compiler_gnu=yes
4749 else
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4753 ac_compiler_gnu=no
4755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4756 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4759 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4760 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4761 GXX=`test $ac_compiler_gnu = yes && echo yes`
4762 ac_test_CXXFLAGS=${CXXFLAGS+set}
4763 ac_save_CXXFLAGS=$CXXFLAGS
4764 CXXFLAGS="-g"
4765 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4766 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4767 if test "${ac_cv_prog_cxx_g+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h. */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4778 main ()
4782 return 0;
4784 _ACEOF
4785 rm -f conftest.$ac_objext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>conftest.er1
4788 ac_status=$?
4789 grep -v '^ *+' conftest.er1 >conftest.err
4790 rm -f conftest.er1
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try='test -z "$ac_cxx_werror_flag"
4795 || test ! -s conftest.err'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; } &&
4801 { ac_try='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 ac_cv_prog_cxx_g=yes
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 ac_cv_prog_cxx_g=no
4814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4816 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4817 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4818 if test "$ac_test_CXXFLAGS" = set; then
4819 CXXFLAGS=$ac_save_CXXFLAGS
4820 elif test $ac_cv_prog_cxx_g = yes; then
4821 if test "$GXX" = yes; then
4822 CXXFLAGS="-g -O2"
4823 else
4824 CXXFLAGS="-g"
4826 else
4827 if test "$GXX" = yes; then
4828 CXXFLAGS="-O2"
4829 else
4830 CXXFLAGS=
4833 for ac_declaration in \
4834 '' \
4835 'extern "C" void std::exit (int) throw (); using std::exit;' \
4836 'extern "C" void std::exit (int); using std::exit;' \
4837 'extern "C" void exit (int) throw ();' \
4838 'extern "C" void exit (int);' \
4839 'void exit (int);'
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 $ac_declaration
4848 #include <stdlib.h>
4850 main ()
4852 exit (42);
4854 return 0;
4856 _ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -z "$ac_cxx_werror_flag"
4867 || test ! -s conftest.err'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 (eval $ac_try) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; } &&
4873 { ac_try='test -s conftest.$ac_objext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 (eval $ac_try) 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 continue
4886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893 $ac_declaration
4895 main ()
4897 exit (42);
4899 return 0;
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_cxx_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 break
4925 else
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4931 done
4932 rm -f conftest*
4933 if test -n "$ac_declaration"; then
4934 echo '#ifdef __cplusplus' >>confdefs.h
4935 echo $ac_declaration >>confdefs.h
4936 echo '#endif' >>confdefs.h
4939 ac_ext=cc
4940 ac_cpp='$CXXCPP $CPPFLAGS'
4941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4945 depcc="$CXX" am_compiler_list=
4947 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4948 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4949 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4953 # We make a subdir and do the tests there. Otherwise we can end up
4954 # making bogus files that we don't know about and never remove. For
4955 # instance it was reported that on HP-UX the gcc test will end up
4956 # making a dummy file named `D' -- because `-MD' means `put the output
4957 # in D'.
4958 mkdir conftest.dir
4959 # Copy depcomp to subdir because otherwise we won't find it if we're
4960 # using a relative directory.
4961 cp "$am_depcomp" conftest.dir
4962 cd conftest.dir
4963 # We will build objects and dependencies in a subdirectory because
4964 # it helps to detect inapplicable dependency modes. For instance
4965 # both Tru64's cc and ICC support -MD to output dependencies as a
4966 # side effect of compilation, but ICC will put the dependencies in
4967 # the current directory while Tru64 will put them in the object
4968 # directory.
4969 mkdir sub
4971 am_cv_CXX_dependencies_compiler_type=none
4972 if test "$am_compiler_list" = ""; then
4973 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4975 for depmode in $am_compiler_list; do
4976 # Setup a source with many dependencies, because some compilers
4977 # like to wrap large dependency lists on column 80 (with \), and
4978 # we should not choose a depcomp mode which is confused by this.
4980 # We need to recreate these files for each test, as the compiler may
4981 # overwrite some of them when testing with obscure command lines.
4982 # This happens at least with the AIX C compiler.
4983 : > sub/conftest.c
4984 for i in 1 2 3 4 5 6; do
4985 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4986 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4987 # Solaris 8's {/usr,}/bin/sh.
4988 touch sub/conftst$i.h
4989 done
4990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4992 case $depmode in
4993 nosideeffect)
4994 # after this tag, mechanisms are not by side-effect, so they'll
4995 # only be used when explicitly requested
4996 if test "x$enable_dependency_tracking" = xyes; then
4997 continue
4998 else
4999 break
5002 none) break ;;
5003 esac
5004 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5005 # mode. It turns out that the SunPro C++ compiler does not properly
5006 # handle `-M -o', and we need to detect this.
5007 if depmode=$depmode \
5008 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5009 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5010 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5011 >/dev/null 2>conftest.err &&
5012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5013 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5015 # icc doesn't choke on unknown options, it will just issue warnings
5016 # or remarks (even with -Werror). So we grep stderr for any message
5017 # that says an option was ignored or not supported.
5018 # When given -MP, icc 7.0 and 7.1 complain thusly:
5019 # icc: Command line warning: ignoring option '-M'; no argument required
5020 # The diagnosis changed in icc 8.0:
5021 # icc: Command line remark: option '-MP' not supported
5022 if (grep 'ignoring option' conftest.err ||
5023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5024 am_cv_CXX_dependencies_compiler_type=$depmode
5025 break
5028 done
5030 cd ..
5031 rm -rf conftest.dir
5032 else
5033 am_cv_CXX_dependencies_compiler_type=none
5037 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5038 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5039 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5044 test "x$enable_dependency_tracking" != xno \
5045 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5046 am__fastdepCXX_TRUE=
5047 am__fastdepCXX_FALSE='#'
5048 else
5049 am__fastdepCXX_TRUE='#'
5050 am__fastdepCXX_FALSE=
5056 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5057 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5058 (test "X$CXX" != "Xg++"))) ; then
5059 ac_ext=cc
5060 ac_cpp='$CXXCPP $CPPFLAGS'
5061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5064 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5065 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5066 if test -z "$CXXCPP"; then
5067 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 # Double quotes because CXXCPP needs to be expanded
5071 for CXXCPP in "$CXX -E" "/lib/cpp"
5073 ac_preproc_ok=false
5074 for ac_cxx_preproc_warn_flag in '' yes
5076 # Use a header file that comes with gcc, so configuring glibc
5077 # with a fresh cross-compiler works.
5078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5079 # <limits.h> exists even on freestanding compilers.
5080 # On the NeXT, cc -E runs the code through the compiler's parser,
5081 # not just through cpp. "Syntax error" is here to catch this case.
5082 cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h. */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 #ifdef __STDC__
5089 # include <limits.h>
5090 #else
5091 # include <assert.h>
5092 #endif
5093 Syntax error
5094 _ACEOF
5095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } >/dev/null; then
5103 if test -s conftest.err; then
5104 ac_cpp_err=$ac_cxx_preproc_warn_flag
5105 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5106 else
5107 ac_cpp_err=
5109 else
5110 ac_cpp_err=yes
5112 if test -z "$ac_cpp_err"; then
5114 else
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5118 # Broken: fails on valid input.
5119 continue
5121 rm -f conftest.err conftest.$ac_ext
5123 # OK, works on sane cases. Now check whether non-existent headers
5124 # can be detected and how.
5125 cat >conftest.$ac_ext <<_ACEOF
5126 /* confdefs.h. */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 #include <ac_nonexistent.h>
5132 _ACEOF
5133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } >/dev/null; then
5141 if test -s conftest.err; then
5142 ac_cpp_err=$ac_cxx_preproc_warn_flag
5143 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5144 else
5145 ac_cpp_err=
5147 else
5148 ac_cpp_err=yes
5150 if test -z "$ac_cpp_err"; then
5151 # Broken: success on invalid input.
5152 continue
5153 else
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5157 # Passes both tests.
5158 ac_preproc_ok=:
5159 break
5161 rm -f conftest.err conftest.$ac_ext
5163 done
5164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5165 rm -f conftest.err conftest.$ac_ext
5166 if $ac_preproc_ok; then
5167 break
5170 done
5171 ac_cv_prog_CXXCPP=$CXXCPP
5174 CXXCPP=$ac_cv_prog_CXXCPP
5175 else
5176 ac_cv_prog_CXXCPP=$CXXCPP
5178 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5179 echo "${ECHO_T}$CXXCPP" >&6
5180 ac_preproc_ok=false
5181 for ac_cxx_preproc_warn_flag in '' yes
5183 # Use a header file that comes with gcc, so configuring glibc
5184 # with a fresh cross-compiler works.
5185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5186 # <limits.h> exists even on freestanding compilers.
5187 # On the NeXT, cc -E runs the code through the compiler's parser,
5188 # not just through cpp. "Syntax error" is here to catch this case.
5189 cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h. */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 #ifdef __STDC__
5196 # include <limits.h>
5197 #else
5198 # include <assert.h>
5199 #endif
5200 Syntax error
5201 _ACEOF
5202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5204 ac_status=$?
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } >/dev/null; then
5210 if test -s conftest.err; then
5211 ac_cpp_err=$ac_cxx_preproc_warn_flag
5212 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5213 else
5214 ac_cpp_err=
5216 else
5217 ac_cpp_err=yes
5219 if test -z "$ac_cpp_err"; then
5221 else
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5225 # Broken: fails on valid input.
5226 continue
5228 rm -f conftest.err conftest.$ac_ext
5230 # OK, works on sane cases. Now check whether non-existent headers
5231 # can be detected and how.
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 #include <ac_nonexistent.h>
5239 _ACEOF
5240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5242 ac_status=$?
5243 grep -v '^ *+' conftest.er1 >conftest.err
5244 rm -f conftest.er1
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } >/dev/null; then
5248 if test -s conftest.err; then
5249 ac_cpp_err=$ac_cxx_preproc_warn_flag
5250 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5251 else
5252 ac_cpp_err=
5254 else
5255 ac_cpp_err=yes
5257 if test -z "$ac_cpp_err"; then
5258 # Broken: success on invalid input.
5259 continue
5260 else
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5264 # Passes both tests.
5265 ac_preproc_ok=:
5266 break
5268 rm -f conftest.err conftest.$ac_ext
5270 done
5271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5272 rm -f conftest.err conftest.$ac_ext
5273 if $ac_preproc_ok; then
5275 else
5276 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5277 See \`config.log' for more details." >&5
5278 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5279 See \`config.log' for more details." >&2;}
5280 { (exit 1); exit 1; }; }
5283 ac_ext=cc
5284 ac_cpp='$CXXCPP $CPPFLAGS'
5285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5292 ac_ext=f
5293 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5294 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5296 if test -n "$ac_tool_prefix"; then
5297 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5301 echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303 if test "${ac_cv_prog_F77+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 if test -n "$F77"; then
5307 ac_cv_prog_F77="$F77" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5320 done
5321 done
5325 F77=$ac_cv_prog_F77
5326 if test -n "$F77"; then
5327 echo "$as_me:$LINENO: result: $F77" >&5
5328 echo "${ECHO_T}$F77" >&6
5329 else
5330 echo "$as_me:$LINENO: result: no" >&5
5331 echo "${ECHO_T}no" >&6
5334 test -n "$F77" && break
5335 done
5337 if test -z "$F77"; then
5338 ac_ct_F77=$F77
5339 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5341 # Extract the first word of "$ac_prog", so it can be a program name with args.
5342 set dummy $ac_prog; ac_word=$2
5343 echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348 if test -n "$ac_ct_F77"; then
5349 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_prog_ac_ct_F77="$ac_prog"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5362 done
5363 done
5367 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5368 if test -n "$ac_ct_F77"; then
5369 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5370 echo "${ECHO_T}$ac_ct_F77" >&6
5371 else
5372 echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5376 test -n "$ac_ct_F77" && break
5377 done
5379 F77=$ac_ct_F77
5383 # Provide some information about the compiler.
5384 echo "$as_me:5384:" \
5385 "checking for Fortran 77 compiler version" >&5
5386 ac_compiler=`set X $ac_compile; echo $2`
5387 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5388 (eval $ac_compiler --version </dev/null >&5) 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }
5392 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5393 (eval $ac_compiler -v </dev/null >&5) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }
5397 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5398 (eval $ac_compiler -V </dev/null >&5) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }
5402 rm -f a.out
5404 # If we don't use `.F' as extension, the preprocessor is not run on the
5405 # input file. (Note that this only needs to work for GNU compilers.)
5406 ac_save_ext=$ac_ext
5407 ac_ext=F
5408 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5409 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5410 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 cat >conftest.$ac_ext <<_ACEOF
5414 program main
5415 #ifndef __GNUC__
5416 choke me
5417 #endif
5420 _ACEOF
5421 rm -f conftest.$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -z "$ac_f77_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_compiler_gnu=yes
5444 else
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 ac_compiler_gnu=no
5450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5451 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5454 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5455 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5456 ac_ext=$ac_save_ext
5457 ac_test_FFLAGS=${FFLAGS+set}
5458 ac_save_FFLAGS=$FFLAGS
5459 FFLAGS=
5460 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5461 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5462 if test "${ac_cv_prog_f77_g+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465 FFLAGS=-g
5466 cat >conftest.$ac_ext <<_ACEOF
5467 program main
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_f77_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try='test -s conftest.$ac_objext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_prog_f77_g=yes
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 ac_cv_prog_f77_g=no
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5503 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5504 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5505 if test "$ac_test_FFLAGS" = set; then
5506 FFLAGS=$ac_save_FFLAGS
5507 elif test $ac_cv_prog_f77_g = yes; then
5508 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5509 FFLAGS="-g -O2"
5510 else
5511 FFLAGS="-g"
5513 else
5514 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5515 FFLAGS="-O2"
5516 else
5517 FFLAGS=
5521 G77=`test $ac_compiler_gnu = yes && echo yes`
5522 ac_ext=c
5523 ac_cpp='$CPP $CPPFLAGS'
5524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5532 # find the maximum length of command line arguments
5533 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5534 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5535 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5539 teststring="ABCD"
5541 case $build_os in
5542 msdosdjgpp*)
5543 # On DJGPP, this test can blow up pretty badly due to problems in libc
5544 # (any single argument exceeding 2000 bytes causes a buffer overrun
5545 # during glob expansion). Even if it were fixed, the result of this
5546 # check would be larger than it should be.
5547 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5550 gnu*)
5551 # Under GNU Hurd, this test is not required because there is
5552 # no limit to the length of command line arguments.
5553 # Libtool will interpret -1 as no limit whatsoever
5554 lt_cv_sys_max_cmd_len=-1;
5557 cygwin* | mingw*)
5558 # On Win9x/ME, this test blows up -- it succeeds, but takes
5559 # about 5 minutes as the teststring grows exponentially.
5560 # Worse, since 9x/ME are not pre-emptively multitasking,
5561 # you end up with a "frozen" computer, even though with patience
5562 # the test eventually succeeds (with a max line length of 256k).
5563 # Instead, let's just punt: use the minimum linelength reported by
5564 # all of the supported platforms: 8192 (on NT/2K/XP).
5565 lt_cv_sys_max_cmd_len=8192;
5568 amigaos*)
5569 # On AmigaOS with pdksh, this test takes hours, literally.
5570 # So we just punt and use a minimum line length of 8192.
5571 lt_cv_sys_max_cmd_len=8192;
5574 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5575 # This has been around since 386BSD, at least. Likely further.
5576 if test -x /sbin/sysctl; then
5577 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5578 elif test -x /usr/sbin/sysctl; then
5579 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5580 else
5581 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5583 # And add a safety zone
5584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5586 osf*)
5587 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5588 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5589 # nice to cause kernel panics so lets avoid the loop below.
5590 # First set a reasonable default.
5591 lt_cv_sys_max_cmd_len=16384
5593 if test -x /sbin/sysconfig; then
5594 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5595 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5596 esac
5600 # If test is not a shell built-in, we'll probably end up computing a
5601 # maximum length that is only half of the actual maximum length, but
5602 # we can't tell.
5603 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5604 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5605 = "XX$teststring") >/dev/null 2>&1 &&
5606 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5607 lt_cv_sys_max_cmd_len=$new_result &&
5608 test $i != 17 # 1/2 MB should be enough
5610 i=`expr $i + 1`
5611 teststring=$teststring$teststring
5612 done
5613 teststring=
5614 # Add a significant safety factor because C++ compilers can tack on massive
5615 # amounts of additional arguments before passing them to the linker.
5616 # It appears as though 1/2 is a usable value.
5617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5619 esac
5623 if test -n $lt_cv_sys_max_cmd_len ; then
5624 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5625 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5626 else
5627 echo "$as_me:$LINENO: result: none" >&5
5628 echo "${ECHO_T}none" >&6
5634 # Check for command to grab the raw symbol name followed by C symbol from nm.
5635 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5636 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5637 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5641 # These are sane defaults that work on at least a few old systems.
5642 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5644 # Character class describing NM global symbol codes.
5645 symcode='[BCDEGRST]'
5647 # Regexp to match symbols that can be accessed directly from C.
5648 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5650 # Transform an extracted symbol line into a proper C declaration
5651 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5653 # Transform an extracted symbol line into symbol name and symbol address
5654 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5656 # Define system-specific variables.
5657 case $host_os in
5658 aix*)
5659 symcode='[BCDT]'
5661 cygwin* | mingw* | pw32*)
5662 symcode='[ABCDGISTW]'
5664 hpux*) # Its linker distinguishes data from code symbols
5665 if test "$host_cpu" = ia64; then
5666 symcode='[ABCDEGRST]'
5668 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5669 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5671 linux*)
5672 if test "$host_cpu" = ia64; then
5673 symcode='[ABCDGIRSTW]'
5674 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5675 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5678 irix* | nonstopux*)
5679 symcode='[BCDEGRST]'
5681 osf*)
5682 symcode='[BCDEGQRST]'
5684 solaris* | sysv5*)
5685 symcode='[BDRT]'
5687 sysv4)
5688 symcode='[DFNSTU]'
5690 esac
5692 # Handle CRLF in mingw tool chain
5693 opt_cr=
5694 case $build_os in
5695 mingw*)
5696 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5698 esac
5700 # If we're using GNU nm, then use its standard symbol codes.
5701 case `$NM -V 2>&1` in
5702 *GNU* | *'with BFD'*)
5703 symcode='[ABCDGIRSTW]' ;;
5704 esac
5706 # Try without a prefix undercore, then with it.
5707 for ac_symprfx in "" "_"; do
5709 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5710 symxfrm="\\1 $ac_symprfx\\2 \\2"
5712 # Write the raw and C identifiers.
5713 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5715 # Check to see that the pipe works correctly.
5716 pipe_works=no
5718 rm -f conftest*
5719 cat > conftest.$ac_ext <<EOF
5720 #ifdef __cplusplus
5721 extern "C" {
5722 #endif
5723 char nm_test_var;
5724 void nm_test_func(){}
5725 #ifdef __cplusplus
5727 #endif
5728 int main(){nm_test_var='a';nm_test_func();return(0);}
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; then
5736 # Now try to grab the symbols.
5737 nlist=conftest.nm
5738 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5739 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } && test -s "$nlist"; then
5743 # Try sorting and uniquifying the output.
5744 if sort "$nlist" | uniq > "$nlist"T; then
5745 mv -f "$nlist"T "$nlist"
5746 else
5747 rm -f "$nlist"T
5750 # Make sure that we snagged all the symbols we need.
5751 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5752 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5753 cat <<EOF > conftest.$ac_ext
5754 #ifdef __cplusplus
5755 extern "C" {
5756 #endif
5759 # Now generate the symbol file.
5760 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5762 cat <<EOF >> conftest.$ac_ext
5763 #if defined (__STDC__) && __STDC__
5764 # define lt_ptr_t void *
5765 #else
5766 # define lt_ptr_t char *
5767 # define const
5768 #endif
5770 /* The mapping between symbol names and symbols. */
5771 const struct {
5772 const char *name;
5773 lt_ptr_t address;
5775 lt_preloaded_symbols[] =
5778 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5779 cat <<\EOF >> conftest.$ac_ext
5780 {0, (lt_ptr_t) 0}
5783 #ifdef __cplusplus
5785 #endif
5787 # Now try linking the two files.
5788 mv conftest.$ac_objext conftstm.$ac_objext
5789 lt_save_LIBS="$LIBS"
5790 lt_save_CFLAGS="$CFLAGS"
5791 LIBS="conftstm.$ac_objext"
5792 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5794 (eval $ac_link) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5798 pipe_works=yes
5800 LIBS="$lt_save_LIBS"
5801 CFLAGS="$lt_save_CFLAGS"
5802 else
5803 echo "cannot find nm_test_func in $nlist" >&5
5805 else
5806 echo "cannot find nm_test_var in $nlist" >&5
5808 else
5809 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5811 else
5812 echo "$progname: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5815 rm -f conftest* conftst*
5817 # Do not use the global_symbol_pipe unless it works.
5818 if test "$pipe_works" = yes; then
5819 break
5820 else
5821 lt_cv_sys_global_symbol_pipe=
5823 done
5827 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5828 lt_cv_sys_global_symbol_to_cdecl=
5830 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5831 echo "$as_me:$LINENO: result: failed" >&5
5832 echo "${ECHO_T}failed" >&6
5833 else
5834 echo "$as_me:$LINENO: result: ok" >&5
5835 echo "${ECHO_T}ok" >&6
5838 echo "$as_me:$LINENO: checking for objdir" >&5
5839 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5840 if test "${lt_cv_objdir+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843 rm -f .libs 2>/dev/null
5844 mkdir .libs 2>/dev/null
5845 if test -d .libs; then
5846 lt_cv_objdir=.libs
5847 else
5848 # MS-DOS does not allow filenames that begin with a dot.
5849 lt_cv_objdir=_libs
5851 rmdir .libs 2>/dev/null
5853 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5854 echo "${ECHO_T}$lt_cv_objdir" >&6
5855 objdir=$lt_cv_objdir
5861 case $host_os in
5862 aix3*)
5863 # AIX sometimes has problems with the GCC collect2 program. For some
5864 # reason, if we set the COLLECT_NAMES environment variable, the problems
5865 # vanish in a puff of smoke.
5866 if test "X${COLLECT_NAMES+set}" != Xset; then
5867 COLLECT_NAMES=
5868 export COLLECT_NAMES
5871 esac
5873 # Sed substitution that helps us do robust quoting. It backslashifies
5874 # metacharacters that are still active within double-quoted strings.
5875 Xsed='sed -e s/^X//'
5876 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5878 # Same as above, but do not quote variable references.
5879 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5881 # Sed substitution to delay expansion of an escaped shell variable in a
5882 # double_quote_subst'ed string.
5883 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5885 # Sed substitution to avoid accidental globbing in evaled expressions
5886 no_glob_subst='s/\*/\\\*/g'
5888 # Constants:
5889 rm="rm -f"
5891 # Global variables:
5892 default_ofile=libtool
5893 can_build_shared=yes
5895 # All known linkers require a `.a' archive for static linking (except M$VC,
5896 # which needs '.lib').
5897 libext=a
5898 ltmain="$ac_aux_dir/ltmain.sh"
5899 ofile="$default_ofile"
5900 with_gnu_ld="$lt_cv_prog_gnu_ld"
5902 if test -n "$ac_tool_prefix"; then
5903 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5904 set dummy ${ac_tool_prefix}ar; ac_word=$2
5905 echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907 if test "${ac_cv_prog_AR+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910 if test -n "$AR"; then
5911 ac_cv_prog_AR="$AR" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920 ac_cv_prog_AR="${ac_tool_prefix}ar"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 2
5924 done
5925 done
5929 AR=$ac_cv_prog_AR
5930 if test -n "$AR"; then
5931 echo "$as_me:$LINENO: result: $AR" >&5
5932 echo "${ECHO_T}$AR" >&6
5933 else
5934 echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5939 if test -z "$ac_cv_prog_AR"; then
5940 ac_ct_AR=$AR
5941 # Extract the first word of "ar", so it can be a program name with args.
5942 set dummy ar; ac_word=$2
5943 echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5945 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 if test -n "$ac_ct_AR"; then
5949 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_ac_ct_AR="ar"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5962 done
5963 done
5965 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5968 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5969 if test -n "$ac_ct_AR"; then
5970 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5971 echo "${ECHO_T}$ac_ct_AR" >&6
5972 else
5973 echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5977 AR=$ac_ct_AR
5978 else
5979 AR="$ac_cv_prog_AR"
5982 if test -n "$ac_tool_prefix"; then
5983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5985 echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5987 if test "${ac_cv_prog_RANLIB+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990 if test -n "$RANLIB"; then
5991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6004 done
6005 done
6009 RANLIB=$ac_cv_prog_RANLIB
6010 if test -n "$RANLIB"; then
6011 echo "$as_me:$LINENO: result: $RANLIB" >&5
6012 echo "${ECHO_T}$RANLIB" >&6
6013 else
6014 echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6019 if test -z "$ac_cv_prog_RANLIB"; then
6020 ac_ct_RANLIB=$RANLIB
6021 # Extract the first word of "ranlib", so it can be a program name with args.
6022 set dummy ranlib; ac_word=$2
6023 echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6025 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 if test -n "$ac_ct_RANLIB"; then
6029 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038 ac_cv_prog_ac_ct_RANLIB="ranlib"
6039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6042 done
6043 done
6045 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6048 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6049 if test -n "$ac_ct_RANLIB"; then
6050 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6051 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6052 else
6053 echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6057 RANLIB=$ac_ct_RANLIB
6058 else
6059 RANLIB="$ac_cv_prog_RANLIB"
6062 if test -n "$ac_tool_prefix"; then
6063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6064 set dummy ${ac_tool_prefix}strip; ac_word=$2
6065 echo "$as_me:$LINENO: checking for $ac_word" >&5
6066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6067 if test "${ac_cv_prog_STRIP+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070 if test -n "$STRIP"; then
6071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6084 done
6085 done
6089 STRIP=$ac_cv_prog_STRIP
6090 if test -n "$STRIP"; then
6091 echo "$as_me:$LINENO: result: $STRIP" >&5
6092 echo "${ECHO_T}$STRIP" >&6
6093 else
6094 echo "$as_me:$LINENO: result: no" >&5
6095 echo "${ECHO_T}no" >&6
6099 if test -z "$ac_cv_prog_STRIP"; then
6100 ac_ct_STRIP=$STRIP
6101 # Extract the first word of "strip", so it can be a program name with args.
6102 set dummy strip; ac_word=$2
6103 echo "$as_me:$LINENO: checking for $ac_word" >&5
6104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6105 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108 if test -n "$ac_ct_STRIP"; then
6109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118 ac_cv_prog_ac_ct_STRIP="strip"
6119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6122 done
6123 done
6125 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6129 if test -n "$ac_ct_STRIP"; then
6130 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6131 echo "${ECHO_T}$ac_ct_STRIP" >&6
6132 else
6133 echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6
6137 STRIP=$ac_ct_STRIP
6138 else
6139 STRIP="$ac_cv_prog_STRIP"
6143 old_CC="$CC"
6144 old_CFLAGS="$CFLAGS"
6146 # Set sane defaults for various variables
6147 test -z "$AR" && AR=ar
6148 test -z "$AR_FLAGS" && AR_FLAGS=cru
6149 test -z "$AS" && AS=as
6150 test -z "$CC" && CC=cc
6151 test -z "$LTCC" && LTCC=$CC
6152 test -z "$DLLTOOL" && DLLTOOL=dlltool
6153 test -z "$LD" && LD=ld
6154 test -z "$LN_S" && LN_S="ln -s"
6155 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6156 test -z "$NM" && NM=nm
6157 test -z "$SED" && SED=sed
6158 test -z "$OBJDUMP" && OBJDUMP=objdump
6159 test -z "$RANLIB" && RANLIB=:
6160 test -z "$STRIP" && STRIP=:
6161 test -z "$ac_objext" && ac_objext=o
6163 # Determine commands to create old-style static archives.
6164 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6165 old_postinstall_cmds='chmod 644 $oldlib'
6166 old_postuninstall_cmds=
6168 if test -n "$RANLIB"; then
6169 case $host_os in
6170 openbsd*)
6171 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6174 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6176 esac
6177 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6180 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6182 # Only perform the check for file, if the check method requires it
6183 case $deplibs_check_method in
6184 file_magic*)
6185 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6186 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6187 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6188 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 case $MAGIC_CMD in
6192 [\\/*] | ?:[\\/]*)
6193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6196 lt_save_MAGIC_CMD="$MAGIC_CMD"
6197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6199 for ac_dir in $ac_dummy; do
6200 IFS="$lt_save_ifs"
6201 test -z "$ac_dir" && ac_dir=.
6202 if test -f $ac_dir/${ac_tool_prefix}file; then
6203 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6204 if test -n "$file_magic_test_file"; then
6205 case $deplibs_check_method in
6206 "file_magic "*)
6207 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6210 $EGREP "$file_magic_regex" > /dev/null; then
6212 else
6213 cat <<EOF 1>&2
6215 *** Warning: the command libtool uses to detect shared libraries,
6216 *** $file_magic_cmd, produces output that libtool cannot recognize.
6217 *** The result is that libtool may fail to recognize shared libraries
6218 *** as such. This will affect the creation of libtool libraries that
6219 *** depend on shared libraries, but programs linked with such libtool
6220 *** libraries will work regardless of this problem. Nevertheless, you
6221 *** may want to report the problem to your system manager and/or to
6222 *** bug-libtool@gnu.org
6225 fi ;;
6226 esac
6228 break
6230 done
6231 IFS="$lt_save_ifs"
6232 MAGIC_CMD="$lt_save_MAGIC_CMD"
6234 esac
6237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6238 if test -n "$MAGIC_CMD"; then
6239 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6240 echo "${ECHO_T}$MAGIC_CMD" >&6
6241 else
6242 echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6
6246 if test -z "$lt_cv_path_MAGIC_CMD"; then
6247 if test -n "$ac_tool_prefix"; then
6248 echo "$as_me:$LINENO: checking for file" >&5
6249 echo $ECHO_N "checking for file... $ECHO_C" >&6
6250 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 case $MAGIC_CMD in
6254 [\\/*] | ?:[\\/]*)
6255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6258 lt_save_MAGIC_CMD="$MAGIC_CMD"
6259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6261 for ac_dir in $ac_dummy; do
6262 IFS="$lt_save_ifs"
6263 test -z "$ac_dir" && ac_dir=.
6264 if test -f $ac_dir/file; then
6265 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6266 if test -n "$file_magic_test_file"; then
6267 case $deplibs_check_method in
6268 "file_magic "*)
6269 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6272 $EGREP "$file_magic_regex" > /dev/null; then
6274 else
6275 cat <<EOF 1>&2
6277 *** Warning: the command libtool uses to detect shared libraries,
6278 *** $file_magic_cmd, produces output that libtool cannot recognize.
6279 *** The result is that libtool may fail to recognize shared libraries
6280 *** as such. This will affect the creation of libtool libraries that
6281 *** depend on shared libraries, but programs linked with such libtool
6282 *** libraries will work regardless of this problem. Nevertheless, you
6283 *** may want to report the problem to your system manager and/or to
6284 *** bug-libtool@gnu.org
6287 fi ;;
6288 esac
6290 break
6292 done
6293 IFS="$lt_save_ifs"
6294 MAGIC_CMD="$lt_save_MAGIC_CMD"
6296 esac
6299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6300 if test -n "$MAGIC_CMD"; then
6301 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6302 echo "${ECHO_T}$MAGIC_CMD" >&6
6303 else
6304 echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6
6308 else
6309 MAGIC_CMD=:
6315 esac
6317 enable_dlopen=no
6318 enable_win32_dll=no
6320 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6321 if test "${enable_libtool_lock+set}" = set; then
6322 enableval="$enable_libtool_lock"
6325 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6328 # Check whether --with-pic or --without-pic was given.
6329 if test "${with_pic+set}" = set; then
6330 withval="$with_pic"
6331 pic_mode="$withval"
6332 else
6333 pic_mode=default
6335 test -z "$pic_mode" && pic_mode=default
6337 # Use C for the default configuration in the libtool script
6338 tagname=
6339 lt_save_CC="$CC"
6340 ac_ext=c
6341 ac_cpp='$CPP $CPPFLAGS'
6342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6347 # Source file extension for C test sources.
6348 ac_ext=c
6350 # Object file extension for compiled C test sources.
6351 objext=o
6352 objext=$objext
6354 # Code to be used in simple compile tests
6355 lt_simple_compile_test_code="int some_variable = 0;\n"
6357 # Code to be used in simple link tests
6358 lt_simple_link_test_code='int main(){return(0);}\n'
6361 # If no C compiler was specified, use CC.
6362 LTCC=${LTCC-"$CC"}
6364 # Allow CC to be a program name with arguments.
6365 compiler=$CC
6369 # Check for any special shared library compilation flags.
6371 lt_prog_cc_shlib=
6372 if test "$GCC" = no; then
6373 case $host_os in
6374 sco3.2v5*)
6375 lt_prog_cc_shlib='-belf'
6377 esac
6379 if test -n "$lt_prog_cc_shlib"; then
6380 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6381 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6382 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6383 else
6384 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6385 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6386 lt_cv_prog_cc_can_build_shared=no
6392 # Check to make sure the static flag actually works.
6394 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6395 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6396 if test "${lt_prog_compiler_static_works+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399 lt_prog_compiler_static_works=no
6400 save_LDFLAGS="$LDFLAGS"
6401 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6402 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6403 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6404 # The compiler can only warn and ignore the option if not recognized
6405 # So say no if there are warnings
6406 if test -s conftest.err; then
6407 # Append any errors to the config.log.
6408 cat conftest.err 1>&5
6409 else
6410 lt_prog_compiler_static_works=yes
6413 $rm conftest*
6414 LDFLAGS="$save_LDFLAGS"
6417 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6418 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6420 if test x"$lt_prog_compiler_static_works" = xyes; then
6422 else
6423 lt_prog_compiler_static=
6428 ## CAVEAT EMPTOR:
6429 ## There is no encapsulation within the following macros, do not change
6430 ## the running order or otherwise move them around unless you know exactly
6431 ## what you are doing...
6433 lt_prog_compiler_no_builtin_flag=
6435 if test "$GCC" = yes; then
6436 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6439 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6440 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6441 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444 lt_cv_prog_compiler_rtti_exceptions=no
6445 ac_outfile=conftest.$ac_objext
6446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6447 lt_compiler_flag="-fno-rtti -fno-exceptions"
6448 # Insert the option either (1) after the last *FLAGS variable, or
6449 # (2) before a word containing "conftest.", or (3) at the end.
6450 # Note that $ac_compile itself does not contain backslashes and begins
6451 # with a dollar sign (not a hyphen), so the echo should work correctly.
6452 # The option is referenced via a variable to avoid confusing sed.
6453 lt_compile=`echo "$ac_compile" | $SED \
6454 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6456 -e 's:$: $lt_compiler_flag:'`
6457 (eval echo "\"\$as_me:6457: $lt_compile\"" >&5)
6458 (eval "$lt_compile" 2>conftest.err)
6459 ac_status=$?
6460 cat conftest.err >&5
6461 echo "$as_me:6461: \$? = $ac_status" >&5
6462 if (exit $ac_status) && test -s "$ac_outfile"; then
6463 # The compiler can only warn and ignore the option if not recognized
6464 # So say no if there are warnings
6465 if test ! -s conftest.err; then
6466 lt_cv_prog_compiler_rtti_exceptions=yes
6469 $rm conftest*
6472 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6473 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6475 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6476 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6477 else
6483 lt_prog_compiler_wl=
6484 lt_prog_compiler_pic=
6485 lt_prog_compiler_static=
6487 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6488 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6490 if test "$GCC" = yes; then
6491 lt_prog_compiler_wl='-Wl,'
6492 lt_prog_compiler_static='-static'
6494 case $host_os in
6495 aix*)
6496 # All AIX code is PIC.
6497 if test "$host_cpu" = ia64; then
6498 # AIX 5 now supports IA64 processor
6499 lt_prog_compiler_static='-Bstatic'
6503 amigaos*)
6504 # FIXME: we need at least 68020 code to build shared libraries, but
6505 # adding the `-m68020' flag to GCC prevents building anything better,
6506 # like `-m68040'.
6507 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6510 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6511 # PIC is the default for these OSes.
6514 mingw* | pw32* | os2*)
6515 # This hack is so that the source file can tell whether it is being
6516 # built for inclusion in a dll (and should export symbols for example).
6517 lt_prog_compiler_pic='-DDLL_EXPORT'
6520 darwin* | rhapsody*)
6521 # PIC is the default on this platform
6522 # Common symbols not allowed in MH_DYLIB files
6523 lt_prog_compiler_pic='-fno-common'
6526 msdosdjgpp*)
6527 # Just because we use GCC doesn't mean we suddenly get shared libraries
6528 # on systems that don't support them.
6529 lt_prog_compiler_can_build_shared=no
6530 enable_shared=no
6533 sysv4*MP*)
6534 if test -d /usr/nec; then
6535 lt_prog_compiler_pic=-Kconform_pic
6539 hpux*)
6540 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6541 # not for PA HP-UX.
6542 case "$host_cpu" in
6543 hppa*64*|ia64*)
6544 # +Z the default
6547 lt_prog_compiler_pic='-fPIC'
6549 esac
6553 lt_prog_compiler_pic='-fPIC'
6555 esac
6556 else
6557 # PORTME Check for flag to pass linker flags through the system compiler.
6558 case $host_os in
6559 aix*)
6560 lt_prog_compiler_wl='-Wl,'
6561 if test "$host_cpu" = ia64; then
6562 # AIX 5 now supports IA64 processor
6563 lt_prog_compiler_static='-Bstatic'
6564 else
6565 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6568 darwin*)
6569 # PIC is the default on this platform
6570 # Common symbols not allowed in MH_DYLIB files
6571 case "$cc_basename" in
6572 xlc*)
6573 lt_prog_compiler_pic='-qnocommon'
6574 lt_prog_compiler_wl='-Wl,'
6576 esac
6579 mingw* | pw32* | os2*)
6580 # This hack is so that the source file can tell whether it is being
6581 # built for inclusion in a dll (and should export symbols for example).
6582 lt_prog_compiler_pic='-DDLL_EXPORT'
6585 hpux9* | hpux10* | hpux11*)
6586 lt_prog_compiler_wl='-Wl,'
6587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6588 # not for PA HP-UX.
6589 case "$host_cpu" in
6590 hppa*64*|ia64*)
6591 # +Z the default
6594 lt_prog_compiler_pic='+Z'
6596 esac
6597 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6598 lt_prog_compiler_static='${wl}-a ${wl}archive'
6601 irix5* | irix6* | nonstopux*)
6602 lt_prog_compiler_wl='-Wl,'
6603 # PIC (with -KPIC) is the default.
6604 lt_prog_compiler_static='-non_shared'
6607 newsos6)
6608 lt_prog_compiler_pic='-KPIC'
6609 lt_prog_compiler_static='-Bstatic'
6612 linux*)
6613 case $cc_basename in
6614 icc* | ecc*)
6615 lt_prog_compiler_wl='-Wl,'
6616 lt_prog_compiler_pic='-KPIC'
6617 lt_prog_compiler_static='-static'
6619 pgcc | pgf77 | pgf90)
6620 # Portland Group compilers (*not* the Pentium gcc compiler,
6621 # which looks to be a dead project)
6622 lt_prog_compiler_wl='-Wl,'
6623 lt_prog_compiler_pic='-fpic'
6624 lt_prog_compiler_static='-static'
6626 ccc*)
6627 lt_prog_compiler_wl='-Wl,'
6628 # All Alpha code is PIC.
6629 lt_prog_compiler_static='-non_shared'
6631 como)
6632 lt_prog_compiler_wl='-lopt='
6634 esac
6637 osf3* | osf4* | osf5*)
6638 lt_prog_compiler_wl='-Wl,'
6639 # All OSF/1 code is PIC.
6640 lt_prog_compiler_static='-non_shared'
6643 sco3.2v5*)
6644 lt_prog_compiler_pic='-Kpic'
6645 lt_prog_compiler_static='-dn'
6648 solaris*)
6649 lt_prog_compiler_wl='-Wl,'
6650 lt_prog_compiler_pic='-KPIC'
6651 lt_prog_compiler_static='-Bstatic'
6654 sunos4*)
6655 lt_prog_compiler_wl='-Qoption ld '
6656 lt_prog_compiler_pic='-PIC'
6657 lt_prog_compiler_static='-Bstatic'
6660 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6661 lt_prog_compiler_wl='-Wl,'
6662 lt_prog_compiler_pic='-KPIC'
6663 lt_prog_compiler_static='-Bstatic'
6666 sysv4*MP*)
6667 if test -d /usr/nec ;then
6668 lt_prog_compiler_pic='-Kconform_pic'
6669 lt_prog_compiler_static='-Bstatic'
6673 unicos*)
6674 lt_prog_compiler_wl='-Wl,'
6675 lt_prog_compiler_can_build_shared=no
6678 uts4*)
6679 lt_prog_compiler_pic='-pic'
6680 lt_prog_compiler_static='-Bstatic'
6684 lt_prog_compiler_can_build_shared=no
6686 esac
6689 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6690 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6693 # Check to make sure the PIC flag actually works.
6695 if test -n "$lt_prog_compiler_pic"; then
6697 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6698 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6699 if test "${lt_prog_compiler_pic_works+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702 lt_prog_compiler_pic_works=no
6703 ac_outfile=conftest.$ac_objext
6704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6705 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6706 # Insert the option either (1) after the last *FLAGS variable, or
6707 # (2) before a word containing "conftest.", or (3) at the end.
6708 # Note that $ac_compile itself does not contain backslashes and begins
6709 # with a dollar sign (not a hyphen), so the echo should work correctly.
6710 # The option is referenced via a variable to avoid confusing sed.
6711 lt_compile=`echo "$ac_compile" | $SED \
6712 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6714 -e 's:$: $lt_compiler_flag:'`
6715 (eval echo "\"\$as_me:6715: $lt_compile\"" >&5)
6716 (eval "$lt_compile" 2>conftest.err)
6717 ac_status=$?
6718 cat conftest.err >&5
6719 echo "$as_me:6719: \$? = $ac_status" >&5
6720 if (exit $ac_status) && test -s "$ac_outfile"; then
6721 # The compiler can only warn and ignore the option if not recognized
6722 # So say no if there are warnings
6723 if test ! -s conftest.err; then
6724 lt_prog_compiler_pic_works=yes
6727 $rm conftest*
6730 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6731 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6733 if test x"$lt_prog_compiler_pic_works" = xyes; then
6734 case $lt_prog_compiler_pic in
6735 "" | " "*) ;;
6736 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6737 esac
6738 else
6739 lt_prog_compiler_pic=
6740 lt_prog_compiler_can_build_shared=no
6744 case "$host_os" in
6745 # For platforms which do not support PIC, -DPIC is meaningless:
6746 *djgpp*)
6747 lt_prog_compiler_pic=
6750 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6752 esac
6754 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6755 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6756 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759 lt_cv_prog_compiler_c_o=no
6760 $rm -r conftest 2>/dev/null
6761 mkdir conftest
6762 cd conftest
6763 mkdir out
6764 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6766 lt_compiler_flag="-o out/conftest2.$ac_objext"
6767 # Insert the option either (1) after the last *FLAGS variable, or
6768 # (2) before a word containing "conftest.", or (3) at the end.
6769 # Note that $ac_compile itself does not contain backslashes and begins
6770 # with a dollar sign (not a hyphen), so the echo should work correctly.
6771 lt_compile=`echo "$ac_compile" | $SED \
6772 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6774 -e 's:$: $lt_compiler_flag:'`
6775 (eval echo "\"\$as_me:6775: $lt_compile\"" >&5)
6776 (eval "$lt_compile" 2>out/conftest.err)
6777 ac_status=$?
6778 cat out/conftest.err >&5
6779 echo "$as_me:6779: \$? = $ac_status" >&5
6780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6781 then
6782 # The compiler can only warn and ignore the option if not recognized
6783 # So say no if there are warnings
6784 if test ! -s out/conftest.err; then
6785 lt_cv_prog_compiler_c_o=yes
6788 chmod u+w .
6789 $rm conftest*
6790 # SGI C++ compiler will create directory out/ii_files/ for
6791 # template instantiation
6792 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6793 $rm out/* && rmdir out
6794 cd ..
6795 rmdir conftest
6796 $rm conftest*
6799 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6800 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6803 hard_links="nottested"
6804 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6805 # do not overwrite the value of need_locks provided by the user
6806 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6807 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6808 hard_links=yes
6809 $rm conftest*
6810 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6811 touch conftest.a
6812 ln conftest.a conftest.b 2>&5 || hard_links=no
6813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6814 echo "$as_me:$LINENO: result: $hard_links" >&5
6815 echo "${ECHO_T}$hard_links" >&6
6816 if test "$hard_links" = no; then
6817 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6818 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6819 need_locks=warn
6821 else
6822 need_locks=no
6825 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6826 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6828 runpath_var=
6829 allow_undefined_flag=
6830 enable_shared_with_static_runtimes=no
6831 archive_cmds=
6832 archive_expsym_cmds=
6833 old_archive_From_new_cmds=
6834 old_archive_from_expsyms_cmds=
6835 export_dynamic_flag_spec=
6836 whole_archive_flag_spec=
6837 thread_safe_flag_spec=
6838 hardcode_libdir_flag_spec=
6839 hardcode_libdir_flag_spec_ld=
6840 hardcode_libdir_separator=
6841 hardcode_direct=no
6842 hardcode_minus_L=no
6843 hardcode_shlibpath_var=unsupported
6844 link_all_deplibs=unknown
6845 hardcode_automatic=no
6846 module_cmds=
6847 module_expsym_cmds=
6848 always_export_symbols=no
6849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6850 # include_expsyms should be a list of space-separated symbols to be *always*
6851 # included in the symbol list
6852 include_expsyms=
6853 # exclude_expsyms can be an extended regexp of symbols to exclude
6854 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6856 # as well as any symbol that contains `d'.
6857 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6859 # platforms (ab)use it in PIC code, but their linkers get confused if
6860 # the symbol is explicitly referenced. Since portable code cannot
6861 # rely on this symbol name, it's probably fine to never include it in
6862 # preloaded symbol tables.
6863 extract_expsyms_cmds=
6865 case $host_os in
6866 cygwin* | mingw* | pw32*)
6867 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6868 # When not using gcc, we currently assume that we are using
6869 # Microsoft Visual C++.
6870 if test "$GCC" != yes; then
6871 with_gnu_ld=no
6874 openbsd*)
6875 with_gnu_ld=no
6877 esac
6879 ld_shlibs=yes
6880 if test "$with_gnu_ld" = yes; then
6881 # If archive_cmds runs LD, not CC, wlarc should be empty
6882 wlarc='${wl}'
6884 # See if GNU ld supports shared libraries.
6885 case $host_os in
6886 aix3* | aix4* | aix5*)
6887 # On AIX/PPC, the GNU linker is very broken
6888 if test "$host_cpu" != ia64; then
6889 ld_shlibs=no
6890 cat <<EOF 1>&2
6892 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6893 *** to be unable to reliably create shared libraries on AIX.
6894 *** Therefore, libtool is disabling shared libraries support. If you
6895 *** really care for shared libraries, you may want to modify your PATH
6896 *** so that a non-GNU linker is found, and then restart.
6902 amigaos*)
6903 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)'
6904 hardcode_libdir_flag_spec='-L$libdir'
6905 hardcode_minus_L=yes
6907 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6908 # that the semantics of dynamic libraries on AmigaOS, at least up
6909 # to version 4, is to share data among multiple programs linked
6910 # with the same dynamic library. Since this doesn't match the
6911 # behavior of shared libraries on other platforms, we can't use
6912 # them.
6913 ld_shlibs=no
6916 beos*)
6917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6918 allow_undefined_flag=unsupported
6919 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6920 # support --undefined. This deserves some investigation. FIXME
6921 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6922 else
6923 ld_shlibs=no
6927 cygwin* | mingw* | pw32*)
6928 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6929 # as there is no search path for DLLs.
6930 hardcode_libdir_flag_spec='-L$libdir'
6931 allow_undefined_flag=unsupported
6932 always_export_symbols=no
6933 enable_shared_with_static_runtimes=yes
6934 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6936 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6938 # If the export-symbols file already is a .def file (1st line
6939 # is EXPORTS), use it as is; otherwise, prepend...
6940 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6941 cp $export_symbols $output_objdir/$soname.def;
6942 else
6943 echo EXPORTS > $output_objdir/$soname.def;
6944 cat $export_symbols >> $output_objdir/$soname.def;
6946 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6947 else
6948 ld_shlibs=no
6952 netbsd*)
6953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6954 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6955 wlarc=
6956 else
6957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6962 solaris* | sysv5*)
6963 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6964 ld_shlibs=no
6965 cat <<EOF 1>&2
6967 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6968 *** create shared libraries on Solaris systems. Therefore, libtool
6969 *** is disabling shared libraries support. We urge you to upgrade GNU
6970 *** binutils to release 2.9.1 or newer. Another option is to modify
6971 *** your PATH or compiler configuration so that the native linker is
6972 *** used, and then restart.
6975 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6978 else
6979 ld_shlibs=no
6983 sunos4*)
6984 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6985 wlarc=
6986 hardcode_direct=yes
6987 hardcode_shlibpath_var=no
6990 linux*)
6991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6992 tmp_addflag=
6993 case $CC,$host_cpu in
6994 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6995 tmp_addflag=' -fpic' ;;
6996 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6997 tmp_addflag=' -i_dynamic' ;;
6998 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6999 tmp_addflag=' -i_dynamic -nofor_main' ;;
7000 ifc* | ifort*) # Intel Fortran compiler
7001 tmp_addflag=' -nofor_main' ;;
7002 esac
7003 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7004 supports_anon_versioning=no
7005 case `$LD -v 2>/dev/null` in
7006 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7007 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7008 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7009 *\ 2.11.*) ;; # other 2.11 versions
7010 *) supports_anon_versioning=yes ;;
7011 esac
7012 if test $supports_anon_versioning = yes; then
7013 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7015 $echo "local: *; };" >> $output_objdir/$libname.ver~
7016 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7017 else
7018 archive_expsym_cmds=$archive_cmds
7020 else
7021 ld_shlibs=no
7026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7029 else
7030 ld_shlibs=no
7033 esac
7035 if test "$ld_shlibs" = yes; then
7036 runpath_var=LD_RUN_PATH
7037 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7038 export_dynamic_flag_spec='${wl}--export-dynamic'
7039 # ancient GNU ld didn't support --whole-archive et. al.
7040 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7041 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7042 else
7043 whole_archive_flag_spec=
7046 else
7047 # PORTME fill in a description of your system's linker (not GNU ld)
7048 case $host_os in
7049 aix3*)
7050 allow_undefined_flag=unsupported
7051 always_export_symbols=yes
7052 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'
7053 # Note: this linker hardcodes the directories in LIBPATH if there
7054 # are no directories specified by -L.
7055 hardcode_minus_L=yes
7056 if test "$GCC" = yes && test -z "$link_static_flag"; then
7057 # Neither direct hardcoding nor static linking is supported with a
7058 # broken collect2.
7059 hardcode_direct=unsupported
7063 aix4* | aix5*)
7064 if test "$host_cpu" = ia64; then
7065 # On IA64, the linker does run time linking by default, so we don't
7066 # have to do anything special.
7067 aix_use_runtimelinking=no
7068 exp_sym_flag='-Bexport'
7069 no_entry_flag=""
7070 else
7071 # If we're using GNU nm, then we don't want the "-C" option.
7072 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7073 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7074 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'
7075 else
7076 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'
7078 aix_use_runtimelinking=no
7080 # Test if we are trying to use run time linking or normal
7081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7082 # need to do runtime linking.
7083 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7084 for ld_flag in $LDFLAGS; do
7085 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7086 aix_use_runtimelinking=yes
7087 break
7089 done
7090 esac
7092 exp_sym_flag='-bexport'
7093 no_entry_flag='-bnoentry'
7096 # When large executables or shared objects are built, AIX ld can
7097 # have problems creating the table of contents. If linking a library
7098 # or program results in "error TOC overflow" add -mminimal-toc to
7099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7102 archive_cmds=''
7103 hardcode_direct=yes
7104 hardcode_libdir_separator=':'
7105 link_all_deplibs=yes
7107 if test "$GCC" = yes; then
7108 case $host_os in aix4.[012]|aix4.[012].*)
7109 # We only want to do this on AIX 4.2 and lower, the check
7110 # below for broken collect2 doesn't work under 4.3+
7111 collect2name=`${CC} -print-prog-name=collect2`
7112 if test -f "$collect2name" && \
7113 strings "$collect2name" | grep resolve_lib_name >/dev/null
7114 then
7115 # We have reworked collect2
7116 hardcode_direct=yes
7117 else
7118 # We have old collect2
7119 hardcode_direct=unsupported
7120 # It fails to find uninstalled libraries when the uninstalled
7121 # path is not listed in the libpath. Setting hardcode_minus_L
7122 # to unsupported forces relinking
7123 hardcode_minus_L=yes
7124 hardcode_libdir_flag_spec='-L$libdir'
7125 hardcode_libdir_separator=
7127 esac
7128 shared_flag='-shared'
7129 if test "$aix_use_runtimelinking" = yes; then
7130 shared_flag="$shared_flag "'${wl}-G'
7132 else
7133 # not using gcc
7134 if test "$host_cpu" = ia64; then
7135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7136 # chokes on -Wl,-G. The following line is correct:
7137 shared_flag='-G'
7138 else
7139 if test "$aix_use_runtimelinking" = yes; then
7140 shared_flag='${wl}-G'
7141 else
7142 shared_flag='${wl}-bM:SRE'
7147 # It seems that -bexpall does not export symbols beginning with
7148 # underscore (_), so it is better to generate a list of symbols to export.
7149 always_export_symbols=yes
7150 if test "$aix_use_runtimelinking" = yes; then
7151 # Warning - without using the other runtime loading flags (-brtl),
7152 # -berok will link without error, but may produce a broken library.
7153 allow_undefined_flag='-berok'
7154 # Determine the default libpath from the value encoded in an empty executable.
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7163 main ()
7167 return 0;
7169 _ACEOF
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172 (eval $ac_link) 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_c_werror_flag"
7180 || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 (eval $ac_try) 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest$ac_exeext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7195 # Check for a 64-bit object if we didn't find anything.
7196 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7197 }'`; fi
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7203 rm -f conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7207 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7208 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7209 else
7210 if test "$host_cpu" = ia64; then
7211 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7212 allow_undefined_flag="-z nodefs"
7213 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7214 else
7215 # Determine the default libpath from the value encoded in an empty executable.
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7224 main ()
7228 return 0;
7230 _ACEOF
7231 rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7233 (eval $ac_link) 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } &&
7240 { ac_try='test -z "$ac_c_werror_flag"
7241 || test ! -s conftest.err'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; } &&
7247 { ac_try='test -s conftest$ac_exeext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7256 # Check for a 64-bit object if we didn't find anything.
7257 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7258 }'`; fi
7259 else
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7264 rm -f conftest.err conftest.$ac_objext \
7265 conftest$ac_exeext conftest.$ac_ext
7266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7269 # Warning - without using the other run time loading flags,
7270 # -berok will link without error, but may produce a broken library.
7271 no_undefined_flag=' ${wl}-bernotok'
7272 allow_undefined_flag=' ${wl}-berok'
7273 # -bexpall does not export symbols beginning with underscore (_)
7274 always_export_symbols=yes
7275 # Exported symbols can be pulled into shared objects from archives
7276 whole_archive_flag_spec=' '
7277 archive_cmds_need_lc=yes
7278 # This is similar to how AIX traditionally builds it's shared libraries.
7279 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7284 amigaos*)
7285 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)'
7286 hardcode_libdir_flag_spec='-L$libdir'
7287 hardcode_minus_L=yes
7288 # see comment about different semantics on the GNU ld section
7289 ld_shlibs=no
7292 bsdi[45]*)
7293 export_dynamic_flag_spec=-rdynamic
7296 cygwin* | mingw* | pw32*)
7297 # When not using gcc, we currently assume that we are using
7298 # Microsoft Visual C++.
7299 # hardcode_libdir_flag_spec is actually meaningless, as there is
7300 # no search path for DLLs.
7301 hardcode_libdir_flag_spec=' '
7302 allow_undefined_flag=unsupported
7303 # Tell ltmain to make .lib files, not .a files.
7304 libext=lib
7305 # Tell ltmain to make .dll files, not .so files.
7306 shrext_cmds=".dll"
7307 # FIXME: Setting linknames here is a bad hack.
7308 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7309 # The linker will automatically build a .lib file if we build a DLL.
7310 old_archive_From_new_cmds='true'
7311 # FIXME: Should let the user specify the lib program.
7312 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7313 fix_srcfile_path='`cygpath -w "$srcfile"`'
7314 enable_shared_with_static_runtimes=yes
7317 darwin* | rhapsody*)
7318 case "$host_os" in
7319 rhapsody* | darwin1.[012])
7320 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7322 *) # Darwin 1.3 on
7323 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7324 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7325 else
7326 case ${MACOSX_DEPLOYMENT_TARGET} in
7327 10.[012])
7328 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7330 10.*)
7331 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7333 esac
7336 esac
7337 archive_cmds_need_lc=no
7338 hardcode_direct=no
7339 hardcode_automatic=yes
7340 hardcode_shlibpath_var=unsupported
7341 whole_archive_flag_spec=''
7342 link_all_deplibs=yes
7343 if test "$GCC" = yes ; then
7344 output_verbose_link_cmd='echo'
7345 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7346 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7347 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7348 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7349 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7350 else
7351 case "$cc_basename" in
7352 xlc*)
7353 output_verbose_link_cmd='echo'
7354 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7355 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7356 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7357 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7358 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7361 ld_shlibs=no
7363 esac
7367 dgux*)
7368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369 hardcode_libdir_flag_spec='-L$libdir'
7370 hardcode_shlibpath_var=no
7373 freebsd1*)
7374 ld_shlibs=no
7377 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7378 # support. Future versions do this automatically, but an explicit c++rt0.o
7379 # does not break anything, and helps significantly (at the cost of a little
7380 # extra space).
7381 freebsd2.2*)
7382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7383 hardcode_libdir_flag_spec='-R$libdir'
7384 hardcode_direct=yes
7385 hardcode_shlibpath_var=no
7388 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7389 freebsd2*)
7390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7391 hardcode_direct=yes
7392 hardcode_minus_L=yes
7393 hardcode_shlibpath_var=no
7396 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7397 freebsd* | kfreebsd*-gnu | dragonfly*)
7398 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7399 hardcode_libdir_flag_spec='-R$libdir'
7400 hardcode_direct=yes
7401 hardcode_shlibpath_var=no
7404 hpux9*)
7405 if test "$GCC" = yes; then
7406 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'
7407 else
7408 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'
7410 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7411 hardcode_libdir_separator=:
7412 hardcode_direct=yes
7414 # hardcode_minus_L: Not really in the search PATH,
7415 # but as the default location of the library.
7416 hardcode_minus_L=yes
7417 export_dynamic_flag_spec='${wl}-E'
7420 hpux10* | hpux11*)
7421 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7422 case "$host_cpu" in
7423 hppa*64*|ia64*)
7424 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7427 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7429 esac
7430 else
7431 case "$host_cpu" in
7432 hppa*64*|ia64*)
7433 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7436 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7438 esac
7440 if test "$with_gnu_ld" = no; then
7441 case "$host_cpu" in
7442 hppa*64*)
7443 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7444 hardcode_libdir_flag_spec_ld='+b $libdir'
7445 hardcode_libdir_separator=:
7446 hardcode_direct=no
7447 hardcode_shlibpath_var=no
7449 ia64*)
7450 hardcode_libdir_flag_spec='-L$libdir'
7451 hardcode_direct=no
7452 hardcode_shlibpath_var=no
7454 # hardcode_minus_L: Not really in the search PATH,
7455 # but as the default location of the library.
7456 hardcode_minus_L=yes
7459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7460 hardcode_libdir_separator=:
7461 hardcode_direct=yes
7462 export_dynamic_flag_spec='${wl}-E'
7464 # hardcode_minus_L: Not really in the search PATH,
7465 # but as the default location of the library.
7466 hardcode_minus_L=yes
7468 esac
7472 irix5* | irix6* | nonstopux*)
7473 if test "$GCC" = yes; then
7474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7475 else
7476 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7477 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7480 hardcode_libdir_separator=:
7481 link_all_deplibs=yes
7484 netbsd*)
7485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7487 else
7488 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7490 hardcode_libdir_flag_spec='-R$libdir'
7491 hardcode_direct=yes
7492 hardcode_shlibpath_var=no
7495 newsos6)
7496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7497 hardcode_direct=yes
7498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7499 hardcode_libdir_separator=:
7500 hardcode_shlibpath_var=no
7503 openbsd*)
7504 hardcode_direct=yes
7505 hardcode_shlibpath_var=no
7506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7507 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7508 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7509 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7510 export_dynamic_flag_spec='${wl}-E'
7511 else
7512 case $host_os in
7513 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7515 hardcode_libdir_flag_spec='-R$libdir'
7518 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7519 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7521 esac
7525 os2*)
7526 hardcode_libdir_flag_spec='-L$libdir'
7527 hardcode_minus_L=yes
7528 allow_undefined_flag=unsupported
7529 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'
7530 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7533 osf3*)
7534 if test "$GCC" = yes; then
7535 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7536 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7537 else
7538 allow_undefined_flag=' -expect_unresolved \*'
7539 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7542 hardcode_libdir_separator=:
7545 osf4* | osf5*) # as osf3* with the addition of -msym flag
7546 if test "$GCC" = yes; then
7547 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7548 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7550 else
7551 allow_undefined_flag=' -expect_unresolved \*'
7552 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7553 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7554 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7556 # Both c and cxx compiler support -rpath directly
7557 hardcode_libdir_flag_spec='-rpath $libdir'
7559 hardcode_libdir_separator=:
7562 sco3.2v5*)
7563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7564 hardcode_shlibpath_var=no
7565 export_dynamic_flag_spec='${wl}-Bexport'
7566 runpath_var=LD_RUN_PATH
7567 hardcode_runpath_var=yes
7570 solaris*)
7571 no_undefined_flag=' -z text'
7572 if test "$GCC" = yes; then
7573 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7574 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7575 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7576 else
7577 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7578 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7581 hardcode_libdir_flag_spec='-R$libdir'
7582 hardcode_shlibpath_var=no
7583 case $host_os in
7584 solaris2.[0-5] | solaris2.[0-5].*) ;;
7585 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7586 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7587 esac
7588 link_all_deplibs=yes
7591 sunos4*)
7592 if test "x$host_vendor" = xsequent; then
7593 # Use $CC to link under sequent, because it throws in some extra .o
7594 # files that make .init and .fini sections work.
7595 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7596 else
7597 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7599 hardcode_libdir_flag_spec='-L$libdir'
7600 hardcode_direct=yes
7601 hardcode_minus_L=yes
7602 hardcode_shlibpath_var=no
7605 sysv4)
7606 case $host_vendor in
7607 sni)
7608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7609 hardcode_direct=yes # is this really true???
7611 siemens)
7612 ## LD is ld it makes a PLAMLIB
7613 ## CC just makes a GrossModule.
7614 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7615 reload_cmds='$CC -r -o $output$reload_objs'
7616 hardcode_direct=no
7618 motorola)
7619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7620 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7622 esac
7623 runpath_var='LD_RUN_PATH'
7624 hardcode_shlibpath_var=no
7627 sysv4.3*)
7628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7629 hardcode_shlibpath_var=no
7630 export_dynamic_flag_spec='-Bexport'
7633 sysv4*MP*)
7634 if test -d /usr/nec; then
7635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7636 hardcode_shlibpath_var=no
7637 runpath_var=LD_RUN_PATH
7638 hardcode_runpath_var=yes
7639 ld_shlibs=yes
7643 sysv4.2uw2*)
7644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7645 hardcode_direct=yes
7646 hardcode_minus_L=no
7647 hardcode_shlibpath_var=no
7648 hardcode_runpath_var=yes
7649 runpath_var=LD_RUN_PATH
7652 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7653 no_undefined_flag='${wl}-z ${wl}text'
7654 if test "$GCC" = yes; then
7655 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7656 else
7657 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7659 runpath_var='LD_RUN_PATH'
7660 hardcode_shlibpath_var=no
7663 sysv5*)
7664 no_undefined_flag=' -z text'
7665 # $CC -shared without GNU ld will not create a library from C++
7666 # object files and a static libstdc++, better avoid it by now
7667 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7668 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7669 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7670 hardcode_libdir_flag_spec=
7671 hardcode_shlibpath_var=no
7672 runpath_var='LD_RUN_PATH'
7675 uts4*)
7676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7677 hardcode_libdir_flag_spec='-L$libdir'
7678 hardcode_shlibpath_var=no
7682 ld_shlibs=no
7684 esac
7687 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7688 echo "${ECHO_T}$ld_shlibs" >&6
7689 test "$ld_shlibs" = no && can_build_shared=no
7691 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7692 if test "$GCC" = yes; then
7693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7697 # Do we need to explicitly link libc?
7699 case "x$archive_cmds_need_lc" in
7700 x|xyes)
7701 # Assume -lc should be added
7702 archive_cmds_need_lc=yes
7704 if test "$enable_shared" = yes && test "$GCC" = yes; then
7705 case $archive_cmds in
7706 *'~'*)
7707 # FIXME: we may have to deal with multi-command sequences.
7709 '$CC '*)
7710 # Test whether the compiler implicitly links with -lc since on some
7711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7712 # to ld, don't add -lc before -lgcc.
7713 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7714 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7715 $rm conftest*
7716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7719 (eval $ac_compile) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } 2>conftest.err; then
7723 soname=conftest
7724 lib=conftest
7725 libobjs=conftest.$ac_objext
7726 deplibs=
7727 wl=$lt_prog_compiler_wl
7728 compiler_flags=-v
7729 linker_flags=-v
7730 verstring=
7731 output_objdir=.
7732 libname=conftest
7733 lt_save_allow_undefined_flag=$allow_undefined_flag
7734 allow_undefined_flag=
7735 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7736 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7737 ac_status=$?
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }
7740 then
7741 archive_cmds_need_lc=no
7742 else
7743 archive_cmds_need_lc=yes
7745 allow_undefined_flag=$lt_save_allow_undefined_flag
7746 else
7747 cat conftest.err 1>&5
7749 $rm conftest*
7750 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7751 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7753 esac
7756 esac
7758 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7759 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7760 library_names_spec=
7761 libname_spec='lib$name'
7762 soname_spec=
7763 shrext_cmds=".so"
7764 postinstall_cmds=
7765 postuninstall_cmds=
7766 finish_cmds=
7767 finish_eval=
7768 shlibpath_var=
7769 shlibpath_overrides_runpath=unknown
7770 version_type=none
7771 dynamic_linker="$host_os ld.so"
7772 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7773 if test "$GCC" = yes; then
7774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7775 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7776 # if the path contains ";" then we assume it to be the separator
7777 # otherwise default to the standard path separator (i.e. ":") - it is
7778 # assumed that no part of a normal pathname contains ";" but that should
7779 # okay in the real world where ";" in dirpaths is itself problematic.
7780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7781 else
7782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7784 else
7785 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7787 need_lib_prefix=unknown
7788 hardcode_into_libs=no
7790 # when you set need_version to no, make sure it does not cause -set_version
7791 # flags to be left without arguments
7792 need_version=unknown
7794 case $host_os in
7795 aix3*)
7796 version_type=linux
7797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7798 shlibpath_var=LIBPATH
7800 # AIX 3 has no versioning support, so we append a major version to the name.
7801 soname_spec='${libname}${release}${shared_ext}$major'
7804 aix4* | aix5*)
7805 version_type=linux
7806 need_lib_prefix=no
7807 need_version=no
7808 hardcode_into_libs=yes
7809 if test "$host_cpu" = ia64; then
7810 # AIX 5 supports IA64
7811 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7812 shlibpath_var=LD_LIBRARY_PATH
7813 else
7814 # With GCC up to 2.95.x, collect2 would create an import file
7815 # for dependence libraries. The import file would start with
7816 # the line `#! .'. This would cause the generated library to
7817 # depend on `.', always an invalid library. This was fixed in
7818 # development snapshots of GCC prior to 3.0.
7819 case $host_os in
7820 aix4 | aix4.[01] | aix4.[01].*)
7821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7822 echo ' yes '
7823 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7825 else
7826 can_build_shared=no
7829 esac
7830 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7831 # soname into executable. Probably we can add versioning support to
7832 # collect2, so additional links can be useful in future.
7833 if test "$aix_use_runtimelinking" = yes; then
7834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7835 # instead of lib<name>.a to let people know that these are not
7836 # typical AIX shared libraries.
7837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7838 else
7839 # We preserve .a as extension for shared libraries through AIX4.2
7840 # and later when we are not doing run time linking.
7841 library_names_spec='${libname}${release}.a $libname.a'
7842 soname_spec='${libname}${release}${shared_ext}$major'
7844 shlibpath_var=LIBPATH
7848 amigaos*)
7849 library_names_spec='$libname.ixlibrary $libname.a'
7850 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7851 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'
7854 beos*)
7855 library_names_spec='${libname}${shared_ext}'
7856 dynamic_linker="$host_os ld.so"
7857 shlibpath_var=LIBRARY_PATH
7860 bsdi[45]*)
7861 version_type=linux
7862 need_version=no
7863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7864 soname_spec='${libname}${release}${shared_ext}$major'
7865 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7866 shlibpath_var=LD_LIBRARY_PATH
7867 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7868 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7869 # the default ld.so.conf also contains /usr/contrib/lib and
7870 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7871 # libtool to hard-code these into programs
7874 cygwin* | mingw* | pw32*)
7875 version_type=windows
7876 shrext_cmds=".dll"
7877 need_version=no
7878 need_lib_prefix=no
7880 case $GCC,$host_os in
7881 yes,cygwin* | yes,mingw* | yes,pw32*)
7882 library_names_spec='$libname.dll.a'
7883 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7884 postinstall_cmds='base_file=`basename \${file}`~
7885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7886 dldir=$destdir/`dirname \$dlpath`~
7887 test -d \$dldir || mkdir -p \$dldir~
7888 $install_prog $dir/$dlname \$dldir/$dlname'
7889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7890 dlpath=$dir/\$dldll~
7891 $rm \$dlpath'
7892 shlibpath_overrides_runpath=yes
7894 case $host_os in
7895 cygwin*)
7896 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7897 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7898 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7900 mingw*)
7901 # MinGW DLLs use traditional 'lib' prefix
7902 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7903 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7904 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7905 # It is most probably a Windows format PATH printed by
7906 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7907 # path with ; separators, and with drive letters. We can handle the
7908 # drive letters (cygwin fileutils understands them), so leave them,
7909 # especially as we might pass files found there to a mingw objdump,
7910 # which wouldn't understand a cygwinified path. Ahh.
7911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7912 else
7913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7916 pw32*)
7917 # pw32 DLLs use 'pw' prefix rather than 'lib'
7918 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7920 esac
7924 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7926 esac
7927 dynamic_linker='Win32 ld.exe'
7928 # FIXME: first we should search . and the directory the executable is in
7929 shlibpath_var=PATH
7932 darwin* | rhapsody*)
7933 dynamic_linker="$host_os dyld"
7934 version_type=darwin
7935 need_lib_prefix=no
7936 need_version=no
7937 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7938 soname_spec='${libname}${release}${major}$shared_ext'
7939 shlibpath_overrides_runpath=yes
7940 shlibpath_var=DYLD_LIBRARY_PATH
7941 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7942 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7943 if test "$GCC" = yes; then
7944 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7945 else
7946 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7948 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7951 dgux*)
7952 version_type=linux
7953 need_lib_prefix=no
7954 need_version=no
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 shlibpath_var=LD_LIBRARY_PATH
7960 freebsd1*)
7961 dynamic_linker=no
7964 kfreebsd*-gnu)
7965 version_type=linux
7966 need_lib_prefix=no
7967 need_version=no
7968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7969 soname_spec='${libname}${release}${shared_ext}$major'
7970 shlibpath_var=LD_LIBRARY_PATH
7971 shlibpath_overrides_runpath=no
7972 hardcode_into_libs=yes
7973 dynamic_linker='GNU ld.so'
7976 freebsd* | dragonfly*)
7977 # DragonFly does not have aout. When/if they implement a new
7978 # versioning mechanism, adjust this.
7979 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7980 version_type=freebsd-$objformat
7981 case $version_type in
7982 freebsd-elf*)
7983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7984 need_version=no
7985 need_lib_prefix=no
7987 freebsd-*)
7988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7989 need_version=yes
7991 esac
7992 shlibpath_var=LD_LIBRARY_PATH
7993 case $host_os in
7994 freebsd2*)
7995 shlibpath_overrides_runpath=yes
7997 freebsd3.[01]* | freebsdelf3.[01]*)
7998 shlibpath_overrides_runpath=yes
7999 hardcode_into_libs=yes
8001 *) # from 3.2 on
8002 shlibpath_overrides_runpath=no
8003 hardcode_into_libs=yes
8005 esac
8008 gnu*)
8009 version_type=linux
8010 need_lib_prefix=no
8011 need_version=no
8012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8013 soname_spec='${libname}${release}${shared_ext}$major'
8014 shlibpath_var=LD_LIBRARY_PATH
8015 hardcode_into_libs=yes
8018 hpux9* | hpux10* | hpux11*)
8019 # Give a soname corresponding to the major version so that dld.sl refuses to
8020 # link against other versions.
8021 version_type=sunos
8022 need_lib_prefix=no
8023 need_version=no
8024 case "$host_cpu" in
8025 ia64*)
8026 shrext_cmds='.so'
8027 hardcode_into_libs=yes
8028 dynamic_linker="$host_os dld.so"
8029 shlibpath_var=LD_LIBRARY_PATH
8030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032 soname_spec='${libname}${release}${shared_ext}$major'
8033 if test "X$HPUX_IA64_MODE" = X32; then
8034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8035 else
8036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8040 hppa*64*)
8041 shrext_cmds='.sl'
8042 hardcode_into_libs=yes
8043 dynamic_linker="$host_os dld.sl"
8044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047 soname_spec='${libname}${release}${shared_ext}$major'
8048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8052 shrext_cmds='.sl'
8053 dynamic_linker="$host_os dld.sl"
8054 shlibpath_var=SHLIB_PATH
8055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8057 soname_spec='${libname}${release}${shared_ext}$major'
8059 esac
8060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8061 postinstall_cmds='chmod 555 $lib'
8064 irix5* | irix6* | nonstopux*)
8065 case $host_os in
8066 nonstopux*) version_type=nonstopux ;;
8068 if test "$lt_cv_prog_gnu_ld" = yes; then
8069 version_type=linux
8070 else
8071 version_type=irix
8072 fi ;;
8073 esac
8074 need_lib_prefix=no
8075 need_version=no
8076 soname_spec='${libname}${release}${shared_ext}$major'
8077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8078 case $host_os in
8079 irix5* | nonstopux*)
8080 libsuff= shlibsuff=
8083 case $LD in # libtool.m4 will add one of these switches to LD
8084 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8085 libsuff= shlibsuff= libmagic=32-bit;;
8086 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8087 libsuff=32 shlibsuff=N32 libmagic=N32;;
8088 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8089 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8090 *) libsuff= shlibsuff= libmagic=never-match;;
8091 esac
8093 esac
8094 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8095 shlibpath_overrides_runpath=no
8096 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8097 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8098 hardcode_into_libs=yes
8101 # No shared lib support for Linux oldld, aout, or coff.
8102 linux*oldld* | linux*aout* | linux*coff*)
8103 dynamic_linker=no
8106 # This must be Linux ELF.
8107 linux*)
8108 version_type=linux
8109 need_lib_prefix=no
8110 need_version=no
8111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8112 soname_spec='${libname}${release}${shared_ext}$major'
8113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8114 shlibpath_var=LD_LIBRARY_PATH
8115 shlibpath_overrides_runpath=no
8116 # This implies no fast_install, which is unacceptable.
8117 # Some rework will be needed to allow for fast_install
8118 # before this can be enabled.
8119 hardcode_into_libs=yes
8121 # Append ld.so.conf contents to the search path
8122 if test -f /etc/ld.so.conf; then
8123 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8124 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8127 # We used to test for /lib/ld.so.1 and disable shared libraries on
8128 # powerpc, because MkLinux only supported shared libraries with the
8129 # GNU dynamic linker. Since this was broken with cross compilers,
8130 # most powerpc-linux boxes support dynamic linking these days and
8131 # people can always --disable-shared, the test was removed, and we
8132 # assume the GNU/Linux dynamic linker is in use.
8133 dynamic_linker='GNU/Linux ld.so'
8136 knetbsd*-gnu)
8137 version_type=linux
8138 need_lib_prefix=no
8139 need_version=no
8140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8141 soname_spec='${libname}${release}${shared_ext}$major'
8142 shlibpath_var=LD_LIBRARY_PATH
8143 shlibpath_overrides_runpath=no
8144 hardcode_into_libs=yes
8145 dynamic_linker='GNU ld.so'
8148 netbsd*)
8149 version_type=sunos
8150 need_lib_prefix=no
8151 need_version=no
8152 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8155 dynamic_linker='NetBSD (a.out) ld.so'
8156 else
8157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8158 soname_spec='${libname}${release}${shared_ext}$major'
8159 dynamic_linker='NetBSD ld.elf_so'
8161 shlibpath_var=LD_LIBRARY_PATH
8162 shlibpath_overrides_runpath=yes
8163 hardcode_into_libs=yes
8166 newsos6)
8167 version_type=linux
8168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8169 shlibpath_var=LD_LIBRARY_PATH
8170 shlibpath_overrides_runpath=yes
8173 nto-qnx*)
8174 version_type=linux
8175 need_lib_prefix=no
8176 need_version=no
8177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8178 soname_spec='${libname}${release}${shared_ext}$major'
8179 shlibpath_var=LD_LIBRARY_PATH
8180 shlibpath_overrides_runpath=yes
8183 openbsd*)
8184 version_type=sunos
8185 need_lib_prefix=no
8186 need_version=no
8187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8189 shlibpath_var=LD_LIBRARY_PATH
8190 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8191 case $host_os in
8192 openbsd2.[89] | openbsd2.[89].*)
8193 shlibpath_overrides_runpath=no
8196 shlibpath_overrides_runpath=yes
8198 esac
8199 else
8200 shlibpath_overrides_runpath=yes
8204 os2*)
8205 libname_spec='$name'
8206 shrext_cmds=".dll"
8207 need_lib_prefix=no
8208 library_names_spec='$libname${shared_ext} $libname.a'
8209 dynamic_linker='OS/2 ld.exe'
8210 shlibpath_var=LIBPATH
8213 osf3* | osf4* | osf5*)
8214 version_type=osf
8215 need_lib_prefix=no
8216 need_version=no
8217 soname_spec='${libname}${release}${shared_ext}$major'
8218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8219 shlibpath_var=LD_LIBRARY_PATH
8220 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8221 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8224 sco3.2v5*)
8225 version_type=osf
8226 soname_spec='${libname}${release}${shared_ext}$major'
8227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8228 shlibpath_var=LD_LIBRARY_PATH
8231 solaris*)
8232 version_type=linux
8233 need_lib_prefix=no
8234 need_version=no
8235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8236 soname_spec='${libname}${release}${shared_ext}$major'
8237 shlibpath_var=LD_LIBRARY_PATH
8238 shlibpath_overrides_runpath=yes
8239 hardcode_into_libs=yes
8240 # ldd complains unless libraries are executable
8241 postinstall_cmds='chmod +x $lib'
8244 sunos4*)
8245 version_type=sunos
8246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8247 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8248 shlibpath_var=LD_LIBRARY_PATH
8249 shlibpath_overrides_runpath=yes
8250 if test "$with_gnu_ld" = yes; then
8251 need_lib_prefix=no
8253 need_version=yes
8256 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8257 version_type=linux
8258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8259 soname_spec='${libname}${release}${shared_ext}$major'
8260 shlibpath_var=LD_LIBRARY_PATH
8261 case $host_vendor in
8262 sni)
8263 shlibpath_overrides_runpath=no
8264 need_lib_prefix=no
8265 export_dynamic_flag_spec='${wl}-Blargedynsym'
8266 runpath_var=LD_RUN_PATH
8268 siemens)
8269 need_lib_prefix=no
8271 motorola)
8272 need_lib_prefix=no
8273 need_version=no
8274 shlibpath_overrides_runpath=no
8275 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8277 esac
8280 sysv4*MP*)
8281 if test -d /usr/nec ;then
8282 version_type=linux
8283 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8284 soname_spec='$libname${shared_ext}.$major'
8285 shlibpath_var=LD_LIBRARY_PATH
8289 uts4*)
8290 version_type=linux
8291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8292 soname_spec='${libname}${release}${shared_ext}$major'
8293 shlibpath_var=LD_LIBRARY_PATH
8297 dynamic_linker=no
8299 esac
8300 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8301 echo "${ECHO_T}$dynamic_linker" >&6
8302 test "$dynamic_linker" = no && can_build_shared=no
8304 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8305 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8306 hardcode_action=
8307 if test -n "$hardcode_libdir_flag_spec" || \
8308 test -n "$runpath_var" || \
8309 test "X$hardcode_automatic" = "Xyes" ; then
8311 # We can hardcode non-existant directories.
8312 if test "$hardcode_direct" != no &&
8313 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8314 # have to relink, otherwise we might link with an installed library
8315 # when we should be linking with a yet-to-be-installed one
8316 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8317 test "$hardcode_minus_L" != no; then
8318 # Linking always hardcodes the temporary library directory.
8319 hardcode_action=relink
8320 else
8321 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8322 hardcode_action=immediate
8324 else
8325 # We cannot hardcode anything, or else we can only hardcode existing
8326 # directories.
8327 hardcode_action=unsupported
8329 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8330 echo "${ECHO_T}$hardcode_action" >&6
8332 if test "$hardcode_action" = relink; then
8333 # Fast installation is not supported
8334 enable_fast_install=no
8335 elif test "$shlibpath_overrides_runpath" = yes ||
8336 test "$enable_shared" = no; then
8337 # Fast installation is not necessary
8338 enable_fast_install=needless
8341 striplib=
8342 old_striplib=
8343 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8344 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8345 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8346 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8347 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8348 echo "$as_me:$LINENO: result: yes" >&5
8349 echo "${ECHO_T}yes" >&6
8350 else
8351 # FIXME - insert some real tests, host_os isn't really good enough
8352 case $host_os in
8353 darwin*)
8354 if test -n "$STRIP" ; then
8355 striplib="$STRIP -x"
8356 echo "$as_me:$LINENO: result: yes" >&5
8357 echo "${ECHO_T}yes" >&6
8358 else
8359 echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6
8364 echo "$as_me:$LINENO: result: no" >&5
8365 echo "${ECHO_T}no" >&6
8367 esac
8370 if test "x$enable_dlopen" != xyes; then
8371 enable_dlopen=unknown
8372 enable_dlopen_self=unknown
8373 enable_dlopen_self_static=unknown
8374 else
8375 lt_cv_dlopen=no
8376 lt_cv_dlopen_libs=
8378 case $host_os in
8379 beos*)
8380 lt_cv_dlopen="load_add_on"
8381 lt_cv_dlopen_libs=
8382 lt_cv_dlopen_self=yes
8385 mingw* | pw32*)
8386 lt_cv_dlopen="LoadLibrary"
8387 lt_cv_dlopen_libs=
8390 cygwin*)
8391 lt_cv_dlopen="dlopen"
8392 lt_cv_dlopen_libs=
8395 darwin*)
8396 # if libdl is installed we need to link against it
8397 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8398 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8399 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402 ac_check_lib_save_LIBS=$LIBS
8403 LIBS="-ldl $LIBS"
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h. */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8411 /* Override any gcc2 internal prototype to avoid an error. */
8412 #ifdef __cplusplus
8413 extern "C"
8414 #endif
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8417 char dlopen ();
8419 main ()
8421 dlopen ();
8423 return 0;
8425 _ACEOF
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -z "$ac_c_werror_flag"
8436 || test ! -s conftest.err'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 (eval $ac_try) 2>&5
8439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest$ac_exeext'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 (eval $ac_try) 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 ac_cv_lib_dl_dlopen=yes
8449 else
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 ac_cv_lib_dl_dlopen=no
8455 rm -f conftest.err conftest.$ac_objext \
8456 conftest$ac_exeext conftest.$ac_ext
8457 LIBS=$ac_check_lib_save_LIBS
8459 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8460 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8461 if test $ac_cv_lib_dl_dlopen = yes; then
8462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8463 else
8465 lt_cv_dlopen="dyld"
8466 lt_cv_dlopen_libs=
8467 lt_cv_dlopen_self=yes
8474 echo "$as_me:$LINENO: checking for shl_load" >&5
8475 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8476 if test "${ac_cv_func_shl_load+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479 cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h. */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8487 #define shl_load innocuous_shl_load
8489 /* System header to define __stub macros and hopefully few prototypes,
8490 which can conflict with char shl_load (); below.
8491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8492 <limits.h> exists even on freestanding compilers. */
8494 #ifdef __STDC__
8495 # include <limits.h>
8496 #else
8497 # include <assert.h>
8498 #endif
8500 #undef shl_load
8502 /* Override any gcc2 internal prototype to avoid an error. */
8503 #ifdef __cplusplus
8504 extern "C"
8506 #endif
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8509 char shl_load ();
8510 /* The GNU C library defines this for functions which it implements
8511 to always fail with ENOSYS. Some functions are actually named
8512 something starting with __ and the normal name is an alias. */
8513 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8514 choke me
8515 #else
8516 char (*f) () = shl_load;
8517 #endif
8518 #ifdef __cplusplus
8520 #endif
8523 main ()
8525 return f != shl_load;
8527 return 0;
8529 _ACEOF
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>conftest.er1
8533 ac_status=$?
8534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest$ac_exeext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 (eval $ac_try) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 ac_cv_func_shl_load=yes
8553 else
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 ac_cv_func_shl_load=no
8559 rm -f conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8562 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8563 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8564 if test $ac_cv_func_shl_load = yes; then
8565 lt_cv_dlopen="shl_load"
8566 else
8567 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8568 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8569 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 ac_check_lib_save_LIBS=$LIBS
8573 LIBS="-ldld $LIBS"
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h. */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8581 /* Override any gcc2 internal prototype to avoid an error. */
8582 #ifdef __cplusplus
8583 extern "C"
8584 #endif
8585 /* We use char because int might match the return type of a gcc2
8586 builtin and then its argument prototype would still apply. */
8587 char shl_load ();
8589 main ()
8591 shl_load ();
8593 return 0;
8595 _ACEOF
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8598 (eval $ac_link) 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try='test -z "$ac_c_werror_flag"
8606 || test ! -s conftest.err'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 (eval $ac_try) 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; } &&
8612 { ac_try='test -s conftest$ac_exeext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 (eval $ac_try) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_lib_dld_shl_load=yes
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cv_lib_dld_shl_load=no
8625 rm -f conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
8627 LIBS=$ac_check_lib_save_LIBS
8629 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8630 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8631 if test $ac_cv_lib_dld_shl_load = yes; then
8632 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8633 else
8634 echo "$as_me:$LINENO: checking for dlopen" >&5
8635 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8636 if test "${ac_cv_func_dlopen+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639 cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h. */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8647 #define dlopen innocuous_dlopen
8649 /* System header to define __stub macros and hopefully few prototypes,
8650 which can conflict with char dlopen (); below.
8651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8652 <limits.h> exists even on freestanding compilers. */
8654 #ifdef __STDC__
8655 # include <limits.h>
8656 #else
8657 # include <assert.h>
8658 #endif
8660 #undef dlopen
8662 /* Override any gcc2 internal prototype to avoid an error. */
8663 #ifdef __cplusplus
8664 extern "C"
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8669 char dlopen ();
8670 /* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8674 choke me
8675 #else
8676 char (*f) () = dlopen;
8677 #endif
8678 #ifdef __cplusplus
8680 #endif
8683 main ()
8685 return f != dlopen;
8687 return 0;
8689 _ACEOF
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>conftest.er1
8693 ac_status=$?
8694 grep -v '^ *+' conftest.er1 >conftest.err
8695 rm -f conftest.er1
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try='test -z "$ac_c_werror_flag"
8700 || test ! -s conftest.err'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; } &&
8706 { ac_try='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_func_dlopen=yes
8713 else
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_func_dlopen=no
8719 rm -f conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8722 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8723 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8724 if test $ac_cv_func_dlopen = yes; then
8725 lt_cv_dlopen="dlopen"
8726 else
8727 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8728 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8729 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732 ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-ldl $LIBS"
8734 cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h. */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8741 /* Override any gcc2 internal prototype to avoid an error. */
8742 #ifdef __cplusplus
8743 extern "C"
8744 #endif
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8747 char dlopen ();
8749 main ()
8751 dlopen ();
8753 return 0;
8755 _ACEOF
8756 rm -f conftest.$ac_objext conftest$ac_exeext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest$ac_exeext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_lib_dl_dlopen=yes
8779 else
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_lib_dl_dlopen=no
8785 rm -f conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787 LIBS=$ac_check_lib_save_LIBS
8789 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8790 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8791 if test $ac_cv_lib_dl_dlopen = yes; then
8792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8793 else
8794 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8795 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799 ac_check_lib_save_LIBS=$LIBS
8800 LIBS="-lsvld $LIBS"
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8808 /* Override any gcc2 internal prototype to avoid an error. */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8814 char dlopen ();
8816 main ()
8818 dlopen ();
8820 return 0;
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
8828 rm -f conftest.er1
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try='test -z "$ac_c_werror_flag"
8833 || test ! -s conftest.err'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 (eval $ac_try) 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_cv_lib_svld_dlopen=yes
8846 else
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8850 ac_cv_lib_svld_dlopen=no
8852 rm -f conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8857 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8858 if test $ac_cv_lib_svld_dlopen = yes; then
8859 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8860 else
8861 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8862 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8863 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 ac_check_lib_save_LIBS=$LIBS
8867 LIBS="-ldld $LIBS"
8868 cat >conftest.$ac_ext <<_ACEOF
8869 /* confdefs.h. */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8875 /* Override any gcc2 internal prototype to avoid an error. */
8876 #ifdef __cplusplus
8877 extern "C"
8878 #endif
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8881 char dld_link ();
8883 main ()
8885 dld_link ();
8887 return 0;
8889 _ACEOF
8890 rm -f conftest.$ac_objext conftest$ac_exeext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892 (eval $ac_link) 2>conftest.er1
8893 ac_status=$?
8894 grep -v '^ *+' conftest.er1 >conftest.err
8895 rm -f conftest.er1
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -z "$ac_c_werror_flag"
8900 || test ! -s conftest.err'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; } &&
8906 { ac_try='test -s conftest$ac_exeext'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 (eval $ac_try) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_cv_lib_dld_dld_link=yes
8913 else
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ac_cv_lib_dld_dld_link=no
8919 rm -f conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921 LIBS=$ac_check_lib_save_LIBS
8923 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8924 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8925 if test $ac_cv_lib_dld_dld_link = yes; then
8926 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8945 esac
8947 if test "x$lt_cv_dlopen" != xno; then
8948 enable_dlopen=yes
8949 else
8950 enable_dlopen=no
8953 case $lt_cv_dlopen in
8954 dlopen)
8955 save_CPPFLAGS="$CPPFLAGS"
8956 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8958 save_LDFLAGS="$LDFLAGS"
8959 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8961 save_LIBS="$LIBS"
8962 LIBS="$lt_cv_dlopen_libs $LIBS"
8964 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8965 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8966 if test "${lt_cv_dlopen_self+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 else
8969 if test "$cross_compiling" = yes; then :
8970 lt_cv_dlopen_self=cross
8971 else
8972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8973 lt_status=$lt_dlunknown
8974 cat > conftest.$ac_ext <<EOF
8975 #line 8975 "configure"
8976 #include "confdefs.h"
8978 #if HAVE_DLFCN_H
8979 #include <dlfcn.h>
8980 #endif
8982 #include <stdio.h>
8984 #ifdef RTLD_GLOBAL
8985 # define LT_DLGLOBAL RTLD_GLOBAL
8986 #else
8987 # ifdef DL_GLOBAL
8988 # define LT_DLGLOBAL DL_GLOBAL
8989 # else
8990 # define LT_DLGLOBAL 0
8991 # endif
8992 #endif
8994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8995 find out it does not work in some platform. */
8996 #ifndef LT_DLLAZY_OR_NOW
8997 # ifdef RTLD_LAZY
8998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8999 # else
9000 # ifdef DL_LAZY
9001 # define LT_DLLAZY_OR_NOW DL_LAZY
9002 # else
9003 # ifdef RTLD_NOW
9004 # define LT_DLLAZY_OR_NOW RTLD_NOW
9005 # else
9006 # ifdef DL_NOW
9007 # define LT_DLLAZY_OR_NOW DL_NOW
9008 # else
9009 # define LT_DLLAZY_OR_NOW 0
9010 # endif
9011 # endif
9012 # endif
9013 # endif
9014 #endif
9016 #ifdef __cplusplus
9017 extern "C" void exit (int);
9018 #endif
9020 void fnord() { int i=42;}
9021 int main ()
9023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9024 int status = $lt_dlunknown;
9026 if (self)
9028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9030 /* dlclose (self); */
9033 exit (status);
9036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037 (eval $ac_link) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9041 (./conftest; exit; ) 2>/dev/null
9042 lt_status=$?
9043 case x$lt_status in
9044 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9045 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9046 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9047 esac
9048 else :
9049 # compilation failed
9050 lt_cv_dlopen_self=no
9053 rm -fr conftest*
9057 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9058 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9060 if test "x$lt_cv_dlopen_self" = xyes; then
9061 LDFLAGS="$LDFLAGS $link_static_flag"
9062 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9063 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9064 if test "${lt_cv_dlopen_self_static+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067 if test "$cross_compiling" = yes; then :
9068 lt_cv_dlopen_self_static=cross
9069 else
9070 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9071 lt_status=$lt_dlunknown
9072 cat > conftest.$ac_ext <<EOF
9073 #line 9073 "configure"
9074 #include "confdefs.h"
9076 #if HAVE_DLFCN_H
9077 #include <dlfcn.h>
9078 #endif
9080 #include <stdio.h>
9082 #ifdef RTLD_GLOBAL
9083 # define LT_DLGLOBAL RTLD_GLOBAL
9084 #else
9085 # ifdef DL_GLOBAL
9086 # define LT_DLGLOBAL DL_GLOBAL
9087 # else
9088 # define LT_DLGLOBAL 0
9089 # endif
9090 #endif
9092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9093 find out it does not work in some platform. */
9094 #ifndef LT_DLLAZY_OR_NOW
9095 # ifdef RTLD_LAZY
9096 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9097 # else
9098 # ifdef DL_LAZY
9099 # define LT_DLLAZY_OR_NOW DL_LAZY
9100 # else
9101 # ifdef RTLD_NOW
9102 # define LT_DLLAZY_OR_NOW RTLD_NOW
9103 # else
9104 # ifdef DL_NOW
9105 # define LT_DLLAZY_OR_NOW DL_NOW
9106 # else
9107 # define LT_DLLAZY_OR_NOW 0
9108 # endif
9109 # endif
9110 # endif
9111 # endif
9112 #endif
9114 #ifdef __cplusplus
9115 extern "C" void exit (int);
9116 #endif
9118 void fnord() { int i=42;}
9119 int main ()
9121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9122 int status = $lt_dlunknown;
9124 if (self)
9126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9127 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9128 /* dlclose (self); */
9131 exit (status);
9134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9135 (eval $ac_link) 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9139 (./conftest; exit; ) 2>/dev/null
9140 lt_status=$?
9141 case x$lt_status in
9142 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9143 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9144 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9145 esac
9146 else :
9147 # compilation failed
9148 lt_cv_dlopen_self_static=no
9151 rm -fr conftest*
9155 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9156 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9159 CPPFLAGS="$save_CPPFLAGS"
9160 LDFLAGS="$save_LDFLAGS"
9161 LIBS="$save_LIBS"
9163 esac
9165 case $lt_cv_dlopen_self in
9166 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9167 *) enable_dlopen_self=unknown ;;
9168 esac
9170 case $lt_cv_dlopen_self_static in
9171 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9172 *) enable_dlopen_self_static=unknown ;;
9173 esac
9177 # Report which librarie types wil actually be built
9178 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9179 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9180 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9181 echo "${ECHO_T}$can_build_shared" >&6
9183 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9184 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9185 test "$can_build_shared" = "no" && enable_shared=no
9187 # On AIX, shared libraries and static libraries use the same namespace, and
9188 # are all built from PIC.
9189 case "$host_os" in
9190 aix3*)
9191 test "$enable_shared" = yes && enable_static=no
9192 if test -n "$RANLIB"; then
9193 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9194 postinstall_cmds='$RANLIB $lib'
9198 aix4* | aix5*)
9199 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9200 test "$enable_shared" = yes && enable_static=no
9203 esac
9204 echo "$as_me:$LINENO: result: $enable_shared" >&5
9205 echo "${ECHO_T}$enable_shared" >&6
9207 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9208 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9209 # Make sure either enable_shared or enable_static is yes.
9210 test "$enable_shared" = yes || enable_static=yes
9211 echo "$as_me:$LINENO: result: $enable_static" >&5
9212 echo "${ECHO_T}$enable_static" >&6
9214 # The else clause should only fire when bootstrapping the
9215 # libtool distribution, otherwise you forgot to ship ltmain.sh
9216 # with your package, and you will get complaints that there are
9217 # no rules to generate ltmain.sh.
9218 if test -f "$ltmain"; then
9219 # See if we are running on zsh, and set the options which allow our commands through
9220 # without removal of \ escapes.
9221 if test -n "${ZSH_VERSION+set}" ; then
9222 setopt NO_GLOB_SUBST
9224 # Now quote all the things that may contain metacharacters while being
9225 # careful not to overquote the AC_SUBSTed values. We take copies of the
9226 # variables and quote the copies for generation of the libtool script.
9227 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9228 SED SHELL STRIP \
9229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9231 deplibs_check_method reload_flag reload_cmds need_locks \
9232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9233 lt_cv_sys_global_symbol_to_c_name_address \
9234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9235 old_postinstall_cmds old_postuninstall_cmds \
9236 compiler \
9237 CC \
9238 LD \
9239 lt_prog_compiler_wl \
9240 lt_prog_compiler_pic \
9241 lt_prog_compiler_static \
9242 lt_prog_compiler_no_builtin_flag \
9243 export_dynamic_flag_spec \
9244 thread_safe_flag_spec \
9245 whole_archive_flag_spec \
9246 enable_shared_with_static_runtimes \
9247 old_archive_cmds \
9248 old_archive_from_new_cmds \
9249 predep_objects \
9250 postdep_objects \
9251 predeps \
9252 postdeps \
9253 compiler_lib_search_path \
9254 archive_cmds \
9255 archive_expsym_cmds \
9256 postinstall_cmds \
9257 postuninstall_cmds \
9258 old_archive_from_expsyms_cmds \
9259 allow_undefined_flag \
9260 no_undefined_flag \
9261 export_symbols_cmds \
9262 hardcode_libdir_flag_spec \
9263 hardcode_libdir_flag_spec_ld \
9264 hardcode_libdir_separator \
9265 hardcode_automatic \
9266 module_cmds \
9267 module_expsym_cmds \
9268 lt_cv_prog_compiler_c_o \
9269 exclude_expsyms \
9270 include_expsyms; do
9272 case $var in
9273 old_archive_cmds | \
9274 old_archive_from_new_cmds | \
9275 archive_cmds | \
9276 archive_expsym_cmds | \
9277 module_cmds | \
9278 module_expsym_cmds | \
9279 old_archive_from_expsyms_cmds | \
9280 export_symbols_cmds | \
9281 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9282 postinstall_cmds | postuninstall_cmds | \
9283 old_postinstall_cmds | old_postuninstall_cmds | \
9284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9285 # Double-quote double-evaled strings.
9286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9291 esac
9292 done
9294 case $lt_echo in
9295 *'\$0 --fallback-echo"')
9296 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9298 esac
9300 cfgfile="${ofile}T"
9301 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9302 $rm -f "$cfgfile"
9303 { echo "$as_me:$LINENO: creating $ofile" >&5
9304 echo "$as_me: creating $ofile" >&6;}
9306 cat <<__EOF__ >> "$cfgfile"
9307 #! $SHELL
9309 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9310 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9311 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9313 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9314 # Free Software Foundation, Inc.
9316 # This file is part of GNU Libtool:
9317 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9319 # This program is free software; you can redistribute it and/or modify
9320 # it under the terms of the GNU General Public License as published by
9321 # the Free Software Foundation; either version 2 of the License, or
9322 # (at your option) any later version.
9324 # This program is distributed in the hope that it will be useful, but
9325 # WITHOUT ANY WARRANTY; without even the implied warranty of
9326 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9327 # General Public License for more details.
9329 # You should have received a copy of the GNU General Public License
9330 # along with this program; if not, write to the Free Software
9331 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
9332 # USA.
9334 # As a special exception to the GNU General Public License, if you
9335 # distribute this file as part of a program that contains a
9336 # configuration script generated by Autoconf, you may include it under
9337 # the same distribution terms that you use for the rest of that program.
9339 # A sed program that does not truncate output.
9340 SED=$lt_SED
9342 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9343 Xsed="$SED -e s/^X//"
9345 # The HP-UX ksh and POSIX shell print the target directory to stdout
9346 # if CDPATH is set.
9347 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9349 # The names of the tagged configurations supported by this script.
9350 available_tags=
9352 # ### BEGIN LIBTOOL CONFIG
9354 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9356 # Shell to use when invoking shell scripts.
9357 SHELL=$lt_SHELL
9359 # Whether or not to build shared libraries.
9360 build_libtool_libs=$enable_shared
9362 # Whether or not to build static libraries.
9363 build_old_libs=$enable_static
9365 # Whether or not to add -lc for building shared libraries.
9366 build_libtool_need_lc=$archive_cmds_need_lc
9368 # Whether or not to disallow shared libs when runtime libs are static
9369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9371 # Whether or not to optimize for fast installation.
9372 fast_install=$enable_fast_install
9374 # The host system.
9375 host_alias=$host_alias
9376 host=$host
9377 host_os=$host_os
9379 # The build system.
9380 build_alias=$build_alias
9381 build=$build
9382 build_os=$build_os
9384 # An echo program that does not interpret backslashes.
9385 echo=$lt_echo
9387 # The archiver.
9388 AR=$lt_AR
9389 AR_FLAGS=$lt_AR_FLAGS
9391 # A C compiler.
9392 LTCC=$lt_LTCC
9394 # A language-specific compiler.
9395 CC=$lt_compiler
9397 # Is the compiler the GNU C compiler?
9398 with_gcc=$GCC
9400 # An ERE matcher.
9401 EGREP=$lt_EGREP
9403 # The linker used to build libraries.
9404 LD=$lt_LD
9406 # Whether we need hard or soft links.
9407 LN_S=$lt_LN_S
9409 # A BSD-compatible nm program.
9410 NM=$lt_NM
9412 # A symbol stripping program
9413 STRIP=$lt_STRIP
9415 # Used to examine libraries when file_magic_cmd begins "file"
9416 MAGIC_CMD=$MAGIC_CMD
9418 # Used on cygwin: DLL creation program.
9419 DLLTOOL="$DLLTOOL"
9421 # Used on cygwin: object dumper.
9422 OBJDUMP="$OBJDUMP"
9424 # Used on cygwin: assembler.
9425 AS="$AS"
9427 # The name of the directory that contains temporary libtool files.
9428 objdir=$objdir
9430 # How to create reloadable object files.
9431 reload_flag=$lt_reload_flag
9432 reload_cmds=$lt_reload_cmds
9434 # How to pass a linker flag through the compiler.
9435 wl=$lt_lt_prog_compiler_wl
9437 # Object file suffix (normally "o").
9438 objext="$ac_objext"
9440 # Old archive suffix (normally "a").
9441 libext="$libext"
9443 # Shared library suffix (normally ".so").
9444 shrext_cmds='$shrext_cmds'
9446 # Executable file suffix (normally "").
9447 exeext="$exeext"
9449 # Additional compiler flags for building library objects.
9450 pic_flag=$lt_lt_prog_compiler_pic
9451 pic_mode=$pic_mode
9453 # What is the maximum length of a command?
9454 max_cmd_len=$lt_cv_sys_max_cmd_len
9456 # Does compiler simultaneously support -c and -o options?
9457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9459 # Must we lock files when doing compilation ?
9460 need_locks=$lt_need_locks
9462 # Do we need the lib prefix for modules?
9463 need_lib_prefix=$need_lib_prefix
9465 # Do we need a version for libraries?
9466 need_version=$need_version
9468 # Whether dlopen is supported.
9469 dlopen_support=$enable_dlopen
9471 # Whether dlopen of programs is supported.
9472 dlopen_self=$enable_dlopen_self
9474 # Whether dlopen of statically linked programs is supported.
9475 dlopen_self_static=$enable_dlopen_self_static
9477 # Compiler flag to prevent dynamic linking.
9478 link_static_flag=$lt_lt_prog_compiler_static
9480 # Compiler flag to turn off builtin functions.
9481 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9483 # Compiler flag to allow reflexive dlopens.
9484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9486 # Compiler flag to generate shared objects directly from archives.
9487 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9489 # Compiler flag to generate thread-safe objects.
9490 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9492 # Library versioning type.
9493 version_type=$version_type
9495 # Format of library name prefix.
9496 libname_spec=$lt_libname_spec
9498 # List of archive names. First name is the real one, the rest are links.
9499 # The last name is the one that the linker finds with -lNAME.
9500 library_names_spec=$lt_library_names_spec
9502 # The coded name of the library, if different from the real name.
9503 soname_spec=$lt_soname_spec
9505 # Commands used to build and install an old-style archive.
9506 RANLIB=$lt_RANLIB
9507 old_archive_cmds=$lt_old_archive_cmds
9508 old_postinstall_cmds=$lt_old_postinstall_cmds
9509 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9511 # Create an old-style archive from a shared archive.
9512 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9514 # Create a temporary old-style archive to link instead of a shared archive.
9515 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9517 # Commands used to build and install a shared archive.
9518 archive_cmds=$lt_archive_cmds
9519 archive_expsym_cmds=$lt_archive_expsym_cmds
9520 postinstall_cmds=$lt_postinstall_cmds
9521 postuninstall_cmds=$lt_postuninstall_cmds
9523 # Commands used to build a loadable module (assumed same as above if empty)
9524 module_cmds=$lt_module_cmds
9525 module_expsym_cmds=$lt_module_expsym_cmds
9527 # Commands to strip libraries.
9528 old_striplib=$lt_old_striplib
9529 striplib=$lt_striplib
9531 # Dependencies to place before the objects being linked to create a
9532 # shared library.
9533 predep_objects=$lt_predep_objects
9535 # Dependencies to place after the objects being linked to create a
9536 # shared library.
9537 postdep_objects=$lt_postdep_objects
9539 # Dependencies to place before the objects being linked to create a
9540 # shared library.
9541 predeps=$lt_predeps
9543 # Dependencies to place after the objects being linked to create a
9544 # shared library.
9545 postdeps=$lt_postdeps
9547 # The library search path used internally by the compiler when linking
9548 # a shared library.
9549 compiler_lib_search_path=$lt_compiler_lib_search_path
9551 # Method to check whether dependent libraries are shared objects.
9552 deplibs_check_method=$lt_deplibs_check_method
9554 # Command to use when deplibs_check_method == file_magic.
9555 file_magic_cmd=$lt_file_magic_cmd
9557 # Flag that allows shared libraries with undefined symbols to be built.
9558 allow_undefined_flag=$lt_allow_undefined_flag
9560 # Flag that forces no undefined symbols.
9561 no_undefined_flag=$lt_no_undefined_flag
9563 # Commands used to finish a libtool library installation in a directory.
9564 finish_cmds=$lt_finish_cmds
9566 # Same as above, but a single script fragment to be evaled but not shown.
9567 finish_eval=$lt_finish_eval
9569 # Take the output of nm and produce a listing of raw symbols and C names.
9570 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9572 # Transform the output of nm in a proper C declaration
9573 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9575 # Transform the output of nm in a C name address pair
9576 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9578 # This is the shared library runtime path variable.
9579 runpath_var=$runpath_var
9581 # This is the shared library path variable.
9582 shlibpath_var=$shlibpath_var
9584 # Is shlibpath searched before the hard-coded library search path?
9585 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9587 # How to hardcode a shared library path into an executable.
9588 hardcode_action=$hardcode_action
9590 # Whether we should hardcode library paths into libraries.
9591 hardcode_into_libs=$hardcode_into_libs
9593 # Flag to hardcode \$libdir into a binary during linking.
9594 # This must work even if \$libdir does not exist.
9595 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9597 # If ld is used when linking, flag to hardcode \$libdir into
9598 # a binary during linking. This must work even if \$libdir does
9599 # not exist.
9600 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9602 # Whether we need a single -rpath flag with a separated argument.
9603 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9605 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9606 # resulting binary.
9607 hardcode_direct=$hardcode_direct
9609 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9610 # resulting binary.
9611 hardcode_minus_L=$hardcode_minus_L
9613 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9614 # the resulting binary.
9615 hardcode_shlibpath_var=$hardcode_shlibpath_var
9617 # Set to yes if building a shared library automatically hardcodes DIR into the library
9618 # and all subsequent libraries and executables linked against it.
9619 hardcode_automatic=$hardcode_automatic
9621 # Variables whose values should be saved in libtool wrapper scripts and
9622 # restored at relink time.
9623 variables_saved_for_relink="$variables_saved_for_relink"
9625 # Whether libtool must link a program against all its dependency libraries.
9626 link_all_deplibs=$link_all_deplibs
9628 # Compile-time system search path for libraries
9629 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9631 # Run-time system search path for libraries
9632 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9634 # Fix the shell variable \$srcfile for the compiler.
9635 fix_srcfile_path="$fix_srcfile_path"
9637 # Set to yes if exported symbols are required.
9638 always_export_symbols=$always_export_symbols
9640 # The commands to list exported symbols.
9641 export_symbols_cmds=$lt_export_symbols_cmds
9643 # The commands to extract the exported symbol list from a shared archive.
9644 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9646 # Symbols that should not be listed in the preloaded symbols.
9647 exclude_expsyms=$lt_exclude_expsyms
9649 # Symbols that must always be exported.
9650 include_expsyms=$lt_include_expsyms
9652 # ### END LIBTOOL CONFIG
9654 __EOF__
9657 case $host_os in
9658 aix3*)
9659 cat <<\EOF >> "$cfgfile"
9661 # AIX sometimes has problems with the GCC collect2 program. For some
9662 # reason, if we set the COLLECT_NAMES environment variable, the problems
9663 # vanish in a puff of smoke.
9664 if test "X${COLLECT_NAMES+set}" != Xset; then
9665 COLLECT_NAMES=
9666 export COLLECT_NAMES
9670 esac
9672 # We use sed instead of cat because bash on DJGPP gets confused if
9673 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9674 # text mode, it properly converts lines to CR/LF. This bash problem
9675 # is reportedly fixed, but why not run on old versions too?
9676 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9678 mv -f "$cfgfile" "$ofile" || \
9679 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9680 chmod +x "$ofile"
9682 else
9683 # If there is no Makefile yet, we rely on a make rule to execute
9684 # `config.status --recheck' to rerun these tests and create the
9685 # libtool script then.
9686 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9687 if test -f "$ltmain_in"; then
9688 test -f Makefile && make "$ltmain"
9693 ac_ext=c
9694 ac_cpp='$CPP $CPPFLAGS'
9695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9699 CC="$lt_save_CC"
9702 # Check whether --with-tags or --without-tags was given.
9703 if test "${with_tags+set}" = set; then
9704 withval="$with_tags"
9705 tagnames="$withval"
9708 if test -f "$ltmain" && test -n "$tagnames"; then
9709 if test ! -f "${ofile}"; then
9710 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9711 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9714 if test -z "$LTCC"; then
9715 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9716 if test -z "$LTCC"; then
9717 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9718 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9719 else
9720 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9721 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9725 # Extract list of available tagged configurations in $ofile.
9726 # Note that this assumes the entire list is on one line.
9727 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9730 for tagname in $tagnames; do
9731 IFS="$lt_save_ifs"
9732 # Check whether tagname contains only valid characters
9733 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9734 "") ;;
9735 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9736 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9737 { (exit 1); exit 1; }; }
9739 esac
9741 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9742 then
9743 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9744 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9745 { (exit 1); exit 1; }; }
9748 # Update the list of available tags.
9749 if test -n "$tagname"; then
9750 echo appending configuration tag \"$tagname\" to $ofile
9752 case $tagname in
9753 CXX)
9754 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9755 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9756 (test "X$CXX" != "Xg++"))) ; then
9757 ac_ext=cc
9758 ac_cpp='$CXXCPP $CPPFLAGS'
9759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9766 archive_cmds_need_lc_CXX=no
9767 allow_undefined_flag_CXX=
9768 always_export_symbols_CXX=no
9769 archive_expsym_cmds_CXX=
9770 export_dynamic_flag_spec_CXX=
9771 hardcode_direct_CXX=no
9772 hardcode_libdir_flag_spec_CXX=
9773 hardcode_libdir_flag_spec_ld_CXX=
9774 hardcode_libdir_separator_CXX=
9775 hardcode_minus_L_CXX=no
9776 hardcode_automatic_CXX=no
9777 module_cmds_CXX=
9778 module_expsym_cmds_CXX=
9779 link_all_deplibs_CXX=unknown
9780 old_archive_cmds_CXX=$old_archive_cmds
9781 no_undefined_flag_CXX=
9782 whole_archive_flag_spec_CXX=
9783 enable_shared_with_static_runtimes_CXX=no
9785 # Dependencies to place before and after the object being linked:
9786 predep_objects_CXX=
9787 postdep_objects_CXX=
9788 predeps_CXX=
9789 postdeps_CXX=
9790 compiler_lib_search_path_CXX=
9792 # Source file extension for C++ test sources.
9793 ac_ext=cc
9795 # Object file extension for compiled C++ test sources.
9796 objext=o
9797 objext_CXX=$objext
9799 # Code to be used in simple compile tests
9800 lt_simple_compile_test_code="int some_variable = 0;\n"
9802 # Code to be used in simple link tests
9803 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9807 # If no C compiler was specified, use CC.
9808 LTCC=${LTCC-"$CC"}
9810 # Allow CC to be a program name with arguments.
9811 compiler=$CC
9814 # Allow CC to be a program name with arguments.
9815 lt_save_CC=$CC
9816 lt_save_LD=$LD
9817 lt_save_GCC=$GCC
9818 GCC=$GXX
9819 lt_save_with_gnu_ld=$with_gnu_ld
9820 lt_save_path_LD=$lt_cv_path_LD
9821 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9822 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9823 else
9824 unset lt_cv_prog_gnu_ld
9826 if test -n "${lt_cv_path_LDCXX+set}"; then
9827 lt_cv_path_LD=$lt_cv_path_LDCXX
9828 else
9829 unset lt_cv_path_LD
9831 test -z "${LDCXX+set}" || LD=$LDCXX
9832 CC=${CXX-"c++"}
9833 compiler=$CC
9834 compiler_CXX=$CC
9835 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9837 # We don't want -fno-exception wen compiling C++ code, so set the
9838 # no_builtin_flag separately
9839 if test "$GXX" = yes; then
9840 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9841 else
9842 lt_prog_compiler_no_builtin_flag_CXX=
9845 if test "$GXX" = yes; then
9846 # Set up default GNU C++ configuration
9849 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9850 if test "${with_gnu_ld+set}" = set; then
9851 withval="$with_gnu_ld"
9852 test "$withval" = no || with_gnu_ld=yes
9853 else
9854 with_gnu_ld=no
9856 ac_prog=ld
9857 if test "$GCC" = yes; then
9858 # Check if gcc -print-prog-name=ld gives a path.
9859 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9860 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9861 case $host in
9862 *-*-mingw*)
9863 # gcc leaves a trailing carriage return which upsets mingw
9864 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9866 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9867 esac
9868 case $ac_prog in
9869 # Accept absolute paths.
9870 [\\/]* | ?:[\\/]*)
9871 re_direlt='/[^/][^/]*/\.\./'
9872 # Canonicalize the pathname of ld
9873 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9874 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9875 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9876 done
9877 test -z "$LD" && LD="$ac_prog"
9880 # If it fails, then pretend we aren't using GCC.
9881 ac_prog=ld
9884 # If it is relative, then search for the first ld in PATH.
9885 with_gnu_ld=unknown
9887 esac
9888 elif test "$with_gnu_ld" = yes; then
9889 echo "$as_me:$LINENO: checking for GNU ld" >&5
9890 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9891 else
9892 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9893 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9895 if test "${lt_cv_path_LD+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 if test -z "$LD"; then
9899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9900 for ac_dir in $PATH; do
9901 IFS="$lt_save_ifs"
9902 test -z "$ac_dir" && ac_dir=.
9903 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9904 lt_cv_path_LD="$ac_dir/$ac_prog"
9905 # Check to see if the program is GNU ld. I'd rather use --version,
9906 # but apparently some GNU ld's only accept -v.
9907 # Break only if it was the GNU/non-GNU ld that we prefer.
9908 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9909 *GNU* | *'with BFD'*)
9910 test "$with_gnu_ld" != no && break
9913 test "$with_gnu_ld" != yes && break
9915 esac
9917 done
9918 IFS="$lt_save_ifs"
9919 else
9920 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9924 LD="$lt_cv_path_LD"
9925 if test -n "$LD"; then
9926 echo "$as_me:$LINENO: result: $LD" >&5
9927 echo "${ECHO_T}$LD" >&6
9928 else
9929 echo "$as_me:$LINENO: result: no" >&5
9930 echo "${ECHO_T}no" >&6
9932 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9933 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9934 { (exit 1); exit 1; }; }
9935 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9936 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9937 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9941 case `$LD -v 2>&1 </dev/null` in
9942 *GNU* | *'with BFD'*)
9943 lt_cv_prog_gnu_ld=yes
9946 lt_cv_prog_gnu_ld=no
9948 esac
9950 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9951 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9952 with_gnu_ld=$lt_cv_prog_gnu_ld
9956 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9957 # archiving commands below assume that GNU ld is being used.
9958 if test "$with_gnu_ld" = yes; then
9959 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9960 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9962 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9965 # If archive_cmds runs LD, not CC, wlarc should be empty
9966 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9967 # investigate it a little bit more. (MM)
9968 wlarc='${wl}'
9970 # ancient GNU ld didn't support --whole-archive et. al.
9971 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9972 grep 'no-whole-archive' > /dev/null; then
9973 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9974 else
9975 whole_archive_flag_spec_CXX=
9977 else
9978 with_gnu_ld=no
9979 wlarc=
9981 # A generic and very simple default shared library creation
9982 # command for GNU C++ for the case where it uses the native
9983 # linker, instead of GNU ld. If possible, this setting should
9984 # overridden to take advantage of the native linker features on
9985 # the platform it is being used on.
9986 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9989 # Commands to make compiler produce verbose output that lists
9990 # what "hidden" libraries, object files and flags are used when
9991 # linking a shared library.
9992 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9994 else
9995 GXX=no
9996 with_gnu_ld=no
9997 wlarc=
10000 # PORTME: fill in a description of your system's C++ link characteristics
10001 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10003 ld_shlibs_CXX=yes
10004 case $host_os in
10005 aix3*)
10006 # FIXME: insert proper C++ library support
10007 ld_shlibs_CXX=no
10009 aix4* | aix5*)
10010 if test "$host_cpu" = ia64; then
10011 # On IA64, the linker does run time linking by default, so we don't
10012 # have to do anything special.
10013 aix_use_runtimelinking=no
10014 exp_sym_flag='-Bexport'
10015 no_entry_flag=""
10016 else
10017 aix_use_runtimelinking=no
10019 # Test if we are trying to use run time linking or normal
10020 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10021 # need to do runtime linking.
10022 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10023 for ld_flag in $LDFLAGS; do
10024 case $ld_flag in
10025 *-brtl*)
10026 aix_use_runtimelinking=yes
10027 break
10029 esac
10030 done
10031 esac
10033 exp_sym_flag='-bexport'
10034 no_entry_flag='-bnoentry'
10037 # When large executables or shared objects are built, AIX ld can
10038 # have problems creating the table of contents. If linking a library
10039 # or program results in "error TOC overflow" add -mminimal-toc to
10040 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10041 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10043 archive_cmds_CXX=''
10044 hardcode_direct_CXX=yes
10045 hardcode_libdir_separator_CXX=':'
10046 link_all_deplibs_CXX=yes
10048 if test "$GXX" = yes; then
10049 case $host_os in aix4.[012]|aix4.[012].*)
10050 # We only want to do this on AIX 4.2 and lower, the check
10051 # below for broken collect2 doesn't work under 4.3+
10052 collect2name=`${CC} -print-prog-name=collect2`
10053 if test -f "$collect2name" && \
10054 strings "$collect2name" | grep resolve_lib_name >/dev/null
10055 then
10056 # We have reworked collect2
10057 hardcode_direct_CXX=yes
10058 else
10059 # We have old collect2
10060 hardcode_direct_CXX=unsupported
10061 # It fails to find uninstalled libraries when the uninstalled
10062 # path is not listed in the libpath. Setting hardcode_minus_L
10063 # to unsupported forces relinking
10064 hardcode_minus_L_CXX=yes
10065 hardcode_libdir_flag_spec_CXX='-L$libdir'
10066 hardcode_libdir_separator_CXX=
10068 esac
10069 shared_flag='-shared'
10070 if test "$aix_use_runtimelinking" = yes; then
10071 shared_flag="$shared_flag "'${wl}-G'
10073 else
10074 # not using gcc
10075 if test "$host_cpu" = ia64; then
10076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10077 # chokes on -Wl,-G. The following line is correct:
10078 shared_flag='-G'
10079 else
10080 if test "$aix_use_runtimelinking" = yes; then
10081 shared_flag='${wl}-G'
10082 else
10083 shared_flag='${wl}-bM:SRE'
10088 # It seems that -bexpall does not export symbols beginning with
10089 # underscore (_), so it is better to generate a list of symbols to export.
10090 always_export_symbols_CXX=yes
10091 if test "$aix_use_runtimelinking" = yes; then
10092 # Warning - without using the other runtime loading flags (-brtl),
10093 # -berok will link without error, but may produce a broken library.
10094 allow_undefined_flag_CXX='-berok'
10095 # Determine the default libpath from the value encoded in an empty executable.
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10104 main ()
10108 return 0;
10110 _ACEOF
10111 rm -f conftest.$ac_objext conftest$ac_exeext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10113 (eval $ac_link) 2>conftest.er1
10114 ac_status=$?
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -z "$ac_cxx_werror_flag"
10121 || test ! -s conftest.err'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; } &&
10127 { ac_try='test -s conftest$ac_exeext'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10136 # Check for a 64-bit object if we didn't find anything.
10137 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10138 }'`; fi
10139 else
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10144 rm -f conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
10146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10148 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10150 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10151 else
10152 if test "$host_cpu" = ia64; then
10153 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10154 allow_undefined_flag_CXX="-z nodefs"
10155 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10156 else
10157 # Determine the default libpath from the value encoded in an empty executable.
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10166 main ()
10170 return 0;
10172 _ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try='test -z "$ac_cxx_werror_flag"
10183 || test ! -s conftest.err'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest$ac_exeext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10198 # Check for a 64-bit object if we didn't find anything.
10199 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10200 }'`; fi
10201 else
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10206 rm -f conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10210 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10211 # Warning - without using the other run time loading flags,
10212 # -berok will link without error, but may produce a broken library.
10213 no_undefined_flag_CXX=' ${wl}-bernotok'
10214 allow_undefined_flag_CXX=' ${wl}-berok'
10215 # -bexpall does not export symbols beginning with underscore (_)
10216 always_export_symbols_CXX=yes
10217 # Exported symbols can be pulled into shared objects from archives
10218 whole_archive_flag_spec_CXX=' '
10219 archive_cmds_need_lc_CXX=yes
10220 # This is similar to how AIX traditionally builds it's shared libraries.
10221 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10225 chorus*)
10226 case $cc_basename in
10228 # FIXME: insert proper C++ library support
10229 ld_shlibs_CXX=no
10231 esac
10235 cygwin* | mingw* | pw32*)
10236 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10237 # as there is no search path for DLLs.
10238 hardcode_libdir_flag_spec_CXX='-L$libdir'
10239 allow_undefined_flag_CXX=unsupported
10240 always_export_symbols_CXX=no
10241 enable_shared_with_static_runtimes_CXX=yes
10243 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10244 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10245 # If the export-symbols file already is a .def file (1st line
10246 # is EXPORTS), use it as is; otherwise, prepend...
10247 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10248 cp $export_symbols $output_objdir/$soname.def;
10249 else
10250 echo EXPORTS > $output_objdir/$soname.def;
10251 cat $export_symbols >> $output_objdir/$soname.def;
10253 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10254 else
10255 ld_shlibs_CXX=no
10258 darwin* | rhapsody*)
10259 case "$host_os" in
10260 rhapsody* | darwin1.[012])
10261 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10263 *) # Darwin 1.3 on
10264 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10265 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10266 else
10267 case ${MACOSX_DEPLOYMENT_TARGET} in
10268 10.[012])
10269 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10271 10.*)
10272 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10274 esac
10277 esac
10278 archive_cmds_need_lc_CXX=no
10279 hardcode_direct_CXX=no
10280 hardcode_automatic_CXX=yes
10281 hardcode_shlibpath_var_CXX=unsupported
10282 whole_archive_flag_spec_CXX=''
10283 link_all_deplibs_CXX=yes
10285 if test "$GXX" = yes ; then
10286 lt_int_apple_cc_single_mod=no
10287 output_verbose_link_cmd='echo'
10288 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10289 lt_int_apple_cc_single_mod=yes
10291 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10292 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10293 else
10294 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10296 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10297 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10298 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10299 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10300 else
10301 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10303 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10304 else
10305 case "$cc_basename" in
10306 xlc*)
10307 output_verbose_link_cmd='echo'
10308 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10309 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10310 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10311 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10312 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10315 ld_shlibs_CXX=no
10317 esac
10321 dgux*)
10322 case $cc_basename in
10323 ec++)
10324 # FIXME: insert proper C++ library support
10325 ld_shlibs_CXX=no
10327 ghcx)
10328 # Green Hills C++ Compiler
10329 # FIXME: insert proper C++ library support
10330 ld_shlibs_CXX=no
10333 # FIXME: insert proper C++ library support
10334 ld_shlibs_CXX=no
10336 esac
10338 freebsd[12]*)
10339 # C++ shared libraries reported to be fairly broken before switch to ELF
10340 ld_shlibs_CXX=no
10342 freebsd-elf*)
10343 archive_cmds_need_lc_CXX=no
10345 freebsd* | kfreebsd*-gnu | dragonfly*)
10346 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10347 # conventions
10348 ld_shlibs_CXX=yes
10350 gnu*)
10352 hpux9*)
10353 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10354 hardcode_libdir_separator_CXX=:
10355 export_dynamic_flag_spec_CXX='${wl}-E'
10356 hardcode_direct_CXX=yes
10357 hardcode_minus_L_CXX=yes # Not in the search PATH,
10358 # but as the default
10359 # location of the library.
10361 case $cc_basename in
10363 # FIXME: insert proper C++ library support
10364 ld_shlibs_CXX=no
10366 aCC)
10367 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10368 # Commands to make compiler produce verbose output that lists
10369 # what "hidden" libraries, object files and flags are used when
10370 # linking a shared library.
10372 # There doesn't appear to be a way to prevent this compiler from
10373 # explicitly linking system object files so we need to strip them
10374 # from the output so that they don't get included in the library
10375 # dependencies.
10376 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10379 if test "$GXX" = yes; then
10380 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10381 else
10382 # FIXME: insert proper C++ library support
10383 ld_shlibs_CXX=no
10386 esac
10388 hpux10*|hpux11*)
10389 if test $with_gnu_ld = no; then
10390 case "$host_cpu" in
10391 hppa*64*)
10392 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10393 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10394 hardcode_libdir_separator_CXX=:
10396 ia64*)
10397 hardcode_libdir_flag_spec_CXX='-L$libdir'
10400 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10401 hardcode_libdir_separator_CXX=:
10402 export_dynamic_flag_spec_CXX='${wl}-E'
10404 esac
10406 case "$host_cpu" in
10407 hppa*64*)
10408 hardcode_direct_CXX=no
10409 hardcode_shlibpath_var_CXX=no
10411 ia64*)
10412 hardcode_direct_CXX=no
10413 hardcode_shlibpath_var_CXX=no
10414 hardcode_minus_L_CXX=yes # Not in the search PATH,
10415 # but as the default
10416 # location of the library.
10419 hardcode_direct_CXX=yes
10420 hardcode_minus_L_CXX=yes # Not in the search PATH,
10421 # but as the default
10422 # location of the library.
10424 esac
10426 case $cc_basename in
10428 # FIXME: insert proper C++ library support
10429 ld_shlibs_CXX=no
10431 aCC)
10432 case "$host_cpu" in
10433 hppa*64*|ia64*)
10434 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10437 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10439 esac
10440 # Commands to make compiler produce verbose output that lists
10441 # what "hidden" libraries, object files and flags are used when
10442 # linking a shared library.
10444 # There doesn't appear to be a way to prevent this compiler from
10445 # explicitly linking system object files so we need to strip them
10446 # from the output so that they don't get included in the library
10447 # dependencies.
10448 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10451 if test "$GXX" = yes; then
10452 if test $with_gnu_ld = no; then
10453 case "$host_cpu" in
10454 ia64*|hppa*64*)
10455 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10458 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10460 esac
10462 else
10463 # FIXME: insert proper C++ library support
10464 ld_shlibs_CXX=no
10467 esac
10469 irix5* | irix6*)
10470 case $cc_basename in
10472 # SGI C++
10473 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10475 # Archives containing C++ object files must be created using
10476 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10477 # necessary to make sure instantiated templates are included
10478 # in the archive.
10479 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10482 if test "$GXX" = yes; then
10483 if test "$with_gnu_ld" = no; then
10484 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10485 else
10486 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10489 link_all_deplibs_CXX=yes
10491 esac
10492 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10493 hardcode_libdir_separator_CXX=:
10495 linux*)
10496 case $cc_basename in
10497 KCC)
10498 # Kuck and Associates, Inc. (KAI) C++ Compiler
10500 # KCC will only create a shared library if the output file
10501 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10502 # to its proper name (with version) after linking.
10503 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10504 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10505 # Commands to make compiler produce verbose output that lists
10506 # what "hidden" libraries, object files and flags are used when
10507 # linking a shared library.
10509 # There doesn't appear to be a way to prevent this compiler from
10510 # explicitly linking system object files so we need to strip them
10511 # from the output so that they don't get included in the library
10512 # dependencies.
10513 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10515 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10516 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10518 # Archives containing C++ object files must be created using
10519 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10520 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10522 icpc)
10523 # Intel C++
10524 with_gnu_ld=yes
10525 # version 8.0 and above of icpc choke on multiply defined symbols
10526 # if we add $predep_objects and $postdep_objects, however 7.1 and
10527 # earlier do not add the objects themselves.
10528 case `$CC -V 2>&1` in
10529 *"Version 7."*)
10530 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10531 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10533 *) # Version 8.0 or newer
10534 tmp_idyn=
10535 case $host_cpu in
10536 ia64*) tmp_idyn=' -i_dynamic';;
10537 esac
10538 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10539 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10541 esac
10542 archive_cmds_need_lc_CXX=no
10543 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10544 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10545 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10547 pgCC)
10548 # Portland Group C++ compiler
10549 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10550 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10552 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10553 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10555 cxx)
10556 # Compaq C++
10557 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10558 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10560 runpath_var=LD_RUN_PATH
10561 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10562 hardcode_libdir_separator_CXX=:
10564 # Commands to make compiler produce verbose output that lists
10565 # what "hidden" libraries, object files and flags are used when
10566 # linking a shared library.
10568 # There doesn't appear to be a way to prevent this compiler from
10569 # explicitly linking system object files so we need to strip them
10570 # from the output so that they don't get included in the library
10571 # dependencies.
10572 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10574 esac
10576 lynxos*)
10577 # FIXME: insert proper C++ library support
10578 ld_shlibs_CXX=no
10580 m88k*)
10581 # FIXME: insert proper C++ library support
10582 ld_shlibs_CXX=no
10584 mvs*)
10585 case $cc_basename in
10586 cxx)
10587 # FIXME: insert proper C++ library support
10588 ld_shlibs_CXX=no
10591 # FIXME: insert proper C++ library support
10592 ld_shlibs_CXX=no
10594 esac
10596 netbsd*)
10597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10598 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10599 wlarc=
10600 hardcode_libdir_flag_spec_CXX='-R$libdir'
10601 hardcode_direct_CXX=yes
10602 hardcode_shlibpath_var_CXX=no
10604 # Workaround some broken pre-1.5 toolchains
10605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10607 openbsd2*)
10608 # C++ shared libraries are fairly broken
10609 ld_shlibs_CXX=no
10611 openbsd*)
10612 hardcode_direct_CXX=yes
10613 hardcode_shlibpath_var_CXX=no
10614 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10617 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10618 export_dynamic_flag_spec_CXX='${wl}-E'
10619 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10621 output_verbose_link_cmd='echo'
10623 osf3*)
10624 case $cc_basename in
10625 KCC)
10626 # Kuck and Associates, Inc. (KAI) C++ Compiler
10628 # KCC will only create a shared library if the output file
10629 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10630 # to its proper name (with version) after linking.
10631 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10634 hardcode_libdir_separator_CXX=:
10636 # Archives containing C++ object files must be created using
10637 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10638 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10641 RCC)
10642 # Rational C++ 2.4.1
10643 # FIXME: insert proper C++ library support
10644 ld_shlibs_CXX=no
10646 cxx)
10647 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10648 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10651 hardcode_libdir_separator_CXX=:
10653 # Commands to make compiler produce verbose output that lists
10654 # what "hidden" libraries, object files and flags are used when
10655 # linking a shared library.
10657 # There doesn't appear to be a way to prevent this compiler from
10658 # explicitly linking system object files so we need to strip them
10659 # from the output so that they don't get included in the library
10660 # dependencies.
10661 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10664 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10665 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10666 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10668 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10669 hardcode_libdir_separator_CXX=:
10671 # Commands to make compiler produce verbose output that lists
10672 # what "hidden" libraries, object files and flags are used when
10673 # linking a shared library.
10674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10676 else
10677 # FIXME: insert proper C++ library support
10678 ld_shlibs_CXX=no
10681 esac
10683 osf4* | osf5*)
10684 case $cc_basename in
10685 KCC)
10686 # Kuck and Associates, Inc. (KAI) C++ Compiler
10688 # KCC will only create a shared library if the output file
10689 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10690 # to its proper name (with version) after linking.
10691 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10694 hardcode_libdir_separator_CXX=:
10696 # Archives containing C++ object files must be created using
10697 # the KAI C++ compiler.
10698 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10700 RCC)
10701 # Rational C++ 2.4.1
10702 # FIXME: insert proper C++ library support
10703 ld_shlibs_CXX=no
10705 cxx)
10706 allow_undefined_flag_CXX=' -expect_unresolved \*'
10707 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10708 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10709 echo "-hidden">> $lib.exp~
10710 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10711 $rm $lib.exp'
10713 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10714 hardcode_libdir_separator_CXX=:
10716 # Commands to make compiler produce verbose output that lists
10717 # what "hidden" libraries, object files and flags are used when
10718 # linking a shared library.
10720 # There doesn't appear to be a way to prevent this compiler from
10721 # explicitly linking system object files so we need to strip them
10722 # from the output so that they don't get included in the library
10723 # dependencies.
10724 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10727 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10728 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10729 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10731 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10732 hardcode_libdir_separator_CXX=:
10734 # Commands to make compiler produce verbose output that lists
10735 # what "hidden" libraries, object files and flags are used when
10736 # linking a shared library.
10737 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10739 else
10740 # FIXME: insert proper C++ library support
10741 ld_shlibs_CXX=no
10744 esac
10746 psos*)
10747 # FIXME: insert proper C++ library support
10748 ld_shlibs_CXX=no
10750 sco*)
10751 archive_cmds_need_lc_CXX=no
10752 case $cc_basename in
10754 # FIXME: insert proper C++ library support
10755 ld_shlibs_CXX=no
10758 # FIXME: insert proper C++ library support
10759 ld_shlibs_CXX=no
10761 esac
10763 sunos4*)
10764 case $cc_basename in
10766 # Sun C++ 4.x
10767 # FIXME: insert proper C++ library support
10768 ld_shlibs_CXX=no
10770 lcc)
10771 # Lucid
10772 # FIXME: insert proper C++ library support
10773 ld_shlibs_CXX=no
10776 # FIXME: insert proper C++ library support
10777 ld_shlibs_CXX=no
10779 esac
10781 solaris*)
10782 case $cc_basename in
10784 # Sun C++ 4.2, 5.x and Centerline C++
10785 no_undefined_flag_CXX=' -zdefs'
10786 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10787 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10788 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10790 hardcode_libdir_flag_spec_CXX='-R$libdir'
10791 hardcode_shlibpath_var_CXX=no
10792 case $host_os in
10793 solaris2.[0-5] | solaris2.[0-5].*) ;;
10795 # The C++ compiler is used as linker so we must use $wl
10796 # flag to pass the commands to the underlying system
10797 # linker.
10798 # Supported since Solaris 2.6 (maybe 2.5.1?)
10799 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10801 esac
10802 link_all_deplibs_CXX=yes
10804 # Commands to make compiler produce verbose output that lists
10805 # what "hidden" libraries, object files and flags are used when
10806 # linking a shared library.
10808 # There doesn't appear to be a way to prevent this compiler from
10809 # explicitly linking system object files so we need to strip them
10810 # from the output so that they don't get included in the library
10811 # dependencies.
10812 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10814 # Archives containing C++ object files must be created using
10815 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10816 # necessary to make sure instantiated templates are included
10817 # in the archive.
10818 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10820 gcx)
10821 # Green Hills C++ Compiler
10822 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10824 # The C++ compiler must be used to create the archive.
10825 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10828 # GNU C++ compiler with Solaris linker
10829 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10830 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10831 if $CC --version | grep -v '^2\.7' > /dev/null; then
10832 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10833 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10834 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10836 # Commands to make compiler produce verbose output that lists
10837 # what "hidden" libraries, object files and flags are used when
10838 # linking a shared library.
10839 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10840 else
10841 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10842 # platform.
10843 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10844 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10845 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10847 # Commands to make compiler produce verbose output that lists
10848 # what "hidden" libraries, object files and flags are used when
10849 # linking a shared library.
10850 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10853 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10856 esac
10858 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10859 archive_cmds_need_lc_CXX=no
10861 tandem*)
10862 case $cc_basename in
10863 NCC)
10864 # NonStop-UX NCC 3.20
10865 # FIXME: insert proper C++ library support
10866 ld_shlibs_CXX=no
10869 # FIXME: insert proper C++ library support
10870 ld_shlibs_CXX=no
10872 esac
10874 vxworks*)
10875 # FIXME: insert proper C++ library support
10876 ld_shlibs_CXX=no
10879 # FIXME: insert proper C++ library support
10880 ld_shlibs_CXX=no
10882 esac
10883 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10884 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10885 test "$ld_shlibs_CXX" = no && can_build_shared=no
10887 GCC_CXX="$GXX"
10888 LD_CXX="$LD"
10890 ## CAVEAT EMPTOR:
10891 ## There is no encapsulation within the following macros, do not change
10892 ## the running order or otherwise move them around unless you know exactly
10893 ## what you are doing...
10895 cat > conftest.$ac_ext <<EOF
10896 class Foo
10898 public:
10899 Foo (void) { a = 0; }
10900 private:
10901 int a;
10905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10906 (eval $ac_compile) 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; then
10910 # Parse the compiler output and extract the necessary
10911 # objects, libraries and library flags.
10913 # Sentinel used to keep track of whether or not we are before
10914 # the conftest object file.
10915 pre_test_object_deps_done=no
10917 # The `*' in the case matches for architectures that use `case' in
10918 # $output_verbose_cmd can trigger glob expansion during the loop
10919 # eval without this substitution.
10920 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10922 for p in `eval $output_verbose_link_cmd`; do
10923 case $p in
10925 -L* | -R* | -l*)
10926 # Some compilers place space between "-{L,R}" and the path.
10927 # Remove the space.
10928 if test $p = "-L" \
10929 || test $p = "-R"; then
10930 prev=$p
10931 continue
10932 else
10933 prev=
10936 if test "$pre_test_object_deps_done" = no; then
10937 case $p in
10938 -L* | -R*)
10939 # Internal compiler library paths should come after those
10940 # provided the user. The postdeps already come after the
10941 # user supplied libs so there is no need to process them.
10942 if test -z "$compiler_lib_search_path_CXX"; then
10943 compiler_lib_search_path_CXX="${prev}${p}"
10944 else
10945 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10948 # The "-l" case would never come before the object being
10949 # linked, so don't bother handling this case.
10950 esac
10951 else
10952 if test -z "$postdeps_CXX"; then
10953 postdeps_CXX="${prev}${p}"
10954 else
10955 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10960 *.$objext)
10961 # This assumes that the test object file only shows up
10962 # once in the compiler output.
10963 if test "$p" = "conftest.$objext"; then
10964 pre_test_object_deps_done=yes
10965 continue
10968 if test "$pre_test_object_deps_done" = no; then
10969 if test -z "$predep_objects_CXX"; then
10970 predep_objects_CXX="$p"
10971 else
10972 predep_objects_CXX="$predep_objects_CXX $p"
10974 else
10975 if test -z "$postdep_objects_CXX"; then
10976 postdep_objects_CXX="$p"
10977 else
10978 postdep_objects_CXX="$postdep_objects_CXX $p"
10983 *) ;; # Ignore the rest.
10985 esac
10986 done
10988 # Clean up.
10989 rm -f a.out a.exe
10990 else
10991 echo "libtool.m4: error: problem compiling CXX test program"
10994 $rm -f confest.$objext
10996 case " $postdeps_CXX " in
10997 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10998 esac
11000 lt_prog_compiler_wl_CXX=
11001 lt_prog_compiler_pic_CXX=
11002 lt_prog_compiler_static_CXX=
11004 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11005 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11007 # C++ specific cases for pic, static, wl, etc.
11008 if test "$GXX" = yes; then
11009 lt_prog_compiler_wl_CXX='-Wl,'
11010 lt_prog_compiler_static_CXX='-static'
11012 case $host_os in
11013 aix*)
11014 # All AIX code is PIC.
11015 if test "$host_cpu" = ia64; then
11016 # AIX 5 now supports IA64 processor
11017 lt_prog_compiler_static_CXX='-Bstatic'
11020 amigaos*)
11021 # FIXME: we need at least 68020 code to build shared libraries, but
11022 # adding the `-m68020' flag to GCC prevents building anything better,
11023 # like `-m68040'.
11024 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11026 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11027 # PIC is the default for these OSes.
11029 mingw* | os2* | pw32*)
11030 # This hack is so that the source file can tell whether it is being
11031 # built for inclusion in a dll (and should export symbols for example).
11032 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11034 darwin* | rhapsody*)
11035 # PIC is the default on this platform
11036 # Common symbols not allowed in MH_DYLIB files
11037 lt_prog_compiler_pic_CXX='-fno-common'
11039 *djgpp*)
11040 # DJGPP does not support shared libraries at all
11041 lt_prog_compiler_pic_CXX=
11043 sysv4*MP*)
11044 if test -d /usr/nec; then
11045 lt_prog_compiler_pic_CXX=-Kconform_pic
11048 hpux*)
11049 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11050 # not for PA HP-UX.
11051 case "$host_cpu" in
11052 hppa*64*|ia64*)
11055 lt_prog_compiler_pic_CXX='-fPIC'
11057 esac
11060 lt_prog_compiler_pic_CXX='-fPIC'
11062 esac
11063 else
11064 case $host_os in
11065 aix4* | aix5*)
11066 # All AIX code is PIC.
11067 if test "$host_cpu" = ia64; then
11068 # AIX 5 now supports IA64 processor
11069 lt_prog_compiler_static_CXX='-Bstatic'
11070 else
11071 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11074 chorus*)
11075 case $cc_basename in
11076 cxch68)
11077 # Green Hills C++ Compiler
11078 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11080 esac
11082 darwin*)
11083 # PIC is the default on this platform
11084 # Common symbols not allowed in MH_DYLIB files
11085 case "$cc_basename" in
11086 xlc*)
11087 lt_prog_compiler_pic_CXX='-qnocommon'
11088 lt_prog_compiler_wl_CXX='-Wl,'
11090 esac
11092 dgux*)
11093 case $cc_basename in
11094 ec++)
11095 lt_prog_compiler_pic_CXX='-KPIC'
11097 ghcx)
11098 # Green Hills C++ Compiler
11099 lt_prog_compiler_pic_CXX='-pic'
11103 esac
11105 freebsd* | kfreebsd*-gnu | dragonfly*)
11106 # FreeBSD uses GNU C++
11108 hpux9* | hpux10* | hpux11*)
11109 case $cc_basename in
11111 lt_prog_compiler_wl_CXX='-Wl,'
11112 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11113 if test "$host_cpu" != ia64; then
11114 lt_prog_compiler_pic_CXX='+Z'
11117 aCC)
11118 lt_prog_compiler_wl_CXX='-Wl,'
11119 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11120 case "$host_cpu" in
11121 hppa*64*|ia64*)
11122 # +Z the default
11125 lt_prog_compiler_pic_CXX='+Z'
11127 esac
11131 esac
11133 irix5* | irix6* | nonstopux*)
11134 case $cc_basename in
11136 lt_prog_compiler_wl_CXX='-Wl,'
11137 lt_prog_compiler_static_CXX='-non_shared'
11138 # CC pic flag -KPIC is the default.
11142 esac
11144 linux*)
11145 case $cc_basename in
11146 KCC)
11147 # KAI C++ Compiler
11148 lt_prog_compiler_wl_CXX='--backend -Wl,'
11149 lt_prog_compiler_pic_CXX='-fPIC'
11151 icpc* | ecpc*)
11152 # Intel C++
11153 lt_prog_compiler_wl_CXX='-Wl,'
11154 lt_prog_compiler_pic_CXX='-KPIC'
11155 lt_prog_compiler_static_CXX='-static'
11157 pgCC)
11158 # Portland Group C++ compiler.
11159 lt_prog_compiler_wl_CXX='-Wl,'
11160 lt_prog_compiler_pic_CXX='-fpic'
11161 lt_prog_compiler_static_CXX='-static'
11163 cxx)
11164 # Compaq C++
11165 # Make sure the PIC flag is empty. It appears that all Alpha
11166 # Linux and Compaq Tru64 Unix objects are PIC.
11167 lt_prog_compiler_pic_CXX=
11168 lt_prog_compiler_static_CXX='-non_shared'
11172 esac
11174 lynxos*)
11176 m88k*)
11178 mvs*)
11179 case $cc_basename in
11180 cxx)
11181 lt_prog_compiler_pic_CXX='-W c,exportall'
11185 esac
11187 netbsd*)
11189 osf3* | osf4* | osf5*)
11190 case $cc_basename in
11191 KCC)
11192 lt_prog_compiler_wl_CXX='--backend -Wl,'
11194 RCC)
11195 # Rational C++ 2.4.1
11196 lt_prog_compiler_pic_CXX='-pic'
11198 cxx)
11199 # Digital/Compaq C++
11200 lt_prog_compiler_wl_CXX='-Wl,'
11201 # Make sure the PIC flag is empty. It appears that all Alpha
11202 # Linux and Compaq Tru64 Unix objects are PIC.
11203 lt_prog_compiler_pic_CXX=
11204 lt_prog_compiler_static_CXX='-non_shared'
11208 esac
11210 psos*)
11212 sco*)
11213 case $cc_basename in
11215 lt_prog_compiler_pic_CXX='-fPIC'
11219 esac
11221 solaris*)
11222 case $cc_basename in
11224 # Sun C++ 4.2, 5.x and Centerline C++
11225 lt_prog_compiler_pic_CXX='-KPIC'
11226 lt_prog_compiler_static_CXX='-Bstatic'
11227 lt_prog_compiler_wl_CXX='-Qoption ld '
11229 gcx)
11230 # Green Hills C++ Compiler
11231 lt_prog_compiler_pic_CXX='-PIC'
11235 esac
11237 sunos4*)
11238 case $cc_basename in
11240 # Sun C++ 4.x
11241 lt_prog_compiler_pic_CXX='-pic'
11242 lt_prog_compiler_static_CXX='-Bstatic'
11244 lcc)
11245 # Lucid
11246 lt_prog_compiler_pic_CXX='-pic'
11250 esac
11252 tandem*)
11253 case $cc_basename in
11254 NCC)
11255 # NonStop-UX NCC 3.20
11256 lt_prog_compiler_pic_CXX='-KPIC'
11260 esac
11262 unixware*)
11264 vxworks*)
11267 lt_prog_compiler_can_build_shared_CXX=no
11269 esac
11272 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11273 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11276 # Check to make sure the PIC flag actually works.
11278 if test -n "$lt_prog_compiler_pic_CXX"; then
11280 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11281 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11282 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 lt_prog_compiler_pic_works_CXX=no
11286 ac_outfile=conftest.$ac_objext
11287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11288 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11289 # Insert the option either (1) after the last *FLAGS variable, or
11290 # (2) before a word containing "conftest.", or (3) at the end.
11291 # Note that $ac_compile itself does not contain backslashes and begins
11292 # with a dollar sign (not a hyphen), so the echo should work correctly.
11293 # The option is referenced via a variable to avoid confusing sed.
11294 lt_compile=`echo "$ac_compile" | $SED \
11295 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11297 -e 's:$: $lt_compiler_flag:'`
11298 (eval echo "\"\$as_me:11298: $lt_compile\"" >&5)
11299 (eval "$lt_compile" 2>conftest.err)
11300 ac_status=$?
11301 cat conftest.err >&5
11302 echo "$as_me:11302: \$? = $ac_status" >&5
11303 if (exit $ac_status) && test -s "$ac_outfile"; then
11304 # The compiler can only warn and ignore the option if not recognized
11305 # So say no if there are warnings
11306 if test ! -s conftest.err; then
11307 lt_prog_compiler_pic_works_CXX=yes
11310 $rm conftest*
11313 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11314 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11316 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11317 case $lt_prog_compiler_pic_CXX in
11318 "" | " "*) ;;
11319 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11320 esac
11321 else
11322 lt_prog_compiler_pic_CXX=
11323 lt_prog_compiler_can_build_shared_CXX=no
11327 case "$host_os" in
11328 # For platforms which do not support PIC, -DPIC is meaningless:
11329 *djgpp*)
11330 lt_prog_compiler_pic_CXX=
11333 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11335 esac
11337 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11338 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11339 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 else
11342 lt_cv_prog_compiler_c_o_CXX=no
11343 $rm -r conftest 2>/dev/null
11344 mkdir conftest
11345 cd conftest
11346 mkdir out
11347 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11349 lt_compiler_flag="-o out/conftest2.$ac_objext"
11350 # Insert the option either (1) after the last *FLAGS variable, or
11351 # (2) before a word containing "conftest.", or (3) at the end.
11352 # Note that $ac_compile itself does not contain backslashes and begins
11353 # with a dollar sign (not a hyphen), so the echo should work correctly.
11354 lt_compile=`echo "$ac_compile" | $SED \
11355 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11357 -e 's:$: $lt_compiler_flag:'`
11358 (eval echo "\"\$as_me:11358: $lt_compile\"" >&5)
11359 (eval "$lt_compile" 2>out/conftest.err)
11360 ac_status=$?
11361 cat out/conftest.err >&5
11362 echo "$as_me:11362: \$? = $ac_status" >&5
11363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11364 then
11365 # The compiler can only warn and ignore the option if not recognized
11366 # So say no if there are warnings
11367 if test ! -s out/conftest.err; then
11368 lt_cv_prog_compiler_c_o_CXX=yes
11371 chmod u+w .
11372 $rm conftest*
11373 # SGI C++ compiler will create directory out/ii_files/ for
11374 # template instantiation
11375 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11376 $rm out/* && rmdir out
11377 cd ..
11378 rmdir conftest
11379 $rm conftest*
11382 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11386 hard_links="nottested"
11387 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11388 # do not overwrite the value of need_locks provided by the user
11389 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11391 hard_links=yes
11392 $rm conftest*
11393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11394 touch conftest.a
11395 ln conftest.a conftest.b 2>&5 || hard_links=no
11396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11397 echo "$as_me:$LINENO: result: $hard_links" >&5
11398 echo "${ECHO_T}$hard_links" >&6
11399 if test "$hard_links" = no; then
11400 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11402 need_locks=warn
11404 else
11405 need_locks=no
11408 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11411 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11412 case $host_os in
11413 aix4* | aix5*)
11414 # If we're using GNU nm, then we don't want the "-C" option.
11415 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11416 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11417 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11418 else
11419 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11422 pw32*)
11423 export_symbols_cmds_CXX="$ltdll_cmds"
11425 cygwin* | mingw*)
11426 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11429 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11431 esac
11433 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11434 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11435 test "$ld_shlibs_CXX" = no && can_build_shared=no
11437 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11438 if test "$GCC" = yes; then
11439 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11443 # Do we need to explicitly link libc?
11445 case "x$archive_cmds_need_lc_CXX" in
11446 x|xyes)
11447 # Assume -lc should be added
11448 archive_cmds_need_lc_CXX=yes
11450 if test "$enable_shared" = yes && test "$GCC" = yes; then
11451 case $archive_cmds_CXX in
11452 *'~'*)
11453 # FIXME: we may have to deal with multi-command sequences.
11455 '$CC '*)
11456 # Test whether the compiler implicitly links with -lc since on some
11457 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11458 # to ld, don't add -lc before -lgcc.
11459 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11460 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11461 $rm conftest*
11462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11465 (eval $ac_compile) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } 2>conftest.err; then
11469 soname=conftest
11470 lib=conftest
11471 libobjs=conftest.$ac_objext
11472 deplibs=
11473 wl=$lt_prog_compiler_wl_CXX
11474 compiler_flags=-v
11475 linker_flags=-v
11476 verstring=
11477 output_objdir=.
11478 libname=conftest
11479 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11480 allow_undefined_flag_CXX=
11481 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11482 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }
11486 then
11487 archive_cmds_need_lc_CXX=no
11488 else
11489 archive_cmds_need_lc_CXX=yes
11491 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11492 else
11493 cat conftest.err 1>&5
11495 $rm conftest*
11496 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11497 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11499 esac
11502 esac
11504 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11505 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11506 library_names_spec=
11507 libname_spec='lib$name'
11508 soname_spec=
11509 shrext_cmds=".so"
11510 postinstall_cmds=
11511 postuninstall_cmds=
11512 finish_cmds=
11513 finish_eval=
11514 shlibpath_var=
11515 shlibpath_overrides_runpath=unknown
11516 version_type=none
11517 dynamic_linker="$host_os ld.so"
11518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11519 if test "$GCC" = yes; then
11520 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11521 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11522 # if the path contains ";" then we assume it to be the separator
11523 # otherwise default to the standard path separator (i.e. ":") - it is
11524 # assumed that no part of a normal pathname contains ";" but that should
11525 # okay in the real world where ";" in dirpaths is itself problematic.
11526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11527 else
11528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11530 else
11531 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11533 need_lib_prefix=unknown
11534 hardcode_into_libs=no
11536 # when you set need_version to no, make sure it does not cause -set_version
11537 # flags to be left without arguments
11538 need_version=unknown
11540 case $host_os in
11541 aix3*)
11542 version_type=linux
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11544 shlibpath_var=LIBPATH
11546 # AIX 3 has no versioning support, so we append a major version to the name.
11547 soname_spec='${libname}${release}${shared_ext}$major'
11550 aix4* | aix5*)
11551 version_type=linux
11552 need_lib_prefix=no
11553 need_version=no
11554 hardcode_into_libs=yes
11555 if test "$host_cpu" = ia64; then
11556 # AIX 5 supports IA64
11557 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 else
11560 # With GCC up to 2.95.x, collect2 would create an import file
11561 # for dependence libraries. The import file would start with
11562 # the line `#! .'. This would cause the generated library to
11563 # depend on `.', always an invalid library. This was fixed in
11564 # development snapshots of GCC prior to 3.0.
11565 case $host_os in
11566 aix4 | aix4.[01] | aix4.[01].*)
11567 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11568 echo ' yes '
11569 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11571 else
11572 can_build_shared=no
11575 esac
11576 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11577 # soname into executable. Probably we can add versioning support to
11578 # collect2, so additional links can be useful in future.
11579 if test "$aix_use_runtimelinking" = yes; then
11580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11581 # instead of lib<name>.a to let people know that these are not
11582 # typical AIX shared libraries.
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584 else
11585 # We preserve .a as extension for shared libraries through AIX4.2
11586 # and later when we are not doing run time linking.
11587 library_names_spec='${libname}${release}.a $libname.a'
11588 soname_spec='${libname}${release}${shared_ext}$major'
11590 shlibpath_var=LIBPATH
11594 amigaos*)
11595 library_names_spec='$libname.ixlibrary $libname.a'
11596 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11597 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'
11600 beos*)
11601 library_names_spec='${libname}${shared_ext}'
11602 dynamic_linker="$host_os ld.so"
11603 shlibpath_var=LIBRARY_PATH
11606 bsdi[45]*)
11607 version_type=linux
11608 need_version=no
11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610 soname_spec='${libname}${release}${shared_ext}$major'
11611 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11614 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11615 # the default ld.so.conf also contains /usr/contrib/lib and
11616 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11617 # libtool to hard-code these into programs
11620 cygwin* | mingw* | pw32*)
11621 version_type=windows
11622 shrext_cmds=".dll"
11623 need_version=no
11624 need_lib_prefix=no
11626 case $GCC,$host_os in
11627 yes,cygwin* | yes,mingw* | yes,pw32*)
11628 library_names_spec='$libname.dll.a'
11629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11630 postinstall_cmds='base_file=`basename \${file}`~
11631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11632 dldir=$destdir/`dirname \$dlpath`~
11633 test -d \$dldir || mkdir -p \$dldir~
11634 $install_prog $dir/$dlname \$dldir/$dlname'
11635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11636 dlpath=$dir/\$dldll~
11637 $rm \$dlpath'
11638 shlibpath_overrides_runpath=yes
11640 case $host_os in
11641 cygwin*)
11642 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11643 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11644 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11646 mingw*)
11647 # MinGW DLLs use traditional 'lib' prefix
11648 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11649 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11650 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11651 # It is most probably a Windows format PATH printed by
11652 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11653 # path with ; separators, and with drive letters. We can handle the
11654 # drive letters (cygwin fileutils understands them), so leave them,
11655 # especially as we might pass files found there to a mingw objdump,
11656 # which wouldn't understand a cygwinified path. Ahh.
11657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11658 else
11659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11662 pw32*)
11663 # pw32 DLLs use 'pw' prefix rather than 'lib'
11664 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11666 esac
11670 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11672 esac
11673 dynamic_linker='Win32 ld.exe'
11674 # FIXME: first we should search . and the directory the executable is in
11675 shlibpath_var=PATH
11678 darwin* | rhapsody*)
11679 dynamic_linker="$host_os dyld"
11680 version_type=darwin
11681 need_lib_prefix=no
11682 need_version=no
11683 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11684 soname_spec='${libname}${release}${major}$shared_ext'
11685 shlibpath_overrides_runpath=yes
11686 shlibpath_var=DYLD_LIBRARY_PATH
11687 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11688 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11689 if test "$GCC" = yes; then
11690 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11691 else
11692 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11694 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11697 dgux*)
11698 version_type=linux
11699 need_lib_prefix=no
11700 need_version=no
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 shlibpath_var=LD_LIBRARY_PATH
11706 freebsd1*)
11707 dynamic_linker=no
11710 kfreebsd*-gnu)
11711 version_type=linux
11712 need_lib_prefix=no
11713 need_version=no
11714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11715 soname_spec='${libname}${release}${shared_ext}$major'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=no
11718 hardcode_into_libs=yes
11719 dynamic_linker='GNU ld.so'
11722 freebsd* | dragonfly*)
11723 # DragonFly does not have aout. When/if they implement a new
11724 # versioning mechanism, adjust this.
11725 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11726 version_type=freebsd-$objformat
11727 case $version_type in
11728 freebsd-elf*)
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11730 need_version=no
11731 need_lib_prefix=no
11733 freebsd-*)
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11735 need_version=yes
11737 esac
11738 shlibpath_var=LD_LIBRARY_PATH
11739 case $host_os in
11740 freebsd2*)
11741 shlibpath_overrides_runpath=yes
11743 freebsd3.[01]* | freebsdelf3.[01]*)
11744 shlibpath_overrides_runpath=yes
11745 hardcode_into_libs=yes
11747 *) # from 3.2 on
11748 shlibpath_overrides_runpath=no
11749 hardcode_into_libs=yes
11751 esac
11754 gnu*)
11755 version_type=linux
11756 need_lib_prefix=no
11757 need_version=no
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 hardcode_into_libs=yes
11764 hpux9* | hpux10* | hpux11*)
11765 # Give a soname corresponding to the major version so that dld.sl refuses to
11766 # link against other versions.
11767 version_type=sunos
11768 need_lib_prefix=no
11769 need_version=no
11770 case "$host_cpu" in
11771 ia64*)
11772 shrext_cmds='.so'
11773 hardcode_into_libs=yes
11774 dynamic_linker="$host_os dld.so"
11775 shlibpath_var=LD_LIBRARY_PATH
11776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778 soname_spec='${libname}${release}${shared_ext}$major'
11779 if test "X$HPUX_IA64_MODE" = X32; then
11780 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11781 else
11782 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11786 hppa*64*)
11787 shrext_cmds='.sl'
11788 hardcode_into_libs=yes
11789 dynamic_linker="$host_os dld.sl"
11790 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 soname_spec='${libname}${release}${shared_ext}$major'
11794 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11798 shrext_cmds='.sl'
11799 dynamic_linker="$host_os dld.sl"
11800 shlibpath_var=SHLIB_PATH
11801 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11803 soname_spec='${libname}${release}${shared_ext}$major'
11805 esac
11806 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11807 postinstall_cmds='chmod 555 $lib'
11810 irix5* | irix6* | nonstopux*)
11811 case $host_os in
11812 nonstopux*) version_type=nonstopux ;;
11814 if test "$lt_cv_prog_gnu_ld" = yes; then
11815 version_type=linux
11816 else
11817 version_type=irix
11818 fi ;;
11819 esac
11820 need_lib_prefix=no
11821 need_version=no
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11824 case $host_os in
11825 irix5* | nonstopux*)
11826 libsuff= shlibsuff=
11829 case $LD in # libtool.m4 will add one of these switches to LD
11830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11831 libsuff= shlibsuff= libmagic=32-bit;;
11832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11833 libsuff=32 shlibsuff=N32 libmagic=N32;;
11834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11836 *) libsuff= shlibsuff= libmagic=never-match;;
11837 esac
11839 esac
11840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11841 shlibpath_overrides_runpath=no
11842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11844 hardcode_into_libs=yes
11847 # No shared lib support for Linux oldld, aout, or coff.
11848 linux*oldld* | linux*aout* | linux*coff*)
11849 dynamic_linker=no
11852 # This must be Linux ELF.
11853 linux*)
11854 version_type=linux
11855 need_lib_prefix=no
11856 need_version=no
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858 soname_spec='${libname}${release}${shared_ext}$major'
11859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11860 shlibpath_var=LD_LIBRARY_PATH
11861 shlibpath_overrides_runpath=no
11862 # This implies no fast_install, which is unacceptable.
11863 # Some rework will be needed to allow for fast_install
11864 # before this can be enabled.
11865 hardcode_into_libs=yes
11867 # Append ld.so.conf contents to the search path
11868 if test -f /etc/ld.so.conf; then
11869 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11873 # We used to test for /lib/ld.so.1 and disable shared libraries on
11874 # powerpc, because MkLinux only supported shared libraries with the
11875 # GNU dynamic linker. Since this was broken with cross compilers,
11876 # most powerpc-linux boxes support dynamic linking these days and
11877 # people can always --disable-shared, the test was removed, and we
11878 # assume the GNU/Linux dynamic linker is in use.
11879 dynamic_linker='GNU/Linux ld.so'
11882 knetbsd*-gnu)
11883 version_type=linux
11884 need_lib_prefix=no
11885 need_version=no
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11887 soname_spec='${libname}${release}${shared_ext}$major'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=no
11890 hardcode_into_libs=yes
11891 dynamic_linker='GNU ld.so'
11894 netbsd*)
11895 version_type=sunos
11896 need_lib_prefix=no
11897 need_version=no
11898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11901 dynamic_linker='NetBSD (a.out) ld.so'
11902 else
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11904 soname_spec='${libname}${release}${shared_ext}$major'
11905 dynamic_linker='NetBSD ld.elf_so'
11907 shlibpath_var=LD_LIBRARY_PATH
11908 shlibpath_overrides_runpath=yes
11909 hardcode_into_libs=yes
11912 newsos6)
11913 version_type=linux
11914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11915 shlibpath_var=LD_LIBRARY_PATH
11916 shlibpath_overrides_runpath=yes
11919 nto-qnx*)
11920 version_type=linux
11921 need_lib_prefix=no
11922 need_version=no
11923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11924 soname_spec='${libname}${release}${shared_ext}$major'
11925 shlibpath_var=LD_LIBRARY_PATH
11926 shlibpath_overrides_runpath=yes
11929 openbsd*)
11930 version_type=sunos
11931 need_lib_prefix=no
11932 need_version=no
11933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11935 shlibpath_var=LD_LIBRARY_PATH
11936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11937 case $host_os in
11938 openbsd2.[89] | openbsd2.[89].*)
11939 shlibpath_overrides_runpath=no
11942 shlibpath_overrides_runpath=yes
11944 esac
11945 else
11946 shlibpath_overrides_runpath=yes
11950 os2*)
11951 libname_spec='$name'
11952 shrext_cmds=".dll"
11953 need_lib_prefix=no
11954 library_names_spec='$libname${shared_ext} $libname.a'
11955 dynamic_linker='OS/2 ld.exe'
11956 shlibpath_var=LIBPATH
11959 osf3* | osf4* | osf5*)
11960 version_type=osf
11961 need_lib_prefix=no
11962 need_version=no
11963 soname_spec='${libname}${release}${shared_ext}$major'
11964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11967 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11970 sco3.2v5*)
11971 version_type=osf
11972 soname_spec='${libname}${release}${shared_ext}$major'
11973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974 shlibpath_var=LD_LIBRARY_PATH
11977 solaris*)
11978 version_type=linux
11979 need_lib_prefix=no
11980 need_version=no
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11982 soname_spec='${libname}${release}${shared_ext}$major'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=yes
11985 hardcode_into_libs=yes
11986 # ldd complains unless libraries are executable
11987 postinstall_cmds='chmod +x $lib'
11990 sunos4*)
11991 version_type=sunos
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11993 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11994 shlibpath_var=LD_LIBRARY_PATH
11995 shlibpath_overrides_runpath=yes
11996 if test "$with_gnu_ld" = yes; then
11997 need_lib_prefix=no
11999 need_version=yes
12002 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12003 version_type=linux
12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12005 soname_spec='${libname}${release}${shared_ext}$major'
12006 shlibpath_var=LD_LIBRARY_PATH
12007 case $host_vendor in
12008 sni)
12009 shlibpath_overrides_runpath=no
12010 need_lib_prefix=no
12011 export_dynamic_flag_spec='${wl}-Blargedynsym'
12012 runpath_var=LD_RUN_PATH
12014 siemens)
12015 need_lib_prefix=no
12017 motorola)
12018 need_lib_prefix=no
12019 need_version=no
12020 shlibpath_overrides_runpath=no
12021 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12023 esac
12026 sysv4*MP*)
12027 if test -d /usr/nec ;then
12028 version_type=linux
12029 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12030 soname_spec='$libname${shared_ext}.$major'
12031 shlibpath_var=LD_LIBRARY_PATH
12035 uts4*)
12036 version_type=linux
12037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12038 soname_spec='${libname}${release}${shared_ext}$major'
12039 shlibpath_var=LD_LIBRARY_PATH
12043 dynamic_linker=no
12045 esac
12046 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12047 echo "${ECHO_T}$dynamic_linker" >&6
12048 test "$dynamic_linker" = no && can_build_shared=no
12050 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12051 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12052 hardcode_action_CXX=
12053 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12054 test -n "$runpath_var_CXX" || \
12055 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12057 # We can hardcode non-existant directories.
12058 if test "$hardcode_direct_CXX" != no &&
12059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12060 # have to relink, otherwise we might link with an installed library
12061 # when we should be linking with a yet-to-be-installed one
12062 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12063 test "$hardcode_minus_L_CXX" != no; then
12064 # Linking always hardcodes the temporary library directory.
12065 hardcode_action_CXX=relink
12066 else
12067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12068 hardcode_action_CXX=immediate
12070 else
12071 # We cannot hardcode anything, or else we can only hardcode existing
12072 # directories.
12073 hardcode_action_CXX=unsupported
12075 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12076 echo "${ECHO_T}$hardcode_action_CXX" >&6
12078 if test "$hardcode_action_CXX" = relink; then
12079 # Fast installation is not supported
12080 enable_fast_install=no
12081 elif test "$shlibpath_overrides_runpath" = yes ||
12082 test "$enable_shared" = no; then
12083 # Fast installation is not necessary
12084 enable_fast_install=needless
12087 striplib=
12088 old_striplib=
12089 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12090 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12091 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12092 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12093 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12094 echo "$as_me:$LINENO: result: yes" >&5
12095 echo "${ECHO_T}yes" >&6
12096 else
12097 # FIXME - insert some real tests, host_os isn't really good enough
12098 case $host_os in
12099 darwin*)
12100 if test -n "$STRIP" ; then
12101 striplib="$STRIP -x"
12102 echo "$as_me:$LINENO: result: yes" >&5
12103 echo "${ECHO_T}yes" >&6
12104 else
12105 echo "$as_me:$LINENO: result: no" >&5
12106 echo "${ECHO_T}no" >&6
12110 echo "$as_me:$LINENO: result: no" >&5
12111 echo "${ECHO_T}no" >&6
12113 esac
12116 if test "x$enable_dlopen" != xyes; then
12117 enable_dlopen=unknown
12118 enable_dlopen_self=unknown
12119 enable_dlopen_self_static=unknown
12120 else
12121 lt_cv_dlopen=no
12122 lt_cv_dlopen_libs=
12124 case $host_os in
12125 beos*)
12126 lt_cv_dlopen="load_add_on"
12127 lt_cv_dlopen_libs=
12128 lt_cv_dlopen_self=yes
12131 mingw* | pw32*)
12132 lt_cv_dlopen="LoadLibrary"
12133 lt_cv_dlopen_libs=
12136 cygwin*)
12137 lt_cv_dlopen="dlopen"
12138 lt_cv_dlopen_libs=
12141 darwin*)
12142 # if libdl is installed we need to link against it
12143 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148 ac_check_lib_save_LIBS=$LIBS
12149 LIBS="-ldl $LIBS"
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h. */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12157 /* Override any gcc2 internal prototype to avoid an error. */
12158 #ifdef __cplusplus
12159 extern "C"
12160 #endif
12161 /* We use char because int might match the return type of a gcc2
12162 builtin and then its argument prototype would still apply. */
12163 char dlopen ();
12165 main ()
12167 dlopen ();
12169 return 0;
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>conftest.er1
12175 ac_status=$?
12176 grep -v '^ *+' conftest.er1 >conftest.err
12177 rm -f conftest.er1
12178 cat conftest.err >&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -z "$ac_cxx_werror_flag"
12182 || test ! -s conftest.err'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_cv_lib_dl_dlopen=yes
12195 else
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ac_cv_lib_dl_dlopen=no
12201 rm -f conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12205 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12207 if test $ac_cv_lib_dl_dlopen = yes; then
12208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12209 else
12211 lt_cv_dlopen="dyld"
12212 lt_cv_dlopen_libs=
12213 lt_cv_dlopen_self=yes
12220 echo "$as_me:$LINENO: checking for shl_load" >&5
12221 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12222 if test "${ac_cv_func_shl_load+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225 cat >conftest.$ac_ext <<_ACEOF
12226 /* confdefs.h. */
12227 _ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12233 #define shl_load innocuous_shl_load
12235 /* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char shl_load (); below.
12237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238 <limits.h> exists even on freestanding compilers. */
12240 #ifdef __STDC__
12241 # include <limits.h>
12242 #else
12243 # include <assert.h>
12244 #endif
12246 #undef shl_load
12248 /* Override any gcc2 internal prototype to avoid an error. */
12249 #ifdef __cplusplus
12250 extern "C"
12252 #endif
12253 /* We use char because int might match the return type of a gcc2
12254 builtin and then its argument prototype would still apply. */
12255 char shl_load ();
12256 /* The GNU C library defines this for functions which it implements
12257 to always fail with ENOSYS. Some functions are actually named
12258 something starting with __ and the normal name is an alias. */
12259 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12260 choke me
12261 #else
12262 char (*f) () = shl_load;
12263 #endif
12264 #ifdef __cplusplus
12266 #endif
12269 main ()
12271 return f != shl_load;
12273 return 0;
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278 (eval $ac_link) 2>conftest.er1
12279 ac_status=$?
12280 grep -v '^ *+' conftest.er1 >conftest.err
12281 rm -f conftest.er1
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try='test -z "$ac_cxx_werror_flag"
12286 || test ! -s conftest.err'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } &&
12292 { ac_try='test -s conftest$ac_exeext'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; }; then
12298 ac_cv_func_shl_load=yes
12299 else
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 ac_cv_func_shl_load=no
12305 rm -f conftest.err conftest.$ac_objext \
12306 conftest$ac_exeext conftest.$ac_ext
12308 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12309 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12310 if test $ac_cv_func_shl_load = yes; then
12311 lt_cv_dlopen="shl_load"
12312 else
12313 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12314 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12315 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318 ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-ldld $LIBS"
12320 cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h. */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12327 /* Override any gcc2 internal prototype to avoid an error. */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12333 char shl_load ();
12335 main ()
12337 shl_load ();
12339 return 0;
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_cxx_werror_flag"
12352 || test ! -s conftest.err'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12364 ac_cv_lib_dld_shl_load=yes
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_lib_dld_shl_load=no
12371 rm -f conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12375 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12376 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12377 if test $ac_cv_lib_dld_shl_load = yes; then
12378 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12379 else
12380 echo "$as_me:$LINENO: checking for dlopen" >&5
12381 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12382 if test "${ac_cv_func_dlopen+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h. */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12393 #define dlopen innocuous_dlopen
12395 /* System header to define __stub macros and hopefully few prototypes,
12396 which can conflict with char dlopen (); below.
12397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12398 <limits.h> exists even on freestanding compilers. */
12400 #ifdef __STDC__
12401 # include <limits.h>
12402 #else
12403 # include <assert.h>
12404 #endif
12406 #undef dlopen
12408 /* Override any gcc2 internal prototype to avoid an error. */
12409 #ifdef __cplusplus
12410 extern "C"
12412 #endif
12413 /* We use char because int might match the return type of a gcc2
12414 builtin and then its argument prototype would still apply. */
12415 char dlopen ();
12416 /* The GNU C library defines this for functions which it implements
12417 to always fail with ENOSYS. Some functions are actually named
12418 something starting with __ and the normal name is an alias. */
12419 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12420 choke me
12421 #else
12422 char (*f) () = dlopen;
12423 #endif
12424 #ifdef __cplusplus
12426 #endif
12429 main ()
12431 return f != dlopen;
12433 return 0;
12435 _ACEOF
12436 rm -f conftest.$ac_objext conftest$ac_exeext
12437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12438 (eval $ac_link) 2>conftest.er1
12439 ac_status=$?
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try='test -z "$ac_cxx_werror_flag"
12446 || test ! -s conftest.err'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try='test -s conftest$ac_exeext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 ac_cv_func_dlopen=yes
12459 else
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12463 ac_cv_func_dlopen=no
12465 rm -f conftest.err conftest.$ac_objext \
12466 conftest$ac_exeext conftest.$ac_ext
12468 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12469 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12470 if test $ac_cv_func_dlopen = yes; then
12471 lt_cv_dlopen="dlopen"
12472 else
12473 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12474 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12475 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478 ac_check_lib_save_LIBS=$LIBS
12479 LIBS="-ldl $LIBS"
12480 cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h. */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12487 /* Override any gcc2 internal prototype to avoid an error. */
12488 #ifdef __cplusplus
12489 extern "C"
12490 #endif
12491 /* We use char because int might match the return type of a gcc2
12492 builtin and then its argument prototype would still apply. */
12493 char dlopen ();
12495 main ()
12497 dlopen ();
12499 return 0;
12501 _ACEOF
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504 (eval $ac_link) 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_cxx_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12524 ac_cv_lib_dl_dlopen=yes
12525 else
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ac_cv_lib_dl_dlopen=no
12531 rm -f conftest.err conftest.$ac_objext \
12532 conftest$ac_exeext conftest.$ac_ext
12533 LIBS=$ac_check_lib_save_LIBS
12535 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12536 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12537 if test $ac_cv_lib_dl_dlopen = yes; then
12538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12539 else
12540 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12541 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12542 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 else
12545 ac_check_lib_save_LIBS=$LIBS
12546 LIBS="-lsvld $LIBS"
12547 cat >conftest.$ac_ext <<_ACEOF
12548 /* confdefs.h. */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12554 /* Override any gcc2 internal prototype to avoid an error. */
12555 #ifdef __cplusplus
12556 extern "C"
12557 #endif
12558 /* We use char because int might match the return type of a gcc2
12559 builtin and then its argument prototype would still apply. */
12560 char dlopen ();
12562 main ()
12564 dlopen ();
12566 return 0;
12568 _ACEOF
12569 rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571 (eval $ac_link) 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_cxx_werror_flag"
12579 || test ! -s conftest.err'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest$ac_exeext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_cv_lib_svld_dlopen=yes
12592 else
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12596 ac_cv_lib_svld_dlopen=no
12598 rm -f conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12600 LIBS=$ac_check_lib_save_LIBS
12602 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12603 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12604 if test $ac_cv_lib_svld_dlopen = yes; then
12605 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12606 else
12607 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12608 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12609 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12611 else
12612 ac_check_lib_save_LIBS=$LIBS
12613 LIBS="-ldld $LIBS"
12614 cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h. */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12621 /* Override any gcc2 internal prototype to avoid an error. */
12622 #ifdef __cplusplus
12623 extern "C"
12624 #endif
12625 /* We use char because int might match the return type of a gcc2
12626 builtin and then its argument prototype would still apply. */
12627 char dld_link ();
12629 main ()
12631 dld_link ();
12633 return 0;
12635 _ACEOF
12636 rm -f conftest.$ac_objext conftest$ac_exeext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12638 (eval $ac_link) 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
12645 { ac_try='test -z "$ac_cxx_werror_flag"
12646 || test ! -s conftest.err'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_lib_dld_dld_link=yes
12659 else
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 ac_cv_lib_dld_dld_link=no
12665 rm -f conftest.err conftest.$ac_objext \
12666 conftest$ac_exeext conftest.$ac_ext
12667 LIBS=$ac_check_lib_save_LIBS
12669 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12670 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12671 if test $ac_cv_lib_dld_dld_link = yes; then
12672 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12691 esac
12693 if test "x$lt_cv_dlopen" != xno; then
12694 enable_dlopen=yes
12695 else
12696 enable_dlopen=no
12699 case $lt_cv_dlopen in
12700 dlopen)
12701 save_CPPFLAGS="$CPPFLAGS"
12702 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12704 save_LDFLAGS="$LDFLAGS"
12705 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12707 save_LIBS="$LIBS"
12708 LIBS="$lt_cv_dlopen_libs $LIBS"
12710 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12711 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12712 if test "${lt_cv_dlopen_self+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715 if test "$cross_compiling" = yes; then :
12716 lt_cv_dlopen_self=cross
12717 else
12718 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12719 lt_status=$lt_dlunknown
12720 cat > conftest.$ac_ext <<EOF
12721 #line 12721 "configure"
12722 #include "confdefs.h"
12724 #if HAVE_DLFCN_H
12725 #include <dlfcn.h>
12726 #endif
12728 #include <stdio.h>
12730 #ifdef RTLD_GLOBAL
12731 # define LT_DLGLOBAL RTLD_GLOBAL
12732 #else
12733 # ifdef DL_GLOBAL
12734 # define LT_DLGLOBAL DL_GLOBAL
12735 # else
12736 # define LT_DLGLOBAL 0
12737 # endif
12738 #endif
12740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12741 find out it does not work in some platform. */
12742 #ifndef LT_DLLAZY_OR_NOW
12743 # ifdef RTLD_LAZY
12744 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12745 # else
12746 # ifdef DL_LAZY
12747 # define LT_DLLAZY_OR_NOW DL_LAZY
12748 # else
12749 # ifdef RTLD_NOW
12750 # define LT_DLLAZY_OR_NOW RTLD_NOW
12751 # else
12752 # ifdef DL_NOW
12753 # define LT_DLLAZY_OR_NOW DL_NOW
12754 # else
12755 # define LT_DLLAZY_OR_NOW 0
12756 # endif
12757 # endif
12758 # endif
12759 # endif
12760 #endif
12762 #ifdef __cplusplus
12763 extern "C" void exit (int);
12764 #endif
12766 void fnord() { int i=42;}
12767 int main ()
12769 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12770 int status = $lt_dlunknown;
12772 if (self)
12774 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12775 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12776 /* dlclose (self); */
12779 exit (status);
12782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12783 (eval $ac_link) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12787 (./conftest; exit; ) 2>/dev/null
12788 lt_status=$?
12789 case x$lt_status in
12790 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12791 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12792 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12793 esac
12794 else :
12795 # compilation failed
12796 lt_cv_dlopen_self=no
12799 rm -fr conftest*
12803 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12804 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12806 if test "x$lt_cv_dlopen_self" = xyes; then
12807 LDFLAGS="$LDFLAGS $link_static_flag"
12808 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12809 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12810 if test "${lt_cv_dlopen_self_static+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 else
12813 if test "$cross_compiling" = yes; then :
12814 lt_cv_dlopen_self_static=cross
12815 else
12816 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12817 lt_status=$lt_dlunknown
12818 cat > conftest.$ac_ext <<EOF
12819 #line 12819 "configure"
12820 #include "confdefs.h"
12822 #if HAVE_DLFCN_H
12823 #include <dlfcn.h>
12824 #endif
12826 #include <stdio.h>
12828 #ifdef RTLD_GLOBAL
12829 # define LT_DLGLOBAL RTLD_GLOBAL
12830 #else
12831 # ifdef DL_GLOBAL
12832 # define LT_DLGLOBAL DL_GLOBAL
12833 # else
12834 # define LT_DLGLOBAL 0
12835 # endif
12836 #endif
12838 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12839 find out it does not work in some platform. */
12840 #ifndef LT_DLLAZY_OR_NOW
12841 # ifdef RTLD_LAZY
12842 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12843 # else
12844 # ifdef DL_LAZY
12845 # define LT_DLLAZY_OR_NOW DL_LAZY
12846 # else
12847 # ifdef RTLD_NOW
12848 # define LT_DLLAZY_OR_NOW RTLD_NOW
12849 # else
12850 # ifdef DL_NOW
12851 # define LT_DLLAZY_OR_NOW DL_NOW
12852 # else
12853 # define LT_DLLAZY_OR_NOW 0
12854 # endif
12855 # endif
12856 # endif
12857 # endif
12858 #endif
12860 #ifdef __cplusplus
12861 extern "C" void exit (int);
12862 #endif
12864 void fnord() { int i=42;}
12865 int main ()
12867 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12868 int status = $lt_dlunknown;
12870 if (self)
12872 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12873 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12874 /* dlclose (self); */
12877 exit (status);
12880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12881 (eval $ac_link) 2>&5
12882 ac_status=$?
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12885 (./conftest; exit; ) 2>/dev/null
12886 lt_status=$?
12887 case x$lt_status in
12888 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12889 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12890 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12891 esac
12892 else :
12893 # compilation failed
12894 lt_cv_dlopen_self_static=no
12897 rm -fr conftest*
12901 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12902 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12905 CPPFLAGS="$save_CPPFLAGS"
12906 LDFLAGS="$save_LDFLAGS"
12907 LIBS="$save_LIBS"
12909 esac
12911 case $lt_cv_dlopen_self in
12912 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12913 *) enable_dlopen_self=unknown ;;
12914 esac
12916 case $lt_cv_dlopen_self_static in
12917 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12918 *) enable_dlopen_self_static=unknown ;;
12919 esac
12923 # The else clause should only fire when bootstrapping the
12924 # libtool distribution, otherwise you forgot to ship ltmain.sh
12925 # with your package, and you will get complaints that there are
12926 # no rules to generate ltmain.sh.
12927 if test -f "$ltmain"; then
12928 # See if we are running on zsh, and set the options which allow our commands through
12929 # without removal of \ escapes.
12930 if test -n "${ZSH_VERSION+set}" ; then
12931 setopt NO_GLOB_SUBST
12933 # Now quote all the things that may contain metacharacters while being
12934 # careful not to overquote the AC_SUBSTed values. We take copies of the
12935 # variables and quote the copies for generation of the libtool script.
12936 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12937 SED SHELL STRIP \
12938 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12939 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12940 deplibs_check_method reload_flag reload_cmds need_locks \
12941 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12942 lt_cv_sys_global_symbol_to_c_name_address \
12943 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12944 old_postinstall_cmds old_postuninstall_cmds \
12945 compiler_CXX \
12946 CC_CXX \
12947 LD_CXX \
12948 lt_prog_compiler_wl_CXX \
12949 lt_prog_compiler_pic_CXX \
12950 lt_prog_compiler_static_CXX \
12951 lt_prog_compiler_no_builtin_flag_CXX \
12952 export_dynamic_flag_spec_CXX \
12953 thread_safe_flag_spec_CXX \
12954 whole_archive_flag_spec_CXX \
12955 enable_shared_with_static_runtimes_CXX \
12956 old_archive_cmds_CXX \
12957 old_archive_from_new_cmds_CXX \
12958 predep_objects_CXX \
12959 postdep_objects_CXX \
12960 predeps_CXX \
12961 postdeps_CXX \
12962 compiler_lib_search_path_CXX \
12963 archive_cmds_CXX \
12964 archive_expsym_cmds_CXX \
12965 postinstall_cmds_CXX \
12966 postuninstall_cmds_CXX \
12967 old_archive_from_expsyms_cmds_CXX \
12968 allow_undefined_flag_CXX \
12969 no_undefined_flag_CXX \
12970 export_symbols_cmds_CXX \
12971 hardcode_libdir_flag_spec_CXX \
12972 hardcode_libdir_flag_spec_ld_CXX \
12973 hardcode_libdir_separator_CXX \
12974 hardcode_automatic_CXX \
12975 module_cmds_CXX \
12976 module_expsym_cmds_CXX \
12977 lt_cv_prog_compiler_c_o_CXX \
12978 exclude_expsyms_CXX \
12979 include_expsyms_CXX; do
12981 case $var in
12982 old_archive_cmds_CXX | \
12983 old_archive_from_new_cmds_CXX | \
12984 archive_cmds_CXX | \
12985 archive_expsym_cmds_CXX | \
12986 module_cmds_CXX | \
12987 module_expsym_cmds_CXX | \
12988 old_archive_from_expsyms_cmds_CXX | \
12989 export_symbols_cmds_CXX | \
12990 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12991 postinstall_cmds | postuninstall_cmds | \
12992 old_postinstall_cmds | old_postuninstall_cmds | \
12993 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12994 # Double-quote double-evaled strings.
12995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13000 esac
13001 done
13003 case $lt_echo in
13004 *'\$0 --fallback-echo"')
13005 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13007 esac
13009 cfgfile="$ofile"
13011 cat <<__EOF__ >> "$cfgfile"
13012 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13016 # Shell to use when invoking shell scripts.
13017 SHELL=$lt_SHELL
13019 # Whether or not to build shared libraries.
13020 build_libtool_libs=$enable_shared
13022 # Whether or not to build static libraries.
13023 build_old_libs=$enable_static
13025 # Whether or not to add -lc for building shared libraries.
13026 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13028 # Whether or not to disallow shared libs when runtime libs are static
13029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13031 # Whether or not to optimize for fast installation.
13032 fast_install=$enable_fast_install
13034 # The host system.
13035 host_alias=$host_alias
13036 host=$host
13037 host_os=$host_os
13039 # The build system.
13040 build_alias=$build_alias
13041 build=$build
13042 build_os=$build_os
13044 # An echo program that does not interpret backslashes.
13045 echo=$lt_echo
13047 # The archiver.
13048 AR=$lt_AR
13049 AR_FLAGS=$lt_AR_FLAGS
13051 # A C compiler.
13052 LTCC=$lt_LTCC
13054 # A language-specific compiler.
13055 CC=$lt_compiler_CXX
13057 # Is the compiler the GNU C compiler?
13058 with_gcc=$GCC_CXX
13060 # An ERE matcher.
13061 EGREP=$lt_EGREP
13063 # The linker used to build libraries.
13064 LD=$lt_LD_CXX
13066 # Whether we need hard or soft links.
13067 LN_S=$lt_LN_S
13069 # A BSD-compatible nm program.
13070 NM=$lt_NM
13072 # A symbol stripping program
13073 STRIP=$lt_STRIP
13075 # Used to examine libraries when file_magic_cmd begins "file"
13076 MAGIC_CMD=$MAGIC_CMD
13078 # Used on cygwin: DLL creation program.
13079 DLLTOOL="$DLLTOOL"
13081 # Used on cygwin: object dumper.
13082 OBJDUMP="$OBJDUMP"
13084 # Used on cygwin: assembler.
13085 AS="$AS"
13087 # The name of the directory that contains temporary libtool files.
13088 objdir=$objdir
13090 # How to create reloadable object files.
13091 reload_flag=$lt_reload_flag
13092 reload_cmds=$lt_reload_cmds
13094 # How to pass a linker flag through the compiler.
13095 wl=$lt_lt_prog_compiler_wl_CXX
13097 # Object file suffix (normally "o").
13098 objext="$ac_objext"
13100 # Old archive suffix (normally "a").
13101 libext="$libext"
13103 # Shared library suffix (normally ".so").
13104 shrext_cmds='$shrext_cmds'
13106 # Executable file suffix (normally "").
13107 exeext="$exeext"
13109 # Additional compiler flags for building library objects.
13110 pic_flag=$lt_lt_prog_compiler_pic_CXX
13111 pic_mode=$pic_mode
13113 # What is the maximum length of a command?
13114 max_cmd_len=$lt_cv_sys_max_cmd_len
13116 # Does compiler simultaneously support -c and -o options?
13117 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13119 # Must we lock files when doing compilation ?
13120 need_locks=$lt_need_locks
13122 # Do we need the lib prefix for modules?
13123 need_lib_prefix=$need_lib_prefix
13125 # Do we need a version for libraries?
13126 need_version=$need_version
13128 # Whether dlopen is supported.
13129 dlopen_support=$enable_dlopen
13131 # Whether dlopen of programs is supported.
13132 dlopen_self=$enable_dlopen_self
13134 # Whether dlopen of statically linked programs is supported.
13135 dlopen_self_static=$enable_dlopen_self_static
13137 # Compiler flag to prevent dynamic linking.
13138 link_static_flag=$lt_lt_prog_compiler_static_CXX
13140 # Compiler flag to turn off builtin functions.
13141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13143 # Compiler flag to allow reflexive dlopens.
13144 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13146 # Compiler flag to generate shared objects directly from archives.
13147 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13149 # Compiler flag to generate thread-safe objects.
13150 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13152 # Library versioning type.
13153 version_type=$version_type
13155 # Format of library name prefix.
13156 libname_spec=$lt_libname_spec
13158 # List of archive names. First name is the real one, the rest are links.
13159 # The last name is the one that the linker finds with -lNAME.
13160 library_names_spec=$lt_library_names_spec
13162 # The coded name of the library, if different from the real name.
13163 soname_spec=$lt_soname_spec
13165 # Commands used to build and install an old-style archive.
13166 RANLIB=$lt_RANLIB
13167 old_archive_cmds=$lt_old_archive_cmds_CXX
13168 old_postinstall_cmds=$lt_old_postinstall_cmds
13169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13171 # Create an old-style archive from a shared archive.
13172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13174 # Create a temporary old-style archive to link instead of a shared archive.
13175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13177 # Commands used to build and install a shared archive.
13178 archive_cmds=$lt_archive_cmds_CXX
13179 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13180 postinstall_cmds=$lt_postinstall_cmds
13181 postuninstall_cmds=$lt_postuninstall_cmds
13183 # Commands used to build a loadable module (assumed same as above if empty)
13184 module_cmds=$lt_module_cmds_CXX
13185 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13187 # Commands to strip libraries.
13188 old_striplib=$lt_old_striplib
13189 striplib=$lt_striplib
13191 # Dependencies to place before the objects being linked to create a
13192 # shared library.
13193 predep_objects=$lt_predep_objects_CXX
13195 # Dependencies to place after the objects being linked to create a
13196 # shared library.
13197 postdep_objects=$lt_postdep_objects_CXX
13199 # Dependencies to place before the objects being linked to create a
13200 # shared library.
13201 predeps=$lt_predeps_CXX
13203 # Dependencies to place after the objects being linked to create a
13204 # shared library.
13205 postdeps=$lt_postdeps_CXX
13207 # The library search path used internally by the compiler when linking
13208 # a shared library.
13209 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13211 # Method to check whether dependent libraries are shared objects.
13212 deplibs_check_method=$lt_deplibs_check_method
13214 # Command to use when deplibs_check_method == file_magic.
13215 file_magic_cmd=$lt_file_magic_cmd
13217 # Flag that allows shared libraries with undefined symbols to be built.
13218 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13220 # Flag that forces no undefined symbols.
13221 no_undefined_flag=$lt_no_undefined_flag_CXX
13223 # Commands used to finish a libtool library installation in a directory.
13224 finish_cmds=$lt_finish_cmds
13226 # Same as above, but a single script fragment to be evaled but not shown.
13227 finish_eval=$lt_finish_eval
13229 # Take the output of nm and produce a listing of raw symbols and C names.
13230 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13232 # Transform the output of nm in a proper C declaration
13233 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13235 # Transform the output of nm in a C name address pair
13236 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13238 # This is the shared library runtime path variable.
13239 runpath_var=$runpath_var
13241 # This is the shared library path variable.
13242 shlibpath_var=$shlibpath_var
13244 # Is shlibpath searched before the hard-coded library search path?
13245 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13247 # How to hardcode a shared library path into an executable.
13248 hardcode_action=$hardcode_action_CXX
13250 # Whether we should hardcode library paths into libraries.
13251 hardcode_into_libs=$hardcode_into_libs
13253 # Flag to hardcode \$libdir into a binary during linking.
13254 # This must work even if \$libdir does not exist.
13255 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13257 # If ld is used when linking, flag to hardcode \$libdir into
13258 # a binary during linking. This must work even if \$libdir does
13259 # not exist.
13260 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13262 # Whether we need a single -rpath flag with a separated argument.
13263 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13265 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13266 # resulting binary.
13267 hardcode_direct=$hardcode_direct_CXX
13269 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13270 # resulting binary.
13271 hardcode_minus_L=$hardcode_minus_L_CXX
13273 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13274 # the resulting binary.
13275 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13277 # Set to yes if building a shared library automatically hardcodes DIR into the library
13278 # and all subsequent libraries and executables linked against it.
13279 hardcode_automatic=$hardcode_automatic_CXX
13281 # Variables whose values should be saved in libtool wrapper scripts and
13282 # restored at relink time.
13283 variables_saved_for_relink="$variables_saved_for_relink"
13285 # Whether libtool must link a program against all its dependency libraries.
13286 link_all_deplibs=$link_all_deplibs_CXX
13288 # Compile-time system search path for libraries
13289 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13291 # Run-time system search path for libraries
13292 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13294 # Fix the shell variable \$srcfile for the compiler.
13295 fix_srcfile_path="$fix_srcfile_path_CXX"
13297 # Set to yes if exported symbols are required.
13298 always_export_symbols=$always_export_symbols_CXX
13300 # The commands to list exported symbols.
13301 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13303 # The commands to extract the exported symbol list from a shared archive.
13304 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13306 # Symbols that should not be listed in the preloaded symbols.
13307 exclude_expsyms=$lt_exclude_expsyms_CXX
13309 # Symbols that must always be exported.
13310 include_expsyms=$lt_include_expsyms_CXX
13312 # ### END LIBTOOL TAG CONFIG: $tagname
13314 __EOF__
13317 else
13318 # If there is no Makefile yet, we rely on a make rule to execute
13319 # `config.status --recheck' to rerun these tests and create the
13320 # libtool script then.
13321 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13322 if test -f "$ltmain_in"; then
13323 test -f Makefile && make "$ltmain"
13328 ac_ext=c
13329 ac_cpp='$CPP $CPPFLAGS'
13330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13334 CC=$lt_save_CC
13335 LDCXX=$LD
13336 LD=$lt_save_LD
13337 GCC=$lt_save_GCC
13338 with_gnu_ldcxx=$with_gnu_ld
13339 with_gnu_ld=$lt_save_with_gnu_ld
13340 lt_cv_path_LDCXX=$lt_cv_path_LD
13341 lt_cv_path_LD=$lt_save_path_LD
13342 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13343 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13345 else
13346 tagname=""
13350 F77)
13351 if test -n "$F77" && test "X$F77" != "Xno"; then
13353 ac_ext=f
13354 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13355 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13356 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13359 archive_cmds_need_lc_F77=no
13360 allow_undefined_flag_F77=
13361 always_export_symbols_F77=no
13362 archive_expsym_cmds_F77=
13363 export_dynamic_flag_spec_F77=
13364 hardcode_direct_F77=no
13365 hardcode_libdir_flag_spec_F77=
13366 hardcode_libdir_flag_spec_ld_F77=
13367 hardcode_libdir_separator_F77=
13368 hardcode_minus_L_F77=no
13369 hardcode_automatic_F77=no
13370 module_cmds_F77=
13371 module_expsym_cmds_F77=
13372 link_all_deplibs_F77=unknown
13373 old_archive_cmds_F77=$old_archive_cmds
13374 no_undefined_flag_F77=
13375 whole_archive_flag_spec_F77=
13376 enable_shared_with_static_runtimes_F77=no
13378 # Source file extension for f77 test sources.
13379 ac_ext=f
13381 # Object file extension for compiled f77 test sources.
13382 objext=o
13383 objext_F77=$objext
13385 # Code to be used in simple compile tests
13386 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13388 # Code to be used in simple link tests
13389 lt_simple_link_test_code=" program t\n end\n"
13391 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13393 # If no C compiler was specified, use CC.
13394 LTCC=${LTCC-"$CC"}
13396 # Allow CC to be a program name with arguments.
13397 compiler=$CC
13400 # Allow CC to be a program name with arguments.
13401 lt_save_CC="$CC"
13402 CC=${F77-"f77"}
13403 compiler=$CC
13404 compiler_F77=$CC
13405 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13407 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13409 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13410 echo "${ECHO_T}$can_build_shared" >&6
13412 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13414 test "$can_build_shared" = "no" && enable_shared=no
13416 # On AIX, shared libraries and static libraries use the same namespace, and
13417 # are all built from PIC.
13418 case "$host_os" in
13419 aix3*)
13420 test "$enable_shared" = yes && enable_static=no
13421 if test -n "$RANLIB"; then
13422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13423 postinstall_cmds='$RANLIB $lib'
13426 aix4* | aix5*)
13427 test "$enable_shared" = yes && enable_static=no
13429 esac
13430 echo "$as_me:$LINENO: result: $enable_shared" >&5
13431 echo "${ECHO_T}$enable_shared" >&6
13433 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13434 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13435 # Make sure either enable_shared or enable_static is yes.
13436 test "$enable_shared" = yes || enable_static=yes
13437 echo "$as_me:$LINENO: result: $enable_static" >&5
13438 echo "${ECHO_T}$enable_static" >&6
13440 test "$ld_shlibs_F77" = no && can_build_shared=no
13442 GCC_F77="$G77"
13443 LD_F77="$LD"
13445 lt_prog_compiler_wl_F77=
13446 lt_prog_compiler_pic_F77=
13447 lt_prog_compiler_static_F77=
13449 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13450 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13452 if test "$GCC" = yes; then
13453 lt_prog_compiler_wl_F77='-Wl,'
13454 lt_prog_compiler_static_F77='-static'
13456 case $host_os in
13457 aix*)
13458 # All AIX code is PIC.
13459 if test "$host_cpu" = ia64; then
13460 # AIX 5 now supports IA64 processor
13461 lt_prog_compiler_static_F77='-Bstatic'
13465 amigaos*)
13466 # FIXME: we need at least 68020 code to build shared libraries, but
13467 # adding the `-m68020' flag to GCC prevents building anything better,
13468 # like `-m68040'.
13469 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13472 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13473 # PIC is the default for these OSes.
13476 mingw* | pw32* | os2*)
13477 # This hack is so that the source file can tell whether it is being
13478 # built for inclusion in a dll (and should export symbols for example).
13479 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13482 darwin* | rhapsody*)
13483 # PIC is the default on this platform
13484 # Common symbols not allowed in MH_DYLIB files
13485 lt_prog_compiler_pic_F77='-fno-common'
13488 msdosdjgpp*)
13489 # Just because we use GCC doesn't mean we suddenly get shared libraries
13490 # on systems that don't support them.
13491 lt_prog_compiler_can_build_shared_F77=no
13492 enable_shared=no
13495 sysv4*MP*)
13496 if test -d /usr/nec; then
13497 lt_prog_compiler_pic_F77=-Kconform_pic
13501 hpux*)
13502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13503 # not for PA HP-UX.
13504 case "$host_cpu" in
13505 hppa*64*|ia64*)
13506 # +Z the default
13509 lt_prog_compiler_pic_F77='-fPIC'
13511 esac
13515 lt_prog_compiler_pic_F77='-fPIC'
13517 esac
13518 else
13519 # PORTME Check for flag to pass linker flags through the system compiler.
13520 case $host_os in
13521 aix*)
13522 lt_prog_compiler_wl_F77='-Wl,'
13523 if test "$host_cpu" = ia64; then
13524 # AIX 5 now supports IA64 processor
13525 lt_prog_compiler_static_F77='-Bstatic'
13526 else
13527 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13530 darwin*)
13531 # PIC is the default on this platform
13532 # Common symbols not allowed in MH_DYLIB files
13533 case "$cc_basename" in
13534 xlc*)
13535 lt_prog_compiler_pic_F77='-qnocommon'
13536 lt_prog_compiler_wl_F77='-Wl,'
13538 esac
13541 mingw* | pw32* | os2*)
13542 # This hack is so that the source file can tell whether it is being
13543 # built for inclusion in a dll (and should export symbols for example).
13544 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13547 hpux9* | hpux10* | hpux11*)
13548 lt_prog_compiler_wl_F77='-Wl,'
13549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13550 # not for PA HP-UX.
13551 case "$host_cpu" in
13552 hppa*64*|ia64*)
13553 # +Z the default
13556 lt_prog_compiler_pic_F77='+Z'
13558 esac
13559 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13560 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13563 irix5* | irix6* | nonstopux*)
13564 lt_prog_compiler_wl_F77='-Wl,'
13565 # PIC (with -KPIC) is the default.
13566 lt_prog_compiler_static_F77='-non_shared'
13569 newsos6)
13570 lt_prog_compiler_pic_F77='-KPIC'
13571 lt_prog_compiler_static_F77='-Bstatic'
13574 linux*)
13575 case $cc_basename in
13576 icc* | ecc*)
13577 lt_prog_compiler_wl_F77='-Wl,'
13578 lt_prog_compiler_pic_F77='-KPIC'
13579 lt_prog_compiler_static_F77='-static'
13581 pgcc | pgf77 | pgf90)
13582 # Portland Group compilers (*not* the Pentium gcc compiler,
13583 # which looks to be a dead project)
13584 lt_prog_compiler_wl_F77='-Wl,'
13585 lt_prog_compiler_pic_F77='-fpic'
13586 lt_prog_compiler_static_F77='-static'
13588 ccc*)
13589 lt_prog_compiler_wl_F77='-Wl,'
13590 # All Alpha code is PIC.
13591 lt_prog_compiler_static_F77='-non_shared'
13593 como)
13594 lt_prog_compiler_wl_F77='-lopt='
13596 esac
13599 osf3* | osf4* | osf5*)
13600 lt_prog_compiler_wl_F77='-Wl,'
13601 # All OSF/1 code is PIC.
13602 lt_prog_compiler_static_F77='-non_shared'
13605 sco3.2v5*)
13606 lt_prog_compiler_pic_F77='-Kpic'
13607 lt_prog_compiler_static_F77='-dn'
13610 solaris*)
13611 lt_prog_compiler_wl_F77='-Wl,'
13612 lt_prog_compiler_pic_F77='-KPIC'
13613 lt_prog_compiler_static_F77='-Bstatic'
13616 sunos4*)
13617 lt_prog_compiler_wl_F77='-Qoption ld '
13618 lt_prog_compiler_pic_F77='-PIC'
13619 lt_prog_compiler_static_F77='-Bstatic'
13622 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13623 lt_prog_compiler_wl_F77='-Wl,'
13624 lt_prog_compiler_pic_F77='-KPIC'
13625 lt_prog_compiler_static_F77='-Bstatic'
13628 sysv4*MP*)
13629 if test -d /usr/nec ;then
13630 lt_prog_compiler_pic_F77='-Kconform_pic'
13631 lt_prog_compiler_static_F77='-Bstatic'
13635 unicos*)
13636 lt_prog_compiler_wl_F77='-Wl,'
13637 lt_prog_compiler_can_build_shared_F77=no
13640 uts4*)
13641 lt_prog_compiler_pic_F77='-pic'
13642 lt_prog_compiler_static_F77='-Bstatic'
13646 lt_prog_compiler_can_build_shared_F77=no
13648 esac
13651 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13652 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13655 # Check to make sure the PIC flag actually works.
13657 if test -n "$lt_prog_compiler_pic_F77"; then
13659 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13660 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13661 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 else
13664 lt_prog_compiler_pic_works_F77=no
13665 ac_outfile=conftest.$ac_objext
13666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13667 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13668 # Insert the option either (1) after the last *FLAGS variable, or
13669 # (2) before a word containing "conftest.", or (3) at the end.
13670 # Note that $ac_compile itself does not contain backslashes and begins
13671 # with a dollar sign (not a hyphen), so the echo should work correctly.
13672 # The option is referenced via a variable to avoid confusing sed.
13673 lt_compile=`echo "$ac_compile" | $SED \
13674 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13676 -e 's:$: $lt_compiler_flag:'`
13677 (eval echo "\"\$as_me:13677: $lt_compile\"" >&5)
13678 (eval "$lt_compile" 2>conftest.err)
13679 ac_status=$?
13680 cat conftest.err >&5
13681 echo "$as_me:13681: \$? = $ac_status" >&5
13682 if (exit $ac_status) && test -s "$ac_outfile"; then
13683 # The compiler can only warn and ignore the option if not recognized
13684 # So say no if there are warnings
13685 if test ! -s conftest.err; then
13686 lt_prog_compiler_pic_works_F77=yes
13689 $rm conftest*
13692 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13693 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13695 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13696 case $lt_prog_compiler_pic_F77 in
13697 "" | " "*) ;;
13698 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13699 esac
13700 else
13701 lt_prog_compiler_pic_F77=
13702 lt_prog_compiler_can_build_shared_F77=no
13706 case "$host_os" in
13707 # For platforms which do not support PIC, -DPIC is meaningless:
13708 *djgpp*)
13709 lt_prog_compiler_pic_F77=
13712 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13714 esac
13716 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13717 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13718 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13720 else
13721 lt_cv_prog_compiler_c_o_F77=no
13722 $rm -r conftest 2>/dev/null
13723 mkdir conftest
13724 cd conftest
13725 mkdir out
13726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13728 lt_compiler_flag="-o out/conftest2.$ac_objext"
13729 # Insert the option either (1) after the last *FLAGS variable, or
13730 # (2) before a word containing "conftest.", or (3) at the end.
13731 # Note that $ac_compile itself does not contain backslashes and begins
13732 # with a dollar sign (not a hyphen), so the echo should work correctly.
13733 lt_compile=`echo "$ac_compile" | $SED \
13734 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13736 -e 's:$: $lt_compiler_flag:'`
13737 (eval echo "\"\$as_me:13737: $lt_compile\"" >&5)
13738 (eval "$lt_compile" 2>out/conftest.err)
13739 ac_status=$?
13740 cat out/conftest.err >&5
13741 echo "$as_me:13741: \$? = $ac_status" >&5
13742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13743 then
13744 # The compiler can only warn and ignore the option if not recognized
13745 # So say no if there are warnings
13746 if test ! -s out/conftest.err; then
13747 lt_cv_prog_compiler_c_o_F77=yes
13750 chmod u+w .
13751 $rm conftest*
13752 # SGI C++ compiler will create directory out/ii_files/ for
13753 # template instantiation
13754 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13755 $rm out/* && rmdir out
13756 cd ..
13757 rmdir conftest
13758 $rm conftest*
13761 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13762 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13765 hard_links="nottested"
13766 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13767 # do not overwrite the value of need_locks provided by the user
13768 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13769 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13770 hard_links=yes
13771 $rm conftest*
13772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13773 touch conftest.a
13774 ln conftest.a conftest.b 2>&5 || hard_links=no
13775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13776 echo "$as_me:$LINENO: result: $hard_links" >&5
13777 echo "${ECHO_T}$hard_links" >&6
13778 if test "$hard_links" = no; then
13779 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13780 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13781 need_locks=warn
13783 else
13784 need_locks=no
13787 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13788 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13790 runpath_var=
13791 allow_undefined_flag_F77=
13792 enable_shared_with_static_runtimes_F77=no
13793 archive_cmds_F77=
13794 archive_expsym_cmds_F77=
13795 old_archive_From_new_cmds_F77=
13796 old_archive_from_expsyms_cmds_F77=
13797 export_dynamic_flag_spec_F77=
13798 whole_archive_flag_spec_F77=
13799 thread_safe_flag_spec_F77=
13800 hardcode_libdir_flag_spec_F77=
13801 hardcode_libdir_flag_spec_ld_F77=
13802 hardcode_libdir_separator_F77=
13803 hardcode_direct_F77=no
13804 hardcode_minus_L_F77=no
13805 hardcode_shlibpath_var_F77=unsupported
13806 link_all_deplibs_F77=unknown
13807 hardcode_automatic_F77=no
13808 module_cmds_F77=
13809 module_expsym_cmds_F77=
13810 always_export_symbols_F77=no
13811 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13812 # include_expsyms should be a list of space-separated symbols to be *always*
13813 # included in the symbol list
13814 include_expsyms_F77=
13815 # exclude_expsyms can be an extended regexp of symbols to exclude
13816 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13817 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13818 # as well as any symbol that contains `d'.
13819 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13820 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13821 # platforms (ab)use it in PIC code, but their linkers get confused if
13822 # the symbol is explicitly referenced. Since portable code cannot
13823 # rely on this symbol name, it's probably fine to never include it in
13824 # preloaded symbol tables.
13825 extract_expsyms_cmds=
13827 case $host_os in
13828 cygwin* | mingw* | pw32*)
13829 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13830 # When not using gcc, we currently assume that we are using
13831 # Microsoft Visual C++.
13832 if test "$GCC" != yes; then
13833 with_gnu_ld=no
13836 openbsd*)
13837 with_gnu_ld=no
13839 esac
13841 ld_shlibs_F77=yes
13842 if test "$with_gnu_ld" = yes; then
13843 # If archive_cmds runs LD, not CC, wlarc should be empty
13844 wlarc='${wl}'
13846 # See if GNU ld supports shared libraries.
13847 case $host_os in
13848 aix3* | aix4* | aix5*)
13849 # On AIX/PPC, the GNU linker is very broken
13850 if test "$host_cpu" != ia64; then
13851 ld_shlibs_F77=no
13852 cat <<EOF 1>&2
13854 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13855 *** to be unable to reliably create shared libraries on AIX.
13856 *** Therefore, libtool is disabling shared libraries support. If you
13857 *** really care for shared libraries, you may want to modify your PATH
13858 *** so that a non-GNU linker is found, and then restart.
13864 amigaos*)
13865 archive_cmds_F77='$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)'
13866 hardcode_libdir_flag_spec_F77='-L$libdir'
13867 hardcode_minus_L_F77=yes
13869 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13870 # that the semantics of dynamic libraries on AmigaOS, at least up
13871 # to version 4, is to share data among multiple programs linked
13872 # with the same dynamic library. Since this doesn't match the
13873 # behavior of shared libraries on other platforms, we can't use
13874 # them.
13875 ld_shlibs_F77=no
13878 beos*)
13879 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13880 allow_undefined_flag_F77=unsupported
13881 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13882 # support --undefined. This deserves some investigation. FIXME
13883 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13884 else
13885 ld_shlibs_F77=no
13889 cygwin* | mingw* | pw32*)
13890 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13891 # as there is no search path for DLLs.
13892 hardcode_libdir_flag_spec_F77='-L$libdir'
13893 allow_undefined_flag_F77=unsupported
13894 always_export_symbols_F77=no
13895 enable_shared_with_static_runtimes_F77=yes
13896 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13898 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13899 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13900 # If the export-symbols file already is a .def file (1st line
13901 # is EXPORTS), use it as is; otherwise, prepend...
13902 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13903 cp $export_symbols $output_objdir/$soname.def;
13904 else
13905 echo EXPORTS > $output_objdir/$soname.def;
13906 cat $export_symbols >> $output_objdir/$soname.def;
13908 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13909 else
13910 ld_shlibs_F77=no
13914 netbsd*)
13915 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13916 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13917 wlarc=
13918 else
13919 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13920 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13924 solaris* | sysv5*)
13925 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13926 ld_shlibs_F77=no
13927 cat <<EOF 1>&2
13929 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13930 *** create shared libraries on Solaris systems. Therefore, libtool
13931 *** is disabling shared libraries support. We urge you to upgrade GNU
13932 *** binutils to release 2.9.1 or newer. Another option is to modify
13933 *** your PATH or compiler configuration so that the native linker is
13934 *** used, and then restart.
13937 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13938 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13939 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13940 else
13941 ld_shlibs_F77=no
13945 sunos4*)
13946 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13947 wlarc=
13948 hardcode_direct_F77=yes
13949 hardcode_shlibpath_var_F77=no
13952 linux*)
13953 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13954 tmp_addflag=
13955 case $CC,$host_cpu in
13956 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13957 tmp_addflag=' -fpic' ;;
13958 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13959 tmp_addflag=' -i_dynamic' ;;
13960 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13961 tmp_addflag=' -i_dynamic -nofor_main' ;;
13962 ifc* | ifort*) # Intel Fortran compiler
13963 tmp_addflag=' -nofor_main' ;;
13964 esac
13965 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13966 supports_anon_versioning=no
13967 case `$LD -v 2>/dev/null` in
13968 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13969 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13970 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13971 *\ 2.11.*) ;; # other 2.11 versions
13972 *) supports_anon_versioning=yes ;;
13973 esac
13974 if test $supports_anon_versioning = yes; then
13975 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13977 $echo "local: *; };" >> $output_objdir/$libname.ver~
13978 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13979 else
13980 archive_expsym_cmds_F77=$archive_cmds_F77
13982 else
13983 ld_shlibs_F77=no
13988 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13989 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13990 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13991 else
13992 ld_shlibs_F77=no
13995 esac
13997 if test "$ld_shlibs_F77" = yes; then
13998 runpath_var=LD_RUN_PATH
13999 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14000 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14001 # ancient GNU ld didn't support --whole-archive et. al.
14002 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14003 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14004 else
14005 whole_archive_flag_spec_F77=
14008 else
14009 # PORTME fill in a description of your system's linker (not GNU ld)
14010 case $host_os in
14011 aix3*)
14012 allow_undefined_flag_F77=unsupported
14013 always_export_symbols_F77=yes
14014 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14015 # Note: this linker hardcodes the directories in LIBPATH if there
14016 # are no directories specified by -L.
14017 hardcode_minus_L_F77=yes
14018 if test "$GCC" = yes && test -z "$link_static_flag"; then
14019 # Neither direct hardcoding nor static linking is supported with a
14020 # broken collect2.
14021 hardcode_direct_F77=unsupported
14025 aix4* | aix5*)
14026 if test "$host_cpu" = ia64; then
14027 # On IA64, the linker does run time linking by default, so we don't
14028 # have to do anything special.
14029 aix_use_runtimelinking=no
14030 exp_sym_flag='-Bexport'
14031 no_entry_flag=""
14032 else
14033 # If we're using GNU nm, then we don't want the "-C" option.
14034 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14035 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14036 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14037 else
14038 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14040 aix_use_runtimelinking=no
14042 # Test if we are trying to use run time linking or normal
14043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14044 # need to do runtime linking.
14045 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14046 for ld_flag in $LDFLAGS; do
14047 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14048 aix_use_runtimelinking=yes
14049 break
14051 done
14052 esac
14054 exp_sym_flag='-bexport'
14055 no_entry_flag='-bnoentry'
14058 # When large executables or shared objects are built, AIX ld can
14059 # have problems creating the table of contents. If linking a library
14060 # or program results in "error TOC overflow" add -mminimal-toc to
14061 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14062 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14064 archive_cmds_F77=''
14065 hardcode_direct_F77=yes
14066 hardcode_libdir_separator_F77=':'
14067 link_all_deplibs_F77=yes
14069 if test "$GCC" = yes; then
14070 case $host_os in aix4.[012]|aix4.[012].*)
14071 # We only want to do this on AIX 4.2 and lower, the check
14072 # below for broken collect2 doesn't work under 4.3+
14073 collect2name=`${CC} -print-prog-name=collect2`
14074 if test -f "$collect2name" && \
14075 strings "$collect2name" | grep resolve_lib_name >/dev/null
14076 then
14077 # We have reworked collect2
14078 hardcode_direct_F77=yes
14079 else
14080 # We have old collect2
14081 hardcode_direct_F77=unsupported
14082 # It fails to find uninstalled libraries when the uninstalled
14083 # path is not listed in the libpath. Setting hardcode_minus_L
14084 # to unsupported forces relinking
14085 hardcode_minus_L_F77=yes
14086 hardcode_libdir_flag_spec_F77='-L$libdir'
14087 hardcode_libdir_separator_F77=
14089 esac
14090 shared_flag='-shared'
14091 if test "$aix_use_runtimelinking" = yes; then
14092 shared_flag="$shared_flag "'${wl}-G'
14094 else
14095 # not using gcc
14096 if test "$host_cpu" = ia64; then
14097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14098 # chokes on -Wl,-G. The following line is correct:
14099 shared_flag='-G'
14100 else
14101 if test "$aix_use_runtimelinking" = yes; then
14102 shared_flag='${wl}-G'
14103 else
14104 shared_flag='${wl}-bM:SRE'
14109 # It seems that -bexpall does not export symbols beginning with
14110 # underscore (_), so it is better to generate a list of symbols to export.
14111 always_export_symbols_F77=yes
14112 if test "$aix_use_runtimelinking" = yes; then
14113 # Warning - without using the other runtime loading flags (-brtl),
14114 # -berok will link without error, but may produce a broken library.
14115 allow_undefined_flag_F77='-berok'
14116 # Determine the default libpath from the value encoded in an empty executable.
14117 cat >conftest.$ac_ext <<_ACEOF
14118 program main
14121 _ACEOF
14122 rm -f conftest.$ac_objext conftest$ac_exeext
14123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14124 (eval $ac_link) 2>conftest.er1
14125 ac_status=$?
14126 grep -v '^ *+' conftest.er1 >conftest.err
14127 rm -f conftest.er1
14128 cat conftest.err >&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } &&
14131 { ac_try='test -z "$ac_f77_werror_flag"
14132 || test ! -s conftest.err'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; } &&
14138 { ac_try='test -s conftest$ac_exeext'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14145 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14147 # Check for a 64-bit object if we didn't find anything.
14148 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14149 }'`; fi
14150 else
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14155 rm -f conftest.err conftest.$ac_objext \
14156 conftest$ac_exeext conftest.$ac_ext
14157 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14159 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14160 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14161 else
14162 if test "$host_cpu" = ia64; then
14163 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14164 allow_undefined_flag_F77="-z nodefs"
14165 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14166 else
14167 # Determine the default libpath from the value encoded in an empty executable.
14168 cat >conftest.$ac_ext <<_ACEOF
14169 program main
14172 _ACEOF
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14175 (eval $ac_link) 2>conftest.er1
14176 ac_status=$?
14177 grep -v '^ *+' conftest.er1 >conftest.err
14178 rm -f conftest.er1
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -z "$ac_f77_werror_flag"
14183 || test ! -s conftest.err'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest$ac_exeext'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14198 # Check for a 64-bit object if we didn't find anything.
14199 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14200 }'`; fi
14201 else
14202 echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14206 rm -f conftest.err conftest.$ac_objext \
14207 conftest$ac_exeext conftest.$ac_ext
14208 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14210 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14211 # Warning - without using the other run time loading flags,
14212 # -berok will link without error, but may produce a broken library.
14213 no_undefined_flag_F77=' ${wl}-bernotok'
14214 allow_undefined_flag_F77=' ${wl}-berok'
14215 # -bexpall does not export symbols beginning with underscore (_)
14216 always_export_symbols_F77=yes
14217 # Exported symbols can be pulled into shared objects from archives
14218 whole_archive_flag_spec_F77=' '
14219 archive_cmds_need_lc_F77=yes
14220 # This is similar to how AIX traditionally builds it's shared libraries.
14221 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14226 amigaos*)
14227 archive_cmds_F77='$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)'
14228 hardcode_libdir_flag_spec_F77='-L$libdir'
14229 hardcode_minus_L_F77=yes
14230 # see comment about different semantics on the GNU ld section
14231 ld_shlibs_F77=no
14234 bsdi[45]*)
14235 export_dynamic_flag_spec_F77=-rdynamic
14238 cygwin* | mingw* | pw32*)
14239 # When not using gcc, we currently assume that we are using
14240 # Microsoft Visual C++.
14241 # hardcode_libdir_flag_spec is actually meaningless, as there is
14242 # no search path for DLLs.
14243 hardcode_libdir_flag_spec_F77=' '
14244 allow_undefined_flag_F77=unsupported
14245 # Tell ltmain to make .lib files, not .a files.
14246 libext=lib
14247 # Tell ltmain to make .dll files, not .so files.
14248 shrext_cmds=".dll"
14249 # FIXME: Setting linknames here is a bad hack.
14250 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14251 # The linker will automatically build a .lib file if we build a DLL.
14252 old_archive_From_new_cmds_F77='true'
14253 # FIXME: Should let the user specify the lib program.
14254 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14255 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14256 enable_shared_with_static_runtimes_F77=yes
14259 darwin* | rhapsody*)
14260 case "$host_os" in
14261 rhapsody* | darwin1.[012])
14262 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14264 *) # Darwin 1.3 on
14265 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14266 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14267 else
14268 case ${MACOSX_DEPLOYMENT_TARGET} in
14269 10.[012])
14270 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14272 10.*)
14273 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14275 esac
14278 esac
14279 archive_cmds_need_lc_F77=no
14280 hardcode_direct_F77=no
14281 hardcode_automatic_F77=yes
14282 hardcode_shlibpath_var_F77=unsupported
14283 whole_archive_flag_spec_F77=''
14284 link_all_deplibs_F77=yes
14285 if test "$GCC" = yes ; then
14286 output_verbose_link_cmd='echo'
14287 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14288 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14289 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14290 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14291 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14292 else
14293 case "$cc_basename" in
14294 xlc*)
14295 output_verbose_link_cmd='echo'
14296 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14297 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14298 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14299 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14300 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14303 ld_shlibs_F77=no
14305 esac
14309 dgux*)
14310 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311 hardcode_libdir_flag_spec_F77='-L$libdir'
14312 hardcode_shlibpath_var_F77=no
14315 freebsd1*)
14316 ld_shlibs_F77=no
14319 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14320 # support. Future versions do this automatically, but an explicit c++rt0.o
14321 # does not break anything, and helps significantly (at the cost of a little
14322 # extra space).
14323 freebsd2.2*)
14324 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14325 hardcode_libdir_flag_spec_F77='-R$libdir'
14326 hardcode_direct_F77=yes
14327 hardcode_shlibpath_var_F77=no
14330 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14331 freebsd2*)
14332 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14333 hardcode_direct_F77=yes
14334 hardcode_minus_L_F77=yes
14335 hardcode_shlibpath_var_F77=no
14338 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14339 freebsd* | kfreebsd*-gnu | dragonfly*)
14340 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14341 hardcode_libdir_flag_spec_F77='-R$libdir'
14342 hardcode_direct_F77=yes
14343 hardcode_shlibpath_var_F77=no
14346 hpux9*)
14347 if test "$GCC" = yes; then
14348 archive_cmds_F77='$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'
14349 else
14350 archive_cmds_F77='$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'
14352 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14353 hardcode_libdir_separator_F77=:
14354 hardcode_direct_F77=yes
14356 # hardcode_minus_L: Not really in the search PATH,
14357 # but as the default location of the library.
14358 hardcode_minus_L_F77=yes
14359 export_dynamic_flag_spec_F77='${wl}-E'
14362 hpux10* | hpux11*)
14363 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14364 case "$host_cpu" in
14365 hppa*64*|ia64*)
14366 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14369 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14371 esac
14372 else
14373 case "$host_cpu" in
14374 hppa*64*|ia64*)
14375 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14378 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14380 esac
14382 if test "$with_gnu_ld" = no; then
14383 case "$host_cpu" in
14384 hppa*64*)
14385 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14386 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14387 hardcode_libdir_separator_F77=:
14388 hardcode_direct_F77=no
14389 hardcode_shlibpath_var_F77=no
14391 ia64*)
14392 hardcode_libdir_flag_spec_F77='-L$libdir'
14393 hardcode_direct_F77=no
14394 hardcode_shlibpath_var_F77=no
14396 # hardcode_minus_L: Not really in the search PATH,
14397 # but as the default location of the library.
14398 hardcode_minus_L_F77=yes
14401 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14402 hardcode_libdir_separator_F77=:
14403 hardcode_direct_F77=yes
14404 export_dynamic_flag_spec_F77='${wl}-E'
14406 # hardcode_minus_L: Not really in the search PATH,
14407 # but as the default location of the library.
14408 hardcode_minus_L_F77=yes
14410 esac
14414 irix5* | irix6* | nonstopux*)
14415 if test "$GCC" = yes; then
14416 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14417 else
14418 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14419 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14421 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14422 hardcode_libdir_separator_F77=:
14423 link_all_deplibs_F77=yes
14426 netbsd*)
14427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14428 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14429 else
14430 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14432 hardcode_libdir_flag_spec_F77='-R$libdir'
14433 hardcode_direct_F77=yes
14434 hardcode_shlibpath_var_F77=no
14437 newsos6)
14438 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14439 hardcode_direct_F77=yes
14440 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14441 hardcode_libdir_separator_F77=:
14442 hardcode_shlibpath_var_F77=no
14445 openbsd*)
14446 hardcode_direct_F77=yes
14447 hardcode_shlibpath_var_F77=no
14448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14449 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14450 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14451 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14452 export_dynamic_flag_spec_F77='${wl}-E'
14453 else
14454 case $host_os in
14455 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14456 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14457 hardcode_libdir_flag_spec_F77='-R$libdir'
14460 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14461 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14463 esac
14467 os2*)
14468 hardcode_libdir_flag_spec_F77='-L$libdir'
14469 hardcode_minus_L_F77=yes
14470 allow_undefined_flag_F77=unsupported
14471 archive_cmds_F77='$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'
14472 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14475 osf3*)
14476 if test "$GCC" = yes; then
14477 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14478 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14479 else
14480 allow_undefined_flag_F77=' -expect_unresolved \*'
14481 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14483 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14484 hardcode_libdir_separator_F77=:
14487 osf4* | osf5*) # as osf3* with the addition of -msym flag
14488 if test "$GCC" = yes; then
14489 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14490 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14491 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14492 else
14493 allow_undefined_flag_F77=' -expect_unresolved \*'
14494 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14495 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14496 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14498 # Both c and cxx compiler support -rpath directly
14499 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14501 hardcode_libdir_separator_F77=:
14504 sco3.2v5*)
14505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14506 hardcode_shlibpath_var_F77=no
14507 export_dynamic_flag_spec_F77='${wl}-Bexport'
14508 runpath_var=LD_RUN_PATH
14509 hardcode_runpath_var=yes
14512 solaris*)
14513 no_undefined_flag_F77=' -z text'
14514 if test "$GCC" = yes; then
14515 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14516 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14517 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14518 else
14519 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14520 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14521 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14523 hardcode_libdir_flag_spec_F77='-R$libdir'
14524 hardcode_shlibpath_var_F77=no
14525 case $host_os in
14526 solaris2.[0-5] | solaris2.[0-5].*) ;;
14527 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14528 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14529 esac
14530 link_all_deplibs_F77=yes
14533 sunos4*)
14534 if test "x$host_vendor" = xsequent; then
14535 # Use $CC to link under sequent, because it throws in some extra .o
14536 # files that make .init and .fini sections work.
14537 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14538 else
14539 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14541 hardcode_libdir_flag_spec_F77='-L$libdir'
14542 hardcode_direct_F77=yes
14543 hardcode_minus_L_F77=yes
14544 hardcode_shlibpath_var_F77=no
14547 sysv4)
14548 case $host_vendor in
14549 sni)
14550 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14551 hardcode_direct_F77=yes # is this really true???
14553 siemens)
14554 ## LD is ld it makes a PLAMLIB
14555 ## CC just makes a GrossModule.
14556 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14557 reload_cmds_F77='$CC -r -o $output$reload_objs'
14558 hardcode_direct_F77=no
14560 motorola)
14561 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14562 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14564 esac
14565 runpath_var='LD_RUN_PATH'
14566 hardcode_shlibpath_var_F77=no
14569 sysv4.3*)
14570 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14571 hardcode_shlibpath_var_F77=no
14572 export_dynamic_flag_spec_F77='-Bexport'
14575 sysv4*MP*)
14576 if test -d /usr/nec; then
14577 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14578 hardcode_shlibpath_var_F77=no
14579 runpath_var=LD_RUN_PATH
14580 hardcode_runpath_var=yes
14581 ld_shlibs_F77=yes
14585 sysv4.2uw2*)
14586 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14587 hardcode_direct_F77=yes
14588 hardcode_minus_L_F77=no
14589 hardcode_shlibpath_var_F77=no
14590 hardcode_runpath_var=yes
14591 runpath_var=LD_RUN_PATH
14594 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14595 no_undefined_flag_F77='${wl}-z ${wl}text'
14596 if test "$GCC" = yes; then
14597 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14598 else
14599 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14601 runpath_var='LD_RUN_PATH'
14602 hardcode_shlibpath_var_F77=no
14605 sysv5*)
14606 no_undefined_flag_F77=' -z text'
14607 # $CC -shared without GNU ld will not create a library from C++
14608 # object files and a static libstdc++, better avoid it by now
14609 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14610 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14611 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14612 hardcode_libdir_flag_spec_F77=
14613 hardcode_shlibpath_var_F77=no
14614 runpath_var='LD_RUN_PATH'
14617 uts4*)
14618 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14619 hardcode_libdir_flag_spec_F77='-L$libdir'
14620 hardcode_shlibpath_var_F77=no
14624 ld_shlibs_F77=no
14626 esac
14629 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14630 echo "${ECHO_T}$ld_shlibs_F77" >&6
14631 test "$ld_shlibs_F77" = no && can_build_shared=no
14633 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14634 if test "$GCC" = yes; then
14635 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14639 # Do we need to explicitly link libc?
14641 case "x$archive_cmds_need_lc_F77" in
14642 x|xyes)
14643 # Assume -lc should be added
14644 archive_cmds_need_lc_F77=yes
14646 if test "$enable_shared" = yes && test "$GCC" = yes; then
14647 case $archive_cmds_F77 in
14648 *'~'*)
14649 # FIXME: we may have to deal with multi-command sequences.
14651 '$CC '*)
14652 # Test whether the compiler implicitly links with -lc since on some
14653 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14654 # to ld, don't add -lc before -lgcc.
14655 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14656 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14657 $rm conftest*
14658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14661 (eval $ac_compile) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } 2>conftest.err; then
14665 soname=conftest
14666 lib=conftest
14667 libobjs=conftest.$ac_objext
14668 deplibs=
14669 wl=$lt_prog_compiler_wl_F77
14670 compiler_flags=-v
14671 linker_flags=-v
14672 verstring=
14673 output_objdir=.
14674 libname=conftest
14675 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14676 allow_undefined_flag_F77=
14677 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14678 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }
14682 then
14683 archive_cmds_need_lc_F77=no
14684 else
14685 archive_cmds_need_lc_F77=yes
14687 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14688 else
14689 cat conftest.err 1>&5
14691 $rm conftest*
14692 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14693 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14695 esac
14698 esac
14700 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14701 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14702 library_names_spec=
14703 libname_spec='lib$name'
14704 soname_spec=
14705 shrext_cmds=".so"
14706 postinstall_cmds=
14707 postuninstall_cmds=
14708 finish_cmds=
14709 finish_eval=
14710 shlibpath_var=
14711 shlibpath_overrides_runpath=unknown
14712 version_type=none
14713 dynamic_linker="$host_os ld.so"
14714 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14715 if test "$GCC" = yes; then
14716 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14717 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14718 # if the path contains ";" then we assume it to be the separator
14719 # otherwise default to the standard path separator (i.e. ":") - it is
14720 # assumed that no part of a normal pathname contains ";" but that should
14721 # okay in the real world where ";" in dirpaths is itself problematic.
14722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14723 else
14724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14726 else
14727 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14729 need_lib_prefix=unknown
14730 hardcode_into_libs=no
14732 # when you set need_version to no, make sure it does not cause -set_version
14733 # flags to be left without arguments
14734 need_version=unknown
14736 case $host_os in
14737 aix3*)
14738 version_type=linux
14739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14740 shlibpath_var=LIBPATH
14742 # AIX 3 has no versioning support, so we append a major version to the name.
14743 soname_spec='${libname}${release}${shared_ext}$major'
14746 aix4* | aix5*)
14747 version_type=linux
14748 need_lib_prefix=no
14749 need_version=no
14750 hardcode_into_libs=yes
14751 if test "$host_cpu" = ia64; then
14752 # AIX 5 supports IA64
14753 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14754 shlibpath_var=LD_LIBRARY_PATH
14755 else
14756 # With GCC up to 2.95.x, collect2 would create an import file
14757 # for dependence libraries. The import file would start with
14758 # the line `#! .'. This would cause the generated library to
14759 # depend on `.', always an invalid library. This was fixed in
14760 # development snapshots of GCC prior to 3.0.
14761 case $host_os in
14762 aix4 | aix4.[01] | aix4.[01].*)
14763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14764 echo ' yes '
14765 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14767 else
14768 can_build_shared=no
14771 esac
14772 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14773 # soname into executable. Probably we can add versioning support to
14774 # collect2, so additional links can be useful in future.
14775 if test "$aix_use_runtimelinking" = yes; then
14776 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14777 # instead of lib<name>.a to let people know that these are not
14778 # typical AIX shared libraries.
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780 else
14781 # We preserve .a as extension for shared libraries through AIX4.2
14782 # and later when we are not doing run time linking.
14783 library_names_spec='${libname}${release}.a $libname.a'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14786 shlibpath_var=LIBPATH
14790 amigaos*)
14791 library_names_spec='$libname.ixlibrary $libname.a'
14792 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14793 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'
14796 beos*)
14797 library_names_spec='${libname}${shared_ext}'
14798 dynamic_linker="$host_os ld.so"
14799 shlibpath_var=LIBRARY_PATH
14802 bsdi[45]*)
14803 version_type=linux
14804 need_version=no
14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14806 soname_spec='${libname}${release}${shared_ext}$major'
14807 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14808 shlibpath_var=LD_LIBRARY_PATH
14809 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14810 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14811 # the default ld.so.conf also contains /usr/contrib/lib and
14812 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14813 # libtool to hard-code these into programs
14816 cygwin* | mingw* | pw32*)
14817 version_type=windows
14818 shrext_cmds=".dll"
14819 need_version=no
14820 need_lib_prefix=no
14822 case $GCC,$host_os in
14823 yes,cygwin* | yes,mingw* | yes,pw32*)
14824 library_names_spec='$libname.dll.a'
14825 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14826 postinstall_cmds='base_file=`basename \${file}`~
14827 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14828 dldir=$destdir/`dirname \$dlpath`~
14829 test -d \$dldir || mkdir -p \$dldir~
14830 $install_prog $dir/$dlname \$dldir/$dlname'
14831 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14832 dlpath=$dir/\$dldll~
14833 $rm \$dlpath'
14834 shlibpath_overrides_runpath=yes
14836 case $host_os in
14837 cygwin*)
14838 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14839 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14840 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14842 mingw*)
14843 # MinGW DLLs use traditional 'lib' prefix
14844 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14845 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14846 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14847 # It is most probably a Windows format PATH printed by
14848 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14849 # path with ; separators, and with drive letters. We can handle the
14850 # drive letters (cygwin fileutils understands them), so leave them,
14851 # especially as we might pass files found there to a mingw objdump,
14852 # which wouldn't understand a cygwinified path. Ahh.
14853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14854 else
14855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14858 pw32*)
14859 # pw32 DLLs use 'pw' prefix rather than 'lib'
14860 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14862 esac
14866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14868 esac
14869 dynamic_linker='Win32 ld.exe'
14870 # FIXME: first we should search . and the directory the executable is in
14871 shlibpath_var=PATH
14874 darwin* | rhapsody*)
14875 dynamic_linker="$host_os dyld"
14876 version_type=darwin
14877 need_lib_prefix=no
14878 need_version=no
14879 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14880 soname_spec='${libname}${release}${major}$shared_ext'
14881 shlibpath_overrides_runpath=yes
14882 shlibpath_var=DYLD_LIBRARY_PATH
14883 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14884 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14885 if test "$GCC" = yes; then
14886 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14887 else
14888 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14890 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14893 dgux*)
14894 version_type=linux
14895 need_lib_prefix=no
14896 need_version=no
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14898 soname_spec='${libname}${release}${shared_ext}$major'
14899 shlibpath_var=LD_LIBRARY_PATH
14902 freebsd1*)
14903 dynamic_linker=no
14906 kfreebsd*-gnu)
14907 version_type=linux
14908 need_lib_prefix=no
14909 need_version=no
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 shlibpath_var=LD_LIBRARY_PATH
14913 shlibpath_overrides_runpath=no
14914 hardcode_into_libs=yes
14915 dynamic_linker='GNU ld.so'
14918 freebsd* | dragonfly*)
14919 # DragonFly does not have aout. When/if they implement a new
14920 # versioning mechanism, adjust this.
14921 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14922 version_type=freebsd-$objformat
14923 case $version_type in
14924 freebsd-elf*)
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14926 need_version=no
14927 need_lib_prefix=no
14929 freebsd-*)
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14931 need_version=yes
14933 esac
14934 shlibpath_var=LD_LIBRARY_PATH
14935 case $host_os in
14936 freebsd2*)
14937 shlibpath_overrides_runpath=yes
14939 freebsd3.[01]* | freebsdelf3.[01]*)
14940 shlibpath_overrides_runpath=yes
14941 hardcode_into_libs=yes
14943 *) # from 3.2 on
14944 shlibpath_overrides_runpath=no
14945 hardcode_into_libs=yes
14947 esac
14950 gnu*)
14951 version_type=linux
14952 need_lib_prefix=no
14953 need_version=no
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14955 soname_spec='${libname}${release}${shared_ext}$major'
14956 shlibpath_var=LD_LIBRARY_PATH
14957 hardcode_into_libs=yes
14960 hpux9* | hpux10* | hpux11*)
14961 # Give a soname corresponding to the major version so that dld.sl refuses to
14962 # link against other versions.
14963 version_type=sunos
14964 need_lib_prefix=no
14965 need_version=no
14966 case "$host_cpu" in
14967 ia64*)
14968 shrext_cmds='.so'
14969 hardcode_into_libs=yes
14970 dynamic_linker="$host_os dld.so"
14971 shlibpath_var=LD_LIBRARY_PATH
14972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 if test "X$HPUX_IA64_MODE" = X32; then
14976 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14977 else
14978 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14982 hppa*64*)
14983 shrext_cmds='.sl'
14984 hardcode_into_libs=yes
14985 dynamic_linker="$host_os dld.sl"
14986 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14994 shrext_cmds='.sl'
14995 dynamic_linker="$host_os dld.sl"
14996 shlibpath_var=SHLIB_PATH
14997 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14999 soname_spec='${libname}${release}${shared_ext}$major'
15001 esac
15002 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15003 postinstall_cmds='chmod 555 $lib'
15006 irix5* | irix6* | nonstopux*)
15007 case $host_os in
15008 nonstopux*) version_type=nonstopux ;;
15010 if test "$lt_cv_prog_gnu_ld" = yes; then
15011 version_type=linux
15012 else
15013 version_type=irix
15014 fi ;;
15015 esac
15016 need_lib_prefix=no
15017 need_version=no
15018 soname_spec='${libname}${release}${shared_ext}$major'
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15020 case $host_os in
15021 irix5* | nonstopux*)
15022 libsuff= shlibsuff=
15025 case $LD in # libtool.m4 will add one of these switches to LD
15026 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15027 libsuff= shlibsuff= libmagic=32-bit;;
15028 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15029 libsuff=32 shlibsuff=N32 libmagic=N32;;
15030 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15031 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15032 *) libsuff= shlibsuff= libmagic=never-match;;
15033 esac
15035 esac
15036 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15037 shlibpath_overrides_runpath=no
15038 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15039 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15040 hardcode_into_libs=yes
15043 # No shared lib support for Linux oldld, aout, or coff.
15044 linux*oldld* | linux*aout* | linux*coff*)
15045 dynamic_linker=no
15048 # This must be Linux ELF.
15049 linux*)
15050 version_type=linux
15051 need_lib_prefix=no
15052 need_version=no
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15054 soname_spec='${libname}${release}${shared_ext}$major'
15055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15056 shlibpath_var=LD_LIBRARY_PATH
15057 shlibpath_overrides_runpath=no
15058 # This implies no fast_install, which is unacceptable.
15059 # Some rework will be needed to allow for fast_install
15060 # before this can be enabled.
15061 hardcode_into_libs=yes
15063 # Append ld.so.conf contents to the search path
15064 if test -f /etc/ld.so.conf; then
15065 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15066 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15069 # We used to test for /lib/ld.so.1 and disable shared libraries on
15070 # powerpc, because MkLinux only supported shared libraries with the
15071 # GNU dynamic linker. Since this was broken with cross compilers,
15072 # most powerpc-linux boxes support dynamic linking these days and
15073 # people can always --disable-shared, the test was removed, and we
15074 # assume the GNU/Linux dynamic linker is in use.
15075 dynamic_linker='GNU/Linux ld.so'
15078 knetbsd*-gnu)
15079 version_type=linux
15080 need_lib_prefix=no
15081 need_version=no
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 shlibpath_overrides_runpath=no
15086 hardcode_into_libs=yes
15087 dynamic_linker='GNU ld.so'
15090 netbsd*)
15091 version_type=sunos
15092 need_lib_prefix=no
15093 need_version=no
15094 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15097 dynamic_linker='NetBSD (a.out) ld.so'
15098 else
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 dynamic_linker='NetBSD ld.elf_so'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 shlibpath_overrides_runpath=yes
15105 hardcode_into_libs=yes
15108 newsos6)
15109 version_type=linux
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111 shlibpath_var=LD_LIBRARY_PATH
15112 shlibpath_overrides_runpath=yes
15115 nto-qnx*)
15116 version_type=linux
15117 need_lib_prefix=no
15118 need_version=no
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 shlibpath_var=LD_LIBRARY_PATH
15122 shlibpath_overrides_runpath=yes
15125 openbsd*)
15126 version_type=sunos
15127 need_lib_prefix=no
15128 need_version=no
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15131 shlibpath_var=LD_LIBRARY_PATH
15132 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15133 case $host_os in
15134 openbsd2.[89] | openbsd2.[89].*)
15135 shlibpath_overrides_runpath=no
15138 shlibpath_overrides_runpath=yes
15140 esac
15141 else
15142 shlibpath_overrides_runpath=yes
15146 os2*)
15147 libname_spec='$name'
15148 shrext_cmds=".dll"
15149 need_lib_prefix=no
15150 library_names_spec='$libname${shared_ext} $libname.a'
15151 dynamic_linker='OS/2 ld.exe'
15152 shlibpath_var=LIBPATH
15155 osf3* | osf4* | osf5*)
15156 version_type=osf
15157 need_lib_prefix=no
15158 need_version=no
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161 shlibpath_var=LD_LIBRARY_PATH
15162 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15163 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15166 sco3.2v5*)
15167 version_type=osf
15168 soname_spec='${libname}${release}${shared_ext}$major'
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170 shlibpath_var=LD_LIBRARY_PATH
15173 solaris*)
15174 version_type=linux
15175 need_lib_prefix=no
15176 need_version=no
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 shlibpath_var=LD_LIBRARY_PATH
15180 shlibpath_overrides_runpath=yes
15181 hardcode_into_libs=yes
15182 # ldd complains unless libraries are executable
15183 postinstall_cmds='chmod +x $lib'
15186 sunos4*)
15187 version_type=sunos
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15190 shlibpath_var=LD_LIBRARY_PATH
15191 shlibpath_overrides_runpath=yes
15192 if test "$with_gnu_ld" = yes; then
15193 need_lib_prefix=no
15195 need_version=yes
15198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15199 version_type=linux
15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 shlibpath_var=LD_LIBRARY_PATH
15203 case $host_vendor in
15204 sni)
15205 shlibpath_overrides_runpath=no
15206 need_lib_prefix=no
15207 export_dynamic_flag_spec='${wl}-Blargedynsym'
15208 runpath_var=LD_RUN_PATH
15210 siemens)
15211 need_lib_prefix=no
15213 motorola)
15214 need_lib_prefix=no
15215 need_version=no
15216 shlibpath_overrides_runpath=no
15217 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15219 esac
15222 sysv4*MP*)
15223 if test -d /usr/nec ;then
15224 version_type=linux
15225 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15226 soname_spec='$libname${shared_ext}.$major'
15227 shlibpath_var=LD_LIBRARY_PATH
15231 uts4*)
15232 version_type=linux
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 soname_spec='${libname}${release}${shared_ext}$major'
15235 shlibpath_var=LD_LIBRARY_PATH
15239 dynamic_linker=no
15241 esac
15242 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15243 echo "${ECHO_T}$dynamic_linker" >&6
15244 test "$dynamic_linker" = no && can_build_shared=no
15246 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15247 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15248 hardcode_action_F77=
15249 if test -n "$hardcode_libdir_flag_spec_F77" || \
15250 test -n "$runpath_var_F77" || \
15251 test "X$hardcode_automatic_F77" = "Xyes" ; then
15253 # We can hardcode non-existant directories.
15254 if test "$hardcode_direct_F77" != no &&
15255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15256 # have to relink, otherwise we might link with an installed library
15257 # when we should be linking with a yet-to-be-installed one
15258 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15259 test "$hardcode_minus_L_F77" != no; then
15260 # Linking always hardcodes the temporary library directory.
15261 hardcode_action_F77=relink
15262 else
15263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15264 hardcode_action_F77=immediate
15266 else
15267 # We cannot hardcode anything, or else we can only hardcode existing
15268 # directories.
15269 hardcode_action_F77=unsupported
15271 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15272 echo "${ECHO_T}$hardcode_action_F77" >&6
15274 if test "$hardcode_action_F77" = relink; then
15275 # Fast installation is not supported
15276 enable_fast_install=no
15277 elif test "$shlibpath_overrides_runpath" = yes ||
15278 test "$enable_shared" = no; then
15279 # Fast installation is not necessary
15280 enable_fast_install=needless
15283 striplib=
15284 old_striplib=
15285 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15286 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15287 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15288 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15289 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15290 echo "$as_me:$LINENO: result: yes" >&5
15291 echo "${ECHO_T}yes" >&6
15292 else
15293 # FIXME - insert some real tests, host_os isn't really good enough
15294 case $host_os in
15295 darwin*)
15296 if test -n "$STRIP" ; then
15297 striplib="$STRIP -x"
15298 echo "$as_me:$LINENO: result: yes" >&5
15299 echo "${ECHO_T}yes" >&6
15300 else
15301 echo "$as_me:$LINENO: result: no" >&5
15302 echo "${ECHO_T}no" >&6
15306 echo "$as_me:$LINENO: result: no" >&5
15307 echo "${ECHO_T}no" >&6
15309 esac
15314 # The else clause should only fire when bootstrapping the
15315 # libtool distribution, otherwise you forgot to ship ltmain.sh
15316 # with your package, and you will get complaints that there are
15317 # no rules to generate ltmain.sh.
15318 if test -f "$ltmain"; then
15319 # See if we are running on zsh, and set the options which allow our commands through
15320 # without removal of \ escapes.
15321 if test -n "${ZSH_VERSION+set}" ; then
15322 setopt NO_GLOB_SUBST
15324 # Now quote all the things that may contain metacharacters while being
15325 # careful not to overquote the AC_SUBSTed values. We take copies of the
15326 # variables and quote the copies for generation of the libtool script.
15327 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15328 SED SHELL STRIP \
15329 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15330 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15331 deplibs_check_method reload_flag reload_cmds need_locks \
15332 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15333 lt_cv_sys_global_symbol_to_c_name_address \
15334 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15335 old_postinstall_cmds old_postuninstall_cmds \
15336 compiler_F77 \
15337 CC_F77 \
15338 LD_F77 \
15339 lt_prog_compiler_wl_F77 \
15340 lt_prog_compiler_pic_F77 \
15341 lt_prog_compiler_static_F77 \
15342 lt_prog_compiler_no_builtin_flag_F77 \
15343 export_dynamic_flag_spec_F77 \
15344 thread_safe_flag_spec_F77 \
15345 whole_archive_flag_spec_F77 \
15346 enable_shared_with_static_runtimes_F77 \
15347 old_archive_cmds_F77 \
15348 old_archive_from_new_cmds_F77 \
15349 predep_objects_F77 \
15350 postdep_objects_F77 \
15351 predeps_F77 \
15352 postdeps_F77 \
15353 compiler_lib_search_path_F77 \
15354 archive_cmds_F77 \
15355 archive_expsym_cmds_F77 \
15356 postinstall_cmds_F77 \
15357 postuninstall_cmds_F77 \
15358 old_archive_from_expsyms_cmds_F77 \
15359 allow_undefined_flag_F77 \
15360 no_undefined_flag_F77 \
15361 export_symbols_cmds_F77 \
15362 hardcode_libdir_flag_spec_F77 \
15363 hardcode_libdir_flag_spec_ld_F77 \
15364 hardcode_libdir_separator_F77 \
15365 hardcode_automatic_F77 \
15366 module_cmds_F77 \
15367 module_expsym_cmds_F77 \
15368 lt_cv_prog_compiler_c_o_F77 \
15369 exclude_expsyms_F77 \
15370 include_expsyms_F77; do
15372 case $var in
15373 old_archive_cmds_F77 | \
15374 old_archive_from_new_cmds_F77 | \
15375 archive_cmds_F77 | \
15376 archive_expsym_cmds_F77 | \
15377 module_cmds_F77 | \
15378 module_expsym_cmds_F77 | \
15379 old_archive_from_expsyms_cmds_F77 | \
15380 export_symbols_cmds_F77 | \
15381 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15382 postinstall_cmds | postuninstall_cmds | \
15383 old_postinstall_cmds | old_postuninstall_cmds | \
15384 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15385 # Double-quote double-evaled strings.
15386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15391 esac
15392 done
15394 case $lt_echo in
15395 *'\$0 --fallback-echo"')
15396 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15398 esac
15400 cfgfile="$ofile"
15402 cat <<__EOF__ >> "$cfgfile"
15403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15407 # Shell to use when invoking shell scripts.
15408 SHELL=$lt_SHELL
15410 # Whether or not to build shared libraries.
15411 build_libtool_libs=$enable_shared
15413 # Whether or not to build static libraries.
15414 build_old_libs=$enable_static
15416 # Whether or not to add -lc for building shared libraries.
15417 build_libtool_need_lc=$archive_cmds_need_lc_F77
15419 # Whether or not to disallow shared libs when runtime libs are static
15420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15422 # Whether or not to optimize for fast installation.
15423 fast_install=$enable_fast_install
15425 # The host system.
15426 host_alias=$host_alias
15427 host=$host
15428 host_os=$host_os
15430 # The build system.
15431 build_alias=$build_alias
15432 build=$build
15433 build_os=$build_os
15435 # An echo program that does not interpret backslashes.
15436 echo=$lt_echo
15438 # The archiver.
15439 AR=$lt_AR
15440 AR_FLAGS=$lt_AR_FLAGS
15442 # A C compiler.
15443 LTCC=$lt_LTCC
15445 # A language-specific compiler.
15446 CC=$lt_compiler_F77
15448 # Is the compiler the GNU C compiler?
15449 with_gcc=$GCC_F77
15451 # An ERE matcher.
15452 EGREP=$lt_EGREP
15454 # The linker used to build libraries.
15455 LD=$lt_LD_F77
15457 # Whether we need hard or soft links.
15458 LN_S=$lt_LN_S
15460 # A BSD-compatible nm program.
15461 NM=$lt_NM
15463 # A symbol stripping program
15464 STRIP=$lt_STRIP
15466 # Used to examine libraries when file_magic_cmd begins "file"
15467 MAGIC_CMD=$MAGIC_CMD
15469 # Used on cygwin: DLL creation program.
15470 DLLTOOL="$DLLTOOL"
15472 # Used on cygwin: object dumper.
15473 OBJDUMP="$OBJDUMP"
15475 # Used on cygwin: assembler.
15476 AS="$AS"
15478 # The name of the directory that contains temporary libtool files.
15479 objdir=$objdir
15481 # How to create reloadable object files.
15482 reload_flag=$lt_reload_flag
15483 reload_cmds=$lt_reload_cmds
15485 # How to pass a linker flag through the compiler.
15486 wl=$lt_lt_prog_compiler_wl_F77
15488 # Object file suffix (normally "o").
15489 objext="$ac_objext"
15491 # Old archive suffix (normally "a").
15492 libext="$libext"
15494 # Shared library suffix (normally ".so").
15495 shrext_cmds='$shrext_cmds'
15497 # Executable file suffix (normally "").
15498 exeext="$exeext"
15500 # Additional compiler flags for building library objects.
15501 pic_flag=$lt_lt_prog_compiler_pic_F77
15502 pic_mode=$pic_mode
15504 # What is the maximum length of a command?
15505 max_cmd_len=$lt_cv_sys_max_cmd_len
15507 # Does compiler simultaneously support -c and -o options?
15508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15510 # Must we lock files when doing compilation ?
15511 need_locks=$lt_need_locks
15513 # Do we need the lib prefix for modules?
15514 need_lib_prefix=$need_lib_prefix
15516 # Do we need a version for libraries?
15517 need_version=$need_version
15519 # Whether dlopen is supported.
15520 dlopen_support=$enable_dlopen
15522 # Whether dlopen of programs is supported.
15523 dlopen_self=$enable_dlopen_self
15525 # Whether dlopen of statically linked programs is supported.
15526 dlopen_self_static=$enable_dlopen_self_static
15528 # Compiler flag to prevent dynamic linking.
15529 link_static_flag=$lt_lt_prog_compiler_static_F77
15531 # Compiler flag to turn off builtin functions.
15532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15534 # Compiler flag to allow reflexive dlopens.
15535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15537 # Compiler flag to generate shared objects directly from archives.
15538 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15540 # Compiler flag to generate thread-safe objects.
15541 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15543 # Library versioning type.
15544 version_type=$version_type
15546 # Format of library name prefix.
15547 libname_spec=$lt_libname_spec
15549 # List of archive names. First name is the real one, the rest are links.
15550 # The last name is the one that the linker finds with -lNAME.
15551 library_names_spec=$lt_library_names_spec
15553 # The coded name of the library, if different from the real name.
15554 soname_spec=$lt_soname_spec
15556 # Commands used to build and install an old-style archive.
15557 RANLIB=$lt_RANLIB
15558 old_archive_cmds=$lt_old_archive_cmds_F77
15559 old_postinstall_cmds=$lt_old_postinstall_cmds
15560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15562 # Create an old-style archive from a shared archive.
15563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15565 # Create a temporary old-style archive to link instead of a shared archive.
15566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15568 # Commands used to build and install a shared archive.
15569 archive_cmds=$lt_archive_cmds_F77
15570 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15571 postinstall_cmds=$lt_postinstall_cmds
15572 postuninstall_cmds=$lt_postuninstall_cmds
15574 # Commands used to build a loadable module (assumed same as above if empty)
15575 module_cmds=$lt_module_cmds_F77
15576 module_expsym_cmds=$lt_module_expsym_cmds_F77
15578 # Commands to strip libraries.
15579 old_striplib=$lt_old_striplib
15580 striplib=$lt_striplib
15582 # Dependencies to place before the objects being linked to create a
15583 # shared library.
15584 predep_objects=$lt_predep_objects_F77
15586 # Dependencies to place after the objects being linked to create a
15587 # shared library.
15588 postdep_objects=$lt_postdep_objects_F77
15590 # Dependencies to place before the objects being linked to create a
15591 # shared library.
15592 predeps=$lt_predeps_F77
15594 # Dependencies to place after the objects being linked to create a
15595 # shared library.
15596 postdeps=$lt_postdeps_F77
15598 # The library search path used internally by the compiler when linking
15599 # a shared library.
15600 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15602 # Method to check whether dependent libraries are shared objects.
15603 deplibs_check_method=$lt_deplibs_check_method
15605 # Command to use when deplibs_check_method == file_magic.
15606 file_magic_cmd=$lt_file_magic_cmd
15608 # Flag that allows shared libraries with undefined symbols to be built.
15609 allow_undefined_flag=$lt_allow_undefined_flag_F77
15611 # Flag that forces no undefined symbols.
15612 no_undefined_flag=$lt_no_undefined_flag_F77
15614 # Commands used to finish a libtool library installation in a directory.
15615 finish_cmds=$lt_finish_cmds
15617 # Same as above, but a single script fragment to be evaled but not shown.
15618 finish_eval=$lt_finish_eval
15620 # Take the output of nm and produce a listing of raw symbols and C names.
15621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15623 # Transform the output of nm in a proper C declaration
15624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15626 # Transform the output of nm in a C name address pair
15627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15629 # This is the shared library runtime path variable.
15630 runpath_var=$runpath_var
15632 # This is the shared library path variable.
15633 shlibpath_var=$shlibpath_var
15635 # Is shlibpath searched before the hard-coded library search path?
15636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15638 # How to hardcode a shared library path into an executable.
15639 hardcode_action=$hardcode_action_F77
15641 # Whether we should hardcode library paths into libraries.
15642 hardcode_into_libs=$hardcode_into_libs
15644 # Flag to hardcode \$libdir into a binary during linking.
15645 # This must work even if \$libdir does not exist.
15646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15648 # If ld is used when linking, flag to hardcode \$libdir into
15649 # a binary during linking. This must work even if \$libdir does
15650 # not exist.
15651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15653 # Whether we need a single -rpath flag with a separated argument.
15654 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15656 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15657 # resulting binary.
15658 hardcode_direct=$hardcode_direct_F77
15660 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15661 # resulting binary.
15662 hardcode_minus_L=$hardcode_minus_L_F77
15664 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15665 # the resulting binary.
15666 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15668 # Set to yes if building a shared library automatically hardcodes DIR into the library
15669 # and all subsequent libraries and executables linked against it.
15670 hardcode_automatic=$hardcode_automatic_F77
15672 # Variables whose values should be saved in libtool wrapper scripts and
15673 # restored at relink time.
15674 variables_saved_for_relink="$variables_saved_for_relink"
15676 # Whether libtool must link a program against all its dependency libraries.
15677 link_all_deplibs=$link_all_deplibs_F77
15679 # Compile-time system search path for libraries
15680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15682 # Run-time system search path for libraries
15683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15685 # Fix the shell variable \$srcfile for the compiler.
15686 fix_srcfile_path="$fix_srcfile_path_F77"
15688 # Set to yes if exported symbols are required.
15689 always_export_symbols=$always_export_symbols_F77
15691 # The commands to list exported symbols.
15692 export_symbols_cmds=$lt_export_symbols_cmds_F77
15694 # The commands to extract the exported symbol list from a shared archive.
15695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15697 # Symbols that should not be listed in the preloaded symbols.
15698 exclude_expsyms=$lt_exclude_expsyms_F77
15700 # Symbols that must always be exported.
15701 include_expsyms=$lt_include_expsyms_F77
15703 # ### END LIBTOOL TAG CONFIG: $tagname
15705 __EOF__
15708 else
15709 # If there is no Makefile yet, we rely on a make rule to execute
15710 # `config.status --recheck' to rerun these tests and create the
15711 # libtool script then.
15712 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15713 if test -f "$ltmain_in"; then
15714 test -f Makefile && make "$ltmain"
15719 ac_ext=c
15720 ac_cpp='$CPP $CPPFLAGS'
15721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15725 CC="$lt_save_CC"
15727 else
15728 tagname=""
15732 GCJ)
15733 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15737 # Source file extension for Java test sources.
15738 ac_ext=java
15740 # Object file extension for compiled Java test sources.
15741 objext=o
15742 objext_GCJ=$objext
15744 # Code to be used in simple compile tests
15745 lt_simple_compile_test_code="class foo {}\n"
15747 # Code to be used in simple link tests
15748 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15750 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15752 # If no C compiler was specified, use CC.
15753 LTCC=${LTCC-"$CC"}
15755 # Allow CC to be a program name with arguments.
15756 compiler=$CC
15759 # Allow CC to be a program name with arguments.
15760 lt_save_CC="$CC"
15761 CC=${GCJ-"gcj"}
15762 compiler=$CC
15763 compiler_GCJ=$CC
15765 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15766 archive_cmds_need_lc_GCJ=no
15768 ## CAVEAT EMPTOR:
15769 ## There is no encapsulation within the following macros, do not change
15770 ## the running order or otherwise move them around unless you know exactly
15771 ## what you are doing...
15773 lt_prog_compiler_no_builtin_flag_GCJ=
15775 if test "$GCC" = yes; then
15776 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15779 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15780 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15781 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784 lt_cv_prog_compiler_rtti_exceptions=no
15785 ac_outfile=conftest.$ac_objext
15786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15787 lt_compiler_flag="-fno-rtti -fno-exceptions"
15788 # Insert the option either (1) after the last *FLAGS variable, or
15789 # (2) before a word containing "conftest.", or (3) at the end.
15790 # Note that $ac_compile itself does not contain backslashes and begins
15791 # with a dollar sign (not a hyphen), so the echo should work correctly.
15792 # The option is referenced via a variable to avoid confusing sed.
15793 lt_compile=`echo "$ac_compile" | $SED \
15794 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15796 -e 's:$: $lt_compiler_flag:'`
15797 (eval echo "\"\$as_me:15797: $lt_compile\"" >&5)
15798 (eval "$lt_compile" 2>conftest.err)
15799 ac_status=$?
15800 cat conftest.err >&5
15801 echo "$as_me:15801: \$? = $ac_status" >&5
15802 if (exit $ac_status) && test -s "$ac_outfile"; then
15803 # The compiler can only warn and ignore the option if not recognized
15804 # So say no if there are warnings
15805 if test ! -s conftest.err; then
15806 lt_cv_prog_compiler_rtti_exceptions=yes
15809 $rm conftest*
15812 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15813 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15815 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15816 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15817 else
15823 lt_prog_compiler_wl_GCJ=
15824 lt_prog_compiler_pic_GCJ=
15825 lt_prog_compiler_static_GCJ=
15827 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15828 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15830 if test "$GCC" = yes; then
15831 lt_prog_compiler_wl_GCJ='-Wl,'
15832 lt_prog_compiler_static_GCJ='-static'
15834 case $host_os in
15835 aix*)
15836 # All AIX code is PIC.
15837 if test "$host_cpu" = ia64; then
15838 # AIX 5 now supports IA64 processor
15839 lt_prog_compiler_static_GCJ='-Bstatic'
15843 amigaos*)
15844 # FIXME: we need at least 68020 code to build shared libraries, but
15845 # adding the `-m68020' flag to GCC prevents building anything better,
15846 # like `-m68040'.
15847 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15850 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15851 # PIC is the default for these OSes.
15854 mingw* | pw32* | os2*)
15855 # This hack is so that the source file can tell whether it is being
15856 # built for inclusion in a dll (and should export symbols for example).
15857 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15860 darwin* | rhapsody*)
15861 # PIC is the default on this platform
15862 # Common symbols not allowed in MH_DYLIB files
15863 lt_prog_compiler_pic_GCJ='-fno-common'
15866 msdosdjgpp*)
15867 # Just because we use GCC doesn't mean we suddenly get shared libraries
15868 # on systems that don't support them.
15869 lt_prog_compiler_can_build_shared_GCJ=no
15870 enable_shared=no
15873 sysv4*MP*)
15874 if test -d /usr/nec; then
15875 lt_prog_compiler_pic_GCJ=-Kconform_pic
15879 hpux*)
15880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15881 # not for PA HP-UX.
15882 case "$host_cpu" in
15883 hppa*64*|ia64*)
15884 # +Z the default
15887 lt_prog_compiler_pic_GCJ='-fPIC'
15889 esac
15893 lt_prog_compiler_pic_GCJ='-fPIC'
15895 esac
15896 else
15897 # PORTME Check for flag to pass linker flags through the system compiler.
15898 case $host_os in
15899 aix*)
15900 lt_prog_compiler_wl_GCJ='-Wl,'
15901 if test "$host_cpu" = ia64; then
15902 # AIX 5 now supports IA64 processor
15903 lt_prog_compiler_static_GCJ='-Bstatic'
15904 else
15905 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15908 darwin*)
15909 # PIC is the default on this platform
15910 # Common symbols not allowed in MH_DYLIB files
15911 case "$cc_basename" in
15912 xlc*)
15913 lt_prog_compiler_pic_GCJ='-qnocommon'
15914 lt_prog_compiler_wl_GCJ='-Wl,'
15916 esac
15919 mingw* | pw32* | os2*)
15920 # This hack is so that the source file can tell whether it is being
15921 # built for inclusion in a dll (and should export symbols for example).
15922 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15925 hpux9* | hpux10* | hpux11*)
15926 lt_prog_compiler_wl_GCJ='-Wl,'
15927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15928 # not for PA HP-UX.
15929 case "$host_cpu" in
15930 hppa*64*|ia64*)
15931 # +Z the default
15934 lt_prog_compiler_pic_GCJ='+Z'
15936 esac
15937 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15938 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15941 irix5* | irix6* | nonstopux*)
15942 lt_prog_compiler_wl_GCJ='-Wl,'
15943 # PIC (with -KPIC) is the default.
15944 lt_prog_compiler_static_GCJ='-non_shared'
15947 newsos6)
15948 lt_prog_compiler_pic_GCJ='-KPIC'
15949 lt_prog_compiler_static_GCJ='-Bstatic'
15952 linux*)
15953 case $cc_basename in
15954 icc* | ecc*)
15955 lt_prog_compiler_wl_GCJ='-Wl,'
15956 lt_prog_compiler_pic_GCJ='-KPIC'
15957 lt_prog_compiler_static_GCJ='-static'
15959 pgcc | pgf77 | pgf90)
15960 # Portland Group compilers (*not* the Pentium gcc compiler,
15961 # which looks to be a dead project)
15962 lt_prog_compiler_wl_GCJ='-Wl,'
15963 lt_prog_compiler_pic_GCJ='-fpic'
15964 lt_prog_compiler_static_GCJ='-static'
15966 ccc*)
15967 lt_prog_compiler_wl_GCJ='-Wl,'
15968 # All Alpha code is PIC.
15969 lt_prog_compiler_static_GCJ='-non_shared'
15971 como)
15972 lt_prog_compiler_wl_GCJ='-lopt='
15974 esac
15977 osf3* | osf4* | osf5*)
15978 lt_prog_compiler_wl_GCJ='-Wl,'
15979 # All OSF/1 code is PIC.
15980 lt_prog_compiler_static_GCJ='-non_shared'
15983 sco3.2v5*)
15984 lt_prog_compiler_pic_GCJ='-Kpic'
15985 lt_prog_compiler_static_GCJ='-dn'
15988 solaris*)
15989 lt_prog_compiler_wl_GCJ='-Wl,'
15990 lt_prog_compiler_pic_GCJ='-KPIC'
15991 lt_prog_compiler_static_GCJ='-Bstatic'
15994 sunos4*)
15995 lt_prog_compiler_wl_GCJ='-Qoption ld '
15996 lt_prog_compiler_pic_GCJ='-PIC'
15997 lt_prog_compiler_static_GCJ='-Bstatic'
16000 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16001 lt_prog_compiler_wl_GCJ='-Wl,'
16002 lt_prog_compiler_pic_GCJ='-KPIC'
16003 lt_prog_compiler_static_GCJ='-Bstatic'
16006 sysv4*MP*)
16007 if test -d /usr/nec ;then
16008 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16009 lt_prog_compiler_static_GCJ='-Bstatic'
16013 unicos*)
16014 lt_prog_compiler_wl_GCJ='-Wl,'
16015 lt_prog_compiler_can_build_shared_GCJ=no
16018 uts4*)
16019 lt_prog_compiler_pic_GCJ='-pic'
16020 lt_prog_compiler_static_GCJ='-Bstatic'
16024 lt_prog_compiler_can_build_shared_GCJ=no
16026 esac
16029 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16030 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16033 # Check to make sure the PIC flag actually works.
16035 if test -n "$lt_prog_compiler_pic_GCJ"; then
16037 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16038 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16039 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 else
16042 lt_prog_compiler_pic_works_GCJ=no
16043 ac_outfile=conftest.$ac_objext
16044 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16045 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16046 # Insert the option either (1) after the last *FLAGS variable, or
16047 # (2) before a word containing "conftest.", or (3) at the end.
16048 # Note that $ac_compile itself does not contain backslashes and begins
16049 # with a dollar sign (not a hyphen), so the echo should work correctly.
16050 # The option is referenced via a variable to avoid confusing sed.
16051 lt_compile=`echo "$ac_compile" | $SED \
16052 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16054 -e 's:$: $lt_compiler_flag:'`
16055 (eval echo "\"\$as_me:16055: $lt_compile\"" >&5)
16056 (eval "$lt_compile" 2>conftest.err)
16057 ac_status=$?
16058 cat conftest.err >&5
16059 echo "$as_me:16059: \$? = $ac_status" >&5
16060 if (exit $ac_status) && test -s "$ac_outfile"; then
16061 # The compiler can only warn and ignore the option if not recognized
16062 # So say no if there are warnings
16063 if test ! -s conftest.err; then
16064 lt_prog_compiler_pic_works_GCJ=yes
16067 $rm conftest*
16070 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16071 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16073 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16074 case $lt_prog_compiler_pic_GCJ in
16075 "" | " "*) ;;
16076 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16077 esac
16078 else
16079 lt_prog_compiler_pic_GCJ=
16080 lt_prog_compiler_can_build_shared_GCJ=no
16084 case "$host_os" in
16085 # For platforms which do not support PIC, -DPIC is meaningless:
16086 *djgpp*)
16087 lt_prog_compiler_pic_GCJ=
16090 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16092 esac
16094 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16095 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16096 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 else
16099 lt_cv_prog_compiler_c_o_GCJ=no
16100 $rm -r conftest 2>/dev/null
16101 mkdir conftest
16102 cd conftest
16103 mkdir out
16104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16106 lt_compiler_flag="-o out/conftest2.$ac_objext"
16107 # Insert the option either (1) after the last *FLAGS variable, or
16108 # (2) before a word containing "conftest.", or (3) at the end.
16109 # Note that $ac_compile itself does not contain backslashes and begins
16110 # with a dollar sign (not a hyphen), so the echo should work correctly.
16111 lt_compile=`echo "$ac_compile" | $SED \
16112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16114 -e 's:$: $lt_compiler_flag:'`
16115 (eval echo "\"\$as_me:16115: $lt_compile\"" >&5)
16116 (eval "$lt_compile" 2>out/conftest.err)
16117 ac_status=$?
16118 cat out/conftest.err >&5
16119 echo "$as_me:16119: \$? = $ac_status" >&5
16120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16121 then
16122 # The compiler can only warn and ignore the option if not recognized
16123 # So say no if there are warnings
16124 if test ! -s out/conftest.err; then
16125 lt_cv_prog_compiler_c_o_GCJ=yes
16128 chmod u+w .
16129 $rm conftest*
16130 # SGI C++ compiler will create directory out/ii_files/ for
16131 # template instantiation
16132 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16133 $rm out/* && rmdir out
16134 cd ..
16135 rmdir conftest
16136 $rm conftest*
16139 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16143 hard_links="nottested"
16144 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16145 # do not overwrite the value of need_locks provided by the user
16146 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16147 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16148 hard_links=yes
16149 $rm conftest*
16150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16151 touch conftest.a
16152 ln conftest.a conftest.b 2>&5 || hard_links=no
16153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16154 echo "$as_me:$LINENO: result: $hard_links" >&5
16155 echo "${ECHO_T}$hard_links" >&6
16156 if test "$hard_links" = no; then
16157 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16158 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16159 need_locks=warn
16161 else
16162 need_locks=no
16165 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16166 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16168 runpath_var=
16169 allow_undefined_flag_GCJ=
16170 enable_shared_with_static_runtimes_GCJ=no
16171 archive_cmds_GCJ=
16172 archive_expsym_cmds_GCJ=
16173 old_archive_From_new_cmds_GCJ=
16174 old_archive_from_expsyms_cmds_GCJ=
16175 export_dynamic_flag_spec_GCJ=
16176 whole_archive_flag_spec_GCJ=
16177 thread_safe_flag_spec_GCJ=
16178 hardcode_libdir_flag_spec_GCJ=
16179 hardcode_libdir_flag_spec_ld_GCJ=
16180 hardcode_libdir_separator_GCJ=
16181 hardcode_direct_GCJ=no
16182 hardcode_minus_L_GCJ=no
16183 hardcode_shlibpath_var_GCJ=unsupported
16184 link_all_deplibs_GCJ=unknown
16185 hardcode_automatic_GCJ=no
16186 module_cmds_GCJ=
16187 module_expsym_cmds_GCJ=
16188 always_export_symbols_GCJ=no
16189 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16190 # include_expsyms should be a list of space-separated symbols to be *always*
16191 # included in the symbol list
16192 include_expsyms_GCJ=
16193 # exclude_expsyms can be an extended regexp of symbols to exclude
16194 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16195 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16196 # as well as any symbol that contains `d'.
16197 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16198 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16199 # platforms (ab)use it in PIC code, but their linkers get confused if
16200 # the symbol is explicitly referenced. Since portable code cannot
16201 # rely on this symbol name, it's probably fine to never include it in
16202 # preloaded symbol tables.
16203 extract_expsyms_cmds=
16205 case $host_os in
16206 cygwin* | mingw* | pw32*)
16207 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16208 # When not using gcc, we currently assume that we are using
16209 # Microsoft Visual C++.
16210 if test "$GCC" != yes; then
16211 with_gnu_ld=no
16214 openbsd*)
16215 with_gnu_ld=no
16217 esac
16219 ld_shlibs_GCJ=yes
16220 if test "$with_gnu_ld" = yes; then
16221 # If archive_cmds runs LD, not CC, wlarc should be empty
16222 wlarc='${wl}'
16224 # See if GNU ld supports shared libraries.
16225 case $host_os in
16226 aix3* | aix4* | aix5*)
16227 # On AIX/PPC, the GNU linker is very broken
16228 if test "$host_cpu" != ia64; then
16229 ld_shlibs_GCJ=no
16230 cat <<EOF 1>&2
16232 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16233 *** to be unable to reliably create shared libraries on AIX.
16234 *** Therefore, libtool is disabling shared libraries support. If you
16235 *** really care for shared libraries, you may want to modify your PATH
16236 *** so that a non-GNU linker is found, and then restart.
16242 amigaos*)
16243 archive_cmds_GCJ='$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)'
16244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16245 hardcode_minus_L_GCJ=yes
16247 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16248 # that the semantics of dynamic libraries on AmigaOS, at least up
16249 # to version 4, is to share data among multiple programs linked
16250 # with the same dynamic library. Since this doesn't match the
16251 # behavior of shared libraries on other platforms, we can't use
16252 # them.
16253 ld_shlibs_GCJ=no
16256 beos*)
16257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16258 allow_undefined_flag_GCJ=unsupported
16259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16260 # support --undefined. This deserves some investigation. FIXME
16261 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16262 else
16263 ld_shlibs_GCJ=no
16267 cygwin* | mingw* | pw32*)
16268 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16269 # as there is no search path for DLLs.
16270 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16271 allow_undefined_flag_GCJ=unsupported
16272 always_export_symbols_GCJ=no
16273 enable_shared_with_static_runtimes_GCJ=yes
16274 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16276 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16277 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16278 # If the export-symbols file already is a .def file (1st line
16279 # is EXPORTS), use it as is; otherwise, prepend...
16280 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16281 cp $export_symbols $output_objdir/$soname.def;
16282 else
16283 echo EXPORTS > $output_objdir/$soname.def;
16284 cat $export_symbols >> $output_objdir/$soname.def;
16286 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16287 else
16288 ld_shlibs_GCJ=no
16292 netbsd*)
16293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16294 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16295 wlarc=
16296 else
16297 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16298 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16302 solaris* | sysv5*)
16303 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16304 ld_shlibs_GCJ=no
16305 cat <<EOF 1>&2
16307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16308 *** create shared libraries on Solaris systems. Therefore, libtool
16309 *** is disabling shared libraries support. We urge you to upgrade GNU
16310 *** binutils to release 2.9.1 or newer. Another option is to modify
16311 *** your PATH or compiler configuration so that the native linker is
16312 *** used, and then restart.
16315 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16316 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16317 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16318 else
16319 ld_shlibs_GCJ=no
16323 sunos4*)
16324 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16325 wlarc=
16326 hardcode_direct_GCJ=yes
16327 hardcode_shlibpath_var_GCJ=no
16330 linux*)
16331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16332 tmp_addflag=
16333 case $CC,$host_cpu in
16334 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16335 tmp_addflag=' -fpic' ;;
16336 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16337 tmp_addflag=' -i_dynamic' ;;
16338 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16339 tmp_addflag=' -i_dynamic -nofor_main' ;;
16340 ifc* | ifort*) # Intel Fortran compiler
16341 tmp_addflag=' -nofor_main' ;;
16342 esac
16343 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16344 supports_anon_versioning=no
16345 case `$LD -v 2>/dev/null` in
16346 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16347 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16348 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16349 *\ 2.11.*) ;; # other 2.11 versions
16350 *) supports_anon_versioning=yes ;;
16351 esac
16352 if test $supports_anon_versioning = yes; then
16353 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16355 $echo "local: *; };" >> $output_objdir/$libname.ver~
16356 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16357 else
16358 archive_expsym_cmds_GCJ=$archive_cmds_GCJ
16360 else
16361 ld_shlibs_GCJ=no
16366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16367 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16368 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16369 else
16370 ld_shlibs_GCJ=no
16373 esac
16375 if test "$ld_shlibs_GCJ" = yes; then
16376 runpath_var=LD_RUN_PATH
16377 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16378 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16379 # ancient GNU ld didn't support --whole-archive et. al.
16380 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16381 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16382 else
16383 whole_archive_flag_spec_GCJ=
16386 else
16387 # PORTME fill in a description of your system's linker (not GNU ld)
16388 case $host_os in
16389 aix3*)
16390 allow_undefined_flag_GCJ=unsupported
16391 always_export_symbols_GCJ=yes
16392 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16393 # Note: this linker hardcodes the directories in LIBPATH if there
16394 # are no directories specified by -L.
16395 hardcode_minus_L_GCJ=yes
16396 if test "$GCC" = yes && test -z "$link_static_flag"; then
16397 # Neither direct hardcoding nor static linking is supported with a
16398 # broken collect2.
16399 hardcode_direct_GCJ=unsupported
16403 aix4* | aix5*)
16404 if test "$host_cpu" = ia64; then
16405 # On IA64, the linker does run time linking by default, so we don't
16406 # have to do anything special.
16407 aix_use_runtimelinking=no
16408 exp_sym_flag='-Bexport'
16409 no_entry_flag=""
16410 else
16411 # If we're using GNU nm, then we don't want the "-C" option.
16412 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16413 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16414 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16415 else
16416 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16418 aix_use_runtimelinking=no
16420 # Test if we are trying to use run time linking or normal
16421 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16422 # need to do runtime linking.
16423 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16424 for ld_flag in $LDFLAGS; do
16425 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16426 aix_use_runtimelinking=yes
16427 break
16429 done
16430 esac
16432 exp_sym_flag='-bexport'
16433 no_entry_flag='-bnoentry'
16436 # When large executables or shared objects are built, AIX ld can
16437 # have problems creating the table of contents. If linking a library
16438 # or program results in "error TOC overflow" add -mminimal-toc to
16439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16442 archive_cmds_GCJ=''
16443 hardcode_direct_GCJ=yes
16444 hardcode_libdir_separator_GCJ=':'
16445 link_all_deplibs_GCJ=yes
16447 if test "$GCC" = yes; then
16448 case $host_os in aix4.[012]|aix4.[012].*)
16449 # We only want to do this on AIX 4.2 and lower, the check
16450 # below for broken collect2 doesn't work under 4.3+
16451 collect2name=`${CC} -print-prog-name=collect2`
16452 if test -f "$collect2name" && \
16453 strings "$collect2name" | grep resolve_lib_name >/dev/null
16454 then
16455 # We have reworked collect2
16456 hardcode_direct_GCJ=yes
16457 else
16458 # We have old collect2
16459 hardcode_direct_GCJ=unsupported
16460 # It fails to find uninstalled libraries when the uninstalled
16461 # path is not listed in the libpath. Setting hardcode_minus_L
16462 # to unsupported forces relinking
16463 hardcode_minus_L_GCJ=yes
16464 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16465 hardcode_libdir_separator_GCJ=
16467 esac
16468 shared_flag='-shared'
16469 if test "$aix_use_runtimelinking" = yes; then
16470 shared_flag="$shared_flag "'${wl}-G'
16472 else
16473 # not using gcc
16474 if test "$host_cpu" = ia64; then
16475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16476 # chokes on -Wl,-G. The following line is correct:
16477 shared_flag='-G'
16478 else
16479 if test "$aix_use_runtimelinking" = yes; then
16480 shared_flag='${wl}-G'
16481 else
16482 shared_flag='${wl}-bM:SRE'
16487 # It seems that -bexpall does not export symbols beginning with
16488 # underscore (_), so it is better to generate a list of symbols to export.
16489 always_export_symbols_GCJ=yes
16490 if test "$aix_use_runtimelinking" = yes; then
16491 # Warning - without using the other runtime loading flags (-brtl),
16492 # -berok will link without error, but may produce a broken library.
16493 allow_undefined_flag_GCJ='-berok'
16494 # Determine the default libpath from the value encoded in an empty executable.
16495 cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h. */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16503 main ()
16507 return 0;
16509 _ACEOF
16510 rm -f conftest.$ac_objext conftest$ac_exeext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512 (eval $ac_link) 2>conftest.er1
16513 ac_status=$?
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -z "$ac_c_werror_flag"
16520 || test ! -s conftest.err'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16535 # Check for a 64-bit object if we didn't find anything.
16536 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16537 }'`; fi
16538 else
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16543 rm -f conftest.err conftest.$ac_objext \
16544 conftest$ac_exeext conftest.$ac_ext
16545 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16547 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16548 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16549 else
16550 if test "$host_cpu" = ia64; then
16551 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16552 allow_undefined_flag_GCJ="-z nodefs"
16553 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16554 else
16555 # Determine the default libpath from the value encoded in an empty executable.
16556 cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h. */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16564 main ()
16568 return 0;
16570 _ACEOF
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573 (eval $ac_link) 2>conftest.er1
16574 ac_status=$?
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag"
16581 || test ! -s conftest.err'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest$ac_exeext'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16596 # Check for a 64-bit object if we didn't find anything.
16597 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16598 }'`; fi
16599 else
16600 echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16604 rm -f conftest.err conftest.$ac_objext \
16605 conftest$ac_exeext conftest.$ac_ext
16606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16608 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16609 # Warning - without using the other run time loading flags,
16610 # -berok will link without error, but may produce a broken library.
16611 no_undefined_flag_GCJ=' ${wl}-bernotok'
16612 allow_undefined_flag_GCJ=' ${wl}-berok'
16613 # -bexpall does not export symbols beginning with underscore (_)
16614 always_export_symbols_GCJ=yes
16615 # Exported symbols can be pulled into shared objects from archives
16616 whole_archive_flag_spec_GCJ=' '
16617 archive_cmds_need_lc_GCJ=yes
16618 # This is similar to how AIX traditionally builds it's shared libraries.
16619 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16624 amigaos*)
16625 archive_cmds_GCJ='$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)'
16626 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16627 hardcode_minus_L_GCJ=yes
16628 # see comment about different semantics on the GNU ld section
16629 ld_shlibs_GCJ=no
16632 bsdi[45]*)
16633 export_dynamic_flag_spec_GCJ=-rdynamic
16636 cygwin* | mingw* | pw32*)
16637 # When not using gcc, we currently assume that we are using
16638 # Microsoft Visual C++.
16639 # hardcode_libdir_flag_spec is actually meaningless, as there is
16640 # no search path for DLLs.
16641 hardcode_libdir_flag_spec_GCJ=' '
16642 allow_undefined_flag_GCJ=unsupported
16643 # Tell ltmain to make .lib files, not .a files.
16644 libext=lib
16645 # Tell ltmain to make .dll files, not .so files.
16646 shrext_cmds=".dll"
16647 # FIXME: Setting linknames here is a bad hack.
16648 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16649 # The linker will automatically build a .lib file if we build a DLL.
16650 old_archive_From_new_cmds_GCJ='true'
16651 # FIXME: Should let the user specify the lib program.
16652 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16653 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16654 enable_shared_with_static_runtimes_GCJ=yes
16657 darwin* | rhapsody*)
16658 case "$host_os" in
16659 rhapsody* | darwin1.[012])
16660 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16662 *) # Darwin 1.3 on
16663 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16664 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16665 else
16666 case ${MACOSX_DEPLOYMENT_TARGET} in
16667 10.[012])
16668 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16670 10.*)
16671 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16673 esac
16676 esac
16677 archive_cmds_need_lc_GCJ=no
16678 hardcode_direct_GCJ=no
16679 hardcode_automatic_GCJ=yes
16680 hardcode_shlibpath_var_GCJ=unsupported
16681 whole_archive_flag_spec_GCJ=''
16682 link_all_deplibs_GCJ=yes
16683 if test "$GCC" = yes ; then
16684 output_verbose_link_cmd='echo'
16685 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16686 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16687 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16688 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16689 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16690 else
16691 case "$cc_basename" in
16692 xlc*)
16693 output_verbose_link_cmd='echo'
16694 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16695 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16696 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16697 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16698 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16701 ld_shlibs_GCJ=no
16703 esac
16707 dgux*)
16708 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16710 hardcode_shlibpath_var_GCJ=no
16713 freebsd1*)
16714 ld_shlibs_GCJ=no
16717 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16718 # support. Future versions do this automatically, but an explicit c++rt0.o
16719 # does not break anything, and helps significantly (at the cost of a little
16720 # extra space).
16721 freebsd2.2*)
16722 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16723 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16724 hardcode_direct_GCJ=yes
16725 hardcode_shlibpath_var_GCJ=no
16728 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16729 freebsd2*)
16730 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16731 hardcode_direct_GCJ=yes
16732 hardcode_minus_L_GCJ=yes
16733 hardcode_shlibpath_var_GCJ=no
16736 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16737 freebsd* | kfreebsd*-gnu | dragonfly*)
16738 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16739 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16740 hardcode_direct_GCJ=yes
16741 hardcode_shlibpath_var_GCJ=no
16744 hpux9*)
16745 if test "$GCC" = yes; then
16746 archive_cmds_GCJ='$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'
16747 else
16748 archive_cmds_GCJ='$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'
16750 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16751 hardcode_libdir_separator_GCJ=:
16752 hardcode_direct_GCJ=yes
16754 # hardcode_minus_L: Not really in the search PATH,
16755 # but as the default location of the library.
16756 hardcode_minus_L_GCJ=yes
16757 export_dynamic_flag_spec_GCJ='${wl}-E'
16760 hpux10* | hpux11*)
16761 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16762 case "$host_cpu" in
16763 hppa*64*|ia64*)
16764 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16767 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16769 esac
16770 else
16771 case "$host_cpu" in
16772 hppa*64*|ia64*)
16773 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16776 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16778 esac
16780 if test "$with_gnu_ld" = no; then
16781 case "$host_cpu" in
16782 hppa*64*)
16783 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16784 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16785 hardcode_libdir_separator_GCJ=:
16786 hardcode_direct_GCJ=no
16787 hardcode_shlibpath_var_GCJ=no
16789 ia64*)
16790 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16791 hardcode_direct_GCJ=no
16792 hardcode_shlibpath_var_GCJ=no
16794 # hardcode_minus_L: Not really in the search PATH,
16795 # but as the default location of the library.
16796 hardcode_minus_L_GCJ=yes
16799 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16800 hardcode_libdir_separator_GCJ=:
16801 hardcode_direct_GCJ=yes
16802 export_dynamic_flag_spec_GCJ='${wl}-E'
16804 # hardcode_minus_L: Not really in the search PATH,
16805 # but as the default location of the library.
16806 hardcode_minus_L_GCJ=yes
16808 esac
16812 irix5* | irix6* | nonstopux*)
16813 if test "$GCC" = yes; then
16814 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16815 else
16816 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16817 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16819 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16820 hardcode_libdir_separator_GCJ=:
16821 link_all_deplibs_GCJ=yes
16824 netbsd*)
16825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16826 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16827 else
16828 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16830 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16831 hardcode_direct_GCJ=yes
16832 hardcode_shlibpath_var_GCJ=no
16835 newsos6)
16836 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16837 hardcode_direct_GCJ=yes
16838 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16839 hardcode_libdir_separator_GCJ=:
16840 hardcode_shlibpath_var_GCJ=no
16843 openbsd*)
16844 hardcode_direct_GCJ=yes
16845 hardcode_shlibpath_var_GCJ=no
16846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16847 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16848 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16849 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16850 export_dynamic_flag_spec_GCJ='${wl}-E'
16851 else
16852 case $host_os in
16853 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16854 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16855 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16858 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16859 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16861 esac
16865 os2*)
16866 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867 hardcode_minus_L_GCJ=yes
16868 allow_undefined_flag_GCJ=unsupported
16869 archive_cmds_GCJ='$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'
16870 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16873 osf3*)
16874 if test "$GCC" = yes; then
16875 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16876 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16877 else
16878 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16879 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16881 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16882 hardcode_libdir_separator_GCJ=:
16885 osf4* | osf5*) # as osf3* with the addition of -msym flag
16886 if test "$GCC" = yes; then
16887 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16888 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16889 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16890 else
16891 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16892 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16893 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16894 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16896 # Both c and cxx compiler support -rpath directly
16897 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16899 hardcode_libdir_separator_GCJ=:
16902 sco3.2v5*)
16903 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16904 hardcode_shlibpath_var_GCJ=no
16905 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16906 runpath_var=LD_RUN_PATH
16907 hardcode_runpath_var=yes
16910 solaris*)
16911 no_undefined_flag_GCJ=' -z text'
16912 if test "$GCC" = yes; then
16913 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16914 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16915 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16916 else
16917 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16918 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16919 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16921 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16922 hardcode_shlibpath_var_GCJ=no
16923 case $host_os in
16924 solaris2.[0-5] | solaris2.[0-5].*) ;;
16925 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16926 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16927 esac
16928 link_all_deplibs_GCJ=yes
16931 sunos4*)
16932 if test "x$host_vendor" = xsequent; then
16933 # Use $CC to link under sequent, because it throws in some extra .o
16934 # files that make .init and .fini sections work.
16935 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16936 else
16937 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940 hardcode_direct_GCJ=yes
16941 hardcode_minus_L_GCJ=yes
16942 hardcode_shlibpath_var_GCJ=no
16945 sysv4)
16946 case $host_vendor in
16947 sni)
16948 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16949 hardcode_direct_GCJ=yes # is this really true???
16951 siemens)
16952 ## LD is ld it makes a PLAMLIB
16953 ## CC just makes a GrossModule.
16954 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16955 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16956 hardcode_direct_GCJ=no
16958 motorola)
16959 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16960 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16962 esac
16963 runpath_var='LD_RUN_PATH'
16964 hardcode_shlibpath_var_GCJ=no
16967 sysv4.3*)
16968 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16969 hardcode_shlibpath_var_GCJ=no
16970 export_dynamic_flag_spec_GCJ='-Bexport'
16973 sysv4*MP*)
16974 if test -d /usr/nec; then
16975 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16976 hardcode_shlibpath_var_GCJ=no
16977 runpath_var=LD_RUN_PATH
16978 hardcode_runpath_var=yes
16979 ld_shlibs_GCJ=yes
16983 sysv4.2uw2*)
16984 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16985 hardcode_direct_GCJ=yes
16986 hardcode_minus_L_GCJ=no
16987 hardcode_shlibpath_var_GCJ=no
16988 hardcode_runpath_var=yes
16989 runpath_var=LD_RUN_PATH
16992 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16993 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16994 if test "$GCC" = yes; then
16995 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16996 else
16997 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16999 runpath_var='LD_RUN_PATH'
17000 hardcode_shlibpath_var_GCJ=no
17003 sysv5*)
17004 no_undefined_flag_GCJ=' -z text'
17005 # $CC -shared without GNU ld will not create a library from C++
17006 # object files and a static libstdc++, better avoid it by now
17007 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17008 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17009 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17010 hardcode_libdir_flag_spec_GCJ=
17011 hardcode_shlibpath_var_GCJ=no
17012 runpath_var='LD_RUN_PATH'
17015 uts4*)
17016 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17017 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17018 hardcode_shlibpath_var_GCJ=no
17022 ld_shlibs_GCJ=no
17024 esac
17027 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17028 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17029 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17031 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17032 if test "$GCC" = yes; then
17033 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17037 # Do we need to explicitly link libc?
17039 case "x$archive_cmds_need_lc_GCJ" in
17040 x|xyes)
17041 # Assume -lc should be added
17042 archive_cmds_need_lc_GCJ=yes
17044 if test "$enable_shared" = yes && test "$GCC" = yes; then
17045 case $archive_cmds_GCJ in
17046 *'~'*)
17047 # FIXME: we may have to deal with multi-command sequences.
17049 '$CC '*)
17050 # Test whether the compiler implicitly links with -lc since on some
17051 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17052 # to ld, don't add -lc before -lgcc.
17053 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17054 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17055 $rm conftest*
17056 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17059 (eval $ac_compile) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } 2>conftest.err; then
17063 soname=conftest
17064 lib=conftest
17065 libobjs=conftest.$ac_objext
17066 deplibs=
17067 wl=$lt_prog_compiler_wl_GCJ
17068 compiler_flags=-v
17069 linker_flags=-v
17070 verstring=
17071 output_objdir=.
17072 libname=conftest
17073 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17074 allow_undefined_flag_GCJ=
17075 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17076 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }
17080 then
17081 archive_cmds_need_lc_GCJ=no
17082 else
17083 archive_cmds_need_lc_GCJ=yes
17085 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17086 else
17087 cat conftest.err 1>&5
17089 $rm conftest*
17090 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17091 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17093 esac
17096 esac
17098 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17099 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17100 library_names_spec=
17101 libname_spec='lib$name'
17102 soname_spec=
17103 shrext_cmds=".so"
17104 postinstall_cmds=
17105 postuninstall_cmds=
17106 finish_cmds=
17107 finish_eval=
17108 shlibpath_var=
17109 shlibpath_overrides_runpath=unknown
17110 version_type=none
17111 dynamic_linker="$host_os ld.so"
17112 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17113 if test "$GCC" = yes; then
17114 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17115 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17116 # if the path contains ";" then we assume it to be the separator
17117 # otherwise default to the standard path separator (i.e. ":") - it is
17118 # assumed that no part of a normal pathname contains ";" but that should
17119 # okay in the real world where ";" in dirpaths is itself problematic.
17120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17121 else
17122 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17124 else
17125 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17127 need_lib_prefix=unknown
17128 hardcode_into_libs=no
17130 # when you set need_version to no, make sure it does not cause -set_version
17131 # flags to be left without arguments
17132 need_version=unknown
17134 case $host_os in
17135 aix3*)
17136 version_type=linux
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17138 shlibpath_var=LIBPATH
17140 # AIX 3 has no versioning support, so we append a major version to the name.
17141 soname_spec='${libname}${release}${shared_ext}$major'
17144 aix4* | aix5*)
17145 version_type=linux
17146 need_lib_prefix=no
17147 need_version=no
17148 hardcode_into_libs=yes
17149 if test "$host_cpu" = ia64; then
17150 # AIX 5 supports IA64
17151 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17152 shlibpath_var=LD_LIBRARY_PATH
17153 else
17154 # With GCC up to 2.95.x, collect2 would create an import file
17155 # for dependence libraries. The import file would start with
17156 # the line `#! .'. This would cause the generated library to
17157 # depend on `.', always an invalid library. This was fixed in
17158 # development snapshots of GCC prior to 3.0.
17159 case $host_os in
17160 aix4 | aix4.[01] | aix4.[01].*)
17161 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17162 echo ' yes '
17163 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17165 else
17166 can_build_shared=no
17169 esac
17170 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17171 # soname into executable. Probably we can add versioning support to
17172 # collect2, so additional links can be useful in future.
17173 if test "$aix_use_runtimelinking" = yes; then
17174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17175 # instead of lib<name>.a to let people know that these are not
17176 # typical AIX shared libraries.
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178 else
17179 # We preserve .a as extension for shared libraries through AIX4.2
17180 # and later when we are not doing run time linking.
17181 library_names_spec='${libname}${release}.a $libname.a'
17182 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LIBPATH
17188 amigaos*)
17189 library_names_spec='$libname.ixlibrary $libname.a'
17190 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17191 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'
17194 beos*)
17195 library_names_spec='${libname}${shared_ext}'
17196 dynamic_linker="$host_os ld.so"
17197 shlibpath_var=LIBRARY_PATH
17200 bsdi[45]*)
17201 version_type=linux
17202 need_version=no
17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17204 soname_spec='${libname}${release}${shared_ext}$major'
17205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17206 shlibpath_var=LD_LIBRARY_PATH
17207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17209 # the default ld.so.conf also contains /usr/contrib/lib and
17210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17211 # libtool to hard-code these into programs
17214 cygwin* | mingw* | pw32*)
17215 version_type=windows
17216 shrext_cmds=".dll"
17217 need_version=no
17218 need_lib_prefix=no
17220 case $GCC,$host_os in
17221 yes,cygwin* | yes,mingw* | yes,pw32*)
17222 library_names_spec='$libname.dll.a'
17223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17224 postinstall_cmds='base_file=`basename \${file}`~
17225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17226 dldir=$destdir/`dirname \$dlpath`~
17227 test -d \$dldir || mkdir -p \$dldir~
17228 $install_prog $dir/$dlname \$dldir/$dlname'
17229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17230 dlpath=$dir/\$dldll~
17231 $rm \$dlpath'
17232 shlibpath_overrides_runpath=yes
17234 case $host_os in
17235 cygwin*)
17236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17238 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17240 mingw*)
17241 # MinGW DLLs use traditional 'lib' prefix
17242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17243 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17244 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17245 # It is most probably a Windows format PATH printed by
17246 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17247 # path with ; separators, and with drive letters. We can handle the
17248 # drive letters (cygwin fileutils understands them), so leave them,
17249 # especially as we might pass files found there to a mingw objdump,
17250 # which wouldn't understand a cygwinified path. Ahh.
17251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17252 else
17253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17256 pw32*)
17257 # pw32 DLLs use 'pw' prefix rather than 'lib'
17258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17260 esac
17264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17266 esac
17267 dynamic_linker='Win32 ld.exe'
17268 # FIXME: first we should search . and the directory the executable is in
17269 shlibpath_var=PATH
17272 darwin* | rhapsody*)
17273 dynamic_linker="$host_os dyld"
17274 version_type=darwin
17275 need_lib_prefix=no
17276 need_version=no
17277 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17278 soname_spec='${libname}${release}${major}$shared_ext'
17279 shlibpath_overrides_runpath=yes
17280 shlibpath_var=DYLD_LIBRARY_PATH
17281 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17282 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17283 if test "$GCC" = yes; then
17284 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17285 else
17286 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17288 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17291 dgux*)
17292 version_type=linux
17293 need_lib_prefix=no
17294 need_version=no
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17296 soname_spec='${libname}${release}${shared_ext}$major'
17297 shlibpath_var=LD_LIBRARY_PATH
17300 freebsd1*)
17301 dynamic_linker=no
17304 kfreebsd*-gnu)
17305 version_type=linux
17306 need_lib_prefix=no
17307 need_version=no
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17309 soname_spec='${libname}${release}${shared_ext}$major'
17310 shlibpath_var=LD_LIBRARY_PATH
17311 shlibpath_overrides_runpath=no
17312 hardcode_into_libs=yes
17313 dynamic_linker='GNU ld.so'
17316 freebsd* | dragonfly*)
17317 # DragonFly does not have aout. When/if they implement a new
17318 # versioning mechanism, adjust this.
17319 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17320 version_type=freebsd-$objformat
17321 case $version_type in
17322 freebsd-elf*)
17323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17324 need_version=no
17325 need_lib_prefix=no
17327 freebsd-*)
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17329 need_version=yes
17331 esac
17332 shlibpath_var=LD_LIBRARY_PATH
17333 case $host_os in
17334 freebsd2*)
17335 shlibpath_overrides_runpath=yes
17337 freebsd3.[01]* | freebsdelf3.[01]*)
17338 shlibpath_overrides_runpath=yes
17339 hardcode_into_libs=yes
17341 *) # from 3.2 on
17342 shlibpath_overrides_runpath=no
17343 hardcode_into_libs=yes
17345 esac
17348 gnu*)
17349 version_type=linux
17350 need_lib_prefix=no
17351 need_version=no
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17353 soname_spec='${libname}${release}${shared_ext}$major'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 hardcode_into_libs=yes
17358 hpux9* | hpux10* | hpux11*)
17359 # Give a soname corresponding to the major version so that dld.sl refuses to
17360 # link against other versions.
17361 version_type=sunos
17362 need_lib_prefix=no
17363 need_version=no
17364 case "$host_cpu" in
17365 ia64*)
17366 shrext_cmds='.so'
17367 hardcode_into_libs=yes
17368 dynamic_linker="$host_os dld.so"
17369 shlibpath_var=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 if test "X$HPUX_IA64_MODE" = X32; then
17374 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17375 else
17376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17380 hppa*64*)
17381 shrext_cmds='.sl'
17382 hardcode_into_libs=yes
17383 dynamic_linker="$host_os dld.sl"
17384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17392 shrext_cmds='.sl'
17393 dynamic_linker="$host_os dld.sl"
17394 shlibpath_var=SHLIB_PATH
17395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 soname_spec='${libname}${release}${shared_ext}$major'
17399 esac
17400 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17401 postinstall_cmds='chmod 555 $lib'
17404 irix5* | irix6* | nonstopux*)
17405 case $host_os in
17406 nonstopux*) version_type=nonstopux ;;
17408 if test "$lt_cv_prog_gnu_ld" = yes; then
17409 version_type=linux
17410 else
17411 version_type=irix
17412 fi ;;
17413 esac
17414 need_lib_prefix=no
17415 need_version=no
17416 soname_spec='${libname}${release}${shared_ext}$major'
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17418 case $host_os in
17419 irix5* | nonstopux*)
17420 libsuff= shlibsuff=
17423 case $LD in # libtool.m4 will add one of these switches to LD
17424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17425 libsuff= shlibsuff= libmagic=32-bit;;
17426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17427 libsuff=32 shlibsuff=N32 libmagic=N32;;
17428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17429 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17430 *) libsuff= shlibsuff= libmagic=never-match;;
17431 esac
17433 esac
17434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17435 shlibpath_overrides_runpath=no
17436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17438 hardcode_into_libs=yes
17441 # No shared lib support for Linux oldld, aout, or coff.
17442 linux*oldld* | linux*aout* | linux*coff*)
17443 dynamic_linker=no
17446 # This must be Linux ELF.
17447 linux*)
17448 version_type=linux
17449 need_lib_prefix=no
17450 need_version=no
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452 soname_spec='${libname}${release}${shared_ext}$major'
17453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17454 shlibpath_var=LD_LIBRARY_PATH
17455 shlibpath_overrides_runpath=no
17456 # This implies no fast_install, which is unacceptable.
17457 # Some rework will be needed to allow for fast_install
17458 # before this can be enabled.
17459 hardcode_into_libs=yes
17461 # Append ld.so.conf contents to the search path
17462 if test -f /etc/ld.so.conf; then
17463 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17464 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17467 # We used to test for /lib/ld.so.1 and disable shared libraries on
17468 # powerpc, because MkLinux only supported shared libraries with the
17469 # GNU dynamic linker. Since this was broken with cross compilers,
17470 # most powerpc-linux boxes support dynamic linking these days and
17471 # people can always --disable-shared, the test was removed, and we
17472 # assume the GNU/Linux dynamic linker is in use.
17473 dynamic_linker='GNU/Linux ld.so'
17476 knetbsd*-gnu)
17477 version_type=linux
17478 need_lib_prefix=no
17479 need_version=no
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 shlibpath_var=LD_LIBRARY_PATH
17483 shlibpath_overrides_runpath=no
17484 hardcode_into_libs=yes
17485 dynamic_linker='GNU ld.so'
17488 netbsd*)
17489 version_type=sunos
17490 need_lib_prefix=no
17491 need_version=no
17492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17495 dynamic_linker='NetBSD (a.out) ld.so'
17496 else
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 dynamic_linker='NetBSD ld.elf_so'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 shlibpath_overrides_runpath=yes
17503 hardcode_into_libs=yes
17506 newsos6)
17507 version_type=linux
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17509 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=yes
17513 nto-qnx*)
17514 version_type=linux
17515 need_lib_prefix=no
17516 need_version=no
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 soname_spec='${libname}${release}${shared_ext}$major'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 shlibpath_overrides_runpath=yes
17523 openbsd*)
17524 version_type=sunos
17525 need_lib_prefix=no
17526 need_version=no
17527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17529 shlibpath_var=LD_LIBRARY_PATH
17530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17531 case $host_os in
17532 openbsd2.[89] | openbsd2.[89].*)
17533 shlibpath_overrides_runpath=no
17536 shlibpath_overrides_runpath=yes
17538 esac
17539 else
17540 shlibpath_overrides_runpath=yes
17544 os2*)
17545 libname_spec='$name'
17546 shrext_cmds=".dll"
17547 need_lib_prefix=no
17548 library_names_spec='$libname${shared_ext} $libname.a'
17549 dynamic_linker='OS/2 ld.exe'
17550 shlibpath_var=LIBPATH
17553 osf3* | osf4* | osf5*)
17554 version_type=osf
17555 need_lib_prefix=no
17556 need_version=no
17557 soname_spec='${libname}${release}${shared_ext}$major'
17558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17559 shlibpath_var=LD_LIBRARY_PATH
17560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17561 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17564 sco3.2v5*)
17565 version_type=osf
17566 soname_spec='${libname}${release}${shared_ext}$major'
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568 shlibpath_var=LD_LIBRARY_PATH
17571 solaris*)
17572 version_type=linux
17573 need_lib_prefix=no
17574 need_version=no
17575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17576 soname_spec='${libname}${release}${shared_ext}$major'
17577 shlibpath_var=LD_LIBRARY_PATH
17578 shlibpath_overrides_runpath=yes
17579 hardcode_into_libs=yes
17580 # ldd complains unless libraries are executable
17581 postinstall_cmds='chmod +x $lib'
17584 sunos4*)
17585 version_type=sunos
17586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17587 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 shlibpath_overrides_runpath=yes
17590 if test "$with_gnu_ld" = yes; then
17591 need_lib_prefix=no
17593 need_version=yes
17596 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17597 version_type=linux
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 shlibpath_var=LD_LIBRARY_PATH
17601 case $host_vendor in
17602 sni)
17603 shlibpath_overrides_runpath=no
17604 need_lib_prefix=no
17605 export_dynamic_flag_spec='${wl}-Blargedynsym'
17606 runpath_var=LD_RUN_PATH
17608 siemens)
17609 need_lib_prefix=no
17611 motorola)
17612 need_lib_prefix=no
17613 need_version=no
17614 shlibpath_overrides_runpath=no
17615 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17617 esac
17620 sysv4*MP*)
17621 if test -d /usr/nec ;then
17622 version_type=linux
17623 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17624 soname_spec='$libname${shared_ext}.$major'
17625 shlibpath_var=LD_LIBRARY_PATH
17629 uts4*)
17630 version_type=linux
17631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632 soname_spec='${libname}${release}${shared_ext}$major'
17633 shlibpath_var=LD_LIBRARY_PATH
17637 dynamic_linker=no
17639 esac
17640 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17641 echo "${ECHO_T}$dynamic_linker" >&6
17642 test "$dynamic_linker" = no && can_build_shared=no
17644 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17645 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17646 hardcode_action_GCJ=
17647 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17648 test -n "$runpath_var_GCJ" || \
17649 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17651 # We can hardcode non-existant directories.
17652 if test "$hardcode_direct_GCJ" != no &&
17653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17654 # have to relink, otherwise we might link with an installed library
17655 # when we should be linking with a yet-to-be-installed one
17656 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17657 test "$hardcode_minus_L_GCJ" != no; then
17658 # Linking always hardcodes the temporary library directory.
17659 hardcode_action_GCJ=relink
17660 else
17661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17662 hardcode_action_GCJ=immediate
17664 else
17665 # We cannot hardcode anything, or else we can only hardcode existing
17666 # directories.
17667 hardcode_action_GCJ=unsupported
17669 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17670 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17672 if test "$hardcode_action_GCJ" = relink; then
17673 # Fast installation is not supported
17674 enable_fast_install=no
17675 elif test "$shlibpath_overrides_runpath" = yes ||
17676 test "$enable_shared" = no; then
17677 # Fast installation is not necessary
17678 enable_fast_install=needless
17681 striplib=
17682 old_striplib=
17683 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17684 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17685 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17686 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17687 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17688 echo "$as_me:$LINENO: result: yes" >&5
17689 echo "${ECHO_T}yes" >&6
17690 else
17691 # FIXME - insert some real tests, host_os isn't really good enough
17692 case $host_os in
17693 darwin*)
17694 if test -n "$STRIP" ; then
17695 striplib="$STRIP -x"
17696 echo "$as_me:$LINENO: result: yes" >&5
17697 echo "${ECHO_T}yes" >&6
17698 else
17699 echo "$as_me:$LINENO: result: no" >&5
17700 echo "${ECHO_T}no" >&6
17704 echo "$as_me:$LINENO: result: no" >&5
17705 echo "${ECHO_T}no" >&6
17707 esac
17710 if test "x$enable_dlopen" != xyes; then
17711 enable_dlopen=unknown
17712 enable_dlopen_self=unknown
17713 enable_dlopen_self_static=unknown
17714 else
17715 lt_cv_dlopen=no
17716 lt_cv_dlopen_libs=
17718 case $host_os in
17719 beos*)
17720 lt_cv_dlopen="load_add_on"
17721 lt_cv_dlopen_libs=
17722 lt_cv_dlopen_self=yes
17725 mingw* | pw32*)
17726 lt_cv_dlopen="LoadLibrary"
17727 lt_cv_dlopen_libs=
17730 cygwin*)
17731 lt_cv_dlopen="dlopen"
17732 lt_cv_dlopen_libs=
17735 darwin*)
17736 # if libdl is installed we need to link against it
17737 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17738 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17739 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17740 echo $ECHO_N "(cached) $ECHO_C" >&6
17741 else
17742 ac_check_lib_save_LIBS=$LIBS
17743 LIBS="-ldl $LIBS"
17744 cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h. */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17751 /* Override any gcc2 internal prototype to avoid an error. */
17752 #ifdef __cplusplus
17753 extern "C"
17754 #endif
17755 /* We use char because int might match the return type of a gcc2
17756 builtin and then its argument prototype would still apply. */
17757 char dlopen ();
17759 main ()
17761 dlopen ();
17763 return 0;
17765 _ACEOF
17766 rm -f conftest.$ac_objext conftest$ac_exeext
17767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17768 (eval $ac_link) 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try='test -z "$ac_c_werror_flag"
17776 || test ! -s conftest.err'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try='test -s conftest$ac_exeext'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 ac_cv_lib_dl_dlopen=yes
17789 else
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17793 ac_cv_lib_dl_dlopen=no
17795 rm -f conftest.err conftest.$ac_objext \
17796 conftest$ac_exeext conftest.$ac_ext
17797 LIBS=$ac_check_lib_save_LIBS
17799 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17800 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17801 if test $ac_cv_lib_dl_dlopen = yes; then
17802 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17803 else
17805 lt_cv_dlopen="dyld"
17806 lt_cv_dlopen_libs=
17807 lt_cv_dlopen_self=yes
17814 echo "$as_me:$LINENO: checking for shl_load" >&5
17815 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17816 if test "${ac_cv_func_shl_load+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h. */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17827 #define shl_load innocuous_shl_load
17829 /* System header to define __stub macros and hopefully few prototypes,
17830 which can conflict with char shl_load (); below.
17831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17832 <limits.h> exists even on freestanding compilers. */
17834 #ifdef __STDC__
17835 # include <limits.h>
17836 #else
17837 # include <assert.h>
17838 #endif
17840 #undef shl_load
17842 /* Override any gcc2 internal prototype to avoid an error. */
17843 #ifdef __cplusplus
17844 extern "C"
17846 #endif
17847 /* We use char because int might match the return type of a gcc2
17848 builtin and then its argument prototype would still apply. */
17849 char shl_load ();
17850 /* The GNU C library defines this for functions which it implements
17851 to always fail with ENOSYS. Some functions are actually named
17852 something starting with __ and the normal name is an alias. */
17853 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17854 choke me
17855 #else
17856 char (*f) () = shl_load;
17857 #endif
17858 #ifdef __cplusplus
17860 #endif
17863 main ()
17865 return f != shl_load;
17867 return 0;
17869 _ACEOF
17870 rm -f conftest.$ac_objext conftest$ac_exeext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17872 (eval $ac_link) 2>conftest.er1
17873 ac_status=$?
17874 grep -v '^ *+' conftest.er1 >conftest.err
17875 rm -f conftest.er1
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
17879 { ac_try='test -z "$ac_c_werror_flag"
17880 || test ! -s conftest.err'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest$ac_exeext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_cv_func_shl_load=yes
17893 else
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17897 ac_cv_func_shl_load=no
17899 rm -f conftest.err conftest.$ac_objext \
17900 conftest$ac_exeext conftest.$ac_ext
17902 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17903 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17904 if test $ac_cv_func_shl_load = yes; then
17905 lt_cv_dlopen="shl_load"
17906 else
17907 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17908 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17909 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912 ac_check_lib_save_LIBS=$LIBS
17913 LIBS="-ldld $LIBS"
17914 cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h. */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17921 /* Override any gcc2 internal prototype to avoid an error. */
17922 #ifdef __cplusplus
17923 extern "C"
17924 #endif
17925 /* We use char because int might match the return type of a gcc2
17926 builtin and then its argument prototype would still apply. */
17927 char shl_load ();
17929 main ()
17931 shl_load ();
17933 return 0;
17935 _ACEOF
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17938 (eval $ac_link) 2>conftest.er1
17939 ac_status=$?
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_c_werror_flag"
17946 || test ! -s conftest.err'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try='test -s conftest$ac_exeext'
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_cv_lib_dld_shl_load=yes
17959 else
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17963 ac_cv_lib_dld_shl_load=no
17965 rm -f conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 LIBS=$ac_check_lib_save_LIBS
17969 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17970 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17971 if test $ac_cv_lib_dld_shl_load = yes; then
17972 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17973 else
17974 echo "$as_me:$LINENO: checking for dlopen" >&5
17975 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17976 if test "${ac_cv_func_dlopen+set}" = set; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 else
17979 cat >conftest.$ac_ext <<_ACEOF
17980 /* confdefs.h. */
17981 _ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17985 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17987 #define dlopen innocuous_dlopen
17989 /* System header to define __stub macros and hopefully few prototypes,
17990 which can conflict with char dlopen (); below.
17991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992 <limits.h> exists even on freestanding compilers. */
17994 #ifdef __STDC__
17995 # include <limits.h>
17996 #else
17997 # include <assert.h>
17998 #endif
18000 #undef dlopen
18002 /* Override any gcc2 internal prototype to avoid an error. */
18003 #ifdef __cplusplus
18004 extern "C"
18006 #endif
18007 /* We use char because int might match the return type of a gcc2
18008 builtin and then its argument prototype would still apply. */
18009 char dlopen ();
18010 /* The GNU C library defines this for functions which it implements
18011 to always fail with ENOSYS. Some functions are actually named
18012 something starting with __ and the normal name is an alias. */
18013 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18014 choke me
18015 #else
18016 char (*f) () = dlopen;
18017 #endif
18018 #ifdef __cplusplus
18020 #endif
18023 main ()
18025 return f != dlopen;
18027 return 0;
18029 _ACEOF
18030 rm -f conftest.$ac_objext conftest$ac_exeext
18031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18032 (eval $ac_link) 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try='test -z "$ac_c_werror_flag"
18040 || test ! -s conftest.err'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try='test -s conftest$ac_exeext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_func_dlopen=yes
18053 else
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18057 ac_cv_func_dlopen=no
18059 rm -f conftest.err conftest.$ac_objext \
18060 conftest$ac_exeext conftest.$ac_ext
18062 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18063 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18064 if test $ac_cv_func_dlopen = yes; then
18065 lt_cv_dlopen="dlopen"
18066 else
18067 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18068 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18069 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18071 else
18072 ac_check_lib_save_LIBS=$LIBS
18073 LIBS="-ldl $LIBS"
18074 cat >conftest.$ac_ext <<_ACEOF
18075 /* confdefs.h. */
18076 _ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18081 /* Override any gcc2 internal prototype to avoid an error. */
18082 #ifdef __cplusplus
18083 extern "C"
18084 #endif
18085 /* We use char because int might match the return type of a gcc2
18086 builtin and then its argument prototype would still apply. */
18087 char dlopen ();
18089 main ()
18091 dlopen ();
18093 return 0;
18095 _ACEOF
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18098 (eval $ac_link) 2>conftest.er1
18099 ac_status=$?
18100 grep -v '^ *+' conftest.er1 >conftest.err
18101 rm -f conftest.er1
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try='test -z "$ac_c_werror_flag"
18106 || test ! -s conftest.err'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try='test -s conftest$ac_exeext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 ac_cv_lib_dl_dlopen=yes
18119 else
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18123 ac_cv_lib_dl_dlopen=no
18125 rm -f conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
18127 LIBS=$ac_check_lib_save_LIBS
18129 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18130 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18131 if test $ac_cv_lib_dl_dlopen = yes; then
18132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18133 else
18134 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18135 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18136 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139 ac_check_lib_save_LIBS=$LIBS
18140 LIBS="-lsvld $LIBS"
18141 cat >conftest.$ac_ext <<_ACEOF
18142 /* confdefs.h. */
18143 _ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h. */
18148 /* Override any gcc2 internal prototype to avoid an error. */
18149 #ifdef __cplusplus
18150 extern "C"
18151 #endif
18152 /* We use char because int might match the return type of a gcc2
18153 builtin and then its argument prototype would still apply. */
18154 char dlopen ();
18156 main ()
18158 dlopen ();
18160 return 0;
18162 _ACEOF
18163 rm -f conftest.$ac_objext conftest$ac_exeext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18165 (eval $ac_link) 2>conftest.er1
18166 ac_status=$?
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag"
18173 || test ! -s conftest.err'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest$ac_exeext'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_cv_lib_svld_dlopen=yes
18186 else
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 ac_cv_lib_svld_dlopen=no
18192 rm -f conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18194 LIBS=$ac_check_lib_save_LIBS
18196 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18197 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18198 if test $ac_cv_lib_svld_dlopen = yes; then
18199 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18200 else
18201 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18202 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18203 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18205 else
18206 ac_check_lib_save_LIBS=$LIBS
18207 LIBS="-ldld $LIBS"
18208 cat >conftest.$ac_ext <<_ACEOF
18209 /* confdefs.h. */
18210 _ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18215 /* Override any gcc2 internal prototype to avoid an error. */
18216 #ifdef __cplusplus
18217 extern "C"
18218 #endif
18219 /* We use char because int might match the return type of a gcc2
18220 builtin and then its argument prototype would still apply. */
18221 char dld_link ();
18223 main ()
18225 dld_link ();
18227 return 0;
18229 _ACEOF
18230 rm -f conftest.$ac_objext conftest$ac_exeext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18232 (eval $ac_link) 2>conftest.er1
18233 ac_status=$?
18234 grep -v '^ *+' conftest.er1 >conftest.err
18235 rm -f conftest.er1
18236 cat conftest.err >&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
18239 { ac_try='test -z "$ac_c_werror_flag"
18240 || test ! -s conftest.err'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest$ac_exeext'
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18252 ac_cv_lib_dld_dld_link=yes
18253 else
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18257 ac_cv_lib_dld_dld_link=no
18259 rm -f conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18261 LIBS=$ac_check_lib_save_LIBS
18263 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18264 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18265 if test $ac_cv_lib_dld_dld_link = yes; then
18266 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18285 esac
18287 if test "x$lt_cv_dlopen" != xno; then
18288 enable_dlopen=yes
18289 else
18290 enable_dlopen=no
18293 case $lt_cv_dlopen in
18294 dlopen)
18295 save_CPPFLAGS="$CPPFLAGS"
18296 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18298 save_LDFLAGS="$LDFLAGS"
18299 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18301 save_LIBS="$LIBS"
18302 LIBS="$lt_cv_dlopen_libs $LIBS"
18304 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18305 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18306 if test "${lt_cv_dlopen_self+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309 if test "$cross_compiling" = yes; then :
18310 lt_cv_dlopen_self=cross
18311 else
18312 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18313 lt_status=$lt_dlunknown
18314 cat > conftest.$ac_ext <<EOF
18315 #line 18315 "configure"
18316 #include "confdefs.h"
18318 #if HAVE_DLFCN_H
18319 #include <dlfcn.h>
18320 #endif
18322 #include <stdio.h>
18324 #ifdef RTLD_GLOBAL
18325 # define LT_DLGLOBAL RTLD_GLOBAL
18326 #else
18327 # ifdef DL_GLOBAL
18328 # define LT_DLGLOBAL DL_GLOBAL
18329 # else
18330 # define LT_DLGLOBAL 0
18331 # endif
18332 #endif
18334 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18335 find out it does not work in some platform. */
18336 #ifndef LT_DLLAZY_OR_NOW
18337 # ifdef RTLD_LAZY
18338 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18339 # else
18340 # ifdef DL_LAZY
18341 # define LT_DLLAZY_OR_NOW DL_LAZY
18342 # else
18343 # ifdef RTLD_NOW
18344 # define LT_DLLAZY_OR_NOW RTLD_NOW
18345 # else
18346 # ifdef DL_NOW
18347 # define LT_DLLAZY_OR_NOW DL_NOW
18348 # else
18349 # define LT_DLLAZY_OR_NOW 0
18350 # endif
18351 # endif
18352 # endif
18353 # endif
18354 #endif
18356 #ifdef __cplusplus
18357 extern "C" void exit (int);
18358 #endif
18360 void fnord() { int i=42;}
18361 int main ()
18363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18364 int status = $lt_dlunknown;
18366 if (self)
18368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18369 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18370 /* dlclose (self); */
18373 exit (status);
18376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18377 (eval $ac_link) 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18381 (./conftest; exit; ) 2>/dev/null
18382 lt_status=$?
18383 case x$lt_status in
18384 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18385 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18386 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18387 esac
18388 else :
18389 # compilation failed
18390 lt_cv_dlopen_self=no
18393 rm -fr conftest*
18397 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18398 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18400 if test "x$lt_cv_dlopen_self" = xyes; then
18401 LDFLAGS="$LDFLAGS $link_static_flag"
18402 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18403 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18404 if test "${lt_cv_dlopen_self_static+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18406 else
18407 if test "$cross_compiling" = yes; then :
18408 lt_cv_dlopen_self_static=cross
18409 else
18410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18411 lt_status=$lt_dlunknown
18412 cat > conftest.$ac_ext <<EOF
18413 #line 18413 "configure"
18414 #include "confdefs.h"
18416 #if HAVE_DLFCN_H
18417 #include <dlfcn.h>
18418 #endif
18420 #include <stdio.h>
18422 #ifdef RTLD_GLOBAL
18423 # define LT_DLGLOBAL RTLD_GLOBAL
18424 #else
18425 # ifdef DL_GLOBAL
18426 # define LT_DLGLOBAL DL_GLOBAL
18427 # else
18428 # define LT_DLGLOBAL 0
18429 # endif
18430 #endif
18432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18433 find out it does not work in some platform. */
18434 #ifndef LT_DLLAZY_OR_NOW
18435 # ifdef RTLD_LAZY
18436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18437 # else
18438 # ifdef DL_LAZY
18439 # define LT_DLLAZY_OR_NOW DL_LAZY
18440 # else
18441 # ifdef RTLD_NOW
18442 # define LT_DLLAZY_OR_NOW RTLD_NOW
18443 # else
18444 # ifdef DL_NOW
18445 # define LT_DLLAZY_OR_NOW DL_NOW
18446 # else
18447 # define LT_DLLAZY_OR_NOW 0
18448 # endif
18449 # endif
18450 # endif
18451 # endif
18452 #endif
18454 #ifdef __cplusplus
18455 extern "C" void exit (int);
18456 #endif
18458 void fnord() { int i=42;}
18459 int main ()
18461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18462 int status = $lt_dlunknown;
18464 if (self)
18466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18468 /* dlclose (self); */
18471 exit (status);
18474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18475 (eval $ac_link) 2>&5
18476 ac_status=$?
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18479 (./conftest; exit; ) 2>/dev/null
18480 lt_status=$?
18481 case x$lt_status in
18482 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18483 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18484 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18485 esac
18486 else :
18487 # compilation failed
18488 lt_cv_dlopen_self_static=no
18491 rm -fr conftest*
18495 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18496 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18499 CPPFLAGS="$save_CPPFLAGS"
18500 LDFLAGS="$save_LDFLAGS"
18501 LIBS="$save_LIBS"
18503 esac
18505 case $lt_cv_dlopen_self in
18506 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18507 *) enable_dlopen_self=unknown ;;
18508 esac
18510 case $lt_cv_dlopen_self_static in
18511 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18512 *) enable_dlopen_self_static=unknown ;;
18513 esac
18517 # The else clause should only fire when bootstrapping the
18518 # libtool distribution, otherwise you forgot to ship ltmain.sh
18519 # with your package, and you will get complaints that there are
18520 # no rules to generate ltmain.sh.
18521 if test -f "$ltmain"; then
18522 # See if we are running on zsh, and set the options which allow our commands through
18523 # without removal of \ escapes.
18524 if test -n "${ZSH_VERSION+set}" ; then
18525 setopt NO_GLOB_SUBST
18527 # Now quote all the things that may contain metacharacters while being
18528 # careful not to overquote the AC_SUBSTed values. We take copies of the
18529 # variables and quote the copies for generation of the libtool script.
18530 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18531 SED SHELL STRIP \
18532 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18533 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18534 deplibs_check_method reload_flag reload_cmds need_locks \
18535 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18536 lt_cv_sys_global_symbol_to_c_name_address \
18537 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18538 old_postinstall_cmds old_postuninstall_cmds \
18539 compiler_GCJ \
18540 CC_GCJ \
18541 LD_GCJ \
18542 lt_prog_compiler_wl_GCJ \
18543 lt_prog_compiler_pic_GCJ \
18544 lt_prog_compiler_static_GCJ \
18545 lt_prog_compiler_no_builtin_flag_GCJ \
18546 export_dynamic_flag_spec_GCJ \
18547 thread_safe_flag_spec_GCJ \
18548 whole_archive_flag_spec_GCJ \
18549 enable_shared_with_static_runtimes_GCJ \
18550 old_archive_cmds_GCJ \
18551 old_archive_from_new_cmds_GCJ \
18552 predep_objects_GCJ \
18553 postdep_objects_GCJ \
18554 predeps_GCJ \
18555 postdeps_GCJ \
18556 compiler_lib_search_path_GCJ \
18557 archive_cmds_GCJ \
18558 archive_expsym_cmds_GCJ \
18559 postinstall_cmds_GCJ \
18560 postuninstall_cmds_GCJ \
18561 old_archive_from_expsyms_cmds_GCJ \
18562 allow_undefined_flag_GCJ \
18563 no_undefined_flag_GCJ \
18564 export_symbols_cmds_GCJ \
18565 hardcode_libdir_flag_spec_GCJ \
18566 hardcode_libdir_flag_spec_ld_GCJ \
18567 hardcode_libdir_separator_GCJ \
18568 hardcode_automatic_GCJ \
18569 module_cmds_GCJ \
18570 module_expsym_cmds_GCJ \
18571 lt_cv_prog_compiler_c_o_GCJ \
18572 exclude_expsyms_GCJ \
18573 include_expsyms_GCJ; do
18575 case $var in
18576 old_archive_cmds_GCJ | \
18577 old_archive_from_new_cmds_GCJ | \
18578 archive_cmds_GCJ | \
18579 archive_expsym_cmds_GCJ | \
18580 module_cmds_GCJ | \
18581 module_expsym_cmds_GCJ | \
18582 old_archive_from_expsyms_cmds_GCJ | \
18583 export_symbols_cmds_GCJ | \
18584 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18585 postinstall_cmds | postuninstall_cmds | \
18586 old_postinstall_cmds | old_postuninstall_cmds | \
18587 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18588 # Double-quote double-evaled strings.
18589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18594 esac
18595 done
18597 case $lt_echo in
18598 *'\$0 --fallback-echo"')
18599 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18601 esac
18603 cfgfile="$ofile"
18605 cat <<__EOF__ >> "$cfgfile"
18606 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18608 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18610 # Shell to use when invoking shell scripts.
18611 SHELL=$lt_SHELL
18613 # Whether or not to build shared libraries.
18614 build_libtool_libs=$enable_shared
18616 # Whether or not to build static libraries.
18617 build_old_libs=$enable_static
18619 # Whether or not to add -lc for building shared libraries.
18620 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18622 # Whether or not to disallow shared libs when runtime libs are static
18623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18625 # Whether or not to optimize for fast installation.
18626 fast_install=$enable_fast_install
18628 # The host system.
18629 host_alias=$host_alias
18630 host=$host
18631 host_os=$host_os
18633 # The build system.
18634 build_alias=$build_alias
18635 build=$build
18636 build_os=$build_os
18638 # An echo program that does not interpret backslashes.
18639 echo=$lt_echo
18641 # The archiver.
18642 AR=$lt_AR
18643 AR_FLAGS=$lt_AR_FLAGS
18645 # A C compiler.
18646 LTCC=$lt_LTCC
18648 # A language-specific compiler.
18649 CC=$lt_compiler_GCJ
18651 # Is the compiler the GNU C compiler?
18652 with_gcc=$GCC_GCJ
18654 # An ERE matcher.
18655 EGREP=$lt_EGREP
18657 # The linker used to build libraries.
18658 LD=$lt_LD_GCJ
18660 # Whether we need hard or soft links.
18661 LN_S=$lt_LN_S
18663 # A BSD-compatible nm program.
18664 NM=$lt_NM
18666 # A symbol stripping program
18667 STRIP=$lt_STRIP
18669 # Used to examine libraries when file_magic_cmd begins "file"
18670 MAGIC_CMD=$MAGIC_CMD
18672 # Used on cygwin: DLL creation program.
18673 DLLTOOL="$DLLTOOL"
18675 # Used on cygwin: object dumper.
18676 OBJDUMP="$OBJDUMP"
18678 # Used on cygwin: assembler.
18679 AS="$AS"
18681 # The name of the directory that contains temporary libtool files.
18682 objdir=$objdir
18684 # How to create reloadable object files.
18685 reload_flag=$lt_reload_flag
18686 reload_cmds=$lt_reload_cmds
18688 # How to pass a linker flag through the compiler.
18689 wl=$lt_lt_prog_compiler_wl_GCJ
18691 # Object file suffix (normally "o").
18692 objext="$ac_objext"
18694 # Old archive suffix (normally "a").
18695 libext="$libext"
18697 # Shared library suffix (normally ".so").
18698 shrext_cmds='$shrext_cmds'
18700 # Executable file suffix (normally "").
18701 exeext="$exeext"
18703 # Additional compiler flags for building library objects.
18704 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18705 pic_mode=$pic_mode
18707 # What is the maximum length of a command?
18708 max_cmd_len=$lt_cv_sys_max_cmd_len
18710 # Does compiler simultaneously support -c and -o options?
18711 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18713 # Must we lock files when doing compilation ?
18714 need_locks=$lt_need_locks
18716 # Do we need the lib prefix for modules?
18717 need_lib_prefix=$need_lib_prefix
18719 # Do we need a version for libraries?
18720 need_version=$need_version
18722 # Whether dlopen is supported.
18723 dlopen_support=$enable_dlopen
18725 # Whether dlopen of programs is supported.
18726 dlopen_self=$enable_dlopen_self
18728 # Whether dlopen of statically linked programs is supported.
18729 dlopen_self_static=$enable_dlopen_self_static
18731 # Compiler flag to prevent dynamic linking.
18732 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18734 # Compiler flag to turn off builtin functions.
18735 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18737 # Compiler flag to allow reflexive dlopens.
18738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18740 # Compiler flag to generate shared objects directly from archives.
18741 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18743 # Compiler flag to generate thread-safe objects.
18744 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18746 # Library versioning type.
18747 version_type=$version_type
18749 # Format of library name prefix.
18750 libname_spec=$lt_libname_spec
18752 # List of archive names. First name is the real one, the rest are links.
18753 # The last name is the one that the linker finds with -lNAME.
18754 library_names_spec=$lt_library_names_spec
18756 # The coded name of the library, if different from the real name.
18757 soname_spec=$lt_soname_spec
18759 # Commands used to build and install an old-style archive.
18760 RANLIB=$lt_RANLIB
18761 old_archive_cmds=$lt_old_archive_cmds_GCJ
18762 old_postinstall_cmds=$lt_old_postinstall_cmds
18763 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18765 # Create an old-style archive from a shared archive.
18766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18768 # Create a temporary old-style archive to link instead of a shared archive.
18769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18771 # Commands used to build and install a shared archive.
18772 archive_cmds=$lt_archive_cmds_GCJ
18773 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18774 postinstall_cmds=$lt_postinstall_cmds
18775 postuninstall_cmds=$lt_postuninstall_cmds
18777 # Commands used to build a loadable module (assumed same as above if empty)
18778 module_cmds=$lt_module_cmds_GCJ
18779 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18781 # Commands to strip libraries.
18782 old_striplib=$lt_old_striplib
18783 striplib=$lt_striplib
18785 # Dependencies to place before the objects being linked to create a
18786 # shared library.
18787 predep_objects=$lt_predep_objects_GCJ
18789 # Dependencies to place after the objects being linked to create a
18790 # shared library.
18791 postdep_objects=$lt_postdep_objects_GCJ
18793 # Dependencies to place before the objects being linked to create a
18794 # shared library.
18795 predeps=$lt_predeps_GCJ
18797 # Dependencies to place after the objects being linked to create a
18798 # shared library.
18799 postdeps=$lt_postdeps_GCJ
18801 # The library search path used internally by the compiler when linking
18802 # a shared library.
18803 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18805 # Method to check whether dependent libraries are shared objects.
18806 deplibs_check_method=$lt_deplibs_check_method
18808 # Command to use when deplibs_check_method == file_magic.
18809 file_magic_cmd=$lt_file_magic_cmd
18811 # Flag that allows shared libraries with undefined symbols to be built.
18812 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18814 # Flag that forces no undefined symbols.
18815 no_undefined_flag=$lt_no_undefined_flag_GCJ
18817 # Commands used to finish a libtool library installation in a directory.
18818 finish_cmds=$lt_finish_cmds
18820 # Same as above, but a single script fragment to be evaled but not shown.
18821 finish_eval=$lt_finish_eval
18823 # Take the output of nm and produce a listing of raw symbols and C names.
18824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18826 # Transform the output of nm in a proper C declaration
18827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18829 # Transform the output of nm in a C name address pair
18830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18832 # This is the shared library runtime path variable.
18833 runpath_var=$runpath_var
18835 # This is the shared library path variable.
18836 shlibpath_var=$shlibpath_var
18838 # Is shlibpath searched before the hard-coded library search path?
18839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18841 # How to hardcode a shared library path into an executable.
18842 hardcode_action=$hardcode_action_GCJ
18844 # Whether we should hardcode library paths into libraries.
18845 hardcode_into_libs=$hardcode_into_libs
18847 # Flag to hardcode \$libdir into a binary during linking.
18848 # This must work even if \$libdir does not exist.
18849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18851 # If ld is used when linking, flag to hardcode \$libdir into
18852 # a binary during linking. This must work even if \$libdir does
18853 # not exist.
18854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18856 # Whether we need a single -rpath flag with a separated argument.
18857 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18859 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18860 # resulting binary.
18861 hardcode_direct=$hardcode_direct_GCJ
18863 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18864 # resulting binary.
18865 hardcode_minus_L=$hardcode_minus_L_GCJ
18867 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18868 # the resulting binary.
18869 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18871 # Set to yes if building a shared library automatically hardcodes DIR into the library
18872 # and all subsequent libraries and executables linked against it.
18873 hardcode_automatic=$hardcode_automatic_GCJ
18875 # Variables whose values should be saved in libtool wrapper scripts and
18876 # restored at relink time.
18877 variables_saved_for_relink="$variables_saved_for_relink"
18879 # Whether libtool must link a program against all its dependency libraries.
18880 link_all_deplibs=$link_all_deplibs_GCJ
18882 # Compile-time system search path for libraries
18883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18885 # Run-time system search path for libraries
18886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18888 # Fix the shell variable \$srcfile for the compiler.
18889 fix_srcfile_path="$fix_srcfile_path_GCJ"
18891 # Set to yes if exported symbols are required.
18892 always_export_symbols=$always_export_symbols_GCJ
18894 # The commands to list exported symbols.
18895 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18897 # The commands to extract the exported symbol list from a shared archive.
18898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18900 # Symbols that should not be listed in the preloaded symbols.
18901 exclude_expsyms=$lt_exclude_expsyms_GCJ
18903 # Symbols that must always be exported.
18904 include_expsyms=$lt_include_expsyms_GCJ
18906 # ### END LIBTOOL TAG CONFIG: $tagname
18908 __EOF__
18911 else
18912 # If there is no Makefile yet, we rely on a make rule to execute
18913 # `config.status --recheck' to rerun these tests and create the
18914 # libtool script then.
18915 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18916 if test -f "$ltmain_in"; then
18917 test -f Makefile && make "$ltmain"
18922 ac_ext=c
18923 ac_cpp='$CPP $CPPFLAGS'
18924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18928 CC="$lt_save_CC"
18930 else
18931 tagname=""
18939 # Source file extension for RC test sources.
18940 ac_ext=rc
18942 # Object file extension for compiled RC test sources.
18943 objext=o
18944 objext_RC=$objext
18946 # Code to be used in simple compile tests
18947 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18949 # Code to be used in simple link tests
18950 lt_simple_link_test_code="$lt_simple_compile_test_code"
18952 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18954 # If no C compiler was specified, use CC.
18955 LTCC=${LTCC-"$CC"}
18957 # Allow CC to be a program name with arguments.
18958 compiler=$CC
18961 # Allow CC to be a program name with arguments.
18962 lt_save_CC="$CC"
18963 CC=${RC-"windres"}
18964 compiler=$CC
18965 compiler_RC=$CC
18966 lt_cv_prog_compiler_c_o_RC=yes
18968 # The else clause should only fire when bootstrapping the
18969 # libtool distribution, otherwise you forgot to ship ltmain.sh
18970 # with your package, and you will get complaints that there are
18971 # no rules to generate ltmain.sh.
18972 if test -f "$ltmain"; then
18973 # See if we are running on zsh, and set the options which allow our commands through
18974 # without removal of \ escapes.
18975 if test -n "${ZSH_VERSION+set}" ; then
18976 setopt NO_GLOB_SUBST
18978 # Now quote all the things that may contain metacharacters while being
18979 # careful not to overquote the AC_SUBSTed values. We take copies of the
18980 # variables and quote the copies for generation of the libtool script.
18981 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18982 SED SHELL STRIP \
18983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18985 deplibs_check_method reload_flag reload_cmds need_locks \
18986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18987 lt_cv_sys_global_symbol_to_c_name_address \
18988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18989 old_postinstall_cmds old_postuninstall_cmds \
18990 compiler_RC \
18991 CC_RC \
18992 LD_RC \
18993 lt_prog_compiler_wl_RC \
18994 lt_prog_compiler_pic_RC \
18995 lt_prog_compiler_static_RC \
18996 lt_prog_compiler_no_builtin_flag_RC \
18997 export_dynamic_flag_spec_RC \
18998 thread_safe_flag_spec_RC \
18999 whole_archive_flag_spec_RC \
19000 enable_shared_with_static_runtimes_RC \
19001 old_archive_cmds_RC \
19002 old_archive_from_new_cmds_RC \
19003 predep_objects_RC \
19004 postdep_objects_RC \
19005 predeps_RC \
19006 postdeps_RC \
19007 compiler_lib_search_path_RC \
19008 archive_cmds_RC \
19009 archive_expsym_cmds_RC \
19010 postinstall_cmds_RC \
19011 postuninstall_cmds_RC \
19012 old_archive_from_expsyms_cmds_RC \
19013 allow_undefined_flag_RC \
19014 no_undefined_flag_RC \
19015 export_symbols_cmds_RC \
19016 hardcode_libdir_flag_spec_RC \
19017 hardcode_libdir_flag_spec_ld_RC \
19018 hardcode_libdir_separator_RC \
19019 hardcode_automatic_RC \
19020 module_cmds_RC \
19021 module_expsym_cmds_RC \
19022 lt_cv_prog_compiler_c_o_RC \
19023 exclude_expsyms_RC \
19024 include_expsyms_RC; do
19026 case $var in
19027 old_archive_cmds_RC | \
19028 old_archive_from_new_cmds_RC | \
19029 archive_cmds_RC | \
19030 archive_expsym_cmds_RC | \
19031 module_cmds_RC | \
19032 module_expsym_cmds_RC | \
19033 old_archive_from_expsyms_cmds_RC | \
19034 export_symbols_cmds_RC | \
19035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19036 postinstall_cmds | postuninstall_cmds | \
19037 old_postinstall_cmds | old_postuninstall_cmds | \
19038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19039 # Double-quote double-evaled strings.
19040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19045 esac
19046 done
19048 case $lt_echo in
19049 *'\$0 --fallback-echo"')
19050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19052 esac
19054 cfgfile="$ofile"
19056 cat <<__EOF__ >> "$cfgfile"
19057 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19061 # Shell to use when invoking shell scripts.
19062 SHELL=$lt_SHELL
19064 # Whether or not to build shared libraries.
19065 build_libtool_libs=$enable_shared
19067 # Whether or not to build static libraries.
19068 build_old_libs=$enable_static
19070 # Whether or not to add -lc for building shared libraries.
19071 build_libtool_need_lc=$archive_cmds_need_lc_RC
19073 # Whether or not to disallow shared libs when runtime libs are static
19074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19076 # Whether or not to optimize for fast installation.
19077 fast_install=$enable_fast_install
19079 # The host system.
19080 host_alias=$host_alias
19081 host=$host
19082 host_os=$host_os
19084 # The build system.
19085 build_alias=$build_alias
19086 build=$build
19087 build_os=$build_os
19089 # An echo program that does not interpret backslashes.
19090 echo=$lt_echo
19092 # The archiver.
19093 AR=$lt_AR
19094 AR_FLAGS=$lt_AR_FLAGS
19096 # A C compiler.
19097 LTCC=$lt_LTCC
19099 # A language-specific compiler.
19100 CC=$lt_compiler_RC
19102 # Is the compiler the GNU C compiler?
19103 with_gcc=$GCC_RC
19105 # An ERE matcher.
19106 EGREP=$lt_EGREP
19108 # The linker used to build libraries.
19109 LD=$lt_LD_RC
19111 # Whether we need hard or soft links.
19112 LN_S=$lt_LN_S
19114 # A BSD-compatible nm program.
19115 NM=$lt_NM
19117 # A symbol stripping program
19118 STRIP=$lt_STRIP
19120 # Used to examine libraries when file_magic_cmd begins "file"
19121 MAGIC_CMD=$MAGIC_CMD
19123 # Used on cygwin: DLL creation program.
19124 DLLTOOL="$DLLTOOL"
19126 # Used on cygwin: object dumper.
19127 OBJDUMP="$OBJDUMP"
19129 # Used on cygwin: assembler.
19130 AS="$AS"
19132 # The name of the directory that contains temporary libtool files.
19133 objdir=$objdir
19135 # How to create reloadable object files.
19136 reload_flag=$lt_reload_flag
19137 reload_cmds=$lt_reload_cmds
19139 # How to pass a linker flag through the compiler.
19140 wl=$lt_lt_prog_compiler_wl_RC
19142 # Object file suffix (normally "o").
19143 objext="$ac_objext"
19145 # Old archive suffix (normally "a").
19146 libext="$libext"
19148 # Shared library suffix (normally ".so").
19149 shrext_cmds='$shrext_cmds'
19151 # Executable file suffix (normally "").
19152 exeext="$exeext"
19154 # Additional compiler flags for building library objects.
19155 pic_flag=$lt_lt_prog_compiler_pic_RC
19156 pic_mode=$pic_mode
19158 # What is the maximum length of a command?
19159 max_cmd_len=$lt_cv_sys_max_cmd_len
19161 # Does compiler simultaneously support -c and -o options?
19162 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19164 # Must we lock files when doing compilation ?
19165 need_locks=$lt_need_locks
19167 # Do we need the lib prefix for modules?
19168 need_lib_prefix=$need_lib_prefix
19170 # Do we need a version for libraries?
19171 need_version=$need_version
19173 # Whether dlopen is supported.
19174 dlopen_support=$enable_dlopen
19176 # Whether dlopen of programs is supported.
19177 dlopen_self=$enable_dlopen_self
19179 # Whether dlopen of statically linked programs is supported.
19180 dlopen_self_static=$enable_dlopen_self_static
19182 # Compiler flag to prevent dynamic linking.
19183 link_static_flag=$lt_lt_prog_compiler_static_RC
19185 # Compiler flag to turn off builtin functions.
19186 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19188 # Compiler flag to allow reflexive dlopens.
19189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19191 # Compiler flag to generate shared objects directly from archives.
19192 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19194 # Compiler flag to generate thread-safe objects.
19195 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19197 # Library versioning type.
19198 version_type=$version_type
19200 # Format of library name prefix.
19201 libname_spec=$lt_libname_spec
19203 # List of archive names. First name is the real one, the rest are links.
19204 # The last name is the one that the linker finds with -lNAME.
19205 library_names_spec=$lt_library_names_spec
19207 # The coded name of the library, if different from the real name.
19208 soname_spec=$lt_soname_spec
19210 # Commands used to build and install an old-style archive.
19211 RANLIB=$lt_RANLIB
19212 old_archive_cmds=$lt_old_archive_cmds_RC
19213 old_postinstall_cmds=$lt_old_postinstall_cmds
19214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19216 # Create an old-style archive from a shared archive.
19217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19219 # Create a temporary old-style archive to link instead of a shared archive.
19220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19222 # Commands used to build and install a shared archive.
19223 archive_cmds=$lt_archive_cmds_RC
19224 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19225 postinstall_cmds=$lt_postinstall_cmds
19226 postuninstall_cmds=$lt_postuninstall_cmds
19228 # Commands used to build a loadable module (assumed same as above if empty)
19229 module_cmds=$lt_module_cmds_RC
19230 module_expsym_cmds=$lt_module_expsym_cmds_RC
19232 # Commands to strip libraries.
19233 old_striplib=$lt_old_striplib
19234 striplib=$lt_striplib
19236 # Dependencies to place before the objects being linked to create a
19237 # shared library.
19238 predep_objects=$lt_predep_objects_RC
19240 # Dependencies to place after the objects being linked to create a
19241 # shared library.
19242 postdep_objects=$lt_postdep_objects_RC
19244 # Dependencies to place before the objects being linked to create a
19245 # shared library.
19246 predeps=$lt_predeps_RC
19248 # Dependencies to place after the objects being linked to create a
19249 # shared library.
19250 postdeps=$lt_postdeps_RC
19252 # The library search path used internally by the compiler when linking
19253 # a shared library.
19254 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19256 # Method to check whether dependent libraries are shared objects.
19257 deplibs_check_method=$lt_deplibs_check_method
19259 # Command to use when deplibs_check_method == file_magic.
19260 file_magic_cmd=$lt_file_magic_cmd
19262 # Flag that allows shared libraries with undefined symbols to be built.
19263 allow_undefined_flag=$lt_allow_undefined_flag_RC
19265 # Flag that forces no undefined symbols.
19266 no_undefined_flag=$lt_no_undefined_flag_RC
19268 # Commands used to finish a libtool library installation in a directory.
19269 finish_cmds=$lt_finish_cmds
19271 # Same as above, but a single script fragment to be evaled but not shown.
19272 finish_eval=$lt_finish_eval
19274 # Take the output of nm and produce a listing of raw symbols and C names.
19275 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19277 # Transform the output of nm in a proper C declaration
19278 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19280 # Transform the output of nm in a C name address pair
19281 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19283 # This is the shared library runtime path variable.
19284 runpath_var=$runpath_var
19286 # This is the shared library path variable.
19287 shlibpath_var=$shlibpath_var
19289 # Is shlibpath searched before the hard-coded library search path?
19290 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19292 # How to hardcode a shared library path into an executable.
19293 hardcode_action=$hardcode_action_RC
19295 # Whether we should hardcode library paths into libraries.
19296 hardcode_into_libs=$hardcode_into_libs
19298 # Flag to hardcode \$libdir into a binary during linking.
19299 # This must work even if \$libdir does not exist.
19300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19302 # If ld is used when linking, flag to hardcode \$libdir into
19303 # a binary during linking. This must work even if \$libdir does
19304 # not exist.
19305 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19307 # Whether we need a single -rpath flag with a separated argument.
19308 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19310 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19311 # resulting binary.
19312 hardcode_direct=$hardcode_direct_RC
19314 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19315 # resulting binary.
19316 hardcode_minus_L=$hardcode_minus_L_RC
19318 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19319 # the resulting binary.
19320 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19322 # Set to yes if building a shared library automatically hardcodes DIR into the library
19323 # and all subsequent libraries and executables linked against it.
19324 hardcode_automatic=$hardcode_automatic_RC
19326 # Variables whose values should be saved in libtool wrapper scripts and
19327 # restored at relink time.
19328 variables_saved_for_relink="$variables_saved_for_relink"
19330 # Whether libtool must link a program against all its dependency libraries.
19331 link_all_deplibs=$link_all_deplibs_RC
19333 # Compile-time system search path for libraries
19334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19336 # Run-time system search path for libraries
19337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19339 # Fix the shell variable \$srcfile for the compiler.
19340 fix_srcfile_path="$fix_srcfile_path_RC"
19342 # Set to yes if exported symbols are required.
19343 always_export_symbols=$always_export_symbols_RC
19345 # The commands to list exported symbols.
19346 export_symbols_cmds=$lt_export_symbols_cmds_RC
19348 # The commands to extract the exported symbol list from a shared archive.
19349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19351 # Symbols that should not be listed in the preloaded symbols.
19352 exclude_expsyms=$lt_exclude_expsyms_RC
19354 # Symbols that must always be exported.
19355 include_expsyms=$lt_include_expsyms_RC
19357 # ### END LIBTOOL TAG CONFIG: $tagname
19359 __EOF__
19362 else
19363 # If there is no Makefile yet, we rely on a make rule to execute
19364 # `config.status --recheck' to rerun these tests and create the
19365 # libtool script then.
19366 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19367 if test -f "$ltmain_in"; then
19368 test -f Makefile && make "$ltmain"
19373 ac_ext=c
19374 ac_cpp='$CPP $CPPFLAGS'
19375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19379 CC="$lt_save_CC"
19384 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19385 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19386 { (exit 1); exit 1; }; }
19388 esac
19390 # Append the new tag name to the list of available tags.
19391 if test -n "$tagname" ; then
19392 available_tags="$available_tags $tagname"
19395 done
19396 IFS="$lt_save_ifs"
19398 # Now substitute the updated list of available tags.
19399 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19400 mv "${ofile}T" "$ofile"
19401 chmod +x "$ofile"
19402 else
19403 rm -f "${ofile}T"
19404 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19405 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19406 { (exit 1); exit 1; }; }
19412 # This can be used to rebuild libtool when needed
19413 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19415 # Always use our own libtool.
19416 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19418 # Prevent multiple expansion
19440 # For testing cross-compilation behaviour.
19441 #cross_compiling=yes
19443 { echo; echo "${term_bold}Optional Platform Environment:${term_norm}"; } >& 6
19446 for ac_header in sys/signal.h
19448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19450 echo "$as_me:$LINENO: checking for $ac_header" >&5
19451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19457 else
19458 # Is the header compilable?
19459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19461 cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h. */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 $ac_includes_default
19468 #include <$ac_header>
19469 _ACEOF
19470 rm -f conftest.$ac_objext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19472 (eval $ac_compile) 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try='test -z "$ac_c_werror_flag"
19480 || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest.$ac_objext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_header_compiler=yes
19493 else
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_header_compiler=no
19499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19501 echo "${ECHO_T}$ac_header_compiler" >&6
19503 # Is the header present?
19504 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19506 cat >conftest.$ac_ext <<_ACEOF
19507 /* confdefs.h. */
19508 _ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19512 #include <$ac_header>
19513 _ACEOF
19514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } >/dev/null; then
19522 if test -s conftest.err; then
19523 ac_cpp_err=$ac_c_preproc_warn_flag
19524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19525 else
19526 ac_cpp_err=
19528 else
19529 ac_cpp_err=yes
19531 if test -z "$ac_cpp_err"; then
19532 ac_header_preproc=yes
19533 else
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_header_preproc=no
19539 rm -f conftest.err conftest.$ac_ext
19540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19541 echo "${ECHO_T}$ac_header_preproc" >&6
19543 # So? What about this header?
19544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19545 yes:no: )
19546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19550 ac_header_preproc=yes
19552 no:yes:* )
19553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19566 cat <<\_ASBOX
19567 ## ------------------------------------------ ##
19568 ## Report this to the AC_PACKAGE_NAME lists. ##
19569 ## ------------------------------------------ ##
19570 _ASBOX
19572 sed "s/^/$as_me: WARNING: /" >&2
19574 esac
19575 echo "$as_me:$LINENO: checking for $ac_header" >&5
19576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580 eval "$as_ac_Header=\$ac_header_preproc"
19582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19587 cat >>confdefs.h <<_ACEOF
19588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19589 _ACEOF
19593 done
19596 case "$host_os" in
19597 sunos4* | freebsd* | openbsd* | netbsd*)
19598 CFG_SIGNALS=signals-bsd.h ;;
19599 hpux*)
19600 CFG_SIGNALS=signals-hpux.h ;;
19601 macos* | darwin*)
19602 CFG_SIGNALS=signals-macos.h ;;
19603 gnu*)
19604 CFG_SIGNALS=signals-hurd.h ;;
19606 CFG_SIGNALS=signals.h ;;
19607 esac
19609 cat >>confdefs.h <<_ACEOF
19610 #define CFG_SIGNALS "$CFG_SIGNALS"
19611 _ACEOF
19614 # How to determine the memory page size.
19619 for ac_header in unistd.h
19621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19623 echo "$as_me:$LINENO: checking for $ac_header" >&5
19624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19630 else
19631 # Is the header compilable?
19632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19634 cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h. */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 $ac_includes_default
19641 #include <$ac_header>
19642 _ACEOF
19643 rm -f conftest.$ac_objext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19645 (eval $ac_compile) 2>conftest.er1
19646 ac_status=$?
19647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
19652 { ac_try='test -z "$ac_c_werror_flag"
19653 || test ! -s conftest.err'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } &&
19659 { ac_try='test -s conftest.$ac_objext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 ac_header_compiler=yes
19666 else
19667 echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 ac_header_compiler=no
19672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19674 echo "${ECHO_T}$ac_header_compiler" >&6
19676 # Is the header present?
19677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19679 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h. */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 #include <$ac_header>
19686 _ACEOF
19687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19689 ac_status=$?
19690 grep -v '^ *+' conftest.er1 >conftest.err
19691 rm -f conftest.er1
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } >/dev/null; then
19695 if test -s conftest.err; then
19696 ac_cpp_err=$ac_c_preproc_warn_flag
19697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19698 else
19699 ac_cpp_err=
19701 else
19702 ac_cpp_err=yes
19704 if test -z "$ac_cpp_err"; then
19705 ac_header_preproc=yes
19706 else
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710 ac_header_preproc=no
19712 rm -f conftest.err conftest.$ac_ext
19713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19714 echo "${ECHO_T}$ac_header_preproc" >&6
19716 # So? What about this header?
19717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19718 yes:no: )
19719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19723 ac_header_preproc=yes
19725 no:yes:* )
19726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19739 cat <<\_ASBOX
19740 ## ------------------------------------------ ##
19741 ## Report this to the AC_PACKAGE_NAME lists. ##
19742 ## ------------------------------------------ ##
19743 _ASBOX
19745 sed "s/^/$as_me: WARNING: /" >&2
19747 esac
19748 echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753 eval "$as_ac_Header=\$ac_header_preproc"
19755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19760 cat >>confdefs.h <<_ACEOF
19761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19762 _ACEOF
19766 done
19770 echo "$as_me:$LINENO: checking for getpagesize" >&5
19771 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
19772 if test "${sv_cv_func_getpagesize+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19776 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h. */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19784 #if HAVE_UNISTD_H
19785 #include <sys/types.h>
19786 #include <unistd.h>
19787 #endif
19790 main ()
19792 int pgsz = getpagesize();
19794 return 0;
19796 _ACEOF
19797 rm -f conftest.$ac_objext conftest$ac_exeext
19798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19799 (eval $ac_link) 2>conftest.er1
19800 ac_status=$?
19801 grep -v '^ *+' conftest.er1 >conftest.err
19802 rm -f conftest.er1
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -z "$ac_c_werror_flag"
19807 || test ! -s conftest.err'
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest$ac_exeext'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 sv_cv_func_getpagesize=yes
19820 else
19821 echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19824 sv_cv_func_getpagesize=no
19826 rm -f conftest.err conftest.$ac_objext \
19827 conftest$ac_exeext conftest.$ac_ext
19829 echo "$as_me:$LINENO: result: $sv_cv_func_getpagesize" >&5
19830 echo "${ECHO_T}$sv_cv_func_getpagesize" >&6
19831 if test $sv_cv_func_getpagesize = yes; then
19833 cat >>confdefs.h <<\_ACEOF
19834 #define HAVE_GETPAGESIZE 1
19835 _ACEOF
19840 echo "$as_me:$LINENO: checking for sysconf(_SC_PAGESIZE)" >&5
19841 echo $ECHO_N "checking for sysconf(_SC_PAGESIZE)... $ECHO_C" >&6
19842 if test "${sv_cv_func_sysconf_pagesize+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19846 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h. */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19854 #if HAVE_UNISTD_H
19855 #include <sys/types.h>
19856 #include <unistd.h>
19857 #endif
19860 main ()
19862 int pgsz = sysconf (_SC_PAGESIZE);
19864 return 0;
19866 _ACEOF
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19869 (eval $ac_link) 2>conftest.er1
19870 ac_status=$?
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
19876 { ac_try='test -z "$ac_c_werror_flag"
19877 || test ! -s conftest.err'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; } &&
19883 { ac_try='test -s conftest$ac_exeext'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; }; then
19889 sv_cv_func_sysconf_pagesize=yes
19890 else
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 sv_cv_func_sysconf_pagesize=no
19896 rm -f conftest.err conftest.$ac_objext \
19897 conftest$ac_exeext conftest.$ac_ext
19899 echo "$as_me:$LINENO: result: $sv_cv_func_sysconf_pagesize" >&5
19900 echo "${ECHO_T}$sv_cv_func_sysconf_pagesize" >&6
19901 if test $sv_cv_func_sysconf_pagesize = yes; then
19903 cat >>confdefs.h <<\_ACEOF
19904 #define HAVE_SYSCONF_PAGESIZE 1
19905 _ACEOF
19910 echo "$as_me:$LINENO: checking for PAGESIZE in limits.h" >&5
19911 echo $ECHO_N "checking for PAGESIZE in limits.h... $ECHO_C" >&6
19912 if test "${sv_cv_macro_pagesize+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19916 cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h. */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 #include <limits.h>
19925 main ()
19927 int pgsz = PAGESIZE;
19929 return 0;
19931 _ACEOF
19932 rm -f conftest.$ac_objext conftest$ac_exeext
19933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19934 (eval $ac_link) 2>conftest.er1
19935 ac_status=$?
19936 grep -v '^ *+' conftest.er1 >conftest.err
19937 rm -f conftest.er1
19938 cat conftest.err >&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); } &&
19941 { ac_try='test -z "$ac_c_werror_flag"
19942 || test ! -s conftest.err'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19945 ac_status=$?
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; } &&
19948 { ac_try='test -s conftest$ac_exeext'
19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
19954 sv_cv_macro_pagesize=yes
19955 else
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 sv_cv_macro_pagesize=no
19961 rm -f conftest.err conftest.$ac_objext \
19962 conftest$ac_exeext conftest.$ac_ext
19964 echo "$as_me:$LINENO: result: $sv_cv_macro_pagesize" >&5
19965 echo "${ECHO_T}$sv_cv_macro_pagesize" >&6
19966 if test $sv_cv_macro_pagesize = yes; then
19968 cat >>confdefs.h <<\_ACEOF
19969 #define HAVE_PAGESIZE 1
19970 _ACEOF
19976 # How to allocate fresh memory using mmap.
19977 # (We need mmap, because mprotect() doesn't work on malloc()ed memory on
19978 # some systems.)
19984 echo "$as_me:$LINENO: checking for mmap with MAP_ANON" >&5
19985 echo $ECHO_N "checking for mmap with MAP_ANON... $ECHO_C" >&6
19986 if test "${sv_cv_func_mmap_anon+set}" = set; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 else
19990 if test "$cross_compiling" = yes; then
19992 case "$host_os" in
19993 freebsd* | linux* | osf*)
19994 sv_cv_func_mmap_anon=yes ;;
19996 cat >conftest.$ac_ext <<_ACEOF
19998 /* confdefs.h. */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20004 #include <sys/types.h>
20005 #include <sys/mman.h>
20008 main ()
20010 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
20012 return 0;
20014 _ACEOF
20015 rm -f conftest.$ac_objext conftest$ac_exeext
20016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20017 (eval $ac_link) 2>conftest.er1
20018 ac_status=$?
20019 grep -v '^ *+' conftest.er1 >conftest.err
20020 rm -f conftest.er1
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } &&
20024 { ac_try='test -z "$ac_c_werror_flag"
20025 || test ! -s conftest.err'
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); }; } &&
20031 { ac_try='test -s conftest$ac_exeext'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 sv_cv_func_mmap_anon="guessing yes"
20038 else
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20042 sv_cv_func_mmap_anon=no
20044 rm -f conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext conftest.$ac_ext
20047 esac
20049 else
20050 cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h. */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20058 #include <sys/types.h>
20059 #include <sys/mman.h>
20060 int main ()
20062 void *p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
20063 return (p == (void *)(-1));
20065 _ACEOF
20066 rm -f conftest$ac_exeext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20068 (eval $ac_link) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; }; then
20077 sv_cv_func_mmap_anon=yes
20078 else
20079 echo "$as_me: program exited with status $ac_status" >&5
20080 echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20083 ( exit $ac_status )
20084 sv_cv_func_mmap_anon=no
20086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20090 echo "$as_me:$LINENO: result: $sv_cv_func_mmap_anon" >&5
20091 echo "${ECHO_T}$sv_cv_func_mmap_anon" >&6
20092 if test "$sv_cv_func_mmap_anon" != no; then
20094 cat >>confdefs.h <<\_ACEOF
20095 #define HAVE_MMAP_ANON 1
20096 _ACEOF
20101 echo "$as_me:$LINENO: checking for mmap with MAP_ANONYMOUS" >&5
20102 echo $ECHO_N "checking for mmap with MAP_ANONYMOUS... $ECHO_C" >&6
20103 if test "${sv_cv_func_mmap_anonymous+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20107 if test "$cross_compiling" = yes; then
20109 case "$host_os" in
20110 hpux* | linux* | osf*)
20111 sv_cv_func_mmap_anonymous=yes ;;
20113 cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h. */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20121 #include <sys/types.h>
20122 #include <sys/mman.h>
20125 main ()
20127 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
20129 return 0;
20131 _ACEOF
20132 rm -f conftest.$ac_objext conftest$ac_exeext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20134 (eval $ac_link) 2>conftest.er1
20135 ac_status=$?
20136 grep -v '^ *+' conftest.er1 >conftest.err
20137 rm -f conftest.er1
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
20141 { ac_try='test -z "$ac_c_werror_flag"
20142 || test ! -s conftest.err'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest$ac_exeext'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 sv_cv_func_mmap_anonymous="guessing yes"
20155 else
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 sv_cv_func_mmap_anonymous=no
20161 rm -f conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20164 esac
20166 else
20167 cat >conftest.$ac_ext <<_ACEOF
20169 /* confdefs.h. */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20175 #include <sys/types.h>
20176 #include <sys/mman.h>
20177 int main ()
20179 void *p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
20180 return (p == (void *)(-1));
20182 _ACEOF
20183 rm -f conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185 (eval $ac_link) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 sv_cv_func_mmap_anonymous=yes
20195 else
20196 echo "$as_me: program exited with status $ac_status" >&5
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ( exit $ac_status )
20201 sv_cv_func_mmap_anonymous=no
20203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20207 echo "$as_me:$LINENO: result: $sv_cv_func_mmap_anonymous" >&5
20208 echo "${ECHO_T}$sv_cv_func_mmap_anonymous" >&6
20209 if test "$sv_cv_func_mmap_anonymous" != no; then
20211 cat >>confdefs.h <<\_ACEOF
20212 #define HAVE_MMAP_ANONYMOUS 1
20213 _ACEOF
20218 echo "$as_me:$LINENO: checking for mmap of /dev/zero" >&5
20219 echo $ECHO_N "checking for mmap of /dev/zero... $ECHO_C" >&6
20220 if test "${sv_cv_func_mmap_devzero+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20224 if test "$cross_compiling" = yes; then
20226 case "$host_os" in
20227 freebsd* | irix* | linux* | osf* | solaris* | sunos4*)
20228 sv_cv_func_mmap_devzero=yes ;;
20230 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h. */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20238 #include <sys/types.h>
20239 #include <sys/mman.h>
20240 #ifndef MAP_FILE
20241 #define MAP_FILE 0
20242 #endif
20245 main ()
20247 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE, 7, 0);
20249 return 0;
20251 _ACEOF
20252 rm -f conftest.$ac_objext conftest$ac_exeext
20253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20254 (eval $ac_link) 2>conftest.er1
20255 ac_status=$?
20256 grep -v '^ *+' conftest.er1 >conftest.err
20257 rm -f conftest.er1
20258 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } &&
20261 { ac_try='test -z "$ac_c_werror_flag"
20262 || test ! -s conftest.err'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20265 ac_status=$?
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; } &&
20268 { ac_try='test -s conftest$ac_exeext'
20269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270 (eval $ac_try) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); }; }; then
20274 sv_cv_func_mmap_devzero="guessing yes"
20275 else
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20279 sv_cv_func_mmap_devzero=no
20281 rm -f conftest.err conftest.$ac_objext \
20282 conftest$ac_exeext conftest.$ac_ext
20284 esac
20286 else
20287 cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h. */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20295 #include <sys/types.h>
20296 #include <sys/mman.h>
20297 #include <fcntl.h>
20298 #ifndef MAP_FILE
20299 #define MAP_FILE 0
20300 #endif
20301 int main ()
20303 int fd;
20304 void *p;
20305 fd = open ("/dev/zero", O_RDONLY, 0666);
20306 if (fd < 0) return 1;
20307 p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE, fd, 0);
20308 return (p == (void *)(-1));
20310 _ACEOF
20311 rm -f conftest$ac_exeext
20312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20313 (eval $ac_link) 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 sv_cv_func_mmap_devzero=yes
20323 else
20324 echo "$as_me: program exited with status $ac_status" >&5
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328 ( exit $ac_status )
20329 sv_cv_func_mmap_devzero=no
20331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20335 echo "$as_me:$LINENO: result: $sv_cv_func_mmap_devzero" >&5
20336 echo "${ECHO_T}$sv_cv_func_mmap_devzero" >&6
20337 if test "$sv_cv_func_mmap_devzero" != no; then
20339 cat >>confdefs.h <<\_ACEOF
20340 #define HAVE_MMAP_DEVZERO 1
20341 _ACEOF
20346 # How to write a SIGSEGV handler with access to the fault address.
20348 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
20349 # using handler-macos.c anyway. If we were to perform the tests, 5 Crash Report
20350 # dialog windows would pop up.
20351 case "$host_os" in
20352 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
20359 echo "$as_me:$LINENO: checking whether a fault handler according to POSIX works" >&5
20360 echo $ECHO_N "checking whether a fault handler according to POSIX works... $ECHO_C" >&6
20361 if test "${sv_cv_fault_posix+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20365 if test "$cross_compiling" = yes; then
20366 case "$host" in
20367 *-*-solaris2.[7-9] | i?86-*-linux2.[4-9]* | i?86-*-freebsd[4-9]* | alpha*-dec-osf[4-9]* | *-*-hpux11* | mips-sgi-irix6*) sv_cv_fault_posix=yes ;;
20369 cat >conftest.$ac_ext <<_ACEOF
20371 /* confdefs.h. */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20377 #include <signal.h>
20379 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
20381 void *fault_address = (void *) (sip->si_addr);
20385 main ()
20387 struct sigaction action;
20388 action.sa_sigaction = &sigsegv_handler;
20389 action.sa_flags = SA_SIGINFO;
20391 return 0;
20393 _ACEOF
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20396 (eval $ac_link) 2>conftest.er1
20397 ac_status=$?
20398 grep -v '^ *+' conftest.er1 >conftest.err
20399 rm -f conftest.er1
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
20403 { ac_try='test -z "$ac_c_werror_flag"
20404 || test ! -s conftest.err'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; } &&
20410 { ac_try='test -s conftest$ac_exeext'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 sv_cv_fault_posix="guessing no"
20417 else
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20421 sv_cv_fault_posix=no
20423 rm -f conftest.err conftest.$ac_objext \
20424 conftest$ac_exeext conftest.$ac_ext
20426 esac
20428 else
20429 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20437 #include <stdlib.h>
20438 #include <signal.h>
20439 #if HAVE_SYS_SIGNAL_H
20440 # include <sys/signal.h>
20441 #endif
20443 #include <sys/types.h>
20444 #include <sys/mman.h>
20445 #if HAVE_MMAP_DEVZERO
20446 # include <fcntl.h>
20447 # ifndef MAP_FILE
20448 # define MAP_FILE 0
20449 # endif
20450 #endif
20451 #ifndef PROT_NONE
20452 # define PROT_NONE 0
20453 #endif
20454 #if HAVE_MMAP_ANON
20455 # define zero_fd -1
20456 # define map_flags MAP_ANON | MAP_PRIVATE
20457 #elif HAVE_MMAP_ANONYMOUS
20458 # define zero_fd -1
20459 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
20460 #elif HAVE_MMAP_DEVZERO
20461 static int zero_fd;
20462 # define map_flags MAP_FILE | MAP_PRIVATE
20463 #endif
20464 unsigned long page;
20465 int handler_called = 0;
20466 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
20468 void *fault_address = (void *) (sip->si_addr);
20469 handler_called++;
20470 if (handler_called == 10)
20471 exit (4);
20472 if (fault_address != (void*)(page + 0x678))
20473 exit (3);
20474 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
20475 exit (2);
20477 void crasher (unsigned long p)
20479 *(int *) (p + 0x678) = 42;
20481 int main ()
20483 void *p;
20484 struct sigaction action;
20485 /* Preparations. */
20486 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
20487 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
20488 #endif
20489 /* Setup some mmaped memory. */
20490 #ifdef __hpux
20491 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
20492 freedom about the address range. */
20493 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20494 #else
20495 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20496 #endif
20497 if (p == (void *)(-1))
20498 exit (2);
20499 page = (unsigned long) p;
20500 /* Make it read-only. */
20501 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
20502 exit (2);
20503 /* Install the SIGSEGV handler. */
20504 sigemptyset(&action.sa_mask);
20505 action.sa_sigaction = &sigsegv_handler;
20506 action.sa_flags = SA_SIGINFO;
20507 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
20508 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
20509 /* The first write access should invoke the handler and then complete. */
20510 crasher (page);
20511 /* The second write access should not invoke the handler. */
20512 crasher (page);
20513 /* Check that the handler was called only once. */
20514 if (handler_called != 1)
20515 exit (1);
20516 /* Test passed! */
20517 return 0;
20519 _ACEOF
20520 rm -f conftest$ac_exeext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20522 (eval $ac_link) 2>&5
20523 ac_status=$?
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20528 ac_status=$?
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; }; then
20531 sv_cv_fault_posix=yes
20532 else
20533 echo "$as_me: program exited with status $ac_status" >&5
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ( exit $ac_status )
20538 sv_cv_fault_posix=no
20540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20544 echo "$as_me:$LINENO: result: $sv_cv_fault_posix" >&5
20545 echo "${ECHO_T}$sv_cv_fault_posix" >&6
20552 echo "$as_me:$LINENO: checking whether a fault handler according to Linux/i386 works" >&5
20553 echo $ECHO_N "checking whether a fault handler according to Linux/i386 works... $ECHO_C" >&6
20554 if test "${sv_cv_fault_linux_i386+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20556 else
20558 if test "$cross_compiling" = yes; then
20559 case "$host" in
20560 i?86-*-linux2.[2-9]*) sv_cv_fault_linux_i386=yes ;;
20562 cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h. */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20570 #include <signal.h>
20571 #include <asm/sigcontext.h>
20572 void sigsegv_handler (int sig, struct sigcontext sc)
20574 void *fault_address = (void *) (sc.cr2);
20578 main ()
20580 struct sigaction action;
20583 return 0;
20585 _ACEOF
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588 (eval $ac_link) 2>conftest.er1
20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -z "$ac_c_werror_flag"
20596 || test ! -s conftest.err'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20599 ac_status=$?
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; } &&
20602 { ac_try='test -s conftest$ac_exeext'
20603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604 (eval $ac_try) 2>&5
20605 ac_status=$?
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); }; }; then
20608 sv_cv_fault_linux_i386="guessing no"
20609 else
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 sv_cv_fault_linux_i386=no
20615 rm -f conftest.err conftest.$ac_objext \
20616 conftest$ac_exeext conftest.$ac_ext
20618 esac
20620 else
20621 cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h. */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20629 #include <stdlib.h>
20630 #include <signal.h>
20631 #if HAVE_SYS_SIGNAL_H
20632 # include <sys/signal.h>
20633 #endif
20634 #include <asm/sigcontext.h>
20635 #include <sys/types.h>
20636 #include <sys/mman.h>
20637 #if HAVE_MMAP_DEVZERO
20638 # include <fcntl.h>
20639 # ifndef MAP_FILE
20640 # define MAP_FILE 0
20641 # endif
20642 #endif
20643 #ifndef PROT_NONE
20644 # define PROT_NONE 0
20645 #endif
20646 #if HAVE_MMAP_ANON
20647 # define zero_fd -1
20648 # define map_flags MAP_ANON | MAP_PRIVATE
20649 #elif HAVE_MMAP_ANONYMOUS
20650 # define zero_fd -1
20651 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
20652 #elif HAVE_MMAP_DEVZERO
20653 static int zero_fd;
20654 # define map_flags MAP_FILE | MAP_PRIVATE
20655 #endif
20656 unsigned long page;
20657 int handler_called = 0;
20658 void sigsegv_handler (int sig, struct sigcontext sc)
20660 void *fault_address = (void *) (sc.cr2);
20661 handler_called++;
20662 if (handler_called == 10)
20663 exit (4);
20664 if (fault_address != (void*)(page + 0x678))
20665 exit (3);
20666 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
20667 exit (2);
20669 void crasher (unsigned long p)
20671 *(int *) (p + 0x678) = 42;
20673 int main ()
20675 void *p;
20676 struct sigaction action;
20677 /* Preparations. */
20678 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
20679 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
20680 #endif
20681 /* Setup some mmaped memory. */
20682 #ifdef __hpux
20683 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
20684 freedom about the address range. */
20685 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20686 #else
20687 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20688 #endif
20689 if (p == (void *)(-1))
20690 exit (2);
20691 page = (unsigned long) p;
20692 /* Make it read-only. */
20693 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
20694 exit (2);
20695 /* Install the SIGSEGV handler. */
20696 sigemptyset(&action.sa_mask);
20698 action.sa_handler = (void (*) (int)) &sigsegv_handler;
20699 action.sa_flags = 0;
20701 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
20702 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
20703 /* The first write access should invoke the handler and then complete. */
20704 crasher (page);
20705 /* The second write access should not invoke the handler. */
20706 crasher (page);
20707 /* Check that the handler was called only once. */
20708 if (handler_called != 1)
20709 exit (1);
20710 /* Test passed! */
20711 return 0;
20713 _ACEOF
20714 rm -f conftest$ac_exeext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20716 (eval $ac_link) 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 sv_cv_fault_linux_i386=yes
20726 else
20727 echo "$as_me: program exited with status $ac_status" >&5
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20731 ( exit $ac_status )
20732 sv_cv_fault_linux_i386=no
20734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20738 echo "$as_me:$LINENO: result: $sv_cv_fault_linux_i386" >&5
20739 echo "${ECHO_T}$sv_cv_fault_linux_i386" >&6
20746 echo "$as_me:$LINENO: checking whether a fault handler according to old Linux/i386 works" >&5
20747 echo $ECHO_N "checking whether a fault handler according to old Linux/i386 works... $ECHO_C" >&6
20748 if test "${sv_cv_fault_linux_i386_old+set}" = set; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 else
20752 if test "$cross_compiling" = yes; then
20753 case "$host" in
20754 i?86-*-linux2.[2-9]*) sv_cv_fault_linux_i386_old=yes ;;
20756 cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h. */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20764 #include <signal.h>
20766 void sigsegv_handler (int sig, unsigned int more)
20768 void *fault_address = (void *) (((unsigned long *) &more) [21]);
20772 main ()
20774 struct sigaction action;
20777 return 0;
20779 _ACEOF
20780 rm -f conftest.$ac_objext conftest$ac_exeext
20781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20782 (eval $ac_link) 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
20789 { ac_try='test -z "$ac_c_werror_flag"
20790 || test ! -s conftest.err'
20791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792 (eval $ac_try) 2>&5
20793 ac_status=$?
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; } &&
20796 { ac_try='test -s conftest$ac_exeext'
20797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798 (eval $ac_try) 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; }; then
20802 sv_cv_fault_linux_i386_old="guessing no"
20803 else
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20807 sv_cv_fault_linux_i386_old=no
20809 rm -f conftest.err conftest.$ac_objext \
20810 conftest$ac_exeext conftest.$ac_ext
20812 esac
20814 else
20815 cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h. */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20823 #include <stdlib.h>
20824 #include <signal.h>
20825 #if HAVE_SYS_SIGNAL_H
20826 # include <sys/signal.h>
20827 #endif
20829 #include <sys/types.h>
20830 #include <sys/mman.h>
20831 #if HAVE_MMAP_DEVZERO
20832 # include <fcntl.h>
20833 # ifndef MAP_FILE
20834 # define MAP_FILE 0
20835 # endif
20836 #endif
20837 #ifndef PROT_NONE
20838 # define PROT_NONE 0
20839 #endif
20840 #if HAVE_MMAP_ANON
20841 # define zero_fd -1
20842 # define map_flags MAP_ANON | MAP_PRIVATE
20843 #elif HAVE_MMAP_ANONYMOUS
20844 # define zero_fd -1
20845 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
20846 #elif HAVE_MMAP_DEVZERO
20847 static int zero_fd;
20848 # define map_flags MAP_FILE | MAP_PRIVATE
20849 #endif
20850 unsigned long page;
20851 int handler_called = 0;
20852 void sigsegv_handler (int sig, unsigned int more)
20854 void *fault_address = (void *) (((unsigned long *) &more) [21]);
20855 handler_called++;
20856 if (handler_called == 10)
20857 exit (4);
20858 if (fault_address != (void*)(page + 0x678))
20859 exit (3);
20860 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
20861 exit (2);
20863 void crasher (unsigned long p)
20865 *(int *) (p + 0x678) = 42;
20867 int main ()
20869 void *p;
20870 struct sigaction action;
20871 /* Preparations. */
20872 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
20873 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
20874 #endif
20875 /* Setup some mmaped memory. */
20876 #ifdef __hpux
20877 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
20878 freedom about the address range. */
20879 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20880 #else
20881 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20882 #endif
20883 if (p == (void *)(-1))
20884 exit (2);
20885 page = (unsigned long) p;
20886 /* Make it read-only. */
20887 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
20888 exit (2);
20889 /* Install the SIGSEGV handler. */
20890 sigemptyset(&action.sa_mask);
20892 action.sa_handler = (void (*) (int)) &sigsegv_handler;
20893 action.sa_flags = 0;
20895 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
20896 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
20897 /* The first write access should invoke the handler and then complete. */
20898 crasher (page);
20899 /* The second write access should not invoke the handler. */
20900 crasher (page);
20901 /* Check that the handler was called only once. */
20902 if (handler_called != 1)
20903 exit (1);
20904 /* Test passed! */
20905 return 0;
20907 _ACEOF
20908 rm -f conftest$ac_exeext
20909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20910 (eval $ac_link) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 sv_cv_fault_linux_i386_old=yes
20920 else
20921 echo "$as_me: program exited with status $ac_status" >&5
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 ( exit $ac_status )
20926 sv_cv_fault_linux_i386_old=no
20928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20932 echo "$as_me:$LINENO: result: $sv_cv_fault_linux_i386_old" >&5
20933 echo "${ECHO_T}$sv_cv_fault_linux_i386_old" >&6
20940 echo "$as_me:$LINENO: checking whether a fault handler according to Linux/m68k works" >&5
20941 echo $ECHO_N "checking whether a fault handler according to Linux/m68k works... $ECHO_C" >&6
20942 if test "${sv_cv_fault_linux_m68k+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 else
20946 if test "$cross_compiling" = yes; then
20947 case "$host" in
20950 cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h. */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20958 #include <signal.h>
20959 #include <asm/sigcontext.h>
20960 #include "$srcdir/src/fault-linux-m68k.c"
20961 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
20963 void *fault_address = (void *) (get_fault_addr (scp));
20967 main ()
20969 struct sigaction action;
20972 return 0;
20974 _ACEOF
20975 rm -f conftest.$ac_objext conftest$ac_exeext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20977 (eval $ac_link) 2>conftest.er1
20978 ac_status=$?
20979 grep -v '^ *+' conftest.er1 >conftest.err
20980 rm -f conftest.er1
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try='test -z "$ac_c_werror_flag"
20985 || test ! -s conftest.err'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; } &&
20991 { ac_try='test -s conftest$ac_exeext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 sv_cv_fault_linux_m68k="guessing no"
20998 else
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 sv_cv_fault_linux_m68k=no
21004 rm -f conftest.err conftest.$ac_objext \
21005 conftest$ac_exeext conftest.$ac_ext
21007 esac
21009 else
21010 cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h. */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21018 #include <stdlib.h>
21019 #include <signal.h>
21020 #if HAVE_SYS_SIGNAL_H
21021 # include <sys/signal.h>
21022 #endif
21023 #include <asm/sigcontext.h>
21024 #include "$srcdir/src/fault-linux-m68k.c"
21025 #include <sys/types.h>
21026 #include <sys/mman.h>
21027 #if HAVE_MMAP_DEVZERO
21028 # include <fcntl.h>
21029 # ifndef MAP_FILE
21030 # define MAP_FILE 0
21031 # endif
21032 #endif
21033 #ifndef PROT_NONE
21034 # define PROT_NONE 0
21035 #endif
21036 #if HAVE_MMAP_ANON
21037 # define zero_fd -1
21038 # define map_flags MAP_ANON | MAP_PRIVATE
21039 #elif HAVE_MMAP_ANONYMOUS
21040 # define zero_fd -1
21041 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
21042 #elif HAVE_MMAP_DEVZERO
21043 static int zero_fd;
21044 # define map_flags MAP_FILE | MAP_PRIVATE
21045 #endif
21046 unsigned long page;
21047 int handler_called = 0;
21048 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
21050 void *fault_address = (void *) (get_fault_addr (scp));
21051 handler_called++;
21052 if (handler_called == 10)
21053 exit (4);
21054 if (fault_address != (void*)(page + 0x678))
21055 exit (3);
21056 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
21057 exit (2);
21059 void crasher (unsigned long p)
21061 *(int *) (p + 0x678) = 42;
21063 int main ()
21065 void *p;
21066 struct sigaction action;
21067 /* Preparations. */
21068 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
21069 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
21070 #endif
21071 /* Setup some mmaped memory. */
21072 #ifdef __hpux
21073 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
21074 freedom about the address range. */
21075 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21076 #else
21077 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21078 #endif
21079 if (p == (void *)(-1))
21080 exit (2);
21081 page = (unsigned long) p;
21082 /* Make it read-only. */
21083 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
21084 exit (2);
21085 /* Install the SIGSEGV handler. */
21086 sigemptyset(&action.sa_mask);
21088 action.sa_handler = (void (*) (int)) &sigsegv_handler;
21089 action.sa_flags = 0;
21091 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
21092 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
21093 /* The first write access should invoke the handler and then complete. */
21094 crasher (page);
21095 /* The second write access should not invoke the handler. */
21096 crasher (page);
21097 /* Check that the handler was called only once. */
21098 if (handler_called != 1)
21099 exit (1);
21100 /* Test passed! */
21101 return 0;
21103 _ACEOF
21104 rm -f conftest$ac_exeext
21105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21106 (eval $ac_link) 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 sv_cv_fault_linux_m68k=yes
21116 else
21117 echo "$as_me: program exited with status $ac_status" >&5
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ( exit $ac_status )
21122 sv_cv_fault_linux_m68k=no
21124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21128 echo "$as_me:$LINENO: result: $sv_cv_fault_linux_m68k" >&5
21129 echo "${ECHO_T}$sv_cv_fault_linux_m68k" >&6
21136 echo "$as_me:$LINENO: checking whether a fault handler according to Linux/PowerPC works" >&5
21137 echo $ECHO_N "checking whether a fault handler according to Linux/PowerPC works... $ECHO_C" >&6
21138 if test "${sv_cv_fault_linux_powerpc+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21142 if test "$cross_compiling" = yes; then
21143 case "$host" in
21146 cat >conftest.$ac_ext <<_ACEOF
21148 /* confdefs.h. */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h. */
21154 #include <signal.h>
21155 #include <asm/sigcontext.h>
21156 void sigsegv_handler (int sig, struct sigcontext *scp)
21158 void *fault_address = (void *) (scp->regs->dar);
21162 main ()
21164 struct sigaction action;
21167 return 0;
21169 _ACEOF
21170 rm -f conftest.$ac_objext conftest$ac_exeext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21172 (eval $ac_link) 2>conftest.er1
21173 ac_status=$?
21174 grep -v '^ *+' conftest.er1 >conftest.err
21175 rm -f conftest.er1
21176 cat conftest.err >&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } &&
21179 { ac_try='test -z "$ac_c_werror_flag"
21180 || test ! -s conftest.err'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; } &&
21186 { ac_try='test -s conftest$ac_exeext'
21187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21189 ac_status=$?
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; }; then
21192 sv_cv_fault_linux_powerpc="guessing no"
21193 else
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 sv_cv_fault_linux_powerpc=no
21199 rm -f conftest.err conftest.$ac_objext \
21200 conftest$ac_exeext conftest.$ac_ext
21202 esac
21204 else
21205 cat >conftest.$ac_ext <<_ACEOF
21207 /* confdefs.h. */
21208 _ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21213 #include <stdlib.h>
21214 #include <signal.h>
21215 #if HAVE_SYS_SIGNAL_H
21216 # include <sys/signal.h>
21217 #endif
21218 #include <asm/sigcontext.h>
21219 #include <sys/types.h>
21220 #include <sys/mman.h>
21221 #if HAVE_MMAP_DEVZERO
21222 # include <fcntl.h>
21223 # ifndef MAP_FILE
21224 # define MAP_FILE 0
21225 # endif
21226 #endif
21227 #ifndef PROT_NONE
21228 # define PROT_NONE 0
21229 #endif
21230 #if HAVE_MMAP_ANON
21231 # define zero_fd -1
21232 # define map_flags MAP_ANON | MAP_PRIVATE
21233 #elif HAVE_MMAP_ANONYMOUS
21234 # define zero_fd -1
21235 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
21236 #elif HAVE_MMAP_DEVZERO
21237 static int zero_fd;
21238 # define map_flags MAP_FILE | MAP_PRIVATE
21239 #endif
21240 unsigned long page;
21241 int handler_called = 0;
21242 void sigsegv_handler (int sig, struct sigcontext *scp)
21244 void *fault_address = (void *) (scp->regs->dar);
21245 handler_called++;
21246 if (handler_called == 10)
21247 exit (4);
21248 if (fault_address != (void*)(page + 0x678))
21249 exit (3);
21250 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
21251 exit (2);
21253 void crasher (unsigned long p)
21255 *(int *) (p + 0x678) = 42;
21257 int main ()
21259 void *p;
21260 struct sigaction action;
21261 /* Preparations. */
21262 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
21263 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
21264 #endif
21265 /* Setup some mmaped memory. */
21266 #ifdef __hpux
21267 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
21268 freedom about the address range. */
21269 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21270 #else
21271 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21272 #endif
21273 if (p == (void *)(-1))
21274 exit (2);
21275 page = (unsigned long) p;
21276 /* Make it read-only. */
21277 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
21278 exit (2);
21279 /* Install the SIGSEGV handler. */
21280 sigemptyset(&action.sa_mask);
21282 action.sa_handler = (void (*) (int)) &sigsegv_handler;
21283 action.sa_flags = 0;
21285 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
21286 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
21287 /* The first write access should invoke the handler and then complete. */
21288 crasher (page);
21289 /* The second write access should not invoke the handler. */
21290 crasher (page);
21291 /* Check that the handler was called only once. */
21292 if (handler_called != 1)
21293 exit (1);
21294 /* Test passed! */
21295 return 0;
21297 _ACEOF
21298 rm -f conftest$ac_exeext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21300 (eval $ac_link) 2>&5
21301 ac_status=$?
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 sv_cv_fault_linux_powerpc=yes
21310 else
21311 echo "$as_me: program exited with status $ac_status" >&5
21312 echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21315 ( exit $ac_status )
21316 sv_cv_fault_linux_powerpc=no
21318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21322 echo "$as_me:$LINENO: result: $sv_cv_fault_linux_powerpc" >&5
21323 echo "${ECHO_T}$sv_cv_fault_linux_powerpc" >&6
21330 echo "$as_me:$LINENO: checking whether a fault handler according to Linux/HPPA works" >&5
21331 echo $ECHO_N "checking whether a fault handler according to Linux/HPPA works... $ECHO_C" >&6
21332 if test "${sv_cv_fault_linux_hppa+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 else
21336 if test "$cross_compiling" = yes; then
21337 case "$host" in
21340 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h. */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21348 #include <signal.h>
21350 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
21352 void *fault_address = (void *) (sip->si_ptr);
21356 main ()
21358 struct sigaction action;
21359 action.sa_sigaction = &sigsegv_handler;
21360 action.sa_flags = SA_SIGINFO;
21362 return 0;
21364 _ACEOF
21365 rm -f conftest.$ac_objext conftest$ac_exeext
21366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21367 (eval $ac_link) 2>conftest.er1
21368 ac_status=$?
21369 grep -v '^ *+' conftest.er1 >conftest.err
21370 rm -f conftest.er1
21371 cat conftest.err >&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } &&
21374 { ac_try='test -z "$ac_c_werror_flag"
21375 || test ! -s conftest.err'
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; } &&
21381 { ac_try='test -s conftest$ac_exeext'
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387 sv_cv_fault_linux_hppa="guessing no"
21388 else
21389 echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 sv_cv_fault_linux_hppa=no
21394 rm -f conftest.err conftest.$ac_objext \
21395 conftest$ac_exeext conftest.$ac_ext
21397 esac
21399 else
21400 cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h. */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21408 #include <stdlib.h>
21409 #include <signal.h>
21410 #if HAVE_SYS_SIGNAL_H
21411 # include <sys/signal.h>
21412 #endif
21414 #include <sys/types.h>
21415 #include <sys/mman.h>
21416 #if HAVE_MMAP_DEVZERO
21417 # include <fcntl.h>
21418 # ifndef MAP_FILE
21419 # define MAP_FILE 0
21420 # endif
21421 #endif
21422 #ifndef PROT_NONE
21423 # define PROT_NONE 0
21424 #endif
21425 #if HAVE_MMAP_ANON
21426 # define zero_fd -1
21427 # define map_flags MAP_ANON | MAP_PRIVATE
21428 #elif HAVE_MMAP_ANONYMOUS
21429 # define zero_fd -1
21430 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
21431 #elif HAVE_MMAP_DEVZERO
21432 static int zero_fd;
21433 # define map_flags MAP_FILE | MAP_PRIVATE
21434 #endif
21435 unsigned long page;
21436 int handler_called = 0;
21437 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
21439 void *fault_address = (void *) (sip->si_ptr);
21440 handler_called++;
21441 if (handler_called == 10)
21442 exit (4);
21443 if (fault_address != (void*)(page + 0x678))
21444 exit (3);
21445 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
21446 exit (2);
21448 void crasher (unsigned long p)
21450 *(int *) (p + 0x678) = 42;
21452 int main ()
21454 void *p;
21455 struct sigaction action;
21456 /* Preparations. */
21457 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
21458 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
21459 #endif
21460 /* Setup some mmaped memory. */
21461 #ifdef __hpux
21462 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
21463 freedom about the address range. */
21464 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21465 #else
21466 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21467 #endif
21468 if (p == (void *)(-1))
21469 exit (2);
21470 page = (unsigned long) p;
21471 /* Make it read-only. */
21472 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
21473 exit (2);
21474 /* Install the SIGSEGV handler. */
21475 sigemptyset(&action.sa_mask);
21476 action.sa_sigaction = &sigsegv_handler;
21477 action.sa_flags = SA_SIGINFO;
21478 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
21479 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
21480 /* The first write access should invoke the handler and then complete. */
21481 crasher (page);
21482 /* The second write access should not invoke the handler. */
21483 crasher (page);
21484 /* Check that the handler was called only once. */
21485 if (handler_called != 1)
21486 exit (1);
21487 /* Test passed! */
21488 return 0;
21490 _ACEOF
21491 rm -f conftest$ac_exeext
21492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21493 (eval $ac_link) 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 sv_cv_fault_linux_hppa=yes
21503 else
21504 echo "$as_me: program exited with status $ac_status" >&5
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 ( exit $ac_status )
21509 sv_cv_fault_linux_hppa=no
21511 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21515 echo "$as_me:$LINENO: result: $sv_cv_fault_linux_hppa" >&5
21516 echo "${ECHO_T}$sv_cv_fault_linux_hppa" >&6
21523 echo "$as_me:$LINENO: checking whether a fault handler according to BSD works" >&5
21524 echo $ECHO_N "checking whether a fault handler according to BSD works... $ECHO_C" >&6
21525 if test "${sv_cv_fault_bsd+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 else
21529 if test "$cross_compiling" = yes; then
21530 case "$host" in
21531 i?86-*-freebsd[4-9]*) sv_cv_fault_bsd=yes ;;
21533 cat >conftest.$ac_ext <<_ACEOF
21535 /* confdefs.h. */
21536 _ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21541 #include <signal.h>
21543 void sigsegv_handler (int sig, int code, struct sigcontext *scp, void *addr)
21545 void *fault_address = (void *) (addr);
21549 main ()
21551 struct sigaction action;
21554 return 0;
21556 _ACEOF
21557 rm -f conftest.$ac_objext conftest$ac_exeext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21559 (eval $ac_link) 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 sv_cv_fault_bsd="guessing no"
21580 else
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 sv_cv_fault_bsd=no
21586 rm -f conftest.err conftest.$ac_objext \
21587 conftest$ac_exeext conftest.$ac_ext
21589 esac
21591 else
21592 cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h. */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21600 #include <stdlib.h>
21601 #include <signal.h>
21602 #if HAVE_SYS_SIGNAL_H
21603 # include <sys/signal.h>
21604 #endif
21606 #include <sys/types.h>
21607 #include <sys/mman.h>
21608 #if HAVE_MMAP_DEVZERO
21609 # include <fcntl.h>
21610 # ifndef MAP_FILE
21611 # define MAP_FILE 0
21612 # endif
21613 #endif
21614 #ifndef PROT_NONE
21615 # define PROT_NONE 0
21616 #endif
21617 #if HAVE_MMAP_ANON
21618 # define zero_fd -1
21619 # define map_flags MAP_ANON | MAP_PRIVATE
21620 #elif HAVE_MMAP_ANONYMOUS
21621 # define zero_fd -1
21622 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
21623 #elif HAVE_MMAP_DEVZERO
21624 static int zero_fd;
21625 # define map_flags MAP_FILE | MAP_PRIVATE
21626 #endif
21627 unsigned long page;
21628 int handler_called = 0;
21629 void sigsegv_handler (int sig, int code, struct sigcontext *scp, void *addr)
21631 void *fault_address = (void *) (addr);
21632 handler_called++;
21633 if (handler_called == 10)
21634 exit (4);
21635 if (fault_address != (void*)(page + 0x678))
21636 exit (3);
21637 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
21638 exit (2);
21640 void crasher (unsigned long p)
21642 *(int *) (p + 0x678) = 42;
21644 int main ()
21646 void *p;
21647 struct sigaction action;
21648 /* Preparations. */
21649 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
21650 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
21651 #endif
21652 /* Setup some mmaped memory. */
21653 #ifdef __hpux
21654 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
21655 freedom about the address range. */
21656 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21657 #else
21658 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21659 #endif
21660 if (p == (void *)(-1))
21661 exit (2);
21662 page = (unsigned long) p;
21663 /* Make it read-only. */
21664 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
21665 exit (2);
21666 /* Install the SIGSEGV handler. */
21667 sigemptyset(&action.sa_mask);
21669 action.sa_handler = (void (*) (int)) &sigsegv_handler;
21670 action.sa_flags = 0;
21672 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
21673 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
21674 /* The first write access should invoke the handler and then complete. */
21675 crasher (page);
21676 /* The second write access should not invoke the handler. */
21677 crasher (page);
21678 /* Check that the handler was called only once. */
21679 if (handler_called != 1)
21680 exit (1);
21681 /* Test passed! */
21682 return 0;
21684 _ACEOF
21685 rm -f conftest$ac_exeext
21686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21687 (eval $ac_link) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692 (eval $ac_try) 2>&5
21693 ac_status=$?
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); }; }; then
21696 sv_cv_fault_bsd=yes
21697 else
21698 echo "$as_me: program exited with status $ac_status" >&5
21699 echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ( exit $ac_status )
21703 sv_cv_fault_bsd=no
21705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21709 echo "$as_me:$LINENO: result: $sv_cv_fault_bsd" >&5
21710 echo "${ECHO_T}$sv_cv_fault_bsd" >&6
21717 echo "$as_me:$LINENO: checking whether a fault handler according to IRIX works" >&5
21718 echo $ECHO_N "checking whether a fault handler according to IRIX works... $ECHO_C" >&6
21719 if test "${sv_cv_fault_irix+set}" = set; then
21720 echo $ECHO_N "(cached) $ECHO_C" >&6
21721 else
21723 if test "$cross_compiling" = yes; then
21724 case "$host" in
21725 mips-sgi-irix6*) sv_cv_fault_irix=yes ;;
21727 cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h. */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21735 #include <signal.h>
21737 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
21739 void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr);
21743 main ()
21745 struct sigaction action;
21748 return 0;
21750 _ACEOF
21751 rm -f conftest.$ac_objext conftest$ac_exeext
21752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21753 (eval $ac_link) 2>conftest.er1
21754 ac_status=$?
21755 grep -v '^ *+' conftest.er1 >conftest.err
21756 rm -f conftest.er1
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } &&
21760 { ac_try='test -z "$ac_c_werror_flag"
21761 || test ! -s conftest.err'
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21764 ac_status=$?
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; } &&
21767 { ac_try='test -s conftest$ac_exeext'
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }; then
21773 sv_cv_fault_irix="guessing no"
21774 else
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 sv_cv_fault_irix=no
21780 rm -f conftest.err conftest.$ac_objext \
21781 conftest$ac_exeext conftest.$ac_ext
21783 esac
21785 else
21786 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h. */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21794 #include <stdlib.h>
21795 #include <signal.h>
21796 #if HAVE_SYS_SIGNAL_H
21797 # include <sys/signal.h>
21798 #endif
21800 #include <sys/types.h>
21801 #include <sys/mman.h>
21802 #if HAVE_MMAP_DEVZERO
21803 # include <fcntl.h>
21804 # ifndef MAP_FILE
21805 # define MAP_FILE 0
21806 # endif
21807 #endif
21808 #ifndef PROT_NONE
21809 # define PROT_NONE 0
21810 #endif
21811 #if HAVE_MMAP_ANON
21812 # define zero_fd -1
21813 # define map_flags MAP_ANON | MAP_PRIVATE
21814 #elif HAVE_MMAP_ANONYMOUS
21815 # define zero_fd -1
21816 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
21817 #elif HAVE_MMAP_DEVZERO
21818 static int zero_fd;
21819 # define map_flags MAP_FILE | MAP_PRIVATE
21820 #endif
21821 unsigned long page;
21822 int handler_called = 0;
21823 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
21825 void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr);
21826 handler_called++;
21827 if (handler_called == 10)
21828 exit (4);
21829 if (fault_address != (void*)(page + 0x678))
21830 exit (3);
21831 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
21832 exit (2);
21834 void crasher (unsigned long p)
21836 *(int *) (p + 0x678) = 42;
21838 int main ()
21840 void *p;
21841 struct sigaction action;
21842 /* Preparations. */
21843 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
21844 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
21845 #endif
21846 /* Setup some mmaped memory. */
21847 #ifdef __hpux
21848 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
21849 freedom about the address range. */
21850 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21851 #else
21852 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21853 #endif
21854 if (p == (void *)(-1))
21855 exit (2);
21856 page = (unsigned long) p;
21857 /* Make it read-only. */
21858 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
21859 exit (2);
21860 /* Install the SIGSEGV handler. */
21861 sigemptyset(&action.sa_mask);
21863 action.sa_handler = (void (*) (int)) &sigsegv_handler;
21864 action.sa_flags = 0;
21866 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
21867 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
21868 /* The first write access should invoke the handler and then complete. */
21869 crasher (page);
21870 /* The second write access should not invoke the handler. */
21871 crasher (page);
21872 /* Check that the handler was called only once. */
21873 if (handler_called != 1)
21874 exit (1);
21875 /* Test passed! */
21876 return 0;
21878 _ACEOF
21879 rm -f conftest$ac_exeext
21880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21881 (eval $ac_link) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
21890 sv_cv_fault_irix=yes
21891 else
21892 echo "$as_me: program exited with status $ac_status" >&5
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21896 ( exit $ac_status )
21897 sv_cv_fault_irix=no
21899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21903 echo "$as_me:$LINENO: result: $sv_cv_fault_irix" >&5
21904 echo "${ECHO_T}$sv_cv_fault_irix" >&6
21911 echo "$as_me:$LINENO: checking whether a fault handler according to HP-UX HPPA works" >&5
21912 echo $ECHO_N "checking whether a fault handler according to HP-UX HPPA works... $ECHO_C" >&6
21913 if test "${sv_cv_fault_hpux_hppa+set}" = set; then
21914 echo $ECHO_N "(cached) $ECHO_C" >&6
21915 else
21917 if test "$cross_compiling" = yes; then
21918 case "$host" in
21919 hppa*-*-hpux11*) sv_cv_fault_hpux_hppa=yes ;;
21921 cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h. */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21929 #include <signal.h>
21931 #define USE_64BIT_REGS(mc) \
21932 (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))
21933 #define GET_CR21(mc) \
21934 (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)
21936 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
21938 void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));
21942 main ()
21944 struct sigaction action;
21947 return 0;
21949 _ACEOF
21950 rm -f conftest.$ac_objext conftest$ac_exeext
21951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21952 (eval $ac_link) 2>conftest.er1
21953 ac_status=$?
21954 grep -v '^ *+' conftest.er1 >conftest.err
21955 rm -f conftest.er1
21956 cat conftest.err >&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } &&
21959 { ac_try='test -z "$ac_c_werror_flag"
21960 || test ! -s conftest.err'
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; } &&
21966 { ac_try='test -s conftest$ac_exeext'
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21969 ac_status=$?
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); }; }; then
21972 sv_cv_fault_hpux_hppa="guessing no"
21973 else
21974 echo "$as_me: failed program was:" >&5
21975 sed 's/^/| /' conftest.$ac_ext >&5
21977 sv_cv_fault_hpux_hppa=no
21979 rm -f conftest.err conftest.$ac_objext \
21980 conftest$ac_exeext conftest.$ac_ext
21982 esac
21984 else
21985 cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h. */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21993 #include <stdlib.h>
21994 #include <signal.h>
21995 #if HAVE_SYS_SIGNAL_H
21996 # include <sys/signal.h>
21997 #endif
21999 #define USE_64BIT_REGS(mc) \
22000 (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))
22001 #define GET_CR21(mc) \
22002 (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)
22004 #include <sys/types.h>
22005 #include <sys/mman.h>
22006 #if HAVE_MMAP_DEVZERO
22007 # include <fcntl.h>
22008 # ifndef MAP_FILE
22009 # define MAP_FILE 0
22010 # endif
22011 #endif
22012 #ifndef PROT_NONE
22013 # define PROT_NONE 0
22014 #endif
22015 #if HAVE_MMAP_ANON
22016 # define zero_fd -1
22017 # define map_flags MAP_ANON | MAP_PRIVATE
22018 #elif HAVE_MMAP_ANONYMOUS
22019 # define zero_fd -1
22020 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22021 #elif HAVE_MMAP_DEVZERO
22022 static int zero_fd;
22023 # define map_flags MAP_FILE | MAP_PRIVATE
22024 #endif
22025 unsigned long page;
22026 int handler_called = 0;
22027 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22029 void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));
22030 handler_called++;
22031 if (handler_called == 10)
22032 exit (4);
22033 if (fault_address != (void*)(page + 0x678))
22034 exit (3);
22035 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
22036 exit (2);
22038 void crasher (unsigned long p)
22040 *(int *) (p + 0x678) = 42;
22042 int main ()
22044 void *p;
22045 struct sigaction action;
22046 /* Preparations. */
22047 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
22048 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
22049 #endif
22050 /* Setup some mmaped memory. */
22051 #ifdef __hpux
22052 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
22053 freedom about the address range. */
22054 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22055 #else
22056 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22057 #endif
22058 if (p == (void *)(-1))
22059 exit (2);
22060 page = (unsigned long) p;
22061 /* Make it read-only. */
22062 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
22063 exit (2);
22064 /* Install the SIGSEGV handler. */
22065 sigemptyset(&action.sa_mask);
22067 action.sa_handler = (void (*) (int)) &sigsegv_handler;
22068 action.sa_flags = 0;
22070 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
22071 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
22072 /* The first write access should invoke the handler and then complete. */
22073 crasher (page);
22074 /* The second write access should not invoke the handler. */
22075 crasher (page);
22076 /* Check that the handler was called only once. */
22077 if (handler_called != 1)
22078 exit (1);
22079 /* Test passed! */
22080 return 0;
22082 _ACEOF
22083 rm -f conftest$ac_exeext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22085 (eval $ac_link) 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090 (eval $ac_try) 2>&5
22091 ac_status=$?
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); }; }; then
22094 sv_cv_fault_hpux_hppa=yes
22095 else
22096 echo "$as_me: program exited with status $ac_status" >&5
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ( exit $ac_status )
22101 sv_cv_fault_hpux_hppa=no
22103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22107 echo "$as_me:$LINENO: result: $sv_cv_fault_hpux_hppa" >&5
22108 echo "${ECHO_T}$sv_cv_fault_hpux_hppa" >&6
22115 echo "$as_me:$LINENO: checking whether a fault handler according to OSF/1 Alpha works" >&5
22116 echo $ECHO_N "checking whether a fault handler according to OSF/1 Alpha works... $ECHO_C" >&6
22117 if test "${sv_cv_fault_osf_alpha+set}" = set; then
22118 echo $ECHO_N "(cached) $ECHO_C" >&6
22119 else
22121 if test "$cross_compiling" = yes; then
22122 case "$host" in
22123 alpha*-*-osf[4-9]* | alpha*-*-linux2.[4-9]*) sv_cv_fault_osf_alpha=yes ;;
22125 cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h. */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22133 #include <signal.h>
22135 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22137 void *fault_address = (void *) (scp->sc_traparg_a0);
22141 main ()
22143 struct sigaction action;
22146 return 0;
22148 _ACEOF
22149 rm -f conftest.$ac_objext conftest$ac_exeext
22150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22151 (eval $ac_link) 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } &&
22158 { ac_try='test -z "$ac_c_werror_flag"
22159 || test ! -s conftest.err'
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22162 ac_status=$?
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; } &&
22165 { ac_try='test -s conftest$ac_exeext'
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22168 ac_status=$?
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; }; then
22171 sv_cv_fault_osf_alpha="guessing no"
22172 else
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22176 sv_cv_fault_osf_alpha=no
22178 rm -f conftest.err conftest.$ac_objext \
22179 conftest$ac_exeext conftest.$ac_ext
22181 esac
22183 else
22184 cat >conftest.$ac_ext <<_ACEOF
22186 /* confdefs.h. */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22192 #include <stdlib.h>
22193 #include <signal.h>
22194 #if HAVE_SYS_SIGNAL_H
22195 # include <sys/signal.h>
22196 #endif
22198 #include <sys/types.h>
22199 #include <sys/mman.h>
22200 #if HAVE_MMAP_DEVZERO
22201 # include <fcntl.h>
22202 # ifndef MAP_FILE
22203 # define MAP_FILE 0
22204 # endif
22205 #endif
22206 #ifndef PROT_NONE
22207 # define PROT_NONE 0
22208 #endif
22209 #if HAVE_MMAP_ANON
22210 # define zero_fd -1
22211 # define map_flags MAP_ANON | MAP_PRIVATE
22212 #elif HAVE_MMAP_ANONYMOUS
22213 # define zero_fd -1
22214 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22215 #elif HAVE_MMAP_DEVZERO
22216 static int zero_fd;
22217 # define map_flags MAP_FILE | MAP_PRIVATE
22218 #endif
22219 unsigned long page;
22220 int handler_called = 0;
22221 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22223 void *fault_address = (void *) (scp->sc_traparg_a0);
22224 handler_called++;
22225 if (handler_called == 10)
22226 exit (4);
22227 if (fault_address != (void*)(page + 0x678))
22228 exit (3);
22229 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
22230 exit (2);
22232 void crasher (unsigned long p)
22234 *(int *) (p + 0x678) = 42;
22236 int main ()
22238 void *p;
22239 struct sigaction action;
22240 /* Preparations. */
22241 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
22242 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
22243 #endif
22244 /* Setup some mmaped memory. */
22245 #ifdef __hpux
22246 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
22247 freedom about the address range. */
22248 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22249 #else
22250 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22251 #endif
22252 if (p == (void *)(-1))
22253 exit (2);
22254 page = (unsigned long) p;
22255 /* Make it read-only. */
22256 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
22257 exit (2);
22258 /* Install the SIGSEGV handler. */
22259 sigemptyset(&action.sa_mask);
22261 action.sa_handler = (void (*) (int)) &sigsegv_handler;
22262 action.sa_flags = 0;
22264 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
22265 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
22266 /* The first write access should invoke the handler and then complete. */
22267 crasher (page);
22268 /* The second write access should not invoke the handler. */
22269 crasher (page);
22270 /* Check that the handler was called only once. */
22271 if (handler_called != 1)
22272 exit (1);
22273 /* Test passed! */
22274 return 0;
22276 _ACEOF
22277 rm -f conftest$ac_exeext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22279 (eval $ac_link) 2>&5
22280 ac_status=$?
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22285 ac_status=$?
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
22288 sv_cv_fault_osf_alpha=yes
22289 else
22290 echo "$as_me: program exited with status $ac_status" >&5
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 ( exit $ac_status )
22295 sv_cv_fault_osf_alpha=no
22297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22301 echo "$as_me:$LINENO: result: $sv_cv_fault_osf_alpha" >&5
22302 echo "${ECHO_T}$sv_cv_fault_osf_alpha" >&6
22309 echo "$as_me:$LINENO: checking whether a fault handler according to NetBSD Alpha works" >&5
22310 echo $ECHO_N "checking whether a fault handler according to NetBSD Alpha works... $ECHO_C" >&6
22311 if test "${sv_cv_fault_netbsd_alpha+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22315 if test "$cross_compiling" = yes; then
22316 case "$host" in
22317 alpha*-*-osf[4-9]* | alpha-*-*bsd*) sv_cv_fault_netbsd_alpha=yes ;;
22319 cat >conftest.$ac_ext <<_ACEOF
22321 /* confdefs.h. */
22322 _ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h. */
22327 #include <signal.h>
22328 #include "$srcdir/src/fault-netbsd-alpha.c"
22329 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22331 void *fault_address = (void *) (get_fault_addr (scp));
22335 main ()
22337 struct sigaction action;
22340 return 0;
22342 _ACEOF
22343 rm -f conftest.$ac_objext conftest$ac_exeext
22344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22345 (eval $ac_link) 2>conftest.er1
22346 ac_status=$?
22347 grep -v '^ *+' conftest.er1 >conftest.err
22348 rm -f conftest.er1
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } &&
22352 { ac_try='test -z "$ac_c_werror_flag"
22353 || test ! -s conftest.err'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22356 ac_status=$?
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; } &&
22359 { ac_try='test -s conftest$ac_exeext'
22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361 (eval $ac_try) 2>&5
22362 ac_status=$?
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); }; }; then
22365 sv_cv_fault_netbsd_alpha="guessing no"
22366 else
22367 echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22370 sv_cv_fault_netbsd_alpha=no
22372 rm -f conftest.err conftest.$ac_objext \
22373 conftest$ac_exeext conftest.$ac_ext
22375 esac
22377 else
22378 cat >conftest.$ac_ext <<_ACEOF
22380 /* confdefs.h. */
22381 _ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22386 #include <stdlib.h>
22387 #include <signal.h>
22388 #if HAVE_SYS_SIGNAL_H
22389 # include <sys/signal.h>
22390 #endif
22391 #include "$srcdir/src/fault-netbsd-alpha.c"
22392 #include <sys/types.h>
22393 #include <sys/mman.h>
22394 #if HAVE_MMAP_DEVZERO
22395 # include <fcntl.h>
22396 # ifndef MAP_FILE
22397 # define MAP_FILE 0
22398 # endif
22399 #endif
22400 #ifndef PROT_NONE
22401 # define PROT_NONE 0
22402 #endif
22403 #if HAVE_MMAP_ANON
22404 # define zero_fd -1
22405 # define map_flags MAP_ANON | MAP_PRIVATE
22406 #elif HAVE_MMAP_ANONYMOUS
22407 # define zero_fd -1
22408 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22409 #elif HAVE_MMAP_DEVZERO
22410 static int zero_fd;
22411 # define map_flags MAP_FILE | MAP_PRIVATE
22412 #endif
22413 unsigned long page;
22414 int handler_called = 0;
22415 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22417 void *fault_address = (void *) (get_fault_addr (scp));
22418 handler_called++;
22419 if (handler_called == 10)
22420 exit (4);
22421 if (fault_address != (void*)(page + 0x678))
22422 exit (3);
22423 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
22424 exit (2);
22426 void crasher (unsigned long p)
22428 *(int *) (p + 0x678) = 42;
22430 int main ()
22432 void *p;
22433 struct sigaction action;
22434 /* Preparations. */
22435 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
22436 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
22437 #endif
22438 /* Setup some mmaped memory. */
22439 #ifdef __hpux
22440 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
22441 freedom about the address range. */
22442 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22443 #else
22444 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22445 #endif
22446 if (p == (void *)(-1))
22447 exit (2);
22448 page = (unsigned long) p;
22449 /* Make it read-only. */
22450 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
22451 exit (2);
22452 /* Install the SIGSEGV handler. */
22453 sigemptyset(&action.sa_mask);
22455 action.sa_handler = (void (*) (int)) &sigsegv_handler;
22456 action.sa_flags = 0;
22458 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
22459 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
22460 /* The first write access should invoke the handler and then complete. */
22461 crasher (page);
22462 /* The second write access should not invoke the handler. */
22463 crasher (page);
22464 /* Check that the handler was called only once. */
22465 if (handler_called != 1)
22466 exit (1);
22467 /* Test passed! */
22468 return 0;
22470 _ACEOF
22471 rm -f conftest$ac_exeext
22472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22473 (eval $ac_link) 2>&5
22474 ac_status=$?
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 sv_cv_fault_netbsd_alpha=yes
22483 else
22484 echo "$as_me: program exited with status $ac_status" >&5
22485 echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22488 ( exit $ac_status )
22489 sv_cv_fault_netbsd_alpha=no
22491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22495 echo "$as_me:$LINENO: result: $sv_cv_fault_netbsd_alpha" >&5
22496 echo "${ECHO_T}$sv_cv_fault_netbsd_alpha" >&6
22503 echo "$as_me:$LINENO: checking whether a fault handler according to AIX works" >&5
22504 echo $ECHO_N "checking whether a fault handler according to AIX works... $ECHO_C" >&6
22505 if test "${sv_cv_fault_aix+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22509 if test "$cross_compiling" = yes; then
22510 case "$host" in
22511 *-*-aix[34]*) sv_cv_fault_aix=yes ;;
22513 cat >conftest.$ac_ext <<_ACEOF
22515 /* confdefs.h. */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22521 #include <signal.h>
22523 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22525 void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr);
22529 main ()
22531 struct sigaction action;
22534 return 0;
22536 _ACEOF
22537 rm -f conftest.$ac_objext conftest$ac_exeext
22538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22539 (eval $ac_link) 2>conftest.er1
22540 ac_status=$?
22541 grep -v '^ *+' conftest.er1 >conftest.err
22542 rm -f conftest.er1
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } &&
22546 { ac_try='test -z "$ac_c_werror_flag"
22547 || test ! -s conftest.err'
22548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549 (eval $ac_try) 2>&5
22550 ac_status=$?
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); }; } &&
22553 { ac_try='test -s conftest$ac_exeext'
22554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555 (eval $ac_try) 2>&5
22556 ac_status=$?
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); }; }; then
22559 sv_cv_fault_aix="guessing no"
22560 else
22561 echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22564 sv_cv_fault_aix=no
22566 rm -f conftest.err conftest.$ac_objext \
22567 conftest$ac_exeext conftest.$ac_ext
22569 esac
22571 else
22572 cat >conftest.$ac_ext <<_ACEOF
22574 /* confdefs.h. */
22575 _ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22580 #include <stdlib.h>
22581 #include <signal.h>
22582 #if HAVE_SYS_SIGNAL_H
22583 # include <sys/signal.h>
22584 #endif
22586 #include <sys/types.h>
22587 #include <sys/mman.h>
22588 #if HAVE_MMAP_DEVZERO
22589 # include <fcntl.h>
22590 # ifndef MAP_FILE
22591 # define MAP_FILE 0
22592 # endif
22593 #endif
22594 #ifndef PROT_NONE
22595 # define PROT_NONE 0
22596 #endif
22597 #if HAVE_MMAP_ANON
22598 # define zero_fd -1
22599 # define map_flags MAP_ANON | MAP_PRIVATE
22600 #elif HAVE_MMAP_ANONYMOUS
22601 # define zero_fd -1
22602 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22603 #elif HAVE_MMAP_DEVZERO
22604 static int zero_fd;
22605 # define map_flags MAP_FILE | MAP_PRIVATE
22606 #endif
22607 unsigned long page;
22608 int handler_called = 0;
22609 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22611 void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr);
22612 handler_called++;
22613 if (handler_called == 10)
22614 exit (4);
22615 if (fault_address != (void*)(page + 0x678))
22616 exit (3);
22617 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
22618 exit (2);
22620 void crasher (unsigned long p)
22622 *(int *) (p + 0x678) = 42;
22624 int main ()
22626 void *p;
22627 struct sigaction action;
22628 /* Preparations. */
22629 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
22630 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
22631 #endif
22632 /* Setup some mmaped memory. */
22633 #ifdef __hpux
22634 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
22635 freedom about the address range. */
22636 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22637 #else
22638 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22639 #endif
22640 if (p == (void *)(-1))
22641 exit (2);
22642 page = (unsigned long) p;
22643 /* Make it read-only. */
22644 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
22645 exit (2);
22646 /* Install the SIGSEGV handler. */
22647 sigemptyset(&action.sa_mask);
22649 action.sa_handler = (void (*) (int)) &sigsegv_handler;
22650 action.sa_flags = 0;
22652 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
22653 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
22654 /* The first write access should invoke the handler and then complete. */
22655 crasher (page);
22656 /* The second write access should not invoke the handler. */
22657 crasher (page);
22658 /* Check that the handler was called only once. */
22659 if (handler_called != 1)
22660 exit (1);
22661 /* Test passed! */
22662 return 0;
22664 _ACEOF
22665 rm -f conftest$ac_exeext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22667 (eval $ac_link) 2>&5
22668 ac_status=$?
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672 (eval $ac_try) 2>&5
22673 ac_status=$?
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; }; then
22676 sv_cv_fault_aix=yes
22677 else
22678 echo "$as_me: program exited with status $ac_status" >&5
22679 echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22682 ( exit $ac_status )
22683 sv_cv_fault_aix=no
22685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22689 echo "$as_me:$LINENO: result: $sv_cv_fault_aix" >&5
22690 echo "${ECHO_T}$sv_cv_fault_aix" >&6
22697 echo "$as_me:$LINENO: checking whether a fault handler according to MacOSX/Darwin7 PowerPC works" >&5
22698 echo $ECHO_N "checking whether a fault handler according to MacOSX/Darwin7 PowerPC works... $ECHO_C" >&6
22699 if test "${sv_cv_fault_macosdarwin7_ppc+set}" = set; then
22700 echo $ECHO_N "(cached) $ECHO_C" >&6
22701 else
22703 if test "$cross_compiling" = yes; then
22704 case "$host" in
22705 powerpc-*-darwin7*) sv_cv_fault_macosdarwin7_ppc=yes ;;
22707 cat >conftest.$ac_ext <<_ACEOF
22709 /* confdefs.h. */
22710 _ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22715 #include <signal.h>
22716 #include "$srcdir/src/fault-macosdarwin7-powerpc.c"
22717 void sigsegv_handler (int sig, siginfo_t *sip, ucontext_t *ucp)
22719 void *fault_address = (void *) (get_fault_addr (sip, ucp));
22723 main ()
22725 struct sigaction action;
22726 action.sa_sigaction = &sigsegv_handler;
22727 action.sa_flags = SA_SIGINFO;
22729 return 0;
22731 _ACEOF
22732 rm -f conftest.$ac_objext conftest$ac_exeext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22734 (eval $ac_link) 2>conftest.er1
22735 ac_status=$?
22736 grep -v '^ *+' conftest.er1 >conftest.err
22737 rm -f conftest.er1
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } &&
22741 { ac_try='test -z "$ac_c_werror_flag"
22742 || test ! -s conftest.err'
22743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744 (eval $ac_try) 2>&5
22745 ac_status=$?
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; } &&
22748 { ac_try='test -s conftest$ac_exeext'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22751 ac_status=$?
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; }; then
22754 sv_cv_fault_macosdarwin7_ppc="guessing no"
22755 else
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 sv_cv_fault_macosdarwin7_ppc=no
22761 rm -f conftest.err conftest.$ac_objext \
22762 conftest$ac_exeext conftest.$ac_ext
22764 esac
22766 else
22767 cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h. */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h. */
22775 #include <stdlib.h>
22776 #include <signal.h>
22777 #if HAVE_SYS_SIGNAL_H
22778 # include <sys/signal.h>
22779 #endif
22780 #include "$srcdir/src/fault-macosdarwin7-powerpc.c"
22781 #include <sys/types.h>
22782 #include <sys/mman.h>
22783 #if HAVE_MMAP_DEVZERO
22784 # include <fcntl.h>
22785 # ifndef MAP_FILE
22786 # define MAP_FILE 0
22787 # endif
22788 #endif
22789 #ifndef PROT_NONE
22790 # define PROT_NONE 0
22791 #endif
22792 #if HAVE_MMAP_ANON
22793 # define zero_fd -1
22794 # define map_flags MAP_ANON | MAP_PRIVATE
22795 #elif HAVE_MMAP_ANONYMOUS
22796 # define zero_fd -1
22797 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22798 #elif HAVE_MMAP_DEVZERO
22799 static int zero_fd;
22800 # define map_flags MAP_FILE | MAP_PRIVATE
22801 #endif
22802 unsigned long page;
22803 int handler_called = 0;
22804 void sigsegv_handler (int sig, siginfo_t *sip, ucontext_t *ucp)
22806 void *fault_address = (void *) (get_fault_addr (sip, ucp));
22807 handler_called++;
22808 if (handler_called == 10)
22809 exit (4);
22810 if (fault_address != (void*)(page + 0x678))
22811 exit (3);
22812 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
22813 exit (2);
22815 void crasher (unsigned long p)
22817 *(int *) (p + 0x678) = 42;
22819 int main ()
22821 void *p;
22822 struct sigaction action;
22823 /* Preparations. */
22824 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
22825 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
22826 #endif
22827 /* Setup some mmaped memory. */
22828 #ifdef __hpux
22829 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
22830 freedom about the address range. */
22831 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22832 #else
22833 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22834 #endif
22835 if (p == (void *)(-1))
22836 exit (2);
22837 page = (unsigned long) p;
22838 /* Make it read-only. */
22839 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
22840 exit (2);
22841 /* Install the SIGSEGV handler. */
22842 sigemptyset(&action.sa_mask);
22843 action.sa_sigaction = &sigsegv_handler;
22844 action.sa_flags = SA_SIGINFO;
22845 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
22846 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
22847 /* The first write access should invoke the handler and then complete. */
22848 crasher (page);
22849 /* The second write access should not invoke the handler. */
22850 crasher (page);
22851 /* Check that the handler was called only once. */
22852 if (handler_called != 1)
22853 exit (1);
22854 /* Test passed! */
22855 return 0;
22857 _ACEOF
22858 rm -f conftest$ac_exeext
22859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22860 (eval $ac_link) 2>&5
22861 ac_status=$?
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); }; }; then
22869 sv_cv_fault_macosdarwin7_ppc=yes
22870 else
22871 echo "$as_me: program exited with status $ac_status" >&5
22872 echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22875 ( exit $ac_status )
22876 sv_cv_fault_macosdarwin7_ppc=no
22878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22882 echo "$as_me:$LINENO: result: $sv_cv_fault_macosdarwin7_ppc" >&5
22883 echo "${ECHO_T}$sv_cv_fault_macosdarwin7_ppc" >&6
22886 if test "$sv_cv_fault_macosdarwin7_ppc" != yes; then
22891 echo "$as_me:$LINENO: checking whether a fault handler according to MacOSX/Darwin5 PowerPC works" >&5
22892 echo $ECHO_N "checking whether a fault handler according to MacOSX/Darwin5 PowerPC works... $ECHO_C" >&6
22893 if test "${sv_cv_fault_macosdarwin5_ppc+set}" = set; then
22894 echo $ECHO_N "(cached) $ECHO_C" >&6
22895 else
22897 if test "$cross_compiling" = yes; then
22898 case "$host" in
22899 powerpc-*-darwin5*) sv_cv_fault_macosdarwin5_ppc=yes ;;
22901 cat >conftest.$ac_ext <<_ACEOF
22903 /* confdefs.h. */
22904 _ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h. */
22909 #include <signal.h>
22910 #include "$srcdir/src/fault-macosdarwin5-powerpc.c"
22911 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22913 void *fault_address = (void *) (get_fault_addr (scp));
22917 main ()
22919 struct sigaction action;
22922 return 0;
22924 _ACEOF
22925 rm -f conftest.$ac_objext conftest$ac_exeext
22926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22927 (eval $ac_link) 2>conftest.er1
22928 ac_status=$?
22929 grep -v '^ *+' conftest.er1 >conftest.err
22930 rm -f conftest.er1
22931 cat conftest.err >&5
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); } &&
22934 { ac_try='test -z "$ac_c_werror_flag"
22935 || test ! -s conftest.err'
22936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937 (eval $ac_try) 2>&5
22938 ac_status=$?
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); }; } &&
22941 { ac_try='test -s conftest$ac_exeext'
22942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943 (eval $ac_try) 2>&5
22944 ac_status=$?
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); }; }; then
22947 sv_cv_fault_macosdarwin5_ppc="guessing no"
22948 else
22949 echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 sv_cv_fault_macosdarwin5_ppc=no
22954 rm -f conftest.err conftest.$ac_objext \
22955 conftest$ac_exeext conftest.$ac_ext
22957 esac
22959 else
22960 cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h. */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22968 #include <stdlib.h>
22969 #include <signal.h>
22970 #if HAVE_SYS_SIGNAL_H
22971 # include <sys/signal.h>
22972 #endif
22973 #include "$srcdir/src/fault-macosdarwin5-powerpc.c"
22974 #include <sys/types.h>
22975 #include <sys/mman.h>
22976 #if HAVE_MMAP_DEVZERO
22977 # include <fcntl.h>
22978 # ifndef MAP_FILE
22979 # define MAP_FILE 0
22980 # endif
22981 #endif
22982 #ifndef PROT_NONE
22983 # define PROT_NONE 0
22984 #endif
22985 #if HAVE_MMAP_ANON
22986 # define zero_fd -1
22987 # define map_flags MAP_ANON | MAP_PRIVATE
22988 #elif HAVE_MMAP_ANONYMOUS
22989 # define zero_fd -1
22990 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22991 #elif HAVE_MMAP_DEVZERO
22992 static int zero_fd;
22993 # define map_flags MAP_FILE | MAP_PRIVATE
22994 #endif
22995 unsigned long page;
22996 int handler_called = 0;
22997 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22999 void *fault_address = (void *) (get_fault_addr (scp));
23000 handler_called++;
23001 if (handler_called == 10)
23002 exit (4);
23003 if (fault_address != (void*)(page + 0x678))
23004 exit (3);
23005 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
23006 exit (2);
23008 void crasher (unsigned long p)
23010 *(int *) (p + 0x678) = 42;
23012 int main ()
23014 void *p;
23015 struct sigaction action;
23016 /* Preparations. */
23017 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
23018 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
23019 #endif
23020 /* Setup some mmaped memory. */
23021 #ifdef __hpux
23022 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
23023 freedom about the address range. */
23024 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
23025 #else
23026 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
23027 #endif
23028 if (p == (void *)(-1))
23029 exit (2);
23030 page = (unsigned long) p;
23031 /* Make it read-only. */
23032 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
23033 exit (2);
23034 /* Install the SIGSEGV handler. */
23035 sigemptyset(&action.sa_mask);
23037 action.sa_handler = (void (*) (int)) &sigsegv_handler;
23038 action.sa_flags = 0;
23040 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
23041 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
23042 /* The first write access should invoke the handler and then complete. */
23043 crasher (page);
23044 /* The second write access should not invoke the handler. */
23045 crasher (page);
23046 /* Check that the handler was called only once. */
23047 if (handler_called != 1)
23048 exit (1);
23049 /* Test passed! */
23050 return 0;
23052 _ACEOF
23053 rm -f conftest$ac_exeext
23054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23055 (eval $ac_link) 2>&5
23056 ac_status=$?
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 sv_cv_fault_macosdarwin5_ppc=yes
23065 else
23066 echo "$as_me: program exited with status $ac_status" >&5
23067 echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23070 ( exit $ac_status )
23071 sv_cv_fault_macosdarwin5_ppc=no
23073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23077 echo "$as_me:$LINENO: result: $sv_cv_fault_macosdarwin5_ppc" >&5
23078 echo "${ECHO_T}$sv_cv_fault_macosdarwin5_ppc" >&6
23086 echo "$as_me:$LINENO: checking whether a fault handler according to Hurd works" >&5
23087 echo $ECHO_N "checking whether a fault handler according to Hurd works... $ECHO_C" >&6
23088 if test "${sv_cv_fault_hurd+set}" = set; then
23089 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 else
23092 if test "$cross_compiling" = yes; then
23093 case "$host" in
23096 cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h. */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23104 #include <signal.h>
23106 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
23108 void *fault_address = (void *) (code);
23112 main ()
23114 struct sigaction action;
23117 return 0;
23119 _ACEOF
23120 rm -f conftest.$ac_objext conftest$ac_exeext
23121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23122 (eval $ac_link) 2>conftest.er1
23123 ac_status=$?
23124 grep -v '^ *+' conftest.er1 >conftest.err
23125 rm -f conftest.er1
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } &&
23129 { ac_try='test -z "$ac_c_werror_flag"
23130 || test ! -s conftest.err'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } &&
23136 { ac_try='test -s conftest$ac_exeext'
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 sv_cv_fault_hurd="guessing no"
23143 else
23144 echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 sv_cv_fault_hurd=no
23149 rm -f conftest.err conftest.$ac_objext \
23150 conftest$ac_exeext conftest.$ac_ext
23152 esac
23154 else
23155 cat >conftest.$ac_ext <<_ACEOF
23157 /* confdefs.h. */
23158 _ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23163 #include <stdlib.h>
23164 #include <signal.h>
23165 #if HAVE_SYS_SIGNAL_H
23166 # include <sys/signal.h>
23167 #endif
23169 #include <sys/types.h>
23170 #include <sys/mman.h>
23171 #if HAVE_MMAP_DEVZERO
23172 # include <fcntl.h>
23173 # ifndef MAP_FILE
23174 # define MAP_FILE 0
23175 # endif
23176 #endif
23177 #ifndef PROT_NONE
23178 # define PROT_NONE 0
23179 #endif
23180 #if HAVE_MMAP_ANON
23181 # define zero_fd -1
23182 # define map_flags MAP_ANON | MAP_PRIVATE
23183 #elif HAVE_MMAP_ANONYMOUS
23184 # define zero_fd -1
23185 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
23186 #elif HAVE_MMAP_DEVZERO
23187 static int zero_fd;
23188 # define map_flags MAP_FILE | MAP_PRIVATE
23189 #endif
23190 unsigned long page;
23191 int handler_called = 0;
23192 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
23194 void *fault_address = (void *) (code);
23195 handler_called++;
23196 if (handler_called == 10)
23197 exit (4);
23198 if (fault_address != (void*)(page + 0x678))
23199 exit (3);
23200 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
23201 exit (2);
23203 void crasher (unsigned long p)
23205 *(int *) (p + 0x678) = 42;
23207 int main ()
23209 void *p;
23210 struct sigaction action;
23211 /* Preparations. */
23212 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
23213 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
23214 #endif
23215 /* Setup some mmaped memory. */
23216 #ifdef __hpux
23217 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
23218 freedom about the address range. */
23219 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
23220 #else
23221 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
23222 #endif
23223 if (p == (void *)(-1))
23224 exit (2);
23225 page = (unsigned long) p;
23226 /* Make it read-only. */
23227 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
23228 exit (2);
23229 /* Install the SIGSEGV handler. */
23230 sigemptyset(&action.sa_mask);
23232 action.sa_handler = (void (*) (int)) &sigsegv_handler;
23233 action.sa_flags = 0;
23235 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
23236 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
23237 /* The first write access should invoke the handler and then complete. */
23238 crasher (page);
23239 /* The second write access should not invoke the handler. */
23240 crasher (page);
23241 /* Check that the handler was called only once. */
23242 if (handler_called != 1)
23243 exit (1);
23244 /* Test passed! */
23245 return 0;
23247 _ACEOF
23248 rm -f conftest$ac_exeext
23249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23250 (eval $ac_link) 2>&5
23251 ac_status=$?
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23256 ac_status=$?
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; }; then
23259 sv_cv_fault_hurd=yes
23260 else
23261 echo "$as_me: program exited with status $ac_status" >&5
23262 echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23265 ( exit $ac_status )
23266 sv_cv_fault_hurd=no
23268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23272 echo "$as_me:$LINENO: result: $sv_cv_fault_hurd" >&5
23273 echo "${ECHO_T}$sv_cv_fault_hurd" >&6
23276 # End of MacOS X special casing.
23278 esac
23280 CFG_HANDLER=
23281 CFG_FAULT=
23282 CFG_MACHFAULT=
23283 FAULT_CONTEXT=void
23284 FAULT_CONTEXT_INCLUDE=
23285 FAULT_CONTEXT_INCLUDE2=
23286 if test -z "$CFG_FAULT" && test "$sv_cv_fault_aix" = yes; then
23287 case "$host_cpu" in
23288 powerpc* | rs6000) CFG_FAULT=fault-aix3-powerpc.h ;;
23289 *) CFG_FAULT=fault-aix3.h ;;
23290 esac
23291 FAULT_CONTEXT='struct sigcontext'
23293 if test -z "$CFG_FAULT" && test "$sv_cv_fault_irix" = yes; then
23294 case "$host_cpu" in
23295 mips*) CFG_FAULT=fault-irix-mips.h ;;
23296 *) CFG_FAULT=fault-irix.h ;;
23297 esac
23298 FAULT_CONTEXT='struct sigcontext'
23300 if test -z "$CFG_FAULT" && test "$sv_cv_fault_hpux_hppa" = yes; then
23301 case "$host_cpu" in
23302 hppa* | parisc*) CFG_FAULT=fault-hpux-hppa.h ;;
23303 *) CFG_FAULT=fault-hpux.h ;;
23304 esac
23305 FAULT_CONTEXT='struct sigcontext'
23307 if test -z "$CFG_FAULT" && test "$sv_cv_fault_osf_alpha" = yes; then
23308 case "$host_cpu" in
23309 alpha*) CFG_FAULT=fault-osf-alpha.h ;;
23310 *) CFG_FAULT=fault-osf.h ;;
23311 esac
23312 FAULT_CONTEXT='struct sigcontext'
23314 if test -z "$CFG_FAULT" && test "$sv_cv_fault_netbsd_alpha" = yes; then
23315 case "$host_cpu" in
23316 alpha*) CFG_FAULT=fault-netbsd-alpha.h ;;
23317 esac
23318 FAULT_CONTEXT='struct sigcontext'
23320 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_i386" = yes; then
23321 case "$host_cpu" in
23322 i?86 | x86_64) CFG_FAULT=fault-linux-i386.h ;;
23323 esac
23324 FAULT_CONTEXT='struct sigcontext'
23326 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_i386_old" = yes; then
23327 case "$host_cpu" in
23328 i?86 | x86_64) CFG_FAULT=fault-linux-i386-old.h ;;
23329 esac
23330 FAULT_CONTEXT='struct sigcontext'
23332 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_powerpc" = yes; then
23333 case "$host_cpu" in
23334 powerpc* | rs6000) CFG_FAULT=fault-linux-powerpc.h ;;
23335 esac
23336 FAULT_CONTEXT='struct sigcontext'
23338 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_hppa" = yes; then
23339 case "$host_cpu" in
23340 hppa* | parisc*) CFG_FAULT=fault-linux-hppa.h ;;
23341 esac
23343 if test -z "$CFG_FAULT" && test "$sv_cv_fault_hurd" = yes; then
23344 case "$host_os" in
23345 netbsd*) # A false positive.
23348 CFG_FAULT=fault-hurd.h
23349 FAULT_CONTEXT='struct sigcontext'
23351 esac
23353 if test -z "$CFG_FAULT" && test "$sv_cv_fault_bsd" = yes; then
23354 case "$host_os" in
23355 freebsd*)
23356 case "$host_cpu" in
23357 i?86 | x86_64)
23358 CFG_FAULT=fault-freebsd-i386.h
23359 FAULT_CONTEXT='struct sigcontext'
23362 CFG_FAULT=fault-bsd.h
23363 FAULT_CONTEXT='void'
23365 esac
23368 CFG_FAULT=fault-bsd.h
23369 FAULT_CONTEXT='void'
23371 esac
23373 if test -z "$CFG_FAULT" && test "$sv_cv_fault_posix" = yes; then
23374 case "$host_os" in
23375 openbsd*)
23376 case "$host_cpu" in
23377 i?86 | x86_64) CFG_FAULT=fault-openbsd-i386.h ;;
23378 *) CFG_FAULT=fault-openbsd.h ;;
23379 esac
23380 FAULT_CONTEXT='struct sigcontext'
23382 linux*)
23383 case "$host_cpu" in
23384 ia64)
23385 CFG_FAULT=fault-linux-ia64.h
23386 FAULT_CONTEXT='struct sigcontext'
23388 esac
23390 esac
23391 if test -z "$CFG_FAULT"; then
23392 case "$host_os" in
23393 solaris*)
23394 case "$host_cpu" in
23395 i?86 | x86_64) CFG_FAULT=fault-solaris-i386.h ;;
23396 sparc*) CFG_FAULT=fault-solaris-sparc.h ;;
23397 *) CFG_FAULT=fault-solaris.h ;;
23398 esac
23400 aix*)
23401 case "$host_cpu" in
23402 powerpc* | rs6000) CFG_FAULT=fault-aix5-powerpc.h ;;
23403 *) CFG_FAULT=fault-aix5.h ;;
23404 esac
23407 CFG_FAULT=fault-posix.h
23409 esac
23410 FAULT_CONTEXT='ucontext_t'
23411 FAULT_CONTEXT_INCLUDE='#include <ucontext.h>'
23414 if test -z "$CFG_FAULT"; then
23415 case "$host_os" in
23416 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
23417 case "$host_cpu" in
23418 powerpc* | rs6000)
23419 CFG_MACHFAULT=machfault-macos-powerpc.h
23420 FAULT_CONTEXT='ppc_thread_state_t'
23422 i?86 | x86_64)
23423 CFG_MACHFAULT=machfault-macos-i386.h
23424 FAULT_CONTEXT='struct i386_saved_state'
23426 esac
23427 if test -n "$CFG_MACHFAULT"; then
23428 CFG_HANDLER=handler-macos.c
23429 FAULT_CONTEXT_INCLUDE='#include <signal.h>'
23430 FAULT_CONTEXT_INCLUDE2='#include <mach/thread_status.h>'
23431 CFG_FAULT=fault-macos.h # nonexistent, just a dummy
23434 esac
23436 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_m68k" = yes; then
23437 case "$host_cpu" in
23438 m68*)
23439 CFG_FAULT=fault-linux-m68k.h
23440 FAULT_CONTEXT='struct sigcontext'
23442 esac
23444 if test -z "$CFG_FAULT" && test "$sv_cv_fault_macosdarwin7_ppc" = yes; then
23445 case "$host_cpu" in
23446 powerpc* | rs6000)
23447 CFG_FAULT=fault-macosdarwin7-powerpc.h
23448 FAULT_CONTEXT='ucontext_t'
23449 FAULT_CONTEXT_INCLUDE='#include <signal.h>'
23450 FAULT_CONTEXT_INCLUDE2='#include <ucontext.h>'
23452 esac
23454 if test -z "$CFG_FAULT" && test "$sv_cv_fault_macosdarwin5_ppc" = yes; then
23455 case "$host_cpu" in
23456 powerpc* | rs6000)
23457 CFG_FAULT=fault-macosdarwin5-powerpc.h
23458 FAULT_CONTEXT='struct sigcontext'
23460 esac
23462 if test -z "$CFG_FAULT"; then
23463 case "$host_os" in
23464 mingw* | cygwin*)
23465 FAULT_CONTEXT='CONTEXT'
23466 FAULT_CONTEXT_INCLUDE='#include <windows.h>'
23467 CFG_FAULT=fault-win32.h # nonexistent, just a dummy
23469 esac
23471 if test -n "$CFG_FAULT"; then
23472 sv_cv_have_sigsegv_recovery=yes
23473 else
23474 sv_cv_have_sigsegv_recovery=no
23475 case "$host_os" in
23476 linux*)
23477 case "$host_cpu" in
23478 alpha*)
23479 CFG_FAULT=fault-linux-alpha.h
23480 FAULT_CONTEXT='struct sigcontext'
23482 arm* | strongarm* | xscale*)
23483 CFG_FAULT=fault-linux-arm.h
23484 FAULT_CONTEXT='struct sigcontext'
23486 cris)
23487 CFG_FAULT=fault-linux-cris.h
23488 FAULT_CONTEXT='struct sigcontext'
23490 mips*)
23491 CFG_FAULT=fault-linux-mips.h
23492 FAULT_CONTEXT='struct sigcontext'
23494 s390*)
23495 CFG_FAULT=fault-linux-s390.h
23496 FAULT_CONTEXT='struct sigcontext'
23498 sh*)
23499 CFG_FAULT=fault-linux-sh.h
23500 FAULT_CONTEXT='struct sigcontext'
23502 sparc*)
23503 CFG_FAULT=fault-linux-sparc.h
23504 FAULT_CONTEXT='struct sigcontext'
23506 x86_64)
23507 CFG_FAULT=fault-linux-x86_64.h
23508 FAULT_CONTEXT='struct sigcontext'
23510 esac
23512 beos*)
23513 case "$host_cpu" in
23514 i?86 | x86_64) CFG_FAULT=fault-beos-i386.h ;;
23515 *) CFG_FAULT=fault-beos.h ;;
23516 esac
23517 FAULT_CONTEXT='struct vregs'
23519 macos* | darwin*)
23520 case "$host_cpu" in
23521 i?86 | x86_64) CFG_FAULT=fault-macos-i386.h ;;
23522 esac
23523 FAULT_CONTEXT='struct sigcontext'
23525 esac
23527 echo "$as_me:$LINENO: checking for the fault handler specifics" >&5
23528 echo $ECHO_N "checking for the fault handler specifics... $ECHO_C" >&6
23529 if test -n "$CFG_FAULT"; then
23530 sv_cv_fault_include=$CFG_FAULT
23531 else
23532 if test -n "$CFG_MACHFAULT"; then
23533 sv_cv_fault_include=$CFG_MACHFAULT
23534 else
23535 sv_cv_fault_include=none
23538 echo "$as_me:$LINENO: result: $sv_cv_fault_include" >&5
23539 echo "${ECHO_T}$sv_cv_fault_include" >&6
23540 if test -z "$CFG_FAULT"; then
23541 CFG_FAULT=fault-none.h
23544 cat >>confdefs.h <<_ACEOF
23545 #define CFG_FAULT "$CFG_FAULT"
23546 _ACEOF
23548 if test -z "$CFG_MACHFAULT"; then
23549 CFG_MACHFAULT=fault-none.h
23552 cat >>confdefs.h <<_ACEOF
23553 #define CFG_MACHFAULT "$CFG_MACHFAULT"
23554 _ACEOF
23560 echo "$as_me:$LINENO: checking if the system supports catching SIGSEGV" >&5
23561 echo $ECHO_N "checking if the system supports catching SIGSEGV... $ECHO_C" >&6
23562 echo "$as_me:$LINENO: result: $sv_cv_have_sigsegv_recovery" >&5
23563 echo "${ECHO_T}$sv_cv_have_sigsegv_recovery" >&6
23564 if test $sv_cv_have_sigsegv_recovery != no; then
23565 HAVE_SIGSEGV_RECOVERY=1
23566 else
23567 HAVE_SIGSEGV_RECOVERY=0
23572 echo "$as_me:$LINENO: checking for stack direction" >&5
23573 echo $ECHO_N "checking for stack direction... $ECHO_C" >&6
23574 if test "${sv_cv_stack_direction_msg+set}" = set; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23576 else
23578 case "$host_cpu" in
23579 a29k | \
23580 alpha* | \
23581 arc | \
23582 arm* | strongarm* | xscale* | \
23583 avr | \
23584 c1 | c2 | c32 | c34 | c38 | \
23585 clipper | \
23586 cris | \
23587 d30v | \
23588 elxsi | \
23589 fr30 | \
23590 h8300 | \
23591 i?86 | x86_64 | \
23592 i860 | \
23593 ia64 | \
23594 m32r | \
23595 m68* | \
23596 m88k | \
23597 mcore | \
23598 mips* | \
23599 mmix | \
23600 mn10200 | \
23601 mn10300 | \
23602 ns32k | \
23603 pdp11 | \
23604 pj* | \
23605 powerpc* | rs6000 | \
23606 romp | \
23607 s390* | \
23608 sh* | \
23609 sparc* | \
23610 v850 | \
23611 vax | \
23612 xtensa)
23613 sv_cv_stack_direction=-1 ;;
23614 c4x | \
23615 dsp16xx | \
23616 i960 | \
23617 hppa* | parisc* | \
23618 stormy16 | \
23619 we32k)
23620 sv_cv_stack_direction=1 ;;
23622 if test $cross_compiling = no; then
23623 cat > conftest.c <<EOF
23624 #include <stdio.h>
23626 get_stack_direction ()
23628 auto char dummy;
23629 static char *dummyaddr = (char *)0;
23630 if (dummyaddr != (char *)0)
23631 return &dummy > dummyaddr ? 1 : &dummy < dummyaddr ? -1 : 0;
23632 else
23634 dummyaddr = &dummy;
23636 int result = get_stack_direction ();
23637 /* The next assignment avoids tail recursion elimination
23638 (IRIX 6.4 CC). */
23639 dummyaddr = (char *)0;
23640 return result;
23645 main ()
23647 printf ("%d\n", get_stack_direction ());
23648 return 0;
23651 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652 (eval $ac_link) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }
23656 sv_cv_stack_direction=`./conftest`
23657 else
23658 sv_cv_stack_direction=0
23661 esac
23662 case $sv_cv_stack_direction in
23663 1) sv_cv_stack_direction_msg="grows up";;
23664 -1) sv_cv_stack_direction_msg="grows down";;
23665 *) sv_cv_stack_direction_msg="unknown";;
23666 esac
23669 echo "$as_me:$LINENO: result: $sv_cv_stack_direction_msg" >&5
23670 echo "${ECHO_T}$sv_cv_stack_direction_msg" >&6
23672 cat >>confdefs.h <<_ACEOF
23673 #define STACK_DIRECTION $sv_cv_stack_direction
23674 _ACEOF
23677 echo "$as_me:$LINENO: checking for PIOCMAP in sys/procfs.h" >&5
23678 echo $ECHO_N "checking for PIOCMAP in sys/procfs.h... $ECHO_C" >&6
23679 if test "${sv_cv_procfsvma+set}" = set; then
23680 echo $ECHO_N "(cached) $ECHO_C" >&6
23681 else
23683 cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h. */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23689 #include <sys/procfs.h>
23691 main ()
23693 int x = PIOCNMAP + PIOCMAP; prmap_t y;
23695 return 0;
23697 _ACEOF
23698 rm -f conftest.$ac_objext conftest$ac_exeext
23699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23700 (eval $ac_link) 2>conftest.er1
23701 ac_status=$?
23702 grep -v '^ *+' conftest.er1 >conftest.err
23703 rm -f conftest.er1
23704 cat conftest.err >&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } &&
23707 { ac_try='test -z "$ac_c_werror_flag"
23708 || test ! -s conftest.err'
23709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710 (eval $ac_try) 2>&5
23711 ac_status=$?
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); }; } &&
23714 { ac_try='test -s conftest$ac_exeext'
23715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716 (eval $ac_try) 2>&5
23717 ac_status=$?
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); }; }; then
23720 sv_cv_procfsvma=yes
23721 else
23722 echo "$as_me: failed program was:" >&5
23723 sed 's/^/| /' conftest.$ac_ext >&5
23725 sv_cv_procfsvma=no
23727 rm -f conftest.err conftest.$ac_objext \
23728 conftest$ac_exeext conftest.$ac_ext
23731 echo "$as_me:$LINENO: result: $sv_cv_procfsvma" >&5
23732 echo "${ECHO_T}$sv_cv_procfsvma" >&6
23733 CFG_STACKVMA=
23734 if test $sv_cv_procfsvma = yes; then
23735 CFG_STACKVMA=stackvma-procfs.c
23736 else
23737 case "$host_os" in
23738 linux*) CFG_STACKVMA=stackvma-linux.c ;;
23739 freebsd*) CFG_STACKVMA=stackvma-freebsd.c ;;
23740 beos*) CFG_STACKVMA=stackvma-beos.c ;;
23741 macos* | darwin*) CFG_STACKVMA=stackvma-mach.c ;;
23742 esac
23744 if test -n "$CFG_STACKVMA"; then
23746 cat >>confdefs.h <<\_ACEOF
23747 #define HAVE_STACKVMA 1
23748 _ACEOF
23750 else
23751 CFG_STACKVMA=stackvma-none.c
23754 cat >>confdefs.h <<_ACEOF
23755 #define CFG_STACKVMA "$CFG_STACKVMA"
23756 _ACEOF
23762 for ac_func in getrlimit setrlimit
23764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23765 echo "$as_me:$LINENO: checking for $ac_func" >&5
23766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23767 if eval "test \"\${$as_ac_var+set}\" = set"; then
23768 echo $ECHO_N "(cached) $ECHO_C" >&6
23769 else
23770 cat >conftest.$ac_ext <<_ACEOF
23771 /* confdefs.h. */
23772 _ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h. */
23776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23778 #define $ac_func innocuous_$ac_func
23780 /* System header to define __stub macros and hopefully few prototypes,
23781 which can conflict with char $ac_func (); below.
23782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23783 <limits.h> exists even on freestanding compilers. */
23785 #ifdef __STDC__
23786 # include <limits.h>
23787 #else
23788 # include <assert.h>
23789 #endif
23791 #undef $ac_func
23793 /* Override any gcc2 internal prototype to avoid an error. */
23794 #ifdef __cplusplus
23795 extern "C"
23797 #endif
23798 /* We use char because int might match the return type of a gcc2
23799 builtin and then its argument prototype would still apply. */
23800 char $ac_func ();
23801 /* The GNU C library defines this for functions which it implements
23802 to always fail with ENOSYS. Some functions are actually named
23803 something starting with __ and the normal name is an alias. */
23804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23805 choke me
23806 #else
23807 char (*f) () = $ac_func;
23808 #endif
23809 #ifdef __cplusplus
23811 #endif
23814 main ()
23816 return f != $ac_func;
23818 return 0;
23820 _ACEOF
23821 rm -f conftest.$ac_objext conftest$ac_exeext
23822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23823 (eval $ac_link) 2>conftest.er1
23824 ac_status=$?
23825 grep -v '^ *+' conftest.er1 >conftest.err
23826 rm -f conftest.er1
23827 cat conftest.err >&5
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); } &&
23830 { ac_try='test -z "$ac_c_werror_flag"
23831 || test ! -s conftest.err'
23832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833 (eval $ac_try) 2>&5
23834 ac_status=$?
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); }; } &&
23837 { ac_try='test -s conftest$ac_exeext'
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23840 ac_status=$?
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; }; then
23843 eval "$as_ac_var=yes"
23844 else
23845 echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23848 eval "$as_ac_var=no"
23850 rm -f conftest.err conftest.$ac_objext \
23851 conftest$ac_exeext conftest.$ac_ext
23853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23855 if test `eval echo '${'$as_ac_var'}'` = yes; then
23856 cat >>confdefs.h <<_ACEOF
23857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23858 _ACEOF
23861 done
23869 for ac_func in sigaltstack
23871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23872 echo "$as_me:$LINENO: checking for $ac_func" >&5
23873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23874 if eval "test \"\${$as_ac_var+set}\" = set"; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23876 else
23877 cat >conftest.$ac_ext <<_ACEOF
23878 /* confdefs.h. */
23879 _ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23885 #define $ac_func innocuous_$ac_func
23887 /* System header to define __stub macros and hopefully few prototypes,
23888 which can conflict with char $ac_func (); below.
23889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23890 <limits.h> exists even on freestanding compilers. */
23892 #ifdef __STDC__
23893 # include <limits.h>
23894 #else
23895 # include <assert.h>
23896 #endif
23898 #undef $ac_func
23900 /* Override any gcc2 internal prototype to avoid an error. */
23901 #ifdef __cplusplus
23902 extern "C"
23904 #endif
23905 /* We use char because int might match the return type of a gcc2
23906 builtin and then its argument prototype would still apply. */
23907 char $ac_func ();
23908 /* The GNU C library defines this for functions which it implements
23909 to always fail with ENOSYS. Some functions are actually named
23910 something starting with __ and the normal name is an alias. */
23911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23912 choke me
23913 #else
23914 char (*f) () = $ac_func;
23915 #endif
23916 #ifdef __cplusplus
23918 #endif
23921 main ()
23923 return f != $ac_func;
23925 return 0;
23927 _ACEOF
23928 rm -f conftest.$ac_objext conftest$ac_exeext
23929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23930 (eval $ac_link) 2>conftest.er1
23931 ac_status=$?
23932 grep -v '^ *+' conftest.er1 >conftest.err
23933 rm -f conftest.er1
23934 cat conftest.err >&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } &&
23937 { ac_try='test -z "$ac_c_werror_flag"
23938 || test ! -s conftest.err'
23939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940 (eval $ac_try) 2>&5
23941 ac_status=$?
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); }; } &&
23944 { ac_try='test -s conftest$ac_exeext'
23945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23946 (eval $ac_try) 2>&5
23947 ac_status=$?
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); }; }; then
23950 eval "$as_ac_var=yes"
23951 else
23952 echo "$as_me: failed program was:" >&5
23953 sed 's/^/| /' conftest.$ac_ext >&5
23955 eval "$as_ac_var=no"
23957 rm -f conftest.err conftest.$ac_objext \
23958 conftest$ac_exeext conftest.$ac_ext
23960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23962 if test `eval echo '${'$as_ac_var'}'` = yes; then
23963 cat >>confdefs.h <<_ACEOF
23964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23965 _ACEOF
23968 done
23971 if test "$ac_cv_func_sigaltstack" = yes; then
23972 echo "$as_me:$LINENO: checking for stack_t" >&5
23973 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
23974 if test "${ac_cv_type_stack_t+set}" = set; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23976 else
23977 cat >conftest.$ac_ext <<_ACEOF
23978 /* confdefs.h. */
23979 _ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h. */
23984 #include <signal.h>
23985 #if HAVE_SYS_SIGNAL_H
23986 # include <sys/signal.h>
23987 #endif
23991 main ()
23993 if ((stack_t *) 0)
23994 return 0;
23995 if (sizeof (stack_t))
23996 return 0;
23998 return 0;
24000 _ACEOF
24001 rm -f conftest.$ac_objext
24002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24003 (eval $ac_compile) 2>conftest.er1
24004 ac_status=$?
24005 grep -v '^ *+' conftest.er1 >conftest.err
24006 rm -f conftest.er1
24007 cat conftest.err >&5
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); } &&
24010 { ac_try='test -z "$ac_c_werror_flag"
24011 || test ! -s conftest.err'
24012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24013 (eval $ac_try) 2>&5
24014 ac_status=$?
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); }; } &&
24017 { ac_try='test -s conftest.$ac_objext'
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24020 ac_status=$?
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; }; then
24023 ac_cv_type_stack_t=yes
24024 else
24025 echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24028 ac_cv_type_stack_t=no
24030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24032 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
24033 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
24034 if test $ac_cv_type_stack_t = yes; then
24036 else
24038 cat >>confdefs.h <<\_ACEOF
24039 #define stack_t struct sigaltstack
24040 _ACEOF
24047 echo "$as_me:$LINENO: checking for working sigaltstack" >&5
24048 echo $ECHO_N "checking for working sigaltstack... $ECHO_C" >&6
24049 if test "${sv_cv_sigaltstack+set}" = set; then
24050 echo $ECHO_N "(cached) $ECHO_C" >&6
24051 else
24053 if test "$ac_cv_func_sigaltstack" = yes; then
24054 case "$host_os" in
24055 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
24056 # On MacOS X 10.2 or newer, just assume that if it compiles, it will
24057 # work. If we were to perform the real test, 1 Crash Report dialog
24058 # window would pop up.
24059 cat >conftest.$ac_ext <<_ACEOF
24061 /* confdefs.h. */
24062 _ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h. */
24066 #include <signal.h>
24068 main ()
24070 int x = SA_ONSTACK; stack_t ss; sigaltstack ((stack_t*)0, &ss);
24072 return 0;
24074 _ACEOF
24075 rm -f conftest.$ac_objext conftest$ac_exeext
24076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24077 (eval $ac_link) 2>conftest.er1
24078 ac_status=$?
24079 grep -v '^ *+' conftest.er1 >conftest.err
24080 rm -f conftest.er1
24081 cat conftest.err >&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); } &&
24084 { ac_try='test -z "$ac_c_werror_flag"
24085 || test ! -s conftest.err'
24086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087 (eval $ac_try) 2>&5
24088 ac_status=$?
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); }; } &&
24091 { ac_try='test -s conftest$ac_exeext'
24092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093 (eval $ac_try) 2>&5
24094 ac_status=$?
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; }; then
24097 sv_cv_sigaltstack="guessing yes"
24098 else
24099 echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24102 sv_cv_sigaltstack=no
24104 rm -f conftest.err conftest.$ac_objext \
24105 conftest$ac_exeext conftest.$ac_ext
24108 if test "$cross_compiling" = yes; then
24110 case "$host_os" in
24112 cat >conftest.$ac_ext <<_ACEOF
24114 /* confdefs.h. */
24115 _ACEOF
24116 cat confdefs.h >>conftest.$ac_ext
24117 cat >>conftest.$ac_ext <<_ACEOF
24118 /* end confdefs.h. */
24119 #include <signal.h>
24121 main ()
24123 int x = SA_ONSTACK; stack_t ss; sigaltstack ((stack_t*)0, &ss);
24125 return 0;
24127 _ACEOF
24128 rm -f conftest.$ac_objext conftest$ac_exeext
24129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24130 (eval $ac_link) 2>conftest.er1
24131 ac_status=$?
24132 grep -v '^ *+' conftest.er1 >conftest.err
24133 rm -f conftest.er1
24134 cat conftest.err >&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); } &&
24137 { ac_try='test -z "$ac_c_werror_flag"
24138 || test ! -s conftest.err'
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24141 ac_status=$?
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; } &&
24144 { ac_try='test -s conftest$ac_exeext'
24145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24147 ac_status=$?
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); }; }; then
24150 sv_cv_sigaltstack="guessing yes"
24151 else
24152 echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24155 sv_cv_sigaltstack=no
24157 rm -f conftest.err conftest.$ac_objext \
24158 conftest$ac_exeext conftest.$ac_ext
24160 esac
24162 else
24163 cat >conftest.$ac_ext <<_ACEOF
24165 /* confdefs.h. */
24166 _ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24171 #include <stdlib.h>
24172 #include <signal.h>
24173 #if HAVE_SYS_SIGNAL_H
24174 # include <sys/signal.h>
24175 #endif
24176 #if HAVE_SETRLIMIT
24177 # include <sys/types.h>
24178 # include <sys/time.h>
24179 # include <sys/resource.h>
24180 #endif
24181 void stackoverflow_handler (int sig)
24183 /* If we get here, the stack overflow was caught. */
24184 exit (0);
24186 int recurse (int n)
24188 if (n >= 0)
24189 return n + recurse (n + 1);
24190 else
24191 return 0;
24193 int main ()
24195 char mystack[16384];
24196 stack_t altstack;
24197 struct sigaction action;
24198 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24199 /* Before starting the endless recursion, try to be friendly to the user's
24200 machine. On some Linux 2.2.x systems, there is no stack limit for user
24201 processes at all. We don't want to kill such systems. */
24202 struct rlimit rl;
24203 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24204 setrlimit (RLIMIT_STACK, &rl);
24205 #endif
24206 /* Install the alternate stack. */
24207 altstack.ss_sp = mystack;
24208 altstack.ss_size = sizeof (mystack);
24209 altstack.ss_flags = 0; /* no SS_DISABLE */
24210 if (sigaltstack (&altstack, NULL) < 0)
24211 exit (1);
24212 /* Install the SIGSEGV handler. */
24213 sigemptyset (&action.sa_mask);
24214 action.sa_handler = &stackoverflow_handler;
24215 action.sa_flags = SA_ONSTACK;
24216 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24217 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24218 /* Provoke a stack overflow. */
24219 recurse (0);
24220 exit (2);
24222 _ACEOF
24223 rm -f conftest$ac_exeext
24224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24225 (eval $ac_link) 2>&5
24226 ac_status=$?
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24230 (eval $ac_try) 2>&5
24231 ac_status=$?
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); }; }; then
24234 sv_cv_sigaltstack=yes
24235 else
24236 echo "$as_me: program exited with status $ac_status" >&5
24237 echo "$as_me: failed program was:" >&5
24238 sed 's/^/| /' conftest.$ac_ext >&5
24240 ( exit $ac_status )
24241 sv_cv_sigaltstack=no
24243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24246 esac
24247 else
24248 sv_cv_sigaltstack=no
24252 echo "$as_me:$LINENO: result: $sv_cv_sigaltstack" >&5
24253 echo "${ECHO_T}$sv_cv_sigaltstack" >&6
24254 if test "$sv_cv_sigaltstack" != no; then
24256 cat >>confdefs.h <<\_ACEOF
24257 #define HAVE_WORKING_SIGALTSTACK 1
24258 _ACEOF
24263 echo "$as_me:$LINENO: checking if the system supports catching stack overflow" >&5
24264 echo $ECHO_N "checking if the system supports catching stack overflow... $ECHO_C" >&6
24265 if test "${sv_cv_have_stack_overflow_recovery+set}" = set; then
24266 echo $ECHO_N "(cached) $ECHO_C" >&6
24267 else
24269 if test "$CFG_MACHFAULT" != fault-none.h; then
24270 sv_cv_have_stack_overflow_recovery=yes
24271 else
24272 if test "$sv_cv_sigaltstack" != no; then
24273 sv_cv_have_stack_overflow_recovery=maybe
24274 else
24275 case "$host_os" in
24276 beos*) sv_cv_have_stack_overflow_recovery=maybe ;;
24277 mingw* | cygwin*) sv_cv_have_stack_overflow_recovery=yes ;;
24278 *) sv_cv_have_stack_overflow_recovery=no ;;
24279 esac
24282 if test $sv_cv_have_stack_overflow_recovery = maybe; then
24283 if test -n "$CFG_FAULT"; then
24284 cat >conftest.$ac_ext <<_ACEOF
24285 /* confdefs.h. */
24286 _ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24291 #include "$srcdir/src/$CFG_FAULT"
24292 #ifdef SIGSEGV_FAULT_HANDLER_ARGLIST
24293 #ifdef SIGSEGV_FAULT_ADDRESS
24294 xyzzy
24295 #endif
24296 #endif
24298 _ACEOF
24299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24300 $EGREP "xyzzy" >/dev/null 2>&1; then
24301 condA=true
24302 else
24303 condA=false
24305 rm -f conftest*
24307 else
24308 condA=false
24310 if test -n "$CFG_FAULT"; then
24311 cat >conftest.$ac_ext <<_ACEOF
24312 /* confdefs.h. */
24313 _ACEOF
24314 cat confdefs.h >>conftest.$ac_ext
24315 cat >>conftest.$ac_ext <<_ACEOF
24316 /* end confdefs.h. */
24318 #include "$srcdir/src/$CFG_FAULT"
24319 #ifdef SIGSEGV_FAULT_HANDLER_ARGLIST
24320 #ifdef SIGSEGV_FAULT_STACKPOINTER
24321 xyzzy
24322 #endif
24323 #endif
24325 _ACEOF
24326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24327 $EGREP "xyzzy" >/dev/null 2>&1; then
24328 condB=true
24329 else
24330 condB=false
24332 rm -f conftest*
24334 else
24335 condB=false
24337 if test "$CFG_STACKVMA" != "stackvma-none.c"; then
24338 condC=true
24339 else
24340 condC=false
24342 if { $condA && $condB; } || { $condA && $condC; } || { $condB && $condC; }; then
24343 sv_cv_have_stack_overflow_recovery=yes
24344 else
24345 sv_cv_have_stack_overflow_recovery=no
24350 echo "$as_me:$LINENO: result: $sv_cv_have_stack_overflow_recovery" >&5
24351 echo "${ECHO_T}$sv_cv_have_stack_overflow_recovery" >&6
24352 if test $sv_cv_have_stack_overflow_recovery != no; then
24353 HAVE_STACK_OVERFLOW_RECOVERY=1
24354 else
24355 HAVE_STACK_OVERFLOW_RECOVERY=0
24359 # How to longjmp out of a signal handler, in such a way that the
24360 # alternate signal stack remains functional.
24362 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
24363 # using handler-macos.c anyway. If we were to perform the tests, 2 Crash Report
24364 # dialog windows would pop up.
24365 case "$host_os" in
24366 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
24373 echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp" >&5
24374 echo $ECHO_N "checking whether a signal handler can be left through longjmp... $ECHO_C" >&6
24375 if test "${sv_cv_leave_handler_longjmp+set}" = set; then
24376 echo $ECHO_N "(cached) $ECHO_C" >&6
24377 else
24379 if test "$cross_compiling" = yes; then
24380 case "$host" in
24381 *-*-osf[4-9]* | *-*-hpux11* | *-*-linux2.[2-9]*) sv_cv_leave_handler_longjmp=yes ;;
24382 *) sv_cv_leave_handler_longjmp="guessing no" ;;
24383 esac
24385 else
24386 cat >conftest.$ac_ext <<_ACEOF
24388 /* confdefs.h. */
24389 _ACEOF
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h. */
24394 #include <stdlib.h>
24395 #include <signal.h>
24396 #include <setjmp.h>
24398 #if HAVE_SETRLIMIT
24399 # include <sys/types.h>
24400 # include <sys/time.h>
24401 # include <sys/resource.h>
24402 #endif
24403 jmp_buf mainloop;
24404 sigset_t mainsigset;
24405 int pass = 0;
24406 void stackoverflow_handler (int sig)
24408 pass++;
24409 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
24411 longjmp (mainloop, pass);
24413 int recurse (int n)
24415 if (n >= 0)
24416 return n + recurse (n + 1);
24417 else
24418 return 0;
24420 int main ()
24422 char mystack[16384];
24423 stack_t altstack;
24424 struct sigaction action;
24425 sigset_t emptyset;
24426 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24427 /* Before starting the endless recursion, try to be friendly to the user's
24428 machine. On some Linux 2.2.x systems, there is no stack limit for user
24429 processes at all. We don't want to kill such systems. */
24430 struct rlimit rl;
24431 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24432 setrlimit (RLIMIT_STACK, &rl);
24433 #endif
24434 /* Install the alternate stack. */
24435 altstack.ss_sp = mystack;
24436 altstack.ss_size = sizeof (mystack);
24437 altstack.ss_flags = 0; /* no SS_DISABLE */
24438 if (sigaltstack (&altstack, NULL) < 0)
24439 exit (1);
24440 /* Install the SIGSEGV handler. */
24441 sigemptyset (&action.sa_mask);
24442 action.sa_handler = &stackoverflow_handler;
24443 action.sa_flags = SA_ONSTACK;
24444 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24445 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24446 /* Save the current signal mask. */
24447 sigemptyset (&emptyset);
24448 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
24449 /* Provoke two stack overflows in a row. */
24450 if (setjmp (mainloop) < 2)
24452 recurse (0);
24453 exit (2);
24455 exit (0);
24457 _ACEOF
24458 rm -f conftest$ac_exeext
24459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24460 (eval $ac_link) 2>&5
24461 ac_status=$?
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24465 (eval $ac_try) 2>&5
24466 ac_status=$?
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); }; }; then
24469 sv_cv_leave_handler_longjmp=yes
24470 else
24471 echo "$as_me: program exited with status $ac_status" >&5
24472 echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24475 ( exit $ac_status )
24476 sv_cv_leave_handler_longjmp=no
24478 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24482 echo "$as_me:$LINENO: result: $sv_cv_leave_handler_longjmp" >&5
24483 echo "${ECHO_T}$sv_cv_leave_handler_longjmp" >&6
24490 echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp and sigaltstack" >&5
24491 echo $ECHO_N "checking whether a signal handler can be left through longjmp and sigaltstack... $ECHO_C" >&6
24492 if test "${sv_cv_leave_handler_longjmp_sigaltstack+set}" = set; then
24493 echo $ECHO_N "(cached) $ECHO_C" >&6
24494 else
24496 if test "$cross_compiling" = yes; then
24497 case "$host" in
24498 *-*-freebsd*) sv_cv_leave_handler_longjmp_sigaltstack=yes ;;
24499 *) sv_cv_leave_handler_longjmp_sigaltstack="guessing no" ;;
24500 esac
24502 else
24503 cat >conftest.$ac_ext <<_ACEOF
24505 /* confdefs.h. */
24506 _ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24511 #include <stdlib.h>
24512 #include <signal.h>
24513 #include <setjmp.h>
24515 #ifndef SS_ONSTACK
24516 #define SS_ONSTACK SA_ONSTACK
24517 #endif
24519 #if HAVE_SETRLIMIT
24520 # include <sys/types.h>
24521 # include <sys/time.h>
24522 # include <sys/resource.h>
24523 #endif
24524 jmp_buf mainloop;
24525 sigset_t mainsigset;
24526 int pass = 0;
24527 void stackoverflow_handler (int sig)
24529 pass++;
24530 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
24531 { stack_t ss;
24532 if (sigaltstack (NULL, &ss) >= 0)
24534 ss.ss_flags &= ~SS_ONSTACK;
24535 sigaltstack (&ss, NULL);
24538 longjmp (mainloop, pass);
24540 int recurse (int n)
24542 if (n >= 0)
24543 return n + recurse (n + 1);
24544 else
24545 return 0;
24547 int main ()
24549 char mystack[16384];
24550 stack_t altstack;
24551 struct sigaction action;
24552 sigset_t emptyset;
24553 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24554 /* Before starting the endless recursion, try to be friendly to the user's
24555 machine. On some Linux 2.2.x systems, there is no stack limit for user
24556 processes at all. We don't want to kill such systems. */
24557 struct rlimit rl;
24558 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24559 setrlimit (RLIMIT_STACK, &rl);
24560 #endif
24561 /* Install the alternate stack. */
24562 altstack.ss_sp = mystack;
24563 altstack.ss_size = sizeof (mystack);
24564 altstack.ss_flags = 0; /* no SS_DISABLE */
24565 if (sigaltstack (&altstack, NULL) < 0)
24566 exit (1);
24567 /* Install the SIGSEGV handler. */
24568 sigemptyset (&action.sa_mask);
24569 action.sa_handler = &stackoverflow_handler;
24570 action.sa_flags = SA_ONSTACK;
24571 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24572 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24573 /* Save the current signal mask. */
24574 sigemptyset (&emptyset);
24575 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
24576 /* Provoke two stack overflows in a row. */
24577 if (setjmp (mainloop) < 2)
24579 recurse (0);
24580 exit (2);
24582 exit (0);
24584 _ACEOF
24585 rm -f conftest$ac_exeext
24586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24587 (eval $ac_link) 2>&5
24588 ac_status=$?
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24593 ac_status=$?
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; }; then
24596 sv_cv_leave_handler_longjmp_sigaltstack=yes
24597 else
24598 echo "$as_me: program exited with status $ac_status" >&5
24599 echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24602 ( exit $ac_status )
24603 sv_cv_leave_handler_longjmp_sigaltstack=no
24605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24609 echo "$as_me:$LINENO: result: $sv_cv_leave_handler_longjmp_sigaltstack" >&5
24610 echo "${ECHO_T}$sv_cv_leave_handler_longjmp_sigaltstack" >&6
24617 echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp and setcontext" >&5
24618 echo $ECHO_N "checking whether a signal handler can be left through longjmp and setcontext... $ECHO_C" >&6
24619 if test "${sv_cv_leave_handler_longjmp_setcontext+set}" = set; then
24620 echo $ECHO_N "(cached) $ECHO_C" >&6
24621 else
24623 if test "$cross_compiling" = yes; then
24624 case "$host" in
24625 *-*-irix* | *-*-solaris*) sv_cv_leave_handler_longjmp_setcontext=yes ;;
24626 *) sv_cv_leave_handler_longjmp_setcontext="guessing no" ;;
24627 esac
24629 else
24630 cat >conftest.$ac_ext <<_ACEOF
24632 /* confdefs.h. */
24633 _ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h. */
24638 #include <stdlib.h>
24639 #include <signal.h>
24640 #include <setjmp.h>
24641 #include <ucontext.h>
24642 #ifndef SS_ONSTACK
24643 #define SS_ONSTACK SA_ONSTACK
24644 #endif
24646 #if HAVE_SETRLIMIT
24647 # include <sys/types.h>
24648 # include <sys/time.h>
24649 # include <sys/resource.h>
24650 #endif
24651 jmp_buf mainloop;
24652 sigset_t mainsigset;
24653 int pass = 0;
24654 void stackoverflow_handler (int sig)
24656 pass++;
24657 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
24658 { static int fl;
24659 static ucontext_t uc;
24660 fl = 0;
24661 if (getcontext (&uc) >= 0)
24662 if (fl == 0)
24663 if (uc.uc_stack.ss_flags & SS_ONSTACK)
24665 uc.uc_stack.ss_flags &= ~SS_ONSTACK;
24666 fl = 1;
24667 setcontext (&uc);
24670 longjmp (mainloop, pass);
24672 int recurse (int n)
24674 if (n >= 0)
24675 return n + recurse (n + 1);
24676 else
24677 return 0;
24679 int main ()
24681 char mystack[16384];
24682 stack_t altstack;
24683 struct sigaction action;
24684 sigset_t emptyset;
24685 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24686 /* Before starting the endless recursion, try to be friendly to the user's
24687 machine. On some Linux 2.2.x systems, there is no stack limit for user
24688 processes at all. We don't want to kill such systems. */
24689 struct rlimit rl;
24690 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24691 setrlimit (RLIMIT_STACK, &rl);
24692 #endif
24693 /* Install the alternate stack. */
24694 altstack.ss_sp = mystack;
24695 altstack.ss_size = sizeof (mystack);
24696 altstack.ss_flags = 0; /* no SS_DISABLE */
24697 if (sigaltstack (&altstack, NULL) < 0)
24698 exit (1);
24699 /* Install the SIGSEGV handler. */
24700 sigemptyset (&action.sa_mask);
24701 action.sa_handler = &stackoverflow_handler;
24702 action.sa_flags = SA_ONSTACK;
24703 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24704 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24705 /* Save the current signal mask. */
24706 sigemptyset (&emptyset);
24707 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
24708 /* Provoke two stack overflows in a row. */
24709 if (setjmp (mainloop) < 2)
24711 recurse (0);
24712 exit (2);
24714 exit (0);
24716 _ACEOF
24717 rm -f conftest$ac_exeext
24718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24719 (eval $ac_link) 2>&5
24720 ac_status=$?
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24725 ac_status=$?
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; }; then
24728 sv_cv_leave_handler_longjmp_setcontext=yes
24729 else
24730 echo "$as_me: program exited with status $ac_status" >&5
24731 echo "$as_me: failed program was:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24734 ( exit $ac_status )
24735 sv_cv_leave_handler_longjmp_setcontext=no
24737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24741 echo "$as_me:$LINENO: result: $sv_cv_leave_handler_longjmp_setcontext" >&5
24742 echo "${ECHO_T}$sv_cv_leave_handler_longjmp_setcontext" >&6
24745 # End of MacOS X special casing.
24747 esac
24749 # How to siglongjmp out of a signal handler, in such a way that the
24750 # alternate signal stack remains functional.
24752 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
24753 # using handler-macos.c anyway. If we were to perform the tests, 2 Crash Report
24754 # dialog windows would pop up.
24755 case "$host_os" in
24756 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
24763 echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp" >&5
24764 echo $ECHO_N "checking whether a signal handler can be left through siglongjmp... $ECHO_C" >&6
24765 if test "${sv_cv_leave_handler_siglongjmp+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24767 else
24769 if test "$cross_compiling" = yes; then
24770 case "$host" in
24771 *-*-osf[4-9]* | *-*-hpux11* | *-*-linux2.[2-9]* | *-*-irix* | *-*-solaris*) sv_cv_leave_handler_siglongjmp=yes ;;
24772 *) sv_cv_leave_handler_siglongjmp="guessing no" ;;
24773 esac
24775 else
24776 cat >conftest.$ac_ext <<_ACEOF
24778 /* confdefs.h. */
24779 _ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h. */
24784 #include <stdlib.h>
24785 #include <signal.h>
24786 #include <setjmp.h>
24788 #if HAVE_SETRLIMIT
24789 # include <sys/types.h>
24790 # include <sys/time.h>
24791 # include <sys/resource.h>
24792 #endif
24793 sigjmp_buf mainloop;
24794 int pass = 0;
24795 void stackoverflow_handler (int sig)
24797 pass++;
24799 siglongjmp (mainloop, pass);
24801 int recurse (int n)
24803 if (n >= 0)
24804 return n + recurse (n + 1);
24805 else
24806 return 0;
24808 int main ()
24810 char mystack[16384];
24811 stack_t altstack;
24812 struct sigaction action;
24813 #ifdef __BEOS__
24814 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
24815 exit (1);
24816 #endif
24817 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24818 /* Before starting the endless recursion, try to be friendly to the user's
24819 machine. On some Linux 2.2.x systems, there is no stack limit for user
24820 processes at all. We don't want to kill such systems. */
24821 struct rlimit rl;
24822 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24823 setrlimit (RLIMIT_STACK, &rl);
24824 #endif
24825 /* Install the alternate stack. */
24826 altstack.ss_sp = mystack;
24827 altstack.ss_size = sizeof (mystack);
24828 altstack.ss_flags = 0; /* no SS_DISABLE */
24829 if (sigaltstack (&altstack, NULL) < 0)
24830 exit (1);
24831 /* Install the SIGSEGV handler. */
24832 sigemptyset (&action.sa_mask);
24833 action.sa_handler = &stackoverflow_handler;
24834 action.sa_flags = SA_ONSTACK;
24835 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24836 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24837 /* Provoke two stack overflows in a row. */
24838 if (sigsetjmp (mainloop, 1) < 2)
24840 recurse (0);
24841 exit (2);
24843 exit (0);
24845 _ACEOF
24846 rm -f conftest$ac_exeext
24847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24848 (eval $ac_link) 2>&5
24849 ac_status=$?
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; }; then
24857 sv_cv_leave_handler_siglongjmp=yes
24858 else
24859 echo "$as_me: program exited with status $ac_status" >&5
24860 echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24863 ( exit $ac_status )
24864 sv_cv_leave_handler_siglongjmp=no
24866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24870 echo "$as_me:$LINENO: result: $sv_cv_leave_handler_siglongjmp" >&5
24871 echo "${ECHO_T}$sv_cv_leave_handler_siglongjmp" >&6
24878 echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp and sigaltstack" >&5
24879 echo $ECHO_N "checking whether a signal handler can be left through siglongjmp and sigaltstack... $ECHO_C" >&6
24880 if test "${sv_cv_leave_handler_siglongjmp_sigaltstack+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24882 else
24884 if test "$cross_compiling" = yes; then
24885 case "$host" in
24886 *-*-freebsd*) sv_cv_leave_handler_siglongjmp_sigaltstack=yes ;;
24887 *) sv_cv_leave_handler_siglongjmp_sigaltstack="guessing no" ;;
24888 esac
24890 else
24891 cat >conftest.$ac_ext <<_ACEOF
24893 /* confdefs.h. */
24894 _ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h. */
24899 #include <stdlib.h>
24900 #include <signal.h>
24901 #include <setjmp.h>
24903 #ifndef SS_ONSTACK
24904 #define SS_ONSTACK SA_ONSTACK
24905 #endif
24907 #if HAVE_SETRLIMIT
24908 # include <sys/types.h>
24909 # include <sys/time.h>
24910 # include <sys/resource.h>
24911 #endif
24912 sigjmp_buf mainloop;
24913 int pass = 0;
24914 void stackoverflow_handler (int sig)
24916 pass++;
24917 { stack_t ss;
24918 if (sigaltstack (NULL, &ss) >= 0)
24920 ss.ss_flags &= ~SS_ONSTACK;
24921 sigaltstack (&ss, NULL);
24924 siglongjmp (mainloop, pass);
24926 int recurse (int n)
24928 if (n >= 0)
24929 return n + recurse (n + 1);
24930 else
24931 return 0;
24933 int main ()
24935 char mystack[16384];
24936 stack_t altstack;
24937 struct sigaction action;
24938 #ifdef __BEOS__
24939 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
24940 exit (1);
24941 #endif
24942 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24943 /* Before starting the endless recursion, try to be friendly to the user's
24944 machine. On some Linux 2.2.x systems, there is no stack limit for user
24945 processes at all. We don't want to kill such systems. */
24946 struct rlimit rl;
24947 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24948 setrlimit (RLIMIT_STACK, &rl);
24949 #endif
24950 /* Install the alternate stack. */
24951 altstack.ss_sp = mystack;
24952 altstack.ss_size = sizeof (mystack);
24953 altstack.ss_flags = 0; /* no SS_DISABLE */
24954 if (sigaltstack (&altstack, NULL) < 0)
24955 exit (1);
24956 /* Install the SIGSEGV handler. */
24957 sigemptyset (&action.sa_mask);
24958 action.sa_handler = &stackoverflow_handler;
24959 action.sa_flags = SA_ONSTACK;
24960 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24961 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24962 /* Provoke two stack overflows in a row. */
24963 if (sigsetjmp (mainloop, 1) < 2)
24965 recurse (0);
24966 exit (2);
24968 exit (0);
24970 _ACEOF
24971 rm -f conftest$ac_exeext
24972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24973 (eval $ac_link) 2>&5
24974 ac_status=$?
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24978 (eval $ac_try) 2>&5
24979 ac_status=$?
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); }; }; then
24982 sv_cv_leave_handler_siglongjmp_sigaltstack=yes
24983 else
24984 echo "$as_me: program exited with status $ac_status" >&5
24985 echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24988 ( exit $ac_status )
24989 sv_cv_leave_handler_siglongjmp_sigaltstack=no
24991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24995 echo "$as_me:$LINENO: result: $sv_cv_leave_handler_siglongjmp_sigaltstack" >&5
24996 echo "${ECHO_T}$sv_cv_leave_handler_siglongjmp_sigaltstack" >&6
25003 echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp and setcontext" >&5
25004 echo $ECHO_N "checking whether a signal handler can be left through siglongjmp and setcontext... $ECHO_C" >&6
25005 if test "${sv_cv_leave_handler_siglongjmp_setcontext+set}" = set; then
25006 echo $ECHO_N "(cached) $ECHO_C" >&6
25007 else
25009 if test "$cross_compiling" = yes; then
25010 case "$host" in
25012 *) sv_cv_leave_handler_siglongjmp_setcontext="guessing no" ;;
25013 esac
25015 else
25016 cat >conftest.$ac_ext <<_ACEOF
25018 /* confdefs.h. */
25019 _ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h. */
25024 #include <stdlib.h>
25025 #include <signal.h>
25026 #include <setjmp.h>
25027 #include <ucontext.h>
25028 #ifndef SS_ONSTACK
25029 #define SS_ONSTACK SA_ONSTACK
25030 #endif
25032 #if HAVE_SETRLIMIT
25033 # include <sys/types.h>
25034 # include <sys/time.h>
25035 # include <sys/resource.h>
25036 #endif
25037 sigjmp_buf mainloop;
25038 int pass = 0;
25039 void stackoverflow_handler (int sig)
25041 pass++;
25042 { static int fl;
25043 static ucontext_t uc;
25044 fl = 0;
25045 if (getcontext(&uc) >= 0)
25046 if (fl == 0)
25047 if (uc.uc_stack.ss_flags & SS_ONSTACK)
25049 uc.uc_stack.ss_flags &= ~SS_ONSTACK;
25050 fl = 1;
25051 setcontext(&uc);
25054 siglongjmp (mainloop, pass);
25056 int recurse (int n)
25058 if (n >= 0)
25059 return n + recurse (n + 1);
25060 else
25061 return 0;
25063 int main ()
25065 char mystack[16384];
25066 stack_t altstack;
25067 struct sigaction action;
25068 #ifdef __BEOS__
25069 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
25070 exit (1);
25071 #endif
25072 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
25073 /* Before starting the endless recursion, try to be friendly to the user's
25074 machine. On some Linux 2.2.x systems, there is no stack limit for user
25075 processes at all. We don't want to kill such systems. */
25076 struct rlimit rl;
25077 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
25078 setrlimit (RLIMIT_STACK, &rl);
25079 #endif
25080 /* Install the alternate stack. */
25081 altstack.ss_sp = mystack;
25082 altstack.ss_size = sizeof (mystack);
25083 altstack.ss_flags = 0; /* no SS_DISABLE */
25084 if (sigaltstack (&altstack, NULL) < 0)
25085 exit (1);
25086 /* Install the SIGSEGV handler. */
25087 sigemptyset (&action.sa_mask);
25088 action.sa_handler = &stackoverflow_handler;
25089 action.sa_flags = SA_ONSTACK;
25090 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
25091 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
25092 /* Provoke two stack overflows in a row. */
25093 if (sigsetjmp (mainloop, 1) < 2)
25095 recurse (0);
25096 exit (2);
25098 exit (0);
25100 _ACEOF
25101 rm -f conftest$ac_exeext
25102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25103 (eval $ac_link) 2>&5
25104 ac_status=$?
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108 (eval $ac_try) 2>&5
25109 ac_status=$?
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; }; then
25112 sv_cv_leave_handler_siglongjmp_setcontext=yes
25113 else
25114 echo "$as_me: program exited with status $ac_status" >&5
25115 echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25118 ( exit $ac_status )
25119 sv_cv_leave_handler_siglongjmp_setcontext=no
25121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25125 echo "$as_me:$LINENO: result: $sv_cv_leave_handler_siglongjmp_setcontext" >&5
25126 echo "${ECHO_T}$sv_cv_leave_handler_siglongjmp_setcontext" >&6
25129 # End of MacOS X special casing.
25131 esac
25133 CFG_LEAVE=
25134 if test "$sv_cv_leave_handler_longjmp" != no; then
25135 CFG_LEAVE=leave-nop.c
25136 else
25137 if test "$sv_cv_leave_handler_longjmp_sigaltstack" != no; then
25138 CFG_LEAVE=leave-sigaltstack.c
25139 else
25140 if test "$sv_cv_leave_handler_longjmp_setcontext" != no; then
25141 CFG_LEAVE=leave-setcontext.c
25145 case "$host_os" in
25146 # On BeOS, the 6 tests fail because sigaltstack() doesn't exist.
25147 # If one uses set_signal_stack() instead of sigaltstack(), the first
25148 # test actually works. i.e. sv_cv_leave_handler_longjmp would be 'yes'.
25149 beos*) CFG_LEAVE=leave-nop.c ;;
25150 esac
25151 if test -z "$CFG_LEAVE"; then
25152 CFG_LEAVE=leave-none.c
25155 cat >>confdefs.h <<_ACEOF
25156 #define CFG_LEAVE "$CFG_LEAVE"
25157 _ACEOF
25161 case "$host_os" in
25162 mingw* | cygwin*) CFG_HANDLER=handler-win32.c ;;
25164 if test -z "$CFG_HANDLER"; then
25165 if test $sv_cv_have_sigsegv_recovery = no \
25166 && test $sv_cv_have_stack_overflow_recovery = no; then
25167 CFG_HANDLER=handler-none.c
25168 else
25169 CFG_HANDLER=handler-unix.c
25173 esac
25175 cat >>confdefs.h <<_ACEOF
25176 #define CFG_HANDLER "$CFG_HANDLER"
25177 _ACEOF
25181 { echo; echo "${term_bold}Build Parameters:${term_norm}"; } >& 6
25184 echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
25185 echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6
25186 # Check whether --enable-relocatable or --disable-relocatable was given.
25187 if test "${enable_relocatable+set}" = set; then
25188 enableval="$enable_relocatable"
25189 if test "$enableval" != no; then
25190 RELOCATABLE=yes
25191 else
25192 RELOCATABLE=no
25195 else
25196 RELOCATABLE=no
25199 echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
25200 echo "${ECHO_T}$RELOCATABLE" >&6
25203 { echo; echo "${term_bold}Output Substitution:${term_norm}"; } >& 6
25205 ac_config_files="$ac_config_files Makefile src/Makefile src/sigsegv.h tests/Makefile"
25206 cat >confcache <<\_ACEOF
25207 # This file is a shell script that caches the results of configure
25208 # tests run on this system so they can be shared between configure
25209 # scripts and configure runs, see configure's option --config-cache.
25210 # It is not useful on other systems. If it contains results you don't
25211 # want to keep, you may remove or edit it.
25213 # config.status only pays attention to the cache file if you give it
25214 # the --recheck option to rerun configure.
25216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25218 # following values.
25220 _ACEOF
25222 # The following way of writing the cache mishandles newlines in values,
25223 # but we know of no workaround that is simple, portable, and efficient.
25224 # So, don't put newlines in cache variables' values.
25225 # Ultrix sh set writes to stderr and can't be redirected directly,
25226 # and sets the high bit in the cache file unless we assign to the vars.
25228 (set) 2>&1 |
25229 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25230 *ac_space=\ *)
25231 # `set' does not quote correctly, so add quotes (double-quote
25232 # substitution turns \\\\ into \\, and sed turns \\ into \).
25233 sed -n \
25234 "s/'/'\\\\''/g;
25235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25238 # `set' quotes correctly as required by POSIX, so do not add quotes.
25239 sed -n \
25240 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25242 esac;
25244 sed '
25245 t clear
25246 : clear
25247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25248 t end
25249 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25250 : end' >>confcache
25251 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25252 if test -w $cache_file; then
25253 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25254 cat confcache >$cache_file
25255 else
25256 echo "not updating unwritable cache $cache_file"
25259 rm -f confcache
25261 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25262 # Let make expand exec_prefix.
25263 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25265 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25266 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25267 # trailing colons and then remove the whole line if VPATH becomes empty
25268 # (actually we leave an empty line to preserve line numbers).
25269 if test "x$srcdir" = x.; then
25270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25271 s/:*\$(srcdir):*/:/;
25272 s/:*\${srcdir}:*/:/;
25273 s/:*@srcdir@:*/:/;
25274 s/^\([^=]*=[ ]*\):*/\1/;
25275 s/:*$//;
25276 s/^[^=]*=[ ]*$//;
25280 DEFS=-DHAVE_CONFIG_H
25282 ac_libobjs=
25283 ac_ltlibobjs=
25284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25285 # 1. Remove the extension, and $U if already installed.
25286 ac_i=`echo "$ac_i" |
25287 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25288 # 2. Add them.
25289 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25290 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25291 done
25292 LIBOBJS=$ac_libobjs
25294 LTLIBOBJS=$ac_ltlibobjs
25297 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25298 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25299 Usually this means the macro was only invoked conditionally." >&5
25300 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25301 Usually this means the macro was only invoked conditionally." >&2;}
25302 { (exit 1); exit 1; }; }
25304 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25305 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25306 Usually this means the macro was only invoked conditionally." >&5
25307 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25308 Usually this means the macro was only invoked conditionally." >&2;}
25309 { (exit 1); exit 1; }; }
25311 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25312 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25313 Usually this means the macro was only invoked conditionally." >&5
25314 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25315 Usually this means the macro was only invoked conditionally." >&2;}
25316 { (exit 1); exit 1; }; }
25319 : ${CONFIG_STATUS=./config.status}
25320 ac_clean_files_save=$ac_clean_files
25321 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25322 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25323 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25324 cat >$CONFIG_STATUS <<_ACEOF
25325 #! $SHELL
25326 # Generated by $as_me.
25327 # Run this file to recreate the current configuration.
25328 # Compiler output produced by configure, useful for debugging
25329 # configure, is in config.log if it exists.
25331 debug=false
25332 ac_cs_recheck=false
25333 ac_cs_silent=false
25334 SHELL=\${CONFIG_SHELL-$SHELL}
25335 _ACEOF
25337 cat >>$CONFIG_STATUS <<\_ACEOF
25338 ## --------------------- ##
25339 ## M4sh Initialization. ##
25340 ## --------------------- ##
25342 # Be Bourne compatible
25343 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25344 emulate sh
25345 NULLCMD=:
25346 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25347 # is contrary to our usage. Disable this feature.
25348 alias -g '${1+"$@"}'='"$@"'
25349 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25350 set -o posix
25352 DUALCASE=1; export DUALCASE # for MKS sh
25354 # Support unset when possible.
25355 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25356 as_unset=unset
25357 else
25358 as_unset=false
25362 # Work around bugs in pre-3.0 UWIN ksh.
25363 $as_unset ENV MAIL MAILPATH
25364 PS1='$ '
25365 PS2='> '
25366 PS4='+ '
25368 # NLS nuisances.
25369 for as_var in \
25370 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25371 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25372 LC_TELEPHONE LC_TIME
25374 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25375 eval $as_var=C; export $as_var
25376 else
25377 $as_unset $as_var
25379 done
25381 # Required to use basename.
25382 if expr a : '\(a\)' >/dev/null 2>&1; then
25383 as_expr=expr
25384 else
25385 as_expr=false
25388 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25389 as_basename=basename
25390 else
25391 as_basename=false
25395 # Name of the executable.
25396 as_me=`$as_basename "$0" ||
25397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25398 X"$0" : 'X\(//\)$' \| \
25399 X"$0" : 'X\(/\)$' \| \
25400 . : '\(.\)' 2>/dev/null ||
25401 echo X/"$0" |
25402 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25403 /^X\/\(\/\/\)$/{ s//\1/; q; }
25404 /^X\/\(\/\).*/{ s//\1/; q; }
25405 s/.*/./; q'`
25408 # PATH needs CR, and LINENO needs CR and PATH.
25409 # Avoid depending upon Character Ranges.
25410 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25411 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25412 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25413 as_cr_digits='0123456789'
25414 as_cr_alnum=$as_cr_Letters$as_cr_digits
25416 # The user is always right.
25417 if test "${PATH_SEPARATOR+set}" != set; then
25418 echo "#! /bin/sh" >conf$$.sh
25419 echo "exit 0" >>conf$$.sh
25420 chmod +x conf$$.sh
25421 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25422 PATH_SEPARATOR=';'
25423 else
25424 PATH_SEPARATOR=:
25426 rm -f conf$$.sh
25430 as_lineno_1=$LINENO
25431 as_lineno_2=$LINENO
25432 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25433 test "x$as_lineno_1" != "x$as_lineno_2" &&
25434 test "x$as_lineno_3" = "x$as_lineno_2" || {
25435 # Find who we are. Look in the path if we contain no path at all
25436 # relative or not.
25437 case $0 in
25438 *[\\/]* ) as_myself=$0 ;;
25439 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25440 for as_dir in $PATH
25442 IFS=$as_save_IFS
25443 test -z "$as_dir" && as_dir=.
25444 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25445 done
25448 esac
25449 # We did not find ourselves, most probably we were run as `sh COMMAND'
25450 # in which case we are not to be found in the path.
25451 if test "x$as_myself" = x; then
25452 as_myself=$0
25454 if test ! -f "$as_myself"; then
25455 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25456 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25457 { (exit 1); exit 1; }; }
25459 case $CONFIG_SHELL in
25461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25462 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25464 IFS=$as_save_IFS
25465 test -z "$as_dir" && as_dir=.
25466 for as_base in sh bash ksh sh5; do
25467 case $as_dir in
25469 if ("$as_dir/$as_base" -c '
25470 as_lineno_1=$LINENO
25471 as_lineno_2=$LINENO
25472 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25473 test "x$as_lineno_1" != "x$as_lineno_2" &&
25474 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25475 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25476 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25477 CONFIG_SHELL=$as_dir/$as_base
25478 export CONFIG_SHELL
25479 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25480 fi;;
25481 esac
25482 done
25483 done
25485 esac
25487 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25488 # uniformly replaced by the line number. The first 'sed' inserts a
25489 # line-number line before each line; the second 'sed' does the real
25490 # work. The second script uses 'N' to pair each line-number line
25491 # with the numbered line, and appends trailing '-' during
25492 # substitution so that $LINENO is not a special case at line end.
25493 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25494 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25495 sed '=' <$as_myself |
25496 sed '
25498 s,$,-,
25499 : loop
25500 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25501 t loop
25502 s,-$,,
25503 s,^['$as_cr_digits']*\n,,
25504 ' >$as_me.lineno &&
25505 chmod +x $as_me.lineno ||
25506 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25507 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25508 { (exit 1); exit 1; }; }
25510 # Don't try to exec as it changes $[0], causing all sort of problems
25511 # (the dirname of $[0] is not the place where we might find the
25512 # original and so on. Autoconf is especially sensible to this).
25513 . ./$as_me.lineno
25514 # Exit status is that of the last command.
25515 exit
25519 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25520 *c*,-n*) ECHO_N= ECHO_C='
25521 ' ECHO_T=' ' ;;
25522 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25523 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25524 esac
25526 if expr a : '\(a\)' >/dev/null 2>&1; then
25527 as_expr=expr
25528 else
25529 as_expr=false
25532 rm -f conf$$ conf$$.exe conf$$.file
25533 echo >conf$$.file
25534 if ln -s conf$$.file conf$$ 2>/dev/null; then
25535 # We could just check for DJGPP; but this test a) works b) is more generic
25536 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25537 if test -f conf$$.exe; then
25538 # Don't use ln at all; we don't have any links
25539 as_ln_s='cp -p'
25540 else
25541 as_ln_s='ln -s'
25543 elif ln conf$$.file conf$$ 2>/dev/null; then
25544 as_ln_s=ln
25545 else
25546 as_ln_s='cp -p'
25548 rm -f conf$$ conf$$.exe conf$$.file
25550 if mkdir -p . 2>/dev/null; then
25551 as_mkdir_p=:
25552 else
25553 test -d ./-p && rmdir ./-p
25554 as_mkdir_p=false
25557 as_executable_p="test -f"
25559 # Sed expression to map a string onto a valid CPP name.
25560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25562 # Sed expression to map a string onto a valid variable name.
25563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25566 # IFS
25567 # We need space, tab and new line, in precisely that order.
25568 as_nl='
25570 IFS=" $as_nl"
25572 # CDPATH.
25573 $as_unset CDPATH
25575 exec 6>&1
25577 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25578 # report actual input values of CONFIG_FILES etc. instead of their
25579 # values after options handling. Logging --version etc. is OK.
25580 exec 5>>config.log
25582 echo
25583 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25584 ## Running $as_me. ##
25585 _ASBOX
25586 } >&5
25587 cat >&5 <<_CSEOF
25589 This file was extended by $as_me, which was
25590 generated by GNU Autoconf 2.59. Invocation command line was
25592 CONFIG_FILES = $CONFIG_FILES
25593 CONFIG_HEADERS = $CONFIG_HEADERS
25594 CONFIG_LINKS = $CONFIG_LINKS
25595 CONFIG_COMMANDS = $CONFIG_COMMANDS
25596 $ $0 $@
25598 _CSEOF
25599 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25600 echo >&5
25601 _ACEOF
25603 # Files that config.status was made for.
25604 if test -n "$ac_config_files"; then
25605 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25608 if test -n "$ac_config_headers"; then
25609 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25612 if test -n "$ac_config_links"; then
25613 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25616 if test -n "$ac_config_commands"; then
25617 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25620 cat >>$CONFIG_STATUS <<\_ACEOF
25622 ac_cs_usage="\
25623 \`$as_me' instantiates files from templates according to the
25624 current configuration.
25626 Usage: $0 [OPTIONS] [FILE]...
25628 -h, --help print this help, then exit
25629 -V, --version print version number, then exit
25630 -q, --quiet do not print progress messages
25631 -d, --debug don't remove temporary files
25632 --recheck update $as_me by reconfiguring in the same conditions
25633 --file=FILE[:TEMPLATE]
25634 instantiate the configuration file FILE
25635 --header=FILE[:TEMPLATE]
25636 instantiate the configuration header FILE
25638 Configuration files:
25639 $config_files
25641 Configuration headers:
25642 $config_headers
25644 Configuration commands:
25645 $config_commands
25647 Report bugs to <bug-autoconf@gnu.org>."
25648 _ACEOF
25650 cat >>$CONFIG_STATUS <<_ACEOF
25651 ac_cs_version="\\
25652 config.status
25653 configured by $0, generated by GNU Autoconf 2.59,
25654 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25656 Copyright (C) 2003 Free Software Foundation, Inc.
25657 This config.status script is free software; the Free Software Foundation
25658 gives unlimited permission to copy, distribute and modify it."
25659 srcdir=$srcdir
25660 INSTALL="$INSTALL"
25661 _ACEOF
25663 cat >>$CONFIG_STATUS <<\_ACEOF
25664 # If no file are specified by the user, then we need to provide default
25665 # value. By we need to know if files were specified by the user.
25666 ac_need_defaults=:
25667 while test $# != 0
25669 case $1 in
25670 --*=*)
25671 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25672 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25673 ac_shift=:
25676 ac_option=$1
25677 ac_optarg=$2
25678 ac_shift=shift
25680 *) # This is not an option, so the user has probably given explicit
25681 # arguments.
25682 ac_option=$1
25683 ac_need_defaults=false;;
25684 esac
25686 case $ac_option in
25687 # Handling of the options.
25688 _ACEOF
25689 cat >>$CONFIG_STATUS <<\_ACEOF
25690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25691 ac_cs_recheck=: ;;
25692 --version | --vers* | -V )
25693 echo "$ac_cs_version"; exit 0 ;;
25694 --he | --h)
25695 # Conflict between --help and --header
25696 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25697 Try \`$0 --help' for more information." >&5
25698 echo "$as_me: error: ambiguous option: $1
25699 Try \`$0 --help' for more information." >&2;}
25700 { (exit 1); exit 1; }; };;
25701 --help | --hel | -h )
25702 echo "$ac_cs_usage"; exit 0 ;;
25703 --debug | --d* | -d )
25704 debug=: ;;
25705 --file | --fil | --fi | --f )
25706 $ac_shift
25707 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25708 ac_need_defaults=false;;
25709 --header | --heade | --head | --hea )
25710 $ac_shift
25711 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25712 ac_need_defaults=false;;
25713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25714 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25715 ac_cs_silent=: ;;
25717 # This is an error.
25718 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25719 Try \`$0 --help' for more information." >&5
25720 echo "$as_me: error: unrecognized option: $1
25721 Try \`$0 --help' for more information." >&2;}
25722 { (exit 1); exit 1; }; } ;;
25724 *) ac_config_targets="$ac_config_targets $1" ;;
25726 esac
25727 shift
25728 done
25730 ac_configure_extra_args=
25732 if $ac_cs_silent; then
25733 exec 6>/dev/null
25734 ac_configure_extra_args="$ac_configure_extra_args --silent"
25737 _ACEOF
25738 cat >>$CONFIG_STATUS <<_ACEOF
25739 if \$ac_cs_recheck; then
25740 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25741 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25744 _ACEOF
25746 cat >>$CONFIG_STATUS <<_ACEOF
25748 # INIT-COMMANDS section.
25751 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25753 _ACEOF
25757 cat >>$CONFIG_STATUS <<\_ACEOF
25758 for ac_config_target in $ac_config_targets
25760 case "$ac_config_target" in
25761 # Handling of arguments.
25762 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25763 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25764 "src/sigsegv.h" ) CONFIG_FILES="$CONFIG_FILES src/sigsegv.h" ;;
25765 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25766 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25767 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25770 { (exit 1); exit 1; }; };;
25771 esac
25772 done
25774 # If the user did not use the arguments to specify the items to instantiate,
25775 # then the envvar interface is used. Set only those that are not.
25776 # We use the long form for the default assignment because of an extremely
25777 # bizarre bug on SunOS 4.1.3.
25778 if $ac_need_defaults; then
25779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25784 # Have a temporary directory for convenience. Make it in the build tree
25785 # simply because there is no reason to put it here, and in addition,
25786 # creating and moving files from /tmp can sometimes cause problems.
25787 # Create a temporary directory, and hook for its removal unless debugging.
25788 $debug ||
25790 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25791 trap '{ (exit 1); exit 1; }' 1 2 13 15
25794 # Create a (secure) tmp directory for tmp files.
25797 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25798 test -n "$tmp" && test -d "$tmp"
25799 } ||
25801 tmp=./confstat$$-$RANDOM
25802 (umask 077 && mkdir $tmp)
25803 } ||
25805 echo "$me: cannot create a temporary directory in ." >&2
25806 { (exit 1); exit 1; }
25809 _ACEOF
25811 cat >>$CONFIG_STATUS <<_ACEOF
25814 # CONFIG_FILES section.
25817 # No need to generate the scripts if there are no CONFIG_FILES.
25818 # This happens for instance when ./config.status config.h
25819 if test -n "\$CONFIG_FILES"; then
25820 # Protect against being on the right side of a sed subst in config.status.
25821 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25822 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25823 s,@SHELL@,$SHELL,;t t
25824 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25825 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25826 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25827 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25828 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25829 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25830 s,@exec_prefix@,$exec_prefix,;t t
25831 s,@prefix@,$prefix,;t t
25832 s,@program_transform_name@,$program_transform_name,;t t
25833 s,@bindir@,$bindir,;t t
25834 s,@sbindir@,$sbindir,;t t
25835 s,@libexecdir@,$libexecdir,;t t
25836 s,@datadir@,$datadir,;t t
25837 s,@sysconfdir@,$sysconfdir,;t t
25838 s,@sharedstatedir@,$sharedstatedir,;t t
25839 s,@localstatedir@,$localstatedir,;t t
25840 s,@libdir@,$libdir,;t t
25841 s,@includedir@,$includedir,;t t
25842 s,@oldincludedir@,$oldincludedir,;t t
25843 s,@infodir@,$infodir,;t t
25844 s,@mandir@,$mandir,;t t
25845 s,@build_alias@,$build_alias,;t t
25846 s,@host_alias@,$host_alias,;t t
25847 s,@target_alias@,$target_alias,;t t
25848 s,@DEFS@,$DEFS,;t t
25849 s,@ECHO_C@,$ECHO_C,;t t
25850 s,@ECHO_N@,$ECHO_N,;t t
25851 s,@ECHO_T@,$ECHO_T,;t t
25852 s,@LIBS@,$LIBS,;t t
25853 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25854 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25855 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25856 s,@CYGPATH_W@,$CYGPATH_W,;t t
25857 s,@PACKAGE@,$PACKAGE,;t t
25858 s,@VERSION@,$VERSION,;t t
25859 s,@ACLOCAL@,$ACLOCAL,;t t
25860 s,@AUTOCONF@,$AUTOCONF,;t t
25861 s,@AUTOMAKE@,$AUTOMAKE,;t t
25862 s,@AUTOHEADER@,$AUTOHEADER,;t t
25863 s,@MAKEINFO@,$MAKEINFO,;t t
25864 s,@install_sh@,$install_sh,;t t
25865 s,@STRIP@,$STRIP,;t t
25866 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25867 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25868 s,@mkdir_p@,$mkdir_p,;t t
25869 s,@AWK@,$AWK,;t t
25870 s,@SET_MAKE@,$SET_MAKE,;t t
25871 s,@am__leading_dot@,$am__leading_dot,;t t
25872 s,@AMTAR@,$AMTAR,;t t
25873 s,@am__tar@,$am__tar,;t t
25874 s,@am__untar@,$am__untar,;t t
25875 s,@CC@,$CC,;t t
25876 s,@CFLAGS@,$CFLAGS,;t t
25877 s,@LDFLAGS@,$LDFLAGS,;t t
25878 s,@CPPFLAGS@,$CPPFLAGS,;t t
25879 s,@ac_ct_CC@,$ac_ct_CC,;t t
25880 s,@EXEEXT@,$EXEEXT,;t t
25881 s,@OBJEXT@,$OBJEXT,;t t
25882 s,@DEPDIR@,$DEPDIR,;t t
25883 s,@am__include@,$am__include,;t t
25884 s,@am__quote@,$am__quote,;t t
25885 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25886 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25887 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25888 s,@CCDEPMODE@,$CCDEPMODE,;t t
25889 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25890 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25891 s,@CPP@,$CPP,;t t
25892 s,@build@,$build,;t t
25893 s,@build_cpu@,$build_cpu,;t t
25894 s,@build_vendor@,$build_vendor,;t t
25895 s,@build_os@,$build_os,;t t
25896 s,@host@,$host,;t t
25897 s,@host_cpu@,$host_cpu,;t t
25898 s,@host_vendor@,$host_vendor,;t t
25899 s,@host_os@,$host_os,;t t
25900 s,@PLATFORM@,$PLATFORM,;t t
25901 s,@EGREP@,$EGREP,;t t
25902 s,@LN_S@,$LN_S,;t t
25903 s,@ECHO@,$ECHO,;t t
25904 s,@AR@,$AR,;t t
25905 s,@ac_ct_AR@,$ac_ct_AR,;t t
25906 s,@RANLIB@,$RANLIB,;t t
25907 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25908 s,@CXX@,$CXX,;t t
25909 s,@CXXFLAGS@,$CXXFLAGS,;t t
25910 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25911 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25912 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25913 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25914 s,@CXXCPP@,$CXXCPP,;t t
25915 s,@F77@,$F77,;t t
25916 s,@FFLAGS@,$FFLAGS,;t t
25917 s,@ac_ct_F77@,$ac_ct_F77,;t t
25918 s,@LIBTOOL@,$LIBTOOL,;t t
25919 s,@FAULT_CONTEXT@,$FAULT_CONTEXT,;t t
25920 s,@FAULT_CONTEXT_INCLUDE@,$FAULT_CONTEXT_INCLUDE,;t t
25921 s,@FAULT_CONTEXT_INCLUDE2@,$FAULT_CONTEXT_INCLUDE2,;t t
25922 s,@HAVE_SIGSEGV_RECOVERY@,$HAVE_SIGSEGV_RECOVERY,;t t
25923 s,@CFG_STACKVMA@,$CFG_STACKVMA,;t t
25924 s,@HAVE_STACK_OVERFLOW_RECOVERY@,$HAVE_STACK_OVERFLOW_RECOVERY,;t t
25925 s,@CFG_LEAVE@,$CFG_LEAVE,;t t
25926 s,@CFG_HANDLER@,$CFG_HANDLER,;t t
25927 s,@RELOCATABLE@,$RELOCATABLE,;t t
25928 s,@LIBOBJS@,$LIBOBJS,;t t
25929 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25930 CEOF
25932 _ACEOF
25934 cat >>$CONFIG_STATUS <<\_ACEOF
25935 # Split the substitutions into bite-sized pieces for seds with
25936 # small command number limits, like on Digital OSF/1 and HP-UX.
25937 ac_max_sed_lines=48
25938 ac_sed_frag=1 # Number of current file.
25939 ac_beg=1 # First line for current file.
25940 ac_end=$ac_max_sed_lines # Line after last line for current file.
25941 ac_more_lines=:
25942 ac_sed_cmds=
25943 while $ac_more_lines; do
25944 if test $ac_beg -gt 1; then
25945 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25946 else
25947 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25949 if test ! -s $tmp/subs.frag; then
25950 ac_more_lines=false
25951 else
25952 # The purpose of the label and of the branching condition is to
25953 # speed up the sed processing (if there are no `@' at all, there
25954 # is no need to browse any of the substitutions).
25955 # These are the two extra sed commands mentioned above.
25956 (echo ':t
25957 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25958 if test -z "$ac_sed_cmds"; then
25959 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25960 else
25961 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25963 ac_sed_frag=`expr $ac_sed_frag + 1`
25964 ac_beg=$ac_end
25965 ac_end=`expr $ac_end + $ac_max_sed_lines`
25967 done
25968 if test -z "$ac_sed_cmds"; then
25969 ac_sed_cmds=cat
25971 fi # test -n "$CONFIG_FILES"
25973 _ACEOF
25974 cat >>$CONFIG_STATUS <<\_ACEOF
25975 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25976 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25977 case $ac_file in
25978 - | *:- | *:-:* ) # input from stdin
25979 cat >$tmp/stdin
25980 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25981 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25982 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25984 * ) ac_file_in=$ac_file.in ;;
25985 esac
25987 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25988 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25989 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25990 X"$ac_file" : 'X\(//\)[^/]' \| \
25991 X"$ac_file" : 'X\(//\)$' \| \
25992 X"$ac_file" : 'X\(/\)' \| \
25993 . : '\(.\)' 2>/dev/null ||
25994 echo X"$ac_file" |
25995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25997 /^X\(\/\/\)$/{ s//\1/; q; }
25998 /^X\(\/\).*/{ s//\1/; q; }
25999 s/.*/./; q'`
26000 { if $as_mkdir_p; then
26001 mkdir -p "$ac_dir"
26002 else
26003 as_dir="$ac_dir"
26004 as_dirs=
26005 while test ! -d "$as_dir"; do
26006 as_dirs="$as_dir $as_dirs"
26007 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26009 X"$as_dir" : 'X\(//\)[^/]' \| \
26010 X"$as_dir" : 'X\(//\)$' \| \
26011 X"$as_dir" : 'X\(/\)' \| \
26012 . : '\(.\)' 2>/dev/null ||
26013 echo X"$as_dir" |
26014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26016 /^X\(\/\/\)$/{ s//\1/; q; }
26017 /^X\(\/\).*/{ s//\1/; q; }
26018 s/.*/./; q'`
26019 done
26020 test ! -n "$as_dirs" || mkdir $as_dirs
26021 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26022 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26023 { (exit 1); exit 1; }; }; }
26025 ac_builddir=.
26027 if test "$ac_dir" != .; then
26028 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26029 # A "../" for each directory in $ac_dir_suffix.
26030 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26031 else
26032 ac_dir_suffix= ac_top_builddir=
26035 case $srcdir in
26036 .) # No --srcdir option. We are building in place.
26037 ac_srcdir=.
26038 if test -z "$ac_top_builddir"; then
26039 ac_top_srcdir=.
26040 else
26041 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26042 fi ;;
26043 [\\/]* | ?:[\\/]* ) # Absolute path.
26044 ac_srcdir=$srcdir$ac_dir_suffix;
26045 ac_top_srcdir=$srcdir ;;
26046 *) # Relative path.
26047 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26048 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26049 esac
26051 # Do not use `cd foo && pwd` to compute absolute paths, because
26052 # the directories may not exist.
26053 case `pwd` in
26054 .) ac_abs_builddir="$ac_dir";;
26056 case "$ac_dir" in
26057 .) ac_abs_builddir=`pwd`;;
26058 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26059 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26060 esac;;
26061 esac
26062 case $ac_abs_builddir in
26063 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26065 case ${ac_top_builddir}. in
26066 .) ac_abs_top_builddir=$ac_abs_builddir;;
26067 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26068 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26069 esac;;
26070 esac
26071 case $ac_abs_builddir in
26072 .) ac_abs_srcdir=$ac_srcdir;;
26074 case $ac_srcdir in
26075 .) ac_abs_srcdir=$ac_abs_builddir;;
26076 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26077 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26078 esac;;
26079 esac
26080 case $ac_abs_builddir in
26081 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26083 case $ac_top_srcdir in
26084 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26085 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26086 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26087 esac;;
26088 esac
26091 case $INSTALL in
26092 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26093 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26094 esac
26096 if test x"$ac_file" != x-; then
26097 { echo "$as_me:$LINENO: creating $ac_file" >&5
26098 echo "$as_me: creating $ac_file" >&6;}
26099 rm -f "$ac_file"
26101 # Let's still pretend it is `configure' which instantiates (i.e., don't
26102 # use $as_me), people would be surprised to read:
26103 # /* config.h. Generated by config.status. */
26104 if test x"$ac_file" = x-; then
26105 configure_input=
26106 else
26107 configure_input="$ac_file. "
26109 configure_input=$configure_input"Generated from `echo $ac_file_in |
26110 sed 's,.*/,,'` by configure."
26112 # First look for the input files in the build tree, otherwise in the
26113 # src tree.
26114 ac_file_inputs=`IFS=:
26115 for f in $ac_file_in; do
26116 case $f in
26117 -) echo $tmp/stdin ;;
26118 [\\/$]*)
26119 # Absolute (can't be DOS-style, as IFS=:)
26120 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26121 echo "$as_me: error: cannot find input file: $f" >&2;}
26122 { (exit 1); exit 1; }; }
26123 echo "$f";;
26124 *) # Relative
26125 if test -f "$f"; then
26126 # Build tree
26127 echo "$f"
26128 elif test -f "$srcdir/$f"; then
26129 # Source tree
26130 echo "$srcdir/$f"
26131 else
26132 # /dev/null tree
26133 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26134 echo "$as_me: error: cannot find input file: $f" >&2;}
26135 { (exit 1); exit 1; }; }
26136 fi;;
26137 esac
26138 done` || { (exit 1); exit 1; }
26139 _ACEOF
26140 cat >>$CONFIG_STATUS <<_ACEOF
26141 sed "$ac_vpsub
26142 $extrasub
26143 _ACEOF
26144 cat >>$CONFIG_STATUS <<\_ACEOF
26146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26147 s,@configure_input@,$configure_input,;t t
26148 s,@srcdir@,$ac_srcdir,;t t
26149 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26150 s,@top_srcdir@,$ac_top_srcdir,;t t
26151 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26152 s,@builddir@,$ac_builddir,;t t
26153 s,@abs_builddir@,$ac_abs_builddir,;t t
26154 s,@top_builddir@,$ac_top_builddir,;t t
26155 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26156 s,@INSTALL@,$ac_INSTALL,;t t
26157 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26158 rm -f $tmp/stdin
26159 if test x"$ac_file" != x-; then
26160 mv $tmp/out $ac_file
26161 else
26162 cat $tmp/out
26163 rm -f $tmp/out
26166 done
26167 _ACEOF
26168 cat >>$CONFIG_STATUS <<\_ACEOF
26171 # CONFIG_HEADER section.
26174 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26175 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26177 # ac_d sets the value in "#define NAME VALUE" lines.
26178 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26179 ac_dB='[ ].*$,\1#\2'
26180 ac_dC=' '
26181 ac_dD=',;t'
26182 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26183 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26184 ac_uB='$,\1#\2define\3'
26185 ac_uC=' '
26186 ac_uD=',;t'
26188 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26189 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26190 case $ac_file in
26191 - | *:- | *:-:* ) # input from stdin
26192 cat >$tmp/stdin
26193 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26194 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26195 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26196 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26197 * ) ac_file_in=$ac_file.in ;;
26198 esac
26200 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26201 echo "$as_me: creating $ac_file" >&6;}
26203 # First look for the input files in the build tree, otherwise in the
26204 # src tree.
26205 ac_file_inputs=`IFS=:
26206 for f in $ac_file_in; do
26207 case $f in
26208 -) echo $tmp/stdin ;;
26209 [\\/$]*)
26210 # Absolute (can't be DOS-style, as IFS=:)
26211 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26212 echo "$as_me: error: cannot find input file: $f" >&2;}
26213 { (exit 1); exit 1; }; }
26214 # Do quote $f, to prevent DOS paths from being IFS'd.
26215 echo "$f";;
26216 *) # Relative
26217 if test -f "$f"; then
26218 # Build tree
26219 echo "$f"
26220 elif test -f "$srcdir/$f"; then
26221 # Source tree
26222 echo "$srcdir/$f"
26223 else
26224 # /dev/null tree
26225 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26226 echo "$as_me: error: cannot find input file: $f" >&2;}
26227 { (exit 1); exit 1; }; }
26228 fi;;
26229 esac
26230 done` || { (exit 1); exit 1; }
26231 # Remove the trailing spaces.
26232 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26234 _ACEOF
26236 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26237 # `conftest.undefs', that substitutes the proper values into
26238 # config.h.in to produce config.h. The first handles `#define'
26239 # templates, and the second `#undef' templates.
26240 # And first: Protect against being on the right side of a sed subst in
26241 # config.status. Protect against being in an unquoted here document
26242 # in config.status.
26243 rm -f conftest.defines conftest.undefs
26244 # Using a here document instead of a string reduces the quoting nightmare.
26245 # Putting comments in sed scripts is not portable.
26247 # `end' is used to avoid that the second main sed command (meant for
26248 # 0-ary CPP macros) applies to n-ary macro definitions.
26249 # See the Autoconf documentation for `clear'.
26250 cat >confdef2sed.sed <<\_ACEOF
26251 s/[\\&,]/\\&/g
26252 s,[\\$`],\\&,g
26253 t clear
26254 : clear
26255 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26256 t end
26257 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26258 : end
26259 _ACEOF
26260 # If some macros were called several times there might be several times
26261 # the same #defines, which is useless. Nevertheless, we may not want to
26262 # sort them, since we want the *last* AC-DEFINE to be honored.
26263 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26264 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26265 rm -f confdef2sed.sed
26267 # This sed command replaces #undef with comments. This is necessary, for
26268 # example, in the case of _POSIX_SOURCE, which is predefined and required
26269 # on some systems where configure will not decide to define it.
26270 cat >>conftest.undefs <<\_ACEOF
26271 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26272 _ACEOF
26274 # Break up conftest.defines because some shells have a limit on the size
26275 # of here documents, and old seds have small limits too (100 cmds).
26276 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26277 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26278 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26279 echo ' :' >>$CONFIG_STATUS
26280 rm -f conftest.tail
26281 while grep . conftest.defines >/dev/null
26283 # Write a limited-size here document to $tmp/defines.sed.
26284 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26285 # Speed up: don't consider the non `#define' lines.
26286 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26287 # Work around the forget-to-reset-the-flag bug.
26288 echo 't clr' >>$CONFIG_STATUS
26289 echo ': clr' >>$CONFIG_STATUS
26290 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26291 echo 'CEOF
26292 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26293 rm -f $tmp/in
26294 mv $tmp/out $tmp/in
26295 ' >>$CONFIG_STATUS
26296 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26297 rm -f conftest.defines
26298 mv conftest.tail conftest.defines
26299 done
26300 rm -f conftest.defines
26301 echo ' fi # grep' >>$CONFIG_STATUS
26302 echo >>$CONFIG_STATUS
26304 # Break up conftest.undefs because some shells have a limit on the size
26305 # of here documents, and old seds have small limits too (100 cmds).
26306 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26307 rm -f conftest.tail
26308 while grep . conftest.undefs >/dev/null
26310 # Write a limited-size here document to $tmp/undefs.sed.
26311 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26312 # Speed up: don't consider the non `#undef'
26313 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26314 # Work around the forget-to-reset-the-flag bug.
26315 echo 't clr' >>$CONFIG_STATUS
26316 echo ': clr' >>$CONFIG_STATUS
26317 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26318 echo 'CEOF
26319 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26320 rm -f $tmp/in
26321 mv $tmp/out $tmp/in
26322 ' >>$CONFIG_STATUS
26323 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26324 rm -f conftest.undefs
26325 mv conftest.tail conftest.undefs
26326 done
26327 rm -f conftest.undefs
26329 cat >>$CONFIG_STATUS <<\_ACEOF
26330 # Let's still pretend it is `configure' which instantiates (i.e., don't
26331 # use $as_me), people would be surprised to read:
26332 # /* config.h. Generated by config.status. */
26333 if test x"$ac_file" = x-; then
26334 echo "/* Generated by configure. */" >$tmp/config.h
26335 else
26336 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26338 cat $tmp/in >>$tmp/config.h
26339 rm -f $tmp/in
26340 if test x"$ac_file" != x-; then
26341 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26342 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26343 echo "$as_me: $ac_file is unchanged" >&6;}
26344 else
26345 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26347 X"$ac_file" : 'X\(//\)[^/]' \| \
26348 X"$ac_file" : 'X\(//\)$' \| \
26349 X"$ac_file" : 'X\(/\)' \| \
26350 . : '\(.\)' 2>/dev/null ||
26351 echo X"$ac_file" |
26352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26354 /^X\(\/\/\)$/{ s//\1/; q; }
26355 /^X\(\/\).*/{ s//\1/; q; }
26356 s/.*/./; q'`
26357 { if $as_mkdir_p; then
26358 mkdir -p "$ac_dir"
26359 else
26360 as_dir="$ac_dir"
26361 as_dirs=
26362 while test ! -d "$as_dir"; do
26363 as_dirs="$as_dir $as_dirs"
26364 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26366 X"$as_dir" : 'X\(//\)[^/]' \| \
26367 X"$as_dir" : 'X\(//\)$' \| \
26368 X"$as_dir" : 'X\(/\)' \| \
26369 . : '\(.\)' 2>/dev/null ||
26370 echo X"$as_dir" |
26371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26373 /^X\(\/\/\)$/{ s//\1/; q; }
26374 /^X\(\/\).*/{ s//\1/; q; }
26375 s/.*/./; q'`
26376 done
26377 test ! -n "$as_dirs" || mkdir $as_dirs
26378 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26379 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26380 { (exit 1); exit 1; }; }; }
26382 rm -f $ac_file
26383 mv $tmp/config.h $ac_file
26385 else
26386 cat $tmp/config.h
26387 rm -f $tmp/config.h
26389 # Compute $ac_file's index in $config_headers.
26390 _am_stamp_count=1
26391 for _am_header in $config_headers :; do
26392 case $_am_header in
26393 $ac_file | $ac_file:* )
26394 break ;;
26396 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26397 esac
26398 done
26399 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26400 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26401 X$ac_file : 'X\(//\)[^/]' \| \
26402 X$ac_file : 'X\(//\)$' \| \
26403 X$ac_file : 'X\(/\)' \| \
26404 . : '\(.\)' 2>/dev/null ||
26405 echo X$ac_file |
26406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26407 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26408 /^X\(\/\/\)$/{ s//\1/; q; }
26409 /^X\(\/\).*/{ s//\1/; q; }
26410 s/.*/./; q'`/stamp-h$_am_stamp_count
26411 done
26412 _ACEOF
26413 cat >>$CONFIG_STATUS <<\_ACEOF
26416 # CONFIG_COMMANDS section.
26418 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26419 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26420 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26421 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26422 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26423 X"$ac_dest" : 'X\(//\)[^/]' \| \
26424 X"$ac_dest" : 'X\(//\)$' \| \
26425 X"$ac_dest" : 'X\(/\)' \| \
26426 . : '\(.\)' 2>/dev/null ||
26427 echo X"$ac_dest" |
26428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26429 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26430 /^X\(\/\/\)$/{ s//\1/; q; }
26431 /^X\(\/\).*/{ s//\1/; q; }
26432 s/.*/./; q'`
26433 { if $as_mkdir_p; then
26434 mkdir -p "$ac_dir"
26435 else
26436 as_dir="$ac_dir"
26437 as_dirs=
26438 while test ! -d "$as_dir"; do
26439 as_dirs="$as_dir $as_dirs"
26440 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26442 X"$as_dir" : 'X\(//\)[^/]' \| \
26443 X"$as_dir" : 'X\(//\)$' \| \
26444 X"$as_dir" : 'X\(/\)' \| \
26445 . : '\(.\)' 2>/dev/null ||
26446 echo X"$as_dir" |
26447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26449 /^X\(\/\/\)$/{ s//\1/; q; }
26450 /^X\(\/\).*/{ s//\1/; q; }
26451 s/.*/./; q'`
26452 done
26453 test ! -n "$as_dirs" || mkdir $as_dirs
26454 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26455 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26456 { (exit 1); exit 1; }; }; }
26458 ac_builddir=.
26460 if test "$ac_dir" != .; then
26461 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26462 # A "../" for each directory in $ac_dir_suffix.
26463 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26464 else
26465 ac_dir_suffix= ac_top_builddir=
26468 case $srcdir in
26469 .) # No --srcdir option. We are building in place.
26470 ac_srcdir=.
26471 if test -z "$ac_top_builddir"; then
26472 ac_top_srcdir=.
26473 else
26474 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26475 fi ;;
26476 [\\/]* | ?:[\\/]* ) # Absolute path.
26477 ac_srcdir=$srcdir$ac_dir_suffix;
26478 ac_top_srcdir=$srcdir ;;
26479 *) # Relative path.
26480 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26481 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26482 esac
26484 # Do not use `cd foo && pwd` to compute absolute paths, because
26485 # the directories may not exist.
26486 case `pwd` in
26487 .) ac_abs_builddir="$ac_dir";;
26489 case "$ac_dir" in
26490 .) ac_abs_builddir=`pwd`;;
26491 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26492 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26493 esac;;
26494 esac
26495 case $ac_abs_builddir in
26496 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26498 case ${ac_top_builddir}. in
26499 .) ac_abs_top_builddir=$ac_abs_builddir;;
26500 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26501 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26502 esac;;
26503 esac
26504 case $ac_abs_builddir in
26505 .) ac_abs_srcdir=$ac_srcdir;;
26507 case $ac_srcdir in
26508 .) ac_abs_srcdir=$ac_abs_builddir;;
26509 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26510 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26511 esac;;
26512 esac
26513 case $ac_abs_builddir in
26514 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26516 case $ac_top_srcdir in
26517 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26518 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26519 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26520 esac;;
26521 esac
26524 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26525 echo "$as_me: executing $ac_dest commands" >&6;}
26526 case $ac_dest in
26527 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26528 # Strip MF so we end up with the name of the file.
26529 mf=`echo "$mf" | sed -e 's/:.*$//'`
26530 # Check whether this is an Automake generated Makefile or not.
26531 # We used to match only the files named `Makefile.in', but
26532 # some people rename them; so instead we look at the file content.
26533 # Grep'ing the first line is not enough: some people post-process
26534 # each Makefile.in and add a new line on top of each file to say so.
26535 # So let's grep whole file.
26536 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26537 dirpart=`(dirname "$mf") 2>/dev/null ||
26538 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26539 X"$mf" : 'X\(//\)[^/]' \| \
26540 X"$mf" : 'X\(//\)$' \| \
26541 X"$mf" : 'X\(/\)' \| \
26542 . : '\(.\)' 2>/dev/null ||
26543 echo X"$mf" |
26544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26546 /^X\(\/\/\)$/{ s//\1/; q; }
26547 /^X\(\/\).*/{ s//\1/; q; }
26548 s/.*/./; q'`
26549 else
26550 continue
26552 # Extract the definition of DEPDIR, am__include, and am__quote
26553 # from the Makefile without running `make'.
26554 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26555 test -z "$DEPDIR" && continue
26556 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26557 test -z "am__include" && continue
26558 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26559 # When using ansi2knr, U may be empty or an underscore; expand it
26560 U=`sed -n 's/^U = //p' < "$mf"`
26561 # Find all dependency output files, they are included files with
26562 # $(DEPDIR) in their names. We invoke sed twice because it is the
26563 # simplest approach to changing $(DEPDIR) to its actual value in the
26564 # expansion.
26565 for file in `sed -n "
26566 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26567 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26568 # Make sure the directory exists.
26569 test -f "$dirpart/$file" && continue
26570 fdir=`(dirname "$file") 2>/dev/null ||
26571 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26572 X"$file" : 'X\(//\)[^/]' \| \
26573 X"$file" : 'X\(//\)$' \| \
26574 X"$file" : 'X\(/\)' \| \
26575 . : '\(.\)' 2>/dev/null ||
26576 echo X"$file" |
26577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26579 /^X\(\/\/\)$/{ s//\1/; q; }
26580 /^X\(\/\).*/{ s//\1/; q; }
26581 s/.*/./; q'`
26582 { if $as_mkdir_p; then
26583 mkdir -p $dirpart/$fdir
26584 else
26585 as_dir=$dirpart/$fdir
26586 as_dirs=
26587 while test ! -d "$as_dir"; do
26588 as_dirs="$as_dir $as_dirs"
26589 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26591 X"$as_dir" : 'X\(//\)[^/]' \| \
26592 X"$as_dir" : 'X\(//\)$' \| \
26593 X"$as_dir" : 'X\(/\)' \| \
26594 . : '\(.\)' 2>/dev/null ||
26595 echo X"$as_dir" |
26596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26598 /^X\(\/\/\)$/{ s//\1/; q; }
26599 /^X\(\/\).*/{ s//\1/; q; }
26600 s/.*/./; q'`
26601 done
26602 test ! -n "$as_dirs" || mkdir $as_dirs
26603 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
26604 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
26605 { (exit 1); exit 1; }; }; }
26607 # echo "creating $dirpart/$file"
26608 echo '# dummy' > "$dirpart/$file"
26609 done
26610 done
26612 esac
26613 done
26614 _ACEOF
26616 cat >>$CONFIG_STATUS <<\_ACEOF
26618 { (exit 0); exit 0; }
26619 _ACEOF
26620 chmod +x $CONFIG_STATUS
26621 ac_clean_files=$ac_clean_files_save
26624 # configure is writing to config.log, and then calls config.status.
26625 # config.status does its own redirection, appending to config.log.
26626 # Unfortunately, on DOS this fails, as config.log is still kept open
26627 # by configure, so config.status won't be able to write to it; its
26628 # output is simply discarded. So we exec the FD to /dev/null,
26629 # effectively closing config.log, so it can be properly (re)opened and
26630 # appended to by config.status. When coming back to configure, we
26631 # need to make the FD available again.
26632 if test "$no_create" != yes; then
26633 ac_cs_success=:
26634 ac_config_status_args=
26635 test "$silent" = yes &&
26636 ac_config_status_args="$ac_config_status_args --quiet"
26637 exec 5>/dev/null
26638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26639 exec 5>>config.log
26640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26641 # would make configure fail if this is the last instruction.
26642 $ac_cs_success || { (exit 1); exit 1; }
26646 { echo; echo "Now please type '${term_bold}make${term_norm}' to compile. Good luck."; echo; } >& 6