2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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="libop/op_config.h"
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>
787 ac_subst_vars='am__EXEEXT_FALSE
829 BUILD_JVMPI_AGENT_FALSE
830 BUILD_JVMPI_AGENT_TRUE
831 BUILD_JVMTI_AGENT_FALSE
832 BUILD_JVMTI_AGENT_TRUE
836 BUILD_FOR_PERF_EVENT_FALSE
837 BUILD_FOR_PERF_EVENT_TRUE
899 INSTALL_STRIP_PROGRAM
941 program_transform_name
953 enable_option_checking
954 enable_dependency_tracking
962 with_binutils_libname
979 ac_precious_vars='build_alias
998 # Initialize some variables set by options.
1000 ac_init_version=false
1001 ac_unrecognized_opts=
1002 ac_unrecognized_sep=
1003 # The variables have the same names as the options, with
1004 # dashes changed to underlines.
1005 cache_file=/dev/null
1012 program_transform_name=s,x,x,
1020 # Installation directory options.
1021 # These are left unexpanded so users can "make install exec_prefix=/foo"
1022 # and all the variables that are supposed to be based on exec_prefix
1023 # by default will actually change.
1024 # Use braces instead of parens because sh, perl, etc. also accept them.
1025 # (The list follows the same order as the GNU Coding Standards.)
1026 bindir='${exec_prefix}/bin'
1027 sbindir='${exec_prefix}/sbin'
1028 libexecdir='${exec_prefix}/libexec'
1029 datarootdir='${prefix}/share'
1030 datadir='${datarootdir}'
1031 sysconfdir='${prefix}/etc'
1032 sharedstatedir='${prefix}/com'
1033 localstatedir='${prefix}/var'
1034 includedir='${prefix}/include'
1035 oldincludedir='/usr/include'
1036 docdir='${datarootdir}/doc/${PACKAGE}'
1037 infodir='${datarootdir}/info'
1042 libdir='${exec_prefix}/lib'
1043 localedir='${datarootdir}/locale'
1044 mandir='${datarootdir}/man'
1050 # If the previous option needs an argument, assign it.
1051 if test -n "$ac_prev"; then
1052 eval $ac_prev=\$ac_option
1058 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1062 # Accept the important Cygnus configure options, so we can diagnose typos.
1064 case $ac_dashdash$ac_option in
1068 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1071 bindir=$ac_optarg ;;
1073 -build | --build | --buil | --bui | --bu)
1074 ac_prev=build_alias ;;
1075 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1076 build_alias=$ac_optarg ;;
1078 -cache-file | --cache-file | --cache-fil | --cache-fi \
1079 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1080 ac_prev=cache_file ;;
1081 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1082 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1083 cache_file=$ac_optarg ;;
1085 --config-cache | -C)
1086 cache_file=config.cache ;;
1088 -datadir | --datadir | --datadi | --datad)
1090 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1091 datadir=$ac_optarg ;;
1093 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1094 | --dataroo | --dataro | --datar)
1095 ac_prev=datarootdir ;;
1096 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1097 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1098 datarootdir=$ac_optarg ;;
1100 -disable-* | --disable-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_$ac_useropt"
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1115 eval enable_$ac_useropt=no ;;
1117 -docdir | --docdir | --docdi | --doc | --do)
1119 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1120 docdir=$ac_optarg ;;
1122 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1125 dvidir=$ac_optarg ;;
1127 -enable-* | --enable-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1132 { (exit 1); exit 1; }; }
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "enable_$ac_useropt"
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1142 eval enable_$ac_useropt=\$ac_optarg ;;
1144 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1145 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1146 | --exec | --exe | --ex)
1147 ac_prev=exec_prefix ;;
1148 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1149 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1150 | --exec=* | --exe=* | --ex=*)
1151 exec_prefix=$ac_optarg ;;
1153 -gas | --gas | --ga | --g)
1154 # Obsolete; use --with-gas.
1157 -help | --help | --hel | --he | -h)
1158 ac_init_help=long ;;
1159 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1160 ac_init_help=recursive ;;
1161 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1162 ac_init_help=short ;;
1164 -host | --host | --hos | --ho)
1165 ac_prev=host_alias ;;
1166 -host=* | --host=* | --hos=* | --ho=*)
1167 host_alias=$ac_optarg ;;
1169 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1171 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1173 htmldir=$ac_optarg ;;
1175 -includedir | --includedir | --includedi | --included | --include \
1176 | --includ | --inclu | --incl | --inc)
1177 ac_prev=includedir ;;
1178 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1179 | --includ=* | --inclu=* | --incl=* | --inc=*)
1180 includedir=$ac_optarg ;;
1182 -infodir | --infodir | --infodi | --infod | --info | --inf)
1184 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1185 infodir=$ac_optarg ;;
1187 -libdir | --libdir | --libdi | --libd)
1189 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1190 libdir=$ac_optarg ;;
1192 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1193 | --libexe | --libex | --libe)
1194 ac_prev=libexecdir ;;
1195 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1196 | --libexe=* | --libex=* | --libe=*)
1197 libexecdir=$ac_optarg ;;
1199 -localedir | --localedir | --localedi | --localed | --locale)
1200 ac_prev=localedir ;;
1201 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1202 localedir=$ac_optarg ;;
1204 -localstatedir | --localstatedir | --localstatedi | --localstated \
1205 | --localstate | --localstat | --localsta | --localst | --locals)
1206 ac_prev=localstatedir ;;
1207 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1208 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1209 localstatedir=$ac_optarg ;;
1211 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1213 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1214 mandir=$ac_optarg ;;
1216 -nfp | --nfp | --nf)
1217 # Obsolete; use --without-fp.
1220 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1221 | --no-cr | --no-c | -n)
1224 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1225 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1228 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1229 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1230 | --oldin | --oldi | --old | --ol | --o)
1231 ac_prev=oldincludedir ;;
1232 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1233 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1234 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1235 oldincludedir=$ac_optarg ;;
1237 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1239 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1240 prefix=$ac_optarg ;;
1242 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1243 | --program-pre | --program-pr | --program-p)
1244 ac_prev=program_prefix ;;
1245 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1246 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1247 program_prefix=$ac_optarg ;;
1249 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1250 | --program-suf | --program-su | --program-s)
1251 ac_prev=program_suffix ;;
1252 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1253 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1254 program_suffix=$ac_optarg ;;
1256 -program-transform-name | --program-transform-name \
1257 | --program-transform-nam | --program-transform-na \
1258 | --program-transform-n | --program-transform- \
1259 | --program-transform | --program-transfor \
1260 | --program-transfo | --program-transf \
1261 | --program-trans | --program-tran \
1262 | --progr-tra | --program-tr | --program-t)
1263 ac_prev=program_transform_name ;;
1264 -program-transform-name=* | --program-transform-name=* \
1265 | --program-transform-nam=* | --program-transform-na=* \
1266 | --program-transform-n=* | --program-transform-=* \
1267 | --program-transform=* | --program-transfor=* \
1268 | --program-transfo=* | --program-transf=* \
1269 | --program-trans=* | --program-tran=* \
1270 | --progr-tra=* | --program-tr=* | --program-t=*)
1271 program_transform_name=$ac_optarg ;;
1273 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1275 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1276 pdfdir=$ac_optarg ;;
1278 -psdir | --psdir | --psdi | --psd | --ps)
1280 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284 | -silent | --silent | --silen | --sile | --sil)
1287 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291 sbindir=$ac_optarg ;;
1293 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1294 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1295 | --sharedst | --shareds | --shared | --share | --shar \
1297 ac_prev=sharedstatedir ;;
1298 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1299 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1300 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302 sharedstatedir=$ac_optarg ;;
1304 -site | --site | --sit)
1306 -site=* | --site=* | --sit=*)
1309 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1312 srcdir=$ac_optarg ;;
1314 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1315 | --syscon | --sysco | --sysc | --sys | --sy)
1316 ac_prev=sysconfdir ;;
1317 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1318 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1319 sysconfdir=$ac_optarg ;;
1321 -target | --target | --targe | --targ | --tar | --ta | --t)
1322 ac_prev=target_alias ;;
1323 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1324 target_alias=$ac_optarg ;;
1326 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1329 -version | --version | --versio | --versi | --vers | -V)
1330 ac_init_version=: ;;
1333 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1337 { (exit 1); exit 1; }; }
1338 ac_useropt_orig=$ac_useropt
1339 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340 case $ac_user_opts in
1344 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1345 ac_unrecognized_sep=', ';;
1347 eval with_$ac_useropt=\$ac_optarg ;;
1349 -without-* | --without-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1354 { (exit 1); exit 1; }; }
1355 ac_useropt_orig=$ac_useropt
1356 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1361 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362 ac_unrecognized_sep=', ';;
1364 eval with_$ac_useropt=no ;;
1367 # Obsolete; use --with-x.
1370 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1371 | --x-incl | --x-inc | --x-in | --x-i)
1372 ac_prev=x_includes ;;
1373 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1374 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1375 x_includes=$ac_optarg ;;
1377 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1378 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1379 ac_prev=x_libraries ;;
1380 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1381 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1382 x_libraries=$ac_optarg ;;
1384 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1385 Try \`$0 --help' for more information." >&2
1386 { (exit 1); exit 1; }; }
1390 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1393 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1394 { (exit 1); exit 1; }; }
1395 eval $ac_envvar=\$ac_optarg
1396 export $ac_envvar ;;
1399 # FIXME: should be removed in autoconf 3.0.
1400 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1409 if test -n "$ac_prev"; then
1410 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1411 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1412 { (exit 1); exit 1; }; }
1415 if test -n "$ac_unrecognized_opts"; then
1416 case $enable_option_checking in
1418 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1419 { (exit 1); exit 1; }; } ;;
1420 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1424 # Check all directory arguments for consistency.
1425 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426 datadir sysconfdir sharedstatedir localstatedir includedir \
1427 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428 libdir localedir mandir
1430 eval ac_val=\$$ac_var
1431 # Remove trailing slashes.
1434 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435 eval $ac_var=\$ac_val;;
1437 # Be sure to have absolute directory names.
1439 [\\/$]* | ?:[\\/]* ) continue;;
1440 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1443 { (exit 1); exit 1; }; }
1446 # There might be people who depend on the old broken behavior: `$host'
1447 # used to hold the argument of --host etc.
1448 # FIXME: To remove some day.
1451 target=$target_alias
1453 # FIXME: To remove some day.
1454 if test "x$host_alias" != x; then
1455 if test "x$build_alias" = x; then
1456 cross_compiling=maybe
1457 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1458 If a cross compiler is detected then cross compile mode will be used." >&2
1459 elif test "x$build_alias" != "x$host_alias"; then
1465 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1467 test "$silent" = yes && exec 6>/dev/null
1470 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1471 ac_ls_di=`ls -di .` &&
1472 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1473 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1474 { (exit 1); exit 1; }; }
1475 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1476 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1477 { (exit 1); exit 1; }; }
1480 # Find the source files, if location was not specified.
1481 if test -z "$srcdir"; then
1482 ac_srcdir_defaulted=yes
1483 # Try the directory containing this script, then the parent directory.
1484 ac_confdir=`$as_dirname -- "$as_myself" ||
1485 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1486 X"$as_myself" : 'X\(//\)[^/]' \| \
1487 X"$as_myself" : 'X\(//\)$' \| \
1488 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1489 $as_echo X"$as_myself" |
1490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1512 ac_srcdir_defaulted=no
1514 if test ! -r "$srcdir/$ac_unique_file"; then
1515 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1516 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1517 { (exit 1); exit 1; }; }
1519 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1522 { (exit 1); exit 1; }; }
1524 # When building in place, set srcdir=.
1525 if test "$ac_abs_confdir" = "$ac_pwd"; then
1528 # Remove unnecessary trailing slashes from srcdir.
1529 # Double slashes in file names in object file debugging info
1530 # mess up M-x gdb in Emacs.
1532 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534 for ac_var in $ac_precious_vars; do
1535 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1536 eval ac_env_${ac_var}_value=\$${ac_var}
1537 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1538 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1542 # Report the --help message.
1544 if test "$ac_init_help" = "long"; then
1545 # Omit some internal or obsolete options to make the list less imposing.
1546 # This message is too long to be a string in the A/UX 3.1 sh.
1548 \`configure' configures this package to adapt to many kinds of systems.
1550 Usage: $0 [OPTION]... [VAR=VALUE]...
1552 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1553 VAR=VALUE. See below for descriptions of some of the useful variables.
1555 Defaults for the options are specified in brackets.
1558 -h, --help display this help and exit
1559 --help=short display options specific to this package
1560 --help=recursive display the short help of all the included packages
1561 -V, --version display version information and exit
1562 -q, --quiet, --silent do not print \`checking...' messages
1563 --cache-file=FILE cache test results in FILE [disabled]
1564 -C, --config-cache alias for \`--cache-file=config.cache'
1565 -n, --no-create do not create output files
1566 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1568 Installation directories:
1569 --prefix=PREFIX install architecture-independent files in PREFIX
1570 [$ac_default_prefix]
1571 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1574 By default, \`make install' will install all the files in
1575 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1576 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1577 for instance \`--prefix=\$HOME'.
1579 For better control, use the options below.
1581 Fine tuning of the installation directories:
1582 --bindir=DIR user executables [EPREFIX/bin]
1583 --sbindir=DIR system admin executables [EPREFIX/sbin]
1584 --libexecdir=DIR program executables [EPREFIX/libexec]
1585 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1586 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1587 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1588 --libdir=DIR object code libraries [EPREFIX/lib]
1589 --includedir=DIR C header files [PREFIX/include]
1590 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1591 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1592 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1593 --infodir=DIR info documentation [DATAROOTDIR/info]
1594 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1595 --mandir=DIR man documentation [DATAROOTDIR/man]
1596 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1597 --htmldir=DIR html documentation [DOCDIR]
1598 --dvidir=DIR dvi documentation [DOCDIR]
1599 --pdfdir=DIR pdf documentation [DOCDIR]
1600 --psdir=DIR ps documentation [DOCDIR]
1606 --program-prefix=PREFIX prepend PREFIX to installed program names
1607 --program-suffix=SUFFIX append SUFFIX to installed program names
1608 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1611 --x-includes=DIR X include files are in DIR
1612 --x-libraries=DIR X library files are in DIR
1615 --build=BUILD configure for building on BUILD [guessed]
1616 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1620 if test -n "$ac_init_help"; then
1625 --disable-option-checking ignore unrecognized --enable/--with options
1626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1628 --disable-dependency-tracking speeds up one-time build
1629 --enable-dependency-tracking do not reject slow dependency extractors
1630 --enable-shared[=PKGS] build shared libraries [default=yes]
1631 --enable-static[=PKGS] build static libraries [default=yes]
1632 --enable-fast-install[=PKGS]
1633 optimize for fast installation [default=yes]
1634 --disable-libtool-lock avoid locking (might break parallel builds)
1635 --enable-gui compile with gui component (qt3|qt4|yes|no),
1636 if not given or set to yes, gui defaults to qt3
1637 --enable-pch enable precompiled header (default is disabled)
1638 --enable-gcov enable option for gcov coverage testing (default is disabled)
1639 --disable-werror disable -Werror flag (default is enabled for non-release)
1640 --disable-optimization disable optimization flags (default is enabled)
1641 --disable-account-check disable account check (default is enabled)
1644 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1645 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1646 --with-pic try to use only PIC/non-PIC objects [default=use
1648 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1649 --with-binutils=dir Path to binutils installation to use
1650 --with-binutils-libname Lib dir name under binutils installation; [lib]]
1651 --with-kernel=dir Path to kernel include directory
1652 (...include/linux/perf_event.h) to use. If this
1653 option is not specified, configure will look for
1654 kernel header files in the usual installation
1655 location for a kernel-headers package --
1656 /usr/include. Use this option in cross-compile
1657 enviroments or in situations where the host system
1658 does not support perf_events but you wish to build
1659 binaries for a target system that does support
1660 perf_events. Because of OProfile's use of syscalls,
1661 be sure that the kernel headers used match the
1662 architecture of the intended target system.
1663 --with-java=java-home Path to Java home directory (default is "no"; "yes" will use /usr as Java home)
1664 --with-extra-includes=DIR add extra include paths
1665 --with-extra-libs=DIR add extra library paths
1666 --with-target=cell-be Check BFD support for Cell Broadband Engine SPU profiling
1667 --with-x use the X Window System
1668 --with-qt-dir where the root of Qt is installed
1669 --with-qt-includes where the Qt includes are.
1670 --with-qt-libraries where the Qt library is installed.
1672 Some influential environment variables:
1673 CC C compiler command
1674 CFLAGS C compiler flags
1675 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1676 nonstandard directory <lib dir>
1677 LIBS libraries to pass to the linker, e.g. -l<library>
1678 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1679 you have headers in a nonstandard directory <include dir>
1681 PKG_CONFIG path to pkg-config utility
1682 CXX C++ compiler command
1683 CXXFLAGS C++ compiler flags
1684 CXXCPP C++ preprocessor
1685 XMKMF Path to xmkmf, Makefile generator for X Window System
1686 QT_CFLAGS C compiler flags for QT, overriding pkg-config
1687 QT_LIBS linker flags for QT, overriding pkg-config
1689 Use these variables to override the choices made by `configure' or to help
1690 it to find libraries and programs with nonstandard names/locations.
1696 if test "$ac_init_help" = "recursive"; then
1697 # If there are subdirs, report their specific --help.
1698 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699 test -d "$ac_dir" ||
1700 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708 # A ".." for each directory in $ac_dir_suffix.
1709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710 case $ac_top_builddir_sub in
1711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1721 .) # We are building in place.
1723 ac_top_srcdir=$ac_top_builddir_sub
1724 ac_abs_top_srcdir=$ac_pwd ;;
1725 [\\/]* | ?:[\\/]* ) # Absolute name.
1726 ac_srcdir=$srcdir$ac_dir_suffix;
1727 ac_top_srcdir=$srcdir
1728 ac_abs_top_srcdir=$srcdir ;;
1730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731 ac_top_srcdir=$ac_top_build_prefix$srcdir
1732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736 cd "$ac_dir" || { ac_status=$?; continue; }
1737 # Check for guested configure.
1738 if test -f "$ac_srcdir/configure.gnu"; then
1740 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741 elif test -f "$ac_srcdir/configure"; then
1743 $SHELL "$ac_srcdir/configure" --help=recursive
1745 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 cd "$ac_pwd" || { ac_status=$?; break; }
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1755 generated by GNU Autoconf 2.63
1757 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1758 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1759 This configure script is free software; the Free Software Foundation
1760 gives unlimited permission to copy, distribute and modify it.
1764 cat >config.log <<_ACEOF
1765 This file contains any messages produced by compilers while
1766 running configure, to aid debugging if configure makes a mistake.
1768 It was created by $as_me, which was
1769 generated by GNU Autoconf 2.63. Invocation command line was
1781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1793 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 test -z "$as_dir" && as_dir=.
1805 $as_echo "PATH: $as_dir"
1821 # Keep a trace of the command line.
1822 # Strip out --no-create and --no-recursion so they do not pile up.
1823 # Strip out --silent because we don't want to record it for future runs.
1824 # Also quote any args containing shell meta-characters.
1825 # Make two passes to allow for proper duplicate-argument suppression.
1829 ac_must_keep_next=false
1835 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1837 | -silent | --silent | --silen | --sile | --sil)
1840 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1843 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1845 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1846 if test $ac_must_keep_next = true; then
1847 ac_must_keep_next=false # Got value, back to normal.
1850 *=* | --config-cache | -C | -disable-* | --disable-* \
1851 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1852 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1853 | -with-* | --with-* | -without-* | --without-* | --x)
1854 case "$ac_configure_args0 " in
1855 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1858 -* ) ac_must_keep_next=true ;;
1861 ac_configure_args="$ac_configure_args '$ac_arg'"
1866 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1867 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1869 # When interrupted or exit'd, cleanup temporary files, and complete
1870 # config.log. We remove comments because anyway the quotes in there
1871 # would cause problems or look ugly.
1872 # WARNING: Use '\'' to represent an apostrophe within the trap.
1873 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1874 trap 'exit_status=$?
1875 # Save into config.log some information that might help in debugging.
1880 ## ---------------- ##
1881 ## Cache variables. ##
1882 ## ---------------- ##
1885 # The following way of writing the cache mishandles newlines in values,
1887 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1888 eval ac_val=\$$ac_var
1892 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1896 _ | IFS | as_nl) ;; #(
1897 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1898 *) $as_unset $ac_var ;;
1903 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1904 *${as_nl}ac_space=\ *)
1906 "s/'\''/'\''\\\\'\'''\''/g;
1907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1910 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1918 ## ----------------- ##
1919 ## Output variables. ##
1920 ## ----------------- ##
1923 for ac_var in $ac_subst_vars
1925 eval ac_val=\$$ac_var
1927 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1929 $as_echo "$ac_var='\''$ac_val'\''"
1933 if test -n "$ac_subst_files"; then
1935 ## ------------------- ##
1936 ## File substitutions. ##
1937 ## ------------------- ##
1940 for ac_var in $ac_subst_files
1942 eval ac_val=\$$ac_var
1944 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1946 $as_echo "$ac_var='\''$ac_val'\''"
1951 if test -s confdefs.h; then
1961 test "$ac_signal" != 0 &&
1962 $as_echo "$as_me: caught signal $ac_signal"
1963 $as_echo "$as_me: exit $exit_status"
1965 rm -f core *.core core.conftest.* &&
1966 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1969 for ac_signal in 1 2 13 15; do
1970 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1974 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1975 rm -f -r conftest* confdefs.h
1977 # Predefined preprocessor variables.
1979 cat >>confdefs.h <<_ACEOF
1980 #define PACKAGE_NAME "$PACKAGE_NAME"
1984 cat >>confdefs.h <<_ACEOF
1985 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1994 cat >>confdefs.h <<_ACEOF
1995 #define PACKAGE_STRING "$PACKAGE_STRING"
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2004 # Let the site file select an alternate cache file if it wants to.
2005 # Prefer an explicitly selected file to automatically selected ones.
2008 if test -n "$CONFIG_SITE"; then
2009 ac_site_file1=$CONFIG_SITE
2010 elif test "x$prefix" != xNONE; then
2011 ac_site_file1=$prefix/share/config.site
2012 ac_site_file2=$prefix/etc/config.site
2014 ac_site_file1=$ac_default_prefix/share/config.site
2015 ac_site_file2=$ac_default_prefix/etc/config.site
2017 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2019 test "x$ac_site_file" = xNONE && continue
2020 if test -r "$ac_site_file"; then
2021 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2022 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2023 sed 's/^/| /' "$ac_site_file" >&5
2028 if test -r "$cache_file"; then
2029 # Some versions of bash will fail to source /dev/null (special
2030 # files actually), so we avoid doing that.
2031 if test -f "$cache_file"; then
2032 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2033 $as_echo "$as_me: loading cache $cache_file" >&6;}
2035 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2036 *) . "./$cache_file";;
2040 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2041 $as_echo "$as_me: creating cache $cache_file" >&6;}
2045 # Check that the precious variables saved in the cache have kept the same
2047 ac_cache_corrupted=false
2048 for ac_var in $ac_precious_vars; do
2049 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2050 eval ac_new_set=\$ac_env_${ac_var}_set
2051 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2052 eval ac_new_val=\$ac_env_${ac_var}_value
2053 case $ac_old_set,$ac_new_set in
2055 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2056 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2057 ac_cache_corrupted=: ;;
2059 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2060 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2061 ac_cache_corrupted=: ;;
2064 if test "x$ac_old_val" != "x$ac_new_val"; then
2065 # differences in whitespace do not lead to failure.
2066 ac_old_val_w=`echo x $ac_old_val`
2067 ac_new_val_w=`echo x $ac_new_val`
2068 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2069 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2070 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2071 ac_cache_corrupted=:
2073 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2074 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2075 eval $ac_var=\$ac_old_val
2077 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2078 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2079 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2080 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2083 # Pass precious variables to config.status.
2084 if test "$ac_new_set" = set; then
2086 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 *) ac_arg=$ac_var=$ac_new_val ;;
2089 case " $ac_configure_args " in
2090 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2091 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2095 if $ac_cache_corrupted; then
2096 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2098 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2099 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2100 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2101 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2102 { (exit 1); exit 1; }; }
2122 ac_cpp='$CPP $CPPFLAGS'
2123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2128 am__api_version='1.11'
2131 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2132 if test -f "$ac_dir/install-sh"; then
2134 ac_install_sh="$ac_aux_dir/install-sh -c"
2136 elif test -f "$ac_dir/install.sh"; then
2138 ac_install_sh="$ac_aux_dir/install.sh -c"
2140 elif test -f "$ac_dir/shtool"; then
2142 ac_install_sh="$ac_aux_dir/shtool install -c"
2146 if test -z "$ac_aux_dir"; then
2147 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2148 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2149 { (exit 1); exit 1; }; }
2152 # These three variables are undocumented and unsupported,
2153 # and are intended to be withdrawn in a future Autoconf release.
2154 # They can cause serious problems if a builder's source tree is in a directory
2155 # whose full name contains unusual characters.
2156 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2157 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2158 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2161 # Find a good install program. We prefer a C program (faster),
2162 # so one script is as good as another. But avoid the broken or
2163 # incompatible versions:
2164 # SysV /etc/install, /usr/sbin/install
2165 # SunOS /usr/etc/install
2166 # IRIX /sbin/install
2168 # AmigaOS /C/install, which installs bootblocks on floppy discs
2169 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2170 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2171 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2172 # OS/2's system install, which has a completely different semantic
2173 # ./install, which can be erroneously created by make from ./install.sh.
2174 # Reject install programs that cannot install multiple files.
2175 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2176 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2177 if test -z "$INSTALL"; then
2178 if test "${ac_cv_path_install+set}" = set; then
2179 $as_echo_n "(cached) " >&6
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 test -z "$as_dir" && as_dir=.
2186 # Account for people who put trailing slashes in PATH elements.
2188 ./ | .// | /cC/* | \
2189 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2190 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2193 # OSF1 and SCO ODT 3.0 have their own names for install.
2194 # Don't use installbsd from OSF since it installs stuff as root
2196 for ac_prog in ginstall scoinst install; do
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2199 if test $ac_prog = install &&
2200 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2201 # AIX install. It has an incompatible calling convention.
2203 elif test $ac_prog = install &&
2204 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2205 # program-specific install script used by HP pwplus--don't use.
2208 rm -rf conftest.one conftest.two conftest.dir
2209 echo one > conftest.one
2210 echo two > conftest.two
2212 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2213 test -s conftest.one && test -s conftest.two &&
2214 test -s conftest.dir/conftest.one &&
2215 test -s conftest.dir/conftest.two
2217 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2230 rm -rf conftest.one conftest.two conftest.dir
2233 if test "${ac_cv_path_install+set}" = set; then
2234 INSTALL=$ac_cv_path_install
2236 # As a last resort, use the slow shell script. Don't cache a
2237 # value for INSTALL within a source directory, because that will
2238 # break other packages using the cache if that directory is
2239 # removed, or if the value is a relative name.
2240 INSTALL=$ac_install_sh
2243 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2244 $as_echo "$INSTALL" >&6; }
2246 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2247 # It thinks the first close brace ends the variable substitution.
2248 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2250 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2252 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2254 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2255 $as_echo_n "checking whether build environment is sane... " >&6; }
2258 echo timestamp > conftest.file
2259 # Reject unsafe characters in $srcdir or the absolute working directory
2260 # name. Accept space and tab only in the latter.
2264 *[\\\"\#\$\&\'\`$am_lf]*)
2265 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2266 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2267 { (exit 1); exit 1; }; };;
2270 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2271 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2272 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2273 { (exit 1); exit 1; }; };;
2276 # Do `set' in a subshell so we don't clobber the current shell's
2277 # arguments. Must try -L first in case configure is actually a
2278 # symlink; some systems play weird games with the mod time of symlinks
2279 # (eg FreeBSD returns the mod time of the symlink's containing
2282 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2283 if test "$*" = "X"; then
2285 set X `ls -t "$srcdir/configure" conftest.file`
2288 if test "$*" != "X $srcdir/configure conftest.file" \
2289 && test "$*" != "X conftest.file $srcdir/configure"; then
2291 # If neither matched, then we have a broken ls. This can happen
2292 # if, for instance, CONFIG_SHELL is bash and it inherits a
2293 # broken ls alias from the environment. This has actually
2294 # happened. Such a system could not be considered "sane".
2295 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2296 alias in your environment" >&5
2297 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2298 alias in your environment" >&2;}
2299 { (exit 1); exit 1; }; }
2302 test "$2" = conftest.file
2308 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2309 Check your system clock" >&5
2310 $as_echo "$as_me: error: newly created file is older than distributed files!
2311 Check your system clock" >&2;}
2312 { (exit 1); exit 1; }; }
2314 { $as_echo "$as_me:$LINENO: result: yes" >&5
2315 $as_echo "yes" >&6; }
2316 test "$program_prefix" != NONE &&
2317 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2318 # Use a double $ so make ignores it.
2319 test "$program_suffix" != NONE &&
2320 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2321 # Double any \ or $.
2322 # By default was `s,x,x', remove it if useless.
2323 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2324 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2326 # expand $ac_aux_dir to an absolute path
2327 am_aux_dir=`cd $ac_aux_dir && pwd`
2329 if test x"${MISSING+set}" != xset; then
2332 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2334 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2337 # Use eval to expand $SHELL
2338 if eval "$MISSING --run true"; then
2339 am_missing_run="$MISSING --run "
2342 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2343 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2346 if test x"${install_sh}" != xset; then
2349 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2351 install_sh="\${SHELL} $am_aux_dir/install-sh"
2355 # Installed binaries are usually stripped using `strip' when the user
2356 # run `make install-strip'. However `strip' might not be the right
2357 # tool to use in cross-compilation environments, therefore Automake
2358 # will honor the `STRIP' environment variable to overrule this program.
2359 if test "$cross_compiling" != no; then
2360 if test -n "$ac_tool_prefix"; then
2361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2362 set dummy ${ac_tool_prefix}strip; ac_word=$2
2363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 $as_echo_n "checking for $ac_word... " >&6; }
2365 if test "${ac_cv_prog_STRIP+set}" = set; then
2366 $as_echo_n "(cached) " >&6
2368 if test -n "$STRIP"; then
2369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2378 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 STRIP=$ac_cv_prog_STRIP
2389 if test -n "$STRIP"; then
2390 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2391 $as_echo "$STRIP" >&6; }
2393 { $as_echo "$as_me:$LINENO: result: no" >&5
2394 $as_echo "no" >&6; }
2399 if test -z "$ac_cv_prog_STRIP"; then
2401 # Extract the first word of "strip", so it can be a program name with args.
2402 set dummy strip; ac_word=$2
2403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 $as_echo_n "checking for $ac_word... " >&6; }
2405 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2406 $as_echo_n "(cached) " >&6
2408 if test -n "$ac_ct_STRIP"; then
2409 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418 ac_cv_prog_ac_ct_STRIP="strip"
2419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2429 if test -n "$ac_ct_STRIP"; then
2430 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2431 $as_echo "$ac_ct_STRIP" >&6; }
2433 { $as_echo "$as_me:$LINENO: result: no" >&5
2434 $as_echo "no" >&6; }
2437 if test "x$ac_ct_STRIP" = x; then
2440 case $cross_compiling:$ac_tool_warned in
2442 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2444 ac_tool_warned=yes ;;
2449 STRIP="$ac_cv_prog_STRIP"
2453 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2455 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2456 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2457 if test -z "$MKDIR_P"; then
2458 if test "${ac_cv_path_mkdir+set}" = set; then
2459 $as_echo_n "(cached) " >&6
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2465 test -z "$as_dir" && as_dir=.
2466 for ac_prog in mkdir gmkdir; do
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2469 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2470 'mkdir (GNU coreutils) '* | \
2471 'mkdir (coreutils) '* | \
2472 'mkdir (fileutils) '4.1*)
2473 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2483 if test "${ac_cv_path_mkdir+set}" = set; then
2484 MKDIR_P="$ac_cv_path_mkdir -p"
2486 # As a last resort, use the slow shell script. Don't cache a
2487 # value for MKDIR_P within a source directory, because that will
2488 # break other packages using the cache if that directory is
2489 # removed, or if the value is a relative name.
2490 test -d ./--version && rmdir ./--version
2491 MKDIR_P="$ac_install_sh -d"
2494 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2495 $as_echo "$MKDIR_P" >&6; }
2499 [\\/$]* | ?:[\\/]*) ;;
2500 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2503 for ac_prog in gawk mawk nawk awk
2505 # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy $ac_prog; ac_word=$2
2507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_AWK+set}" = set; then
2510 $as_echo_n "(cached) " >&6
2512 if test -n "$AWK"; then
2513 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_AWK="$ac_prog"
2523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 if test -n "$AWK"; then
2534 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2535 $as_echo "$AWK" >&6; }
2537 { $as_echo "$as_me:$LINENO: result: no" >&5
2538 $as_echo "no" >&6; }
2542 test -n "$AWK" && break
2545 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2546 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2548 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2549 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2550 $as_echo_n "(cached) " >&6
2552 cat >conftest.make <<\_ACEOF
2555 @echo '@@@%%%=$(MAKE)=@@@%%%'
2557 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2558 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2560 eval ac_cv_prog_make_${ac_make}_set=yes;;
2562 eval ac_cv_prog_make_${ac_make}_set=no;;
2566 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2567 { $as_echo "$as_me:$LINENO: result: yes" >&5
2568 $as_echo "yes" >&6; }
2571 { $as_echo "$as_me:$LINENO: result: no" >&5
2572 $as_echo "no" >&6; }
2573 SET_MAKE="MAKE=${MAKE-make}"
2576 rm -rf .tst 2>/dev/null
2577 mkdir .tst 2>/dev/null
2578 if test -d .tst; then
2583 rmdir .tst 2>/dev/null
2585 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2586 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2587 # is not polluted with repeated "-I."
2588 am__isrc=' -I$(srcdir)'
2589 # test to see if srcdir already configured
2590 if test -f $srcdir/config.status; then
2591 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2592 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2593 { (exit 1); exit 1; }; }
2597 # test whether we have cygpath
2598 if test -z "$CYGPATH_W"; then
2599 if (cygpath --version) >/dev/null 2>/dev/null; then
2600 CYGPATH_W='cygpath -w'
2607 # Define the identity of the package.
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE "$PACKAGE"
2617 cat >>confdefs.h <<_ACEOF
2618 #define VERSION "$VERSION"
2621 # Some tools Automake needs.
2623 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2626 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2629 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2632 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2635 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2637 # We need awk for the "check" target. The system "awk" is bad on
2639 # Always define AMTAR for backward compatibility.
2641 AMTAR=${AMTAR-"${am_missing_run}tar"}
2643 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2649 ac_config_headers="$ac_config_headers config.h"
2652 DEPDIR="${am__leading_dot}deps"
2654 ac_config_commands="$ac_config_commands depfiles"
2657 am_make=${MAKE-make}
2658 cat > confinc << 'END'
2660 @echo this is the am__doit target
2663 # If we don't find an include directive, just comment out the code.
2664 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2665 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2669 # First try GNU make style include.
2670 echo "include confinc" > confmf
2671 # Ignore all kinds of additional output from `make'.
2672 case `$am_make -s -f confmf 2> /dev/null` in #(
2673 *the\ am__doit\ target*)
2679 # Now try BSD make style include.
2680 if test "$am__include" = "#"; then
2681 echo '.include "confinc"' > confmf
2682 case `$am_make -s -f confmf 2> /dev/null` in #(
2683 *the\ am__doit\ target*)
2684 am__include=.include
2692 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2693 $as_echo "$_am_result" >&6; }
2694 rm -f confinc confmf
2696 # Check whether --enable-dependency-tracking was given.
2697 if test "${enable_dependency_tracking+set}" = set; then
2698 enableval=$enable_dependency_tracking;
2701 if test "x$enable_dependency_tracking" != xno; then
2702 am_depcomp="$ac_aux_dir/depcomp"
2705 if test "x$enable_dependency_tracking" != xno; then
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 if test -n "$CC"; then
2749 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2750 $as_echo "$CC" >&6; }
2752 { $as_echo "$as_me:$LINENO: result: no" >&5
2753 $as_echo "no" >&6; }
2758 if test -z "$ac_cv_prog_CC"; then
2760 # Extract the first word of "gcc", so it can be a program name with args.
2761 set dummy gcc; ac_word=$2
2762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765 $as_echo_n "(cached) " >&6
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_ac_ct_CC="gcc"
2778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 $as_echo "$ac_ct_CC" >&6; }
2792 { $as_echo "$as_me:$LINENO: result: no" >&5
2793 $as_echo "no" >&6; }
2796 if test "x$ac_ct_CC" = x; then
2799 case $cross_compiling:$ac_tool_warned in
2801 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2811 if test -z "$CC"; then
2812 if test -n "$ac_tool_prefix"; then
2813 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2814 set dummy ${ac_tool_prefix}cc; ac_word=$2
2815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_CC+set}" = set; then
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_CC="${ac_tool_prefix}cc"
2831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 if test -n "$CC"; then
2842 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2845 { $as_echo "$as_me:$LINENO: result: no" >&5
2846 $as_echo "no" >&6; }
2852 if test -z "$CC"; then
2853 # Extract the first word of "cc", so it can be a program name with args.
2854 set dummy cc; ac_word=$2
2855 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if test "${ac_cv_prog_CC+set}" = set; then
2858 $as_echo_n "(cached) " >&6
2860 if test -n "$CC"; then
2861 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2872 ac_prog_rejected=yes
2876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test $ac_prog_rejected = yes; then
2884 # We found a bogon in the path, so make sure we never use it.
2885 set dummy $ac_cv_prog_CC
2887 if test $# != 0; then
2888 # We chose a different compiler from the bogus one.
2889 # However, it has the same basename, so the bogon will be chosen
2890 # first if we set CC to just the basename; use the full file name.
2892 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2898 if test -n "$CC"; then
2899 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2902 { $as_echo "$as_me:$LINENO: result: no" >&5
2903 $as_echo "no" >&6; }
2908 if test -z "$CC"; then
2909 if test -n "$ac_tool_prefix"; then
2910 for ac_prog in cl.exe
2912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if test "${ac_cv_prog_CC+set}" = set; then
2917 $as_echo_n "(cached) " >&6
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2930 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 if test -n "$CC"; then
2941 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2942 $as_echo "$CC" >&6; }
2944 { $as_echo "$as_me:$LINENO: result: no" >&5
2945 $as_echo "no" >&6; }
2949 test -n "$CC" && break
2952 if test -z "$CC"; then
2954 for ac_prog in cl.exe
2956 # Extract the first word of "$ac_prog", so it can be a program name with args.
2957 set dummy $ac_prog; ac_word=$2
2958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$ac_ct_CC"; then
2964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_ac_ct_CC="$ac_prog"
2974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984 if test -n "$ac_ct_CC"; then
2985 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2986 $as_echo "$ac_ct_CC" >&6; }
2988 { $as_echo "$as_me:$LINENO: result: no" >&5
2989 $as_echo "no" >&6; }
2993 test -n "$ac_ct_CC" && break
2996 if test "x$ac_ct_CC" = x; then
2999 case $cross_compiling:$ac_tool_warned in
3001 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3012 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3015 See \`config.log' for more details." >&5
3016 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3017 See \`config.log' for more details." >&2;}
3018 { (exit 1); exit 1; }; }; }
3020 # Provide some information about the compiler.
3021 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3024 { (ac_try="$ac_compiler --version >&5"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3030 $as_echo "$ac_try_echo") >&5
3031 (eval "$ac_compiler --version >&5") 2>&5
3033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }
3035 { (ac_try="$ac_compiler -v >&5"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3041 $as_echo "$ac_try_echo") >&5
3042 (eval "$ac_compiler -v >&5") 2>&5
3044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }
3046 { (ac_try="$ac_compiler -V >&5"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3052 $as_echo "$ac_try_echo") >&5
3053 (eval "$ac_compiler -V >&5") 2>&5
3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }
3058 cat >conftest.$ac_ext <<_ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3073 ac_clean_files_save=$ac_clean_files
3074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3075 # Try to create an executable without -o first, disregard a.out.
3076 # It will help us diagnose broken compilers, and finding out an intuition
3078 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3079 $as_echo_n "checking for C compiler default output file name... " >&6; }
3080 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3082 # The possible output files:
3083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3086 for ac_file in $ac_files
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3095 if { (ac_try="$ac_link_default"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3101 $as_echo "$ac_try_echo") >&5
3102 (eval "$ac_link_default") 2>&5
3104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; then
3106 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3108 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3109 # so that the user can short-circuit this test for compilers unknown to
3111 for ac_file in $ac_files ''
3113 test -f "$ac_file" || continue
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3118 # We found the default executable, but exeext='' is most
3122 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3124 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3126 # We set ac_cv_exeext here because the later test for it is not
3127 # safe: cross compilers may not add the suffix if given an `-o'
3128 # argument, so we may need to know it at that point already.
3129 # Even if this section looks crufty: it has the advantage of
3136 test "$ac_cv_exeext" = no && ac_cv_exeext=
3142 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3143 $as_echo "$ac_file" >&6; }
3144 if test -z "$ac_file"; then
3145 $as_echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3151 See \`config.log' for more details." >&5
3152 $as_echo "$as_me: error: C compiler cannot create executables
3153 See \`config.log' for more details." >&2;}
3154 { (exit 77); exit 77; }; }; }
3157 ac_exeext=$ac_cv_exeext
3159 # Check that the compiler produces executables we can run. If not, either
3160 # the compiler is broken, or we cross compile.
3161 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3162 $as_echo_n "checking whether the C compiler works... " >&6; }
3163 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3164 # If not cross compiling, check that we can run a simple program.
3165 if test "$cross_compiling" != yes; then
3166 if { ac_try='./$ac_file'
3167 { (case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3172 $as_echo "$ac_try_echo") >&5
3173 (eval "$ac_try") 2>&5
3175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3179 if test "$cross_compiling" = maybe; then
3182 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3185 If you meant to cross compile, use \`--host'.
3186 See \`config.log' for more details." >&5
3187 $as_echo "$as_me: error: cannot run C compiled programs.
3188 If you meant to cross compile, use \`--host'.
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }; }
3194 { $as_echo "$as_me:$LINENO: result: yes" >&5
3195 $as_echo "yes" >&6; }
3197 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3198 ac_clean_files=$ac_clean_files_save
3199 # Check that the compiler produces executables we can run. If not, either
3200 # the compiler is broken, or we cross compile.
3201 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3202 $as_echo_n "checking whether we are cross compiling... " >&6; }
3203 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3204 $as_echo "$cross_compiling" >&6; }
3206 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3207 $as_echo_n "checking for suffix of executables... " >&6; }
3208 if { (ac_try="$ac_link"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3214 $as_echo "$ac_try_echo") >&5
3215 (eval "$ac_link") 2>&5
3217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; then
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." >&5
3237 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3238 See \`config.log' for more details." >&2;}
3239 { (exit 1); exit 1; }; }; }
3242 rm -f conftest$ac_cv_exeext
3243 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3249 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3250 $as_echo_n "checking for suffix of object files... " >&6; }
3251 if test "${ac_cv_objext+set}" = set; then
3252 $as_echo_n "(cached) " >&6
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3269 rm -f conftest.o conftest.obj
3270 if { (ac_try="$ac_compile"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276 $as_echo "$ac_try_echo") >&5
3277 (eval "$ac_compile") 2>&5
3279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; then
3281 for ac_file in conftest.o conftest.obj conftest.*; do
3282 test -f "$ac_file" || continue;
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3285 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3290 $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3296 See \`config.log' for more details." >&5
3297 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3298 See \`config.log' for more details." >&2;}
3299 { (exit 1); exit 1; }; }; }
3302 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3305 $as_echo "$ac_cv_objext" >&6; }
3306 OBJEXT=$ac_cv_objext
3308 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3309 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3310 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3311 $as_echo_n "(cached) " >&6
3313 cat >conftest.$ac_ext <<_ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3331 rm -f conftest.$ac_objext
3332 if { (ac_try="$ac_compile"
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338 $as_echo "$ac_try_echo") >&5
3339 (eval "$ac_compile") 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } && {
3346 test -z "$ac_c_werror_flag" ||
3347 test ! -s conftest.err
3348 } && test -s conftest.$ac_objext; then
3351 $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3361 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3362 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3363 if test $ac_compiler_gnu = yes; then
3368 ac_test_CFLAGS=${CFLAGS+set}
3369 ac_save_CFLAGS=$CFLAGS
3370 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3371 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3372 if test "${ac_cv_prog_cc_g+set}" = set; then
3373 $as_echo_n "(cached) " >&6
3375 ac_save_c_werror_flag=$ac_c_werror_flag
3376 ac_c_werror_flag=yes
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3394 rm -f conftest.$ac_objext
3395 if { (ac_try="$ac_compile"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3401 $as_echo "$ac_try_echo") >&5
3402 (eval "$ac_compile") 2>conftest.er1
3404 grep -v '^ *+' conftest.er1 >conftest.err
3406 cat conftest.err >&5
3407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } && {
3409 test -z "$ac_c_werror_flag" ||
3410 test ! -s conftest.err
3411 } && test -s conftest.$ac_objext; then
3414 $as_echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3440 $as_echo "$ac_try_echo") >&5
3441 (eval "$ac_compile") 2>conftest.er1
3443 grep -v '^ *+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 ac_c_werror_flag=$ac_save_c_werror_flag
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481 (eval "$ac_compile") 2>conftest.er1
3483 grep -v '^ *+' conftest.er1 >conftest.err
3485 cat conftest.err >&5
3486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } && {
3488 test -z "$ac_c_werror_flag" ||
3489 test ! -s conftest.err
3490 } && test -s conftest.$ac_objext; then
3493 $as_echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_c_werror_flag=$ac_save_c_werror_flag
3508 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3509 $as_echo "$ac_cv_prog_cc_g" >&6; }
3510 if test "$ac_test_CFLAGS" = set; then
3511 CFLAGS=$ac_save_CFLAGS
3512 elif test $ac_cv_prog_cc_g = yes; then
3513 if test "$GCC" = yes; then
3519 if test "$GCC" = yes; then
3525 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3526 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3527 if test "${ac_cv_prog_cc_c89+set}" = set; then
3528 $as_echo_n "(cached) " >&6
3530 ac_cv_prog_cc_c89=no
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3540 #include <sys/types.h>
3541 #include <sys/stat.h>
3542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3543 struct buf { int x; };
3544 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3545 static char *e (p, i)
3551 static char *f (char * (*g) (char **, int), char **p, ...)
3556 s = g (p, va_arg (v,int));
3561 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3562 function prototypes and stuff, but not '\xHH' hex character constants.
3563 These don't provoke an error unfortunately, instead are silently treated
3564 as 'x'. The following induces an error, until -std is added to get
3565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3566 array size at least. It's necessary to write '\x00'==0 to get something
3567 that's true only with -std. */
3568 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3570 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3571 inside strings and character constants. */
3573 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3575 int test (int i, double x);
3576 struct s1 {int (*f) (int a);};
3577 struct s2 {int (*f) (double a);};
3578 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3584 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3589 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592 CC="$ac_save_CC $ac_arg"
3593 rm -f conftest.$ac_objext
3594 if { (ac_try="$ac_compile"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600 $as_echo "$ac_try_echo") >&5
3601 (eval "$ac_compile") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest.$ac_objext; then
3611 ac_cv_prog_cc_c89=$ac_arg
3613 $as_echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3619 rm -f core conftest.err conftest.$ac_objext
3620 test "x$ac_cv_prog_cc_c89" != "xno" && break
3622 rm -f conftest.$ac_ext
3627 case "x$ac_cv_prog_cc_c89" in
3629 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3630 $as_echo "none needed" >&6; } ;;
3632 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3633 $as_echo "unsupported" >&6; } ;;
3635 CC="$CC $ac_cv_prog_cc_c89"
3636 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3637 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3642 ac_cpp='$CPP $CPPFLAGS'
3643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 depcc="$CC" am_compiler_list=
3649 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3650 $as_echo_n "checking dependency style of $depcc... " >&6; }
3651 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3652 $as_echo_n "(cached) " >&6
3654 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3655 # We make a subdir and do the tests there. Otherwise we can end up
3656 # making bogus files that we don't know about and never remove. For
3657 # instance it was reported that on HP-UX the gcc test will end up
3658 # making a dummy file named `D' -- because `-MD' means `put the output
3661 # Copy depcomp to subdir because otherwise we won't find it if we're
3662 # using a relative directory.
3663 cp "$am_depcomp" conftest.dir
3665 # We will build objects and dependencies in a subdirectory because
3666 # it helps to detect inapplicable dependency modes. For instance
3667 # both Tru64's cc and ICC support -MD to output dependencies as a
3668 # side effect of compilation, but ICC will put the dependencies in
3669 # the current directory while Tru64 will put them in the object
3673 am_cv_CC_dependencies_compiler_type=none
3674 if test "$am_compiler_list" = ""; then
3675 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3678 case " $depcc " in #(
3679 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3682 for depmode in $am_compiler_list; do
3683 # Setup a source with many dependencies, because some compilers
3684 # like to wrap large dependency lists on column 80 (with \), and
3685 # we should not choose a depcomp mode which is confused by this.
3687 # We need to recreate these files for each test, as the compiler may
3688 # overwrite some of them when testing with obscure command lines.
3689 # This happens at least with the AIX C compiler.
3691 for i in 1 2 3 4 5 6; do
3692 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3693 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3694 # Solaris 8's {/usr,}/bin/sh.
3695 touch sub/conftst$i.h
3697 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3699 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3700 # mode. It turns out that the SunPro C++ compiler does not properly
3701 # handle `-M -o', and we need to detect this. Also, some Intel
3702 # versions had trouble with output in subdirs
3703 am__obj=sub/conftest.${OBJEXT-o}
3704 am__minus_obj="-o $am__obj"
3707 # This depmode causes a compiler race in universal mode.
3708 test "$am__universal" = false || continue
3711 # after this tag, mechanisms are not by side-effect, so they'll
3712 # only be used when explicitly requested
3713 if test "x$enable_dependency_tracking" = xyes; then
3719 msvisualcpp | msvcmsys)
3720 # This compiler won't grok `-c -o', but also, the minuso test has
3721 # not run yet. These depmodes are late enough in the game, and
3722 # so weak that their functioning should not be impacted.
3723 am__obj=conftest.${OBJEXT-o}
3728 if depmode=$depmode \
3729 source=sub/conftest.c object=$am__obj \
3730 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3731 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3732 >/dev/null 2>conftest.err &&
3733 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3734 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3735 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3736 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3737 # icc doesn't choke on unknown options, it will just issue warnings
3738 # or remarks (even with -Werror). So we grep stderr for any message
3739 # that says an option was ignored or not supported.
3740 # When given -MP, icc 7.0 and 7.1 complain thusly:
3741 # icc: Command line warning: ignoring option '-M'; no argument required
3742 # The diagnosis changed in icc 8.0:
3743 # icc: Command line remark: option '-MP' not supported
3744 if (grep 'ignoring option' conftest.err ||
3745 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3746 am_cv_CC_dependencies_compiler_type=$depmode
3755 am_cv_CC_dependencies_compiler_type=none
3759 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3760 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3761 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3764 test "x$enable_dependency_tracking" != xno \
3765 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3767 am__fastdepCC_FALSE='#'
3769 am__fastdepCC_TRUE='#'
3770 am__fastdepCC_FALSE=
3775 { $as_echo "$as_me:$LINENO: checking whether basename is declared" >&5
3776 $as_echo_n "checking whether basename is declared... " >&6; }
3777 if test "${ac_cv_have_decl_basename+set}" = set; then
3778 $as_echo_n "(cached) " >&6
3780 cat >conftest.$ac_ext <<_ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3799 rm -f conftest.$ac_objext
3800 if { (ac_try="$ac_compile"
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3806 $as_echo "$ac_try_echo") >&5
3807 (eval "$ac_compile") 2>conftest.er1
3809 grep -v '^ *+' conftest.er1 >conftest.err
3811 cat conftest.err >&5
3812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } && {
3814 test -z "$ac_c_werror_flag" ||
3815 test ! -s conftest.err
3816 } && test -s conftest.$ac_objext; then
3817 ac_cv_have_decl_basename=yes
3819 $as_echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3822 ac_cv_have_decl_basename=no
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
3828 $as_echo "$ac_cv_have_decl_basename" >&6; }
3829 if test "x$ac_cv_have_decl_basename" = x""yes; then
3831 cat >>confdefs.h <<_ACEOF
3832 #define HAVE_DECL_BASENAME 1
3837 cat >>confdefs.h <<_ACEOF
3838 #define HAVE_DECL_BASENAME 0
3845 if test -n "$ac_tool_prefix"; then
3846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 $as_echo_n "checking for $ac_word... " >&6; }
3850 if test "${ac_cv_prog_RANLIB+set}" = set; then
3851 $as_echo_n "(cached) " >&6
3853 if test -n "$RANLIB"; then
3854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 RANLIB=$ac_cv_prog_RANLIB
3874 if test -n "$RANLIB"; then
3875 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3876 $as_echo "$RANLIB" >&6; }
3878 { $as_echo "$as_me:$LINENO: result: no" >&5
3879 $as_echo "no" >&6; }
3884 if test -z "$ac_cv_prog_RANLIB"; then
3885 ac_ct_RANLIB=$RANLIB
3886 # Extract the first word of "ranlib", so it can be a program name with args.
3887 set dummy ranlib; ac_word=$2
3888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3891 $as_echo_n "(cached) " >&6
3893 if test -n "$ac_ct_RANLIB"; then
3894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3903 ac_cv_prog_ac_ct_RANLIB="ranlib"
3904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3914 if test -n "$ac_ct_RANLIB"; then
3915 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3916 $as_echo "$ac_ct_RANLIB" >&6; }
3918 { $as_echo "$as_me:$LINENO: result: no" >&5
3919 $as_echo "no" >&6; }
3922 if test "x$ac_ct_RANLIB" = x; then
3925 case $cross_compiling:$ac_tool_warned in
3927 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3929 ac_tool_warned=yes ;;
3931 RANLIB=$ac_ct_RANLIB
3934 RANLIB="$ac_cv_prog_RANLIB"
3939 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3940 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3945 macro_version='2.2.6b'
3946 macro_revision='1.3017'
3960 ltmain="$ac_aux_dir/ltmain.sh"
3962 # Make sure we can run config.sub.
3963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3964 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3965 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3966 { (exit 1); exit 1; }; }
3968 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3969 $as_echo_n "checking build system type... " >&6; }
3970 if test "${ac_cv_build+set}" = set; then
3971 $as_echo_n "(cached) " >&6
3973 ac_build_alias=$build_alias
3974 test "x$ac_build_alias" = x &&
3975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3976 test "x$ac_build_alias" = x &&
3977 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3978 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3979 { (exit 1); exit 1; }; }
3980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3981 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3982 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3983 { (exit 1); exit 1; }; }
3986 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3987 $as_echo "$ac_cv_build" >&6; }
3988 case $ac_cv_build in
3990 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3991 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3992 { (exit 1); exit 1; }; };;
3995 ac_save_IFS=$IFS; IFS='-'
4001 # Remember, the first character of IFS is used to create $*,
4002 # except with old shells:
4005 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4008 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4009 $as_echo_n "checking host system type... " >&6; }
4010 if test "${ac_cv_host+set}" = set; then
4011 $as_echo_n "(cached) " >&6
4013 if test "x$host_alias" = x; then
4014 ac_cv_host=$ac_cv_build
4016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4017 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4018 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4019 { (exit 1); exit 1; }; }
4023 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4024 $as_echo "$ac_cv_host" >&6; }
4027 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4028 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4029 { (exit 1); exit 1; }; };;
4032 ac_save_IFS=$IFS; IFS='-'
4038 # Remember, the first character of IFS is used to create $*,
4039 # except with old shells:
4042 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4045 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4047 if test "${ac_cv_path_SED+set}" = set; then
4048 $as_echo_n "(cached) " >&6
4050 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4051 for ac_i in 1 2 3 4 5 6 7; do
4052 ac_script="$ac_script$as_nl$ac_script"
4054 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4055 $as_unset ac_script || ac_script=
4056 if test -z "$SED"; then
4057 ac_path_SED_found=false
4058 # Loop through the user's path and test for each of PROGNAME-LIST
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 test -z "$as_dir" && as_dir=.
4064 for ac_prog in sed gsed; do
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4067 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4068 # Check for GNU ac_path_SED and select it if it is found.
4069 # Check for GNU $ac_path_SED
4070 case `"$ac_path_SED" --version 2>&1` in
4072 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4075 $as_echo_n 0123456789 >"conftest.in"
4078 cat "conftest.in" "conftest.in" >"conftest.tmp"
4079 mv "conftest.tmp" "conftest.in"
4080 cp "conftest.in" "conftest.nl"
4081 $as_echo '' >> "conftest.nl"
4082 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4084 ac_count=`expr $ac_count + 1`
4085 if test $ac_count -gt ${ac_path_SED_max-0}; then
4086 # Best one so far, save it but keep looking for a better one
4087 ac_cv_path_SED="$ac_path_SED"
4088 ac_path_SED_max=$ac_count
4090 # 10*(2^10) chars as input seems more than enough
4091 test $ac_count -gt 10 && break
4093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4096 $ac_path_SED_found && break 3
4101 if test -z "$ac_cv_path_SED"; then
4102 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4103 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4104 { (exit 1); exit 1; }; }
4111 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4112 $as_echo "$ac_cv_path_SED" >&6; }
4113 SED="$ac_cv_path_SED"
4116 test -z "$SED" && SED=sed
4117 Xsed="$SED -e 1s/^X//"
4129 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4130 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4131 if test "${ac_cv_path_GREP+set}" = set; then
4132 $as_echo_n "(cached) " >&6
4134 if test -z "$GREP"; then
4135 ac_path_GREP_found=false
4136 # Loop through the user's path and test for each of PROGNAME-LIST
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4141 test -z "$as_dir" && as_dir=.
4142 for ac_prog in grep ggrep; do
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4145 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4146 # Check for GNU ac_path_GREP and select it if it is found.
4147 # Check for GNU $ac_path_GREP
4148 case `"$ac_path_GREP" --version 2>&1` in
4150 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_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 'GREP' >> "conftest.nl"
4160 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "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_GREP_max-0}; then
4164 # Best one so far, save it but keep looking for a better one
4165 ac_cv_path_GREP="$ac_path_GREP"
4166 ac_path_GREP_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_GREP_found && break 3
4179 if test -z "$ac_cv_path_GREP"; then
4180 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4181 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4182 { (exit 1); exit 1; }; }
4185 ac_cv_path_GREP=$GREP
4189 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4190 $as_echo "$ac_cv_path_GREP" >&6; }
4191 GREP="$ac_cv_path_GREP"
4194 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4195 $as_echo_n "checking for egrep... " >&6; }
4196 if test "${ac_cv_path_EGREP+set}" = set; then
4197 $as_echo_n "(cached) " >&6
4199 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4200 then ac_cv_path_EGREP="$GREP -E"
4202 if test -z "$EGREP"; then
4203 ac_path_EGREP_found=false
4204 # Loop through the user's path and test for each of PROGNAME-LIST
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209 test -z "$as_dir" && as_dir=.
4210 for ac_prog in egrep; do
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4213 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4214 # Check for GNU ac_path_EGREP and select it if it is found.
4215 # Check for GNU $ac_path_EGREP
4216 case `"$ac_path_EGREP" --version 2>&1` in
4218 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4221 $as_echo_n 0123456789 >"conftest.in"
4224 cat "conftest.in" "conftest.in" >"conftest.tmp"
4225 mv "conftest.tmp" "conftest.in"
4226 cp "conftest.in" "conftest.nl"
4227 $as_echo 'EGREP' >> "conftest.nl"
4228 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4230 ac_count=`expr $ac_count + 1`
4231 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4232 # Best one so far, save it but keep looking for a better one
4233 ac_cv_path_EGREP="$ac_path_EGREP"
4234 ac_path_EGREP_max=$ac_count
4236 # 10*(2^10) chars as input seems more than enough
4237 test $ac_count -gt 10 && break
4239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 $ac_path_EGREP_found && break 3
4247 if test -z "$ac_cv_path_EGREP"; then
4248 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4249 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4250 { (exit 1); exit 1; }; }
4253 ac_cv_path_EGREP=$EGREP
4258 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4259 $as_echo "$ac_cv_path_EGREP" >&6; }
4260 EGREP="$ac_cv_path_EGREP"
4263 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4264 $as_echo_n "checking for fgrep... " >&6; }
4265 if test "${ac_cv_path_FGREP+set}" = set; then
4266 $as_echo_n "(cached) " >&6
4268 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4269 then ac_cv_path_FGREP="$GREP -F"
4271 if test -z "$FGREP"; then
4272 ac_path_FGREP_found=false
4273 # Loop through the user's path and test for each of PROGNAME-LIST
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4278 test -z "$as_dir" && as_dir=.
4279 for ac_prog in fgrep; do
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4282 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4283 # Check for GNU ac_path_FGREP and select it if it is found.
4284 # Check for GNU $ac_path_FGREP
4285 case `"$ac_path_FGREP" --version 2>&1` in
4287 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4290 $as_echo_n 0123456789 >"conftest.in"
4293 cat "conftest.in" "conftest.in" >"conftest.tmp"
4294 mv "conftest.tmp" "conftest.in"
4295 cp "conftest.in" "conftest.nl"
4296 $as_echo 'FGREP' >> "conftest.nl"
4297 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4299 ac_count=`expr $ac_count + 1`
4300 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4301 # Best one so far, save it but keep looking for a better one
4302 ac_cv_path_FGREP="$ac_path_FGREP"
4303 ac_path_FGREP_max=$ac_count
4305 # 10*(2^10) chars as input seems more than enough
4306 test $ac_count -gt 10 && break
4308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4311 $ac_path_FGREP_found && break 3
4316 if test -z "$ac_cv_path_FGREP"; then
4317 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4318 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4319 { (exit 1); exit 1; }; }
4322 ac_cv_path_FGREP=$FGREP
4327 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4328 $as_echo "$ac_cv_path_FGREP" >&6; }
4329 FGREP="$ac_cv_path_FGREP"
4332 test -z "$GREP" && GREP=grep
4352 # Check whether --with-gnu-ld was given.
4353 if test "${with_gnu_ld+set}" = set; then
4354 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4360 if test "$GCC" = yes; then
4361 # Check if gcc -print-prog-name=ld gives a path.
4362 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4363 $as_echo_n "checking for ld used by $CC... " >&6; }
4366 # gcc leaves a trailing carriage return which upsets mingw
4367 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4369 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4372 # Accept absolute paths.
4374 re_direlt='/[^/][^/]*/\.\./'
4375 # Canonicalize the pathname of ld
4376 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4377 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4378 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4380 test -z "$LD" && LD="$ac_prog"
4383 # If it fails, then pretend we aren't using GCC.
4387 # If it is relative, then search for the first ld in PATH.
4391 elif test "$with_gnu_ld" = yes; then
4392 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4393 $as_echo_n "checking for GNU ld... " >&6; }
4395 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4396 $as_echo_n "checking for non-GNU ld... " >&6; }
4398 if test "${lt_cv_path_LD+set}" = set; then
4399 $as_echo_n "(cached) " >&6
4401 if test -z "$LD"; then
4402 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4403 for ac_dir in $PATH; do
4405 test -z "$ac_dir" && ac_dir=.
4406 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4407 lt_cv_path_LD="$ac_dir/$ac_prog"
4408 # Check to see if the program is GNU ld. I'd rather use --version,
4409 # but apparently some variants of GNU ld only accept -v.
4410 # Break only if it was the GNU/non-GNU ld that we prefer.
4411 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4412 *GNU* | *'with BFD'*)
4413 test "$with_gnu_ld" != no && break
4416 test "$with_gnu_ld" != yes && break
4423 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4428 if test -n "$LD"; then
4429 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4430 $as_echo "$LD" >&6; }
4432 { $as_echo "$as_me:$LINENO: result: no" >&5
4433 $as_echo "no" >&6; }
4435 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4436 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4437 { (exit 1); exit 1; }; }
4438 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4439 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4440 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4441 $as_echo_n "(cached) " >&6
4443 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4444 case `$LD -v 2>&1 </dev/null` in
4445 *GNU* | *'with BFD'*)
4446 lt_cv_prog_gnu_ld=yes
4449 lt_cv_prog_gnu_ld=no
4453 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4454 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4455 with_gnu_ld=$lt_cv_prog_gnu_ld
4465 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4466 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4467 if test "${lt_cv_path_NM+set}" = set; then
4468 $as_echo_n "(cached) " >&6
4470 if test -n "$NM"; then
4471 # Let the user override the test.
4474 lt_nm_to_check="${ac_tool_prefix}nm"
4475 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4476 lt_nm_to_check="$lt_nm_to_check nm"
4478 for lt_tmp_nm in $lt_nm_to_check; do
4479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4480 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4482 test -z "$ac_dir" && ac_dir=.
4483 tmp_nm="$ac_dir/$lt_tmp_nm"
4484 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4485 # Check to see if the nm accepts a BSD-compat flag.
4486 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4487 # nm: unknown option "B" ignored
4488 # Tru64's nm complains that /dev/null is an invalid object file
4489 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4490 */dev/null* | *'Invalid file or object type'*)
4491 lt_cv_path_NM="$tmp_nm -B"
4495 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4497 lt_cv_path_NM="$tmp_nm -p"
4501 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4502 continue # so that we can try to find one that supports BSD flags
4511 : ${lt_cv_path_NM=no}
4514 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4515 $as_echo "$lt_cv_path_NM" >&6; }
4516 if test "$lt_cv_path_NM" != "no"; then
4519 # Didn't find any BSD compatible name lister, look for dumpbin.
4520 if test -n "$ac_tool_prefix"; then
4521 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4528 $as_echo_n "(cached) " >&6
4530 if test -n "$DUMPBIN"; then
4531 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4541 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 DUMPBIN=$ac_cv_prog_DUMPBIN
4551 if test -n "$DUMPBIN"; then
4552 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4553 $as_echo "$DUMPBIN" >&6; }
4555 { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4560 test -n "$DUMPBIN" && break
4563 if test -z "$DUMPBIN"; then
4564 ac_ct_DUMPBIN=$DUMPBIN
4565 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4567 # Extract the first word of "$ac_prog", so it can be a program name with args.
4568 set dummy $ac_prog; ac_word=$2
4569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4572 $as_echo_n "(cached) " >&6
4574 if test -n "$ac_ct_DUMPBIN"; then
4575 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4595 if test -n "$ac_ct_DUMPBIN"; then
4596 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4597 $as_echo "$ac_ct_DUMPBIN" >&6; }
4599 { $as_echo "$as_me:$LINENO: result: no" >&5
4600 $as_echo "no" >&6; }
4604 test -n "$ac_ct_DUMPBIN" && break
4607 if test "x$ac_ct_DUMPBIN" = x; then
4610 case $cross_compiling:$ac_tool_warned in
4612 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4614 ac_tool_warned=yes ;;
4616 DUMPBIN=$ac_ct_DUMPBIN
4621 if test "$DUMPBIN" != ":"; then
4625 test -z "$NM" && NM=nm
4632 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4633 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4634 if test "${lt_cv_nm_interface+set}" = set; then
4635 $as_echo_n "(cached) " >&6
4637 lt_cv_nm_interface="BSD nm"
4638 echo "int some_variable = 0;" > conftest.$ac_ext
4639 (eval echo "\"\$as_me:4639: $ac_compile\"" >&5)
4640 (eval "$ac_compile" 2>conftest.err)
4641 cat conftest.err >&5
4642 (eval echo "\"\$as_me:4642: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4643 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4644 cat conftest.err >&5
4645 (eval echo "\"\$as_me:4645: output\"" >&5)
4646 cat conftest.out >&5
4647 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4648 lt_cv_nm_interface="MS dumpbin"
4652 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4653 $as_echo "$lt_cv_nm_interface" >&6; }
4655 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4656 $as_echo_n "checking whether ln -s works... " >&6; }
4658 if test "$LN_S" = "ln -s"; then
4659 { $as_echo "$as_me:$LINENO: result: yes" >&5
4660 $as_echo "yes" >&6; }
4662 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4663 $as_echo "no, using $LN_S" >&6; }
4666 # find the maximum length of command line arguments
4667 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4668 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4669 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4670 $as_echo_n "(cached) " >&6
4677 # On DJGPP, this test can blow up pretty badly due to problems in libc
4678 # (any single argument exceeding 2000 bytes causes a buffer overrun
4679 # during glob expansion). Even if it were fixed, the result of this
4680 # check would be larger than it should be.
4681 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4685 # Under GNU Hurd, this test is not required because there is
4686 # no limit to the length of command line arguments.
4687 # Libtool will interpret -1 as no limit whatsoever
4688 lt_cv_sys_max_cmd_len=-1;
4691 cygwin* | mingw* | cegcc*)
4692 # On Win9x/ME, this test blows up -- it succeeds, but takes
4693 # about 5 minutes as the teststring grows exponentially.
4694 # Worse, since 9x/ME are not pre-emptively multitasking,
4695 # you end up with a "frozen" computer, even though with patience
4696 # the test eventually succeeds (with a max line length of 256k).
4697 # Instead, let's just punt: use the minimum linelength reported by
4698 # all of the supported platforms: 8192 (on NT/2K/XP).
4699 lt_cv_sys_max_cmd_len=8192;
4703 # On AmigaOS with pdksh, this test takes hours, literally.
4704 # So we just punt and use a minimum line length of 8192.
4705 lt_cv_sys_max_cmd_len=8192;
4708 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4709 # This has been around since 386BSD, at least. Likely further.
4710 if test -x /sbin/sysctl; then
4711 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4712 elif test -x /usr/sbin/sysctl; then
4713 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4715 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4717 # And add a safety zone
4718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4723 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4724 lt_cv_sys_max_cmd_len=196608
4728 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4729 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4730 # nice to cause kernel panics so lets avoid the loop below.
4731 # First set a reasonable default.
4732 lt_cv_sys_max_cmd_len=16384
4734 if test -x /sbin/sysconfig; then
4735 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4736 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4741 lt_cv_sys_max_cmd_len=102400
4743 sysv5* | sco5v6* | sysv4.2uw2*)
4744 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4745 if test -n "$kargmax"; then
4746 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4748 lt_cv_sys_max_cmd_len=32768
4752 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4753 if test -n "$lt_cv_sys_max_cmd_len"; then
4754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4757 # Make teststring a little bigger before we do anything with it.
4758 # a 1K string should be a reasonable start.
4759 for i in 1 2 3 4 5 6 7 8 ; do
4760 teststring=$teststring$teststring
4762 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4763 # If test is not a shell built-in, we'll probably end up computing a
4764 # maximum length that is only half of the actual maximum length, but
4766 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4767 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4768 test $i != 17 # 1/2 MB should be enough
4771 teststring=$teststring$teststring
4773 # Only check the string length outside the loop.
4774 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4776 # Add a significant safety factor because C++ compilers can tack on
4777 # massive amounts of additional arguments before passing them to the
4778 # linker. It appears as though 1/2 is a usable value.
4779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4786 if test -n $lt_cv_sys_max_cmd_len ; then
4787 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4788 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4790 { $as_echo "$as_me:$LINENO: result: none" >&5
4791 $as_echo "none" >&6; }
4793 max_cmd_len=$lt_cv_sys_max_cmd_len
4804 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4805 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4806 # Try some XSI features
4809 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4811 && eval 'test $(( 1 + 1 )) -eq 2 \
4812 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4814 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4815 $as_echo "$xsi_shell" >&6; }
4818 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4819 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4821 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4823 && lt_shell_append=yes
4824 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4825 $as_echo "$lt_shell_append" >&6; }
4828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4838 # test EBCDIC or ASCII
4839 case `echo X|tr X '\101'` in
4840 A) # ASCII based system
4841 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4842 lt_SP2NL='tr \040 \012'
4843 lt_NL2SP='tr \015\012 \040\040'
4845 *) # EBCDIC based system
4846 lt_SP2NL='tr \100 \n'
4847 lt_NL2SP='tr \r\n \100\100'
4859 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4860 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4861 if test "${lt_cv_ld_reload_flag+set}" = set; then
4862 $as_echo_n "(cached) " >&6
4864 lt_cv_ld_reload_flag='-r'
4866 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4867 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4868 reload_flag=$lt_cv_ld_reload_flag
4869 case $reload_flag in
4871 *) reload_flag=" $reload_flag" ;;
4873 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4876 if test "$GCC" = yes; then
4877 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4892 if test -n "$ac_tool_prefix"; then
4893 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4898 $as_echo_n "(cached) " >&6
4900 if test -n "$OBJDUMP"; then
4901 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4911 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 OBJDUMP=$ac_cv_prog_OBJDUMP
4921 if test -n "$OBJDUMP"; then
4922 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4923 $as_echo "$OBJDUMP" >&6; }
4925 { $as_echo "$as_me:$LINENO: result: no" >&5
4926 $as_echo "no" >&6; }
4931 if test -z "$ac_cv_prog_OBJDUMP"; then
4932 ac_ct_OBJDUMP=$OBJDUMP
4933 # Extract the first word of "objdump", so it can be a program name with args.
4934 set dummy objdump; ac_word=$2
4935 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4938 $as_echo_n "(cached) " >&6
4940 if test -n "$ac_ct_OBJDUMP"; then
4941 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4951 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4961 if test -n "$ac_ct_OBJDUMP"; then
4962 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4963 $as_echo "$ac_ct_OBJDUMP" >&6; }
4965 { $as_echo "$as_me:$LINENO: result: no" >&5
4966 $as_echo "no" >&6; }
4969 if test "x$ac_ct_OBJDUMP" = x; then
4972 case $cross_compiling:$ac_tool_warned in
4974 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4976 ac_tool_warned=yes ;;
4978 OBJDUMP=$ac_ct_OBJDUMP
4981 OBJDUMP="$ac_cv_prog_OBJDUMP"
4984 test -z "$OBJDUMP" && OBJDUMP=objdump
4994 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4995 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4996 if test "${lt_cv_deplibs_check_method+set}" = set; then
4997 $as_echo_n "(cached) " >&6
4999 lt_cv_file_magic_cmd='$MAGIC_CMD'
5000 lt_cv_file_magic_test_file=
5001 lt_cv_deplibs_check_method='unknown'
5002 # Need to set the preceding variable on all platforms that support
5003 # interlibrary dependencies.
5004 # 'none' -- dependencies not supported.
5005 # `unknown' -- same as none, but documents that we really don't know.
5006 # 'pass_all' -- all dependencies passed with no checks.
5007 # 'test_compile' -- check by making test program.
5008 # 'file_magic [[regex]]' -- check by looking for files in library path
5009 # which responds to the $file_magic_cmd with a given extended regex.
5010 # If you have `file' or equivalent on your system and you're not sure
5011 # whether `pass_all' will *always* work, you probably want this one.
5015 lt_cv_deplibs_check_method=pass_all
5019 lt_cv_deplibs_check_method=pass_all
5023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5024 lt_cv_file_magic_cmd='/usr/bin/file -L'
5025 lt_cv_file_magic_test_file=/shlib/libc.so
5029 # func_win32_libid is a shell function defined in ltmain.sh
5030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5031 lt_cv_file_magic_cmd='func_win32_libid'
5035 # Base MSYS/MinGW do not provide the 'file' command needed by
5036 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5037 # unless we find 'file', for example because we are cross-compiling.
5038 if ( file / ) >/dev/null 2>&1; then
5039 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5040 lt_cv_file_magic_cmd='func_win32_libid'
5042 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5043 lt_cv_file_magic_cmd='$OBJDUMP -f'
5048 # use the weaker test based on 'objdump'. See mingw*.
5049 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5050 lt_cv_file_magic_cmd='$OBJDUMP -f'
5053 darwin* | rhapsody*)
5054 lt_cv_deplibs_check_method=pass_all
5057 freebsd* | dragonfly*)
5058 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5061 # Not sure whether the presence of OpenBSD here was a mistake.
5062 # Let's accept both of them until this is cleared up.
5063 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5064 lt_cv_file_magic_cmd=/usr/bin/file
5065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5069 lt_cv_deplibs_check_method=pass_all
5074 lt_cv_deplibs_check_method=pass_all
5077 hpux10.20* | hpux11*)
5078 lt_cv_file_magic_cmd=/usr/bin/file
5081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5082 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5085 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]'
5086 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5090 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5096 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5100 irix5* | irix6* | nonstopux*)
5102 *-32|*"-32 ") libmagic=32-bit;;
5103 *-n32|*"-n32 ") libmagic=N32;;
5104 *-64|*"-64 ") libmagic=64-bit;;
5105 *) libmagic=never-match;;
5107 lt_cv_deplibs_check_method=pass_all
5110 # This must be Linux ELF.
5111 linux* | k*bsd*-gnu)
5112 lt_cv_deplibs_check_method=pass_all
5116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5125 lt_cv_file_magic_cmd=/usr/bin/file
5126 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5130 lt_cv_deplibs_check_method=pass_all
5134 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5141 osf3* | osf4* | osf5*)
5142 lt_cv_deplibs_check_method=pass_all
5146 lt_cv_deplibs_check_method=pass_all
5150 lt_cv_deplibs_check_method=pass_all
5153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5154 lt_cv_deplibs_check_method=pass_all
5158 case $host_vendor in
5160 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]'
5161 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5164 lt_cv_deplibs_check_method=pass_all
5167 lt_cv_file_magic_cmd='/bin/file'
5168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5171 lt_cv_file_magic_cmd='/bin/file'
5172 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5173 lt_cv_file_magic_test_file=/lib/libc.so
5176 lt_cv_deplibs_check_method=pass_all
5179 lt_cv_deplibs_check_method=pass_all
5185 lt_cv_deplibs_check_method=pass_all
5190 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5191 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5192 file_magic_cmd=$lt_cv_file_magic_cmd
5193 deplibs_check_method=$lt_cv_deplibs_check_method
5194 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5207 if test -n "$ac_tool_prefix"; then
5208 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5209 set dummy ${ac_tool_prefix}ar; ac_word=$2
5210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if test "${ac_cv_prog_AR+set}" = set; then
5213 $as_echo_n "(cached) " >&6
5215 if test -n "$AR"; then
5216 ac_cv_prog_AR="$AR" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_prog_AR="${ac_tool_prefix}ar"
5226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 if test -n "$AR"; then
5237 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5238 $as_echo "$AR" >&6; }
5240 { $as_echo "$as_me:$LINENO: result: no" >&5
5241 $as_echo "no" >&6; }
5246 if test -z "$ac_cv_prog_AR"; then
5248 # Extract the first word of "ar", so it can be a program name with args.
5249 set dummy ar; ac_word=$2
5250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5253 $as_echo_n "(cached) " >&6
5255 if test -n "$ac_ct_AR"; then
5256 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_ac_ct_AR="ar"
5266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5276 if test -n "$ac_ct_AR"; then
5277 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5278 $as_echo "$ac_ct_AR" >&6; }
5280 { $as_echo "$as_me:$LINENO: result: no" >&5
5281 $as_echo "no" >&6; }
5284 if test "x$ac_ct_AR" = x; then
5287 case $cross_compiling:$ac_tool_warned in
5289 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291 ac_tool_warned=yes ;;
5299 test -z "$AR" && AR=ar
5300 test -z "$AR_FLAGS" && AR_FLAGS=cru
5312 if test -n "$ac_tool_prefix"; then
5313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5314 set dummy ${ac_tool_prefix}strip; ac_word=$2
5315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if test "${ac_cv_prog_STRIP+set}" = set; then
5318 $as_echo_n "(cached) " >&6
5320 if test -n "$STRIP"; then
5321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 STRIP=$ac_cv_prog_STRIP
5341 if test -n "$STRIP"; then
5342 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5343 $as_echo "$STRIP" >&6; }
5345 { $as_echo "$as_me:$LINENO: result: no" >&5
5346 $as_echo "no" >&6; }
5351 if test -z "$ac_cv_prog_STRIP"; then
5353 # Extract the first word of "strip", so it can be a program name with args.
5354 set dummy strip; ac_word=$2
5355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5358 $as_echo_n "(cached) " >&6
5360 if test -n "$ac_ct_STRIP"; then
5361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_prog_ac_ct_STRIP="strip"
5371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5381 if test -n "$ac_ct_STRIP"; then
5382 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5383 $as_echo "$ac_ct_STRIP" >&6; }
5385 { $as_echo "$as_me:$LINENO: result: no" >&5
5386 $as_echo "no" >&6; }
5389 if test "x$ac_ct_STRIP" = x; then
5392 case $cross_compiling:$ac_tool_warned in
5394 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396 ac_tool_warned=yes ;;
5401 STRIP="$ac_cv_prog_STRIP"
5404 test -z "$STRIP" && STRIP=:
5411 if test -n "$ac_tool_prefix"; then
5412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if test "${ac_cv_prog_RANLIB+set}" = set; then
5417 $as_echo_n "(cached) " >&6
5419 if test -n "$RANLIB"; then
5420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 RANLIB=$ac_cv_prog_RANLIB
5440 if test -n "$RANLIB"; then
5441 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5442 $as_echo "$RANLIB" >&6; }
5444 { $as_echo "$as_me:$LINENO: result: no" >&5
5445 $as_echo "no" >&6; }
5450 if test -z "$ac_cv_prog_RANLIB"; then
5451 ac_ct_RANLIB=$RANLIB
5452 # Extract the first word of "ranlib", so it can be a program name with args.
5453 set dummy ranlib; ac_word=$2
5454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5457 $as_echo_n "(cached) " >&6
5459 if test -n "$ac_ct_RANLIB"; then
5460 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_prog_ac_ct_RANLIB="ranlib"
5470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5480 if test -n "$ac_ct_RANLIB"; then
5481 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5482 $as_echo "$ac_ct_RANLIB" >&6; }
5484 { $as_echo "$as_me:$LINENO: result: no" >&5
5485 $as_echo "no" >&6; }
5488 if test "x$ac_ct_RANLIB" = x; then
5491 case $cross_compiling:$ac_tool_warned in
5493 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495 ac_tool_warned=yes ;;
5497 RANLIB=$ac_ct_RANLIB
5500 RANLIB="$ac_cv_prog_RANLIB"
5503 test -z "$RANLIB" && RANLIB=:
5510 # Determine commands to create old-style static archives.
5511 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5512 old_postinstall_cmds='chmod 644 $oldlib'
5513 old_postuninstall_cmds=
5515 if test -n "$RANLIB"; then
5518 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5521 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5524 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5560 # If no C compiler was specified, use CC.
5563 # If no C compiler flags were specified, use CFLAGS.
5564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5566 # Allow CC to be a program name with arguments.
5570 # Check for command to grab the raw symbol name followed by C symbol from nm.
5571 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5572 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5573 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5574 $as_echo_n "(cached) " >&6
5577 # These are sane defaults that work on at least a few old systems.
5578 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5580 # Character class describing NM global symbol codes.
5581 symcode='[BCDEGRST]'
5583 # Regexp to match symbols that can be accessed directly from C.
5584 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5586 # Define system-specific variables.
5591 cygwin* | mingw* | pw32* | cegcc*)
5592 symcode='[ABCDGISTW]'
5595 if test "$host_cpu" = ia64; then
5596 symcode='[ABCDEGRST]'
5600 symcode='[BCDEGRST]'
5603 symcode='[BCDEGQRST]'
5614 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5622 # If we're using GNU nm, then use its standard symbol codes.
5623 case `$NM -V 2>&1` in
5624 *GNU* | *'with BFD'*)
5625 symcode='[ABCDGIRSTW]' ;;
5628 # Transform an extracted symbol line into a proper C declaration.
5629 # Some systems (esp. on ia64) link data and code symbols differently,
5630 # so use this general approach.
5631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5633 # Transform an extracted symbol line into symbol name and symbol address
5634 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5635 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'"
5637 # Handle CRLF in mingw tool chain
5641 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5645 # Try without a prefix underscore, then with it.
5646 for ac_symprfx in "" "_"; do
5648 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5649 symxfrm="\\1 $ac_symprfx\\2 \\2"
5651 # Write the raw and C identifiers.
5652 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5653 # Fake it for dumpbin and say T for any non-static function
5654 # and D for any global variable.
5655 # Also find C++ and __fastcall symbols from MSVC++,
5656 # which start with @ or ?.
5657 lt_cv_sys_global_symbol_pipe="$AWK '"\
5658 " {last_section=section; section=\$ 3};"\
5659 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5660 " \$ 0!~/External *\|/{next};"\
5661 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5662 " {if(hide[section]) next};"\
5663 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5664 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5665 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5666 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5667 " ' prfx=^$ac_symprfx"
5669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5672 # Check to see that the pipe works correctly.
5676 cat > conftest.$ac_ext <<_LT_EOF
5681 void nm_test_func(void);
5682 void nm_test_func(void){}
5686 int main(){nm_test_var='a';nm_test_func();return(0);}
5689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5690 (eval $ac_compile) 2>&5
5692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; then
5694 # Now try to grab the symbols.
5696 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5697 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && test -s "$nlist"; then
5701 # Try sorting and uniquifying the output.
5702 if sort "$nlist" | uniq > "$nlist"T; then
5703 mv -f "$nlist"T "$nlist"
5708 # Make sure that we snagged all the symbols we need.
5709 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5710 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5711 cat <<_LT_EOF > conftest.$ac_ext
5717 # Now generate the symbol file.
5718 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5720 cat <<_LT_EOF >> conftest.$ac_ext
5722 /* The mapping between symbol names and symbols. */
5727 lt__PROGRAM__LTX_preloaded_symbols[] =
5729 { "@PROGRAM@", (void *) 0 },
5731 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5732 cat <<\_LT_EOF >> conftest.$ac_ext
5736 /* This works around a problem in FreeBSD linker */
5737 #ifdef FREEBSD_WORKAROUND
5738 static const void *lt_preloaded_setup() {
5739 return lt__PROGRAM__LTX_preloaded_symbols;
5747 # Now try linking the two files.
5748 mv conftest.$ac_objext conftstm.$ac_objext
5749 lt_save_LIBS="$LIBS"
5750 lt_save_CFLAGS="$CFLAGS"
5751 LIBS="conftstm.$ac_objext"
5752 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754 (eval $ac_link) 2>&5
5756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5760 LIBS="$lt_save_LIBS"
5761 CFLAGS="$lt_save_CFLAGS"
5763 echo "cannot find nm_test_func in $nlist" >&5
5766 echo "cannot find nm_test_var in $nlist" >&5
5769 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5772 echo "$progname: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5775 rm -rf conftest* conftst*
5777 # Do not use the global_symbol_pipe unless it works.
5778 if test "$pipe_works" = yes; then
5781 lt_cv_sys_global_symbol_pipe=
5787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5788 lt_cv_sys_global_symbol_to_cdecl=
5790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5791 { $as_echo "$as_me:$LINENO: result: failed" >&5
5792 $as_echo "failed" >&6; }
5794 { $as_echo "$as_me:$LINENO: result: ok" >&5
5795 $as_echo "ok" >&6; }
5819 # Check whether --enable-libtool-lock was given.
5820 if test "${enable_libtool_lock+set}" = set; then
5821 enableval=$enable_libtool_lock;
5824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5826 # Some flags need to be propagated to the compiler or linker for good
5830 # Find out which ABI we are using.
5831 echo 'int i;' > conftest.$ac_ext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5833 (eval $ac_compile) 2>&5
5835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; then
5837 case `/usr/bin/file conftest.$ac_objext` in
5849 # Find out which ABI we are using.
5850 echo '#line 5850 "configure"' > conftest.$ac_ext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852 (eval $ac_compile) 2>&5
5854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; then
5856 if test "$lt_cv_prog_gnu_ld" = yes; then
5857 case `/usr/bin/file conftest.$ac_objext` in
5859 LD="${LD-ld} -melf32bsmip"
5862 LD="${LD-ld} -melf32bmipn32"
5865 LD="${LD-ld} -melf64bmip"
5869 case `/usr/bin/file conftest.$ac_objext` in
5885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5887 # Find out which ABI we are using.
5888 echo 'int i;' > conftest.$ac_ext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890 (eval $ac_compile) 2>&5
5892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; then
5894 case `/usr/bin/file conftest.o` in
5897 x86_64-*kfreebsd*-gnu)
5898 LD="${LD-ld} -m elf_i386_fbsd"
5901 LD="${LD-ld} -m elf_i386"
5903 ppc64-*linux*|powerpc64-*linux*)
5904 LD="${LD-ld} -m elf32ppclinux"
5907 LD="${LD-ld} -m elf_s390"
5910 LD="${LD-ld} -m elf32_sparc"
5916 x86_64-*kfreebsd*-gnu)
5917 LD="${LD-ld} -m elf_x86_64_fbsd"
5920 LD="${LD-ld} -m elf_x86_64"
5922 ppc*-*linux*|powerpc*-*linux*)
5923 LD="${LD-ld} -m elf64ppc"
5925 s390*-*linux*|s390*-*tpf*)
5926 LD="${LD-ld} -m elf64_s390"
5929 LD="${LD-ld} -m elf64_sparc"
5939 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5940 SAVE_CFLAGS="$CFLAGS"
5941 CFLAGS="$CFLAGS -belf"
5942 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5943 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5944 if test "${lt_cv_cc_needs_belf+set}" = set; then
5945 $as_echo_n "(cached) " >&6
5948 ac_cpp='$CPP $CPPFLAGS'
5949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5968 rm -f conftest.$ac_objext conftest$ac_exeext
5969 if { (ac_try="$ac_link"
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5975 $as_echo "$ac_try_echo") >&5
5976 (eval "$ac_link") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && {
5983 test -z "$ac_c_werror_flag" ||
5984 test ! -s conftest.err
5985 } && test -s conftest$ac_exeext && {
5986 test "$cross_compiling" = yes ||
5987 $as_test_x conftest$ac_exeext
5989 lt_cv_cc_needs_belf=yes
5991 $as_echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5994 lt_cv_cc_needs_belf=no
5997 rm -rf conftest.dSYM
5998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5999 conftest$ac_exeext conftest.$ac_ext
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6008 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6009 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6010 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6011 CFLAGS="$SAVE_CFLAGS"
6015 # Find out which ABI we are using.
6016 echo 'int i;' > conftest.$ac_ext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018 (eval $ac_compile) 2>&5
6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; then
6022 case `/usr/bin/file conftest.o` in
6024 case $lt_cv_prog_gnu_ld in
6025 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6027 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6039 need_locks="$enable_libtool_lock"
6043 rhapsody* | darwin*)
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6050 $as_echo_n "(cached) " >&6
6052 if test -n "$DSYMUTIL"; then
6053 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6073 if test -n "$DSYMUTIL"; then
6074 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6075 $as_echo "$DSYMUTIL" >&6; }
6077 { $as_echo "$as_me:$LINENO: result: no" >&5
6078 $as_echo "no" >&6; }
6083 if test -z "$ac_cv_prog_DSYMUTIL"; then
6084 ac_ct_DSYMUTIL=$DSYMUTIL
6085 # Extract the first word of "dsymutil", so it can be a program name with args.
6086 set dummy dsymutil; ac_word=$2
6087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6090 $as_echo_n "(cached) " >&6
6092 if test -n "$ac_ct_DSYMUTIL"; then
6093 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6102 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6103 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6113 if test -n "$ac_ct_DSYMUTIL"; then
6114 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6115 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6117 { $as_echo "$as_me:$LINENO: result: no" >&5
6118 $as_echo "no" >&6; }
6121 if test "x$ac_ct_DSYMUTIL" = x; then
6124 case $cross_compiling:$ac_tool_warned in
6126 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6128 ac_tool_warned=yes ;;
6130 DSYMUTIL=$ac_ct_DSYMUTIL
6133 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6136 if test -n "$ac_tool_prefix"; then
6137 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6142 $as_echo_n "(cached) " >&6
6144 if test -n "$NMEDIT"; then
6145 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 NMEDIT=$ac_cv_prog_NMEDIT
6165 if test -n "$NMEDIT"; then
6166 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6167 $as_echo "$NMEDIT" >&6; }
6169 { $as_echo "$as_me:$LINENO: result: no" >&5
6170 $as_echo "no" >&6; }
6175 if test -z "$ac_cv_prog_NMEDIT"; then
6176 ac_ct_NMEDIT=$NMEDIT
6177 # Extract the first word of "nmedit", so it can be a program name with args.
6178 set dummy nmedit; ac_word=$2
6179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6182 $as_echo_n "(cached) " >&6
6184 if test -n "$ac_ct_NMEDIT"; then
6185 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6205 if test -n "$ac_ct_NMEDIT"; then
6206 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6207 $as_echo "$ac_ct_NMEDIT" >&6; }
6209 { $as_echo "$as_me:$LINENO: result: no" >&5
6210 $as_echo "no" >&6; }
6213 if test "x$ac_ct_NMEDIT" = x; then
6216 case $cross_compiling:$ac_tool_warned in
6218 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220 ac_tool_warned=yes ;;
6222 NMEDIT=$ac_ct_NMEDIT
6225 NMEDIT="$ac_cv_prog_NMEDIT"
6228 if test -n "$ac_tool_prefix"; then
6229 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6230 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if test "${ac_cv_prog_LIPO+set}" = set; then
6234 $as_echo_n "(cached) " >&6
6236 if test -n "$LIPO"; then
6237 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 LIPO=$ac_cv_prog_LIPO
6257 if test -n "$LIPO"; then
6258 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6259 $as_echo "$LIPO" >&6; }
6261 { $as_echo "$as_me:$LINENO: result: no" >&5
6262 $as_echo "no" >&6; }
6267 if test -z "$ac_cv_prog_LIPO"; then
6269 # Extract the first word of "lipo", so it can be a program name with args.
6270 set dummy lipo; ac_word=$2
6271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6274 $as_echo_n "(cached) " >&6
6276 if test -n "$ac_ct_LIPO"; then
6277 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_prog_ac_ct_LIPO="lipo"
6287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6297 if test -n "$ac_ct_LIPO"; then
6298 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6299 $as_echo "$ac_ct_LIPO" >&6; }
6301 { $as_echo "$as_me:$LINENO: result: no" >&5
6302 $as_echo "no" >&6; }
6305 if test "x$ac_ct_LIPO" = x; then
6308 case $cross_compiling:$ac_tool_warned in
6310 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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: using cross tools not prefixed with host triplet" >&5
6403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404 ac_tool_warned=yes ;;
6409 OTOOL="$ac_cv_prog_OTOOL"
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6418 $as_echo_n "(cached) " >&6
6420 if test -n "$OTOOL64"; then
6421 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 OTOOL64=$ac_cv_prog_OTOOL64
6441 if test -n "$OTOOL64"; then
6442 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6443 $as_echo "$OTOOL64" >&6; }
6445 { $as_echo "$as_me:$LINENO: result: no" >&5
6446 $as_echo "no" >&6; }
6451 if test -z "$ac_cv_prog_OTOOL64"; then
6452 ac_ct_OTOOL64=$OTOOL64
6453 # Extract the first word of "otool64", so it can be a program name with args.
6454 set dummy otool64; ac_word=$2
6455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6458 $as_echo_n "(cached) " >&6
6460 if test -n "$ac_ct_OTOOL64"; then
6461 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_OTOOL64="otool64"
6471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6481 if test -n "$ac_ct_OTOOL64"; then
6482 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6483 $as_echo "$ac_ct_OTOOL64" >&6; }
6485 { $as_echo "$as_me:$LINENO: result: no" >&5
6486 $as_echo "no" >&6; }
6489 if test "x$ac_ct_OTOOL64" = x; then
6492 case $cross_compiling:$ac_tool_warned in
6494 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6498 OTOOL64=$ac_ct_OTOOL64
6501 OTOOL64="$ac_cv_prog_OTOOL64"
6530 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6531 $as_echo_n "checking for -single_module linker flag... " >&6; }
6532 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6533 $as_echo_n "(cached) " >&6
6535 lt_cv_apple_cc_single_mod=no
6536 if test -z "${LT_MULTI_MODULE}"; then
6537 # By default we will add the -single_module flag. You can override
6538 # by either setting the environment variable LT_MULTI_MODULE
6539 # non-empty at configure time, or by adding -multi_module to the
6541 rm -rf libconftest.dylib*
6542 echo "int foo(void){return 1;}" > conftest.c
6543 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6544 -dynamiclib -Wl,-single_module conftest.c" >&5
6545 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6546 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6548 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6549 lt_cv_apple_cc_single_mod=yes
6551 cat conftest.err >&5
6553 rm -rf libconftest.dylib*
6557 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6558 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6559 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6560 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6561 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6562 $as_echo_n "(cached) " >&6
6564 lt_cv_ld_exported_symbols_list=no
6565 save_LDFLAGS=$LDFLAGS
6566 echo "_main" > conftest.sym
6567 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6568 cat >conftest.$ac_ext <<_ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6583 rm -f conftest.$ac_objext conftest$ac_exeext
6584 if { (ac_try="$ac_link"
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6590 $as_echo "$ac_try_echo") >&5
6591 (eval "$ac_link") 2>conftest.er1
6593 grep -v '^ *+' conftest.er1 >conftest.err
6595 cat conftest.err >&5
6596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest$ac_exeext && {
6601 test "$cross_compiling" = yes ||
6602 $as_test_x conftest$ac_exeext
6604 lt_cv_ld_exported_symbols_list=yes
6606 $as_echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 lt_cv_ld_exported_symbols_list=no
6612 rm -rf conftest.dSYM
6613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6614 conftest$ac_exeext conftest.$ac_ext
6615 LDFLAGS="$save_LDFLAGS"
6618 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6619 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6621 rhapsody* | darwin1.[012])
6622 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6624 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6625 darwin*) # darwin 5.x on
6626 # if running on 10.5 or later, the deployment target defaults
6627 # to the OS version, if on x86, and 10.4, the deployment
6628 # target defaults to 10.4. Don't you love it?
6629 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6630 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6631 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6633 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6635 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6639 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6640 _lt_dar_single_mod='$single_module'
6642 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6643 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6645 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6647 if test "$DSYMUTIL" != ":"; then
6648 _lt_dsymutil='~$DSYMUTIL $lib || :'
6656 ac_cpp='$CPP $CPPFLAGS'
6657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6661 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6662 # On Suns, sometimes $CPP names a directory.
6663 if test -n "$CPP" && test -d "$CPP"; then
6666 if test -z "$CPP"; then
6667 if test "${ac_cv_prog_CPP+set}" = set; then
6668 $as_echo_n "(cached) " >&6
6670 # Double quotes because CPP needs to be expanded
6671 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6674 for ac_c_preproc_warn_flag in '' yes
6676 # Use a header file that comes with gcc, so configuring glibc
6677 # with a fresh cross-compiler works.
6678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6679 # <limits.h> exists even on freestanding compilers.
6680 # On the NeXT, cc -E runs the code through the compiler's parser,
6681 # not just through cpp. "Syntax error" is here to catch this case.
6682 cat >conftest.$ac_ext <<_ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6689 # include <limits.h>
6691 # include <assert.h>
6695 if { (ac_try="$ac_cpp conftest.$ac_ext"
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6701 $as_echo "$ac_try_echo") >&5
6702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6704 grep -v '^ *+' conftest.er1 >conftest.err
6706 cat conftest.err >&5
6707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } >/dev/null && {
6709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6710 test ! -s conftest.err
6714 $as_echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6717 # Broken: fails on valid input.
6721 rm -f conftest.err conftest.$ac_ext
6723 # OK, works on sane cases. Now check whether nonexistent headers
6724 # can be detected and how.
6725 cat >conftest.$ac_ext <<_ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #include <ac_nonexistent.h>
6733 if { (ac_try="$ac_cpp conftest.$ac_ext"
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6739 $as_echo "$ac_try_echo") >&5
6740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6742 grep -v '^ *+' conftest.er1 >conftest.err
6744 cat conftest.err >&5
6745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } >/dev/null && {
6747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6748 test ! -s conftest.err
6750 # Broken: success on invalid input.
6753 $as_echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6756 # Passes both tests.
6761 rm -f conftest.err conftest.$ac_ext
6764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6765 rm -f conftest.err conftest.$ac_ext
6766 if $ac_preproc_ok; then
6778 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6779 $as_echo "$CPP" >&6; }
6781 for ac_c_preproc_warn_flag in '' yes
6783 # Use a header file that comes with gcc, so configuring glibc
6784 # with a fresh cross-compiler works.
6785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6786 # <limits.h> exists even on freestanding compilers.
6787 # On the NeXT, cc -E runs the code through the compiler's parser,
6788 # not just through cpp. "Syntax error" is here to catch this case.
6789 cat >conftest.$ac_ext <<_ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6796 # include <limits.h>
6798 # include <assert.h>
6802 if { (ac_try="$ac_cpp conftest.$ac_ext"
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6808 $as_echo "$ac_try_echo") >&5
6809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6811 grep -v '^ *+' conftest.er1 >conftest.err
6813 cat conftest.err >&5
6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } >/dev/null && {
6816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6821 $as_echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6824 # Broken: fails on valid input.
6828 rm -f conftest.err conftest.$ac_ext
6830 # OK, works on sane cases. Now check whether nonexistent headers
6831 # can be detected and how.
6832 cat >conftest.$ac_ext <<_ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 #include <ac_nonexistent.h>
6840 if { (ac_try="$ac_cpp conftest.$ac_ext"
6842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6843 *) ac_try_echo=$ac_try;;
6845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6846 $as_echo "$ac_try_echo") >&5
6847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6849 grep -v '^ *+' conftest.er1 >conftest.err
6851 cat conftest.err >&5
6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } >/dev/null && {
6854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6855 test ! -s conftest.err
6857 # Broken: success on invalid input.
6860 $as_echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6863 # Passes both tests.
6868 rm -f conftest.err conftest.$ac_ext
6871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6872 rm -f conftest.err conftest.$ac_ext
6873 if $ac_preproc_ok; then
6876 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6878 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6879 See \`config.log' for more details." >&5
6880 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6881 See \`config.log' for more details." >&2;}
6882 { (exit 1); exit 1; }; }; }
6886 ac_cpp='$CPP $CPPFLAGS'
6887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6892 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6893 $as_echo_n "checking for ANSI C header files... " >&6; }
6894 if test "${ac_cv_header_stdc+set}" = set; then
6895 $as_echo_n "(cached) " >&6
6897 cat >conftest.$ac_ext <<_ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6916 rm -f conftest.$ac_objext
6917 if { (ac_try="$ac_compile"
6919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920 *) ac_try_echo=$ac_try;;
6922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6923 $as_echo "$ac_try_echo") >&5
6924 (eval "$ac_compile") 2>conftest.er1
6926 grep -v '^ *+' conftest.er1 >conftest.err
6928 cat conftest.err >&5
6929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && {
6931 test -z "$ac_c_werror_flag" ||
6932 test ! -s conftest.err
6933 } && test -s conftest.$ac_objext; then
6934 ac_cv_header_stdc=yes
6936 $as_echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 ac_cv_header_stdc=no
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 if test $ac_cv_header_stdc = yes; then
6945 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6946 cat >conftest.$ac_ext <<_ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6956 $EGREP "memchr" >/dev/null 2>&1; then
6959 ac_cv_header_stdc=no
6965 if test $ac_cv_header_stdc = yes; then
6966 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6967 cat >conftest.$ac_ext <<_ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6977 $EGREP "free" >/dev/null 2>&1; then
6980 ac_cv_header_stdc=no
6986 if test $ac_cv_header_stdc = yes; then
6987 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6988 if test "$cross_compiling" = yes; then
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6999 #if ((' ' & 0x0FF) == 0x020)
7000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7003 # define ISLOWER(c) \
7004 (('a' <= (c) && (c) <= 'i') \
7005 || ('j' <= (c) && (c) <= 'r') \
7006 || ('s' <= (c) && (c) <= 'z'))
7007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7015 for (i = 0; i < 256; i++)
7016 if (XOR (islower (i), ISLOWER (i))
7017 || toupper (i) != TOUPPER (i))
7022 rm -f conftest$ac_exeext
7023 if { (ac_try="$ac_link"
7025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026 *) ac_try_echo=$ac_try;;
7028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7029 $as_echo "$ac_try_echo") >&5
7030 (eval "$ac_link") 2>&5
7032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7034 { (case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039 $as_echo "$ac_try_echo") >&5
7040 (eval "$ac_try") 2>&5
7042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7046 $as_echo "$as_me: program exited with status $ac_status" >&5
7047 $as_echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7051 ac_cv_header_stdc=no
7053 rm -rf conftest.dSYM
7054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7060 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7061 $as_echo "$ac_cv_header_stdc" >&6; }
7062 if test $ac_cv_header_stdc = yes; then
7064 cat >>confdefs.h <<\_ACEOF
7065 #define STDC_HEADERS 1
7070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7080 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7081 inttypes.h stdint.h unistd.h
7083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7085 $as_echo_n "checking for $ac_header... " >&6; }
7086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7087 $as_echo_n "(cached) " >&6
7089 cat >conftest.$ac_ext <<_ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 $ac_includes_default
7097 #include <$ac_header>
7099 rm -f conftest.$ac_objext
7100 if { (ac_try="$ac_compile"
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7106 $as_echo "$ac_try_echo") >&5
7107 (eval "$ac_compile") 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && {
7114 test -z "$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7116 } && test -s conftest.$ac_objext; then
7117 eval "$as_ac_Header=yes"
7119 $as_echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 eval "$as_ac_Header=no"
7125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 ac_res=`eval 'as_val=${'$as_ac_Header'}
7128 $as_echo "$as_val"'`
7129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7130 $as_echo "$ac_res" >&6; }
7131 as_val=`eval 'as_val=${'$as_ac_Header'}
7132 $as_echo "$as_val"'`
7133 if test "x$as_val" = x""yes; then
7134 cat >>confdefs.h <<_ACEOF
7135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7144 for ac_header in dlfcn.h
7146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7148 $as_echo_n "checking for $ac_header... " >&6; }
7149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7150 $as_echo_n "(cached) " >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 $ac_includes_default
7160 #include <$ac_header>
7162 rm -f conftest.$ac_objext
7163 if { (ac_try="$ac_compile"
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7169 $as_echo "$ac_try_echo") >&5
7170 (eval "$ac_compile") 2>conftest.er1
7172 grep -v '^ *+' conftest.er1 >conftest.err
7174 cat conftest.err >&5
7175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } && {
7177 test -z "$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 } && test -s conftest.$ac_objext; then
7180 eval "$as_ac_Header=yes"
7182 $as_echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7185 eval "$as_ac_Header=no"
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 ac_res=`eval 'as_val=${'$as_ac_Header'}
7191 $as_echo "$as_val"'`
7192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7193 $as_echo "$ac_res" >&6; }
7194 as_val=`eval 'as_val=${'$as_ac_Header'}
7195 $as_echo "$as_val"'`
7196 if test "x$as_val" = x""yes; then
7197 cat >>confdefs.h <<_ACEOF
7198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7217 # Check whether --enable-shared was given.
7218 if test "${enable_shared+set}" = set; then
7219 enableval=$enable_shared; p=${PACKAGE-default}
7221 yes) enable_shared=yes ;;
7222 no) enable_shared=no ;;
7225 # Look at the argument we got. We use all the common list separators.
7226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7227 for pkg in $enableval; do
7229 if test "X$pkg" = "X$p"; then
7248 # Check whether --enable-static was given.
7249 if test "${enable_static+set}" = set; then
7250 enableval=$enable_static; p=${PACKAGE-default}
7252 yes) enable_static=yes ;;
7253 no) enable_static=no ;;
7256 # Look at the argument we got. We use all the common list separators.
7257 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7258 for pkg in $enableval; do
7260 if test "X$pkg" = "X$p"; then
7280 # Check whether --with-pic was given.
7281 if test "${with_pic+set}" = set; then
7282 withval=$with_pic; pic_mode="$withval"
7288 test -z "$pic_mode" && pic_mode=default
7296 # Check whether --enable-fast-install was given.
7297 if test "${enable_fast_install+set}" = set; then
7298 enableval=$enable_fast_install; p=${PACKAGE-default}
7300 yes) enable_fast_install=yes ;;
7301 no) enable_fast_install=no ;;
7303 enable_fast_install=no
7304 # Look at the argument we got. We use all the common list separators.
7305 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7306 for pkg in $enableval; do
7308 if test "X$pkg" = "X$p"; then
7309 enable_fast_install=yes
7316 enable_fast_install=yes
7329 # This can be used to rebuild libtool when needed
7330 LIBTOOL_DEPS="$ltmain"
7332 # Always use our own libtool.
7333 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7359 test -z "$LN_S" && LN_S="ln -s"
7374 if test -n "${ZSH_VERSION+set}" ; then
7375 setopt NO_GLOB_SUBST
7378 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7379 $as_echo_n "checking for objdir... " >&6; }
7380 if test "${lt_cv_objdir+set}" = set; then
7381 $as_echo_n "(cached) " >&6
7383 rm -f .libs 2>/dev/null
7384 mkdir .libs 2>/dev/null
7385 if test -d .libs; then
7388 # MS-DOS does not allow filenames that begin with a dot.
7391 rmdir .libs 2>/dev/null
7393 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7394 $as_echo "$lt_cv_objdir" >&6; }
7395 objdir=$lt_cv_objdir
7401 cat >>confdefs.h <<_ACEOF
7402 #define LT_OBJDIR "$lt_cv_objdir/"
7423 # AIX sometimes has problems with the GCC collect2 program. For some
7424 # reason, if we set the COLLECT_NAMES environment variable, the problems
7425 # vanish in a puff of smoke.
7426 if test "X${COLLECT_NAMES+set}" != Xset; then
7428 export COLLECT_NAMES
7433 # Sed substitution that helps us do robust quoting. It backslashifies
7434 # metacharacters that are still active within double-quoted strings.
7435 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7437 # Same as above, but do not quote variable references.
7438 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7440 # Sed substitution to delay expansion of an escaped shell variable in a
7441 # double_quote_subst'ed string.
7442 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7444 # Sed substitution to delay expansion of an escaped single quote.
7445 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7447 # Sed substitution to avoid accidental globbing in evaled expressions
7448 no_glob_subst='s/\*/\\\*/g'
7452 can_build_shared=yes
7454 # All known linkers require a `.a' archive for static linking (except MSVC,
7455 # which needs '.lib').
7458 with_gnu_ld="$lt_cv_prog_gnu_ld"
7461 old_CFLAGS="$CFLAGS"
7463 # Set sane defaults for various variables
7464 test -z "$CC" && CC=cc
7465 test -z "$LTCC" && LTCC=$CC
7466 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7467 test -z "$LD" && LD=ld
7468 test -z "$ac_objext" && ac_objext=o
7470 for cc_temp in $compiler""; do
7472 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7473 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7478 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7481 # Only perform the check for file, if the check method requires it
7482 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7483 case $deplibs_check_method in
7485 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7486 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7487 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7489 $as_echo_n "(cached) " >&6
7493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7496 lt_save_MAGIC_CMD="$MAGIC_CMD"
7497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7498 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7499 for ac_dir in $ac_dummy; do
7501 test -z "$ac_dir" && ac_dir=.
7502 if test -f $ac_dir/${ac_tool_prefix}file; then
7503 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7504 if test -n "$file_magic_test_file"; then
7505 case $deplibs_check_method in
7507 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7510 $EGREP "$file_magic_regex" > /dev/null; then
7515 *** Warning: the command libtool uses to detect shared libraries,
7516 *** $file_magic_cmd, produces output that libtool cannot recognize.
7517 *** The result is that libtool may fail to recognize shared libraries
7518 *** as such. This will affect the creation of libtool libraries that
7519 *** depend on shared libraries, but programs linked with such libtool
7520 *** libraries will work regardless of this problem. Nevertheless, you
7521 *** may want to report the problem to your system manager and/or to
7522 *** bug-libtool@gnu.org
7532 MAGIC_CMD="$lt_save_MAGIC_CMD"
7537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7538 if test -n "$MAGIC_CMD"; then
7539 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7540 $as_echo "$MAGIC_CMD" >&6; }
7542 { $as_echo "$as_me:$LINENO: result: no" >&5
7543 $as_echo "no" >&6; }
7550 if test -z "$lt_cv_path_MAGIC_CMD"; then
7551 if test -n "$ac_tool_prefix"; then
7552 { $as_echo "$as_me:$LINENO: checking for file" >&5
7553 $as_echo_n "checking for file... " >&6; }
7554 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7562 lt_save_MAGIC_CMD="$MAGIC_CMD"
7563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7564 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7565 for ac_dir in $ac_dummy; do
7567 test -z "$ac_dir" && ac_dir=.
7568 if test -f $ac_dir/file; then
7569 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7570 if test -n "$file_magic_test_file"; then
7571 case $deplibs_check_method in
7573 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7576 $EGREP "$file_magic_regex" > /dev/null; then
7581 *** Warning: the command libtool uses to detect shared libraries,
7582 *** $file_magic_cmd, produces output that libtool cannot recognize.
7583 *** The result is that libtool may fail to recognize shared libraries
7584 *** as such. This will affect the creation of libtool libraries that
7585 *** depend on shared libraries, but programs linked with such libtool
7586 *** libraries will work regardless of this problem. Nevertheless, you
7587 *** may want to report the problem to your system manager and/or to
7588 *** bug-libtool@gnu.org
7598 MAGIC_CMD="$lt_save_MAGIC_CMD"
7603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7604 if test -n "$MAGIC_CMD"; then
7605 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7606 $as_echo "$MAGIC_CMD" >&6; }
7608 { $as_echo "$as_me:$LINENO: result: no" >&5
7609 $as_echo "no" >&6; }
7622 # Use C for the default configuration in the libtool script
7626 ac_cpp='$CPP $CPPFLAGS'
7627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7632 # Source file extension for C test sources.
7635 # Object file extension for compiled C test sources.
7639 # Code to be used in simple compile tests
7640 lt_simple_compile_test_code="int some_variable = 0;"
7642 # Code to be used in simple link tests
7643 lt_simple_link_test_code='int main(){return(0);}'
7651 # If no C compiler was specified, use CC.
7654 # If no C compiler flags were specified, use CFLAGS.
7655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7657 # Allow CC to be a program name with arguments.
7660 # Save the default compiler, since it gets overwritten when the other
7661 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7662 compiler_DEFAULT=$CC
7664 # save warnings/boilerplate of simple test code
7665 ac_outfile=conftest.$ac_objext
7666 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7667 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7668 _lt_compiler_boilerplate=`cat conftest.err`
7671 ac_outfile=conftest.$ac_objext
7672 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7673 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7674 _lt_linker_boilerplate=`cat conftest.err`
7679 ## There is no encapsulation within the following macros, do not change
7680 ## the running order or otherwise move them around unless you know exactly
7681 ## what you are doing...
7682 if test -n "$compiler"; then
7684 lt_prog_compiler_no_builtin_flag=
7686 if test "$GCC" = yes; then
7687 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7689 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7690 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7691 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7692 $as_echo_n "(cached) " >&6
7694 lt_cv_prog_compiler_rtti_exceptions=no
7695 ac_outfile=conftest.$ac_objext
7696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7697 lt_compiler_flag="-fno-rtti -fno-exceptions"
7698 # Insert the option either (1) after the last *FLAGS variable, or
7699 # (2) before a word containing "conftest.", or (3) at the end.
7700 # Note that $ac_compile itself does not contain backslashes and begins
7701 # with a dollar sign (not a hyphen), so the echo should work correctly.
7702 # The option is referenced via a variable to avoid confusing sed.
7703 lt_compile=`echo "$ac_compile" | $SED \
7704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7706 -e 's:$: $lt_compiler_flag:'`
7707 (eval echo "\"\$as_me:7707: $lt_compile\"" >&5)
7708 (eval "$lt_compile" 2>conftest.err)
7710 cat conftest.err >&5
7711 echo "$as_me:7711: \$? = $ac_status" >&5
7712 if (exit $ac_status) && test -s "$ac_outfile"; then
7713 # The compiler can only warn and ignore the option if not recognized
7714 # So say no if there are warnings other than the usual output.
7715 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7718 lt_cv_prog_compiler_rtti_exceptions=yes
7724 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7725 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7727 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7728 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7740 lt_prog_compiler_wl=
7741 lt_prog_compiler_pic=
7742 lt_prog_compiler_static=
7744 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7745 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7747 if test "$GCC" = yes; then
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_static='-static'
7753 # All AIX code is PIC.
7754 if test "$host_cpu" = ia64; then
7755 # AIX 5 now supports IA64 processor
7756 lt_prog_compiler_static='-Bstatic'
7763 # see comment about AmigaOS4 .so support
7764 lt_prog_compiler_pic='-fPIC'
7767 # FIXME: we need at least 68020 code to build shared libraries, but
7768 # adding the `-m68020' flag to GCC prevents building anything better,
7770 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7775 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7776 # PIC is the default for these OSes.
7779 mingw* | cygwin* | pw32* | os2* | cegcc*)
7780 # This hack is so that the source file can tell whether it is being
7781 # built for inclusion in a dll (and should export symbols for example).
7782 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7783 # (--disable-auto-import) libraries
7784 lt_prog_compiler_pic='-DDLL_EXPORT'
7787 darwin* | rhapsody*)
7788 # PIC is the default on this platform
7789 # Common symbols not allowed in MH_DYLIB files
7790 lt_prog_compiler_pic='-fno-common'
7794 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7795 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7796 # sets the default TLS model and affects inlining.
7802 lt_prog_compiler_pic='-fPIC'
7808 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7809 # Instead, we relocate shared libraries at runtime.
7813 # Just because we use GCC doesn't mean we suddenly get shared libraries
7814 # on systems that don't support them.
7815 lt_prog_compiler_can_build_shared=no
7820 # QNX uses GNU C++, but need to define -shared option too, otherwise
7822 lt_prog_compiler_pic='-fPIC -shared'
7826 if test -d /usr/nec; then
7827 lt_prog_compiler_pic=-Kconform_pic
7832 lt_prog_compiler_pic='-fPIC'
7836 # PORTME Check for flag to pass linker flags through the system compiler.
7839 lt_prog_compiler_wl='-Wl,'
7840 if test "$host_cpu" = ia64; then
7841 # AIX 5 now supports IA64 processor
7842 lt_prog_compiler_static='-Bstatic'
7844 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7848 mingw* | cygwin* | pw32* | os2* | cegcc*)
7849 # This hack is so that the source file can tell whether it is being
7850 # built for inclusion in a dll (and should export symbols for example).
7851 lt_prog_compiler_pic='-DDLL_EXPORT'
7854 hpux9* | hpux10* | hpux11*)
7855 lt_prog_compiler_wl='-Wl,'
7856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7863 lt_prog_compiler_pic='+Z'
7866 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7867 lt_prog_compiler_static='${wl}-a ${wl}archive'
7870 irix5* | irix6* | nonstopux*)
7871 lt_prog_compiler_wl='-Wl,'
7872 # PIC (with -KPIC) is the default.
7873 lt_prog_compiler_static='-non_shared'
7876 linux* | k*bsd*-gnu)
7877 case $cc_basename in
7878 # old Intel for x86_64 which still supported -KPIC.
7880 lt_prog_compiler_wl='-Wl,'
7881 lt_prog_compiler_pic='-KPIC'
7882 lt_prog_compiler_static='-static'
7884 # icc used to be incompatible with GCC.
7885 # ICC 10 doesn't accept -KPIC any more.
7887 lt_prog_compiler_wl='-Wl,'
7888 lt_prog_compiler_pic='-fPIC'
7889 lt_prog_compiler_static='-static'
7891 # Lahey Fortran 8.1.
7893 lt_prog_compiler_wl='-Wl,'
7894 lt_prog_compiler_pic='--shared'
7895 lt_prog_compiler_static='--static'
7897 pgcc* | pgf77* | pgf90* | pgf95*)
7898 # Portland Group compilers (*not* the Pentium gcc compiler,
7899 # which looks to be a dead project)
7900 lt_prog_compiler_wl='-Wl,'
7901 lt_prog_compiler_pic='-fpic'
7902 lt_prog_compiler_static='-Bstatic'
7905 lt_prog_compiler_wl='-Wl,'
7906 # All Alpha code is PIC.
7907 lt_prog_compiler_static='-non_shared'
7910 # IBM XL C 8.0/Fortran 10.1 on PPC
7911 lt_prog_compiler_wl='-Wl,'
7912 lt_prog_compiler_pic='-qpic'
7913 lt_prog_compiler_static='-qstaticlink'
7916 case `$CC -V 2>&1 | sed 5q` in
7919 lt_prog_compiler_pic='-KPIC'
7920 lt_prog_compiler_static='-Bstatic'
7921 lt_prog_compiler_wl='-Wl,'
7924 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7925 lt_prog_compiler_pic='-KPIC'
7926 lt_prog_compiler_static='-Bstatic'
7927 lt_prog_compiler_wl=''
7935 lt_prog_compiler_pic='-KPIC'
7936 lt_prog_compiler_static='-Bstatic'
7940 # QNX uses GNU C++, but need to define -shared option too, otherwise
7942 lt_prog_compiler_pic='-fPIC -shared'
7945 osf3* | osf4* | osf5*)
7946 lt_prog_compiler_wl='-Wl,'
7947 # All OSF/1 code is PIC.
7948 lt_prog_compiler_static='-non_shared'
7952 lt_prog_compiler_static='-non_shared'
7956 lt_prog_compiler_pic='-KPIC'
7957 lt_prog_compiler_static='-Bstatic'
7958 case $cc_basename in
7960 lt_prog_compiler_wl='-Qoption ld ';;
7962 lt_prog_compiler_wl='-Wl,';;
7967 lt_prog_compiler_wl='-Qoption ld '
7968 lt_prog_compiler_pic='-PIC'
7969 lt_prog_compiler_static='-Bstatic'
7972 sysv4 | sysv4.2uw2* | sysv4.3*)
7973 lt_prog_compiler_wl='-Wl,'
7974 lt_prog_compiler_pic='-KPIC'
7975 lt_prog_compiler_static='-Bstatic'
7979 if test -d /usr/nec ;then
7980 lt_prog_compiler_pic='-Kconform_pic'
7981 lt_prog_compiler_static='-Bstatic'
7985 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-KPIC'
7988 lt_prog_compiler_static='-Bstatic'
7992 lt_prog_compiler_wl='-Wl,'
7993 lt_prog_compiler_can_build_shared=no
7997 lt_prog_compiler_pic='-pic'
7998 lt_prog_compiler_static='-Bstatic'
8002 lt_prog_compiler_can_build_shared=no
8008 # For platforms which do not support PIC, -DPIC is meaningless:
8010 lt_prog_compiler_pic=
8013 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8016 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8017 $as_echo "$lt_prog_compiler_pic" >&6; }
8025 # Check to make sure the PIC flag actually works.
8027 if test -n "$lt_prog_compiler_pic"; then
8028 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8029 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8030 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8031 $as_echo_n "(cached) " >&6
8033 lt_cv_prog_compiler_pic_works=no
8034 ac_outfile=conftest.$ac_objext
8035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8036 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8037 # Insert the option either (1) after the last *FLAGS variable, or
8038 # (2) before a word containing "conftest.", or (3) at the end.
8039 # Note that $ac_compile itself does not contain backslashes and begins
8040 # with a dollar sign (not a hyphen), so the echo should work correctly.
8041 # The option is referenced via a variable to avoid confusing sed.
8042 lt_compile=`echo "$ac_compile" | $SED \
8043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8045 -e 's:$: $lt_compiler_flag:'`
8046 (eval echo "\"\$as_me:8046: $lt_compile\"" >&5)
8047 (eval "$lt_compile" 2>conftest.err)
8049 cat conftest.err >&5
8050 echo "$as_me:8050: \$? = $ac_status" >&5
8051 if (exit $ac_status) && test -s "$ac_outfile"; then
8052 # The compiler can only warn and ignore the option if not recognized
8053 # So say no if there are warnings other than the usual output.
8054 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8056 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8057 lt_cv_prog_compiler_pic_works=yes
8063 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8064 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8066 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8067 case $lt_prog_compiler_pic in
8069 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8072 lt_prog_compiler_pic=
8073 lt_prog_compiler_can_build_shared=no
8084 # Check to make sure the static flag actually works.
8086 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8087 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8088 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8089 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8090 $as_echo_n "(cached) " >&6
8092 lt_cv_prog_compiler_static_works=no
8093 save_LDFLAGS="$LDFLAGS"
8094 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8095 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8096 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8097 # The linker can only warn and ignore the option if not recognized
8098 # So say no if there are warnings
8099 if test -s conftest.err; then
8100 # Append any errors to the config.log.
8101 cat conftest.err 1>&5
8102 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8104 if diff conftest.exp conftest.er2 >/dev/null; then
8105 lt_cv_prog_compiler_static_works=yes
8108 lt_cv_prog_compiler_static_works=yes
8112 LDFLAGS="$save_LDFLAGS"
8115 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8116 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8118 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8121 lt_prog_compiler_static=
8130 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8131 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8132 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8133 $as_echo_n "(cached) " >&6
8135 lt_cv_prog_compiler_c_o=no
8136 $RM -r conftest 2>/dev/null
8140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142 lt_compiler_flag="-o out/conftest2.$ac_objext"
8143 # Insert the option either (1) after the last *FLAGS variable, or
8144 # (2) before a word containing "conftest.", or (3) at the end.
8145 # Note that $ac_compile itself does not contain backslashes and begins
8146 # with a dollar sign (not a hyphen), so the echo should work correctly.
8147 lt_compile=`echo "$ac_compile" | $SED \
8148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8150 -e 's:$: $lt_compiler_flag:'`
8151 (eval echo "\"\$as_me:8151: $lt_compile\"" >&5)
8152 (eval "$lt_compile" 2>out/conftest.err)
8154 cat out/conftest.err >&5
8155 echo "$as_me:8155: \$? = $ac_status" >&5
8156 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8158 # The compiler can only warn and ignore the option if not recognized
8159 # So say no if there are warnings
8160 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8163 lt_cv_prog_compiler_c_o=yes
8168 # SGI C++ compiler will create directory out/ii_files/ for
8169 # template instantiation
8170 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8171 $RM out/* && rmdir out
8177 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8178 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8185 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8187 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8188 $as_echo_n "(cached) " >&6
8190 lt_cv_prog_compiler_c_o=no
8191 $RM -r conftest 2>/dev/null
8195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8197 lt_compiler_flag="-o out/conftest2.$ac_objext"
8198 # Insert the option either (1) after the last *FLAGS variable, or
8199 # (2) before a word containing "conftest.", or (3) at the end.
8200 # Note that $ac_compile itself does not contain backslashes and begins
8201 # with a dollar sign (not a hyphen), so the echo should work correctly.
8202 lt_compile=`echo "$ac_compile" | $SED \
8203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8205 -e 's:$: $lt_compiler_flag:'`
8206 (eval echo "\"\$as_me:8206: $lt_compile\"" >&5)
8207 (eval "$lt_compile" 2>out/conftest.err)
8209 cat out/conftest.err >&5
8210 echo "$as_me:8210: \$? = $ac_status" >&5
8211 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8213 # The compiler can only warn and ignore the option if not recognized
8214 # So say no if there are warnings
8215 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8218 lt_cv_prog_compiler_c_o=yes
8223 # SGI C++ compiler will create directory out/ii_files/ for
8224 # template instantiation
8225 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8226 $RM out/* && rmdir out
8232 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8233 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8238 hard_links="nottested"
8239 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8240 # do not overwrite the value of need_locks provided by the user
8241 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8242 $as_echo_n "checking if we can lock with hard links... " >&6; }
8245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247 ln conftest.a conftest.b 2>&5 || hard_links=no
8248 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8249 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8250 $as_echo "$hard_links" >&6; }
8251 if test "$hard_links" = no; then
8252 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8253 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8265 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8266 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8269 allow_undefined_flag=
8270 always_export_symbols=no
8272 archive_expsym_cmds=
8273 compiler_needs_object=no
8274 enable_shared_with_static_runtimes=no
8275 export_dynamic_flag_spec=
8276 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8277 hardcode_automatic=no
8279 hardcode_direct_absolute=no
8280 hardcode_libdir_flag_spec=
8281 hardcode_libdir_flag_spec_ld=
8282 hardcode_libdir_separator=
8284 hardcode_shlibpath_var=unsupported
8286 link_all_deplibs=unknown
8289 old_archive_from_new_cmds=
8290 old_archive_from_expsyms_cmds=
8291 thread_safe_flag_spec=
8292 whole_archive_flag_spec=
8293 # include_expsyms should be a list of space-separated symbols to be *always*
8294 # included in the symbol list
8296 # exclude_expsyms can be an extended regexp of symbols to exclude
8297 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8298 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8299 # as well as any symbol that contains `d'.
8300 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8302 # platforms (ab)use it in PIC code, but their linkers get confused if
8303 # the symbol is explicitly referenced. Since portable code cannot
8304 # rely on this symbol name, it's probably fine to never include it in
8305 # preloaded symbol tables.
8306 # Exclude shared library initialization/finalization symbols.
8307 extract_expsyms_cmds=
8310 cygwin* | mingw* | pw32* | cegcc*)
8311 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8312 # When not using gcc, we currently assume that we are using
8313 # Microsoft Visual C++.
8314 if test "$GCC" != yes; then
8319 # we just hope/assume this is gcc and not c89 (= MSVC++)
8328 if test "$with_gnu_ld" = yes; then
8329 # If archive_cmds runs LD, not CC, wlarc should be empty
8332 # Set some defaults for GNU ld with shared library support. These
8333 # are reset later if shared libraries are not supported. Putting them
8334 # here allows them to be overridden if necessary.
8335 runpath_var=LD_RUN_PATH
8336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8337 export_dynamic_flag_spec='${wl}--export-dynamic'
8338 # ancient GNU ld didn't support --whole-archive et. al.
8339 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8340 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8342 whole_archive_flag_spec=
8344 supports_anon_versioning=no
8345 case `$LD -v 2>&1` in
8346 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8347 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8348 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8349 *\ 2.11.*) ;; # other 2.11 versions
8350 *) supports_anon_versioning=yes ;;
8353 # See if GNU ld supports shared libraries.
8356 # On AIX/PPC, the GNU linker is very broken
8357 if test "$host_cpu" != ia64; then
8361 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8362 *** to be unable to reliably create shared libraries on AIX.
8363 *** Therefore, libtool is disabling shared libraries support. If you
8364 *** really care for shared libraries, you may want to modify your PATH
8365 *** so that a non-GNU linker is found, and then restart.
8374 # see comment about AmigaOS4 .so support
8375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8376 archive_expsym_cmds=''
8379 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)'
8380 hardcode_libdir_flag_spec='-L$libdir'
8381 hardcode_minus_L=yes
8387 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8388 allow_undefined_flag=unsupported
8389 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8390 # support --undefined. This deserves some investigation. FIXME
8391 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8397 cygwin* | mingw* | pw32* | cegcc*)
8398 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8399 # as there is no search path for DLLs.
8400 hardcode_libdir_flag_spec='-L$libdir'
8401 allow_undefined_flag=unsupported
8402 always_export_symbols=no
8403 enable_shared_with_static_runtimes=yes
8404 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8406 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8408 # If the export-symbols file already is a .def file (1st line
8409 # is EXPORTS), use it as is; otherwise, prepend...
8410 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8411 cp $export_symbols $output_objdir/$soname.def;
8413 echo EXPORTS > $output_objdir/$soname.def;
8414 cat $export_symbols >> $output_objdir/$soname.def;
8416 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8424 hardcode_shlibpath_var=no
8425 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8426 export_dynamic_flag_spec='${wl}-E'
8427 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8428 # Instead, shared libraries are loaded at an image base (0x10000000 by
8429 # default) and relocated if they conflict, which is a slow very memory
8430 # consuming and fragmenting process. To avoid this, we pick a random,
8431 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8432 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8433 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8434 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'
8437 gnu* | linux* | tpf* | k*bsd*-gnu)
8439 if test "$host_os" = linux-dietlibc; then
8440 case $cc_basename in
8441 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8444 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8445 && test "$tmp_diet" = no
8448 tmp_sharedflag='-shared'
8449 case $cc_basename,$host_cpu in
8450 pgcc*) # Portland Group C compiler
8451 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'
8452 tmp_addflag=' $pic_flag'
8454 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8455 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'
8456 tmp_addflag=' $pic_flag -Mnomain' ;;
8457 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8458 tmp_addflag=' -i_dynamic' ;;
8459 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8460 tmp_addflag=' -i_dynamic -nofor_main' ;;
8461 ifc* | ifort*) # Intel Fortran compiler
8462 tmp_addflag=' -nofor_main' ;;
8463 lf95*) # Lahey Fortran 8.1
8464 whole_archive_flag_spec=
8465 tmp_sharedflag='--shared' ;;
8466 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8467 tmp_sharedflag='-qmkshrobj'
8470 case `$CC -V 2>&1 | sed 5q` in
8471 *Sun\ C*) # Sun C 5.9
8472 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'
8473 compiler_needs_object=yes
8474 tmp_sharedflag='-G' ;;
8475 *Sun\ F*) # Sun Fortran 8.3
8476 tmp_sharedflag='-G' ;;
8478 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8480 if test "x$supports_anon_versioning" = xyes; then
8481 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8483 echo "local: *; };" >> $output_objdir/$libname.ver~
8484 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8487 case $cc_basename in
8489 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8490 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8491 hardcode_libdir_flag_spec=
8492 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8493 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8494 if test "x$supports_anon_versioning" = xyes; then
8495 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8496 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8497 echo "local: *; };" >> $output_objdir/$libname.ver~
8498 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8509 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8518 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8522 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8523 *** create shared libraries on Solaris systems. Therefore, libtool
8524 *** is disabling shared libraries support. We urge you to upgrade GNU
8525 *** binutils to release 2.9.1 or newer. Another option is to modify
8526 *** your PATH or compiler configuration so that the native linker is
8527 *** used, and then restart.
8530 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8539 case `$LD -v 2>&1` in
8540 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8544 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8545 *** reliably create shared libraries on SCO systems. Therefore, libtool
8546 *** is disabling shared libraries support. We urge you to upgrade GNU
8547 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8548 *** your PATH or compiler configuration so that the native linker is
8549 *** used, and then restart.
8554 # For security reasons, it is highly recommended that you always
8555 # use absolute paths for naming shared libraries, and exclude the
8556 # DT_RUNPATH tag from executables and libraries. But doing so
8557 # requires that you compile everything twice, which is a pain.
8558 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8570 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8573 hardcode_shlibpath_var=no
8577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8586 if test "$ld_shlibs" = no; then
8588 hardcode_libdir_flag_spec=
8589 export_dynamic_flag_spec=
8590 whole_archive_flag_spec=
8593 # PORTME fill in a description of your system's linker (not GNU ld)
8596 allow_undefined_flag=unsupported
8597 always_export_symbols=yes
8598 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'
8599 # Note: this linker hardcodes the directories in LIBPATH if there
8600 # are no directories specified by -L.
8601 hardcode_minus_L=yes
8602 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8603 # Neither direct hardcoding nor static linking is supported with a
8605 hardcode_direct=unsupported
8610 if test "$host_cpu" = ia64; then
8611 # On IA64, the linker does run time linking by default, so we don't
8612 # have to do anything special.
8613 aix_use_runtimelinking=no
8614 exp_sym_flag='-Bexport'
8617 # If we're using GNU nm, then we don't want the "-C" option.
8618 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8619 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8620 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'
8622 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'
8624 aix_use_runtimelinking=no
8626 # Test if we are trying to use run time linking or normal
8627 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8628 # need to do runtime linking.
8629 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8630 for ld_flag in $LDFLAGS; do
8631 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8632 aix_use_runtimelinking=yes
8639 exp_sym_flag='-bexport'
8640 no_entry_flag='-bnoentry'
8643 # When large executables or shared objects are built, AIX ld can
8644 # have problems creating the table of contents. If linking a library
8645 # or program results in "error TOC overflow" add -mminimal-toc to
8646 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8647 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8651 hardcode_direct_absolute=yes
8652 hardcode_libdir_separator=':'
8653 link_all_deplibs=yes
8654 file_list_spec='${wl}-f,'
8656 if test "$GCC" = yes; then
8657 case $host_os in aix4.[012]|aix4.[012].*)
8658 # We only want to do this on AIX 4.2 and lower, the check
8659 # below for broken collect2 doesn't work under 4.3+
8660 collect2name=`${CC} -print-prog-name=collect2`
8661 if test -f "$collect2name" &&
8662 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8664 # We have reworked collect2
8667 # We have old collect2
8668 hardcode_direct=unsupported
8669 # It fails to find uninstalled libraries when the uninstalled
8670 # path is not listed in the libpath. Setting hardcode_minus_L
8671 # to unsupported forces relinking
8672 hardcode_minus_L=yes
8673 hardcode_libdir_flag_spec='-L$libdir'
8674 hardcode_libdir_separator=
8678 shared_flag='-shared'
8679 if test "$aix_use_runtimelinking" = yes; then
8680 shared_flag="$shared_flag "'${wl}-G'
8684 if test "$host_cpu" = ia64; then
8685 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8686 # chokes on -Wl,-G. The following line is correct:
8689 if test "$aix_use_runtimelinking" = yes; then
8690 shared_flag='${wl}-G'
8692 shared_flag='${wl}-bM:SRE'
8697 export_dynamic_flag_spec='${wl}-bexpall'
8698 # It seems that -bexpall does not export symbols beginning with
8699 # underscore (_), so it is better to generate a list of symbols to export.
8700 always_export_symbols=yes
8701 if test "$aix_use_runtimelinking" = yes; then
8702 # Warning - without using the other runtime loading flags (-brtl),
8703 # -berok will link without error, but may produce a broken library.
8704 allow_undefined_flag='-berok'
8705 # Determine the default libpath from the value encoded in an
8707 cat >conftest.$ac_ext <<_ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8722 rm -f conftest.$ac_objext conftest$ac_exeext
8723 if { (ac_try="$ac_link"
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8729 $as_echo "$ac_try_echo") >&5
8730 (eval "$ac_link") 2>conftest.er1
8732 grep -v '^ *+' conftest.er1 >conftest.err
8734 cat conftest.err >&5
8735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && {
8737 test -z "$ac_c_werror_flag" ||
8738 test ! -s conftest.err
8739 } && test -s conftest$ac_exeext && {
8740 test "$cross_compiling" = yes ||
8741 $as_test_x conftest$ac_exeext
8744 lt_aix_libpath_sed='
8745 /Import File Strings/,/^$/ {
8751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8752 # Check for a 64-bit object if we didn't find anything.
8753 if test -z "$aix_libpath"; then
8754 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8757 $as_echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8763 rm -rf conftest.dSYM
8764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8765 conftest$ac_exeext conftest.$ac_ext
8766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8768 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8769 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"
8771 if test "$host_cpu" = ia64; then
8772 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8773 allow_undefined_flag="-z nodefs"
8774 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"
8776 # Determine the default libpath from the value encoded in an
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8793 rm -f conftest.$ac_objext conftest$ac_exeext
8794 if { (ac_try="$ac_link"
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800 $as_echo "$ac_try_echo") >&5
8801 (eval "$ac_link") 2>conftest.er1
8803 grep -v '^ *+' conftest.er1 >conftest.err
8805 cat conftest.err >&5
8806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_c_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest$ac_exeext && {
8811 test "$cross_compiling" = yes ||
8812 $as_test_x conftest$ac_exeext
8815 lt_aix_libpath_sed='
8816 /Import File Strings/,/^$/ {
8822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8823 # Check for a 64-bit object if we didn't find anything.
8824 if test -z "$aix_libpath"; then
8825 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828 $as_echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8834 rm -rf conftest.dSYM
8835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8836 conftest$ac_exeext conftest.$ac_ext
8837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8839 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8840 # Warning - without using the other run time loading flags,
8841 # -berok will link without error, but may produce a broken library.
8842 no_undefined_flag=' ${wl}-bernotok'
8843 allow_undefined_flag=' ${wl}-berok'
8844 # Exported symbols can be pulled into shared objects from archives
8845 whole_archive_flag_spec='$convenience'
8846 archive_cmds_need_lc=yes
8847 # This is similar to how AIX traditionally builds its shared libraries.
8848 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'
8856 # see comment about AmigaOS4 .so support
8857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8858 archive_expsym_cmds=''
8861 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)'
8862 hardcode_libdir_flag_spec='-L$libdir'
8863 hardcode_minus_L=yes
8869 export_dynamic_flag_spec=-rdynamic
8872 cygwin* | mingw* | pw32* | cegcc*)
8873 # When not using gcc, we currently assume that we are using
8874 # Microsoft Visual C++.
8875 # hardcode_libdir_flag_spec is actually meaningless, as there is
8876 # no search path for DLLs.
8877 hardcode_libdir_flag_spec=' '
8878 allow_undefined_flag=unsupported
8879 # Tell ltmain to make .lib files, not .a files.
8881 # Tell ltmain to make .dll files, not .so files.
8883 # FIXME: Setting linknames here is a bad hack.
8884 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8885 # The linker will automatically build a .lib file if we build a DLL.
8886 old_archive_from_new_cmds='true'
8887 # FIXME: Should let the user specify the lib program.
8888 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8889 fix_srcfile_path='`cygpath -w "$srcfile"`'
8890 enable_shared_with_static_runtimes=yes
8893 darwin* | rhapsody*)
8896 archive_cmds_need_lc=no
8898 hardcode_automatic=yes
8899 hardcode_shlibpath_var=unsupported
8900 whole_archive_flag_spec=''
8901 link_all_deplibs=yes
8902 allow_undefined_flag="$_lt_dar_allow_undefined"
8903 case $cc_basename in
8904 ifort*) _lt_dar_can_shared=yes ;;
8905 *) _lt_dar_can_shared=$GCC ;;
8907 if test "$_lt_dar_can_shared" = "yes"; then
8908 output_verbose_link_cmd=echo
8909 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8910 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8911 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}"
8912 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}"
8921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 hardcode_libdir_flag_spec='-L$libdir'
8923 hardcode_shlibpath_var=no
8930 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8931 # support. Future versions do this automatically, but an explicit c++rt0.o
8932 # does not break anything, and helps significantly (at the cost of a little
8935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8936 hardcode_libdir_flag_spec='-R$libdir'
8938 hardcode_shlibpath_var=no
8941 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8945 hardcode_minus_L=yes
8946 hardcode_shlibpath_var=no
8949 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8950 freebsd* | dragonfly*)
8951 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8952 hardcode_libdir_flag_spec='-R$libdir'
8954 hardcode_shlibpath_var=no
8958 if test "$GCC" = yes; then
8959 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'
8961 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'
8963 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8964 hardcode_libdir_separator=:
8967 # hardcode_minus_L: Not really in the search PATH,
8968 # but as the default location of the library.
8969 hardcode_minus_L=yes
8970 export_dynamic_flag_spec='${wl}-E'
8974 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8975 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8977 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8979 if test "$with_gnu_ld" = no; then
8980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8981 hardcode_libdir_flag_spec_ld='+b $libdir'
8982 hardcode_libdir_separator=:
8984 hardcode_direct_absolute=yes
8985 export_dynamic_flag_spec='${wl}-E'
8986 # hardcode_minus_L: Not really in the search PATH,
8987 # but as the default location of the library.
8988 hardcode_minus_L=yes
8993 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8996 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8999 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9002 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9008 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9011 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9014 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9018 if test "$with_gnu_ld" = no; then
9019 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9020 hardcode_libdir_separator=:
9025 hardcode_shlibpath_var=no
9029 hardcode_direct_absolute=yes
9030 export_dynamic_flag_spec='${wl}-E'
9032 # hardcode_minus_L: Not really in the search PATH,
9033 # but as the default location of the library.
9034 hardcode_minus_L=yes
9040 irix5* | irix6* | nonstopux*)
9041 if test "$GCC" = yes; then
9042 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'
9043 # Try to use the -exported_symbol ld option, if it does not
9044 # work, assume that -exports_file does not work either and
9045 # implicitly export all symbols.
9046 save_LDFLAGS="$LDFLAGS"
9047 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9048 cat >conftest.$ac_ext <<_ACEOF
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (ac_try="$ac_link"
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9058 $as_echo "$ac_try_echo") >&5
9059 (eval "$ac_link") 2>conftest.er1
9061 grep -v '^ *+' conftest.er1 >conftest.err
9063 cat conftest.err >&5
9064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } && {
9066 test -z "$ac_c_werror_flag" ||
9067 test ! -s conftest.err
9068 } && test -s conftest$ac_exeext && {
9069 test "$cross_compiling" = yes ||
9070 $as_test_x conftest$ac_exeext
9072 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'
9075 $as_echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9081 rm -rf conftest.dSYM
9082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9083 conftest$ac_exeext conftest.$ac_ext
9084 LDFLAGS="$save_LDFLAGS"
9086 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'
9087 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'
9089 archive_cmds_need_lc='no'
9090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9091 hardcode_libdir_separator=:
9093 link_all_deplibs=yes
9097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9100 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9102 hardcode_libdir_flag_spec='-R$libdir'
9104 hardcode_shlibpath_var=no
9108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111 hardcode_libdir_separator=:
9112 hardcode_shlibpath_var=no
9119 if test -f /usr/libexec/ld.so; then
9121 hardcode_shlibpath_var=no
9122 hardcode_direct_absolute=yes
9123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9124 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9125 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9126 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9127 export_dynamic_flag_spec='${wl}-E'
9130 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9132 hardcode_libdir_flag_spec='-R$libdir'
9135 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9146 hardcode_libdir_flag_spec='-L$libdir'
9147 hardcode_minus_L=yes
9148 allow_undefined_flag=unsupported
9149 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'
9150 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9154 if test "$GCC" = yes; then
9155 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9156 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'
9158 allow_undefined_flag=' -expect_unresolved \*'
9159 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'
9161 archive_cmds_need_lc='no'
9162 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9163 hardcode_libdir_separator=:
9166 osf4* | osf5*) # as osf3* with the addition of -msym flag
9167 if test "$GCC" = yes; then
9168 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9169 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'
9170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9172 allow_undefined_flag=' -expect_unresolved \*'
9173 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'
9174 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~
9175 $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'
9177 # Both c and cxx compiler support -rpath directly
9178 hardcode_libdir_flag_spec='-rpath $libdir'
9180 archive_cmds_need_lc='no'
9181 hardcode_libdir_separator=:
9185 no_undefined_flag=' -z defs'
9186 if test "$GCC" = yes; then
9188 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9190 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9192 case `$CC -V 2>&1` in
9195 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9196 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9197 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9201 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9202 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9203 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9207 hardcode_libdir_flag_spec='-R$libdir'
9208 hardcode_shlibpath_var=no
9210 solaris2.[0-5] | solaris2.[0-5].*) ;;
9212 # The compiler driver will combine and reorder linker options,
9213 # but understands `-z linker_flag'. GCC discards it without `$wl',
9214 # but is careful enough not to reorder.
9215 # Supported since Solaris 2.6 (maybe 2.5.1?)
9216 if test "$GCC" = yes; then
9217 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9219 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9223 link_all_deplibs=yes
9227 if test "x$host_vendor" = xsequent; then
9228 # Use $CC to link under sequent, because it throws in some extra .o
9229 # files that make .init and .fini sections work.
9230 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9232 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9234 hardcode_libdir_flag_spec='-L$libdir'
9236 hardcode_minus_L=yes
9237 hardcode_shlibpath_var=no
9241 case $host_vendor in
9243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244 hardcode_direct=yes # is this really true???
9247 ## LD is ld it makes a PLAMLIB
9248 ## CC just makes a GrossModule.
9249 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9250 reload_cmds='$CC -r -o $output$reload_objs'
9254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9258 runpath_var='LD_RUN_PATH'
9259 hardcode_shlibpath_var=no
9263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264 hardcode_shlibpath_var=no
9265 export_dynamic_flag_spec='-Bexport'
9269 if test -d /usr/nec; then
9270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271 hardcode_shlibpath_var=no
9272 runpath_var=LD_RUN_PATH
9273 hardcode_runpath_var=yes
9278 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9279 no_undefined_flag='${wl}-z,text'
9280 archive_cmds_need_lc=no
9281 hardcode_shlibpath_var=no
9282 runpath_var='LD_RUN_PATH'
9284 if test "$GCC" = yes; then
9285 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9288 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9289 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9293 sysv5* | sco3.2v5* | sco5v6*)
9294 # Note: We can NOT use -z defs as we might desire, because we do not
9295 # link with -lc, and that would cause any symbols used from libc to
9296 # always be unresolved, which means just about no library would
9297 # ever link correctly. If we're not using GNU ld we use -z text
9298 # though, which does catch some bad symbols but isn't as heavy-handed
9300 no_undefined_flag='${wl}-z,text'
9301 allow_undefined_flag='${wl}-z,nodefs'
9302 archive_cmds_need_lc=no
9303 hardcode_shlibpath_var=no
9304 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9305 hardcode_libdir_separator=':'
9306 link_all_deplibs=yes
9307 export_dynamic_flag_spec='${wl}-Bexport'
9308 runpath_var='LD_RUN_PATH'
9310 if test "$GCC" = yes; then
9311 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9314 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9315 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_libdir_flag_spec='-L$libdir'
9322 hardcode_shlibpath_var=no
9330 if test x$host_vendor = xsni; then
9332 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9333 export_dynamic_flag_spec='${wl}-Blargedynsym'
9339 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9340 $as_echo "$ld_shlibs" >&6; }
9341 test "$ld_shlibs" = no && can_build_shared=no
9343 with_gnu_ld=$with_gnu_ld
9360 # Do we need to explicitly link libc?
9362 case "x$archive_cmds_need_lc" in
9364 # Assume -lc should be added
9365 archive_cmds_need_lc=yes
9367 if test "$enable_shared" = yes && test "$GCC" = yes; then
9368 case $archive_cmds in
9370 # FIXME: we may have to deal with multi-command sequences.
9373 # Test whether the compiler implicitly links with -lc since on some
9374 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9375 # to ld, don't add -lc before -lgcc.
9376 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9377 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9382 (eval $ac_compile) 2>&5
9384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); } 2>conftest.err; then
9388 libobjs=conftest.$ac_objext
9390 wl=$lt_prog_compiler_wl
9391 pic_flag=$lt_prog_compiler_pic
9397 lt_save_allow_undefined_flag=$allow_undefined_flag
9398 allow_undefined_flag=
9399 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9400 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }
9405 archive_cmds_need_lc=no
9407 archive_cmds_need_lc=yes
9409 allow_undefined_flag=$lt_save_allow_undefined_flag
9411 cat conftest.err 1>&5
9414 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9415 $as_echo "$archive_cmds_need_lc" >&6; }
9578 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9579 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9581 if test "$GCC" = yes; then
9583 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9584 *) lt_awk_arg="/^libraries:/" ;;
9586 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9587 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9588 # if the path contains ";" then we assume it to be the separator
9589 # otherwise default to the standard path separator (i.e. ":") - it is
9590 # assumed that no part of a normal pathname contains ";" but that should
9591 # okay in the real world where ";" in dirpaths is itself problematic.
9592 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9594 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9596 # Ok, now we have the path, separated by spaces, we can step through it
9597 # and add multilib dir if necessary.
9598 lt_tmp_lt_search_path_spec=
9599 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9600 for lt_sys_path in $lt_search_path_spec; do
9601 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9602 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9604 test -d "$lt_sys_path" && \
9605 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9608 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9609 BEGIN {RS=" "; FS="/|\n";} {
9612 for (lt_i = NF; lt_i > 0; lt_i--) {
9613 if ($lt_i != "" && $lt_i != ".") {
9614 if ($lt_i == "..") {
9617 if (lt_count == 0) {
9618 lt_foo="/" $lt_i lt_foo;
9625 if (lt_foo != "") { lt_freq[lt_foo]++; }
9626 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9628 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9630 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9633 libname_spec='lib$name'
9641 shlibpath_overrides_runpath=unknown
9643 dynamic_linker="$host_os ld.so"
9644 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9645 need_lib_prefix=unknown
9646 hardcode_into_libs=no
9648 # when you set need_version to no, make sure it does not cause -set_version
9649 # flags to be left without arguments
9650 need_version=unknown
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9656 shlibpath_var=LIBPATH
9658 # AIX 3 has no versioning support, so we append a major version to the name.
9659 soname_spec='${libname}${release}${shared_ext}$major'
9666 hardcode_into_libs=yes
9667 if test "$host_cpu" = ia64; then
9668 # AIX 5 supports IA64
9669 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9670 shlibpath_var=LD_LIBRARY_PATH
9672 # With GCC up to 2.95.x, collect2 would create an import file
9673 # for dependence libraries. The import file would start with
9674 # the line `#! .'. This would cause the generated library to
9675 # depend on `.', always an invalid library. This was fixed in
9676 # development snapshots of GCC prior to 3.0.
9678 aix4 | aix4.[01] | aix4.[01].*)
9679 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9681 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9688 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9689 # soname into executable. Probably we can add versioning support to
9690 # collect2, so additional links can be useful in future.
9691 if test "$aix_use_runtimelinking" = yes; then
9692 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9693 # instead of lib<name>.a to let people know that these are not
9694 # typical AIX shared libraries.
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697 # We preserve .a as extension for shared libraries through AIX4.2
9698 # and later when we are not doing run time linking.
9699 library_names_spec='${libname}${release}.a $libname.a'
9700 soname_spec='${libname}${release}${shared_ext}$major'
9702 shlibpath_var=LIBPATH
9709 # Since July 2007 AmigaOS4 officially supports .so libraries.
9710 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714 library_names_spec='$libname.ixlibrary $libname.a'
9715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9716 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'
9722 library_names_spec='${libname}${shared_ext}'
9723 dynamic_linker="$host_os ld.so"
9724 shlibpath_var=LIBRARY_PATH
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731 soname_spec='${libname}${release}${shared_ext}$major'
9732 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9735 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9736 # the default ld.so.conf also contains /usr/contrib/lib and
9737 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9738 # libtool to hard-code these into programs
9741 cygwin* | mingw* | pw32* | cegcc*)
9742 version_type=windows
9747 case $GCC,$host_os in
9748 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9749 library_names_spec='$libname.dll.a'
9750 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9751 postinstall_cmds='base_file=`basename \${file}`~
9752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9753 dldir=$destdir/`dirname \$dlpath`~
9754 test -d \$dldir || mkdir -p \$dldir~
9755 $install_prog $dir/$dlname \$dldir/$dlname~
9756 chmod a+x \$dldir/$dlname~
9757 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9758 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9761 dlpath=$dir/\$dldll~
9763 shlibpath_overrides_runpath=yes
9767 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9769 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9772 # MinGW DLLs use traditional 'lib' prefix
9773 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9774 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9775 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9776 # It is most probably a Windows format PATH printed by
9777 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9778 # path with ; separators, and with drive letters. We can handle the
9779 # drive letters (cygwin fileutils understands them), so leave them,
9780 # especially as we might pass files found there to a mingw objdump,
9781 # which wouldn't understand a cygwinified path. Ahh.
9782 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9784 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9788 # pw32 DLLs use 'pw' prefix rather than 'lib'
9789 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9795 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9798 dynamic_linker='Win32 ld.exe'
9799 # FIXME: first we should search . and the directory the executable is in
9803 darwin* | rhapsody*)
9804 dynamic_linker="$host_os dyld"
9808 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9809 soname_spec='${libname}${release}${major}$shared_ext'
9810 shlibpath_overrides_runpath=yes
9811 shlibpath_var=DYLD_LIBRARY_PATH
9812 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9814 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9815 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9823 soname_spec='${libname}${release}${shared_ext}$major'
9824 shlibpath_var=LD_LIBRARY_PATH
9831 freebsd* | dragonfly*)
9832 # DragonFly does not have aout. When/if they implement a new
9833 # versioning mechanism, adjust this.
9834 if test -x /usr/bin/objformat; then
9835 objformat=`/usr/bin/objformat`
9838 freebsd[123]*) objformat=aout ;;
9842 version_type=freebsd-$objformat
9843 case $version_type in
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9854 shlibpath_var=LD_LIBRARY_PATH
9857 shlibpath_overrides_runpath=yes
9859 freebsd3.[01]* | freebsdelf3.[01]*)
9860 shlibpath_overrides_runpath=yes
9861 hardcode_into_libs=yes
9863 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9864 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9865 shlibpath_overrides_runpath=no
9866 hardcode_into_libs=yes
9868 *) # from 4.6 on, and DragonFly
9869 shlibpath_overrides_runpath=yes
9870 hardcode_into_libs=yes
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 shlibpath_var=LD_LIBRARY_PATH
9882 hardcode_into_libs=yes
9885 hpux9* | hpux10* | hpux11*)
9886 # Give a soname corresponding to the major version so that dld.sl refuses to
9887 # link against other versions.
9894 hardcode_into_libs=yes
9895 dynamic_linker="$host_os dld.so"
9896 shlibpath_var=LD_LIBRARY_PATH
9897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 soname_spec='${libname}${release}${shared_ext}$major'
9900 if test "X$HPUX_IA64_MODE" = X32; then
9901 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9903 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9909 hardcode_into_libs=yes
9910 dynamic_linker="$host_os dld.sl"
9911 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9915 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9920 dynamic_linker="$host_os dld.sl"
9921 shlibpath_var=SHLIB_PATH
9922 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9927 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9928 postinstall_cmds='chmod 555 $lib'
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=no
9940 hardcode_into_libs=yes
9943 irix5* | irix6* | nonstopux*)
9945 nonstopux*) version_type=nonstopux ;;
9947 if test "$lt_cv_prog_gnu_ld" = yes; then
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9958 irix5* | nonstopux*)
9962 case $LD in # libtool.m4 will add one of these switches to LD
9963 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9964 libsuff= shlibsuff= libmagic=32-bit;;
9965 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9966 libsuff=32 shlibsuff=N32 libmagic=N32;;
9967 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9968 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9969 *) libsuff= shlibsuff= libmagic=never-match;;
9973 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9974 shlibpath_overrides_runpath=no
9975 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9976 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9977 hardcode_into_libs=yes
9980 # No shared lib support for Linux oldld, aout, or coff.
9981 linux*oldld* | linux*aout* | linux*coff*)
9985 # This must be Linux ELF.
9986 linux* | k*bsd*-gnu)
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 shlibpath_overrides_runpath=no
9995 # Some binutils ld are patched to set DT_RUNPATH
9996 save_LDFLAGS=$LDFLAGS
9998 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9999 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (ac_try="$ac_link"
10017 case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10022 $as_echo "$ac_try_echo") >&5
10023 (eval "$ac_link") 2>conftest.er1
10025 grep -v '^ *+' conftest.er1 >conftest.err
10027 cat conftest.err >&5
10028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } && {
10030 test -z "$ac_c_werror_flag" ||
10031 test ! -s conftest.err
10032 } && test -s conftest$ac_exeext && {
10033 test "$cross_compiling" = yes ||
10034 $as_test_x conftest$ac_exeext
10036 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10037 shlibpath_overrides_runpath=yes
10041 $as_echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10047 rm -rf conftest.dSYM
10048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10049 conftest$ac_exeext conftest.$ac_ext
10050 LDFLAGS=$save_LDFLAGS
10051 libdir=$save_libdir
10053 # This implies no fast_install, which is unacceptable.
10054 # Some rework will be needed to allow for fast_install
10055 # before this can be enabled.
10056 hardcode_into_libs=yes
10058 # Add ABI-specific directories to the system library path.
10059 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10061 # Append ld.so.conf contents to the search path
10062 if test -f /etc/ld.so.conf; then
10063 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' ' '`
10064 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10067 # We used to test for /lib/ld.so.1 and disable shared libraries on
10068 # powerpc, because MkLinux only supported shared libraries with the
10069 # GNU dynamic linker. Since this was broken with cross compilers,
10070 # most powerpc-linux boxes support dynamic linking these days and
10071 # people can always --disable-shared, the test was removed, and we
10072 # assume the GNU/Linux dynamic linker is in use.
10073 dynamic_linker='GNU/Linux ld.so'
10080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10083 dynamic_linker='NetBSD (a.out) ld.so'
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 dynamic_linker='NetBSD ld.elf_so'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 shlibpath_overrides_runpath=yes
10091 hardcode_into_libs=yes
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 shlibpath_var=LD_LIBRARY_PATH
10098 shlibpath_overrides_runpath=yes
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 shlibpath_overrides_runpath=no
10109 hardcode_into_libs=yes
10110 dynamic_linker='ldqnx.so'
10115 sys_lib_dlsearch_path_spec="/usr/lib"
10117 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10119 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10120 *) need_version=no ;;
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10127 openbsd2.[89] | openbsd2.[89].*)
10128 shlibpath_overrides_runpath=no
10131 shlibpath_overrides_runpath=yes
10135 shlibpath_overrides_runpath=yes
10140 libname_spec='$name'
10143 library_names_spec='$libname${shared_ext} $libname.a'
10144 dynamic_linker='OS/2 ld.exe'
10145 shlibpath_var=LIBPATH
10148 osf3* | osf4* | osf5*)
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 shlibpath_var=LD_LIBRARY_PATH
10155 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10156 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 shlibpath_var=LD_LIBRARY_PATH
10170 shlibpath_overrides_runpath=yes
10171 hardcode_into_libs=yes
10172 # ldd complains unless libraries are executable
10173 postinstall_cmds='chmod +x $lib'
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10180 shlibpath_var=LD_LIBRARY_PATH
10181 shlibpath_overrides_runpath=yes
10182 if test "$with_gnu_ld" = yes; then
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 case $host_vendor in
10195 shlibpath_overrides_runpath=no
10197 runpath_var=LD_RUN_PATH
10205 shlibpath_overrides_runpath=no
10206 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10212 if test -d /usr/nec ;then
10214 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10215 soname_spec='$libname${shared_ext}.$major'
10216 shlibpath_var=LD_LIBRARY_PATH
10220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10221 version_type=freebsd-elf
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 shlibpath_var=LD_LIBRARY_PATH
10227 shlibpath_overrides_runpath=yes
10228 hardcode_into_libs=yes
10229 if test "$with_gnu_ld" = yes; then
10230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10232 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10235 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10239 sys_lib_dlsearch_path_spec='/usr/lib'
10243 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=no
10250 hardcode_into_libs=yes
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 shlibpath_var=LD_LIBRARY_PATH
10264 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10265 $as_echo "$dynamic_linker" >&6; }
10266 test "$dynamic_linker" = no && can_build_shared=no
10268 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10269 if test "$GCC" = yes; then
10270 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10273 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10274 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10276 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10277 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10366 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10367 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10369 if test -n "$hardcode_libdir_flag_spec" ||
10370 test -n "$runpath_var" ||
10371 test "X$hardcode_automatic" = "Xyes" ; then
10373 # We can hardcode non-existent directories.
10374 if test "$hardcode_direct" != no &&
10375 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10376 # have to relink, otherwise we might link with an installed library
10377 # when we should be linking with a yet-to-be-installed one
10378 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10379 test "$hardcode_minus_L" != no; then
10380 # Linking always hardcodes the temporary library directory.
10381 hardcode_action=relink
10383 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10384 hardcode_action=immediate
10387 # We cannot hardcode anything, or else we can only hardcode existing
10389 hardcode_action=unsupported
10391 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10392 $as_echo "$hardcode_action" >&6; }
10394 if test "$hardcode_action" = relink ||
10395 test "$inherit_rpath" = yes; then
10396 # Fast installation is not supported
10397 enable_fast_install=no
10398 elif test "$shlibpath_overrides_runpath" = yes ||
10399 test "$enable_shared" = no; then
10400 # Fast installation is not necessary
10401 enable_fast_install=needless
10409 if test "x$enable_dlopen" != xyes; then
10410 enable_dlopen=unknown
10411 enable_dlopen_self=unknown
10412 enable_dlopen_self_static=unknown
10419 lt_cv_dlopen="load_add_on"
10421 lt_cv_dlopen_self=yes
10424 mingw* | pw32* | cegcc*)
10425 lt_cv_dlopen="LoadLibrary"
10430 lt_cv_dlopen="dlopen"
10435 # if libdl is installed we need to link against it
10436 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10437 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10438 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10439 $as_echo_n "(cached) " >&6
10441 ac_check_lib_save_LIBS=$LIBS
10443 cat >conftest.$ac_ext <<_ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10450 /* Override any GCC internal prototype to avoid an error.
10451 Use char because int might match the return type of a GCC
10452 builtin and then its argument prototype would still apply. */
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (ac_try="$ac_link"
10467 case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10472 $as_echo "$ac_try_echo") >&5
10473 (eval "$ac_link") 2>conftest.er1
10475 grep -v '^ *+' conftest.er1 >conftest.err
10477 cat conftest.err >&5
10478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && {
10480 test -z "$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 } && test -s conftest$ac_exeext && {
10483 test "$cross_compiling" = yes ||
10484 $as_test_x conftest$ac_exeext
10486 ac_cv_lib_dl_dlopen=yes
10488 $as_echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_cv_lib_dl_dlopen=no
10494 rm -rf conftest.dSYM
10495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LIBS=$ac_check_lib_save_LIBS
10499 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10500 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10501 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10502 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10505 lt_cv_dlopen="dyld"
10507 lt_cv_dlopen_self=yes
10514 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10515 $as_echo_n "checking for shl_load... " >&6; }
10516 if test "${ac_cv_func_shl_load+set}" = set; then
10517 $as_echo_n "(cached) " >&6
10519 cat >conftest.$ac_ext <<_ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10527 #define shl_load innocuous_shl_load
10529 /* System header to define __stub macros and hopefully few prototypes,
10530 which can conflict with char shl_load (); below.
10531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10532 <limits.h> exists even on freestanding compilers. */
10535 # include <limits.h>
10537 # include <assert.h>
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10549 /* The GNU C library defines this for functions which it implements
10550 to always fail with ENOSYS. Some functions are actually named
10551 something starting with __ and the normal name is an alias. */
10552 #if defined __stub_shl_load || defined __stub___shl_load
10559 return shl_load ();
10564 rm -f conftest.$ac_objext conftest$ac_exeext
10565 if { (ac_try="$ac_link"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10571 $as_echo "$ac_try_echo") >&5
10572 (eval "$ac_link") 2>conftest.er1
10574 grep -v '^ *+' conftest.er1 >conftest.err
10576 cat conftest.err >&5
10577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } && {
10579 test -z "$ac_c_werror_flag" ||
10580 test ! -s conftest.err
10581 } && test -s conftest$ac_exeext && {
10582 test "$cross_compiling" = yes ||
10583 $as_test_x conftest$ac_exeext
10585 ac_cv_func_shl_load=yes
10587 $as_echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 ac_cv_func_shl_load=no
10593 rm -rf conftest.dSYM
10594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10595 conftest$ac_exeext conftest.$ac_ext
10597 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10598 $as_echo "$ac_cv_func_shl_load" >&6; }
10599 if test "x$ac_cv_func_shl_load" = x""yes; then
10600 lt_cv_dlopen="shl_load"
10602 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10603 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10604 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10605 $as_echo_n "(cached) " >&6
10607 ac_check_lib_save_LIBS=$LIBS
10609 cat >conftest.$ac_ext <<_ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10616 /* Override any GCC internal prototype to avoid an error.
10617 Use char because int might match the return type of a GCC
10618 builtin and then its argument prototype would still apply. */
10626 return shl_load ();
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10638 $as_echo "$ac_try_echo") >&5
10639 (eval "$ac_link") 2>conftest.er1
10641 grep -v '^ *+' conftest.er1 >conftest.err
10643 cat conftest.err >&5
10644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest$ac_exeext && {
10649 test "$cross_compiling" = yes ||
10650 $as_test_x conftest$ac_exeext
10652 ac_cv_lib_dld_shl_load=yes
10654 $as_echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 ac_cv_lib_dld_shl_load=no
10660 rm -rf conftest.dSYM
10661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10662 conftest$ac_exeext conftest.$ac_ext
10663 LIBS=$ac_check_lib_save_LIBS
10665 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10666 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10667 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10668 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10670 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10671 $as_echo_n "checking for dlopen... " >&6; }
10672 if test "${ac_cv_func_dlopen+set}" = set; then
10673 $as_echo_n "(cached) " >&6
10675 cat >conftest.$ac_ext <<_ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10683 #define dlopen innocuous_dlopen
10685 /* System header to define __stub macros and hopefully few prototypes,
10686 which can conflict with char dlopen (); below.
10687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688 <limits.h> exists even on freestanding compilers. */
10691 # include <limits.h>
10693 # include <assert.h>
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10705 /* The GNU C library defines this for functions which it implements
10706 to always fail with ENOSYS. Some functions are actually named
10707 something starting with __ and the normal name is an alias. */
10708 #if defined __stub_dlopen || defined __stub___dlopen
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (ac_try="$ac_link"
10722 case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10727 $as_echo "$ac_try_echo") >&5
10728 (eval "$ac_link") 2>conftest.er1
10730 grep -v '^ *+' conftest.er1 >conftest.err
10732 cat conftest.err >&5
10733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } && {
10735 test -z "$ac_c_werror_flag" ||
10736 test ! -s conftest.err
10737 } && test -s conftest$ac_exeext && {
10738 test "$cross_compiling" = yes ||
10739 $as_test_x conftest$ac_exeext
10741 ac_cv_func_dlopen=yes
10743 $as_echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 ac_cv_func_dlopen=no
10749 rm -rf conftest.dSYM
10750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10751 conftest$ac_exeext conftest.$ac_ext
10753 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10754 $as_echo "$ac_cv_func_dlopen" >&6; }
10755 if test "x$ac_cv_func_dlopen" = x""yes; then
10756 lt_cv_dlopen="dlopen"
10758 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10759 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10760 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10761 $as_echo_n "(cached) " >&6
10763 ac_check_lib_save_LIBS=$LIBS
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (ac_try="$ac_link"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10794 $as_echo "$ac_try_echo") >&5
10795 (eval "$ac_link") 2>conftest.er1
10797 grep -v '^ *+' conftest.er1 >conftest.err
10799 cat conftest.err >&5
10800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest$ac_exeext && {
10805 test "$cross_compiling" = yes ||
10806 $as_test_x conftest$ac_exeext
10808 ac_cv_lib_dl_dlopen=yes
10810 $as_echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_cv_lib_dl_dlopen=no
10816 rm -rf conftest.dSYM
10817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10818 conftest$ac_exeext conftest.$ac_ext
10819 LIBS=$ac_check_lib_save_LIBS
10821 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10823 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10826 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10827 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10828 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10829 $as_echo_n "(cached) " >&6
10831 ac_check_lib_save_LIBS=$LIBS
10832 LIBS="-lsvld $LIBS"
10833 cat >conftest.$ac_ext <<_ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10840 /* Override any GCC internal prototype to avoid an error.
10841 Use char because int might match the return type of a GCC
10842 builtin and then its argument prototype would still apply. */
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (ac_try="$ac_link"
10857 case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10862 $as_echo "$ac_try_echo") >&5
10863 (eval "$ac_link") 2>conftest.er1
10865 grep -v '^ *+' conftest.er1 >conftest.err
10867 cat conftest.err >&5
10868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } && {
10870 test -z "$ac_c_werror_flag" ||
10871 test ! -s conftest.err
10872 } && test -s conftest$ac_exeext && {
10873 test "$cross_compiling" = yes ||
10874 $as_test_x conftest$ac_exeext
10876 ac_cv_lib_svld_dlopen=yes
10878 $as_echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10881 ac_cv_lib_svld_dlopen=no
10884 rm -rf conftest.dSYM
10885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10886 conftest$ac_exeext conftest.$ac_ext
10887 LIBS=$ac_check_lib_save_LIBS
10889 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10890 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10891 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10892 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10894 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10895 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10896 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10897 $as_echo_n "(cached) " >&6
10899 ac_check_lib_save_LIBS=$LIBS
10901 cat >conftest.$ac_ext <<_ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10918 return dld_link ();
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (ac_try="$ac_link"
10925 case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10930 $as_echo "$ac_try_echo") >&5
10931 (eval "$ac_link") 2>conftest.er1
10933 grep -v '^ *+' conftest.er1 >conftest.err
10935 cat conftest.err >&5
10936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && {
10938 test -z "$ac_c_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest$ac_exeext && {
10941 test "$cross_compiling" = yes ||
10942 $as_test_x conftest$ac_exeext
10944 ac_cv_lib_dld_dld_link=yes
10946 $as_echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10949 ac_cv_lib_dld_dld_link=no
10952 rm -rf conftest.dSYM
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10957 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10958 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10959 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10960 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10981 if test "x$lt_cv_dlopen" != xno; then
10987 case $lt_cv_dlopen in
10989 save_CPPFLAGS="$CPPFLAGS"
10990 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10992 save_LDFLAGS="$LDFLAGS"
10993 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10996 LIBS="$lt_cv_dlopen_libs $LIBS"
10998 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10999 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11000 if test "${lt_cv_dlopen_self+set}" = set; then
11001 $as_echo_n "(cached) " >&6
11003 if test "$cross_compiling" = yes; then :
11004 lt_cv_dlopen_self=cross
11006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11007 lt_status=$lt_dlunknown
11008 cat > conftest.$ac_ext <<_LT_EOF
11009 #line 11009 "configure"
11010 #include "confdefs.h"
11019 # define LT_DLGLOBAL RTLD_GLOBAL
11022 # define LT_DLGLOBAL DL_GLOBAL
11024 # define LT_DLGLOBAL 0
11028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11029 find out it does not work in some platform. */
11030 #ifndef LT_DLLAZY_OR_NOW
11032 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11035 # define LT_DLLAZY_OR_NOW DL_LAZY
11038 # define LT_DLLAZY_OR_NOW RTLD_NOW
11041 # define LT_DLLAZY_OR_NOW DL_NOW
11043 # define LT_DLLAZY_OR_NOW 0
11050 void fnord() { int i=42;}
11053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11054 int status = $lt_dlunknown;
11058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11059 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11060 /* dlclose (self); */
11068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11069 (eval $ac_link) 2>&5
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11073 (./conftest; exit; ) >&5 2>/dev/null
11075 case x$lt_status in
11076 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11077 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11078 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11081 # compilation failed
11082 lt_cv_dlopen_self=no
11089 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11090 $as_echo "$lt_cv_dlopen_self" >&6; }
11092 if test "x$lt_cv_dlopen_self" = xyes; then
11093 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11094 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11095 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11096 if test "${lt_cv_dlopen_self_static+set}" = set; then
11097 $as_echo_n "(cached) " >&6
11099 if test "$cross_compiling" = yes; then :
11100 lt_cv_dlopen_self_static=cross
11102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11103 lt_status=$lt_dlunknown
11104 cat > conftest.$ac_ext <<_LT_EOF
11105 #line 11105 "configure"
11106 #include "confdefs.h"
11115 # define LT_DLGLOBAL RTLD_GLOBAL
11118 # define LT_DLGLOBAL DL_GLOBAL
11120 # define LT_DLGLOBAL 0
11124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11125 find out it does not work in some platform. */
11126 #ifndef LT_DLLAZY_OR_NOW
11128 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11131 # define LT_DLLAZY_OR_NOW DL_LAZY
11134 # define LT_DLLAZY_OR_NOW RTLD_NOW
11137 # define LT_DLLAZY_OR_NOW DL_NOW
11139 # define LT_DLLAZY_OR_NOW 0
11146 void fnord() { int i=42;}
11149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11150 int status = $lt_dlunknown;
11154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11155 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11156 /* dlclose (self); */
11164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11165 (eval $ac_link) 2>&5
11167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11169 (./conftest; exit; ) >&5 2>/dev/null
11171 case x$lt_status in
11172 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11173 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11174 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11177 # compilation failed
11178 lt_cv_dlopen_self_static=no
11185 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11186 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11189 CPPFLAGS="$save_CPPFLAGS"
11190 LDFLAGS="$save_LDFLAGS"
11195 case $lt_cv_dlopen_self in
11196 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11197 *) enable_dlopen_self=unknown ;;
11200 case $lt_cv_dlopen_self_static in
11201 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11202 *) enable_dlopen_self_static=unknown ;;
11224 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11225 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11226 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11227 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11228 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11229 { $as_echo "$as_me:$LINENO: result: yes" >&5
11230 $as_echo "yes" >&6; }
11232 # FIXME - insert some real tests, host_os isn't really good enough
11235 if test -n "$STRIP" ; then
11236 striplib="$STRIP -x"
11237 old_striplib="$STRIP -S"
11238 { $as_echo "$as_me:$LINENO: result: yes" >&5
11239 $as_echo "yes" >&6; }
11241 { $as_echo "$as_me:$LINENO: result: no" >&5
11242 $as_echo "no" >&6; }
11246 { $as_echo "$as_me:$LINENO: result: no" >&5
11247 $as_echo "no" >&6; }
11263 # Report which library types will actually be built
11264 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11265 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11266 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11267 $as_echo "$can_build_shared" >&6; }
11269 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11270 $as_echo_n "checking whether to build shared libraries... " >&6; }
11271 test "$can_build_shared" = "no" && enable_shared=no
11273 # On AIX, shared libraries and static libraries use the same namespace, and
11274 # are all built from PIC.
11277 test "$enable_shared" = yes && enable_static=no
11278 if test -n "$RANLIB"; then
11279 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11280 postinstall_cmds='$RANLIB $lib'
11285 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11286 test "$enable_shared" = yes && enable_static=no
11290 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11291 $as_echo "$enable_shared" >&6; }
11293 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11294 $as_echo_n "checking whether to build static libraries... " >&6; }
11295 # Make sure either enable_shared or enable_static is yes.
11296 test "$enable_shared" = yes || enable_static=yes
11297 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11298 $as_echo "$enable_static" >&6; }
11305 ac_cpp='$CPP $CPPFLAGS'
11306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11324 ac_config_commands="$ac_config_commands libtool"
11329 # Only expand once:
11334 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11335 if test -n "$ac_tool_prefix"; then
11336 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11337 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11339 $as_echo_n "checking for $ac_word... " >&6; }
11340 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11341 $as_echo_n "(cached) " >&6
11343 case $PKG_CONFIG in
11345 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349 for as_dir in $PATH
11352 test -z "$as_dir" && as_dir=.
11353 for ac_exec_ext in '' $ac_executable_extensions; do
11354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11355 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11366 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11367 if test -n "$PKG_CONFIG"; then
11368 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11369 $as_echo "$PKG_CONFIG" >&6; }
11371 { $as_echo "$as_me:$LINENO: result: no" >&5
11372 $as_echo "no" >&6; }
11377 if test -z "$ac_cv_path_PKG_CONFIG"; then
11378 ac_pt_PKG_CONFIG=$PKG_CONFIG
11379 # Extract the first word of "pkg-config", so it can be a program name with args.
11380 set dummy pkg-config; ac_word=$2
11381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11384 $as_echo_n "(cached) " >&6
11386 case $ac_pt_PKG_CONFIG in
11388 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11409 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11410 if test -n "$ac_pt_PKG_CONFIG"; then
11411 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11412 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11414 { $as_echo "$as_me:$LINENO: result: no" >&5
11415 $as_echo "no" >&6; }
11418 if test "x$ac_pt_PKG_CONFIG" = x; then
11421 case $cross_compiling:$ac_tool_warned in
11423 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11425 ac_tool_warned=yes ;;
11427 PKG_CONFIG=$ac_pt_PKG_CONFIG
11430 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11434 if test -n "$PKG_CONFIG"; then
11435 _pkg_min_version=0.9.0
11436 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11437 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11438 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11439 { $as_echo "$as_me:$LINENO: result: yes" >&5
11440 $as_echo "yes" >&6; }
11442 { $as_echo "$as_me:$LINENO: result: no" >&5
11443 $as_echo "no" >&6; }
11449 DATE="`date '+%a %d %B %Y'`"
11452 # Since we should not permanently alter user environment variables, we'll
11453 # save the contents of the original flags in case the user has set them
11454 # prior to running this configue script.
11455 CPPFLAGS_SAVE="$CPPFLAGS"
11456 LDFLAGS_SAVE="$LDFLAGS"
11458 # Check whether --with-binutils was given.
11459 if test "${with_binutils+set}" = set; then
11460 withval=$with_binutils; BINUTILSDIR=$withval
11464 if test "$BINUTILSDIR" != ""; then
11465 LD="$BINUTILSDIR/ld"
11466 CPPFLAGS="$CPPFLAGS -I$BINUTILSDIR/include"
11468 # Check whether --with-binutils-libname was given.
11469 if test "${with_binutils_libname+set}" = set; then
11470 withval=$with_binutils_libname; BINUTILSLIB=$withval
11473 if test "$BINUTILSLIB" = ""; then
11476 LDFLAGS="$LDFLAGS -L$BINUTILSDIR/$BINUTILSLIB -Xlinker -R -Xlinker $BINUTILSDIR/$BINUTILSLIB"
11477 OP_LDFLAGS="$LDFLAGS"
11478 OP_CPPFLAGS="$CPPFLAGS"
11484 # We can't restore original flag values for CPPFLAGS and LDFLAGS until we're done
11485 # checking for bfd.h and libiberty.h (in AX_BINUTILS).
11488 ac_cpp='$CPP $CPPFLAGS'
11489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11492 if test -n "$ac_tool_prefix"; then
11493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if test "${ac_cv_prog_CC+set}" = set; then
11498 $as_echo_n "(cached) " >&6
11500 if test -n "$CC"; then
11501 ac_cv_prog_CC="$CC" # Let the user override the test.
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 if test -n "$CC"; then
11522 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11523 $as_echo "$CC" >&6; }
11525 { $as_echo "$as_me:$LINENO: result: no" >&5
11526 $as_echo "no" >&6; }
11531 if test -z "$ac_cv_prog_CC"; then
11533 # Extract the first word of "gcc", so it can be a program name with args.
11534 set dummy gcc; ac_word=$2
11535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11538 $as_echo_n "(cached) " >&6
11540 if test -n "$ac_ct_CC"; then
11541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11550 ac_cv_prog_ac_ct_CC="gcc"
11551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11561 if test -n "$ac_ct_CC"; then
11562 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11563 $as_echo "$ac_ct_CC" >&6; }
11565 { $as_echo "$as_me:$LINENO: result: no" >&5
11566 $as_echo "no" >&6; }
11569 if test "x$ac_ct_CC" = x; then
11572 case $cross_compiling:$ac_tool_warned in
11574 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11576 ac_tool_warned=yes ;;
11581 CC="$ac_cv_prog_CC"
11584 if test -z "$CC"; then
11585 if test -n "$ac_tool_prefix"; then
11586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11587 set dummy ${ac_tool_prefix}cc; ac_word=$2
11588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11589 $as_echo_n "checking for $ac_word... " >&6; }
11590 if test "${ac_cv_prog_CC+set}" = set; then
11591 $as_echo_n "(cached) " >&6
11593 if test -n "$CC"; then
11594 ac_cv_prog_CC="$CC" # Let the user override the test.
11596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
11602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11603 ac_cv_prog_CC="${ac_tool_prefix}cc"
11604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 if test -n "$CC"; then
11615 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11616 $as_echo "$CC" >&6; }
11618 { $as_echo "$as_me:$LINENO: result: no" >&5
11619 $as_echo "no" >&6; }
11625 if test -z "$CC"; then
11626 # Extract the first word of "cc", so it can be a program name with args.
11627 set dummy cc; ac_word=$2
11628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11629 $as_echo_n "checking for $ac_word... " >&6; }
11630 if test "${ac_cv_prog_CC+set}" = set; then
11631 $as_echo_n "(cached) " >&6
11633 if test -n "$CC"; then
11634 ac_cv_prog_CC="$CC" # Let the user override the test.
11636 ac_prog_rejected=no
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11645 ac_prog_rejected=yes
11649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 if test $ac_prog_rejected = yes; then
11657 # We found a bogon in the path, so make sure we never use it.
11658 set dummy $ac_cv_prog_CC
11660 if test $# != 0; then
11661 # We chose a different compiler from the bogus one.
11662 # However, it has the same basename, so the bogon will be chosen
11663 # first if we set CC to just the basename; use the full file name.
11665 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11671 if test -n "$CC"; then
11672 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11673 $as_echo "$CC" >&6; }
11675 { $as_echo "$as_me:$LINENO: result: no" >&5
11676 $as_echo "no" >&6; }
11681 if test -z "$CC"; then
11682 if test -n "$ac_tool_prefix"; then
11683 for ac_prog in cl.exe
11685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if test "${ac_cv_prog_CC+set}" = set; then
11690 $as_echo_n "(cached) " >&6
11692 if test -n "$CC"; then
11693 ac_cv_prog_CC="$CC" # Let the user override the test.
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
11701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 if test -n "$CC"; then
11714 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11715 $as_echo "$CC" >&6; }
11717 { $as_echo "$as_me:$LINENO: result: no" >&5
11718 $as_echo "no" >&6; }
11722 test -n "$CC" && break
11725 if test -z "$CC"; then
11727 for ac_prog in cl.exe
11729 # Extract the first word of "$ac_prog", so it can be a program name with args.
11730 set dummy $ac_prog; ac_word=$2
11731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11732 $as_echo_n "checking for $ac_word... " >&6; }
11733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11734 $as_echo_n "(cached) " >&6
11736 if test -n "$ac_ct_CC"; then
11737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11743 test -z "$as_dir" && as_dir=.
11744 for ac_exec_ext in '' $ac_executable_extensions; do
11745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11746 ac_cv_prog_ac_ct_CC="$ac_prog"
11747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11757 if test -n "$ac_ct_CC"; then
11758 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11759 $as_echo "$ac_ct_CC" >&6; }
11761 { $as_echo "$as_me:$LINENO: result: no" >&5
11762 $as_echo "no" >&6; }
11766 test -n "$ac_ct_CC" && break
11769 if test "x$ac_ct_CC" = x; then
11772 case $cross_compiling:$ac_tool_warned in
11774 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11776 ac_tool_warned=yes ;;
11785 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11787 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11788 See \`config.log' for more details." >&5
11789 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11790 See \`config.log' for more details." >&2;}
11791 { (exit 1); exit 1; }; }; }
11793 # Provide some information about the compiler.
11794 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11797 { (ac_try="$ac_compiler --version >&5"
11798 case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11803 $as_echo "$ac_try_echo") >&5
11804 (eval "$ac_compiler --version >&5") 2>&5
11806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }
11808 { (ac_try="$ac_compiler -v >&5"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11814 $as_echo "$ac_try_echo") >&5
11815 (eval "$ac_compiler -v >&5") 2>&5
11817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }
11819 { (ac_try="$ac_compiler -V >&5"
11820 case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11825 $as_echo "$ac_try_echo") >&5
11826 (eval "$ac_compiler -V >&5") 2>&5
11828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }
11831 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11832 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11833 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11834 $as_echo_n "(cached) " >&6
11836 cat >conftest.$ac_ext <<_ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11854 rm -f conftest.$ac_objext
11855 if { (ac_try="$ac_compile"
11856 case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11861 $as_echo "$ac_try_echo") >&5
11862 (eval "$ac_compile") 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } && {
11869 test -z "$ac_c_werror_flag" ||
11870 test ! -s conftest.err
11871 } && test -s conftest.$ac_objext; then
11872 ac_compiler_gnu=yes
11874 $as_echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11884 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11885 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11886 if test $ac_compiler_gnu = yes; then
11891 ac_test_CFLAGS=${CFLAGS+set}
11892 ac_save_CFLAGS=$CFLAGS
11893 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11894 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11895 if test "${ac_cv_prog_cc_g+set}" = set; then
11896 $as_echo_n "(cached) " >&6
11898 ac_save_c_werror_flag=$ac_c_werror_flag
11899 ac_c_werror_flag=yes
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11917 rm -f conftest.$ac_objext
11918 if { (ac_try="$ac_compile"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11924 $as_echo "$ac_try_echo") >&5
11925 (eval "$ac_compile") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && {
11932 test -z "$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest.$ac_objext; then
11935 ac_cv_prog_cc_g=yes
11937 $as_echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11941 cat >conftest.$ac_ext <<_ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11956 rm -f conftest.$ac_objext
11957 if { (ac_try="$ac_compile"
11958 case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11963 $as_echo "$ac_try_echo") >&5
11964 (eval "$ac_compile") 2>conftest.er1
11966 grep -v '^ *+' conftest.er1 >conftest.err
11968 cat conftest.err >&5
11969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } && {
11971 test -z "$ac_c_werror_flag" ||
11972 test ! -s conftest.err
11973 } && test -s conftest.$ac_objext; then
11976 $as_echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11979 ac_c_werror_flag=$ac_save_c_werror_flag
11981 cat >conftest.$ac_ext <<_ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12003 $as_echo "$ac_try_echo") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest.$ac_objext; then
12014 ac_cv_prog_cc_g=yes
12016 $as_echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029 ac_c_werror_flag=$ac_save_c_werror_flag
12031 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12032 $as_echo "$ac_cv_prog_cc_g" >&6; }
12033 if test "$ac_test_CFLAGS" = set; then
12034 CFLAGS=$ac_save_CFLAGS
12035 elif test $ac_cv_prog_cc_g = yes; then
12036 if test "$GCC" = yes; then
12042 if test "$GCC" = yes; then
12048 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12049 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12050 if test "${ac_cv_prog_cc_c89+set}" = set; then
12051 $as_echo_n "(cached) " >&6
12053 ac_cv_prog_cc_c89=no
12055 cat >conftest.$ac_ext <<_ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061 #include <stdarg.h>
12063 #include <sys/types.h>
12064 #include <sys/stat.h>
12065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12066 struct buf { int x; };
12067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12068 static char *e (p, i)
12074 static char *f (char * (*g) (char **, int), char **p, ...)
12079 s = g (p, va_arg (v,int));
12084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12085 function prototypes and stuff, but not '\xHH' hex character constants.
12086 These don't provoke an error unfortunately, instead are silently treated
12087 as 'x'. The following induces an error, until -std is added to get
12088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12089 array size at least. It's necessary to write '\x00'==0 to get something
12090 that's true only with -std. */
12091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12094 inside strings and character constants. */
12096 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12098 int test (int i, double x);
12099 struct s1 {int (*f) (int a);};
12100 struct s2 {int (*f) (double a);};
12101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12107 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12112 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12115 CC="$ac_save_CC $ac_arg"
12116 rm -f conftest.$ac_objext
12117 if { (ac_try="$ac_compile"
12118 case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12123 $as_echo "$ac_try_echo") >&5
12124 (eval "$ac_compile") 2>conftest.er1
12126 grep -v '^ *+' conftest.er1 >conftest.err
12128 cat conftest.err >&5
12129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } && {
12131 test -z "$ac_c_werror_flag" ||
12132 test ! -s conftest.err
12133 } && test -s conftest.$ac_objext; then
12134 ac_cv_prog_cc_c89=$ac_arg
12136 $as_echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12142 rm -f core conftest.err conftest.$ac_objext
12143 test "x$ac_cv_prog_cc_c89" != "xno" && break
12145 rm -f conftest.$ac_ext
12150 case "x$ac_cv_prog_cc_c89" in
12152 { $as_echo "$as_me:$LINENO: result: none needed" >&5
12153 $as_echo "none needed" >&6; } ;;
12155 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12156 $as_echo "unsupported" >&6; } ;;
12158 CC="$CC $ac_cv_prog_cc_c89"
12159 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12165 ac_cpp='$CPP $CPPFLAGS'
12166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12170 depcc="$CC" am_compiler_list=
12172 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12173 $as_echo_n "checking dependency style of $depcc... " >&6; }
12174 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12175 $as_echo_n "(cached) " >&6
12177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12178 # We make a subdir and do the tests there. Otherwise we can end up
12179 # making bogus files that we don't know about and never remove. For
12180 # instance it was reported that on HP-UX the gcc test will end up
12181 # making a dummy file named `D' -- because `-MD' means `put the output
12184 # Copy depcomp to subdir because otherwise we won't find it if we're
12185 # using a relative directory.
12186 cp "$am_depcomp" conftest.dir
12188 # We will build objects and dependencies in a subdirectory because
12189 # it helps to detect inapplicable dependency modes. For instance
12190 # both Tru64's cc and ICC support -MD to output dependencies as a
12191 # side effect of compilation, but ICC will put the dependencies in
12192 # the current directory while Tru64 will put them in the object
12196 am_cv_CC_dependencies_compiler_type=none
12197 if test "$am_compiler_list" = ""; then
12198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12200 am__universal=false
12201 case " $depcc " in #(
12202 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12205 for depmode in $am_compiler_list; do
12206 # Setup a source with many dependencies, because some compilers
12207 # like to wrap large dependency lists on column 80 (with \), and
12208 # we should not choose a depcomp mode which is confused by this.
12210 # We need to recreate these files for each test, as the compiler may
12211 # overwrite some of them when testing with obscure command lines.
12212 # This happens at least with the AIX C compiler.
12214 for i in 1 2 3 4 5 6; do
12215 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12216 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12217 # Solaris 8's {/usr,}/bin/sh.
12218 touch sub/conftst$i.h
12220 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12222 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12223 # mode. It turns out that the SunPro C++ compiler does not properly
12224 # handle `-M -o', and we need to detect this. Also, some Intel
12225 # versions had trouble with output in subdirs
12226 am__obj=sub/conftest.${OBJEXT-o}
12227 am__minus_obj="-o $am__obj"
12230 # This depmode causes a compiler race in universal mode.
12231 test "$am__universal" = false || continue
12234 # after this tag, mechanisms are not by side-effect, so they'll
12235 # only be used when explicitly requested
12236 if test "x$enable_dependency_tracking" = xyes; then
12242 msvisualcpp | msvcmsys)
12243 # This compiler won't grok `-c -o', but also, the minuso test has
12244 # not run yet. These depmodes are late enough in the game, and
12245 # so weak that their functioning should not be impacted.
12246 am__obj=conftest.${OBJEXT-o}
12251 if depmode=$depmode \
12252 source=sub/conftest.c object=$am__obj \
12253 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12254 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12255 >/dev/null 2>conftest.err &&
12256 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12257 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12258 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12259 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12260 # icc doesn't choke on unknown options, it will just issue warnings
12261 # or remarks (even with -Werror). So we grep stderr for any message
12262 # that says an option was ignored or not supported.
12263 # When given -MP, icc 7.0 and 7.1 complain thusly:
12264 # icc: Command line warning: ignoring option '-M'; no argument required
12265 # The diagnosis changed in icc 8.0:
12266 # icc: Command line remark: option '-MP' not supported
12267 if (grep 'ignoring option' conftest.err ||
12268 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12269 am_cv_CC_dependencies_compiler_type=$depmode
12276 rm -rf conftest.dir
12278 am_cv_CC_dependencies_compiler_type=none
12282 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12283 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12284 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12287 test "x$enable_dependency_tracking" != xno \
12288 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12289 am__fastdepCC_TRUE=
12290 am__fastdepCC_FALSE='#'
12292 am__fastdepCC_TRUE='#'
12293 am__fastdepCC_FALSE=
12298 ac_cpp='$CPP $CPPFLAGS'
12299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12302 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12303 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12304 # On Suns, sometimes $CPP names a directory.
12305 if test -n "$CPP" && test -d "$CPP"; then
12308 if test -z "$CPP"; then
12309 if test "${ac_cv_prog_CPP+set}" = set; then
12310 $as_echo_n "(cached) " >&6
12312 # Double quotes because CPP needs to be expanded
12313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12315 ac_preproc_ok=false
12316 for ac_c_preproc_warn_flag in '' yes
12318 # Use a header file that comes with gcc, so configuring glibc
12319 # with a fresh cross-compiler works.
12320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12321 # <limits.h> exists even on freestanding compilers.
12322 # On the NeXT, cc -E runs the code through the compiler's parser,
12323 # not just through cpp. "Syntax error" is here to catch this case.
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12331 # include <limits.h>
12333 # include <assert.h>
12337 if { (ac_try="$ac_cpp conftest.$ac_ext"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12343 $as_echo "$ac_try_echo") >&5
12344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12346 grep -v '^ *+' conftest.er1 >conftest.err
12348 cat conftest.err >&5
12349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } >/dev/null && {
12351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12352 test ! -s conftest.err
12356 $as_echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 # Broken: fails on valid input.
12363 rm -f conftest.err conftest.$ac_ext
12365 # OK, works on sane cases. Now check whether nonexistent headers
12366 # can be detected and how.
12367 cat >conftest.$ac_ext <<_ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 #include <ac_nonexistent.h>
12375 if { (ac_try="$ac_cpp conftest.$ac_ext"
12376 case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12381 $as_echo "$ac_try_echo") >&5
12382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12384 grep -v '^ *+' conftest.er1 >conftest.err
12386 cat conftest.err >&5
12387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } >/dev/null && {
12389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12392 # Broken: success on invalid input.
12395 $as_echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12398 # Passes both tests.
12403 rm -f conftest.err conftest.$ac_ext
12406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12407 rm -f conftest.err conftest.$ac_ext
12408 if $ac_preproc_ok; then
12413 ac_cv_prog_CPP=$CPP
12416 CPP=$ac_cv_prog_CPP
12418 ac_cv_prog_CPP=$CPP
12420 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
12421 $as_echo "$CPP" >&6; }
12422 ac_preproc_ok=false
12423 for ac_c_preproc_warn_flag in '' yes
12425 # Use a header file that comes with gcc, so configuring glibc
12426 # with a fresh cross-compiler works.
12427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12428 # <limits.h> exists even on freestanding compilers.
12429 # On the NeXT, cc -E runs the code through the compiler's parser,
12430 # not just through cpp. "Syntax error" is here to catch this case.
12431 cat >conftest.$ac_ext <<_ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12438 # include <limits.h>
12440 # include <assert.h>
12444 if { (ac_try="$ac_cpp conftest.$ac_ext"
12445 case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12450 $as_echo "$ac_try_echo") >&5
12451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12453 grep -v '^ *+' conftest.er1 >conftest.err
12455 cat conftest.err >&5
12456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } >/dev/null && {
12458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12459 test ! -s conftest.err
12463 $as_echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12466 # Broken: fails on valid input.
12470 rm -f conftest.err conftest.$ac_ext
12472 # OK, works on sane cases. Now check whether nonexistent headers
12473 # can be detected and how.
12474 cat >conftest.$ac_ext <<_ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 #include <ac_nonexistent.h>
12482 if { (ac_try="$ac_cpp conftest.$ac_ext"
12483 case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12488 $as_echo "$ac_try_echo") >&5
12489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12491 grep -v '^ *+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } >/dev/null && {
12496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12499 # Broken: success on invalid input.
12502 $as_echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12505 # Passes both tests.
12510 rm -f conftest.err conftest.$ac_ext
12513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12514 rm -f conftest.err conftest.$ac_ext
12515 if $ac_preproc_ok; then
12518 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12520 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12521 See \`config.log' for more details." >&5
12522 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12523 See \`config.log' for more details." >&2;}
12524 { (exit 1); exit 1; }; }; }
12528 ac_cpp='$CPP $CPPFLAGS'
12529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12534 ac_cpp='$CXXCPP $CPPFLAGS'
12535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12538 if test -z "$CXX"; then
12539 if test -n "$CCC"; then
12542 if test -n "$ac_tool_prefix"; then
12543 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if test "${ac_cv_prog_CXX+set}" = set; then
12550 $as_echo_n "(cached) " >&6
12552 if test -n "$CXX"; then
12553 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 CXX=$ac_cv_prog_CXX
12573 if test -n "$CXX"; then
12574 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12575 $as_echo "$CXX" >&6; }
12577 { $as_echo "$as_me:$LINENO: result: no" >&5
12578 $as_echo "no" >&6; }
12582 test -n "$CXX" && break
12585 if test -z "$CXX"; then
12587 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12589 # Extract the first word of "$ac_prog", so it can be a program name with args.
12590 set dummy $ac_prog; ac_word=$2
12591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12594 $as_echo_n "(cached) " >&6
12596 if test -n "$ac_ct_CXX"; then
12597 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12600 for as_dir in $PATH
12603 test -z "$as_dir" && as_dir=.
12604 for ac_exec_ext in '' $ac_executable_extensions; do
12605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12606 ac_cv_prog_ac_ct_CXX="$ac_prog"
12607 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12617 if test -n "$ac_ct_CXX"; then
12618 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12619 $as_echo "$ac_ct_CXX" >&6; }
12621 { $as_echo "$as_me:$LINENO: result: no" >&5
12622 $as_echo "no" >&6; }
12626 test -n "$ac_ct_CXX" && break
12629 if test "x$ac_ct_CXX" = x; then
12632 case $cross_compiling:$ac_tool_warned in
12634 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12636 ac_tool_warned=yes ;;
12644 # Provide some information about the compiler.
12645 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12648 { (ac_try="$ac_compiler --version >&5"
12649 case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12654 $as_echo "$ac_try_echo") >&5
12655 (eval "$ac_compiler --version >&5") 2>&5
12657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }
12659 { (ac_try="$ac_compiler -v >&5"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12665 $as_echo "$ac_try_echo") >&5
12666 (eval "$ac_compiler -v >&5") 2>&5
12668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }
12670 { (ac_try="$ac_compiler -V >&5"
12671 case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12676 $as_echo "$ac_try_echo") >&5
12677 (eval "$ac_compiler -V >&5") 2>&5
12679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }
12682 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12683 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12685 $as_echo_n "(cached) " >&6
12687 cat >conftest.$ac_ext <<_ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12705 rm -f conftest.$ac_objext
12706 if { (ac_try="$ac_compile"
12707 case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12712 $as_echo "$ac_try_echo") >&5
12713 (eval "$ac_compile") 2>conftest.er1
12715 grep -v '^ *+' conftest.er1 >conftest.err
12717 cat conftest.err >&5
12718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && {
12720 test -z "$ac_cxx_werror_flag" ||
12721 test ! -s conftest.err
12722 } && test -s conftest.$ac_objext; then
12723 ac_compiler_gnu=yes
12725 $as_echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12732 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12735 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12736 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12737 if test $ac_compiler_gnu = yes; then
12742 ac_test_CXXFLAGS=${CXXFLAGS+set}
12743 ac_save_CXXFLAGS=$CXXFLAGS
12744 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12745 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12746 if test "${ac_cv_prog_cxx_g+set}" = set; then
12747 $as_echo_n "(cached) " >&6
12749 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12750 ac_cxx_werror_flag=yes
12751 ac_cv_prog_cxx_g=no
12753 cat >conftest.$ac_ext <<_ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12768 rm -f conftest.$ac_objext
12769 if { (ac_try="$ac_compile"
12770 case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12775 $as_echo "$ac_try_echo") >&5
12776 (eval "$ac_compile") 2>conftest.er1
12778 grep -v '^ *+' conftest.er1 >conftest.err
12780 cat conftest.err >&5
12781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } && {
12783 test -z "$ac_cxx_werror_flag" ||
12784 test ! -s conftest.err
12785 } && test -s conftest.$ac_objext; then
12786 ac_cv_prog_cxx_g=yes
12788 $as_echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12792 cat >conftest.$ac_ext <<_ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12807 rm -f conftest.$ac_objext
12808 if { (ac_try="$ac_compile"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12814 $as_echo "$ac_try_echo") >&5
12815 (eval "$ac_compile") 2>conftest.er1
12817 grep -v '^ *+' conftest.er1 >conftest.err
12819 cat conftest.err >&5
12820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } && {
12822 test -z "$ac_cxx_werror_flag" ||
12823 test ! -s conftest.err
12824 } && test -s conftest.$ac_objext; then
12827 $as_echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12832 cat >conftest.$ac_ext <<_ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12847 rm -f conftest.$ac_objext
12848 if { (ac_try="$ac_compile"
12849 case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855 (eval "$ac_compile") 2>conftest.er1
12857 grep -v '^ *+' conftest.er1 >conftest.err
12859 cat conftest.err >&5
12860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } && {
12862 test -z "$ac_cxx_werror_flag" ||
12863 test ! -s conftest.err
12864 } && test -s conftest.$ac_objext; then
12865 ac_cv_prog_cxx_g=yes
12867 $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12880 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12882 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12883 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12884 if test "$ac_test_CXXFLAGS" = set; then
12885 CXXFLAGS=$ac_save_CXXFLAGS
12886 elif test $ac_cv_prog_cxx_g = yes; then
12887 if test "$GXX" = yes; then
12893 if test "$GXX" = yes; then
12900 ac_cpp='$CPP $CPPFLAGS'
12901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12905 depcc="$CXX" am_compiler_list=
12907 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12908 $as_echo_n "checking dependency style of $depcc... " >&6; }
12909 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12910 $as_echo_n "(cached) " >&6
12912 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12913 # We make a subdir and do the tests there. Otherwise we can end up
12914 # making bogus files that we don't know about and never remove. For
12915 # instance it was reported that on HP-UX the gcc test will end up
12916 # making a dummy file named `D' -- because `-MD' means `put the output
12919 # Copy depcomp to subdir because otherwise we won't find it if we're
12920 # using a relative directory.
12921 cp "$am_depcomp" conftest.dir
12923 # We will build objects and dependencies in a subdirectory because
12924 # it helps to detect inapplicable dependency modes. For instance
12925 # both Tru64's cc and ICC support -MD to output dependencies as a
12926 # side effect of compilation, but ICC will put the dependencies in
12927 # the current directory while Tru64 will put them in the object
12931 am_cv_CXX_dependencies_compiler_type=none
12932 if test "$am_compiler_list" = ""; then
12933 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12935 am__universal=false
12936 case " $depcc " in #(
12937 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12940 for depmode in $am_compiler_list; do
12941 # Setup a source with many dependencies, because some compilers
12942 # like to wrap large dependency lists on column 80 (with \), and
12943 # we should not choose a depcomp mode which is confused by this.
12945 # We need to recreate these files for each test, as the compiler may
12946 # overwrite some of them when testing with obscure command lines.
12947 # This happens at least with the AIX C compiler.
12949 for i in 1 2 3 4 5 6; do
12950 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12951 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12952 # Solaris 8's {/usr,}/bin/sh.
12953 touch sub/conftst$i.h
12955 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12957 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12958 # mode. It turns out that the SunPro C++ compiler does not properly
12959 # handle `-M -o', and we need to detect this. Also, some Intel
12960 # versions had trouble with output in subdirs
12961 am__obj=sub/conftest.${OBJEXT-o}
12962 am__minus_obj="-o $am__obj"
12965 # This depmode causes a compiler race in universal mode.
12966 test "$am__universal" = false || continue
12969 # after this tag, mechanisms are not by side-effect, so they'll
12970 # only be used when explicitly requested
12971 if test "x$enable_dependency_tracking" = xyes; then
12977 msvisualcpp | msvcmsys)
12978 # This compiler won't grok `-c -o', but also, the minuso test has
12979 # not run yet. These depmodes are late enough in the game, and
12980 # so weak that their functioning should not be impacted.
12981 am__obj=conftest.${OBJEXT-o}
12986 if depmode=$depmode \
12987 source=sub/conftest.c object=$am__obj \
12988 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12989 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12990 >/dev/null 2>conftest.err &&
12991 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12992 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12993 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12994 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12995 # icc doesn't choke on unknown options, it will just issue warnings
12996 # or remarks (even with -Werror). So we grep stderr for any message
12997 # that says an option was ignored or not supported.
12998 # When given -MP, icc 7.0 and 7.1 complain thusly:
12999 # icc: Command line warning: ignoring option '-M'; no argument required
13000 # The diagnosis changed in icc 8.0:
13001 # icc: Command line remark: option '-MP' not supported
13002 if (grep 'ignoring option' conftest.err ||
13003 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13004 am_cv_CXX_dependencies_compiler_type=$depmode
13011 rm -rf conftest.dir
13013 am_cv_CXX_dependencies_compiler_type=none
13017 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13018 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13019 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13022 test "x$enable_dependency_tracking" != xno \
13023 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13024 am__fastdepCXX_TRUE=
13025 am__fastdepCXX_FALSE='#'
13027 am__fastdepCXX_TRUE='#'
13028 am__fastdepCXX_FALSE=
13034 ac_cpp='$CXXCPP $CPPFLAGS'
13035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13038 if test -z "$CXX"; then
13039 if test -n "$CCC"; then
13042 if test -n "$ac_tool_prefix"; then
13043 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if test "${ac_cv_prog_CXX+set}" = set; then
13050 $as_echo_n "(cached) " >&6
13052 if test -n "$CXX"; then
13053 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13062 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 CXX=$ac_cv_prog_CXX
13073 if test -n "$CXX"; then
13074 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
13075 $as_echo "$CXX" >&6; }
13077 { $as_echo "$as_me:$LINENO: result: no" >&5
13078 $as_echo "no" >&6; }
13082 test -n "$CXX" && break
13085 if test -z "$CXX"; then
13087 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13089 # Extract the first word of "$ac_prog", so it can be a program name with args.
13090 set dummy $ac_prog; ac_word=$2
13091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13092 $as_echo_n "checking for $ac_word... " >&6; }
13093 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13094 $as_echo_n "(cached) " >&6
13096 if test -n "$ac_ct_CXX"; then
13097 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $PATH
13103 test -z "$as_dir" && as_dir=.
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13106 ac_cv_prog_ac_ct_CXX="$ac_prog"
13107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13117 if test -n "$ac_ct_CXX"; then
13118 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13119 $as_echo "$ac_ct_CXX" >&6; }
13121 { $as_echo "$as_me:$LINENO: result: no" >&5
13122 $as_echo "no" >&6; }
13126 test -n "$ac_ct_CXX" && break
13129 if test "x$ac_ct_CXX" = x; then
13132 case $cross_compiling:$ac_tool_warned in
13134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13136 ac_tool_warned=yes ;;
13144 # Provide some information about the compiler.
13145 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13148 { (ac_try="$ac_compiler --version >&5"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13154 $as_echo "$ac_try_echo") >&5
13155 (eval "$ac_compiler --version >&5") 2>&5
13157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }
13159 { (ac_try="$ac_compiler -v >&5"
13160 case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13165 $as_echo "$ac_try_echo") >&5
13166 (eval "$ac_compiler -v >&5") 2>&5
13168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }
13170 { (ac_try="$ac_compiler -V >&5"
13171 case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13176 $as_echo "$ac_try_echo") >&5
13177 (eval "$ac_compiler -V >&5") 2>&5
13179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }
13182 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13183 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13184 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13185 $as_echo_n "(cached) " >&6
13187 cat >conftest.$ac_ext <<_ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h. */
13205 rm -f conftest.$ac_objext
13206 if { (ac_try="$ac_compile"
13207 case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13212 $as_echo "$ac_try_echo") >&5
13213 (eval "$ac_compile") 2>conftest.er1
13215 grep -v '^ *+' conftest.er1 >conftest.err
13217 cat conftest.err >&5
13218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && {
13220 test -z "$ac_cxx_werror_flag" ||
13221 test ! -s conftest.err
13222 } && test -s conftest.$ac_objext; then
13223 ac_compiler_gnu=yes
13225 $as_echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13235 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13236 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13237 if test $ac_compiler_gnu = yes; then
13242 ac_test_CXXFLAGS=${CXXFLAGS+set}
13243 ac_save_CXXFLAGS=$CXXFLAGS
13244 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13245 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13246 if test "${ac_cv_prog_cxx_g+set}" = set; then
13247 $as_echo_n "(cached) " >&6
13249 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13250 ac_cxx_werror_flag=yes
13251 ac_cv_prog_cxx_g=no
13253 cat >conftest.$ac_ext <<_ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13268 rm -f conftest.$ac_objext
13269 if { (ac_try="$ac_compile"
13270 case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13275 $as_echo "$ac_try_echo") >&5
13276 (eval "$ac_compile") 2>conftest.er1
13278 grep -v '^ *+' conftest.er1 >conftest.err
13280 cat conftest.err >&5
13281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } && {
13283 test -z "$ac_cxx_werror_flag" ||
13284 test ! -s conftest.err
13285 } && test -s conftest.$ac_objext; then
13286 ac_cv_prog_cxx_g=yes
13288 $as_echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13292 cat >conftest.$ac_ext <<_ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13307 rm -f conftest.$ac_objext
13308 if { (ac_try="$ac_compile"
13309 case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13314 $as_echo "$ac_try_echo") >&5
13315 (eval "$ac_compile") 2>conftest.er1
13317 grep -v '^ *+' conftest.er1 >conftest.err
13319 cat conftest.err >&5
13320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } && {
13322 test -z "$ac_cxx_werror_flag" ||
13323 test ! -s conftest.err
13324 } && test -s conftest.$ac_objext; then
13327 $as_echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13332 cat >conftest.$ac_ext <<_ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13347 rm -f conftest.$ac_objext
13348 if { (ac_try="$ac_compile"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13354 $as_echo "$ac_try_echo") >&5
13355 (eval "$ac_compile") 2>conftest.er1
13357 grep -v '^ *+' conftest.er1 >conftest.err
13359 cat conftest.err >&5
13360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } && {
13362 test -z "$ac_cxx_werror_flag" ||
13363 test ! -s conftest.err
13364 } && test -s conftest.$ac_objext; then
13365 ac_cv_prog_cxx_g=yes
13367 $as_echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13382 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13383 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13384 if test "$ac_test_CXXFLAGS" = set; then
13385 CXXFLAGS=$ac_save_CXXFLAGS
13386 elif test $ac_cv_prog_cxx_g = yes; then
13387 if test "$GXX" = yes; then
13393 if test "$GXX" = yes; then
13400 ac_cpp='$CPP $CPPFLAGS'
13401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13405 depcc="$CXX" am_compiler_list=
13407 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13408 $as_echo_n "checking dependency style of $depcc... " >&6; }
13409 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13410 $as_echo_n "(cached) " >&6
13412 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13413 # We make a subdir and do the tests there. Otherwise we can end up
13414 # making bogus files that we don't know about and never remove. For
13415 # instance it was reported that on HP-UX the gcc test will end up
13416 # making a dummy file named `D' -- because `-MD' means `put the output
13419 # Copy depcomp to subdir because otherwise we won't find it if we're
13420 # using a relative directory.
13421 cp "$am_depcomp" conftest.dir
13423 # We will build objects and dependencies in a subdirectory because
13424 # it helps to detect inapplicable dependency modes. For instance
13425 # both Tru64's cc and ICC support -MD to output dependencies as a
13426 # side effect of compilation, but ICC will put the dependencies in
13427 # the current directory while Tru64 will put them in the object
13431 am_cv_CXX_dependencies_compiler_type=none
13432 if test "$am_compiler_list" = ""; then
13433 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13435 am__universal=false
13436 case " $depcc " in #(
13437 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13440 for depmode in $am_compiler_list; do
13441 # Setup a source with many dependencies, because some compilers
13442 # like to wrap large dependency lists on column 80 (with \), and
13443 # we should not choose a depcomp mode which is confused by this.
13445 # We need to recreate these files for each test, as the compiler may
13446 # overwrite some of them when testing with obscure command lines.
13447 # This happens at least with the AIX C compiler.
13449 for i in 1 2 3 4 5 6; do
13450 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13451 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13452 # Solaris 8's {/usr,}/bin/sh.
13453 touch sub/conftst$i.h
13455 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13457 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13458 # mode. It turns out that the SunPro C++ compiler does not properly
13459 # handle `-M -o', and we need to detect this. Also, some Intel
13460 # versions had trouble with output in subdirs
13461 am__obj=sub/conftest.${OBJEXT-o}
13462 am__minus_obj="-o $am__obj"
13465 # This depmode causes a compiler race in universal mode.
13466 test "$am__universal" = false || continue
13469 # after this tag, mechanisms are not by side-effect, so they'll
13470 # only be used when explicitly requested
13471 if test "x$enable_dependency_tracking" = xyes; then
13477 msvisualcpp | msvcmsys)
13478 # This compiler won't grok `-c -o', but also, the minuso test has
13479 # not run yet. These depmodes are late enough in the game, and
13480 # so weak that their functioning should not be impacted.
13481 am__obj=conftest.${OBJEXT-o}
13486 if depmode=$depmode \
13487 source=sub/conftest.c object=$am__obj \
13488 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13489 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13490 >/dev/null 2>conftest.err &&
13491 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13492 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13493 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13494 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13495 # icc doesn't choke on unknown options, it will just issue warnings
13496 # or remarks (even with -Werror). So we grep stderr for any message
13497 # that says an option was ignored or not supported.
13498 # When given -MP, icc 7.0 and 7.1 complain thusly:
13499 # icc: Command line warning: ignoring option '-M'; no argument required
13500 # The diagnosis changed in icc 8.0:
13501 # icc: Command line remark: option '-MP' not supported
13502 if (grep 'ignoring option' conftest.err ||
13503 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13504 am_cv_CXX_dependencies_compiler_type=$depmode
13511 rm -rf conftest.dir
13513 am_cv_CXX_dependencies_compiler_type=none
13517 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13518 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13519 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13522 test "x$enable_dependency_tracking" != xno \
13523 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13524 am__fastdepCXX_TRUE=
13525 am__fastdepCXX_FALSE='#'
13527 am__fastdepCXX_TRUE='#'
13528 am__fastdepCXX_FALSE=
13532 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13533 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13534 (test "X$CXX" != "Xg++"))) ; then
13536 ac_cpp='$CXXCPP $CPPFLAGS'
13537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13540 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13541 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13542 if test -z "$CXXCPP"; then
13543 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13544 $as_echo_n "(cached) " >&6
13546 # Double quotes because CXXCPP needs to be expanded
13547 for CXXCPP in "$CXX -E" "/lib/cpp"
13549 ac_preproc_ok=false
13550 for ac_cxx_preproc_warn_flag in '' yes
13552 # Use a header file that comes with gcc, so configuring glibc
13553 # with a fresh cross-compiler works.
13554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13555 # <limits.h> exists even on freestanding compilers.
13556 # On the NeXT, cc -E runs the code through the compiler's parser,
13557 # not just through cpp. "Syntax error" is here to catch this case.
13558 cat >conftest.$ac_ext <<_ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13565 # include <limits.h>
13567 # include <assert.h>
13571 if { (ac_try="$ac_cpp conftest.$ac_ext"
13572 case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13577 $as_echo "$ac_try_echo") >&5
13578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13580 grep -v '^ *+' conftest.er1 >conftest.err
13582 cat conftest.err >&5
13583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } >/dev/null && {
13585 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13586 test ! -s conftest.err
13590 $as_echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13593 # Broken: fails on valid input.
13597 rm -f conftest.err conftest.$ac_ext
13599 # OK, works on sane cases. Now check whether nonexistent headers
13600 # can be detected and how.
13601 cat >conftest.$ac_ext <<_ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 #include <ac_nonexistent.h>
13609 if { (ac_try="$ac_cpp conftest.$ac_ext"
13610 case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13615 $as_echo "$ac_try_echo") >&5
13616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13618 grep -v '^ *+' conftest.er1 >conftest.err
13620 cat conftest.err >&5
13621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } >/dev/null && {
13623 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13624 test ! -s conftest.err
13626 # Broken: success on invalid input.
13629 $as_echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13632 # Passes both tests.
13637 rm -f conftest.err conftest.$ac_ext
13640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13641 rm -f conftest.err conftest.$ac_ext
13642 if $ac_preproc_ok; then
13647 ac_cv_prog_CXXCPP=$CXXCPP
13650 CXXCPP=$ac_cv_prog_CXXCPP
13652 ac_cv_prog_CXXCPP=$CXXCPP
13654 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
13655 $as_echo "$CXXCPP" >&6; }
13656 ac_preproc_ok=false
13657 for ac_cxx_preproc_warn_flag in '' yes
13659 # Use a header file that comes with gcc, so configuring glibc
13660 # with a fresh cross-compiler works.
13661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13662 # <limits.h> exists even on freestanding compilers.
13663 # On the NeXT, cc -E runs the code through the compiler's parser,
13664 # not just through cpp. "Syntax error" is here to catch this case.
13665 cat >conftest.$ac_ext <<_ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13672 # include <limits.h>
13674 # include <assert.h>
13678 if { (ac_try="$ac_cpp conftest.$ac_ext"
13679 case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13684 $as_echo "$ac_try_echo") >&5
13685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13687 grep -v '^ *+' conftest.er1 >conftest.err
13689 cat conftest.err >&5
13690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } >/dev/null && {
13692 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13693 test ! -s conftest.err
13697 $as_echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 # Broken: fails on valid input.
13704 rm -f conftest.err conftest.$ac_ext
13706 # OK, works on sane cases. Now check whether nonexistent headers
13707 # can be detected and how.
13708 cat >conftest.$ac_ext <<_ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 #include <ac_nonexistent.h>
13716 if { (ac_try="$ac_cpp conftest.$ac_ext"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13722 $as_echo "$ac_try_echo") >&5
13723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13725 grep -v '^ *+' conftest.er1 >conftest.err
13727 cat conftest.err >&5
13728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } >/dev/null && {
13730 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13731 test ! -s conftest.err
13733 # Broken: success on invalid input.
13736 $as_echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13739 # Passes both tests.
13744 rm -f conftest.err conftest.$ac_ext
13747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13748 rm -f conftest.err conftest.$ac_ext
13749 if $ac_preproc_ok; then
13752 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13754 _lt_caught_CXX_error=yes; }
13758 ac_cpp='$CPP $CPPFLAGS'
13759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13764 _lt_caught_CXX_error=yes
13771 ac_cpp='$CXXCPP $CPPFLAGS'
13772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13776 archive_cmds_need_lc_CXX=no
13777 allow_undefined_flag_CXX=
13778 always_export_symbols_CXX=no
13779 archive_expsym_cmds_CXX=
13780 compiler_needs_object_CXX=no
13781 export_dynamic_flag_spec_CXX=
13782 hardcode_direct_CXX=no
13783 hardcode_direct_absolute_CXX=no
13784 hardcode_libdir_flag_spec_CXX=
13785 hardcode_libdir_flag_spec_ld_CXX=
13786 hardcode_libdir_separator_CXX=
13787 hardcode_minus_L_CXX=no
13788 hardcode_shlibpath_var_CXX=unsupported
13789 hardcode_automatic_CXX=no
13790 inherit_rpath_CXX=no
13792 module_expsym_cmds_CXX=
13793 link_all_deplibs_CXX=unknown
13794 old_archive_cmds_CXX=$old_archive_cmds
13795 no_undefined_flag_CXX=
13796 whole_archive_flag_spec_CXX=
13797 enable_shared_with_static_runtimes_CXX=no
13799 # Source file extension for C++ test sources.
13802 # Object file extension for compiled C++ test sources.
13806 # No sense in running all these tests if we already determined that
13807 # the CXX compiler isn't working. Some variables (like enable_shared)
13808 # are currently assumed to apply to all compilers on this platform,
13809 # and will be corrupted by setting them based on a non-working compiler.
13810 if test "$_lt_caught_CXX_error" != yes; then
13811 # Code to be used in simple compile tests
13812 lt_simple_compile_test_code="int some_variable = 0;"
13814 # Code to be used in simple link tests
13815 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13817 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13824 # If no C compiler was specified, use CC.
13827 # If no C compiler flags were specified, use CFLAGS.
13828 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13830 # Allow CC to be a program name with arguments.
13834 # save warnings/boilerplate of simple test code
13835 ac_outfile=conftest.$ac_objext
13836 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13837 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13838 _lt_compiler_boilerplate=`cat conftest.err`
13841 ac_outfile=conftest.$ac_objext
13842 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13843 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13844 _lt_linker_boilerplate=`cat conftest.err`
13848 # Allow CC to be a program name with arguments.
13853 lt_save_with_gnu_ld=$with_gnu_ld
13854 lt_save_path_LD=$lt_cv_path_LD
13855 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13856 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13858 $as_unset lt_cv_prog_gnu_ld
13860 if test -n "${lt_cv_path_LDCXX+set}"; then
13861 lt_cv_path_LD=$lt_cv_path_LDCXX
13863 $as_unset lt_cv_path_LD
13865 test -z "${LDCXX+set}" || LD=$LDCXX
13869 for cc_temp in $compiler""; do
13871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13877 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13880 if test -n "$compiler"; then
13881 # We don't want -fno-exception when compiling C++ code, so set the
13882 # no_builtin_flag separately
13883 if test "$GXX" = yes; then
13884 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13886 lt_prog_compiler_no_builtin_flag_CXX=
13889 if test "$GXX" = yes; then
13890 # Set up default GNU C++ configuration
13894 # Check whether --with-gnu-ld was given.
13895 if test "${with_gnu_ld+set}" = set; then
13896 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13902 if test "$GCC" = yes; then
13903 # Check if gcc -print-prog-name=ld gives a path.
13904 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13905 $as_echo_n "checking for ld used by $CC... " >&6; }
13908 # gcc leaves a trailing carriage return which upsets mingw
13909 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13911 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13914 # Accept absolute paths.
13916 re_direlt='/[^/][^/]*/\.\./'
13917 # Canonicalize the pathname of ld
13918 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13919 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13920 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13922 test -z "$LD" && LD="$ac_prog"
13925 # If it fails, then pretend we aren't using GCC.
13929 # If it is relative, then search for the first ld in PATH.
13930 with_gnu_ld=unknown
13933 elif test "$with_gnu_ld" = yes; then
13934 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13935 $as_echo_n "checking for GNU ld... " >&6; }
13937 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13938 $as_echo_n "checking for non-GNU ld... " >&6; }
13940 if test "${lt_cv_path_LD+set}" = set; then
13941 $as_echo_n "(cached) " >&6
13943 if test -z "$LD"; then
13944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13945 for ac_dir in $PATH; do
13947 test -z "$ac_dir" && ac_dir=.
13948 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13949 lt_cv_path_LD="$ac_dir/$ac_prog"
13950 # Check to see if the program is GNU ld. I'd rather use --version,
13951 # but apparently some variants of GNU ld only accept -v.
13952 # Break only if it was the GNU/non-GNU ld that we prefer.
13953 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13954 *GNU* | *'with BFD'*)
13955 test "$with_gnu_ld" != no && break
13958 test "$with_gnu_ld" != yes && break
13965 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13969 LD="$lt_cv_path_LD"
13970 if test -n "$LD"; then
13971 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13972 $as_echo "$LD" >&6; }
13974 { $as_echo "$as_me:$LINENO: result: no" >&5
13975 $as_echo "no" >&6; }
13977 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13978 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13979 { (exit 1); exit 1; }; }
13980 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13981 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13982 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13983 $as_echo_n "(cached) " >&6
13985 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13986 case `$LD -v 2>&1 </dev/null` in
13987 *GNU* | *'with BFD'*)
13988 lt_cv_prog_gnu_ld=yes
13991 lt_cv_prog_gnu_ld=no
13995 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13996 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13997 with_gnu_ld=$lt_cv_prog_gnu_ld
14005 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14006 # archiving commands below assume that GNU ld is being used.
14007 if test "$with_gnu_ld" = yes; then
14008 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14009 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14014 # If archive_cmds runs LD, not CC, wlarc should be empty
14015 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14016 # investigate it a little bit more. (MM)
14019 # ancient GNU ld didn't support --whole-archive et. al.
14020 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14021 $GREP 'no-whole-archive' > /dev/null; then
14022 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14024 whole_archive_flag_spec_CXX=
14030 # A generic and very simple default shared library creation
14031 # command for GNU C++ for the case where it uses the native
14032 # linker, instead of GNU ld. If possible, this setting should
14033 # overridden to take advantage of the native linker features on
14034 # the platform it is being used on.
14035 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14038 # Commands to make compiler produce verbose output that lists
14039 # what "hidden" libraries, object files and flags are used when
14040 # linking a shared library.
14041 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14049 # PORTME: fill in a description of your system's C++ link characteristics
14050 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14051 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14055 # FIXME: insert proper C++ library support
14059 if test "$host_cpu" = ia64; then
14060 # On IA64, the linker does run time linking by default, so we don't
14061 # have to do anything special.
14062 aix_use_runtimelinking=no
14063 exp_sym_flag='-Bexport'
14066 aix_use_runtimelinking=no
14068 # Test if we are trying to use run time linking or normal
14069 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14070 # need to do runtime linking.
14071 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14072 for ld_flag in $LDFLAGS; do
14075 aix_use_runtimelinking=yes
14083 exp_sym_flag='-bexport'
14084 no_entry_flag='-bnoentry'
14087 # When large executables or shared objects are built, AIX ld can
14088 # have problems creating the table of contents. If linking a library
14089 # or program results in "error TOC overflow" add -mminimal-toc to
14090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14093 archive_cmds_CXX=''
14094 hardcode_direct_CXX=yes
14095 hardcode_direct_absolute_CXX=yes
14096 hardcode_libdir_separator_CXX=':'
14097 link_all_deplibs_CXX=yes
14098 file_list_spec_CXX='${wl}-f,'
14100 if test "$GXX" = yes; then
14101 case $host_os in aix4.[012]|aix4.[012].*)
14102 # We only want to do this on AIX 4.2 and lower, the check
14103 # below for broken collect2 doesn't work under 4.3+
14104 collect2name=`${CC} -print-prog-name=collect2`
14105 if test -f "$collect2name" &&
14106 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14108 # We have reworked collect2
14111 # We have old collect2
14112 hardcode_direct_CXX=unsupported
14113 # It fails to find uninstalled libraries when the uninstalled
14114 # path is not listed in the libpath. Setting hardcode_minus_L
14115 # to unsupported forces relinking
14116 hardcode_minus_L_CXX=yes
14117 hardcode_libdir_flag_spec_CXX='-L$libdir'
14118 hardcode_libdir_separator_CXX=
14121 shared_flag='-shared'
14122 if test "$aix_use_runtimelinking" = yes; then
14123 shared_flag="$shared_flag "'${wl}-G'
14127 if test "$host_cpu" = ia64; then
14128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14129 # chokes on -Wl,-G. The following line is correct:
14132 if test "$aix_use_runtimelinking" = yes; then
14133 shared_flag='${wl}-G'
14135 shared_flag='${wl}-bM:SRE'
14140 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14141 # It seems that -bexpall does not export symbols beginning with
14142 # underscore (_), so it is better to generate a list of symbols to
14144 always_export_symbols_CXX=yes
14145 if test "$aix_use_runtimelinking" = yes; then
14146 # Warning - without using the other runtime loading flags (-brtl),
14147 # -berok will link without error, but may produce a broken library.
14148 allow_undefined_flag_CXX='-berok'
14149 # Determine the default libpath from the value encoded in an empty
14151 cat >conftest.$ac_ext <<_ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (ac_try="$ac_link"
14168 case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14173 $as_echo "$ac_try_echo") >&5
14174 (eval "$ac_link") 2>conftest.er1
14176 grep -v '^ *+' conftest.er1 >conftest.err
14178 cat conftest.err >&5
14179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } && {
14181 test -z "$ac_cxx_werror_flag" ||
14182 test ! -s conftest.err
14183 } && test -s conftest$ac_exeext && {
14184 test "$cross_compiling" = yes ||
14185 $as_test_x conftest$ac_exeext
14188 lt_aix_libpath_sed='
14189 /Import File Strings/,/^$/ {
14195 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14196 # Check for a 64-bit object if we didn't find anything.
14197 if test -z "$aix_libpath"; then
14198 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14201 $as_echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14207 rm -rf conftest.dSYM
14208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14209 conftest$ac_exeext conftest.$ac_ext
14210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14212 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14214 archive_expsym_cmds_CXX='$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"
14216 if test "$host_cpu" = ia64; then
14217 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14218 allow_undefined_flag_CXX="-z nodefs"
14219 archive_expsym_cmds_CXX="\$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"
14221 # Determine the default libpath from the value encoded in an
14222 # empty executable.
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14238 rm -f conftest.$ac_objext conftest$ac_exeext
14239 if { (ac_try="$ac_link"
14240 case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14245 $as_echo "$ac_try_echo") >&5
14246 (eval "$ac_link") 2>conftest.er1
14248 grep -v '^ *+' conftest.er1 >conftest.err
14250 cat conftest.err >&5
14251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_cxx_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest$ac_exeext && {
14256 test "$cross_compiling" = yes ||
14257 $as_test_x conftest$ac_exeext
14260 lt_aix_libpath_sed='
14261 /Import File Strings/,/^$/ {
14267 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14268 # Check for a 64-bit object if we didn't find anything.
14269 if test -z "$aix_libpath"; then
14270 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14273 $as_echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14279 rm -rf conftest.dSYM
14280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14281 conftest$ac_exeext conftest.$ac_ext
14282 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14284 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14285 # Warning - without using the other run time loading flags,
14286 # -berok will link without error, but may produce a broken library.
14287 no_undefined_flag_CXX=' ${wl}-bernotok'
14288 allow_undefined_flag_CXX=' ${wl}-berok'
14289 # Exported symbols can be pulled into shared objects from archives
14290 whole_archive_flag_spec_CXX='$convenience'
14291 archive_cmds_need_lc_CXX=yes
14292 # This is similar to how AIX traditionally builds its shared
14294 archive_expsym_cmds_CXX="\$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'
14300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14301 allow_undefined_flag_CXX=unsupported
14302 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14303 # support --undefined. This deserves some investigation. FIXME
14304 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14311 case $cc_basename in
14313 # FIXME: insert proper C++ library support
14319 cygwin* | mingw* | pw32* | cegcc*)
14320 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14321 # as there is no search path for DLLs.
14322 hardcode_libdir_flag_spec_CXX='-L$libdir'
14323 allow_undefined_flag_CXX=unsupported
14324 always_export_symbols_CXX=no
14325 enable_shared_with_static_runtimes_CXX=yes
14327 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14328 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14329 # If the export-symbols file already is a .def file (1st line
14330 # is EXPORTS), use it as is; otherwise, prepend...
14331 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14332 cp $export_symbols $output_objdir/$soname.def;
14334 echo EXPORTS > $output_objdir/$soname.def;
14335 cat $export_symbols >> $output_objdir/$soname.def;
14337 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14342 darwin* | rhapsody*)
14345 archive_cmds_need_lc_CXX=no
14346 hardcode_direct_CXX=no
14347 hardcode_automatic_CXX=yes
14348 hardcode_shlibpath_var_CXX=unsupported
14349 whole_archive_flag_spec_CXX=''
14350 link_all_deplibs_CXX=yes
14351 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14352 case $cc_basename in
14353 ifort*) _lt_dar_can_shared=yes ;;
14354 *) _lt_dar_can_shared=$GCC ;;
14356 if test "$_lt_dar_can_shared" = "yes"; then
14357 output_verbose_link_cmd=echo
14358 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14359 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14360 archive_expsym_cmds_CXX="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}"
14361 module_expsym_cmds_CXX="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}"
14362 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14363 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14364 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14374 case $cc_basename in
14376 # FIXME: insert proper C++ library support
14380 # Green Hills C++ Compiler
14381 # FIXME: insert proper C++ library support
14385 # FIXME: insert proper C++ library support
14392 # C++ shared libraries reported to be fairly broken before
14398 archive_cmds_need_lc_CXX=no
14401 freebsd* | dragonfly*)
14402 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14411 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14412 hardcode_libdir_separator_CXX=:
14413 export_dynamic_flag_spec_CXX='${wl}-E'
14414 hardcode_direct_CXX=yes
14415 hardcode_minus_L_CXX=yes # Not in the search PATH,
14416 # but as the default
14417 # location of the library.
14419 case $cc_basename in
14421 # FIXME: insert proper C++ library support
14425 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14426 # Commands to make compiler produce verbose output that lists
14427 # what "hidden" libraries, object files and flags are used when
14428 # linking a shared library.
14430 # There doesn't appear to be a way to prevent this compiler from
14431 # explicitly linking system object files so we need to strip them
14432 # from the output so that they don't get included in the library
14434 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14437 if test "$GXX" = yes; then
14438 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14440 # FIXME: insert proper C++ library support
14448 if test $with_gnu_ld = no; then
14449 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14450 hardcode_libdir_separator_CXX=:
14456 export_dynamic_flag_spec_CXX='${wl}-E'
14462 hardcode_direct_CXX=no
14463 hardcode_shlibpath_var_CXX=no
14466 hardcode_direct_CXX=yes
14467 hardcode_direct_absolute_CXX=yes
14468 hardcode_minus_L_CXX=yes # Not in the search PATH,
14469 # but as the default
14470 # location of the library.
14474 case $cc_basename in
14476 # FIXME: insert proper C++ library support
14482 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14485 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14488 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14491 # Commands to make compiler produce verbose output that lists
14492 # what "hidden" libraries, object files and flags are used when
14493 # linking a shared library.
14495 # There doesn't appear to be a way to prevent this compiler from
14496 # explicitly linking system object files so we need to strip them
14497 # from the output so that they don't get included in the library
14499 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14502 if test "$GXX" = yes; then
14503 if test $with_gnu_ld = no; then
14506 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14509 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14512 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14517 # FIXME: insert proper C++ library support
14525 hardcode_direct_CXX=no
14526 hardcode_shlibpath_var_CXX=no
14527 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14528 export_dynamic_flag_spec_CXX='${wl}-E'
14529 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14530 # Instead, shared libraries are loaded at an image base (0x10000000 by
14531 # default) and relocated if they conflict, which is a slow very memory
14532 # consuming and fragmenting process. To avoid this, we pick a random,
14533 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14534 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14535 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14536 archive_expsym_cmds_CXX='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'
14539 case $cc_basename in
14542 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14544 # Archives containing C++ object files must be created using
14545 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14546 # necessary to make sure instantiated templates are included
14548 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14551 if test "$GXX" = yes; then
14552 if test "$with_gnu_ld" = no; then
14553 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14555 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14558 link_all_deplibs_CXX=yes
14561 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14562 hardcode_libdir_separator_CXX=:
14563 inherit_rpath_CXX=yes
14566 linux* | k*bsd*-gnu)
14567 case $cc_basename in
14569 # Kuck and Associates, Inc. (KAI) C++ Compiler
14571 # KCC will only create a shared library if the output file
14572 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14573 # to its proper name (with version) after linking.
14574 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14575 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14576 # Commands to make compiler produce verbose output that lists
14577 # what "hidden" libraries, object files and flags are used when
14578 # linking a shared library.
14580 # There doesn't appear to be a way to prevent this compiler from
14581 # explicitly linking system object files so we need to strip them
14582 # from the output so that they don't get included in the library
14584 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14586 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14587 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14589 # Archives containing C++ object files must be created using
14590 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14591 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14596 # version 8.0 and above of icpc choke on multiply defined symbols
14597 # if we add $predep_objects and $postdep_objects, however 7.1 and
14598 # earlier do not add the objects themselves.
14599 case `$CC -V 2>&1` in
14601 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14602 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14604 *) # Version 8.0 or newer
14607 ia64*) tmp_idyn=' -i_dynamic';;
14609 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14613 archive_cmds_need_lc_CXX=no
14614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14615 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14616 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14619 # Portland Group C++ compiler
14621 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14622 prelink_cmds_CXX='tpldir=Template.dir~
14624 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14625 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14626 old_archive_cmds_CXX='tpldir=Template.dir~
14628 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14629 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14631 archive_cmds_CXX='tpldir=Template.dir~
14633 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14634 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14635 archive_expsym_cmds_CXX='tpldir=Template.dir~
14637 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14638 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14640 *) # Version 6 will use weak symbols
14641 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14642 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14646 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14647 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14648 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14652 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14653 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14655 runpath_var=LD_RUN_PATH
14656 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14657 hardcode_libdir_separator_CXX=:
14659 # Commands to make compiler produce verbose output that lists
14660 # what "hidden" libraries, object files and flags are used when
14661 # linking a shared library.
14663 # There doesn't appear to be a way to prevent this compiler from
14664 # explicitly linking system object files so we need to strip them
14665 # from the output so that they don't get included in the library
14667 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14670 # IBM XL 8.0 on PPC, with GNU ld
14671 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14672 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14673 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14674 if test "x$supports_anon_versioning" = xyes; then
14675 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14677 echo "local: *; };" >> $output_objdir/$libname.ver~
14678 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14682 case `$CC -V 2>&1 | sed 5q` in
14685 no_undefined_flag_CXX=' -zdefs'
14686 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14687 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14688 hardcode_libdir_flag_spec_CXX='-R$libdir'
14689 whole_archive_flag_spec_CXX='${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'
14690 compiler_needs_object_CXX=yes
14692 # Not sure whether something based on
14693 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14695 output_verbose_link_cmd='echo'
14697 # Archives containing C++ object files must be created using
14698 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14699 # necessary to make sure instantiated templates are included
14701 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14709 # FIXME: insert proper C++ library support
14714 # FIXME: insert proper C++ library support
14719 case $cc_basename in
14721 # FIXME: insert proper C++ library support
14725 # FIXME: insert proper C++ library support
14732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14733 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14735 hardcode_libdir_flag_spec_CXX='-R$libdir'
14736 hardcode_direct_CXX=yes
14737 hardcode_shlibpath_var_CXX=no
14739 # Workaround some broken pre-1.5 toolchains
14740 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14748 # C++ shared libraries are fairly broken
14753 if test -f /usr/libexec/ld.so; then
14754 hardcode_direct_CXX=yes
14755 hardcode_shlibpath_var_CXX=no
14756 hardcode_direct_absolute_CXX=yes
14757 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14759 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14760 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14761 export_dynamic_flag_spec_CXX='${wl}-E'
14762 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14764 output_verbose_link_cmd=echo
14770 osf3* | osf4* | osf5*)
14771 case $cc_basename in
14773 # Kuck and Associates, Inc. (KAI) C++ Compiler
14775 # KCC will only create a shared library if the output file
14776 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14777 # to its proper name (with version) after linking.
14778 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14780 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14781 hardcode_libdir_separator_CXX=:
14783 # Archives containing C++ object files must be created using
14784 # the KAI C++ compiler.
14786 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14787 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14791 # Rational C++ 2.4.1
14792 # FIXME: insert proper C++ library support
14798 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14799 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14800 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14803 allow_undefined_flag_CXX=' -expect_unresolved \*'
14804 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14805 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14806 echo "-hidden">> $lib.exp~
14807 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14809 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14813 hardcode_libdir_separator_CXX=:
14815 # Commands to make compiler produce verbose output that lists
14816 # what "hidden" libraries, object files and flags are used when
14817 # linking a shared library.
14819 # There doesn't appear to be a way to prevent this compiler from
14820 # explicitly linking system object files so we need to strip them
14821 # from the output so that they don't get included in the library
14823 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14826 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14827 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14830 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14833 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14838 hardcode_libdir_separator_CXX=:
14840 # Commands to make compiler produce verbose output that lists
14841 # what "hidden" libraries, object files and flags are used when
14842 # linking a shared library.
14843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14846 # FIXME: insert proper C++ library support
14854 # FIXME: insert proper C++ library support
14859 case $cc_basename in
14862 # FIXME: insert proper C++ library support
14867 # FIXME: insert proper C++ library support
14871 # FIXME: insert proper C++ library support
14878 case $cc_basename in
14880 # Sun C++ 4.2, 5.x and Centerline C++
14881 archive_cmds_need_lc_CXX=yes
14882 no_undefined_flag_CXX=' -zdefs'
14883 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14884 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14885 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14887 hardcode_libdir_flag_spec_CXX='-R$libdir'
14888 hardcode_shlibpath_var_CXX=no
14890 solaris2.[0-5] | solaris2.[0-5].*) ;;
14892 # The compiler driver will combine and reorder linker options,
14893 # but understands `-z linker_flag'.
14894 # Supported since Solaris 2.6 (maybe 2.5.1?)
14895 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14898 link_all_deplibs_CXX=yes
14900 output_verbose_link_cmd='echo'
14902 # Archives containing C++ object files must be created using
14903 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14904 # necessary to make sure instantiated templates are included
14906 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14909 # Green Hills C++ Compiler
14910 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14912 # The C++ compiler must be used to create the archive.
14913 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14916 # GNU C++ compiler with Solaris linker
14917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14918 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14919 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14920 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14921 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14922 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14924 # Commands to make compiler produce verbose output that lists
14925 # what "hidden" libraries, object files and flags are used when
14926 # linking a shared library.
14927 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14929 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14931 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14932 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14933 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14935 # Commands to make compiler produce verbose output that lists
14936 # what "hidden" libraries, object files and flags are used when
14937 # linking a shared library.
14938 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14941 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14943 solaris2.[0-5] | solaris2.[0-5].*) ;;
14945 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14953 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14954 no_undefined_flag_CXX='${wl}-z,text'
14955 archive_cmds_need_lc_CXX=no
14956 hardcode_shlibpath_var_CXX=no
14957 runpath_var='LD_RUN_PATH'
14959 case $cc_basename in
14961 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14962 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14965 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14971 sysv5* | sco3.2v5* | sco5v6*)
14972 # Note: We can NOT use -z defs as we might desire, because we do not
14973 # link with -lc, and that would cause any symbols used from libc to
14974 # always be unresolved, which means just about no library would
14975 # ever link correctly. If we're not using GNU ld we use -z text
14976 # though, which does catch some bad symbols but isn't as heavy-handed
14978 no_undefined_flag_CXX='${wl}-z,text'
14979 allow_undefined_flag_CXX='${wl}-z,nodefs'
14980 archive_cmds_need_lc_CXX=no
14981 hardcode_shlibpath_var_CXX=no
14982 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14983 hardcode_libdir_separator_CXX=':'
14984 link_all_deplibs_CXX=yes
14985 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14986 runpath_var='LD_RUN_PATH'
14988 case $cc_basename in
14990 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14994 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15001 case $cc_basename in
15003 # NonStop-UX NCC 3.20
15004 # FIXME: insert proper C++ library support
15008 # FIXME: insert proper C++ library support
15015 # FIXME: insert proper C++ library support
15020 # FIXME: insert proper C++ library support
15025 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15026 $as_echo "$ld_shlibs_CXX" >&6; }
15027 test "$ld_shlibs_CXX" = no && can_build_shared=no
15033 ## There is no encapsulation within the following macros, do not change
15034 ## the running order or otherwise move them around unless you know exactly
15035 ## what you are doing...
15036 # Dependencies to place before and after the object being linked:
15037 predep_objects_CXX=
15038 postdep_objects_CXX=
15041 compiler_lib_search_path_CXX=
15043 cat > conftest.$ac_ext <<_LT_EOF
15047 Foo (void) { a = 0; }
15053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15054 (eval $ac_compile) 2>&5
15056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; then
15058 # Parse the compiler output and extract the necessary
15059 # objects, libraries and library flags.
15061 # Sentinel used to keep track of whether or not we are before
15062 # the conftest object file.
15063 pre_test_object_deps_done=no
15065 for p in `eval "$output_verbose_link_cmd"`; do
15069 # Some compilers place space between "-{L,R}" and the path.
15070 # Remove the space.
15071 if test $p = "-L" ||
15072 test $p = "-R"; then
15079 if test "$pre_test_object_deps_done" = no; then
15082 # Internal compiler library paths should come after those
15083 # provided the user. The postdeps already come after the
15084 # user supplied libs so there is no need to process them.
15085 if test -z "$compiler_lib_search_path_CXX"; then
15086 compiler_lib_search_path_CXX="${prev}${p}"
15088 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15091 # The "-l" case would never come before the object being
15092 # linked, so don't bother handling this case.
15095 if test -z "$postdeps_CXX"; then
15096 postdeps_CXX="${prev}${p}"
15098 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15104 # This assumes that the test object file only shows up
15105 # once in the compiler output.
15106 if test "$p" = "conftest.$objext"; then
15107 pre_test_object_deps_done=yes
15111 if test "$pre_test_object_deps_done" = no; then
15112 if test -z "$predep_objects_CXX"; then
15113 predep_objects_CXX="$p"
15115 predep_objects_CXX="$predep_objects_CXX $p"
15118 if test -z "$postdep_objects_CXX"; then
15119 postdep_objects_CXX="$p"
15121 postdep_objects_CXX="$postdep_objects_CXX $p"
15126 *) ;; # Ignore the rest.
15134 echo "libtool.m4: error: problem compiling CXX test program"
15137 $RM -f confest.$objext
15139 # PORTME: override above test on systems where it is broken
15142 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15143 # hack all around it, let's just trust "g++" to DTRT.
15144 predep_objects_CXX=
15145 postdep_objects_CXX=
15150 case `$CC -V 2>&1 | sed 5q` in
15154 # The more standards-conforming stlport4 library is
15155 # incompatible with the Cstd library. Avoid specifying
15156 # it if it's in CXXFLAGS. Ignore libCrun as
15157 # -library=stlport4 depends on it.
15158 case " $CXX $CXXFLAGS " in
15159 *" -library=stlport4 "*)
15160 solaris_use_stlport4=yes
15164 if test "$solaris_use_stlport4" != yes; then
15165 postdeps_CXX='-library=Cstd -library=Crun'
15172 case $cc_basename in
15174 # The more standards-conforming stlport4 library is
15175 # incompatible with the Cstd library. Avoid specifying
15176 # it if it's in CXXFLAGS. Ignore libCrun as
15177 # -library=stlport4 depends on it.
15178 case " $CXX $CXXFLAGS " in
15179 *" -library=stlport4 "*)
15180 solaris_use_stlport4=yes
15184 # Adding this requires a known-good setup of shared libraries for
15185 # Sun compiler versions before 5.6, else PIC objects from an old
15186 # archive will be linked into the output, leading to subtle bugs.
15187 if test "$solaris_use_stlport4" != yes; then
15188 postdeps_CXX='-library=Cstd -library=Crun'
15196 case " $postdeps_CXX " in
15197 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15199 compiler_lib_search_dirs_CXX=
15200 if test -n "${compiler_lib_search_path_CXX}"; then
15201 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15234 lt_prog_compiler_wl_CXX=
15235 lt_prog_compiler_pic_CXX=
15236 lt_prog_compiler_static_CXX=
15238 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15239 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15241 # C++ specific cases for pic, static, wl, etc.
15242 if test "$GXX" = yes; then
15243 lt_prog_compiler_wl_CXX='-Wl,'
15244 lt_prog_compiler_static_CXX='-static'
15248 # All AIX code is PIC.
15249 if test "$host_cpu" = ia64; then
15250 # AIX 5 now supports IA64 processor
15251 lt_prog_compiler_static_CXX='-Bstatic'
15258 # see comment about AmigaOS4 .so support
15259 lt_prog_compiler_pic_CXX='-fPIC'
15262 # FIXME: we need at least 68020 code to build shared libraries, but
15263 # adding the `-m68020' flag to GCC prevents building anything better,
15265 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15270 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15271 # PIC is the default for these OSes.
15273 mingw* | cygwin* | os2* | pw32* | cegcc*)
15274 # This hack is so that the source file can tell whether it is being
15275 # built for inclusion in a dll (and should export symbols for example).
15276 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15277 # (--disable-auto-import) libraries
15278 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15280 darwin* | rhapsody*)
15281 # PIC is the default on this platform
15282 # Common symbols not allowed in MH_DYLIB files
15283 lt_prog_compiler_pic_CXX='-fno-common'
15286 # DJGPP does not support shared libraries at all
15287 lt_prog_compiler_pic_CXX=
15290 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15291 # Instead, we relocate shared libraries at runtime.
15294 if test -d /usr/nec; then
15295 lt_prog_compiler_pic_CXX=-Kconform_pic
15299 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15300 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15301 # sets the default TLS model and affects inlining.
15306 lt_prog_compiler_pic_CXX='-fPIC'
15311 # QNX uses GNU C++, but need to define -shared option too, otherwise
15312 # it will coredump.
15313 lt_prog_compiler_pic_CXX='-fPIC -shared'
15316 lt_prog_compiler_pic_CXX='-fPIC'
15322 # All AIX code is PIC.
15323 if test "$host_cpu" = ia64; then
15324 # AIX 5 now supports IA64 processor
15325 lt_prog_compiler_static_CXX='-Bstatic'
15327 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15331 case $cc_basename in
15333 # Green Hills C++ Compiler
15334 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15339 case $cc_basename in
15341 lt_prog_compiler_pic_CXX='-KPIC'
15344 # Green Hills C++ Compiler
15345 lt_prog_compiler_pic_CXX='-pic'
15351 freebsd* | dragonfly*)
15352 # FreeBSD uses GNU C++
15354 hpux9* | hpux10* | hpux11*)
15355 case $cc_basename in
15357 lt_prog_compiler_wl_CXX='-Wl,'
15358 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15359 if test "$host_cpu" != ia64; then
15360 lt_prog_compiler_pic_CXX='+Z'
15364 lt_prog_compiler_wl_CXX='-Wl,'
15365 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15371 lt_prog_compiler_pic_CXX='+Z'
15380 # This is c89, which is MS Visual C++ (no shared libs)
15381 # Anyone wants to do a port?
15383 irix5* | irix6* | nonstopux*)
15384 case $cc_basename in
15386 lt_prog_compiler_wl_CXX='-Wl,'
15387 lt_prog_compiler_static_CXX='-non_shared'
15388 # CC pic flag -KPIC is the default.
15394 linux* | k*bsd*-gnu)
15395 case $cc_basename in
15398 lt_prog_compiler_wl_CXX='--backend -Wl,'
15399 lt_prog_compiler_pic_CXX='-fPIC'
15402 # old Intel C++ for x86_64 which still supported -KPIC.
15403 lt_prog_compiler_wl_CXX='-Wl,'
15404 lt_prog_compiler_pic_CXX='-KPIC'
15405 lt_prog_compiler_static_CXX='-static'
15408 # Intel C++, used to be incompatible with GCC.
15409 # ICC 10 doesn't accept -KPIC any more.
15410 lt_prog_compiler_wl_CXX='-Wl,'
15411 lt_prog_compiler_pic_CXX='-fPIC'
15412 lt_prog_compiler_static_CXX='-static'
15415 # Portland Group C++ compiler
15416 lt_prog_compiler_wl_CXX='-Wl,'
15417 lt_prog_compiler_pic_CXX='-fpic'
15418 lt_prog_compiler_static_CXX='-Bstatic'
15422 # Make sure the PIC flag is empty. It appears that all Alpha
15423 # Linux and Compaq Tru64 Unix objects are PIC.
15424 lt_prog_compiler_pic_CXX=
15425 lt_prog_compiler_static_CXX='-non_shared'
15428 # IBM XL 8.0 on PPC
15429 lt_prog_compiler_wl_CXX='-Wl,'
15430 lt_prog_compiler_pic_CXX='-qpic'
15431 lt_prog_compiler_static_CXX='-qstaticlink'
15434 case `$CC -V 2>&1 | sed 5q` in
15437 lt_prog_compiler_pic_CXX='-KPIC'
15438 lt_prog_compiler_static_CXX='-Bstatic'
15439 lt_prog_compiler_wl_CXX='-Qoption ld '
15450 case $cc_basename in
15452 lt_prog_compiler_pic_CXX='-W c,exportall'
15461 # QNX uses GNU C++, but need to define -shared option too, otherwise
15462 # it will coredump.
15463 lt_prog_compiler_pic_CXX='-fPIC -shared'
15465 osf3* | osf4* | osf5*)
15466 case $cc_basename in
15468 lt_prog_compiler_wl_CXX='--backend -Wl,'
15471 # Rational C++ 2.4.1
15472 lt_prog_compiler_pic_CXX='-pic'
15475 # Digital/Compaq C++
15476 lt_prog_compiler_wl_CXX='-Wl,'
15477 # Make sure the PIC flag is empty. It appears that all Alpha
15478 # Linux and Compaq Tru64 Unix objects are PIC.
15479 lt_prog_compiler_pic_CXX=
15480 lt_prog_compiler_static_CXX='-non_shared'
15489 case $cc_basename in
15491 # Sun C++ 4.2, 5.x and Centerline C++
15492 lt_prog_compiler_pic_CXX='-KPIC'
15493 lt_prog_compiler_static_CXX='-Bstatic'
15494 lt_prog_compiler_wl_CXX='-Qoption ld '
15497 # Green Hills C++ Compiler
15498 lt_prog_compiler_pic_CXX='-PIC'
15505 case $cc_basename in
15508 lt_prog_compiler_pic_CXX='-pic'
15509 lt_prog_compiler_static_CXX='-Bstatic'
15513 lt_prog_compiler_pic_CXX='-pic'
15519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15520 case $cc_basename in
15522 lt_prog_compiler_wl_CXX='-Wl,'
15523 lt_prog_compiler_pic_CXX='-KPIC'
15524 lt_prog_compiler_static_CXX='-Bstatic'
15529 case $cc_basename in
15531 # NonStop-UX NCC 3.20
15532 lt_prog_compiler_pic_CXX='-KPIC'
15541 lt_prog_compiler_can_build_shared_CXX=no
15547 # For platforms which do not support PIC, -DPIC is meaningless:
15549 lt_prog_compiler_pic_CXX=
15552 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15555 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15556 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15561 # Check to make sure the PIC flag actually works.
15563 if test -n "$lt_prog_compiler_pic_CXX"; then
15564 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15565 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15566 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15567 $as_echo_n "(cached) " >&6
15569 lt_cv_prog_compiler_pic_works_CXX=no
15570 ac_outfile=conftest.$ac_objext
15571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15572 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15573 # Insert the option either (1) after the last *FLAGS variable, or
15574 # (2) before a word containing "conftest.", or (3) at the end.
15575 # Note that $ac_compile itself does not contain backslashes and begins
15576 # with a dollar sign (not a hyphen), so the echo should work correctly.
15577 # The option is referenced via a variable to avoid confusing sed.
15578 lt_compile=`echo "$ac_compile" | $SED \
15579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15581 -e 's:$: $lt_compiler_flag:'`
15582 (eval echo "\"\$as_me:15582: $lt_compile\"" >&5)
15583 (eval "$lt_compile" 2>conftest.err)
15585 cat conftest.err >&5
15586 echo "$as_me:15586: \$? = $ac_status" >&5
15587 if (exit $ac_status) && test -s "$ac_outfile"; then
15588 # The compiler can only warn and ignore the option if not recognized
15589 # So say no if there are warnings other than the usual output.
15590 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15593 lt_cv_prog_compiler_pic_works_CXX=yes
15599 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15600 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15602 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15603 case $lt_prog_compiler_pic_CXX in
15605 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15608 lt_prog_compiler_pic_CXX=
15609 lt_prog_compiler_can_build_shared_CXX=no
15617 # Check to make sure the static flag actually works.
15619 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15620 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15621 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15622 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15623 $as_echo_n "(cached) " >&6
15625 lt_cv_prog_compiler_static_works_CXX=no
15626 save_LDFLAGS="$LDFLAGS"
15627 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15628 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15630 # The linker can only warn and ignore the option if not recognized
15631 # So say no if there are warnings
15632 if test -s conftest.err; then
15633 # Append any errors to the config.log.
15634 cat conftest.err 1>&5
15635 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15637 if diff conftest.exp conftest.er2 >/dev/null; then
15638 lt_cv_prog_compiler_static_works_CXX=yes
15641 lt_cv_prog_compiler_static_works_CXX=yes
15645 LDFLAGS="$save_LDFLAGS"
15648 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15649 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15651 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15654 lt_prog_compiler_static_CXX=
15660 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15661 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15662 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15663 $as_echo_n "(cached) " >&6
15665 lt_cv_prog_compiler_c_o_CXX=no
15666 $RM -r conftest 2>/dev/null
15670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15672 lt_compiler_flag="-o out/conftest2.$ac_objext"
15673 # Insert the option either (1) after the last *FLAGS variable, or
15674 # (2) before a word containing "conftest.", or (3) at the end.
15675 # Note that $ac_compile itself does not contain backslashes and begins
15676 # with a dollar sign (not a hyphen), so the echo should work correctly.
15677 lt_compile=`echo "$ac_compile" | $SED \
15678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15680 -e 's:$: $lt_compiler_flag:'`
15681 (eval echo "\"\$as_me:15681: $lt_compile\"" >&5)
15682 (eval "$lt_compile" 2>out/conftest.err)
15684 cat out/conftest.err >&5
15685 echo "$as_me:15685: \$? = $ac_status" >&5
15686 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15688 # The compiler can only warn and ignore the option if not recognized
15689 # So say no if there are warnings
15690 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15693 lt_cv_prog_compiler_c_o_CXX=yes
15698 # SGI C++ compiler will create directory out/ii_files/ for
15699 # template instantiation
15700 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15701 $RM out/* && rmdir out
15707 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15708 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15712 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15714 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15715 $as_echo_n "(cached) " >&6
15717 lt_cv_prog_compiler_c_o_CXX=no
15718 $RM -r conftest 2>/dev/null
15722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15724 lt_compiler_flag="-o out/conftest2.$ac_objext"
15725 # Insert the option either (1) after the last *FLAGS variable, or
15726 # (2) before a word containing "conftest.", or (3) at the end.
15727 # Note that $ac_compile itself does not contain backslashes and begins
15728 # with a dollar sign (not a hyphen), so the echo should work correctly.
15729 lt_compile=`echo "$ac_compile" | $SED \
15730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15732 -e 's:$: $lt_compiler_flag:'`
15733 (eval echo "\"\$as_me:15733: $lt_compile\"" >&5)
15734 (eval "$lt_compile" 2>out/conftest.err)
15736 cat out/conftest.err >&5
15737 echo "$as_me:15737: \$? = $ac_status" >&5
15738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15740 # The compiler can only warn and ignore the option if not recognized
15741 # So say no if there are warnings
15742 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15745 lt_cv_prog_compiler_c_o_CXX=yes
15750 # SGI C++ compiler will create directory out/ii_files/ for
15751 # template instantiation
15752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15753 $RM out/* && rmdir out
15759 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15760 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15765 hard_links="nottested"
15766 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15767 # do not overwrite the value of need_locks provided by the user
15768 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15769 $as_echo_n "checking if we can lock with hard links... " >&6; }
15772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15774 ln conftest.a conftest.b 2>&5 || hard_links=no
15775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15776 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15777 $as_echo "$hard_links" >&6; }
15778 if test "$hard_links" = no; then
15779 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15780 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15789 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15790 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15792 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15795 # If we're using GNU nm, then we don't want the "-C" option.
15796 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15797 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15798 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15800 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15804 export_symbols_cmds_CXX="$ltdll_cmds"
15806 cygwin* | mingw* | cegcc*)
15807 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15810 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15813 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15815 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15816 $as_echo "$ld_shlibs_CXX" >&6; }
15817 test "$ld_shlibs_CXX" = no && can_build_shared=no
15819 with_gnu_ld_CXX=$with_gnu_ld
15827 # Do we need to explicitly link libc?
15829 case "x$archive_cmds_need_lc_CXX" in
15831 # Assume -lc should be added
15832 archive_cmds_need_lc_CXX=yes
15834 if test "$enable_shared" = yes && test "$GCC" = yes; then
15835 case $archive_cmds_CXX in
15837 # FIXME: we may have to deal with multi-command sequences.
15840 # Test whether the compiler implicitly links with -lc since on some
15841 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15842 # to ld, don't add -lc before -lgcc.
15843 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15844 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>&5
15851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } 2>conftest.err; then
15855 libobjs=conftest.$ac_objext
15857 wl=$lt_prog_compiler_wl_CXX
15858 pic_flag=$lt_prog_compiler_pic_CXX
15864 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15865 allow_undefined_flag_CXX=
15866 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15867 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }
15872 archive_cmds_need_lc_CXX=no
15874 archive_cmds_need_lc_CXX=yes
15876 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15878 cat conftest.err 1>&5
15881 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15882 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15952 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15953 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15955 library_names_spec=
15956 libname_spec='lib$name'
15960 postuninstall_cmds=
15964 shlibpath_overrides_runpath=unknown
15966 dynamic_linker="$host_os ld.so"
15967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15968 need_lib_prefix=unknown
15969 hardcode_into_libs=no
15971 # when you set need_version to no, make sure it does not cause -set_version
15972 # flags to be left without arguments
15973 need_version=unknown
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15979 shlibpath_var=LIBPATH
15981 # AIX 3 has no versioning support, so we append a major version to the name.
15982 soname_spec='${libname}${release}${shared_ext}$major'
15989 hardcode_into_libs=yes
15990 if test "$host_cpu" = ia64; then
15991 # AIX 5 supports IA64
15992 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15993 shlibpath_var=LD_LIBRARY_PATH
15995 # With GCC up to 2.95.x, collect2 would create an import file
15996 # for dependence libraries. The import file would start with
15997 # the line `#! .'. This would cause the generated library to
15998 # depend on `.', always an invalid library. This was fixed in
15999 # development snapshots of GCC prior to 3.0.
16001 aix4 | aix4.[01] | aix4.[01].*)
16002 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16004 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16007 can_build_shared=no
16011 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16012 # soname into executable. Probably we can add versioning support to
16013 # collect2, so additional links can be useful in future.
16014 if test "$aix_use_runtimelinking" = yes; then
16015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16016 # instead of lib<name>.a to let people know that these are not
16017 # typical AIX shared libraries.
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020 # We preserve .a as extension for shared libraries through AIX4.2
16021 # and later when we are not doing run time linking.
16022 library_names_spec='${libname}${release}.a $libname.a'
16023 soname_spec='${libname}${release}${shared_ext}$major'
16025 shlibpath_var=LIBPATH
16032 # Since July 2007 AmigaOS4 officially supports .so libraries.
16033 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037 library_names_spec='$libname.ixlibrary $libname.a'
16038 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16039 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'
16045 library_names_spec='${libname}${shared_ext}'
16046 dynamic_linker="$host_os ld.so"
16047 shlibpath_var=LIBRARY_PATH
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16058 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16059 # the default ld.so.conf also contains /usr/contrib/lib and
16060 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16061 # libtool to hard-code these into programs
16064 cygwin* | mingw* | pw32* | cegcc*)
16065 version_type=windows
16070 case $GCC,$host_os in
16071 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16072 library_names_spec='$libname.dll.a'
16073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16074 postinstall_cmds='base_file=`basename \${file}`~
16075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16076 dldir=$destdir/`dirname \$dlpath`~
16077 test -d \$dldir || mkdir -p \$dldir~
16078 $install_prog $dir/$dlname \$dldir/$dlname~
16079 chmod a+x \$dldir/$dlname~
16080 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16081 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16084 dlpath=$dir/\$dldll~
16086 shlibpath_overrides_runpath=yes
16090 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16091 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16092 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16095 # MinGW DLLs use traditional 'lib' prefix
16096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16097 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16098 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16099 # It is most probably a Windows format PATH printed by
16100 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16101 # path with ; separators, and with drive letters. We can handle the
16102 # drive letters (cygwin fileutils understands them), so leave them,
16103 # especially as we might pass files found there to a mingw objdump,
16104 # which wouldn't understand a cygwinified path. Ahh.
16105 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16107 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16111 # pw32 DLLs use 'pw' prefix rather than 'lib'
16112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16121 dynamic_linker='Win32 ld.exe'
16122 # FIXME: first we should search . and the directory the executable is in
16126 darwin* | rhapsody*)
16127 dynamic_linker="$host_os dyld"
16128 version_type=darwin
16131 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16132 soname_spec='${libname}${release}${major}$shared_ext'
16133 shlibpath_overrides_runpath=yes
16134 shlibpath_var=DYLD_LIBRARY_PATH
16135 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16137 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 shlibpath_var=LD_LIBRARY_PATH
16153 freebsd* | dragonfly*)
16154 # DragonFly does not have aout. When/if they implement a new
16155 # versioning mechanism, adjust this.
16156 if test -x /usr/bin/objformat; then
16157 objformat=`/usr/bin/objformat`
16160 freebsd[123]*) objformat=aout ;;
16161 *) objformat=elf ;;
16164 version_type=freebsd-$objformat
16165 case $version_type in
16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16176 shlibpath_var=LD_LIBRARY_PATH
16179 shlibpath_overrides_runpath=yes
16181 freebsd3.[01]* | freebsdelf3.[01]*)
16182 shlibpath_overrides_runpath=yes
16183 hardcode_into_libs=yes
16185 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16186 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16187 shlibpath_overrides_runpath=no
16188 hardcode_into_libs=yes
16190 *) # from 4.6 on, and DragonFly
16191 shlibpath_overrides_runpath=yes
16192 hardcode_into_libs=yes
16201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16202 soname_spec='${libname}${release}${shared_ext}$major'
16203 shlibpath_var=LD_LIBRARY_PATH
16204 hardcode_into_libs=yes
16207 hpux9* | hpux10* | hpux11*)
16208 # Give a soname corresponding to the major version so that dld.sl refuses to
16209 # link against other versions.
16216 hardcode_into_libs=yes
16217 dynamic_linker="$host_os dld.so"
16218 shlibpath_var=LD_LIBRARY_PATH
16219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
16222 if test "X$HPUX_IA64_MODE" = X32; then
16223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16231 hardcode_into_libs=yes
16232 dynamic_linker="$host_os dld.sl"
16233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16242 dynamic_linker="$host_os dld.sl"
16243 shlibpath_var=SHLIB_PATH
16244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
16249 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16250 postinstall_cmds='chmod 555 $lib'
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16260 shlibpath_var=LD_LIBRARY_PATH
16261 shlibpath_overrides_runpath=no
16262 hardcode_into_libs=yes
16265 irix5* | irix6* | nonstopux*)
16267 nonstopux*) version_type=nonstopux ;;
16269 if test "$lt_cv_prog_gnu_ld" = yes; then
16277 soname_spec='${libname}${release}${shared_ext}$major'
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16280 irix5* | nonstopux*)
16281 libsuff= shlibsuff=
16284 case $LD in # libtool.m4 will add one of these switches to LD
16285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16286 libsuff= shlibsuff= libmagic=32-bit;;
16287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16288 libsuff=32 shlibsuff=N32 libmagic=N32;;
16289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16290 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16291 *) libsuff= shlibsuff= libmagic=never-match;;
16295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16296 shlibpath_overrides_runpath=no
16297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16299 hardcode_into_libs=yes
16302 # No shared lib support for Linux oldld, aout, or coff.
16303 linux*oldld* | linux*aout* | linux*coff*)
16307 # This must be Linux ELF.
16308 linux* | k*bsd*-gnu)
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16315 shlibpath_var=LD_LIBRARY_PATH
16316 shlibpath_overrides_runpath=no
16317 # Some binutils ld are patched to set DT_RUNPATH
16318 save_LDFLAGS=$LDFLAGS
16319 save_libdir=$libdir
16320 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16321 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16322 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (ac_try="$ac_link"
16339 case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16344 $as_echo "$ac_try_echo") >&5
16345 (eval "$ac_link") 2>conftest.er1
16347 grep -v '^ *+' conftest.er1 >conftest.err
16349 cat conftest.err >&5
16350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } && {
16352 test -z "$ac_cxx_werror_flag" ||
16353 test ! -s conftest.err
16354 } && test -s conftest$ac_exeext && {
16355 test "$cross_compiling" = yes ||
16356 $as_test_x conftest$ac_exeext
16358 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16359 shlibpath_overrides_runpath=yes
16363 $as_echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16369 rm -rf conftest.dSYM
16370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16371 conftest$ac_exeext conftest.$ac_ext
16372 LDFLAGS=$save_LDFLAGS
16373 libdir=$save_libdir
16375 # This implies no fast_install, which is unacceptable.
16376 # Some rework will be needed to allow for fast_install
16377 # before this can be enabled.
16378 hardcode_into_libs=yes
16380 # Add ABI-specific directories to the system library path.
16381 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16383 # Append ld.so.conf contents to the search path
16384 if test -f /etc/ld.so.conf; then
16385 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' ' '`
16386 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16389 # We used to test for /lib/ld.so.1 and disable shared libraries on
16390 # powerpc, because MkLinux only supported shared libraries with the
16391 # GNU dynamic linker. Since this was broken with cross compilers,
16392 # most powerpc-linux boxes support dynamic linking these days and
16393 # people can always --disable-shared, the test was removed, and we
16394 # assume the GNU/Linux dynamic linker is in use.
16395 dynamic_linker='GNU/Linux ld.so'
16402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16405 dynamic_linker='NetBSD (a.out) ld.so'
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 dynamic_linker='NetBSD ld.elf_so'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=yes
16413 hardcode_into_libs=yes
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 shlibpath_overrides_runpath=no
16431 hardcode_into_libs=yes
16432 dynamic_linker='ldqnx.so'
16437 sys_lib_dlsearch_path_spec="/usr/lib"
16439 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16441 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16442 *) need_version=no ;;
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16446 shlibpath_var=LD_LIBRARY_PATH
16447 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16449 openbsd2.[89] | openbsd2.[89].*)
16450 shlibpath_overrides_runpath=no
16453 shlibpath_overrides_runpath=yes
16457 shlibpath_overrides_runpath=yes
16462 libname_spec='$name'
16465 library_names_spec='$libname${shared_ext} $libname.a'
16466 dynamic_linker='OS/2 ld.exe'
16467 shlibpath_var=LIBPATH
16470 osf3* | osf4* | osf5*)
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 shlibpath_var=LD_LIBRARY_PATH
16477 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16478 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490 soname_spec='${libname}${release}${shared_ext}$major'
16491 shlibpath_var=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath=yes
16493 hardcode_into_libs=yes
16494 # ldd complains unless libraries are executable
16495 postinstall_cmds='chmod +x $lib'
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 shlibpath_overrides_runpath=yes
16504 if test "$with_gnu_ld" = yes; then
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16513 soname_spec='${libname}${release}${shared_ext}$major'
16514 shlibpath_var=LD_LIBRARY_PATH
16515 case $host_vendor in
16517 shlibpath_overrides_runpath=no
16519 runpath_var=LD_RUN_PATH
16527 shlibpath_overrides_runpath=no
16528 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16534 if test -d /usr/nec ;then
16536 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16537 soname_spec='$libname${shared_ext}.$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16543 version_type=freebsd-elf
16546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16547 soname_spec='${libname}${release}${shared_ext}$major'
16548 shlibpath_var=LD_LIBRARY_PATH
16549 shlibpath_overrides_runpath=yes
16550 hardcode_into_libs=yes
16551 if test "$with_gnu_ld" = yes; then
16552 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16554 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16557 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16561 sys_lib_dlsearch_path_spec='/usr/lib'
16565 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 shlibpath_overrides_runpath=no
16572 hardcode_into_libs=yes
16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16578 soname_spec='${libname}${release}${shared_ext}$major'
16579 shlibpath_var=LD_LIBRARY_PATH
16586 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16587 $as_echo "$dynamic_linker" >&6; }
16588 test "$dynamic_linker" = no && can_build_shared=no
16590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16591 if test "$GCC" = yes; then
16592 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16595 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16596 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16598 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16599 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16637 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16638 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16639 hardcode_action_CXX=
16640 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16641 test -n "$runpath_var_CXX" ||
16642 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16644 # We can hardcode non-existent directories.
16645 if test "$hardcode_direct_CXX" != no &&
16646 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16647 # have to relink, otherwise we might link with an installed library
16648 # when we should be linking with a yet-to-be-installed one
16649 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16650 test "$hardcode_minus_L_CXX" != no; then
16651 # Linking always hardcodes the temporary library directory.
16652 hardcode_action_CXX=relink
16654 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16655 hardcode_action_CXX=immediate
16658 # We cannot hardcode anything, or else we can only hardcode existing
16660 hardcode_action_CXX=unsupported
16662 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16663 $as_echo "$hardcode_action_CXX" >&6; }
16665 if test "$hardcode_action_CXX" = relink ||
16666 test "$inherit_rpath_CXX" = yes; then
16667 # Fast installation is not supported
16668 enable_fast_install=no
16669 elif test "$shlibpath_overrides_runpath" = yes ||
16670 test "$enable_shared" = no; then
16671 # Fast installation is not necessary
16672 enable_fast_install=needless
16681 fi # test -n "$compiler"
16687 with_gnu_ld=$lt_save_with_gnu_ld
16688 lt_cv_path_LDCXX=$lt_cv_path_LD
16689 lt_cv_path_LD=$lt_save_path_LD
16690 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16691 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16692 fi # test "$_lt_caught_CXX_error" != yes
16695 ac_cpp='$CPP $CPPFLAGS'
16696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16701 # Extract the first word of "ld", so it can be a program name with args.
16702 set dummy ld; ac_word=$2
16703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16704 $as_echo_n "checking for $ac_word... " >&6; }
16705 if test "${ac_cv_prog_LD+set}" = set; then
16706 $as_echo_n "(cached) " >&6
16708 if test -n "$LD"; then
16709 ac_cv_prog_LD="$LD" # Let the user override the test.
16711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16712 for as_dir in $PATH
16715 test -z "$as_dir" && as_dir=.
16716 for ac_exec_ext in '' $ac_executable_extensions; do
16717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16729 if test -n "$LD"; then
16730 { $as_echo "$as_me:$LINENO: result: $LD" >&5
16731 $as_echo "$LD" >&6; }
16733 { $as_echo "$as_me:$LINENO: result: no" >&5
16734 $as_echo "no" >&6; }
16738 test "$LD" || { { $as_echo "$as_me:$LINENO: error: ld not found" >&5
16739 $as_echo "$as_me: error: ld not found" >&2;}
16740 { (exit 1); exit 1; }; }
16742 # --with-kernel for cross compilation
16744 # Check whether --with-kernel was given.
16745 if test "${with_kernel+set}" = set; then
16746 withval=$with_kernel; KERNELDIR=$withval
16751 { $as_echo "$as_me:$LINENO: checking kernel version supports perf_events" >&5
16752 $as_echo_n "checking kernel version supports perf_events... " >&6; }
16753 if test "$KERNELDIR" != ""; then
16754 KINC="$KERNELDIR/include"
16757 SAVE_CFLAGS=$CFLAGS
16758 CFLAGS="-I$KINC -D__KERNEL__ -Werror"
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16766 #include <linux/version.h>
16772 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 31)
16773 break_me_hard(\\\);
16780 rm -f conftest.$ac_objext
16781 if { (ac_try="$ac_compile"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16787 $as_echo "$ac_try_echo") >&5
16788 (eval "$ac_compile") 2>conftest.er1
16790 grep -v '^ *+' conftest.er1 >conftest.err
16792 cat conftest.err >&5
16793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } && {
16795 test -z "$ac_c_werror_flag" ||
16796 test ! -s conftest.err
16797 } && test -s conftest.$ac_objext; then
16798 kernel_has_perf_events_support="yes"
16800 $as_echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 kernel_has_perf_events_support="no"
16806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16807 CFLAGS=$SAVE_CFLAGS
16810 if test "$kernel_has_perf_events_support" = "no"; then
16811 { $as_echo "$as_me:$LINENO: result: This kernel does not have perf_events support; falling back to legacy oprofile" >&5
16812 $as_echo "This kernel does not have perf_events support; falling back to legacy oprofile" >&6; }
16814 { $as_echo "$as_me:$LINENO: result: This kernel has perf_events support" >&5
16815 $as_echo "This kernel has perf_events support" >&6; }
16818 if test "$KERNELDIR" == ""; then
16819 PERF_EVENT_H="/usr/include/linux/perf_event.h"
16821 PERF_EVENT_H="$KERNELDIR/include/linux/perf_event.h"
16823 as_ac_Header=`$as_echo "ac_cv_header_$PERF_EVENT_H" | $as_tr_sh`
16824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16825 { $as_echo "$as_me:$LINENO: checking for $PERF_EVENT_H" >&5
16826 $as_echo_n "checking for $PERF_EVENT_H... " >&6; }
16827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16828 $as_echo_n "(cached) " >&6
16830 ac_res=`eval 'as_val=${'$as_ac_Header'}
16831 $as_echo "$as_val"'`
16832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16833 $as_echo "$ac_res" >&6; }
16835 # Is the header compilable?
16836 { $as_echo "$as_me:$LINENO: checking $PERF_EVENT_H usability" >&5
16837 $as_echo_n "checking $PERF_EVENT_H usability... " >&6; }
16838 cat >conftest.$ac_ext <<_ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 $ac_includes_default
16845 #include <$PERF_EVENT_H>
16847 rm -f conftest.$ac_objext
16848 if { (ac_try="$ac_compile"
16849 case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16854 $as_echo "$ac_try_echo") >&5
16855 (eval "$ac_compile") 2>conftest.er1
16857 grep -v '^ *+' conftest.er1 >conftest.err
16859 cat conftest.err >&5
16860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } && {
16862 test -z "$ac_c_werror_flag" ||
16863 test ! -s conftest.err
16864 } && test -s conftest.$ac_objext; then
16865 ac_header_compiler=yes
16867 $as_echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16870 ac_header_compiler=no
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16875 $as_echo "$ac_header_compiler" >&6; }
16877 # Is the header present?
16878 { $as_echo "$as_me:$LINENO: checking $PERF_EVENT_H presence" >&5
16879 $as_echo_n "checking $PERF_EVENT_H presence... " >&6; }
16880 cat >conftest.$ac_ext <<_ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16886 #include <$PERF_EVENT_H>
16888 if { (ac_try="$ac_cpp conftest.$ac_ext"
16889 case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16894 $as_echo "$ac_try_echo") >&5
16895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16897 grep -v '^ *+' conftest.er1 >conftest.err
16899 cat conftest.err >&5
16900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } >/dev/null && {
16902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16903 test ! -s conftest.err
16905 ac_header_preproc=yes
16907 $as_echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16910 ac_header_preproc=no
16913 rm -f conftest.err conftest.$ac_ext
16914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16915 $as_echo "$ac_header_preproc" >&6; }
16917 # So? What about this header?
16918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16920 { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: accepted by the compiler, rejected by the preprocessor!" >&5
16921 $as_echo "$as_me: WARNING: $PERF_EVENT_H: accepted by the compiler, rejected by the preprocessor!" >&2;}
16922 { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: proceeding with the compiler's result" >&5
16923 $as_echo "$as_me: WARNING: $PERF_EVENT_H: proceeding with the compiler's result" >&2;}
16924 ac_header_preproc=yes
16927 { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: present but cannot be compiled" >&5
16928 $as_echo "$as_me: WARNING: $PERF_EVENT_H: present but cannot be compiled" >&2;}
16929 { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: check for missing prerequisite headers?" >&5
16930 $as_echo "$as_me: WARNING: $PERF_EVENT_H: check for missing prerequisite headers?" >&2;}
16931 { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: see the Autoconf documentation" >&5
16932 $as_echo "$as_me: WARNING: $PERF_EVENT_H: see the Autoconf documentation" >&2;}
16933 { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: section \"Present But Cannot Be Compiled\"" >&5
16934 $as_echo "$as_me: WARNING: $PERF_EVENT_H: section \"Present But Cannot Be Compiled\"" >&2;}
16935 { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: proceeding with the preprocessor's result" >&5
16936 $as_echo "$as_me: WARNING: $PERF_EVENT_H: proceeding with the preprocessor's result" >&2;}
16937 { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: in the future, the compiler will take precedence" >&5
16938 $as_echo "$as_me: WARNING: $PERF_EVENT_H: in the future, the compiler will take precedence" >&2;}
16942 { $as_echo "$as_me:$LINENO: checking for $PERF_EVENT_H" >&5
16943 $as_echo_n "checking for $PERF_EVENT_H... " >&6; }
16944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16945 $as_echo_n "(cached) " >&6
16947 eval "$as_ac_Header=\$ac_header_preproc"
16949 ac_res=`eval 'as_val=${'$as_ac_Header'}
16950 $as_echo "$as_val"'`
16951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16952 $as_echo "$ac_res" >&6; }
16955 as_val=`eval 'as_val=${'$as_ac_Header'}
16956 $as_echo "$as_val"'`
16957 if test "x$as_val" = x""yes; then
16958 PERF_EVENT_H_EXISTS="yes"
16962 if test -n "$PERF_EVENT_H_EXISTS"; then
16963 BUILD_FOR_PERF_EVENT_TRUE=
16964 BUILD_FOR_PERF_EVENT_FALSE='#'
16966 BUILD_FOR_PERF_EVENT_TRUE='#'
16967 BUILD_FOR_PERF_EVENT_FALSE=
16970 if test "$PERF_EVENT_H_EXISTS" = "yes"; then
16971 HAVE_PERF_EVENTS='1'
16972 if test "$KERNELDIR" != ""; then
16973 PERF_EVENT_FLAGS=" -I$KERNELDIR/include"
16977 HAVE_PERF_EVENTS='0'
16980 cat >>confdefs.h <<_ACEOF
16981 #define HAVE_PERF_EVENTS $HAVE_PERF_EVENTS
16985 if test "$HAVE_PERF_EVENTS" = "1"; then
16988 if test "$arch" = "ppc64"; then
16989 if test "${ac_cv_header_perfmon_pfmlib_h+set}" = set; then
16990 { $as_echo "$as_me:$LINENO: checking for perfmon/pfmlib.h" >&5
16991 $as_echo_n "checking for perfmon/pfmlib.h... " >&6; }
16992 if test "${ac_cv_header_perfmon_pfmlib_h+set}" = set; then
16993 $as_echo_n "(cached) " >&6
16995 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perfmon_pfmlib_h" >&5
16996 $as_echo "$ac_cv_header_perfmon_pfmlib_h" >&6; }
16998 # Is the header compilable?
16999 { $as_echo "$as_me:$LINENO: checking perfmon/pfmlib.h usability" >&5
17000 $as_echo_n "checking perfmon/pfmlib.h usability... " >&6; }
17001 cat >conftest.$ac_ext <<_ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17007 $ac_includes_default
17008 #include <perfmon/pfmlib.h>
17010 rm -f conftest.$ac_objext
17011 if { (ac_try="$ac_compile"
17012 case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17017 $as_echo "$ac_try_echo") >&5
17018 (eval "$ac_compile") 2>conftest.er1
17020 grep -v '^ *+' conftest.er1 >conftest.err
17022 cat conftest.err >&5
17023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } && {
17025 test -z "$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17027 } && test -s conftest.$ac_objext; then
17028 ac_header_compiler=yes
17030 $as_echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 ac_header_compiler=no
17036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17037 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17038 $as_echo "$ac_header_compiler" >&6; }
17040 # Is the header present?
17041 { $as_echo "$as_me:$LINENO: checking perfmon/pfmlib.h presence" >&5
17042 $as_echo_n "checking perfmon/pfmlib.h presence... " >&6; }
17043 cat >conftest.$ac_ext <<_ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h. */
17049 #include <perfmon/pfmlib.h>
17051 if { (ac_try="$ac_cpp conftest.$ac_ext"
17052 case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17057 $as_echo "$ac_try_echo") >&5
17058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17060 grep -v '^ *+' conftest.er1 >conftest.err
17062 cat conftest.err >&5
17063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } >/dev/null && {
17065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17068 ac_header_preproc=yes
17070 $as_echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 ac_header_preproc=no
17076 rm -f conftest.err conftest.$ac_ext
17077 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17078 $as_echo "$ac_header_preproc" >&6; }
17080 # So? What about this header?
17081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17083 { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17084 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17085 { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: proceeding with the compiler's result" >&5
17086 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: proceeding with the compiler's result" >&2;}
17087 ac_header_preproc=yes
17090 { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: present but cannot be compiled" >&5
17091 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: present but cannot be compiled" >&2;}
17092 { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: check for missing prerequisite headers?" >&5
17093 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: check for missing prerequisite headers?" >&2;}
17094 { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: see the Autoconf documentation" >&5
17095 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: see the Autoconf documentation" >&2;}
17096 { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: section \"Present But Cannot Be Compiled\"" >&5
17097 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17098 { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: proceeding with the preprocessor's result" >&5
17099 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: proceeding with the preprocessor's result" >&2;}
17100 { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: in the future, the compiler will take precedence" >&5
17101 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: in the future, the compiler will take precedence" >&2;}
17105 { $as_echo "$as_me:$LINENO: checking for perfmon/pfmlib.h" >&5
17106 $as_echo_n "checking for perfmon/pfmlib.h... " >&6; }
17107 if test "${ac_cv_header_perfmon_pfmlib_h+set}" = set; then
17108 $as_echo_n "(cached) " >&6
17110 ac_cv_header_perfmon_pfmlib_h=$ac_header_preproc
17112 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perfmon_pfmlib_h" >&5
17113 $as_echo "$ac_cv_header_perfmon_pfmlib_h" >&6; }
17116 if test "x$ac_cv_header_perfmon_pfmlib_h" = x""yes; then
17119 { { $as_echo "$as_me:$LINENO: error: pfmlib.h not found; usually provided in papi devel package" >&5
17120 $as_echo "$as_me: error: pfmlib.h not found; usually provided in papi devel package" >&2;}
17121 { (exit 1); exit 1; }; }
17125 { $as_echo "$as_me:$LINENO: checking for pfm_get_event_name in -lpfm" >&5
17126 $as_echo_n "checking for pfm_get_event_name in -lpfm... " >&6; }
17127 if test "${ac_cv_lib_pfm_pfm_get_event_name+set}" = set; then
17128 $as_echo_n "(cached) " >&6
17130 ac_check_lib_save_LIBS=$LIBS
17132 cat >conftest.$ac_ext <<_ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17139 /* Override any GCC internal prototype to avoid an error.
17140 Use char because int might match the return type of a GCC
17141 builtin and then its argument prototype would still apply. */
17145 char pfm_get_event_name ();
17149 return pfm_get_event_name ();
17154 rm -f conftest.$ac_objext conftest$ac_exeext
17155 if { (ac_try="$ac_link"
17156 case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17161 $as_echo "$ac_try_echo") >&5
17162 (eval "$ac_link") 2>conftest.er1
17164 grep -v '^ *+' conftest.er1 >conftest.err
17166 cat conftest.err >&5
17167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest$ac_exeext && {
17172 test "$cross_compiling" = yes ||
17173 $as_test_x conftest$ac_exeext
17175 ac_cv_lib_pfm_pfm_get_event_name=yes
17177 $as_echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17180 ac_cv_lib_pfm_pfm_get_event_name=no
17183 rm -rf conftest.dSYM
17184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17185 conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_get_event_name" >&5
17189 $as_echo "$ac_cv_lib_pfm_pfm_get_event_name" >&6; }
17190 if test "x$ac_cv_lib_pfm_pfm_get_event_name" = x""yes; then
17191 HAVE_LIBPFM3='1'; HAVE_LIBPFM='1'
17194 { $as_echo "$as_me:$LINENO: checking for pfm_get_os_event_encoding in -lpfm" >&5
17195 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
17196 if test "${ac_cv_lib_pfm_pfm_get_os_event_encoding+set}" = set; then
17197 $as_echo_n "(cached) " >&6
17199 ac_check_lib_save_LIBS=$LIBS
17201 cat >conftest.$ac_ext <<_ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17208 /* Override any GCC internal prototype to avoid an error.
17209 Use char because int might match the return type of a GCC
17210 builtin and then its argument prototype would still apply. */
17214 char pfm_get_os_event_encoding ();
17218 return pfm_get_os_event_encoding ();
17223 rm -f conftest.$ac_objext conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17230 $as_echo "$ac_try_echo") >&5
17231 (eval "$ac_link") 2>conftest.er1
17233 grep -v '^ *+' conftest.er1 >conftest.err
17235 cat conftest.err >&5
17236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } && {
17238 test -z "$ac_c_werror_flag" ||
17239 test ! -s conftest.err
17240 } && test -s conftest$ac_exeext && {
17241 test "$cross_compiling" = yes ||
17242 $as_test_x conftest$ac_exeext
17244 ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
17246 $as_echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ac_cv_lib_pfm_pfm_get_os_event_encoding=no
17252 rm -rf conftest.dSYM
17253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17254 conftest$ac_exeext conftest.$ac_ext
17255 LIBS=$ac_check_lib_save_LIBS
17257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
17258 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
17259 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = x""yes; then
17260 HAVE_LIBPFM3='0'; HAVE_LIBPFM='1'
17262 { { $as_echo "$as_me:$LINENO: error: libpfm not found; usually provided in papi devel package" >&5
17263 $as_echo "$as_me: error: libpfm not found; usually provided in papi devel package" >&2;}
17264 { (exit 1); exit 1; }; }
17271 cat >>confdefs.h <<_ACEOF
17272 #define HAVE_LIBPFM3 $HAVE_LIBPFM3
17276 cat >>confdefs.h <<_ACEOF
17277 #define HAVE_LIBPFM $HAVE_LIBPFM
17285 # Check whether --with-java was given.
17286 if test "${with_java+set}" = set; then
17287 withval=$with_java; JAVA_HOMEDIR=$with_java
17293 if test "x$with_java" = "xyes"; then
17294 JAVA_HOMEDIR="/usr"
17295 else if test "x$with_java" = "xno"; then
17301 if test -n "$JAVA_HOMEDIR"; then
17302 as_ac_File=`$as_echo "ac_cv_file_"$JAVA_HOMEDIR/include/jvmti.h"" | $as_tr_sh`
17303 { $as_echo "$as_me:$LINENO: checking for \"$JAVA_HOMEDIR/include/jvmti.h\"" >&5
17304 $as_echo_n "checking for \"$JAVA_HOMEDIR/include/jvmti.h\"... " >&6; }
17305 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
17306 $as_echo_n "(cached) " >&6
17308 test "$cross_compiling" = yes &&
17309 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17310 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17311 { (exit 1); exit 1; }; }
17312 if test -r ""$JAVA_HOMEDIR/include/jvmti.h""; then
17313 eval "$as_ac_File=yes"
17315 eval "$as_ac_File=no"
17318 ac_res=`eval 'as_val=${'$as_ac_File'}
17319 $as_echo "$as_val"'`
17320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17321 $as_echo "$ac_res" >&6; }
17322 as_val=`eval 'as_val=${'$as_ac_File'}
17323 $as_echo "$as_val"'`
17324 if test "x$as_val" = x""yes; then
17325 JVMTI_H_EXISTS="yes"
17328 as_ac_File=`$as_echo "ac_cv_file_"$JAVA_HOMEDIR/include/jvmpi.h"" | $as_tr_sh`
17329 { $as_echo "$as_me:$LINENO: checking for \"$JAVA_HOMEDIR/include/jvmpi.h\"" >&5
17330 $as_echo_n "checking for \"$JAVA_HOMEDIR/include/jvmpi.h\"... " >&6; }
17331 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
17332 $as_echo_n "(cached) " >&6
17334 test "$cross_compiling" = yes &&
17335 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17336 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17337 { (exit 1); exit 1; }; }
17338 if test -r ""$JAVA_HOMEDIR/include/jvmpi.h""; then
17339 eval "$as_ac_File=yes"
17341 eval "$as_ac_File=no"
17344 ac_res=`eval 'as_val=${'$as_ac_File'}
17345 $as_echo "$as_val"'`
17346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17347 $as_echo "$ac_res" >&6; }
17348 as_val=`eval 'as_val=${'$as_ac_File'}
17349 $as_echo "$as_val"'`
17350 if test "x$as_val" = x""yes; then
17351 JVMPI_H_EXISTS="yes"
17356 if test -n "$JVMTI_H_EXISTS"; then
17357 BUILD_JVMTI_AGENT_TRUE=
17358 BUILD_JVMTI_AGENT_FALSE='#'
17360 BUILD_JVMTI_AGENT_TRUE='#'
17361 BUILD_JVMTI_AGENT_FALSE=
17364 if test -n "$JVMPI_H_EXISTS"; then
17365 BUILD_JVMPI_AGENT_TRUE=
17366 BUILD_JVMPI_AGENT_FALSE='#'
17368 BUILD_JVMPI_AGENT_TRUE='#'
17369 BUILD_JVMPI_AGENT_FALSE=
17374 { $as_echo "$as_me:$LINENO: checking whether malloc attribute is understood" >&5
17375 $as_echo_n "checking whether malloc attribute is understood... " >&6; }
17376 SAVE_CFLAGS=$CFLAGS
17377 CFLAGS="-Werror $CFLAGS"
17378 cat >conftest.$ac_ext <<_ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17389 void monkey() __attribute__((malloc));
17395 rm -f conftest.$ac_objext
17396 if { (ac_try="$ac_compile"
17397 case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17402 $as_echo "$ac_try_echo") >&5
17403 (eval "$ac_compile") 2>conftest.er1
17405 grep -v '^ *+' conftest.er1 >conftest.err
17407 cat conftest.err >&5
17408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } && {
17410 test -z "$ac_c_werror_flag" ||
17411 test ! -s conftest.err
17412 } && test -s conftest.$ac_objext; then
17413 { $as_echo "$as_me:$LINENO: result: yes" >&5
17414 $as_echo "yes" >&6; };
17415 cat >>confdefs.h <<\_ACEOF
17416 #define MALLOC_ATTRIBUTE_OK 1
17420 $as_echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 { $as_echo "$as_me:$LINENO: result: no" >&5
17424 $as_echo "no" >&6; }
17427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17428 CFLAGS=$SAVE_CFLAGS
17432 { $as_echo "$as_me:$LINENO: checking whether __builtin_expect is understood" >&5
17433 $as_echo_n "checking whether __builtin_expect is understood... " >&6; }
17434 SAVE_CFLAGS=$CFLAGS
17435 CFLAGS="-Werror $CFLAGS"
17436 cat >conftest.$ac_ext <<_ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17448 if (__builtin_expect(i, 0)) { }
17454 rm -f conftest.$ac_objext conftest$ac_exeext
17455 if { (ac_try="$ac_link"
17456 case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17461 $as_echo "$ac_try_echo") >&5
17462 (eval "$ac_link") 2>conftest.er1
17464 grep -v '^ *+' conftest.er1 >conftest.err
17466 cat conftest.err >&5
17467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } && {
17469 test -z "$ac_c_werror_flag" ||
17470 test ! -s conftest.err
17471 } && test -s conftest$ac_exeext && {
17472 test "$cross_compiling" = yes ||
17473 $as_test_x conftest$ac_exeext
17475 { $as_echo "$as_me:$LINENO: result: yes" >&5
17476 $as_echo "yes" >&6; }; EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DEXPECT_OK"
17478 $as_echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17481 { $as_echo "$as_me:$LINENO: result: no" >&5
17482 $as_echo "no" >&6; };
17485 rm -rf conftest.dSYM
17486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17487 conftest$ac_exeext conftest.$ac_ext
17488 CFLAGS=$SAVE_CFLAGS
17499 # Check whether --with-extra-includes was given.
17500 if test "${with_extra_includes+set}" = set; then
17501 withval=$with_extra_includes; use_extra_includes="$withval"
17503 use_extra_includes=NO
17507 if test -n "$use_extra_includes" && \
17508 test "$use_extra_includes" != "NO"; then
17511 for dir in $use_extra_includes; do
17512 extra_includes="$extra_includes -I$dir"
17515 CPPFLAGS="$CPPFLAGS $extra_includes"
17519 # Check whether --with-extra-libs was given.
17520 if test "${with_extra_libs+set}" = set; then
17521 withval=$with_extra_libs; use_extra_libs=$withval
17527 if test -n "$use_extra_libs" && \
17528 test "$use_extra_libs" != "NO"; then
17531 for dir in $use_extra_libs; do
17532 extra_libraries="$extra_libraries -L$dir"
17535 LDFLAGS="$LDFLAGS $extra_libraries"
17540 ORIG_SAVE_LIBS="$LIBS"
17544 for ac_func in sched_setaffinity perfmonctl
17546 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17547 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17548 $as_echo_n "checking for $ac_func... " >&6; }
17549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17550 $as_echo_n "(cached) " >&6
17552 cat >conftest.$ac_ext <<_ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17560 #define $ac_func innocuous_$ac_func
17562 /* System header to define __stub macros and hopefully few prototypes,
17563 which can conflict with char $ac_func (); below.
17564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17565 <limits.h> exists even on freestanding compilers. */
17568 # include <limits.h>
17570 # include <assert.h>
17575 /* Override any GCC internal prototype to avoid an error.
17576 Use char because int might match the return type of a GCC
17577 builtin and then its argument prototype would still apply. */
17582 /* The GNU C library defines this for functions which it implements
17583 to always fail with ENOSYS. Some functions are actually named
17584 something starting with __ and the normal name is an alias. */
17585 #if defined __stub_$ac_func || defined __stub___$ac_func
17592 return $ac_func ();
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (ac_try="$ac_link"
17599 case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17604 $as_echo "$ac_try_echo") >&5
17605 (eval "$ac_link") 2>conftest.er1
17607 grep -v '^ *+' conftest.er1 >conftest.err
17609 cat conftest.err >&5
17610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } && {
17612 test -z "$ac_c_werror_flag" ||
17613 test ! -s conftest.err
17614 } && test -s conftest$ac_exeext && {
17615 test "$cross_compiling" = yes ||
17616 $as_test_x conftest$ac_exeext
17618 eval "$as_ac_var=yes"
17620 $as_echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 eval "$as_ac_var=no"
17626 rm -rf conftest.dSYM
17627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17628 conftest$ac_exeext conftest.$ac_ext
17630 ac_res=`eval 'as_val=${'$as_ac_var'}
17631 $as_echo "$as_val"'`
17632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17633 $as_echo "$ac_res" >&6; }
17634 as_val=`eval 'as_val=${'$as_ac_var'}
17635 $as_echo "$as_val"'`
17636 if test "x$as_val" = x""yes; then
17637 cat >>confdefs.h <<_ACEOF
17638 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17646 { $as_echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
17647 $as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
17648 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
17649 $as_echo_n "(cached) " >&6
17651 ac_check_lib_save_LIBS=$LIBS
17652 LIBS="-lpopt $LIBS"
17653 cat >conftest.$ac_ext <<_ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h. */
17660 /* Override any GCC internal prototype to avoid an error.
17661 Use char because int might match the return type of a GCC
17662 builtin and then its argument prototype would still apply. */
17666 char poptGetContext ();
17670 return poptGetContext ();
17675 rm -f conftest.$ac_objext conftest$ac_exeext
17676 if { (ac_try="$ac_link"
17677 case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17682 $as_echo "$ac_try_echo") >&5
17683 (eval "$ac_link") 2>conftest.er1
17685 grep -v '^ *+' conftest.er1 >conftest.err
17687 cat conftest.err >&5
17688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } && {
17690 test -z "$ac_c_werror_flag" ||
17691 test ! -s conftest.err
17692 } && test -s conftest$ac_exeext && {
17693 test "$cross_compiling" = yes ||
17694 $as_test_x conftest$ac_exeext
17696 ac_cv_lib_popt_poptGetContext=yes
17698 $as_echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17701 ac_cv_lib_popt_poptGetContext=no
17704 rm -rf conftest.dSYM
17705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17706 conftest$ac_exeext conftest.$ac_ext
17707 LIBS=$ac_check_lib_save_LIBS
17709 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
17710 $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
17711 if test "x$ac_cv_lib_popt_poptGetContext" = x""yes; then
17712 cat >>confdefs.h <<_ACEOF
17713 #define HAVE_LIBPOPT 1
17716 LIBS="-lpopt $LIBS"
17719 { { $as_echo "$as_me:$LINENO: error: popt library not found" >&5
17720 $as_echo "$as_me: error: popt library not found" >&2;}
17721 { (exit 1); exit 1; }; }
17726 for ac_header in libiberty.h
17728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17730 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17731 $as_echo_n "checking for $ac_header... " >&6; }
17732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17733 $as_echo_n "(cached) " >&6
17735 ac_res=`eval 'as_val=${'$as_ac_Header'}
17736 $as_echo "$as_val"'`
17737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17738 $as_echo "$ac_res" >&6; }
17740 # Is the header compilable?
17741 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17742 $as_echo_n "checking $ac_header usability... " >&6; }
17743 cat >conftest.$ac_ext <<_ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 $ac_includes_default
17750 #include <$ac_header>
17752 rm -f conftest.$ac_objext
17753 if { (ac_try="$ac_compile"
17754 case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17759 $as_echo "$ac_try_echo") >&5
17760 (eval "$ac_compile") 2>conftest.er1
17762 grep -v '^ *+' conftest.er1 >conftest.err
17764 cat conftest.err >&5
17765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } && {
17767 test -z "$ac_c_werror_flag" ||
17768 test ! -s conftest.err
17769 } && test -s conftest.$ac_objext; then
17770 ac_header_compiler=yes
17772 $as_echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17775 ac_header_compiler=no
17778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17779 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17780 $as_echo "$ac_header_compiler" >&6; }
17782 # Is the header present?
17783 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17784 $as_echo_n "checking $ac_header presence... " >&6; }
17785 cat >conftest.$ac_ext <<_ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17791 #include <$ac_header>
17793 if { (ac_try="$ac_cpp conftest.$ac_ext"
17794 case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17799 $as_echo "$ac_try_echo") >&5
17800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17802 grep -v '^ *+' conftest.er1 >conftest.err
17804 cat conftest.err >&5
17805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } >/dev/null && {
17807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17808 test ! -s conftest.err
17810 ac_header_preproc=yes
17812 $as_echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17815 ac_header_preproc=no
17818 rm -f conftest.err conftest.$ac_ext
17819 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17820 $as_echo "$ac_header_preproc" >&6; }
17822 # So? What about this header?
17823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17826 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17828 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17829 ac_header_preproc=yes
17832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17833 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17835 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17837 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17839 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17841 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17843 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17847 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17848 $as_echo_n "checking for $ac_header... " >&6; }
17849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17850 $as_echo_n "(cached) " >&6
17852 eval "$as_ac_Header=\$ac_header_preproc"
17854 ac_res=`eval 'as_val=${'$as_ac_Header'}
17855 $as_echo "$as_val"'`
17856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17857 $as_echo "$ac_res" >&6; }
17860 as_val=`eval 'as_val=${'$as_ac_Header'}
17861 $as_echo "$as_val"'`
17862 if test "x$as_val" = x""yes; then
17863 cat >>confdefs.h <<_ACEOF
17864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17872 { $as_echo "$as_me:$LINENO: checking for cplus_demangle in -liberty" >&5
17873 $as_echo_n "checking for cplus_demangle in -liberty... " >&6; }
17874 if test "${ac_cv_lib_iberty_cplus_demangle+set}" = set; then
17875 $as_echo_n "(cached) " >&6
17877 ac_check_lib_save_LIBS=$LIBS
17878 LIBS="-liberty $LIBS"
17879 cat >conftest.$ac_ext <<_ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17886 /* Override any GCC internal prototype to avoid an error.
17887 Use char because int might match the return type of a GCC
17888 builtin and then its argument prototype would still apply. */
17892 char cplus_demangle ();
17896 return cplus_demangle ();
17901 rm -f conftest.$ac_objext conftest$ac_exeext
17902 if { (ac_try="$ac_link"
17903 case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17908 $as_echo "$ac_try_echo") >&5
17909 (eval "$ac_link") 2>conftest.er1
17911 grep -v '^ *+' conftest.er1 >conftest.err
17913 cat conftest.err >&5
17914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } && {
17916 test -z "$ac_c_werror_flag" ||
17917 test ! -s conftest.err
17918 } && test -s conftest$ac_exeext && {
17919 test "$cross_compiling" = yes ||
17920 $as_test_x conftest$ac_exeext
17922 ac_cv_lib_iberty_cplus_demangle=yes
17924 $as_echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17927 ac_cv_lib_iberty_cplus_demangle=no
17930 rm -rf conftest.dSYM
17931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17932 conftest$ac_exeext conftest.$ac_ext
17933 LIBS=$ac_check_lib_save_LIBS
17935 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_cplus_demangle" >&5
17936 $as_echo "$ac_cv_lib_iberty_cplus_demangle" >&6; }
17937 if test "x$ac_cv_lib_iberty_cplus_demangle" = x""yes; then
17938 cat >>confdefs.h <<_ACEOF
17939 #define HAVE_LIBIBERTY 1
17942 LIBS="-liberty $LIBS"
17945 { { $as_echo "$as_me:$LINENO: error: liberty library not found" >&5
17946 $as_echo "$as_me: error: liberty library not found" >&2;}
17947 { (exit 1); exit 1; }; }
17951 for ac_func in xcalloc
17953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17954 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17955 $as_echo_n "checking for $ac_func... " >&6; }
17956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17957 $as_echo_n "(cached) " >&6
17959 cat >conftest.$ac_ext <<_ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17967 #define $ac_func innocuous_$ac_func
17969 /* System header to define __stub macros and hopefully few prototypes,
17970 which can conflict with char $ac_func (); below.
17971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17972 <limits.h> exists even on freestanding compilers. */
17975 # include <limits.h>
17977 # include <assert.h>
17982 /* Override any GCC internal prototype to avoid an error.
17983 Use char because int might match the return type of a GCC
17984 builtin and then its argument prototype would still apply. */
17989 /* The GNU C library defines this for functions which it implements
17990 to always fail with ENOSYS. Some functions are actually named
17991 something starting with __ and the normal name is an alias. */
17992 #if defined __stub_$ac_func || defined __stub___$ac_func
17999 return $ac_func ();
18004 rm -f conftest.$ac_objext conftest$ac_exeext
18005 if { (ac_try="$ac_link"
18006 case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18011 $as_echo "$ac_try_echo") >&5
18012 (eval "$ac_link") 2>conftest.er1
18014 grep -v '^ *+' conftest.er1 >conftest.err
18016 cat conftest.err >&5
18017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } && {
18019 test -z "$ac_c_werror_flag" ||
18020 test ! -s conftest.err
18021 } && test -s conftest$ac_exeext && {
18022 test "$cross_compiling" = yes ||
18023 $as_test_x conftest$ac_exeext
18025 eval "$as_ac_var=yes"
18027 $as_echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18030 eval "$as_ac_var=no"
18033 rm -rf conftest.dSYM
18034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18035 conftest$ac_exeext conftest.$ac_ext
18037 ac_res=`eval 'as_val=${'$as_ac_var'}
18038 $as_echo "$as_val"'`
18039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18040 $as_echo "$ac_res" >&6; }
18041 as_val=`eval 'as_val=${'$as_ac_var'}
18042 $as_echo "$as_val"'`
18043 if test "x$as_val" = x""yes; then
18044 cat >>confdefs.h <<_ACEOF
18045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18052 for ac_func in xmemdup
18054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18055 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18056 $as_echo_n "checking for $ac_func... " >&6; }
18057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18058 $as_echo_n "(cached) " >&6
18060 cat >conftest.$ac_ext <<_ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18068 #define $ac_func innocuous_$ac_func
18070 /* System header to define __stub macros and hopefully few prototypes,
18071 which can conflict with char $ac_func (); below.
18072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18073 <limits.h> exists even on freestanding compilers. */
18076 # include <limits.h>
18078 # include <assert.h>
18083 /* Override any GCC internal prototype to avoid an error.
18084 Use char because int might match the return type of a GCC
18085 builtin and then its argument prototype would still apply. */
18090 /* The GNU C library defines this for functions which it implements
18091 to always fail with ENOSYS. Some functions are actually named
18092 something starting with __ and the normal name is an alias. */
18093 #if defined __stub_$ac_func || defined __stub___$ac_func
18100 return $ac_func ();
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (ac_try="$ac_link"
18107 case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18112 $as_echo "$ac_try_echo") >&5
18113 (eval "$ac_link") 2>conftest.er1
18115 grep -v '^ *+' conftest.er1 >conftest.err
18117 cat conftest.err >&5
18118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } && {
18120 test -z "$ac_c_werror_flag" ||
18121 test ! -s conftest.err
18122 } && test -s conftest$ac_exeext && {
18123 test "$cross_compiling" = yes ||
18124 $as_test_x conftest$ac_exeext
18126 eval "$as_ac_var=yes"
18128 $as_echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18131 eval "$as_ac_var=no"
18134 rm -rf conftest.dSYM
18135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18136 conftest$ac_exeext conftest.$ac_ext
18138 ac_res=`eval 'as_val=${'$as_ac_var'}
18139 $as_echo "$as_val"'`
18140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18141 $as_echo "$ac_res" >&6; }
18142 as_val=`eval 'as_val=${'$as_ac_var'}
18143 $as_echo "$as_val"'`
18144 if test "x$as_val" = x""yes; then
18145 cat >>confdefs.h <<_ACEOF
18146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18152 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18153 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18155 $as_echo_n "(cached) " >&6
18157 ac_check_lib_save_LIBS=$LIBS
18159 cat >conftest.$ac_ext <<_ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18166 /* Override any GCC internal prototype to avoid an error.
18167 Use char because int might match the return type of a GCC
18168 builtin and then its argument prototype would still apply. */
18181 rm -f conftest.$ac_objext conftest$ac_exeext
18182 if { (ac_try="$ac_link"
18183 case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18188 $as_echo "$ac_try_echo") >&5
18189 (eval "$ac_link") 2>conftest.er1
18191 grep -v '^ *+' conftest.er1 >conftest.err
18193 cat conftest.err >&5
18194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } && {
18196 test -z "$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18198 } && test -s conftest$ac_exeext && {
18199 test "$cross_compiling" = yes ||
18200 $as_test_x conftest$ac_exeext
18202 ac_cv_lib_dl_dlopen=yes
18204 $as_echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18207 ac_cv_lib_dl_dlopen=no
18210 rm -rf conftest.dSYM
18211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18212 conftest$ac_exeext conftest.$ac_ext
18213 LIBS=$ac_check_lib_save_LIBS
18215 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18216 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18217 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18218 LIBS="$LIBS -ldl"; DL_LIB="-ldl"
18223 { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5
18224 $as_echo_n "checking for main in -lintl... " >&6; }
18225 if test "${ac_cv_lib_intl_main+set}" = set; then
18226 $as_echo_n "(cached) " >&6
18228 ac_check_lib_save_LIBS=$LIBS
18229 LIBS="-lintl $LIBS"
18230 cat >conftest.$ac_ext <<_ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18246 rm -f conftest.$ac_objext conftest$ac_exeext
18247 if { (ac_try="$ac_link"
18248 case "(($ac_try" in
18249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18253 $as_echo "$ac_try_echo") >&5
18254 (eval "$ac_link") 2>conftest.er1
18256 grep -v '^ *+' conftest.er1 >conftest.err
18258 cat conftest.err >&5
18259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } && {
18261 test -z "$ac_c_werror_flag" ||
18262 test ! -s conftest.err
18263 } && test -s conftest$ac_exeext && {
18264 test "$cross_compiling" = yes ||
18265 $as_test_x conftest$ac_exeext
18267 ac_cv_lib_intl_main=yes
18269 $as_echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 ac_cv_lib_intl_main=no
18275 rm -rf conftest.dSYM
18276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18277 conftest$ac_exeext conftest.$ac_ext
18278 LIBS=$ac_check_lib_save_LIBS
18280 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
18281 $as_echo "$ac_cv_lib_intl_main" >&6; }
18282 if test "x$ac_cv_lib_intl_main" = x""yes; then
18283 LIBS="$LIBS -lintl"; INTL_LIB="-lintl"
18289 { $as_echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
18290 $as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
18291 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
18292 $as_echo_n "(cached) " >&6
18294 ac_check_lib_save_LIBS=$LIBS
18296 cat >conftest.$ac_ext <<_ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18303 /* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18313 return bfd_openr ();
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18325 $as_echo "$ac_try_echo") >&5
18326 (eval "$ac_link") 2>conftest.er1
18328 grep -v '^ *+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } && {
18333 test -z "$ac_c_werror_flag" ||
18334 test ! -s conftest.err
18335 } && test -s conftest$ac_exeext && {
18336 test "$cross_compiling" = yes ||
18337 $as_test_x conftest$ac_exeext
18339 ac_cv_lib_bfd_bfd_openr=yes
18341 $as_echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_cv_lib_bfd_bfd_openr=no
18347 rm -rf conftest.dSYM
18348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18349 conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18352 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
18353 $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
18354 if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then
18355 LIBS="-lbfd $LIBS"; Z_LIB=""
18357 { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
18358 $as_echo_n "checking for compress in -lz... " >&6; }
18359 if test "${ac_cv_lib_z_compress+set}" = set; then
18360 $as_echo_n "(cached) " >&6
18362 ac_check_lib_save_LIBS=$LIBS
18364 cat >conftest.$ac_ext <<_ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18371 /* Override any GCC internal prototype to avoid an error.
18372 Use char because int might match the return type of a GCC
18373 builtin and then its argument prototype would still apply. */
18381 return compress ();
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (ac_try="$ac_link"
18388 case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18393 $as_echo "$ac_try_echo") >&5
18394 (eval "$ac_link") 2>conftest.er1
18396 grep -v '^ *+' conftest.er1 >conftest.err
18398 cat conftest.err >&5
18399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } && {
18401 test -z "$ac_c_werror_flag" ||
18402 test ! -s conftest.err
18403 } && test -s conftest$ac_exeext && {
18404 test "$cross_compiling" = yes ||
18405 $as_test_x conftest$ac_exeext
18407 ac_cv_lib_z_compress=yes
18409 $as_echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 ac_cv_lib_z_compress=no
18415 rm -rf conftest.dSYM
18416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18417 conftest$ac_exeext conftest.$ac_ext
18418 LIBS=$ac_check_lib_save_LIBS
18420 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
18421 $as_echo "$ac_cv_lib_z_compress" >&6; }
18422 if test "x$ac_cv_lib_z_compress" = x""yes; then
18423 { $as_echo "$as_me:$LINENO: checking for bfd_fdopenr in -lbfd" >&5
18424 $as_echo_n "checking for bfd_fdopenr in -lbfd... " >&6; }
18425 if test "${ac_cv_lib_bfd_bfd_fdopenr+set}" = set; then
18426 $as_echo_n "(cached) " >&6
18428 ac_check_lib_save_LIBS=$LIBS
18429 LIBS="-lbfd -lz $LIBS"
18430 cat >conftest.$ac_ext <<_ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h. */
18437 /* Override any GCC internal prototype to avoid an error.
18438 Use char because int might match the return type of a GCC
18439 builtin and then its argument prototype would still apply. */
18443 char bfd_fdopenr ();
18447 return bfd_fdopenr ();
18452 rm -f conftest.$ac_objext conftest$ac_exeext
18453 if { (ac_try="$ac_link"
18454 case "(($ac_try" in
18455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456 *) ac_try_echo=$ac_try;;
18458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18459 $as_echo "$ac_try_echo") >&5
18460 (eval "$ac_link") 2>conftest.er1
18462 grep -v '^ *+' conftest.er1 >conftest.err
18464 cat conftest.err >&5
18465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && {
18467 test -z "$ac_c_werror_flag" ||
18468 test ! -s conftest.err
18469 } && test -s conftest$ac_exeext && {
18470 test "$cross_compiling" = yes ||
18471 $as_test_x conftest$ac_exeext
18473 ac_cv_lib_bfd_bfd_fdopenr=yes
18475 $as_echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 ac_cv_lib_bfd_bfd_fdopenr=no
18481 rm -rf conftest.dSYM
18482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18483 conftest$ac_exeext conftest.$ac_ext
18484 LIBS=$ac_check_lib_save_LIBS
18486 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_fdopenr" >&5
18487 $as_echo "$ac_cv_lib_bfd_bfd_fdopenr" >&6; }
18488 if test "x$ac_cv_lib_bfd_bfd_fdopenr" = x""yes; then
18489 LIBS="-lbfd -lz $LIBS"; Z_LIB="-lz"
18491 { { $as_echo "$as_me:$LINENO: error: bfd library not found" >&5
18492 $as_echo "$as_me: error: bfd library not found" >&2;}
18493 { (exit 1); exit 1; }; }
18498 { { $as_echo "$as_me:$LINENO: error: libz library not found; required by libbfd" >&5
18499 $as_echo "$as_me: error: libz library not found; required by libbfd" >&2;}
18500 { (exit 1); exit 1; }; }
18509 ac_cpp='$CPP $CPPFLAGS'
18510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18514 # Determine if bfd_get_synthetic_symtab macro is available
18516 if test "$OS" = "Linux"; then
18517 { $as_echo "$as_me:$LINENO: checking whether bfd_get_synthetic_symtab() exists in BFD library" >&5
18518 $as_echo_n "checking whether bfd_get_synthetic_symtab() exists in BFD library... " >&6; }
18519 rm -f test-for-synth
18520 cat >conftest.$ac_ext <<_ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18530 asymbol * synthsyms; bfd * ibfd = 0;
18531 long synth_count = bfd_get_synthetic_symtab(ibfd, 0, 0, 0, 0, &synthsyms);
18532 extern const bfd_target bfd_elf64_powerpc_vec;
18533 extern const bfd_target bfd_elf64_powerpcle_vec;
18534 char * ppc_name = bfd_elf64_powerpc_vec.name;
18535 char * ppcle_name = bfd_elf64_powerpcle_vec.name;
18536 printf("%s %s\n", ppc_name, ppcle_name);
18542 $CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS -o test-for-synth > /dev/null 2>&1
18543 if test -f test-for-synth; then
18545 SYNTHESIZE_SYMBOLS='1'
18548 SYNTHESIZE_SYMBOLS='0'
18551 cat >>confdefs.h <<_ACEOF
18552 #define SYNTHESIZE_SYMBOLS $SYNTHESIZE_SYMBOLS
18555 rm -f test-for-synth*
18559 ac_cpp='$CPP $CPPFLAGS'
18560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18566 # Now we can restore original flag values, and may as well do the
18568 CPPFLAGS="$CPPFLAGS_SAVE"
18569 LDFLAGS="$LDFLAGS_SAVE"
18574 # On Cell BE architecture, OProfile uses bfd_openr_iovec when processing some
18575 # SPU profiles. To parse embedded SPU ELF on Cell BE, OProfile requires a
18576 # version of bfd_openr_iovec that supports the elf32-spu target.
18577 # This version of the function also has a 7th parameter that's been added.
18578 # First, we check for existence of the base bfd_openr_iovec. If it exists,
18579 # we then use a temporary test program below that passes 7 arguments to
18580 # bfd_openr_iovec; if it compiles OK, we assume we have the right BFD
18581 # library to support Cell BE SPU profiling.
18584 ac_cpp='$CPP $CPPFLAGS'
18585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18590 { $as_echo "$as_me:$LINENO: checking for bfd_openr_iovec in -lbfd" >&5
18591 $as_echo_n "checking for bfd_openr_iovec in -lbfd... " >&6; }
18592 if test "${ac_cv_lib_bfd_bfd_openr_iovec+set}" = set; then
18593 $as_echo_n "(cached) " >&6
18595 ac_check_lib_save_LIBS=$LIBS
18597 cat >conftest.$ac_ext <<_ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18604 /* Override any GCC internal prototype to avoid an error.
18605 Use char because int might match the return type of a GCC
18606 builtin and then its argument prototype would still apply. */
18610 char bfd_openr_iovec ();
18614 return bfd_openr_iovec ();
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (ac_try="$ac_link"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18626 $as_echo "$ac_try_echo") >&5
18627 (eval "$ac_link") 2>conftest.er1
18629 grep -v '^ *+' conftest.er1 >conftest.err
18631 cat conftest.err >&5
18632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest$ac_exeext && {
18637 test "$cross_compiling" = yes ||
18638 $as_test_x conftest$ac_exeext
18640 ac_cv_lib_bfd_bfd_openr_iovec=yes
18642 $as_echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 ac_cv_lib_bfd_bfd_openr_iovec=no
18648 rm -rf conftest.dSYM
18649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18650 conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_check_lib_save_LIBS
18653 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr_iovec" >&5
18654 $as_echo "$ac_cv_lib_bfd_bfd_openr_iovec" >&6; }
18655 if test "x$ac_cv_lib_bfd_bfd_openr_iovec" = x""yes; then
18656 bfd_openr_iovec_exists="yes"
18658 bfd_openr_iovec_exists="no"
18663 if test "$bfd_openr_iovec_exists" = "yes"; then
18664 { $as_echo "$as_me:$LINENO: checking whether bfd_openr_iovec has seven parameters" >&5
18665 $as_echo_n "checking whether bfd_openr_iovec has seven parameters... " >&6; }
18666 cat >conftest.$ac_ext <<_ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18673 #include <stdlib.h>
18678 struct bfd *nbfd = bfd_openr_iovec("some-file", "elf32-spu",
18679 NULL, NULL, NULL, NULL, NULL);
18686 rm -f conftest.$ac_objext
18687 if { (ac_try="$ac_compile"
18688 case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18693 $as_echo "$ac_try_echo") >&5
18694 (eval "$ac_compile") 2>conftest.er1
18696 grep -v '^ *+' conftest.er1 >conftest.err
18698 cat conftest.err >&5
18699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } && {
18701 test -z "$ac_c_werror_flag" ||
18702 test ! -s conftest.err
18703 } && test -s conftest.$ac_objext; then
18705 cat >>confdefs.h <<\_ACEOF
18706 #define HAVE_BFD_OPENR_IOVEC_WITH_7PARMS /**/
18709 bfd_open_iovec_7="yes"
18710 { $as_echo "$as_me:$LINENO: result: yes" >&5
18711 $as_echo "yes" >&6; }
18713 $as_echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 { $as_echo "$as_me:$LINENO: result: no" >&5
18717 $as_echo "no" >&6; }
18721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18725 ac_cpp='$CPP $CPPFLAGS'
18726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18733 # Check whether --with-target was given.
18734 if test "${with_target+set}" = set; then
18735 withval=$with_target; arch=$withval
18739 if test "$arch" = "cell-be"; then
18740 if test "$bfd_open_iovec_7" = "yes"; then
18741 { $as_echo "$as_me:$LINENO: BFD library has support for Cell Broadband Engine SPU profiling" >&5
18742 $as_echo "$as_me: BFD library has support for Cell Broadband Engine SPU profiling" >&6;}
18744 { { $as_echo "$as_me:$LINENO: error: BFD library does not support elf32-spu target; SPU profiling is unsupported" >&5
18745 $as_echo "$as_me: error: BFD library does not support elf32-spu target; SPU profiling is unsupported" >&2;}
18746 { (exit 1); exit 1; }; }
18755 ac_cpp='$CXXCPP $CPPFLAGS'
18756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18762 { $as_echo "$as_me:$LINENO: checking popt prototype" >&5
18763 $as_echo_n "checking popt prototype... " >&6; }
18764 SAVE_CXXFLAGS=$CXXFLAGS
18765 CXXFLAGS="-Werror $CXXFLAGS"
18766 cat >conftest.$ac_ext <<_ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18778 poptGetContext(0, c, v, 0, 0);
18784 rm -f conftest.$ac_objext
18785 if { (ac_try="$ac_compile"
18786 case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18791 $as_echo "$ac_try_echo") >&5
18792 (eval "$ac_compile") 2>conftest.er1
18794 grep -v '^ *+' conftest.er1 >conftest.err
18796 cat conftest.err >&5
18797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && {
18799 test -z "$ac_cxx_werror_flag" ||
18800 test ! -s conftest.err
18801 } && test -s conftest.$ac_objext; then
18802 { $as_echo "$as_me:$LINENO: result: takes char **" >&5
18803 $as_echo "takes char **" >&6; };
18805 $as_echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18808 { $as_echo "$as_me:$LINENO: result: takes const char **" >&5
18809 $as_echo "takes const char **" >&6; };
18810 cat >>confdefs.h <<\_ACEOF
18811 #define CONST_POPT 1
18816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817 CXXFLAGS="$SAVE_CXXFLAGS"
18821 { $as_echo "$as_me:$LINENO: checking whether to use included sstream" >&5
18822 $as_echo_n "checking whether to use included sstream... " >&6; }
18823 cat >conftest.$ac_ext <<_ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846 (eval "$ac_compile") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_cxx_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest.$ac_objext; then
18856 { $as_echo "$as_me:$LINENO: result: no" >&5
18857 $as_echo "no" >&6; };
18859 $as_echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 { $as_echo "$as_me:$LINENO: result: yes" >&5
18863 $as_echo "yes" >&6; }; OP_CXXFLAGS="$OP_CXXFLAGS -I\${top_srcdir}/include"
18866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18870 { $as_echo "$as_me:$LINENO: checking whether bfd defines bool" >&5
18871 $as_echo_n "checking whether bfd defines bool... " >&6; }
18872 cat >conftest.$ac_ext <<_ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18887 rm -f conftest.$ac_objext
18888 if { (ac_try="$ac_compile"
18889 case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18894 $as_echo "$ac_try_echo") >&5
18895 (eval "$ac_compile") 2>conftest.er1
18897 grep -v '^ *+' conftest.er1 >conftest.err
18899 cat conftest.err >&5
18900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } && {
18902 test -z "$ac_cxx_werror_flag" ||
18903 test ! -s conftest.err
18904 } && test -s conftest.$ac_objext; then
18905 { $as_echo "$as_me:$LINENO: result: no" >&5
18906 $as_echo "no" >&6; };
18908 $as_echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18911 { $as_echo "$as_me:$LINENO: result: yes" >&5
18912 $as_echo "yes" >&6; };
18913 cat >>confdefs.h <<\_ACEOF
18914 #define TRUE_FALSE_ALREADY_DEFINED 1
18919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922 { $as_echo "$as_me:$LINENO: checking type of size_t" >&5
18923 $as_echo_n "checking type of size_t... " >&6; }
18924 for f in "unsigned" "unsigned long"; do
18928 ac_cpp='$CPP $CPPFLAGS'
18929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18933 SAVE_CFLAGS=$CFLAGS
18934 CFLAGS="-Werror $CFLAGS"
18936 cat >conftest.$ac_ext <<_ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18943 #include <stddef.h>
18949 typedef void (*fct1)(size_t);
18950 typedef void (*fct2)($f);
18959 rm -f conftest.$ac_objext
18960 if { (ac_try="$ac_compile"
18961 case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18966 $as_echo "$ac_try_echo") >&5
18967 (eval "$ac_compile") 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest.$ac_objext; then
18979 $as_echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18987 CFLAGS=$SAVE_CFLAGS
18989 ac_cpp='$CXXCPP $CPPFLAGS'
18990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18995 if test -n "${SIZE_T_TYPE}"; then
18999 if test -n "${SIZE_T_TYPE}"; then
19000 { $as_echo "$as_me:$LINENO: result: ${SIZE_T_TYPE}" >&5
19001 $as_echo "${SIZE_T_TYPE}" >&6; }
19003 { { $as_echo "$as_me:$LINENO: error: not found" >&5
19004 $as_echo "$as_me: error: not found" >&2;}
19005 { (exit 1); exit 1; }; }
19010 { $as_echo "$as_me:$LINENO: checking type of ptrdiff_t" >&5
19011 $as_echo_n "checking type of ptrdiff_t... " >&6; }
19012 for f in "int" "long"; do
19016 ac_cpp='$CPP $CPPFLAGS'
19017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19021 SAVE_CFLAGS=$CFLAGS
19022 CFLAGS="-Werror $CFLAGS"
19024 cat >conftest.$ac_ext <<_ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19031 #include <stddef.h>
19037 typedef void (*fct1)(ptrdiff_t);
19038 typedef void (*fct2)($f);
19047 rm -f conftest.$ac_objext
19048 if { (ac_try="$ac_compile"
19049 case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19054 $as_echo "$ac_try_echo") >&5
19055 (eval "$ac_compile") 2>conftest.er1
19057 grep -v '^ *+' conftest.er1 >conftest.err
19059 cat conftest.err >&5
19060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } && {
19062 test -z "$ac_c_werror_flag" ||
19063 test ! -s conftest.err
19064 } && test -s conftest.$ac_objext; then
19065 PTRDIFF_T_TYPE="$f"
19067 $as_echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 CFLAGS=$SAVE_CFLAGS
19077 ac_cpp='$CXXCPP $CPPFLAGS'
19078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19083 if test -n "${PTRDIFF_T_TYPE}"; then
19087 if test -n "${PTRDIFF_T_TYPE}"; then
19088 { $as_echo "$as_me:$LINENO: result: ${PTRDIFF_T_TYPE}" >&5
19089 $as_echo "${PTRDIFF_T_TYPE}" >&6; }
19091 { { $as_echo "$as_me:$LINENO: error: not found" >&5
19092 $as_echo "$as_me: error: not found" >&2;}
19093 { (exit 1); exit 1; }; }
19099 { $as_echo "$as_me:$LINENO: checking for X" >&5
19100 $as_echo_n "checking for X... " >&6; }
19103 # Check whether --with-x was given.
19104 if test "${with_x+set}" = set; then
19108 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19109 if test "x$with_x" = xno; then
19110 # The user explicitly disabled X.
19113 case $x_includes,$x_libraries in #(
19114 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
19115 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
19116 { (exit 1); exit 1; }; };; #(
19117 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19118 $as_echo_n "(cached) " >&6
19120 # One or both of the vars are not set, and there is no cached value.
19121 ac_x_includes=no ac_x_libraries=no
19122 rm -f -r conftest.dir
19123 if mkdir conftest.dir; then
19125 cat >Imakefile <<'_ACEOF'
19127 @echo incroot='${INCROOT}'
19129 @echo usrlibdir='${USRLIBDIR}'
19131 @echo libdir='${LIBDIR}'
19133 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19134 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19135 for ac_var in incroot usrlibdir libdir; do
19136 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19138 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19139 for ac_extension in a so sl dylib la dll; do
19140 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19141 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19142 ac_im_usrlibdir=$ac_im_libdir; break
19145 # Screen out bogus values from the imake configuration. They are
19146 # bogus both because they are the default anyway, and because
19147 # using them would break gcc on systems where it needs fixed includes.
19148 case $ac_im_incroot in
19149 /usr/include) ac_x_includes= ;;
19150 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19152 case $ac_im_usrlibdir in
19153 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19154 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19158 rm -f -r conftest.dir
19161 # Standard set of common directories for X headers.
19162 # Check X11 before X11Rn because it is often a symlink to the current release.
19174 /usr/local/X11/include
19175 /usr/local/X11R6/include
19176 /usr/local/X11R5/include
19177 /usr/local/X11R4/include
19179 /usr/local/include/X11
19180 /usr/local/include/X11R6
19181 /usr/local/include/X11R5
19182 /usr/local/include/X11R4
19186 /usr/XFree86/include/X11
19190 /usr/unsupported/include
19191 /usr/athena/include
19192 /usr/local/x11r5/include
19193 /usr/lpp/Xamples/include
19195 /usr/openwin/include
19196 /usr/openwin/share/include'
19198 if test "$ac_x_includes" = no; then
19199 # Guess where to find include files, by looking for Xlib.h.
19200 # First, try using that file with no special directory specified.
19201 cat >conftest.$ac_ext <<_ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19207 #include <X11/Xlib.h>
19209 if { (ac_try="$ac_cpp conftest.$ac_ext"
19210 case "(($ac_try" in
19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212 *) ac_try_echo=$ac_try;;
19214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19215 $as_echo "$ac_try_echo") >&5
19216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19218 grep -v '^ *+' conftest.er1 >conftest.err
19220 cat conftest.err >&5
19221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } >/dev/null && {
19223 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19224 test ! -s conftest.err
19226 # We can compile using X headers with no special include directory.
19229 $as_echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 for ac_dir in $ac_x_header_dirs; do
19233 if test -r "$ac_dir/X11/Xlib.h"; then
19234 ac_x_includes=$ac_dir
19240 rm -f conftest.err conftest.$ac_ext
19241 fi # $ac_x_includes = no
19243 if test "$ac_x_libraries" = no; then
19244 # Check for the libraries.
19245 # See if we find them without any special options.
19246 # Don't add to $LIBS permanently.
19249 cat >conftest.$ac_ext <<_ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19255 #include <X11/Xlib.h>
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (ac_try="$ac_link"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19271 $as_echo "$ac_try_echo") >&5
19272 (eval "$ac_link") 2>conftest.er1
19274 grep -v '^ *+' conftest.er1 >conftest.err
19276 cat conftest.err >&5
19277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } && {
19279 test -z "$ac_cxx_werror_flag" ||
19280 test ! -s conftest.err
19281 } && test -s conftest$ac_exeext && {
19282 test "$cross_compiling" = yes ||
19283 $as_test_x conftest$ac_exeext
19286 # We can link X programs with no special library path.
19289 $as_echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19293 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19295 # Don't even attempt the hair of trying to link an X program!
19296 for ac_extension in a so sl dylib la dll; do
19297 if test -r "$ac_dir/libX11.$ac_extension"; then
19298 ac_x_libraries=$ac_dir
19305 rm -rf conftest.dSYM
19306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19307 conftest$ac_exeext conftest.$ac_ext
19308 fi # $ac_x_libraries = no
19310 case $ac_x_includes,$ac_x_libraries in #(
19311 no,* | *,no | *\'*)
19312 # Didn't find X, or a directory has "'" in its name.
19313 ac_cv_have_x="have_x=no";; #(
19315 # Record where we found X for the cache.
19316 ac_cv_have_x="have_x=yes\
19317 ac_x_includes='$ac_x_includes'\
19318 ac_x_libraries='$ac_x_libraries'"
19324 eval "$ac_cv_have_x"
19327 if test "$have_x" != yes; then
19328 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
19329 $as_echo "$have_x" >&6; }
19332 # If each of the values was on the command line, it overrides each guess.
19333 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19334 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19335 # Update the cache value to reflect the command line values.
19336 ac_cv_have_x="have_x=yes\
19337 ac_x_includes='$x_includes'\
19338 ac_x_libraries='$x_libraries'"
19339 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19340 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19343 if test "$no_x" = yes; then
19344 # Not all programs may use this symbol, but it does not hurt to define it.
19346 cat >>confdefs.h <<\_ACEOF
19347 #define X_DISPLAY_MISSING 1
19350 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19352 if test -n "$x_includes"; then
19353 X_CFLAGS="$X_CFLAGS -I$x_includes"
19356 # It would also be nice to do this for all -L options, not just this one.
19357 if test -n "$x_libraries"; then
19358 X_LIBS="$X_LIBS -L$x_libraries"
19359 # For Solaris; some versions of Sun CC require a space after -R and
19360 # others require no space. Words are not sufficient . . . .
19361 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19362 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19363 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19364 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
19365 ac_cxx_werror_flag=yes
19366 cat >conftest.$ac_ext <<_ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h. */
19381 rm -f conftest.$ac_objext conftest$ac_exeext
19382 if { (ac_try="$ac_link"
19383 case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19388 $as_echo "$ac_try_echo") >&5
19389 (eval "$ac_link") 2>conftest.er1
19391 grep -v '^ *+' conftest.er1 >conftest.err
19393 cat conftest.err >&5
19394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } && {
19396 test -z "$ac_cxx_werror_flag" ||
19397 test ! -s conftest.err
19398 } && test -s conftest$ac_exeext && {
19399 test "$cross_compiling" = yes ||
19400 $as_test_x conftest$ac_exeext
19402 { $as_echo "$as_me:$LINENO: result: no" >&5
19403 $as_echo "no" >&6; }
19404 X_LIBS="$X_LIBS -R$x_libraries"
19406 $as_echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19409 LIBS="$ac_xsave_LIBS -R $x_libraries"
19410 cat >conftest.$ac_ext <<_ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19425 rm -f conftest.$ac_objext conftest$ac_exeext
19426 if { (ac_try="$ac_link"
19427 case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19432 $as_echo "$ac_try_echo") >&5
19433 (eval "$ac_link") 2>conftest.er1
19435 grep -v '^ *+' conftest.er1 >conftest.err
19437 cat conftest.err >&5
19438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } && {
19440 test -z "$ac_cxx_werror_flag" ||
19441 test ! -s conftest.err
19442 } && test -s conftest$ac_exeext && {
19443 test "$cross_compiling" = yes ||
19444 $as_test_x conftest$ac_exeext
19446 { $as_echo "$as_me:$LINENO: result: yes" >&5
19447 $as_echo "yes" >&6; }
19448 X_LIBS="$X_LIBS -R $x_libraries"
19450 $as_echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 { $as_echo "$as_me:$LINENO: result: neither works" >&5
19454 $as_echo "neither works" >&6; }
19457 rm -rf conftest.dSYM
19458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19459 conftest$ac_exeext conftest.$ac_ext
19462 rm -rf conftest.dSYM
19463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19464 conftest$ac_exeext conftest.$ac_ext
19465 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
19466 LIBS=$ac_xsave_LIBS
19469 # Check for system-dependent libraries X programs must link with.
19470 # Do this before checking for the system-independent R6 libraries
19471 # (-lICE), since we may need -lsocket or whatever for X linking.
19473 if test "$ISC" = yes; then
19474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19476 # Martyn Johnson says this is needed for Ultrix, if the X
19477 # libraries were built with DECnet support. And Karl Berry says
19478 # the Alpha needs dnet_stub (dnet does not exist).
19479 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19480 cat >conftest.$ac_ext <<_ACEOF
19483 cat confdefs.h >>conftest.$ac_ext
19484 cat >>conftest.$ac_ext <<_ACEOF
19485 /* end confdefs.h. */
19487 /* Override any GCC internal prototype to avoid an error.
19488 Use char because int might match the return type of a GCC
19489 builtin and then its argument prototype would still apply. */
19493 char XOpenDisplay ();
19497 return XOpenDisplay ();
19502 rm -f conftest.$ac_objext conftest$ac_exeext
19503 if { (ac_try="$ac_link"
19504 case "(($ac_try" in
19505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506 *) ac_try_echo=$ac_try;;
19508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19509 $as_echo "$ac_try_echo") >&5
19510 (eval "$ac_link") 2>conftest.er1
19512 grep -v '^ *+' conftest.er1 >conftest.err
19514 cat conftest.err >&5
19515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_cxx_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest$ac_exeext && {
19520 test "$cross_compiling" = yes ||
19521 $as_test_x conftest$ac_exeext
19525 $as_echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19528 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19529 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19530 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19531 $as_echo_n "(cached) " >&6
19533 ac_check_lib_save_LIBS=$LIBS
19534 LIBS="-ldnet $LIBS"
19535 cat >conftest.$ac_ext <<_ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19542 /* Override any GCC internal prototype to avoid an error.
19543 Use char because int might match the return type of a GCC
19544 builtin and then its argument prototype would still apply. */
19552 return dnet_ntoa ();
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (ac_try="$ac_link"
19559 case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19564 $as_echo "$ac_try_echo") >&5
19565 (eval "$ac_link") 2>conftest.er1
19567 grep -v '^ *+' conftest.er1 >conftest.err
19569 cat conftest.err >&5
19570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } && {
19572 test -z "$ac_cxx_werror_flag" ||
19573 test ! -s conftest.err
19574 } && test -s conftest$ac_exeext && {
19575 test "$cross_compiling" = yes ||
19576 $as_test_x conftest$ac_exeext
19578 ac_cv_lib_dnet_dnet_ntoa=yes
19580 $as_echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19583 ac_cv_lib_dnet_dnet_ntoa=no
19586 rm -rf conftest.dSYM
19587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19588 conftest$ac_exeext conftest.$ac_ext
19589 LIBS=$ac_check_lib_save_LIBS
19591 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19592 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19593 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
19594 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19597 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19598 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19599 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19600 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19601 $as_echo_n "(cached) " >&6
19603 ac_check_lib_save_LIBS=$LIBS
19604 LIBS="-ldnet_stub $LIBS"
19605 cat >conftest.$ac_ext <<_ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19612 /* Override any GCC internal prototype to avoid an error.
19613 Use char because int might match the return type of a GCC
19614 builtin and then its argument prototype would still apply. */
19622 return dnet_ntoa ();
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (ac_try="$ac_link"
19629 case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19634 $as_echo "$ac_try_echo") >&5
19635 (eval "$ac_link") 2>conftest.er1
19637 grep -v '^ *+' conftest.er1 >conftest.err
19639 cat conftest.err >&5
19640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } && {
19642 test -z "$ac_cxx_werror_flag" ||
19643 test ! -s conftest.err
19644 } && test -s conftest$ac_exeext && {
19645 test "$cross_compiling" = yes ||
19646 $as_test_x conftest$ac_exeext
19648 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19650 $as_echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_cv_lib_dnet_stub_dnet_ntoa=no
19656 rm -rf conftest.dSYM
19657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19658 conftest$ac_exeext conftest.$ac_ext
19659 LIBS=$ac_check_lib_save_LIBS
19661 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19662 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19663 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
19664 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19670 rm -rf conftest.dSYM
19671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19672 conftest$ac_exeext conftest.$ac_ext
19673 LIBS="$ac_xsave_LIBS"
19675 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19676 # to get the SysV transport functions.
19677 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19679 # The nsl library prevents programs from opening the X display
19680 # on Irix 5.2, according to T.E. Dickey.
19681 # The functions gethostbyname, getservbyname, and inet_addr are
19682 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19683 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
19684 $as_echo_n "checking for gethostbyname... " >&6; }
19685 if test "${ac_cv_func_gethostbyname+set}" = set; then
19686 $as_echo_n "(cached) " >&6
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19696 #define gethostbyname innocuous_gethostbyname
19698 /* System header to define __stub macros and hopefully few prototypes,
19699 which can conflict with char gethostbyname (); below.
19700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19701 <limits.h> exists even on freestanding compilers. */
19704 # include <limits.h>
19706 # include <assert.h>
19709 #undef gethostbyname
19711 /* Override any GCC internal prototype to avoid an error.
19712 Use char because int might match the return type of a GCC
19713 builtin and then its argument prototype would still apply. */
19717 char gethostbyname ();
19718 /* The GNU C library defines this for functions which it implements
19719 to always fail with ENOSYS. Some functions are actually named
19720 something starting with __ and the normal name is an alias. */
19721 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19728 return gethostbyname ();
19733 rm -f conftest.$ac_objext conftest$ac_exeext
19734 if { (ac_try="$ac_link"
19735 case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19740 $as_echo "$ac_try_echo") >&5
19741 (eval "$ac_link") 2>conftest.er1
19743 grep -v '^ *+' conftest.er1 >conftest.err
19745 cat conftest.err >&5
19746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } && {
19748 test -z "$ac_cxx_werror_flag" ||
19749 test ! -s conftest.err
19750 } && test -s conftest$ac_exeext && {
19751 test "$cross_compiling" = yes ||
19752 $as_test_x conftest$ac_exeext
19754 ac_cv_func_gethostbyname=yes
19756 $as_echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19759 ac_cv_func_gethostbyname=no
19762 rm -rf conftest.dSYM
19763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19764 conftest$ac_exeext conftest.$ac_ext
19766 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19767 $as_echo "$ac_cv_func_gethostbyname" >&6; }
19769 if test $ac_cv_func_gethostbyname = no; then
19770 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19771 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19772 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19773 $as_echo_n "(cached) " >&6
19775 ac_check_lib_save_LIBS=$LIBS
19777 cat >conftest.$ac_ext <<_ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19784 /* Override any GCC internal prototype to avoid an error.
19785 Use char because int might match the return type of a GCC
19786 builtin and then its argument prototype would still apply. */
19790 char gethostbyname ();
19794 return gethostbyname ();
19799 rm -f conftest.$ac_objext conftest$ac_exeext
19800 if { (ac_try="$ac_link"
19801 case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19806 $as_echo "$ac_try_echo") >&5
19807 (eval "$ac_link") 2>conftest.er1
19809 grep -v '^ *+' conftest.er1 >conftest.err
19811 cat conftest.err >&5
19812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } && {
19814 test -z "$ac_cxx_werror_flag" ||
19815 test ! -s conftest.err
19816 } && test -s conftest$ac_exeext && {
19817 test "$cross_compiling" = yes ||
19818 $as_test_x conftest$ac_exeext
19820 ac_cv_lib_nsl_gethostbyname=yes
19822 $as_echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_cv_lib_nsl_gethostbyname=no
19828 rm -rf conftest.dSYM
19829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19830 conftest$ac_exeext conftest.$ac_ext
19831 LIBS=$ac_check_lib_save_LIBS
19833 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19834 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19835 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
19836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19839 if test $ac_cv_lib_nsl_gethostbyname = no; then
19840 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19841 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19842 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19843 $as_echo_n "(cached) " >&6
19845 ac_check_lib_save_LIBS=$LIBS
19847 cat >conftest.$ac_ext <<_ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19854 /* Override any GCC internal prototype to avoid an error.
19855 Use char because int might match the return type of a GCC
19856 builtin and then its argument prototype would still apply. */
19860 char gethostbyname ();
19864 return gethostbyname ();
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (ac_try="$ac_link"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19876 $as_echo "$ac_try_echo") >&5
19877 (eval "$ac_link") 2>conftest.er1
19879 grep -v '^ *+' conftest.er1 >conftest.err
19881 cat conftest.err >&5
19882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } && {
19884 test -z "$ac_cxx_werror_flag" ||
19885 test ! -s conftest.err
19886 } && test -s conftest$ac_exeext && {
19887 test "$cross_compiling" = yes ||
19888 $as_test_x conftest$ac_exeext
19890 ac_cv_lib_bsd_gethostbyname=yes
19892 $as_echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ac_cv_lib_bsd_gethostbyname=no
19898 rm -rf conftest.dSYM
19899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19900 conftest$ac_exeext conftest.$ac_ext
19901 LIBS=$ac_check_lib_save_LIBS
19903 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19904 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19905 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
19906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19912 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19913 # socket/setsockopt and other routines are undefined under SCO ODT
19914 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19915 # on later versions), says Simon Leinen: it contains gethostby*
19916 # variants that don't use the name server (or something). -lsocket
19917 # must be given before -lnsl if both are needed. We assume that
19918 # if connect needs -lnsl, so does gethostbyname.
19919 { $as_echo "$as_me:$LINENO: checking for connect" >&5
19920 $as_echo_n "checking for connect... " >&6; }
19921 if test "${ac_cv_func_connect+set}" = set; then
19922 $as_echo_n "(cached) " >&6
19924 cat >conftest.$ac_ext <<_ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h. */
19930 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19932 #define connect innocuous_connect
19934 /* System header to define __stub macros and hopefully few prototypes,
19935 which can conflict with char connect (); below.
19936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19937 <limits.h> exists even on freestanding compilers. */
19940 # include <limits.h>
19942 # include <assert.h>
19947 /* Override any GCC internal prototype to avoid an error.
19948 Use char because int might match the return type of a GCC
19949 builtin and then its argument prototype would still apply. */
19954 /* The GNU C library defines this for functions which it implements
19955 to always fail with ENOSYS. Some functions are actually named
19956 something starting with __ and the normal name is an alias. */
19957 #if defined __stub_connect || defined __stub___connect
19969 rm -f conftest.$ac_objext conftest$ac_exeext
19970 if { (ac_try="$ac_link"
19971 case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19976 $as_echo "$ac_try_echo") >&5
19977 (eval "$ac_link") 2>conftest.er1
19979 grep -v '^ *+' conftest.er1 >conftest.err
19981 cat conftest.err >&5
19982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_cxx_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest$ac_exeext && {
19987 test "$cross_compiling" = yes ||
19988 $as_test_x conftest$ac_exeext
19990 ac_cv_func_connect=yes
19992 $as_echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 ac_cv_func_connect=no
19998 rm -rf conftest.dSYM
19999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20000 conftest$ac_exeext conftest.$ac_ext
20002 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20003 $as_echo "$ac_cv_func_connect" >&6; }
20005 if test $ac_cv_func_connect = no; then
20006 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20007 $as_echo_n "checking for connect in -lsocket... " >&6; }
20008 if test "${ac_cv_lib_socket_connect+set}" = set; then
20009 $as_echo_n "(cached) " >&6
20011 ac_check_lib_save_LIBS=$LIBS
20012 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20020 /* Override any GCC internal prototype to avoid an error.
20021 Use char because int might match the return type of a GCC
20022 builtin and then its argument prototype would still apply. */
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20042 $as_echo "$ac_try_echo") >&5
20043 (eval "$ac_link") 2>conftest.er1
20045 grep -v '^ *+' conftest.er1 >conftest.err
20047 cat conftest.err >&5
20048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } && {
20050 test -z "$ac_cxx_werror_flag" ||
20051 test ! -s conftest.err
20052 } && test -s conftest$ac_exeext && {
20053 test "$cross_compiling" = yes ||
20054 $as_test_x conftest$ac_exeext
20056 ac_cv_lib_socket_connect=yes
20058 $as_echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 ac_cv_lib_socket_connect=no
20064 rm -rf conftest.dSYM
20065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20066 conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20069 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20070 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20071 if test "x$ac_cv_lib_socket_connect" = x""yes; then
20072 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20077 # Guillermo Gomez says -lposix is necessary on A/UX.
20078 { $as_echo "$as_me:$LINENO: checking for remove" >&5
20079 $as_echo_n "checking for remove... " >&6; }
20080 if test "${ac_cv_func_remove+set}" = set; then
20081 $as_echo_n "(cached) " >&6
20083 cat >conftest.$ac_ext <<_ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20089 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20091 #define remove innocuous_remove
20093 /* System header to define __stub macros and hopefully few prototypes,
20094 which can conflict with char remove (); below.
20095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20096 <limits.h> exists even on freestanding compilers. */
20099 # include <limits.h>
20101 # include <assert.h>
20106 /* Override any GCC internal prototype to avoid an error.
20107 Use char because int might match the return type of a GCC
20108 builtin and then its argument prototype would still apply. */
20113 /* The GNU C library defines this for functions which it implements
20114 to always fail with ENOSYS. Some functions are actually named
20115 something starting with __ and the normal name is an alias. */
20116 #if defined __stub_remove || defined __stub___remove
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20135 $as_echo "$ac_try_echo") >&5
20136 (eval "$ac_link") 2>conftest.er1
20138 grep -v '^ *+' conftest.er1 >conftest.err
20140 cat conftest.err >&5
20141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } && {
20143 test -z "$ac_cxx_werror_flag" ||
20144 test ! -s conftest.err
20145 } && test -s conftest$ac_exeext && {
20146 test "$cross_compiling" = yes ||
20147 $as_test_x conftest$ac_exeext
20149 ac_cv_func_remove=yes
20151 $as_echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20154 ac_cv_func_remove=no
20157 rm -rf conftest.dSYM
20158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20159 conftest$ac_exeext conftest.$ac_ext
20161 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20162 $as_echo "$ac_cv_func_remove" >&6; }
20164 if test $ac_cv_func_remove = no; then
20165 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20166 $as_echo_n "checking for remove in -lposix... " >&6; }
20167 if test "${ac_cv_lib_posix_remove+set}" = set; then
20168 $as_echo_n "(cached) " >&6
20170 ac_check_lib_save_LIBS=$LIBS
20171 LIBS="-lposix $LIBS"
20172 cat >conftest.$ac_ext <<_ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20179 /* Override any GCC internal prototype to avoid an error.
20180 Use char because int might match the return type of a GCC
20181 builtin and then its argument prototype would still apply. */
20194 rm -f conftest.$ac_objext conftest$ac_exeext
20195 if { (ac_try="$ac_link"
20196 case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20201 $as_echo "$ac_try_echo") >&5
20202 (eval "$ac_link") 2>conftest.er1
20204 grep -v '^ *+' conftest.er1 >conftest.err
20206 cat conftest.err >&5
20207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } && {
20209 test -z "$ac_cxx_werror_flag" ||
20210 test ! -s conftest.err
20211 } && test -s conftest$ac_exeext && {
20212 test "$cross_compiling" = yes ||
20213 $as_test_x conftest$ac_exeext
20215 ac_cv_lib_posix_remove=yes
20217 $as_echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220 ac_cv_lib_posix_remove=no
20223 rm -rf conftest.dSYM
20224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20225 conftest$ac_exeext conftest.$ac_ext
20226 LIBS=$ac_check_lib_save_LIBS
20228 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20229 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20230 if test "x$ac_cv_lib_posix_remove" = x""yes; then
20231 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20236 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20237 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
20238 $as_echo_n "checking for shmat... " >&6; }
20239 if test "${ac_cv_func_shmat+set}" = set; then
20240 $as_echo_n "(cached) " >&6
20242 cat >conftest.$ac_ext <<_ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20250 #define shmat innocuous_shmat
20252 /* System header to define __stub macros and hopefully few prototypes,
20253 which can conflict with char shmat (); below.
20254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20255 <limits.h> exists even on freestanding compilers. */
20258 # include <limits.h>
20260 # include <assert.h>
20265 /* Override any GCC internal prototype to avoid an error.
20266 Use char because int might match the return type of a GCC
20267 builtin and then its argument prototype would still apply. */
20272 /* The GNU C library defines this for functions which it implements
20273 to always fail with ENOSYS. Some functions are actually named
20274 something starting with __ and the normal name is an alias. */
20275 #if defined __stub_shmat || defined __stub___shmat
20287 rm -f conftest.$ac_objext conftest$ac_exeext
20288 if { (ac_try="$ac_link"
20289 case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20294 $as_echo "$ac_try_echo") >&5
20295 (eval "$ac_link") 2>conftest.er1
20297 grep -v '^ *+' conftest.er1 >conftest.err
20299 cat conftest.err >&5
20300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } && {
20302 test -z "$ac_cxx_werror_flag" ||
20303 test ! -s conftest.err
20304 } && test -s conftest$ac_exeext && {
20305 test "$cross_compiling" = yes ||
20306 $as_test_x conftest$ac_exeext
20308 ac_cv_func_shmat=yes
20310 $as_echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ac_cv_func_shmat=no
20316 rm -rf conftest.dSYM
20317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20318 conftest$ac_exeext conftest.$ac_ext
20320 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20321 $as_echo "$ac_cv_func_shmat" >&6; }
20323 if test $ac_cv_func_shmat = no; then
20324 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20325 $as_echo_n "checking for shmat in -lipc... " >&6; }
20326 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20327 $as_echo_n "(cached) " >&6
20329 ac_check_lib_save_LIBS=$LIBS
20331 cat >conftest.$ac_ext <<_ACEOF
20334 cat confdefs.h >>conftest.$ac_ext
20335 cat >>conftest.$ac_ext <<_ACEOF
20336 /* end confdefs.h. */
20338 /* Override any GCC internal prototype to avoid an error.
20339 Use char because int might match the return type of a GCC
20340 builtin and then its argument prototype would still apply. */
20353 rm -f conftest.$ac_objext conftest$ac_exeext
20354 if { (ac_try="$ac_link"
20355 case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20360 $as_echo "$ac_try_echo") >&5
20361 (eval "$ac_link") 2>conftest.er1
20363 grep -v '^ *+' conftest.er1 >conftest.err
20365 cat conftest.err >&5
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && {
20368 test -z "$ac_cxx_werror_flag" ||
20369 test ! -s conftest.err
20370 } && test -s conftest$ac_exeext && {
20371 test "$cross_compiling" = yes ||
20372 $as_test_x conftest$ac_exeext
20374 ac_cv_lib_ipc_shmat=yes
20376 $as_echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ac_cv_lib_ipc_shmat=no
20382 rm -rf conftest.dSYM
20383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20384 conftest$ac_exeext conftest.$ac_ext
20385 LIBS=$ac_check_lib_save_LIBS
20387 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20388 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20389 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
20390 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20396 # Check for libraries that X11R6 Xt/Xaw programs need.
20397 ac_save_LDFLAGS=$LDFLAGS
20398 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20399 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20400 # check for ICE first), but we must link in the order -lSM -lICE or
20401 # we get undefined symbols. So assume we have SM if we have ICE.
20402 # These have to be linked with before -lX11, unlike the other
20403 # libraries we check for below, so use a different variable.
20404 # John Interrante, Karl Berry
20405 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20406 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20407 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20408 $as_echo_n "(cached) " >&6
20410 ac_check_lib_save_LIBS=$LIBS
20411 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20412 cat >conftest.$ac_ext <<_ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20419 /* Override any GCC internal prototype to avoid an error.
20420 Use char because int might match the return type of a GCC
20421 builtin and then its argument prototype would still apply. */
20425 char IceConnectionNumber ();
20429 return IceConnectionNumber ();
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (ac_try="$ac_link"
20436 case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20441 $as_echo "$ac_try_echo") >&5
20442 (eval "$ac_link") 2>conftest.er1
20444 grep -v '^ *+' conftest.er1 >conftest.err
20446 cat conftest.err >&5
20447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && {
20449 test -z "$ac_cxx_werror_flag" ||
20450 test ! -s conftest.err
20451 } && test -s conftest$ac_exeext && {
20452 test "$cross_compiling" = yes ||
20453 $as_test_x conftest$ac_exeext
20455 ac_cv_lib_ICE_IceConnectionNumber=yes
20457 $as_echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 ac_cv_lib_ICE_IceConnectionNumber=no
20463 rm -rf conftest.dSYM
20464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20465 conftest$ac_exeext conftest.$ac_ext
20466 LIBS=$ac_check_lib_save_LIBS
20468 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20469 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20470 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
20471 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20474 LDFLAGS=$ac_save_LDFLAGS
20478 ORIG_X_SAVE_LIBS="$LIBS"
20479 LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
20483 # Check whether --enable-gui was given.
20484 if test "${enable_gui+set}" = set; then
20485 enableval=$enable_gui;
20491 if test "x$enable_gui" = "xqt3" || test "x$enable_gui" = "xyes"; then
20497 # Check whether --with-qt-dir was given.
20498 if test "${with_qt_dir+set}" = set; then
20499 withval=$with_qt_dir; qt_cv_dir=`eval echo "$withval"/`
20504 # Check whether --with-qt-includes was given.
20505 if test "${with_qt_includes+set}" = set; then
20506 withval=$with_qt_includes; qt_cv_includes=`eval echo "$withval"`
20511 # Check whether --with-qt-libraries was given.
20512 if test "${with_qt_libraries+set}" = set; then
20513 withval=$with_qt_libraries; qt_cv_libraries=`eval echo "$withval"`
20517 if test -z "$qt_cv_dir"; then
20521 if test -n "$qt_cv_dir"; then
20522 if test -z "$qt_cv_includes"; then
20523 qt_cv_includes=$qt_cv_dir/include
20525 if test -z "$qt_cv_libraries"; then
20526 qt_cv_libraries=$qt_cv_dir/lib
20532 if test -n "$qt_cv_includes"; then
20533 QT_INCLUDES="-isystem $qt_cv_includes"
20535 if test -n "$qt_cv_libraries"; then
20536 QT_LDFLAGS="-L$qt_cv_libraries"
20543 { $as_echo "$as_me:$LINENO: checking for moc2" >&5
20544 $as_echo_n "checking for moc2... " >&6; }
20545 if test "${qt_cv_path_moc2+set}" = set; then
20546 $as_echo_n "(cached) " >&6
20549 qt_cv_path_moc2="NONE"
20550 if test -n "$ac_moc2"; then
20551 qt_cv_path_moc2="$ac_moc2";
20553 dirs="$qt_cv_dir/bin"
20556 for dir in $PATH; do
20561 for dir in $dirs; do
20562 if test -x "$dir/moc2"; then
20563 if test -n ""; then
20564 evalstr="$dir/moc2 2>&1 "
20565 if eval $evalstr; then
20566 qt_cv_path_moc2="$dir/moc2"
20570 qt_cv_path_moc2="$dir/moc2"
20580 if test -z "$qt_cv_path_moc2" || test "$qt_cv_path_moc2" = "NONE"; then
20581 { $as_echo "$as_me:$LINENO: result: not found" >&5
20582 $as_echo "not found" >&6; }
20585 { $as_echo "$as_me:$LINENO: result: $qt_cv_path_moc2" >&5
20586 $as_echo "$qt_cv_path_moc2" >&6; }
20587 ac_moc2=$qt_cv_path_moc2
20591 { $as_echo "$as_me:$LINENO: checking for moc" >&5
20592 $as_echo_n "checking for moc... " >&6; }
20593 if test "${qt_cv_path_moc+set}" = set; then
20594 $as_echo_n "(cached) " >&6
20597 qt_cv_path_moc="NONE"
20598 if test -n "$ac_moc1"; then
20599 qt_cv_path_moc="$ac_moc1";
20601 dirs="$qt_cv_dir/bin"
20604 for dir in $PATH; do
20609 for dir in $dirs; do
20610 if test -x "$dir/moc"; then
20611 if test -n ""; then
20612 evalstr="$dir/moc 2>&1 "
20613 if eval $evalstr; then
20614 qt_cv_path_moc="$dir/moc"
20618 qt_cv_path_moc="$dir/moc"
20628 if test -z "$qt_cv_path_moc" || test "$qt_cv_path_moc" = "NONE"; then
20629 { $as_echo "$as_me:$LINENO: result: not found" >&5
20630 $as_echo "not found" >&6; }
20633 { $as_echo "$as_me:$LINENO: result: $qt_cv_path_moc" >&5
20634 $as_echo "$qt_cv_path_moc" >&6; }
20635 ac_moc1=$qt_cv_path_moc
20639 if test -n "$ac_moc1" -a -n "$ac_moc2"; then
20640 $ac_moc1 -v 2>&1 | grep "Qt 3" >/dev/null
20641 if test "$?" = 0; then
20647 if test -n "$ac_moc1"; then
20654 if test -z "$ac_moc" -a "$FATAL" = 1; then
20655 { { $as_echo "$as_me:$LINENO: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&5
20656 $as_echo "$as_me: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&2;}
20657 { (exit 1); exit 1; }; }
20664 { $as_echo "$as_me:$LINENO: checking for uic" >&5
20665 $as_echo_n "checking for uic... " >&6; }
20666 if test "${qt_cv_path_uic+set}" = set; then
20667 $as_echo_n "(cached) " >&6
20670 qt_cv_path_uic="NONE"
20671 if test -n "$ac_uic"; then
20672 qt_cv_path_uic="$ac_uic";
20674 dirs="$qt_cv_dir/bin"
20677 for dir in $PATH; do
20682 for dir in $dirs; do
20683 if test -x "$dir/uic"; then
20684 if test -n ""; then
20685 evalstr="$dir/uic 2>&1 "
20686 if eval $evalstr; then
20687 qt_cv_path_uic="$dir/uic"
20691 qt_cv_path_uic="$dir/uic"
20701 if test -z "$qt_cv_path_uic" || test "$qt_cv_path_uic" = "NONE"; then
20702 { $as_echo "$as_me:$LINENO: result: not found" >&5
20703 $as_echo "not found" >&6; }
20706 { $as_echo "$as_me:$LINENO: result: $qt_cv_path_uic" >&5
20707 $as_echo "$qt_cv_path_uic" >&6; }
20708 ac_uic=$qt_cv_path_uic
20711 if test -z "$ac_uic" -a "$FATAL" = 1; then
20712 { { $as_echo "$as_me:$LINENO: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&5
20713 $as_echo "$as_me: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&2;}
20714 { (exit 1); exit 1; }; }
20721 { $as_echo "$as_me:$LINENO: checking in lib for Qt library name" >&5
20722 $as_echo_n "checking in lib for Qt library name... " >&6; }
20724 if test "${qt_cv_libname+set}" = set; then
20725 $as_echo_n "(cached) " >&6
20729 ac_cpp='$CXXCPP $CPPFLAGS'
20730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20734 SAVE_CXXFLAGS=$CXXFLAGS
20735 CXXFLAGS="$CXXFLAGS $QT_INCLUDES $QT_LDFLAGS"
20737 for libname in -lqt-mt -lqt3 -lqt2 -lqt;
20741 LIBS="$LIBS $libname"
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20749 #include <qglobal.h>
20750 #include <qstring.h>
20756 QString s("mangle_failure");
20757 #if (QT_VERSION < 221)
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20772 $as_echo "$ac_try_echo") >&5
20773 (eval "$ac_link") 2>conftest.er1
20775 grep -v '^ *+' conftest.er1 >conftest.err
20777 cat conftest.err >&5
20778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } && {
20780 test -z "$ac_cxx_werror_flag" ||
20781 test ! -s conftest.err
20782 } && test -s conftest$ac_exeext && {
20783 test "$cross_compiling" = yes ||
20784 $as_test_x conftest$ac_exeext
20786 qt_cv_libname=$libname
20788 $as_echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20794 rm -rf conftest.dSYM
20795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20796 conftest$ac_exeext conftest.$ac_ext
20799 if test -n "$qt_cv_libname"; then
20804 CXXFLAGS=$SAVE_CXXFLAGS
20809 if test -z "$qt_cv_libname"; then
20810 { $as_echo "$as_me:$LINENO: result: failed" >&5
20811 $as_echo "failed" >&6; }
20812 if test "$FATAL" = 1 ; then
20813 { { $as_echo "$as_me:$LINENO: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&5
20814 $as_echo "$as_me: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&2;}
20815 { (exit 1); exit 1; }; }
20818 { $as_echo "$as_me:$LINENO: result: $qt_cv_libname" >&5
20819 $as_echo "$qt_cv_libname" >&6; }
20822 if test -z "$qt_cv_libname"; then
20823 if test -n "$qt_cv_dir"; then
20824 qt_cv_libraries=$qt_cv_dir/lib64
20825 QT_LDFLAGS="-L$qt_cv_libraries"
20827 { $as_echo "$as_me:$LINENO: checking in lib64 for Qt library name" >&5
20828 $as_echo_n "checking in lib64 for Qt library name... " >&6; }
20830 if test "${qt_cv_libname+set}" = set; then
20831 $as_echo_n "(cached) " >&6
20835 ac_cpp='$CXXCPP $CPPFLAGS'
20836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20840 SAVE_CXXFLAGS=$CXXFLAGS
20841 CXXFLAGS="$CXXFLAGS $QT_INCLUDES $QT_LDFLAGS"
20843 for libname in -lqt-mt -lqt3 -lqt2 -lqt;
20847 LIBS="$LIBS $libname"
20848 cat >conftest.$ac_ext <<_ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20855 #include <qglobal.h>
20856 #include <qstring.h>
20862 QString s("mangle_failure");
20863 #if (QT_VERSION < 221)
20871 rm -f conftest.$ac_objext conftest$ac_exeext
20872 if { (ac_try="$ac_link"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20878 $as_echo "$ac_try_echo") >&5
20879 (eval "$ac_link") 2>conftest.er1
20881 grep -v '^ *+' conftest.er1 >conftest.err
20883 cat conftest.err >&5
20884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } && {
20886 test -z "$ac_cxx_werror_flag" ||
20887 test ! -s conftest.err
20888 } && test -s conftest$ac_exeext && {
20889 test "$cross_compiling" = yes ||
20890 $as_test_x conftest$ac_exeext
20892 qt_cv_libname=$libname
20894 $as_echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20900 rm -rf conftest.dSYM
20901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20902 conftest$ac_exeext conftest.$ac_ext
20905 if test -n "$qt_cv_libname"; then
20910 CXXFLAGS=$SAVE_CXXFLAGS
20915 if test -z "$qt_cv_libname"; then
20916 { $as_echo "$as_me:$LINENO: result: failed" >&5
20917 $as_echo "failed" >&6; }
20918 if test "$FATAL" = 1 ; then
20919 { { $as_echo "$as_me:$LINENO: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&5
20920 $as_echo "$as_me: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&2;}
20921 { (exit 1); exit 1; }; }
20924 { $as_echo "$as_me:$LINENO: result: $qt_cv_libname" >&5
20925 $as_echo "$qt_cv_libname" >&6; }
20931 QT_LIB=$qt_cv_libname;
20934 if test -n "$qt_cv_libname"; then
20936 { $as_echo "$as_me:$LINENO: checking Qt version" >&5
20937 $as_echo_n "checking Qt version... " >&6; }
20938 if test "${lyx_cv_qtversion+set}" = set; then
20939 $as_echo_n "(cached) " >&6
20943 ac_cpp='$CXXCPP $CPPFLAGS'
20944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20948 SAVE_CPPFLAGS=$CPPFLAGS
20949 CPPFLAGS="$CPPFLAGS $QT_INCLUDES"
20951 cat > conftest.$ac_ext <<EOF
20952 #line 20952 "configure"
20953 #include "confdefs.h"
20954 #include <qglobal.h>
20955 "%%%"QT_VERSION_STR"%%%"
20957 lyx_cv_qtversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \
20958 grep '^"%%%"' 2>/dev/null | \
20959 sed -e 's/"%%%"//g' -e 's/"//g'`
20960 rm -f conftest.$ac_ext
20961 CPPFLAGS=$SAVE_CPPFLAGS
20964 { $as_echo "$as_me:$LINENO: result: $lyx_cv_qtversion" >&5
20965 $as_echo "$lyx_cv_qtversion" >&6; }
20967 QT_VERSION=$lyx_cv_qtversion
20972 if test -n "$QT_LIB"; then
20973 QT_LIBS="$QT_LIB $QT_LDFLAGS"
20975 QT_CFLAGS="$QT_INCLUDES"
20978 if test "x$enable_gui" = "xqt4"; then
20982 { $as_echo "$as_me:$LINENO: checking for QT" >&5
20983 $as_echo_n "checking for QT... " >&6; }
20985 if test -n "$QT_CFLAGS"; then
20986 pkg_cv_QT_CFLAGS="$QT_CFLAGS"
20987 elif test -n "$PKG_CONFIG"; then
20988 if test -n "$PKG_CONFIG" && \
20989 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"Qt3Support QtGui QtCore \"") >&5
20990 ($PKG_CONFIG --exists --print-errors "Qt3Support QtGui QtCore ") 2>&5
20992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; then
20994 pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt3Support QtGui QtCore " 2>/dev/null`
21001 if test -n "$QT_LIBS"; then
21002 pkg_cv_QT_LIBS="$QT_LIBS"
21003 elif test -n "$PKG_CONFIG"; then
21004 if test -n "$PKG_CONFIG" && \
21005 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"Qt3Support QtGui QtCore \"") >&5
21006 ($PKG_CONFIG --exists --print-errors "Qt3Support QtGui QtCore ") 2>&5
21008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; then
21010 pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "Qt3Support QtGui QtCore " 2>/dev/null`
21020 if test $pkg_failed = yes; then
21022 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21023 _pkg_short_errors_supported=yes
21025 _pkg_short_errors_supported=no
21027 if test $_pkg_short_errors_supported = yes; then
21028 QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "Qt3Support QtGui QtCore " 2>&1`
21030 QT_PKG_ERRORS=`$PKG_CONFIG --print-errors "Qt3Support QtGui QtCore " 2>&1`
21032 # Put the nasty error message in config.log where it belongs
21033 echo "$QT_PKG_ERRORS" >&5
21035 { $as_echo "$as_me:$LINENO: result: no" >&5
21036 $as_echo "no" >&6; }
21038 echo "You requested QT4 but its build files are not available. Exiting now."
21041 elif test $pkg_failed = untried; then
21043 echo "You requested QT4 but its build files are not available. Exiting now."
21047 QT_CFLAGS=$pkg_cv_QT_CFLAGS
21048 QT_LIBS=$pkg_cv_QT_LIBS
21049 { $as_echo "$as_me:$LINENO: result: yes" >&5
21050 $as_echo "yes" >&6; }
21053 MOC=$(pkg-config --variable=moc_location QtCore)
21054 UIC=$(dirname $(pkg-config --variable=uic_location QtCore))/uic3
21055 QT_VERSION=$(pkg-config --modversion QtCore)
21057 if test "x$MOC" = "x"; then
21058 echo "WARNING: Your QtCore.pc file is buggy, it doesn't provide the variable 'moc_location'"
21059 echo "WARNING: I will try to find it in your PATH ..."
21060 # Extract the first word of "moc", so it can be a program name with args.
21061 set dummy moc; ac_word=$2
21062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21063 $as_echo_n "checking for $ac_word... " >&6; }
21064 if test "${ac_cv_prog_MOC+set}" = set; then
21065 $as_echo_n "(cached) " >&6
21067 if test -n "$MOC"; then
21068 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21071 for as_dir in $PATH
21074 test -z "$as_dir" && as_dir=.
21075 for ac_exec_ext in '' $ac_executable_extensions; do
21076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21077 ac_cv_prog_MOC="moc"
21078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21087 MOC=$ac_cv_prog_MOC
21088 if test -n "$MOC"; then
21089 { $as_echo "$as_me:$LINENO: result: $MOC" >&5
21090 $as_echo "$MOC" >&6; }
21092 { $as_echo "$as_me:$LINENO: result: no" >&5
21093 $as_echo "no" >&6; }
21097 if test "x$MOC" = "x"; then
21098 echo "WARNING: You can fix this by adding the location of moc to your path."
21099 echo "WARNING: Exiting now."
21104 if test "x$UIC" = "x3"; then
21105 echo "WARNING: Your QtCore.pc file is buggy, it doesn't provide the variable 'uic_location'"
21106 echo "WARNING: I will try to find it in your PATH ..."
21107 # Extract the first word of "uic3", so it can be a program name with args.
21108 set dummy uic3; ac_word=$2
21109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21110 $as_echo_n "checking for $ac_word... " >&6; }
21111 if test "${ac_cv_prog_UIChelp+set}" = set; then
21112 $as_echo_n "(cached) " >&6
21114 if test -n "$UIChelp"; then
21115 ac_cv_prog_UIChelp="$UIChelp" # Let the user override the test.
21117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21118 for as_dir in $PATH
21121 test -z "$as_dir" && as_dir=.
21122 for ac_exec_ext in '' $ac_executable_extensions; do
21123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21124 ac_cv_prog_UIChelp="uic3"
21125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21134 UIChelp=$ac_cv_prog_UIChelp
21135 if test -n "$UIChelp"; then
21136 { $as_echo "$as_me:$LINENO: result: $UIChelp" >&5
21137 $as_echo "$UIChelp" >&6; }
21139 { $as_echo "$as_me:$LINENO: result: no" >&5
21140 $as_echo "no" >&6; }
21144 if test "x$UIChelp" = "x"; then
21145 echo "WARNING: You can fix this by adding the location of uic3 to your path."
21146 echo "WARNING: Exiting now."
21153 flags_has_qt3support=$(echo $QT_CFLAGS | grep QT3_SUPPORT)
21154 if test "x$flags_has_qt3support" = "x" ; then
21155 echo "WARNING: Your Qt3Support package is buggy; it dosn't include the 'QT3_SUPPORT' flag"
21156 echo "WARNING: adding it manually"
21157 QT_CFLAGS="$QT_CFLAGS -DQT3_SUPPORT"
21160 if test -n "$QT_LIBS"; then
21169 LIBS="$ORIG_X_SAVE_LIBS"
21171 # Check whether --enable-pch was given.
21172 if test "${enable_pch+set}" = set; then
21173 enableval=$enable_pch; enable_pch=$enableval
21178 if test "$enable_pch" = yes; then
21180 { $as_echo "$as_me:$LINENO: checking whether ${CXX} support precompiled header" >&5
21181 $as_echo_n "checking whether ${CXX} support precompiled header... " >&6; }
21184 ac_cpp='$CXXCPP $CPPFLAGS'
21185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21189 SAVE_CXXFLAGS=$CXXFLAGS
21190 CXXFLAGS=-Winvalid-pch
21191 cat >conftest.$ac_ext <<_ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21213 $as_echo "$ac_try_echo") >&5
21214 (eval "$ac_compile") 2>conftest.er1
21216 grep -v '^ *+' conftest.er1 >conftest.err
21218 cat conftest.err >&5
21219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } && {
21221 test -z "$ac_cxx_werror_flag" ||
21222 test ! -s conftest.err
21223 } && test -s conftest.$ac_objext; then
21224 { $as_echo "$as_me:$LINENO: result: yes" >&5
21225 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -include bits/stdc++.h"
21227 $as_echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21230 { $as_echo "$as_me:$LINENO: result: no" >&5
21231 $as_echo "no" >&6; }
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21235 CXXFLAGS=$SAVE_CXXFLAGS
21237 ac_cpp='$CXXCPP $CPPFLAGS'
21238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21246 # It's just rude to go over the net to build
21247 XSLTPROC_FLAGS=--nonet
21249 if test ! -f /etc/xml/catalog; then
21250 for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/;
21252 if test -d "$i"; then
21257 # Last resort - try net
21258 if test -z "$DOCBOOK_ROOT"; then
21262 XML_CATALOG=/etc/xml/catalog
21263 CAT_ENTRY_START='<!--'
21264 CAT_ENTRY_END='-->'
21267 # Extract the first word of "xsltproc", so it can be a program name with args.
21268 set dummy xsltproc; ac_word=$2
21269 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21270 $as_echo_n "checking for $ac_word... " >&6; }
21271 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
21272 $as_echo_n "(cached) " >&6
21274 if test -n "$XSLTPROC"; then
21275 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
21277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21278 for as_dir in $PATH
21281 test -z "$as_dir" && as_dir=.
21282 for ac_exec_ext in '' $ac_executable_extensions; do
21283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21284 ac_cv_prog_XSLTPROC="xsltproc"
21285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21294 XSLTPROC=$ac_cv_prog_XSLTPROC
21295 if test -n "$XSLTPROC"; then
21296 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
21297 $as_echo "$XSLTPROC" >&6; }
21299 { $as_echo "$as_me:$LINENO: result: no" >&5
21300 $as_echo "no" >&6; }
21305 if test -n "$XSLTPROC"; then
21306 { $as_echo "$as_me:$LINENO: checking whether xsltproc works" >&5
21307 $as_echo_n "checking whether xsltproc works... " >&6; }
21309 if test -n "$XML_CATALOG"; then
21310 DB_FILE="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
21312 DB_FILE="$DOCBOOK_ROOT/docbook.xsl"
21315 $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END
21316 <?xml version="1.0" encoding='ISO-8859-1'?>
21317 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
21321 if test "$?" = 0; then
21324 { $as_echo "$as_me:$LINENO: result: $XSLTPROC_WORKS" >&5
21325 $as_echo "$XSLTPROC_WORKS" >&6; }
21327 if test "$XSLTPROC_WORKS" = "yes"; then
21328 have_xsltproc_TRUE=
21329 have_xsltproc_FALSE='#'
21331 have_xsltproc_TRUE='#'
21332 have_xsltproc_FALSE=
21343 LIBS="$ORIG_SAVE_LIBS"
21344 LIBERTY_LIBS="-liberty $DL_LIB $INTL_LIB"
21345 BFD_LIBS="-lbfd -liberty $DL_LIB $INTL_LIB $Z_LIB"
21351 # do NOT put tests here, they will fail in the case X is not installed !
21355 { $as_echo "$as_me:$LINENO: checking whether ${CC} -W is understood" >&5
21356 $as_echo_n "checking whether ${CC} -W is understood... " >&6; }
21359 ac_cpp='$CPP $CPPFLAGS'
21360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21364 SAVE_CFLAGS=$CFLAGS
21366 cat >conftest.$ac_ext <<_ACEOF
21369 cat confdefs.h >>conftest.$ac_ext
21370 cat >>conftest.$ac_ext <<_ACEOF
21371 /* end confdefs.h. */
21381 rm -f conftest.$ac_objext
21382 if { (ac_try="$ac_compile"
21383 case "(($ac_try" in
21384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21388 $as_echo "$ac_try_echo") >&5
21389 (eval "$ac_compile") 2>conftest.er1
21391 grep -v '^ *+' conftest.er1 >conftest.err
21393 cat conftest.err >&5
21394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest.$ac_objext; then
21399 { $as_echo "$as_me:$LINENO: result: yes" >&5
21400 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -W"
21402 $as_echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21405 { $as_echo "$as_me:$LINENO: result: no" >&5
21406 $as_echo "no" >&6; }
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 CFLAGS=$SAVE_CFLAGS
21412 ac_cpp='$CXXCPP $CPPFLAGS'
21413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21419 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -W is understood" >&5
21420 $as_echo_n "checking whether ${CXX} -W is understood... " >&6; }
21423 ac_cpp='$CXXCPP $CPPFLAGS'
21424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21428 SAVE_CXXFLAGS=$CXXFLAGS
21430 cat >conftest.$ac_ext <<_ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21452 $as_echo "$ac_try_echo") >&5
21453 (eval "$ac_compile") 2>conftest.er1
21455 grep -v '^ *+' conftest.er1 >conftest.err
21457 cat conftest.err >&5
21458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } && {
21460 test -z "$ac_cxx_werror_flag" ||
21461 test ! -s conftest.err
21462 } && test -s conftest.$ac_objext; then
21463 { $as_echo "$as_me:$LINENO: result: yes" >&5
21464 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -W"
21466 $as_echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21469 { $as_echo "$as_me:$LINENO: result: no" >&5
21470 $as_echo "no" >&6; }
21473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21474 CXXFLAGS=$SAVE_CXXFLAGS
21476 ac_cpp='$CXXCPP $CPPFLAGS'
21477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21483 { $as_echo "$as_me:$LINENO: checking whether ${CC} -Wall is understood" >&5
21484 $as_echo_n "checking whether ${CC} -Wall is understood... " >&6; }
21487 ac_cpp='$CPP $CPPFLAGS'
21488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21492 SAVE_CFLAGS=$CFLAGS
21494 cat >conftest.$ac_ext <<_ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21509 rm -f conftest.$ac_objext
21510 if { (ac_try="$ac_compile"
21511 case "(($ac_try" in
21512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21513 *) ac_try_echo=$ac_try;;
21515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21516 $as_echo "$ac_try_echo") >&5
21517 (eval "$ac_compile") 2>conftest.er1
21519 grep -v '^ *+' conftest.er1 >conftest.err
21521 cat conftest.err >&5
21522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); } && {
21524 test -z "$ac_c_werror_flag" ||
21525 test ! -s conftest.err
21526 } && test -s conftest.$ac_objext; then
21527 { $as_echo "$as_me:$LINENO: result: yes" >&5
21528 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -Wall"
21530 $as_echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21533 { $as_echo "$as_me:$LINENO: result: no" >&5
21534 $as_echo "no" >&6; }
21537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538 CFLAGS=$SAVE_CFLAGS
21540 ac_cpp='$CXXCPP $CPPFLAGS'
21541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21547 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -Wall is understood" >&5
21548 $as_echo_n "checking whether ${CXX} -Wall is understood... " >&6; }
21551 ac_cpp='$CXXCPP $CPPFLAGS'
21552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21556 SAVE_CXXFLAGS=$CXXFLAGS
21558 cat >conftest.$ac_ext <<_ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21573 rm -f conftest.$ac_objext
21574 if { (ac_try="$ac_compile"
21575 case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21580 $as_echo "$ac_try_echo") >&5
21581 (eval "$ac_compile") 2>conftest.er1
21583 grep -v '^ *+' conftest.er1 >conftest.err
21585 cat conftest.err >&5
21586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); } && {
21588 test -z "$ac_cxx_werror_flag" ||
21589 test ! -s conftest.err
21590 } && test -s conftest.$ac_objext; then
21591 { $as_echo "$as_me:$LINENO: result: yes" >&5
21592 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -Wall"
21594 $as_echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 { $as_echo "$as_me:$LINENO: result: no" >&5
21598 $as_echo "no" >&6; }
21601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602 CXXFLAGS=$SAVE_CXXFLAGS
21604 ac_cpp='$CXXCPP $CPPFLAGS'
21605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21611 { $as_echo "$as_me:$LINENO: checking whether ${CC} -fno-common is understood" >&5
21612 $as_echo_n "checking whether ${CC} -fno-common is understood... " >&6; }
21615 ac_cpp='$CPP $CPPFLAGS'
21616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21620 SAVE_CFLAGS=$CFLAGS
21622 cat >conftest.$ac_ext <<_ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21637 rm -f conftest.$ac_objext
21638 if { (ac_try="$ac_compile"
21639 case "(($ac_try" in
21640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641 *) ac_try_echo=$ac_try;;
21643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21644 $as_echo "$ac_try_echo") >&5
21645 (eval "$ac_compile") 2>conftest.er1
21647 grep -v '^ *+' conftest.er1 >conftest.err
21649 cat conftest.err >&5
21650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && {
21652 test -z "$ac_c_werror_flag" ||
21653 test ! -s conftest.err
21654 } && test -s conftest.$ac_objext; then
21655 { $as_echo "$as_me:$LINENO: result: yes" >&5
21656 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -fno-common"
21658 $as_echo "$as_me: failed program was:" >&5
21659 sed 's/^/| /' conftest.$ac_ext >&5
21661 { $as_echo "$as_me:$LINENO: result: no" >&5
21662 $as_echo "no" >&6; }
21665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21666 CFLAGS=$SAVE_CFLAGS
21668 ac_cpp='$CXXCPP $CPPFLAGS'
21669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21675 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -fno-common is understood" >&5
21676 $as_echo_n "checking whether ${CXX} -fno-common is understood... " >&6; }
21679 ac_cpp='$CXXCPP $CPPFLAGS'
21680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21684 SAVE_CXXFLAGS=$CXXFLAGS
21685 CXXFLAGS=-fno-common
21686 cat >conftest.$ac_ext <<_ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21701 rm -f conftest.$ac_objext
21702 if { (ac_try="$ac_compile"
21703 case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21708 $as_echo "$ac_try_echo") >&5
21709 (eval "$ac_compile") 2>conftest.er1
21711 grep -v '^ *+' conftest.er1 >conftest.err
21713 cat conftest.err >&5
21714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } && {
21716 test -z "$ac_cxx_werror_flag" ||
21717 test ! -s conftest.err
21718 } && test -s conftest.$ac_objext; then
21719 { $as_echo "$as_me:$LINENO: result: yes" >&5
21720 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -fno-common"
21722 $as_echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21725 { $as_echo "$as_me:$LINENO: result: no" >&5
21726 $as_echo "no" >&6; }
21729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21730 CXXFLAGS=$SAVE_CXXFLAGS
21732 ac_cpp='$CXXCPP $CPPFLAGS'
21733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21739 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -ftemplate-depth-50 is understood" >&5
21740 $as_echo_n "checking whether ${CXX} -ftemplate-depth-50 is understood... " >&6; }
21743 ac_cpp='$CXXCPP $CPPFLAGS'
21744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21748 SAVE_CXXFLAGS=$CXXFLAGS
21749 CXXFLAGS=-ftemplate-depth-50
21750 cat >conftest.$ac_ext <<_ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21765 rm -f conftest.$ac_objext
21766 if { (ac_try="$ac_compile"
21767 case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21772 $as_echo "$ac_try_echo") >&5
21773 (eval "$ac_compile") 2>conftest.er1
21775 grep -v '^ *+' conftest.er1 >conftest.err
21777 cat conftest.err >&5
21778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); } && {
21780 test -z "$ac_cxx_werror_flag" ||
21781 test ! -s conftest.err
21782 } && test -s conftest.$ac_objext; then
21783 { $as_echo "$as_me:$LINENO: result: yes" >&5
21784 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -ftemplate-depth-50"
21786 $as_echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21789 { $as_echo "$as_me:$LINENO: result: no" >&5
21790 $as_echo "no" >&6; }
21793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21794 CXXFLAGS=$SAVE_CXXFLAGS
21796 ac_cpp='$CXXCPP $CPPFLAGS'
21797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21803 { $as_echo "$as_me:$LINENO: checking whether ${CC} -Wdeclaration-after-statement is understood" >&5
21804 $as_echo_n "checking whether ${CC} -Wdeclaration-after-statement is understood... " >&6; }
21807 ac_cpp='$CPP $CPPFLAGS'
21808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21812 SAVE_CFLAGS=$CFLAGS
21813 CFLAGS=-Wdeclaration-after-statement
21814 cat >conftest.$ac_ext <<_ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21829 rm -f conftest.$ac_objext
21830 if { (ac_try="$ac_compile"
21831 case "(($ac_try" in
21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833 *) ac_try_echo=$ac_try;;
21835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21836 $as_echo "$ac_try_echo") >&5
21837 (eval "$ac_compile") 2>conftest.er1
21839 grep -v '^ *+' conftest.er1 >conftest.err
21841 cat conftest.err >&5
21842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && {
21844 test -z "$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21846 } && test -s conftest.$ac_objext; then
21847 { $as_echo "$as_me:$LINENO: result: yes" >&5
21848 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -Wdeclaration-after-statement"
21850 $as_echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21853 { $as_echo "$as_me:$LINENO: result: no" >&5
21854 $as_echo "no" >&6; }
21857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21858 CFLAGS=$SAVE_CFLAGS
21860 ac_cpp='$CXXCPP $CPPFLAGS'
21861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21867 # Check whether --enable-gcov was given.
21868 if test "${enable_gcov+set}" = set; then
21869 enableval=$enable_gcov; enable_gcov=$enableval
21874 if test "$enable_gcov" = yes; then
21876 { $as_echo "$as_me:$LINENO: checking whether ${CC} -fprofile-arcs is understood" >&5
21877 $as_echo_n "checking whether ${CC} -fprofile-arcs is understood... " >&6; }
21880 ac_cpp='$CPP $CPPFLAGS'
21881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21885 SAVE_CFLAGS=$CFLAGS
21886 CFLAGS=-fprofile-arcs
21887 cat >conftest.$ac_ext <<_ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21902 rm -f conftest.$ac_objext
21903 if { (ac_try="$ac_compile"
21904 case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21909 $as_echo "$ac_try_echo") >&5
21910 (eval "$ac_compile") 2>conftest.er1
21912 grep -v '^ *+' conftest.er1 >conftest.err
21914 cat conftest.err >&5
21915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest.$ac_objext; then
21920 { $as_echo "$as_me:$LINENO: result: yes" >&5
21921 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -fprofile-arcs"
21923 $as_echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21926 { $as_echo "$as_me:$LINENO: result: no" >&5
21927 $as_echo "no" >&6; }
21930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931 CFLAGS=$SAVE_CFLAGS
21933 ac_cpp='$CXXCPP $CPPFLAGS'
21934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21940 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -fprofile-arcs is understood" >&5
21941 $as_echo_n "checking whether ${CXX} -fprofile-arcs is understood... " >&6; }
21944 ac_cpp='$CXXCPP $CPPFLAGS'
21945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21949 SAVE_CXXFLAGS=$CXXFLAGS
21950 CXXFLAGS=-fprofile-arcs
21951 cat >conftest.$ac_ext <<_ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h. */
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21973 $as_echo "$ac_try_echo") >&5
21974 (eval "$ac_compile") 2>conftest.er1
21976 grep -v '^ *+' conftest.er1 >conftest.err
21978 cat conftest.err >&5
21979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } && {
21981 test -z "$ac_cxx_werror_flag" ||
21982 test ! -s conftest.err
21983 } && test -s conftest.$ac_objext; then
21984 { $as_echo "$as_me:$LINENO: result: yes" >&5
21985 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -fprofile-arcs"
21987 $as_echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21990 { $as_echo "$as_me:$LINENO: result: no" >&5
21991 $as_echo "no" >&6; }
21994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21995 CXXFLAGS=$SAVE_CXXFLAGS
21997 ac_cpp='$CXXCPP $CPPFLAGS'
21998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22004 { $as_echo "$as_me:$LINENO: checking whether ${CC} -ftest-coverage is understood" >&5
22005 $as_echo_n "checking whether ${CC} -ftest-coverage is understood... " >&6; }
22008 ac_cpp='$CPP $CPPFLAGS'
22009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22013 SAVE_CFLAGS=$CFLAGS
22014 CFLAGS=-ftest-coverage
22015 cat >conftest.$ac_ext <<_ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22030 rm -f conftest.$ac_objext
22031 if { (ac_try="$ac_compile"
22032 case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22037 $as_echo "$ac_try_echo") >&5
22038 (eval "$ac_compile") 2>conftest.er1
22040 grep -v '^ *+' conftest.er1 >conftest.err
22042 cat conftest.err >&5
22043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } && {
22045 test -z "$ac_c_werror_flag" ||
22046 test ! -s conftest.err
22047 } && test -s conftest.$ac_objext; then
22048 { $as_echo "$as_me:$LINENO: result: yes" >&5
22049 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -ftest-coverage"
22051 $as_echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22054 { $as_echo "$as_me:$LINENO: result: no" >&5
22055 $as_echo "no" >&6; }
22058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059 CFLAGS=$SAVE_CFLAGS
22061 ac_cpp='$CXXCPP $CPPFLAGS'
22062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22068 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -ftest-coverage is understood" >&5
22069 $as_echo_n "checking whether ${CXX} -ftest-coverage is understood... " >&6; }
22072 ac_cpp='$CXXCPP $CPPFLAGS'
22073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22077 SAVE_CXXFLAGS=$CXXFLAGS
22078 CXXFLAGS=-ftest-coverage
22079 cat >conftest.$ac_ext <<_ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h. */
22094 rm -f conftest.$ac_objext
22095 if { (ac_try="$ac_compile"
22096 case "(($ac_try" in
22097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098 *) ac_try_echo=$ac_try;;
22100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22101 $as_echo "$ac_try_echo") >&5
22102 (eval "$ac_compile") 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } && {
22109 test -z "$ac_cxx_werror_flag" ||
22110 test ! -s conftest.err
22111 } && test -s conftest.$ac_objext; then
22112 { $as_echo "$as_me:$LINENO: result: yes" >&5
22113 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -ftest-coverage"
22115 $as_echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22118 { $as_echo "$as_me:$LINENO: result: no" >&5
22119 $as_echo "no" >&6; }
22122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22123 CXXFLAGS=$SAVE_CXXFLAGS
22125 ac_cpp='$CXXCPP $CPPFLAGS'
22126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22133 # Check whether --enable-werror was given.
22134 if test "${enable_werror+set}" = set; then
22135 enableval=$enable_werror; enable_werror=$enableval
22140 if test "$enable_werror" = yes; then
22141 # enable -Werror for non-release versions.
22142 if echo "$VERSION" | grep git >/dev/null; then
22144 { $as_echo "$as_me:$LINENO: checking whether ${CC} -Werror is understood" >&5
22145 $as_echo_n "checking whether ${CC} -Werror is understood... " >&6; }
22148 ac_cpp='$CPP $CPPFLAGS'
22149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22153 SAVE_CFLAGS=$CFLAGS
22155 cat >conftest.$ac_ext <<_ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22170 rm -f conftest.$ac_objext
22171 if { (ac_try="$ac_compile"
22172 case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22177 $as_echo "$ac_try_echo") >&5
22178 (eval "$ac_compile") 2>conftest.er1
22180 grep -v '^ *+' conftest.er1 >conftest.err
22182 cat conftest.err >&5
22183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } && {
22185 test -z "$ac_c_werror_flag" ||
22186 test ! -s conftest.err
22187 } && test -s conftest.$ac_objext; then
22188 { $as_echo "$as_me:$LINENO: result: yes" >&5
22189 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -Werror"
22191 $as_echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22194 { $as_echo "$as_me:$LINENO: result: no" >&5
22195 $as_echo "no" >&6; }
22198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22199 CFLAGS=$SAVE_CFLAGS
22201 ac_cpp='$CXXCPP $CPPFLAGS'
22202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22208 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -Werror is understood" >&5
22209 $as_echo_n "checking whether ${CXX} -Werror is understood... " >&6; }
22212 ac_cpp='$CXXCPP $CPPFLAGS'
22213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22217 SAVE_CXXFLAGS=$CXXFLAGS
22219 cat >conftest.$ac_ext <<_ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22234 rm -f conftest.$ac_objext
22235 if { (ac_try="$ac_compile"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242 (eval "$ac_compile") 2>conftest.er1
22244 grep -v '^ *+' conftest.er1 >conftest.err
22246 cat conftest.err >&5
22247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && {
22249 test -z "$ac_cxx_werror_flag" ||
22250 test ! -s conftest.err
22251 } && test -s conftest.$ac_objext; then
22252 { $as_echo "$as_me:$LINENO: result: yes" >&5
22253 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -Werror"
22255 $as_echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22258 { $as_echo "$as_me:$LINENO: result: no" >&5
22259 $as_echo "no" >&6; }
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 CXXFLAGS=$SAVE_CXXFLAGS
22265 ac_cpp='$CXXCPP $CPPFLAGS'
22266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22274 # Check whether --enable-optimization was given.
22275 if test "${enable_optimization+set}" = set; then
22276 enableval=$enable_optimization; enable_optimization=$enableval
22278 enable_optimisation=yes
22281 if test "$enable_optimization" = "no"; then
22282 CFLAGS=`echo $CFLAGS | sed 's/-O2//g'`
22283 CXXFLAGS=`echo $CXXFLAGS | sed 's/-O2//g'`
22286 # Check whether --enable-account-check was given.
22287 if test "${enable_account_check+set}" = set; then
22288 enableval=$enable_account_check; enable_account_check=$enableval
22290 enable_account_check=yes
22294 if test "x$enable_account_check" = "xyes"; then
22295 CHECK_ACCOUNT_TRUE=
22296 CHECK_ACCOUNT_FALSE='#'
22298 CHECK_ACCOUNT_TRUE='#'
22299 CHECK_ACCOUNT_FALSE=
22306 # fixups for config.h
22307 if test "$prefix" = "NONE"; then
22308 my_op_prefix="$ac_default_prefix"
22310 my_op_prefix="$prefix"
22312 my_op_datadir="$my_op_prefix/share"
22314 if test "$exec_prefix" = "NONE"; then
22315 my_op_exec_prefix="$my_op_prefix"
22317 my_op_exec_prefix="$exec_prefix"
22319 my_op_bindir="$my_op_exec_prefix/bin"
22321 OP_DATADIR=`eval echo "$my_op_datadir/$PACKAGE/"`
22323 cat >>confdefs.h <<_ACEOF
22324 #define OP_DATADIR "$OP_DATADIR"
22327 OP_BINDIR=`eval echo "$my_op_bindir/"`
22329 cat >>confdefs.h <<_ACEOF
22330 #define OP_BINDIR "$OP_BINDIR"
22333 OP_DOCDIR=`eval echo "${my_op_prefix}/share/doc/$PACKAGE/"`
22336 ac_config_files="$ac_config_files Makefile pe_profiling/Makefile libperf_events/Makefile m4/Makefile libutil/Makefile libutil/tests/Makefile libutil++/Makefile libutil++/tests/Makefile libop/Makefile libop/tests/Makefile libopagent/Makefile libopt++/Makefile libdb/Makefile libdb/tests/Makefile libabi/Makefile libabi/tests/Makefile libregex/Makefile libregex/tests/Makefile libregex/stl.pat libregex/tests/mangled-name daemon/Makefile daemon/liblegacy/Makefile events/Makefile utils/Makefile doc/Makefile doc/xsl/catalog-1.xml doc/oprofile.1 doc/opcontrol.1 doc/ophelp.1 doc/opreport.1 doc/opannotate.1 doc/opgprof.1 doc/oparchive.1 doc/opimport.1 doc/operf.1 doc/srcdoc/Doxyfile libpp/Makefile opjitconv/Makefile pp/Makefile gui/Makefile gui/ui/Makefile agents/Makefile agents/jvmti/Makefile agents/jvmpi/Makefile"
22338 cat >confcache <<\_ACEOF
22339 # This file is a shell script that caches the results of configure
22340 # tests run on this system so they can be shared between configure
22341 # scripts and configure runs, see configure's option --config-cache.
22342 # It is not useful on other systems. If it contains results you don't
22343 # want to keep, you may remove or edit it.
22345 # config.status only pays attention to the cache file if you give it
22346 # the --recheck option to rerun configure.
22348 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22349 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22350 # following values.
22354 # The following way of writing the cache mishandles newlines in values,
22355 # but we know of no workaround that is simple, portable, and efficient.
22356 # So, we kill variables containing newlines.
22357 # Ultrix sh set writes to stderr and can't be redirected directly,
22358 # and sets the high bit in the cache file unless we assign to the vars.
22360 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22361 eval ac_val=\$$ac_var
22365 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22369 _ | IFS | as_nl) ;; #(
22370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22371 *) $as_unset $ac_var ;;
22377 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22378 *${as_nl}ac_space=\ *)
22379 # `set' does not quote correctly, so add quotes (double-quote
22380 # substitution turns \\\\ into \\, and sed turns \\ into \).
22383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22386 # `set' quotes correctly as required by POSIX, so do not add quotes.
22387 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22396 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22398 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22400 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22401 if test -w "$cache_file"; then
22402 test "x$cache_file" != "x/dev/null" &&
22403 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22404 $as_echo "$as_me: updating cache $cache_file" >&6;}
22405 cat confcache >$cache_file
22407 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22408 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22413 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22414 # Let make expand exec_prefix.
22415 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22417 DEFS=-DHAVE_CONFIG_H
22421 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22422 # 1. Remove the extension, and $U if already installed.
22423 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22424 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22425 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22426 # will be set to the directory where LIBOBJS objects are built.
22427 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22428 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22430 LIBOBJS=$ac_libobjs
22432 LTLIBOBJS=$ac_ltlibobjs
22435 if test -n "$EXEEXT"; then
22437 am__EXEEXT_FALSE='#'
22439 am__EXEEXT_TRUE='#'
22443 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22444 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22445 Usually this means the macro was only invoked conditionally." >&5
22446 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22447 Usually this means the macro was only invoked conditionally." >&2;}
22448 { (exit 1); exit 1; }; }
22450 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22451 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22452 Usually this means the macro was only invoked conditionally." >&5
22453 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22454 Usually this means the macro was only invoked conditionally." >&2;}
22455 { (exit 1); exit 1; }; }
22457 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22458 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22459 Usually this means the macro was only invoked conditionally." >&5
22460 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22461 Usually this means the macro was only invoked conditionally." >&2;}
22462 { (exit 1); exit 1; }; }
22464 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22465 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22466 Usually this means the macro was only invoked conditionally." >&5
22467 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22468 Usually this means the macro was only invoked conditionally." >&2;}
22469 { (exit 1); exit 1; }; }
22471 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22472 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22473 Usually this means the macro was only invoked conditionally." >&5
22474 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22475 Usually this means the macro was only invoked conditionally." >&2;}
22476 { (exit 1); exit 1; }; }
22478 if test -z "${BUILD_FOR_PERF_EVENT_TRUE}" && test -z "${BUILD_FOR_PERF_EVENT_FALSE}"; then
22479 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_FOR_PERF_EVENT\" was never defined.
22480 Usually this means the macro was only invoked conditionally." >&5
22481 $as_echo "$as_me: error: conditional \"BUILD_FOR_PERF_EVENT\" was never defined.
22482 Usually this means the macro was only invoked conditionally." >&2;}
22483 { (exit 1); exit 1; }; }
22485 if test -z "${BUILD_JVMTI_AGENT_TRUE}" && test -z "${BUILD_JVMTI_AGENT_FALSE}"; then
22486 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_JVMTI_AGENT\" was never defined.
22487 Usually this means the macro was only invoked conditionally." >&5
22488 $as_echo "$as_me: error: conditional \"BUILD_JVMTI_AGENT\" was never defined.
22489 Usually this means the macro was only invoked conditionally." >&2;}
22490 { (exit 1); exit 1; }; }
22492 if test -z "${BUILD_JVMPI_AGENT_TRUE}" && test -z "${BUILD_JVMPI_AGENT_FALSE}"; then
22493 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_JVMPI_AGENT\" was never defined.
22494 Usually this means the macro was only invoked conditionally." >&5
22495 $as_echo "$as_me: error: conditional \"BUILD_JVMPI_AGENT\" was never defined.
22496 Usually this means the macro was only invoked conditionally." >&2;}
22497 { (exit 1); exit 1; }; }
22499 if test -z "${have_qt_TRUE}" && test -z "${have_qt_FALSE}"; then
22500 { { $as_echo "$as_me:$LINENO: error: conditional \"have_qt\" was never defined.
22501 Usually this means the macro was only invoked conditionally." >&5
22502 $as_echo "$as_me: error: conditional \"have_qt\" was never defined.
22503 Usually this means the macro was only invoked conditionally." >&2;}
22504 { (exit 1); exit 1; }; }
22506 if test -z "${have_xsltproc_TRUE}" && test -z "${have_xsltproc_FALSE}"; then
22507 { { $as_echo "$as_me:$LINENO: error: conditional \"have_xsltproc\" was never defined.
22508 Usually this means the macro was only invoked conditionally." >&5
22509 $as_echo "$as_me: error: conditional \"have_xsltproc\" was never defined.
22510 Usually this means the macro was only invoked conditionally." >&2;}
22511 { (exit 1); exit 1; }; }
22513 if test -z "${CHECK_ACCOUNT_TRUE}" && test -z "${CHECK_ACCOUNT_FALSE}"; then
22514 { { $as_echo "$as_me:$LINENO: error: conditional \"CHECK_ACCOUNT\" was never defined.
22515 Usually this means the macro was only invoked conditionally." >&5
22516 $as_echo "$as_me: error: conditional \"CHECK_ACCOUNT\" was never defined.
22517 Usually this means the macro was only invoked conditionally." >&2;}
22518 { (exit 1); exit 1; }; }
22521 : ${CONFIG_STATUS=./config.status}
22523 ac_clean_files_save=$ac_clean_files
22524 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22525 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22526 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22527 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22529 # Generated by $as_me.
22530 # Run this file to recreate the current configuration.
22531 # Compiler output produced by configure, useful for debugging
22532 # configure, is in config.log if it exists.
22535 ac_cs_recheck=false
22537 SHELL=\${CONFIG_SHELL-$SHELL}
22540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22541 ## --------------------- ##
22542 ## M4sh Initialization. ##
22543 ## --------------------- ##
22545 # Be more Bourne compatible
22546 DUALCASE=1; export DUALCASE # for MKS sh
22547 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22550 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22551 # is contrary to our usage. Disable this feature.
22552 alias -g '${1+"$@"}'='"$@"'
22553 setopt NO_GLOB_SUBST
22555 case `(set -o) 2>/dev/null` in
22556 *posix*) set -o posix ;;
22565 # Avoid depending upon Character Ranges.
22566 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22567 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22568 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22569 as_cr_digits='0123456789'
22570 as_cr_alnum=$as_cr_Letters$as_cr_digits
22575 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22576 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22577 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22578 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22579 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22580 as_echo='printf %s\n'
22581 as_echo_n='printf %s'
22583 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22584 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22585 as_echo_n='/usr/ucb/echo -n'
22587 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22588 as_echo_n_body='eval
22592 expr "X$arg" : "X\\(.*\\)$as_nl";
22593 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22595 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22597 export as_echo_n_body
22598 as_echo_n='sh -c $as_echo_n_body as_echo'
22600 export as_echo_body
22601 as_echo='sh -c $as_echo_body as_echo'
22604 # The user is always right.
22605 if test "${PATH_SEPARATOR+set}" != set; then
22607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22608 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22613 # Support unset when possible.
22614 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22622 # We need space, tab and new line, in precisely that order. Quoting is
22623 # there to prevent editors from complaining about space-tab.
22624 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22625 # splitting by setting IFS to empty value.)
22628 # Find who we are. Look in the path if we contain no directory separator.
22630 *[\\/]* ) as_myself=$0 ;;
22631 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22632 for as_dir in $PATH
22635 test -z "$as_dir" && as_dir=.
22636 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22642 # We did not find ourselves, most probably we were run as `sh COMMAND'
22643 # in which case we are not to be found in the path.
22644 if test "x$as_myself" = x; then
22647 if test ! -f "$as_myself"; then
22648 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22649 { (exit 1); exit 1; }
22652 # Work around bugs in pre-3.0 UWIN ksh.
22653 for as_var in ENV MAIL MAILPATH
22654 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22666 # Required to use basename.
22667 if expr a : '\(a\)' >/dev/null 2>&1 &&
22668 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22674 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22675 as_basename=basename
22681 # Name of the executable.
22682 as_me=`$as_basename -- "$0" ||
22683 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22684 X"$0" : 'X\(//\)$' \| \
22685 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22687 sed '/^.*\/\([^/][^/]*\)\/*$/{
22706 as_lineno_1=$LINENO
22707 as_lineno_2=$LINENO
22708 test "x$as_lineno_1" != "x$as_lineno_2" &&
22709 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22711 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22712 # uniformly replaced by the line number. The first 'sed' inserts a
22713 # line-number line after each line using $LINENO; the second 'sed'
22714 # does the real work. The second script uses 'N' to pair each
22715 # line-number line with the line containing $LINENO, and appends
22716 # trailing '-' during substitution so that $LINENO is not a special
22717 # case at line end.
22718 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22719 # scripts with optimization help from Paolo Bonzini. Blame Lee
22720 # E. McMahon (1931-1989) for sed's syntax. :-)
22732 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22735 ' >$as_me.lineno &&
22736 chmod +x "$as_me.lineno" ||
22737 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22738 { (exit 1); exit 1; }; }
22740 # Don't try to exec as it changes $[0], causing all sort of problems
22741 # (the dirname of $[0] is not the place where we might find the
22742 # original and so on. Autoconf is especially sensitive to this).
22743 . "./$as_me.lineno"
22744 # Exit status is that of the last command.
22749 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22755 ECHO_C= ECHO_N= ECHO_T=
22756 case `echo -n x` in
22758 case `echo 'x\c'` in
22759 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22765 if expr a : '\(a\)' >/dev/null 2>&1 &&
22766 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22772 rm -f conf$$ conf$$.exe conf$$.file
22773 if test -d conf$$.dir; then
22774 rm -f conf$$.dir/conf$$.file
22777 mkdir conf$$.dir 2>/dev/null
22779 if (echo >conf$$.file) 2>/dev/null; then
22780 if ln -s conf$$.file conf$$ 2>/dev/null; then
22782 # ... but there are two gotchas:
22783 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22784 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22785 # In both cases, we have to default to `cp -p'.
22786 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22788 elif ln conf$$.file conf$$ 2>/dev/null; then
22796 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22797 rmdir conf$$.dir 2>/dev/null
22799 if mkdir -p . 2>/dev/null; then
22802 test -d ./-p && rmdir ./-p
22806 if test -x / >/dev/null 2>&1; then
22807 as_test_x='test -x'
22809 if ls -dL / >/dev/null 2>&1; then
22816 if test -d "$1"; then
22822 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22823 ???[sx]*):;;*)false;;esac;fi
22827 as_executable_p=$as_test_x
22829 # Sed expression to map a string onto a valid CPP name.
22830 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22832 # Sed expression to map a string onto a valid variable name.
22833 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22838 # Save the log message, to keep $[0] and so on meaningful, and to
22839 # report actual input values of CONFIG_FILES etc. instead of their
22840 # values after options handling.
22842 This file was extended by $as_me, which was
22843 generated by GNU Autoconf 2.63. Invocation command line was
22845 CONFIG_FILES = $CONFIG_FILES
22846 CONFIG_HEADERS = $CONFIG_HEADERS
22847 CONFIG_LINKS = $CONFIG_LINKS
22848 CONFIG_COMMANDS = $CONFIG_COMMANDS
22851 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22856 case $ac_config_files in *"
22857 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22860 case $ac_config_headers in *"
22861 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22866 # Files that config.status was made for.
22867 config_files="$ac_config_files"
22868 config_headers="$ac_config_headers"
22869 config_commands="$ac_config_commands"
22873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22875 \`$as_me' instantiates files from templates according to the
22876 current configuration.
22878 Usage: $0 [OPTION]... [FILE]...
22880 -h, --help print this help, then exit
22881 -V, --version print version number and configuration settings, then exit
22882 -q, --quiet, --silent
22883 do not print progress messages
22884 -d, --debug don't remove temporary files
22885 --recheck update $as_me by reconfiguring in the same conditions
22886 --file=FILE[:TEMPLATE]
22887 instantiate the configuration file FILE
22888 --header=FILE[:TEMPLATE]
22889 instantiate the configuration header FILE
22891 Configuration files:
22894 Configuration headers:
22897 Configuration commands:
22900 Report bugs to <bug-autoconf@gnu.org>."
22903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22906 configured by $0, generated by GNU Autoconf 2.63,
22907 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22909 Copyright (C) 2008 Free Software Foundation, Inc.
22910 This config.status script is free software; the Free Software Foundation
22911 gives unlimited permission to copy, distribute and modify it."
22918 test -n "\$AWK" || AWK=awk
22921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22922 # The default lists apply if the user does not specify any file.
22928 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22929 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22940 # Handling of the options.
22941 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22943 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22944 $as_echo "$ac_cs_version"; exit ;;
22945 --debug | --debu | --deb | --de | --d | -d )
22947 --file | --fil | --fi | --f )
22950 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22952 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22953 ac_need_defaults=false;;
22954 --header | --heade | --head | --hea )
22957 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22959 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22960 ac_need_defaults=false;;
22962 # Conflict between --help and --header
22963 { $as_echo "$as_me: error: ambiguous option: $1
22964 Try \`$0 --help' for more information." >&2
22965 { (exit 1); exit 1; }; };;
22966 --help | --hel | -h )
22967 $as_echo "$ac_cs_usage"; exit ;;
22968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22969 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22972 # This is an error.
22973 -*) { $as_echo "$as_me: error: unrecognized option: $1
22974 Try \`$0 --help' for more information." >&2
22975 { (exit 1); exit 1; }; } ;;
22977 *) ac_config_targets="$ac_config_targets $1"
22978 ac_need_defaults=false ;;
22984 ac_configure_extra_args=
22986 if $ac_cs_silent; then
22988 ac_configure_extra_args="$ac_configure_extra_args --silent"
22992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22993 if \$ac_cs_recheck; then
22994 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22996 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22997 CONFIG_SHELL='$SHELL'
22998 export CONFIG_SHELL
23003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23007 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23008 ## Running $as_me. ##
23014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23018 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23021 # The HP-UX ksh and POSIX shell print the target directory to stdout
23022 # if CDPATH is set.
23023 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23025 sed_quote_subst='$sed_quote_subst'
23026 double_quote_subst='$double_quote_subst'
23027 delay_variable_subst='$delay_variable_subst'
23028 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23029 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23030 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23031 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23032 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23033 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23034 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23035 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23036 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23037 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23038 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23039 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23040 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23041 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23042 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23043 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23044 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23045 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23046 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23047 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23048 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23049 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23050 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23051 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23052 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23053 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23054 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23055 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23056 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
23057 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23058 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23059 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23060 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23061 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23062 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23063 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23064 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23065 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23066 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23067 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23068 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23069 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23070 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23071 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23072 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"`'
23073 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"`'
23074 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23075 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23076 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23077 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23078 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23079 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23080 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23081 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23082 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23083 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23084 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23085 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23086 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23087 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23088 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23089 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23090 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23091 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23092 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23093 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23094 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23095 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23096 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23097 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23098 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23099 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23100 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23101 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23102 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23103 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23104 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23105 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23106 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23107 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23108 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23109 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23110 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23111 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23112 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23113 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23114 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23115 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23116 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23117 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23118 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23119 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23120 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23121 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23122 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23123 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23124 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23125 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23126 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23127 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23128 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23129 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23130 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23131 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23132 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23133 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23134 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23135 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23136 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23137 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23138 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23139 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23140 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23141 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23142 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23143 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23144 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23145 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23146 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
23147 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
23148 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
23149 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
23150 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
23151 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
23152 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23153 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23154 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23155 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23156 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23157 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23158 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23159 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23160 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23161 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23162 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23163 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23164 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23165 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23166 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23167 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23168 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23169 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23170 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23171 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23172 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23173 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23174 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23175 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23176 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23177 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23178 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23179 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23180 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23181 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23182 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23183 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23184 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23185 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23186 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23187 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23188 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23189 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23190 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23191 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23192 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23193 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23194 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23195 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23196 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23197 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23198 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23201 LTCFLAGS='$LTCFLAGS'
23202 compiler='$compiler_DEFAULT'
23204 # Quote evaled strings.
23216 deplibs_check_method \
23225 lt_cv_sys_global_symbol_pipe \
23226 lt_cv_sys_global_symbol_to_cdecl \
23227 lt_cv_sys_global_symbol_to_c_name_address \
23228 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23231 lt_prog_compiler_no_builtin_flag \
23232 lt_prog_compiler_wl \
23233 lt_prog_compiler_pic \
23234 lt_prog_compiler_static \
23235 lt_cv_prog_compiler_c_o \
23243 export_dynamic_flag_spec \
23244 whole_archive_flag_spec \
23245 compiler_needs_object \
23247 allow_undefined_flag \
23248 no_undefined_flag \
23249 hardcode_libdir_flag_spec \
23250 hardcode_libdir_flag_spec_ld \
23251 hardcode_libdir_separator \
23256 variables_saved_for_relink \
23258 library_names_spec \
23263 compiler_lib_search_dirs \
23268 compiler_lib_search_path \
23271 lt_prog_compiler_no_builtin_flag_CXX \
23272 lt_prog_compiler_wl_CXX \
23273 lt_prog_compiler_pic_CXX \
23274 lt_prog_compiler_static_CXX \
23275 lt_cv_prog_compiler_c_o_CXX \
23276 export_dynamic_flag_spec_CXX \
23277 whole_archive_flag_spec_CXX \
23278 compiler_needs_object_CXX \
23280 allow_undefined_flag_CXX \
23281 no_undefined_flag_CXX \
23282 hardcode_libdir_flag_spec_CXX \
23283 hardcode_libdir_flag_spec_ld_CXX \
23284 hardcode_libdir_separator_CXX \
23285 fix_srcfile_path_CXX \
23286 exclude_expsyms_CXX \
23287 include_expsyms_CXX \
23288 file_list_spec_CXX \
23289 compiler_lib_search_dirs_CXX \
23290 predep_objects_CXX \
23291 postdep_objects_CXX \
23294 compiler_lib_search_path_CXX; do
23295 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23296 *[\\\\\\\`\\"\\\$]*)
23297 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23300 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23305 # Double-quote double-evaled strings.
23306 for var in reload_cmds \
23307 old_postinstall_cmds \
23308 old_postuninstall_cmds \
23310 extract_expsyms_cmds \
23311 old_archive_from_new_cmds \
23312 old_archive_from_expsyms_cmds \
23314 archive_expsym_cmds \
23316 module_expsym_cmds \
23317 export_symbols_cmds \
23320 postuninstall_cmds \
23322 sys_lib_search_path_spec \
23323 sys_lib_dlsearch_path_spec \
23324 old_archive_cmds_CXX \
23325 old_archive_from_new_cmds_CXX \
23326 old_archive_from_expsyms_cmds_CXX \
23328 archive_expsym_cmds_CXX \
23330 module_expsym_cmds_CXX \
23331 export_symbols_cmds_CXX \
23332 prelink_cmds_CXX; do
23333 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23334 *[\\\\\\\`\\"\\\$]*)
23335 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23338 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23343 # Fix-up fallback echo if it was mangled by the above quoting rules.
23345 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23349 ac_aux_dir='$ac_aux_dir'
23350 xsi_shell='$xsi_shell'
23351 lt_shell_append='$lt_shell_append'
23353 # See if we are running on zsh, and set the options which allow our
23354 # commands through without removal of \ escapes INIT.
23355 if test -n "\${ZSH_VERSION+set}" ; then
23356 setopt NO_GLOB_SUBST
23362 TIMESTAMP='$TIMESTAMP'
23373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23375 # Handling of arguments.
23376 for ac_config_target in $ac_config_targets
23378 case $ac_config_target in
23379 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23380 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23381 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23382 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23383 "pe_profiling/Makefile") CONFIG_FILES="$CONFIG_FILES pe_profiling/Makefile" ;;
23384 "libperf_events/Makefile") CONFIG_FILES="$CONFIG_FILES libperf_events/Makefile" ;;
23385 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23386 "libutil/Makefile") CONFIG_FILES="$CONFIG_FILES libutil/Makefile" ;;
23387 "libutil/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libutil/tests/Makefile" ;;
23388 "libutil++/Makefile") CONFIG_FILES="$CONFIG_FILES libutil++/Makefile" ;;
23389 "libutil++/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libutil++/tests/Makefile" ;;
23390 "libop/Makefile") CONFIG_FILES="$CONFIG_FILES libop/Makefile" ;;
23391 "libop/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libop/tests/Makefile" ;;
23392 "libopagent/Makefile") CONFIG_FILES="$CONFIG_FILES libopagent/Makefile" ;;
23393 "libopt++/Makefile") CONFIG_FILES="$CONFIG_FILES libopt++/Makefile" ;;
23394 "libdb/Makefile") CONFIG_FILES="$CONFIG_FILES libdb/Makefile" ;;
23395 "libdb/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libdb/tests/Makefile" ;;
23396 "libabi/Makefile") CONFIG_FILES="$CONFIG_FILES libabi/Makefile" ;;
23397 "libabi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libabi/tests/Makefile" ;;
23398 "libregex/Makefile") CONFIG_FILES="$CONFIG_FILES libregex/Makefile" ;;
23399 "libregex/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libregex/tests/Makefile" ;;
23400 "libregex/stl.pat") CONFIG_FILES="$CONFIG_FILES libregex/stl.pat" ;;
23401 "libregex/tests/mangled-name") CONFIG_FILES="$CONFIG_FILES libregex/tests/mangled-name" ;;
23402 "daemon/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;;
23403 "daemon/liblegacy/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/liblegacy/Makefile" ;;
23404 "events/Makefile") CONFIG_FILES="$CONFIG_FILES events/Makefile" ;;
23405 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
23406 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23407 "doc/xsl/catalog-1.xml") CONFIG_FILES="$CONFIG_FILES doc/xsl/catalog-1.xml" ;;
23408 "doc/oprofile.1") CONFIG_FILES="$CONFIG_FILES doc/oprofile.1" ;;
23409 "doc/opcontrol.1") CONFIG_FILES="$CONFIG_FILES doc/opcontrol.1" ;;
23410 "doc/ophelp.1") CONFIG_FILES="$CONFIG_FILES doc/ophelp.1" ;;
23411 "doc/opreport.1") CONFIG_FILES="$CONFIG_FILES doc/opreport.1" ;;
23412 "doc/opannotate.1") CONFIG_FILES="$CONFIG_FILES doc/opannotate.1" ;;
23413 "doc/opgprof.1") CONFIG_FILES="$CONFIG_FILES doc/opgprof.1" ;;
23414 "doc/oparchive.1") CONFIG_FILES="$CONFIG_FILES doc/oparchive.1" ;;
23415 "doc/opimport.1") CONFIG_FILES="$CONFIG_FILES doc/opimport.1" ;;
23416 "doc/operf.1") CONFIG_FILES="$CONFIG_FILES doc/operf.1" ;;
23417 "doc/srcdoc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/srcdoc/Doxyfile" ;;
23418 "libpp/Makefile") CONFIG_FILES="$CONFIG_FILES libpp/Makefile" ;;
23419 "opjitconv/Makefile") CONFIG_FILES="$CONFIG_FILES opjitconv/Makefile" ;;
23420 "pp/Makefile") CONFIG_FILES="$CONFIG_FILES pp/Makefile" ;;
23421 "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
23422 "gui/ui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/ui/Makefile" ;;
23423 "agents/Makefile") CONFIG_FILES="$CONFIG_FILES agents/Makefile" ;;
23424 "agents/jvmti/Makefile") CONFIG_FILES="$CONFIG_FILES agents/jvmti/Makefile" ;;
23425 "agents/jvmpi/Makefile") CONFIG_FILES="$CONFIG_FILES agents/jvmpi/Makefile" ;;
23427 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23428 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23429 { (exit 1); exit 1; }; };;
23434 # If the user did not use the arguments to specify the items to instantiate,
23435 # then the envvar interface is used. Set only those that are not.
23436 # We use the long form for the default assignment because of an extremely
23437 # bizarre bug on SunOS 4.1.3.
23438 if $ac_need_defaults; then
23439 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23440 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23441 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23444 # Have a temporary directory for convenience. Make it in the build tree
23445 # simply because there is no reason against having it here, and in addition,
23446 # creating and moving files from /tmp can sometimes cause problems.
23447 # Hook for its removal unless debugging.
23448 # Note that there is a small window in which the directory will not be cleaned:
23449 # after its creation but before its name has been assigned to `$tmp'.
23453 trap 'exit_status=$?
23454 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23456 trap '{ (exit 1); exit 1; }' 1 2 13 15
23458 # Create a (secure) tmp directory for tmp files.
23461 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23462 test -n "$tmp" && test -d "$tmp"
23465 tmp=./conf$$-$RANDOM
23466 (umask 077 && mkdir "$tmp")
23469 $as_echo "$as_me: cannot create a temporary directory in ." >&2
23470 { (exit 1); exit 1; }
23473 # Set up the scripts for CONFIG_FILES section.
23474 # No need to generate them if there are no CONFIG_FILES.
23475 # This happens for instance with `./config.status config.h'.
23476 if test -n "$CONFIG_FILES"; then
23480 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23481 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23484 ac_cs_awk_cr=$ac_cr
23487 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23492 echo "cat >conf$$subs.awk <<_ACEOF" &&
23493 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23495 } >conf$$subs.sh ||
23496 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23497 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23498 { (exit 1); exit 1; }; }
23499 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23501 for ac_last_try in false false false false false :; do
23502 . ./conf$$subs.sh ||
23503 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23504 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23505 { (exit 1); exit 1; }; }
23507 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23508 if test $ac_delim_n = $ac_delim_num; then
23510 elif $ac_last_try; then
23511 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23512 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23513 { (exit 1); exit 1; }; }
23515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23518 rm -f conf$$subs.sh
23520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23521 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23525 s/^/S["/; s/!.*/"]=/
23535 s/\(.\{148\}\).*/\1/
23537 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23542 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23549 s/\(.\{148\}\).*/\1/
23551 s/["\\]/\\&/g; s/^/"/; s/$/"/
23555 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23560 ' <conf$$subs.awk | sed '
23565 ' >>$CONFIG_STATUS || ac_write_fail=1
23566 rm -f conf$$subs.awk
23567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23569 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23570 for (key in S) S_is_set[key] = 1
23576 nfields = split(line, field, "@")
23578 len = length(field[1])
23579 for (i = 2; i < nfields; i++) {
23581 keylen = length(key)
23582 if (S_is_set[key]) {
23584 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23585 len += length(value) + length(field[++i])
23596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23597 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23598 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23601 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23602 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23603 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23604 { (exit 1); exit 1; }; }
23607 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23608 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23609 # trailing colons and then remove the whole line if VPATH becomes empty
23610 # (actually we leave an empty line to preserve line numbers).
23611 if test "x$srcdir" = x.; then
23612 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23613 s/:*\$(srcdir):*/:/
23614 s/:*\${srcdir}:*/:/
23616 s/^\([^=]*=[ ]*\):*/\1/
23622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23623 fi # test -n "$CONFIG_FILES"
23625 # Set up the scripts for CONFIG_HEADERS section.
23626 # No need to generate them if there are no CONFIG_HEADERS.
23627 # This happens for instance with `./config.status Makefile'.
23628 if test -n "$CONFIG_HEADERS"; then
23629 cat >"$tmp/defines.awk" <<\_ACAWK ||
23633 # Transform confdefs.h into an awk script `defines.awk', embedded as
23634 # here-document in config.status, that substitutes the proper values into
23635 # config.h.in to produce config.h.
23637 # Create a delimiter string that does not exist in confdefs.h, to ease
23638 # handling of long lines.
23640 for ac_last_try in false false :; do
23641 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23642 if test -z "$ac_t"; then
23644 elif $ac_last_try; then
23645 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23646 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23647 { (exit 1); exit 1; }; }
23649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23653 # For the awk script, D is an array of macro values keyed by name,
23654 # likewise P contains macro parameters if any. Preserve backslash
23655 # newline sequences.
23657 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23659 s/.\{148\}/&'"$ac_delim"'/g
23662 s/^[ ]*#[ ]*define[ ][ ]*/ /
23669 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23671 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23675 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23676 D["\1"]=" \3\\\\\\n"\\/p
23678 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23683 s/.\{148\}/&'"$ac_delim"'/g
23688 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23691 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23693 ' <confdefs.h | sed '
23694 s/'"$ac_delim"'/"\\\
23695 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23698 for (key in D) D_is_set[key] = 1
23701 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23703 split(line, arg, " ")
23704 if (arg[1] == "#") {
23708 defundef = substr(arg[1], 2)
23711 split(mac1, mac2, "(") #)
23713 prefix = substr(line, 1, index(line, defundef) - 1)
23714 if (D_is_set[macro]) {
23715 # Preserve the white space surrounding the "#".
23716 print prefix "define", macro P[macro] D[macro]
23719 # Replace #undef with comments. This is necessary, for example,
23720 # in the case of _POSIX_SOURCE, which is predefined and required
23721 # on some systems where configure will not decide to define it.
23722 if (defundef == "undef") {
23723 print "/*", prefix defundef, macro, "*/"
23731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23732 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23733 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23734 { (exit 1); exit 1; }; }
23735 fi # test -n "$CONFIG_HEADERS"
23738 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23743 :[FHLC]) ac_mode=$ac_tag; continue;;
23745 case $ac_mode$ac_tag in
23747 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23748 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23749 { (exit 1); exit 1; }; };;
23750 :[FH]-) ac_tag=-:-;;
23751 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23768 -) ac_f="$tmp/stdin";;
23769 *) # Look for the file first in the build tree, then in the source tree
23770 # (if the path is not absolute). The absolute path cannot be DOS-style,
23771 # because $ac_f cannot contain `:'.
23775 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23777 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23778 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23779 { (exit 1); exit 1; }; };;
23781 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23782 ac_file_inputs="$ac_file_inputs '$ac_f'"
23785 # Let's still pretend it is `configure' which instantiates (i.e., don't
23786 # use $as_me), people would be surprised to read:
23787 # /* config.h. Generated by config.status. */
23788 configure_input='Generated from '`
23789 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23791 if test x"$ac_file" != x-; then
23792 configure_input="$ac_file. $configure_input"
23793 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23794 $as_echo "$as_me: creating $ac_file" >&6;}
23796 # Neutralize special characters interpreted by sed in replacement strings.
23797 case $configure_input in #(
23798 *\&* | *\|* | *\\* )
23799 ac_sed_conf_input=`$as_echo "$configure_input" |
23800 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23801 *) ac_sed_conf_input=$configure_input;;
23805 *:-:* | *:-) cat >"$tmp/stdin" \
23806 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23807 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23808 { (exit 1); exit 1; }; } ;;
23813 ac_dir=`$as_dirname -- "$ac_file" ||
23814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23815 X"$ac_file" : 'X\(//\)[^/]' \| \
23816 X"$ac_file" : 'X\(//\)$' \| \
23817 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23818 $as_echo X"$ac_file" |
23819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23823 /^X\(\/\/\)[^/].*/{
23838 -*) as_dir=./$as_dir;;
23840 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23844 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23845 *) as_qdir=$as_dir;;
23847 as_dirs="'$as_qdir' $as_dirs"
23848 as_dir=`$as_dirname -- "$as_dir" ||
23849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23850 X"$as_dir" : 'X\(//\)[^/]' \| \
23851 X"$as_dir" : 'X\(//\)$' \| \
23852 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23853 $as_echo X"$as_dir" |
23854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23858 /^X\(\/\/\)[^/].*/{
23871 test -d "$as_dir" && break
23873 test -z "$as_dirs" || eval "mkdir $as_dirs"
23874 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23875 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23876 { (exit 1); exit 1; }; }; }
23880 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23882 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23883 # A ".." for each directory in $ac_dir_suffix.
23884 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23885 case $ac_top_builddir_sub in
23886 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23887 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23890 ac_abs_top_builddir=$ac_pwd
23891 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23892 # for backward compatibility:
23893 ac_top_builddir=$ac_top_build_prefix
23896 .) # We are building in place.
23898 ac_top_srcdir=$ac_top_builddir_sub
23899 ac_abs_top_srcdir=$ac_pwd ;;
23900 [\\/]* | ?:[\\/]* ) # Absolute name.
23901 ac_srcdir=$srcdir$ac_dir_suffix;
23902 ac_top_srcdir=$srcdir
23903 ac_abs_top_srcdir=$srcdir ;;
23904 *) # Relative name.
23905 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23906 ac_top_srcdir=$ac_top_build_prefix$srcdir
23907 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23909 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23919 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23920 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23922 ac_MKDIR_P=$MKDIR_P
23924 [\\/$]* | ?:[\\/]* ) ;;
23925 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23930 # If the template does not know about datarootdir, expand it.
23931 # FIXME: This hack should be removed a few years after 2.60.
23932 ac_datarootdir_hack=; ac_datarootdir_seen=
23945 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23946 *datarootdir*) ac_datarootdir_seen=yes;;
23947 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23948 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23949 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23952 ac_datarootdir_hack='
23953 s&@datadir@&$datadir&g
23954 s&@docdir@&$docdir&g
23955 s&@infodir@&$infodir&g
23956 s&@localedir@&$localedir&g
23957 s&@mandir@&$mandir&g
23958 s&\\\${datarootdir}&$datarootdir&g' ;;
23962 # Neutralize VPATH when `$srcdir' = `.'.
23963 # Shell code in configure.ac might set extrasub.
23964 # FIXME: do we really want to maintain this feature?
23965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23966 ac_sed_extra="$ac_vpsub
23969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23972 s|@configure_input@|$ac_sed_conf_input|;t t
23973 s&@top_builddir@&$ac_top_builddir_sub&;t t
23974 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23975 s&@srcdir@&$ac_srcdir&;t t
23976 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23977 s&@top_srcdir@&$ac_top_srcdir&;t t
23978 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23979 s&@builddir@&$ac_builddir&;t t
23980 s&@abs_builddir@&$ac_abs_builddir&;t t
23981 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23982 s&@INSTALL@&$ac_INSTALL&;t t
23983 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23984 $ac_datarootdir_hack
23986 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23987 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23988 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23989 { (exit 1); exit 1; }; }
23991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23992 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23993 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23994 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23995 which seems to be undefined. Please make sure it is defined." >&5
23996 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23997 which seems to be undefined. Please make sure it is defined." >&2;}
24001 -) cat "$tmp/out" && rm -f "$tmp/out";;
24002 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24004 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24005 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24006 { (exit 1); exit 1; }; }
24012 if test x"$ac_file" != x-; then
24014 $as_echo "/* $configure_input */" \
24015 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24016 } >"$tmp/config.h" \
24017 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24018 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24019 { (exit 1); exit 1; }; }
24020 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24021 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24022 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24025 mv "$tmp/config.h" "$ac_file" \
24026 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24027 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24028 { (exit 1); exit 1; }; }
24031 $as_echo "/* $configure_input */" \
24032 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24033 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24034 $as_echo "$as_me: error: could not create -" >&2;}
24035 { (exit 1); exit 1; }; }
24037 # Compute "$ac_file"'s index in $config_headers.
24040 for _am_header in $config_headers :; do
24041 case $_am_header in
24042 $_am_arg | $_am_arg:* )
24045 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24048 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24049 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24050 X"$_am_arg" : 'X\(//\)[^/]' \| \
24051 X"$_am_arg" : 'X\(//\)$' \| \
24052 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24053 $as_echo X"$_am_arg" |
24054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24058 /^X\(\/\/\)[^/].*/{
24070 s/.*/./; q'`/stamp-h$_am_stamp_count
24073 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
24074 $as_echo "$as_me: executing $ac_file commands" >&6;}
24079 case $ac_file$ac_mode in
24080 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24081 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24082 # are listed without --file. Let's play safe and only enable the eval
24083 # if we detect the quoting.
24084 case $CONFIG_FILES in
24085 *\'*) eval set x "$CONFIG_FILES" ;;
24086 *) set x $CONFIG_FILES ;;
24091 # Strip MF so we end up with the name of the file.
24092 mf=`echo "$mf" | sed -e 's/:.*$//'`
24093 # Check whether this is an Automake generated Makefile or not.
24094 # We used to match only the files named `Makefile.in', but
24095 # some people rename them; so instead we look at the file content.
24096 # Grep'ing the first line is not enough: some people post-process
24097 # each Makefile.in and add a new line on top of each file to say so.
24098 # Grep'ing the whole file is not good either: AIX grep has a line
24099 # limit of 2048, but all sed's we know have understand at least 4000.
24100 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24101 dirpart=`$as_dirname -- "$mf" ||
24102 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24103 X"$mf" : 'X\(//\)[^/]' \| \
24104 X"$mf" : 'X\(//\)$' \| \
24105 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24111 /^X\(\/\/\)[^/].*/{
24127 # Extract the definition of DEPDIR, am__include, and am__quote
24128 # from the Makefile without running `make'.
24129 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24130 test -z "$DEPDIR" && continue
24131 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24132 test -z "am__include" && continue
24133 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24134 # When using ansi2knr, U may be empty or an underscore; expand it
24135 U=`sed -n 's/^U = //p' < "$mf"`
24136 # Find all dependency output files, they are included files with
24137 # $(DEPDIR) in their names. We invoke sed twice because it is the
24138 # simplest approach to changing $(DEPDIR) to its actual value in the
24140 for file in `sed -n "
24141 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24142 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24143 # Make sure the directory exists.
24144 test -f "$dirpart/$file" && continue
24145 fdir=`$as_dirname -- "$file" ||
24146 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24147 X"$file" : 'X\(//\)[^/]' \| \
24148 X"$file" : 'X\(//\)$' \| \
24149 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24150 $as_echo X"$file" |
24151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24155 /^X\(\/\/\)[^/].*/{
24168 { as_dir=$dirpart/$fdir
24170 -*) as_dir=./$as_dir;;
24172 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24176 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24177 *) as_qdir=$as_dir;;
24179 as_dirs="'$as_qdir' $as_dirs"
24180 as_dir=`$as_dirname -- "$as_dir" ||
24181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24182 X"$as_dir" : 'X\(//\)[^/]' \| \
24183 X"$as_dir" : 'X\(//\)$' \| \
24184 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24185 $as_echo X"$as_dir" |
24186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24190 /^X\(\/\/\)[^/].*/{
24203 test -d "$as_dir" && break
24205 test -z "$as_dirs" || eval "mkdir $as_dirs"
24206 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24207 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24208 { (exit 1); exit 1; }; }; }
24209 # echo "creating $dirpart/$file"
24210 echo '# dummy' > "$dirpart/$file"
24217 # See if we are running on zsh, and set the options which allow our
24218 # commands through without removal of \ escapes.
24219 if test -n "${ZSH_VERSION+set}" ; then
24220 setopt NO_GLOB_SUBST
24223 cfgfile="${ofile}T"
24224 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24227 cat <<_LT_EOF >> "$cfgfile"
24230 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24231 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24233 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24235 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24236 # 2006, 2007, 2008 Free Software Foundation, Inc.
24237 # Written by Gordon Matzigkeit, 1996
24239 # This file is part of GNU Libtool.
24241 # GNU Libtool is free software; you can redistribute it and/or
24242 # modify it under the terms of the GNU General Public License as
24243 # published by the Free Software Foundation; either version 2 of
24244 # the License, or (at your option) any later version.
24246 # As a special exception to the GNU General Public License,
24247 # if you distribute this file as part of a program or library that
24248 # is built using GNU Libtool, you may include this file under the
24249 # same distribution terms that you use for the rest of that program.
24251 # GNU Libtool is distributed in the hope that it will be useful,
24252 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24253 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24254 # GNU General Public License for more details.
24256 # You should have received a copy of the GNU General Public License
24257 # along with GNU Libtool; see the file COPYING. If not, a copy
24258 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24259 # obtained by writing to the Free Software Foundation, Inc.,
24260 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24263 # The names of the tagged configurations supported by this script.
24264 available_tags="CXX "
24266 # ### BEGIN LIBTOOL CONFIG
24268 # Which release of libtool.m4 was used?
24269 macro_version=$macro_version
24270 macro_revision=$macro_revision
24272 # Whether or not to build shared libraries.
24273 build_libtool_libs=$enable_shared
24275 # Whether or not to build static libraries.
24276 build_old_libs=$enable_static
24278 # What type of objects to build.
24281 # Whether or not to optimize for fast installation.
24282 fast_install=$enable_fast_install
24285 host_alias=$host_alias
24289 # The build system.
24290 build_alias=$build_alias
24294 # A sed program that does not truncate output.
24297 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24298 Xsed="\$SED -e 1s/^X//"
24300 # A grep program that handles long lines.
24306 # A literal string matcher.
24309 # A BSD- or MS-compatible name lister.
24312 # Whether we need soft or hard links.
24315 # What is the maximum length of a command?
24316 max_cmd_len=$max_cmd_len
24318 # Object file suffix (normally "o").
24321 # Executable file suffix (normally "").
24324 # whether the shell understands "unset".
24327 # turn spaces into newlines.
24330 # turn newlines into spaces.
24333 # How to create reloadable object files.
24334 reload_flag=$lt_reload_flag
24335 reload_cmds=$lt_reload_cmds
24337 # An object symbol dumper.
24338 OBJDUMP=$lt_OBJDUMP
24340 # Method to check whether dependent libraries are shared objects.
24341 deplibs_check_method=$lt_deplibs_check_method
24343 # Command to use when deplibs_check_method == "file_magic".
24344 file_magic_cmd=$lt_file_magic_cmd
24348 AR_FLAGS=$lt_AR_FLAGS
24350 # A symbol stripping program.
24353 # Commands used to install an old-style archive.
24355 old_postinstall_cmds=$lt_old_postinstall_cmds
24356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24361 # LTCC compiler flags.
24362 LTCFLAGS=$lt_CFLAGS
24364 # Take the output of nm and produce a listing of raw symbols and C names.
24365 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24367 # Transform the output of nm in a proper C declaration.
24368 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24370 # Transform the output of nm in a C name address pair.
24371 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24373 # Transform the output of nm in a C name address pair when lib prefix is needed.
24374 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24376 # The name of the directory that contains temporary libtool files.
24379 # Shell to use when invoking shell scripts.
24382 # An echo program that does not interpret backslashes.
24385 # Used to examine libraries when file_magic_cmd begins with "file".
24386 MAGIC_CMD=$MAGIC_CMD
24388 # Must we lock files when doing compilation?
24389 need_locks=$lt_need_locks
24391 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24392 DSYMUTIL=$lt_DSYMUTIL
24394 # Tool to change global to local symbols on Mac OS X.
24397 # Tool to manipulate fat objects and archives on Mac OS X.
24400 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24403 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24404 OTOOL64=$lt_OTOOL64
24406 # Old archive suffix (normally "a").
24409 # Shared library suffix (normally ".so").
24410 shrext_cmds=$lt_shrext_cmds
24412 # The commands to extract the exported symbol list from a shared archive.
24413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24415 # Variables whose values should be saved in libtool wrapper scripts and
24416 # restored at link time.
24417 variables_saved_for_relink=$lt_variables_saved_for_relink
24419 # Do we need the "lib" prefix for modules?
24420 need_lib_prefix=$need_lib_prefix
24422 # Do we need a version for libraries?
24423 need_version=$need_version
24425 # Library versioning type.
24426 version_type=$version_type
24428 # Shared library runtime path variable.
24429 runpath_var=$runpath_var
24431 # Shared library path variable.
24432 shlibpath_var=$shlibpath_var
24434 # Is shlibpath searched before the hard-coded library search path?
24435 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24437 # Format of library name prefix.
24438 libname_spec=$lt_libname_spec
24440 # List of archive names. First name is the real one, the rest are links.
24441 # The last name is the one that the linker finds with -lNAME
24442 library_names_spec=$lt_library_names_spec
24444 # The coded name of the library, if different from the real name.
24445 soname_spec=$lt_soname_spec
24447 # Command to use after installation of a shared archive.
24448 postinstall_cmds=$lt_postinstall_cmds
24450 # Command to use after uninstallation of a shared archive.
24451 postuninstall_cmds=$lt_postuninstall_cmds
24453 # Commands used to finish a libtool library installation in a directory.
24454 finish_cmds=$lt_finish_cmds
24456 # As "finish_cmds", except a single script fragment to be evaled but
24458 finish_eval=$lt_finish_eval
24460 # Whether we should hardcode library paths into libraries.
24461 hardcode_into_libs=$hardcode_into_libs
24463 # Compile-time system search path for libraries.
24464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24466 # Run-time system search path for libraries.
24467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24469 # Whether dlopen is supported.
24470 dlopen_support=$enable_dlopen
24472 # Whether dlopen of programs is supported.
24473 dlopen_self=$enable_dlopen_self
24475 # Whether dlopen of statically linked programs is supported.
24476 dlopen_self_static=$enable_dlopen_self_static
24478 # Commands to strip libraries.
24479 old_striplib=$lt_old_striplib
24480 striplib=$lt_striplib
24483 # The linker used to build libraries.
24486 # Commands used to build an old-style archive.
24487 old_archive_cmds=$lt_old_archive_cmds
24489 # A language specific compiler.
24492 # Is the compiler the GNU compiler?
24495 # Compiler flag to turn off builtin functions.
24496 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24498 # How to pass a linker flag through the compiler.
24499 wl=$lt_lt_prog_compiler_wl
24501 # Additional compiler flags for building library objects.
24502 pic_flag=$lt_lt_prog_compiler_pic
24504 # Compiler flag to prevent dynamic linking.
24505 link_static_flag=$lt_lt_prog_compiler_static
24507 # Does compiler simultaneously support -c and -o options?
24508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24510 # Whether or not to add -lc for building shared libraries.
24511 build_libtool_need_lc=$archive_cmds_need_lc
24513 # Whether or not to disallow shared libs when runtime libs are static.
24514 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24516 # Compiler flag to allow reflexive dlopens.
24517 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24519 # Compiler flag to generate shared objects directly from archives.
24520 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24522 # Whether the compiler copes with passing no objects directly.
24523 compiler_needs_object=$lt_compiler_needs_object
24525 # Create an old-style archive from a shared archive.
24526 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24528 # Create a temporary old-style archive to link instead of a shared archive.
24529 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24531 # Commands used to build a shared archive.
24532 archive_cmds=$lt_archive_cmds
24533 archive_expsym_cmds=$lt_archive_expsym_cmds
24535 # Commands used to build a loadable module if different from building
24536 # a shared archive.
24537 module_cmds=$lt_module_cmds
24538 module_expsym_cmds=$lt_module_expsym_cmds
24540 # Whether we are building with GNU ld or not.
24541 with_gnu_ld=$lt_with_gnu_ld
24543 # Flag that allows shared libraries with undefined symbols to be built.
24544 allow_undefined_flag=$lt_allow_undefined_flag
24546 # Flag that enforces no undefined symbols.
24547 no_undefined_flag=$lt_no_undefined_flag
24549 # Flag to hardcode \$libdir into a binary during linking.
24550 # This must work even if \$libdir does not exist
24551 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24553 # If ld is used when linking, flag to hardcode \$libdir into a binary
24554 # during linking. This must work even if \$libdir does not exist.
24555 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24557 # Whether we need a single "-rpath" flag with a separated argument.
24558 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24560 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24561 # DIR into the resulting binary.
24562 hardcode_direct=$hardcode_direct
24564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24565 # DIR into the resulting binary and the resulting library dependency is
24566 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24567 # library is relocated.
24568 hardcode_direct_absolute=$hardcode_direct_absolute
24570 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24571 # into the resulting binary.
24572 hardcode_minus_L=$hardcode_minus_L
24574 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24575 # into the resulting binary.
24576 hardcode_shlibpath_var=$hardcode_shlibpath_var
24578 # Set to "yes" if building a shared library automatically hardcodes DIR
24579 # into the library and all subsequent libraries and executables linked
24581 hardcode_automatic=$hardcode_automatic
24583 # Set to yes if linker adds runtime paths of dependent libraries
24584 # to runtime path list.
24585 inherit_rpath=$inherit_rpath
24587 # Whether libtool must link a program against all its dependency libraries.
24588 link_all_deplibs=$link_all_deplibs
24590 # Fix the shell variable \$srcfile for the compiler.
24591 fix_srcfile_path=$lt_fix_srcfile_path
24593 # Set to "yes" if exported symbols are required.
24594 always_export_symbols=$always_export_symbols
24596 # The commands to list exported symbols.
24597 export_symbols_cmds=$lt_export_symbols_cmds
24599 # Symbols that should not be listed in the preloaded symbols.
24600 exclude_expsyms=$lt_exclude_expsyms
24602 # Symbols that must always be exported.
24603 include_expsyms=$lt_include_expsyms
24605 # Commands necessary for linking programs (against libraries) with templates.
24606 prelink_cmds=$lt_prelink_cmds
24608 # Specify filename containing input files.
24609 file_list_spec=$lt_file_list_spec
24611 # How to hardcode a shared library path into an executable.
24612 hardcode_action=$hardcode_action
24614 # The directories searched by this compiler when creating a shared library.
24615 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24617 # Dependencies to place before and after the objects being linked to
24618 # create a shared library.
24619 predep_objects=$lt_predep_objects
24620 postdep_objects=$lt_postdep_objects
24621 predeps=$lt_predeps
24622 postdeps=$lt_postdeps
24624 # The library search path used internally by the compiler when linking
24625 # a shared library.
24626 compiler_lib_search_path=$lt_compiler_lib_search_path
24628 # ### END LIBTOOL CONFIG
24634 cat <<\_LT_EOF >> "$cfgfile"
24635 # AIX sometimes has problems with the GCC collect2 program. For some
24636 # reason, if we set the COLLECT_NAMES environment variable, the problems
24637 # vanish in a puff of smoke.
24638 if test "X${COLLECT_NAMES+set}" != Xset; then
24640 export COLLECT_NAMES
24647 ltmain="$ac_aux_dir/ltmain.sh"
24650 # We use sed instead of cat because bash on DJGPP gets confused if
24651 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24652 # text mode, it properly converts lines to CR/LF. This bash problem
24653 # is reportedly fixed, but why not run on old versions too?
24654 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24655 || (rm -f "$cfgfile"; exit 1)
24659 cat << \_LT_EOF >> "$cfgfile"
24661 # func_dirname file append nondir_replacement
24662 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24663 # otherwise set result to NONDIR_REPLACEMENT.
24667 */*) func_dirname_result="${1%/*}${2}" ;;
24668 * ) func_dirname_result="${3}" ;;
24672 # func_basename file
24675 func_basename_result="${1##*/}"
24678 # func_dirname_and_basename file append nondir_replacement
24679 # perform func_basename and func_dirname in a single function
24681 # dirname: Compute the dirname of FILE. If nonempty,
24682 # add APPEND to the result, otherwise set result
24683 # to NONDIR_REPLACEMENT.
24684 # value returned in "$func_dirname_result"
24685 # basename: Compute filename of FILE.
24686 # value retuned in "$func_basename_result"
24687 # Implementation must be kept synchronized with func_dirname
24688 # and func_basename. For efficiency, we do not delegate to
24689 # those functions but instead duplicate the functionality here.
24690 func_dirname_and_basename ()
24693 */*) func_dirname_result="${1%/*}${2}" ;;
24694 * ) func_dirname_result="${3}" ;;
24696 func_basename_result="${1##*/}"
24699 # func_stripname prefix suffix name
24700 # strip PREFIX and SUFFIX off of NAME.
24701 # PREFIX and SUFFIX must not contain globbing or regex special
24702 # characters, hashes, percent signs, but SUFFIX may contain a leading
24703 # dot (in which case that matches only a dot).
24706 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24707 # positional parameters, so assign one to ordinary parameter first.
24708 func_stripname_result=${3}
24709 func_stripname_result=${func_stripname_result#"${1}"}
24710 func_stripname_result=${func_stripname_result%"${2}"}
24716 func_opt_split_opt=${1%%=*}
24717 func_opt_split_arg=${1#*=}
24724 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24725 *) func_lo2o_result=${1} ;;
24729 # func_xform libobj-or-source
24732 func_xform_result=${1%.*}.lo
24735 # func_arith arithmetic-term...
24738 func_arith_result=$(( $* ))
24742 # STRING may not start with a hyphen.
24745 func_len_result=${#1}
24750 *) # Bourne compatible functions.
24751 cat << \_LT_EOF >> "$cfgfile"
24753 # func_dirname file append nondir_replacement
24754 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24755 # otherwise set result to NONDIR_REPLACEMENT.
24758 # Extract subdirectory from the argument.
24759 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24760 if test "X$func_dirname_result" = "X${1}"; then
24761 func_dirname_result="${3}"
24763 func_dirname_result="$func_dirname_result${2}"
24767 # func_basename file
24770 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24774 # func_stripname prefix suffix name
24775 # strip PREFIX and SUFFIX off of NAME.
24776 # PREFIX and SUFFIX must not contain globbing or regex special
24777 # characters, hashes, percent signs, but SUFFIX may contain a leading
24778 # dot (in which case that matches only a dot).
24779 # func_strip_suffix prefix name
24783 .*) func_stripname_result=`$ECHO "X${3}" \
24784 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24785 *) func_stripname_result=`$ECHO "X${3}" \
24786 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24791 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24792 my_sed_long_arg='1s/^-[^=]*=//'
24797 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24798 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24804 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24807 # func_xform libobj-or-source
24810 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24813 # func_arith arithmetic-term...
24816 func_arith_result=`expr "$@"`
24820 # STRING may not start with a hyphen.
24823 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24829 case $lt_shell_append in
24831 cat << \_LT_EOF >> "$cfgfile"
24833 # func_append var value
24834 # Append VALUE to the end of shell variable VAR.
24842 cat << \_LT_EOF >> "$cfgfile"
24844 # func_append var value
24845 # Append VALUE to the end of shell variable VAR.
24856 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24857 || (rm -f "$cfgfile"; exit 1)
24859 mv -f "$cfgfile" "$ofile" ||
24860 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24864 cat <<_LT_EOF >> "$ofile"
24866 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24868 # The linker used to build libraries.
24871 # Commands used to build an old-style archive.
24872 old_archive_cmds=$lt_old_archive_cmds_CXX
24874 # A language specific compiler.
24875 CC=$lt_compiler_CXX
24877 # Is the compiler the GNU compiler?
24880 # Compiler flag to turn off builtin functions.
24881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24883 # How to pass a linker flag through the compiler.
24884 wl=$lt_lt_prog_compiler_wl_CXX
24886 # Additional compiler flags for building library objects.
24887 pic_flag=$lt_lt_prog_compiler_pic_CXX
24889 # Compiler flag to prevent dynamic linking.
24890 link_static_flag=$lt_lt_prog_compiler_static_CXX
24892 # Does compiler simultaneously support -c and -o options?
24893 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24895 # Whether or not to add -lc for building shared libraries.
24896 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24898 # Whether or not to disallow shared libs when runtime libs are static.
24899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24901 # Compiler flag to allow reflexive dlopens.
24902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24904 # Compiler flag to generate shared objects directly from archives.
24905 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24907 # Whether the compiler copes with passing no objects directly.
24908 compiler_needs_object=$lt_compiler_needs_object_CXX
24910 # Create an old-style archive from a shared archive.
24911 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24913 # Create a temporary old-style archive to link instead of a shared archive.
24914 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24916 # Commands used to build a shared archive.
24917 archive_cmds=$lt_archive_cmds_CXX
24918 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24920 # Commands used to build a loadable module if different from building
24921 # a shared archive.
24922 module_cmds=$lt_module_cmds_CXX
24923 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24925 # Whether we are building with GNU ld or not.
24926 with_gnu_ld=$lt_with_gnu_ld_CXX
24928 # Flag that allows shared libraries with undefined symbols to be built.
24929 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24931 # Flag that enforces no undefined symbols.
24932 no_undefined_flag=$lt_no_undefined_flag_CXX
24934 # Flag to hardcode \$libdir into a binary during linking.
24935 # This must work even if \$libdir does not exist
24936 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24938 # If ld is used when linking, flag to hardcode \$libdir into a binary
24939 # during linking. This must work even if \$libdir does not exist.
24940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
24942 # Whether we need a single "-rpath" flag with a separated argument.
24943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24945 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24946 # DIR into the resulting binary.
24947 hardcode_direct=$hardcode_direct_CXX
24949 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24950 # DIR into the resulting binary and the resulting library dependency is
24951 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24952 # library is relocated.
24953 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24955 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24956 # into the resulting binary.
24957 hardcode_minus_L=$hardcode_minus_L_CXX
24959 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24960 # into the resulting binary.
24961 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24963 # Set to "yes" if building a shared library automatically hardcodes DIR
24964 # into the library and all subsequent libraries and executables linked
24966 hardcode_automatic=$hardcode_automatic_CXX
24968 # Set to yes if linker adds runtime paths of dependent libraries
24969 # to runtime path list.
24970 inherit_rpath=$inherit_rpath_CXX
24972 # Whether libtool must link a program against all its dependency libraries.
24973 link_all_deplibs=$link_all_deplibs_CXX
24975 # Fix the shell variable \$srcfile for the compiler.
24976 fix_srcfile_path=$lt_fix_srcfile_path_CXX
24978 # Set to "yes" if exported symbols are required.
24979 always_export_symbols=$always_export_symbols_CXX
24981 # The commands to list exported symbols.
24982 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24984 # Symbols that should not be listed in the preloaded symbols.
24985 exclude_expsyms=$lt_exclude_expsyms_CXX
24987 # Symbols that must always be exported.
24988 include_expsyms=$lt_include_expsyms_CXX
24990 # Commands necessary for linking programs (against libraries) with templates.
24991 prelink_cmds=$lt_prelink_cmds_CXX
24993 # Specify filename containing input files.
24994 file_list_spec=$lt_file_list_spec_CXX
24996 # How to hardcode a shared library path into an executable.
24997 hardcode_action=$hardcode_action_CXX
24999 # The directories searched by this compiler when creating a shared library.
25000 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25002 # Dependencies to place before and after the objects being linked to
25003 # create a shared library.
25004 predep_objects=$lt_predep_objects_CXX
25005 postdep_objects=$lt_postdep_objects_CXX
25006 predeps=$lt_predeps_CXX
25007 postdeps=$lt_postdeps_CXX
25009 # The library search path used internally by the compiler when linking
25010 # a shared library.
25011 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25013 # ### END LIBTOOL TAG CONFIG: CXX
25022 { (exit 0); exit 0; }
25024 chmod +x $CONFIG_STATUS
25025 ac_clean_files=$ac_clean_files_save
25027 test $ac_write_fail = 0 ||
25028 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25029 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25030 { (exit 1); exit 1; }; }
25033 # configure is writing to config.log, and then calls config.status.
25034 # config.status does its own redirection, appending to config.log.
25035 # Unfortunately, on DOS this fails, as config.log is still kept open
25036 # by configure, so config.status won't be able to write to it; its
25037 # output is simply discarded. So we exec the FD to /dev/null,
25038 # effectively closing config.log, so it can be properly (re)opened and
25039 # appended to by config.status. When coming back to configure, we
25040 # need to make the FD available again.
25041 if test "$no_create" != yes; then
25043 ac_config_status_args=
25044 test "$silent" = yes &&
25045 ac_config_status_args="$ac_config_status_args --quiet"
25047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25050 # would make configure fail if this is the last instruction.
25051 $ac_cs_success || { (exit 1); exit 1; }
25053 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25054 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25055 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25060 if test -r doc/xsl/catalog.xml; then
25061 if cmp doc/xsl/catalog-1.xml doc/xsl/catalog.xml > /dev/null; then
25062 echo doc/xsl/catalog.xml is unchanged
25064 cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml
25067 cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml
25071 if test "x$enable_gui" = "xno" ; then
25072 echo "No GUI will be built as it was explicitly disabled."
25074 if test -z "$QT_LIBS"; then
25075 echo "Warning: QT version $QT_VERSION was requested but not found. No GUI will be built."
25077 echo "Building GUI with QT $QT_VERSION"
25081 if ! test "x$enable_account_check" = "xyes"; then
25083 elif test "`getent passwd oprofile 2>/dev/null`" == "" || \
25084 test "`getent group oprofile 2>/dev/null`" == ""; then
25085 if test `id -u` != "0"; then
25086 echo "Warning: The user account 'oprofile:oprofile' does not exist on the system."
25087 echo " To profile JITed code, this special user account must exist."
25088 echo " Please ask your system administrator to add the following user and group:"
25089 echo " user name : 'oprofile'"
25090 echo " group name: 'oprofile'"
25091 echo " The 'oprofile' group must be the default group for the 'oprofile' user."
25093 echo "Warning: The user account 'oprofile:oprofile' does not exist on the system."
25094 echo " To profile JITed code, this special user account must exist."
25095 echo " Please add the following user and group:"
25096 echo " user name : 'oprofile'"
25097 echo " group name: 'oprofile'"
25098 echo " The 'oprofile' group must be the default group for the 'oprofile' user."
25102 if test "$PERF_EVENT_H_EXISTS" != "yes" && test "$kernel_has_perf_events_support" = "yes"; then
25103 echo "Warning: perf_event.h not found. Please install the kernel headers package if you"
25104 echo " want non-root support built into OProfile."