2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL
=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec
; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo
; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo
; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset
; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
638 for dir
in $PATH /usr
/ucb
; do
640 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho
; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL
=/bin
/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
679 SHELL
="$CONFIG_SHELL"
681 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string
=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev
/null
6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix
=/usr
/local
735 ac_config_libobj_dir
=.
741 SHELL
=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
750 ac_unique_file
="src/sigsegv.h.in"
751 # Factoring default headers for most tests.
752 ac_includes_default
="\
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
764 # ifdef HAVE_STDLIB_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
796 program_transform_name
838 INSTALL_STRIP_PROGRAM
892 FAULT_CONTEXT_INCLUDE
893 HAVE_SIGSEGV_RECOVERY
895 HAVE_STACK_OVERFLOW_RECOVERY
903 enable_option_checking
904 enable_dependency_tracking
913 ac_precious_vars
='build_alias
924 # Initialize some variables set by options.
926 ac_init_version
=false
927 ac_unrecognized_opts
=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
938 program_transform_name
=s
,x
,x
,
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir
='${exec_prefix}/bin'
953 sbindir
='${exec_prefix}/sbin'
954 libexecdir
='${exec_prefix}/libexec'
955 datarootdir
='${prefix}/share'
956 datadir
='${datarootdir}'
957 sysconfdir
='${prefix}/etc'
958 sharedstatedir
='${prefix}/com'
959 localstatedir
='${prefix}/var'
960 includedir
='${prefix}/include'
961 oldincludedir
='/usr/include'
962 docdir
='${datarootdir}/doc/${PACKAGE}'
963 infodir
='${datarootdir}/info'
968 libdir
='${exec_prefix}/lib'
969 localedir
='${datarootdir}/locale'
970 mandir
='${datarootdir}/man'
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\
$ac_option
984 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988 # Accept the important Cygnus configure options, so we can diagnose typos.
990 case $ac_dashdash$ac_option in
994 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
996 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
999 -build |
--build |
--buil |
--bui |
--bu)
1000 ac_prev
=build_alias
;;
1001 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1002 build_alias
=$ac_optarg ;;
1004 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1005 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1006 ac_prev
=cache_file
;;
1007 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1008 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1009 cache_file
=$ac_optarg ;;
1011 --config-cache |
-C)
1012 cache_file
=config.cache
;;
1014 -datadir |
--datadir |
--datadi |
--datad)
1016 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1017 datadir
=$ac_optarg ;;
1019 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1020 |
--dataroo |
--dataro |
--datar)
1021 ac_prev
=datarootdir
;;
1022 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1023 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1024 datarootdir
=$ac_optarg ;;
1026 -disable-* |
--disable-*)
1027 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1030 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_useropt_orig
=$ac_useropt
1033 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_
$ac_useropt"
1038 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep
=', ';;
1041 eval enable_
$ac_useropt=no
;;
1043 -docdir |
--docdir |
--docdi |
--doc |
--do)
1045 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1046 docdir
=$ac_optarg ;;
1048 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1050 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1051 dvidir
=$ac_optarg ;;
1053 -enable-* |
--enable-*)
1054 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1057 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_useropt_orig
=$ac_useropt
1060 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_
$ac_useropt"
1065 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066 ac_unrecognized_sep
=', ';;
1068 eval enable_
$ac_useropt=\
$ac_optarg ;;
1070 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1071 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1072 |
--exec |
--exe |
--ex)
1073 ac_prev
=exec_prefix
;;
1074 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1075 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1076 |
--exec=* |
--exe=* |
--ex=*)
1077 exec_prefix
=$ac_optarg ;;
1079 -gas |
--gas |
--ga |
--g)
1080 # Obsolete; use --with-gas.
1083 -help |
--help |
--hel |
--he |
-h)
1084 ac_init_help
=long
;;
1085 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1086 ac_init_help
=recursive
;;
1087 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1088 ac_init_help
=short
;;
1090 -host |
--host |
--hos |
--ho)
1091 ac_prev
=host_alias
;;
1092 -host=* |
--host=* |
--hos=* |
--ho=*)
1093 host_alias
=$ac_optarg ;;
1095 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1097 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1099 htmldir
=$ac_optarg ;;
1101 -includedir |
--includedir |
--includedi |
--included |
--include \
1102 |
--includ |
--inclu |
--incl |
--inc)
1103 ac_prev
=includedir
;;
1104 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1105 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1106 includedir
=$ac_optarg ;;
1108 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1110 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1111 infodir
=$ac_optarg ;;
1113 -libdir |
--libdir |
--libdi |
--libd)
1115 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1116 libdir
=$ac_optarg ;;
1118 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1119 |
--libexe |
--libex |
--libe)
1120 ac_prev
=libexecdir
;;
1121 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1122 |
--libexe=* |
--libex=* |
--libe=*)
1123 libexecdir
=$ac_optarg ;;
1125 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1126 ac_prev
=localedir
;;
1127 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1128 localedir
=$ac_optarg ;;
1130 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1131 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1132 ac_prev
=localstatedir
;;
1133 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1134 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1135 localstatedir
=$ac_optarg ;;
1137 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1139 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1140 mandir
=$ac_optarg ;;
1142 -nfp |
--nfp |
--nf)
1143 # Obsolete; use --without-fp.
1146 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1147 |
--no-cr |
--no-c |
-n)
1150 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1151 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1154 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1155 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1156 |
--oldin |
--oldi |
--old |
--ol |
--o)
1157 ac_prev
=oldincludedir
;;
1158 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1159 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1160 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1161 oldincludedir
=$ac_optarg ;;
1163 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1165 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1166 prefix
=$ac_optarg ;;
1168 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1169 |
--program-pre |
--program-pr |
--program-p)
1170 ac_prev
=program_prefix
;;
1171 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1172 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1173 program_prefix
=$ac_optarg ;;
1175 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1176 |
--program-suf |
--program-su |
--program-s)
1177 ac_prev
=program_suffix
;;
1178 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1179 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1180 program_suffix
=$ac_optarg ;;
1182 -program-transform-name |
--program-transform-name \
1183 |
--program-transform-nam |
--program-transform-na \
1184 |
--program-transform-n |
--program-transform- \
1185 |
--program-transform |
--program-transfor \
1186 |
--program-transfo |
--program-transf \
1187 |
--program-trans |
--program-tran \
1188 |
--progr-tra |
--program-tr |
--program-t)
1189 ac_prev
=program_transform_name
;;
1190 -program-transform-name=* |
--program-transform-name=* \
1191 |
--program-transform-nam=* |
--program-transform-na=* \
1192 |
--program-transform-n=* |
--program-transform-=* \
1193 |
--program-transform=* |
--program-transfor=* \
1194 |
--program-transfo=* |
--program-transf=* \
1195 |
--program-trans=* |
--program-tran=* \
1196 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1197 program_transform_name
=$ac_optarg ;;
1199 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1201 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1202 pdfdir
=$ac_optarg ;;
1204 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1206 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1209 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1210 |
-silent |
--silent |
--silen |
--sile |
--sil)
1213 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1215 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1217 sbindir
=$ac_optarg ;;
1219 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1220 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1221 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1223 ac_prev
=sharedstatedir
;;
1224 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1225 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1226 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1228 sharedstatedir
=$ac_optarg ;;
1230 -site |
--site |
--sit)
1232 -site=* |
--site=* |
--sit=*)
1235 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1237 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1238 srcdir
=$ac_optarg ;;
1240 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1241 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1242 ac_prev
=sysconfdir
;;
1243 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1244 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1245 sysconfdir
=$ac_optarg ;;
1247 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1248 ac_prev
=target_alias
;;
1249 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1250 target_alias
=$ac_optarg ;;
1252 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1255 -version |
--version |
--versio |
--versi |
--vers |
-V)
1256 ac_init_version
=: ;;
1259 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1262 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_useropt_orig
=$ac_useropt
1265 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1270 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1271 ac_unrecognized_sep
=', ';;
1273 eval with_
$ac_useropt=\
$ac_optarg ;;
1275 -without-* |
--without-*)
1276 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1279 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_useropt_orig
=$ac_useropt
1282 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1287 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1288 ac_unrecognized_sep
=', ';;
1290 eval with_
$ac_useropt=no
;;
1293 # Obsolete; use --with-x.
1296 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1297 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1298 ac_prev
=x_includes
;;
1299 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1300 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1301 x_includes
=$ac_optarg ;;
1303 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1304 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1305 ac_prev
=x_libraries
;;
1306 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1307 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1308 x_libraries
=$ac_optarg ;;
1310 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1311 Try \`$0 --help' for more information." >&2
1312 { (exit 1); exit 1; }; }
1316 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1319 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1320 { (exit 1); exit 1; }; }
1321 eval $ac_envvar=\
$ac_optarg
1322 export $ac_envvar ;;
1325 # FIXME: should be removed in autoconf 3.0.
1326 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1328 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 if test -n "$ac_prev"; then
1336 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1337 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1338 { (exit 1); exit 1; }; }
1341 if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1344 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1345 { (exit 1); exit 1; }; } ;;
1346 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 # Check all directory arguments for consistency.
1351 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
1356 eval ac_val
=\$
$ac_var
1357 # Remove trailing slashes.
1360 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\
$ac_val;;
1363 # Be sure to have absolute directory names.
1365 [\\/$
]* | ?
:[\\/]* ) continue;;
1366 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1368 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1369 { (exit 1); exit 1; }; }
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1377 target
=$target_alias
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x
; then
1381 if test "x$build_alias" = x
; then
1382 cross_compiling
=maybe
1383 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384 If a cross compiler is detected then cross compile mode will be used." >&2
1385 elif test "x$build_alias" != "x$host_alias"; then
1391 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1393 test "$silent" = yes && exec 6>/dev
/null
1396 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di
=`ls -di .` &&
1398 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1399 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1400 { (exit 1); exit 1; }; }
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1403 { (exit 1); exit 1; }; }
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408 ac_srcdir_defaulted
=yes
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir
=`$as_dirname -- "$as_myself" ||
1411 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$as_myself" : 'X\(//\)[^/]' \| \
1413 X"$as_myself" : 'X\(//\)$' \| \
1414 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415 $as_echo X"$as_myself" |
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1438 ac_srcdir_defaulted
=no
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1442 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1443 { (exit 1); exit 1; }; }
1445 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1448 { (exit 1); exit 1; }; }
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1458 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 for ac_var
in $ac_precious_vars; do
1461 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1463 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1468 # Report the --help message.
1470 if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1474 \`configure' configures this package to adapt to many kinds of systems.
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE. See below for descriptions of some of the useful variables.
1481 Defaults for the options are specified in brackets.
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494 Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
1496 [$ac_default_prefix]
1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1505 For better control, use the options below.
1507 Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
1532 --program-prefix=PREFIX prepend PREFIX to installed program names
1533 --program-suffix=SUFFIX append SUFFIX to installed program names
1534 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1537 --build=BUILD configure
for building on BUILD
[guessed
]
1538 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1542 if test -n "$ac_init_help"; then
1547 --disable-option-checking ignore unrecognized
--enable/--with options
1548 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1549 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1550 --disable-dependency-tracking speeds up one-time build
1551 --enable-dependency-tracking do not reject slow dependency extractors
1552 --enable-shared[=PKGS
] build shared libraries
[default
=no
]
1553 --enable-static[=PKGS
] build static libraries
[default
=yes]
1554 --enable-fast-install[=PKGS
]
1555 optimize
for fast installation
[default
=yes]
1556 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1557 --enable-relocatable install a package that can be moved
in the filesystem
1560 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1561 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1562 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1564 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1566 Some influential environment variables
:
1567 CC C compiler
command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1570 nonstandard directory
<lib dir
>
1571 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1572 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1573 you have headers
in a nonstandard directory
<include dir
>
1576 Use these variables to override the choices made by
`configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1608 .) # We are building in place.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1642 generated by GNU Autoconf 2.62
1644 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1645 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1651 cat >config.log <<_ACEOF
1652 This file contains any messages produced by compilers while
1653 running configure, to aid debugging if configure makes a mistake.
1655 It was created by $as_me, which was
1656 generated by GNU Autoconf 2.62. Invocation command line was
1668 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1669 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1670 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1671 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1672 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1674 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1675 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1677 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1678 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1679 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1680 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1681 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1682 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1683 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 test -z "$as_dir" && as_dir=.
1692 $as_echo "PATH: $as_dir"
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1716 ac_must_keep_next=false
1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1727 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1730 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1733 if test $ac_must_keep_next = true; then
1734 ac_must_keep_next=false # Got value, back to normal.
1737 *=* | --config-cache | -C | -disable-* | --disable-* \
1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740 | -with-* | --with-* | -without-* | --without-* | --x)
1741 case "$ac_configure_args0 " in
1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1745 -* ) ac_must_keep_next=true ;;
1748 ac_configure_args="$ac_configure_args '$ac_arg'"
1753 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1754 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log. We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762 # Save into config.log some information that might help in debugging.
1767 ## ---------------- ##
1768 ## Cache variables. ##
1769 ## ---------------- ##
1772 # The following way of writing the cache mishandles newlines in values,
1774 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1775 eval ac_val=\$$ac_var
1779 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1780 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1783 _ | IFS | as_nl) ;; #(
1784 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1785 *) $as_unset $ac_var ;;
1790 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1791 *${as_nl}ac_space=\ *)
1793 "s/'\''/'\''\\\\'\'''\''/g;
1794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1805 ## ----------------- ##
1806 ## Output variables. ##
1807 ## ----------------- ##
1810 for ac_var in $ac_subst_vars
1812 eval ac_val=\$$ac_var
1814 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816 $as_echo "$ac_var='\''$ac_val'\''"
1820 if test -n "$ac_subst_files"; then
1822 ## ------------------- ##
1823 ## File substitutions. ##
1824 ## ------------------- ##
1827 for ac_var in $ac_subst_files
1829 eval ac_val=\$$ac_var
1831 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 $as_echo "$ac_var='\''$ac_val'\''"
1838 if test -s confdefs.h; then
1848 test "$ac_signal" != 0 &&
1849 $as_echo "$as_me: caught signal $ac_signal"
1850 $as_echo "$as_me: exit $exit_status"
1852 rm -f core *.core core.conftest.* &&
1853 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1856 for ac_signal in 1 2 13 15; do
1857 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1861 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1862 rm -f -r conftest* confdefs.h
1864 # Predefined preprocessor variables.
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_NAME "$PACKAGE_NAME"
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_STRING "$PACKAGE_STRING"
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1891 # Let the site file select an alternate cache file if it wants to.
1892 # Prefer an explicitly selected file to automatically selected ones.
1895 if test -n "$CONFIG_SITE"; then
1896 ac_site_file1=$CONFIG_SITE
1897 elif test "x$prefix" != xNONE; then
1898 ac_site_file1=$prefix/share/config.site
1899 ac_site_file2=$prefix/etc/config.site
1901 ac_site_file1=$ac_default_prefix/share/config.site
1902 ac_site_file2=$ac_default_prefix/etc/config.site
1904 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1906 test "x$ac_site_file" = xNONE && continue
1907 if test -r "$ac_site_file"; then
1908 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1909 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1910 sed 's/^/| /' "$ac_site_file" >&5
1915 if test -r "$cache_file"; then
1916 # Some versions of bash will fail to source /dev/null (special
1917 # files actually), so we avoid doing that.
1918 if test -f "$cache_file"; then
1919 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1920 $as_echo "$as_me: loading cache $cache_file" >&6;}
1922 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1923 *) . "./$cache_file";;
1927 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1928 $as_echo "$as_me: creating cache $cache_file" >&6;}
1932 # Check that the precious variables saved in the cache have kept the same
1934 ac_cache_corrupted=false
1935 for ac_var in $ac_precious_vars; do
1936 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1937 eval ac_new_set=\$ac_env_${ac_var}_set
1938 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1939 eval ac_new_val=\$ac_env_${ac_var}_value
1940 case $ac_old_set,$ac_new_set in
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1943 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1944 ac_cache_corrupted=: ;;
1946 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1947 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1951 if test "x$ac_old_val" != "x$ac_new_val"; then
1952 # differences in whitespace do not lead to failure.
1953 ac_old_val_w=`echo x
$ac_old_val`
1954 ac_new_val_w=`echo x
$ac_new_val`
1955 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1956 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1957 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1958 ac_cache_corrupted=:
1960 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1961 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1962 eval $ac_var=\$ac_old_val
1964 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1965 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1966 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1967 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1970 # Pass precious variables to config.status.
1971 if test "$ac_new_set" = set; then
1973 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1974 *) ac_arg=$ac_var=$ac_new_val ;;
1976 case " $ac_configure_args " in
1977 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1978 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1982 if $ac_cache_corrupted; then
1983 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1984 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1985 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1986 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1987 { (exit 1); exit 1; }; }
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015 for ac_dir in build-aux "$srcdir"/build-aux; do
2016 if test -f "$ac_dir/install-sh"; then
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2020 elif test -f "$ac_dir/install.sh"; then
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2024 elif test -f "$ac_dir/shtool"; then
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2030 if test -z "$ac_aux_dir"; then
2031 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2032 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2033 { (exit 1); exit 1; }; }
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2049 # for the most important terminal types we directly know the sequences
2051 term_bold=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev
/null
2>/dev
/null
`
2052 term_norm=`${AWK:-awk} 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev
/null
2>/dev
/null
`
2055 term_bold=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev
/null
2>/dev
/null
`
2056 term_norm=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev
/null
2>/dev
/null
`
2058 # for all others, we try to use a possibly existing `tput' or `tcout' utility
2060 paths
=`echo "$PATH" | sed -e 's/:/ /g'`
2061 for tool
in tput tcout
; do
2062 for dir
in $paths; do
2063 if test -r "$dir/$tool"; then
2064 for seq in bold md smso
; do # 'smso' is last
2065 bold
="`$dir/$tool $seq 2>/dev/null`"
2066 if test -n "$bold"; then
2071 if test -n "$term_bold"; then
2072 for seq in sgr0 me rmso
reset; do # 'reset' is last
2073 norm
="`$dir/$tool $seq 2>/dev/null`"
2074 if test -n "$norm"; then
2083 if test -n "$term_bold" && test -n "$term_norm"; then
2089 echo "$term_bold" |
tr -d '\n' > termbold
2090 echo "$term_norm" |
tr -d '\n' > termnorm
2093 { echo; echo "${term_bold}Build Tools:${term_norm}"; } >& 6
2095 am__api_version='1.10'
2097 # Find a good install program. We prefer a C program (faster),
2098 # so one script is as good as another. But avoid the broken or
2099 # incompatible versions:
2100 # SysV /etc/install, /usr/sbin/install
2101 # SunOS /usr/etc/install
2102 # IRIX /sbin/install
2104 # AmigaOS /C/install, which installs bootblocks on floppy discs
2105 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2106 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2107 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
2108 # OS/2's system install, which has a completely different semantic
2109 # ./install, which can be erroneously created by make from ./install.sh.
2110 # Reject install programs that cannot install multiple files.
2111 { $as_echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
2112 $as_echo_n "checking
for a BSD-compatible
install...
" >&6; }
2113 if test -z "$INSTALL"; then
2114 if test "${ac_cv_path_install+set}" = set; then
2115 $as_echo_n "(cached
) " >&6
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 test -z "$as_dir" && as_dir=.
2122 # Account for people who put trailing slashes in PATH elements.
2124 ./ | .// | /cC/* | \
2125 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2126 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2129 # OSF1 and SCO ODT 3.0 have their own names for install.
2130 # Don't use installbsd from OSF since it installs stuff as root
2132 for ac_prog in ginstall scoinst install; do
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2135 if test $ac_prog = install &&
2136 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2137 # AIX install. It has an incompatible calling convention.
2139 elif test $ac_prog = install &&
2140 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2141 # program-specific install script used by HP pwplus--don't use.
2144 rm -rf conftest.one conftest.two conftest.dir
2145 echo one > conftest.one
2146 echo two > conftest.two
2148 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir
" &&
2149 test -s conftest.one && test -s conftest.two &&
2150 test -s conftest.dir/conftest.one &&
2151 test -s conftest.dir/conftest.two
2153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2166 rm -rf conftest.one conftest.two conftest.dir
2169 if test "${ac_cv_path_install+set}" = set; then
2170 INSTALL=$ac_cv_path_install
2172 # As a last resort, use the slow shell script. Don't cache a
2173 # value for INSTALL within a source directory, because that will
2174 # break other packages using the cache if that directory is
2175 # removed, or if the value is a relative name.
2176 INSTALL=$ac_install_sh
2179 { $as_echo "$as_me:$LINENO: result
: $INSTALL" >&5
2180 $as_echo "$INSTALL" >&6; }
2182 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2183 # It thinks the first close brace ends the variable substitution.
2184 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2186 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2188 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2190 { $as_echo "$as_me:$LINENO: checking whether build environment is sane
" >&5
2191 $as_echo_n "checking whether build environment is sane...
" >&6; }
2194 echo timestamp > conftest.file
2195 # Do `set' in a subshell so we don't clobber the current shell's
2196 # arguments. Must try -L first in case configure is actually a
2197 # symlink; some systems play weird games with the mod time of symlinks
2198 # (eg FreeBSD returns the mod time of the symlink's containing
2201 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2202 if test "$
*" = "X
"; then
2204 set X `ls -t $srcdir/configure conftest.file`
2207 if test "$
*" != "X
$srcdir/configure conftest.
file" \
2208 && test "$
*" != "X conftest.
file $srcdir/configure
"; then
2210 # If neither matched, then we have a broken ls. This can happen
2211 # if, for instance, CONFIG_SHELL is bash and it inherits a
2212 # broken ls alias from the environment. This has actually
2213 # happened. Such a system could not be considered "sane
".
2214 { { $as_echo "$as_me:$LINENO: error
: ls -t appears to fail. Make sure there is not a broken
2215 alias in your environment
" >&5
2216 $as_echo "$as_me: error
: ls -t appears to fail. Make sure there is not a broken
2217 alias in your environment
" >&2;}
2218 { (exit 1); exit 1; }; }
2221 test "$2" = conftest.file
2227 { { $as_echo "$as_me:$LINENO: error
: newly created
file is older than distributed files
!
2228 Check your system
clock" >&5
2229 $as_echo "$as_me: error
: newly created
file is older than distributed files
!
2230 Check your system
clock" >&2;}
2231 { (exit 1); exit 1; }; }
2233 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2234 $as_echo "yes" >&6; }
2235 test "$program_prefix" != NONE &&
2236 program_transform_name="s
&^
&$program_prefix&;$program_transform_name"
2237 # Use a double $ so make ignores it.
2238 test "$program_suffix" != NONE &&
2239 program_transform_name="s
&\$
&$program_suffix&;$program_transform_name"
2240 # Double any \ or $.
2241 # By default was `s,x,x', remove it if useless.
2242 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2243 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2245 # expand $ac_aux_dir to an absolute path
2246 am_aux_dir=`cd $ac_aux_dir && pwd`
2248 test x"${MISSING+set}" = xset || MISSING="\
${SHELL} $am_aux_dir/missing
"
2249 # Use eval to expand $SHELL
2250 if eval "$MISSING --run true
"; then
2251 am_missing_run="$MISSING --run "
2254 { $as_echo "$as_me:$LINENO: WARNING
: \
`missing' script is too old or missing" >&5
2255 $as_echo "$as_me: WARNING: \`missing
' script is too old or missing" >&2;}
2258 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2259 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2260 if test -z "$MKDIR_P"; then
2261 if test "${ac_cv_path_mkdir+set}" = set; then
2262 $as_echo_n "(cached) " >&6
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2268 test -z "$as_dir" && as_dir=.
2269 for ac_prog in mkdir gmkdir; do
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2272 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2273 'mkdir
(GNU coreutils
) '* | \
2274 'mkdir
(coreutils
) '* | \
2275 'mkdir
(fileutils
) '4.1*)
2276 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2286 if test "${ac_cv_path_mkdir+set}" = set; then
2287 MKDIR_P="$ac_cv_path_mkdir -p"
2289 # As a last resort, use the slow shell script. Don't cache a
2290 # value for MKDIR_P within a source directory, because that will
2291 # break other packages using the cache if that directory is
2292 # removed, or if the value is a relative name.
2293 test -d .
/--version && rmdir .
/--version
2294 MKDIR_P
="$ac_install_sh -d"
2297 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2298 $as_echo "$MKDIR_P" >&6; }
2302 [\\/$
]* | ?
:[\\/]*) ;;
2303 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2306 for ac_prog
in gawk mawk nawk
awk
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy
$ac_prog; ac_word
=$2
2310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 $as_echo_n "checking for $ac_word... " >&6; }
2312 if test "${ac_cv_prog_AWK+set}" = set; then
2313 $as_echo_n "(cached) " >&6
2315 if test -n "$AWK"; then
2316 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir
=.
2323 for ac_exec_ext
in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_AWK
="$ac_prog"
2326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 if test -n "$AWK"; then
2337 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2338 $as_echo "$AWK" >&6; }
2340 { $as_echo "$as_me:$LINENO: result: no" >&5
2341 $as_echo "no" >&6; }
2345 test -n "$AWK" && break
2348 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2349 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2351 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2352 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2353 $as_echo_n "(cached) " >&6
2355 cat >conftest.
make <<\_ACEOF
2358 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2360 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2361 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2363 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2365 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2369 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2370 { $as_echo "$as_me:$LINENO: result: yes" >&5
2371 $as_echo "yes" >&6; }
2374 { $as_echo "$as_me:$LINENO: result: no" >&5
2375 $as_echo "no" >&6; }
2376 SET_MAKE
="MAKE=${MAKE-make}"
2379 rm -rf .tst
2>/dev
/null
2380 mkdir .tst
2>/dev
/null
2381 if test -d .tst
; then
2386 rmdir .tst
2>/dev
/null
2388 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2389 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2390 # is not polluted with repeated "-I."
2391 am__isrc
=' -I$(srcdir)'
2392 # test to see if srcdir already configured
2393 if test -f $srcdir/config.status
; then
2394 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2395 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2396 { (exit 1); exit 1; }; }
2400 # test whether we have cygpath
2401 if test -z "$CYGPATH_W"; then
2402 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2403 CYGPATH_W
='cygpath -w'
2410 # Define the identity of the package.
2415 cat >>confdefs.h
<<_ACEOF
2416 #define PACKAGE "$PACKAGE"
2420 cat >>confdefs.h
<<_ACEOF
2421 #define VERSION "$VERSION"
2424 # Some tools Automake needs.
2426 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2429 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2432 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2435 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2438 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2440 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2442 # Installed binaries are usually stripped using `strip' when the user
2443 # run `make install-strip'. However `strip' might not be the right
2444 # tool to use in cross-compilation environments, therefore Automake
2445 # will honor the `STRIP' environment variable to overrule this program.
2446 if test "$cross_compiling" != no
; then
2447 if test -n "$ac_tool_prefix"; then
2448 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2449 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 $as_echo_n "checking for $ac_word... " >&6; }
2452 if test "${ac_cv_prog_STRIP+set}" = set; then
2453 $as_echo_n "(cached) " >&6
2455 if test -n "$STRIP"; then
2456 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2462 test -z "$as_dir" && as_dir
=.
2463 for ac_exec_ext
in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 STRIP
=$ac_cv_prog_STRIP
2476 if test -n "$STRIP"; then
2477 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2478 $as_echo "$STRIP" >&6; }
2480 { $as_echo "$as_me:$LINENO: result: no" >&5
2481 $as_echo "no" >&6; }
2486 if test -z "$ac_cv_prog_STRIP"; then
2488 # Extract the first word of "strip", so it can be a program name with args.
2489 set dummy strip
; ac_word
=$2
2490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 $as_echo_n "checking for $ac_word... " >&6; }
2492 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2493 $as_echo_n "(cached) " >&6
2495 if test -n "$ac_ct_STRIP"; then
2496 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir
=.
2503 for ac_exec_ext
in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_ac_ct_STRIP
="strip"
2506 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2516 if test -n "$ac_ct_STRIP"; then
2517 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2518 $as_echo "$ac_ct_STRIP" >&6; }
2520 { $as_echo "$as_me:$LINENO: result: no" >&5
2521 $as_echo "no" >&6; }
2524 if test "x$ac_ct_STRIP" = x
; then
2527 case $cross_compiling:$ac_tool_warned in
2529 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet. If you think this
2531 configuration is useful to you, please write to autoconf@gnu.org." >&5
2532 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2533 whose name does not start with the host triplet. If you think this
2534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2535 ac_tool_warned
=yes ;;
2540 STRIP
="$ac_cv_prog_STRIP"
2544 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2546 # We need awk for the "check" target. The system "awk" is bad on
2548 # Always define AMTAR for backward compatibility.
2550 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2552 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2558 ac_config_headers
="$ac_config_headers config.h"
2562 ac_cpp
='$CPP $CPPFLAGS'
2563 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2568 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if test "${ac_cv_prog_CC+set}" = set; then
2572 $as_echo_n "(cached) " >&6
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC
="$CC" # Let the user override the test.
2577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir
=.
2582 for ac_exec_ext
in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 if test -n "$CC"; then
2596 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2597 $as_echo "$CC" >&6; }
2599 { $as_echo "$as_me:$LINENO: result: no" >&5
2600 $as_echo "no" >&6; }
2605 if test -z "$ac_cv_prog_CC"; then
2607 # Extract the first word of "gcc", so it can be a program name with args.
2608 set dummy gcc
; ac_word
=$2
2609 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2612 $as_echo_n "(cached) " >&6
2614 if test -n "$ac_ct_CC"; then
2615 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir
=.
2622 for ac_exec_ext
in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_ac_ct_CC
="gcc"
2625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2635 if test -n "$ac_ct_CC"; then
2636 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2637 $as_echo "$ac_ct_CC" >&6; }
2639 { $as_echo "$as_me:$LINENO: result: no" >&5
2640 $as_echo "no" >&6; }
2643 if test "x$ac_ct_CC" = x
; then
2646 case $cross_compiling:$ac_tool_warned in
2648 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&5
2651 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet. If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2654 ac_tool_warned
=yes ;;
2662 if test -z "$CC"; then
2663 if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2665 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if test "${ac_cv_prog_CC+set}" = set; then
2669 $as_echo_n "(cached) " >&6
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC
="$CC" # Let the user override the test.
2674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2678 test -z "$as_dir" && as_dir
=.
2679 for ac_exec_ext
in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 if test -n "$CC"; then
2693 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2694 $as_echo "$CC" >&6; }
2696 { $as_echo "$as_me:$LINENO: result: no" >&5
2697 $as_echo "no" >&6; }
2703 if test -z "$CC"; then
2704 # Extract the first word of "cc", so it can be a program name with args.
2705 set dummy cc
; ac_word
=$2
2706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if test "${ac_cv_prog_CC+set}" = set; then
2709 $as_echo_n "(cached) " >&6
2711 if test -n "$CC"; then
2712 ac_cv_prog_CC
="$CC" # Let the user override the test.
2715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir
=.
2720 for ac_exec_ext
in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2723 ac_prog_rejected
=yes
2727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 if test $ac_prog_rejected = yes; then
2735 # We found a bogon in the path, so make sure we never use it.
2736 set dummy
$ac_cv_prog_CC
2738 if test $# != 0; then
2739 # We chose a different compiler from the bogus one.
2740 # However, it has the same basename, so the bogon will be chosen
2741 # first if we set CC to just the basename; use the full file name.
2743 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2749 if test -n "$CC"; then
2750 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2753 { $as_echo "$as_me:$LINENO: result: no" >&5
2754 $as_echo "no" >&6; }
2759 if test -z "$CC"; then
2760 if test -n "$ac_tool_prefix"; then
2761 for ac_prog
in cl.exe
2763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2764 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2765 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if test "${ac_cv_prog_CC+set}" = set; then
2768 $as_echo_n "(cached) " >&6
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC
="$CC" # Let the user override the test.
2773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir
=.
2778 for ac_exec_ext
in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 if test -n "$CC"; then
2792 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2793 $as_echo "$CC" >&6; }
2795 { $as_echo "$as_me:$LINENO: result: no" >&5
2796 $as_echo "no" >&6; }
2800 test -n "$CC" && break
2803 if test -z "$CC"; then
2805 for ac_prog
in cl.exe
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808 set dummy
$ac_prog; ac_word
=$2
2809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2814 if test -n "$ac_ct_CC"; then
2815 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir
=.
2822 for ac_exec_ext
in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_ac_ct_CC
="$ac_prog"
2825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2835 if test -n "$ac_ct_CC"; then
2836 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2837 $as_echo "$ac_ct_CC" >&6; }
2839 { $as_echo "$as_me:$LINENO: result: no" >&5
2840 $as_echo "no" >&6; }
2844 test -n "$ac_ct_CC" && break
2847 if test "x$ac_ct_CC" = x
; then
2850 case $cross_compiling:$ac_tool_warned in
2852 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2853 whose name does not start with the host triplet. If you think this
2854 configuration is useful to you, please write to autoconf@gnu.org." >&5
2855 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet. If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2858 ac_tool_warned
=yes ;;
2867 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2868 See \`config.log' for more details." >&5
2869 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2870 See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2873 # Provide some information about the compiler.
2874 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2877 { (ac_try
="$ac_compiler --version >&5"
2879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883 $as_echo "$ac_try_echo") >&5
2884 (eval "$ac_compiler --version >&5") 2>&5
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }
2888 { (ac_try="$ac_compiler -v >&5"
2890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2891 *) ac_try_echo
=$ac_try;;
2893 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2894 $as_echo "$ac_try_echo") >&5
2895 (eval "$ac_compiler -v >&5") 2>&5
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899 { (ac_try
="$ac_compiler -V >&5"
2901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2905 $as_echo "$ac_try_echo") >&5
2906 (eval "$ac_compiler -V >&5") 2>&5
2908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2926 ac_clean_files_save=$ac_clean_files
2927 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2928 # Try to create an executable without -o first, disregard a.out.
2929 # It will help us diagnose broken compilers, and finding out an intuition
2931 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2932 $as_echo_n "checking for C compiler default output file name... " >&6; }
2933 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2935 # The possible output files:
2936 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2939 for ac_file in $ac_files
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2943 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2948 if { (ac_try="$ac_link_default"
2950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2951 *) ac_try_echo
=$ac_try;;
2953 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2954 $as_echo "$ac_try_echo") >&5
2955 (eval "$ac_link_default") 2>&5
2957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; then
2959 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2960 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2961 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2962 # so that the user can short-circuit this test for compilers unknown to
2964 for ac_file
in $ac_files ''
2966 test -f "$ac_file" ||
continue
2968 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2971 # We found the default executable, but exeext='' is most
2975 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2977 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 # We set ac_cv_exeext here because the later test for it is not
2980 # safe: cross compilers may not add the suffix if given an `-o'
2981 # argument, so we may need to know it at that point already.
2982 # Even if this section looks crufty: it has the advantage of
2989 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2995 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2996 $as_echo "$ac_file" >&6; }
2997 if test -z "$ac_file"; then
2998 $as_echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.
$ac_ext >&5
3001 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3002 See \`config.log' for more details." >&5
3003 $as_echo "$as_me: error: C compiler cannot create executables
3004 See \`config.log' for more details." >&2;}
3005 { (exit 77); exit 77; }; }
3008 ac_exeext
=$ac_cv_exeext
3010 # Check that the compiler produces executables we can run. If not, either
3011 # the compiler is broken, or we cross compile.
3012 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3013 $as_echo_n "checking whether the C compiler works... " >&6; }
3014 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3015 # If not cross compiling, check that we can run a simple program.
3016 if test "$cross_compiling" != yes; then
3017 if { ac_try
='./$ac_file'
3018 { (case "(($ac_try" in
3019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3023 $as_echo "$ac_try_echo") >&5
3024 (eval "$ac_try") 2>&5
3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3030 if test "$cross_compiling" = maybe; then
3033 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3034 If you meant to cross compile, use \`--host'.
3035 See \`config.log' for more details.
" >&5
3036 $as_echo "$as_me: error
: cannot run C compiled programs.
3037 If you meant to cross compile
, use \
`--host'.
3038 See \`config.log
' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3043 { $as_echo "$as_me:$LINENO: result: yes" >&5
3044 $as_echo "yes" >&6; }
3046 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3047 ac_clean_files=$ac_clean_files_save
3048 # Check that the compiler produces executables we can run. If not, either
3049 # the compiler is broken, or we cross compile.
3050 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3051 $as_echo_n "checking whether we are cross compiling... " >&6; }
3052 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3053 $as_echo "$cross_compiling" >&6; }
3055 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3056 $as_echo_n "checking for suffix of executables... " >&6; }
3057 if { (ac_try="$ac_link"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3063 $as_echo "$ac_try_echo") >&5
3064 (eval "$ac_link") 2>&5
3066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; then
3068 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3069 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3070 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3072 for ac_file
in conftest.exe conftest conftest.
*; do
3073 test -f "$ac_file" ||
continue
3075 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3076 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3083 See \`config.log' for more details." >&5
3084 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details." >&2;}
3086 { (exit 1); exit 1; }; }
3089 rm -f conftest
$ac_cv_exeext
3090 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3091 $as_echo "$ac_cv_exeext" >&6; }
3093 rm -f conftest.
$ac_ext
3094 EXEEXT
=$ac_cv_exeext
3096 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3097 $as_echo_n "checking for suffix of object files... " >&6; }
3098 if test "${ac_cv_objext+set}" = set; then
3099 $as_echo_n "(cached) " >&6
3101 cat >conftest.
$ac_ext <<_ACEOF
3104 cat confdefs.h
>>conftest.
$ac_ext
3105 cat >>conftest.
$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.o conftest.obj
3117 if { (ac_try
="$ac_compile"
3119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3123 $as_echo "$ac_try_echo") >&5
3124 (eval "$ac_compile") 2>&5
3126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; then
3128 for ac_file in conftest.o conftest.obj conftest.*; do
3129 test -f "$ac_file" || continue;
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3137 $as_echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3141 See \`config.log
' for more details." >&5
3142 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3143 See \`config.log' for more details.
" >&2;}
3144 { (exit 1); exit 1; }; }
3147 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3150 $as_echo "$ac_cv_objext" >&6; }
3151 OBJEXT=$ac_cv_objext
3153 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3154 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3155 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3156 $as_echo_n "(cached
) " >&6
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3183 $as_echo "$ac_try_echo") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3190 (exit $ac_status); } && {
3191 test -z "$ac_c_werror_flag" ||
3192 test ! -s conftest.err
3193 } && test -s conftest.$ac_objext; then
3196 $as_echo "$as_me: failed program was
:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3206 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3207 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3208 if test $ac_compiler_gnu = yes; then
3213 ac_test_CFLAGS=${CFLAGS+set}
3214 ac_save_CFLAGS=$CFLAGS
3215 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3216 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3217 if test "${ac_cv_prog_cc_g+set}" = set; then
3218 $as_echo_n "(cached
) " >&6
3220 ac_save_c_werror_flag=$ac_c_werror_flag
3221 ac_c_werror_flag=yes
3224 cat >conftest.$ac_ext <<_ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3239 rm -f conftest.$ac_objext
3240 if { (ac_try="$ac_compile"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247 (eval "$ac_compile") 2>conftest.er1
3249 grep -v '^ *+' conftest.er1 >conftest.err
3251 cat conftest.err >&5
3252 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3253 (exit $ac_status); } && {
3254 test -z "$ac_c_werror_flag" ||
3255 test ! -s conftest.err
3256 } && test -s conftest.$ac_objext; then
3259 $as_echo "$as_me: failed program was
:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3278 rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3285 $as_echo "$ac_try_echo") >&5
3286 (eval "$ac_compile") 2>conftest.er1
3288 grep -v '^ *+' conftest.er1 >conftest.err
3290 cat conftest.err >&5
3291 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3292 (exit $ac_status); } && {
3293 test -z "$ac_c_werror_flag" ||
3294 test ! -s conftest.err
3295 } && test -s conftest.$ac_objext; then
3298 $as_echo "$as_me: failed program was
:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 ac_c_werror_flag=$ac_save_c_werror_flag
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3318 rm -f conftest.$ac_objext
3319 if { (ac_try="$ac_compile"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3325 $as_echo "$ac_try_echo") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3332 (exit $ac_status); } && {
3333 test -z "$ac_c_werror_flag" ||
3334 test ! -s conftest.err
3335 } && test -s conftest.$ac_objext; then
3338 $as_echo "$as_me: failed program was
:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_c_werror_flag=$ac_save_c_werror_flag
3353 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3354 $as_echo "$ac_cv_prog_cc_g" >&6; }
3355 if test "$ac_test_CFLAGS" = set; then
3356 CFLAGS=$ac_save_CFLAGS
3357 elif test $ac_cv_prog_cc_g = yes; then
3358 if test "$GCC" = yes; then
3364 if test "$GCC" = yes; then
3370 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3371 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3372 if test "${ac_cv_prog_cc_c89+set}" = set; then
3373 $as_echo_n "(cached
) " >&6
3375 ac_cv_prog_cc_c89=no
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3385 #include <sys/types.h>
3386 #include <sys/stat.h>
3387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3388 struct buf { int x; };
3389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3390 static char *e (p, i)
3396 static char *f (char * (*g) (char **, int), char **p, ...)
3401 s = g (p, va_arg (v,int));
3406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3407 function prototypes and stuff, but not '\xHH' hex character constants.
3408 These don't provoke an error unfortunately, instead are silently treated
3409 as 'x'. The following induces an error, until -std is added to get
3410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3411 array size at least. It's necessary to write '\x00'==0 to get something
3412 that's true only with -std. */
3413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3416 inside strings and character constants. */
3418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3420 int test (int i, double x);
3421 struct s1 {int (*f) (int a);};
3422 struct s2 {int (*f) (double a);};
3423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3435 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3437 CC="$ac_save_CC $ac_arg"
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446 (eval "$ac_compile") 2>conftest.er1
3448 grep -v '^ *+' conftest.er1 >conftest.err
3450 cat conftest.err >&5
3451 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3452 (exit $ac_status); } && {
3453 test -z "$ac_c_werror_flag" ||
3454 test ! -s conftest.err
3455 } && test -s conftest.$ac_objext; then
3456 ac_cv_prog_cc_c89=$ac_arg
3458 $as_echo "$as_me: failed program was
:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3464 rm -f core conftest.err conftest.$ac_objext
3465 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3467 rm -f conftest.$ac_ext
3472 case "x
$ac_cv_prog_cc_c89" in
3474 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3475 $as_echo "none needed
" >&6; } ;;
3477 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3478 $as_echo "unsupported
" >&6; } ;;
3480 CC="$CC $ac_cv_prog_cc_c89"
3481 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3482 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491 DEPDIR="${am__leading_dot}deps
"
3493 ac_config_commands="$ac_config_commands depfiles
"
3496 am_make=${MAKE-make}
3497 cat > confinc << 'END'
3502 # If we don't find an include directive, just comment out the code.
3503 { $as_echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3504 $as_echo_n "checking
for style of include used by
$am_make...
" >&6; }
3508 # First try GNU make style include.
3509 echo "include confinc" > confmf
3510 # We grep out `Entering directory' and `Leaving directory'
3511 # messages which can occur if `w' ends up in MAKEFLAGS.
3512 # In particular we don't look at `^make:' because GNU make might
3513 # be invoked under some other name (usually "gmake"), in which
3514 # case it prints its new name instead of `make'.
3515 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3520 # Now try BSD make style include.
3521 if test "$am__include" = "#"; then
3522 echo '.include "confinc"' > confmf
3523 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3524 am__include
=.include
3531 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3532 $as_echo "$_am_result" >&6; }
3533 rm -f confinc confmf
3535 # Check whether --enable-dependency-tracking was given.
3536 if test "${enable_dependency_tracking+set}" = set; then
3537 enableval
=$enable_dependency_tracking;
3540 if test "x$enable_dependency_tracking" != xno
; then
3541 am_depcomp
="$ac_aux_dir/depcomp"
3544 if test "x$enable_dependency_tracking" != xno; then
3554 depcc
="$CC" am_compiler_list
=
3556 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3557 $as_echo_n "checking dependency style of $depcc... " >&6; }
3558 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3559 $as_echo_n "(cached) " >&6
3561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3562 # We make a subdir and do the tests there. Otherwise we can end up
3563 # making bogus files that we don't know about and never remove. For
3564 # instance it was reported that on HP-UX the gcc test will end up
3565 # making a dummy file named `D' -- because `-MD' means `put the output
3568 # Copy depcomp to subdir because otherwise we won't find it if we're
3569 # using a relative directory.
3570 cp "$am_depcomp" conftest.dir
3572 # We will build objects and dependencies in a subdirectory because
3573 # it helps to detect inapplicable dependency modes. For instance
3574 # both Tru64's cc and ICC support -MD to output dependencies as a
3575 # side effect of compilation, but ICC will put the dependencies in
3576 # the current directory while Tru64 will put them in the object
3580 am_cv_CC_dependencies_compiler_type
=none
3581 if test "$am_compiler_list" = ""; then
3582 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3584 for depmode
in $am_compiler_list; do
3585 # Setup a source with many dependencies, because some compilers
3586 # like to wrap large dependency lists on column 80 (with \), and
3587 # we should not choose a depcomp mode which is confused by this.
3589 # We need to recreate these files for each test, as the compiler may
3590 # overwrite some of them when testing with obscure command lines.
3591 # This happens at least with the AIX C compiler.
3593 for i
in 1 2 3 4 5 6; do
3594 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3595 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3596 # Solaris 8's {/usr,}/bin/sh.
3597 touch sub
/conftst
$i.h
3599 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3603 # after this tag, mechanisms are not by side-effect, so they'll
3604 # only be used when explicitly requested
3605 if test "x$enable_dependency_tracking" = xyes
; then
3613 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3614 # mode. It turns out that the SunPro C++ compiler does not properly
3615 # handle `-M -o', and we need to detect this.
3616 if depmode
=$depmode \
3617 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3618 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3619 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3620 >/dev
/null
2>conftest.err
&&
3621 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3622 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3623 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3624 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3625 # icc doesn't choke on unknown options, it will just issue warnings
3626 # or remarks (even with -Werror). So we grep stderr for any message
3627 # that says an option was ignored or not supported.
3628 # When given -MP, icc 7.0 and 7.1 complain thusly:
3629 # icc: Command line warning: ignoring option '-M'; no argument required
3630 # The diagnosis changed in icc 8.0:
3631 # icc: Command line remark: option '-MP' not supported
3632 if (grep 'ignoring option' conftest.err ||
3633 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3634 am_cv_CC_dependencies_compiler_type
=$depmode
3643 am_cv_CC_dependencies_compiler_type
=none
3647 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3648 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3649 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3652 test "x$enable_dependency_tracking" != xno \
3653 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3655 am__fastdepCC_FALSE
='#'
3657 am__fastdepCC_TRUE
='#'
3658 am__fastdepCC_FALSE
=
3663 ac_cpp
='$CPP $CPPFLAGS'
3664 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3667 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3668 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3669 # On Suns, sometimes $CPP names a directory.
3670 if test -n "$CPP" && test -d "$CPP"; then
3673 if test -z "$CPP"; then
3674 if test "${ac_cv_prog_CPP+set}" = set; then
3675 $as_echo_n "(cached) " >&6
3677 # Double quotes because CPP needs to be expanded
3678 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3681 for ac_c_preproc_warn_flag
in '' yes
3683 # Use a header file that comes with gcc, so configuring glibc
3684 # with a fresh cross-compiler works.
3685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3686 # <limits.h> exists even on freestanding compilers.
3687 # On the NeXT, cc -E runs the code through the compiler's parser,
3688 # not just through cpp. "Syntax error" is here to catch this case.
3689 cat >conftest.
$ac_ext <<_ACEOF
3692 cat confdefs.h
>>conftest.
$ac_ext
3693 cat >>conftest.
$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3696 # include <limits.h>
3698 # include <assert.h>
3702 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708 $as_echo "$ac_try_echo") >&5
3709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } >/dev/null && {
3716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3721 $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 # Broken: fails on valid input.
3728 rm -f conftest.err conftest.$ac_ext
3730 # OK, works on sane cases. Now check whether nonexistent headers
3731 # can be detected and how.
3732 cat >conftest.$ac_ext <<_ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 #include <ac_nonexistent.h>
3740 if { (ac_try="$ac_cpp conftest.$ac_ext"
3742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3743 *) ac_try_echo
=$ac_try;;
3745 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3746 $as_echo "$ac_try_echo") >&5
3747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3749 grep -v '^ *+' conftest.er1
>conftest.err
3751 cat conftest.err
>&5
3752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } >/dev
/null
&& {
3754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3757 # Broken: success on invalid input.
3760 $as_echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.
$ac_ext >&5
3763 # Passes both tests.
3768 rm -f conftest.err conftest.
$ac_ext
3771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772 rm -f conftest.err conftest.
$ac_ext
3773 if $ac_preproc_ok; then
3785 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3786 $as_echo "$CPP" >&6; }
3788 for ac_c_preproc_warn_flag
in '' yes
3790 # Use a header file that comes with gcc, so configuring glibc
3791 # with a fresh cross-compiler works.
3792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3793 # <limits.h> exists even on freestanding compilers.
3794 # On the NeXT, cc -E runs the code through the compiler's parser,
3795 # not just through cpp. "Syntax error" is here to catch this case.
3796 cat >conftest.
$ac_ext <<_ACEOF
3799 cat confdefs.h
>>conftest.
$ac_ext
3800 cat >>conftest.
$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3803 # include <limits.h>
3805 # include <assert.h>
3809 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3815 $as_echo "$ac_try_echo") >&5
3816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3818 grep -v '^ *+' conftest.er1 >conftest.err
3820 cat conftest.err >&5
3821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } >/dev/null && {
3823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3824 test ! -s conftest.err
3828 $as_echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 # Broken: fails on valid input.
3835 rm -f conftest.err conftest.$ac_ext
3837 # OK, works on sane cases. Now check whether nonexistent headers
3838 # can be detected and how.
3839 cat >conftest.$ac_ext <<_ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 #include <ac_nonexistent.h>
3847 if { (ac_try="$ac_cpp conftest.$ac_ext"
3849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3850 *) ac_try_echo
=$ac_try;;
3852 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3853 $as_echo "$ac_try_echo") >&5
3854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3856 grep -v '^ *+' conftest.er1
>conftest.err
3858 cat conftest.err
>&5
3859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } >/dev
/null
&& {
3861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3862 test ! -s conftest.err
3864 # Broken: success on invalid input.
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3870 # Passes both tests.
3875 rm -f conftest.err conftest.
$ac_ext
3878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3879 rm -f conftest.err conftest.
$ac_ext
3880 if $ac_preproc_ok; then
3883 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3884 See \`config.log' for more details." >&5
3885 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3886 See \`config.log' for more details." >&2;}
3887 { (exit 1); exit 1; }; }
3891 ac_cpp
='$CPP $CPPFLAGS'
3892 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3897 # Make sure we can run config.sub.
3898 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3899 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3900 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3901 { (exit 1); exit 1; }; }
3903 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3904 $as_echo_n "checking build system type... " >&6; }
3905 if test "${ac_cv_build+set}" = set; then
3906 $as_echo_n "(cached) " >&6
3908 ac_build_alias
=$build_alias
3909 test "x$ac_build_alias" = x
&&
3910 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3911 test "x$ac_build_alias" = x
&&
3912 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3913 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3914 { (exit 1); exit 1; }; }
3915 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3916 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3917 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3918 { (exit 1); exit 1; }; }
3921 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3922 $as_echo "$ac_cv_build" >&6; }
3923 case $ac_cv_build in
3925 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3926 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3927 { (exit 1); exit 1; }; };;
3930 ac_save_IFS
=$IFS; IFS
='-'
3936 # Remember, the first character of IFS is used to create $*,
3937 # except with old shells:
3940 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3943 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3944 $as_echo_n "checking host system type... " >&6; }
3945 if test "${ac_cv_host+set}" = set; then
3946 $as_echo_n "(cached) " >&6
3948 if test "x$host_alias" = x
; then
3949 ac_cv_host
=$ac_cv_build
3951 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3952 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3953 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3954 { (exit 1); exit 1; }; }
3958 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3959 $as_echo "$ac_cv_host" >&6; }
3962 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3963 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3964 { (exit 1); exit 1; }; };;
3967 ac_save_IFS
=$IFS; IFS
='-'
3973 # Remember, the first character of IFS is used to create $*,
3974 # except with old shells:
3977 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3980 { $as_echo "$as_me:$LINENO: checking host platform" >&5
3981 $as_echo_n "checking host platform... " >&6; }
3985 kernelversion
=`uname -r | sed -e 's/^\([0-9.]*\).*/\1/'`
3986 sv_cv_host
=`echo $sv_cv_host | sed -e "s/linux/linux$kernelversion/"`
3989 cat > conftest.c
<< EOF
3990 #include <features.h>
3991 #ifdef __GNU_LIBRARY__
3992 Version __GLIBC__ . __GLIBC_MINOR__
3995 glibcversion
=`$CPP $CPPFLAGS conftest.c 2>/dev/null | grep Version | sed -e 's/Version//' -e 's/ //g'`
3996 if test -n "$glibcversion"; then
3997 sv_cv_host
="$sv_cv_host-glibc$glibcversion"
3999 { $as_echo "$as_me:$LINENO: result: $sv_cv_host" >&5
4000 $as_echo "$sv_cv_host" >&6; }
4001 PLATFORM
="$sv_cv_host"
4004 # Find a good install program. We prefer a C program (faster),
4005 # so one script is as good as another. But avoid the broken or
4006 # incompatible versions:
4007 # SysV /etc/install, /usr/sbin/install
4008 # SunOS /usr/etc/install
4009 # IRIX /sbin/install
4011 # AmigaOS /C/install, which installs bootblocks on floppy discs
4012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4015 # OS/2's system install, which has a completely different semantic
4016 # ./install, which can be erroneously created by make from ./install.sh.
4017 # Reject install programs that cannot install multiple files.
4018 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4019 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4020 if test -z "$INSTALL"; then
4021 if test "${ac_cv_path_install+set}" = set; then
4022 $as_echo_n "(cached) " >&6
4024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir
=.
4029 # Account for people who put trailing slashes in PATH elements.
4031 .
/ | .
// |
/cC
/* | \
4032 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4033 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4036 # OSF1 and SCO ODT 3.0 have their own names for install.
4037 # Don't use installbsd from OSF since it installs stuff as root
4039 for ac_prog
in ginstall scoinst
install; do
4040 for ac_exec_ext
in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4042 if test $ac_prog = install &&
4043 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4044 # AIX install. It has an incompatible calling convention.
4046 elif test $ac_prog = install &&
4047 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4048 # program-specific install script used by HP pwplus--don't use.
4051 rm -rf conftest.one conftest.two conftest.dir
4052 echo one
> conftest.one
4053 echo two
> conftest.two
4055 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4056 test -s conftest.one
&& test -s conftest.two
&&
4057 test -s conftest.dir
/conftest.one
&&
4058 test -s conftest.dir
/conftest.two
4060 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4073 rm -rf conftest.one conftest.two conftest.dir
4076 if test "${ac_cv_path_install+set}" = set; then
4077 INSTALL
=$ac_cv_path_install
4079 # As a last resort, use the slow shell script. Don't cache a
4080 # value for INSTALL within a source directory, because that will
4081 # break other packages using the cache if that directory is
4082 # removed, or if the value is a relative name.
4083 INSTALL
=$ac_install_sh
4086 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4087 $as_echo "$INSTALL" >&6; }
4089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4090 # It thinks the first close brace ends the variable substitution.
4091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4095 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4100 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4101 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4106 macro_version
='2.2.4'
4107 macro_revision
='1.2976'
4121 ltmain
="$ac_aux_dir/ltmain.sh"
4123 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4124 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4125 if test "${ac_cv_path_SED+set}" = set; then
4126 $as_echo_n "(cached) " >&6
4128 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4129 for ac_i
in 1 2 3 4 5 6 7; do
4130 ac_script
="$ac_script$as_nl$ac_script"
4132 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4133 $as_unset ac_script || ac_script
=
4134 if test -z "$SED"; then
4135 ac_path_SED_found
=false
4136 # Loop through the user's path and test for each of PROGNAME-LIST
4137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4141 test -z "$as_dir" && as_dir
=.
4142 for ac_prog
in sed gsed
; do
4143 for ac_exec_ext
in '' $ac_executable_extensions; do
4144 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4145 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4146 # Check for GNU ac_path_SED and select it if it is found.
4147 # Check for GNU $ac_path_SED
4148 case `"$ac_path_SED" --version 2>&1` in
4150 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4153 $as_echo_n 0123456789 >"conftest.in"
4156 cat "conftest.in" "conftest.in" >"conftest.tmp"
4157 mv "conftest.tmp" "conftest.in"
4158 cp "conftest.in" "conftest.nl"
4159 $as_echo '' >> "conftest.nl"
4160 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4161 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4162 ac_count
=`expr $ac_count + 1`
4163 if test $ac_count -gt ${ac_path_SED_max-0}; then
4164 # Best one so far, save it but keep looking for a better one
4165 ac_cv_path_SED
="$ac_path_SED"
4166 ac_path_SED_max
=$ac_count
4168 # 10*(2^10) chars as input seems more than enough
4169 test $ac_count -gt 10 && break
4171 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4174 $ac_path_SED_found && break 3
4179 if test -z "$ac_cv_path_SED"; then
4180 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4181 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4182 { (exit 1); exit 1; }; }
4189 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4190 $as_echo "$ac_cv_path_SED" >&6; }
4191 SED
="$ac_cv_path_SED"
4194 test -z "$SED" && SED
=sed
4195 Xsed
="$SED -e 1s/^X//"
4207 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4208 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4209 if test "${ac_cv_path_GREP+set}" = set; then
4210 $as_echo_n "(cached) " >&6
4212 if test -z "$GREP"; then
4213 ac_path_GREP_found
=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4216 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4219 test -z "$as_dir" && as_dir
=.
4220 for ac_prog
in grep ggrep
; do
4221 for ac_exec_ext
in '' $ac_executable_extensions; do
4222 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4223 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4224 # Check for GNU ac_path_GREP and select it if it is found.
4225 # Check for GNU $ac_path_GREP
4226 case `"$ac_path_GREP" --version 2>&1` in
4228 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4231 $as_echo_n 0123456789 >"conftest.in"
4234 cat "conftest.in" "conftest.in" >"conftest.tmp"
4235 mv "conftest.tmp" "conftest.in"
4236 cp "conftest.in" "conftest.nl"
4237 $as_echo 'GREP' >> "conftest.nl"
4238 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4239 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4240 ac_count
=`expr $ac_count + 1`
4241 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4242 # Best one so far, save it but keep looking for a better one
4243 ac_cv_path_GREP
="$ac_path_GREP"
4244 ac_path_GREP_max
=$ac_count
4246 # 10*(2^10) chars as input seems more than enough
4247 test $ac_count -gt 10 && break
4249 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4252 $ac_path_GREP_found && break 3
4257 if test -z "$ac_cv_path_GREP"; then
4258 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4259 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4260 { (exit 1); exit 1; }; }
4263 ac_cv_path_GREP
=$GREP
4267 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4268 $as_echo "$ac_cv_path_GREP" >&6; }
4269 GREP
="$ac_cv_path_GREP"
4272 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4273 $as_echo_n "checking for egrep... " >&6; }
4274 if test "${ac_cv_path_EGREP+set}" = set; then
4275 $as_echo_n "(cached) " >&6
4277 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4278 then ac_cv_path_EGREP
="$GREP -E"
4280 if test -z "$EGREP"; then
4281 ac_path_EGREP_found
=false
4282 # Loop through the user's path and test for each of PROGNAME-LIST
4283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4284 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4287 test -z "$as_dir" && as_dir
=.
4288 for ac_prog
in egrep; do
4289 for ac_exec_ext
in '' $ac_executable_extensions; do
4290 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4291 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4292 # Check for GNU ac_path_EGREP and select it if it is found.
4293 # Check for GNU $ac_path_EGREP
4294 case `"$ac_path_EGREP" --version 2>&1` in
4296 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4299 $as_echo_n 0123456789 >"conftest.in"
4302 cat "conftest.in" "conftest.in" >"conftest.tmp"
4303 mv "conftest.tmp" "conftest.in"
4304 cp "conftest.in" "conftest.nl"
4305 $as_echo 'EGREP' >> "conftest.nl"
4306 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4307 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4308 ac_count
=`expr $ac_count + 1`
4309 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4310 # Best one so far, save it but keep looking for a better one
4311 ac_cv_path_EGREP
="$ac_path_EGREP"
4312 ac_path_EGREP_max
=$ac_count
4314 # 10*(2^10) chars as input seems more than enough
4315 test $ac_count -gt 10 && break
4317 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4320 $ac_path_EGREP_found && break 3
4325 if test -z "$ac_cv_path_EGREP"; then
4326 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4327 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4328 { (exit 1); exit 1; }; }
4331 ac_cv_path_EGREP
=$EGREP
4336 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4337 $as_echo "$ac_cv_path_EGREP" >&6; }
4338 EGREP
="$ac_cv_path_EGREP"
4341 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4342 $as_echo_n "checking for fgrep... " >&6; }
4343 if test "${ac_cv_path_FGREP+set}" = set; then
4344 $as_echo_n "(cached) " >&6
4346 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4347 then ac_cv_path_FGREP
="$GREP -F"
4349 if test -z "$FGREP"; then
4350 ac_path_FGREP_found
=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4353 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4356 test -z "$as_dir" && as_dir
=.
4357 for ac_prog
in fgrep
; do
4358 for ac_exec_ext
in '' $ac_executable_extensions; do
4359 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4361 # Check for GNU ac_path_FGREP and select it if it is found.
4362 # Check for GNU $ac_path_FGREP
4363 case `"$ac_path_FGREP" --version 2>&1` in
4365 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4368 $as_echo_n 0123456789 >"conftest.in"
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'FGREP' >> "conftest.nl"
4375 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4376 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4377 ac_count
=`expr $ac_count + 1`
4378 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_FGREP
="$ac_path_FGREP"
4381 ac_path_FGREP_max
=$ac_count
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4386 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4389 $ac_path_FGREP_found && break 3
4394 if test -z "$ac_cv_path_FGREP"; then
4395 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4396 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4397 { (exit 1); exit 1; }; }
4400 ac_cv_path_FGREP
=$FGREP
4405 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4406 $as_echo "$ac_cv_path_FGREP" >&6; }
4407 FGREP
="$ac_cv_path_FGREP"
4410 test -z "$GREP" && GREP
=grep
4430 # Check whether --with-gnu-ld was given.
4431 if test "${with_gnu_ld+set}" = set; then
4432 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4438 if test "$GCC" = yes; then
4439 # Check if gcc -print-prog-name=ld gives a path.
4440 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4441 $as_echo_n "checking for ld used by $CC... " >&6; }
4444 # gcc leaves a trailing carriage return which upsets mingw
4445 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4447 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4450 # Accept absolute paths.
4452 re_direlt
='/[^/][^/]*/\.\./'
4453 # Canonicalize the pathname of ld
4454 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4455 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4456 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4458 test -z "$LD" && LD
="$ac_prog"
4461 # If it fails, then pretend we aren't using GCC.
4465 # If it is relative, then search for the first ld in PATH.
4469 elif test "$with_gnu_ld" = yes; then
4470 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4471 $as_echo_n "checking for GNU ld... " >&6; }
4473 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4474 $as_echo_n "checking for non-GNU ld... " >&6; }
4476 if test "${lt_cv_path_LD+set}" = set; then
4477 $as_echo_n "(cached) " >&6
4479 if test -z "$LD"; then
4480 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4481 for ac_dir
in $PATH; do
4483 test -z "$ac_dir" && ac_dir
=.
4484 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4485 lt_cv_path_LD
="$ac_dir/$ac_prog"
4486 # Check to see if the program is GNU ld. I'd rather use --version,
4487 # but apparently some variants of GNU ld only accept -v.
4488 # Break only if it was the GNU/non-GNU ld that we prefer.
4489 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4490 *GNU
* |
*'with BFD'*)
4491 test "$with_gnu_ld" != no
&& break
4494 test "$with_gnu_ld" != yes && break
4501 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4506 if test -n "$LD"; then
4507 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4508 $as_echo "$LD" >&6; }
4510 { $as_echo "$as_me:$LINENO: result: no" >&5
4511 $as_echo "no" >&6; }
4513 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4514 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4515 { (exit 1); exit 1; }; }
4516 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4517 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4518 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4519 $as_echo_n "(cached) " >&6
4521 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4522 case `$LD -v 2>&1 </dev/null` in
4523 *GNU
* |
*'with BFD'*)
4524 lt_cv_prog_gnu_ld
=yes
4527 lt_cv_prog_gnu_ld
=no
4531 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4532 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4533 with_gnu_ld
=$lt_cv_prog_gnu_ld
4543 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4544 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4545 if test "${lt_cv_path_NM+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4548 if test -n "$NM"; then
4549 # Let the user override the test.
4552 lt_nm_to_check
="${ac_tool_prefix}nm"
4553 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4554 lt_nm_to_check
="$lt_nm_to_check nm"
4556 for lt_tmp_nm
in $lt_nm_to_check; do
4557 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4558 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4560 test -z "$ac_dir" && ac_dir
=.
4561 tmp_nm
="$ac_dir/$lt_tmp_nm"
4562 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4563 # Check to see if the nm accepts a BSD-compat flag.
4564 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4565 # nm: unknown option "B" ignored
4566 # Tru64's nm complains that /dev/null is an invalid object file
4567 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4568 */dev
/null
* |
*'Invalid file or object type'*)
4569 lt_cv_path_NM
="$tmp_nm -B"
4573 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4575 lt_cv_path_NM
="$tmp_nm -p"
4579 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4580 continue # so that we can try to find one that supports BSD flags
4589 : ${lt_cv_path_NM=no}
4592 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4593 $as_echo "$lt_cv_path_NM" >&6; }
4594 if test "$lt_cv_path_NM" != "no"; then
4597 # Didn't find any BSD compatible name lister, look for dumpbin.
4598 if test -n "$ac_tool_prefix"; then
4599 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4602 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4606 $as_echo_n "(cached) " >&6
4608 if test -n "$DUMPBIN"; then
4609 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir
=.
4616 for ac_exec_ext
in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 DUMPBIN
=$ac_cv_prog_DUMPBIN
4629 if test -n "$DUMPBIN"; then
4630 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4631 $as_echo "$DUMPBIN" >&6; }
4633 { $as_echo "$as_me:$LINENO: result: no" >&5
4634 $as_echo "no" >&6; }
4638 test -n "$DUMPBIN" && break
4641 if test -z "$DUMPBIN"; then
4642 ac_ct_DUMPBIN
=$DUMPBIN
4643 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy
$ac_prog; ac_word
=$2
4647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4650 $as_echo_n "(cached) " >&6
4652 if test -n "$ac_ct_DUMPBIN"; then
4653 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir
=.
4660 for ac_exec_ext
in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4673 if test -n "$ac_ct_DUMPBIN"; then
4674 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4675 $as_echo "$ac_ct_DUMPBIN" >&6; }
4677 { $as_echo "$as_me:$LINENO: result: no" >&5
4678 $as_echo "no" >&6; }
4682 test -n "$ac_ct_DUMPBIN" && break
4685 if test "x$ac_ct_DUMPBIN" = x
; then
4688 case $cross_compiling:$ac_tool_warned in
4690 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4691 whose name does not start with the host triplet. If you think this
4692 configuration is useful to you, please write to autoconf@gnu.org." >&5
4693 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4694 whose name does not start with the host triplet. If you think this
4695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4696 ac_tool_warned
=yes ;;
4698 DUMPBIN
=$ac_ct_DUMPBIN
4703 if test "$DUMPBIN" != ":"; then
4707 test -z "$NM" && NM
=nm
4714 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4715 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4716 if test "${lt_cv_nm_interface+set}" = set; then
4717 $as_echo_n "(cached) " >&6
4719 lt_cv_nm_interface
="BSD nm"
4720 echo "int some_variable = 0;" > conftest.
$ac_ext
4721 (eval echo "\"\$as_me:4721: $ac_compile\"" >&5)
4722 (eval "$ac_compile" 2>conftest.err
)
4723 cat conftest.err
>&5
4724 (eval echo "\"\$as_me:4724: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4725 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4726 cat conftest.err
>&5
4727 (eval echo "\"\$as_me:4727: output\"" >&5)
4728 cat conftest.out
>&5
4729 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4730 lt_cv_nm_interface
="MS dumpbin"
4734 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4735 $as_echo "$lt_cv_nm_interface" >&6; }
4737 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4738 $as_echo_n "checking whether ln -s works... " >&6; }
4740 if test "$LN_S" = "ln -s"; then
4741 { $as_echo "$as_me:$LINENO: result: yes" >&5
4742 $as_echo "yes" >&6; }
4744 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4745 $as_echo "no, using $LN_S" >&6; }
4748 # find the maximum length of command line arguments
4749 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4750 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4751 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4752 $as_echo_n "(cached) " >&6
4759 # On DJGPP, this test can blow up pretty badly due to problems in libc
4760 # (any single argument exceeding 2000 bytes causes a buffer overrun
4761 # during glob expansion). Even if it were fixed, the result of this
4762 # check would be larger than it should be.
4763 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4767 # Under GNU Hurd, this test is not required because there is
4768 # no limit to the length of command line arguments.
4769 # Libtool will interpret -1 as no limit whatsoever
4770 lt_cv_sys_max_cmd_len
=-1;
4774 # On Win9x/ME, this test blows up -- it succeeds, but takes
4775 # about 5 minutes as the teststring grows exponentially.
4776 # Worse, since 9x/ME are not pre-emptively multitasking,
4777 # you end up with a "frozen" computer, even though with patience
4778 # the test eventually succeeds (with a max line length of 256k).
4779 # Instead, let's just punt: use the minimum linelength reported by
4780 # all of the supported platforms: 8192 (on NT/2K/XP).
4781 lt_cv_sys_max_cmd_len
=8192;
4785 # On AmigaOS with pdksh, this test takes hours, literally.
4786 # So we just punt and use a minimum line length of 8192.
4787 lt_cv_sys_max_cmd_len
=8192;
4790 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4791 # This has been around since 386BSD, at least. Likely further.
4792 if test -x /sbin
/sysctl
; then
4793 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4794 elif test -x /usr
/sbin
/sysctl
; then
4795 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4797 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4799 # And add a safety zone
4800 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4801 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4805 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4806 lt_cv_sys_max_cmd_len
=196608
4810 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4811 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4812 # nice to cause kernel panics so lets avoid the loop below.
4813 # First set a reasonable default.
4814 lt_cv_sys_max_cmd_len
=16384
4816 if test -x /sbin
/sysconfig
; then
4817 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4818 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4823 lt_cv_sys_max_cmd_len
=102400
4825 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4826 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4827 if test -n "$kargmax"; then
4828 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4830 lt_cv_sys_max_cmd_len
=32768
4834 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4835 if test -n "$lt_cv_sys_max_cmd_len"; then
4836 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4837 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4839 # Make teststring a little bigger before we do anything with it.
4840 # a 1K string should be a reasonable start.
4841 for i
in 1 2 3 4 5 6 7 8 ; do
4842 teststring
=$teststring$teststring
4844 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4845 # If test is not a shell built-in, we'll probably end up computing a
4846 # maximum length that is only half of the actual maximum length, but
4848 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4849 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4850 test $i != 17 # 1/2 MB should be enough
4853 teststring
=$teststring$teststring
4855 # Only check the string length outside the loop.
4856 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4858 # Add a significant safety factor because C++ compilers can tack on
4859 # massive amounts of additional arguments before passing them to the
4860 # linker. It appears as though 1/2 is a usable value.
4861 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4868 if test -n $lt_cv_sys_max_cmd_len ; then
4869 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4870 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4872 { $as_echo "$as_me:$LINENO: result: none" >&5
4873 $as_echo "none" >&6; }
4875 max_cmd_len
=$lt_cv_sys_max_cmd_len
4886 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4887 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4888 # Try some XSI features
4891 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4893 && eval 'test $(( 1 + 1 )) -eq 2 \
4894 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4896 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
4897 $as_echo "$xsi_shell" >&6; }
4900 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
4901 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
4903 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
4905 && lt_shell_append=yes
4906 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
4907 $as_echo "$lt_shell_append" >&6; }
4910 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4920 # test EBCDIC or ASCII
4921 case `echo X|tr X '\101'` in
4922 A) # ASCII based system
4923 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4924 lt_SP2NL='tr \040 \012'
4925 lt_NL2SP='tr \015\012 \040\040'
4927 *) # EBCDIC based system
4928 lt_SP2NL='tr \100 \n'
4929 lt_NL2SP='tr \r\n \100\100'
4941 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
4942 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
4943 if test "${lt_cv_ld_reload_flag+set}" = set; then
4944 $as_echo_n "(cached
) " >&6
4946 lt_cv_ld_reload_flag='-r'
4948 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
4949 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4950 reload_flag=$lt_cv_ld_reload_flag
4951 case $reload_flag in
4953 *) reload_flag=" $reload_flag" ;;
4955 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4958 if test "$GCC" = yes; then
4959 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4961 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4975 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
4976 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
4977 if test "${lt_cv_deplibs_check_method+set}" = set; then
4978 $as_echo_n "(cached
) " >&6
4980 lt_cv_file_magic_cmd='$MAGIC_CMD'
4981 lt_cv_file_magic_test_file=
4982 lt_cv_deplibs_check_method='unknown'
4983 # Need to set the preceding variable on all platforms that support
4984 # interlibrary dependencies.
4985 # 'none' -- dependencies not supported.
4986 # `unknown' -- same as none, but documents that we really don't know.
4987 # 'pass_all' -- all dependencies passed with no checks.
4988 # 'test_compile' -- check by making test program.
4989 # 'file_magic [[regex]]' -- check by looking for files in library path
4990 # which responds to the $file_magic_cmd with a given extended regex.
4991 # If you have `file' or equivalent on your system and you're not sure
4992 # whether `pass_all' will *always* work, you probably want this one.
4996 lt_cv_deplibs_check_method=pass_all
5000 lt_cv_deplibs_check_method=pass_all
5004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5005 lt_cv_file_magic_cmd='/usr/bin/file -L'
5006 lt_cv_file_magic_test_file=/shlib/libc.so
5010 # func_win32_libid is a shell function defined in ltmain.sh
5011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5012 lt_cv_file_magic_cmd='func_win32_libid'
5016 # Base MSYS/MinGW do not provide the 'file' command needed by
5017 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5018 # unless we find 'file', for example because we are cross-compiling.
5019 if ( file / ) >/dev/null 2>&1; then
5020 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5021 lt_cv_file_magic_cmd='func_win32_libid'
5023 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5024 lt_cv_file_magic_cmd='$OBJDUMP -f'
5028 darwin* | rhapsody*)
5029 lt_cv_deplibs_check_method=pass_all
5032 freebsd* | dragonfly*)
5033 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5036 # Not sure whether the presence of OpenBSD here was a mistake.
5037 # Let's accept both of them until this is cleared up.
5038 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5039 lt_cv_file_magic_cmd=/usr/bin/file
5040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5044 lt_cv_deplibs_check_method=pass_all
5049 lt_cv_deplibs_check_method=pass_all
5052 hpux10.20* | hpux11*)
5053 lt_cv_file_magic_cmd=/usr/bin/file
5056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5057 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5060 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]'
5061 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5064 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5065 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5071 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5075 irix5* | irix6* | nonstopux*)
5077 *-32|*"-32 ") libmagic=32-bit;;
5078 *-n32|*"-n32 ") libmagic=N32;;
5079 *-64|*"-64 ") libmagic=64-bit;;
5080 *) libmagic=never-match;;
5082 lt_cv_deplibs_check_method=pass_all
5085 # This must be Linux ELF.
5086 linux* | k*bsd*-gnu)
5087 lt_cv_deplibs_check_method=pass_all
5091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5100 lt_cv_file_magic_cmd=/usr/bin/file
5101 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5105 lt_cv_deplibs_check_method=pass_all
5109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5116 osf3* | osf4* | osf5*)
5117 lt_cv_deplibs_check_method=pass_all
5121 lt_cv_deplibs_check_method=pass_all
5125 lt_cv_deplibs_check_method=pass_all
5128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5129 lt_cv_deplibs_check_method=pass_all
5133 case $host_vendor in
5135 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]'
5136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5139 lt_cv_deplibs_check_method=pass_all
5142 lt_cv_file_magic_cmd='/bin/file'
5143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5146 lt_cv_file_magic_cmd='/bin/file'
5147 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5148 lt_cv_file_magic_test_file=/lib/libc.so
5151 lt_cv_deplibs_check_method=pass_all
5154 lt_cv_deplibs_check_method=pass_all
5160 lt_cv_deplibs_check_method=pass_all
5165 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5166 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5167 file_magic_cmd=$lt_cv_file_magic_cmd
5168 deplibs_check_method=$lt_cv_deplibs_check_method
5169 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5182 if test -n "$ac_tool_prefix"; then
5183 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5184 set dummy ${ac_tool_prefix}ar; ac_word=$2
5185 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5186 $as_echo_n "checking
for $ac_word...
" >&6; }
5187 if test "${ac_cv_prog_AR+set}" = set; then
5188 $as_echo_n "(cached
) " >&6
5190 if test -n "$AR"; then
5191 ac_cv_prog_AR="$AR" # Let the user override the test.
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_prog_AR="${ac_tool_prefix}ar"
5201 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5211 if test -n "$AR"; then
5212 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5213 $as_echo "$AR" >&6; }
5215 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5216 $as_echo "no
" >&6; }
5221 if test -z "$ac_cv_prog_AR"; then
5223 # Extract the first word of "ar", so it can be a program name with args.
5224 set dummy ar; ac_word=$2
5225 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5226 $as_echo_n "checking
for $ac_word...
" >&6; }
5227 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5228 $as_echo_n "(cached
) " >&6
5230 if test -n "$ac_ct_AR"; then
5231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_ac_ct_AR="ar"
5241 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5251 if test -n "$ac_ct_AR"; then
5252 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5253 $as_echo "$ac_ct_AR" >&6; }
5255 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5256 $as_echo "no
" >&6; }
5259 if test "x
$ac_ct_AR" = x; then
5262 case $cross_compiling:$ac_tool_warned in
5264 { $as_echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5265 whose name does not start with the
host triplet. If you think this
5266 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5267 $as_echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5268 whose name does not start with the
host triplet. If you think this
5269 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5270 ac_tool_warned=yes ;;
5278 test -z "$AR" && AR=ar
5279 test -z "$AR_FLAGS" && AR_FLAGS=cru
5291 if test -n "$ac_tool_prefix"; then
5292 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5293 set dummy ${ac_tool_prefix}strip; ac_word=$2
5294 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5295 $as_echo_n "checking
for $ac_word...
" >&6; }
5296 if test "${ac_cv_prog_STRIP+set}" = set; then
5297 $as_echo_n "(cached
) " >&6
5299 if test -n "$STRIP"; then
5300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5310 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5319 STRIP=$ac_cv_prog_STRIP
5320 if test -n "$STRIP"; then
5321 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5322 $as_echo "$STRIP" >&6; }
5324 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5325 $as_echo "no
" >&6; }
5330 if test -z "$ac_cv_prog_STRIP"; then
5332 # Extract the first word of "strip
", so it can be a program name with args.
5333 set dummy strip; ac_word=$2
5334 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5335 $as_echo_n "checking
for $ac_word...
" >&6; }
5336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5337 $as_echo_n "(cached
) " >&6
5339 if test -n "$ac_ct_STRIP"; then
5340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_ac_ct_STRIP="strip
"
5350 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5360 if test -n "$ac_ct_STRIP"; then
5361 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5362 $as_echo "$ac_ct_STRIP" >&6; }
5364 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5365 $as_echo "no
" >&6; }
5368 if test "x
$ac_ct_STRIP" = x; then
5371 case $cross_compiling:$ac_tool_warned in
5373 { $as_echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5374 whose name does not start with the
host triplet. If you think this
5375 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5376 $as_echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5377 whose name does not start with the
host triplet. If you think this
5378 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5379 ac_tool_warned=yes ;;
5384 STRIP="$ac_cv_prog_STRIP"
5387 test -z "$STRIP" && STRIP=:
5394 if test -n "$ac_tool_prefix"; then
5395 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5396 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5397 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5398 $as_echo_n "checking
for $ac_word...
" >&6; }
5399 if test "${ac_cv_prog_RANLIB+set}" = set; then
5400 $as_echo_n "(cached
) " >&6
5402 if test -n "$RANLIB"; then
5403 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5413 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5422 RANLIB=$ac_cv_prog_RANLIB
5423 if test -n "$RANLIB"; then
5424 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5425 $as_echo "$RANLIB" >&6; }
5427 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5428 $as_echo "no
" >&6; }
5433 if test -z "$ac_cv_prog_RANLIB"; then
5434 ac_ct_RANLIB=$RANLIB
5435 # Extract the first word of "ranlib
", so it can be a program name with args.
5436 set dummy ranlib; ac_word=$2
5437 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5438 $as_echo_n "checking
for $ac_word...
" >&6; }
5439 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5440 $as_echo_n "(cached
) " >&6
5442 if test -n "$ac_ct_RANLIB"; then
5443 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5453 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5462 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5463 if test -n "$ac_ct_RANLIB"; then
5464 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5465 $as_echo "$ac_ct_RANLIB" >&6; }
5467 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5468 $as_echo "no
" >&6; }
5471 if test "x
$ac_ct_RANLIB" = x; then
5474 case $cross_compiling:$ac_tool_warned in
5476 { $as_echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5477 whose name does not start with the
host triplet. If you think this
5478 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5479 $as_echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5480 whose name does not start with the
host triplet. If you think this
5481 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5482 ac_tool_warned=yes ;;
5484 RANLIB=$ac_ct_RANLIB
5487 RANLIB="$ac_cv_prog_RANLIB"
5490 test -z "$RANLIB" && RANLIB=:
5497 # Determine commands to create old-style static archives.
5498 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5499 old_postinstall_cmds='chmod 644 $oldlib'
5500 old_postuninstall_cmds=
5502 if test -n "$RANLIB"; then
5505 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5508 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5511 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5547 # If no C compiler was specified, use CC.
5550 # If no C compiler flags were specified, use CFLAGS.
5551 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5553 # Allow CC to be a program name with arguments.
5557 # Check for command to grab the raw symbol name followed by C symbol from nm.
5558 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5559 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5560 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5561 $as_echo_n "(cached
) " >&6
5564 # These are sane defaults that work on at least a few old systems.
5565 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5567 # Character class describing NM global symbol codes.
5568 symcode='[BCDEGRST]'
5570 # Regexp to match symbols that can be accessed directly from C.
5571 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5573 # Define system-specific variables.
5578 cygwin* | mingw* | pw32*)
5579 symcode='[ABCDGISTW]'
5582 if test "$host_cpu" = ia64; then
5583 symcode='[ABCDEGRST]'
5587 symcode='[BCDEGRST]'
5590 symcode='[BCDEGQRST]'
5601 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5609 # If we're using GNU nm, then use its standard symbol codes.
5610 case `$NM -V 2>&1` in
5611 *GNU* | *'with BFD'*)
5612 symcode='[ABCDGIRSTW]' ;;
5615 # Transform an extracted symbol line into a proper C declaration.
5616 # Some systems (esp. on ia64) link data and code symbols differently,
5617 # so use this general approach.
5618 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5620 # Transform an extracted symbol line into symbol name and symbol address
5621 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5622 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5624 # Handle CRLF in mingw tool chain
5628 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5632 # Try without a prefix underscore, then with it.
5633 for ac_symprfx in "" "_
"; do
5635 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5636 symxfrm="\\1 $ac_symprfx\\2 \\2"
5638 # Write the raw and C identifiers.
5639 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5640 # Fake it for dumpbin and say T for any non-static function
5641 # and D for any global variable.
5642 # Also find C++ and __fastcall symbols from MSVC++,
5643 # which start with @ or ?.
5644 lt_cv_sys_global_symbol_pipe="$AWK '"\
5645 " {last_section=section; section=\$ 3};"\
5646 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5647 " \$ 0!~/External *\|/{next};"\
5648 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5649 " {if(hide[section]) next};"\
5650 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5651 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5652 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5653 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5654 " ' prfx
=^
$ac_symprfx"
5656 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5659 # Check to see that the pipe works correctly.
5663 cat > conftest.$ac_ext <<_LT_EOF
5668 void nm_test_func(void);
5669 void nm_test_func(void){}
5673 int main(){nm_test_var='a';nm_test_func();return(0);}
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>&5
5679 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5680 (exit $ac_status); }; then
5681 # Now try to grab the symbols.
5683 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5684 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5686 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5687 (exit $ac_status); } && test -s "$nlist"; then
5688 # Try sorting and uniquifying the output.
5689 if sort "$nlist" | uniq > "$nlist"T; then
5690 mv -f "$nlist"T "$nlist"
5695 # Make sure that we snagged all the symbols we need.
5696 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5697 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5698 cat <<_LT_EOF > conftest.$ac_ext
5704 # Now generate the symbol file.
5705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5707 cat <<_LT_EOF >> conftest.$ac_ext
5709 /* The mapping between symbol names and symbols. */
5714 lt__PROGRAM__LTX_preloaded_symbols[] =
5716 { "@PROGRAM@
", (void *) 0 },
5718 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5719 cat <<\_LT_EOF >> conftest.$ac_ext
5723 /* This works around a problem in FreeBSD linker */
5724 #ifdef FREEBSD_WORKAROUND
5725 static const void *lt_preloaded_setup() {
5726 return lt__PROGRAM__LTX_preloaded_symbols;
5734 # Now try linking the two files.
5735 mv conftest.$ac_objext conftstm.$ac_objext
5736 lt_save_LIBS="$LIBS"
5737 lt_save_CFLAGS="$CFLAGS"
5738 LIBS="conftstm.
$ac_objext"
5739 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5743 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5744 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5747 LIBS="$lt_save_LIBS"
5748 CFLAGS="$lt_save_CFLAGS"
5750 echo "cannot
find nm_test_func
in $nlist" >&5
5753 echo "cannot
find nm_test_var
in $nlist" >&5
5756 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5759 echo "$progname: failed program was
:" >&5
5760 cat conftest.$ac_ext >&5
5762 rm -rf conftest* conftst*
5764 # Do not use the global_symbol_pipe unless it works.
5765 if test "$pipe_works" = yes; then
5768 lt_cv_sys_global_symbol_pipe=
5774 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5775 lt_cv_sys_global_symbol_to_cdecl=
5777 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5778 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
5779 $as_echo "failed
" >&6; }
5781 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
5782 $as_echo "ok
" >&6; }
5807 # Check whether --enable-libtool-lock was given.
5808 if test "${enable_libtool_lock+set}" = set; then
5809 enableval=$enable_libtool_lock;
5812 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
5814 # Some flags need to be propagated to the compiler or linker for good
5818 # Find out which ABI we are using.
5819 echo 'int i;' > conftest.$ac_ext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>&5
5823 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5824 (exit $ac_status); }; then
5825 case `/usr/bin/file conftest.$ac_objext` in
5837 # Find out which ABI we are using.
5838 echo '#line 5838 "configure
"' > conftest.$ac_ext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>&5
5842 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5843 (exit $ac_status); }; then
5844 if test "$lt_cv_prog_gnu_ld" = yes; then
5845 case `/usr/bin/file conftest.$ac_objext` in
5847 LD="${LD-ld} -melf32bsmip"
5850 LD="${LD-ld} -melf32bmipn32"
5853 LD="${LD-ld} -melf64bmip"
5857 case `/usr/bin/file conftest.$ac_objext` in
5873 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5874 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5875 # Find out which ABI we are using.
5876 echo 'int i;' > conftest.$ac_ext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>&5
5880 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5881 (exit $ac_status); }; then
5882 case `/usr/bin/file conftest.o` in
5885 x86_64-*kfreebsd*-gnu)
5886 LD="${LD-ld} -m elf_i386_fbsd
"
5889 LD="${LD-ld} -m elf_i386
"
5891 ppc64-*linux*|powerpc64-*linux*)
5892 LD="${LD-ld} -m elf32ppclinux
"
5895 LD="${LD-ld} -m elf_s390
"
5898 LD="${LD-ld} -m elf32_sparc
"
5904 x86_64-*kfreebsd*-gnu)
5905 LD="${LD-ld} -m elf_x86_64_fbsd
"
5908 LD="${LD-ld} -m elf_x86_64
"
5910 ppc*-*linux*|powerpc*-*linux*)
5911 LD="${LD-ld} -m elf64ppc
"
5913 s390*-*linux*|s390*-*tpf*)
5914 LD="${LD-ld} -m elf64_s390
"
5917 LD="${LD-ld} -m elf64_sparc
"
5927 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5928 SAVE_CFLAGS="$CFLAGS"
5929 CFLAGS="$CFLAGS -belf"
5930 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
5931 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
5932 if test "${lt_cv_cc_needs_belf+set}" = set; then
5933 $as_echo_n "(cached
) " >&6
5936 ac_cpp='$CPP $CPPFLAGS'
5937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5941 cat >conftest.$ac_ext <<_ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5956 rm -f conftest.$ac_objext conftest$ac_exeext
5957 if { (ac_try="$ac_link"
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5962 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
5963 $as_echo "$ac_try_echo") >&5
5964 (eval "$ac_link") 2>conftest.er1
5966 grep -v '^ *+' conftest.er1 >conftest.err
5968 cat conftest.err >&5
5969 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5970 (exit $ac_status); } && {
5971 test -z "$ac_c_werror_flag" ||
5972 test ! -s conftest.err
5973 } && test -s conftest$ac_exeext && {
5974 test "$cross_compiling" = yes ||
5975 $as_test_x conftest$ac_exeext
5977 lt_cv_cc_needs_belf=yes
5979 $as_echo "$as_me: failed program was
:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 lt_cv_cc_needs_belf=no
5985 rm -rf conftest.dSYM
5986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5987 conftest$ac_exeext conftest.$ac_ext
5989 ac_cpp='$CPP $CPPFLAGS'
5990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
5996 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5997 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5998 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5999 CFLAGS="$SAVE_CFLAGS"
6003 # Find out which ABI we are using.
6004 echo 'int i;' > conftest.$ac_ext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006 (eval $ac_compile) 2>&5
6008 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6009 (exit $ac_status); }; then
6010 case `/usr/bin/file conftest.o` in
6012 case $lt_cv_prog_gnu_ld in
6013 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6015 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6027 need_locks="$enable_libtool_lock"
6031 rhapsody* | darwin*)
6032 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6035 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6036 $as_echo_n "checking
for $ac_word...
" >&6; }
6037 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6038 $as_echo_n "(cached
) " >&6
6040 if test -n "$DSYMUTIL"; then
6041 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6051 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6060 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6061 if test -n "$DSYMUTIL"; then
6062 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6063 $as_echo "$DSYMUTIL" >&6; }
6065 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6066 $as_echo "no
" >&6; }
6071 if test -z "$ac_cv_prog_DSYMUTIL"; then
6072 ac_ct_DSYMUTIL=$DSYMUTIL
6073 # Extract the first word of "dsymutil
", so it can be a program name with args.
6074 set dummy dsymutil; ac_word=$2
6075 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6076 $as_echo_n "checking
for $ac_word...
" >&6; }
6077 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6078 $as_echo_n "(cached
) " >&6
6080 if test -n "$ac_ct_DSYMUTIL"; then
6081 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6091 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6100 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6101 if test -n "$ac_ct_DSYMUTIL"; then
6102 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6103 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6105 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6106 $as_echo "no
" >&6; }
6109 if test "x
$ac_ct_DSYMUTIL" = x; then
6112 case $cross_compiling:$ac_tool_warned in
6114 { $as_echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6115 whose name does not start with the
host triplet. If you think this
6116 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6117 $as_echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6118 whose name does not start with the
host triplet. If you think this
6119 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6120 ac_tool_warned=yes ;;
6122 DSYMUTIL=$ac_ct_DSYMUTIL
6125 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6128 if test -n "$ac_tool_prefix"; then
6129 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6130 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6131 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6132 $as_echo_n "checking
for $ac_word...
" >&6; }
6133 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6134 $as_echo_n "(cached
) " >&6
6136 if test -n "$NMEDIT"; then
6137 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6147 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6156 NMEDIT=$ac_cv_prog_NMEDIT
6157 if test -n "$NMEDIT"; then
6158 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6159 $as_echo "$NMEDIT" >&6; }
6161 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6162 $as_echo "no
" >&6; }
6167 if test -z "$ac_cv_prog_NMEDIT"; then
6168 ac_ct_NMEDIT=$NMEDIT
6169 # Extract the first word of "nmedit
", so it can be a program name with args.
6170 set dummy nmedit; ac_word=$2
6171 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6172 $as_echo_n "checking
for $ac_word...
" >&6; }
6173 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6174 $as_echo_n "(cached
) " >&6
6176 if test -n "$ac_ct_NMEDIT"; then
6177 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6187 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6196 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6197 if test -n "$ac_ct_NMEDIT"; then
6198 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6199 $as_echo "$ac_ct_NMEDIT" >&6; }
6201 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6202 $as_echo "no
" >&6; }
6205 if test "x
$ac_ct_NMEDIT" = x; then
6208 case $cross_compiling:$ac_tool_warned in
6210 { $as_echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6211 whose name does not start with the
host triplet. If you think this
6212 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6213 $as_echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6214 whose name does not start with the
host triplet. If you think this
6215 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6216 ac_tool_warned=yes ;;
6218 NMEDIT=$ac_ct_NMEDIT
6221 NMEDIT="$ac_cv_prog_NMEDIT"
6224 if test -n "$ac_tool_prefix"; then
6225 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6226 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6227 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6228 $as_echo_n "checking
for $ac_word...
" >&6; }
6229 if test "${ac_cv_prog_LIPO+set}" = set; then
6230 $as_echo_n "(cached
) " >&6
6232 if test -n "$LIPO"; then
6233 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6243 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6252 LIPO=$ac_cv_prog_LIPO
6253 if test -n "$LIPO"; then
6254 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6255 $as_echo "$LIPO" >&6; }
6257 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6258 $as_echo "no
" >&6; }
6263 if test -z "$ac_cv_prog_LIPO"; then
6265 # Extract the first word of "lipo
", so it can be a program name with args.
6266 set dummy lipo; ac_word=$2
6267 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6268 $as_echo_n "checking
for $ac_word...
" >&6; }
6269 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6270 $as_echo_n "(cached
) " >&6
6272 if test -n "$ac_ct_LIPO"; then
6273 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_prog_ac_ct_LIPO="lipo
"
6283 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6292 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6293 if test -n "$ac_ct_LIPO"; then
6294 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6295 $as_echo "$ac_ct_LIPO" >&6; }
6297 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6298 $as_echo "no
" >&6; }
6301 if test "x
$ac_ct_LIPO" = x; then
6304 case $cross_compiling:$ac_tool_warned in
6306 { $as_echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6307 whose name does not start with the
host triplet. If you think this
6308 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6309 $as_echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6310 whose name does not start with the
host triplet. If you think this
6311 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6312 ac_tool_warned=yes ;;
6317 LIPO="$ac_cv_prog_LIPO"
6320 if test -n "$ac_tool_prefix"; then
6321 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6322 set dummy ${ac_tool_prefix}otool; ac_word=$2
6323 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6324 $as_echo_n "checking
for $ac_word...
" >&6; }
6325 if test "${ac_cv_prog_OTOOL+set}" = set; then
6326 $as_echo_n "(cached
) " >&6
6328 if test -n "$OTOOL"; then
6329 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6339 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6348 OTOOL=$ac_cv_prog_OTOOL
6349 if test -n "$OTOOL"; then
6350 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6351 $as_echo "$OTOOL" >&6; }
6353 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6354 $as_echo "no
" >&6; }
6359 if test -z "$ac_cv_prog_OTOOL"; then
6361 # Extract the first word of "otool
", so it can be a program name with args.
6362 set dummy otool; ac_word=$2
6363 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6364 $as_echo_n "checking
for $ac_word...
" >&6; }
6365 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6366 $as_echo_n "(cached
) " >&6
6368 if test -n "$ac_ct_OTOOL"; then
6369 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_ac_ct_OTOOL="otool
"
6379 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6388 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6389 if test -n "$ac_ct_OTOOL"; then
6390 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6391 $as_echo "$ac_ct_OTOOL" >&6; }
6393 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6394 $as_echo "no
" >&6; }
6397 if test "x
$ac_ct_OTOOL" = x; then
6400 case $cross_compiling:$ac_tool_warned in
6402 { $as_echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6403 whose name does not start with the
host triplet. If you think this
6404 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6405 $as_echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6406 whose name does not start with the
host triplet. If you think this
6407 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6408 ac_tool_warned=yes ;;
6413 OTOOL="$ac_cv_prog_OTOOL"
6416 if test -n "$ac_tool_prefix"; then
6417 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6418 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6419 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6420 $as_echo_n "checking
for $ac_word...
" >&6; }
6421 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6422 $as_echo_n "(cached
) " >&6
6424 if test -n "$OTOOL64"; then
6425 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6435 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6444 OTOOL64=$ac_cv_prog_OTOOL64
6445 if test -n "$OTOOL64"; then
6446 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6447 $as_echo "$OTOOL64" >&6; }
6449 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6450 $as_echo "no
" >&6; }
6455 if test -z "$ac_cv_prog_OTOOL64"; then
6456 ac_ct_OTOOL64=$OTOOL64
6457 # Extract the first word of "otool64
", so it can be a program name with args.
6458 set dummy otool64; ac_word=$2
6459 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6460 $as_echo_n "checking
for $ac_word...
" >&6; }
6461 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6462 $as_echo_n "(cached
) " >&6
6464 if test -n "$ac_ct_OTOOL64"; then
6465 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6475 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6484 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6485 if test -n "$ac_ct_OTOOL64"; then
6486 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6487 $as_echo "$ac_ct_OTOOL64" >&6; }
6489 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6490 $as_echo "no
" >&6; }
6493 if test "x
$ac_ct_OTOOL64" = x; then
6496 case $cross_compiling:$ac_tool_warned in
6498 { $as_echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6499 whose name does not start with the
host triplet. If you think this
6500 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6501 $as_echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6502 whose name does not start with the
host triplet. If you think this
6503 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6504 ac_tool_warned=yes ;;
6506 OTOOL64=$ac_ct_OTOOL64
6509 OTOOL64="$ac_cv_prog_OTOOL64"
6538 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6539 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6540 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6541 $as_echo_n "(cached
) " >&6
6543 lt_cv_apple_cc_single_mod=no
6544 if test -z "${LT_MULTI_MODULE}"; then
6545 # By default we will add the -single_module flag. You can override
6546 # by either setting the environment variable LT_MULTI_MODULE
6547 # non-empty at configure time, or by adding -multi_module to the
6549 rm -rf libconftest.dylib*
6550 echo "int foo
(void
){return 1;}" > conftest.c
6551 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6552 -dynamiclib -Wl,-single_module conftest.c
" >&5
6553 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6554 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6556 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6557 lt_cv_apple_cc_single_mod=yes
6559 cat conftest.err >&5
6561 rm -rf libconftest.dylib*
6565 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6566 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6567 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6568 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6569 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6570 $as_echo_n "(cached
) " >&6
6572 lt_cv_ld_exported_symbols_list=no
6573 save_LDFLAGS=$LDFLAGS
6574 echo "_main
" > conftest.sym
6575 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6576 cat >conftest.$ac_ext <<_ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6591 rm -f conftest.$ac_objext conftest$ac_exeext
6592 if { (ac_try="$ac_link"
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6597 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6598 $as_echo "$ac_try_echo") >&5
6599 (eval "$ac_link") 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest$ac_exeext && {
6609 test "$cross_compiling" = yes ||
6610 $as_test_x conftest$ac_exeext
6612 lt_cv_ld_exported_symbols_list=yes
6614 $as_echo "$as_me: failed program was
:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6617 lt_cv_ld_exported_symbols_list=no
6620 rm -rf conftest.dSYM
6621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6622 conftest$ac_exeext conftest.$ac_ext
6623 LDFLAGS="$save_LDFLAGS"
6626 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6627 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6629 rhapsody* | darwin1.[012])
6630 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6632 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6633 darwin*) # darwin 5.x on
6634 # if running on 10.5 or later, the deployment target defaults
6635 # to the OS version, if on x86, and 10.4, the deployment
6636 # target defaults to 10.4. Don't you love it?
6637 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6638 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6639 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6641 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6643 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6647 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6648 _lt_dar_single_mod='$single_module'
6650 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6651 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6653 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6655 if test "$DSYMUTIL" != ":"; then
6656 _lt_dsymutil='~$DSYMUTIL $lib || :'
6664 { $as_echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
6665 $as_echo_n "checking
for ANSI C header files...
" >&6; }
6666 if test "${ac_cv_header_stdc+set}" = set; then
6667 $as_echo_n "(cached
) " >&6
6669 cat >conftest.$ac_ext <<_ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6688 rm -f conftest.$ac_objext
6689 if { (ac_try="$ac_compile"
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6695 $as_echo "$ac_try_echo") >&5
6696 (eval "$ac_compile") 2>conftest.er1
6698 grep -v '^ *+' conftest.er1 >conftest.err
6700 cat conftest.err >&5
6701 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6702 (exit $ac_status); } && {
6703 test -z "$ac_c_werror_flag" ||
6704 test ! -s conftest.err
6705 } && test -s conftest.$ac_objext; then
6706 ac_cv_header_stdc=yes
6708 $as_echo "$as_me: failed program was
:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6711 ac_cv_header_stdc=no
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 if test $ac_cv_header_stdc = yes; then
6717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6727 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6728 $EGREP "memchr
" >/dev/null 2>&1; then
6731 ac_cv_header_stdc=no
6737 if test $ac_cv_header_stdc = yes; then
6738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6739 cat >conftest.$ac_ext <<_ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6748 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6749 $EGREP "free
" >/dev/null 2>&1; then
6752 ac_cv_header_stdc=no
6758 if test $ac_cv_header_stdc = yes; then
6759 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6760 if test "$cross_compiling" = yes; then
6763 cat >conftest.$ac_ext <<_ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6771 #if ((' ' & 0x0FF) == 0x020)
6772 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6773 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6775 # define ISLOWER(c) \
6776 (('a' <= (c) && (c) <= 'i') \
6777 || ('j' <= (c) && (c) <= 'r') \
6778 || ('s' <= (c) && (c) <= 'z'))
6779 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6782 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6787 for (i = 0; i < 256; i++)
6788 if (XOR (islower (i), ISLOWER (i))
6789 || toupper (i) != TOUPPER (i))
6794 rm -f conftest$ac_exeext
6795 if { (ac_try="$ac_link"
6797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6800 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6801 $as_echo "$ac_try_echo") >&5
6802 (eval "$ac_link") 2>&5
6804 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6806 { (case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6810 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6811 $as_echo "$ac_try_echo") >&5
6812 (eval "$ac_try") 2>&5
6814 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6815 (exit $ac_status); }; }; then
6818 $as_echo "$as_me: program exited with status
$ac_status" >&5
6819 $as_echo "$as_me: failed program was
:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6823 ac_cv_header_stdc=no
6825 rm -rf conftest.dSYM
6826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6832 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
6833 $as_echo "$ac_cv_header_stdc" >&6; }
6834 if test $ac_cv_header_stdc = yes; then
6836 cat >>confdefs.h <<\_ACEOF
6837 #define STDC_HEADERS 1
6842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6852 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6853 inttypes.h stdint.h unistd.h
6855 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
6856 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
6857 $as_echo_n "checking
for $ac_header...
" >&6; }
6858 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6859 $as_echo_n "(cached
) " >&6
6861 cat >conftest.$ac_ext <<_ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 $ac_includes_default
6869 #include <$ac_header>
6871 rm -f conftest.$ac_objext
6872 if { (ac_try="$ac_compile"
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6877 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6881 grep -v '^ *+' conftest.er1 >conftest.err
6883 cat conftest.err >&5
6884 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 eval "$as_ac_Header=yes"
6891 $as_echo "$as_me: failed program was
:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 eval "$as_ac_Header=no
"
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 ac_res=`eval 'as_val=${'$as_ac_Header'}
6900 $as_echo "$as_val"'`
6901 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
6902 $as_echo "$ac_res" >&6; }
6903 if test `eval 'as_val=${'$as_ac_Header'}
6904 $as_echo "$as_val"'` = yes; then
6905 cat >>confdefs.h <<_ACEOF
6906 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
6915 for ac_header in dlfcn.h
6917 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
6918 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
6919 $as_echo_n "checking
for $ac_header...
" >&6; }
6920 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6921 $as_echo_n "(cached
) " >&6
6923 cat >conftest.$ac_ext <<_ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 $ac_includes_default
6931 #include <$ac_header>
6933 rm -f conftest.$ac_objext
6934 if { (ac_try="$ac_compile"
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6939 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941 (eval "$ac_compile") 2>conftest.er1
6943 grep -v '^ *+' conftest.er1 >conftest.err
6945 cat conftest.err >&5
6946 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6947 (exit $ac_status); } && {
6948 test -z "$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6950 } && test -s conftest.$ac_objext; then
6951 eval "$as_ac_Header=yes"
6953 $as_echo "$as_me: failed program was
:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 eval "$as_ac_Header=no
"
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 ac_res=`eval 'as_val=${'$as_ac_Header'}
6962 $as_echo "$as_val"'`
6963 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
6964 $as_echo "$ac_res" >&6; }
6965 if test `eval 'as_val=${'$as_ac_Header'}
6966 $as_echo "$as_val"'` = yes; then
6967 cat >>confdefs.h <<_ACEOF
6968 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
6978 # Check whether --enable-shared was given.
6979 if test "${enable_shared+set}" = set; then
6980 enableval=$enable_shared; p=${PACKAGE-default}
6982 yes) enable_shared=yes ;;
6983 no) enable_shared=no ;;
6986 # Look at the argument we got. We use all the common list separators.
6987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6988 for pkg in $enableval; do
6990 if test "X
$pkg" = "X
$p"; then
7017 # Check whether --enable-static was given.
7018 if test "${enable_static+set}" = set; then
7019 enableval=$enable_static; p=${PACKAGE-default}
7021 yes) enable_static=yes ;;
7022 no) enable_static=no ;;
7025 # Look at the argument we got. We use all the common list separators.
7026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7027 for pkg in $enableval; do
7029 if test "X
$pkg" = "X
$p"; then
7049 # Check whether --with-pic was given.
7050 if test "${with_pic+set}" = set; then
7051 withval=$with_pic; pic_mode="$withval"
7057 test -z "$pic_mode" && pic_mode=default
7065 # Check whether --enable-fast-install was given.
7066 if test "${enable_fast_install+set}" = set; then
7067 enableval=$enable_fast_install; p=${PACKAGE-default}
7069 yes) enable_fast_install=yes ;;
7070 no) enable_fast_install=no ;;
7072 enable_fast_install=no
7073 # Look at the argument we got. We use all the common list separators.
7074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7075 for pkg in $enableval; do
7077 if test "X
$pkg" = "X
$p"; then
7078 enable_fast_install=yes
7085 enable_fast_install=yes
7098 # This can be used to rebuild libtool when needed
7099 LIBTOOL_DEPS="$ltmain"
7101 # Always use our own libtool.
7102 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7128 test -z "$LN_S" && LN_S="ln -s"
7143 if test -n "${ZSH_VERSION+set}" ; then
7144 setopt NO_GLOB_SUBST
7147 { $as_echo "$as_me:$LINENO: checking
for objdir
" >&5
7148 $as_echo_n "checking
for objdir...
" >&6; }
7149 if test "${lt_cv_objdir+set}" = set; then
7150 $as_echo_n "(cached
) " >&6
7152 rm -f .libs 2>/dev/null
7153 mkdir .libs 2>/dev/null
7154 if test -d .libs; then
7157 # MS-DOS does not allow filenames that begin with a dot.
7160 rmdir .libs 2>/dev/null
7162 { $as_echo "$as_me:$LINENO: result
: $lt_cv_objdir" >&5
7163 $as_echo "$lt_cv_objdir" >&6; }
7164 objdir=$lt_cv_objdir
7170 cat >>confdefs.h <<_ACEOF
7171 #define LT_OBJDIR "$lt_cv_objdir/"
7192 # AIX sometimes has problems with the GCC collect2 program. For some
7193 # reason, if we set the COLLECT_NAMES environment variable, the problems
7194 # vanish in a puff of smoke.
7195 if test "X
${COLLECT_NAMES+set}" != Xset; then
7197 export COLLECT_NAMES
7202 # Sed substitution that helps us do robust quoting. It backslashifies
7203 # metacharacters that are still active within double-quoted strings.
7204 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7206 # Same as above, but do not quote variable references.
7207 double_quote_subst='s/\(["`\\]\
)/\\\
1/g
'
7209 # Sed substitution to delay expansion of an escaped shell variable in a
7210 # double_quote_subst'ed string.
7211 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7213 # Sed substitution to delay expansion of an escaped single quote.
7214 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7216 # Sed substitution to avoid accidental globbing in evaled expressions
7217 no_glob_subst
='s/\*/\\\*/g'
7221 can_build_shared
=yes
7223 # All known linkers require a `.a' archive for static linking (except MSVC,
7224 # which needs '.lib').
7227 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7230 old_CFLAGS
="$CFLAGS"
7232 # Set sane defaults for various variables
7233 test -z "$CC" && CC
=cc
7234 test -z "$LTCC" && LTCC
=$CC
7235 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7236 test -z "$LD" && LD
=ld
7237 test -z "$ac_objext" && ac_objext
=o
7239 for cc_temp
in $compiler""; do
7241 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7242 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7247 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7250 # Only perform the check for file, if the check method requires it
7251 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7252 case $deplibs_check_method in
7254 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7255 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7256 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7257 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7258 $as_echo_n "(cached) " >&6
7262 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7265 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7266 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7267 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7268 for ac_dir
in $ac_dummy; do
7270 test -z "$ac_dir" && ac_dir
=.
7271 if test -f $ac_dir/${ac_tool_prefix}file; then
7272 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7273 if test -n "$file_magic_test_file"; then
7274 case $deplibs_check_method in
7276 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7277 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7278 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7279 $EGREP "$file_magic_regex" > /dev
/null
; then
7284 *** Warning: the command libtool uses to detect shared libraries,
7285 *** $file_magic_cmd, produces output that libtool cannot recognize.
7286 *** The result is that libtool may fail to recognize shared libraries
7287 *** as such. This will affect the creation of libtool libraries that
7288 *** depend on shared libraries, but programs linked with such libtool
7289 *** libraries will work regardless of this problem. Nevertheless, you
7290 *** may want to report the problem to your system manager and/or to
7291 *** bug-libtool@gnu.org
7301 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7306 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7307 if test -n "$MAGIC_CMD"; then
7308 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7309 $as_echo "$MAGIC_CMD" >&6; }
7311 { $as_echo "$as_me:$LINENO: result: no" >&5
7312 $as_echo "no" >&6; }
7319 if test -z "$lt_cv_path_MAGIC_CMD"; then
7320 if test -n "$ac_tool_prefix"; then
7321 { $as_echo "$as_me:$LINENO: checking for file" >&5
7322 $as_echo_n "checking for file... " >&6; }
7323 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7324 $as_echo_n "(cached) " >&6
7328 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7331 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7332 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7333 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7334 for ac_dir
in $ac_dummy; do
7336 test -z "$ac_dir" && ac_dir
=.
7337 if test -f $ac_dir/file; then
7338 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7339 if test -n "$file_magic_test_file"; then
7340 case $deplibs_check_method in
7342 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7343 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7344 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7345 $EGREP "$file_magic_regex" > /dev
/null
; then
7350 *** Warning: the command libtool uses to detect shared libraries,
7351 *** $file_magic_cmd, produces output that libtool cannot recognize.
7352 *** The result is that libtool may fail to recognize shared libraries
7353 *** as such. This will affect the creation of libtool libraries that
7354 *** depend on shared libraries, but programs linked with such libtool
7355 *** libraries will work regardless of this problem. Nevertheless, you
7356 *** may want to report the problem to your system manager and/or to
7357 *** bug-libtool@gnu.org
7367 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7372 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7373 if test -n "$MAGIC_CMD"; then
7374 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7375 $as_echo "$MAGIC_CMD" >&6; }
7377 { $as_echo "$as_me:$LINENO: result: no" >&5
7378 $as_echo "no" >&6; }
7391 # Use C for the default configuration in the libtool script
7395 ac_cpp
='$CPP $CPPFLAGS'
7396 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7401 # Source file extension for C test sources.
7404 # Object file extension for compiled C test sources.
7408 # Code to be used in simple compile tests
7409 lt_simple_compile_test_code
="int some_variable = 0;"
7411 # Code to be used in simple link tests
7412 lt_simple_link_test_code
='int main(){return(0);}'
7420 # If no C compiler was specified, use CC.
7423 # If no C compiler flags were specified, use CFLAGS.
7424 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7426 # Allow CC to be a program name with arguments.
7429 # Save the default compiler, since it gets overwritten when the other
7430 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7431 compiler_DEFAULT
=$CC
7433 # save warnings/boilerplate of simple test code
7434 ac_outfile
=conftest.
$ac_objext
7435 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7436 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7437 _lt_compiler_boilerplate
=`cat conftest.err`
7440 ac_outfile
=conftest.
$ac_objext
7441 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7442 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7443 _lt_linker_boilerplate
=`cat conftest.err`
7448 ## There is no encapsulation within the following macros, do not change
7449 ## the running order or otherwise move them around unless you know exactly
7450 ## what you are doing...
7451 if test -n "$compiler"; then
7453 lt_prog_compiler_no_builtin_flag
=
7455 if test "$GCC" = yes; then
7456 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7458 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7459 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7460 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7461 $as_echo_n "(cached) " >&6
7463 lt_cv_prog_compiler_rtti_exceptions
=no
7464 ac_outfile
=conftest.
$ac_objext
7465 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7466 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7467 # Insert the option either (1) after the last *FLAGS variable, or
7468 # (2) before a word containing "conftest.", or (3) at the end.
7469 # Note that $ac_compile itself does not contain backslashes and begins
7470 # with a dollar sign (not a hyphen), so the echo should work correctly.
7471 # The option is referenced via a variable to avoid confusing sed.
7472 lt_compile
=`echo "$ac_compile" | $SED \
7473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7475 -e 's:$: $lt_compiler_flag:'`
7476 (eval echo "\"\$as_me:7476: $lt_compile\"" >&5)
7477 (eval "$lt_compile" 2>conftest.err
)
7479 cat conftest.err
>&5
7480 echo "$as_me:7480: \$? = $ac_status" >&5
7481 if (exit $ac_status) && test -s "$ac_outfile"; then
7482 # The compiler can only warn and ignore the option if not recognized
7483 # So say no if there are warnings other than the usual output.
7484 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7485 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7486 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7487 lt_cv_prog_compiler_rtti_exceptions
=yes
7493 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7494 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7496 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7497 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7509 lt_prog_compiler_wl
=
7510 lt_prog_compiler_pic
=
7511 lt_prog_compiler_static
=
7513 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7514 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7516 if test "$GCC" = yes; then
7517 lt_prog_compiler_wl
='-Wl,'
7518 lt_prog_compiler_static
='-static'
7522 # All AIX code is PIC.
7523 if test "$host_cpu" = ia64
; then
7524 # AIX 5 now supports IA64 processor
7525 lt_prog_compiler_static
='-Bstatic'
7532 # see comment about AmigaOS4 .so support
7533 lt_prog_compiler_pic
='-fPIC'
7536 # FIXME: we need at least 68020 code to build shared libraries, but
7537 # adding the `-m68020' flag to GCC prevents building anything better,
7539 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7544 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7545 # PIC is the default for these OSes.
7548 mingw
* | cygwin
* | pw32
* | os2
*)
7549 # This hack is so that the source file can tell whether it is being
7550 # built for inclusion in a dll (and should export symbols for example).
7551 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7552 # (--disable-auto-import) libraries
7553 lt_prog_compiler_pic
='-DDLL_EXPORT'
7556 darwin
* | rhapsody
*)
7557 # PIC is the default on this platform
7558 # Common symbols not allowed in MH_DYLIB files
7559 lt_prog_compiler_pic
='-fno-common'
7563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7570 lt_prog_compiler_pic
='-fPIC'
7576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7577 # Instead, we relocate shared libraries at runtime.
7581 # Just because we use GCC doesn't mean we suddenly get shared libraries
7582 # on systems that don't support them.
7583 lt_prog_compiler_can_build_shared
=no
7588 # QNX uses GNU C++, but need to define -shared option too, otherwise
7590 lt_prog_compiler_pic
='-fPIC -shared'
7594 if test -d /usr
/nec
; then
7595 lt_prog_compiler_pic
=-Kconform_pic
7600 lt_prog_compiler_pic
='-fPIC'
7604 # PORTME Check for flag to pass linker flags through the system compiler.
7607 lt_prog_compiler_wl
='-Wl,'
7608 if test "$host_cpu" = ia64
; then
7609 # AIX 5 now supports IA64 processor
7610 lt_prog_compiler_static
='-Bstatic'
7612 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7616 mingw
* | cygwin
* | pw32
* | os2
*)
7617 # This hack is so that the source file can tell whether it is being
7618 # built for inclusion in a dll (and should export symbols for example).
7619 lt_prog_compiler_pic
='-DDLL_EXPORT'
7622 hpux9
* | hpux10
* | hpux11
*)
7623 lt_prog_compiler_wl
='-Wl,'
7624 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7631 lt_prog_compiler_pic
='+Z'
7634 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7635 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7638 irix5
* | irix6
* | nonstopux
*)
7639 lt_prog_compiler_wl
='-Wl,'
7640 # PIC (with -KPIC) is the default.
7641 lt_prog_compiler_static
='-non_shared'
7644 linux
* | k
*bsd
*-gnu)
7645 case $cc_basename in
7646 icc
* | ecc
* | ifort
*)
7647 lt_prog_compiler_wl
='-Wl,'
7648 lt_prog_compiler_pic
='-KPIC'
7649 lt_prog_compiler_static
='-static'
7651 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7652 # Portland Group compilers (*not* the Pentium gcc compiler,
7653 # which looks to be a dead project)
7654 lt_prog_compiler_wl
='-Wl,'
7655 lt_prog_compiler_pic
='-fpic'
7656 lt_prog_compiler_static
='-Bstatic'
7659 lt_prog_compiler_wl
='-Wl,'
7660 # All Alpha code is PIC.
7661 lt_prog_compiler_static
='-non_shared'
7664 # IBM XL C 8.0/Fortran 10.1 on PPC
7665 lt_prog_compiler_wl
='-Wl,'
7666 lt_prog_compiler_pic
='-qpic'
7667 lt_prog_compiler_static
='-qstaticlink'
7670 case `$CC -V 2>&1 | sed 5q` in
7673 lt_prog_compiler_pic
='-KPIC'
7674 lt_prog_compiler_static
='-Bstatic'
7675 lt_prog_compiler_wl
='-Wl,'
7678 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7679 lt_prog_compiler_pic
='-KPIC'
7680 lt_prog_compiler_static
='-Bstatic'
7681 lt_prog_compiler_wl
=''
7689 lt_prog_compiler_pic
='-KPIC'
7690 lt_prog_compiler_static
='-Bstatic'
7694 # QNX uses GNU C++, but need to define -shared option too, otherwise
7696 lt_prog_compiler_pic
='-fPIC -shared'
7699 osf3
* | osf4
* | osf5
*)
7700 lt_prog_compiler_wl
='-Wl,'
7701 # All OSF/1 code is PIC.
7702 lt_prog_compiler_static
='-non_shared'
7706 lt_prog_compiler_static
='-non_shared'
7710 lt_prog_compiler_pic
='-KPIC'
7711 lt_prog_compiler_static
='-Bstatic'
7712 case $cc_basename in
7714 lt_prog_compiler_wl
='-Qoption ld ';;
7716 lt_prog_compiler_wl
='-Wl,';;
7721 lt_prog_compiler_wl
='-Qoption ld '
7722 lt_prog_compiler_pic
='-PIC'
7723 lt_prog_compiler_static
='-Bstatic'
7726 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7727 lt_prog_compiler_wl
='-Wl,'
7728 lt_prog_compiler_pic
='-KPIC'
7729 lt_prog_compiler_static
='-Bstatic'
7733 if test -d /usr
/nec
;then
7734 lt_prog_compiler_pic
='-Kconform_pic'
7735 lt_prog_compiler_static
='-Bstatic'
7739 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7740 lt_prog_compiler_wl
='-Wl,'
7741 lt_prog_compiler_pic
='-KPIC'
7742 lt_prog_compiler_static
='-Bstatic'
7746 lt_prog_compiler_wl
='-Wl,'
7747 lt_prog_compiler_can_build_shared
=no
7751 lt_prog_compiler_pic
='-pic'
7752 lt_prog_compiler_static
='-Bstatic'
7756 lt_prog_compiler_can_build_shared
=no
7762 # For platforms which do not support PIC, -DPIC is meaningless:
7764 lt_prog_compiler_pic
=
7767 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7770 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7771 $as_echo "$lt_prog_compiler_pic" >&6; }
7779 # Check to make sure the PIC flag actually works.
7781 if test -n "$lt_prog_compiler_pic"; then
7782 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7783 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7784 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7785 $as_echo_n "(cached) " >&6
7787 lt_cv_prog_compiler_pic_works
=no
7788 ac_outfile
=conftest.
$ac_objext
7789 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7790 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7791 # Insert the option either (1) after the last *FLAGS variable, or
7792 # (2) before a word containing "conftest.", or (3) at the end.
7793 # Note that $ac_compile itself does not contain backslashes and begins
7794 # with a dollar sign (not a hyphen), so the echo should work correctly.
7795 # The option is referenced via a variable to avoid confusing sed.
7796 lt_compile
=`echo "$ac_compile" | $SED \
7797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7799 -e 's:$: $lt_compiler_flag:'`
7800 (eval echo "\"\$as_me:7800: $lt_compile\"" >&5)
7801 (eval "$lt_compile" 2>conftest.err
)
7803 cat conftest.err
>&5
7804 echo "$as_me:7804: \$? = $ac_status" >&5
7805 if (exit $ac_status) && test -s "$ac_outfile"; then
7806 # The compiler can only warn and ignore the option if not recognized
7807 # So say no if there are warnings other than the usual output.
7808 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7809 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7810 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7811 lt_cv_prog_compiler_pic_works
=yes
7817 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7818 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7820 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
7821 case $lt_prog_compiler_pic in
7823 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7826 lt_prog_compiler_pic
=
7827 lt_prog_compiler_can_build_shared
=no
7838 # Check to make sure the static flag actually works.
7840 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7841 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7842 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7843 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7844 $as_echo_n "(cached) " >&6
7846 lt_cv_prog_compiler_static_works
=no
7847 save_LDFLAGS
="$LDFLAGS"
7848 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7849 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7850 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7851 # The linker can only warn and ignore the option if not recognized
7852 # So say no if there are warnings
7853 if test -s conftest.err
; then
7854 # Append any errors to the config.log.
7855 cat conftest.err
1>&5
7856 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7857 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7858 if diff conftest.exp conftest.er2
>/dev
/null
; then
7859 lt_cv_prog_compiler_static_works
=yes
7862 lt_cv_prog_compiler_static_works
=yes
7866 LDFLAGS
="$save_LDFLAGS"
7869 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7870 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7872 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
7875 lt_prog_compiler_static
=
7884 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7885 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7886 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7887 $as_echo_n "(cached) " >&6
7889 lt_cv_prog_compiler_c_o
=no
7890 $RM -r conftest
2>/dev
/null
7894 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7896 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7897 # Insert the option either (1) after the last *FLAGS variable, or
7898 # (2) before a word containing "conftest.", or (3) at the end.
7899 # Note that $ac_compile itself does not contain backslashes and begins
7900 # with a dollar sign (not a hyphen), so the echo should work correctly.
7901 lt_compile
=`echo "$ac_compile" | $SED \
7902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7904 -e 's:$: $lt_compiler_flag:'`
7905 (eval echo "\"\$as_me:7905: $lt_compile\"" >&5)
7906 (eval "$lt_compile" 2>out
/conftest.err
)
7908 cat out
/conftest.err
>&5
7909 echo "$as_me:7909: \$? = $ac_status" >&5
7910 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7912 # The compiler can only warn and ignore the option if not recognized
7913 # So say no if there are warnings
7914 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7915 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7916 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7917 lt_cv_prog_compiler_c_o
=yes
7922 # SGI C++ compiler will create directory out/ii_files/ for
7923 # template instantiation
7924 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
7925 $RM out
/* && rmdir out
7931 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7932 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7939 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7940 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7941 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7942 $as_echo_n "(cached) " >&6
7944 lt_cv_prog_compiler_c_o
=no
7945 $RM -r conftest
2>/dev
/null
7949 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7951 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7952 # Insert the option either (1) after the last *FLAGS variable, or
7953 # (2) before a word containing "conftest.", or (3) at the end.
7954 # Note that $ac_compile itself does not contain backslashes and begins
7955 # with a dollar sign (not a hyphen), so the echo should work correctly.
7956 lt_compile
=`echo "$ac_compile" | $SED \
7957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7959 -e 's:$: $lt_compiler_flag:'`
7960 (eval echo "\"\$as_me:7960: $lt_compile\"" >&5)
7961 (eval "$lt_compile" 2>out
/conftest.err
)
7963 cat out
/conftest.err
>&5
7964 echo "$as_me:7964: \$? = $ac_status" >&5
7965 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7967 # The compiler can only warn and ignore the option if not recognized
7968 # So say no if there are warnings
7969 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7970 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7971 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7972 lt_cv_prog_compiler_c_o
=yes
7977 # SGI C++ compiler will create directory out/ii_files/ for
7978 # template instantiation
7979 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
7980 $RM out
/* && rmdir out
7986 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7987 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7992 hard_links
="nottested"
7993 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7994 # do not overwrite the value of need_locks provided by the user
7995 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7996 $as_echo_n "checking if we can lock with hard links... " >&6; }
7999 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8001 ln conftest.a conftest.b
2>&5 || hard_links
=no
8002 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8003 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8004 $as_echo "$hard_links" >&6; }
8005 if test "$hard_links" = no
; then
8006 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8007 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8019 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8020 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8023 allow_undefined_flag
=
8024 always_export_symbols
=no
8026 archive_expsym_cmds
=
8027 compiler_needs_object
=no
8028 enable_shared_with_static_runtimes
=no
8029 export_dynamic_flag_spec
=
8030 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8031 hardcode_automatic
=no
8033 hardcode_direct_absolute
=no
8034 hardcode_libdir_flag_spec
=
8035 hardcode_libdir_flag_spec_ld
=
8036 hardcode_libdir_separator
=
8038 hardcode_shlibpath_var
=unsupported
8040 link_all_deplibs
=unknown
8043 old_archive_from_new_cmds
=
8044 old_archive_from_expsyms_cmds
=
8045 thread_safe_flag_spec
=
8046 whole_archive_flag_spec
=
8047 # include_expsyms should be a list of space-separated symbols to be *always*
8048 # included in the symbol list
8050 # exclude_expsyms can be an extended regexp of symbols to exclude
8051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8053 # as well as any symbol that contains `d'.
8054 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8056 # platforms (ab)use it in PIC code, but their linkers get confused if
8057 # the symbol is explicitly referenced. Since portable code cannot
8058 # rely on this symbol name, it's probably fine to never include it in
8059 # preloaded symbol tables.
8060 # Exclude shared library initialization/finalization symbols.
8061 extract_expsyms_cmds
=
8064 cygwin
* | mingw
* | pw32
*)
8065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8066 # When not using gcc, we currently assume that we are using
8067 # Microsoft Visual C++.
8068 if test "$GCC" != yes; then
8073 # we just hope/assume this is gcc and not c89 (= MSVC++)
8082 if test "$with_gnu_ld" = yes; then
8083 # If archive_cmds runs LD, not CC, wlarc should be empty
8086 # Set some defaults for GNU ld with shared library support. These
8087 # are reset later if shared libraries are not supported. Putting them
8088 # here allows them to be overridden if necessary.
8089 runpath_var
=LD_RUN_PATH
8090 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8091 export_dynamic_flag_spec
='${wl}--export-dynamic'
8092 # ancient GNU ld didn't support --whole-archive et. al.
8093 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8094 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8096 whole_archive_flag_spec
=
8098 supports_anon_versioning
=no
8099 case `$LD -v 2>&1` in
8100 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8101 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8102 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8103 *\
2.11.
*) ;; # other 2.11 versions
8104 *) supports_anon_versioning
=yes ;;
8107 # See if GNU ld supports shared libraries.
8110 # On AIX/PPC, the GNU linker is very broken
8111 if test "$host_cpu" != ia64
; then
8115 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8116 *** to be unable to reliably create shared libraries on AIX.
8117 *** Therefore, libtool is disabling shared libraries support. If you
8118 *** really care for shared libraries, you may want to modify your PATH
8119 *** so that a non-GNU linker is found, and then restart.
8128 # see comment about AmigaOS4 .so support
8129 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130 archive_expsym_cmds
=''
8133 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)'
8134 hardcode_libdir_flag_spec
='-L$libdir'
8135 hardcode_minus_L
=yes
8141 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8142 allow_undefined_flag
=unsupported
8143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8144 # support --undefined. This deserves some investigation. FIXME
8145 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8151 cygwin
* | mingw
* | pw32
*)
8152 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8153 # as there is no search path for DLLs.
8154 hardcode_libdir_flag_spec
='-L$libdir'
8155 allow_undefined_flag
=unsupported
8156 always_export_symbols
=no
8157 enable_shared_with_static_runtimes
=yes
8158 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8160 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8161 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8162 # If the export-symbols file already is a .def file (1st line
8163 # is EXPORTS), use it as is; otherwise, prepend...
8164 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8165 cp $export_symbols $output_objdir/$soname.def;
8167 echo EXPORTS > $output_objdir/$soname.def;
8168 cat $export_symbols >> $output_objdir/$soname.def;
8170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8178 hardcode_shlibpath_var
=no
8179 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8180 export_dynamic_flag_spec
='${wl}-E'
8181 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8182 # Instead, shared libraries are loaded at an image base (0x10000000 by
8183 # default) and relocated if they conflict, which is a slow very memory
8184 # consuming and fragmenting process. To avoid this, we pick a random,
8185 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8186 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8187 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8188 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8191 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8193 if test "$host_os" = linux-dietlibc
; then
8194 case $cc_basename in
8195 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8198 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8199 && test "$tmp_diet" = no
8202 tmp_sharedflag
='-shared'
8203 case $cc_basename,$host_cpu in
8204 pgcc
*) # Portland Group C compiler
8205 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8206 tmp_addflag
=' $pic_flag'
8208 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8209 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8210 tmp_addflag
=' $pic_flag -Mnomain' ;;
8211 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8212 tmp_addflag
=' -i_dynamic' ;;
8213 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8214 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8215 ifc
* | ifort
*) # Intel Fortran compiler
8216 tmp_addflag
=' -nofor_main' ;;
8217 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8218 tmp_sharedflag
='-qmkshrobj'
8221 case `$CC -V 2>&1 | sed 5q` in
8222 *Sun\ C
*) # Sun C 5.9
8223 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8224 compiler_needs_object
=yes
8225 tmp_sharedflag
='-G' ;;
8226 *Sun\ F
*) # Sun Fortran 8.3
8227 tmp_sharedflag
='-G' ;;
8229 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8231 if test "x$supports_anon_versioning" = xyes
; then
8232 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8234 echo "local: *; };" >> $output_objdir/$libname.ver~
8235 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8238 case $cc_basename in
8240 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8241 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8242 hardcode_libdir_flag_spec
=
8243 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8244 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8245 if test "x$supports_anon_versioning" = xyes
; then
8246 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8248 echo "local: *; };" >> $output_objdir/$libname.ver~
8249 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8259 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8260 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8263 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8269 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8274 *** create shared libraries on Solaris systems. Therefore, libtool
8275 *** is disabling shared libraries support. We urge you to upgrade GNU
8276 *** binutils to release 2.9.1 or newer. Another option is to modify
8277 *** your PATH or compiler configuration so that the native linker is
8278 *** used, and then restart.
8281 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8282 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8289 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8290 case `$LD -v 2>&1` in
8291 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8295 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8296 *** reliably create shared libraries on SCO systems. Therefore, libtool
8297 *** is disabling shared libraries support. We urge you to upgrade GNU
8298 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8299 *** your PATH or compiler configuration so that the native linker is
8300 *** used, and then restart.
8305 # For security reasons, it is highly recommended that you always
8306 # use absolute paths for naming shared libraries, and exclude the
8307 # DT_RUNPATH tag from executables and libraries. But doing so
8308 # requires that you compile everything twice, which is a pain.
8309 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8310 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8311 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8321 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8324 hardcode_shlibpath_var
=no
8328 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8329 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8330 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8337 if test "$ld_shlibs" = no
; then
8339 hardcode_libdir_flag_spec
=
8340 export_dynamic_flag_spec
=
8341 whole_archive_flag_spec
=
8344 # PORTME fill in a description of your system's linker (not GNU ld)
8347 allow_undefined_flag
=unsupported
8348 always_export_symbols
=yes
8349 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'
8350 # Note: this linker hardcodes the directories in LIBPATH if there
8351 # are no directories specified by -L.
8352 hardcode_minus_L
=yes
8353 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8354 # Neither direct hardcoding nor static linking is supported with a
8356 hardcode_direct
=unsupported
8361 if test "$host_cpu" = ia64
; then
8362 # On IA64, the linker does run time linking by default, so we don't
8363 # have to do anything special.
8364 aix_use_runtimelinking
=no
8365 exp_sym_flag
='-Bexport'
8368 # If we're using GNU nm, then we don't want the "-C" option.
8369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8370 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8371 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'
8373 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'
8375 aix_use_runtimelinking
=no
8377 # Test if we are trying to use run time linking or normal
8378 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8379 # need to do runtime linking.
8380 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8381 for ld_flag
in $LDFLAGS; do
8382 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8383 aix_use_runtimelinking
=yes
8390 exp_sym_flag
='-bexport'
8391 no_entry_flag
='-bnoentry'
8394 # When large executables or shared objects are built, AIX ld can
8395 # have problems creating the table of contents. If linking a library
8396 # or program results in "error TOC overflow" add -mminimal-toc to
8397 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8398 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8402 hardcode_direct_absolute
=yes
8403 hardcode_libdir_separator
=':'
8404 link_all_deplibs
=yes
8405 file_list_spec
='${wl}-f,'
8407 if test "$GCC" = yes; then
8408 case $host_os in aix4.
[012]|aix4.
[012].
*)
8409 # We only want to do this on AIX 4.2 and lower, the check
8410 # below for broken collect2 doesn't work under 4.3+
8411 collect2name
=`${CC} -print-prog-name=collect2`
8412 if test -f "$collect2name" &&
8413 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8415 # We have reworked collect2
8418 # We have old collect2
8419 hardcode_direct
=unsupported
8420 # It fails to find uninstalled libraries when the uninstalled
8421 # path is not listed in the libpath. Setting hardcode_minus_L
8422 # to unsupported forces relinking
8423 hardcode_minus_L
=yes
8424 hardcode_libdir_flag_spec
='-L$libdir'
8425 hardcode_libdir_separator
=
8429 shared_flag
='-shared'
8430 if test "$aix_use_runtimelinking" = yes; then
8431 shared_flag
="$shared_flag "'${wl}-G'
8435 if test "$host_cpu" = ia64
; then
8436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8437 # chokes on -Wl,-G. The following line is correct:
8440 if test "$aix_use_runtimelinking" = yes; then
8441 shared_flag
='${wl}-G'
8443 shared_flag
='${wl}-bM:SRE'
8448 # It seems that -bexpall does not export symbols beginning with
8449 # underscore (_), so it is better to generate a list of symbols to export.
8450 always_export_symbols
=yes
8451 if test "$aix_use_runtimelinking" = yes; then
8452 # Warning - without using the other runtime loading flags (-brtl),
8453 # -berok will link without error, but may produce a broken library.
8454 allow_undefined_flag
='-berok'
8455 # Determine the default libpath from the value encoded in an
8457 cat >conftest.
$ac_ext <<_ACEOF
8460 cat confdefs.h
>>conftest.
$ac_ext
8461 cat >>conftest.
$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8472 rm -f conftest.
$ac_objext conftest
$ac_exeext
8473 if { (ac_try
="$ac_link"
8475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8479 $as_echo "$ac_try_echo") >&5
8480 (eval "$ac_link") 2>conftest.er1
8482 grep -v '^ *+' conftest.er1 >conftest.err
8484 cat conftest.err >&5
8485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest$ac_exeext && {
8490 test "$cross_compiling" = yes ||
8491 $as_test_x conftest$ac_exeext
8494 lt_aix_libpath_sed='
8495 /Import File Strings/,/^$/ {
8501 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8502 # Check for a 64-bit object if we didn't find anything.
8503 if test -z "$aix_libpath"; then
8504 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8507 $as_echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8513 rm -rf conftest.dSYM
8514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8515 conftest$ac_exeext conftest.$ac_ext
8516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8518 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8519 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8521 if test "$host_cpu" = ia64; then
8522 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8523 allow_undefined_flag="-z nodefs"
8524 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8526 # Determine the default libpath from the value encoded in an
8528 cat >conftest.$ac_ext <<_ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8543 rm -f conftest.$ac_objext conftest$ac_exeext
8544 if { (ac_try="$ac_link"
8546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8547 *) ac_try_echo
=$ac_try;;
8549 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8550 $as_echo "$ac_try_echo") >&5
8551 (eval "$ac_link") 2>conftest.er1
8553 grep -v '^ *+' conftest.er1
>conftest.err
8555 cat conftest.err
>&5
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } && {
8558 test -z "$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8560 } && test -s conftest
$ac_exeext && {
8561 test "$cross_compiling" = yes ||
8562 $as_test_x conftest
$ac_exeext
8565 lt_aix_libpath_sed
='
8566 /Import File Strings/,/^$/ {
8572 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8573 # Check for a 64-bit object if we didn't find anything.
8574 if test -z "$aix_libpath"; then
8575 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8578 $as_echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.
$ac_ext >&5
8584 rm -rf conftest.dSYM
8585 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8586 conftest
$ac_exeext conftest.
$ac_ext
8587 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8589 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8590 # Warning - without using the other run time loading flags,
8591 # -berok will link without error, but may produce a broken library.
8592 no_undefined_flag
=' ${wl}-bernotok'
8593 allow_undefined_flag
=' ${wl}-berok'
8594 # Exported symbols can be pulled into shared objects from archives
8595 whole_archive_flag_spec
='$convenience'
8596 archive_cmds_need_lc
=yes
8597 # This is similar to how AIX traditionally builds its shared libraries.
8598 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8606 # see comment about AmigaOS4 .so support
8607 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8608 archive_expsym_cmds
=''
8611 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)'
8612 hardcode_libdir_flag_spec
='-L$libdir'
8613 hardcode_minus_L
=yes
8619 export_dynamic_flag_spec
=-rdynamic
8622 cygwin
* | mingw
* | pw32
*)
8623 # When not using gcc, we currently assume that we are using
8624 # Microsoft Visual C++.
8625 # hardcode_libdir_flag_spec is actually meaningless, as there is
8626 # no search path for DLLs.
8627 hardcode_libdir_flag_spec
=' '
8628 allow_undefined_flag
=unsupported
8629 # Tell ltmain to make .lib files, not .a files.
8631 # Tell ltmain to make .dll files, not .so files.
8633 # FIXME: Setting linknames here is a bad hack.
8634 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8635 # The linker will automatically build a .lib file if we build a DLL.
8636 old_archive_from_new_cmds
='true'
8637 # FIXME: Should let the user specify the lib program.
8638 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8639 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8640 enable_shared_with_static_runtimes
=yes
8643 darwin
* | rhapsody
*)
8646 archive_cmds_need_lc
=no
8648 hardcode_automatic
=yes
8649 hardcode_shlibpath_var
=unsupported
8650 whole_archive_flag_spec
=''
8651 link_all_deplibs
=yes
8652 allow_undefined_flag
="$_lt_dar_allow_undefined"
8653 if test "$GCC" = "yes"; then
8654 output_verbose_link_cmd
=echo
8655 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8656 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8657 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8658 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8667 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8668 hardcode_libdir_flag_spec
='-L$libdir'
8669 hardcode_shlibpath_var
=no
8676 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8677 # support. Future versions do this automatically, but an explicit c++rt0.o
8678 # does not break anything, and helps significantly (at the cost of a little
8681 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8682 hardcode_libdir_flag_spec
='-R$libdir'
8684 hardcode_shlibpath_var
=no
8687 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8689 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8691 hardcode_minus_L
=yes
8692 hardcode_shlibpath_var
=no
8695 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8696 freebsd
* | dragonfly
*)
8697 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8698 hardcode_libdir_flag_spec
='-R$libdir'
8700 hardcode_shlibpath_var
=no
8704 if test "$GCC" = yes; then
8705 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'
8707 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'
8709 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8710 hardcode_libdir_separator
=:
8713 # hardcode_minus_L: Not really in the search PATH,
8714 # but as the default location of the library.
8715 hardcode_minus_L
=yes
8716 export_dynamic_flag_spec
='${wl}-E'
8720 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8721 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8723 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8725 if test "$with_gnu_ld" = no
; then
8726 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8727 hardcode_libdir_flag_spec_ld
='+b $libdir'
8728 hardcode_libdir_separator
=:
8730 hardcode_direct_absolute
=yes
8731 export_dynamic_flag_spec
='${wl}-E'
8732 # hardcode_minus_L: Not really in the search PATH,
8733 # but as the default location of the library.
8734 hardcode_minus_L
=yes
8739 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8742 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8745 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8748 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8754 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8757 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8760 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8764 if test "$with_gnu_ld" = no
; then
8765 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8766 hardcode_libdir_separator
=:
8771 hardcode_shlibpath_var
=no
8775 hardcode_direct_absolute
=yes
8776 export_dynamic_flag_spec
='${wl}-E'
8778 # hardcode_minus_L: Not really in the search PATH,
8779 # but as the default location of the library.
8780 hardcode_minus_L
=yes
8786 irix5
* | irix6
* | nonstopux
*)
8787 if test "$GCC" = yes; then
8788 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8789 # Try to use the -exported_symbol ld option, if it does not
8790 # work, assume that -exports_file does not work either and
8791 # implicitly export all symbols.
8792 save_LDFLAGS
="$LDFLAGS"
8793 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8794 cat >conftest.
$ac_ext <<_ACEOF
8797 rm -f conftest.
$ac_objext conftest
$ac_exeext
8798 if { (ac_try
="$ac_link"
8800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8804 $as_echo "$ac_try_echo") >&5
8805 (eval "$ac_link") 2>conftest.er1
8807 grep -v '^ *+' conftest.er1 >conftest.err
8809 cat conftest.err >&5
8810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest$ac_exeext && {
8815 test "$cross_compiling" = yes ||
8816 $as_test_x conftest$ac_exeext
8818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8821 $as_echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8827 rm -rf conftest.dSYM
8828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8829 conftest$ac_exeext conftest.$ac_ext
8830 LDFLAGS="$save_LDFLAGS"
8832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8835 archive_cmds_need_lc='no'
8836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8837 hardcode_libdir_separator=:
8839 link_all_deplibs=yes
8843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8846 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8848 hardcode_libdir_flag_spec='-R$libdir'
8850 hardcode_shlibpath_var=no
8854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8857 hardcode_libdir_separator=:
8858 hardcode_shlibpath_var=no
8865 if test -f /usr/libexec/ld.so; then
8867 hardcode_shlibpath_var=no
8868 hardcode_direct_absolute=yes
8869 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8871 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8873 export_dynamic_flag_spec='${wl}-E'
8876 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8877 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8878 hardcode_libdir_flag_spec='-R$libdir'
8881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8892 hardcode_libdir_flag_spec='-L$libdir'
8893 hardcode_minus_L=yes
8894 allow_undefined_flag=unsupported
8895 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'
8896 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8900 if test "$GCC" = yes; then
8901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8902 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8904 allow_undefined_flag=' -expect_unresolved \*'
8905 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8907 archive_cmds_need_lc='no'
8908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8909 hardcode_libdir_separator=:
8912 osf4* | osf5*) # as osf3* with the addition of -msym flag
8913 if test "$GCC" = yes; then
8914 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8915 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8918 allow_undefined_flag=' -expect_unresolved \*'
8919 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8920 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8921 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8923 # Both c and cxx compiler support -rpath directly
8924 hardcode_libdir_flag_spec='-rpath $libdir'
8926 archive_cmds_need_lc='no'
8927 hardcode_libdir_separator=:
8931 no_undefined_flag=' -z defs'
8932 if test "$GCC" = yes; then
8934 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8936 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8938 case `$CC -V 2>&1` in
8941 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8943 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8947 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8949 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8953 hardcode_libdir_flag_spec='-R$libdir'
8954 hardcode_shlibpath_var=no
8956 solaris2.[0-5] | solaris2.[0-5].*) ;;
8958 # The compiler driver will combine and reorder linker options,
8959 # but understands `-z linker_flag
'. GCC discards it without `$wl',
8960 # but is careful enough not to reorder.
8961 # Supported since Solaris 2.6 (maybe 2.5.1?)
8962 if test "$GCC" = yes; then
8963 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8965 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8969 link_all_deplibs
=yes
8973 if test "x$host_vendor" = xsequent
; then
8974 # Use $CC to link under sequent, because it throws in some extra .o
8975 # files that make .init and .fini sections work.
8976 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8980 hardcode_libdir_flag_spec
='-L$libdir'
8982 hardcode_minus_L
=yes
8983 hardcode_shlibpath_var
=no
8987 case $host_vendor in
8989 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990 hardcode_direct
=yes # is this really true???
8993 ## LD is ld it makes a PLAMLIB
8994 ## CC just makes a GrossModule.
8995 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8996 reload_cmds
='$CC -r -o $output$reload_objs'
9000 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9001 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9004 runpath_var
='LD_RUN_PATH'
9005 hardcode_shlibpath_var
=no
9009 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_shlibpath_var
=no
9011 export_dynamic_flag_spec
='-Bexport'
9015 if test -d /usr
/nec
; then
9016 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9017 hardcode_shlibpath_var
=no
9018 runpath_var
=LD_RUN_PATH
9019 hardcode_runpath_var
=yes
9024 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9025 no_undefined_flag
='${wl}-z,text'
9026 archive_cmds_need_lc
=no
9027 hardcode_shlibpath_var
=no
9028 runpath_var
='LD_RUN_PATH'
9030 if test "$GCC" = yes; then
9031 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9032 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9034 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9035 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9039 sysv5
* | sco3.2v5
* | sco5v6
*)
9040 # Note: We can NOT use -z defs as we might desire, because we do not
9041 # link with -lc, and that would cause any symbols used from libc to
9042 # always be unresolved, which means just about no library would
9043 # ever link correctly. If we're not using GNU ld we use -z text
9044 # though, which does catch some bad symbols but isn't as heavy-handed
9046 no_undefined_flag
='${wl}-z,text'
9047 allow_undefined_flag
='${wl}-z,nodefs'
9048 archive_cmds_need_lc
=no
9049 hardcode_shlibpath_var
=no
9050 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9051 hardcode_libdir_separator
=':'
9052 link_all_deplibs
=yes
9053 export_dynamic_flag_spec
='${wl}-Bexport'
9054 runpath_var
='LD_RUN_PATH'
9056 if test "$GCC" = yes; then
9057 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9058 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067 hardcode_libdir_flag_spec
='-L$libdir'
9068 hardcode_shlibpath_var
=no
9076 if test x
$host_vendor = xsni
; then
9078 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9079 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9085 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9086 $as_echo "$ld_shlibs" >&6; }
9087 test "$ld_shlibs" = no
&& can_build_shared
=no
9089 with_gnu_ld
=$with_gnu_ld
9106 # Do we need to explicitly link libc?
9108 case "x$archive_cmds_need_lc" in
9110 # Assume -lc should be added
9111 archive_cmds_need_lc
=yes
9113 if test "$enable_shared" = yes && test "$GCC" = yes; then
9114 case $archive_cmds in
9116 # FIXME: we may have to deal with multi-command sequences.
9119 # Test whether the compiler implicitly links with -lc since on some
9120 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9121 # to ld, don't add -lc before -lgcc.
9122 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9123 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9125 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9128 (eval $ac_compile) 2>&5
9130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } 2>conftest.err
; then
9134 libobjs
=conftest.
$ac_objext
9136 wl
=$lt_prog_compiler_wl
9137 pic_flag
=$lt_prog_compiler_pic
9143 lt_save_allow_undefined_flag
=$allow_undefined_flag
9144 allow_undefined_flag
=
9145 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9146 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }
9151 archive_cmds_need_lc
=no
9153 archive_cmds_need_lc
=yes
9155 allow_undefined_flag
=$lt_save_allow_undefined_flag
9157 cat conftest.err
1>&5
9160 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9161 $as_echo "$archive_cmds_need_lc" >&6; }
9324 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9327 if test "$GCC" = yes; then
9329 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9330 *) lt_awk_arg
="/^libraries:/" ;;
9332 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9333 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9334 # if the path contains ";" then we assume it to be the separator
9335 # otherwise default to the standard path separator (i.e. ":") - it is
9336 # assumed that no part of a normal pathname contains ";" but that should
9337 # okay in the real world where ";" in dirpaths is itself problematic.
9338 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9340 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9342 # Ok, now we have the path, separated by spaces, we can step through it
9343 # and add multilib dir if necessary.
9344 lt_tmp_lt_search_path_spec
=
9345 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9346 for lt_sys_path
in $lt_search_path_spec; do
9347 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9348 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9350 test -d "$lt_sys_path" && \
9351 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9354 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9355 BEGIN {RS=" "; FS="/|\n";} {
9358 for (lt_i = NF; lt_i > 0; lt_i--) {
9359 if ($lt_i != "" && $lt_i != ".") {
9360 if ($lt_i == "..") {
9363 if (lt_count == 0) {
9364 lt_foo="/" $lt_i lt_foo;
9371 if (lt_foo != "") { lt_freq[lt_foo]++; }
9372 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9374 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9376 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9379 libname_spec
='lib$name'
9387 shlibpath_overrides_runpath
=unknown
9389 dynamic_linker
="$host_os ld.so"
9390 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9391 need_lib_prefix
=unknown
9392 hardcode_into_libs
=no
9394 # when you set need_version to no, make sure it does not cause -set_version
9395 # flags to be left without arguments
9396 need_version
=unknown
9401 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9402 shlibpath_var
=LIBPATH
9404 # AIX 3 has no versioning support, so we append a major version to the name.
9405 soname_spec
='${libname}${release}${shared_ext}$major'
9412 hardcode_into_libs
=yes
9413 if test "$host_cpu" = ia64
; then
9414 # AIX 5 supports IA64
9415 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9416 shlibpath_var
=LD_LIBRARY_PATH
9418 # With GCC up to 2.95.x, collect2 would create an import file
9419 # for dependence libraries. The import file would start with
9420 # the line `#! .'. This would cause the generated library to
9421 # depend on `.', always an invalid library. This was fixed in
9422 # development snapshots of GCC prior to 3.0.
9424 aix4 | aix4.
[01] | aix4.
[01].
*)
9425 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9427 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9434 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9435 # soname into executable. Probably we can add versioning support to
9436 # collect2, so additional links can be useful in future.
9437 if test "$aix_use_runtimelinking" = yes; then
9438 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9439 # instead of lib<name>.a to let people know that these are not
9440 # typical AIX shared libraries.
9441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443 # We preserve .a as extension for shared libraries through AIX4.2
9444 # and later when we are not doing run time linking.
9445 library_names_spec
='${libname}${release}.a $libname.a'
9446 soname_spec
='${libname}${release}${shared_ext}$major'
9448 shlibpath_var
=LIBPATH
9455 # Since July 2007 AmigaOS4 officially supports .so libraries.
9456 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460 library_names_spec
='$libname.ixlibrary $libname.a'
9461 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9462 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'
9468 library_names_spec
='${libname}${shared_ext}'
9469 dynamic_linker
="$host_os ld.so"
9470 shlibpath_var
=LIBRARY_PATH
9476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477 soname_spec
='${libname}${release}${shared_ext}$major'
9478 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9479 shlibpath_var
=LD_LIBRARY_PATH
9480 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9481 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9482 # the default ld.so.conf also contains /usr/contrib/lib and
9483 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9484 # libtool to hard-code these into programs
9487 cygwin
* | mingw
* | pw32
*)
9488 version_type
=windows
9493 case $GCC,$host_os in
9494 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9495 library_names_spec
='$libname.dll.a'
9496 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9497 postinstall_cmds
='base_file=`basename \${file}`~
9498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9499 dldir=$destdir/`dirname \$dlpath`~
9500 test -d \$dldir || mkdir -p \$dldir~
9501 $install_prog $dir/$dlname \$dldir/$dlname~
9502 chmod a+x \$dldir/$dlname~
9503 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9504 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9506 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9507 dlpath=$dir/\$dldll~
9509 shlibpath_overrides_runpath
=yes
9513 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9514 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9515 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9518 # MinGW DLLs use traditional 'lib' prefix
9519 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9520 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9521 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9522 # It is most probably a Windows format PATH printed by
9523 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9524 # path with ; separators, and with drive letters. We can handle the
9525 # drive letters (cygwin fileutils understands them), so leave them,
9526 # especially as we might pass files found there to a mingw objdump,
9527 # which wouldn't understand a cygwinified path. Ahh.
9528 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9530 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9534 # pw32 DLLs use 'pw' prefix rather than 'lib'
9535 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9541 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9544 dynamic_linker
='Win32 ld.exe'
9545 # FIXME: first we should search . and the directory the executable is in
9549 darwin
* | rhapsody
*)
9550 dynamic_linker
="$host_os dyld"
9554 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9555 soname_spec
='${libname}${release}${major}$shared_ext'
9556 shlibpath_overrides_runpath
=yes
9557 shlibpath_var
=DYLD_LIBRARY_PATH
9558 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9560 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9561 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9569 soname_spec
='${libname}${release}${shared_ext}$major'
9570 shlibpath_var
=LD_LIBRARY_PATH
9577 freebsd
* | dragonfly
*)
9578 # DragonFly does not have aout. When/if they implement a new
9579 # versioning mechanism, adjust this.
9580 if test -x /usr
/bin
/objformat
; then
9581 objformat
=`/usr/bin/objformat`
9584 freebsd
[123]*) objformat
=aout
;;
9588 version_type
=freebsd-
$objformat
9589 case $version_type in
9591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9596 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9600 shlibpath_var
=LD_LIBRARY_PATH
9603 shlibpath_overrides_runpath
=yes
9605 freebsd3.
[01]* | freebsdelf3.
[01]*)
9606 shlibpath_overrides_runpath
=yes
9607 hardcode_into_libs
=yes
9609 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9610 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9611 shlibpath_overrides_runpath
=no
9612 hardcode_into_libs
=yes
9614 *) # from 4.6 on, and DragonFly
9615 shlibpath_overrides_runpath
=yes
9616 hardcode_into_libs
=yes
9625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9626 soname_spec
='${libname}${release}${shared_ext}$major'
9627 shlibpath_var
=LD_LIBRARY_PATH
9628 hardcode_into_libs
=yes
9631 hpux9
* | hpux10
* | hpux11
*)
9632 # Give a soname corresponding to the major version so that dld.sl refuses to
9633 # link against other versions.
9640 hardcode_into_libs
=yes
9641 dynamic_linker
="$host_os dld.so"
9642 shlibpath_var
=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 soname_spec
='${libname}${release}${shared_ext}$major'
9646 if test "X$HPUX_IA64_MODE" = X32
; then
9647 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9649 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9651 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9655 hardcode_into_libs
=yes
9656 dynamic_linker
="$host_os dld.sl"
9657 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9658 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9659 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660 soname_spec
='${libname}${release}${shared_ext}$major'
9661 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9662 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9666 dynamic_linker
="$host_os dld.sl"
9667 shlibpath_var
=SHLIB_PATH
9668 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670 soname_spec
='${libname}${release}${shared_ext}$major'
9673 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9674 postinstall_cmds
='chmod 555 $lib'
9681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9682 soname_spec
='${libname}${release}${shared_ext}$major'
9683 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9684 shlibpath_var
=LD_LIBRARY_PATH
9685 shlibpath_overrides_runpath
=no
9686 hardcode_into_libs
=yes
9689 irix5
* | irix6
* | nonstopux
*)
9691 nonstopux
*) version_type
=nonstopux
;;
9693 if test "$lt_cv_prog_gnu_ld" = yes; then
9701 soname_spec
='${libname}${release}${shared_ext}$major'
9702 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9704 irix5
* | nonstopux
*)
9708 case $LD in # libtool.m4 will add one of these switches to LD
9709 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9710 libsuff
= shlibsuff
= libmagic
=32-bit;;
9711 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9712 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9713 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9714 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9715 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9719 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9720 shlibpath_overrides_runpath
=no
9721 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9722 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9723 hardcode_into_libs
=yes
9726 # No shared lib support for Linux oldld, aout, or coff.
9727 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9731 # This must be Linux ELF.
9732 linux
* | k
*bsd
*-gnu)
9736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737 soname_spec
='${libname}${release}${shared_ext}$major'
9738 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9739 shlibpath_var
=LD_LIBRARY_PATH
9740 shlibpath_overrides_runpath
=no
9741 # Some binutils ld are patched to set DT_RUNPATH
9742 save_LDFLAGS
=$LDFLAGS
9744 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9745 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9746 cat >conftest.
$ac_ext <<_ACEOF
9749 cat confdefs.h
>>conftest.
$ac_ext
9750 cat >>conftest.
$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9761 rm -f conftest.
$ac_objext conftest
$ac_exeext
9762 if { (ac_try
="$ac_link"
9764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9768 $as_echo "$ac_try_echo") >&5
9769 (eval "$ac_link") 2>conftest.er1
9771 grep -v '^ *+' conftest.er1 >conftest.err
9773 cat conftest.err >&5
9774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest$ac_exeext && {
9779 test "$cross_compiling" = yes ||
9780 $as_test_x conftest$ac_exeext
9782 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9783 shlibpath_overrides_runpath=yes
9787 $as_echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9793 rm -rf conftest.dSYM
9794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9795 conftest$ac_exeext conftest.$ac_ext
9796 LDFLAGS=$save_LDFLAGS
9799 # This implies no fast_install, which is unacceptable.
9800 # Some rework will be needed to allow for fast_install
9801 # before this can be enabled.
9802 hardcode_into_libs=yes
9804 # Append ld.so.conf contents to the search path
9805 if test -f /etc/ld.so.conf; then
9806 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc
/ld.so.conf |
$SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' |
tr '\n' ' '`
9807 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9810 # We used to test for /lib/ld.so.1 and disable shared libraries on
9811 # powerpc, because MkLinux only supported shared libraries with the
9812 # GNU dynamic linker. Since this was broken with cross compilers,
9813 # most powerpc-linux boxes support dynamic linking these days and
9814 # people can always --disable-shared, the test was removed, and we
9815 # assume the GNU/Linux dynamic linker is in use.
9816 dynamic_linker='GNU/Linux ld.so'
9823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9826 dynamic_linker='NetBSD (a.out) ld.so'
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9829 soname_spec='${libname}${release}${shared_ext}$major'
9830 dynamic_linker='NetBSD ld.elf_so'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 shlibpath_overrides_runpath=yes
9834 hardcode_into_libs=yes
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 shlibpath_overrides_runpath=yes
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 shlibpath_var=LD_LIBRARY_PATH
9851 shlibpath_overrides_runpath=no
9852 hardcode_into_libs=yes
9853 dynamic_linker='ldqnx.so'
9858 sys_lib_dlsearch_path_spec="/usr/lib"
9860 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9862 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9863 *) need_version=no ;;
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9867 shlibpath_var=LD_LIBRARY_PATH
9868 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9870 openbsd2.[89] | openbsd2.[89].*)
9871 shlibpath_overrides_runpath=no
9874 shlibpath_overrides_runpath=yes
9878 shlibpath_overrides_runpath=yes
9883 libname_spec='$name'
9886 library_names_spec='$libname${shared_ext} $libname.a'
9887 dynamic_linker='OS/2 ld.exe'
9888 shlibpath_var=LIBPATH
9891 osf3* | osf4* | osf5*)
9895 soname_spec='${libname}${release}${shared_ext}$major'
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897 shlibpath_var=LD_LIBRARY_PATH
9898 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9899 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9911 soname_spec='${libname}${release}${shared_ext}$major'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 shlibpath_overrides_runpath=yes
9914 hardcode_into_libs=yes
9915 # ldd complains unless libraries are executable
9916 postinstall_cmds='chmod +x $lib'
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9922 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9923 shlibpath_var=LD_LIBRARY_PATH
9924 shlibpath_overrides_runpath=yes
9925 if test "$with_gnu_ld" = yes; then
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 soname_spec='${libname}${release}${shared_ext}$major'
9935 shlibpath_var=LD_LIBRARY_PATH
9936 case $host_vendor in
9938 shlibpath_overrides_runpath=no
9940 runpath_var=LD_RUN_PATH
9948 shlibpath_overrides_runpath=no
9949 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9955 if test -d /usr/nec ;then
9957 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9958 soname_spec='$libname${shared_ext}.$major'
9959 shlibpath_var=LD_LIBRARY_PATH
9963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9964 version_type=freebsd-elf
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9968 soname_spec='${libname}${release}${shared_ext}$major'
9969 shlibpath_var=LD_LIBRARY_PATH
9970 shlibpath_overrides_runpath=yes
9971 hardcode_into_libs=yes
9972 if test "$with_gnu_ld" = yes; then
9973 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9975 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9982 sys_lib_dlsearch_path_spec='/usr/lib'
9986 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9990 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991 shlibpath_var=LD_LIBRARY_PATH
9992 shlibpath_overrides_runpath=no
9993 hardcode_into_libs=yes
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 shlibpath_var=LD_LIBRARY_PATH
10007 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10008 $as_echo "$dynamic_linker" >&6; }
10009 test "$dynamic_linker" = no && can_build_shared=no
10011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10012 if test "$GCC" = yes; then
10013 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10016 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10017 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10019 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10020 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10109 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10110 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10112 if test -n "$hardcode_libdir_flag_spec" ||
10113 test -n "$runpath_var" ||
10114 test "X$hardcode_automatic" = "Xyes" ; then
10116 # We can hardcode non-existent directories.
10117 if test "$hardcode_direct" != no &&
10118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10119 # have to relink, otherwise we might link with an installed library
10120 # when we should be linking with a yet-to-be-installed one
10121 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10122 test "$hardcode_minus_L" != no; then
10123 # Linking always hardcodes the temporary library directory.
10124 hardcode_action=relink
10126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10127 hardcode_action=immediate
10130 # We cannot hardcode anything, or else we can only hardcode existing
10132 hardcode_action=unsupported
10134 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10135 $as_echo "$hardcode_action" >&6; }
10137 if test "$hardcode_action" = relink ||
10138 test "$inherit_rpath" = yes; then
10139 # Fast installation is not supported
10140 enable_fast_install=no
10141 elif test "$shlibpath_overrides_runpath" = yes ||
10142 test "$enable_shared" = no; then
10143 # Fast installation is not necessary
10144 enable_fast_install=needless
10152 if test "x$enable_dlopen" != xyes; then
10153 enable_dlopen=unknown
10154 enable_dlopen_self=unknown
10155 enable_dlopen_self_static=unknown
10162 lt_cv_dlopen="load_add_on"
10164 lt_cv_dlopen_self=yes
10168 lt_cv_dlopen="LoadLibrary"
10173 lt_cv_dlopen="dlopen"
10178 # if libdl is installed we need to link against it
10179 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10180 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10182 $as_echo_n "(cached) " >&6
10184 ac_check_lib_save_LIBS=$LIBS
10186 cat >conftest.$ac_ext <<_ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10193 /* Override any GCC internal prototype to avoid an error.
10194 Use char because int might match the return type of a GCC
10195 builtin and then its argument prototype would still apply. */
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (ac_try="$ac_link"
10210 case "(($ac_try" in
10211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10212 *) ac_try_echo
=$ac_try;;
10214 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10215 $as_echo "$ac_try_echo") >&5
10216 (eval "$ac_link") 2>conftest.er1
10218 grep -v '^ *+' conftest.er1
>conftest.err
10220 cat conftest.err
>&5
10221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && {
10223 test -z "$ac_c_werror_flag" ||
10224 test ! -s conftest.err
10225 } && test -s conftest
$ac_exeext && {
10226 test "$cross_compiling" = yes ||
10227 $as_test_x conftest
$ac_exeext
10229 ac_cv_lib_dl_dlopen
=yes
10231 $as_echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.
$ac_ext >&5
10234 ac_cv_lib_dl_dlopen
=no
10237 rm -rf conftest.dSYM
10238 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10239 conftest
$ac_exeext conftest.
$ac_ext
10240 LIBS
=$ac_check_lib_save_LIBS
10242 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10243 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10244 if test $ac_cv_lib_dl_dlopen = yes; then
10245 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10248 lt_cv_dlopen
="dyld"
10250 lt_cv_dlopen_self
=yes
10257 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10258 $as_echo_n "checking for shl_load... " >&6; }
10259 if test "${ac_cv_func_shl_load+set}" = set; then
10260 $as_echo_n "(cached) " >&6
10262 cat >conftest.
$ac_ext <<_ACEOF
10265 cat confdefs.h
>>conftest.
$ac_ext
10266 cat >>conftest.
$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10270 #define shl_load innocuous_shl_load
10272 /* System header to define __stub macros and hopefully few prototypes,
10273 which can conflict with char shl_load (); below.
10274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10275 <limits.h> exists even on freestanding compilers. */
10278 # include <limits.h>
10280 # include <assert.h>
10285 /* Override any GCC internal prototype to avoid an error.
10286 Use char because int might match the return type of a GCC
10287 builtin and then its argument prototype would still apply. */
10292 /* The GNU C library defines this for functions which it implements
10293 to always fail with ENOSYS. Some functions are actually named
10294 something starting with __ and the normal name is an alias. */
10295 #if defined __stub_shl_load || defined __stub___shl_load
10302 return shl_load ();
10307 rm -f conftest.
$ac_objext conftest
$ac_exeext
10308 if { (ac_try
="$ac_link"
10309 case "(($ac_try" in
10310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10314 $as_echo "$ac_try_echo") >&5
10315 (eval "$ac_link") 2>conftest.er1
10317 grep -v '^ *+' conftest.er1 >conftest.err
10319 cat conftest.err >&5
10320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } && {
10322 test -z "$ac_c_werror_flag" ||
10323 test ! -s conftest.err
10324 } && test -s conftest$ac_exeext && {
10325 test "$cross_compiling" = yes ||
10326 $as_test_x conftest$ac_exeext
10328 ac_cv_func_shl_load=yes
10330 $as_echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 ac_cv_func_shl_load=no
10336 rm -rf conftest.dSYM
10337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10338 conftest$ac_exeext conftest.$ac_ext
10340 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10341 $as_echo "$ac_cv_func_shl_load" >&6; }
10342 if test $ac_cv_func_shl_load = yes; then
10343 lt_cv_dlopen="shl_load"
10345 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10346 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10347 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10348 $as_echo_n "(cached) " >&6
10350 ac_check_lib_save_LIBS=$LIBS
10352 cat >conftest.$ac_ext <<_ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10359 /* Override any GCC internal prototype to avoid an error.
10360 Use char because int might match the return type of a GCC
10361 builtin and then its argument prototype would still apply. */
10369 return shl_load ();
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (ac_try="$ac_link"
10376 case "(($ac_try" in
10377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10378 *) ac_try_echo
=$ac_try;;
10380 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10381 $as_echo "$ac_try_echo") >&5
10382 (eval "$ac_link") 2>conftest.er1
10384 grep -v '^ *+' conftest.er1
>conftest.err
10386 cat conftest.err
>&5
10387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && {
10389 test -z "$ac_c_werror_flag" ||
10390 test ! -s conftest.err
10391 } && test -s conftest
$ac_exeext && {
10392 test "$cross_compiling" = yes ||
10393 $as_test_x conftest
$ac_exeext
10395 ac_cv_lib_dld_shl_load
=yes
10397 $as_echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.
$ac_ext >&5
10400 ac_cv_lib_dld_shl_load
=no
10403 rm -rf conftest.dSYM
10404 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10405 conftest
$ac_exeext conftest.
$ac_ext
10406 LIBS
=$ac_check_lib_save_LIBS
10408 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10409 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10410 if test $ac_cv_lib_dld_shl_load = yes; then
10411 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10413 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10414 $as_echo_n "checking for dlopen... " >&6; }
10415 if test "${ac_cv_func_dlopen+set}" = set; then
10416 $as_echo_n "(cached) " >&6
10418 cat >conftest.
$ac_ext <<_ACEOF
10421 cat confdefs.h
>>conftest.
$ac_ext
10422 cat >>conftest.
$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10426 #define dlopen innocuous_dlopen
10428 /* System header to define __stub macros and hopefully few prototypes,
10429 which can conflict with char dlopen (); below.
10430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10431 <limits.h> exists even on freestanding compilers. */
10434 # include <limits.h>
10436 # include <assert.h>
10441 /* Override any GCC internal prototype to avoid an error.
10442 Use char because int might match the return type of a GCC
10443 builtin and then its argument prototype would still apply. */
10448 /* The GNU C library defines this for functions which it implements
10449 to always fail with ENOSYS. Some functions are actually named
10450 something starting with __ and the normal name is an alias. */
10451 #if defined __stub_dlopen || defined __stub___dlopen
10463 rm -f conftest.
$ac_objext conftest
$ac_exeext
10464 if { (ac_try
="$ac_link"
10465 case "(($ac_try" in
10466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10470 $as_echo "$ac_try_echo") >&5
10471 (eval "$ac_link") 2>conftest.er1
10473 grep -v '^ *+' conftest.er1 >conftest.err
10475 cat conftest.err >&5
10476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && {
10478 test -z "$ac_c_werror_flag" ||
10479 test ! -s conftest.err
10480 } && test -s conftest$ac_exeext && {
10481 test "$cross_compiling" = yes ||
10482 $as_test_x conftest$ac_exeext
10484 ac_cv_func_dlopen=yes
10486 $as_echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_cv_func_dlopen=no
10492 rm -rf conftest.dSYM
10493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10494 conftest$ac_exeext conftest.$ac_ext
10496 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10497 $as_echo "$ac_cv_func_dlopen" >&6; }
10498 if test $ac_cv_func_dlopen = yes; then
10499 lt_cv_dlopen="dlopen"
10501 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10502 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10504 $as_echo_n "(cached) " >&6
10506 ac_check_lib_save_LIBS=$LIBS
10508 cat >conftest.$ac_ext <<_ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10515 /* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10534 *) ac_try_echo
=$ac_try;;
10536 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10537 $as_echo "$ac_try_echo") >&5
10538 (eval "$ac_link") 2>conftest.er1
10540 grep -v '^ *+' conftest.er1
>conftest.err
10542 cat conftest.err
>&5
10543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest
$ac_exeext && {
10548 test "$cross_compiling" = yes ||
10549 $as_test_x conftest
$ac_exeext
10551 ac_cv_lib_dl_dlopen
=yes
10553 $as_echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.
$ac_ext >&5
10556 ac_cv_lib_dl_dlopen
=no
10559 rm -rf conftest.dSYM
10560 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10561 conftest
$ac_exeext conftest.
$ac_ext
10562 LIBS
=$ac_check_lib_save_LIBS
10564 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10565 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10566 if test $ac_cv_lib_dl_dlopen = yes; then
10567 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10569 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10570 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10571 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10572 $as_echo_n "(cached) " >&6
10574 ac_check_lib_save_LIBS
=$LIBS
10575 LIBS
="-lsvld $LIBS"
10576 cat >conftest.
$ac_ext <<_ACEOF
10579 cat confdefs.h
>>conftest.
$ac_ext
10580 cat >>conftest.
$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10583 /* Override any GCC internal prototype to avoid an error.
10584 Use char because int might match the return type of a GCC
10585 builtin and then its argument prototype would still apply. */
10598 rm -f conftest.
$ac_objext conftest
$ac_exeext
10599 if { (ac_try
="$ac_link"
10600 case "(($ac_try" in
10601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10605 $as_echo "$ac_try_echo") >&5
10606 (eval "$ac_link") 2>conftest.er1
10608 grep -v '^ *+' conftest.er1 >conftest.err
10610 cat conftest.err >&5
10611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && {
10613 test -z "$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10615 } && test -s conftest$ac_exeext && {
10616 test "$cross_compiling" = yes ||
10617 $as_test_x conftest$ac_exeext
10619 ac_cv_lib_svld_dlopen=yes
10621 $as_echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ac_cv_lib_svld_dlopen=no
10627 rm -rf conftest.dSYM
10628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10629 conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_lib_save_LIBS
10632 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10633 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10634 if test $ac_cv_lib_svld_dlopen = yes; then
10635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10637 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10638 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10639 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10640 $as_echo_n "(cached) " >&6
10642 ac_check_lib_save_LIBS=$LIBS
10644 cat >conftest.$ac_ext <<_ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10651 /* Override any GCC internal prototype to avoid an error.
10652 Use char because int might match the return type of a GCC
10653 builtin and then its argument prototype would still apply. */
10661 return dld_link ();
10666 rm -f conftest.$ac_objext conftest$ac_exeext
10667 if { (ac_try="$ac_link"
10668 case "(($ac_try" in
10669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10670 *) ac_try_echo
=$ac_try;;
10672 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10673 $as_echo "$ac_try_echo") >&5
10674 (eval "$ac_link") 2>conftest.er1
10676 grep -v '^ *+' conftest.er1
>conftest.err
10678 cat conftest.err
>&5
10679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && {
10681 test -z "$ac_c_werror_flag" ||
10682 test ! -s conftest.err
10683 } && test -s conftest
$ac_exeext && {
10684 test "$cross_compiling" = yes ||
10685 $as_test_x conftest
$ac_exeext
10687 ac_cv_lib_dld_dld_link
=yes
10689 $as_echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.
$ac_ext >&5
10692 ac_cv_lib_dld_dld_link
=no
10695 rm -rf conftest.dSYM
10696 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10697 conftest
$ac_exeext conftest.
$ac_ext
10698 LIBS
=$ac_check_lib_save_LIBS
10700 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10701 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10702 if test $ac_cv_lib_dld_dld_link = yes; then
10703 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
10724 if test "x$lt_cv_dlopen" != xno
; then
10730 case $lt_cv_dlopen in
10732 save_CPPFLAGS
="$CPPFLAGS"
10733 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
10735 save_LDFLAGS
="$LDFLAGS"
10736 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
10739 LIBS
="$lt_cv_dlopen_libs $LIBS"
10741 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10742 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10743 if test "${lt_cv_dlopen_self+set}" = set; then
10744 $as_echo_n "(cached) " >&6
10746 if test "$cross_compiling" = yes; then :
10747 lt_cv_dlopen_self
=cross
10749 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10750 lt_status
=$lt_dlunknown
10751 cat > conftest.
$ac_ext <<_LT_EOF
10752 #line 10752 "configure"
10753 #include "confdefs.h"
10762 # define LT_DLGLOBAL RTLD_GLOBAL
10765 # define LT_DLGLOBAL DL_GLOBAL
10767 # define LT_DLGLOBAL 0
10771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10772 find out it does not work in some platform. */
10773 #ifndef LT_DLLAZY_OR_NOW
10775 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10778 # define LT_DLLAZY_OR_NOW DL_LAZY
10781 # define LT_DLLAZY_OR_NOW RTLD_NOW
10784 # define LT_DLLAZY_OR_NOW DL_NOW
10786 # define LT_DLLAZY_OR_NOW 0
10794 extern "C" void exit (int);
10797 void fnord() { int i=42;}
10800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10801 int status = $lt_dlunknown;
10805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10807 /* dlclose (self); */
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>&5
10818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10820 (.
/conftest
; exit; ) >&5 2>/dev
/null
10822 case x
$lt_status in
10823 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
10824 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
10825 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
10828 # compilation failed
10829 lt_cv_dlopen_self
=no
10836 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10837 $as_echo "$lt_cv_dlopen_self" >&6; }
10839 if test "x$lt_cv_dlopen_self" = xyes
; then
10840 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
10841 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10842 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10843 if test "${lt_cv_dlopen_self_static+set}" = set; then
10844 $as_echo_n "(cached) " >&6
10846 if test "$cross_compiling" = yes; then :
10847 lt_cv_dlopen_self_static
=cross
10849 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10850 lt_status
=$lt_dlunknown
10851 cat > conftest.
$ac_ext <<_LT_EOF
10852 #line 10852 "configure"
10853 #include "confdefs.h"
10862 # define LT_DLGLOBAL RTLD_GLOBAL
10865 # define LT_DLGLOBAL DL_GLOBAL
10867 # define LT_DLGLOBAL 0
10871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10872 find out it does not work in some platform. */
10873 #ifndef LT_DLLAZY_OR_NOW
10875 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10878 # define LT_DLLAZY_OR_NOW DL_LAZY
10881 # define LT_DLLAZY_OR_NOW RTLD_NOW
10884 # define LT_DLLAZY_OR_NOW DL_NOW
10886 # define LT_DLLAZY_OR_NOW 0
10894 extern "C" void exit (int);
10897 void fnord() { int i=42;}
10900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10901 int status = $lt_dlunknown;
10905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10906 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10907 /* dlclose (self); */
10915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10916 (eval $ac_link) 2>&5
10918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10920 (.
/conftest
; exit; ) >&5 2>/dev
/null
10922 case x
$lt_status in
10923 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
10924 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
10925 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
10928 # compilation failed
10929 lt_cv_dlopen_self_static
=no
10936 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10937 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10940 CPPFLAGS
="$save_CPPFLAGS"
10941 LDFLAGS
="$save_LDFLAGS"
10946 case $lt_cv_dlopen_self in
10947 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
10948 *) enable_dlopen_self
=unknown
;;
10951 case $lt_cv_dlopen_self_static in
10952 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
10953 *) enable_dlopen_self_static
=unknown
;;
10975 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10976 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10977 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
10978 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
10979 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
10980 { $as_echo "$as_me:$LINENO: result: yes" >&5
10981 $as_echo "yes" >&6; }
10983 # FIXME - insert some real tests, host_os isn't really good enough
10986 if test -n "$STRIP" ; then
10987 striplib
="$STRIP -x"
10988 old_striplib
="$STRIP -S"
10989 { $as_echo "$as_me:$LINENO: result: yes" >&5
10990 $as_echo "yes" >&6; }
10992 { $as_echo "$as_me:$LINENO: result: no" >&5
10993 $as_echo "no" >&6; }
10997 { $as_echo "$as_me:$LINENO: result: no" >&5
10998 $as_echo "no" >&6; }
11014 # Report which library types will actually be built
11015 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11016 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11017 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11018 $as_echo "$can_build_shared" >&6; }
11020 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11021 $as_echo_n "checking whether to build shared libraries... " >&6; }
11022 test "$can_build_shared" = "no" && enable_shared
=no
11024 # On AIX, shared libraries and static libraries use the same namespace, and
11025 # are all built from PIC.
11028 test "$enable_shared" = yes && enable_static
=no
11029 if test -n "$RANLIB"; then
11030 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11031 postinstall_cmds
='$RANLIB $lib'
11036 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11037 test "$enable_shared" = yes && enable_static
=no
11041 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11042 $as_echo "$enable_shared" >&6; }
11044 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11045 $as_echo_n "checking whether to build static libraries... " >&6; }
11046 # Make sure either enable_shared or enable_static is yes.
11047 test "$enable_shared" = yes || enable_static
=yes
11048 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11049 $as_echo "$enable_static" >&6; }
11056 ac_cpp
='$CPP $CPPFLAGS'
11057 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11058 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11059 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11075 ac_config_commands
="$ac_config_commands libtool"
11080 # Only expand once:
11084 # For testing cross-compilation behaviour.
11085 #cross_compiling=yes
11087 { echo; echo "${term_bold}Optional Platform Environment:${term_norm}"; } >& 6
11090 for ac_header in sys/signal.h
11092 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11093 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11094 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
11095 $as_echo_n "checking
for $ac_header...
" >&6; }
11096 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11097 $as_echo_n "(cached
) " >&6
11099 ac_res=`eval 'as_val=${'$as_ac_Header'}
11100 $as_echo "$as_val"'`
11101 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11102 $as_echo "$ac_res" >&6; }
11104 # Is the header compilable?
11105 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11106 $as_echo_n "checking
$ac_header usability...
" >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 $ac_includes_default
11114 #include <$ac_header>
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11123 $as_echo "$ac_try_echo") >&5
11124 (eval "$ac_compile") 2>conftest.er1
11126 grep -v '^ *+' conftest.er1 >conftest.err
11128 cat conftest.err >&5
11129 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11130 (exit $ac_status); } && {
11131 test -z "$ac_c_werror_flag" ||
11132 test ! -s conftest.err
11133 } && test -s conftest.$ac_objext; then
11134 ac_header_compiler=yes
11136 $as_echo "$as_me: failed program was
:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11139 ac_header_compiler=no
11142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11144 $as_echo "$ac_header_compiler" >&6; }
11146 # Is the header present?
11147 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11148 $as_echo_n "checking
$ac_header presence...
" >&6; }
11149 cat >conftest.$ac_ext <<_ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 #include <$ac_header>
11157 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11163 $as_echo "$ac_try_echo") >&5
11164 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11166 grep -v '^ *+' conftest.er1 >conftest.err
11168 cat conftest.err >&5
11169 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11170 (exit $ac_status); } >/dev/null && {
11171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11172 test ! -s conftest.err
11174 ac_header_preproc=yes
11176 $as_echo "$as_me: failed program was
:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 ac_header_preproc=no
11182 rm -f conftest.err conftest.$ac_ext
11183 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11184 $as_echo "$ac_header_preproc" >&6; }
11186 # So? What about this header?
11187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11189 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11190 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11191 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11192 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11193 ac_header_preproc=yes
11196 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11197 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11198 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11199 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11200 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11201 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11202 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11203 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11204 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11205 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11206 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11207 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11211 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
11212 $as_echo_n "checking
for $ac_header...
" >&6; }
11213 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11214 $as_echo_n "(cached
) " >&6
11216 eval "$as_ac_Header=\
$ac_header_preproc"
11218 ac_res=`eval 'as_val=${'$as_ac_Header'}
11219 $as_echo "$as_val"'`
11220 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11221 $as_echo "$ac_res" >&6; }
11224 if test `eval 'as_val=${'$as_ac_Header'}
11225 $as_echo "$as_val"'` = yes; then
11226 cat >>confdefs.h <<_ACEOF
11227 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11236 sunos4* | freebsd* | openbsd* | netbsd* | kfreebsd* | knetbsd*)
11237 CFG_SIGNALS=signals-bsd.h ;;
11239 CFG_SIGNALS=signals-hpux.h ;;
11241 CFG_SIGNALS=signals-macos.h ;;
11243 CFG_SIGNALS=signals-hurd.h ;;
11245 CFG_SIGNALS=signals.h ;;
11248 cat >>confdefs.h <<_ACEOF
11249 #define CFG_SIGNALS "$CFG_SIGNALS"
11253 # How to determine the memory page size.
11258 for ac_header in unistd.h
11260 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11261 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11262 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
11263 $as_echo_n "checking
for $ac_header...
" >&6; }
11264 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11265 $as_echo_n "(cached
) " >&6
11267 ac_res=`eval 'as_val=${'$as_ac_Header'}
11268 $as_echo "$as_val"'`
11269 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11270 $as_echo "$ac_res" >&6; }
11272 # Is the header compilable?
11273 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11274 $as_echo_n "checking
$ac_header usability...
" >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 $ac_includes_default
11282 #include <$ac_header>
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11290 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11291 $as_echo "$ac_try_echo") >&5
11292 (eval "$ac_compile") 2>conftest.er1
11294 grep -v '^ *+' conftest.er1 >conftest.err
11296 cat conftest.err >&5
11297 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11298 (exit $ac_status); } && {
11299 test -z "$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 } && test -s conftest.$ac_objext; then
11302 ac_header_compiler=yes
11304 $as_echo "$as_me: failed program was
:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 ac_header_compiler=no
11310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11311 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11312 $as_echo "$ac_header_compiler" >&6; }
11314 # Is the header present?
11315 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11316 $as_echo_n "checking
$ac_header presence...
" >&6; }
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 #include <$ac_header>
11325 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11326 case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11330 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11331 $as_echo "$ac_try_echo") >&5
11332 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11338 (exit $ac_status); } >/dev/null && {
11339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11342 ac_header_preproc=yes
11344 $as_echo "$as_me: failed program was
:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 ac_header_preproc=no
11350 rm -f conftest.err conftest.$ac_ext
11351 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11352 $as_echo "$ac_header_preproc" >&6; }
11354 # So? What about this header?
11355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11357 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11358 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11359 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11361 ac_header_preproc=yes
11364 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11365 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11366 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11367 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11368 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11369 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11370 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11371 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11372 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11374 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11375 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11379 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
11380 $as_echo_n "checking
for $ac_header...
" >&6; }
11381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11382 $as_echo_n "(cached
) " >&6
11384 eval "$as_ac_Header=\
$ac_header_preproc"
11386 ac_res=`eval 'as_val=${'$as_ac_Header'}
11387 $as_echo "$as_val"'`
11388 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11389 $as_echo "$ac_res" >&6; }
11392 if test `eval 'as_val=${'$as_ac_Header'}
11393 $as_echo "$as_val"'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11404 { $as_echo "$as_me:$LINENO: checking
for getpagesize
" >&5
11405 $as_echo_n "checking
for getpagesize...
" >&6; }
11406 if test "${sv_cv_func_getpagesize+set}" = set; then
11407 $as_echo_n "(cached
) " >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11419 #include <sys/types.h>
11420 #include <unistd.h>
11426 int pgsz = getpagesize();
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (ac_try="$ac_link"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11438 $as_echo "$ac_try_echo") >&5
11439 (eval "$ac_link") 2>conftest.er1
11441 grep -v '^ *+' conftest.er1 >conftest.err
11443 cat conftest.err >&5
11444 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11445 (exit $ac_status); } && {
11446 test -z "$ac_c_werror_flag" ||
11447 test ! -s conftest.err
11448 } && test -s conftest$ac_exeext && {
11449 test "$cross_compiling" = yes ||
11450 $as_test_x conftest$ac_exeext
11452 sv_cv_func_getpagesize=yes
11454 $as_echo "$as_me: failed program was
:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11457 sv_cv_func_getpagesize=no
11460 rm -rf conftest.dSYM
11461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11462 conftest$ac_exeext conftest.$ac_ext
11464 { $as_echo "$as_me:$LINENO: result
: $sv_cv_func_getpagesize" >&5
11465 $as_echo "$sv_cv_func_getpagesize" >&6; }
11466 if test $sv_cv_func_getpagesize = yes; then
11468 cat >>confdefs.h <<\_ACEOF
11469 #define HAVE_GETPAGESIZE 1
11475 { $as_echo "$as_me:$LINENO: checking
for sysconf
(_SC_PAGESIZE
)" >&5
11476 $as_echo_n "checking
for sysconf
(_SC_PAGESIZE
)...
" >&6; }
11477 if test "${sv_cv_func_sysconf_pagesize+set}" = set; then
11478 $as_echo_n "(cached
) " >&6
11481 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11490 #include <sys/types.h>
11491 #include <unistd.h>
11497 int pgsz = sysconf (_SC_PAGESIZE);
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (ac_try="$ac_link"
11504 case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11508 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11509 $as_echo "$ac_try_echo") >&5
11510 (eval "$ac_link") 2>conftest.er1
11512 grep -v '^ *+' conftest.er1 >conftest.err
11514 cat conftest.err >&5
11515 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11516 (exit $ac_status); } && {
11517 test -z "$ac_c_werror_flag" ||
11518 test ! -s conftest.err
11519 } && test -s conftest$ac_exeext && {
11520 test "$cross_compiling" = yes ||
11521 $as_test_x conftest$ac_exeext
11523 sv_cv_func_sysconf_pagesize=yes
11525 $as_echo "$as_me: failed program was
:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 sv_cv_func_sysconf_pagesize=no
11531 rm -rf conftest.dSYM
11532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11533 conftest$ac_exeext conftest.$ac_ext
11535 { $as_echo "$as_me:$LINENO: result
: $sv_cv_func_sysconf_pagesize" >&5
11536 $as_echo "$sv_cv_func_sysconf_pagesize" >&6; }
11537 if test $sv_cv_func_sysconf_pagesize = yes; then
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_SYSCONF_PAGESIZE 1
11546 { $as_echo "$as_me:$LINENO: checking
for PAGESIZE
in limits.h
" >&5
11547 $as_echo_n "checking
for PAGESIZE
in limits.h...
" >&6; }
11548 if test "${sv_cv_macro_pagesize+set}" = set; then
11549 $as_echo_n "(cached
) " >&6
11552 cat >conftest.$ac_ext <<_ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 #include <limits.h>
11563 int pgsz = PAGESIZE;
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (ac_try="$ac_link"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11574 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11575 $as_echo "$ac_try_echo") >&5
11576 (eval "$ac_link") 2>conftest.er1
11578 grep -v '^ *+' conftest.er1 >conftest.err
11580 cat conftest.err >&5
11581 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11582 (exit $ac_status); } && {
11583 test -z "$ac_c_werror_flag" ||
11584 test ! -s conftest.err
11585 } && test -s conftest$ac_exeext && {
11586 test "$cross_compiling" = yes ||
11587 $as_test_x conftest$ac_exeext
11589 sv_cv_macro_pagesize=yes
11591 $as_echo "$as_me: failed program was
:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 sv_cv_macro_pagesize=no
11597 rm -rf conftest.dSYM
11598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11599 conftest$ac_exeext conftest.$ac_ext
11601 { $as_echo "$as_me:$LINENO: result
: $sv_cv_macro_pagesize" >&5
11602 $as_echo "$sv_cv_macro_pagesize" >&6; }
11603 if test $sv_cv_macro_pagesize = yes; then
11605 cat >>confdefs.h <<\_ACEOF
11606 #define HAVE_PAGESIZE 1
11613 # How to allocate fresh memory using mmap.
11614 # (We need mmap, because mprotect() doesn't work on malloc()ed memory on
11621 { $as_echo "$as_me:$LINENO: checking
for mmap with MAP_ANON
" >&5
11622 $as_echo_n "checking
for mmap with MAP_ANON...
" >&6; }
11623 if test "${sv_cv_func_mmap_anon+set}" = set; then
11624 $as_echo_n "(cached
) " >&6
11627 if test "$cross_compiling" = yes; then
11630 freebsd* | linux* | osf* | darwin*)
11631 sv_cv_func_mmap_anon=yes ;;
11633 cat >conftest.$ac_ext <<_ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11641 #include <sys/types.h>
11642 #include <sys/mman.h>
11647 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (ac_try="$ac_link"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11659 $as_echo "$ac_try_echo") >&5
11660 (eval "$ac_link") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11666 (exit $ac_status); } && {
11667 test -z "$ac_c_werror_flag" ||
11668 test ! -s conftest.err
11669 } && test -s conftest$ac_exeext && {
11670 test "$cross_compiling" = yes ||
11671 $as_test_x conftest$ac_exeext
11673 sv_cv_func_mmap_anon="guessing
yes"
11675 $as_echo "$as_me: failed program was
:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 sv_cv_func_mmap_anon=no
11681 rm -rf conftest.dSYM
11682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11683 conftest$ac_exeext conftest.$ac_ext
11688 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11696 #include <sys/types.h>
11697 #include <sys/mman.h>
11700 void *p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
11701 return (p == (void *)(-1));
11704 rm -f conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11711 $as_echo "$ac_try_echo") >&5
11712 (eval "$ac_link") 2>&5
11714 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11716 { (case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11720 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11721 $as_echo "$ac_try_echo") >&5
11722 (eval "$ac_try") 2>&5
11724 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 sv_cv_func_mmap_anon=yes
11728 $as_echo "$as_me: program exited with status
$ac_status" >&5
11729 $as_echo "$as_me: failed program was
:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11732 ( exit $ac_status )
11733 sv_cv_func_mmap_anon=no
11735 rm -rf conftest.dSYM
11736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11742 { $as_echo "$as_me:$LINENO: result
: $sv_cv_func_mmap_anon" >&5
11743 $as_echo "$sv_cv_func_mmap_anon" >&6; }
11744 if test "$sv_cv_func_mmap_anon" != no; then
11746 cat >>confdefs.h <<\_ACEOF
11747 #define HAVE_MMAP_ANON 1
11753 { $as_echo "$as_me:$LINENO: checking
for mmap with MAP_ANONYMOUS
" >&5
11754 $as_echo_n "checking
for mmap with MAP_ANONYMOUS...
" >&6; }
11755 if test "${sv_cv_func_mmap_anonymous+set}" = set; then
11756 $as_echo_n "(cached
) " >&6
11759 if test "$cross_compiling" = yes; then
11762 hpux* | linux* | osf*)
11763 sv_cv_func_mmap_anonymous=yes ;;
11765 sv_cv_func_mmap_anonymous=no ;;
11767 cat >conftest.$ac_ext <<_ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11775 #include <sys/types.h>
11776 #include <sys/mman.h>
11781 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
11786 rm -f conftest.$ac_objext conftest$ac_exeext
11787 if { (ac_try="$ac_link"
11788 case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11792 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11793 $as_echo "$ac_try_echo") >&5
11794 (eval "$ac_link") 2>conftest.er1
11796 grep -v '^ *+' conftest.er1 >conftest.err
11798 cat conftest.err >&5
11799 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11800 (exit $ac_status); } && {
11801 test -z "$ac_c_werror_flag" ||
11802 test ! -s conftest.err
11803 } && test -s conftest$ac_exeext && {
11804 test "$cross_compiling" = yes ||
11805 $as_test_x conftest$ac_exeext
11807 sv_cv_func_mmap_anonymous="guessing
yes"
11809 $as_echo "$as_me: failed program was
:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 sv_cv_func_mmap_anonymous=no
11815 rm -rf conftest.dSYM
11816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11817 conftest$ac_exeext conftest.$ac_ext
11822 cat >conftest.$ac_ext <<_ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11830 #include <sys/types.h>
11831 #include <sys/mman.h>
11834 void *p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
11835 return (p == (void *)(-1));
11838 rm -f conftest$ac_exeext
11839 if { (ac_try="$ac_link"
11840 case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11844 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11845 $as_echo "$ac_try_echo") >&5
11846 (eval "$ac_link") 2>&5
11848 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11850 { (case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11855 $as_echo "$ac_try_echo") >&5
11856 (eval "$ac_try") 2>&5
11858 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 sv_cv_func_mmap_anonymous=yes
11862 $as_echo "$as_me: program exited with status
$ac_status" >&5
11863 $as_echo "$as_me: failed program was
:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ( exit $ac_status )
11867 sv_cv_func_mmap_anonymous=no
11869 rm -rf conftest.dSYM
11870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11876 { $as_echo "$as_me:$LINENO: result
: $sv_cv_func_mmap_anonymous" >&5
11877 $as_echo "$sv_cv_func_mmap_anonymous" >&6; }
11878 if test "$sv_cv_func_mmap_anonymous" != no; then
11880 cat >>confdefs.h <<\_ACEOF
11881 #define HAVE_MMAP_ANONYMOUS 1
11887 { $as_echo "$as_me:$LINENO: checking
for mmap of
/dev
/zero
" >&5
11888 $as_echo_n "checking
for mmap of
/dev
/zero...
" >&6; }
11889 if test "${sv_cv_func_mmap_devzero+set}" = set; then
11890 $as_echo_n "(cached
) " >&6
11893 if test "$cross_compiling" = yes; then
11896 freebsd* | irix* | linux* | osf* | solaris* | sunos4*)
11897 sv_cv_func_mmap_devzero=yes ;;
11899 sv_cv_func_mmap_devzero=no ;;
11901 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11909 #include <sys/types.h>
11910 #include <sys/mman.h>
11918 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE, 7, 0);
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (ac_try="$ac_link"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11930 $as_echo "$ac_try_echo") >&5
11931 (eval "$ac_link") 2>conftest.er1
11933 grep -v '^ *+' conftest.er1 >conftest.err
11935 cat conftest.err >&5
11936 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11937 (exit $ac_status); } && {
11938 test -z "$ac_c_werror_flag" ||
11939 test ! -s conftest.err
11940 } && test -s conftest$ac_exeext && {
11941 test "$cross_compiling" = yes ||
11942 $as_test_x conftest$ac_exeext
11944 sv_cv_func_mmap_devzero="guessing
yes"
11946 $as_echo "$as_me: failed program was
:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 sv_cv_func_mmap_devzero=no
11952 rm -rf conftest.dSYM
11953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11954 conftest$ac_exeext conftest.$ac_ext
11959 cat >conftest.$ac_ext <<_ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11967 #include <sys/types.h>
11968 #include <sys/mman.h>
11977 fd = open ("/dev
/zero
", O_RDONLY, 0666);
11978 if (fd < 0) return 1;
11979 p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE, fd, 0);
11980 return (p == (void *)(-1));
11983 rm -f conftest$ac_exeext
11984 if { (ac_try="$ac_link"
11985 case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11989 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11990 $as_echo "$ac_try_echo") >&5
11991 (eval "$ac_link") 2>&5
11993 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12000 $as_echo "$ac_try_echo") >&5
12001 (eval "$ac_try") 2>&5
12003 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 sv_cv_func_mmap_devzero=yes
12007 $as_echo "$as_me: program exited with status
$ac_status" >&5
12008 $as_echo "$as_me: failed program was
:" >&5
12009 sed 's/^/| /' conftest.$ac_ext >&5
12011 ( exit $ac_status )
12012 sv_cv_func_mmap_devzero=no
12014 rm -rf conftest.dSYM
12015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12021 { $as_echo "$as_me:$LINENO: result
: $sv_cv_func_mmap_devzero" >&5
12022 $as_echo "$sv_cv_func_mmap_devzero" >&6; }
12023 if test "$sv_cv_func_mmap_devzero" != no; then
12025 cat >>confdefs.h <<\_ACEOF
12026 #define HAVE_MMAP_DEVZERO 1
12032 # How to write a SIGSEGV handler with access to the fault address.
12034 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
12035 # using handler-macos.c anyway. If we were to perform the tests, 5 Crash Report
12036 # dialog windows would pop up.
12038 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
12045 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to POSIX works
" >&5
12046 $as_echo_n "checking whether a fault handler according to POSIX works...
" >&6; }
12047 if test "${sv_cv_fault_posix+set}" = set; then
12048 $as_echo_n "(cached
) " >&6
12051 if test "$cross_compiling" = yes; then
12053 *-*-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 ;;
12055 cat >conftest.$ac_ext <<_ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12063 #include <signal.h>
12065 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
12067 void *fault_address = (void *) (sip->si_addr);
12073 struct sigaction action;
12074 action.sa_sigaction = &sigsegv_handler;
12075 action.sa_flags = SA_SIGINFO;
12080 rm -f conftest.$ac_objext conftest$ac_exeext
12081 if { (ac_try="$ac_link"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12086 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12087 $as_echo "$ac_try_echo") >&5
12088 (eval "$ac_link") 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12094 (exit $ac_status); } && {
12095 test -z "$ac_c_werror_flag" ||
12096 test ! -s conftest.err
12097 } && test -s conftest$ac_exeext && {
12098 test "$cross_compiling" = yes ||
12099 $as_test_x conftest$ac_exeext
12101 sv_cv_fault_posix="guessing no
"
12103 $as_echo "$as_me: failed program was
:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 sv_cv_fault_posix=no
12109 rm -rf conftest.dSYM
12110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12111 conftest$ac_exeext conftest.$ac_ext
12116 cat >conftest.$ac_ext <<_ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12124 #include <stdlib.h>
12125 #include <signal.h>
12126 #if HAVE_SYS_SIGNAL_H
12127 # include <sys/signal.h>
12130 #include <sys/types.h>
12131 #include <sys/mman.h>
12132 #if HAVE_MMAP_DEVZERO
12133 # include <fcntl.h>
12135 # define MAP_FILE 0
12139 # define PROT_NONE 0
12142 # define zero_fd -1
12143 # define map_flags MAP_ANON | MAP_PRIVATE
12144 #elif HAVE_MMAP_ANONYMOUS
12145 # define zero_fd -1
12146 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
12147 #elif HAVE_MMAP_DEVZERO
12148 static int zero_fd;
12149 # define map_flags MAP_FILE | MAP_PRIVATE
12151 unsigned long page;
12152 int handler_called = 0;
12153 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
12155 void *fault_address = (void *) (sip->si_addr);
12157 if (handler_called == 10)
12159 if (fault_address != (void*)(page + 0x678))
12161 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
12164 void crasher (unsigned long p)
12166 *(int *) (p + 0x678) = 42;
12171 struct sigaction action;
12172 /* Preparations. */
12173 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
12174 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
12176 /* Setup some mmaped memory. */
12178 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
12179 freedom about the address range. */
12180 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12182 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12184 if (p == (void *)(-1))
12186 page = (unsigned long) p;
12187 /* Make it read-only. */
12188 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
12190 /* Install the SIGSEGV handler. */
12191 sigemptyset(&action.sa_mask);
12192 action.sa_sigaction = &sigsegv_handler;
12193 action.sa_flags = SA_SIGINFO;
12194 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
12195 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
12196 /* The first write access should invoke the handler and then complete. */
12198 /* The second write access should not invoke the handler. */
12200 /* Check that the handler was called only once. */
12201 if (handler_called != 1)
12207 rm -f conftest$ac_exeext
12208 if { (ac_try="$ac_link"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12214 $as_echo "$ac_try_echo") >&5
12215 (eval "$ac_link") 2>&5
12217 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12224 $as_echo "$ac_try_echo") >&5
12225 (eval "$ac_try") 2>&5
12227 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 sv_cv_fault_posix=yes
12231 $as_echo "$as_me: program exited with status
$ac_status" >&5
12232 $as_echo "$as_me: failed program was
:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 ( exit $ac_status )
12236 sv_cv_fault_posix=no
12238 rm -rf conftest.dSYM
12239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12245 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_posix" >&5
12246 $as_echo "$sv_cv_fault_posix" >&6; }
12253 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to Linux
/i386 works
" >&5
12254 $as_echo_n "checking whether a fault handler according to Linux
/i386 works...
" >&6; }
12255 if test "${sv_cv_fault_linux_i386+set}" = set; then
12256 $as_echo_n "(cached
) " >&6
12259 if test "$cross_compiling" = yes; then
12261 i?86-*-linux2.[2-9]*) sv_cv_fault_linux_i386=yes ;;
12263 cat >conftest.$ac_ext <<_ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12271 #include <signal.h>
12272 #include <asm/sigcontext.h>
12273 void sigsegv_handler (int sig, struct sigcontext sc)
12275 void *fault_address = (void *) (sc.cr2);
12281 struct sigaction action;
12287 rm -f conftest.$ac_objext conftest$ac_exeext
12288 if { (ac_try="$ac_link"
12289 case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12294 $as_echo "$ac_try_echo") >&5
12295 (eval "$ac_link") 2>conftest.er1
12297 grep -v '^ *+' conftest.er1 >conftest.err
12299 cat conftest.err >&5
12300 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12301 (exit $ac_status); } && {
12302 test -z "$ac_c_werror_flag" ||
12303 test ! -s conftest.err
12304 } && test -s conftest$ac_exeext && {
12305 test "$cross_compiling" = yes ||
12306 $as_test_x conftest$ac_exeext
12308 sv_cv_fault_linux_i386="guessing no
"
12310 $as_echo "$as_me: failed program was
:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 sv_cv_fault_linux_i386=no
12316 rm -rf conftest.dSYM
12317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12318 conftest$ac_exeext conftest.$ac_ext
12323 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12331 #include <stdlib.h>
12332 #include <signal.h>
12333 #if HAVE_SYS_SIGNAL_H
12334 # include <sys/signal.h>
12336 #include <asm/sigcontext.h>
12337 #include <sys/types.h>
12338 #include <sys/mman.h>
12339 #if HAVE_MMAP_DEVZERO
12340 # include <fcntl.h>
12342 # define MAP_FILE 0
12346 # define PROT_NONE 0
12349 # define zero_fd -1
12350 # define map_flags MAP_ANON | MAP_PRIVATE
12351 #elif HAVE_MMAP_ANONYMOUS
12352 # define zero_fd -1
12353 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
12354 #elif HAVE_MMAP_DEVZERO
12355 static int zero_fd;
12356 # define map_flags MAP_FILE | MAP_PRIVATE
12358 unsigned long page;
12359 int handler_called = 0;
12360 void sigsegv_handler (int sig, struct sigcontext sc)
12362 void *fault_address = (void *) (sc.cr2);
12364 if (handler_called == 10)
12366 if (fault_address != (void*)(page + 0x678))
12368 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
12371 void crasher (unsigned long p)
12373 *(int *) (p + 0x678) = 42;
12378 struct sigaction action;
12379 /* Preparations. */
12380 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
12381 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
12383 /* Setup some mmaped memory. */
12385 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
12386 freedom about the address range. */
12387 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12389 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12391 if (p == (void *)(-1))
12393 page = (unsigned long) p;
12394 /* Make it read-only. */
12395 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
12397 /* Install the SIGSEGV handler. */
12398 sigemptyset(&action.sa_mask);
12400 action.sa_handler = (void (*) (int)) &sigsegv_handler;
12401 action.sa_flags = 0;
12403 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
12404 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
12405 /* The first write access should invoke the handler and then complete. */
12407 /* The second write access should not invoke the handler. */
12409 /* Check that the handler was called only once. */
12410 if (handler_called != 1)
12416 rm -f conftest$ac_exeext
12417 if { (ac_try="$ac_link"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12423 $as_echo "$ac_try_echo") >&5
12424 (eval "$ac_link") 2>&5
12426 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12433 $as_echo "$ac_try_echo") >&5
12434 (eval "$ac_try") 2>&5
12436 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 sv_cv_fault_linux_i386=yes
12440 $as_echo "$as_me: program exited with status
$ac_status" >&5
12441 $as_echo "$as_me: failed program was
:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ( exit $ac_status )
12445 sv_cv_fault_linux_i386=no
12447 rm -rf conftest.dSYM
12448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12454 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_linux_i386" >&5
12455 $as_echo "$sv_cv_fault_linux_i386" >&6; }
12462 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to old Linux
/i386 works
" >&5
12463 $as_echo_n "checking whether a fault handler according to old Linux
/i386 works...
" >&6; }
12464 if test "${sv_cv_fault_linux_i386_old+set}" = set; then
12465 $as_echo_n "(cached
) " >&6
12468 if test "$cross_compiling" = yes; then
12470 i?86-*-linux2.[2-9]*) sv_cv_fault_linux_i386_old=yes ;;
12472 cat >conftest.$ac_ext <<_ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12480 #include <signal.h>
12482 void sigsegv_handler (int sig, unsigned int more)
12484 void *fault_address = (void *) (((unsigned long *) &more) [21]);
12490 struct sigaction action;
12496 rm -f conftest.$ac_objext conftest$ac_exeext
12497 if { (ac_try="$ac_link"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12503 $as_echo "$ac_try_echo") >&5
12504 (eval "$ac_link") 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest$ac_exeext && {
12514 test "$cross_compiling" = yes ||
12515 $as_test_x conftest$ac_exeext
12517 sv_cv_fault_linux_i386_old="guessing no
"
12519 $as_echo "$as_me: failed program was
:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 sv_cv_fault_linux_i386_old=no
12525 rm -rf conftest.dSYM
12526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12527 conftest$ac_exeext conftest.$ac_ext
12532 cat >conftest.$ac_ext <<_ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12540 #include <stdlib.h>
12541 #include <signal.h>
12542 #if HAVE_SYS_SIGNAL_H
12543 # include <sys/signal.h>
12546 #include <sys/types.h>
12547 #include <sys/mman.h>
12548 #if HAVE_MMAP_DEVZERO
12549 # include <fcntl.h>
12551 # define MAP_FILE 0
12555 # define PROT_NONE 0
12558 # define zero_fd -1
12559 # define map_flags MAP_ANON | MAP_PRIVATE
12560 #elif HAVE_MMAP_ANONYMOUS
12561 # define zero_fd -1
12562 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
12563 #elif HAVE_MMAP_DEVZERO
12564 static int zero_fd;
12565 # define map_flags MAP_FILE | MAP_PRIVATE
12567 unsigned long page;
12568 int handler_called = 0;
12569 void sigsegv_handler (int sig, unsigned int more)
12571 void *fault_address = (void *) (((unsigned long *) &more) [21]);
12573 if (handler_called == 10)
12575 if (fault_address != (void*)(page + 0x678))
12577 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
12580 void crasher (unsigned long p)
12582 *(int *) (p + 0x678) = 42;
12587 struct sigaction action;
12588 /* Preparations. */
12589 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
12590 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
12592 /* Setup some mmaped memory. */
12594 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
12595 freedom about the address range. */
12596 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12598 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12600 if (p == (void *)(-1))
12602 page = (unsigned long) p;
12603 /* Make it read-only. */
12604 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
12606 /* Install the SIGSEGV handler. */
12607 sigemptyset(&action.sa_mask);
12609 action.sa_handler = (void (*) (int)) &sigsegv_handler;
12610 action.sa_flags = 0;
12612 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
12613 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
12614 /* The first write access should invoke the handler and then complete. */
12616 /* The second write access should not invoke the handler. */
12618 /* Check that the handler was called only once. */
12619 if (handler_called != 1)
12625 rm -f conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12631 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12632 $as_echo "$ac_try_echo") >&5
12633 (eval "$ac_link") 2>&5
12635 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12637 { (case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12642 $as_echo "$ac_try_echo") >&5
12643 (eval "$ac_try") 2>&5
12645 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 sv_cv_fault_linux_i386_old=yes
12649 $as_echo "$as_me: program exited with status
$ac_status" >&5
12650 $as_echo "$as_me: failed program was
:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12653 ( exit $ac_status )
12654 sv_cv_fault_linux_i386_old=no
12656 rm -rf conftest.dSYM
12657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12663 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_linux_i386_old" >&5
12664 $as_echo "$sv_cv_fault_linux_i386_old" >&6; }
12671 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to Linux
/m68k works
" >&5
12672 $as_echo_n "checking whether a fault handler according to Linux
/m68k works...
" >&6; }
12673 if test "${sv_cv_fault_linux_m68k+set}" = set; then
12674 $as_echo_n "(cached
) " >&6
12677 if test "$cross_compiling" = yes; then
12681 cat >conftest.$ac_ext <<_ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12689 #include <signal.h>
12690 #include <asm/sigcontext.h>
12691 #include "$srcdir/src
/fault-linux-m68k.c
"
12692 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
12694 void *fault_address = (void *) (get_fault_addr (scp));
12700 struct sigaction action;
12706 rm -f conftest.$ac_objext conftest$ac_exeext
12707 if { (ac_try="$ac_link"
12708 case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12712 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12713 $as_echo "$ac_try_echo") >&5
12714 (eval "$ac_link") 2>conftest.er1
12716 grep -v '^ *+' conftest.er1 >conftest.err
12718 cat conftest.err >&5
12719 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12720 (exit $ac_status); } && {
12721 test -z "$ac_c_werror_flag" ||
12722 test ! -s conftest.err
12723 } && test -s conftest$ac_exeext && {
12724 test "$cross_compiling" = yes ||
12725 $as_test_x conftest$ac_exeext
12727 sv_cv_fault_linux_m68k="guessing no
"
12729 $as_echo "$as_me: failed program was
:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 sv_cv_fault_linux_m68k=no
12735 rm -rf conftest.dSYM
12736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12737 conftest$ac_exeext conftest.$ac_ext
12742 cat >conftest.$ac_ext <<_ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 #include <stdlib.h>
12751 #include <signal.h>
12752 #if HAVE_SYS_SIGNAL_H
12753 # include <sys/signal.h>
12755 #include <asm/sigcontext.h>
12756 #include "$srcdir/src
/fault-linux-m68k.c
"
12757 #include <sys/types.h>
12758 #include <sys/mman.h>
12759 #if HAVE_MMAP_DEVZERO
12760 # include <fcntl.h>
12762 # define MAP_FILE 0
12766 # define PROT_NONE 0
12769 # define zero_fd -1
12770 # define map_flags MAP_ANON | MAP_PRIVATE
12771 #elif HAVE_MMAP_ANONYMOUS
12772 # define zero_fd -1
12773 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
12774 #elif HAVE_MMAP_DEVZERO
12775 static int zero_fd;
12776 # define map_flags MAP_FILE | MAP_PRIVATE
12778 unsigned long page;
12779 int handler_called = 0;
12780 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
12782 void *fault_address = (void *) (get_fault_addr (scp));
12784 if (handler_called == 10)
12786 if (fault_address != (void*)(page + 0x678))
12788 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
12791 void crasher (unsigned long p)
12793 *(int *) (p + 0x678) = 42;
12798 struct sigaction action;
12799 /* Preparations. */
12800 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
12801 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
12803 /* Setup some mmaped memory. */
12805 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
12806 freedom about the address range. */
12807 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12809 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12811 if (p == (void *)(-1))
12813 page = (unsigned long) p;
12814 /* Make it read-only. */
12815 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
12817 /* Install the SIGSEGV handler. */
12818 sigemptyset(&action.sa_mask);
12820 action.sa_handler = (void (*) (int)) &sigsegv_handler;
12821 action.sa_flags = 0;
12823 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
12824 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
12825 /* The first write access should invoke the handler and then complete. */
12827 /* The second write access should not invoke the handler. */
12829 /* Check that the handler was called only once. */
12830 if (handler_called != 1)
12836 rm -f conftest$ac_exeext
12837 if { (ac_try="$ac_link"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844 (eval "$ac_link") 2>&5
12846 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12853 $as_echo "$ac_try_echo") >&5
12854 (eval "$ac_try") 2>&5
12856 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 sv_cv_fault_linux_m68k=yes
12860 $as_echo "$as_me: program exited with status
$ac_status" >&5
12861 $as_echo "$as_me: failed program was
:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ( exit $ac_status )
12865 sv_cv_fault_linux_m68k=no
12867 rm -rf conftest.dSYM
12868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12874 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_linux_m68k" >&5
12875 $as_echo "$sv_cv_fault_linux_m68k" >&6; }
12882 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to Linux
/PowerPC works
" >&5
12883 $as_echo_n "checking whether a fault handler according to Linux
/PowerPC works...
" >&6; }
12884 if test "${sv_cv_fault_linux_powerpc+set}" = set; then
12885 $as_echo_n "(cached
) " >&6
12888 if test "$cross_compiling" = yes; then
12892 cat >conftest.$ac_ext <<_ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12900 #include <signal.h>
12901 #include <asm/sigcontext.h>
12902 void sigsegv_handler (int sig, struct sigcontext *scp)
12904 void *fault_address = (void *) (scp->regs->dar);
12910 struct sigaction action;
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (ac_try="$ac_link"
12918 case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12922 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12923 $as_echo "$ac_try_echo") >&5
12924 (eval "$ac_link") 2>conftest.er1
12926 grep -v '^ *+' conftest.er1 >conftest.err
12928 cat conftest.err >&5
12929 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12930 (exit $ac_status); } && {
12931 test -z "$ac_c_werror_flag" ||
12932 test ! -s conftest.err
12933 } && test -s conftest$ac_exeext && {
12934 test "$cross_compiling" = yes ||
12935 $as_test_x conftest$ac_exeext
12937 sv_cv_fault_linux_powerpc="guessing no
"
12939 $as_echo "$as_me: failed program was
:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12942 sv_cv_fault_linux_powerpc=no
12945 rm -rf conftest.dSYM
12946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12947 conftest$ac_exeext conftest.$ac_ext
12952 cat >conftest.$ac_ext <<_ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12960 #include <stdlib.h>
12961 #include <signal.h>
12962 #if HAVE_SYS_SIGNAL_H
12963 # include <sys/signal.h>
12965 #include <asm/sigcontext.h>
12966 #include <sys/types.h>
12967 #include <sys/mman.h>
12968 #if HAVE_MMAP_DEVZERO
12969 # include <fcntl.h>
12971 # define MAP_FILE 0
12975 # define PROT_NONE 0
12978 # define zero_fd -1
12979 # define map_flags MAP_ANON | MAP_PRIVATE
12980 #elif HAVE_MMAP_ANONYMOUS
12981 # define zero_fd -1
12982 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
12983 #elif HAVE_MMAP_DEVZERO
12984 static int zero_fd;
12985 # define map_flags MAP_FILE | MAP_PRIVATE
12987 unsigned long page;
12988 int handler_called = 0;
12989 void sigsegv_handler (int sig, struct sigcontext *scp)
12991 void *fault_address = (void *) (scp->regs->dar);
12993 if (handler_called == 10)
12995 if (fault_address != (void*)(page + 0x678))
12997 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
13000 void crasher (unsigned long p)
13002 *(int *) (p + 0x678) = 42;
13007 struct sigaction action;
13008 /* Preparations. */
13009 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
13010 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
13012 /* Setup some mmaped memory. */
13014 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
13015 freedom about the address range. */
13016 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13018 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13020 if (p == (void *)(-1))
13022 page = (unsigned long) p;
13023 /* Make it read-only. */
13024 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
13026 /* Install the SIGSEGV handler. */
13027 sigemptyset(&action.sa_mask);
13029 action.sa_handler = (void (*) (int)) &sigsegv_handler;
13030 action.sa_flags = 0;
13032 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
13033 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
13034 /* The first write access should invoke the handler and then complete. */
13036 /* The second write access should not invoke the handler. */
13038 /* Check that the handler was called only once. */
13039 if (handler_called != 1)
13045 rm -f conftest$ac_exeext
13046 if { (ac_try="$ac_link"
13047 case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13052 $as_echo "$ac_try_echo") >&5
13053 (eval "$ac_link") 2>&5
13055 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13057 { (case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13062 $as_echo "$ac_try_echo") >&5
13063 (eval "$ac_try") 2>&5
13065 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 sv_cv_fault_linux_powerpc=yes
13069 $as_echo "$as_me: program exited with status
$ac_status" >&5
13070 $as_echo "$as_me: failed program was
:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 ( exit $ac_status )
13074 sv_cv_fault_linux_powerpc=no
13076 rm -rf conftest.dSYM
13077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13083 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_linux_powerpc" >&5
13084 $as_echo "$sv_cv_fault_linux_powerpc" >&6; }
13091 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to Linux
/HPPA works
" >&5
13092 $as_echo_n "checking whether a fault handler according to Linux
/HPPA works...
" >&6; }
13093 if test "${sv_cv_fault_linux_hppa+set}" = set; then
13094 $as_echo_n "(cached
) " >&6
13097 if test "$cross_compiling" = yes; then
13101 cat >conftest.$ac_ext <<_ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h. */
13109 #include <signal.h>
13111 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
13113 void *fault_address = (void *) (sip->si_ptr);
13119 struct sigaction action;
13120 action.sa_sigaction = &sigsegv_handler;
13121 action.sa_flags = SA_SIGINFO;
13126 rm -f conftest.$ac_objext conftest$ac_exeext
13127 if { (ac_try="$ac_link"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13133 $as_echo "$ac_try_echo") >&5
13134 (eval "$ac_link") 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13140 (exit $ac_status); } && {
13141 test -z "$ac_c_werror_flag" ||
13142 test ! -s conftest.err
13143 } && test -s conftest$ac_exeext && {
13144 test "$cross_compiling" = yes ||
13145 $as_test_x conftest$ac_exeext
13147 sv_cv_fault_linux_hppa="guessing no
"
13149 $as_echo "$as_me: failed program was
:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 sv_cv_fault_linux_hppa=no
13155 rm -rf conftest.dSYM
13156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13157 conftest$ac_exeext conftest.$ac_ext
13162 cat >conftest.$ac_ext <<_ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h. */
13170 #include <stdlib.h>
13171 #include <signal.h>
13172 #if HAVE_SYS_SIGNAL_H
13173 # include <sys/signal.h>
13176 #include <sys/types.h>
13177 #include <sys/mman.h>
13178 #if HAVE_MMAP_DEVZERO
13179 # include <fcntl.h>
13181 # define MAP_FILE 0
13185 # define PROT_NONE 0
13188 # define zero_fd -1
13189 # define map_flags MAP_ANON | MAP_PRIVATE
13190 #elif HAVE_MMAP_ANONYMOUS
13191 # define zero_fd -1
13192 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
13193 #elif HAVE_MMAP_DEVZERO
13194 static int zero_fd;
13195 # define map_flags MAP_FILE | MAP_PRIVATE
13197 unsigned long page;
13198 int handler_called = 0;
13199 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
13201 void *fault_address = (void *) (sip->si_ptr);
13203 if (handler_called == 10)
13205 if (fault_address != (void*)(page + 0x678))
13207 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
13210 void crasher (unsigned long p)
13212 *(int *) (p + 0x678) = 42;
13217 struct sigaction action;
13218 /* Preparations. */
13219 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
13220 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
13222 /* Setup some mmaped memory. */
13224 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
13225 freedom about the address range. */
13226 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13228 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13230 if (p == (void *)(-1))
13232 page = (unsigned long) p;
13233 /* Make it read-only. */
13234 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
13236 /* Install the SIGSEGV handler. */
13237 sigemptyset(&action.sa_mask);
13238 action.sa_sigaction = &sigsegv_handler;
13239 action.sa_flags = SA_SIGINFO;
13240 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
13241 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
13242 /* The first write access should invoke the handler and then complete. */
13244 /* The second write access should not invoke the handler. */
13246 /* Check that the handler was called only once. */
13247 if (handler_called != 1)
13253 rm -f conftest$ac_exeext
13254 if { (ac_try="$ac_link"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13260 $as_echo "$ac_try_echo") >&5
13261 (eval "$ac_link") 2>&5
13263 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13265 { (case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13269 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13270 $as_echo "$ac_try_echo") >&5
13271 (eval "$ac_try") 2>&5
13273 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 sv_cv_fault_linux_hppa=yes
13277 $as_echo "$as_me: program exited with status
$ac_status" >&5
13278 $as_echo "$as_me: failed program was
:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ( exit $ac_status )
13282 sv_cv_fault_linux_hppa=no
13284 rm -rf conftest.dSYM
13285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13291 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_linux_hppa" >&5
13292 $as_echo "$sv_cv_fault_linux_hppa" >&6; }
13299 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to BSD works
" >&5
13300 $as_echo_n "checking whether a fault handler according to BSD works...
" >&6; }
13301 if test "${sv_cv_fault_bsd+set}" = set; then
13302 $as_echo_n "(cached
) " >&6
13305 if test "$cross_compiling" = yes; then
13307 i?86-*-freebsd[4-9]*) sv_cv_fault_bsd=yes ;;
13309 cat >conftest.$ac_ext <<_ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13317 #include <signal.h>
13319 void sigsegv_handler (int sig, int code, struct sigcontext *scp, void *addr)
13321 void *fault_address = (void *) (addr);
13327 struct sigaction action;
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (ac_try="$ac_link"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13340 $as_echo "$ac_try_echo") >&5
13341 (eval "$ac_link") 2>conftest.er1
13343 grep -v '^ *+' conftest.er1 >conftest.err
13345 cat conftest.err >&5
13346 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13347 (exit $ac_status); } && {
13348 test -z "$ac_c_werror_flag" ||
13349 test ! -s conftest.err
13350 } && test -s conftest$ac_exeext && {
13351 test "$cross_compiling" = yes ||
13352 $as_test_x conftest$ac_exeext
13354 sv_cv_fault_bsd="guessing no
"
13356 $as_echo "$as_me: failed program was
:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13362 rm -rf conftest.dSYM
13363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13364 conftest$ac_exeext conftest.$ac_ext
13369 cat >conftest.$ac_ext <<_ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13377 #include <stdlib.h>
13378 #include <signal.h>
13379 #if HAVE_SYS_SIGNAL_H
13380 # include <sys/signal.h>
13383 #include <sys/types.h>
13384 #include <sys/mman.h>
13385 #if HAVE_MMAP_DEVZERO
13386 # include <fcntl.h>
13388 # define MAP_FILE 0
13392 # define PROT_NONE 0
13395 # define zero_fd -1
13396 # define map_flags MAP_ANON | MAP_PRIVATE
13397 #elif HAVE_MMAP_ANONYMOUS
13398 # define zero_fd -1
13399 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
13400 #elif HAVE_MMAP_DEVZERO
13401 static int zero_fd;
13402 # define map_flags MAP_FILE | MAP_PRIVATE
13404 unsigned long page;
13405 int handler_called = 0;
13406 void sigsegv_handler (int sig, int code, struct sigcontext *scp, void *addr)
13408 void *fault_address = (void *) (addr);
13410 if (handler_called == 10)
13412 if (fault_address != (void*)(page + 0x678))
13414 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
13417 void crasher (unsigned long p)
13419 *(int *) (p + 0x678) = 42;
13424 struct sigaction action;
13425 /* Preparations. */
13426 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
13427 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
13429 /* Setup some mmaped memory. */
13431 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
13432 freedom about the address range. */
13433 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13435 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13437 if (p == (void *)(-1))
13439 page = (unsigned long) p;
13440 /* Make it read-only. */
13441 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
13443 /* Install the SIGSEGV handler. */
13444 sigemptyset(&action.sa_mask);
13446 action.sa_handler = (void (*) (int)) &sigsegv_handler;
13447 action.sa_flags = 0;
13449 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
13450 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
13451 /* The first write access should invoke the handler and then complete. */
13453 /* The second write access should not invoke the handler. */
13455 /* Check that the handler was called only once. */
13456 if (handler_called != 1)
13462 rm -f conftest$ac_exeext
13463 if { (ac_try="$ac_link"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13469 $as_echo "$ac_try_echo") >&5
13470 (eval "$ac_link") 2>&5
13472 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13474 { (case "(($ac_try" in
13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476 *) ac_try_echo=$ac_try;;
13478 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13479 $as_echo "$ac_try_echo") >&5
13480 (eval "$ac_try") 2>&5
13482 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 sv_cv_fault_bsd=yes
13486 $as_echo "$as_me: program exited with status
$ac_status" >&5
13487 $as_echo "$as_me: failed program was
:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 ( exit $ac_status )
13493 rm -rf conftest.dSYM
13494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13500 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_bsd" >&5
13501 $as_echo "$sv_cv_fault_bsd" >&6; }
13508 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to IRIX works
" >&5
13509 $as_echo_n "checking whether a fault handler according to IRIX works...
" >&6; }
13510 if test "${sv_cv_fault_irix+set}" = set; then
13511 $as_echo_n "(cached
) " >&6
13514 if test "$cross_compiling" = yes; then
13516 mips-sgi-irix6*) sv_cv_fault_irix=yes ;;
13518 cat >conftest.$ac_ext <<_ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13526 #include <signal.h>
13528 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
13530 void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr);
13536 struct sigaction action;
13542 rm -f conftest.$ac_objext conftest$ac_exeext
13543 if { (ac_try="$ac_link"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13548 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13549 $as_echo "$ac_try_echo") >&5
13550 (eval "$ac_link") 2>conftest.er1
13552 grep -v '^ *+' conftest.er1 >conftest.err
13554 cat conftest.err >&5
13555 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13556 (exit $ac_status); } && {
13557 test -z "$ac_c_werror_flag" ||
13558 test ! -s conftest.err
13559 } && test -s conftest$ac_exeext && {
13560 test "$cross_compiling" = yes ||
13561 $as_test_x conftest$ac_exeext
13563 sv_cv_fault_irix="guessing no
"
13565 $as_echo "$as_me: failed program was
:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 sv_cv_fault_irix=no
13571 rm -rf conftest.dSYM
13572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13573 conftest$ac_exeext conftest.$ac_ext
13578 cat >conftest.$ac_ext <<_ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13586 #include <stdlib.h>
13587 #include <signal.h>
13588 #if HAVE_SYS_SIGNAL_H
13589 # include <sys/signal.h>
13592 #include <sys/types.h>
13593 #include <sys/mman.h>
13594 #if HAVE_MMAP_DEVZERO
13595 # include <fcntl.h>
13597 # define MAP_FILE 0
13601 # define PROT_NONE 0
13604 # define zero_fd -1
13605 # define map_flags MAP_ANON | MAP_PRIVATE
13606 #elif HAVE_MMAP_ANONYMOUS
13607 # define zero_fd -1
13608 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
13609 #elif HAVE_MMAP_DEVZERO
13610 static int zero_fd;
13611 # define map_flags MAP_FILE | MAP_PRIVATE
13613 unsigned long page;
13614 int handler_called = 0;
13615 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
13617 void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr);
13619 if (handler_called == 10)
13621 if (fault_address != (void*)(page + 0x678))
13623 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
13626 void crasher (unsigned long p)
13628 *(int *) (p + 0x678) = 42;
13633 struct sigaction action;
13634 /* Preparations. */
13635 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
13636 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
13638 /* Setup some mmaped memory. */
13640 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
13641 freedom about the address range. */
13642 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13644 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13646 if (p == (void *)(-1))
13648 page = (unsigned long) p;
13649 /* Make it read-only. */
13650 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
13652 /* Install the SIGSEGV handler. */
13653 sigemptyset(&action.sa_mask);
13655 action.sa_handler = (void (*) (int)) &sigsegv_handler;
13656 action.sa_flags = 0;
13658 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
13659 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
13660 /* The first write access should invoke the handler and then complete. */
13662 /* The second write access should not invoke the handler. */
13664 /* Check that the handler was called only once. */
13665 if (handler_called != 1)
13671 rm -f conftest$ac_exeext
13672 if { (ac_try="$ac_link"
13673 case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13677 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13678 $as_echo "$ac_try_echo") >&5
13679 (eval "$ac_link") 2>&5
13681 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13683 { (case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13687 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13688 $as_echo "$ac_try_echo") >&5
13689 (eval "$ac_try") 2>&5
13691 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 sv_cv_fault_irix=yes
13695 $as_echo "$as_me: program exited with status
$ac_status" >&5
13696 $as_echo "$as_me: failed program was
:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ( exit $ac_status )
13700 sv_cv_fault_irix=no
13702 rm -rf conftest.dSYM
13703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13709 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_irix" >&5
13710 $as_echo "$sv_cv_fault_irix" >&6; }
13717 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to HP-UX HPPA works
" >&5
13718 $as_echo_n "checking whether a fault handler according to HP-UX HPPA works...
" >&6; }
13719 if test "${sv_cv_fault_hpux_hppa+set}" = set; then
13720 $as_echo_n "(cached
) " >&6
13723 if test "$cross_compiling" = yes; then
13725 hppa*-*-hpux11*) sv_cv_fault_hpux_hppa=yes ;;
13727 cat >conftest.$ac_ext <<_ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13735 #include <signal.h>
13737 #define USE_64BIT_REGS(mc) \
13738 (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))
13739 #define GET_CR21(mc) \
13740 (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)
13742 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
13744 void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));
13750 struct sigaction action;
13756 rm -f conftest.$ac_objext conftest$ac_exeext
13757 if { (ac_try="$ac_link"
13758 case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13762 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13763 $as_echo "$ac_try_echo") >&5
13764 (eval "$ac_link") 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13770 (exit $ac_status); } && {
13771 test -z "$ac_c_werror_flag" ||
13772 test ! -s conftest.err
13773 } && test -s conftest$ac_exeext && {
13774 test "$cross_compiling" = yes ||
13775 $as_test_x conftest$ac_exeext
13777 sv_cv_fault_hpux_hppa="guessing no
"
13779 $as_echo "$as_me: failed program was
:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13782 sv_cv_fault_hpux_hppa=no
13785 rm -rf conftest.dSYM
13786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13787 conftest$ac_exeext conftest.$ac_ext
13792 cat >conftest.$ac_ext <<_ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13800 #include <stdlib.h>
13801 #include <signal.h>
13802 #if HAVE_SYS_SIGNAL_H
13803 # include <sys/signal.h>
13806 #define USE_64BIT_REGS(mc) \
13807 (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))
13808 #define GET_CR21(mc) \
13809 (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)
13811 #include <sys/types.h>
13812 #include <sys/mman.h>
13813 #if HAVE_MMAP_DEVZERO
13814 # include <fcntl.h>
13816 # define MAP_FILE 0
13820 # define PROT_NONE 0
13823 # define zero_fd -1
13824 # define map_flags MAP_ANON | MAP_PRIVATE
13825 #elif HAVE_MMAP_ANONYMOUS
13826 # define zero_fd -1
13827 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
13828 #elif HAVE_MMAP_DEVZERO
13829 static int zero_fd;
13830 # define map_flags MAP_FILE | MAP_PRIVATE
13832 unsigned long page;
13833 int handler_called = 0;
13834 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
13836 void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));
13838 if (handler_called == 10)
13840 if (fault_address != (void*)(page + 0x678))
13842 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
13845 void crasher (unsigned long p)
13847 *(int *) (p + 0x678) = 42;
13852 struct sigaction action;
13853 /* Preparations. */
13854 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
13855 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
13857 /* Setup some mmaped memory. */
13859 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
13860 freedom about the address range. */
13861 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13863 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13865 if (p == (void *)(-1))
13867 page = (unsigned long) p;
13868 /* Make it read-only. */
13869 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
13871 /* Install the SIGSEGV handler. */
13872 sigemptyset(&action.sa_mask);
13874 action.sa_handler = (void (*) (int)) &sigsegv_handler;
13875 action.sa_flags = 0;
13877 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
13878 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
13879 /* The first write access should invoke the handler and then complete. */
13881 /* The second write access should not invoke the handler. */
13883 /* Check that the handler was called only once. */
13884 if (handler_called != 1)
13890 rm -f conftest$ac_exeext
13891 if { (ac_try="$ac_link"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13897 $as_echo "$ac_try_echo") >&5
13898 (eval "$ac_link") 2>&5
13900 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13906 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13907 $as_echo "$ac_try_echo") >&5
13908 (eval "$ac_try") 2>&5
13910 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 sv_cv_fault_hpux_hppa=yes
13914 $as_echo "$as_me: program exited with status
$ac_status" >&5
13915 $as_echo "$as_me: failed program was
:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13918 ( exit $ac_status )
13919 sv_cv_fault_hpux_hppa=no
13921 rm -rf conftest.dSYM
13922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13928 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_hpux_hppa" >&5
13929 $as_echo "$sv_cv_fault_hpux_hppa" >&6; }
13936 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to OSF
/1 Alpha works
" >&5
13937 $as_echo_n "checking whether a fault handler according to OSF
/1 Alpha works...
" >&6; }
13938 if test "${sv_cv_fault_osf_alpha+set}" = set; then
13939 $as_echo_n "(cached
) " >&6
13942 if test "$cross_compiling" = yes; then
13944 alpha*-*-osf[4-9]* | alpha*-*-linux2.[4-9]*) sv_cv_fault_osf_alpha=yes ;;
13946 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13954 #include <signal.h>
13956 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
13958 void *fault_address = (void *) (scp->sc_traparg_a0);
13964 struct sigaction action;
13970 rm -f conftest.$ac_objext conftest$ac_exeext
13971 if { (ac_try="$ac_link"
13972 case "(($ac_try" in
13973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13974 *) ac_try_echo=$ac_try;;
13976 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13977 $as_echo "$ac_try_echo") >&5
13978 (eval "$ac_link") 2>conftest.er1
13980 grep -v '^ *+' conftest.er1 >conftest.err
13982 cat conftest.err >&5
13983 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13984 (exit $ac_status); } && {
13985 test -z "$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13987 } && test -s conftest$ac_exeext && {
13988 test "$cross_compiling" = yes ||
13989 $as_test_x conftest$ac_exeext
13991 sv_cv_fault_osf_alpha="guessing no
"
13993 $as_echo "$as_me: failed program was
:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 sv_cv_fault_osf_alpha=no
13999 rm -rf conftest.dSYM
14000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14001 conftest$ac_exeext conftest.$ac_ext
14006 cat >conftest.$ac_ext <<_ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14014 #include <stdlib.h>
14015 #include <signal.h>
14016 #if HAVE_SYS_SIGNAL_H
14017 # include <sys/signal.h>
14020 #include <sys/types.h>
14021 #include <sys/mman.h>
14022 #if HAVE_MMAP_DEVZERO
14023 # include <fcntl.h>
14025 # define MAP_FILE 0
14029 # define PROT_NONE 0
14032 # define zero_fd -1
14033 # define map_flags MAP_ANON | MAP_PRIVATE
14034 #elif HAVE_MMAP_ANONYMOUS
14035 # define zero_fd -1
14036 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
14037 #elif HAVE_MMAP_DEVZERO
14038 static int zero_fd;
14039 # define map_flags MAP_FILE | MAP_PRIVATE
14041 unsigned long page;
14042 int handler_called = 0;
14043 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14045 void *fault_address = (void *) (scp->sc_traparg_a0);
14047 if (handler_called == 10)
14049 if (fault_address != (void*)(page + 0x678))
14051 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
14054 void crasher (unsigned long p)
14056 *(int *) (p + 0x678) = 42;
14061 struct sigaction action;
14062 /* Preparations. */
14063 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
14064 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
14066 /* Setup some mmaped memory. */
14068 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
14069 freedom about the address range. */
14070 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14072 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14074 if (p == (void *)(-1))
14076 page = (unsigned long) p;
14077 /* Make it read-only. */
14078 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
14080 /* Install the SIGSEGV handler. */
14081 sigemptyset(&action.sa_mask);
14083 action.sa_handler = (void (*) (int)) &sigsegv_handler;
14084 action.sa_flags = 0;
14086 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
14087 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
14088 /* The first write access should invoke the handler and then complete. */
14090 /* The second write access should not invoke the handler. */
14092 /* Check that the handler was called only once. */
14093 if (handler_called != 1)
14099 rm -f conftest$ac_exeext
14100 if { (ac_try="$ac_link"
14101 case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14105 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14106 $as_echo "$ac_try_echo") >&5
14107 (eval "$ac_link") 2>&5
14109 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14111 { (case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14115 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14116 $as_echo "$ac_try_echo") >&5
14117 (eval "$ac_try") 2>&5
14119 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 sv_cv_fault_osf_alpha=yes
14123 $as_echo "$as_me: program exited with status
$ac_status" >&5
14124 $as_echo "$as_me: failed program was
:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ( exit $ac_status )
14128 sv_cv_fault_osf_alpha=no
14130 rm -rf conftest.dSYM
14131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14137 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_osf_alpha" >&5
14138 $as_echo "$sv_cv_fault_osf_alpha" >&6; }
14145 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to NetBSD Alpha works
" >&5
14146 $as_echo_n "checking whether a fault handler according to NetBSD Alpha works...
" >&6; }
14147 if test "${sv_cv_fault_netbsd_alpha+set}" = set; then
14148 $as_echo_n "(cached
) " >&6
14151 if test "$cross_compiling" = yes; then
14153 alpha*-*-osf[4-9]* | alpha-*-*bsd*) sv_cv_fault_netbsd_alpha=yes ;;
14155 cat >conftest.$ac_ext <<_ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14163 #include <signal.h>
14164 #include "$srcdir/src
/fault-netbsd-alpha.c
"
14165 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14167 void *fault_address = (void *) (get_fault_addr (scp));
14173 struct sigaction action;
14179 rm -f conftest.$ac_objext conftest$ac_exeext
14180 if { (ac_try="$ac_link"
14181 case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14185 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14186 $as_echo "$ac_try_echo") >&5
14187 (eval "$ac_link") 2>conftest.er1
14189 grep -v '^ *+' conftest.er1 >conftest.err
14191 cat conftest.err >&5
14192 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14193 (exit $ac_status); } && {
14194 test -z "$ac_c_werror_flag" ||
14195 test ! -s conftest.err
14196 } && test -s conftest$ac_exeext && {
14197 test "$cross_compiling" = yes ||
14198 $as_test_x conftest$ac_exeext
14200 sv_cv_fault_netbsd_alpha="guessing no
"
14202 $as_echo "$as_me: failed program was
:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14205 sv_cv_fault_netbsd_alpha=no
14208 rm -rf conftest.dSYM
14209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14210 conftest$ac_exeext conftest.$ac_ext
14215 cat >conftest.$ac_ext <<_ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14223 #include <stdlib.h>
14224 #include <signal.h>
14225 #if HAVE_SYS_SIGNAL_H
14226 # include <sys/signal.h>
14228 #include "$srcdir/src
/fault-netbsd-alpha.c
"
14229 #include <sys/types.h>
14230 #include <sys/mman.h>
14231 #if HAVE_MMAP_DEVZERO
14232 # include <fcntl.h>
14234 # define MAP_FILE 0
14238 # define PROT_NONE 0
14241 # define zero_fd -1
14242 # define map_flags MAP_ANON | MAP_PRIVATE
14243 #elif HAVE_MMAP_ANONYMOUS
14244 # define zero_fd -1
14245 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
14246 #elif HAVE_MMAP_DEVZERO
14247 static int zero_fd;
14248 # define map_flags MAP_FILE | MAP_PRIVATE
14250 unsigned long page;
14251 int handler_called = 0;
14252 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14254 void *fault_address = (void *) (get_fault_addr (scp));
14256 if (handler_called == 10)
14258 if (fault_address != (void*)(page + 0x678))
14260 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
14263 void crasher (unsigned long p)
14265 *(int *) (p + 0x678) = 42;
14270 struct sigaction action;
14271 /* Preparations. */
14272 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
14273 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
14275 /* Setup some mmaped memory. */
14277 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
14278 freedom about the address range. */
14279 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14281 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14283 if (p == (void *)(-1))
14285 page = (unsigned long) p;
14286 /* Make it read-only. */
14287 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
14289 /* Install the SIGSEGV handler. */
14290 sigemptyset(&action.sa_mask);
14292 action.sa_handler = (void (*) (int)) &sigsegv_handler;
14293 action.sa_flags = 0;
14295 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
14296 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
14297 /* The first write access should invoke the handler and then complete. */
14299 /* The second write access should not invoke the handler. */
14301 /* Check that the handler was called only once. */
14302 if (handler_called != 1)
14308 rm -f conftest$ac_exeext
14309 if { (ac_try="$ac_link"
14310 case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14314 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14315 $as_echo "$ac_try_echo") >&5
14316 (eval "$ac_link") 2>&5
14318 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14324 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14325 $as_echo "$ac_try_echo") >&5
14326 (eval "$ac_try") 2>&5
14328 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 sv_cv_fault_netbsd_alpha=yes
14332 $as_echo "$as_me: program exited with status
$ac_status" >&5
14333 $as_echo "$as_me: failed program was
:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 ( exit $ac_status )
14337 sv_cv_fault_netbsd_alpha=no
14339 rm -rf conftest.dSYM
14340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14346 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_netbsd_alpha" >&5
14347 $as_echo "$sv_cv_fault_netbsd_alpha" >&6; }
14354 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to AIX works
" >&5
14355 $as_echo_n "checking whether a fault handler according to AIX works...
" >&6; }
14356 if test "${sv_cv_fault_aix+set}" = set; then
14357 $as_echo_n "(cached
) " >&6
14360 if test "$cross_compiling" = yes; then
14362 *-*-aix[34]*) sv_cv_fault_aix=yes ;;
14364 cat >conftest.$ac_ext <<_ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14372 #include <signal.h>
14374 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14376 void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr);
14382 struct sigaction action;
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14394 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14395 $as_echo "$ac_try_echo") >&5
14396 (eval "$ac_link") 2>conftest.er1
14398 grep -v '^ *+' conftest.er1 >conftest.err
14400 cat conftest.err >&5
14401 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14402 (exit $ac_status); } && {
14403 test -z "$ac_c_werror_flag" ||
14404 test ! -s conftest.err
14405 } && test -s conftest$ac_exeext && {
14406 test "$cross_compiling" = yes ||
14407 $as_test_x conftest$ac_exeext
14409 sv_cv_fault_aix="guessing no
"
14411 $as_echo "$as_me: failed program was
:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14417 rm -rf conftest.dSYM
14418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14419 conftest$ac_exeext conftest.$ac_ext
14424 cat >conftest.$ac_ext <<_ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14432 #include <stdlib.h>
14433 #include <signal.h>
14434 #if HAVE_SYS_SIGNAL_H
14435 # include <sys/signal.h>
14438 #include <sys/types.h>
14439 #include <sys/mman.h>
14440 #if HAVE_MMAP_DEVZERO
14441 # include <fcntl.h>
14443 # define MAP_FILE 0
14447 # define PROT_NONE 0
14450 # define zero_fd -1
14451 # define map_flags MAP_ANON | MAP_PRIVATE
14452 #elif HAVE_MMAP_ANONYMOUS
14453 # define zero_fd -1
14454 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
14455 #elif HAVE_MMAP_DEVZERO
14456 static int zero_fd;
14457 # define map_flags MAP_FILE | MAP_PRIVATE
14459 unsigned long page;
14460 int handler_called = 0;
14461 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14463 void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr);
14465 if (handler_called == 10)
14467 if (fault_address != (void*)(page + 0x678))
14469 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
14472 void crasher (unsigned long p)
14474 *(int *) (p + 0x678) = 42;
14479 struct sigaction action;
14480 /* Preparations. */
14481 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
14482 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
14484 /* Setup some mmaped memory. */
14486 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
14487 freedom about the address range. */
14488 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14490 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14492 if (p == (void *)(-1))
14494 page = (unsigned long) p;
14495 /* Make it read-only. */
14496 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
14498 /* Install the SIGSEGV handler. */
14499 sigemptyset(&action.sa_mask);
14501 action.sa_handler = (void (*) (int)) &sigsegv_handler;
14502 action.sa_flags = 0;
14504 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
14505 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
14506 /* The first write access should invoke the handler and then complete. */
14508 /* The second write access should not invoke the handler. */
14510 /* Check that the handler was called only once. */
14511 if (handler_called != 1)
14517 rm -f conftest$ac_exeext
14518 if { (ac_try="$ac_link"
14519 case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14523 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14524 $as_echo "$ac_try_echo") >&5
14525 (eval "$ac_link") 2>&5
14527 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14529 { (case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14533 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14534 $as_echo "$ac_try_echo") >&5
14535 (eval "$ac_try") 2>&5
14537 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 sv_cv_fault_aix=yes
14541 $as_echo "$as_me: program exited with status
$ac_status" >&5
14542 $as_echo "$as_me: failed program was
:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ( exit $ac_status )
14548 rm -rf conftest.dSYM
14549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14555 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_aix" >&5
14556 $as_echo "$sv_cv_fault_aix" >&6; }
14563 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to MacOSX
/Darwin7 PowerPC works
" >&5
14564 $as_echo_n "checking whether a fault handler according to MacOSX
/Darwin7 PowerPC works...
" >&6; }
14565 if test "${sv_cv_fault_macosdarwin7_ppc+set}" = set; then
14566 $as_echo_n "(cached
) " >&6
14569 if test "$cross_compiling" = yes; then
14571 powerpc-*-darwin7*) sv_cv_fault_macosdarwin7_ppc=yes ;;
14573 cat >conftest.$ac_ext <<_ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14581 #include <signal.h>
14582 #include "$srcdir/src
/fault-macosdarwin7-powerpc.c
"
14583 void sigsegv_handler (int sig, siginfo_t *sip, ucontext_t *ucp)
14585 void *fault_address = (void *) (get_fault_addr (sip, ucp));
14591 struct sigaction action;
14592 action.sa_sigaction = &sigsegv_handler;
14593 action.sa_flags = SA_SIGINFO;
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (ac_try="$ac_link"
14600 case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14604 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14605 $as_echo "$ac_try_echo") >&5
14606 (eval "$ac_link") 2>conftest.er1
14608 grep -v '^ *+' conftest.er1 >conftest.err
14610 cat conftest.err >&5
14611 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14612 (exit $ac_status); } && {
14613 test -z "$ac_c_werror_flag" ||
14614 test ! -s conftest.err
14615 } && test -s conftest$ac_exeext && {
14616 test "$cross_compiling" = yes ||
14617 $as_test_x conftest$ac_exeext
14619 sv_cv_fault_macosdarwin7_ppc="guessing no
"
14621 $as_echo "$as_me: failed program was
:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 sv_cv_fault_macosdarwin7_ppc=no
14627 rm -rf conftest.dSYM
14628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14629 conftest$ac_exeext conftest.$ac_ext
14634 cat >conftest.$ac_ext <<_ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14642 #include <stdlib.h>
14643 #include <signal.h>
14644 #if HAVE_SYS_SIGNAL_H
14645 # include <sys/signal.h>
14647 #include "$srcdir/src
/fault-macosdarwin7-powerpc.c
"
14648 #include <sys/types.h>
14649 #include <sys/mman.h>
14650 #if HAVE_MMAP_DEVZERO
14651 # include <fcntl.h>
14653 # define MAP_FILE 0
14657 # define PROT_NONE 0
14660 # define zero_fd -1
14661 # define map_flags MAP_ANON | MAP_PRIVATE
14662 #elif HAVE_MMAP_ANONYMOUS
14663 # define zero_fd -1
14664 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
14665 #elif HAVE_MMAP_DEVZERO
14666 static int zero_fd;
14667 # define map_flags MAP_FILE | MAP_PRIVATE
14669 unsigned long page;
14670 int handler_called = 0;
14671 void sigsegv_handler (int sig, siginfo_t *sip, ucontext_t *ucp)
14673 void *fault_address = (void *) (get_fault_addr (sip, ucp));
14675 if (handler_called == 10)
14677 if (fault_address != (void*)(page + 0x678))
14679 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
14682 void crasher (unsigned long p)
14684 *(int *) (p + 0x678) = 42;
14689 struct sigaction action;
14690 /* Preparations. */
14691 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
14692 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
14694 /* Setup some mmaped memory. */
14696 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
14697 freedom about the address range. */
14698 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14700 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14702 if (p == (void *)(-1))
14704 page = (unsigned long) p;
14705 /* Make it read-only. */
14706 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
14708 /* Install the SIGSEGV handler. */
14709 sigemptyset(&action.sa_mask);
14710 action.sa_sigaction = &sigsegv_handler;
14711 action.sa_flags = SA_SIGINFO;
14712 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
14713 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
14714 /* The first write access should invoke the handler and then complete. */
14716 /* The second write access should not invoke the handler. */
14718 /* Check that the handler was called only once. */
14719 if (handler_called != 1)
14725 rm -f conftest$ac_exeext
14726 if { (ac_try="$ac_link"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14732 $as_echo "$ac_try_echo") >&5
14733 (eval "$ac_link") 2>&5
14735 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14741 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14742 $as_echo "$ac_try_echo") >&5
14743 (eval "$ac_try") 2>&5
14745 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 sv_cv_fault_macosdarwin7_ppc=yes
14749 $as_echo "$as_me: program exited with status
$ac_status" >&5
14750 $as_echo "$as_me: failed program was
:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 ( exit $ac_status )
14754 sv_cv_fault_macosdarwin7_ppc=no
14756 rm -rf conftest.dSYM
14757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14763 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_macosdarwin7_ppc" >&5
14764 $as_echo "$sv_cv_fault_macosdarwin7_ppc" >&6; }
14767 if test "$sv_cv_fault_macosdarwin7_ppc" != yes; then
14772 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to MacOSX
/Darwin5 PowerPC works
" >&5
14773 $as_echo_n "checking whether a fault handler according to MacOSX
/Darwin5 PowerPC works...
" >&6; }
14774 if test "${sv_cv_fault_macosdarwin5_ppc+set}" = set; then
14775 $as_echo_n "(cached
) " >&6
14778 if test "$cross_compiling" = yes; then
14780 powerpc-*-darwin5*) sv_cv_fault_macosdarwin5_ppc=yes ;;
14782 cat >conftest.$ac_ext <<_ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14790 #include <signal.h>
14791 #include "$srcdir/src
/fault-macosdarwin5-powerpc.c
"
14792 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14794 void *fault_address = (void *) (get_fault_addr (scp));
14800 struct sigaction action;
14806 rm -f conftest.$ac_objext conftest$ac_exeext
14807 if { (ac_try="$ac_link"
14808 case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14812 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14813 $as_echo "$ac_try_echo") >&5
14814 (eval "$ac_link") 2>conftest.er1
14816 grep -v '^ *+' conftest.er1 >conftest.err
14818 cat conftest.err >&5
14819 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14820 (exit $ac_status); } && {
14821 test -z "$ac_c_werror_flag" ||
14822 test ! -s conftest.err
14823 } && test -s conftest$ac_exeext && {
14824 test "$cross_compiling" = yes ||
14825 $as_test_x conftest$ac_exeext
14827 sv_cv_fault_macosdarwin5_ppc="guessing no
"
14829 $as_echo "$as_me: failed program was
:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 sv_cv_fault_macosdarwin5_ppc=no
14835 rm -rf conftest.dSYM
14836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14837 conftest$ac_exeext conftest.$ac_ext
14842 cat >conftest.$ac_ext <<_ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14850 #include <stdlib.h>
14851 #include <signal.h>
14852 #if HAVE_SYS_SIGNAL_H
14853 # include <sys/signal.h>
14855 #include "$srcdir/src
/fault-macosdarwin5-powerpc.c
"
14856 #include <sys/types.h>
14857 #include <sys/mman.h>
14858 #if HAVE_MMAP_DEVZERO
14859 # include <fcntl.h>
14861 # define MAP_FILE 0
14865 # define PROT_NONE 0
14868 # define zero_fd -1
14869 # define map_flags MAP_ANON | MAP_PRIVATE
14870 #elif HAVE_MMAP_ANONYMOUS
14871 # define zero_fd -1
14872 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
14873 #elif HAVE_MMAP_DEVZERO
14874 static int zero_fd;
14875 # define map_flags MAP_FILE | MAP_PRIVATE
14877 unsigned long page;
14878 int handler_called = 0;
14879 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14881 void *fault_address = (void *) (get_fault_addr (scp));
14883 if (handler_called == 10)
14885 if (fault_address != (void*)(page + 0x678))
14887 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
14890 void crasher (unsigned long p)
14892 *(int *) (p + 0x678) = 42;
14897 struct sigaction action;
14898 /* Preparations. */
14899 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
14900 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
14902 /* Setup some mmaped memory. */
14904 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
14905 freedom about the address range. */
14906 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14908 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14910 if (p == (void *)(-1))
14912 page = (unsigned long) p;
14913 /* Make it read-only. */
14914 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
14916 /* Install the SIGSEGV handler. */
14917 sigemptyset(&action.sa_mask);
14919 action.sa_handler = (void (*) (int)) &sigsegv_handler;
14920 action.sa_flags = 0;
14922 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
14923 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
14924 /* The first write access should invoke the handler and then complete. */
14926 /* The second write access should not invoke the handler. */
14928 /* Check that the handler was called only once. */
14929 if (handler_called != 1)
14935 rm -f conftest$ac_exeext
14936 if { (ac_try="$ac_link"
14937 case "(($ac_try" in
14938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14939 *) ac_try_echo=$ac_try;;
14941 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14942 $as_echo "$ac_try_echo") >&5
14943 (eval "$ac_link") 2>&5
14945 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14947 { (case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14951 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14952 $as_echo "$ac_try_echo") >&5
14953 (eval "$ac_try") 2>&5
14955 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 sv_cv_fault_macosdarwin5_ppc=yes
14959 $as_echo "$as_me: program exited with status
$ac_status" >&5
14960 $as_echo "$as_me: failed program was
:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 ( exit $ac_status )
14964 sv_cv_fault_macosdarwin5_ppc=no
14966 rm -rf conftest.dSYM
14967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14973 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_macosdarwin5_ppc" >&5
14974 $as_echo "$sv_cv_fault_macosdarwin5_ppc" >&6; }
14982 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to Hurd works
" >&5
14983 $as_echo_n "checking whether a fault handler according to Hurd works...
" >&6; }
14984 if test "${sv_cv_fault_hurd+set}" = set; then
14985 $as_echo_n "(cached
) " >&6
14988 if test "$cross_compiling" = yes; then
14992 cat >conftest.$ac_ext <<_ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15000 #include <signal.h>
15002 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
15004 void *fault_address = (void *) (code);
15010 struct sigaction action;
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (ac_try="$ac_link"
15018 case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15022 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15023 $as_echo "$ac_try_echo") >&5
15024 (eval "$ac_link") 2>conftest.er1
15026 grep -v '^ *+' conftest.er1 >conftest.err
15028 cat conftest.err >&5
15029 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15030 (exit $ac_status); } && {
15031 test -z "$ac_c_werror_flag" ||
15032 test ! -s conftest.err
15033 } && test -s conftest$ac_exeext && {
15034 test "$cross_compiling" = yes ||
15035 $as_test_x conftest$ac_exeext
15037 sv_cv_fault_hurd="guessing no
"
15039 $as_echo "$as_me: failed program was
:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 sv_cv_fault_hurd=no
15045 rm -rf conftest.dSYM
15046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15047 conftest$ac_exeext conftest.$ac_ext
15052 cat >conftest.$ac_ext <<_ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15060 #include <stdlib.h>
15061 #include <signal.h>
15062 #if HAVE_SYS_SIGNAL_H
15063 # include <sys/signal.h>
15066 #include <sys/types.h>
15067 #include <sys/mman.h>
15068 #if HAVE_MMAP_DEVZERO
15069 # include <fcntl.h>
15071 # define MAP_FILE 0
15075 # define PROT_NONE 0
15078 # define zero_fd -1
15079 # define map_flags MAP_ANON | MAP_PRIVATE
15080 #elif HAVE_MMAP_ANONYMOUS
15081 # define zero_fd -1
15082 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
15083 #elif HAVE_MMAP_DEVZERO
15084 static int zero_fd;
15085 # define map_flags MAP_FILE | MAP_PRIVATE
15087 unsigned long page;
15088 int handler_called = 0;
15089 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
15091 void *fault_address = (void *) (code);
15093 if (handler_called == 10)
15095 if (fault_address != (void*)(page + 0x678))
15097 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
15100 void crasher (unsigned long p)
15102 *(int *) (p + 0x678) = 42;
15107 struct sigaction action;
15108 /* Preparations. */
15109 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
15110 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
15112 /* Setup some mmaped memory. */
15114 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
15115 freedom about the address range. */
15116 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
15118 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
15120 if (p == (void *)(-1))
15122 page = (unsigned long) p;
15123 /* Make it read-only. */
15124 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
15126 /* Install the SIGSEGV handler. */
15127 sigemptyset(&action.sa_mask);
15129 action.sa_handler = (void (*) (int)) &sigsegv_handler;
15130 action.sa_flags = 0;
15132 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
15133 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
15134 /* The first write access should invoke the handler and then complete. */
15136 /* The second write access should not invoke the handler. */
15138 /* Check that the handler was called only once. */
15139 if (handler_called != 1)
15145 rm -f conftest$ac_exeext
15146 if { (ac_try="$ac_link"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15152 $as_echo "$ac_try_echo") >&5
15153 (eval "$ac_link") 2>&5
15155 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15157 { (case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15162 $as_echo "$ac_try_echo") >&5
15163 (eval "$ac_try") 2>&5
15165 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 sv_cv_fault_hurd=yes
15169 $as_echo "$as_me: program exited with status
$ac_status" >&5
15170 $as_echo "$as_me: failed program was
:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15173 ( exit $ac_status )
15174 sv_cv_fault_hurd=no
15176 rm -rf conftest.dSYM
15177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15183 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_hurd" >&5
15184 $as_echo "$sv_cv_fault_hurd" >&6; }
15187 # End of MacOS X special casing.
15195 FAULT_CONTEXT_INCLUDE=
15196 if test -z "$CFG_FAULT" && test "$sv_cv_fault_aix" = yes; then
15197 case "$host_cpu" in
15198 powerpc* | rs6000) CFG_FAULT=fault-aix3-powerpc.h ;;
15199 *) CFG_FAULT=fault-aix3.h ;;
15201 FAULT_CONTEXT='struct sigcontext'
15203 if test -z "$CFG_FAULT" && test "$sv_cv_fault_irix" = yes; then
15204 case "$host_cpu" in
15205 mips*) CFG_FAULT=fault-irix-mips.h ;;
15206 *) CFG_FAULT=fault-irix.h ;;
15208 FAULT_CONTEXT='struct sigcontext'
15210 if test -z "$CFG_FAULT" && test "$sv_cv_fault_hpux_hppa" = yes; then
15211 case "$host_cpu" in
15212 hppa* | parisc*) CFG_FAULT=fault-hpux-hppa.h ;;
15213 *) CFG_FAULT=fault-hpux.h ;;
15215 FAULT_CONTEXT='struct sigcontext'
15217 if test -z "$CFG_FAULT" && test "$sv_cv_fault_osf_alpha" = yes; then
15218 case "$host_cpu" in
15219 alpha*) CFG_FAULT=fault-osf-alpha.h ;;
15220 *) CFG_FAULT=fault-osf.h ;;
15222 FAULT_CONTEXT='struct sigcontext'
15224 if test -z "$CFG_FAULT" && test "$sv_cv_fault_netbsd_alpha" = yes; then
15225 case "$host_cpu" in
15226 alpha*) CFG_FAULT=fault-netbsd-alpha.h ;;
15228 FAULT_CONTEXT='struct sigcontext'
15230 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_i386" = yes; then
15231 case "$host_cpu" in
15232 i?86 | x86_64) CFG_FAULT=fault-linux-i386.h ;;
15234 FAULT_CONTEXT='struct sigcontext'
15236 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_i386_old" = yes; then
15237 case "$host_cpu" in
15238 i?86 | x86_64) CFG_FAULT=fault-linux-i386-old.h ;;
15240 FAULT_CONTEXT='struct sigcontext'
15242 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_powerpc" = yes; then
15243 case "$host_cpu" in
15244 powerpc* | rs6000) CFG_FAULT=fault-linux-powerpc.h ;;
15246 FAULT_CONTEXT='struct sigcontext'
15248 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_hppa" = yes; then
15249 case "$host_cpu" in
15250 hppa* | parisc*) CFG_FAULT=fault-linux-hppa.h ;;
15253 if test -z "$CFG_FAULT" && test "$sv_cv_fault_hurd" = yes; then
15255 netbsd*) # A false positive.
15258 CFG_FAULT=fault-hurd.h
15259 FAULT_CONTEXT='struct sigcontext'
15263 if test -z "$CFG_FAULT" && test "$sv_cv_fault_bsd" = yes; then
15265 freebsd* | kfreebsd*)
15266 case "$host_cpu" in
15268 CFG_FAULT=fault-freebsd-i386.h
15269 FAULT_CONTEXT='struct sigcontext'
15272 CFG_FAULT=fault-bsd.h
15273 FAULT_CONTEXT='void'
15278 CFG_FAULT=fault-bsd.h
15279 FAULT_CONTEXT='void'
15283 if test -z "$CFG_FAULT" && test "$sv_cv_fault_posix" = yes; then
15286 case "$host_cpu" in
15287 i?86 | x86_64) CFG_FAULT=fault-openbsd-i386.h ;;
15288 *) CFG_FAULT=fault-openbsd.h ;;
15290 FAULT_CONTEXT='struct sigcontext'
15293 case "$host_cpu" in
15295 CFG_FAULT=fault-linux-ia64.h
15296 FAULT_CONTEXT='struct sigcontext'
15301 if test -z "$CFG_FAULT"; then
15304 case "$host_cpu" in
15305 i?86 | x86_64) CFG_FAULT=fault-solaris-i386.h ;;
15306 sparc*) CFG_FAULT=fault-solaris-sparc.h ;;
15307 *) CFG_FAULT=fault-solaris.h ;;
15311 case "$host_cpu" in
15312 powerpc* | rs6000) CFG_FAULT=fault-aix5-powerpc.h ;;
15313 *) CFG_FAULT=fault-aix5.h ;;
15317 CFG_FAULT=fault-netbsd.h
15320 CFG_FAULT=fault-posix.h
15323 FAULT_CONTEXT='ucontext_t'
15324 FAULT_CONTEXT_INCLUDE='#include <ucontext.h>'
15327 if test -z "$CFG_FAULT"; then
15329 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
15330 case "$host_cpu" in
15332 CFG_MACHFAULT=machfault-macos-powerpc.h
15333 FAULT_CONTEXT_INCLUDE='#include <signal.h>
15334 #include <mach/thread_status.h>
15335 #if defined __ppc64__
15336 #define sigsegv_thread_state_t ppc_thread_state64_t
15338 #define sigsegv_thread_state_t ppc_thread_state_t
15340 FAULT_CONTEXT='sigsegv_thread_state_t'
15343 CFG_MACHFAULT=machfault-macos-i386.h
15344 FAULT_CONTEXT_INCLUDE='#include <signal.h>
15345 #include <mach/thread_status.h>
15346 #if defined __x86_64__
15347 #define sigsegv_thread_state_t x86_thread_state64_t
15349 #if defined x86_THREAD_STATE32
15350 #define sigsegv_thread_state_t x86_thread_state32_t
15352 #define sigsegv_thread_state_t i386_thread_state_t
15355 FAULT_CONTEXT='sigsegv_thread_state_t'
15358 if test -n "$CFG_MACHFAULT"; then
15359 CFG_HANDLER=handler-macos.c
15360 CFG_FAULT=fault-macos.h # nonexistent, just a dummy
15365 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_m68k" = yes; then
15366 case "$host_cpu" in
15368 CFG_FAULT=fault-linux-m68k.h
15369 FAULT_CONTEXT='struct sigcontext'
15373 if test -z "$CFG_FAULT" && test "$sv_cv_fault_macosdarwin7_ppc" = yes; then
15374 case "$host_cpu" in
15376 CFG_FAULT=fault-macosdarwin7-powerpc.h
15377 FAULT_CONTEXT='ucontext_t'
15378 FAULT_CONTEXT_INCLUDE='#include <signal.h>
15379 #include <ucontext.h>'
15383 if test -z "$CFG_FAULT" && test "$sv_cv_fault_macosdarwin5_ppc" = yes; then
15384 case "$host_cpu" in
15386 CFG_FAULT=fault-macosdarwin5-powerpc.h
15387 FAULT_CONTEXT='struct sigcontext'
15391 if test -z "$CFG_FAULT"; then
15394 FAULT_CONTEXT='CONTEXT'
15395 FAULT_CONTEXT_INCLUDE='#include <windows.h>'
15396 CFG_FAULT=fault-win32.h # nonexistent, just a dummy
15400 if test -n "$CFG_FAULT"; then
15401 sv_cv_have_sigsegv_recovery=yes
15403 sv_cv_have_sigsegv_recovery=no
15406 case "$host_cpu" in
15408 CFG_FAULT=fault-linux-alpha.h
15409 FAULT_CONTEXT='struct sigcontext'
15411 arm* | strongarm* | xscale*)
15412 CFG_FAULT=fault-linux-arm.h
15413 FAULT_CONTEXT='struct sigcontext'
15416 CFG_FAULT=fault-linux-cris.h
15417 FAULT_CONTEXT='struct sigcontext'
15420 CFG_FAULT=fault-linux-mips.h
15421 FAULT_CONTEXT='struct sigcontext'
15424 CFG_FAULT=fault-linux-s390.h
15425 FAULT_CONTEXT='struct sigcontext'
15428 CFG_FAULT=fault-linux-sh.h
15429 FAULT_CONTEXT='struct sigcontext'
15432 CFG_FAULT=fault-linux-sparc.h
15433 FAULT_CONTEXT='struct sigcontext'
15436 CFG_FAULT=fault-linux-x86_64.h
15437 FAULT_CONTEXT='struct sigcontext'
15442 case "$host_cpu" in
15443 i?86 | x86_64) CFG_FAULT=fault-beos-i386.h ;;
15444 *) CFG_FAULT=fault-beos.h ;;
15446 FAULT_CONTEXT='struct vregs'
15449 case "$host_cpu" in
15450 i?86 | x86_64) CFG_FAULT=fault-macos-i386.h ;;
15452 FAULT_CONTEXT='struct sigcontext'
15456 { $as_echo "$as_me:$LINENO: checking
for the fault handler specifics
" >&5
15457 $as_echo_n "checking
for the fault handler specifics...
" >&6; }
15458 if test -n "$CFG_FAULT"; then
15459 sv_cv_fault_include=$CFG_FAULT
15461 if test -n "$CFG_MACHFAULT"; then
15462 sv_cv_fault_include=$CFG_MACHFAULT
15464 sv_cv_fault_include=none
15467 { $as_echo "$as_me:$LINENO: result
: $sv_cv_fault_include" >&5
15468 $as_echo "$sv_cv_fault_include" >&6; }
15469 if test -z "$CFG_FAULT"; then
15470 CFG_FAULT=fault-none.h
15473 cat >>confdefs.h <<_ACEOF
15474 #define CFG_FAULT "$CFG_FAULT"
15477 if test -z "$CFG_MACHFAULT"; then
15478 CFG_MACHFAULT=fault-none.h
15481 cat >>confdefs.h <<_ACEOF
15482 #define CFG_MACHFAULT "$CFG_MACHFAULT"
15488 { $as_echo "$as_me:$LINENO: checking
if the system supports catching SIGSEGV
" >&5
15489 $as_echo_n "checking
if the system supports catching SIGSEGV...
" >&6; }
15490 { $as_echo "$as_me:$LINENO: result
: $sv_cv_have_sigsegv_recovery" >&5
15491 $as_echo "$sv_cv_have_sigsegv_recovery" >&6; }
15492 if test $sv_cv_have_sigsegv_recovery != no; then
15493 HAVE_SIGSEGV_RECOVERY=1
15495 HAVE_SIGSEGV_RECOVERY=0
15500 { $as_echo "$as_me:$LINENO: checking
for stack direction
" >&5
15501 $as_echo_n "checking
for stack direction...
" >&6; }
15502 if test "${sv_cv_stack_direction_msg+set}" = set; then
15503 $as_echo_n "(cached
) " >&6
15506 case "$host_cpu" in
15510 arm* | strongarm* | xscale* | \
15512 c1 | c2 | c32 | c34 | c38 | \
15533 powerpc* | rs6000 | \
15541 sv_cv_stack_direction=-1 ;;
15545 hppa* | parisc* | \
15548 sv_cv_stack_direction=1 ;;
15550 if test $cross_compiling = no; then
15551 cat > conftest.c <<EOF
15554 get_stack_direction ()
15557 static char *dummyaddr = (char *)0;
15558 if (dummyaddr != (char *)0)
15559 return &dummy > dummyaddr ? 1 : &dummy < dummyaddr ? -1 : 0;
15562 dummyaddr = &dummy;
15564 int result = get_stack_direction ();
15565 /* The next assignment avoids tail recursion elimination
15567 dummyaddr = (char *)0;
15575 printf ("%d
\n", get_stack_direction ());
15579 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15580 (eval $ac_link) 2>&5
15582 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15583 (exit $ac_status); }
15584 sv_cv_stack_direction=`./conftest`
15586 sv_cv_stack_direction=0
15590 case $sv_cv_stack_direction in
15591 1) sv_cv_stack_direction_msg="grows up
";;
15592 -1) sv_cv_stack_direction_msg="grows down
";;
15593 *) sv_cv_stack_direction_msg="unknown
";;
15597 { $as_echo "$as_me:$LINENO: result
: $sv_cv_stack_direction_msg" >&5
15598 $as_echo "$sv_cv_stack_direction_msg" >&6; }
15600 cat >>confdefs.h <<_ACEOF
15601 #define STACK_DIRECTION $sv_cv_stack_direction
15605 { $as_echo "$as_me:$LINENO: checking
for PIOCMAP
in sys
/procfs.h
" >&5
15606 $as_echo_n "checking
for PIOCMAP
in sys
/procfs.h...
" >&6; }
15607 if test "${sv_cv_procfsvma+set}" = set; then
15608 $as_echo_n "(cached
) " >&6
15611 cat >conftest.$ac_ext <<_ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15617 #include <sys/procfs.h>
15621 int x = PIOCNMAP + PIOCMAP; prmap_t y;
15626 rm -f conftest.$ac_objext conftest$ac_exeext
15627 if { (ac_try="$ac_link"
15628 case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15632 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15633 $as_echo "$ac_try_echo") >&5
15634 (eval "$ac_link") 2>conftest.er1
15636 grep -v '^ *+' conftest.er1 >conftest.err
15638 cat conftest.err >&5
15639 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15640 (exit $ac_status); } && {
15641 test -z "$ac_c_werror_flag" ||
15642 test ! -s conftest.err
15643 } && test -s conftest$ac_exeext && {
15644 test "$cross_compiling" = yes ||
15645 $as_test_x conftest$ac_exeext
15647 sv_cv_procfsvma=yes
15649 $as_echo "$as_me: failed program was
:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15655 rm -rf conftest.dSYM
15656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15657 conftest$ac_exeext conftest.$ac_ext
15660 { $as_echo "$as_me:$LINENO: result
: $sv_cv_procfsvma" >&5
15661 $as_echo "$sv_cv_procfsvma" >&6; }
15663 for ac_func in mincore
15665 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15666 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
15667 $as_echo_n "checking
for $ac_func...
" >&6; }
15668 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15669 $as_echo_n "(cached
) " >&6
15671 cat >conftest.$ac_ext <<_ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15679 #define $ac_func innocuous_$ac_func
15681 /* System header to define __stub macros and hopefully few prototypes,
15682 which can conflict with char $ac_func (); below.
15683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15684 <limits.h> exists even on freestanding compilers. */
15687 # include <limits.h>
15689 # include <assert.h>
15694 /* Override any GCC internal prototype to avoid an error.
15695 Use char because int might match the return type of a GCC
15696 builtin and then its argument prototype would still apply. */
15701 /* The GNU C library defines this for functions which it implements
15702 to always fail with ENOSYS. Some functions are actually named
15703 something starting with __ and the normal name is an alias. */
15704 #if defined __stub_$ac_func || defined __stub___$ac_func
15711 return $ac_func ();
15716 rm -f conftest.$ac_objext conftest$ac_exeext
15717 if { (ac_try="$ac_link"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15722 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15723 $as_echo "$ac_try_echo") >&5
15724 (eval "$ac_link") 2>conftest.er1
15726 grep -v '^ *+' conftest.er1 >conftest.err
15728 cat conftest.err >&5
15729 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15730 (exit $ac_status); } && {
15731 test -z "$ac_c_werror_flag" ||
15732 test ! -s conftest.err
15733 } && test -s conftest$ac_exeext && {
15734 test "$cross_compiling" = yes ||
15735 $as_test_x conftest$ac_exeext
15737 eval "$as_ac_var=yes"
15739 $as_echo "$as_me: failed program was
:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 eval "$as_ac_var=no
"
15745 rm -rf conftest.dSYM
15746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15747 conftest$ac_exeext conftest.$ac_ext
15749 ac_res=`eval 'as_val=${'$as_ac_var'}
15750 $as_echo "$as_val"'`
15751 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
15752 $as_echo "$ac_res" >&6; }
15753 if test `eval 'as_val=${'$as_ac_var'}
15754 $as_echo "$as_val"'` = yes; then
15755 cat >>confdefs.h <<_ACEOF
15756 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15763 if test $sv_cv_procfsvma = yes; then
15764 CFG_STACKVMA=stackvma-procfs.c
15767 linux*) CFG_STACKVMA=stackvma-linux.c ;;
15768 freebsd*) CFG_STACKVMA=stackvma-freebsd.c ;;
15769 beos*) CFG_STACKVMA=stackvma-beos.c ;;
15770 macos* | darwin*) CFG_STACKVMA=stackvma-mach.c ;;
15773 if test -z "$CFG_STACKVMA" && test $ac_cv_func_mincore = yes; then
15774 CFG_STACKVMA=stackvma-mincore.c
15776 if test -n "$CFG_STACKVMA"; then
15778 cat >>confdefs.h <<\_ACEOF
15779 #define HAVE_STACKVMA 1
15783 CFG_STACKVMA=stackvma-none.c
15786 cat >>confdefs.h <<_ACEOF
15787 #define CFG_STACKVMA "$CFG_STACKVMA"
15794 for ac_func in getrlimit setrlimit
15796 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15797 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
15798 $as_echo_n "checking
for $ac_func...
" >&6; }
15799 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15800 $as_echo_n "(cached
) " >&6
15802 cat >conftest.$ac_ext <<_ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15810 #define $ac_func innocuous_$ac_func
15812 /* System header to define __stub macros and hopefully few prototypes,
15813 which can conflict with char $ac_func (); below.
15814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15815 <limits.h> exists even on freestanding compilers. */
15818 # include <limits.h>
15820 # include <assert.h>
15825 /* Override any GCC internal prototype to avoid an error.
15826 Use char because int might match the return type of a GCC
15827 builtin and then its argument prototype would still apply. */
15832 /* The GNU C library defines this for functions which it implements
15833 to always fail with ENOSYS. Some functions are actually named
15834 something starting with __ and the normal name is an alias. */
15835 #if defined __stub_$ac_func || defined __stub___$ac_func
15842 return $ac_func ();
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (ac_try="$ac_link"
15849 case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15853 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15854 $as_echo "$ac_try_echo") >&5
15855 (eval "$ac_link") 2>conftest.er1
15857 grep -v '^ *+' conftest.er1 >conftest.err
15859 cat conftest.err >&5
15860 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15861 (exit $ac_status); } && {
15862 test -z "$ac_c_werror_flag" ||
15863 test ! -s conftest.err
15864 } && test -s conftest$ac_exeext && {
15865 test "$cross_compiling" = yes ||
15866 $as_test_x conftest$ac_exeext
15868 eval "$as_ac_var=yes"
15870 $as_echo "$as_me: failed program was
:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 eval "$as_ac_var=no
"
15876 rm -rf conftest.dSYM
15877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15878 conftest$ac_exeext conftest.$ac_ext
15880 ac_res=`eval 'as_val=${'$as_ac_var'}
15881 $as_echo "$as_val"'`
15882 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
15883 $as_echo "$ac_res" >&6; }
15884 if test `eval 'as_val=${'$as_ac_var'}
15885 $as_echo "$as_val"'` = yes; then
15886 cat >>confdefs.h <<_ACEOF
15887 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15899 for ac_func in sigaltstack
15901 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15902 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
15903 $as_echo_n "checking
for $ac_func...
" >&6; }
15904 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15905 $as_echo_n "(cached
) " >&6
15907 cat >conftest.$ac_ext <<_ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15915 #define $ac_func innocuous_$ac_func
15917 /* System header to define __stub macros and hopefully few prototypes,
15918 which can conflict with char $ac_func (); below.
15919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15920 <limits.h> exists even on freestanding compilers. */
15923 # include <limits.h>
15925 # include <assert.h>
15930 /* Override any GCC internal prototype to avoid an error.
15931 Use char because int might match the return type of a GCC
15932 builtin and then its argument prototype would still apply. */
15937 /* The GNU C library defines this for functions which it implements
15938 to always fail with ENOSYS. Some functions are actually named
15939 something starting with __ and the normal name is an alias. */
15940 #if defined __stub_$ac_func || defined __stub___$ac_func
15947 return $ac_func ();
15952 rm -f conftest.$ac_objext conftest$ac_exeext
15953 if { (ac_try="$ac_link"
15954 case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15959 $as_echo "$ac_try_echo") >&5
15960 (eval "$ac_link") 2>conftest.er1
15962 grep -v '^ *+' conftest.er1 >conftest.err
15964 cat conftest.err >&5
15965 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15966 (exit $ac_status); } && {
15967 test -z "$ac_c_werror_flag" ||
15968 test ! -s conftest.err
15969 } && test -s conftest$ac_exeext && {
15970 test "$cross_compiling" = yes ||
15971 $as_test_x conftest$ac_exeext
15973 eval "$as_ac_var=yes"
15975 $as_echo "$as_me: failed program was
:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 eval "$as_ac_var=no
"
15981 rm -rf conftest.dSYM
15982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15983 conftest$ac_exeext conftest.$ac_ext
15985 ac_res=`eval 'as_val=${'$as_ac_var'}
15986 $as_echo "$as_val"'`
15987 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
15988 $as_echo "$ac_res" >&6; }
15989 if test `eval 'as_val=${'$as_ac_var'}
15990 $as_echo "$as_val"'` = yes; then
15991 cat >>confdefs.h <<_ACEOF
15992 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15999 if test "$ac_cv_func_sigaltstack" = yes; then
16000 { $as_echo "$as_me:$LINENO: checking
for stack_t
" >&5
16001 $as_echo_n "checking
for stack_t...
" >&6; }
16002 if test "${ac_cv_type_stack_t+set}" = set; then
16003 $as_echo_n "(cached
) " >&6
16005 ac_cv_type_stack_t=no
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16013 #include <signal.h>
16014 #if HAVE_SYS_SIGNAL_H
16015 # include <sys/signal.h>
16022 if (sizeof (stack_t))
16028 rm -f conftest.$ac_objext
16029 if { (ac_try="$ac_compile"
16030 case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16035 $as_echo "$ac_try_echo") >&5
16036 (eval "$ac_compile") 2>conftest.er1
16038 grep -v '^ *+' conftest.er1 >conftest.err
16040 cat conftest.err >&5
16041 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest.$ac_objext; then
16046 cat >conftest.$ac_ext <<_ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16053 #include <signal.h>
16054 #if HAVE_SYS_SIGNAL_H
16055 # include <sys/signal.h>
16062 if (sizeof ((stack_t)))
16068 rm -f conftest.$ac_objext
16069 if { (ac_try="$ac_compile"
16070 case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16075 $as_echo "$ac_try_echo") >&5
16076 (eval "$ac_compile") 2>conftest.er1
16078 grep -v '^ *+' conftest.er1 >conftest.err
16080 cat conftest.err >&5
16081 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16082 (exit $ac_status); } && {
16083 test -z "$ac_c_werror_flag" ||
16084 test ! -s conftest.err
16085 } && test -s conftest.$ac_objext; then
16088 $as_echo "$as_me: failed program was
:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_cv_type_stack_t=yes
16094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096 $as_echo "$as_me: failed program was
:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16104 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_stack_t" >&5
16105 $as_echo "$ac_cv_type_stack_t" >&6; }
16106 if test $ac_cv_type_stack_t = yes; then
16110 cat >>confdefs.h <<\_ACEOF
16111 #define stack_t struct sigaltstack
16119 { $as_echo "$as_me:$LINENO: checking
for working sigaltstack
" >&5
16120 $as_echo_n "checking
for working sigaltstack...
" >&6; }
16121 if test "${sv_cv_sigaltstack+set}" = set; then
16122 $as_echo_n "(cached
) " >&6
16125 if test "$ac_cv_func_sigaltstack" = yes; then
16127 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
16128 # On MacOS X 10.2 or newer, just assume that if it compiles, it will
16129 # work. If we were to perform the real test, 1 Crash Report dialog
16130 # window would pop up.
16131 cat >conftest.$ac_ext <<_ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16138 #include <signal.h>
16142 int x = SA_ONSTACK; stack_t ss; sigaltstack ((stack_t*)0, &ss);
16147 rm -f conftest.$ac_objext conftest$ac_exeext
16148 if { (ac_try="$ac_link"
16149 case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16153 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16154 $as_echo "$ac_try_echo") >&5
16155 (eval "$ac_link") 2>conftest.er1
16157 grep -v '^ *+' conftest.er1 >conftest.err
16159 cat conftest.err >&5
16160 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16161 (exit $ac_status); } && {
16162 test -z "$ac_c_werror_flag" ||
16163 test ! -s conftest.err
16164 } && test -s conftest$ac_exeext && {
16165 test "$cross_compiling" = yes ||
16166 $as_test_x conftest$ac_exeext
16168 sv_cv_sigaltstack="guessing
yes"
16170 $as_echo "$as_me: failed program was
:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 sv_cv_sigaltstack=no
16176 rm -rf conftest.dSYM
16177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16178 conftest$ac_exeext conftest.$ac_ext
16181 if test "$cross_compiling" = yes; then
16185 cat >conftest.$ac_ext <<_ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 #include <signal.h>
16196 int x = SA_ONSTACK; stack_t ss; sigaltstack ((stack_t*)0, &ss);
16201 rm -f conftest.$ac_objext conftest$ac_exeext
16202 if { (ac_try="$ac_link"
16203 case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16207 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16208 $as_echo "$ac_try_echo") >&5
16209 (eval "$ac_link") 2>conftest.er1
16211 grep -v '^ *+' conftest.er1 >conftest.err
16213 cat conftest.err >&5
16214 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16215 (exit $ac_status); } && {
16216 test -z "$ac_c_werror_flag" ||
16217 test ! -s conftest.err
16218 } && test -s conftest$ac_exeext && {
16219 test "$cross_compiling" = yes ||
16220 $as_test_x conftest$ac_exeext
16222 sv_cv_sigaltstack="guessing
yes"
16224 $as_echo "$as_me: failed program was
:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16227 sv_cv_sigaltstack=no
16230 rm -rf conftest.dSYM
16231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16232 conftest$ac_exeext conftest.$ac_ext
16237 cat >conftest.$ac_ext <<_ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16245 #include <stdlib.h>
16246 #include <signal.h>
16247 #if HAVE_SYS_SIGNAL_H
16248 # include <sys/signal.h>
16251 # include <sys/types.h>
16252 # include <sys/time.h>
16253 # include <sys/resource.h>
16256 # define SIGSTKSZ 16384
16258 void stackoverflow_handler (int sig)
16260 /* If we get here, the stack overflow was caught. */
16263 volatile int * recurse_1 (volatile int n, volatile int *p)
16266 *recurse_1 (n + 1, p) += n;
16269 volatile int recurse (volatile int n)
16272 return *recurse_1 (n, &sum);
16276 char mystack[SIGSTKSZ];
16278 struct sigaction action;
16279 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
16280 /* Before starting the endless recursion, try to be friendly to the user's
16281 machine. On some Linux 2.2.x systems, there is no stack limit for user
16282 processes at all. We don't want to kill such systems. */
16284 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
16285 setrlimit (RLIMIT_STACK, &rl);
16287 /* Install the alternate stack. */
16288 altstack.ss_sp = mystack;
16289 altstack.ss_size = sizeof (mystack);
16290 altstack.ss_flags = 0; /* no SS_DISABLE */
16291 if (sigaltstack (&altstack, NULL) < 0)
16293 /* Install the SIGSEGV handler. */
16294 sigemptyset (&action.sa_mask);
16295 action.sa_handler = &stackoverflow_handler;
16296 action.sa_flags = SA_ONSTACK;
16297 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
16298 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
16299 /* Provoke a stack overflow. */
16304 rm -f conftest$ac_exeext
16305 if { (ac_try="$ac_link"
16306 case "(($ac_try" in
16307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308 *) ac_try_echo=$ac_try;;
16310 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16311 $as_echo "$ac_try_echo") >&5
16312 (eval "$ac_link") 2>&5
16314 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16316 { (case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16321 $as_echo "$ac_try_echo") >&5
16322 (eval "$ac_try") 2>&5
16324 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 sv_cv_sigaltstack=yes
16328 $as_echo "$as_me: program exited with status
$ac_status" >&5
16329 $as_echo "$as_me: failed program was
:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 ( exit $ac_status )
16333 sv_cv_sigaltstack=no
16335 rm -rf conftest.dSYM
16336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16343 sv_cv_sigaltstack=no
16347 { $as_echo "$as_me:$LINENO: result
: $sv_cv_sigaltstack" >&5
16348 $as_echo "$sv_cv_sigaltstack" >&6; }
16349 if test "$sv_cv_sigaltstack" != no; then
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_WORKING_SIGALTSTACK 1
16358 { $as_echo "$as_me:$LINENO: checking
if the system supports catching stack overflow
" >&5
16359 $as_echo_n "checking
if the system supports catching stack overflow...
" >&6; }
16360 if test "${sv_cv_have_stack_overflow_recovery+set}" = set; then
16361 $as_echo_n "(cached
) " >&6
16364 if test "$CFG_MACHFAULT" != fault-none.h; then
16365 sv_cv_have_stack_overflow_recovery=yes
16367 if test "$sv_cv_sigaltstack" != no; then
16368 sv_cv_have_stack_overflow_recovery=maybe
16371 beos*) sv_cv_have_stack_overflow_recovery=maybe ;;
16372 mingw* | cygwin*) sv_cv_have_stack_overflow_recovery=yes ;;
16373 *) sv_cv_have_stack_overflow_recovery=no ;;
16377 if test $sv_cv_have_stack_overflow_recovery = maybe; then
16378 if test -n "$CFG_FAULT"; then
16379 cat >conftest.$ac_ext <<_ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16386 #include "$srcdir/src
/$CFG_FAULT"
16387 #ifdef SIGSEGV_FAULT_HANDLER_ARGLIST
16388 #ifdef SIGSEGV_FAULT_ADDRESS
16394 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16395 $EGREP "xyzzy
" >/dev/null 2>&1; then
16405 if test -n "$CFG_FAULT"; then
16406 cat >conftest.$ac_ext <<_ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16413 #include "$srcdir/src
/$CFG_FAULT"
16414 #ifdef SIGSEGV_FAULT_HANDLER_ARGLIST
16415 #ifdef SIGSEGV_FAULT_STACKPOINTER
16421 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16422 $EGREP "xyzzy
" >/dev/null 2>&1; then
16432 if test "$CFG_STACKVMA" != "stackvma-none.c
"; then
16437 if { $condA && $condB; } || { $condA && $condC; } || { $condB && $condC; }; then
16438 sv_cv_have_stack_overflow_recovery=yes
16440 sv_cv_have_stack_overflow_recovery=no
16445 { $as_echo "$as_me:$LINENO: result
: $sv_cv_have_stack_overflow_recovery" >&5
16446 $as_echo "$sv_cv_have_stack_overflow_recovery" >&6; }
16447 if test $sv_cv_have_stack_overflow_recovery != no; then
16448 HAVE_STACK_OVERFLOW_RECOVERY=1
16450 HAVE_STACK_OVERFLOW_RECOVERY=0
16454 # How to longjmp out of a signal handler, in such a way that the
16455 # alternate signal stack remains functional.
16457 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
16458 # using handler-macos.c anyway. If we were to perform the tests, 2 Crash Report
16459 # dialog windows would pop up.
16461 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
16468 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp
" >&5
16469 $as_echo_n "checking whether a signal handler can be left through longjmp...
" >&6; }
16470 if test "${sv_cv_leave_handler_longjmp+set}" = set; then
16471 $as_echo_n "(cached
) " >&6
16474 if test "$cross_compiling" = yes; then
16476 *-*-osf[4-9]* | *-*-hpux11* | *-*-linux2.[2-9]*) sv_cv_leave_handler_longjmp=yes ;;
16477 *) sv_cv_leave_handler_longjmp="guessing no
" ;;
16481 cat >conftest.$ac_ext <<_ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16489 #include <stdlib.h>
16490 #include <signal.h>
16491 #include <setjmp.h>
16494 # include <sys/types.h>
16495 # include <sys/time.h>
16496 # include <sys/resource.h>
16499 # define SIGSTKSZ 16384
16502 sigset_t mainsigset;
16504 void stackoverflow_handler (int sig)
16507 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
16509 longjmp (mainloop, pass);
16511 volatile int * recurse_1 (volatile int n, volatile int *p)
16514 *recurse_1 (n + 1, p) += n;
16517 volatile int recurse (volatile int n)
16520 return *recurse_1 (n, &sum);
16524 char mystack[SIGSTKSZ];
16526 struct sigaction action;
16528 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
16529 /* Before starting the endless recursion, try to be friendly to the user's
16530 machine. On some Linux 2.2.x systems, there is no stack limit for user
16531 processes at all. We don't want to kill such systems. */
16533 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
16534 setrlimit (RLIMIT_STACK, &rl);
16536 /* Install the alternate stack. */
16537 altstack.ss_sp = mystack;
16538 altstack.ss_size = sizeof (mystack);
16539 altstack.ss_flags = 0; /* no SS_DISABLE */
16540 if (sigaltstack (&altstack, NULL) < 0)
16542 /* Install the SIGSEGV handler. */
16543 sigemptyset (&action.sa_mask);
16544 action.sa_handler = &stackoverflow_handler;
16545 action.sa_flags = SA_ONSTACK;
16546 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
16547 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
16548 /* Save the current signal mask. */
16549 sigemptyset (&emptyset);
16550 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
16551 /* Provoke two stack overflows in a row. */
16552 if (setjmp (mainloop) < 2)
16560 rm -f conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16567 $as_echo "$ac_try_echo") >&5
16568 (eval "$ac_link") 2>&5
16570 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16572 { (case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16576 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16577 $as_echo "$ac_try_echo") >&5
16578 (eval "$ac_try") 2>&5
16580 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 sv_cv_leave_handler_longjmp=yes
16584 $as_echo "$as_me: program exited with status
$ac_status" >&5
16585 $as_echo "$as_me: failed program was
:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ( exit $ac_status )
16589 sv_cv_leave_handler_longjmp=no
16591 rm -rf conftest.dSYM
16592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16598 { $as_echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_longjmp" >&5
16599 $as_echo "$sv_cv_leave_handler_longjmp" >&6; }
16606 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp and sigaltstack
" >&5
16607 $as_echo_n "checking whether a signal handler can be left through longjmp and sigaltstack...
" >&6; }
16608 if test "${sv_cv_leave_handler_longjmp_sigaltstack+set}" = set; then
16609 $as_echo_n "(cached
) " >&6
16612 if test "$cross_compiling" = yes; then
16614 *-*-freebsd*) sv_cv_leave_handler_longjmp_sigaltstack=yes ;;
16615 *) sv_cv_leave_handler_longjmp_sigaltstack="guessing no
" ;;
16619 cat >conftest.$ac_ext <<_ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16627 #include <stdlib.h>
16628 #include <signal.h>
16629 #include <setjmp.h>
16632 #define SS_ONSTACK SA_ONSTACK
16636 # include <sys/types.h>
16637 # include <sys/time.h>
16638 # include <sys/resource.h>
16641 # define SIGSTKSZ 16384
16644 sigset_t mainsigset;
16646 void stackoverflow_handler (int sig)
16649 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
16651 if (sigaltstack (NULL, &ss) >= 0)
16653 ss.ss_flags &= ~SS_ONSTACK;
16654 sigaltstack (&ss, NULL);
16657 longjmp (mainloop, pass);
16659 volatile int * recurse_1 (volatile int n, volatile int *p)
16662 *recurse_1 (n + 1, p) += n;
16665 volatile int recurse (volatile int n)
16668 return *recurse_1 (n, &sum);
16672 char mystack[SIGSTKSZ];
16674 struct sigaction action;
16676 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
16677 /* Before starting the endless recursion, try to be friendly to the user's
16678 machine. On some Linux 2.2.x systems, there is no stack limit for user
16679 processes at all. We don't want to kill such systems. */
16681 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
16682 setrlimit (RLIMIT_STACK, &rl);
16684 /* Install the alternate stack. */
16685 altstack.ss_sp = mystack;
16686 altstack.ss_size = sizeof (mystack);
16687 altstack.ss_flags = 0; /* no SS_DISABLE */
16688 if (sigaltstack (&altstack, NULL) < 0)
16690 /* Install the SIGSEGV handler. */
16691 sigemptyset (&action.sa_mask);
16692 action.sa_handler = &stackoverflow_handler;
16693 action.sa_flags = SA_ONSTACK;
16694 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
16695 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
16696 /* Save the current signal mask. */
16697 sigemptyset (&emptyset);
16698 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
16699 /* Provoke two stack overflows in a row. */
16700 if (setjmp (mainloop) < 2)
16708 rm -f conftest$ac_exeext
16709 if { (ac_try="$ac_link"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16715 $as_echo "$ac_try_echo") >&5
16716 (eval "$ac_link") 2>&5
16718 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16720 { (case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16725 $as_echo "$ac_try_echo") >&5
16726 (eval "$ac_try") 2>&5
16728 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 sv_cv_leave_handler_longjmp_sigaltstack=yes
16732 $as_echo "$as_me: program exited with status
$ac_status" >&5
16733 $as_echo "$as_me: failed program was
:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16736 ( exit $ac_status )
16737 sv_cv_leave_handler_longjmp_sigaltstack=no
16739 rm -rf conftest.dSYM
16740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16746 { $as_echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_longjmp_sigaltstack" >&5
16747 $as_echo "$sv_cv_leave_handler_longjmp_sigaltstack" >&6; }
16754 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp and setcontext
" >&5
16755 $as_echo_n "checking whether a signal handler can be left through longjmp and setcontext...
" >&6; }
16756 if test "${sv_cv_leave_handler_longjmp_setcontext+set}" = set; then
16757 $as_echo_n "(cached
) " >&6
16760 if test "$cross_compiling" = yes; then
16762 *-*-irix* | *-*-solaris*) sv_cv_leave_handler_longjmp_setcontext=yes ;;
16763 *) sv_cv_leave_handler_longjmp_setcontext="guessing no
" ;;
16767 cat >conftest.$ac_ext <<_ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16775 #include <stdlib.h>
16776 #include <signal.h>
16777 #include <setjmp.h>
16778 #include <ucontext.h>
16780 #define SS_ONSTACK SA_ONSTACK
16784 # include <sys/types.h>
16785 # include <sys/time.h>
16786 # include <sys/resource.h>
16789 # define SIGSTKSZ 16384
16792 sigset_t mainsigset;
16794 void stackoverflow_handler (int sig)
16797 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
16799 static ucontext_t uc;
16801 if (getcontext (&uc) >= 0)
16803 if (uc.uc_stack.ss_flags & SS_ONSTACK)
16805 uc.uc_stack.ss_flags &= ~SS_ONSTACK;
16810 longjmp (mainloop, pass);
16812 volatile int * recurse_1 (volatile int n, volatile int *p)
16815 *recurse_1 (n + 1, p) += n;
16818 volatile int recurse (volatile int n)
16821 return *recurse_1 (n, &sum);
16825 char mystack[SIGSTKSZ];
16827 struct sigaction action;
16829 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
16830 /* Before starting the endless recursion, try to be friendly to the user's
16831 machine. On some Linux 2.2.x systems, there is no stack limit for user
16832 processes at all. We don't want to kill such systems. */
16834 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
16835 setrlimit (RLIMIT_STACK, &rl);
16837 /* Install the alternate stack. */
16838 altstack.ss_sp = mystack;
16839 altstack.ss_size = sizeof (mystack);
16840 altstack.ss_flags = 0; /* no SS_DISABLE */
16841 if (sigaltstack (&altstack, NULL) < 0)
16843 /* Install the SIGSEGV handler. */
16844 sigemptyset (&action.sa_mask);
16845 action.sa_handler = &stackoverflow_handler;
16846 action.sa_flags = SA_ONSTACK;
16847 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
16848 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
16849 /* Save the current signal mask. */
16850 sigemptyset (&emptyset);
16851 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
16852 /* Provoke two stack overflows in a row. */
16853 if (setjmp (mainloop) < 2)
16861 rm -f conftest$ac_exeext
16862 if { (ac_try="$ac_link"
16863 case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16867 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16868 $as_echo "$ac_try_echo") >&5
16869 (eval "$ac_link") 2>&5
16871 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16873 { (case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16877 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16878 $as_echo "$ac_try_echo") >&5
16879 (eval "$ac_try") 2>&5
16881 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 sv_cv_leave_handler_longjmp_setcontext=yes
16885 $as_echo "$as_me: program exited with status
$ac_status" >&5
16886 $as_echo "$as_me: failed program was
:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16889 ( exit $ac_status )
16890 sv_cv_leave_handler_longjmp_setcontext=no
16892 rm -rf conftest.dSYM
16893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16899 { $as_echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_longjmp_setcontext" >&5
16900 $as_echo "$sv_cv_leave_handler_longjmp_setcontext" >&6; }
16903 # End of MacOS X special casing.
16907 # How to siglongjmp out of a signal handler, in such a way that the
16908 # alternate signal stack remains functional.
16910 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
16911 # using handler-macos.c anyway. If we were to perform the tests, 2 Crash Report
16912 # dialog windows would pop up.
16914 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
16921 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp
" >&5
16922 $as_echo_n "checking whether a signal handler can be left through siglongjmp...
" >&6; }
16923 if test "${sv_cv_leave_handler_siglongjmp+set}" = set; then
16924 $as_echo_n "(cached
) " >&6
16927 if test "$cross_compiling" = yes; then
16929 *-*-osf[4-9]* | *-*-hpux11* | *-*-linux2.[2-9]* | *-*-irix* | *-*-solaris*) sv_cv_leave_handler_siglongjmp=yes ;;
16930 *) sv_cv_leave_handler_siglongjmp="guessing no
" ;;
16934 cat >conftest.$ac_ext <<_ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 #include <stdlib.h>
16943 #include <signal.h>
16944 #include <setjmp.h>
16947 # include <sys/types.h>
16948 # include <sys/time.h>
16949 # include <sys/resource.h>
16952 # define SIGSTKSZ 16384
16954 sigjmp_buf mainloop;
16956 void stackoverflow_handler (int sig)
16960 siglongjmp (mainloop, pass);
16962 volatile int * recurse_1 (volatile int n, volatile int *p)
16965 *recurse_1 (n + 1, p) += n;
16968 volatile int recurse (volatile int n)
16971 return *recurse_1 (n, &sum);
16975 char mystack[SIGSTKSZ];
16977 struct sigaction action;
16979 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
16982 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
16983 /* Before starting the endless recursion, try to be friendly to the user's
16984 machine. On some Linux 2.2.x systems, there is no stack limit for user
16985 processes at all. We don't want to kill such systems. */
16987 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
16988 setrlimit (RLIMIT_STACK, &rl);
16990 /* Install the alternate stack. */
16991 altstack.ss_sp = mystack;
16992 altstack.ss_size = sizeof (mystack);
16993 altstack.ss_flags = 0; /* no SS_DISABLE */
16994 if (sigaltstack (&altstack, NULL) < 0)
16996 /* Install the SIGSEGV handler. */
16997 sigemptyset (&action.sa_mask);
16998 action.sa_handler = &stackoverflow_handler;
16999 action.sa_flags = SA_ONSTACK;
17000 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
17001 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
17002 /* Provoke two stack overflows in a row. */
17003 if (sigsetjmp (mainloop, 1) < 2)
17011 rm -f conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17018 $as_echo "$ac_try_echo") >&5
17019 (eval "$ac_link") 2>&5
17021 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17028 $as_echo "$ac_try_echo") >&5
17029 (eval "$ac_try") 2>&5
17031 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 sv_cv_leave_handler_siglongjmp=yes
17035 $as_echo "$as_me: program exited with status
$ac_status" >&5
17036 $as_echo "$as_me: failed program was
:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ( exit $ac_status )
17040 sv_cv_leave_handler_siglongjmp=no
17042 rm -rf conftest.dSYM
17043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17049 { $as_echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_siglongjmp" >&5
17050 $as_echo "$sv_cv_leave_handler_siglongjmp" >&6; }
17057 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp and sigaltstack
" >&5
17058 $as_echo_n "checking whether a signal handler can be left through siglongjmp and sigaltstack...
" >&6; }
17059 if test "${sv_cv_leave_handler_siglongjmp_sigaltstack+set}" = set; then
17060 $as_echo_n "(cached
) " >&6
17063 if test "$cross_compiling" = yes; then
17065 *-*-freebsd*) sv_cv_leave_handler_siglongjmp_sigaltstack=yes ;;
17066 *) sv_cv_leave_handler_siglongjmp_sigaltstack="guessing no
" ;;
17070 cat >conftest.$ac_ext <<_ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17078 #include <stdlib.h>
17079 #include <signal.h>
17080 #include <setjmp.h>
17083 #define SS_ONSTACK SA_ONSTACK
17087 # include <sys/types.h>
17088 # include <sys/time.h>
17089 # include <sys/resource.h>
17092 # define SIGSTKSZ 16384
17094 sigjmp_buf mainloop;
17096 void stackoverflow_handler (int sig)
17100 if (sigaltstack (NULL, &ss) >= 0)
17102 ss.ss_flags &= ~SS_ONSTACK;
17103 sigaltstack (&ss, NULL);
17106 siglongjmp (mainloop, pass);
17108 volatile int * recurse_1 (volatile int n, volatile int *p)
17111 *recurse_1 (n + 1, p) += n;
17114 volatile int recurse (volatile int n)
17117 return *recurse_1 (n, &sum);
17121 char mystack[SIGSTKSZ];
17123 struct sigaction action;
17125 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
17128 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
17129 /* Before starting the endless recursion, try to be friendly to the user's
17130 machine. On some Linux 2.2.x systems, there is no stack limit for user
17131 processes at all. We don't want to kill such systems. */
17133 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
17134 setrlimit (RLIMIT_STACK, &rl);
17136 /* Install the alternate stack. */
17137 altstack.ss_sp = mystack;
17138 altstack.ss_size = sizeof (mystack);
17139 altstack.ss_flags = 0; /* no SS_DISABLE */
17140 if (sigaltstack (&altstack, NULL) < 0)
17142 /* Install the SIGSEGV handler. */
17143 sigemptyset (&action.sa_mask);
17144 action.sa_handler = &stackoverflow_handler;
17145 action.sa_flags = SA_ONSTACK;
17146 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
17147 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
17148 /* Provoke two stack overflows in a row. */
17149 if (sigsetjmp (mainloop, 1) < 2)
17157 rm -f conftest$ac_exeext
17158 if { (ac_try="$ac_link"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17164 $as_echo "$ac_try_echo") >&5
17165 (eval "$ac_link") 2>&5
17167 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17173 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17174 $as_echo "$ac_try_echo") >&5
17175 (eval "$ac_try") 2>&5
17177 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 sv_cv_leave_handler_siglongjmp_sigaltstack=yes
17181 $as_echo "$as_me: program exited with status
$ac_status" >&5
17182 $as_echo "$as_me: failed program was
:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17185 ( exit $ac_status )
17186 sv_cv_leave_handler_siglongjmp_sigaltstack=no
17188 rm -rf conftest.dSYM
17189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17195 { $as_echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_siglongjmp_sigaltstack" >&5
17196 $as_echo "$sv_cv_leave_handler_siglongjmp_sigaltstack" >&6; }
17203 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp and setcontext
" >&5
17204 $as_echo_n "checking whether a signal handler can be left through siglongjmp and setcontext...
" >&6; }
17205 if test "${sv_cv_leave_handler_siglongjmp_setcontext+set}" = set; then
17206 $as_echo_n "(cached
) " >&6
17209 if test "$cross_compiling" = yes; then
17212 *) sv_cv_leave_handler_siglongjmp_setcontext="guessing no
" ;;
17216 cat >conftest.$ac_ext <<_ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17224 #include <stdlib.h>
17225 #include <signal.h>
17226 #include <setjmp.h>
17227 #include <ucontext.h>
17229 #define SS_ONSTACK SA_ONSTACK
17233 # include <sys/types.h>
17234 # include <sys/time.h>
17235 # include <sys/resource.h>
17238 # define SIGSTKSZ 16384
17240 sigjmp_buf mainloop;
17242 void stackoverflow_handler (int sig)
17246 static ucontext_t uc;
17248 if (getcontext(&uc) >= 0)
17250 if (uc.uc_stack.ss_flags & SS_ONSTACK)
17252 uc.uc_stack.ss_flags &= ~SS_ONSTACK;
17257 siglongjmp (mainloop, pass);
17259 volatile int * recurse_1 (volatile int n, volatile int *p)
17262 *recurse_1 (n + 1, p) += n;
17265 volatile int recurse (volatile int n)
17268 return *recurse_1 (n, &sum);
17272 char mystack[SIGSTKSZ];
17274 struct sigaction action;
17276 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
17279 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
17280 /* Before starting the endless recursion, try to be friendly to the user's
17281 machine. On some Linux 2.2.x systems, there is no stack limit for user
17282 processes at all. We don't want to kill such systems. */
17284 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
17285 setrlimit (RLIMIT_STACK, &rl);
17287 /* Install the alternate stack. */
17288 altstack.ss_sp = mystack;
17289 altstack.ss_size = sizeof (mystack);
17290 altstack.ss_flags = 0; /* no SS_DISABLE */
17291 if (sigaltstack (&altstack, NULL) < 0)
17293 /* Install the SIGSEGV handler. */
17294 sigemptyset (&action.sa_mask);
17295 action.sa_handler = &stackoverflow_handler;
17296 action.sa_flags = SA_ONSTACK;
17297 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
17298 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
17299 /* Provoke two stack overflows in a row. */
17300 if (sigsetjmp (mainloop, 1) < 2)
17308 rm -f conftest$ac_exeext
17309 if { (ac_try="$ac_link"
17310 case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17314 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17315 $as_echo "$ac_try_echo") >&5
17316 (eval "$ac_link") 2>&5
17318 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17320 { (case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17324 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17325 $as_echo "$ac_try_echo") >&5
17326 (eval "$ac_try") 2>&5
17328 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 sv_cv_leave_handler_siglongjmp_setcontext=yes
17332 $as_echo "$as_me: program exited with status
$ac_status" >&5
17333 $as_echo "$as_me: failed program was
:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 ( exit $ac_status )
17337 sv_cv_leave_handler_siglongjmp_setcontext=no
17339 rm -rf conftest.dSYM
17340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17346 { $as_echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_siglongjmp_setcontext" >&5
17347 $as_echo "$sv_cv_leave_handler_siglongjmp_setcontext" >&6; }
17350 # End of MacOS X special casing.
17355 if test "$sv_cv_leave_handler_longjmp" != no; then
17356 CFG_LEAVE=leave-nop.c
17358 if test "$sv_cv_leave_handler_longjmp_sigaltstack" != no; then
17359 CFG_LEAVE=leave-sigaltstack.c
17361 if test "$sv_cv_leave_handler_longjmp_setcontext" != no; then
17362 CFG_LEAVE=leave-setcontext.c
17367 # On BeOS, the 6 tests fail because sigaltstack() doesn't exist.
17368 # If one uses set_signal_stack() instead of sigaltstack(), the first
17369 # test actually works. i.e. sv_cv_leave_handler_longjmp would be 'yes'.
17370 beos*) CFG_LEAVE=leave-nop.c ;;
17372 if test -z "$CFG_LEAVE"; then
17373 CFG_LEAVE=leave-none.c
17376 cat >>confdefs.h <<_ACEOF
17377 #define CFG_LEAVE "$CFG_LEAVE"
17383 mingw* | cygwin*) CFG_HANDLER=handler-win32.c ;;
17385 if test -z "$CFG_HANDLER"; then
17386 if test $sv_cv_have_sigsegv_recovery = no \
17387 && test $sv_cv_have_stack_overflow_recovery = no; then
17388 CFG_HANDLER=handler-none.c
17390 CFG_HANDLER=handler-unix.c
17396 cat >>confdefs.h <<_ACEOF
17397 #define CFG_HANDLER "$CFG_HANDLER"
17402 { echo; echo "${term_bold}Build Parameters:${term_norm}"; } >& 6
17405 { $as_echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
17406 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
17407 # Check whether --enable-relocatable was given.
17408 if test "${enable_relocatable+set}" = set; then
17409 enableval
=$enable_relocatable; if test "$enableval" != no
; then
17420 { $as_echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
17421 $as_echo "$RELOCATABLE" >&6; }
17424 { echo; echo "${term_bold}Output Substitution:${term_norm}"; } >& 6
17426 ac_config_files="$ac_config_files Makefile src
/Makefile src
/sigsegv.h
tests
/Makefile
"
17428 cat >confcache <<\_ACEOF
17429 # This file is a shell script that caches the results of configure
17430 # tests run on this system so they can be shared between configure
17431 # scripts and configure runs, see configure's option --config-cache.
17432 # It is not useful on other systems. If it contains results you don't
17433 # want to keep, you may remove or edit it.
17435 # config.status only pays attention to the cache file if you give it
17436 # the --recheck option to rerun configure.
17438 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17440 # following values.
17444 # The following way of writing the cache mishandles newlines in values,
17445 # but we know of no workaround that is simple, portable, and efficient.
17446 # So, we kill variables containing newlines.
17447 # Ultrix sh set writes to stderr and can't be redirected directly,
17448 # and sets the high bit in the cache file unless we assign to the vars.
17450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17451 eval ac_val=\$$ac_var
17455 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
17456 $as_echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
17459 _ | IFS | as_nl) ;; #(
17460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17461 *) $as_unset $ac_var ;;
17467 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17468 *${as_nl}ac_space=\ *)
17469 # `set' does not quote correctly, so add quotes (double-quote
17470 # substitution turns \\\\ into \\, and sed turns \\ into \).
17473 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
17476 # `set' quotes correctly as required by POSIX, so do not add quotes.
17477 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
17486 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17488 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17490 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17491 if test -w "$cache_file"; then
17492 test "x
$cache_file" != "x
/dev
/null
" &&
17493 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
17494 $as_echo "$as_me: updating cache
$cache_file" >&6;}
17495 cat confcache >$cache_file
17497 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
17498 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
17503 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
17504 # Let make expand exec_prefix.
17505 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
17507 DEFS=-DHAVE_CONFIG_H
17511 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
17512 # 1. Remove the extension, and $U if already installed.
17513 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17514 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17515 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17516 # will be set to the directory where LIBOBJS objects are built.
17517 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
17518 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
17520 LIBOBJS=$ac_libobjs
17522 LTLIBOBJS=$ac_ltlibobjs
17525 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17526 { { $as_echo "$as_me:$LINENO: error
: conditional
\"AMDEP
\" was never defined.
17527 Usually this means the macro was only invoked conditionally.
" >&5
17528 $as_echo "$as_me: error
: conditional
\"AMDEP
\" was never defined.
17529 Usually this means the macro was only invoked conditionally.
" >&2;}
17530 { (exit 1); exit 1; }; }
17532 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17533 { { $as_echo "$as_me:$LINENO: error
: conditional
\"am__fastdepCC
\" was never defined.
17534 Usually this means the macro was only invoked conditionally.
" >&5
17535 $as_echo "$as_me: error
: conditional
\"am__fastdepCC
\" was never defined.
17536 Usually this means the macro was only invoked conditionally.
" >&2;}
17537 { (exit 1); exit 1; }; }
17540 : ${CONFIG_STATUS=./config.status}
17542 ac_clean_files_save=$ac_clean_files
17543 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17544 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
17545 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
17546 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17548 # Generated by $as_me.
17549 # Run this file to recreate the current configuration.
17550 # Compiler output produced by configure, useful for debugging
17551 # configure, is in config.log if it exists.
17554 ac_cs_recheck=false
17556 SHELL=\${CONFIG_SHELL-$SHELL}
17559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17560 ## --------------------- ##
17561 ## M4sh Initialization. ##
17562 ## --------------------- ##
17564 # Be more Bourne compatible
17565 DUALCASE=1; export DUALCASE # for MKS sh
17566 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17570 # is contrary to our usage. Disable this feature.
17571 alias -g '${1+"$@"}'='"$@
"'
17572 setopt NO_GLOB_SUBST
17574 case `(set -o) 2>/dev/null` in
17575 *posix*) set -o posix ;;
17584 # Avoid depending upon Character Ranges.
17585 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17586 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17587 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17588 as_cr_digits='0123456789'
17589 as_cr_alnum=$as_cr_Letters$as_cr_digits
17594 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17595 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17596 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17597 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17598 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
17599 as_echo='printf %s\n'
17600 as_echo_n='printf %s'
17602 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
17603 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17604 as_echo_n='/usr/ucb/echo -n'
17606 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
17607 as_echo_n_body='eval
17611 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
17612 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
17614 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
17616 export as_echo_n_body
17617 as_echo_n='sh -c $as_echo_n_body as_echo'
17619 export as_echo_body
17620 as_echo='sh -c $as_echo_body as_echo'
17623 # The user is always right.
17624 if test "${PATH_SEPARATOR+set}" != set; then
17626 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17627 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17632 # Support unset when possible.
17633 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17641 # We need space, tab and new line, in precisely that order. Quoting is
17642 # there to prevent editors from complaining about space-tab.
17643 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17644 # splitting by setting IFS to empty value.)
17647 # Find who we are. Look in the path if we contain no directory separator.
17649 *[\\/]* ) as_myself=$0 ;;
17650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17651 for as_dir in $PATH
17654 test -z "$as_dir" && as_dir=.
17655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17661 # We did not find ourselves, most probably we were run as `sh COMMAND'
17662 # in which case we are not to be found in the path.
17663 if test "x
$as_myself" = x; then
17666 if test ! -f "$as_myself"; then
17667 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
17668 { (exit 1); exit 1; }
17671 # Work around bugs in pre-3.0 UWIN ksh.
17672 for as_var in ENV MAIL MAILPATH
17673 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17685 # Required to use basename.
17686 if expr a : '\(a\)' >/dev/null 2>&1 &&
17687 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
17693 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
17694 as_basename=basename
17700 # Name of the executable.
17701 as_me=`$as_basename -- "$0" ||
17702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17703 X"$0" : 'X\(//\)$' \| \
17704 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17706 sed '/^.*\/\([^/][^/]*\)\/*$/{
17725 as_lineno_1=$LINENO
17726 as_lineno_2=$LINENO
17727 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
17728 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
17730 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17731 # uniformly replaced by the line number. The first 'sed' inserts a
17732 # line-number line after each line using $LINENO; the second 'sed'
17733 # does the real work. The second script uses 'N' to pair each
17734 # line-number line with the line containing $LINENO, and appends
17735 # trailing '-' during substitution so that $LINENO is not a special
17736 # case at line end.
17737 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17738 # scripts with optimization help from Paolo Bonzini. Blame Lee
17739 # E. McMahon (1931-1989) for sed's syntax. :-)
17751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17754 ' >$as_me.lineno &&
17755 chmod +x "$as_me.lineno
" ||
17756 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
17757 { (exit 1); exit 1; }; }
17759 # Don't try to exec as it changes $[0], causing all sort of problems
17760 # (the dirname of $[0] is not the place where we might find the
17761 # original and so on. Autoconf is especially sensitive to this).
17762 . ".
/$as_me.lineno
"
17763 # Exit status is that of the last command.
17768 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
17774 ECHO_C= ECHO_N= ECHO_T=
17775 case `echo -n x` in
17777 case `echo 'x\c'` in
17778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17784 if expr a : '\(a\)' >/dev/null 2>&1 &&
17785 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
17791 rm -f conf$$ conf$$.exe conf$$.file
17792 if test -d conf$$.dir; then
17793 rm -f conf$$.dir/conf$$.file
17796 mkdir conf$$.dir 2>/dev/null
17798 if (echo >conf$$.file) 2>/dev/null; then
17799 if ln -s conf$$.file conf$$ 2>/dev/null; then
17801 # ... but there are two gotchas:
17802 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17803 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17804 # In both cases, we have to default to `cp -p'.
17805 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17807 elif ln conf$$.file conf$$ 2>/dev/null; then
17815 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17816 rmdir conf$$.dir 2>/dev/null
17818 if mkdir -p . 2>/dev/null; then
17821 test -d ./-p && rmdir ./-p
17825 if test -x / >/dev/null 2>&1; then
17826 as_test_x='test -x'
17828 if ls -dL / >/dev/null 2>&1; then
17835 if test -d "$1"; then
17841 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17842 ???[sx]*):;;*)false;;esac;fi
17846 as_executable_p=$as_test_x
17848 # Sed expression to map a string onto a valid CPP name.
17849 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17851 # Sed expression to map a string onto a valid variable name.
17852 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17857 # Save the log message, to keep $[0] and so on meaningful, and to
17858 # report actual input values of CONFIG_FILES etc. instead of their
17859 # values after options handling.
17861 This
file was extended by
$as_me, which was
17862 generated by GNU Autoconf
2.62. Invocation
command line was
17864 CONFIG_FILES
= $CONFIG_FILES
17865 CONFIG_HEADERS
= $CONFIG_HEADERS
17866 CONFIG_LINKS
= $CONFIG_LINKS
17867 CONFIG_COMMANDS
= $CONFIG_COMMANDS
17870 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
17875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17876 # Files that config.status was made for.
17877 config_files="$ac_config_files"
17878 config_headers="$ac_config_headers"
17879 config_commands="$ac_config_commands"
17883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17885 \
`$as_me' instantiates files from templates according to the
17886 current configuration.
17888 Usage: $0 [OPTIONS] [FILE]...
17890 -h, --help print this help, then exit
17891 -V, --version print version number and configuration settings, then exit
17892 -q, --quiet do not print progress messages
17893 -d, --debug don't remove temporary files
17894 --recheck update $as_me by reconfiguring in the same conditions
17895 --file=FILE[:TEMPLATE]
17896 instantiate the configuration file FILE
17897 --header=FILE[:TEMPLATE]
17898 instantiate the configuration header FILE
17900 Configuration files:
17903 Configuration headers:
17906 Configuration commands:
17909 Report bugs to <bug-autoconf@gnu.org>."
17912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17915 configured by $0, generated by GNU Autoconf 2.62,
17916 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17918 Copyright (C) 2008 Free Software Foundation, Inc.
17919 This config.status script is free software; the Free Software Foundation
17920 gives unlimited permission to copy, distribute and modify it."
17927 test -n "\$AWK" || AWK=awk
17930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17931 # The default lists apply if the user does not specify any file.
17937 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17938 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17949 # Handling of the options.
17950 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17952 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17953 $as_echo "$ac_cs_version"; exit ;;
17954 --debug | --debu | --deb | --de | --d | -d )
17956 --file | --fil | --fi | --f )
17959 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
17961 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17962 ac_need_defaults=false;;
17963 --header | --heade | --head | --hea )
17966 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
17968 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17969 ac_need_defaults=false;;
17971 # Conflict between --help and --header
17972 { $as_echo "$as_me: error: ambiguous option: $1
17973 Try \`$0 --help' for more information." >&2
17974 { (exit 1); exit 1; }; };;
17975 --help | --hel | -h )
17976 $as_echo "$ac_cs_usage"; exit ;;
17977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17978 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17981 # This is an error.
17982 -*) { $as_echo "$as_me: error: unrecognized option: $1
17983 Try \`$0 --help' for more information.
" >&2
17984 { (exit 1); exit 1; }; } ;;
17986 *) ac_config_targets="$ac_config_targets $1"
17987 ac_need_defaults=false ;;
17993 ac_configure_extra_args=
17995 if $ac_cs_silent; then
17997 ac_configure_extra_args="$ac_configure_extra_args --silent"
18001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18002 if \$ac_cs_recheck; then
18003 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18005 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
18006 CONFIG_SHELL='$SHELL'
18007 export CONFIG_SHELL
18012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18017 ## Running $as_me. ##
18023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18027 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18030 # The HP-UX ksh and POSIX shell print the target directory to stdout
18031 # if CDPATH is set.
18032 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18034 sed_quote_subst='$sed_quote_subst'
18035 double_quote_subst='$double_quote_subst'
18036 delay_variable_subst='$delay_variable_subst'
18037 macro_version='`$ECHO "X
$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18038 macro_revision='`$ECHO "X
$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18039 enable_shared='`$ECHO "X
$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18040 enable_static='`$ECHO "X
$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18041 pic_mode='`$ECHO "X
$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18042 enable_fast_install='`$ECHO "X
$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18043 host_alias='`$ECHO "X
$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18044 host='`$ECHO "X
$host" | $Xsed -e "$delay_single_quote_subst"`'
18045 host_os='`$ECHO "X
$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18046 build_alias='`$ECHO "X
$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18047 build='`$ECHO "X
$build" | $Xsed -e "$delay_single_quote_subst"`'
18048 build_os='`$ECHO "X
$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18049 SED='`$ECHO "X
$SED" | $Xsed -e "$delay_single_quote_subst"`'
18050 Xsed='`$ECHO "X
$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18051 GREP='`$ECHO "X
$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18052 EGREP='`$ECHO "X
$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18053 FGREP='`$ECHO "X
$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18054 LD='`$ECHO "X
$LD" | $Xsed -e "$delay_single_quote_subst"`'
18055 NM='`$ECHO "X
$NM" | $Xsed -e "$delay_single_quote_subst"`'
18056 LN_S='`$ECHO "X
$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18057 max_cmd_len='`$ECHO "X
$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18058 ac_objext='`$ECHO "X
$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18059 exeext='`$ECHO "X
$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18060 lt_unset='`$ECHO "X
$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18061 lt_SP2NL='`$ECHO "X
$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18062 lt_NL2SP='`$ECHO "X
$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18063 reload_flag='`$ECHO "X
$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18064 reload_cmds='`$ECHO "X
$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18065 deplibs_check_method='`$ECHO "X
$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18066 file_magic_cmd='`$ECHO "X
$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18067 AR='`$ECHO "X
$AR" | $Xsed -e "$delay_single_quote_subst"`'
18068 AR_FLAGS='`$ECHO "X
$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18069 STRIP='`$ECHO "X
$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18070 RANLIB='`$ECHO "X
$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18071 old_postinstall_cmds='`$ECHO "X
$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18072 old_postuninstall_cmds='`$ECHO "X
$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18073 old_archive_cmds='`$ECHO "X
$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18074 CC='`$ECHO "X
$CC" | $Xsed -e "$delay_single_quote_subst"`'
18075 CFLAGS='`$ECHO "X
$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18076 compiler='`$ECHO "X
$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18077 GCC='`$ECHO "X
$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18078 lt_cv_sys_global_symbol_pipe='`$ECHO "X
$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18079 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X
$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18080 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X
$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18081 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X
$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18082 objdir='`$ECHO "X
$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18083 SHELL='`$ECHO "X
$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18084 ECHO='`$ECHO "X
$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18085 MAGIC_CMD='`$ECHO "X
$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18086 lt_prog_compiler_no_builtin_flag='`$ECHO "X
$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18087 lt_prog_compiler_wl='`$ECHO "X
$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18088 lt_prog_compiler_pic='`$ECHO "X
$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18089 lt_prog_compiler_static='`$ECHO "X
$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18090 lt_cv_prog_compiler_c_o='`$ECHO "X
$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18091 need_locks='`$ECHO "X
$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18092 DSYMUTIL='`$ECHO "X
$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18093 NMEDIT='`$ECHO "X
$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18094 LIPO='`$ECHO "X
$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18095 OTOOL='`$ECHO "X
$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18096 OTOOL64='`$ECHO "X
$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18097 libext='`$ECHO "X
$libext" | $Xsed -e "$delay_single_quote_subst"`'
18098 shrext_cmds='`$ECHO "X
$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18099 extract_expsyms_cmds='`$ECHO "X
$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18100 archive_cmds_need_lc='`$ECHO "X
$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18101 enable_shared_with_static_runtimes='`$ECHO "X
$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18102 export_dynamic_flag_spec='`$ECHO "X
$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18103 whole_archive_flag_spec='`$ECHO "X
$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18104 compiler_needs_object='`$ECHO "X
$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18105 old_archive_from_new_cmds='`$ECHO "X
$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18106 old_archive_from_expsyms_cmds='`$ECHO "X
$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18107 archive_cmds='`$ECHO "X
$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18108 archive_expsym_cmds='`$ECHO "X
$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18109 module_cmds='`$ECHO "X
$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18110 module_expsym_cmds='`$ECHO "X
$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18111 with_gnu_ld='`$ECHO "X
$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18112 allow_undefined_flag='`$ECHO "X
$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18113 no_undefined_flag='`$ECHO "X
$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18114 hardcode_libdir_flag_spec='`$ECHO "X
$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18115 hardcode_libdir_flag_spec_ld='`$ECHO "X
$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18116 hardcode_libdir_separator='`$ECHO "X
$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18117 hardcode_direct='`$ECHO "X
$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18118 hardcode_direct_absolute='`$ECHO "X
$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18119 hardcode_minus_L='`$ECHO "X
$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18120 hardcode_shlibpath_var='`$ECHO "X
$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18121 hardcode_automatic='`$ECHO "X
$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18122 inherit_rpath='`$ECHO "X
$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18123 link_all_deplibs='`$ECHO "X
$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18124 fix_srcfile_path='`$ECHO "X
$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18125 always_export_symbols='`$ECHO "X
$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18126 export_symbols_cmds='`$ECHO "X
$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18127 exclude_expsyms='`$ECHO "X
$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18128 include_expsyms='`$ECHO "X
$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18129 prelink_cmds='`$ECHO "X
$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18130 file_list_spec='`$ECHO "X
$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18131 variables_saved_for_relink='`$ECHO "X
$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18132 need_lib_prefix='`$ECHO "X
$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18133 need_version='`$ECHO "X
$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18134 version_type='`$ECHO "X
$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18135 runpath_var='`$ECHO "X
$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18136 shlibpath_var='`$ECHO "X
$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18137 shlibpath_overrides_runpath='`$ECHO "X
$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18138 libname_spec='`$ECHO "X
$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18139 library_names_spec='`$ECHO "X
$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18140 soname_spec='`$ECHO "X
$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18141 postinstall_cmds='`$ECHO "X
$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18142 postuninstall_cmds='`$ECHO "X
$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18143 finish_cmds='`$ECHO "X
$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18144 finish_eval='`$ECHO "X
$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18145 hardcode_into_libs='`$ECHO "X
$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18146 sys_lib_search_path_spec='`$ECHO "X
$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18147 sys_lib_dlsearch_path_spec='`$ECHO "X
$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18148 hardcode_action='`$ECHO "X
$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18149 enable_dlopen='`$ECHO "X
$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18150 enable_dlopen_self='`$ECHO "X
$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18151 enable_dlopen_self_static='`$ECHO "X
$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18152 old_striplib='`$ECHO "X
$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18153 striplib='`$ECHO "X
$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18156 LTCFLAGS='$LTCFLAGS'
18157 compiler='$compiler_DEFAULT'
18159 # Quote evaled strings.
18170 deplibs_check_method \
18179 lt_cv_sys_global_symbol_pipe \
18180 lt_cv_sys_global_symbol_to_cdecl \
18181 lt_cv_sys_global_symbol_to_c_name_address \
18182 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18185 lt_prog_compiler_no_builtin_flag \
18186 lt_prog_compiler_wl \
18187 lt_prog_compiler_pic \
18188 lt_prog_compiler_static \
18189 lt_cv_prog_compiler_c_o \
18197 export_dynamic_flag_spec \
18198 whole_archive_flag_spec \
18199 compiler_needs_object \
18201 allow_undefined_flag \
18202 no_undefined_flag \
18203 hardcode_libdir_flag_spec \
18204 hardcode_libdir_flag_spec_ld \
18205 hardcode_libdir_separator \
18210 variables_saved_for_relink \
18212 library_names_spec \
18217 case \`eval \\\\\$ECHO "X
\\\\\$\
$var"\` in
18218 *[\\\\\\\`\\"\\\$
]*)
18219 eval "lt_\$var=\\\\\\"\\\
`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18222 eval "lt_\$var=\\\\\\"\\\$\
$var\\\\\\""
18227 # Double-quote double-evaled strings.
18228 for var
in reload_cmds \
18229 old_postinstall_cmds \
18230 old_postuninstall_cmds \
18232 extract_expsyms_cmds \
18233 old_archive_from_new_cmds \
18234 old_archive_from_expsyms_cmds \
18236 archive_expsym_cmds \
18238 module_expsym_cmds \
18239 export_symbols_cmds \
18242 postuninstall_cmds \
18244 sys_lib_search_path_spec \
18245 sys_lib_dlsearch_path_spec
; do
18246 case \
`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18247 *[\\\\\\\
`\\"\\\$]*)
18248 eval "lt_\$var=\\\\\\"\\\`\\\
$ECHO \\"X\\\$\$var\\" |
\\\
$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\
`\\\\\\""
18251 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18256 # Fix-up fallback echo if it was mangled by the above quoting rules.
18258 *'\\\$0 --fallback-echo"') lt_ECHO=\`\
$ECHO "X\$lt_ECHO" | \
$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\
`
18262 ac_aux_dir='$ac_aux_dir'
18263 xsi_shell='$xsi_shell'
18264 lt_shell_append='$lt_shell_append'
18266 # See if we are running on zsh, and set the options which allow our
18267 # commands through without removal of \ escapes INIT.
18268 if test -n "\${ZSH_VERSION+set}" ; then
18269 setopt NO_GLOB_SUBST
18275 TIMESTAMP='$TIMESTAMP'
18284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18286 # Handling of arguments.
18287 for ac_config_target in $ac_config_targets
18289 case $ac_config_target in
18290 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18291 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18292 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18293 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18294 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18295 "src/sigsegv.h") CONFIG_FILES="$CONFIG_FILES src/sigsegv.h" ;;
18296 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18298 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18299 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18300 { (exit 1); exit 1; }; };;
18305 # If the user did not use the arguments to specify the items to instantiate,
18306 # then the envvar interface is used. Set only those that are not.
18307 # We use the long form for the default assignment because of an extremely
18308 # bizarre bug on SunOS 4.1.3.
18309 if $ac_need_defaults; then
18310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18312 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18315 # Have a temporary directory for convenience. Make it in the build tree
18316 # simply because there is no reason against having it here, and in addition,
18317 # creating and moving files from /tmp can sometimes cause problems.
18318 # Hook for its removal unless debugging.
18319 # Note that there is a small window in which the directory will not be cleaned:
18320 # after its creation but before its name has been assigned to `$tmp'.
18324 trap 'exit_status
=$?
18325 { test -z "$tmp" ||
test ! -d "$tmp" ||
rm -fr "$tmp"; } && exit $exit_status
18327 trap '{ (exit 1); exit 1; }' 1 2 13 15
18329 # Create a (secure) tmp directory for tmp files.
18332 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18333 test -n "$tmp" && test -d "$tmp"
18336 tmp=./conf$$-$RANDOM
18337 (umask 077 && mkdir "$tmp")
18340 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18341 { (exit 1); exit 1; }
18344 # Set up the scripts for CONFIG_FILES section.
18345 # No need to generate them if there are no CONFIG_FILES.
18346 # This happens for instance with `./config.status config.h'.
18347 if test -n "$CONFIG_FILES"; then
18351 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18352 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18355 ac_cs_awk_cr
=$ac_cr
18358 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18363 echo "cat >conf$$subs.awk <<_ACEOF" &&
18364 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18366 } >conf$$subs.sh ||
18367 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18368 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18369 { (exit 1); exit 1; }; }
18370 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18372 for ac_last_try in false false false false false :; do
18373 . ./conf$$subs.sh ||
18374 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18375 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18376 { (exit 1); exit 1; }; }
18378 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
18380 elif $ac_last_try; then
18381 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18382 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18383 { (exit 1); exit 1; }; }
18385 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18388 rm -f conf$$subs.sh
18390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18391 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18395 s/^/S["/; s
/!.
*/"]=/
18405 s/\(.\{148\}\).*/\1/
18407 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18412 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18419 s/\(.\{148\}\).*/\1/
18421 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18425 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18430 ' <conf$$subs.awk | sed '
18435 ' >>$CONFIG_STATUS || ac_write_fail=1
18436 rm -f conf$$subs.awk
18437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18439 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18440 for (key in S) S_is_set[key] = 1
18446 nfields = split(line, field, "@
")
18448 len = length(field[1])
18449 for (i = 2; i < nfields; i++) {
18451 keylen = length(key)
18452 if (S_is_set[key]) {
18454 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18455 len += length(value) + length(field[++i])
18466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18467 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18468 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18471 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18472 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
18473 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
18474 { (exit 1); exit 1; }; }
18477 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18478 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18479 # trailing colons and then remove the whole line if VPATH becomes empty
18480 # (actually we leave an empty line to preserve line numbers).
18481 if test "x
$srcdir" = x.; then
18482 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18483 s/:*\$(srcdir):*/:/
18484 s/:*\${srcdir}:*/:/
18486 s/^\([^=]*=[ ]*\):*/\1/
18492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18493 fi # test -n "$CONFIG_FILES"
18495 # Set up the scripts for CONFIG_HEADERS section.
18496 # No need to generate them if there are no CONFIG_HEADERS.
18497 # This happens for instance with `./config.status Makefile'.
18498 if test -n "$CONFIG_HEADERS"; then
18499 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18503 # Transform confdefs.h into an awk script `defines.awk', embedded as
18504 # here-document in config.status, that substitutes the proper values into
18505 # config.h.in to produce config.h.
18507 # Create a delimiter string that does not exist in confdefs.h, to ease
18508 # handling of long lines.
18510 for ac_last_try in false false :; do
18511 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18512 if test -z "$ac_t"; then
18514 elif $ac_last_try; then
18515 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
18516 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
18517 { (exit 1); exit 1; }; }
18519 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18523 # For the awk script, D is an array of macro values keyed by name,
18524 # likewise P contains macro parameters if any. Preserve backslash
18525 # newline sequences.
18527 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18529 s/.\{148\}/&'"$ac_delim"'/g
18532 s/^[ ]*#[ ]*define[ ][ ]*/ /
18539 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18541 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18546 D["\
1"]=" \
3\\\\\\n
"\\/p
18548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18553 s/.\{148\}/&'"$ac_delim"'/g
18558 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18561 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18563 ' <confdefs.h | sed '
18564 s/'"$ac_delim"'/"\\\
18565 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18568 for (key in D) D_is_set[key] = 1
18571 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18573 split(line, arg, " ")
18574 if (arg[1] == "#") {
18578 defundef
= substr
(arg
[1], 2)
18581 split(mac1
, mac2
, "(") #)
18583 if (D_is_set
[macro
]) {
18584 # Preserve the white space surrounding the "#".
18585 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18586 print prefix
"define", macro P
[macro
] D
[macro
]
18589 # Replace #undef with comments. This is necessary, for example,
18590 # in the case of _POSIX_SOURCE, which is predefined and required
18591 # on some systems where configure will not decide to define it.
18592 if (defundef
== "undef") {
18593 print
"/*", line
, "*/"
18601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18602 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18603 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18604 { (exit 1); exit 1; }; }
18605 fi # test -n "$CONFIG_HEADERS"
18608 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18613 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18615 case $ac_mode$ac_tag in
18617 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18618 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18619 { (exit 1); exit 1; }; };;
18620 :[FH
]-) ac_tag
=-:-;;
18621 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18638 -) ac_f
="$tmp/stdin";;
18639 *) # Look for the file first in the build tree, then in the source tree
18640 # (if the path is not absolute). The absolute path cannot be DOS-style,
18641 # because $ac_f cannot contain `:'.
18645 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18647 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18648 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18649 { (exit 1); exit 1; }; };;
18651 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18652 ac_file_inputs
="$ac_file_inputs '$ac_f'"
18655 # Let's still pretend it is `configure' which instantiates (i.e., don't
18656 # use $as_me), people would be surprised to read:
18657 # /* config.h. Generated by config.status. */
18658 configure_input
='Generated from '`
18659 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18661 if test x
"$ac_file" != x-
; then
18662 configure_input
="$ac_file. $configure_input"
18663 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18664 $as_echo "$as_me: creating $ac_file" >&6;}
18666 # Neutralize special characters interpreted by sed in replacement strings.
18667 case $configure_input in #(
18668 *\
&* |
*\|
* |
*\\* )
18669 ac_sed_conf_input
=`$as_echo "$configure_input" |
18670 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18671 *) ac_sed_conf_input
=$configure_input;;
18675 *:-:* |
*:-) cat >"$tmp/stdin" \
18676 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18677 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18678 { (exit 1); exit 1; }; } ;;
18683 ac_dir
=`$as_dirname -- "$ac_file" ||
18684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18685 X"$ac_file" : 'X\(//\)[^/]' \| \
18686 X"$ac_file" : 'X\(//\)$' \| \
18687 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18688 $as_echo X"$ac_file" |
18689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18693 /^X\(\/\/\)[^/].*/{
18708 -*) as_dir
=.
/$as_dir;;
18710 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
18714 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18715 *) as_qdir
=$as_dir;;
18717 as_dirs
="'$as_qdir' $as_dirs"
18718 as_dir
=`$as_dirname -- "$as_dir" ||
18719 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18720 X"$as_dir" : 'X\(//\)[^/]' \| \
18721 X"$as_dir" : 'X\(//\)$' \| \
18722 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18723 $as_echo X"$as_dir" |
18724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18728 /^X\(\/\/\)[^/].*/{
18741 test -d "$as_dir" && break
18743 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18744 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18745 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18746 { (exit 1); exit 1; }; }; }
18750 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18752 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18753 # A ".." for each directory in $ac_dir_suffix.
18754 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18755 case $ac_top_builddir_sub in
18756 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18757 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18760 ac_abs_top_builddir
=$ac_pwd
18761 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18762 # for backward compatibility:
18763 ac_top_builddir
=$ac_top_build_prefix
18766 .
) # We are building in place.
18768 ac_top_srcdir
=$ac_top_builddir_sub
18769 ac_abs_top_srcdir
=$ac_pwd ;;
18770 [\\/]* | ?
:[\\/]* ) # Absolute name.
18771 ac_srcdir
=$srcdir$ac_dir_suffix;
18772 ac_top_srcdir
=$srcdir
18773 ac_abs_top_srcdir
=$srcdir ;;
18774 *) # Relative name.
18775 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18776 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18777 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18779 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18789 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18790 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18792 ac_MKDIR_P
=$MKDIR_P
18794 [\\/$
]* | ?
:[\\/]* ) ;;
18795 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18800 # If the template does not know about datarootdir, expand it.
18801 # FIXME: This hack should be removed a few years after 2.60.
18802 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18815 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18816 *datarootdir
*) ac_datarootdir_seen
=yes;;
18817 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18818 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18819 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18822 ac_datarootdir_hack='
18823 s&@datadir@&$datadir&g
18824 s&@docdir@&$docdir&g
18825 s&@infodir@&$infodir&g
18826 s&@localedir@&$localedir&g
18827 s&@mandir@&$mandir&g
18828 s&\\\${datarootdir}&$datarootdir&g' ;;
18832 # Neutralize VPATH when `$srcdir' = `.'.
18833 # Shell code in configure.ac might set extrasub.
18834 # FIXME: do we really want to maintain this feature?
18835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18836 ac_sed_extra="$ac_vpsub
18839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18841 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18842 s|@configure_input@|
$ac_sed_conf_input|
;t t
18843 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18844 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18845 s
&@srcdir@
&$ac_srcdir&;t t
18846 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18847 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18848 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18849 s
&@builddir@
&$ac_builddir&;t t
18850 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18851 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18852 s
&@INSTALL@
&$ac_INSTALL&;t t
18853 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18854 $ac_datarootdir_hack
18856 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18857 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
18858 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
18859 { (exit 1); exit 1; }; }
18861 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18862 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18864 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18865 which seems to be undefined. Please make sure it is defined." >&5
18866 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18867 which seems to be undefined. Please make sure it is defined." >&2;}
18871 -) cat "$tmp/out" && rm -f "$tmp/out";;
18872 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18874 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18875 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18876 { (exit 1); exit 1; }; }
18882 if test x"$ac_file" != x-; then
18884 $as_echo "/* $configure_input */" \
18885 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18886 } >"$tmp/config.h" \
18887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18888 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18889 { (exit 1); exit 1; }; }
18890 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18891 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18892 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18895 mv "$tmp/config.h" "$ac_file" \
18896 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18897 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18898 { (exit 1); exit 1; }; }
18901 $as_echo "/* $configure_input */" \
18902 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18903 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18904 $as_echo "$as_me: error: could not create -" >&2;}
18905 { (exit 1); exit 1; }; }
18907 # Compute "$ac_file"'s index
in $config_headers.
18910 for _am_header
in $config_headers :; do
18911 case $_am_header in
18912 $_am_arg |
$_am_arg:* )
18915 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18918 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18919 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18920 X"$_am_arg" : 'X\(//\)[^/]' \| \
18921 X"$_am_arg" : 'X\(//\)$' \| \
18922 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18923 $as_echo X"$_am_arg" |
18924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18928 /^X\(\/\/\)[^/].*/{
18940 s/.*/./; q'`/stamp-h
$_am_stamp_count
18943 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18944 $as_echo "$as_me: executing $ac_file commands" >&6;}
18949 case $ac_file$ac_mode in
18950 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
18951 # Strip MF so we end up with the name of the file.
18952 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18953 # Check whether this is an Automake generated Makefile or not.
18954 # We used to match only the files named `Makefile.in', but
18955 # some people rename them; so instead we look at the file content.
18956 # Grep'ing the first line is not enough: some people post-process
18957 # each Makefile.in and add a new line on top of each file to say so.
18958 # Grep'ing the whole file is not good either: AIX grep has a line
18959 # limit of 2048, but all sed's we know have understand at least 4000.
18960 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18961 dirpart
=`$as_dirname -- "$mf" ||
18962 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18963 X"$mf" : 'X\(//\)[^/]' \| \
18964 X"$mf" : 'X\(//\)$' \| \
18965 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18971 /^X\(\/\/\)[^/].*/{
18987 # Extract the definition of DEPDIR, am__include, and am__quote
18988 # from the Makefile without running `make'.
18989 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18990 test -z "$DEPDIR" && continue
18991 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18992 test -z "am__include" && continue
18993 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18994 # When using ansi2knr, U may be empty or an underscore; expand it
18995 U
=`sed -n 's/^U = //p' < "$mf"`
18996 # Find all dependency output files, they are included files with
18997 # $(DEPDIR) in their names. We invoke sed twice because it is the
18998 # simplest approach to changing $(DEPDIR) to its actual value in the
19000 for file in `sed -n "
19001 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19002 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19003 # Make sure the directory exists.
19004 test -f "$dirpart/$file" && continue
19005 fdir
=`$as_dirname -- "$file" ||
19006 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19007 X"$file" : 'X\(//\)[^/]' \| \
19008 X"$file" : 'X\(//\)$' \| \
19009 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19010 $as_echo X"$file" |
19011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19015 /^X\(\/\/\)[^/].*/{
19028 { as_dir
=$dirpart/$fdir
19030 -*) as_dir
=.
/$as_dir;;
19032 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
19036 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19037 *) as_qdir
=$as_dir;;
19039 as_dirs
="'$as_qdir' $as_dirs"
19040 as_dir
=`$as_dirname -- "$as_dir" ||
19041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19042 X"$as_dir" : 'X\(//\)[^/]' \| \
19043 X"$as_dir" : 'X\(//\)$' \| \
19044 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19045 $as_echo X"$as_dir" |
19046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19050 /^X\(\/\/\)[^/].*/{
19063 test -d "$as_dir" && break
19065 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19066 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19067 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19068 { (exit 1); exit 1; }; }; }
19069 # echo "creating $dirpart/$file"
19070 echo '# dummy' > "$dirpart/$file"
19076 # See if we are running on zsh, and set the options which allow our
19077 # commands through without removal of \ escapes.
19078 if test -n "${ZSH_VERSION+set}" ; then
19079 setopt NO_GLOB_SUBST
19082 cfgfile
="${ofile}T"
19083 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19086 cat <<_LT_EOF >> "$cfgfile"
19089 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19090 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19091 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19092 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19094 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19095 # 2006, 2007, 2008 Free Software Foundation, Inc.
19096 # Written by Gordon Matzigkeit, 1996
19098 # This file is part of GNU Libtool.
19100 # GNU Libtool is free software; you can redistribute it and/or
19101 # modify it under the terms of the GNU General Public License as
19102 # published by the Free Software Foundation; either version 2 of
19103 # the License, or (at your option) any later version.
19105 # As a special exception to the GNU General Public License,
19106 # if you distribute this file as part of a program or library that
19107 # is built using GNU Libtool, you may include this file under the
19108 # same distribution terms that you use for the rest of that program.
19110 # GNU Libtool is distributed in the hope that it will be useful,
19111 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19112 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19113 # GNU General Public License for more details.
19115 # You should have received a copy of the GNU General Public License
19116 # along with GNU Libtool; see the file COPYING. If not, a copy
19117 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19118 # obtained by writing to the Free Software Foundation, Inc.,
19119 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19122 # The names of the tagged configurations supported by this script.
19125 # ### BEGIN LIBTOOL CONFIG
19127 # Which release of libtool.m4 was used?
19128 macro_version=$macro_version
19129 macro_revision=$macro_revision
19131 # Whether or not to build shared libraries.
19132 build_libtool_libs=$enable_shared
19134 # Whether or not to build static libraries.
19135 build_old_libs=$enable_static
19137 # What type of objects to build.
19140 # Whether or not to optimize for fast installation.
19141 fast_install=$enable_fast_install
19144 host_alias=$host_alias
19148 # The build system.
19149 build_alias=$build_alias
19153 # A sed program that does not truncate output.
19156 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19157 Xsed="\$SED -e 1s/^X//"
19159 # A grep program that handles long lines.
19165 # A literal string matcher.
19168 # A BSD- or MS-compatible name lister.
19171 # Whether we need soft or hard links.
19174 # What is the maximum length of a command?
19175 max_cmd_len=$max_cmd_len
19177 # Object file suffix (normally "o").
19180 # Executable file suffix (normally "").
19183 # whether the shell understands "unset".
19186 # turn spaces into newlines.
19189 # turn newlines into spaces.
19192 # How to create reloadable object files.
19193 reload_flag=$lt_reload_flag
19194 reload_cmds=$lt_reload_cmds
19196 # Method to check whether dependent libraries are shared objects.
19197 deplibs_check_method=$lt_deplibs_check_method
19199 # Command to use when deplibs_check_method == "file_magic".
19200 file_magic_cmd=$lt_file_magic_cmd
19204 AR_FLAGS=$lt_AR_FLAGS
19206 # A symbol stripping program.
19209 # Commands used to install an old-style archive.
19211 old_postinstall_cmds=$lt_old_postinstall_cmds
19212 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19217 # LTCC compiler flags.
19218 LTCFLAGS=$lt_CFLAGS
19220 # Take the output of nm and produce a listing of raw symbols and C names.
19221 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19223 # Transform the output of nm in a proper C declaration.
19224 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19226 # Transform the output of nm in a C name address pair.
19227 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19229 # Transform the output of nm in a C name address pair when lib prefix is needed.
19230 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19232 # The name of the directory that contains temporary libtool files.
19235 # Shell to use when invoking shell scripts.
19238 # An echo program that does not interpret backslashes.
19241 # Used to examine libraries when file_magic_cmd begins with "file".
19242 MAGIC_CMD=$MAGIC_CMD
19244 # Must we lock files when doing compilation?
19245 need_locks=$lt_need_locks
19247 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19248 DSYMUTIL=$lt_DSYMUTIL
19250 # Tool to change global to local symbols on Mac OS X.
19253 # Tool to manipulate fat objects and archives on Mac OS X.
19256 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19259 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19260 OTOOL64=$lt_OTOOL64
19262 # Old archive suffix (normally "a").
19265 # Shared library suffix (normally ".so").
19266 shrext_cmds=$lt_shrext_cmds
19268 # The commands to extract the exported symbol list from a shared archive.
19269 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19271 # Variables whose values should be saved in libtool wrapper scripts and
19272 # restored at link time.
19273 variables_saved_for_relink=$lt_variables_saved_for_relink
19275 # Do we need the "lib" prefix for modules?
19276 need_lib_prefix=$need_lib_prefix
19278 # Do we need a version for libraries?
19279 need_version=$need_version
19281 # Library versioning type.
19282 version_type=$version_type
19284 # Shared library runtime path variable.
19285 runpath_var=$runpath_var
19287 # Shared library path variable.
19288 shlibpath_var=$shlibpath_var
19290 # Is shlibpath searched before the hard-coded library search path?
19291 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19293 # Format of library name prefix.
19294 libname_spec=$lt_libname_spec
19296 # List of archive names. First name is the real one, the rest are links.
19297 # The last name is the one that the linker finds with -lNAME
19298 library_names_spec=$lt_library_names_spec
19300 # The coded name of the library, if different from the real name.
19301 soname_spec=$lt_soname_spec
19303 # Command to use after installation of a shared archive.
19304 postinstall_cmds=$lt_postinstall_cmds
19306 # Command to use after uninstallation of a shared archive.
19307 postuninstall_cmds=$lt_postuninstall_cmds
19309 # Commands used to finish a libtool library installation in a directory.
19310 finish_cmds=$lt_finish_cmds
19312 # As "finish_cmds", except a single script fragment to be evaled but
19314 finish_eval=$lt_finish_eval
19316 # Whether we should hardcode library paths into libraries.
19317 hardcode_into_libs=$hardcode_into_libs
19319 # Compile-time system search path for libraries.
19320 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19322 # Run-time system search path for libraries.
19323 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19325 # Whether dlopen is supported.
19326 dlopen_support=$enable_dlopen
19328 # Whether dlopen of programs is supported.
19329 dlopen_self=$enable_dlopen_self
19331 # Whether dlopen of statically linked programs is supported.
19332 dlopen_self_static=$enable_dlopen_self_static
19334 # Commands to strip libraries.
19335 old_striplib=$lt_old_striplib
19336 striplib=$lt_striplib
19339 # The linker used to build libraries.
19342 # Commands used to build an old-style archive.
19343 old_archive_cmds=$lt_old_archive_cmds
19345 # A language specific compiler.
19348 # Is the compiler the GNU compiler?
19351 # Compiler flag to turn off builtin functions.
19352 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19354 # How to pass a linker flag through the compiler.
19355 wl=$lt_lt_prog_compiler_wl
19357 # Additional compiler flags for building library objects.
19358 pic_flag=$lt_lt_prog_compiler_pic
19360 # Compiler flag to prevent dynamic linking.
19361 link_static_flag=$lt_lt_prog_compiler_static
19363 # Does compiler simultaneously support -c and -o options?
19364 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19366 # Whether or not to add -lc for building shared libraries.
19367 build_libtool_need_lc=$archive_cmds_need_lc
19369 # Whether or not to disallow shared libs when runtime libs are static.
19370 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19372 # Compiler flag to allow reflexive dlopens.
19373 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19375 # Compiler flag to generate shared objects directly from archives.
19376 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19378 # Whether the compiler copes with passing no objects directly.
19379 compiler_needs_object=$lt_compiler_needs_object
19381 # Create an old-style archive from a shared archive.
19382 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19384 # Create a temporary old-style archive to link instead of a shared archive.
19385 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19387 # Commands used to build a shared archive.
19388 archive_cmds=$lt_archive_cmds
19389 archive_expsym_cmds=$lt_archive_expsym_cmds
19391 # Commands used to build a loadable module if different from building
19392 # a shared archive.
19393 module_cmds=$lt_module_cmds
19394 module_expsym_cmds=$lt_module_expsym_cmds
19396 # Whether we are building with GNU ld or not.
19397 with_gnu_ld=$lt_with_gnu_ld
19399 # Flag that allows shared libraries with undefined symbols to be built.
19400 allow_undefined_flag=$lt_allow_undefined_flag
19402 # Flag that enforces no undefined symbols.
19403 no_undefined_flag=$lt_no_undefined_flag
19405 # Flag to hardcode \$libdir into a binary during linking.
19406 # This must work even if \$libdir does not exist
19407 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19409 # If ld is used when linking, flag to hardcode \$libdir into a binary
19410 # during linking. This must work even if \$libdir does not exist.
19411 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19413 # Whether we need a single "-rpath" flag with a separated argument.
19414 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19416 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19417 # DIR into the resulting binary.
19418 hardcode_direct=$hardcode_direct
19420 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19421 # DIR into the resulting binary and the resulting library dependency is
19422 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19423 # library is relocated.
19424 hardcode_direct_absolute=$hardcode_direct_absolute
19426 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19427 # into the resulting binary.
19428 hardcode_minus_L=$hardcode_minus_L
19430 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19431 # into the resulting binary.
19432 hardcode_shlibpath_var=$hardcode_shlibpath_var
19434 # Set to "yes" if building a shared library automatically hardcodes DIR
19435 # into the library and all subsequent libraries and executables linked
19437 hardcode_automatic=$hardcode_automatic
19439 # Set to yes if linker adds runtime paths of dependent libraries
19440 # to runtime path list.
19441 inherit_rpath=$inherit_rpath
19443 # Whether libtool must link a program against all its dependency libraries.
19444 link_all_deplibs=$link_all_deplibs
19446 # Fix the shell variable \$srcfile for the compiler.
19447 fix_srcfile_path=$lt_fix_srcfile_path
19449 # Set to "yes" if exported symbols are required.
19450 always_export_symbols=$always_export_symbols
19452 # The commands to list exported symbols.
19453 export_symbols_cmds=$lt_export_symbols_cmds
19455 # Symbols that should not be listed in the preloaded symbols.
19456 exclude_expsyms=$lt_exclude_expsyms
19458 # Symbols that must always be exported.
19459 include_expsyms=$lt_include_expsyms
19461 # Commands necessary for linking programs (against libraries) with templates.
19462 prelink_cmds=$lt_prelink_cmds
19464 # Specify filename containing input files.
19465 file_list_spec=$lt_file_list_spec
19467 # How to hardcode a shared library path into an executable.
19468 hardcode_action=$hardcode_action
19470 # ### END LIBTOOL CONFIG
19476 cat <<\_LT_EOF
>> "$cfgfile"
19477 # AIX sometimes has problems with the GCC collect2 program. For some
19478 # reason, if we set the COLLECT_NAMES environment variable, the problems
19479 # vanish in a puff of smoke.
19480 if test "X${COLLECT_NAMES+set}" != Xset
; then
19482 export COLLECT_NAMES
19489 ltmain
="$ac_aux_dir/ltmain.sh"
19492 # We use sed instead of cat because bash on DJGPP gets confused if
19493 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19494 # text mode, it properly converts lines to CR/LF. This bash problem
19495 # is reportedly fixed, but why not run on old versions too?
19496 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19497 ||
(rm -f "$cfgfile"; exit 1)
19501 cat << \_LT_EOF
>> "$cfgfile"
19503 # func_dirname file append nondir_replacement
19504 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19505 # otherwise set result to NONDIR_REPLACEMENT.
19509 */*) func_dirname_result
="${1%/*}${2}" ;;
19510 * ) func_dirname_result
="${3}" ;;
19514 # func_basename file
19517 func_basename_result
="${1##*/}"
19520 # func_dirname_and_basename file append nondir_replacement
19521 # perform func_basename and func_dirname in a single function
19523 # dirname: Compute the dirname of FILE. If nonempty,
19524 # add APPEND to the result, otherwise set result
19525 # to NONDIR_REPLACEMENT.
19526 # value returned in "$func_dirname_result"
19527 # basename: Compute filename of FILE.
19528 # value retuned in "$func_basename_result"
19529 # Implementation must be kept synchronized with func_dirname
19530 # and func_basename. For efficiency, we do not delegate to
19531 # those functions but instead duplicate the functionality here.
19532 func_dirname_and_basename
()
19535 */*) func_dirname_result
="${1%/*}${2}" ;;
19536 * ) func_dirname_result
="${3}" ;;
19538 func_basename_result
="${1##*/}"
19541 # func_stripname prefix suffix name
19542 # strip PREFIX and SUFFIX off of NAME.
19543 # PREFIX and SUFFIX must not contain globbing or regex special
19544 # characters, hashes, percent signs, but SUFFIX may contain a leading
19545 # dot (in which case that matches only a dot).
19548 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19549 # positional parameters, so assign one to ordinary parameter first.
19550 func_stripname_result
=${3}
19551 func_stripname_result
=${func_stripname_result#"${1}"}
19552 func_stripname_result
=${func_stripname_result%"${2}"}
19558 func_opt_split_opt
=${1%%=*}
19559 func_opt_split_arg
=${1#*=}
19566 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19567 *) func_lo2o_result
=${1} ;;
19571 # func_xform libobj-or-source
19574 func_xform_result
=${1%.*}.lo
19577 # func_arith arithmetic-term...
19580 func_arith_result
=$
(( $
* ))
19584 # STRING may not start with a hyphen.
19587 func_len_result
=${#1}
19592 *) # Bourne compatible functions.
19593 cat << \_LT_EOF
>> "$cfgfile"
19595 # func_dirname file append nondir_replacement
19596 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19597 # otherwise set result to NONDIR_REPLACEMENT.
19600 # Extract subdirectory from the argument.
19601 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19602 if test "X$func_dirname_result" = "X${1}"; then
19603 func_dirname_result
="${3}"
19605 func_dirname_result
="$func_dirname_result${2}"
19609 # func_basename file
19612 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
19616 # func_stripname prefix suffix name
19617 # strip PREFIX and SUFFIX off of NAME.
19618 # PREFIX and SUFFIX must not contain globbing or regex special
19619 # characters, hashes, percent signs, but SUFFIX may contain a leading
19620 # dot (in which case that matches only a dot).
19621 # func_strip_suffix prefix name
19625 .
*) func_stripname_result
=`$ECHO "X${3}" \
19626 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19627 *) func_stripname_result
=`$ECHO "X${3}" \
19628 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19633 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19634 my_sed_long_arg
='1s/^-[^=]*=//'
19639 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19640 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19646 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19649 # func_xform libobj-or-source
19652 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19655 # func_arith arithmetic-term...
19658 func_arith_result
=`expr "$@"`
19662 # STRING may not start with a hyphen.
19665 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19671 case $lt_shell_append in
19673 cat << \_LT_EOF
>> "$cfgfile"
19675 # func_append var value
19676 # Append VALUE to the end of shell variable VAR.
19684 cat << \_LT_EOF
>> "$cfgfile"
19686 # func_append var value
19687 # Append VALUE to the end of shell variable VAR.
19698 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19699 ||
(rm -f "$cfgfile"; exit 1)
19701 mv -f "$cfgfile" "$ofile" ||
19702 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19711 { (exit 0); exit 0; }
19713 chmod +x
$CONFIG_STATUS
19714 ac_clean_files
=$ac_clean_files_save
19716 test $ac_write_fail = 0 ||
19717 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19718 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19719 { (exit 1); exit 1; }; }
19722 # configure is writing to config.log, and then calls config.status.
19723 # config.status does its own redirection, appending to config.log.
19724 # Unfortunately, on DOS this fails, as config.log is still kept open
19725 # by configure, so config.status won't be able to write to it; its
19726 # output is simply discarded. So we exec the FD to /dev/null,
19727 # effectively closing config.log, so it can be properly (re)opened and
19728 # appended to by config.status. When coming back to configure, we
19729 # need to make the FD available again.
19730 if test "$no_create" != yes; then
19732 ac_config_status_args
=
19733 test "$silent" = yes &&
19734 ac_config_status_args
="$ac_config_status_args --quiet"
19736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19739 # would make configure fail if this is the last instruction.
19740 $ac_cs_success ||
{ (exit 1); exit 1; }
19742 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19743 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
19744 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
19748 { echo; echo "Now please type '${term_bold}make${term_norm}' to compile. Good luck."; echo; } >& 6