2 # From configure.in Revision: 1.54 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for opencv 1.1.0.
6 # Report bugs to <opencvlibrary-devel@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
617 # So, first we look for a working echo in the user's PATH.
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
670 # maybe with a smaller string...
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 # Oops. We lost completely, so just stick with echo.
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 tagnames=${tagnames+${tagnames},}CXX
707 tagnames=${tagnames+${tagnames},}F77
709 exec 7<&0 </dev/null 6>&1
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719 ac_default_prefix=/usr/local
721 ac_config_libobj_dir=.
727 SHELL=${CONFIG_SHELL-/bin/sh}
729 # Identity of this package.
730 PACKAGE_NAME='opencv'
731 PACKAGE_TARNAME='opencv'
732 PACKAGE_VERSION='1.1.0'
733 PACKAGE_STRING='opencv 1.1.0'
734 PACKAGE_BUGREPORT='opencvlibrary-devel@lists.sourceforge.net'
736 ac_unique_file="opencv.pc.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
782 program_transform_name
836 INSTALL_STRIP_PROGRAM
906 BUILD_QUICKTIME_FALSE
910 BUILD_GSTREAMER_FALSE
936 BUILD_PYTHON_WRAPPERS_TRUE
937 BUILD_PYTHON_WRAPPERS_FALSE
941 BUILD_OCTAVE_WRAPPERS_TRUE
942 BUILD_OCTAVE_WRAPPERS_FALSE
945 SWIG_RUNTIME_LIBS_DIR
949 UPDATE_SWIG_WRAPPERS_TRUE
950 UPDATE_SWIG_WRAPPERS_FALSE
955 ac_precious_vars='build_alias
974 # Initialize some variables set by options.
976 ac_init_version=false
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
986 program_transform_name=s,x,x,
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir='${exec_prefix}/bin'
1001 sbindir='${exec_prefix}/sbin'
1002 libexecdir='${exec_prefix}/libexec'
1003 datarootdir='${prefix}/share'
1004 datadir='${datarootdir}'
1005 sysconfdir='${prefix}/etc'
1006 sharedstatedir='${prefix}/com'
1007 localstatedir='${prefix}/var'
1008 includedir='${prefix}/include'
1009 oldincludedir='/usr/include'
1010 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1011 infodir='${datarootdir}/info'
1016 libdir='${exec_prefix}/lib'
1017 localedir='${datarootdir}/locale'
1018 mandir='${datarootdir}/man'
1024 # If the previous option needs an argument, assign it.
1025 if test -n "$ac_prev"; then
1026 eval $ac_prev=\$ac_option
1032 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036 # Accept the important Cygnus configure options, so we can diagnose typos.
1038 case $ac_dashdash$ac_option in
1042 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1045 bindir=$ac_optarg ;;
1047 -build | --build | --buil | --bui | --bu)
1048 ac_prev=build_alias ;;
1049 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1050 build_alias=$ac_optarg ;;
1052 -cache-file | --cache-file | --cache-fil | --cache-fi \
1053 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1054 ac_prev=cache_file ;;
1055 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1056 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1057 cache_file=$ac_optarg ;;
1059 --config-cache | -C)
1060 cache_file=config.cache ;;
1062 -datadir | --datadir | --datadi | --datad)
1064 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1065 datadir=$ac_optarg ;;
1067 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1068 | --dataroo | --dataro | --datar)
1069 ac_prev=datarootdir ;;
1070 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1071 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1072 datarootdir=$ac_optarg ;;
1074 -disable-* | --disable-*)
1075 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1081 eval enable_$ac_feature=no ;;
1083 -docdir | --docdir | --docdi | --doc | --do)
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1093 -enable-* | --enable-*)
1094 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1098 { (exit 1); exit 1; }; }
1099 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1100 eval enable_$ac_feature=\$ac_optarg ;;
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 htmldir=$ac_optarg ;;
1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1145 -libdir | --libdir | --libdi | --libd)
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
1163 | --localstate | --localstat | --localsta | --localst | --locals)
1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167 localstatedir=$ac_optarg ;;
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1236 -psdir | --psdir | --psdi | --psd | --ps)
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 sbindir=$ac_optarg ;;
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 sharedstatedir=$ac_optarg ;;
1262 -site | --site | --sit)
1264 -site=* | --site=* | --sit=*)
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1291 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
1296 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1297 eval with_$ac_package=\$ac_optarg ;;
1299 -without-* | --without-*)
1300 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 { echo "$as_me: error: invalid package name: $ac_package" >&2
1304 { (exit 1); exit 1; }; }
1305 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1306 eval with_$ac_package=no ;;
1309 # Obsolete; use --with-x.
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1326 -*) { echo "$as_me: error: unrecognized option: $ac_option
1327 Try \`$0 --help' for more information." >&2
1328 { (exit 1); exit 1; }; }
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1335 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1336 { (exit 1); exit 1; }; }
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 { echo "$as_me: error: missing argument to $ac_option" >&2
1354 { (exit 1); exit 1; }; }
1357 # Be sure to have absolute directory names.
1358 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val=\$$ac_var
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1369 { (exit 1); exit 1; }; }
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1377 target=$target_alias
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
1383 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384 If a cross compiler is detected then cross compile mode will be used." >&2
1385 elif test "x$build_alias" != "x$host_alias"; then
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393 test "$silent" = yes && exec 6>/dev/null
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 { echo "$as_me: error: Working directory cannot be determined" >&2
1400 { (exit 1); exit 1; }; }
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402 { echo "$as_me: error: pwd does not report name of working directory" >&2
1403 { (exit 1); exit 1; }; }
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408 ac_srcdir_defaulted=yes
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir=`$as_dirname -- "$0" ||
1411 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$0" : 'X\(//\)[^/]' \| \
1413 X"$0" : 'X\(//\)$' \| \
1414 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1438 ac_srcdir_defaulted=no
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1443 { (exit 1); exit 1; }; }
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1448 { (exit 1); exit 1; }; }
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1458 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 for ac_var in $ac_precious_vars; do
1461 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_${ac_var}_value=\$${ac_var}
1463 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468 # Report the --help message.
1470 if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1474 \`configure' configures opencv 1.1.0 to adapt to many kinds of systems.
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE. See below for descriptions of some of the useful variables.
1481 Defaults for the options are specified in brackets.
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494 Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
1496 [$ac_default_prefix]
1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1505 For better control, use the options below.
1507 Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/opencv]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
1532 --program-prefix=PREFIX prepend PREFIX to installed program names
1533 --program-suffix=SUFFIX append SUFFIX to installed program names
1534 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 --target=TARGET configure for building compilers for TARGET [HOST]
1543 if test -n "$ac_init_help"; then
1544 case $ac_init_help in
1545 short | recursive ) echo "Configuration of opencv 1.1.0:";;
1550 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1551 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1552 --enable-static[=PKGS] build static libraries [default=no]
1553 --disable-dependency-tracking speeds up one-time build
1554 --enable-dependency-tracking do not reject slow dependency extractors
1555 --enable-shared[=PKGS] build shared libraries [default=yes]
1556 --enable-fast-install[=PKGS]
1557 optimize for fast installation [default=yes]
1558 --disable-libtool-lock avoid locking (might break parallel builds)
1559 --enable-debug build debug version without optimization [no]
1560 --enable-apps build demo applications [yes]
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1566 --with-pic try to use only PIC/non-PIC objects [default=use
1568 --with-tags[=TAGS] include additional configurations [automatic]
1569 --with-swig use swig wrapper generator [no]
1570 --with-python use python for wrapping [yes]
1571 --with-octave use octave for wrapping [no]
1572 --with-xine use xine libraries (see LICENSE) [no]
1573 --with-gstreamer use gstreamer multimedia framework (see LICENSE)
1575 --with-ffmpeg use ffmpeg libraries (see LICENSE) [automatic]
1576 --with-1394libs use libraw1394/libdc1394 [automatic]
1577 --with-v4l use video4linux [automatic]
1578 --with-imageio use ImageIO libraries [automatic]
1579 --with-quicktime use QuickTime libraries [automatic]
1580 --with-carbon use Carbon windows [automatic]
1581 --with-gtk use gtk+ 2.0 windows [automatic]
1582 --with-gthread use gthread in addition to gtk+ [automatic]
1584 Some influential environment variables:
1585 CXX C++ compiler command
1586 CXXFLAGS C++ compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 LIBS libraries to pass to the linker, e.g. -l<library>
1590 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1591 you have headers in a nonstandard directory <include dir>
1592 CC C compiler command
1593 CFLAGS C compiler flags
1595 CXXCPP C++ preprocessor
1596 F77 Fortran 77 compiler command
1597 FFLAGS Fortran 77 compiler flags
1598 PYTHON Python Executable Path
1599 SWIG Simplified Wrapper and Interface Generator, used for Python
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to <opencvlibrary-devel@lists.sourceforge.net>.
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" || continue
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1633 .) # We are building in place.
1635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
1638 ac_srcdir=$srcdir$ac_dir_suffix;
1639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1655 $SHELL "$ac_srcdir/configure" --help=recursive
1657 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 cd "$ac_pwd" || { ac_status=$?; break; }
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1666 opencv configure 1.1.0
1667 generated by GNU Autoconf 2.61
1669 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1670 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1671 This configure script is free software; the Free Software Foundation
1672 gives unlimited permission to copy, distribute and modify it.
1676 cat >config.log <<_ACEOF
1677 This file contains any messages produced by compilers while
1678 running configure, to aid debugging if configure makes a mistake.
1680 It was created by opencv $as_me 1.1.0, which was
1681 generated by GNU Autoconf 2.61. Invocation command line was
1693 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1694 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1695 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1696 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1697 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1699 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1700 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1702 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1703 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1704 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1705 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1706 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1707 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1708 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 echo "PATH: $as_dir"
1733 # Keep a trace of the command line.
1734 # Strip out --no-create and --no-recursion so they do not pile up.
1735 # Strip out --silent because we don't want to record it for future runs.
1736 # Also quote any args containing shell meta-characters.
1737 # Make two passes to allow for proper duplicate-argument suppression.
1741 ac_must_keep_next=false
1747 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1749 | -silent | --silent | --silen | --sile | --sil)
1752 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1757 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1758 if test $ac_must_keep_next = true; then
1759 ac_must_keep_next=false # Got value, back to normal.
1762 *=* | --config-cache | -C | -disable-* | --disable-* \
1763 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1764 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1765 | -with-* | --with-* | -without-* | --without-* | --x)
1766 case "$ac_configure_args0 " in
1767 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770 -* ) ac_must_keep_next=true ;;
1773 ac_configure_args="$ac_configure_args '$ac_arg'"
1778 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1779 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1781 # When interrupted or exit'd, cleanup temporary files, and complete
1782 # config.log. We remove comments because anyway the quotes in there
1783 # would cause problems or look ugly.
1784 # WARNING: Use '\'' to represent an apostrophe within the trap.
1785 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1786 trap 'exit_status=$?
1787 # Save into config.log some information that might help in debugging.
1792 ## ---------------- ##
1793 ## Cache variables. ##
1794 ## ---------------- ##
1797 # The following way of writing the cache mishandles newlines in values,
1799 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1800 eval ac_val=\$$ac_var
1804 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1805 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1808 _ | IFS | as_nl) ;; #(
1809 *) $as_unset $ac_var ;;
1814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815 *${as_nl}ac_space=\ *)
1817 "s/'\''/'\''\\\\'\'''\''/g;
1818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1829 ## ----------------- ##
1830 ## Output variables. ##
1831 ## ----------------- ##
1834 for ac_var in $ac_subst_vars
1836 eval ac_val=\$$ac_var
1838 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1840 echo "$ac_var='\''$ac_val'\''"
1844 if test -n "$ac_subst_files"; then
1846 ## ------------------- ##
1847 ## File substitutions. ##
1848 ## ------------------- ##
1851 for ac_var in $ac_subst_files
1853 eval ac_val=\$$ac_var
1855 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 echo "$ac_var='\''$ac_val'\''"
1862 if test -s confdefs.h; then
1872 test "$ac_signal" != 0 &&
1873 echo "$as_me: caught signal $ac_signal"
1874 echo "$as_me: exit $exit_status"
1876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1880 for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1886 rm -f -r conftest* confdefs.h
1888 # Predefined preprocessor variables.
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_NAME "$PACKAGE_NAME"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_STRING "$PACKAGE_STRING"
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915 # Let the site file select an alternate cache file if it wants to.
1916 # Prefer explicitly selected file to automatically selected ones.
1917 if test -n "$CONFIG_SITE"; then
1918 set x "$CONFIG_SITE"
1919 elif test "x$prefix" != xNONE; then
1920 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1922 set x "$ac_default_prefix/share/config.site" \
1923 "$ac_default_prefix/etc/config.site"
1928 if test -r "$ac_site_file"; then
1929 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1930 echo "$as_me: loading site script $ac_site_file" >&6;}
1931 sed 's/^/| /' "$ac_site_file" >&5
1936 if test -r "$cache_file"; then
1937 # Some versions of bash will fail to source /dev/null (special
1938 # files actually), so we avoid doing that.
1939 if test -f "$cache_file"; then
1940 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1941 echo "$as_me: loading cache $cache_file" >&6;}
1943 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1944 *) . "./$cache_file";;
1948 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1949 echo "$as_me: creating cache $cache_file" >&6;}
1953 # Check that the precious variables saved in the cache have kept the same
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958 eval ac_new_set=\$ac_env_${ac_var}_set
1959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960 eval ac_new_val=\$ac_env_${ac_var}_value
1961 case $ac_old_set,$ac_new_set in
1963 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
1973 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1976 echo "$as_me: former value: $ac_old_val" >&2;}
1977 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1978 echo "$as_me: current value: $ac_new_val" >&2;}
1979 ac_cache_corrupted=:
1982 # Pass precious variables to config.status.
1983 if test "$ac_new_set" = set; then
1985 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 *) ac_arg=$ac_var=$ac_new_val ;;
1988 case " $ac_configure_args " in
1989 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1990 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994 if $ac_cache_corrupted; then
1995 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1999 { (exit 1); exit 1; }; }
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035 for ac_dir in autotools "$srcdir"/autotools; do
2036 if test -f "$ac_dir/install-sh"; then
2038 ac_install_sh="$ac_aux_dir/install-sh -c"
2040 elif test -f "$ac_dir/install.sh"; then
2042 ac_install_sh="$ac_aux_dir/install.sh -c"
2044 elif test -f "$ac_dir/shtool"; then
2046 ac_install_sh="$ac_aux_dir/shtool install -c"
2050 if test -z "$ac_aux_dir"; then
2051 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5
2052 echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;}
2053 { (exit 1); exit 1; }; }
2056 # These three variables are undocumented and unsupported,
2057 # and are intended to be withdrawn in a future Autoconf release.
2058 # They can cause serious problems if a builder's source tree is in a directory
2059 # whose full name contains unusual characters.
2060 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2061 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2062 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2067 # put CVS revision of this configure.in into the resulting configure script
2070 # Detect the canonical host and target build environment
2071 # Make sure we can run config.sub.
2072 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2073 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2074 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2075 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: checking build system type" >&5
2078 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2079 if test "${ac_cv_build+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 ac_build_alias=$build_alias
2083 test "x$ac_build_alias" = x &&
2084 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2085 test "x$ac_build_alias" = x &&
2086 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2087 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2088 { (exit 1); exit 1; }; }
2089 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2090 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2091 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2092 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2096 echo "${ECHO_T}$ac_cv_build" >&6; }
2097 case $ac_cv_build in
2099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2100 echo "$as_me: error: invalid value of canonical build" >&2;}
2101 { (exit 1); exit 1; }; };;
2104 ac_save_IFS=$IFS; IFS='-'
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2114 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2117 { echo "$as_me:$LINENO: checking host system type" >&5
2118 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2119 if test "${ac_cv_host+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test "x$host_alias" = x; then
2123 ac_cv_host=$ac_cv_build
2125 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2126 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2127 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2128 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2133 echo "${ECHO_T}$ac_cv_host" >&6; }
2136 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2137 echo "$as_me: error: invalid value of canonical host" >&2;}
2138 { (exit 1); exit 1; }; };;
2141 ac_save_IFS=$IFS; IFS='-'
2147 # Remember, the first character of IFS is used to create $*,
2148 # except with old shells:
2151 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2154 { echo "$as_me:$LINENO: checking target system type" >&5
2155 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2156 if test "${ac_cv_target+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 if test "x$target_alias" = x; then
2160 ac_cv_target=$ac_cv_host
2162 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2163 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2164 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2165 { (exit 1); exit 1; }; }
2169 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2170 echo "${ECHO_T}$ac_cv_target" >&6; }
2171 case $ac_cv_target in
2173 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2174 echo "$as_me: error: invalid value of canonical target" >&2;}
2175 { (exit 1); exit 1; }; };;
2177 target=$ac_cv_target
2178 ac_save_IFS=$IFS; IFS='-'
2184 # Remember, the first character of IFS is used to create $*,
2185 # except with old shells:
2188 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2191 # The aliases save the names the user supplied, while $host etc.
2192 # will get canonicalized.
2193 test -n "$target_alias" &&
2194 test "$program_prefix$program_suffix$program_transform_name" = \
2196 program_prefix=${target_alias}-
2198 # setup automake - we need >= 1.6 because of python and aclocal support
2199 # we updated to 1.9 because of cross-platform issues
2200 ac_config_headers="$ac_config_headers cvconfig.h"
2202 am__api_version='1.10'
2204 # Find a good install program. We prefer a C program (faster),
2205 # so one script is as good as another. But avoid the broken or
2206 # incompatible versions:
2207 # SysV /etc/install, /usr/sbin/install
2208 # SunOS /usr/etc/install
2209 # IRIX /sbin/install
2211 # AmigaOS /C/install, which installs bootblocks on floppy discs
2212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2215 # OS/2's system install, which has a completely different semantic
2216 # ./install, which can be erroneously created by make from ./install.sh.
2217 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2218 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2219 if test -z "$INSTALL"; then
2220 if test "${ac_cv_path_install+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 test -z "$as_dir" && as_dir=.
2228 # Account for people who put trailing slashes in PATH elements.
2230 ./ | .// | /cC/* | \
2231 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2232 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2235 # OSF1 and SCO ODT 3.0 have their own names for install.
2236 # Don't use installbsd from OSF since it installs stuff as root
2238 for ac_prog in ginstall scoinst install; do
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2241 if test $ac_prog = install &&
2242 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2243 # AIX install. It has an incompatible calling convention.
2245 elif test $ac_prog = install &&
2246 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2247 # program-specific install script used by HP pwplus--don't use.
2250 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2263 if test "${ac_cv_path_install+set}" = set; then
2264 INSTALL=$ac_cv_path_install
2266 # As a last resort, use the slow shell script. Don't cache a
2267 # value for INSTALL within a source directory, because that will
2268 # break other packages using the cache if that directory is
2269 # removed, or if the value is a relative name.
2270 INSTALL=$ac_install_sh
2273 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2274 echo "${ECHO_T}$INSTALL" >&6; }
2276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2277 # It thinks the first close brace ends the variable substitution.
2278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2284 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2285 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2288 echo timestamp > conftest.file
2289 # Do `set' in a subshell so we don't clobber the current shell's
2290 # arguments. Must try -L first in case configure is actually a
2291 # symlink; some systems play weird games with the mod time of symlinks
2292 # (eg FreeBSD returns the mod time of the symlink's containing
2295 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2296 if test "$*" = "X"; then
2298 set X `ls -t $srcdir/configure conftest.file`
2301 if test "$*" != "X $srcdir/configure conftest.file" \
2302 && test "$*" != "X conftest.file $srcdir/configure"; then
2304 # If neither matched, then we have a broken ls. This can happen
2305 # if, for instance, CONFIG_SHELL is bash and it inherits a
2306 # broken ls alias from the environment. This has actually
2307 # happened. Such a system could not be considered "sane".
2308 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2309 alias in your environment" >&5
2310 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2311 alias in your environment" >&2;}
2312 { (exit 1); exit 1; }; }
2315 test "$2" = conftest.file
2321 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2322 Check your system clock" >&5
2323 echo "$as_me: error: newly created file is older than distributed files!
2324 Check your system clock" >&2;}
2325 { (exit 1); exit 1; }; }
2327 { echo "$as_me:$LINENO: result: yes" >&5
2328 echo "${ECHO_T}yes" >&6; }
2329 test "$program_prefix" != NONE &&
2330 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2331 # Use a double $ so make ignores it.
2332 test "$program_suffix" != NONE &&
2333 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2334 # Double any \ or $. echo might interpret backslashes.
2335 # By default was `s,x,x', remove it if useless.
2336 cat <<\_ACEOF >conftest.sed
2337 s/[\\$]/&&/g;s/;s,x,x,$//
2339 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2342 # expand $ac_aux_dir to an absolute path
2343 am_aux_dir=`cd $ac_aux_dir && pwd`
2345 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2346 # Use eval to expand $SHELL
2347 if eval "$MISSING --run true"; then
2348 am_missing_run="$MISSING --run "
2351 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2352 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2355 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2356 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2357 if test -z "$MKDIR_P"; then
2358 if test "${ac_cv_path_mkdir+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2365 test -z "$as_dir" && as_dir=.
2366 for ac_prog in mkdir gmkdir; do
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2369 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2370 'mkdir (GNU coreutils) '* | \
2371 'mkdir (coreutils) '* | \
2372 'mkdir (fileutils) '4.1*)
2373 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2383 if test "${ac_cv_path_mkdir+set}" = set; then
2384 MKDIR_P="$ac_cv_path_mkdir -p"
2386 # As a last resort, use the slow shell script. Don't cache a
2387 # value for MKDIR_P within a source directory, because that will
2388 # break other packages using the cache if that directory is
2389 # removed, or if the value is a relative name.
2390 test -d ./--version && rmdir ./--version
2391 MKDIR_P="$ac_install_sh -d"
2394 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2395 echo "${ECHO_T}$MKDIR_P" >&6; }
2399 [\\/$]* | ?:[\\/]*) ;;
2400 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2403 for ac_prog in gawk mawk nawk awk
2405 # Extract the first word of "$ac_prog", so it can be a program name with args.
2406 set dummy $ac_prog; ac_word=$2
2407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2409 if test "${ac_cv_prog_AWK+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 if test -n "$AWK"; then
2413 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 ac_cv_prog_AWK="$ac_prog"
2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 if test -n "$AWK"; then
2434 { echo "$as_me:$LINENO: result: $AWK" >&5
2435 echo "${ECHO_T}$AWK" >&6; }
2437 { echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6; }
2442 test -n "$AWK" && break
2445 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2446 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2447 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2448 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 cat >conftest.make <<\_ACEOF
2454 @echo '@@@%%%=$(MAKE)=@@@%%%'
2456 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2457 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2459 eval ac_cv_prog_make_${ac_make}_set=yes;;
2461 eval ac_cv_prog_make_${ac_make}_set=no;;
2465 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2466 { echo "$as_me:$LINENO: result: yes" >&5
2467 echo "${ECHO_T}yes" >&6; }
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 SET_MAKE="MAKE=${MAKE-make}"
2475 rm -rf .tst 2>/dev/null
2476 mkdir .tst 2>/dev/null
2477 if test -d .tst; then
2482 rmdir .tst 2>/dev/null
2484 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2485 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2486 # is not polluted with repeated "-I."
2487 am__isrc=' -I$(srcdir)'
2488 # test to see if srcdir already configured
2489 if test -f $srcdir/config.status; then
2490 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2491 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2492 { (exit 1); exit 1; }; }
2496 # test whether we have cygpath
2497 if test -z "$CYGPATH_W"; then
2498 if (cygpath --version) >/dev/null 2>/dev/null; then
2499 CYGPATH_W='cygpath -w'
2506 # Define the identity of the package.
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE "$PACKAGE"
2516 cat >>confdefs.h <<_ACEOF
2517 #define VERSION "$VERSION"
2520 # Some tools Automake needs.
2522 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2525 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2528 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2531 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2534 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2536 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2538 # Installed binaries are usually stripped using `strip' when the user
2539 # run `make install-strip'. However `strip' might not be the right
2540 # tool to use in cross-compilation environments, therefore Automake
2541 # will honor the `STRIP' environment variable to overrule this program.
2542 if test "$cross_compiling" != no; then
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}strip; ac_word=$2
2546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2548 if test "${ac_cv_prog_STRIP+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 if test -n "$STRIP"; then
2552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 STRIP=$ac_cv_prog_STRIP
2572 if test -n "$STRIP"; then
2573 { echo "$as_me:$LINENO: result: $STRIP" >&5
2574 echo "${ECHO_T}$STRIP" >&6; }
2576 { echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6; }
2582 if test -z "$ac_cv_prog_STRIP"; then
2584 # Extract the first word of "strip", so it can be a program name with args.
2585 set dummy strip; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 if test -n "$ac_ct_STRIP"; then
2592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_ac_ct_STRIP="strip"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2612 if test -n "$ac_ct_STRIP"; then
2613 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2614 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2620 if test "x$ac_ct_STRIP" = x; then
2623 case $cross_compiling:$ac_tool_warned in
2625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet. If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&5
2628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2629 whose name does not start with the host triplet. If you think this
2630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2631 ac_tool_warned=yes ;;
2636 STRIP="$ac_cv_prog_STRIP"
2640 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2642 # We need awk for the "check" target. The system "awk" is bad on
2644 # Always define AMTAR for backward compatibility.
2646 AMTAR=${AMTAR-"${am_missing_run}tar"}
2648 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2654 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2655 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2656 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2657 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 cat >conftest.make <<\_ACEOF
2663 @echo '@@@%%%=$(MAKE)=@@@%%%'
2665 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2666 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2668 eval ac_cv_prog_make_${ac_make}_set=yes;;
2670 eval ac_cv_prog_make_${ac_make}_set=no;;
2674 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2675 { echo "$as_me:$LINENO: result: yes" >&5
2676 echo "${ECHO_T}yes" >&6; }
2679 { echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6; }
2681 SET_MAKE="MAKE=${MAKE-make}"
2685 # use 'gly maintainer-mode flag to help CVS users that do not want to
2686 # help developing OpenCV but just need to compile the latest version
2687 # AM_MAINTAINER_MODE
2689 # substitute versionnumbers
2701 # disable building static libraries,
2702 # allow Cygwin to build DLLs
2703 # Check whether --enable-static was given.
2704 if test "${enable_static+set}" = set; then
2705 enableval=$enable_static; p=${PACKAGE-default}
2707 yes) enable_static=yes ;;
2708 no) enable_static=no ;;
2711 # Look at the argument we got. We use all the common list separators.
2712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2713 for pkg in $enableval; do
2715 if test "X$pkg" = "X$p"; then
2731 # checks for programs.
2733 ac_cpp='$CXXCPP $CPPFLAGS'
2734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2737 if test -z "$CXX"; then
2738 if test -n "$CCC"; then
2741 if test -n "$ac_tool_prefix"; then
2742 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_CXX+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 if test -n "$CXX"; then
2752 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 if test -n "$CXX"; then
2773 { echo "$as_me:$LINENO: result: $CXX" >&5
2774 echo "${ECHO_T}$CXX" >&6; }
2776 { echo "$as_me:$LINENO: result: no" >&5
2777 echo "${ECHO_T}no" >&6; }
2781 test -n "$CXX" && break
2784 if test -z "$CXX"; then
2786 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2788 # Extract the first word of "$ac_prog", so it can be a program name with args.
2789 set dummy $ac_prog; ac_word=$2
2790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 if test -n "$ac_ct_CXX"; then
2796 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_ac_ct_CXX="$ac_prog"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2816 if test -n "$ac_ct_CXX"; then
2817 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2818 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2820 { echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6; }
2825 test -n "$ac_ct_CXX" && break
2828 if test "x$ac_ct_CXX" = x; then
2831 case $cross_compiling:$ac_tool_warned in
2833 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2834 whose name does not start with the host triplet. If you think this
2835 configuration is useful to you, please write to autoconf@gnu.org." >&5
2836 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2837 whose name does not start with the host triplet. If you think this
2838 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2839 ac_tool_warned=yes ;;
2847 # Provide some information about the compiler.
2848 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2849 ac_compiler=`set X $ac_compile; echo $2`
2850 { (ac_try="$ac_compiler --version >&5"
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_compiler --version >&5") 2>&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }
2860 { (ac_try="$ac_compiler -v >&5"
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866 (eval "$ac_compiler -v >&5") 2>&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }
2870 { (ac_try="$ac_compiler -V >&5"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compiler -V >&5") 2>&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }
2881 cat >conftest.$ac_ext <<_ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2896 ac_clean_files_save=$ac_clean_files
2897 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2898 # Try to create an executable without -o first, disregard a.out.
2899 # It will help us diagnose broken compilers, and finding out an intuition
2901 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2902 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2903 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2905 # List of possible output files, starting from the most likely.
2906 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2907 # only as a last resort. b.out is created by i960 compilers.
2908 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2910 # The IRIX 6 linker writes into existing files which may not be
2911 # executable, retaining their permissions. Remove them first so a
2912 # subsequent execution test works.
2914 for ac_file in $ac_files
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2918 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2923 if { (ac_try="$ac_link_default"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_link_default") 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
2933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2936 # so that the user can short-circuit this test for compilers unknown to
2938 for ac_file in $ac_files ''
2940 test -f "$ac_file" || continue
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2945 # We found the default executable, but exeext='' is most
2949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953 # We set ac_cv_exeext here because the later test for it is not
2954 # safe: cross compilers may not add the suffix if given an `-o'
2955 # argument, so we may need to know it at that point already.
2956 # Even if this section looks crufty: it has the advantage of
2963 test "$ac_cv_exeext" = no && ac_cv_exeext=
2969 { echo "$as_me:$LINENO: result: $ac_file" >&5
2970 echo "${ECHO_T}$ac_file" >&6; }
2971 if test -z "$ac_file"; then
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2976 See \`config.log' for more details." >&5
2977 echo "$as_me: error: C++ compiler cannot create executables
2978 See \`config.log' for more details." >&2;}
2979 { (exit 77); exit 77; }; }
2982 ac_exeext=$ac_cv_exeext
2984 # Check that the compiler produces executables we can run. If not, either
2985 # the compiler is broken, or we cross compile.
2986 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2987 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2988 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2989 # If not cross compiling, check that we can run a simple program.
2990 if test "$cross_compiling" != yes; then
2991 if { ac_try='./$ac_file'
2992 { (case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_try") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3003 if test "$cross_compiling" = maybe; then
3006 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
3007 If you meant to cross compile, use \`--host'.
3008 See \`config.log' for more details." >&5
3009 echo "$as_me: error: cannot run C++ compiled programs.
3010 If you meant to cross compile, use \`--host'.
3011 See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }
3016 { echo "$as_me:$LINENO: result: yes" >&5
3017 echo "${ECHO_T}yes" >&6; }
3019 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3020 ac_clean_files=$ac_clean_files_save
3021 # Check that the compiler produces executables we can run. If not, either
3022 # the compiler is broken, or we cross compile.
3023 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3024 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3025 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3026 echo "${ECHO_T}$cross_compiling" >&6; }
3028 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3029 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3030 if { (ac_try="$ac_link"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_link") 2>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; then
3040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3041 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3042 # work properly (i.e., refer to `conftest.exe'), while it won't with
3044 for ac_file in conftest.exe conftest conftest.*; do
3045 test -f "$ac_file" || continue
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3054 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3055 See \`config.log' for more details." >&5
3056 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3057 See \`config.log' for more details." >&2;}
3058 { (exit 1); exit 1; }; }
3061 rm -f conftest$ac_cv_exeext
3062 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3063 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3065 rm -f conftest.$ac_ext
3066 EXEEXT=$ac_cv_exeext
3068 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3069 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3070 if test "${ac_cv_objext+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 cat >conftest.$ac_ext <<_ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3088 rm -f conftest.o conftest.obj
3089 if { (ac_try="$ac_compile"
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; then
3099 for ac_file in conftest.o conftest.obj conftest.*; do
3100 test -f "$ac_file" || continue;
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3103 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3112 See \`config.log' for more details." >&5
3113 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3114 See \`config.log' for more details." >&2;}
3115 { (exit 1); exit 1; }; }
3118 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3120 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3121 echo "${ECHO_T}$ac_cv_objext" >&6; }
3122 OBJEXT=$ac_cv_objext
3124 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3125 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3126 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_compile") 2>conftest.er1
3156 grep -v '^ *+' conftest.er1 >conftest.err
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } && {
3161 test -z "$ac_cxx_werror_flag" ||
3162 test ! -s conftest.err
3163 } && test -s conftest.$ac_objext; then
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3176 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3177 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3178 GXX=`test $ac_compiler_gnu = yes && echo yes`
3179 ac_test_CXXFLAGS=${CXXFLAGS+set}
3180 ac_save_CXXFLAGS=$CXXFLAGS
3181 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3182 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3183 if test "${ac_cv_prog_cxx_g+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3187 ac_cxx_werror_flag=yes
3190 cat >conftest.$ac_ext <<_ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3205 rm -f conftest.$ac_objext
3206 if { (ac_try="$ac_compile"
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_compile") 2>conftest.er1
3214 grep -v '^ *+' conftest.er1 >conftest.err
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } && {
3219 test -z "$ac_cxx_werror_flag" ||
3220 test ! -s conftest.err
3221 } && test -s conftest.$ac_objext; then
3222 ac_cv_prog_cxx_g=yes
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3228 cat >conftest.$ac_ext <<_ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3243 rm -f conftest.$ac_objext
3244 if { (ac_try="$ac_compile"
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_compile") 2>conftest.er1
3252 grep -v '^ *+' conftest.er1 >conftest.err
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && {
3257 test -z "$ac_cxx_werror_flag" ||
3258 test ! -s conftest.err
3259 } && test -s conftest.$ac_objext; then
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3282 rm -f conftest.$ac_objext
3283 if { (ac_try="$ac_compile"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_compile") 2>conftest.er1
3291 grep -v '^ *+' conftest.er1 >conftest.err
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } && {
3296 test -z "$ac_cxx_werror_flag" ||
3297 test ! -s conftest.err
3298 } && test -s conftest.$ac_objext; then
3299 ac_cv_prog_cxx_g=yes
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3317 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3318 if test "$ac_test_CXXFLAGS" = set; then
3319 CXXFLAGS=$ac_save_CXXFLAGS
3320 elif test $ac_cv_prog_cxx_g = yes; then
3321 if test "$GXX" = yes; then
3327 if test "$GXX" = yes; then
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 DEPDIR="${am__leading_dot}deps"
3340 ac_config_commands="$ac_config_commands depfiles"
3343 am_make=${MAKE-make}
3344 cat > confinc << 'END'
3349 # If we don't find an include directive, just comment out the code.
3350 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3351 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3355 # First try GNU make style include.
3356 echo "include confinc" > confmf
3357 # We grep out `Entering directory' and `Leaving directory'
3358 # messages which can occur if `w' ends up in MAKEFLAGS.
3359 # In particular we don't look at `^make:' because GNU make might
3360 # be invoked under some other name (usually "gmake"), in which
3361 # case it prints its new name instead of `make'.
3362 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3367 # Now try BSD make style include.
3368 if test "$am__include" = "#"; then
3369 echo '.include "confinc"' > confmf
3370 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3371 am__include=.include
3378 { echo "$as_me:$LINENO: result: $_am_result" >&5
3379 echo "${ECHO_T}$_am_result" >&6; }
3380 rm -f confinc confmf
3382 # Check whether --enable-dependency-tracking was given.
3383 if test "${enable_dependency_tracking+set}" = set; then
3384 enableval=$enable_dependency_tracking;
3387 if test "x$enable_dependency_tracking" != xno; then
3388 am_depcomp="$ac_aux_dir/depcomp"
3391 if test "x$enable_dependency_tracking" != xno; then
3401 depcc="$CXX" am_compiler_list=
3403 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3404 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3405 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3409 # We make a subdir and do the tests there. Otherwise we can end up
3410 # making bogus files that we don't know about and never remove. For
3411 # instance it was reported that on HP-UX the gcc test will end up
3412 # making a dummy file named `D' -- because `-MD' means `put the output
3415 # Copy depcomp to subdir because otherwise we won't find it if we're
3416 # using a relative directory.
3417 cp "$am_depcomp" conftest.dir
3419 # We will build objects and dependencies in a subdirectory because
3420 # it helps to detect inapplicable dependency modes. For instance
3421 # both Tru64's cc and ICC support -MD to output dependencies as a
3422 # side effect of compilation, but ICC will put the dependencies in
3423 # the current directory while Tru64 will put them in the object
3427 am_cv_CXX_dependencies_compiler_type=none
3428 if test "$am_compiler_list" = ""; then
3429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431 for depmode in $am_compiler_list; do
3432 # Setup a source with many dependencies, because some compilers
3433 # like to wrap large dependency lists on column 80 (with \), and
3434 # we should not choose a depcomp mode which is confused by this.
3436 # We need to recreate these files for each test, as the compiler may
3437 # overwrite some of them when testing with obscure command lines.
3438 # This happens at least with the AIX C compiler.
3440 for i in 1 2 3 4 5 6; do
3441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3443 # Solaris 8's {/usr,}/bin/sh.
3444 touch sub/conftst$i.h
3446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3450 # after this tag, mechanisms are not by side-effect, so they'll
3451 # only be used when explicitly requested
3452 if test "x$enable_dependency_tracking" = xyes; then
3460 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3461 # mode. It turns out that the SunPro C++ compiler does not properly
3462 # handle `-M -o', and we need to detect this.
3463 if depmode=$depmode \
3464 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3466 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3467 >/dev/null 2>conftest.err &&
3468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472 # icc doesn't choke on unknown options, it will just issue warnings
3473 # or remarks (even with -Werror). So we grep stderr for any message
3474 # that says an option was ignored or not supported.
3475 # When given -MP, icc 7.0 and 7.1 complain thusly:
3476 # icc: Command line warning: ignoring option '-M'; no argument required
3477 # The diagnosis changed in icc 8.0:
3478 # icc: Command line remark: option '-MP' not supported
3479 if (grep 'ignoring option' conftest.err ||
3480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481 am_cv_CXX_dependencies_compiler_type=$depmode
3490 am_cv_CXX_dependencies_compiler_type=none
3494 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3495 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3496 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3499 test "x$enable_dependency_tracking" != xno \
3500 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3501 am__fastdepCXX_TRUE=
3502 am__fastdepCXX_FALSE='#'
3504 am__fastdepCXX_TRUE='#'
3505 am__fastdepCXX_FALSE=
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3519 if test "${ac_cv_prog_CC+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 if test -n "$CC"; then
3544 { echo "$as_me:$LINENO: result: $CC" >&5
3545 echo "${ECHO_T}$CC" >&6; }
3547 { echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6; }
3553 if test -z "$ac_cv_prog_CC"; then
3555 # Extract the first word of "gcc", so it can be a program name with args.
3556 set dummy gcc; ac_word=$2
3557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_ac_ct_CC="gcc"
3573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3585 echo "${ECHO_T}$ac_ct_CC" >&6; }
3587 { echo "$as_me:$LINENO: result: no" >&5
3588 echo "${ECHO_T}no" >&6; }
3591 if test "x$ac_ct_CC" = x; then
3594 case $cross_compiling:$ac_tool_warned in
3596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3597 whose name does not start with the host triplet. If you think this
3598 configuration is useful to you, please write to autoconf@gnu.org." >&5
3599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3600 whose name does not start with the host triplet. If you think this
3601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3602 ac_tool_warned=yes ;;
3610 if test -z "$CC"; then
3611 if test -n "$ac_tool_prefix"; then
3612 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3613 set dummy ${ac_tool_prefix}cc; ac_word=$2
3614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3616 if test "${ac_cv_prog_CC+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if test -n "$CC"; then
3620 ac_cv_prog_CC="$CC" # Let the user override the test.
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_CC="${ac_tool_prefix}cc"
3630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 if test -n "$CC"; then
3641 { echo "$as_me:$LINENO: result: $CC" >&5
3642 echo "${ECHO_T}$CC" >&6; }
3644 { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; }
3651 if test -z "$CC"; then
3652 # Extract the first word of "cc", so it can be a program name with args.
3653 set dummy cc; ac_word=$2
3654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3656 if test "${ac_cv_prog_CC+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3671 ac_prog_rejected=yes
3675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 if test $ac_prog_rejected = yes; then
3683 # We found a bogon in the path, so make sure we never use it.
3684 set dummy $ac_cv_prog_CC
3686 if test $# != 0; then
3687 # We chose a different compiler from the bogus one.
3688 # However, it has the same basename, so the bogon will be chosen
3689 # first if we set CC to just the basename; use the full file name.
3691 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3697 if test -n "$CC"; then
3698 { echo "$as_me:$LINENO: result: $CC" >&5
3699 echo "${ECHO_T}$CC" >&6; }
3701 { echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6; }
3707 if test -z "$CC"; then
3708 if test -n "$ac_tool_prefix"; then
3709 for ac_prog in cl.exe
3711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3715 if test "${ac_cv_prog_CC+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 if test -n "$CC"; then
3719 ac_cv_prog_CC="$CC" # Let the user override the test.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 if test -n "$CC"; then
3740 { echo "$as_me:$LINENO: result: $CC" >&5
3741 echo "${ECHO_T}$CC" >&6; }
3743 { echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6; }
3748 test -n "$CC" && break
3751 if test -z "$CC"; then
3753 for ac_prog in cl.exe
3755 # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy $ac_prog; ac_word=$2
3757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 if test -n "$ac_ct_CC"; then
3763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_ac_ct_CC="$ac_prog"
3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3783 if test -n "$ac_ct_CC"; then
3784 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3785 echo "${ECHO_T}$ac_ct_CC" >&6; }
3787 { echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6; }
3792 test -n "$ac_ct_CC" && break
3795 if test "x$ac_ct_CC" = x; then
3798 case $cross_compiling:$ac_tool_warned in
3800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3801 whose name does not start with the host triplet. If you think this
3802 configuration is useful to you, please write to autoconf@gnu.org." >&5
3803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3804 whose name does not start with the host triplet. If you think this
3805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3806 ac_tool_warned=yes ;;
3815 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3816 See \`config.log' for more details." >&5
3817 echo "$as_me: error: no acceptable C compiler found in \$PATH
3818 See \`config.log' for more details." >&2;}
3819 { (exit 1); exit 1; }; }
3821 # Provide some information about the compiler.
3822 echo "$as_me:$LINENO: checking for C compiler version" >&5
3823 ac_compiler=`set X $ac_compile; echo $2`
3824 { (ac_try="$ac_compiler --version >&5"
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_compiler --version >&5") 2>&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }
3834 { (ac_try="$ac_compiler -v >&5"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compiler -v >&5") 2>&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }
3844 { (ac_try="$ac_compiler -V >&5"
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_compiler -V >&5") 2>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }
3855 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3856 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3857 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 cat >conftest.$ac_ext <<_ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3878 rm -f conftest.$ac_objext
3879 if { (ac_try="$ac_compile"
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_compile") 2>conftest.er1
3887 grep -v '^ *+' conftest.er1 >conftest.err
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } && {
3892 test -z "$ac_c_werror_flag" ||
3893 test ! -s conftest.err
3894 } && test -s conftest.$ac_objext; then
3897 echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3907 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3908 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3909 GCC=`test $ac_compiler_gnu = yes && echo yes`
3910 ac_test_CFLAGS=${CFLAGS+set}
3911 ac_save_CFLAGS=$CFLAGS
3912 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3914 if test "${ac_cv_prog_cc_g+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 ac_save_c_werror_flag=$ac_c_werror_flag
3918 ac_c_werror_flag=yes
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3936 rm -f conftest.$ac_objext
3937 if { (ac_try="$ac_compile"
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_compile") 2>conftest.er1
3945 grep -v '^ *+' conftest.er1 >conftest.err
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && {
3950 test -z "$ac_c_werror_flag" ||
3951 test ! -s conftest.err
3952 } && test -s conftest.$ac_objext; then
3955 echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3959 cat >conftest.$ac_ext <<_ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3974 rm -f conftest.$ac_objext
3975 if { (ac_try="$ac_compile"
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_compile") 2>conftest.er1
3983 grep -v '^ *+' conftest.er1 >conftest.err
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } && {
3988 test -z "$ac_c_werror_flag" ||
3989 test ! -s conftest.err
3990 } && test -s conftest.$ac_objext; then
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3996 ac_c_werror_flag=$ac_save_c_werror_flag
3998 cat >conftest.$ac_ext <<_ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4013 rm -f conftest.$ac_objext
4014 if { (ac_try="$ac_compile"
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_compile") 2>conftest.er1
4022 grep -v '^ *+' conftest.er1 >conftest.err
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest.$ac_objext; then
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_c_werror_flag=$ac_save_c_werror_flag
4047 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4048 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4049 if test "$ac_test_CFLAGS" = set; then
4050 CFLAGS=$ac_save_CFLAGS
4051 elif test $ac_cv_prog_cc_g = yes; then
4052 if test "$GCC" = yes; then
4058 if test "$GCC" = yes; then
4064 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4065 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4066 if test "${ac_cv_prog_cc_c89+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_cv_prog_cc_c89=no
4071 cat >conftest.$ac_ext <<_ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4079 #include <sys/types.h>
4080 #include <sys/stat.h>
4081 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4082 struct buf { int x; };
4083 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4084 static char *e (p, i)
4090 static char *f (char * (*g) (char **, int), char **p, ...)
4095 s = g (p, va_arg (v,int));
4100 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4101 function prototypes and stuff, but not '\xHH' hex character constants.
4102 These don't provoke an error unfortunately, instead are silently treated
4103 as 'x'. The following induces an error, until -std is added to get
4104 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4105 array size at least. It's necessary to write '\x00'==0 to get something
4106 that's true only with -std. */
4107 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4109 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4110 inside strings and character constants. */
4112 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4114 int test (int i, double x);
4115 struct s1 {int (*f) (int a);};
4116 struct s2 {int (*f) (double a);};
4117 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4123 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4128 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4129 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4131 CC="$ac_save_CC $ac_arg"
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4141 grep -v '^ *+' conftest.er1 >conftest.err
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } && {
4146 test -z "$ac_c_werror_flag" ||
4147 test ! -s conftest.err
4148 } && test -s conftest.$ac_objext; then
4149 ac_cv_prog_cc_c89=$ac_arg
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4157 rm -f core conftest.err conftest.$ac_objext
4158 test "x$ac_cv_prog_cc_c89" != "xno" && break
4160 rm -f conftest.$ac_ext
4165 case "x$ac_cv_prog_cc_c89" in
4167 { echo "$as_me:$LINENO: result: none needed" >&5
4168 echo "${ECHO_T}none needed" >&6; } ;;
4170 { echo "$as_me:$LINENO: result: unsupported" >&5
4171 echo "${ECHO_T}unsupported" >&6; } ;;
4173 CC="$CC $ac_cv_prog_cc_c89"
4174 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4175 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185 depcc="$CC" am_compiler_list=
4187 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4188 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4189 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4193 # We make a subdir and do the tests there. Otherwise we can end up
4194 # making bogus files that we don't know about and never remove. For
4195 # instance it was reported that on HP-UX the gcc test will end up
4196 # making a dummy file named `D' -- because `-MD' means `put the output
4199 # Copy depcomp to subdir because otherwise we won't find it if we're
4200 # using a relative directory.
4201 cp "$am_depcomp" conftest.dir
4203 # We will build objects and dependencies in a subdirectory because
4204 # it helps to detect inapplicable dependency modes. For instance
4205 # both Tru64's cc and ICC support -MD to output dependencies as a
4206 # side effect of compilation, but ICC will put the dependencies in
4207 # the current directory while Tru64 will put them in the object
4211 am_cv_CC_dependencies_compiler_type=none
4212 if test "$am_compiler_list" = ""; then
4213 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4215 for depmode in $am_compiler_list; do
4216 # Setup a source with many dependencies, because some compilers
4217 # like to wrap large dependency lists on column 80 (with \), and
4218 # we should not choose a depcomp mode which is confused by this.
4220 # We need to recreate these files for each test, as the compiler may
4221 # overwrite some of them when testing with obscure command lines.
4222 # This happens at least with the AIX C compiler.
4224 for i in 1 2 3 4 5 6; do
4225 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4226 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4227 # Solaris 8's {/usr,}/bin/sh.
4228 touch sub/conftst$i.h
4230 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4234 # after this tag, mechanisms are not by side-effect, so they'll
4235 # only be used when explicitly requested
4236 if test "x$enable_dependency_tracking" = xyes; then
4244 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4245 # mode. It turns out that the SunPro C++ compiler does not properly
4246 # handle `-M -o', and we need to detect this.
4247 if depmode=$depmode \
4248 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4249 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4250 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4251 >/dev/null 2>conftest.err &&
4252 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4253 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4254 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4255 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4256 # icc doesn't choke on unknown options, it will just issue warnings
4257 # or remarks (even with -Werror). So we grep stderr for any message
4258 # that says an option was ignored or not supported.
4259 # When given -MP, icc 7.0 and 7.1 complain thusly:
4260 # icc: Command line warning: ignoring option '-M'; no argument required
4261 # The diagnosis changed in icc 8.0:
4262 # icc: Command line remark: option '-MP' not supported
4263 if (grep 'ignoring option' conftest.err ||
4264 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4265 am_cv_CC_dependencies_compiler_type=$depmode
4274 am_cv_CC_dependencies_compiler_type=none
4278 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4279 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4280 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4283 test "x$enable_dependency_tracking" != xno \
4284 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4286 am__fastdepCC_FALSE='#'
4288 am__fastdepCC_TRUE='#'
4289 am__fastdepCC_FALSE=
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4299 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4300 # On Suns, sometimes $CPP names a directory.
4301 if test -n "$CPP" && test -d "$CPP"; then
4304 if test -z "$CPP"; then
4305 if test "${ac_cv_prog_CPP+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 # Double quotes because CPP needs to be expanded
4309 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4312 for ac_c_preproc_warn_flag in '' yes
4314 # Use a header file that comes with gcc, so configuring glibc
4315 # with a fresh cross-compiler works.
4316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317 # <limits.h> exists even on freestanding compilers.
4318 # On the NeXT, cc -E runs the code through the compiler's parser,
4319 # not just through cpp. "Syntax error" is here to catch this case.
4320 cat >conftest.$ac_ext <<_ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4327 # include <limits.h>
4329 # include <assert.h>
4333 if { (ac_try="$ac_cpp conftest.$ac_ext"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4341 grep -v '^ *+' conftest.er1 >conftest.err
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } >/dev/null && {
4346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347 test ! -s conftest.err
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4354 # Broken: fails on valid input.
4358 rm -f conftest.err conftest.$ac_ext
4360 # OK, works on sane cases. Now check whether nonexistent headers
4361 # can be detected and how.
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 #include <ac_nonexistent.h>
4370 if { (ac_try="$ac_cpp conftest.$ac_ext"
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4378 grep -v '^ *+' conftest.er1 >conftest.err
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } >/dev/null && {
4383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4384 test ! -s conftest.err
4386 # Broken: success on invalid input.
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 # Passes both tests.
4397 rm -f conftest.err conftest.$ac_ext
4400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4401 rm -f conftest.err conftest.$ac_ext
4402 if $ac_preproc_ok; then
4414 { echo "$as_me:$LINENO: result: $CPP" >&5
4415 echo "${ECHO_T}$CPP" >&6; }
4417 for ac_c_preproc_warn_flag in '' yes
4419 # Use a header file that comes with gcc, so configuring glibc
4420 # with a fresh cross-compiler works.
4421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4422 # <limits.h> exists even on freestanding compilers.
4423 # On the NeXT, cc -E runs the code through the compiler's parser,
4424 # not just through cpp. "Syntax error" is here to catch this case.
4425 cat >conftest.$ac_ext <<_ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4432 # include <limits.h>
4434 # include <assert.h>
4438 if { (ac_try="$ac_cpp conftest.$ac_ext"
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4446 grep -v '^ *+' conftest.er1 >conftest.err
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } >/dev/null && {
4451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4452 test ! -s conftest.err
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 # Broken: fails on valid input.
4463 rm -f conftest.err conftest.$ac_ext
4465 # OK, works on sane cases. Now check whether nonexistent headers
4466 # can be detected and how.
4467 cat >conftest.$ac_ext <<_ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 #include <ac_nonexistent.h>
4475 if { (ac_try="$ac_cpp conftest.$ac_ext"
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4483 grep -v '^ *+' conftest.er1 >conftest.err
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } >/dev/null && {
4488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4489 test ! -s conftest.err
4491 # Broken: success on invalid input.
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 # Passes both tests.
4502 rm -f conftest.err conftest.$ac_ext
4505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4506 rm -f conftest.err conftest.$ac_ext
4507 if $ac_preproc_ok; then
4510 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4511 See \`config.log' for more details." >&5
4512 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4513 See \`config.log' for more details." >&2;}
4514 { (exit 1); exit 1; }; }
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523 # Check whether --enable-shared was given.
4524 if test "${enable_shared+set}" = set; then
4525 enableval=$enable_shared; p=${PACKAGE-default}
4527 yes) enable_shared=yes ;;
4528 no) enable_shared=no ;;
4531 # Look at the argument we got. We use all the common list separators.
4532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4533 for pkg in $enableval; do
4535 if test "X$pkg" = "X$p"; then
4547 # Check whether --enable-fast-install was given.
4548 if test "${enable_fast_install+set}" = set; then
4549 enableval=$enable_fast_install; p=${PACKAGE-default}
4551 yes) enable_fast_install=yes ;;
4552 no) enable_fast_install=no ;;
4554 enable_fast_install=no
4555 # Look at the argument we got. We use all the common list separators.
4556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4557 for pkg in $enableval; do
4559 if test "X$pkg" = "X$p"; then
4560 enable_fast_install=yes
4567 enable_fast_install=yes
4571 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4572 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4573 if test "${lt_cv_path_SED+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 # Loop through the user's path and test for sed and gsed.
4577 # Then use that list of sed's as ones to test for truncation.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for lt_ac_prog in sed gsed; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4586 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4594 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4595 # along with /bin/sed that truncates output.
4596 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4597 test ! -f $lt_ac_sed && continue
4598 cat /dev/null > conftest.in
4600 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4601 # Check for GNU sed and select it if it is found.
4602 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4603 lt_cv_path_SED=$lt_ac_sed
4607 cat conftest.in conftest.in >conftest.tmp
4608 mv conftest.tmp conftest.in
4609 cp conftest.in conftest.nl
4611 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4612 cmp -s conftest.out conftest.nl || break
4613 # 10000 chars as input seems more than enough
4614 test $lt_ac_count -gt 10 && break
4615 lt_ac_count=`expr $lt_ac_count + 1`
4616 if test $lt_ac_count -gt $lt_ac_max; then
4617 lt_ac_max=$lt_ac_count
4618 lt_cv_path_SED=$lt_ac_sed
4627 { echo "$as_me:$LINENO: result: $SED" >&5
4628 echo "${ECHO_T}$SED" >&6; }
4630 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4631 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4632 if test "${ac_cv_path_GREP+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 # Extract the first word of "grep ggrep" to use in msg output
4636 if test -z "$GREP"; then
4637 set dummy grep ggrep; ac_prog_name=$2
4638 if test "${ac_cv_path_GREP+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 ac_path_GREP_found=false
4642 # Loop through the user's path and test for each of PROGNAME-LIST
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4647 test -z "$as_dir" && as_dir=.
4648 for ac_prog in grep ggrep; do
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4651 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4652 # Check for GNU ac_path_GREP and select it if it is found.
4653 # Check for GNU $ac_path_GREP
4654 case `"$ac_path_GREP" --version 2>&1` in
4656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4659 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4662 cat "conftest.in" "conftest.in" >"conftest.tmp"
4663 mv "conftest.tmp" "conftest.in"
4664 cp "conftest.in" "conftest.nl"
4665 echo 'GREP' >> "conftest.nl"
4666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4668 ac_count=`expr $ac_count + 1`
4669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4670 # Best one so far, save it but keep looking for a better one
4671 ac_cv_path_GREP="$ac_path_GREP"
4672 ac_path_GREP_max=$ac_count
4674 # 10*(2^10) chars as input seems more than enough
4675 test $ac_count -gt 10 && break
4677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681 $ac_path_GREP_found && break 3
4691 GREP="$ac_cv_path_GREP"
4692 if test -z "$GREP"; then
4693 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4694 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4695 { (exit 1); exit 1; }; }
4699 ac_cv_path_GREP=$GREP
4704 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4705 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4706 GREP="$ac_cv_path_GREP"
4709 { echo "$as_me:$LINENO: checking for egrep" >&5
4710 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4711 if test "${ac_cv_path_EGREP+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4715 then ac_cv_path_EGREP="$GREP -E"
4717 # Extract the first word of "egrep" to use in msg output
4718 if test -z "$EGREP"; then
4719 set dummy egrep; ac_prog_name=$2
4720 if test "${ac_cv_path_EGREP+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 ac_path_EGREP_found=false
4724 # Loop through the user's path and test for each of PROGNAME-LIST
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4729 test -z "$as_dir" && as_dir=.
4730 for ac_prog in egrep; do
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4733 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4734 # Check for GNU ac_path_EGREP and select it if it is found.
4735 # Check for GNU $ac_path_EGREP
4736 case `"$ac_path_EGREP" --version 2>&1` in
4738 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4741 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4744 cat "conftest.in" "conftest.in" >"conftest.tmp"
4745 mv "conftest.tmp" "conftest.in"
4746 cp "conftest.in" "conftest.nl"
4747 echo 'EGREP' >> "conftest.nl"
4748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4750 ac_count=`expr $ac_count + 1`
4751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4752 # Best one so far, save it but keep looking for a better one
4753 ac_cv_path_EGREP="$ac_path_EGREP"
4754 ac_path_EGREP_max=$ac_count
4756 # 10*(2^10) chars as input seems more than enough
4757 test $ac_count -gt 10 && break
4759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4763 $ac_path_EGREP_found && break 3
4773 EGREP="$ac_cv_path_EGREP"
4774 if test -z "$EGREP"; then
4775 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4776 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4777 { (exit 1); exit 1; }; }
4781 ac_cv_path_EGREP=$EGREP
4787 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4788 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4789 EGREP="$ac_cv_path_EGREP"
4793 # Check whether --with-gnu-ld was given.
4794 if test "${with_gnu_ld+set}" = set; then
4795 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4801 if test "$GCC" = yes; then
4802 # Check if gcc -print-prog-name=ld gives a path.
4803 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4804 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4807 # gcc leaves a trailing carriage return which upsets mingw
4808 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4810 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4813 # Accept absolute paths.
4815 re_direlt='/[^/][^/]*/\.\./'
4816 # Canonicalize the pathname of ld
4817 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4818 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4819 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4821 test -z "$LD" && LD="$ac_prog"
4824 # If it fails, then pretend we aren't using GCC.
4828 # If it is relative, then search for the first ld in PATH.
4832 elif test "$with_gnu_ld" = yes; then
4833 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4834 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4836 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4837 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4839 if test "${lt_cv_path_LD+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 if test -z "$LD"; then
4843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4844 for ac_dir in $PATH; do
4846 test -z "$ac_dir" && ac_dir=.
4847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4848 lt_cv_path_LD="$ac_dir/$ac_prog"
4849 # Check to see if the program is GNU ld. I'd rather use --version,
4850 # but apparently some variants of GNU ld only accept -v.
4851 # Break only if it was the GNU/non-GNU ld that we prefer.
4852 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4853 *GNU* | *'with BFD'*)
4854 test "$with_gnu_ld" != no && break
4857 test "$with_gnu_ld" != yes && break
4864 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4869 if test -n "$LD"; then
4870 { echo "$as_me:$LINENO: result: $LD" >&5
4871 echo "${ECHO_T}$LD" >&6; }
4873 { echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6; }
4876 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4877 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4878 { (exit 1); exit 1; }; }
4879 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4880 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4881 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4885 case `$LD -v 2>&1 </dev/null` in
4886 *GNU* | *'with BFD'*)
4887 lt_cv_prog_gnu_ld=yes
4890 lt_cv_prog_gnu_ld=no
4894 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4895 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4896 with_gnu_ld=$lt_cv_prog_gnu_ld
4899 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4900 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4901 if test "${lt_cv_ld_reload_flag+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 lt_cv_ld_reload_flag='-r'
4906 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4907 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4908 reload_flag=$lt_cv_ld_reload_flag
4909 case $reload_flag in
4911 *) reload_flag=" $reload_flag" ;;
4913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4916 if test "$GCC" = yes; then
4917 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4919 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4924 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4925 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4926 if test "${lt_cv_path_NM+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 if test -n "$NM"; then
4930 # Let the user override the test.
4933 lt_nm_to_check="${ac_tool_prefix}nm"
4934 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4935 lt_nm_to_check="$lt_nm_to_check nm"
4937 for lt_tmp_nm in $lt_nm_to_check; do
4938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4939 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4941 test -z "$ac_dir" && ac_dir=.
4942 tmp_nm="$ac_dir/$lt_tmp_nm"
4943 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4944 # Check to see if the nm accepts a BSD-compat flag.
4945 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4946 # nm: unknown option "B" ignored
4947 # Tru64's nm complains that /dev/null is an invalid object file
4948 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4949 */dev/null* | *'Invalid file or object type'*)
4950 lt_cv_path_NM="$tmp_nm -B"
4954 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4956 lt_cv_path_NM="$tmp_nm -p"
4960 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4961 continue # so that we can try to find one that supports BSD flags
4970 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4973 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4974 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4977 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4978 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4980 if test "$LN_S" = "ln -s"; then
4981 { echo "$as_me:$LINENO: result: yes" >&5
4982 echo "${ECHO_T}yes" >&6; }
4984 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4985 echo "${ECHO_T}no, using $LN_S" >&6; }
4988 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4989 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4990 if test "${lt_cv_deplibs_check_method+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 lt_cv_file_magic_cmd='$MAGIC_CMD'
4994 lt_cv_file_magic_test_file=
4995 lt_cv_deplibs_check_method='unknown'
4996 # Need to set the preceding variable on all platforms that support
4997 # interlibrary dependencies.
4998 # 'none' -- dependencies not supported.
4999 # `unknown' -- same as none, but documents that we really don't know.
5000 # 'pass_all' -- all dependencies passed with no checks.
5001 # 'test_compile' -- check by making test program.
5002 # 'file_magic [[regex]]' -- check by looking for files in library path
5003 # which responds to the $file_magic_cmd with a given extended regex.
5004 # If you have `file' or equivalent on your system and you're not sure
5005 # whether `pass_all' will *always* work, you probably want this one.
5009 lt_cv_deplibs_check_method=pass_all
5013 lt_cv_deplibs_check_method=pass_all
5017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5018 lt_cv_file_magic_cmd='/usr/bin/file -L'
5019 lt_cv_file_magic_test_file=/shlib/libc.so
5023 # func_win32_libid is a shell function defined in ltmain.sh
5024 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5025 lt_cv_file_magic_cmd='func_win32_libid'
5029 # Base MSYS/MinGW do not provide the 'file' command needed by
5030 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5031 # unless we find 'file', for example because we are cross-compiling.
5032 if ( file / ) >/dev/null 2>&1; then
5033 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5034 lt_cv_file_magic_cmd='func_win32_libid'
5036 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5037 lt_cv_file_magic_cmd='$OBJDUMP -f'
5041 darwin* | rhapsody*)
5042 lt_cv_deplibs_check_method=pass_all
5045 freebsd* | dragonfly*)
5046 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5049 # Not sure whether the presence of OpenBSD here was a mistake.
5050 # Let's accept both of them until this is cleared up.
5051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5052 lt_cv_file_magic_cmd=/usr/bin/file
5053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5057 lt_cv_deplibs_check_method=pass_all
5062 lt_cv_deplibs_check_method=pass_all
5065 hpux10.20* | hpux11*)
5066 lt_cv_file_magic_cmd=/usr/bin/file
5069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5073 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]'
5074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5084 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5088 irix5* | irix6* | nonstopux*)
5090 *-32|*"-32 ") libmagic=32-bit;;
5091 *-n32|*"-n32 ") libmagic=N32;;
5092 *-64|*"-64 ") libmagic=64-bit;;
5093 *) libmagic=never-match;;
5095 lt_cv_deplibs_check_method=pass_all
5098 # This must be Linux ELF.
5099 linux* | k*bsd*-gnu)
5100 lt_cv_deplibs_check_method=pass_all
5103 netbsd* | netbsdelf*-gnu)
5104 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5113 lt_cv_file_magic_cmd=/usr/bin/file
5114 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5118 lt_cv_deplibs_check_method=unknown
5122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5129 osf3* | osf4* | osf5*)
5130 lt_cv_deplibs_check_method=pass_all
5134 lt_cv_deplibs_check_method=pass_all
5138 lt_cv_deplibs_check_method=pass_all
5142 case $host_vendor in
5144 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]'
5145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5148 lt_cv_deplibs_check_method=pass_all
5151 lt_cv_file_magic_cmd='/bin/file'
5152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5155 lt_cv_file_magic_cmd='/bin/file'
5156 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5157 lt_cv_file_magic_test_file=/lib/libc.so
5160 lt_cv_deplibs_check_method=pass_all
5163 lt_cv_deplibs_check_method=pass_all
5168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5169 lt_cv_deplibs_check_method=pass_all
5174 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5175 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5176 file_magic_cmd=$lt_cv_file_magic_cmd
5177 deplibs_check_method=$lt_cv_deplibs_check_method
5178 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5183 # If no C compiler was specified, use CC.
5186 # If no C compiler flags were specified, use CFLAGS.
5187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5189 # Allow CC to be a program name with arguments.
5193 # Check whether --enable-libtool-lock was given.
5194 if test "${enable_libtool_lock+set}" = set; then
5195 enableval=$enable_libtool_lock;
5198 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5200 # Some flags need to be propagated to the compiler or linker for good
5204 # Find out which ABI we are using.
5205 echo 'int i;' > conftest.$ac_ext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5207 (eval $ac_compile) 2>&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; then
5211 case `/usr/bin/file conftest.$ac_objext` in
5223 # Find out which ABI we are using.
5224 echo '#line 5224 "configure"' > conftest.$ac_ext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226 (eval $ac_compile) 2>&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; then
5230 if test "$lt_cv_prog_gnu_ld" = yes; then
5231 case `/usr/bin/file conftest.$ac_objext` in
5233 LD="${LD-ld} -melf32bsmip"
5236 LD="${LD-ld} -melf32bmipn32"
5239 LD="${LD-ld} -melf64bmip"
5243 case `/usr/bin/file conftest.$ac_objext` in
5259 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5260 s390*-*linux*|sparc*-*linux*)
5261 # Find out which ABI we are using.
5262 echo 'int i;' > conftest.$ac_ext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264 (eval $ac_compile) 2>&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; then
5268 case `/usr/bin/file conftest.o` in
5271 x86_64-*kfreebsd*-gnu)
5272 LD="${LD-ld} -m elf_i386_fbsd"
5275 LD="${LD-ld} -m elf_i386"
5277 ppc64-*linux*|powerpc64-*linux*)
5278 LD="${LD-ld} -m elf32ppclinux"
5281 LD="${LD-ld} -m elf_s390"
5284 LD="${LD-ld} -m elf32_sparc"
5290 x86_64-*kfreebsd*-gnu)
5291 LD="${LD-ld} -m elf_x86_64_fbsd"
5294 LD="${LD-ld} -m elf_x86_64"
5296 ppc*-*linux*|powerpc*-*linux*)
5297 LD="${LD-ld} -m elf64ppc"
5300 LD="${LD-ld} -m elf64_s390"
5303 LD="${LD-ld} -m elf64_sparc"
5313 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5314 SAVE_CFLAGS="$CFLAGS"
5315 CFLAGS="$CFLAGS -belf"
5316 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5317 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5318 if test "${lt_cv_cc_needs_belf+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5327 cat >conftest.$ac_ext <<_ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5342 rm -f conftest.$ac_objext conftest$ac_exeext
5343 if { (ac_try="$ac_link"
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_link") 2>conftest.er1
5351 grep -v '^ *+' conftest.er1 >conftest.err
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest$ac_exeext &&
5359 $as_test_x conftest$ac_exeext; then
5360 lt_cv_cc_needs_belf=yes
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5365 lt_cv_cc_needs_belf=no
5368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5369 conftest$ac_exeext conftest.$ac_ext
5371 ac_cpp='$CPP $CPPFLAGS'
5372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5377 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5378 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5379 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5380 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5381 CFLAGS="$SAVE_CFLAGS"
5385 # Find out which ABI we are using.
5386 echo 'int i;' > conftest.$ac_ext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388 (eval $ac_compile) 2>&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; then
5392 case `/usr/bin/file conftest.o` in
5394 case $lt_cv_prog_gnu_ld in
5395 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5396 *) LD="${LD-ld} -64" ;;
5404 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5405 if test -n "$ac_tool_prefix"; then
5406 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5407 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5410 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 if test -n "$DLLTOOL"; then
5414 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 DLLTOOL=$ac_cv_prog_DLLTOOL
5434 if test -n "$DLLTOOL"; then
5435 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5436 echo "${ECHO_T}$DLLTOOL" >&6; }
5438 { echo "$as_me:$LINENO: result: no" >&5
5439 echo "${ECHO_T}no" >&6; }
5444 if test -z "$ac_cv_prog_DLLTOOL"; then
5445 ac_ct_DLLTOOL=$DLLTOOL
5446 # Extract the first word of "dlltool", so it can be a program name with args.
5447 set dummy dlltool; ac_word=$2
5448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5450 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 if test -n "$ac_ct_DLLTOOL"; then
5454 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5474 if test -n "$ac_ct_DLLTOOL"; then
5475 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5476 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5478 { echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6; }
5482 if test "x$ac_ct_DLLTOOL" = x; then
5485 case $cross_compiling:$ac_tool_warned in
5487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5488 whose name does not start with the host triplet. If you think this
5489 configuration is useful to you, please write to autoconf@gnu.org." >&5
5490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5491 whose name does not start with the host triplet. If you think this
5492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5493 ac_tool_warned=yes ;;
5495 DLLTOOL=$ac_ct_DLLTOOL
5498 DLLTOOL="$ac_cv_prog_DLLTOOL"
5501 if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5503 set dummy ${ac_tool_prefix}as; ac_word=$2
5504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5506 if test "${ac_cv_prog_AS+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 if test -n "$AS"; then
5510 ac_cv_prog_AS="$AS" # Let the user override the test.
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_AS="${ac_tool_prefix}as"
5520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 if test -n "$AS"; then
5531 { echo "$as_me:$LINENO: result: $AS" >&5
5532 echo "${ECHO_T}$AS" >&6; }
5534 { echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6; }
5540 if test -z "$ac_cv_prog_AS"; then
5542 # Extract the first word of "as", so it can be a program name with args.
5543 set dummy as; ac_word=$2
5544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5546 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 if test -n "$ac_ct_AS"; then
5550 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_ac_ct_AS="as"
5560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5570 if test -n "$ac_ct_AS"; then
5571 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5572 echo "${ECHO_T}$ac_ct_AS" >&6; }
5574 { echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6; }
5578 if test "x$ac_ct_AS" = x; then
5581 case $cross_compiling:$ac_tool_warned in
5583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5584 whose name does not start with the host triplet. If you think this
5585 configuration is useful to you, please write to autoconf@gnu.org." >&5
5586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5587 whose name does not start with the host triplet. If you think this
5588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5589 ac_tool_warned=yes ;;
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5602 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 if test -n "$OBJDUMP"; then
5606 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 OBJDUMP=$ac_cv_prog_OBJDUMP
5626 if test -n "$OBJDUMP"; then
5627 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5628 echo "${ECHO_T}$OBJDUMP" >&6; }
5630 { echo "$as_me:$LINENO: result: no" >&5
5631 echo "${ECHO_T}no" >&6; }
5636 if test -z "$ac_cv_prog_OBJDUMP"; then
5637 ac_ct_OBJDUMP=$OBJDUMP
5638 # Extract the first word of "objdump", so it can be a program name with args.
5639 set dummy objdump; ac_word=$2
5640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5642 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 if test -n "$ac_ct_OBJDUMP"; then
5646 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5666 if test -n "$ac_ct_OBJDUMP"; then
5667 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5668 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5670 { echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6; }
5674 if test "x$ac_ct_OBJDUMP" = x; then
5677 case $cross_compiling:$ac_tool_warned in
5679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5680 whose name does not start with the host triplet. If you think this
5681 configuration is useful to you, please write to autoconf@gnu.org." >&5
5682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5683 whose name does not start with the host triplet. If you think this
5684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5685 ac_tool_warned=yes ;;
5687 OBJDUMP=$ac_ct_OBJDUMP
5690 OBJDUMP="$ac_cv_prog_OBJDUMP"
5697 need_locks="$enable_libtool_lock"
5701 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5702 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5703 if test "${ac_cv_header_stdc+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 cat >conftest.$ac_ext <<_ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5725 rm -f conftest.$ac_objext
5726 if { (ac_try="$ac_compile"
5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729 *) ac_try_echo=$ac_try;;
5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732 (eval "$ac_compile") 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && {
5739 test -z "$ac_c_werror_flag" ||
5740 test ! -s conftest.err
5741 } && test -s conftest.$ac_objext; then
5742 ac_cv_header_stdc=yes
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5747 ac_cv_header_stdc=no
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 if test $ac_cv_header_stdc = yes; then
5753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5754 cat >conftest.$ac_ext <<_ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5764 $EGREP "memchr" >/dev/null 2>&1; then
5767 ac_cv_header_stdc=no
5773 if test $ac_cv_header_stdc = yes; then
5774 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5785 $EGREP "free" >/dev/null 2>&1; then
5788 ac_cv_header_stdc=no
5794 if test $ac_cv_header_stdc = yes; then
5795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5796 if test "$cross_compiling" = yes; then
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5807 #if ((' ' & 0x0FF) == 0x020)
5808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5811 # define ISLOWER(c) \
5812 (('a' <= (c) && (c) <= 'i') \
5813 || ('j' <= (c) && (c) <= 'r') \
5814 || ('s' <= (c) && (c) <= 'z'))
5815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5823 for (i = 0; i < 256; i++)
5824 if (XOR (islower (i), ISLOWER (i))
5825 || toupper (i) != TOUPPER (i))
5830 rm -f conftest$ac_exeext
5831 if { (ac_try="$ac_link"
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_link") 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5841 { (case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5852 echo "$as_me: program exited with status $ac_status" >&5
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5857 ac_cv_header_stdc=no
5859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5865 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5866 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5867 if test $ac_cv_header_stdc = yes; then
5869 cat >>confdefs.h <<\_ACEOF
5870 #define STDC_HEADERS 1
5875 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5885 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5886 inttypes.h stdint.h unistd.h
5888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 cat >conftest.$ac_ext <<_ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 $ac_includes_default
5902 #include <$ac_header>
5904 rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_compile") 2>conftest.er1
5913 grep -v '^ *+' conftest.er1 >conftest.err
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } && {
5918 test -z "$ac_c_werror_flag" ||
5919 test ! -s conftest.err
5920 } && test -s conftest.$ac_objext; then
5921 eval "$as_ac_Header=yes"
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 eval "$as_ac_Header=no"
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 ac_res=`eval echo '${'$as_ac_Header'}'`
5932 { echo "$as_me:$LINENO: result: $ac_res" >&5
5933 echo "${ECHO_T}$ac_res" >&6; }
5934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5935 cat >>confdefs.h <<_ACEOF
5936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5945 for ac_header in dlfcn.h
5947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 ac_res=`eval echo '${'$as_ac_Header'}'`
5955 { echo "$as_me:$LINENO: result: $ac_res" >&5
5956 echo "${ECHO_T}$ac_res" >&6; }
5958 # Is the header compilable?
5959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5968 #include <$ac_header>
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1 >conftest.err
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && {
5984 test -z "$ac_c_werror_flag" ||
5985 test ! -s conftest.err
5986 } && test -s conftest.$ac_objext; then
5987 ac_header_compiler=yes
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_header_compiler=no
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5997 echo "${ECHO_T}$ac_header_compiler" >&6; }
5999 # Is the header present?
6000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <$ac_header>
6010 if { (ac_try="$ac_cpp conftest.$ac_ext"
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6018 grep -v '^ *+' conftest.er1 >conftest.err
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } >/dev/null && {
6023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6024 test ! -s conftest.err
6026 ac_header_preproc=yes
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 ac_header_preproc=no
6034 rm -f conftest.err conftest.$ac_ext
6035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6036 echo "${ECHO_T}$ac_header_preproc" >&6; }
6038 # So? What about this header?
6039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6045 ac_header_preproc=yes
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6061 ## -------------------------------------------------------- ##
6062 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
6063 ## -------------------------------------------------------- ##
6065 ) | sed "s/^/$as_me: WARNING: /" >&2
6068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 eval "$as_ac_Header=\$ac_header_preproc"
6075 ac_res=`eval echo '${'$as_ac_Header'}'`
6076 { echo "$as_me:$LINENO: result: $ac_res" >&5
6077 echo "${ECHO_T}$ac_res" >&6; }
6080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6081 cat >>confdefs.h <<_ACEOF
6082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6091 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6092 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6093 (test "X$CXX" != "Xg++"))) ; then
6095 ac_cpp='$CXXCPP $CPPFLAGS'
6096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6099 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6100 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6101 if test -z "$CXXCPP"; then
6102 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 # Double quotes because CXXCPP needs to be expanded
6106 for CXXCPP in "$CXX -E" "/lib/cpp"
6109 for ac_cxx_preproc_warn_flag in '' yes
6111 # Use a header file that comes with gcc, so configuring glibc
6112 # with a fresh cross-compiler works.
6113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6114 # <limits.h> exists even on freestanding compilers.
6115 # On the NeXT, cc -E runs the code through the compiler's parser,
6116 # not just through cpp. "Syntax error" is here to catch this case.
6117 cat >conftest.$ac_ext <<_ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6124 # include <limits.h>
6126 # include <assert.h>
6130 if { (ac_try="$ac_cpp conftest.$ac_ext"
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6138 grep -v '^ *+' conftest.er1 >conftest.err
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev/null && {
6143 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6144 test ! -s conftest.err
6148 echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6151 # Broken: fails on valid input.
6155 rm -f conftest.err conftest.$ac_ext
6157 # OK, works on sane cases. Now check whether nonexistent headers
6158 # can be detected and how.
6159 cat >conftest.$ac_ext <<_ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 #include <ac_nonexistent.h>
6167 if { (ac_try="$ac_cpp conftest.$ac_ext"
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6175 grep -v '^ *+' conftest.er1 >conftest.err
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } >/dev/null && {
6180 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6181 test ! -s conftest.err
6183 # Broken: success on invalid input.
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 # Passes both tests.
6194 rm -f conftest.err conftest.$ac_ext
6197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6198 rm -f conftest.err conftest.$ac_ext
6199 if $ac_preproc_ok; then
6204 ac_cv_prog_CXXCPP=$CXXCPP
6207 CXXCPP=$ac_cv_prog_CXXCPP
6209 ac_cv_prog_CXXCPP=$CXXCPP
6211 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6212 echo "${ECHO_T}$CXXCPP" >&6; }
6214 for ac_cxx_preproc_warn_flag in '' yes
6216 # Use a header file that comes with gcc, so configuring glibc
6217 # with a fresh cross-compiler works.
6218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6219 # <limits.h> exists even on freestanding compilers.
6220 # On the NeXT, cc -E runs the code through the compiler's parser,
6221 # not just through cpp. "Syntax error" is here to catch this case.
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6229 # include <limits.h>
6231 # include <assert.h>
6235 if { (ac_try="$ac_cpp conftest.$ac_ext"
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev/null && {
6248 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6249 test ! -s conftest.err
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 # Broken: fails on valid input.
6260 rm -f conftest.err conftest.$ac_ext
6262 # OK, works on sane cases. Now check whether nonexistent headers
6263 # can be detected and how.
6264 cat >conftest.$ac_ext <<_ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 #include <ac_nonexistent.h>
6272 if { (ac_try="$ac_cpp conftest.$ac_ext"
6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275 *) ac_try_echo=$ac_try;;
6277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6280 grep -v '^ *+' conftest.er1 >conftest.err
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } >/dev/null && {
6285 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6286 test ! -s conftest.err
6288 # Broken: success on invalid input.
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6294 # Passes both tests.
6299 rm -f conftest.err conftest.$ac_ext
6302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6303 rm -f conftest.err conftest.$ac_ext
6304 if $ac_preproc_ok; then
6307 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6308 See \`config.log' for more details." >&5
6309 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6310 See \`config.log' for more details." >&2;}
6311 { (exit 1); exit 1; }; }
6315 ac_cpp='$CXXCPP $CPPFLAGS'
6316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6324 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6325 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6327 if test -n "$ac_tool_prefix"; then
6328 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334 if test "${ac_cv_prog_F77+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 if test -n "$F77"; then
6338 ac_cv_prog_F77="$F77" # Let the user override the test.
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 if test -n "$F77"; then
6359 { echo "$as_me:$LINENO: result: $F77" >&5
6360 echo "${ECHO_T}$F77" >&6; }
6362 { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6367 test -n "$F77" && break
6370 if test -z "$F77"; then
6372 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6374 # Extract the first word of "$ac_prog", so it can be a program name with args.
6375 set dummy $ac_prog; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 if test -n "$ac_ct_F77"; then
6382 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391 ac_cv_prog_ac_ct_F77="$ac_prog"
6392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6402 if test -n "$ac_ct_F77"; then
6403 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6404 echo "${ECHO_T}$ac_ct_F77" >&6; }
6406 { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6411 test -n "$ac_ct_F77" && break
6414 if test "x$ac_ct_F77" = x; then
6417 case $cross_compiling:$ac_tool_warned in
6419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6420 whose name does not start with the host triplet. If you think this
6421 configuration is useful to you, please write to autoconf@gnu.org." >&5
6422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6423 whose name does not start with the host triplet. If you think this
6424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6425 ac_tool_warned=yes ;;
6432 # Provide some information about the compiler.
6433 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6434 ac_compiler=`set X $ac_compile; echo $2`
6435 { (ac_try="$ac_compiler --version >&5"
6437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6438 *) ac_try_echo=$ac_try;;
6440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6441 (eval "$ac_compiler --version >&5") 2>&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }
6445 { (ac_try="$ac_compiler -v >&5"
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_compiler -v >&5") 2>&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }
6455 { (ac_try="$ac_compiler -V >&5"
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compiler -V >&5") 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }
6467 # If we don't use `.F' as extension, the preprocessor is not run on the
6468 # input file. (Note that this only needs to work for GNU compilers.)
6471 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6472 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6473 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 cat >conftest.$ac_ext <<_ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_compile") 2>conftest.er1
6493 grep -v '^ *+' conftest.er1 >conftest.err
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } && {
6498 test -z "$ac_f77_werror_flag" ||
6499 test ! -s conftest.err
6500 } && test -s conftest.$ac_objext; then
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6513 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6514 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6516 ac_test_FFLAGS=${FFLAGS+set}
6517 ac_save_FFLAGS=$FFLAGS
6519 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6520 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6521 if test "${ac_cv_prog_f77_g+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 cat >conftest.$ac_ext <<_ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (ac_try="$ac_compile"
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6539 grep -v '^ *+' conftest.er1 >conftest.err
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_f77_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_cv_prog_f77_g=yes
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6559 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6560 if test "$ac_test_FFLAGS" = set; then
6561 FFLAGS=$ac_save_FFLAGS
6562 elif test $ac_cv_prog_f77_g = yes; then
6563 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6569 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6576 G77=`test $ac_compiler_gnu = yes && echo yes`
6578 ac_cpp='$CPP $CPPFLAGS'
6579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6585 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6587 # find the maximum length of command line arguments
6588 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6589 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6590 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 # On DJGPP, this test can blow up pretty badly due to problems in libc
6599 # (any single argument exceeding 2000 bytes causes a buffer overrun
6600 # during glob expansion). Even if it were fixed, the result of this
6601 # check would be larger than it should be.
6602 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6606 # Under GNU Hurd, this test is not required because there is
6607 # no limit to the length of command line arguments.
6608 # Libtool will interpret -1 as no limit whatsoever
6609 lt_cv_sys_max_cmd_len=-1;
6613 # On Win9x/ME, this test blows up -- it succeeds, but takes
6614 # about 5 minutes as the teststring grows exponentially.
6615 # Worse, since 9x/ME are not pre-emptively multitasking,
6616 # you end up with a "frozen" computer, even though with patience
6617 # the test eventually succeeds (with a max line length of 256k).
6618 # Instead, let's just punt: use the minimum linelength reported by
6619 # all of the supported platforms: 8192 (on NT/2K/XP).
6620 lt_cv_sys_max_cmd_len=8192;
6624 # On AmigaOS with pdksh, this test takes hours, literally.
6625 # So we just punt and use a minimum line length of 8192.
6626 lt_cv_sys_max_cmd_len=8192;
6629 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6630 # This has been around since 386BSD, at least. Likely further.
6631 if test -x /sbin/sysctl; then
6632 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6633 elif test -x /usr/sbin/sysctl; then
6634 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6636 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6638 # And add a safety zone
6639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6644 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6645 lt_cv_sys_max_cmd_len=196608
6649 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6650 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6651 # nice to cause kernel panics so lets avoid the loop below.
6652 # First set a reasonable default.
6653 lt_cv_sys_max_cmd_len=16384
6655 if test -x /sbin/sysconfig; then
6656 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6657 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6662 lt_cv_sys_max_cmd_len=102400
6664 sysv5* | sco5v6* | sysv4.2uw2*)
6665 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6666 if test -n "$kargmax"; then
6667 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6669 lt_cv_sys_max_cmd_len=32768
6673 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6674 if test -n "$lt_cv_sys_max_cmd_len"; then
6675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6678 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6679 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6680 = "XX$teststring") >/dev/null 2>&1 &&
6681 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6682 lt_cv_sys_max_cmd_len=$new_result &&
6683 test $i != 17 # 1/2 MB should be enough
6686 teststring=$teststring$teststring
6689 # Add a significant safety factor because C++ compilers can tack on massive
6690 # amounts of additional arguments before passing them to the linker.
6691 # It appears as though 1/2 is a usable value.
6692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6699 if test -n $lt_cv_sys_max_cmd_len ; then
6700 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6701 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6703 { echo "$as_me:$LINENO: result: none" >&5
6704 echo "${ECHO_T}none" >&6; }
6711 # Check for command to grab the raw symbol name followed by C symbol from nm.
6712 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6713 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6714 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 # These are sane defaults that work on at least a few old systems.
6719 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6721 # Character class describing NM global symbol codes.
6722 symcode='[BCDEGRST]'
6724 # Regexp to match symbols that can be accessed directly from C.
6725 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6727 # Transform an extracted symbol line into a proper C declaration
6728 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6730 # Transform an extracted symbol line into symbol name and symbol address
6731 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6733 # Define system-specific variables.
6738 cygwin* | mingw* | pw32*)
6739 symcode='[ABCDGISTW]'
6741 hpux*) # Its linker distinguishes data from code symbols
6742 if test "$host_cpu" = ia64; then
6743 symcode='[ABCDEGRST]'
6745 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6746 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6748 linux* | k*bsd*-gnu)
6749 if test "$host_cpu" = ia64; then
6750 symcode='[ABCDGIRSTW]'
6751 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6752 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6756 symcode='[BCDEGRST]'
6759 symcode='[BCDEGQRST]'
6770 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6778 # Handle CRLF in mingw tool chain
6782 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6786 # If we're using GNU nm, then use its standard symbol codes.
6787 case `$NM -V 2>&1` in
6788 *GNU* | *'with BFD'*)
6789 symcode='[ABCDGIRSTW]' ;;
6792 # Try without a prefix undercore, then with it.
6793 for ac_symprfx in "" "_"; do
6795 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6796 symxfrm="\\1 $ac_symprfx\\2 \\2"
6798 # Write the raw and C identifiers.
6799 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6801 # Check to see that the pipe works correctly.
6805 cat > conftest.$ac_ext <<EOF
6810 void nm_test_func(){}
6814 int main(){nm_test_var='a';nm_test_func();return(0);}
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; then
6822 # Now try to grab the symbols.
6824 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6825 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } && test -s "$nlist"; then
6829 # Try sorting and uniquifying the output.
6830 if sort "$nlist" | uniq > "$nlist"T; then
6831 mv -f "$nlist"T "$nlist"
6836 # Make sure that we snagged all the symbols we need.
6837 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6838 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6839 cat <<EOF > conftest.$ac_ext
6845 # Now generate the symbol file.
6846 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6848 cat <<EOF >> conftest.$ac_ext
6849 #if defined (__STDC__) && __STDC__
6850 # define lt_ptr_t void *
6852 # define lt_ptr_t char *
6856 /* The mapping between symbol names and symbols. */
6861 lt_preloaded_symbols[] =
6864 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6865 cat <<\EOF >> conftest.$ac_ext
6873 # Now try linking the two files.
6874 mv conftest.$ac_objext conftstm.$ac_objext
6875 lt_save_LIBS="$LIBS"
6876 lt_save_CFLAGS="$CFLAGS"
6877 LIBS="conftstm.$ac_objext"
6878 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880 (eval $ac_link) 2>&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6886 LIBS="$lt_save_LIBS"
6887 CFLAGS="$lt_save_CFLAGS"
6889 echo "cannot find nm_test_func in $nlist" >&5
6892 echo "cannot find nm_test_var in $nlist" >&5
6895 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6898 echo "$progname: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6901 rm -f conftest* conftst*
6903 # Do not use the global_symbol_pipe unless it works.
6904 if test "$pipe_works" = yes; then
6907 lt_cv_sys_global_symbol_pipe=
6913 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6914 lt_cv_sys_global_symbol_to_cdecl=
6916 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6917 { echo "$as_me:$LINENO: result: failed" >&5
6918 echo "${ECHO_T}failed" >&6; }
6920 { echo "$as_me:$LINENO: result: ok" >&5
6921 echo "${ECHO_T}ok" >&6; }
6924 { echo "$as_me:$LINENO: checking for objdir" >&5
6925 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6926 if test "${lt_cv_objdir+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 rm -f .libs 2>/dev/null
6930 mkdir .libs 2>/dev/null
6931 if test -d .libs; then
6934 # MS-DOS does not allow filenames that begin with a dot.
6937 rmdir .libs 2>/dev/null
6939 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6940 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6941 objdir=$lt_cv_objdir
6949 # AIX sometimes has problems with the GCC collect2 program. For some
6950 # reason, if we set the COLLECT_NAMES environment variable, the problems
6951 # vanish in a puff of smoke.
6952 if test "X${COLLECT_NAMES+set}" != Xset; then
6954 export COLLECT_NAMES
6959 # Sed substitution that helps us do robust quoting. It backslashifies
6960 # metacharacters that are still active within double-quoted strings.
6961 Xsed='sed -e 1s/^X//'
6962 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6964 # Same as above, but do not quote variable references.
6965 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6967 # Sed substitution to delay expansion of an escaped shell variable in a
6968 # double_quote_subst'ed string.
6969 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6971 # Sed substitution to avoid accidental globbing in evaled expressions
6972 no_glob_subst='s/\*/\\\*/g'
6978 default_ofile=libtool
6979 can_build_shared=yes
6981 # All known linkers require a `.a' archive for static linking (except MSVC,
6982 # which needs '.lib').
6984 ltmain="$ac_aux_dir/ltmain.sh"
6985 ofile="$default_ofile"
6986 with_gnu_ld="$lt_cv_prog_gnu_ld"
6988 if test -n "$ac_tool_prefix"; then
6989 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6990 set dummy ${ac_tool_prefix}ar; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_prog_AR+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 if test -n "$AR"; then
6997 ac_cv_prog_AR="$AR" # Let the user override the test.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_prog_AR="${ac_tool_prefix}ar"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 if test -n "$AR"; then
7018 { echo "$as_me:$LINENO: result: $AR" >&5
7019 echo "${ECHO_T}$AR" >&6; }
7021 { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7027 if test -z "$ac_cv_prog_AR"; then
7029 # Extract the first word of "ar", so it can be a program name with args.
7030 set dummy ar; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 if test -n "$ac_ct_AR"; then
7037 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_prog_ac_ct_AR="ar"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7057 if test -n "$ac_ct_AR"; then
7058 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7059 echo "${ECHO_T}$ac_ct_AR" >&6; }
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7065 if test "x$ac_ct_AR" = x; then
7068 case $cross_compiling:$ac_tool_warned in
7070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7071 whose name does not start with the host triplet. If you think this
7072 configuration is useful to you, please write to autoconf@gnu.org." >&5
7073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7074 whose name does not start with the host triplet. If you think this
7075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7076 ac_tool_warned=yes ;;
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_RANLIB+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 if test -n "$RANLIB"; then
7093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 RANLIB=$ac_cv_prog_RANLIB
7113 if test -n "$RANLIB"; then
7114 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7115 echo "${ECHO_T}$RANLIB" >&6; }
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7123 if test -z "$ac_cv_prog_RANLIB"; then
7124 ac_ct_RANLIB=$RANLIB
7125 # Extract the first word of "ranlib", so it can be a program name with args.
7126 set dummy ranlib; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 if test -n "$ac_ct_RANLIB"; then
7133 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_ac_ct_RANLIB="ranlib"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7153 if test -n "$ac_ct_RANLIB"; then
7154 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7155 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7161 if test "x$ac_ct_RANLIB" = x; then
7164 case $cross_compiling:$ac_tool_warned in
7166 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7167 whose name does not start with the host triplet. If you think this
7168 configuration is useful to you, please write to autoconf@gnu.org." >&5
7169 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7170 whose name does not start with the host triplet. If you think this
7171 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7172 ac_tool_warned=yes ;;
7174 RANLIB=$ac_ct_RANLIB
7177 RANLIB="$ac_cv_prog_RANLIB"
7180 if test -n "$ac_tool_prefix"; then
7181 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7182 set dummy ${ac_tool_prefix}strip; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_prog_STRIP+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 if test -n "$STRIP"; then
7189 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 STRIP=$ac_cv_prog_STRIP
7209 if test -n "$STRIP"; then
7210 { echo "$as_me:$LINENO: result: $STRIP" >&5
7211 echo "${ECHO_T}$STRIP" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7219 if test -z "$ac_cv_prog_STRIP"; then
7221 # Extract the first word of "strip", so it can be a program name with args.
7222 set dummy strip; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 if test -n "$ac_ct_STRIP"; then
7229 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_prog_ac_ct_STRIP="strip"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7249 if test -n "$ac_ct_STRIP"; then
7250 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7251 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7253 { echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6; }
7257 if test "x$ac_ct_STRIP" = x; then
7260 case $cross_compiling:$ac_tool_warned in
7262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7263 whose name does not start with the host triplet. If you think this
7264 configuration is useful to you, please write to autoconf@gnu.org." >&5
7265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7266 whose name does not start with the host triplet. If you think this
7267 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7268 ac_tool_warned=yes ;;
7273 STRIP="$ac_cv_prog_STRIP"
7278 old_CFLAGS="$CFLAGS"
7280 # Set sane defaults for various variables
7281 test -z "$AR" && AR=ar
7282 test -z "$AR_FLAGS" && AR_FLAGS=cru
7283 test -z "$AS" && AS=as
7284 test -z "$CC" && CC=cc
7285 test -z "$LTCC" && LTCC=$CC
7286 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7287 test -z "$DLLTOOL" && DLLTOOL=dlltool
7288 test -z "$LD" && LD=ld
7289 test -z "$LN_S" && LN_S="ln -s"
7290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7291 test -z "$NM" && NM=nm
7292 test -z "$SED" && SED=sed
7293 test -z "$OBJDUMP" && OBJDUMP=objdump
7294 test -z "$RANLIB" && RANLIB=:
7295 test -z "$STRIP" && STRIP=:
7296 test -z "$ac_objext" && ac_objext=o
7298 # Determine commands to create old-style static archives.
7299 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7300 old_postinstall_cmds='chmod 644 $oldlib'
7301 old_postuninstall_cmds=
7303 if test -n "$RANLIB"; then
7306 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7309 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7312 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7315 for cc_temp in $compiler""; do
7317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7326 # Only perform the check for file, if the check method requires it
7327 case $deplibs_check_method in
7329 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7330 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7331 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7332 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7340 lt_save_MAGIC_CMD="$MAGIC_CMD"
7341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7343 for ac_dir in $ac_dummy; do
7345 test -z "$ac_dir" && ac_dir=.
7346 if test -f $ac_dir/${ac_tool_prefix}file; then
7347 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7348 if test -n "$file_magic_test_file"; then
7349 case $deplibs_check_method in
7351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7354 $EGREP "$file_magic_regex" > /dev/null; then
7359 *** Warning: the command libtool uses to detect shared libraries,
7360 *** $file_magic_cmd, produces output that libtool cannot recognize.
7361 *** The result is that libtool may fail to recognize shared libraries
7362 *** as such. This will affect the creation of libtool libraries that
7363 *** depend on shared libraries, but programs linked with such libtool
7364 *** libraries will work regardless of this problem. Nevertheless, you
7365 *** may want to report the problem to your system manager and/or to
7366 *** bug-libtool@gnu.org
7376 MAGIC_CMD="$lt_save_MAGIC_CMD"
7381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7382 if test -n "$MAGIC_CMD"; then
7383 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7384 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7386 { echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6; }
7390 if test -z "$lt_cv_path_MAGIC_CMD"; then
7391 if test -n "$ac_tool_prefix"; then
7392 { echo "$as_me:$LINENO: checking for file" >&5
7393 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7402 lt_save_MAGIC_CMD="$MAGIC_CMD"
7403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7404 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7405 for ac_dir in $ac_dummy; do
7407 test -z "$ac_dir" && ac_dir=.
7408 if test -f $ac_dir/file; then
7409 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7410 if test -n "$file_magic_test_file"; then
7411 case $deplibs_check_method in
7413 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7415 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7416 $EGREP "$file_magic_regex" > /dev/null; then
7421 *** Warning: the command libtool uses to detect shared libraries,
7422 *** $file_magic_cmd, produces output that libtool cannot recognize.
7423 *** The result is that libtool may fail to recognize shared libraries
7424 *** as such. This will affect the creation of libtool libraries that
7425 *** depend on shared libraries, but programs linked with such libtool
7426 *** libraries will work regardless of this problem. Nevertheless, you
7427 *** may want to report the problem to your system manager and/or to
7428 *** bug-libtool@gnu.org
7438 MAGIC_CMD="$lt_save_MAGIC_CMD"
7443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7444 if test -n "$MAGIC_CMD"; then
7445 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7446 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7448 { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7462 enable_win32_dll=yes
7464 # Check whether --enable-libtool-lock was given.
7465 if test "${enable_libtool_lock+set}" = set; then
7466 enableval=$enable_libtool_lock;
7469 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7472 # Check whether --with-pic was given.
7473 if test "${with_pic+set}" = set; then
7474 withval=$with_pic; pic_mode="$withval"
7479 test -z "$pic_mode" && pic_mode=default
7481 # Use C for the default configuration in the libtool script
7485 ac_cpp='$CPP $CPPFLAGS'
7486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7491 # Source file extension for C test sources.
7494 # Object file extension for compiled C test sources.
7498 # Code to be used in simple compile tests
7499 lt_simple_compile_test_code="int some_variable = 0;"
7501 # Code to be used in simple link tests
7502 lt_simple_link_test_code='int main(){return(0);}'
7505 # If no C compiler was specified, use CC.
7508 # If no C compiler flags were specified, use CFLAGS.
7509 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7511 # Allow CC to be a program name with arguments.
7515 # save warnings/boilerplate of simple test code
7516 ac_outfile=conftest.$ac_objext
7517 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7519 _lt_compiler_boilerplate=`cat conftest.err`
7522 ac_outfile=conftest.$ac_objext
7523 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7525 _lt_linker_boilerplate=`cat conftest.err`
7530 lt_prog_compiler_no_builtin_flag=
7532 if test "$GCC" = yes; then
7533 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7536 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7537 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7538 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 lt_cv_prog_compiler_rtti_exceptions=no
7542 ac_outfile=conftest.$ac_objext
7543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7544 lt_compiler_flag="-fno-rtti -fno-exceptions"
7545 # Insert the option either (1) after the last *FLAGS variable, or
7546 # (2) before a word containing "conftest.", or (3) at the end.
7547 # Note that $ac_compile itself does not contain backslashes and begins
7548 # with a dollar sign (not a hyphen), so the echo should work correctly.
7549 # The option is referenced via a variable to avoid confusing sed.
7550 lt_compile=`echo "$ac_compile" | $SED \
7551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7553 -e 's:$: $lt_compiler_flag:'`
7554 (eval echo "\"\$as_me:7554: $lt_compile\"" >&5)
7555 (eval "$lt_compile" 2>conftest.err)
7557 cat conftest.err >&5
7558 echo "$as_me:7558: \$? = $ac_status" >&5
7559 if (exit $ac_status) && test -s "$ac_outfile"; then
7560 # The compiler can only warn and ignore the option if not recognized
7561 # So say no if there are warnings other than the usual output.
7562 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7564 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7565 lt_cv_prog_compiler_rtti_exceptions=yes
7571 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7572 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7575 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7582 lt_prog_compiler_wl=
7583 lt_prog_compiler_pic=
7584 lt_prog_compiler_static=
7586 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7587 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7589 if test "$GCC" = yes; then
7590 lt_prog_compiler_wl='-Wl,'
7591 lt_prog_compiler_static='-static'
7595 # All AIX code is PIC.
7596 if test "$host_cpu" = ia64; then
7597 # AIX 5 now supports IA64 processor
7598 lt_prog_compiler_static='-Bstatic'
7603 # FIXME: we need at least 68020 code to build shared libraries, but
7604 # adding the `-m68020' flag to GCC prevents building anything better,
7606 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7610 # PIC is the default for these OSes.
7613 mingw* | cygwin* | pw32* | os2*)
7614 # This hack is so that the source file can tell whether it is being
7615 # built for inclusion in a dll (and should export symbols for example).
7616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7617 # (--disable-auto-import) libraries
7618 lt_prog_compiler_pic='-DDLL_EXPORT'
7621 darwin* | rhapsody*)
7622 # PIC is the default on this platform
7623 # Common symbols not allowed in MH_DYLIB files
7624 lt_prog_compiler_pic='-fno-common'
7628 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7629 # Instead, we relocate shared libraries at runtime.
7633 # Just because we use GCC doesn't mean we suddenly get shared libraries
7634 # on systems that don't support them.
7635 lt_prog_compiler_can_build_shared=no
7640 if test -d /usr/nec; then
7641 lt_prog_compiler_pic=-Kconform_pic
7646 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7653 lt_prog_compiler_pic='-fPIC'
7659 lt_prog_compiler_pic='-fPIC'
7663 # PORTME Check for flag to pass linker flags through the system compiler.
7666 lt_prog_compiler_wl='-Wl,'
7667 if test "$host_cpu" = ia64; then
7668 # AIX 5 now supports IA64 processor
7669 lt_prog_compiler_static='-Bstatic'
7671 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7675 # PIC is the default on this platform
7676 # Common symbols not allowed in MH_DYLIB files
7677 case $cc_basename in
7679 lt_prog_compiler_pic='-qnocommon'
7680 lt_prog_compiler_wl='-Wl,'
7685 mingw* | cygwin* | pw32* | os2*)
7686 # This hack is so that the source file can tell whether it is being
7687 # built for inclusion in a dll (and should export symbols for example).
7688 lt_prog_compiler_pic='-DDLL_EXPORT'
7691 hpux9* | hpux10* | hpux11*)
7692 lt_prog_compiler_wl='-Wl,'
7693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7700 lt_prog_compiler_pic='+Z'
7703 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7704 lt_prog_compiler_static='${wl}-a ${wl}archive'
7707 irix5* | irix6* | nonstopux*)
7708 lt_prog_compiler_wl='-Wl,'
7709 # PIC (with -KPIC) is the default.
7710 lt_prog_compiler_static='-non_shared'
7714 lt_prog_compiler_pic='-KPIC'
7715 lt_prog_compiler_static='-Bstatic'
7718 linux* | k*bsd*-gnu)
7719 case $cc_basename in
7721 lt_prog_compiler_wl='-Wl,'
7722 lt_prog_compiler_pic='-KPIC'
7723 lt_prog_compiler_static='-static'
7725 pgcc* | pgf77* | pgf90* | pgf95*)
7726 # Portland Group compilers (*not* the Pentium gcc compiler,
7727 # which looks to be a dead project)
7728 lt_prog_compiler_wl='-Wl,'
7729 lt_prog_compiler_pic='-fpic'
7730 lt_prog_compiler_static='-Bstatic'
7733 lt_prog_compiler_wl='-Wl,'
7734 # All Alpha code is PIC.
7735 lt_prog_compiler_static='-non_shared'
7738 case `$CC -V 2>&1 | sed 5q` in
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-Bstatic'
7743 lt_prog_compiler_wl='-Wl,'
7746 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7747 lt_prog_compiler_pic='-KPIC'
7748 lt_prog_compiler_static='-Bstatic'
7749 lt_prog_compiler_wl=''
7756 osf3* | osf4* | osf5*)
7757 lt_prog_compiler_wl='-Wl,'
7758 # All OSF/1 code is PIC.
7759 lt_prog_compiler_static='-non_shared'
7763 lt_prog_compiler_static='-non_shared'
7767 lt_prog_compiler_pic='-KPIC'
7768 lt_prog_compiler_static='-Bstatic'
7769 case $cc_basename in
7771 lt_prog_compiler_wl='-Qoption ld ';;
7773 lt_prog_compiler_wl='-Wl,';;
7778 lt_prog_compiler_wl='-Qoption ld '
7779 lt_prog_compiler_pic='-PIC'
7780 lt_prog_compiler_static='-Bstatic'
7783 sysv4 | sysv4.2uw2* | sysv4.3*)
7784 lt_prog_compiler_wl='-Wl,'
7785 lt_prog_compiler_pic='-KPIC'
7786 lt_prog_compiler_static='-Bstatic'
7790 if test -d /usr/nec ;then
7791 lt_prog_compiler_pic='-Kconform_pic'
7792 lt_prog_compiler_static='-Bstatic'
7796 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7797 lt_prog_compiler_wl='-Wl,'
7798 lt_prog_compiler_pic='-KPIC'
7799 lt_prog_compiler_static='-Bstatic'
7803 lt_prog_compiler_wl='-Wl,'
7804 lt_prog_compiler_can_build_shared=no
7808 lt_prog_compiler_pic='-pic'
7809 lt_prog_compiler_static='-Bstatic'
7813 lt_prog_compiler_can_build_shared=no
7818 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7819 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7822 # Check to make sure the PIC flag actually works.
7824 if test -n "$lt_prog_compiler_pic"; then
7826 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7827 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7828 if test "${lt_prog_compiler_pic_works+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 lt_prog_compiler_pic_works=no
7832 ac_outfile=conftest.$ac_objext
7833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7834 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7835 # Insert the option either (1) after the last *FLAGS variable, or
7836 # (2) before a word containing "conftest.", or (3) at the end.
7837 # Note that $ac_compile itself does not contain backslashes and begins
7838 # with a dollar sign (not a hyphen), so the echo should work correctly.
7839 # The option is referenced via a variable to avoid confusing sed.
7840 lt_compile=`echo "$ac_compile" | $SED \
7841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7843 -e 's:$: $lt_compiler_flag:'`
7844 (eval echo "\"\$as_me:7844: $lt_compile\"" >&5)
7845 (eval "$lt_compile" 2>conftest.err)
7847 cat conftest.err >&5
7848 echo "$as_me:7848: \$? = $ac_status" >&5
7849 if (exit $ac_status) && test -s "$ac_outfile"; then
7850 # The compiler can only warn and ignore the option if not recognized
7851 # So say no if there are warnings other than the usual output.
7852 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7855 lt_prog_compiler_pic_works=yes
7861 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7862 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7864 if test x"$lt_prog_compiler_pic_works" = xyes; then
7865 case $lt_prog_compiler_pic in
7867 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7870 lt_prog_compiler_pic=
7871 lt_prog_compiler_can_build_shared=no
7876 # For platforms which do not support PIC, -DPIC is meaningless:
7878 lt_prog_compiler_pic=
7881 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7886 # Check to make sure the static flag actually works.
7888 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7889 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7890 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7891 if test "${lt_prog_compiler_static_works+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 lt_prog_compiler_static_works=no
7895 save_LDFLAGS="$LDFLAGS"
7896 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7897 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7898 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7899 # The linker can only warn and ignore the option if not recognized
7900 # So say no if there are warnings
7901 if test -s conftest.err; then
7902 # Append any errors to the config.log.
7903 cat conftest.err 1>&5
7904 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7906 if diff conftest.exp conftest.er2 >/dev/null; then
7907 lt_prog_compiler_static_works=yes
7910 lt_prog_compiler_static_works=yes
7914 LDFLAGS="$save_LDFLAGS"
7917 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7918 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7920 if test x"$lt_prog_compiler_static_works" = xyes; then
7923 lt_prog_compiler_static=
7927 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7928 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7929 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 lt_cv_prog_compiler_c_o=no
7933 $rm -r conftest 2>/dev/null
7937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7939 lt_compiler_flag="-o out/conftest2.$ac_objext"
7940 # Insert the option either (1) after the last *FLAGS variable, or
7941 # (2) before a word containing "conftest.", or (3) at the end.
7942 # Note that $ac_compile itself does not contain backslashes and begins
7943 # with a dollar sign (not a hyphen), so the echo should work correctly.
7944 lt_compile=`echo "$ac_compile" | $SED \
7945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7947 -e 's:$: $lt_compiler_flag:'`
7948 (eval echo "\"\$as_me:7948: $lt_compile\"" >&5)
7949 (eval "$lt_compile" 2>out/conftest.err)
7951 cat out/conftest.err >&5
7952 echo "$as_me:7952: \$? = $ac_status" >&5
7953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7955 # The compiler can only warn and ignore the option if not recognized
7956 # So say no if there are warnings
7957 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7960 lt_cv_prog_compiler_c_o=yes
7965 # SGI C++ compiler will create directory out/ii_files/ for
7966 # template instantiation
7967 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7968 $rm out/* && rmdir out
7974 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7975 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7978 hard_links="nottested"
7979 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7980 # do not overwrite the value of need_locks provided by the user
7981 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7982 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7987 ln conftest.a conftest.b 2>&5 || hard_links=no
7988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7989 { echo "$as_me:$LINENO: result: $hard_links" >&5
7990 echo "${ECHO_T}$hard_links" >&6; }
7991 if test "$hard_links" = no; then
7992 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7993 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8000 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8001 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8004 allow_undefined_flag=
8005 enable_shared_with_static_runtimes=no
8007 archive_expsym_cmds=
8008 old_archive_From_new_cmds=
8009 old_archive_from_expsyms_cmds=
8010 export_dynamic_flag_spec=
8011 whole_archive_flag_spec=
8012 thread_safe_flag_spec=
8013 hardcode_libdir_flag_spec=
8014 hardcode_libdir_flag_spec_ld=
8015 hardcode_libdir_separator=
8018 hardcode_shlibpath_var=unsupported
8019 link_all_deplibs=unknown
8020 hardcode_automatic=no
8023 always_export_symbols=no
8024 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8025 # include_expsyms should be a list of space-separated symbols to be *always*
8026 # included in the symbol list
8028 # exclude_expsyms can be an extended regexp of symbols to exclude
8029 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8030 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8031 # as well as any symbol that contains `d'.
8032 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8033 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8034 # platforms (ab)use it in PIC code, but their linkers get confused if
8035 # the symbol is explicitly referenced. Since portable code cannot
8036 # rely on this symbol name, it's probably fine to never include it in
8037 # preloaded symbol tables.
8038 extract_expsyms_cmds=
8039 # Just being paranoid about ensuring that cc_basename is set.
8040 for cc_temp in $compiler""; do
8042 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8043 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8048 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8051 cygwin* | mingw* | pw32*)
8052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8053 # When not using gcc, we currently assume that we are using
8054 # Microsoft Visual C++.
8055 if test "$GCC" != yes; then
8060 # we just hope/assume this is gcc and not c89 (= MSVC++)
8069 if test "$with_gnu_ld" = yes; then
8070 # If archive_cmds runs LD, not CC, wlarc should be empty
8073 # Set some defaults for GNU ld with shared library support. These
8074 # are reset later if shared libraries are not supported. Putting them
8075 # here allows them to be overridden if necessary.
8076 runpath_var=LD_RUN_PATH
8077 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8078 export_dynamic_flag_spec='${wl}--export-dynamic'
8079 # ancient GNU ld didn't support --whole-archive et. al.
8080 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8081 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8083 whole_archive_flag_spec=
8085 supports_anon_versioning=no
8086 case `$LD -v 2>/dev/null` in
8087 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8088 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8089 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8090 *\ 2.11.*) ;; # other 2.11 versions
8091 *) supports_anon_versioning=yes ;;
8094 # See if GNU ld supports shared libraries.
8096 aix3* | aix4* | aix5*)
8097 # On AIX/PPC, the GNU linker is very broken
8098 if test "$host_cpu" != ia64; then
8102 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8103 *** to be unable to reliably create shared libraries on AIX.
8104 *** Therefore, libtool is disabling shared libraries support. If you
8105 *** really care for shared libraries, you may want to modify your PATH
8106 *** so that a non-GNU linker is found, and then restart.
8113 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)'
8114 hardcode_libdir_flag_spec='-L$libdir'
8115 hardcode_minus_L=yes
8117 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8118 # that the semantics of dynamic libraries on AmigaOS, at least up
8119 # to version 4, is to share data among multiple programs linked
8120 # with the same dynamic library. Since this doesn't match the
8121 # behavior of shared libraries on other platforms, we can't use
8127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8128 allow_undefined_flag=unsupported
8129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8130 # support --undefined. This deserves some investigation. FIXME
8131 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137 cygwin* | mingw* | pw32*)
8138 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8139 # as there is no search path for DLLs.
8140 hardcode_libdir_flag_spec='-L$libdir'
8141 allow_undefined_flag=unsupported
8142 always_export_symbols=no
8143 enable_shared_with_static_runtimes=yes
8144 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8146 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8148 # If the export-symbols file already is a .def file (1st line
8149 # is EXPORTS), use it as is; otherwise, prepend...
8150 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8151 cp $export_symbols $output_objdir/$soname.def;
8153 echo EXPORTS > $output_objdir/$soname.def;
8154 cat $export_symbols >> $output_objdir/$soname.def;
8156 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8164 hardcode_shlibpath_var=no
8165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8166 export_dynamic_flag_spec='${wl}-E'
8167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8168 # Instead, shared libraries are loaded at an image base (0x10000000 by
8169 # default) and relocated if they conflict, which is a slow very memory
8170 # consuming and fragmenting process. To avoid this, we pick a random,
8171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8172 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8174 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'
8177 gnu* | linux* | k*bsd*-gnu)
8178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8180 case $cc_basename,$host_cpu in
8181 pgcc*) # Portland Group C compiler
8182 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'
8183 tmp_addflag=' $pic_flag'
8185 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8186 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'
8187 tmp_addflag=' $pic_flag -Mnomain' ;;
8188 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8189 tmp_addflag=' -i_dynamic' ;;
8190 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8191 tmp_addflag=' -i_dynamic -nofor_main' ;;
8192 ifc* | ifort*) # Intel Fortran compiler
8193 tmp_addflag=' -nofor_main' ;;
8195 case `$CC -V 2>&1 | sed 5q` in
8196 *Sun\ C*) # Sun C 5.9
8197 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'
8198 tmp_sharedflag='-G' ;;
8199 *Sun\ F*) # Sun Fortran 8.3
8200 tmp_sharedflag='-G' ;;
8202 tmp_sharedflag='-shared' ;;
8204 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206 if test $supports_anon_versioning = yes; then
8207 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8209 $echo "local: *; };" >> $output_objdir/$libname.ver~
8210 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8218 netbsd* | netbsdelf*-gnu)
8219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8220 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8229 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8233 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8234 *** create shared libraries on Solaris systems. Therefore, libtool
8235 *** is disabling shared libraries support. We urge you to upgrade GNU
8236 *** binutils to release 2.9.1 or newer. Another option is to modify
8237 *** your PATH or compiler configuration so that the native linker is
8238 *** used, and then restart.
8241 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8250 case `$LD -v 2>&1` in
8251 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8255 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8256 *** reliably create shared libraries on SCO systems. Therefore, libtool
8257 *** is disabling shared libraries support. We urge you to upgrade GNU
8258 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8259 *** your PATH or compiler configuration so that the native linker is
8260 *** used, and then restart.
8265 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8266 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8277 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8280 hardcode_shlibpath_var=no
8284 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8293 if test "$ld_shlibs" = no; then
8295 hardcode_libdir_flag_spec=
8296 export_dynamic_flag_spec=
8297 whole_archive_flag_spec=
8300 # PORTME fill in a description of your system's linker (not GNU ld)
8303 allow_undefined_flag=unsupported
8304 always_export_symbols=yes
8305 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'
8306 # Note: this linker hardcodes the directories in LIBPATH if there
8307 # are no directories specified by -L.
8308 hardcode_minus_L=yes
8309 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8310 # Neither direct hardcoding nor static linking is supported with a
8312 hardcode_direct=unsupported
8317 if test "$host_cpu" = ia64; then
8318 # On IA64, the linker does run time linking by default, so we don't
8319 # have to do anything special.
8320 aix_use_runtimelinking=no
8321 exp_sym_flag='-Bexport'
8324 # If we're using GNU nm, then we don't want the "-C" option.
8325 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8326 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8327 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'
8329 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'
8331 aix_use_runtimelinking=no
8333 # Test if we are trying to use run time linking or normal
8334 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8335 # need to do runtime linking.
8336 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8337 for ld_flag in $LDFLAGS; do
8338 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8339 aix_use_runtimelinking=yes
8346 exp_sym_flag='-bexport'
8347 no_entry_flag='-bnoentry'
8350 # When large executables or shared objects are built, AIX ld can
8351 # have problems creating the table of contents. If linking a library
8352 # or program results in "error TOC overflow" add -mminimal-toc to
8353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8358 hardcode_libdir_separator=':'
8359 link_all_deplibs=yes
8361 if test "$GCC" = yes; then
8362 case $host_os in aix4.[012]|aix4.[012].*)
8363 # We only want to do this on AIX 4.2 and lower, the check
8364 # below for broken collect2 doesn't work under 4.3+
8365 collect2name=`${CC} -print-prog-name=collect2`
8366 if test -f "$collect2name" && \
8367 strings "$collect2name" | grep resolve_lib_name >/dev/null
8369 # We have reworked collect2
8372 # We have old collect2
8373 hardcode_direct=unsupported
8374 # It fails to find uninstalled libraries when the uninstalled
8375 # path is not listed in the libpath. Setting hardcode_minus_L
8376 # to unsupported forces relinking
8377 hardcode_minus_L=yes
8378 hardcode_libdir_flag_spec='-L$libdir'
8379 hardcode_libdir_separator=
8383 shared_flag='-shared'
8384 if test "$aix_use_runtimelinking" = yes; then
8385 shared_flag="$shared_flag "'${wl}-G'
8389 if test "$host_cpu" = ia64; then
8390 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8391 # chokes on -Wl,-G. The following line is correct:
8394 if test "$aix_use_runtimelinking" = yes; then
8395 shared_flag='${wl}-G'
8397 shared_flag='${wl}-bM:SRE'
8402 # It seems that -bexpall does not export symbols beginning with
8403 # underscore (_), so it is better to generate a list of symbols to export.
8404 always_export_symbols=yes
8405 if test "$aix_use_runtimelinking" = yes; then
8406 # Warning - without using the other runtime loading flags (-brtl),
8407 # -berok will link without error, but may produce a broken library.
8408 allow_undefined_flag='-berok'
8409 # Determine the default libpath from the value encoded in an empty executable.
8410 cat >conftest.$ac_ext <<_ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (ac_try="$ac_link"
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_link") 2>conftest.er1
8434 grep -v '^ *+' conftest.er1 >conftest.err
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } && {
8439 test -z "$ac_c_werror_flag" ||
8440 test ! -s conftest.err
8441 } && test -s conftest$ac_exeext &&
8442 $as_test_x conftest$ac_exeext; then
8444 lt_aix_libpath_sed='
8445 /Import File Strings/,/^$/ {
8451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8452 # Check for a 64-bit object if we didn't find anything.
8453 if test -z "$aix_libpath"; then
8454 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8464 conftest$ac_exeext conftest.$ac_ext
8465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8467 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8468 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8470 if test "$host_cpu" = ia64; then
8471 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8472 allow_undefined_flag="-z nodefs"
8473 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"
8475 # Determine the default libpath from the value encoded in an empty executable.
8476 cat >conftest.$ac_ext <<_ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (ac_try="$ac_link"
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_link") 2>conftest.er1
8500 grep -v '^ *+' conftest.er1 >conftest.err
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && {
8505 test -z "$ac_c_werror_flag" ||
8506 test ! -s conftest.err
8507 } && test -s conftest$ac_exeext &&
8508 $as_test_x conftest$ac_exeext; then
8510 lt_aix_libpath_sed='
8511 /Import File Strings/,/^$/ {
8517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8518 # Check for a 64-bit object if we didn't find anything.
8519 if test -z "$aix_libpath"; then
8520 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8530 conftest$ac_exeext conftest.$ac_ext
8531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8533 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8534 # Warning - without using the other run time loading flags,
8535 # -berok will link without error, but may produce a broken library.
8536 no_undefined_flag=' ${wl}-bernotok'
8537 allow_undefined_flag=' ${wl}-berok'
8538 # Exported symbols can be pulled into shared objects from archives
8539 whole_archive_flag_spec='$convenience'
8540 archive_cmds_need_lc=yes
8541 # This is similar to how AIX traditionally builds its shared libraries.
8542 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'
8548 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)'
8549 hardcode_libdir_flag_spec='-L$libdir'
8550 hardcode_minus_L=yes
8551 # see comment about different semantics on the GNU ld section
8556 export_dynamic_flag_spec=-rdynamic
8559 cygwin* | mingw* | pw32*)
8560 # When not using gcc, we currently assume that we are using
8561 # Microsoft Visual C++.
8562 # hardcode_libdir_flag_spec is actually meaningless, as there is
8563 # no search path for DLLs.
8564 hardcode_libdir_flag_spec=' '
8565 allow_undefined_flag=unsupported
8566 # Tell ltmain to make .lib files, not .a files.
8568 # Tell ltmain to make .dll files, not .so files.
8570 # FIXME: Setting linknames here is a bad hack.
8571 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8572 # The linker will automatically build a .lib file if we build a DLL.
8573 old_archive_From_new_cmds='true'
8574 # FIXME: Should let the user specify the lib program.
8575 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8576 fix_srcfile_path='`cygpath -w "$srcfile"`'
8577 enable_shared_with_static_runtimes=yes
8580 darwin* | rhapsody*)
8582 rhapsody* | darwin1.[012])
8583 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8586 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8587 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8589 case ${MACOSX_DEPLOYMENT_TARGET} in
8591 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8594 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8600 archive_cmds_need_lc=no
8602 hardcode_automatic=yes
8603 hardcode_shlibpath_var=unsupported
8604 whole_archive_flag_spec=''
8605 link_all_deplibs=yes
8606 if test "$GCC" = yes ; then
8607 output_verbose_link_cmd='echo'
8608 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8609 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8610 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8611 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8612 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8614 case $cc_basename in
8616 output_verbose_link_cmd='echo'
8617 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8618 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8619 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8620 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8621 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8632 hardcode_libdir_flag_spec='-L$libdir'
8633 hardcode_shlibpath_var=no
8640 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8641 # support. Future versions do this automatically, but an explicit c++rt0.o
8642 # does not break anything, and helps significantly (at the cost of a little
8645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8646 hardcode_libdir_flag_spec='-R$libdir'
8648 hardcode_shlibpath_var=no
8651 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8655 hardcode_minus_L=yes
8656 hardcode_shlibpath_var=no
8659 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8660 freebsd* | dragonfly*)
8661 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8662 hardcode_libdir_flag_spec='-R$libdir'
8664 hardcode_shlibpath_var=no
8668 if test "$GCC" = yes; then
8669 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'
8671 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'
8673 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8674 hardcode_libdir_separator=:
8677 # hardcode_minus_L: Not really in the search PATH,
8678 # but as the default location of the library.
8679 hardcode_minus_L=yes
8680 export_dynamic_flag_spec='${wl}-E'
8684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8685 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8687 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8689 if test "$with_gnu_ld" = no; then
8690 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8691 hardcode_libdir_separator=:
8694 export_dynamic_flag_spec='${wl}-E'
8696 # hardcode_minus_L: Not really in the search PATH,
8697 # but as the default location of the library.
8698 hardcode_minus_L=yes
8703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8706 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8709 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8724 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8728 if test "$with_gnu_ld" = no; then
8729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8730 hardcode_libdir_separator=:
8734 hardcode_libdir_flag_spec_ld='+b $libdir'
8736 hardcode_shlibpath_var=no
8740 export_dynamic_flag_spec='${wl}-E'
8742 # hardcode_minus_L: Not really in the search PATH,
8743 # but as the default location of the library.
8744 hardcode_minus_L=yes
8750 irix5* | irix6* | nonstopux*)
8751 if test "$GCC" = yes; then
8752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8754 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8755 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8758 hardcode_libdir_separator=:
8759 link_all_deplibs=yes
8762 netbsd* | netbsdelf*-gnu)
8763 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8766 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8768 hardcode_libdir_flag_spec='-R$libdir'
8770 hardcode_shlibpath_var=no
8774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777 hardcode_libdir_separator=:
8778 hardcode_shlibpath_var=no
8782 if test -f /usr/libexec/ld.so; then
8784 hardcode_shlibpath_var=no
8785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8787 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8789 export_dynamic_flag_spec='${wl}-E'
8792 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8794 hardcode_libdir_flag_spec='-R$libdir'
8797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8798 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 hardcode_minus_L=yes
8810 allow_undefined_flag=unsupported
8811 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'
8812 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8816 if test "$GCC" = yes; then
8817 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8818 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8820 allow_undefined_flag=' -expect_unresolved \*'
8821 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8824 hardcode_libdir_separator=:
8827 osf4* | osf5*) # as osf3* with the addition of -msym flag
8828 if test "$GCC" = yes; then
8829 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8830 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833 allow_undefined_flag=' -expect_unresolved \*'
8834 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8835 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8836 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8838 # Both c and cxx compiler support -rpath directly
8839 hardcode_libdir_flag_spec='-rpath $libdir'
8841 hardcode_libdir_separator=:
8845 no_undefined_flag=' -z text'
8846 if test "$GCC" = yes; then
8848 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8850 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8853 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8854 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8855 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8857 hardcode_libdir_flag_spec='-R$libdir'
8858 hardcode_shlibpath_var=no
8860 solaris2.[0-5] | solaris2.[0-5].*) ;;
8862 # The compiler driver will combine and reorder linker options,
8863 # but understands `-z linker_flag'. GCC discards it without `$wl',
8864 # but is careful enough not to reorder.
8865 # Supported since Solaris 2.6 (maybe 2.5.1?)
8866 if test "$GCC" = yes; then
8867 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8869 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8873 link_all_deplibs=yes
8877 if test "x$host_vendor" = xsequent; then
8878 # Use $CC to link under sequent, because it throws in some extra .o
8879 # files that make .init and .fini sections work.
8880 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8882 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_libdir_flag_spec='-L$libdir'
8886 hardcode_minus_L=yes
8887 hardcode_shlibpath_var=no
8891 case $host_vendor in
8893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8894 hardcode_direct=yes # is this really true???
8897 ## LD is ld it makes a PLAMLIB
8898 ## CC just makes a GrossModule.
8899 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8900 reload_cmds='$CC -r -o $output$reload_objs'
8904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8908 runpath_var='LD_RUN_PATH'
8909 hardcode_shlibpath_var=no
8913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914 hardcode_shlibpath_var=no
8915 export_dynamic_flag_spec='-Bexport'
8919 if test -d /usr/nec; then
8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_shlibpath_var=no
8922 runpath_var=LD_RUN_PATH
8923 hardcode_runpath_var=yes
8928 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8929 no_undefined_flag='${wl}-z,text'
8930 archive_cmds_need_lc=no
8931 hardcode_shlibpath_var=no
8932 runpath_var='LD_RUN_PATH'
8934 if test "$GCC" = yes; then
8935 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8936 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8938 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8939 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8943 sysv5* | sco3.2v5* | sco5v6*)
8944 # Note: We can NOT use -z defs as we might desire, because we do not
8945 # link with -lc, and that would cause any symbols used from libc to
8946 # always be unresolved, which means just about no library would
8947 # ever link correctly. If we're not using GNU ld we use -z text
8948 # though, which does catch some bad symbols but isn't as heavy-handed
8950 no_undefined_flag='${wl}-z,text'
8951 allow_undefined_flag='${wl}-z,nodefs'
8952 archive_cmds_need_lc=no
8953 hardcode_shlibpath_var=no
8954 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8955 hardcode_libdir_separator=':'
8956 link_all_deplibs=yes
8957 export_dynamic_flag_spec='${wl}-Bexport'
8958 runpath_var='LD_RUN_PATH'
8960 if test "$GCC" = yes; then
8961 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8962 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8964 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8965 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971 hardcode_libdir_flag_spec='-L$libdir'
8972 hardcode_shlibpath_var=no
8981 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8982 echo "${ECHO_T}$ld_shlibs" >&6; }
8983 test "$ld_shlibs" = no && can_build_shared=no
8986 # Do we need to explicitly link libc?
8988 case "x$archive_cmds_need_lc" in
8990 # Assume -lc should be added
8991 archive_cmds_need_lc=yes
8993 if test "$enable_shared" = yes && test "$GCC" = yes; then
8994 case $archive_cmds in
8996 # FIXME: we may have to deal with multi-command sequences.
8999 # Test whether the compiler implicitly links with -lc since on some
9000 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9001 # to ld, don't add -lc before -lgcc.
9002 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9003 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9008 (eval $ac_compile) 2>&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } 2>conftest.err; then
9014 libobjs=conftest.$ac_objext
9016 wl=$lt_prog_compiler_wl
9017 pic_flag=$lt_prog_compiler_pic
9023 lt_save_allow_undefined_flag=$allow_undefined_flag
9024 allow_undefined_flag=
9025 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9026 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }
9031 archive_cmds_need_lc=no
9033 archive_cmds_need_lc=yes
9035 allow_undefined_flag=$lt_save_allow_undefined_flag
9037 cat conftest.err 1>&5
9040 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9041 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9048 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9049 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9051 libname_spec='lib$name'
9059 shlibpath_overrides_runpath=unknown
9061 dynamic_linker="$host_os ld.so"
9062 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9064 if test "$GCC" = yes; then
9066 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9067 *) lt_awk_arg="/^libraries:/" ;;
9069 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9070 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9071 # if the path contains ";" then we assume it to be the separator
9072 # otherwise default to the standard path separator (i.e. ":") - it is
9073 # assumed that no part of a normal pathname contains ";" but that should
9074 # okay in the real world where ";" in dirpaths is itself problematic.
9075 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9077 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9079 # Ok, now we have the path, separated by spaces, we can step through it
9080 # and add multilib dir if necessary.
9081 lt_tmp_lt_search_path_spec=
9082 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9083 for lt_sys_path in $lt_search_path_spec; do
9084 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9085 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9087 test -d "$lt_sys_path" && \
9088 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9091 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9092 BEGIN {RS=" "; FS="/|\n";} {
9095 for (lt_i = NF; lt_i > 0; lt_i--) {
9096 if ($lt_i != "" && $lt_i != ".") {
9097 if ($lt_i == "..") {
9100 if (lt_count == 0) {
9101 lt_foo="/" $lt_i lt_foo;
9108 if (lt_foo != "") { lt_freq[lt_foo]++; }
9109 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9111 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9115 need_lib_prefix=unknown
9116 hardcode_into_libs=no
9118 # when you set need_version to no, make sure it does not cause -set_version
9119 # flags to be left without arguments
9120 need_version=unknown
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9126 shlibpath_var=LIBPATH
9128 # AIX 3 has no versioning support, so we append a major version to the name.
9129 soname_spec='${libname}${release}${shared_ext}$major'
9136 hardcode_into_libs=yes
9137 if test "$host_cpu" = ia64; then
9138 # AIX 5 supports IA64
9139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9140 shlibpath_var=LD_LIBRARY_PATH
9142 # With GCC up to 2.95.x, collect2 would create an import file
9143 # for dependence libraries. The import file would start with
9144 # the line `#! .'. This would cause the generated library to
9145 # depend on `.', always an invalid library. This was fixed in
9146 # development snapshots of GCC prior to 3.0.
9148 aix4 | aix4.[01] | aix4.[01].*)
9149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9151 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9159 # soname into executable. Probably we can add versioning support to
9160 # collect2, so additional links can be useful in future.
9161 if test "$aix_use_runtimelinking" = yes; then
9162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9163 # instead of lib<name>.a to let people know that these are not
9164 # typical AIX shared libraries.
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9167 # We preserve .a as extension for shared libraries through AIX4.2
9168 # and later when we are not doing run time linking.
9169 library_names_spec='${libname}${release}.a $libname.a'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9172 shlibpath_var=LIBPATH
9177 library_names_spec='$libname.ixlibrary $libname.a'
9178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9179 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'
9183 library_names_spec='${libname}${shared_ext}'
9184 dynamic_linker="$host_os ld.so"
9185 shlibpath_var=LIBRARY_PATH
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9194 shlibpath_var=LD_LIBRARY_PATH
9195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9197 # the default ld.so.conf also contains /usr/contrib/lib and
9198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9199 # libtool to hard-code these into programs
9202 cygwin* | mingw* | pw32*)
9203 version_type=windows
9208 case $GCC,$host_os in
9209 yes,cygwin* | yes,mingw* | yes,pw32*)
9210 library_names_spec='$libname.dll.a'
9211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9212 postinstall_cmds='base_file=`basename \${file}`~
9213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9214 dldir=$destdir/`dirname \$dlpath`~
9215 test -d \$dldir || mkdir -p \$dldir~
9216 $install_prog $dir/$dlname \$dldir/$dlname~
9217 chmod a+x \$dldir/$dlname'
9218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9219 dlpath=$dir/\$dldll~
9221 shlibpath_overrides_runpath=yes
9225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9230 # MinGW DLLs use traditional 'lib' prefix
9231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9233 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9234 # It is most probably a Windows format PATH printed by
9235 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9236 # path with ; separators, and with drive letters. We can handle the
9237 # drive letters (cygwin fileutils understands them), so leave them,
9238 # especially as we might pass files found there to a mingw objdump,
9239 # which wouldn't understand a cygwinified path. Ahh.
9240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9246 # pw32 DLLs use 'pw' prefix rather than 'lib'
9247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9256 dynamic_linker='Win32 ld.exe'
9257 # FIXME: first we should search . and the directory the executable is in
9261 darwin* | rhapsody*)
9262 dynamic_linker="$host_os dyld"
9266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9267 soname_spec='${libname}${release}${major}$shared_ext'
9268 shlibpath_overrides_runpath=yes
9269 shlibpath_var=DYLD_LIBRARY_PATH
9270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9272 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 shlibpath_var=LD_LIBRARY_PATH
9289 freebsd* | dragonfly*)
9290 # DragonFly does not have aout. When/if they implement a new
9291 # versioning mechanism, adjust this.
9292 if test -x /usr/bin/objformat; then
9293 objformat=`/usr/bin/objformat`
9296 freebsd[123]*) objformat=aout ;;
9300 version_type=freebsd-$objformat
9301 case $version_type in
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9312 shlibpath_var=LD_LIBRARY_PATH
9315 shlibpath_overrides_runpath=yes
9317 freebsd3.[01]* | freebsdelf3.[01]*)
9318 shlibpath_overrides_runpath=yes
9319 hardcode_into_libs=yes
9321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9323 shlibpath_overrides_runpath=no
9324 hardcode_into_libs=yes
9326 *) # from 4.6 on, and DragonFly
9327 shlibpath_overrides_runpath=yes
9328 hardcode_into_libs=yes
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 hardcode_into_libs=yes
9343 hpux9* | hpux10* | hpux11*)
9344 # Give a soname corresponding to the major version so that dld.sl refuses to
9345 # link against other versions.
9352 hardcode_into_libs=yes
9353 dynamic_linker="$host_os dld.so"
9354 shlibpath_var=LD_LIBRARY_PATH
9355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 if test "X$HPUX_IA64_MODE" = X32; then
9359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9367 hardcode_into_libs=yes
9368 dynamic_linker="$host_os dld.sl"
9369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9378 dynamic_linker="$host_os dld.sl"
9379 shlibpath_var=SHLIB_PATH
9380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9385 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9386 postinstall_cmds='chmod 555 $lib'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath=no
9398 hardcode_into_libs=yes
9401 irix5* | irix6* | nonstopux*)
9403 nonstopux*) version_type=nonstopux ;;
9405 if test "$lt_cv_prog_gnu_ld" = yes; then
9413 soname_spec='${libname}${release}${shared_ext}$major'
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9416 irix5* | nonstopux*)
9420 case $LD in # libtool.m4 will add one of these switches to LD
9421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9422 libsuff= shlibsuff= libmagic=32-bit;;
9423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9424 libsuff=32 shlibsuff=N32 libmagic=N32;;
9425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9427 *) libsuff= shlibsuff= libmagic=never-match;;
9431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9432 shlibpath_overrides_runpath=no
9433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9435 hardcode_into_libs=yes
9438 # No shared lib support for Linux oldld, aout, or coff.
9439 linux*oldld* | linux*aout* | linux*coff*)
9443 # This must be Linux ELF.
9444 linux* | k*bsd*-gnu)
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9451 shlibpath_var=LD_LIBRARY_PATH
9452 shlibpath_overrides_runpath=no
9453 # This implies no fast_install, which is unacceptable.
9454 # Some rework will be needed to allow for fast_install
9455 # before this can be enabled.
9456 hardcode_into_libs=yes
9458 # Append ld.so.conf contents to the search path
9459 if test -f /etc/ld.so.conf; then
9460 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' ' '`
9461 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9464 # We used to test for /lib/ld.so.1 and disable shared libraries on
9465 # powerpc, because MkLinux only supported shared libraries with the
9466 # GNU dynamic linker. Since this was broken with cross compilers,
9467 # most powerpc-linux boxes support dynamic linking these days and
9468 # people can always --disable-shared, the test was removed, and we
9469 # assume the GNU/Linux dynamic linker is in use.
9470 dynamic_linker='GNU/Linux ld.so'
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 shlibpath_overrides_runpath=no
9481 hardcode_into_libs=yes
9482 dynamic_linker='NetBSD ld.elf_so'
9489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9492 dynamic_linker='NetBSD (a.out) ld.so'
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 dynamic_linker='NetBSD ld.elf_so'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 shlibpath_overrides_runpath=yes
9500 hardcode_into_libs=yes
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506 shlibpath_var=LD_LIBRARY_PATH
9507 shlibpath_overrides_runpath=yes
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 shlibpath_overrides_runpath=yes
9522 sys_lib_dlsearch_path_spec="/usr/lib"
9524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9526 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9527 *) need_version=no ;;
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9534 openbsd2.[89] | openbsd2.[89].*)
9535 shlibpath_overrides_runpath=no
9538 shlibpath_overrides_runpath=yes
9542 shlibpath_overrides_runpath=yes
9547 libname_spec='$name'
9550 library_names_spec='$libname${shared_ext} $libname.a'
9551 dynamic_linker='OS/2 ld.exe'
9552 shlibpath_var=LIBPATH
9555 osf3* | osf4* | osf5*)
9559 soname_spec='${libname}${release}${shared_ext}$major'
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561 shlibpath_var=LD_LIBRARY_PATH
9562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575 soname_spec='${libname}${release}${shared_ext}$major'
9576 shlibpath_var=LD_LIBRARY_PATH
9577 shlibpath_overrides_runpath=yes
9578 hardcode_into_libs=yes
9579 # ldd complains unless libraries are executable
9580 postinstall_cmds='chmod +x $lib'
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9587 shlibpath_var=LD_LIBRARY_PATH
9588 shlibpath_overrides_runpath=yes
9589 if test "$with_gnu_ld" = yes; then
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 shlibpath_var=LD_LIBRARY_PATH
9600 case $host_vendor in
9602 shlibpath_overrides_runpath=no
9604 export_dynamic_flag_spec='${wl}-Blargedynsym'
9605 runpath_var=LD_RUN_PATH
9613 shlibpath_overrides_runpath=no
9614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9620 if test -d /usr/nec ;then
9622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9623 soname_spec='$libname${shared_ext}.$major'
9624 shlibpath_var=LD_LIBRARY_PATH
9628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9629 version_type=freebsd-elf
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 hardcode_into_libs=yes
9636 if test "$with_gnu_ld" = yes; then
9637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9638 shlibpath_overrides_runpath=no
9640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9641 shlibpath_overrides_runpath=yes
9644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9648 sys_lib_dlsearch_path_spec='/usr/lib'
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 shlibpath_var=LD_LIBRARY_PATH
9662 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9663 echo "${ECHO_T}$dynamic_linker" >&6; }
9664 test "$dynamic_linker" = no && can_build_shared=no
9666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9667 if test "$GCC" = yes; then
9668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9671 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9674 if test -n "$hardcode_libdir_flag_spec" || \
9675 test -n "$runpath_var" || \
9676 test "X$hardcode_automatic" = "Xyes" ; then
9678 # We can hardcode non-existant directories.
9679 if test "$hardcode_direct" != no &&
9680 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9681 # have to relink, otherwise we might link with an installed library
9682 # when we should be linking with a yet-to-be-installed one
9683 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9684 test "$hardcode_minus_L" != no; then
9685 # Linking always hardcodes the temporary library directory.
9686 hardcode_action=relink
9688 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9689 hardcode_action=immediate
9692 # We cannot hardcode anything, or else we can only hardcode existing
9694 hardcode_action=unsupported
9696 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9697 echo "${ECHO_T}$hardcode_action" >&6; }
9699 if test "$hardcode_action" = relink; then
9700 # Fast installation is not supported
9701 enable_fast_install=no
9702 elif test "$shlibpath_overrides_runpath" = yes ||
9703 test "$enable_shared" = no; then
9704 # Fast installation is not necessary
9705 enable_fast_install=needless
9710 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9712 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9713 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9714 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9715 { echo "$as_me:$LINENO: result: yes" >&5
9716 echo "${ECHO_T}yes" >&6; }
9718 # FIXME - insert some real tests, host_os isn't really good enough
9721 if test -n "$STRIP" ; then
9722 striplib="$STRIP -x"
9723 old_striplib="$STRIP -S"
9724 { echo "$as_me:$LINENO: result: yes" >&5
9725 echo "${ECHO_T}yes" >&6; }
9727 { echo "$as_me:$LINENO: result: no" >&5
9728 echo "${ECHO_T}no" >&6; }
9732 { echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6; }
9738 if test "x$enable_dlopen" != xyes; then
9739 enable_dlopen=unknown
9740 enable_dlopen_self=unknown
9741 enable_dlopen_self_static=unknown
9748 lt_cv_dlopen="load_add_on"
9750 lt_cv_dlopen_self=yes
9754 lt_cv_dlopen="LoadLibrary"
9759 lt_cv_dlopen="dlopen"
9764 # if libdl is installed we need to link against it
9765 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 ac_check_lib_save_LIBS=$LIBS
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9779 /* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_link") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && {
9808 test -z "$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 } && test -s conftest$ac_exeext &&
9811 $as_test_x conftest$ac_exeext; then
9812 ac_cv_lib_dl_dlopen=yes
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_cv_lib_dl_dlopen=no
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821 conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9826 if test $ac_cv_lib_dl_dlopen = yes; then
9827 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9832 lt_cv_dlopen_self=yes
9839 { echo "$as_me:$LINENO: checking for shl_load" >&5
9840 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9841 if test "${ac_cv_func_shl_load+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9852 #define shl_load innocuous_shl_load
9854 /* System header to define __stub macros and hopefully few prototypes,
9855 which can conflict with char shl_load (); below.
9856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857 <limits.h> exists even on freestanding compilers. */
9860 # include <limits.h>
9862 # include <assert.h>
9867 /* Override any GCC internal prototype to avoid an error.
9868 Use char because int might match the return type of a GCC
9869 builtin and then its argument prototype would still apply. */
9874 /* The GNU C library defines this for functions which it implements
9875 to always fail with ENOSYS. Some functions are actually named
9876 something starting with __ and the normal name is an alias. */
9877 #if defined __stub_shl_load || defined __stub___shl_load
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_link") 2>conftest.er1
9898 grep -v '^ *+' conftest.er1 >conftest.err
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } && {
9903 test -z "$ac_c_werror_flag" ||
9904 test ! -s conftest.err
9905 } && test -s conftest$ac_exeext &&
9906 $as_test_x conftest$ac_exeext; then
9907 ac_cv_func_shl_load=yes
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_cv_func_shl_load=no
9915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9916 conftest$ac_exeext conftest.$ac_ext
9918 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9919 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9920 if test $ac_cv_func_shl_load = yes; then
9921 lt_cv_dlopen="shl_load"
9923 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9924 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9925 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 ac_check_lib_save_LIBS=$LIBS
9930 cat >conftest.$ac_ext <<_ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9937 /* Override any GCC internal prototype to avoid an error.
9938 Use char because int might match the return type of a GCC
9939 builtin and then its argument prototype would still apply. */
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_link") 2>conftest.er1
9961 grep -v '^ *+' conftest.er1 >conftest.err
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest$ac_exeext &&
9969 $as_test_x conftest$ac_exeext; then
9970 ac_cv_lib_dld_shl_load=yes
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_cv_lib_dld_shl_load=no
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979 conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9982 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9983 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9984 if test $ac_cv_lib_dld_shl_load = yes; then
9985 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9987 { echo "$as_me:$LINENO: checking for dlopen" >&5
9988 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9989 if test "${ac_cv_func_dlopen+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10000 #define dlopen innocuous_dlopen
10002 /* System header to define __stub macros and hopefully few prototypes,
10003 which can conflict with char dlopen (); below.
10004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005 <limits.h> exists even on freestanding compilers. */
10008 # include <limits.h>
10010 # include <assert.h>
10015 /* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10022 /* The GNU C library defines this for functions which it implements
10023 to always fail with ENOSYS. Some functions are actually named
10024 something starting with __ and the normal name is an alias. */
10025 #if defined __stub_dlopen || defined __stub___dlopen
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_link") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1 >conftest.err
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest$ac_exeext &&
10054 $as_test_x conftest$ac_exeext; then
10055 ac_cv_func_dlopen=yes
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10060 ac_cv_func_dlopen=no
10063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10064 conftest$ac_exeext conftest.$ac_ext
10066 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10067 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10068 if test $ac_cv_func_dlopen = yes; then
10069 lt_cv_dlopen="dlopen"
10071 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10072 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 ac_check_lib_save_LIBS=$LIBS
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (ac_try="$ac_link"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_link") 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest$ac_exeext &&
10117 $as_test_x conftest$ac_exeext; then
10118 ac_cv_lib_dl_dlopen=yes
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_cv_lib_dl_dlopen=no
10126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10127 conftest$ac_exeext conftest.$ac_ext
10128 LIBS=$ac_check_lib_save_LIBS
10130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10131 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10132 if test $ac_cv_lib_dl_dlopen = yes; then
10133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10135 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10136 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10137 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 ac_check_lib_save_LIBS=$LIBS
10141 LIBS="-lsvld $LIBS"
10142 cat >conftest.$ac_ext <<_ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10149 /* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_link") 2>conftest.er1
10173 grep -v '^ *+' conftest.er1 >conftest.err
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && {
10178 test -z "$ac_c_werror_flag" ||
10179 test ! -s conftest.err
10180 } && test -s conftest$ac_exeext &&
10181 $as_test_x conftest$ac_exeext; then
10182 ac_cv_lib_svld_dlopen=yes
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_cv_lib_svld_dlopen=no
10190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191 conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_lib_save_LIBS
10194 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10195 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10196 if test $ac_cv_lib_svld_dlopen = yes; then
10197 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10199 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10200 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10201 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 ac_check_lib_save_LIBS=$LIBS
10206 cat >conftest.$ac_ext <<_ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10223 return dld_link ();
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest$ac_exeext &&
10245 $as_test_x conftest$ac_exeext; then
10246 ac_cv_lib_dld_dld_link=yes
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_cv_lib_dld_dld_link=no
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10259 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10260 if test $ac_cv_lib_dld_dld_link = yes; then
10261 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10282 if test "x$lt_cv_dlopen" != xno; then
10288 case $lt_cv_dlopen in
10290 save_CPPFLAGS="$CPPFLAGS"
10291 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10293 save_LDFLAGS="$LDFLAGS"
10294 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10297 LIBS="$lt_cv_dlopen_libs $LIBS"
10299 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10300 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10301 if test "${lt_cv_dlopen_self+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 if test "$cross_compiling" = yes; then :
10305 lt_cv_dlopen_self=cross
10307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10308 lt_status=$lt_dlunknown
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10310 "configure"
10311 #include "confdefs.h"
10320 # define LT_DLGLOBAL RTLD_GLOBAL
10323 # define LT_DLGLOBAL DL_GLOBAL
10325 # define LT_DLGLOBAL 0
10329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10330 find out it does not work in some platform. */
10331 #ifndef LT_DLLAZY_OR_NOW
10333 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10336 # define LT_DLLAZY_OR_NOW DL_LAZY
10339 # define LT_DLLAZY_OR_NOW RTLD_NOW
10342 # define LT_DLLAZY_OR_NOW DL_NOW
10344 # define LT_DLLAZY_OR_NOW 0
10352 extern "C" void exit (int);
10355 void fnord() { int i=42;}
10358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10359 int status = $lt_dlunknown;
10363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10365 /* dlclose (self); */
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10378 (./conftest; exit; ) >&5 2>/dev/null
10380 case x$lt_status in
10381 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10382 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10383 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10386 # compilation failed
10387 lt_cv_dlopen_self=no
10394 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10395 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10397 if test "x$lt_cv_dlopen_self" = xyes; then
10398 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10399 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10400 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10401 if test "${lt_cv_dlopen_self_static+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 if test "$cross_compiling" = yes; then :
10405 lt_cv_dlopen_self_static=cross
10407 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10408 lt_status=$lt_dlunknown
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10410 "configure"
10411 #include "confdefs.h"
10420 # define LT_DLGLOBAL RTLD_GLOBAL
10423 # define LT_DLGLOBAL DL_GLOBAL
10425 # define LT_DLGLOBAL 0
10429 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10430 find out it does not work in some platform. */
10431 #ifndef LT_DLLAZY_OR_NOW
10433 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10436 # define LT_DLLAZY_OR_NOW DL_LAZY
10439 # define LT_DLLAZY_OR_NOW RTLD_NOW
10442 # define LT_DLLAZY_OR_NOW DL_NOW
10444 # define LT_DLLAZY_OR_NOW 0
10452 extern "C" void exit (int);
10455 void fnord() { int i=42;}
10458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10459 int status = $lt_dlunknown;
10463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10464 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10465 /* dlclose (self); */
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10478 (./conftest; exit; ) >&5 2>/dev/null
10480 case x$lt_status in
10481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10483 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10486 # compilation failed
10487 lt_cv_dlopen_self_static=no
10494 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10495 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10498 CPPFLAGS="$save_CPPFLAGS"
10499 LDFLAGS="$save_LDFLAGS"
10504 case $lt_cv_dlopen_self in
10505 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10506 *) enable_dlopen_self=unknown ;;
10509 case $lt_cv_dlopen_self_static in
10510 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10511 *) enable_dlopen_self_static=unknown ;;
10516 # Report which library types will actually be built
10517 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10518 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10519 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10520 echo "${ECHO_T}$can_build_shared" >&6; }
10522 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10523 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10524 test "$can_build_shared" = "no" && enable_shared=no
10526 # On AIX, shared libraries and static libraries use the same namespace, and
10527 # are all built from PIC.
10530 test "$enable_shared" = yes && enable_static=no
10531 if test -n "$RANLIB"; then
10532 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10533 postinstall_cmds='$RANLIB $lib'
10538 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10539 test "$enable_shared" = yes && enable_static=no
10543 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10544 echo "${ECHO_T}$enable_shared" >&6; }
10546 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10547 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10548 # Make sure either enable_shared or enable_static is yes.
10549 test "$enable_shared" = yes || enable_static=yes
10550 { echo "$as_me:$LINENO: result: $enable_static" >&5
10551 echo "${ECHO_T}$enable_static" >&6; }
10553 # The else clause should only fire when bootstrapping the
10554 # libtool distribution, otherwise you forgot to ship ltmain.sh
10555 # with your package, and you will get complaints that there are
10556 # no rules to generate ltmain.sh.
10557 if test -f "$ltmain"; then
10558 # See if we are running on zsh, and set the options which allow our commands through
10559 # without removal of \ escapes.
10560 if test -n "${ZSH_VERSION+set}" ; then
10561 setopt NO_GLOB_SUBST
10563 # Now quote all the things that may contain metacharacters while being
10564 # careful not to overquote the AC_SUBSTed values. We take copies of the
10565 # variables and quote the copies for generation of the libtool script.
10566 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10568 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10569 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10570 deplibs_check_method reload_flag reload_cmds need_locks \
10571 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10572 lt_cv_sys_global_symbol_to_c_name_address \
10573 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10574 old_postinstall_cmds old_postuninstall_cmds \
10578 lt_prog_compiler_wl \
10579 lt_prog_compiler_pic \
10580 lt_prog_compiler_static \
10581 lt_prog_compiler_no_builtin_flag \
10582 export_dynamic_flag_spec \
10583 thread_safe_flag_spec \
10584 whole_archive_flag_spec \
10585 enable_shared_with_static_runtimes \
10587 old_archive_from_new_cmds \
10592 compiler_lib_search_path \
10594 archive_expsym_cmds \
10596 postuninstall_cmds \
10597 old_archive_from_expsyms_cmds \
10598 allow_undefined_flag \
10599 no_undefined_flag \
10600 export_symbols_cmds \
10601 hardcode_libdir_flag_spec \
10602 hardcode_libdir_flag_spec_ld \
10603 hardcode_libdir_separator \
10604 hardcode_automatic \
10606 module_expsym_cmds \
10607 lt_cv_prog_compiler_c_o \
10610 include_expsyms; do
10613 old_archive_cmds | \
10614 old_archive_from_new_cmds | \
10616 archive_expsym_cmds | \
10618 module_expsym_cmds | \
10619 old_archive_from_expsyms_cmds | \
10620 export_symbols_cmds | \
10621 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10622 postinstall_cmds | postuninstall_cmds | \
10623 old_postinstall_cmds | old_postuninstall_cmds | \
10624 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10625 # Double-quote double-evaled strings.
10626 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10635 *'\$0 --fallback-echo"')
10636 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10640 cfgfile="${ofile}T"
10641 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10643 { echo "$as_me:$LINENO: creating $ofile" >&5
10644 echo "$as_me: creating $ofile" >&6;}
10646 cat <<__EOF__ >> "$cfgfile"
10649 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10650 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10651 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10653 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10654 # Free Software Foundation, Inc.
10656 # This file is part of GNU Libtool:
10657 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10659 # This program is free software; you can redistribute it and/or modify
10660 # it under the terms of the GNU General Public License as published by
10661 # the Free Software Foundation; either version 2 of the License, or
10662 # (at your option) any later version.
10664 # This program is distributed in the hope that it will be useful, but
10665 # WITHOUT ANY WARRANTY; without even the implied warranty of
10666 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10667 # General Public License for more details.
10669 # You should have received a copy of the GNU General Public License
10670 # along with this program; if not, write to the Free Software
10671 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10673 # As a special exception to the GNU General Public License, if you
10674 # distribute this file as part of a program that contains a
10675 # configuration script generated by Autoconf, you may include it under
10676 # the same distribution terms that you use for the rest of that program.
10678 # A sed program that does not truncate output.
10681 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10682 Xsed="$SED -e 1s/^X//"
10684 # The HP-UX ksh and POSIX shell print the target directory to stdout
10685 # if CDPATH is set.
10686 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10688 # The names of the tagged configurations supported by this script.
10691 # ### BEGIN LIBTOOL CONFIG
10693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10695 # Shell to use when invoking shell scripts.
10698 # Whether or not to build shared libraries.
10699 build_libtool_libs=$enable_shared
10701 # Whether or not to build static libraries.
10702 build_old_libs=$enable_static
10704 # Whether or not to add -lc for building shared libraries.
10705 build_libtool_need_lc=$archive_cmds_need_lc
10707 # Whether or not to disallow shared libs when runtime libs are static
10708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10710 # Whether or not to optimize for fast installation.
10711 fast_install=$enable_fast_install
10714 host_alias=$host_alias
10718 # The build system.
10719 build_alias=$build_alias
10723 # An echo program that does not interpret backslashes.
10728 AR_FLAGS=$lt_AR_FLAGS
10733 # LTCC compiler flags.
10734 LTCFLAGS=$lt_LTCFLAGS
10736 # A language-specific compiler.
10739 # Is the compiler the GNU C compiler?
10745 # The linker used to build libraries.
10748 # Whether we need hard or soft links.
10751 # A BSD-compatible nm program.
10754 # A symbol stripping program
10757 # Used to examine libraries when file_magic_cmd begins "file"
10758 MAGIC_CMD=$MAGIC_CMD
10760 # Used on cygwin: DLL creation program.
10763 # Used on cygwin: object dumper.
10766 # Used on cygwin: assembler.
10769 # The name of the directory that contains temporary libtool files.
10772 # How to create reloadable object files.
10773 reload_flag=$lt_reload_flag
10774 reload_cmds=$lt_reload_cmds
10776 # How to pass a linker flag through the compiler.
10777 wl=$lt_lt_prog_compiler_wl
10779 # Object file suffix (normally "o").
10780 objext="$ac_objext"
10782 # Old archive suffix (normally "a").
10785 # Shared library suffix (normally ".so").
10786 shrext_cmds='$shrext_cmds'
10788 # Executable file suffix (normally "").
10791 # Additional compiler flags for building library objects.
10792 pic_flag=$lt_lt_prog_compiler_pic
10795 # What is the maximum length of a command?
10796 max_cmd_len=$lt_cv_sys_max_cmd_len
10798 # Does compiler simultaneously support -c and -o options?
10799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10801 # Must we lock files when doing compilation?
10802 need_locks=$lt_need_locks
10804 # Do we need the lib prefix for modules?
10805 need_lib_prefix=$need_lib_prefix
10807 # Do we need a version for libraries?
10808 need_version=$need_version
10810 # Whether dlopen is supported.
10811 dlopen_support=$enable_dlopen
10813 # Whether dlopen of programs is supported.
10814 dlopen_self=$enable_dlopen_self
10816 # Whether dlopen of statically linked programs is supported.
10817 dlopen_self_static=$enable_dlopen_self_static
10819 # Compiler flag to prevent dynamic linking.
10820 link_static_flag=$lt_lt_prog_compiler_static
10822 # Compiler flag to turn off builtin functions.
10823 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10825 # Compiler flag to allow reflexive dlopens.
10826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10828 # Compiler flag to generate shared objects directly from archives.
10829 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10831 # Compiler flag to generate thread-safe objects.
10832 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10834 # Library versioning type.
10835 version_type=$version_type
10837 # Format of library name prefix.
10838 libname_spec=$lt_libname_spec
10840 # List of archive names. First name is the real one, the rest are links.
10841 # The last name is the one that the linker finds with -lNAME.
10842 library_names_spec=$lt_library_names_spec
10844 # The coded name of the library, if different from the real name.
10845 soname_spec=$lt_soname_spec
10847 # Commands used to build and install an old-style archive.
10849 old_archive_cmds=$lt_old_archive_cmds
10850 old_postinstall_cmds=$lt_old_postinstall_cmds
10851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10853 # Create an old-style archive from a shared archive.
10854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10856 # Create a temporary old-style archive to link instead of a shared archive.
10857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10859 # Commands used to build and install a shared archive.
10860 archive_cmds=$lt_archive_cmds
10861 archive_expsym_cmds=$lt_archive_expsym_cmds
10862 postinstall_cmds=$lt_postinstall_cmds
10863 postuninstall_cmds=$lt_postuninstall_cmds
10865 # Commands used to build a loadable module (assumed same as above if empty)
10866 module_cmds=$lt_module_cmds
10867 module_expsym_cmds=$lt_module_expsym_cmds
10869 # Commands to strip libraries.
10870 old_striplib=$lt_old_striplib
10871 striplib=$lt_striplib
10873 # Dependencies to place before the objects being linked to create a
10875 predep_objects=$lt_predep_objects
10877 # Dependencies to place after the objects being linked to create a
10879 postdep_objects=$lt_postdep_objects
10881 # Dependencies to place before the objects being linked to create a
10883 predeps=$lt_predeps
10885 # Dependencies to place after the objects being linked to create a
10887 postdeps=$lt_postdeps
10889 # The library search path used internally by the compiler when linking
10890 # a shared library.
10891 compiler_lib_search_path=$lt_compiler_lib_search_path
10893 # Method to check whether dependent libraries are shared objects.
10894 deplibs_check_method=$lt_deplibs_check_method
10896 # Command to use when deplibs_check_method == file_magic.
10897 file_magic_cmd=$lt_file_magic_cmd
10899 # Flag that allows shared libraries with undefined symbols to be built.
10900 allow_undefined_flag=$lt_allow_undefined_flag
10902 # Flag that forces no undefined symbols.
10903 no_undefined_flag=$lt_no_undefined_flag
10905 # Commands used to finish a libtool library installation in a directory.
10906 finish_cmds=$lt_finish_cmds
10908 # Same as above, but a single script fragment to be evaled but not shown.
10909 finish_eval=$lt_finish_eval
10911 # Take the output of nm and produce a listing of raw symbols and C names.
10912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10914 # Transform the output of nm in a proper C declaration
10915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10917 # Transform the output of nm in a C name address pair
10918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10920 # This is the shared library runtime path variable.
10921 runpath_var=$runpath_var
10923 # This is the shared library path variable.
10924 shlibpath_var=$shlibpath_var
10926 # Is shlibpath searched before the hard-coded library search path?
10927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10929 # How to hardcode a shared library path into an executable.
10930 hardcode_action=$hardcode_action
10932 # Whether we should hardcode library paths into libraries.
10933 hardcode_into_libs=$hardcode_into_libs
10935 # Flag to hardcode \$libdir into a binary during linking.
10936 # This must work even if \$libdir does not exist.
10937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10939 # If ld is used when linking, flag to hardcode \$libdir into
10940 # a binary during linking. This must work even if \$libdir does
10942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10944 # Whether we need a single -rpath flag with a separated argument.
10945 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10948 # resulting binary.
10949 hardcode_direct=$hardcode_direct
10951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10952 # resulting binary.
10953 hardcode_minus_L=$hardcode_minus_L
10955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10956 # the resulting binary.
10957 hardcode_shlibpath_var=$hardcode_shlibpath_var
10959 # Set to yes if building a shared library automatically hardcodes DIR into the library
10960 # and all subsequent libraries and executables linked against it.
10961 hardcode_automatic=$hardcode_automatic
10963 # Variables whose values should be saved in libtool wrapper scripts and
10964 # restored at relink time.
10965 variables_saved_for_relink="$variables_saved_for_relink"
10967 # Whether libtool must link a program against all its dependency libraries.
10968 link_all_deplibs=$link_all_deplibs
10970 # Compile-time system search path for libraries
10971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10973 # Run-time system search path for libraries
10974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10976 # Fix the shell variable \$srcfile for the compiler.
10977 fix_srcfile_path=$lt_fix_srcfile_path
10979 # Set to yes if exported symbols are required.
10980 always_export_symbols=$always_export_symbols
10982 # The commands to list exported symbols.
10983 export_symbols_cmds=$lt_export_symbols_cmds
10985 # The commands to extract the exported symbol list from a shared archive.
10986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10988 # Symbols that should not be listed in the preloaded symbols.
10989 exclude_expsyms=$lt_exclude_expsyms
10991 # Symbols that must always be exported.
10992 include_expsyms=$lt_include_expsyms
10994 # ### END LIBTOOL CONFIG
11001 cat <<\EOF >> "$cfgfile"
11003 # AIX sometimes has problems with the GCC collect2 program. For some
11004 # reason, if we set the COLLECT_NAMES environment variable, the problems
11005 # vanish in a puff of smoke.
11006 if test "X${COLLECT_NAMES+set}" != Xset; then
11008 export COLLECT_NAMES
11014 # We use sed instead of cat because bash on DJGPP gets confused if
11015 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11016 # text mode, it properly converts lines to CR/LF. This bash problem
11017 # is reportedly fixed, but why not run on old versions too?
11018 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11020 mv -f "$cfgfile" "$ofile" || \
11021 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11025 # If there is no Makefile yet, we rely on a make rule to execute
11026 # `config.status --recheck' to rerun these tests and create the
11027 # libtool script then.
11028 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11029 if test -f "$ltmain_in"; then
11030 test -f Makefile && make "$ltmain"
11036 ac_cpp='$CPP $CPPFLAGS'
11037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11044 # Check whether --with-tags was given.
11045 if test "${with_tags+set}" = set; then
11046 withval=$with_tags; tagnames="$withval"
11050 if test -f "$ltmain" && test -n "$tagnames"; then
11051 if test ! -f "${ofile}"; then
11052 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11053 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11056 if test -z "$LTCC"; then
11057 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11058 if test -z "$LTCC"; then
11059 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11060 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11063 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11066 if test -z "$LTCFLAGS"; then
11067 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11070 # Extract list of available tagged configurations in $ofile.
11071 # Note that this assumes the entire list is on one line.
11072 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11075 for tagname in $tagnames; do
11077 # Check whether tagname contains only valid characters
11078 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11080 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11081 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11082 { (exit 1); exit 1; }; }
11086 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11088 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11089 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11090 { (exit 1); exit 1; }; }
11093 # Update the list of available tags.
11094 if test -n "$tagname"; then
11095 echo appending configuration tag \"$tagname\" to $ofile
11099 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11100 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11101 (test "X$CXX" != "Xg++"))) ; then
11103 ac_cpp='$CXXCPP $CPPFLAGS'
11104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11111 archive_cmds_need_lc_CXX=no
11112 allow_undefined_flag_CXX=
11113 always_export_symbols_CXX=no
11114 archive_expsym_cmds_CXX=
11115 export_dynamic_flag_spec_CXX=
11116 hardcode_direct_CXX=no
11117 hardcode_libdir_flag_spec_CXX=
11118 hardcode_libdir_flag_spec_ld_CXX=
11119 hardcode_libdir_separator_CXX=
11120 hardcode_minus_L_CXX=no
11121 hardcode_shlibpath_var_CXX=unsupported
11122 hardcode_automatic_CXX=no
11124 module_expsym_cmds_CXX=
11125 link_all_deplibs_CXX=unknown
11126 old_archive_cmds_CXX=$old_archive_cmds
11127 no_undefined_flag_CXX=
11128 whole_archive_flag_spec_CXX=
11129 enable_shared_with_static_runtimes_CXX=no
11131 # Dependencies to place before and after the object being linked:
11132 predep_objects_CXX=
11133 postdep_objects_CXX=
11136 compiler_lib_search_path_CXX=
11138 # Source file extension for C++ test sources.
11141 # Object file extension for compiled C++ test sources.
11145 # Code to be used in simple compile tests
11146 lt_simple_compile_test_code="int some_variable = 0;"
11148 # Code to be used in simple link tests
11149 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11153 # If no C compiler was specified, use CC.
11156 # If no C compiler flags were specified, use CFLAGS.
11157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11159 # Allow CC to be a program name with arguments.
11163 # save warnings/boilerplate of simple test code
11164 ac_outfile=conftest.$ac_objext
11165 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11167 _lt_compiler_boilerplate=`cat conftest.err`
11170 ac_outfile=conftest.$ac_objext
11171 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11173 _lt_linker_boilerplate=`cat conftest.err`
11177 # Allow CC to be a program name with arguments.
11182 lt_save_with_gnu_ld=$with_gnu_ld
11183 lt_save_path_LD=$lt_cv_path_LD
11184 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11185 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11187 $as_unset lt_cv_prog_gnu_ld
11189 if test -n "${lt_cv_path_LDCXX+set}"; then
11190 lt_cv_path_LD=$lt_cv_path_LDCXX
11192 $as_unset lt_cv_path_LD
11194 test -z "${LDCXX+set}" || LD=$LDCXX
11198 for cc_temp in $compiler""; do
11200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11206 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11209 # We don't want -fno-exception wen compiling C++ code, so set the
11210 # no_builtin_flag separately
11211 if test "$GXX" = yes; then
11212 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11214 lt_prog_compiler_no_builtin_flag_CXX=
11217 if test "$GXX" = yes; then
11218 # Set up default GNU C++ configuration
11221 # Check whether --with-gnu-ld was given.
11222 if test "${with_gnu_ld+set}" = set; then
11223 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11229 if test "$GCC" = yes; then
11230 # Check if gcc -print-prog-name=ld gives a path.
11231 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11232 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11235 # gcc leaves a trailing carriage return which upsets mingw
11236 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11238 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11241 # Accept absolute paths.
11243 re_direlt='/[^/][^/]*/\.\./'
11244 # Canonicalize the pathname of ld
11245 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11246 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11247 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11249 test -z "$LD" && LD="$ac_prog"
11252 # If it fails, then pretend we aren't using GCC.
11256 # If it is relative, then search for the first ld in PATH.
11257 with_gnu_ld=unknown
11260 elif test "$with_gnu_ld" = yes; then
11261 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11264 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11267 if test "${lt_cv_path_LD+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 if test -z "$LD"; then
11271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11272 for ac_dir in $PATH; do
11274 test -z "$ac_dir" && ac_dir=.
11275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11276 lt_cv_path_LD="$ac_dir/$ac_prog"
11277 # Check to see if the program is GNU ld. I'd rather use --version,
11278 # but apparently some variants of GNU ld only accept -v.
11279 # Break only if it was the GNU/non-GNU ld that we prefer.
11280 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11281 *GNU* | *'with BFD'*)
11282 test "$with_gnu_ld" != no && break
11285 test "$with_gnu_ld" != yes && break
11292 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11296 LD="$lt_cv_path_LD"
11297 if test -n "$LD"; then
11298 { echo "$as_me:$LINENO: result: $LD" >&5
11299 echo "${ECHO_T}$LD" >&6; }
11301 { echo "$as_me:$LINENO: result: no" >&5
11302 echo "${ECHO_T}no" >&6; }
11304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11306 { (exit 1); exit 1; }; }
11307 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11309 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11313 case `$LD -v 2>&1 </dev/null` in
11314 *GNU* | *'with BFD'*)
11315 lt_cv_prog_gnu_ld=yes
11318 lt_cv_prog_gnu_ld=no
11322 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11323 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11324 with_gnu_ld=$lt_cv_prog_gnu_ld
11328 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11329 # archiving commands below assume that GNU ld is being used.
11330 if test "$with_gnu_ld" = yes; then
11331 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332 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'
11334 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11335 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11337 # If archive_cmds runs LD, not CC, wlarc should be empty
11338 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11339 # investigate it a little bit more. (MM)
11342 # ancient GNU ld didn't support --whole-archive et. al.
11343 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11344 grep 'no-whole-archive' > /dev/null; then
11345 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11347 whole_archive_flag_spec_CXX=
11353 # A generic and very simple default shared library creation
11354 # command for GNU C++ for the case where it uses the native
11355 # linker, instead of GNU ld. If possible, this setting should
11356 # overridden to take advantage of the native linker features on
11357 # the platform it is being used on.
11358 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11361 # Commands to make compiler produce verbose output that lists
11362 # what "hidden" libraries, object files and flags are used when
11363 # linking a shared library.
11364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11372 # PORTME: fill in a description of your system's C++ link characteristics
11373 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11374 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11378 # FIXME: insert proper C++ library support
11382 if test "$host_cpu" = ia64; then
11383 # On IA64, the linker does run time linking by default, so we don't
11384 # have to do anything special.
11385 aix_use_runtimelinking=no
11386 exp_sym_flag='-Bexport'
11389 aix_use_runtimelinking=no
11391 # Test if we are trying to use run time linking or normal
11392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11393 # need to do runtime linking.
11394 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11395 for ld_flag in $LDFLAGS; do
11398 aix_use_runtimelinking=yes
11406 exp_sym_flag='-bexport'
11407 no_entry_flag='-bnoentry'
11410 # When large executables or shared objects are built, AIX ld can
11411 # have problems creating the table of contents. If linking a library
11412 # or program results in "error TOC overflow" add -mminimal-toc to
11413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11416 archive_cmds_CXX=''
11417 hardcode_direct_CXX=yes
11418 hardcode_libdir_separator_CXX=':'
11419 link_all_deplibs_CXX=yes
11421 if test "$GXX" = yes; then
11422 case $host_os in aix4.[012]|aix4.[012].*)
11423 # We only want to do this on AIX 4.2 and lower, the check
11424 # below for broken collect2 doesn't work under 4.3+
11425 collect2name=`${CC} -print-prog-name=collect2`
11426 if test -f "$collect2name" && \
11427 strings "$collect2name" | grep resolve_lib_name >/dev/null
11429 # We have reworked collect2
11432 # We have old collect2
11433 hardcode_direct_CXX=unsupported
11434 # It fails to find uninstalled libraries when the uninstalled
11435 # path is not listed in the libpath. Setting hardcode_minus_L
11436 # to unsupported forces relinking
11437 hardcode_minus_L_CXX=yes
11438 hardcode_libdir_flag_spec_CXX='-L$libdir'
11439 hardcode_libdir_separator_CXX=
11443 shared_flag='-shared'
11444 if test "$aix_use_runtimelinking" = yes; then
11445 shared_flag="$shared_flag "'${wl}-G'
11449 if test "$host_cpu" = ia64; then
11450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11451 # chokes on -Wl,-G. The following line is correct:
11454 if test "$aix_use_runtimelinking" = yes; then
11455 shared_flag='${wl}-G'
11457 shared_flag='${wl}-bM:SRE'
11462 # It seems that -bexpall does not export symbols beginning with
11463 # underscore (_), so it is better to generate a list of symbols to export.
11464 always_export_symbols_CXX=yes
11465 if test "$aix_use_runtimelinking" = yes; then
11466 # Warning - without using the other runtime loading flags (-brtl),
11467 # -berok will link without error, but may produce a broken library.
11468 allow_undefined_flag_CXX='-berok'
11469 # Determine the default libpath from the value encoded in an empty executable.
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_link") 2>conftest.er1
11494 grep -v '^ *+' conftest.er1 >conftest.err
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } && {
11499 test -z "$ac_cxx_werror_flag" ||
11500 test ! -s conftest.err
11501 } && test -s conftest$ac_exeext &&
11502 $as_test_x conftest$ac_exeext; then
11504 lt_aix_libpath_sed='
11505 /Import File Strings/,/^$/ {
11511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11512 # Check for a 64-bit object if we didn't find anything.
11513 if test -z "$aix_libpath"; then
11514 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11524 conftest$ac_exeext conftest.$ac_ext
11525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11527 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11529 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11531 if test "$host_cpu" = ia64; then
11532 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11533 allow_undefined_flag_CXX="-z nodefs"
11534 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"
11536 # Determine the default libpath from the value encoded in an empty executable.
11537 cat >conftest.$ac_ext <<_ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (ac_try="$ac_link"
11554 case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_link") 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } && {
11566 test -z "$ac_cxx_werror_flag" ||
11567 test ! -s conftest.err
11568 } && test -s conftest$ac_exeext &&
11569 $as_test_x conftest$ac_exeext; then
11571 lt_aix_libpath_sed='
11572 /Import File Strings/,/^$/ {
11578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11579 # Check for a 64-bit object if we didn't find anything.
11580 if test -z "$aix_libpath"; then
11581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11591 conftest$ac_exeext conftest.$ac_ext
11592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11594 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11595 # Warning - without using the other run time loading flags,
11596 # -berok will link without error, but may produce a broken library.
11597 no_undefined_flag_CXX=' ${wl}-bernotok'
11598 allow_undefined_flag_CXX=' ${wl}-berok'
11599 # Exported symbols can be pulled into shared objects from archives
11600 whole_archive_flag_spec_CXX='$convenience'
11601 archive_cmds_need_lc_CXX=yes
11602 # This is similar to how AIX traditionally builds its shared libraries.
11603 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'
11609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11610 allow_undefined_flag_CXX=unsupported
11611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11612 # support --undefined. This deserves some investigation. FIXME
11613 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11620 case $cc_basename in
11622 # FIXME: insert proper C++ library support
11628 cygwin* | mingw* | pw32*)
11629 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11630 # as there is no search path for DLLs.
11631 hardcode_libdir_flag_spec_CXX='-L$libdir'
11632 allow_undefined_flag_CXX=unsupported
11633 always_export_symbols_CXX=no
11634 enable_shared_with_static_runtimes_CXX=yes
11636 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11637 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'
11638 # If the export-symbols file already is a .def file (1st line
11639 # is EXPORTS), use it as is; otherwise, prepend...
11640 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11641 cp $export_symbols $output_objdir/$soname.def;
11643 echo EXPORTS > $output_objdir/$soname.def;
11644 cat $export_symbols >> $output_objdir/$soname.def;
11646 $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'
11651 darwin* | rhapsody*)
11653 rhapsody* | darwin1.[012])
11654 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11658 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11660 case ${MACOSX_DEPLOYMENT_TARGET} in
11662 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11665 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11671 archive_cmds_need_lc_CXX=no
11672 hardcode_direct_CXX=no
11673 hardcode_automatic_CXX=yes
11674 hardcode_shlibpath_var_CXX=unsupported
11675 whole_archive_flag_spec_CXX=''
11676 link_all_deplibs_CXX=yes
11678 if test "$GXX" = yes ; then
11679 lt_int_apple_cc_single_mod=no
11680 output_verbose_link_cmd='echo'
11681 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11682 lt_int_apple_cc_single_mod=yes
11684 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11685 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11687 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'
11689 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11690 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11691 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11692 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11694 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11696 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11698 case $cc_basename in
11700 output_verbose_link_cmd='echo'
11701 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11702 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11704 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11705 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11715 case $cc_basename in
11717 # FIXME: insert proper C++ library support
11721 # Green Hills C++ Compiler
11722 # FIXME: insert proper C++ library support
11726 # FIXME: insert proper C++ library support
11732 # C++ shared libraries reported to be fairly broken before switch to ELF
11736 archive_cmds_need_lc_CXX=no
11738 freebsd* | dragonfly*)
11739 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11746 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11747 hardcode_libdir_separator_CXX=:
11748 export_dynamic_flag_spec_CXX='${wl}-E'
11749 hardcode_direct_CXX=yes
11750 hardcode_minus_L_CXX=yes # Not in the search PATH,
11751 # but as the default
11752 # location of the library.
11754 case $cc_basename in
11756 # FIXME: insert proper C++ library support
11760 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'
11761 # Commands to make compiler produce verbose output that lists
11762 # what "hidden" libraries, object files and flags are used when
11763 # linking a shared library.
11765 # There doesn't appear to be a way to prevent this compiler from
11766 # explicitly linking system object files so we need to strip them
11767 # from the output so that they don't get included in the library
11769 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11772 if test "$GXX" = yes; then
11773 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'
11775 # FIXME: insert proper C++ library support
11782 if test $with_gnu_ld = no; then
11783 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11784 hardcode_libdir_separator_CXX=:
11789 export_dynamic_flag_spec_CXX='${wl}-E'
11795 hardcode_direct_CXX=no
11796 hardcode_shlibpath_var_CXX=no
11799 hardcode_direct_CXX=yes
11800 hardcode_minus_L_CXX=yes # Not in the search PATH,
11801 # but as the default
11802 # location of the library.
11806 case $cc_basename in
11808 # FIXME: insert proper C++ library support
11814 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11817 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11823 # Commands to make compiler produce verbose output that lists
11824 # what "hidden" libraries, object files and flags are used when
11825 # linking a shared library.
11827 # There doesn't appear to be a way to prevent this compiler from
11828 # explicitly linking system object files so we need to strip them
11829 # from the output so that they don't get included in the library
11831 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11834 if test "$GXX" = yes; then
11835 if test $with_gnu_ld = no; then
11838 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11841 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11844 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'
11849 # FIXME: insert proper C++ library support
11856 hardcode_direct_CXX=no
11857 hardcode_shlibpath_var_CXX=no
11858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11859 export_dynamic_flag_spec_CXX='${wl}-E'
11860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11861 # Instead, shared libraries are loaded at an image base (0x10000000 by
11862 # default) and relocated if they conflict, which is a slow very memory
11863 # consuming and fragmenting process. To avoid this, we pick a random,
11864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11865 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11866 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'
11867 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'
11870 case $cc_basename in
11873 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11875 # Archives containing C++ object files must be created using
11876 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11877 # necessary to make sure instantiated templates are included
11879 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11882 if test "$GXX" = yes; then
11883 if test "$with_gnu_ld" = no; then
11884 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11886 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11889 link_all_deplibs_CXX=yes
11892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11893 hardcode_libdir_separator_CXX=:
11895 linux* | k*bsd*-gnu)
11896 case $cc_basename in
11898 # Kuck and Associates, Inc. (KAI) C++ Compiler
11900 # KCC will only create a shared library if the output file
11901 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11902 # to its proper name (with version) after linking.
11903 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'
11904 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'
11905 # Commands to make compiler produce verbose output that lists
11906 # what "hidden" libraries, object files and flags are used when
11907 # linking a shared library.
11909 # There doesn't appear to be a way to prevent this compiler from
11910 # explicitly linking system object files so we need to strip them
11911 # from the output so that they don't get included in the library
11913 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11915 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11918 # Archives containing C++ object files must be created using
11919 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11920 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11925 # version 8.0 and above of icpc choke on multiply defined symbols
11926 # if we add $predep_objects and $postdep_objects, however 7.1 and
11927 # earlier do not add the objects themselves.
11928 case `$CC -V 2>&1` in
11930 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11931 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'
11933 *) # Version 8.0 or newer
11936 ia64*) tmp_idyn=' -i_dynamic';;
11938 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11939 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'
11942 archive_cmds_need_lc_CXX=no
11943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11945 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11948 # Portland Group C++ compiler
11949 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11950 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'
11952 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11954 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'
11958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11959 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'
11961 runpath_var=LD_RUN_PATH
11962 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11963 hardcode_libdir_separator_CXX=:
11965 # Commands to make compiler produce verbose output that lists
11966 # what "hidden" libraries, object files and flags are used when
11967 # linking a shared library.
11969 # There doesn't appear to be a way to prevent this compiler from
11970 # explicitly linking system object files so we need to strip them
11971 # from the output so that they don't get included in the library
11973 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11976 case `$CC -V 2>&1 | sed 5q` in
11979 no_undefined_flag_CXX=' -zdefs'
11980 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11981 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'
11982 hardcode_libdir_flag_spec_CXX='-R$libdir'
11983 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'
11985 # Not sure whether something based on
11986 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11988 output_verbose_link_cmd='echo'
11990 # Archives containing C++ object files must be created using
11991 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11992 # necessary to make sure instantiated templates are included
11994 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12001 # FIXME: insert proper C++ library support
12005 # FIXME: insert proper C++ library support
12009 case $cc_basename in
12011 # FIXME: insert proper C++ library support
12015 # FIXME: insert proper C++ library support
12020 netbsd* | netbsdelf*-gnu)
12021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12022 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12024 hardcode_libdir_flag_spec_CXX='-R$libdir'
12025 hardcode_direct_CXX=yes
12026 hardcode_shlibpath_var_CXX=no
12028 # Workaround some broken pre-1.5 toolchains
12029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12032 # C++ shared libraries are fairly broken
12036 if test -f /usr/libexec/ld.so; then
12037 hardcode_direct_CXX=yes
12038 hardcode_shlibpath_var_CXX=no
12039 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12040 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12041 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12042 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12043 export_dynamic_flag_spec_CXX='${wl}-E'
12044 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12046 output_verbose_link_cmd='echo'
12052 case $cc_basename in
12054 # Kuck and Associates, Inc. (KAI) C++ Compiler
12056 # KCC will only create a shared library if the output file
12057 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12058 # to its proper name (with version) after linking.
12059 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'
12061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12062 hardcode_libdir_separator_CXX=:
12064 # Archives containing C++ object files must be created using
12065 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12066 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12070 # Rational C++ 2.4.1
12071 # FIXME: insert proper C++ library support
12075 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12076 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12078 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12079 hardcode_libdir_separator_CXX=:
12081 # Commands to make compiler produce verbose output that lists
12082 # what "hidden" libraries, object files and flags are used when
12083 # linking a shared library.
12085 # There doesn't appear to be a way to prevent this compiler from
12086 # explicitly linking system object files so we need to strip them
12087 # from the output so that they don't get included in the library
12089 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12092 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12093 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12094 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12096 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12097 hardcode_libdir_separator_CXX=:
12099 # Commands to make compiler produce verbose output that lists
12100 # what "hidden" libraries, object files and flags are used when
12101 # linking a shared library.
12102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12105 # FIXME: insert proper C++ library support
12112 case $cc_basename in
12114 # Kuck and Associates, Inc. (KAI) C++ Compiler
12116 # KCC will only create a shared library if the output file
12117 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12118 # to its proper name (with version) after linking.
12119 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'
12121 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12122 hardcode_libdir_separator_CXX=:
12124 # Archives containing C++ object files must be created using
12125 # the KAI C++ compiler.
12126 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12129 # Rational C++ 2.4.1
12130 # FIXME: insert proper C++ library support
12134 allow_undefined_flag_CXX=' -expect_unresolved \*'
12135 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12136 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12137 echo "-hidden">> $lib.exp~
12138 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12142 hardcode_libdir_separator_CXX=:
12144 # Commands to make compiler produce verbose output that lists
12145 # what "hidden" libraries, object files and flags are used when
12146 # linking a shared library.
12148 # There doesn't appear to be a way to prevent this compiler from
12149 # explicitly linking system object files so we need to strip them
12150 # from the output so that they don't get included in the library
12152 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12155 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12156 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12157 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12160 hardcode_libdir_separator_CXX=:
12162 # Commands to make compiler produce verbose output that lists
12163 # what "hidden" libraries, object files and flags are used when
12164 # linking a shared library.
12165 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12168 # FIXME: insert proper C++ library support
12175 # FIXME: insert proper C++ library support
12179 case $cc_basename in
12182 # FIXME: insert proper C++ library support
12187 # FIXME: insert proper C++ library support
12191 # FIXME: insert proper C++ library support
12197 case $cc_basename in
12199 # Sun C++ 4.2, 5.x and Centerline C++
12200 archive_cmds_need_lc_CXX=yes
12201 no_undefined_flag_CXX=' -zdefs'
12202 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12203 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12204 $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'
12206 hardcode_libdir_flag_spec_CXX='-R$libdir'
12207 hardcode_shlibpath_var_CXX=no
12209 solaris2.[0-5] | solaris2.[0-5].*) ;;
12211 # The compiler driver will combine and reorder linker options,
12212 # but understands `-z linker_flag'.
12213 # Supported since Solaris 2.6 (maybe 2.5.1?)
12214 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12217 link_all_deplibs_CXX=yes
12219 output_verbose_link_cmd='echo'
12221 # Archives containing C++ object files must be created using
12222 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12223 # necessary to make sure instantiated templates are included
12225 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12228 # Green Hills C++ Compiler
12229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12231 # The C++ compiler must be used to create the archive.
12232 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12235 # GNU C++ compiler with Solaris linker
12236 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12237 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12238 if $CC --version | grep -v '^2\.7' > /dev/null; then
12239 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12240 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12241 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12243 # Commands to make compiler produce verbose output that lists
12244 # what "hidden" libraries, object files and flags are used when
12245 # linking a shared library.
12246 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12248 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12250 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12251 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12252 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12254 # Commands to make compiler produce verbose output that lists
12255 # what "hidden" libraries, object files and flags are used when
12256 # linking a shared library.
12257 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12260 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12262 solaris2.[0-5] | solaris2.[0-5].*) ;;
12264 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12271 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12272 no_undefined_flag_CXX='${wl}-z,text'
12273 archive_cmds_need_lc_CXX=no
12274 hardcode_shlibpath_var_CXX=no
12275 runpath_var='LD_RUN_PATH'
12277 case $cc_basename in
12279 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12280 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12283 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 sysv5* | sco3.2v5* | sco5v6*)
12289 # Note: We can NOT use -z defs as we might desire, because we do not
12290 # link with -lc, and that would cause any symbols used from libc to
12291 # always be unresolved, which means just about no library would
12292 # ever link correctly. If we're not using GNU ld we use -z text
12293 # though, which does catch some bad symbols but isn't as heavy-handed
12295 # For security reasons, it is highly recommended that you always
12296 # use absolute paths for naming shared libraries, and exclude the
12297 # DT_RUNPATH tag from executables and libraries. But doing so
12298 # requires that you compile everything twice, which is a pain.
12299 # So that behaviour is only enabled if SCOABSPATH is set to a
12300 # non-empty value in the environment. Most likely only useful for
12301 # creating official distributions of packages.
12302 # This is a hack until libtool officially supports absolute path
12303 # names for shared libraries.
12304 no_undefined_flag_CXX='${wl}-z,text'
12305 allow_undefined_flag_CXX='${wl}-z,nodefs'
12306 archive_cmds_need_lc_CXX=no
12307 hardcode_shlibpath_var_CXX=no
12308 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12309 hardcode_libdir_separator_CXX=':'
12310 link_all_deplibs_CXX=yes
12311 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12312 runpath_var='LD_RUN_PATH'
12314 case $cc_basename in
12316 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12317 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12321 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12326 case $cc_basename in
12328 # NonStop-UX NCC 3.20
12329 # FIXME: insert proper C++ library support
12333 # FIXME: insert proper C++ library support
12339 # FIXME: insert proper C++ library support
12343 # FIXME: insert proper C++ library support
12347 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12348 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12349 test "$ld_shlibs_CXX" = no && can_build_shared=no
12355 cat > conftest.$ac_ext <<EOF
12359 Foo (void) { a = 0; }
12365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12366 (eval $ac_compile) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; then
12370 # Parse the compiler output and extract the necessary
12371 # objects, libraries and library flags.
12373 # Sentinel used to keep track of whether or not we are before
12374 # the conftest object file.
12375 pre_test_object_deps_done=no
12377 # The `*' in the case matches for architectures that use `case' in
12378 # $output_verbose_cmd can trigger glob expansion during the loop
12379 # eval without this substitution.
12380 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12382 for p in `eval $output_verbose_link_cmd`; do
12386 # Some compilers place space between "-{L,R}" and the path.
12387 # Remove the space.
12388 if test $p = "-L" \
12389 || test $p = "-R"; then
12396 if test "$pre_test_object_deps_done" = no; then
12399 # Internal compiler library paths should come after those
12400 # provided the user. The postdeps already come after the
12401 # user supplied libs so there is no need to process them.
12402 if test -z "$compiler_lib_search_path_CXX"; then
12403 compiler_lib_search_path_CXX="${prev}${p}"
12405 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12408 # The "-l" case would never come before the object being
12409 # linked, so don't bother handling this case.
12412 if test -z "$postdeps_CXX"; then
12413 postdeps_CXX="${prev}${p}"
12415 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12421 # This assumes that the test object file only shows up
12422 # once in the compiler output.
12423 if test "$p" = "conftest.$objext"; then
12424 pre_test_object_deps_done=yes
12428 if test "$pre_test_object_deps_done" = no; then
12429 if test -z "$predep_objects_CXX"; then
12430 predep_objects_CXX="$p"
12432 predep_objects_CXX="$predep_objects_CXX $p"
12435 if test -z "$postdep_objects_CXX"; then
12436 postdep_objects_CXX="$p"
12438 postdep_objects_CXX="$postdep_objects_CXX $p"
12443 *) ;; # Ignore the rest.
12451 echo "libtool.m4: error: problem compiling CXX test program"
12454 $rm -f confest.$objext
12456 # PORTME: override above test on systems where it is broken
12459 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12460 # hack all around it, let's just trust "g++" to DTRT.
12461 predep_objects_CXX=
12462 postdep_objects_CXX=
12467 case `$CC -V 2>&1 | sed 5q` in
12471 # The more standards-conforming stlport4 library is
12472 # incompatible with the Cstd library. Avoid specifying
12473 # it if it's in CXXFLAGS. Ignore libCrun as
12474 # -library=stlport4 depends on it.
12475 case " $CXX $CXXFLAGS " in
12476 *" -library=stlport4 "*)
12477 solaris_use_stlport4=yes
12480 if test "$solaris_use_stlport4" != yes; then
12481 postdeps_CXX='-library=Cstd -library=Crun'
12488 case $cc_basename in
12490 # The more standards-conforming stlport4 library is
12491 # incompatible with the Cstd library. Avoid specifying
12492 # it if it's in CXXFLAGS. Ignore libCrun as
12493 # -library=stlport4 depends on it.
12494 case " $CXX $CXXFLAGS " in
12495 *" -library=stlport4 "*)
12496 solaris_use_stlport4=yes
12500 # Adding this requires a known-good setup of shared libraries for
12501 # Sun compiler versions before 5.6, else PIC objects from an old
12502 # archive will be linked into the output, leading to subtle bugs.
12503 if test "$solaris_use_stlport4" != yes; then
12504 postdeps_CXX='-library=Cstd -library=Crun'
12512 case " $postdeps_CXX " in
12513 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12516 lt_prog_compiler_wl_CXX=
12517 lt_prog_compiler_pic_CXX=
12518 lt_prog_compiler_static_CXX=
12520 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12521 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12523 # C++ specific cases for pic, static, wl, etc.
12524 if test "$GXX" = yes; then
12525 lt_prog_compiler_wl_CXX='-Wl,'
12526 lt_prog_compiler_static_CXX='-static'
12530 # All AIX code is PIC.
12531 if test "$host_cpu" = ia64; then
12532 # AIX 5 now supports IA64 processor
12533 lt_prog_compiler_static_CXX='-Bstatic'
12537 # FIXME: we need at least 68020 code to build shared libraries, but
12538 # adding the `-m68020' flag to GCC prevents building anything better,
12540 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12542 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12543 # PIC is the default for these OSes.
12545 mingw* | cygwin* | os2* | pw32*)
12546 # This hack is so that the source file can tell whether it is being
12547 # built for inclusion in a dll (and should export symbols for example).
12548 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12549 # (--disable-auto-import) libraries
12550 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12552 darwin* | rhapsody*)
12553 # PIC is the default on this platform
12554 # Common symbols not allowed in MH_DYLIB files
12555 lt_prog_compiler_pic_CXX='-fno-common'
12558 # DJGPP does not support shared libraries at all
12559 lt_prog_compiler_pic_CXX=
12562 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12563 # Instead, we relocate shared libraries at runtime.
12566 if test -d /usr/nec; then
12567 lt_prog_compiler_pic_CXX=-Kconform_pic
12571 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12572 # not for PA HP-UX.
12577 lt_prog_compiler_pic_CXX='-fPIC'
12582 lt_prog_compiler_pic_CXX='-fPIC'
12588 # All AIX code is PIC.
12589 if test "$host_cpu" = ia64; then
12590 # AIX 5 now supports IA64 processor
12591 lt_prog_compiler_static_CXX='-Bstatic'
12593 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12597 case $cc_basename in
12599 # Green Hills C++ Compiler
12600 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12605 # PIC is the default on this platform
12606 # Common symbols not allowed in MH_DYLIB files
12607 case $cc_basename in
12609 lt_prog_compiler_pic_CXX='-qnocommon'
12610 lt_prog_compiler_wl_CXX='-Wl,'
12615 case $cc_basename in
12617 lt_prog_compiler_pic_CXX='-KPIC'
12620 # Green Hills C++ Compiler
12621 lt_prog_compiler_pic_CXX='-pic'
12627 freebsd* | dragonfly*)
12628 # FreeBSD uses GNU C++
12630 hpux9* | hpux10* | hpux11*)
12631 case $cc_basename in
12633 lt_prog_compiler_wl_CXX='-Wl,'
12634 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12635 if test "$host_cpu" != ia64; then
12636 lt_prog_compiler_pic_CXX='+Z'
12640 lt_prog_compiler_wl_CXX='-Wl,'
12641 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12647 lt_prog_compiler_pic_CXX='+Z'
12656 # This is c89, which is MS Visual C++ (no shared libs)
12657 # Anyone wants to do a port?
12659 irix5* | irix6* | nonstopux*)
12660 case $cc_basename in
12662 lt_prog_compiler_wl_CXX='-Wl,'
12663 lt_prog_compiler_static_CXX='-non_shared'
12664 # CC pic flag -KPIC is the default.
12670 linux* | k*bsd*-gnu)
12671 case $cc_basename in
12674 lt_prog_compiler_wl_CXX='--backend -Wl,'
12675 lt_prog_compiler_pic_CXX='-fPIC'
12679 lt_prog_compiler_wl_CXX='-Wl,'
12680 lt_prog_compiler_pic_CXX='-KPIC'
12681 lt_prog_compiler_static_CXX='-static'
12684 # Portland Group C++ compiler.
12685 lt_prog_compiler_wl_CXX='-Wl,'
12686 lt_prog_compiler_pic_CXX='-fpic'
12687 lt_prog_compiler_static_CXX='-Bstatic'
12691 # Make sure the PIC flag is empty. It appears that all Alpha
12692 # Linux and Compaq Tru64 Unix objects are PIC.
12693 lt_prog_compiler_pic_CXX=
12694 lt_prog_compiler_static_CXX='-non_shared'
12697 case `$CC -V 2>&1 | sed 5q` in
12700 lt_prog_compiler_pic_CXX='-KPIC'
12701 lt_prog_compiler_static_CXX='-Bstatic'
12702 lt_prog_compiler_wl_CXX='-Qoption ld '
12713 case $cc_basename in
12715 lt_prog_compiler_pic_CXX='-W c,exportall'
12721 netbsd* | netbsdelf*-gnu)
12723 osf3* | osf4* | osf5*)
12724 case $cc_basename in
12726 lt_prog_compiler_wl_CXX='--backend -Wl,'
12729 # Rational C++ 2.4.1
12730 lt_prog_compiler_pic_CXX='-pic'
12733 # Digital/Compaq C++
12734 lt_prog_compiler_wl_CXX='-Wl,'
12735 # Make sure the PIC flag is empty. It appears that all Alpha
12736 # Linux and Compaq Tru64 Unix objects are PIC.
12737 lt_prog_compiler_pic_CXX=
12738 lt_prog_compiler_static_CXX='-non_shared'
12747 case $cc_basename in
12749 # Sun C++ 4.2, 5.x and Centerline C++
12750 lt_prog_compiler_pic_CXX='-KPIC'
12751 lt_prog_compiler_static_CXX='-Bstatic'
12752 lt_prog_compiler_wl_CXX='-Qoption ld '
12755 # Green Hills C++ Compiler
12756 lt_prog_compiler_pic_CXX='-PIC'
12763 case $cc_basename in
12766 lt_prog_compiler_pic_CXX='-pic'
12767 lt_prog_compiler_static_CXX='-Bstatic'
12771 lt_prog_compiler_pic_CXX='-pic'
12778 case $cc_basename in
12780 # NonStop-UX NCC 3.20
12781 lt_prog_compiler_pic_CXX='-KPIC'
12787 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12788 case $cc_basename in
12790 lt_prog_compiler_wl_CXX='-Wl,'
12791 lt_prog_compiler_pic_CXX='-KPIC'
12792 lt_prog_compiler_static_CXX='-Bstatic'
12799 lt_prog_compiler_can_build_shared_CXX=no
12804 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12805 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12808 # Check to make sure the PIC flag actually works.
12810 if test -n "$lt_prog_compiler_pic_CXX"; then
12812 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12813 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12814 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 lt_prog_compiler_pic_works_CXX=no
12818 ac_outfile=conftest.$ac_objext
12819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12820 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12821 # Insert the option either (1) after the last *FLAGS variable, or
12822 # (2) before a word containing "conftest.", or (3) at the end.
12823 # Note that $ac_compile itself does not contain backslashes and begins
12824 # with a dollar sign (not a hyphen), so the echo should work correctly.
12825 # The option is referenced via a variable to avoid confusing sed.
12826 lt_compile=`echo "$ac_compile" | $SED \
12827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12829 -e 's:$: $lt_compiler_flag:'`
12830 (eval echo "\"\$as_me:12830: $lt_compile\"" >&5)
12831 (eval "$lt_compile" 2>conftest.err)
12833 cat conftest.err >&5
12834 echo "$as_me:12834: \$? = $ac_status" >&5
12835 if (exit $ac_status) && test -s "$ac_outfile"; then
12836 # The compiler can only warn and ignore the option if not recognized
12837 # So say no if there are warnings other than the usual output.
12838 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12840 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12841 lt_prog_compiler_pic_works_CXX=yes
12847 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12848 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12850 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12851 case $lt_prog_compiler_pic_CXX in
12853 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12856 lt_prog_compiler_pic_CXX=
12857 lt_prog_compiler_can_build_shared_CXX=no
12862 # For platforms which do not support PIC, -DPIC is meaningless:
12864 lt_prog_compiler_pic_CXX=
12867 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12872 # Check to make sure the static flag actually works.
12874 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12875 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12876 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12877 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 lt_prog_compiler_static_works_CXX=no
12881 save_LDFLAGS="$LDFLAGS"
12882 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12883 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12884 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12885 # The linker can only warn and ignore the option if not recognized
12886 # So say no if there are warnings
12887 if test -s conftest.err; then
12888 # Append any errors to the config.log.
12889 cat conftest.err 1>&5
12890 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12892 if diff conftest.exp conftest.er2 >/dev/null; then
12893 lt_prog_compiler_static_works_CXX=yes
12896 lt_prog_compiler_static_works_CXX=yes
12900 LDFLAGS="$save_LDFLAGS"
12903 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12904 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12906 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12909 lt_prog_compiler_static_CXX=
12913 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12914 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12915 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 lt_cv_prog_compiler_c_o_CXX=no
12919 $rm -r conftest 2>/dev/null
12923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12925 lt_compiler_flag="-o out/conftest2.$ac_objext"
12926 # Insert the option either (1) after the last *FLAGS variable, or
12927 # (2) before a word containing "conftest.", or (3) at the end.
12928 # Note that $ac_compile itself does not contain backslashes and begins
12929 # with a dollar sign (not a hyphen), so the echo should work correctly.
12930 lt_compile=`echo "$ac_compile" | $SED \
12931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12933 -e 's:$: $lt_compiler_flag:'`
12934 (eval echo "\"\$as_me:12934: $lt_compile\"" >&5)
12935 (eval "$lt_compile" 2>out/conftest.err)
12937 cat out/conftest.err >&5
12938 echo "$as_me:12938: \$? = $ac_status" >&5
12939 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12941 # The compiler can only warn and ignore the option if not recognized
12942 # So say no if there are warnings
12943 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12944 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12945 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12946 lt_cv_prog_compiler_c_o_CXX=yes
12951 # SGI C++ compiler will create directory out/ii_files/ for
12952 # template instantiation
12953 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12954 $rm out/* && rmdir out
12960 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12961 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12964 hard_links="nottested"
12965 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12966 # do not overwrite the value of need_locks provided by the user
12967 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12968 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12971 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12973 ln conftest.a conftest.b 2>&5 || hard_links=no
12974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12975 { echo "$as_me:$LINENO: result: $hard_links" >&5
12976 echo "${ECHO_T}$hard_links" >&6; }
12977 if test "$hard_links" = no; then
12978 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12979 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12986 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12989 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12992 # If we're using GNU nm, then we don't want the "-C" option.
12993 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12994 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12995 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'
12997 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'
13001 export_symbols_cmds_CXX="$ltdll_cmds"
13004 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'
13006 linux* | k*bsd*-gnu)
13007 link_all_deplibs_CXX=no
13010 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13014 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13015 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13016 test "$ld_shlibs_CXX" = no && can_build_shared=no
13019 # Do we need to explicitly link libc?
13021 case "x$archive_cmds_need_lc_CXX" in
13023 # Assume -lc should be added
13024 archive_cmds_need_lc_CXX=yes
13026 if test "$enable_shared" = yes && test "$GCC" = yes; then
13027 case $archive_cmds_CXX in
13029 # FIXME: we may have to deal with multi-command sequences.
13032 # Test whether the compiler implicitly links with -lc since on some
13033 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13034 # to ld, don't add -lc before -lgcc.
13035 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13036 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041 (eval $ac_compile) 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } 2>conftest.err; then
13047 libobjs=conftest.$ac_objext
13049 wl=$lt_prog_compiler_wl_CXX
13050 pic_flag=$lt_prog_compiler_pic_CXX
13056 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13057 allow_undefined_flag_CXX=
13058 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13059 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }
13064 archive_cmds_need_lc_CXX=no
13066 archive_cmds_need_lc_CXX=yes
13068 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13070 cat conftest.err 1>&5
13073 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13074 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13081 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13082 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13083 library_names_spec=
13084 libname_spec='lib$name'
13088 postuninstall_cmds=
13092 shlibpath_overrides_runpath=unknown
13094 dynamic_linker="$host_os ld.so"
13095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13097 need_lib_prefix=unknown
13098 hardcode_into_libs=no
13100 # when you set need_version to no, make sure it does not cause -set_version
13101 # flags to be left without arguments
13102 need_version=unknown
13107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13108 shlibpath_var=LIBPATH
13110 # AIX 3 has no versioning support, so we append a major version to the name.
13111 soname_spec='${libname}${release}${shared_ext}$major'
13118 hardcode_into_libs=yes
13119 if test "$host_cpu" = ia64; then
13120 # AIX 5 supports IA64
13121 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13122 shlibpath_var=LD_LIBRARY_PATH
13124 # With GCC up to 2.95.x, collect2 would create an import file
13125 # for dependence libraries. The import file would start with
13126 # the line `#! .'. This would cause the generated library to
13127 # depend on `.', always an invalid library. This was fixed in
13128 # development snapshots of GCC prior to 3.0.
13130 aix4 | aix4.[01] | aix4.[01].*)
13131 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13133 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13136 can_build_shared=no
13140 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13141 # soname into executable. Probably we can add versioning support to
13142 # collect2, so additional links can be useful in future.
13143 if test "$aix_use_runtimelinking" = yes; then
13144 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13145 # instead of lib<name>.a to let people know that these are not
13146 # typical AIX shared libraries.
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13149 # We preserve .a as extension for shared libraries through AIX4.2
13150 # and later when we are not doing run time linking.
13151 library_names_spec='${libname}${release}.a $libname.a'
13152 soname_spec='${libname}${release}${shared_ext}$major'
13154 shlibpath_var=LIBPATH
13159 library_names_spec='$libname.ixlibrary $libname.a'
13160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13161 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'
13165 library_names_spec='${libname}${shared_ext}'
13166 dynamic_linker="$host_os ld.so"
13167 shlibpath_var=LIBRARY_PATH
13173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13174 soname_spec='${libname}${release}${shared_ext}$major'
13175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13176 shlibpath_var=LD_LIBRARY_PATH
13177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13179 # the default ld.so.conf also contains /usr/contrib/lib and
13180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13181 # libtool to hard-code these into programs
13184 cygwin* | mingw* | pw32*)
13185 version_type=windows
13190 case $GCC,$host_os in
13191 yes,cygwin* | yes,mingw* | yes,pw32*)
13192 library_names_spec='$libname.dll.a'
13193 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13194 postinstall_cmds='base_file=`basename \${file}`~
13195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13196 dldir=$destdir/`dirname \$dlpath`~
13197 test -d \$dldir || mkdir -p \$dldir~
13198 $install_prog $dir/$dlname \$dldir/$dlname~
13199 chmod a+x \$dldir/$dlname'
13200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13201 dlpath=$dir/\$dldll~
13203 shlibpath_overrides_runpath=yes
13207 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13208 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13209 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13212 # MinGW DLLs use traditional 'lib' prefix
13213 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13214 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13215 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13216 # It is most probably a Windows format PATH printed by
13217 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13218 # path with ; separators, and with drive letters. We can handle the
13219 # drive letters (cygwin fileutils understands them), so leave them,
13220 # especially as we might pass files found there to a mingw objdump,
13221 # which wouldn't understand a cygwinified path. Ahh.
13222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13228 # pw32 DLLs use 'pw' prefix rather than 'lib'
13229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13238 dynamic_linker='Win32 ld.exe'
13239 # FIXME: first we should search . and the directory the executable is in
13243 darwin* | rhapsody*)
13244 dynamic_linker="$host_os dyld"
13245 version_type=darwin
13248 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13249 soname_spec='${libname}${release}${major}$shared_ext'
13250 shlibpath_overrides_runpath=yes
13251 shlibpath_var=DYLD_LIBRARY_PATH
13252 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13254 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13262 soname_spec='${libname}${release}${shared_ext}$major'
13263 shlibpath_var=LD_LIBRARY_PATH
13270 freebsd* | dragonfly*)
13271 # DragonFly does not have aout. When/if they implement a new
13272 # versioning mechanism, adjust this.
13273 if test -x /usr/bin/objformat; then
13274 objformat=`/usr/bin/objformat`
13277 freebsd[123]*) objformat=aout ;;
13278 *) objformat=elf ;;
13281 version_type=freebsd-$objformat
13282 case $version_type in
13284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13293 shlibpath_var=LD_LIBRARY_PATH
13296 shlibpath_overrides_runpath=yes
13298 freebsd3.[01]* | freebsdelf3.[01]*)
13299 shlibpath_overrides_runpath=yes
13300 hardcode_into_libs=yes
13302 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13303 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13304 shlibpath_overrides_runpath=no
13305 hardcode_into_libs=yes
13307 *) # from 4.6 on, and DragonFly
13308 shlibpath_overrides_runpath=yes
13309 hardcode_into_libs=yes
13318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13319 soname_spec='${libname}${release}${shared_ext}$major'
13320 shlibpath_var=LD_LIBRARY_PATH
13321 hardcode_into_libs=yes
13324 hpux9* | hpux10* | hpux11*)
13325 # Give a soname corresponding to the major version so that dld.sl refuses to
13326 # link against other versions.
13333 hardcode_into_libs=yes
13334 dynamic_linker="$host_os dld.so"
13335 shlibpath_var=LD_LIBRARY_PATH
13336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338 soname_spec='${libname}${release}${shared_ext}$major'
13339 if test "X$HPUX_IA64_MODE" = X32; then
13340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13348 hardcode_into_libs=yes
13349 dynamic_linker="$host_os dld.sl"
13350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13353 soname_spec='${libname}${release}${shared_ext}$major'
13354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13359 dynamic_linker="$host_os dld.sl"
13360 shlibpath_var=SHLIB_PATH
13361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13363 soname_spec='${libname}${release}${shared_ext}$major'
13366 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13367 postinstall_cmds='chmod 555 $lib'
13374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13375 soname_spec='${libname}${release}${shared_ext}$major'
13376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13377 shlibpath_var=LD_LIBRARY_PATH
13378 shlibpath_overrides_runpath=no
13379 hardcode_into_libs=yes
13382 irix5* | irix6* | nonstopux*)
13384 nonstopux*) version_type=nonstopux ;;
13386 if test "$lt_cv_prog_gnu_ld" = yes; then
13394 soname_spec='${libname}${release}${shared_ext}$major'
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13397 irix5* | nonstopux*)
13398 libsuff= shlibsuff=
13401 case $LD in # libtool.m4 will add one of these switches to LD
13402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13403 libsuff= shlibsuff= libmagic=32-bit;;
13404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13405 libsuff=32 shlibsuff=N32 libmagic=N32;;
13406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13407 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13408 *) libsuff= shlibsuff= libmagic=never-match;;
13412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13413 shlibpath_overrides_runpath=no
13414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13416 hardcode_into_libs=yes
13419 # No shared lib support for Linux oldld, aout, or coff.
13420 linux*oldld* | linux*aout* | linux*coff*)
13424 # This must be Linux ELF.
13425 linux* | k*bsd*-gnu)
13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13430 soname_spec='${libname}${release}${shared_ext}$major'
13431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13432 shlibpath_var=LD_LIBRARY_PATH
13433 shlibpath_overrides_runpath=no
13434 # This implies no fast_install, which is unacceptable.
13435 # Some rework will be needed to allow for fast_install
13436 # before this can be enabled.
13437 hardcode_into_libs=yes
13439 # Append ld.so.conf contents to the search path
13440 if test -f /etc/ld.so.conf; then
13441 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' ' '`
13442 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13445 # We used to test for /lib/ld.so.1 and disable shared libraries on
13446 # powerpc, because MkLinux only supported shared libraries with the
13447 # GNU dynamic linker. Since this was broken with cross compilers,
13448 # most powerpc-linux boxes support dynamic linking these days and
13449 # people can always --disable-shared, the test was removed, and we
13450 # assume the GNU/Linux dynamic linker is in use.
13451 dynamic_linker='GNU/Linux ld.so'
13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13459 soname_spec='${libname}${release}${shared_ext}$major'
13460 shlibpath_var=LD_LIBRARY_PATH
13461 shlibpath_overrides_runpath=no
13462 hardcode_into_libs=yes
13463 dynamic_linker='NetBSD ld.elf_so'
13470 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13473 dynamic_linker='NetBSD (a.out) ld.so'
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13476 soname_spec='${libname}${release}${shared_ext}$major'
13477 dynamic_linker='NetBSD ld.elf_so'
13479 shlibpath_var=LD_LIBRARY_PATH
13480 shlibpath_overrides_runpath=yes
13481 hardcode_into_libs=yes
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 shlibpath_overrides_runpath=yes
13495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13496 soname_spec='${libname}${release}${shared_ext}$major'
13497 shlibpath_var=LD_LIBRARY_PATH
13498 shlibpath_overrides_runpath=yes
13503 sys_lib_dlsearch_path_spec="/usr/lib"
13505 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13507 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13508 *) need_version=no ;;
13510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13512 shlibpath_var=LD_LIBRARY_PATH
13513 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13515 openbsd2.[89] | openbsd2.[89].*)
13516 shlibpath_overrides_runpath=no
13519 shlibpath_overrides_runpath=yes
13523 shlibpath_overrides_runpath=yes
13528 libname_spec='$name'
13531 library_names_spec='$libname${shared_ext} $libname.a'
13532 dynamic_linker='OS/2 ld.exe'
13533 shlibpath_var=LIBPATH
13536 osf3* | osf4* | osf5*)
13540 soname_spec='${libname}${release}${shared_ext}$major'
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542 shlibpath_var=LD_LIBRARY_PATH
13543 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13544 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556 soname_spec='${libname}${release}${shared_ext}$major'
13557 shlibpath_var=LD_LIBRARY_PATH
13558 shlibpath_overrides_runpath=yes
13559 hardcode_into_libs=yes
13560 # ldd complains unless libraries are executable
13561 postinstall_cmds='chmod +x $lib'
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13567 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 shlibpath_overrides_runpath=yes
13570 if test "$with_gnu_ld" = yes; then
13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13579 soname_spec='${libname}${release}${shared_ext}$major'
13580 shlibpath_var=LD_LIBRARY_PATH
13581 case $host_vendor in
13583 shlibpath_overrides_runpath=no
13585 export_dynamic_flag_spec='${wl}-Blargedynsym'
13586 runpath_var=LD_RUN_PATH
13594 shlibpath_overrides_runpath=no
13595 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13601 if test -d /usr/nec ;then
13603 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13604 soname_spec='$libname${shared_ext}.$major'
13605 shlibpath_var=LD_LIBRARY_PATH
13609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13610 version_type=freebsd-elf
13613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13614 soname_spec='${libname}${release}${shared_ext}$major'
13615 shlibpath_var=LD_LIBRARY_PATH
13616 hardcode_into_libs=yes
13617 if test "$with_gnu_ld" = yes; then
13618 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13619 shlibpath_overrides_runpath=no
13621 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13622 shlibpath_overrides_runpath=yes
13625 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13629 sys_lib_dlsearch_path_spec='/usr/lib'
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13635 soname_spec='${libname}${release}${shared_ext}$major'
13636 shlibpath_var=LD_LIBRARY_PATH
13643 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13644 echo "${ECHO_T}$dynamic_linker" >&6; }
13645 test "$dynamic_linker" = no && can_build_shared=no
13647 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13648 if test "$GCC" = yes; then
13649 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13652 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13653 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13654 hardcode_action_CXX=
13655 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13656 test -n "$runpath_var_CXX" || \
13657 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13659 # We can hardcode non-existant directories.
13660 if test "$hardcode_direct_CXX" != no &&
13661 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13662 # have to relink, otherwise we might link with an installed library
13663 # when we should be linking with a yet-to-be-installed one
13664 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13665 test "$hardcode_minus_L_CXX" != no; then
13666 # Linking always hardcodes the temporary library directory.
13667 hardcode_action_CXX=relink
13669 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13670 hardcode_action_CXX=immediate
13673 # We cannot hardcode anything, or else we can only hardcode existing
13675 hardcode_action_CXX=unsupported
13677 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13678 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13680 if test "$hardcode_action_CXX" = relink; then
13681 # Fast installation is not supported
13682 enable_fast_install=no
13683 elif test "$shlibpath_overrides_runpath" = yes ||
13684 test "$enable_shared" = no; then
13685 # Fast installation is not necessary
13686 enable_fast_install=needless
13690 # The else clause should only fire when bootstrapping the
13691 # libtool distribution, otherwise you forgot to ship ltmain.sh
13692 # with your package, and you will get complaints that there are
13693 # no rules to generate ltmain.sh.
13694 if test -f "$ltmain"; then
13695 # See if we are running on zsh, and set the options which allow our commands through
13696 # without removal of \ escapes.
13697 if test -n "${ZSH_VERSION+set}" ; then
13698 setopt NO_GLOB_SUBST
13700 # Now quote all the things that may contain metacharacters while being
13701 # careful not to overquote the AC_SUBSTed values. We take copies of the
13702 # variables and quote the copies for generation of the libtool script.
13703 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13705 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13706 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13707 deplibs_check_method reload_flag reload_cmds need_locks \
13708 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13709 lt_cv_sys_global_symbol_to_c_name_address \
13710 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13711 old_postinstall_cmds old_postuninstall_cmds \
13715 lt_prog_compiler_wl_CXX \
13716 lt_prog_compiler_pic_CXX \
13717 lt_prog_compiler_static_CXX \
13718 lt_prog_compiler_no_builtin_flag_CXX \
13719 export_dynamic_flag_spec_CXX \
13720 thread_safe_flag_spec_CXX \
13721 whole_archive_flag_spec_CXX \
13722 enable_shared_with_static_runtimes_CXX \
13723 old_archive_cmds_CXX \
13724 old_archive_from_new_cmds_CXX \
13725 predep_objects_CXX \
13726 postdep_objects_CXX \
13729 compiler_lib_search_path_CXX \
13731 archive_expsym_cmds_CXX \
13732 postinstall_cmds_CXX \
13733 postuninstall_cmds_CXX \
13734 old_archive_from_expsyms_cmds_CXX \
13735 allow_undefined_flag_CXX \
13736 no_undefined_flag_CXX \
13737 export_symbols_cmds_CXX \
13738 hardcode_libdir_flag_spec_CXX \
13739 hardcode_libdir_flag_spec_ld_CXX \
13740 hardcode_libdir_separator_CXX \
13741 hardcode_automatic_CXX \
13743 module_expsym_cmds_CXX \
13744 lt_cv_prog_compiler_c_o_CXX \
13745 fix_srcfile_path_CXX \
13746 exclude_expsyms_CXX \
13747 include_expsyms_CXX; do
13750 old_archive_cmds_CXX | \
13751 old_archive_from_new_cmds_CXX | \
13752 archive_cmds_CXX | \
13753 archive_expsym_cmds_CXX | \
13754 module_cmds_CXX | \
13755 module_expsym_cmds_CXX | \
13756 old_archive_from_expsyms_cmds_CXX | \
13757 export_symbols_cmds_CXX | \
13758 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13759 postinstall_cmds | postuninstall_cmds | \
13760 old_postinstall_cmds | old_postuninstall_cmds | \
13761 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13762 # Double-quote double-evaled strings.
13763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13766 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13772 *'\$0 --fallback-echo"')
13773 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13779 cat <<__EOF__ >> "$cfgfile"
13780 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13782 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13784 # Shell to use when invoking shell scripts.
13787 # Whether or not to build shared libraries.
13788 build_libtool_libs=$enable_shared
13790 # Whether or not to build static libraries.
13791 build_old_libs=$enable_static
13793 # Whether or not to add -lc for building shared libraries.
13794 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13796 # Whether or not to disallow shared libs when runtime libs are static
13797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13799 # Whether or not to optimize for fast installation.
13800 fast_install=$enable_fast_install
13803 host_alias=$host_alias
13807 # The build system.
13808 build_alias=$build_alias
13812 # An echo program that does not interpret backslashes.
13817 AR_FLAGS=$lt_AR_FLAGS
13822 # LTCC compiler flags.
13823 LTCFLAGS=$lt_LTCFLAGS
13825 # A language-specific compiler.
13826 CC=$lt_compiler_CXX
13828 # Is the compiler the GNU C compiler?
13834 # The linker used to build libraries.
13837 # Whether we need hard or soft links.
13840 # A BSD-compatible nm program.
13843 # A symbol stripping program
13846 # Used to examine libraries when file_magic_cmd begins "file"
13847 MAGIC_CMD=$MAGIC_CMD
13849 # Used on cygwin: DLL creation program.
13852 # Used on cygwin: object dumper.
13855 # Used on cygwin: assembler.
13858 # The name of the directory that contains temporary libtool files.
13861 # How to create reloadable object files.
13862 reload_flag=$lt_reload_flag
13863 reload_cmds=$lt_reload_cmds
13865 # How to pass a linker flag through the compiler.
13866 wl=$lt_lt_prog_compiler_wl_CXX
13868 # Object file suffix (normally "o").
13869 objext="$ac_objext"
13871 # Old archive suffix (normally "a").
13874 # Shared library suffix (normally ".so").
13875 shrext_cmds='$shrext_cmds'
13877 # Executable file suffix (normally "").
13880 # Additional compiler flags for building library objects.
13881 pic_flag=$lt_lt_prog_compiler_pic_CXX
13884 # What is the maximum length of a command?
13885 max_cmd_len=$lt_cv_sys_max_cmd_len
13887 # Does compiler simultaneously support -c and -o options?
13888 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13890 # Must we lock files when doing compilation?
13891 need_locks=$lt_need_locks
13893 # Do we need the lib prefix for modules?
13894 need_lib_prefix=$need_lib_prefix
13896 # Do we need a version for libraries?
13897 need_version=$need_version
13899 # Whether dlopen is supported.
13900 dlopen_support=$enable_dlopen
13902 # Whether dlopen of programs is supported.
13903 dlopen_self=$enable_dlopen_self
13905 # Whether dlopen of statically linked programs is supported.
13906 dlopen_self_static=$enable_dlopen_self_static
13908 # Compiler flag to prevent dynamic linking.
13909 link_static_flag=$lt_lt_prog_compiler_static_CXX
13911 # Compiler flag to turn off builtin functions.
13912 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13914 # Compiler flag to allow reflexive dlopens.
13915 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13917 # Compiler flag to generate shared objects directly from archives.
13918 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13920 # Compiler flag to generate thread-safe objects.
13921 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13923 # Library versioning type.
13924 version_type=$version_type
13926 # Format of library name prefix.
13927 libname_spec=$lt_libname_spec
13929 # List of archive names. First name is the real one, the rest are links.
13930 # The last name is the one that the linker finds with -lNAME.
13931 library_names_spec=$lt_library_names_spec
13933 # The coded name of the library, if different from the real name.
13934 soname_spec=$lt_soname_spec
13936 # Commands used to build and install an old-style archive.
13938 old_archive_cmds=$lt_old_archive_cmds_CXX
13939 old_postinstall_cmds=$lt_old_postinstall_cmds
13940 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13942 # Create an old-style archive from a shared archive.
13943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13945 # Create a temporary old-style archive to link instead of a shared archive.
13946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13948 # Commands used to build and install a shared archive.
13949 archive_cmds=$lt_archive_cmds_CXX
13950 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13951 postinstall_cmds=$lt_postinstall_cmds
13952 postuninstall_cmds=$lt_postuninstall_cmds
13954 # Commands used to build a loadable module (assumed same as above if empty)
13955 module_cmds=$lt_module_cmds_CXX
13956 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13958 # Commands to strip libraries.
13959 old_striplib=$lt_old_striplib
13960 striplib=$lt_striplib
13962 # Dependencies to place before the objects being linked to create a
13964 predep_objects=$lt_predep_objects_CXX
13966 # Dependencies to place after the objects being linked to create a
13968 postdep_objects=$lt_postdep_objects_CXX
13970 # Dependencies to place before the objects being linked to create a
13972 predeps=$lt_predeps_CXX
13974 # Dependencies to place after the objects being linked to create a
13976 postdeps=$lt_postdeps_CXX
13978 # The library search path used internally by the compiler when linking
13979 # a shared library.
13980 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13982 # Method to check whether dependent libraries are shared objects.
13983 deplibs_check_method=$lt_deplibs_check_method
13985 # Command to use when deplibs_check_method == file_magic.
13986 file_magic_cmd=$lt_file_magic_cmd
13988 # Flag that allows shared libraries with undefined symbols to be built.
13989 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13991 # Flag that forces no undefined symbols.
13992 no_undefined_flag=$lt_no_undefined_flag_CXX
13994 # Commands used to finish a libtool library installation in a directory.
13995 finish_cmds=$lt_finish_cmds
13997 # Same as above, but a single script fragment to be evaled but not shown.
13998 finish_eval=$lt_finish_eval
14000 # Take the output of nm and produce a listing of raw symbols and C names.
14001 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14003 # Transform the output of nm in a proper C declaration
14004 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14006 # Transform the output of nm in a C name address pair
14007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14009 # This is the shared library runtime path variable.
14010 runpath_var=$runpath_var
14012 # This is the shared library path variable.
14013 shlibpath_var=$shlibpath_var
14015 # Is shlibpath searched before the hard-coded library search path?
14016 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14018 # How to hardcode a shared library path into an executable.
14019 hardcode_action=$hardcode_action_CXX
14021 # Whether we should hardcode library paths into libraries.
14022 hardcode_into_libs=$hardcode_into_libs
14024 # Flag to hardcode \$libdir into a binary during linking.
14025 # This must work even if \$libdir does not exist.
14026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14028 # If ld is used when linking, flag to hardcode \$libdir into
14029 # a binary during linking. This must work even if \$libdir does
14031 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14033 # Whether we need a single -rpath flag with a separated argument.
14034 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14036 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14037 # resulting binary.
14038 hardcode_direct=$hardcode_direct_CXX
14040 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14041 # resulting binary.
14042 hardcode_minus_L=$hardcode_minus_L_CXX
14044 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14045 # the resulting binary.
14046 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14048 # Set to yes if building a shared library automatically hardcodes DIR into the library
14049 # and all subsequent libraries and executables linked against it.
14050 hardcode_automatic=$hardcode_automatic_CXX
14052 # Variables whose values should be saved in libtool wrapper scripts and
14053 # restored at relink time.
14054 variables_saved_for_relink="$variables_saved_for_relink"
14056 # Whether libtool must link a program against all its dependency libraries.
14057 link_all_deplibs=$link_all_deplibs_CXX
14059 # Compile-time system search path for libraries
14060 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14062 # Run-time system search path for libraries
14063 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14065 # Fix the shell variable \$srcfile for the compiler.
14066 fix_srcfile_path=$lt_fix_srcfile_path
14068 # Set to yes if exported symbols are required.
14069 always_export_symbols=$always_export_symbols_CXX
14071 # The commands to list exported symbols.
14072 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14074 # The commands to extract the exported symbol list from a shared archive.
14075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14077 # Symbols that should not be listed in the preloaded symbols.
14078 exclude_expsyms=$lt_exclude_expsyms_CXX
14080 # Symbols that must always be exported.
14081 include_expsyms=$lt_include_expsyms_CXX
14083 # ### END LIBTOOL TAG CONFIG: $tagname
14089 # If there is no Makefile yet, we rely on a make rule to execute
14090 # `config.status --recheck' to rerun these tests and create the
14091 # libtool script then.
14092 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14093 if test -f "$ltmain_in"; then
14094 test -f Makefile && make "$ltmain"
14100 ac_cpp='$CPP $CPPFLAGS'
14101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14109 with_gnu_ldcxx=$with_gnu_ld
14110 with_gnu_ld=$lt_save_with_gnu_ld
14111 lt_cv_path_LDCXX=$lt_cv_path_LD
14112 lt_cv_path_LD=$lt_save_path_LD
14113 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14114 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14122 if test -n "$F77" && test "X$F77" != "Xno"; then
14125 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14126 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14127 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14130 archive_cmds_need_lc_F77=no
14131 allow_undefined_flag_F77=
14132 always_export_symbols_F77=no
14133 archive_expsym_cmds_F77=
14134 export_dynamic_flag_spec_F77=
14135 hardcode_direct_F77=no
14136 hardcode_libdir_flag_spec_F77=
14137 hardcode_libdir_flag_spec_ld_F77=
14138 hardcode_libdir_separator_F77=
14139 hardcode_minus_L_F77=no
14140 hardcode_automatic_F77=no
14142 module_expsym_cmds_F77=
14143 link_all_deplibs_F77=unknown
14144 old_archive_cmds_F77=$old_archive_cmds
14145 no_undefined_flag_F77=
14146 whole_archive_flag_spec_F77=
14147 enable_shared_with_static_runtimes_F77=no
14149 # Source file extension for f77 test sources.
14152 # Object file extension for compiled f77 test sources.
14156 # Code to be used in simple compile tests
14157 lt_simple_compile_test_code="\
14163 # Code to be used in simple link tests
14164 lt_simple_link_test_code="\
14169 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14171 # If no C compiler was specified, use CC.
14174 # If no C compiler flags were specified, use CFLAGS.
14175 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14177 # Allow CC to be a program name with arguments.
14181 # save warnings/boilerplate of simple test code
14182 ac_outfile=conftest.$ac_objext
14183 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14184 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14185 _lt_compiler_boilerplate=`cat conftest.err`
14188 ac_outfile=conftest.$ac_objext
14189 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14190 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14191 _lt_linker_boilerplate=`cat conftest.err`
14195 # Allow CC to be a program name with arguments.
14200 for cc_temp in $compiler""; do
14202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14208 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14211 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14212 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14213 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14214 echo "${ECHO_T}$can_build_shared" >&6; }
14216 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14217 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14218 test "$can_build_shared" = "no" && enable_shared=no
14220 # On AIX, shared libraries and static libraries use the same namespace, and
14221 # are all built from PIC.
14224 test "$enable_shared" = yes && enable_static=no
14225 if test -n "$RANLIB"; then
14226 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14227 postinstall_cmds='$RANLIB $lib'
14231 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14232 test "$enable_shared" = yes && enable_static=no
14236 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14237 echo "${ECHO_T}$enable_shared" >&6; }
14239 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14240 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14241 # Make sure either enable_shared or enable_static is yes.
14242 test "$enable_shared" = yes || enable_static=yes
14243 { echo "$as_me:$LINENO: result: $enable_static" >&5
14244 echo "${ECHO_T}$enable_static" >&6; }
14249 lt_prog_compiler_wl_F77=
14250 lt_prog_compiler_pic_F77=
14251 lt_prog_compiler_static_F77=
14253 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14254 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14256 if test "$GCC" = yes; then
14257 lt_prog_compiler_wl_F77='-Wl,'
14258 lt_prog_compiler_static_F77='-static'
14262 # All AIX code is PIC.
14263 if test "$host_cpu" = ia64; then
14264 # AIX 5 now supports IA64 processor
14265 lt_prog_compiler_static_F77='-Bstatic'
14270 # FIXME: we need at least 68020 code to build shared libraries, but
14271 # adding the `-m68020' flag to GCC prevents building anything better,
14273 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14276 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14277 # PIC is the default for these OSes.
14280 mingw* | cygwin* | pw32* | os2*)
14281 # This hack is so that the source file can tell whether it is being
14282 # built for inclusion in a dll (and should export symbols for example).
14283 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14284 # (--disable-auto-import) libraries
14285 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14288 darwin* | rhapsody*)
14289 # PIC is the default on this platform
14290 # Common symbols not allowed in MH_DYLIB files
14291 lt_prog_compiler_pic_F77='-fno-common'
14295 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14296 # Instead, we relocate shared libraries at runtime.
14300 # Just because we use GCC doesn't mean we suddenly get shared libraries
14301 # on systems that don't support them.
14302 lt_prog_compiler_can_build_shared_F77=no
14307 if test -d /usr/nec; then
14308 lt_prog_compiler_pic_F77=-Kconform_pic
14313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14314 # not for PA HP-UX.
14320 lt_prog_compiler_pic_F77='-fPIC'
14326 lt_prog_compiler_pic_F77='-fPIC'
14330 # PORTME Check for flag to pass linker flags through the system compiler.
14333 lt_prog_compiler_wl_F77='-Wl,'
14334 if test "$host_cpu" = ia64; then
14335 # AIX 5 now supports IA64 processor
14336 lt_prog_compiler_static_F77='-Bstatic'
14338 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14342 # PIC is the default on this platform
14343 # Common symbols not allowed in MH_DYLIB files
14344 case $cc_basename in
14346 lt_prog_compiler_pic_F77='-qnocommon'
14347 lt_prog_compiler_wl_F77='-Wl,'
14352 mingw* | cygwin* | pw32* | os2*)
14353 # This hack is so that the source file can tell whether it is being
14354 # built for inclusion in a dll (and should export symbols for example).
14355 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14358 hpux9* | hpux10* | hpux11*)
14359 lt_prog_compiler_wl_F77='-Wl,'
14360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14361 # not for PA HP-UX.
14367 lt_prog_compiler_pic_F77='+Z'
14370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14371 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14374 irix5* | irix6* | nonstopux*)
14375 lt_prog_compiler_wl_F77='-Wl,'
14376 # PIC (with -KPIC) is the default.
14377 lt_prog_compiler_static_F77='-non_shared'
14381 lt_prog_compiler_pic_F77='-KPIC'
14382 lt_prog_compiler_static_F77='-Bstatic'
14385 linux* | k*bsd*-gnu)
14386 case $cc_basename in
14388 lt_prog_compiler_wl_F77='-Wl,'
14389 lt_prog_compiler_pic_F77='-KPIC'
14390 lt_prog_compiler_static_F77='-static'
14392 pgcc* | pgf77* | pgf90* | pgf95*)
14393 # Portland Group compilers (*not* the Pentium gcc compiler,
14394 # which looks to be a dead project)
14395 lt_prog_compiler_wl_F77='-Wl,'
14396 lt_prog_compiler_pic_F77='-fpic'
14397 lt_prog_compiler_static_F77='-Bstatic'
14400 lt_prog_compiler_wl_F77='-Wl,'
14401 # All Alpha code is PIC.
14402 lt_prog_compiler_static_F77='-non_shared'
14405 case `$CC -V 2>&1 | sed 5q` in
14408 lt_prog_compiler_pic_F77='-KPIC'
14409 lt_prog_compiler_static_F77='-Bstatic'
14410 lt_prog_compiler_wl_F77='-Wl,'
14413 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14414 lt_prog_compiler_pic_F77='-KPIC'
14415 lt_prog_compiler_static_F77='-Bstatic'
14416 lt_prog_compiler_wl_F77=''
14423 osf3* | osf4* | osf5*)
14424 lt_prog_compiler_wl_F77='-Wl,'
14425 # All OSF/1 code is PIC.
14426 lt_prog_compiler_static_F77='-non_shared'
14430 lt_prog_compiler_static_F77='-non_shared'
14434 lt_prog_compiler_pic_F77='-KPIC'
14435 lt_prog_compiler_static_F77='-Bstatic'
14436 case $cc_basename in
14437 f77* | f90* | f95*)
14438 lt_prog_compiler_wl_F77='-Qoption ld ';;
14440 lt_prog_compiler_wl_F77='-Wl,';;
14445 lt_prog_compiler_wl_F77='-Qoption ld '
14446 lt_prog_compiler_pic_F77='-PIC'
14447 lt_prog_compiler_static_F77='-Bstatic'
14450 sysv4 | sysv4.2uw2* | sysv4.3*)
14451 lt_prog_compiler_wl_F77='-Wl,'
14452 lt_prog_compiler_pic_F77='-KPIC'
14453 lt_prog_compiler_static_F77='-Bstatic'
14457 if test -d /usr/nec ;then
14458 lt_prog_compiler_pic_F77='-Kconform_pic'
14459 lt_prog_compiler_static_F77='-Bstatic'
14463 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14464 lt_prog_compiler_wl_F77='-Wl,'
14465 lt_prog_compiler_pic_F77='-KPIC'
14466 lt_prog_compiler_static_F77='-Bstatic'
14470 lt_prog_compiler_wl_F77='-Wl,'
14471 lt_prog_compiler_can_build_shared_F77=no
14475 lt_prog_compiler_pic_F77='-pic'
14476 lt_prog_compiler_static_F77='-Bstatic'
14480 lt_prog_compiler_can_build_shared_F77=no
14485 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14486 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14489 # Check to make sure the PIC flag actually works.
14491 if test -n "$lt_prog_compiler_pic_F77"; then
14493 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14494 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14495 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 lt_prog_compiler_pic_works_F77=no
14499 ac_outfile=conftest.$ac_objext
14500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14501 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14502 # Insert the option either (1) after the last *FLAGS variable, or
14503 # (2) before a word containing "conftest.", or (3) at the end.
14504 # Note that $ac_compile itself does not contain backslashes and begins
14505 # with a dollar sign (not a hyphen), so the echo should work correctly.
14506 # The option is referenced via a variable to avoid confusing sed.
14507 lt_compile=`echo "$ac_compile" | $SED \
14508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14510 -e 's:$: $lt_compiler_flag:'`
14511 (eval echo "\"\$as_me:14511: $lt_compile\"" >&5)
14512 (eval "$lt_compile" 2>conftest.err)
14514 cat conftest.err >&5
14515 echo "$as_me:14515: \$? = $ac_status" >&5
14516 if (exit $ac_status) && test -s "$ac_outfile"; then
14517 # The compiler can only warn and ignore the option if not recognized
14518 # So say no if there are warnings other than the usual output.
14519 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14522 lt_prog_compiler_pic_works_F77=yes
14528 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14529 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14531 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14532 case $lt_prog_compiler_pic_F77 in
14534 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14537 lt_prog_compiler_pic_F77=
14538 lt_prog_compiler_can_build_shared_F77=no
14543 # For platforms which do not support PIC, -DPIC is meaningless:
14545 lt_prog_compiler_pic_F77=
14548 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14553 # Check to make sure the static flag actually works.
14555 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14556 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14557 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14558 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 lt_prog_compiler_static_works_F77=no
14562 save_LDFLAGS="$LDFLAGS"
14563 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14564 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14565 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14566 # The linker can only warn and ignore the option if not recognized
14567 # So say no if there are warnings
14568 if test -s conftest.err; then
14569 # Append any errors to the config.log.
14570 cat conftest.err 1>&5
14571 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14573 if diff conftest.exp conftest.er2 >/dev/null; then
14574 lt_prog_compiler_static_works_F77=yes
14577 lt_prog_compiler_static_works_F77=yes
14581 LDFLAGS="$save_LDFLAGS"
14584 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14585 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14587 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14590 lt_prog_compiler_static_F77=
14594 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14595 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14596 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 lt_cv_prog_compiler_c_o_F77=no
14600 $rm -r conftest 2>/dev/null
14604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14606 lt_compiler_flag="-o out/conftest2.$ac_objext"
14607 # Insert the option either (1) after the last *FLAGS variable, or
14608 # (2) before a word containing "conftest.", or (3) at the end.
14609 # Note that $ac_compile itself does not contain backslashes and begins
14610 # with a dollar sign (not a hyphen), so the echo should work correctly.
14611 lt_compile=`echo "$ac_compile" | $SED \
14612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14614 -e 's:$: $lt_compiler_flag:'`
14615 (eval echo "\"\$as_me:14615: $lt_compile\"" >&5)
14616 (eval "$lt_compile" 2>out/conftest.err)
14618 cat out/conftest.err >&5
14619 echo "$as_me:14619: \$? = $ac_status" >&5
14620 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14622 # The compiler can only warn and ignore the option if not recognized
14623 # So say no if there are warnings
14624 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14627 lt_cv_prog_compiler_c_o_F77=yes
14632 # SGI C++ compiler will create directory out/ii_files/ for
14633 # template instantiation
14634 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14635 $rm out/* && rmdir out
14641 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14642 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14645 hard_links="nottested"
14646 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14647 # do not overwrite the value of need_locks provided by the user
14648 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14649 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14654 ln conftest.a conftest.b 2>&5 || hard_links=no
14655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14656 { echo "$as_me:$LINENO: result: $hard_links" >&5
14657 echo "${ECHO_T}$hard_links" >&6; }
14658 if test "$hard_links" = no; then
14659 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14660 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14667 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14668 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14671 allow_undefined_flag_F77=
14672 enable_shared_with_static_runtimes_F77=no
14674 archive_expsym_cmds_F77=
14675 old_archive_From_new_cmds_F77=
14676 old_archive_from_expsyms_cmds_F77=
14677 export_dynamic_flag_spec_F77=
14678 whole_archive_flag_spec_F77=
14679 thread_safe_flag_spec_F77=
14680 hardcode_libdir_flag_spec_F77=
14681 hardcode_libdir_flag_spec_ld_F77=
14682 hardcode_libdir_separator_F77=
14683 hardcode_direct_F77=no
14684 hardcode_minus_L_F77=no
14685 hardcode_shlibpath_var_F77=unsupported
14686 link_all_deplibs_F77=unknown
14687 hardcode_automatic_F77=no
14689 module_expsym_cmds_F77=
14690 always_export_symbols_F77=no
14691 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14692 # include_expsyms should be a list of space-separated symbols to be *always*
14693 # included in the symbol list
14694 include_expsyms_F77=
14695 # exclude_expsyms can be an extended regexp of symbols to exclude
14696 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14697 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14698 # as well as any symbol that contains `d'.
14699 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14700 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14701 # platforms (ab)use it in PIC code, but their linkers get confused if
14702 # the symbol is explicitly referenced. Since portable code cannot
14703 # rely on this symbol name, it's probably fine to never include it in
14704 # preloaded symbol tables.
14705 extract_expsyms_cmds=
14706 # Just being paranoid about ensuring that cc_basename is set.
14707 for cc_temp in $compiler""; do
14709 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14710 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14715 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14718 cygwin* | mingw* | pw32*)
14719 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14720 # When not using gcc, we currently assume that we are using
14721 # Microsoft Visual C++.
14722 if test "$GCC" != yes; then
14727 # we just hope/assume this is gcc and not c89 (= MSVC++)
14736 if test "$with_gnu_ld" = yes; then
14737 # If archive_cmds runs LD, not CC, wlarc should be empty
14740 # Set some defaults for GNU ld with shared library support. These
14741 # are reset later if shared libraries are not supported. Putting them
14742 # here allows them to be overridden if necessary.
14743 runpath_var=LD_RUN_PATH
14744 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14745 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14746 # ancient GNU ld didn't support --whole-archive et. al.
14747 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14748 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14750 whole_archive_flag_spec_F77=
14752 supports_anon_versioning=no
14753 case `$LD -v 2>/dev/null` in
14754 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14755 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14756 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14757 *\ 2.11.*) ;; # other 2.11 versions
14758 *) supports_anon_versioning=yes ;;
14761 # See if GNU ld supports shared libraries.
14763 aix3* | aix4* | aix5*)
14764 # On AIX/PPC, the GNU linker is very broken
14765 if test "$host_cpu" != ia64; then
14769 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14770 *** to be unable to reliably create shared libraries on AIX.
14771 *** Therefore, libtool is disabling shared libraries support. If you
14772 *** really care for shared libraries, you may want to modify your PATH
14773 *** so that a non-GNU linker is found, and then restart.
14780 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14781 hardcode_libdir_flag_spec_F77='-L$libdir'
14782 hardcode_minus_L_F77=yes
14784 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14785 # that the semantics of dynamic libraries on AmigaOS, at least up
14786 # to version 4, is to share data among multiple programs linked
14787 # with the same dynamic library. Since this doesn't match the
14788 # behavior of shared libraries on other platforms, we can't use
14794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14795 allow_undefined_flag_F77=unsupported
14796 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14797 # support --undefined. This deserves some investigation. FIXME
14798 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14804 cygwin* | mingw* | pw32*)
14805 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14806 # as there is no search path for DLLs.
14807 hardcode_libdir_flag_spec_F77='-L$libdir'
14808 allow_undefined_flag_F77=unsupported
14809 always_export_symbols_F77=no
14810 enable_shared_with_static_runtimes_F77=yes
14811 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14813 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14814 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14815 # If the export-symbols file already is a .def file (1st line
14816 # is EXPORTS), use it as is; otherwise, prepend...
14817 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14818 cp $export_symbols $output_objdir/$soname.def;
14820 echo EXPORTS > $output_objdir/$soname.def;
14821 cat $export_symbols >> $output_objdir/$soname.def;
14823 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14830 hardcode_direct_F77=no
14831 hardcode_shlibpath_var_F77=no
14832 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14833 export_dynamic_flag_spec_F77='${wl}-E'
14834 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14835 # Instead, shared libraries are loaded at an image base (0x10000000 by
14836 # default) and relocated if they conflict, which is a slow very memory
14837 # consuming and fragmenting process. To avoid this, we pick a random,
14838 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14839 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14840 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14841 archive_expsym_cmds_F77='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'
14844 gnu* | linux* | k*bsd*-gnu)
14845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14847 case $cc_basename,$host_cpu in
14848 pgcc*) # Portland Group C compiler
14849 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14850 tmp_addflag=' $pic_flag'
14852 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14853 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14854 tmp_addflag=' $pic_flag -Mnomain' ;;
14855 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14856 tmp_addflag=' -i_dynamic' ;;
14857 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14858 tmp_addflag=' -i_dynamic -nofor_main' ;;
14859 ifc* | ifort*) # Intel Fortran compiler
14860 tmp_addflag=' -nofor_main' ;;
14862 case `$CC -V 2>&1 | sed 5q` in
14863 *Sun\ C*) # Sun C 5.9
14864 whole_archive_flag_spec_F77='${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'
14865 tmp_sharedflag='-G' ;;
14866 *Sun\ F*) # Sun Fortran 8.3
14867 tmp_sharedflag='-G' ;;
14869 tmp_sharedflag='-shared' ;;
14871 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14873 if test $supports_anon_versioning = yes; then
14874 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14875 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14876 $echo "local: *; };" >> $output_objdir/$libname.ver~
14877 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14879 link_all_deplibs_F77=no
14885 netbsd* | netbsdelf*-gnu)
14886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14887 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14891 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14896 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14900 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14901 *** create shared libraries on Solaris systems. Therefore, libtool
14902 *** is disabling shared libraries support. We urge you to upgrade GNU
14903 *** binutils to release 2.9.1 or newer. Another option is to modify
14904 *** your PATH or compiler configuration so that the native linker is
14905 *** used, and then restart.
14908 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14909 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14910 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14917 case `$LD -v 2>&1` in
14918 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14922 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14923 *** reliably create shared libraries on SCO systems. Therefore, libtool
14924 *** is disabling shared libraries support. We urge you to upgrade GNU
14925 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14926 *** your PATH or compiler configuration so that the native linker is
14927 *** used, and then restart.
14932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14933 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14934 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14935 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14944 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14946 hardcode_direct_F77=yes
14947 hardcode_shlibpath_var_F77=no
14951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14952 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14953 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14960 if test "$ld_shlibs_F77" = no; then
14962 hardcode_libdir_flag_spec_F77=
14963 export_dynamic_flag_spec_F77=
14964 whole_archive_flag_spec_F77=
14967 # PORTME fill in a description of your system's linker (not GNU ld)
14970 allow_undefined_flag_F77=unsupported
14971 always_export_symbols_F77=yes
14972 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14973 # Note: this linker hardcodes the directories in LIBPATH if there
14974 # are no directories specified by -L.
14975 hardcode_minus_L_F77=yes
14976 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14977 # Neither direct hardcoding nor static linking is supported with a
14979 hardcode_direct_F77=unsupported
14984 if test "$host_cpu" = ia64; then
14985 # On IA64, the linker does run time linking by default, so we don't
14986 # have to do anything special.
14987 aix_use_runtimelinking=no
14988 exp_sym_flag='-Bexport'
14991 # If we're using GNU nm, then we don't want the "-C" option.
14992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14993 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14994 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14996 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14998 aix_use_runtimelinking=no
15000 # Test if we are trying to use run time linking or normal
15001 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15002 # need to do runtime linking.
15003 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15004 for ld_flag in $LDFLAGS; do
15005 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15006 aix_use_runtimelinking=yes
15013 exp_sym_flag='-bexport'
15014 no_entry_flag='-bnoentry'
15017 # When large executables or shared objects are built, AIX ld can
15018 # have problems creating the table of contents. If linking a library
15019 # or program results in "error TOC overflow" add -mminimal-toc to
15020 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15021 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15023 archive_cmds_F77=''
15024 hardcode_direct_F77=yes
15025 hardcode_libdir_separator_F77=':'
15026 link_all_deplibs_F77=yes
15028 if test "$GCC" = yes; then
15029 case $host_os in aix4.[012]|aix4.[012].*)
15030 # We only want to do this on AIX 4.2 and lower, the check
15031 # below for broken collect2 doesn't work under 4.3+
15032 collect2name=`${CC} -print-prog-name=collect2`
15033 if test -f "$collect2name" && \
15034 strings "$collect2name" | grep resolve_lib_name >/dev/null
15036 # We have reworked collect2
15039 # We have old collect2
15040 hardcode_direct_F77=unsupported
15041 # It fails to find uninstalled libraries when the uninstalled
15042 # path is not listed in the libpath. Setting hardcode_minus_L
15043 # to unsupported forces relinking
15044 hardcode_minus_L_F77=yes
15045 hardcode_libdir_flag_spec_F77='-L$libdir'
15046 hardcode_libdir_separator_F77=
15050 shared_flag='-shared'
15051 if test "$aix_use_runtimelinking" = yes; then
15052 shared_flag="$shared_flag "'${wl}-G'
15056 if test "$host_cpu" = ia64; then
15057 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15058 # chokes on -Wl,-G. The following line is correct:
15061 if test "$aix_use_runtimelinking" = yes; then
15062 shared_flag='${wl}-G'
15064 shared_flag='${wl}-bM:SRE'
15069 # It seems that -bexpall does not export symbols beginning with
15070 # underscore (_), so it is better to generate a list of symbols to export.
15071 always_export_symbols_F77=yes
15072 if test "$aix_use_runtimelinking" = yes; then
15073 # Warning - without using the other runtime loading flags (-brtl),
15074 # -berok will link without error, but may produce a broken library.
15075 allow_undefined_flag_F77='-berok'
15076 # Determine the default libpath from the value encoded in an empty executable.
15077 cat >conftest.$ac_ext <<_ACEOF
15082 rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (ac_try="$ac_link"
15084 case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_link") 2>conftest.er1
15091 grep -v '^ *+' conftest.er1 >conftest.err
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } && {
15096 test -z "$ac_f77_werror_flag" ||
15097 test ! -s conftest.err
15098 } && test -s conftest$ac_exeext &&
15099 $as_test_x conftest$ac_exeext; then
15101 lt_aix_libpath_sed='
15102 /Import File Strings/,/^$/ {
15108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15109 # Check for a 64-bit object if we didn't find anything.
15110 if test -z "$aix_libpath"; then
15111 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15121 conftest$ac_exeext conftest.$ac_ext
15122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15124 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15125 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15127 if test "$host_cpu" = ia64; then
15128 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15129 allow_undefined_flag_F77="-z nodefs"
15130 archive_expsym_cmds_F77="\$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"
15132 # Determine the default libpath from the value encoded in an empty executable.
15133 cat >conftest.$ac_ext <<_ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (ac_try="$ac_link"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145 (eval "$ac_link") 2>conftest.er1
15147 grep -v '^ *+' conftest.er1 >conftest.err
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_f77_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest$ac_exeext &&
15155 $as_test_x conftest$ac_exeext; then
15157 lt_aix_libpath_sed='
15158 /Import File Strings/,/^$/ {
15164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15165 # Check for a 64-bit object if we didn't find anything.
15166 if test -z "$aix_libpath"; then
15167 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15177 conftest$ac_exeext conftest.$ac_ext
15178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15180 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15181 # Warning - without using the other run time loading flags,
15182 # -berok will link without error, but may produce a broken library.
15183 no_undefined_flag_F77=' ${wl}-bernotok'
15184 allow_undefined_flag_F77=' ${wl}-berok'
15185 # Exported symbols can be pulled into shared objects from archives
15186 whole_archive_flag_spec_F77='$convenience'
15187 archive_cmds_need_lc_F77=yes
15188 # This is similar to how AIX traditionally builds its shared libraries.
15189 archive_expsym_cmds_F77="\$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'
15195 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15196 hardcode_libdir_flag_spec_F77='-L$libdir'
15197 hardcode_minus_L_F77=yes
15198 # see comment about different semantics on the GNU ld section
15203 export_dynamic_flag_spec_F77=-rdynamic
15206 cygwin* | mingw* | pw32*)
15207 # When not using gcc, we currently assume that we are using
15208 # Microsoft Visual C++.
15209 # hardcode_libdir_flag_spec is actually meaningless, as there is
15210 # no search path for DLLs.
15211 hardcode_libdir_flag_spec_F77=' '
15212 allow_undefined_flag_F77=unsupported
15213 # Tell ltmain to make .lib files, not .a files.
15215 # Tell ltmain to make .dll files, not .so files.
15217 # FIXME: Setting linknames here is a bad hack.
15218 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15219 # The linker will automatically build a .lib file if we build a DLL.
15220 old_archive_From_new_cmds_F77='true'
15221 # FIXME: Should let the user specify the lib program.
15222 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15223 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15224 enable_shared_with_static_runtimes_F77=yes
15227 darwin* | rhapsody*)
15229 rhapsody* | darwin1.[012])
15230 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15233 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15234 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15236 case ${MACOSX_DEPLOYMENT_TARGET} in
15238 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15241 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15247 archive_cmds_need_lc_F77=no
15248 hardcode_direct_F77=no
15249 hardcode_automatic_F77=yes
15250 hardcode_shlibpath_var_F77=unsupported
15251 whole_archive_flag_spec_F77=''
15252 link_all_deplibs_F77=yes
15253 if test "$GCC" = yes ; then
15254 output_verbose_link_cmd='echo'
15255 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15256 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15258 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15259 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15261 case $cc_basename in
15263 output_verbose_link_cmd='echo'
15264 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15265 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15266 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15267 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15268 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15278 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15279 hardcode_libdir_flag_spec_F77='-L$libdir'
15280 hardcode_shlibpath_var_F77=no
15287 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15288 # support. Future versions do this automatically, but an explicit c++rt0.o
15289 # does not break anything, and helps significantly (at the cost of a little
15292 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15293 hardcode_libdir_flag_spec_F77='-R$libdir'
15294 hardcode_direct_F77=yes
15295 hardcode_shlibpath_var_F77=no
15298 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15300 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15301 hardcode_direct_F77=yes
15302 hardcode_minus_L_F77=yes
15303 hardcode_shlibpath_var_F77=no
15306 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15307 freebsd* | dragonfly*)
15308 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15309 hardcode_libdir_flag_spec_F77='-R$libdir'
15310 hardcode_direct_F77=yes
15311 hardcode_shlibpath_var_F77=no
15315 if test "$GCC" = yes; then
15316 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15318 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15320 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15321 hardcode_libdir_separator_F77=:
15322 hardcode_direct_F77=yes
15324 # hardcode_minus_L: Not really in the search PATH,
15325 # but as the default location of the library.
15326 hardcode_minus_L_F77=yes
15327 export_dynamic_flag_spec_F77='${wl}-E'
15331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15332 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15334 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15336 if test "$with_gnu_ld" = no; then
15337 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15338 hardcode_libdir_separator_F77=:
15340 hardcode_direct_F77=yes
15341 export_dynamic_flag_spec_F77='${wl}-E'
15343 # hardcode_minus_L: Not really in the search PATH,
15344 # but as the default location of the library.
15345 hardcode_minus_L_F77=yes
15350 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15353 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15356 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15359 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15365 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15368 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15371 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15375 if test "$with_gnu_ld" = no; then
15376 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15377 hardcode_libdir_separator_F77=:
15381 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15382 hardcode_direct_F77=no
15383 hardcode_shlibpath_var_F77=no
15386 hardcode_direct_F77=yes
15387 export_dynamic_flag_spec_F77='${wl}-E'
15389 # hardcode_minus_L: Not really in the search PATH,
15390 # but as the default location of the library.
15391 hardcode_minus_L_F77=yes
15397 irix5* | irix6* | nonstopux*)
15398 if test "$GCC" = yes; then
15399 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15401 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15402 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15404 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15405 hardcode_libdir_separator_F77=:
15406 link_all_deplibs_F77=yes
15409 netbsd* | netbsdelf*-gnu)
15410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15411 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15413 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15415 hardcode_libdir_flag_spec_F77='-R$libdir'
15416 hardcode_direct_F77=yes
15417 hardcode_shlibpath_var_F77=no
15421 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15422 hardcode_direct_F77=yes
15423 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15424 hardcode_libdir_separator_F77=:
15425 hardcode_shlibpath_var_F77=no
15429 if test -f /usr/libexec/ld.so; then
15430 hardcode_direct_F77=yes
15431 hardcode_shlibpath_var_F77=no
15432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15433 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15434 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15435 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15436 export_dynamic_flag_spec_F77='${wl}-E'
15439 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15440 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15441 hardcode_libdir_flag_spec_F77='-R$libdir'
15444 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15445 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15455 hardcode_libdir_flag_spec_F77='-L$libdir'
15456 hardcode_minus_L_F77=yes
15457 allow_undefined_flag_F77=unsupported
15458 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15459 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15463 if test "$GCC" = yes; then
15464 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15465 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15467 allow_undefined_flag_F77=' -expect_unresolved \*'
15468 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15470 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15471 hardcode_libdir_separator_F77=:
15474 osf4* | osf5*) # as osf3* with the addition of -msym flag
15475 if test "$GCC" = yes; then
15476 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15477 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15478 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15480 allow_undefined_flag_F77=' -expect_unresolved \*'
15481 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15482 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15483 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15485 # Both c and cxx compiler support -rpath directly
15486 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15488 hardcode_libdir_separator_F77=:
15492 no_undefined_flag_F77=' -z text'
15493 if test "$GCC" = yes; then
15495 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15497 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15500 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15501 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15502 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15504 hardcode_libdir_flag_spec_F77='-R$libdir'
15505 hardcode_shlibpath_var_F77=no
15507 solaris2.[0-5] | solaris2.[0-5].*) ;;
15509 # The compiler driver will combine and reorder linker options,
15510 # but understands `-z linker_flag'. GCC discards it without `$wl',
15511 # but is careful enough not to reorder.
15512 # Supported since Solaris 2.6 (maybe 2.5.1?)
15513 if test "$GCC" = yes; then
15514 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15516 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15520 link_all_deplibs_F77=yes
15524 if test "x$host_vendor" = xsequent; then
15525 # Use $CC to link under sequent, because it throws in some extra .o
15526 # files that make .init and .fini sections work.
15527 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15529 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15531 hardcode_libdir_flag_spec_F77='-L$libdir'
15532 hardcode_direct_F77=yes
15533 hardcode_minus_L_F77=yes
15534 hardcode_shlibpath_var_F77=no
15538 case $host_vendor in
15540 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_direct_F77=yes # is this really true???
15544 ## LD is ld it makes a PLAMLIB
15545 ## CC just makes a GrossModule.
15546 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15547 reload_cmds_F77='$CC -r -o $output$reload_objs'
15548 hardcode_direct_F77=no
15551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15555 runpath_var='LD_RUN_PATH'
15556 hardcode_shlibpath_var_F77=no
15560 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15561 hardcode_shlibpath_var_F77=no
15562 export_dynamic_flag_spec_F77='-Bexport'
15566 if test -d /usr/nec; then
15567 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568 hardcode_shlibpath_var_F77=no
15569 runpath_var=LD_RUN_PATH
15570 hardcode_runpath_var=yes
15575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15576 no_undefined_flag_F77='${wl}-z,text'
15577 archive_cmds_need_lc_F77=no
15578 hardcode_shlibpath_var_F77=no
15579 runpath_var='LD_RUN_PATH'
15581 if test "$GCC" = yes; then
15582 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15583 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15590 sysv5* | sco3.2v5* | sco5v6*)
15591 # Note: We can NOT use -z defs as we might desire, because we do not
15592 # link with -lc, and that would cause any symbols used from libc to
15593 # always be unresolved, which means just about no library would
15594 # ever link correctly. If we're not using GNU ld we use -z text
15595 # though, which does catch some bad symbols but isn't as heavy-handed
15597 no_undefined_flag_F77='${wl}-z,text'
15598 allow_undefined_flag_F77='${wl}-z,nodefs'
15599 archive_cmds_need_lc_F77=no
15600 hardcode_shlibpath_var_F77=no
15601 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15602 hardcode_libdir_separator_F77=':'
15603 link_all_deplibs_F77=yes
15604 export_dynamic_flag_spec_F77='${wl}-Bexport'
15605 runpath_var='LD_RUN_PATH'
15607 if test "$GCC" = yes; then
15608 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15609 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15611 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15612 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15618 hardcode_libdir_flag_spec_F77='-L$libdir'
15619 hardcode_shlibpath_var_F77=no
15628 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15629 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15630 test "$ld_shlibs_F77" = no && can_build_shared=no
15633 # Do we need to explicitly link libc?
15635 case "x$archive_cmds_need_lc_F77" in
15637 # Assume -lc should be added
15638 archive_cmds_need_lc_F77=yes
15640 if test "$enable_shared" = yes && test "$GCC" = yes; then
15641 case $archive_cmds_F77 in
15643 # FIXME: we may have to deal with multi-command sequences.
15646 # Test whether the compiler implicitly links with -lc since on some
15647 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15648 # to ld, don't add -lc before -lgcc.
15649 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15650 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15655 (eval $ac_compile) 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } 2>conftest.err; then
15661 libobjs=conftest.$ac_objext
15663 wl=$lt_prog_compiler_wl_F77
15664 pic_flag=$lt_prog_compiler_pic_F77
15670 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15671 allow_undefined_flag_F77=
15672 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15673 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }
15678 archive_cmds_need_lc_F77=no
15680 archive_cmds_need_lc_F77=yes
15682 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15684 cat conftest.err 1>&5
15687 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15688 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15695 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15697 library_names_spec=
15698 libname_spec='lib$name'
15702 postuninstall_cmds=
15706 shlibpath_overrides_runpath=unknown
15708 dynamic_linker="$host_os ld.so"
15709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15711 need_lib_prefix=unknown
15712 hardcode_into_libs=no
15714 # when you set need_version to no, make sure it does not cause -set_version
15715 # flags to be left without arguments
15716 need_version=unknown
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15722 shlibpath_var=LIBPATH
15724 # AIX 3 has no versioning support, so we append a major version to the name.
15725 soname_spec='${libname}${release}${shared_ext}$major'
15732 hardcode_into_libs=yes
15733 if test "$host_cpu" = ia64; then
15734 # AIX 5 supports IA64
15735 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15736 shlibpath_var=LD_LIBRARY_PATH
15738 # With GCC up to 2.95.x, collect2 would create an import file
15739 # for dependence libraries. The import file would start with
15740 # the line `#! .'. This would cause the generated library to
15741 # depend on `.', always an invalid library. This was fixed in
15742 # development snapshots of GCC prior to 3.0.
15744 aix4 | aix4.[01] | aix4.[01].*)
15745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15747 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15750 can_build_shared=no
15754 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15755 # soname into executable. Probably we can add versioning support to
15756 # collect2, so additional links can be useful in future.
15757 if test "$aix_use_runtimelinking" = yes; then
15758 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15759 # instead of lib<name>.a to let people know that these are not
15760 # typical AIX shared libraries.
15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763 # We preserve .a as extension for shared libraries through AIX4.2
15764 # and later when we are not doing run time linking.
15765 library_names_spec='${libname}${release}.a $libname.a'
15766 soname_spec='${libname}${release}${shared_ext}$major'
15768 shlibpath_var=LIBPATH
15773 library_names_spec='$libname.ixlibrary $libname.a'
15774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15775 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'
15779 library_names_spec='${libname}${shared_ext}'
15780 dynamic_linker="$host_os ld.so"
15781 shlibpath_var=LIBRARY_PATH
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec='${libname}${release}${shared_ext}$major'
15789 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15792 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15793 # the default ld.so.conf also contains /usr/contrib/lib and
15794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15795 # libtool to hard-code these into programs
15798 cygwin* | mingw* | pw32*)
15799 version_type=windows
15804 case $GCC,$host_os in
15805 yes,cygwin* | yes,mingw* | yes,pw32*)
15806 library_names_spec='$libname.dll.a'
15807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15808 postinstall_cmds='base_file=`basename \${file}`~
15809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15810 dldir=$destdir/`dirname \$dlpath`~
15811 test -d \$dldir || mkdir -p \$dldir~
15812 $install_prog $dir/$dlname \$dldir/$dlname~
15813 chmod a+x \$dldir/$dlname'
15814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15815 dlpath=$dir/\$dldll~
15817 shlibpath_overrides_runpath=yes
15821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15822 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15823 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15826 # MinGW DLLs use traditional 'lib' prefix
15827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15829 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15830 # It is most probably a Windows format PATH printed by
15831 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15832 # path with ; separators, and with drive letters. We can handle the
15833 # drive letters (cygwin fileutils understands them), so leave them,
15834 # especially as we might pass files found there to a mingw objdump,
15835 # which wouldn't understand a cygwinified path. Ahh.
15836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15842 # pw32 DLLs use 'pw' prefix rather than 'lib'
15843 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15849 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15852 dynamic_linker='Win32 ld.exe'
15853 # FIXME: first we should search . and the directory the executable is in
15857 darwin* | rhapsody*)
15858 dynamic_linker="$host_os dyld"
15859 version_type=darwin
15862 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15863 soname_spec='${libname}${release}${major}$shared_ext'
15864 shlibpath_overrides_runpath=yes
15865 shlibpath_var=DYLD_LIBRARY_PATH
15866 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15868 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15876 soname_spec='${libname}${release}${shared_ext}$major'
15877 shlibpath_var=LD_LIBRARY_PATH
15884 freebsd* | dragonfly*)
15885 # DragonFly does not have aout. When/if they implement a new
15886 # versioning mechanism, adjust this.
15887 if test -x /usr/bin/objformat; then
15888 objformat=`/usr/bin/objformat`
15891 freebsd[123]*) objformat=aout ;;
15892 *) objformat=elf ;;
15895 version_type=freebsd-$objformat
15896 case $version_type in
15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15907 shlibpath_var=LD_LIBRARY_PATH
15910 shlibpath_overrides_runpath=yes
15912 freebsd3.[01]* | freebsdelf3.[01]*)
15913 shlibpath_overrides_runpath=yes
15914 hardcode_into_libs=yes
15916 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15917 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15918 shlibpath_overrides_runpath=no
15919 hardcode_into_libs=yes
15921 *) # from 4.6 on, and DragonFly
15922 shlibpath_overrides_runpath=yes
15923 hardcode_into_libs=yes
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15933 soname_spec='${libname}${release}${shared_ext}$major'
15934 shlibpath_var=LD_LIBRARY_PATH
15935 hardcode_into_libs=yes
15938 hpux9* | hpux10* | hpux11*)
15939 # Give a soname corresponding to the major version so that dld.sl refuses to
15940 # link against other versions.
15947 hardcode_into_libs=yes
15948 dynamic_linker="$host_os dld.so"
15949 shlibpath_var=LD_LIBRARY_PATH
15950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952 soname_spec='${libname}${release}${shared_ext}$major'
15953 if test "X$HPUX_IA64_MODE" = X32; then
15954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15962 hardcode_into_libs=yes
15963 dynamic_linker="$host_os dld.sl"
15964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15967 soname_spec='${libname}${release}${shared_ext}$major'
15968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15973 dynamic_linker="$host_os dld.sl"
15974 shlibpath_var=SHLIB_PATH
15975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15977 soname_spec='${libname}${release}${shared_ext}$major'
15980 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15981 postinstall_cmds='chmod 555 $lib'
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15989 soname_spec='${libname}${release}${shared_ext}$major'
15990 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15991 shlibpath_var=LD_LIBRARY_PATH
15992 shlibpath_overrides_runpath=no
15993 hardcode_into_libs=yes
15996 irix5* | irix6* | nonstopux*)
15998 nonstopux*) version_type=nonstopux ;;
16000 if test "$lt_cv_prog_gnu_ld" = yes; then
16008 soname_spec='${libname}${release}${shared_ext}$major'
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16011 irix5* | nonstopux*)
16012 libsuff= shlibsuff=
16015 case $LD in # libtool.m4 will add one of these switches to LD
16016 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16017 libsuff= shlibsuff= libmagic=32-bit;;
16018 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16019 libsuff=32 shlibsuff=N32 libmagic=N32;;
16020 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16021 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16022 *) libsuff= shlibsuff= libmagic=never-match;;
16026 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16027 shlibpath_overrides_runpath=no
16028 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16029 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16030 hardcode_into_libs=yes
16033 # No shared lib support for Linux oldld, aout, or coff.
16034 linux*oldld* | linux*aout* | linux*coff*)
16038 # This must be Linux ELF.
16039 linux* | k*bsd*-gnu)
16043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044 soname_spec='${libname}${release}${shared_ext}$major'
16045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16046 shlibpath_var=LD_LIBRARY_PATH
16047 shlibpath_overrides_runpath=no
16048 # This implies no fast_install, which is unacceptable.
16049 # Some rework will be needed to allow for fast_install
16050 # before this can be enabled.
16051 hardcode_into_libs=yes
16053 # Append ld.so.conf contents to the search path
16054 if test -f /etc/ld.so.conf; then
16055 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' ' '`
16056 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16059 # We used to test for /lib/ld.so.1 and disable shared libraries on
16060 # powerpc, because MkLinux only supported shared libraries with the
16061 # GNU dynamic linker. Since this was broken with cross compilers,
16062 # most powerpc-linux boxes support dynamic linking these days and
16063 # people can always --disable-shared, the test was removed, and we
16064 # assume the GNU/Linux dynamic linker is in use.
16065 dynamic_linker='GNU/Linux ld.so'
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 shlibpath_var=LD_LIBRARY_PATH
16075 shlibpath_overrides_runpath=no
16076 hardcode_into_libs=yes
16077 dynamic_linker='NetBSD ld.elf_so'
16084 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16087 dynamic_linker='NetBSD (a.out) ld.so'
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 dynamic_linker='NetBSD ld.elf_so'
16093 shlibpath_var=LD_LIBRARY_PATH
16094 shlibpath_overrides_runpath=yes
16095 hardcode_into_libs=yes
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath=yes
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110 soname_spec='${libname}${release}${shared_ext}$major'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 shlibpath_overrides_runpath=yes
16117 sys_lib_dlsearch_path_spec="/usr/lib"
16119 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16121 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16122 *) need_version=no ;;
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16126 shlibpath_var=LD_LIBRARY_PATH
16127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16129 openbsd2.[89] | openbsd2.[89].*)
16130 shlibpath_overrides_runpath=no
16133 shlibpath_overrides_runpath=yes
16137 shlibpath_overrides_runpath=yes
16142 libname_spec='$name'
16145 library_names_spec='$libname${shared_ext} $libname.a'
16146 dynamic_linker='OS/2 ld.exe'
16147 shlibpath_var=LIBPATH
16150 osf3* | osf4* | osf5*)
16154 soname_spec='${libname}${release}${shared_ext}$major'
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16158 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes
16173 hardcode_into_libs=yes
16174 # ldd complains unless libraries are executable
16175 postinstall_cmds='chmod +x $lib'
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16182 shlibpath_var=LD_LIBRARY_PATH
16183 shlibpath_overrides_runpath=yes
16184 if test "$with_gnu_ld" = yes; then
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 case $host_vendor in
16197 shlibpath_overrides_runpath=no
16199 export_dynamic_flag_spec='${wl}-Blargedynsym'
16200 runpath_var=LD_RUN_PATH
16208 shlibpath_overrides_runpath=no
16209 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16215 if test -d /usr/nec ;then
16217 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16218 soname_spec='$libname${shared_ext}.$major'
16219 shlibpath_var=LD_LIBRARY_PATH
16223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16224 version_type=freebsd-elf
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 hardcode_into_libs=yes
16231 if test "$with_gnu_ld" = yes; then
16232 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16233 shlibpath_overrides_runpath=no
16235 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16236 shlibpath_overrides_runpath=yes
16239 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16243 sys_lib_dlsearch_path_spec='/usr/lib'
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 shlibpath_var=LD_LIBRARY_PATH
16257 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16258 echo "${ECHO_T}$dynamic_linker" >&6; }
16259 test "$dynamic_linker" = no && can_build_shared=no
16261 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16262 if test "$GCC" = yes; then
16263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16266 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16267 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16268 hardcode_action_F77=
16269 if test -n "$hardcode_libdir_flag_spec_F77" || \
16270 test -n "$runpath_var_F77" || \
16271 test "X$hardcode_automatic_F77" = "Xyes" ; then
16273 # We can hardcode non-existant directories.
16274 if test "$hardcode_direct_F77" != no &&
16275 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16276 # have to relink, otherwise we might link with an installed library
16277 # when we should be linking with a yet-to-be-installed one
16278 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16279 test "$hardcode_minus_L_F77" != no; then
16280 # Linking always hardcodes the temporary library directory.
16281 hardcode_action_F77=relink
16283 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16284 hardcode_action_F77=immediate
16287 # We cannot hardcode anything, or else we can only hardcode existing
16289 hardcode_action_F77=unsupported
16291 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16292 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16294 if test "$hardcode_action_F77" = relink; then
16295 # Fast installation is not supported
16296 enable_fast_install=no
16297 elif test "$shlibpath_overrides_runpath" = yes ||
16298 test "$enable_shared" = no; then
16299 # Fast installation is not necessary
16300 enable_fast_install=needless
16304 # The else clause should only fire when bootstrapping the
16305 # libtool distribution, otherwise you forgot to ship ltmain.sh
16306 # with your package, and you will get complaints that there are
16307 # no rules to generate ltmain.sh.
16308 if test -f "$ltmain"; then
16309 # See if we are running on zsh, and set the options which allow our commands through
16310 # without removal of \ escapes.
16311 if test -n "${ZSH_VERSION+set}" ; then
16312 setopt NO_GLOB_SUBST
16314 # Now quote all the things that may contain metacharacters while being
16315 # careful not to overquote the AC_SUBSTed values. We take copies of the
16316 # variables and quote the copies for generation of the libtool script.
16317 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16319 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16320 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16321 deplibs_check_method reload_flag reload_cmds need_locks \
16322 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16323 lt_cv_sys_global_symbol_to_c_name_address \
16324 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16325 old_postinstall_cmds old_postuninstall_cmds \
16329 lt_prog_compiler_wl_F77 \
16330 lt_prog_compiler_pic_F77 \
16331 lt_prog_compiler_static_F77 \
16332 lt_prog_compiler_no_builtin_flag_F77 \
16333 export_dynamic_flag_spec_F77 \
16334 thread_safe_flag_spec_F77 \
16335 whole_archive_flag_spec_F77 \
16336 enable_shared_with_static_runtimes_F77 \
16337 old_archive_cmds_F77 \
16338 old_archive_from_new_cmds_F77 \
16339 predep_objects_F77 \
16340 postdep_objects_F77 \
16343 compiler_lib_search_path_F77 \
16345 archive_expsym_cmds_F77 \
16346 postinstall_cmds_F77 \
16347 postuninstall_cmds_F77 \
16348 old_archive_from_expsyms_cmds_F77 \
16349 allow_undefined_flag_F77 \
16350 no_undefined_flag_F77 \
16351 export_symbols_cmds_F77 \
16352 hardcode_libdir_flag_spec_F77 \
16353 hardcode_libdir_flag_spec_ld_F77 \
16354 hardcode_libdir_separator_F77 \
16355 hardcode_automatic_F77 \
16357 module_expsym_cmds_F77 \
16358 lt_cv_prog_compiler_c_o_F77 \
16359 fix_srcfile_path_F77 \
16360 exclude_expsyms_F77 \
16361 include_expsyms_F77; do
16364 old_archive_cmds_F77 | \
16365 old_archive_from_new_cmds_F77 | \
16366 archive_cmds_F77 | \
16367 archive_expsym_cmds_F77 | \
16368 module_cmds_F77 | \
16369 module_expsym_cmds_F77 | \
16370 old_archive_from_expsyms_cmds_F77 | \
16371 export_symbols_cmds_F77 | \
16372 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16373 postinstall_cmds | postuninstall_cmds | \
16374 old_postinstall_cmds | old_postuninstall_cmds | \
16375 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16376 # Double-quote double-evaled strings.
16377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16380 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16386 *'\$0 --fallback-echo"')
16387 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16393 cat <<__EOF__ >> "$cfgfile"
16394 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16396 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16398 # Shell to use when invoking shell scripts.
16401 # Whether or not to build shared libraries.
16402 build_libtool_libs=$enable_shared
16404 # Whether or not to build static libraries.
16405 build_old_libs=$enable_static
16407 # Whether or not to add -lc for building shared libraries.
16408 build_libtool_need_lc=$archive_cmds_need_lc_F77
16410 # Whether or not to disallow shared libs when runtime libs are static
16411 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16413 # Whether or not to optimize for fast installation.
16414 fast_install=$enable_fast_install
16417 host_alias=$host_alias
16421 # The build system.
16422 build_alias=$build_alias
16426 # An echo program that does not interpret backslashes.
16431 AR_FLAGS=$lt_AR_FLAGS
16436 # LTCC compiler flags.
16437 LTCFLAGS=$lt_LTCFLAGS
16439 # A language-specific compiler.
16440 CC=$lt_compiler_F77
16442 # Is the compiler the GNU C compiler?
16448 # The linker used to build libraries.
16451 # Whether we need hard or soft links.
16454 # A BSD-compatible nm program.
16457 # A symbol stripping program
16460 # Used to examine libraries when file_magic_cmd begins "file"
16461 MAGIC_CMD=$MAGIC_CMD
16463 # Used on cygwin: DLL creation program.
16466 # Used on cygwin: object dumper.
16469 # Used on cygwin: assembler.
16472 # The name of the directory that contains temporary libtool files.
16475 # How to create reloadable object files.
16476 reload_flag=$lt_reload_flag
16477 reload_cmds=$lt_reload_cmds
16479 # How to pass a linker flag through the compiler.
16480 wl=$lt_lt_prog_compiler_wl_F77
16482 # Object file suffix (normally "o").
16483 objext="$ac_objext"
16485 # Old archive suffix (normally "a").
16488 # Shared library suffix (normally ".so").
16489 shrext_cmds='$shrext_cmds'
16491 # Executable file suffix (normally "").
16494 # Additional compiler flags for building library objects.
16495 pic_flag=$lt_lt_prog_compiler_pic_F77
16498 # What is the maximum length of a command?
16499 max_cmd_len=$lt_cv_sys_max_cmd_len
16501 # Does compiler simultaneously support -c and -o options?
16502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16504 # Must we lock files when doing compilation?
16505 need_locks=$lt_need_locks
16507 # Do we need the lib prefix for modules?
16508 need_lib_prefix=$need_lib_prefix
16510 # Do we need a version for libraries?
16511 need_version=$need_version
16513 # Whether dlopen is supported.
16514 dlopen_support=$enable_dlopen
16516 # Whether dlopen of programs is supported.
16517 dlopen_self=$enable_dlopen_self
16519 # Whether dlopen of statically linked programs is supported.
16520 dlopen_self_static=$enable_dlopen_self_static
16522 # Compiler flag to prevent dynamic linking.
16523 link_static_flag=$lt_lt_prog_compiler_static_F77
16525 # Compiler flag to turn off builtin functions.
16526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16528 # Compiler flag to allow reflexive dlopens.
16529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16531 # Compiler flag to generate shared objects directly from archives.
16532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16534 # Compiler flag to generate thread-safe objects.
16535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16537 # Library versioning type.
16538 version_type=$version_type
16540 # Format of library name prefix.
16541 libname_spec=$lt_libname_spec
16543 # List of archive names. First name is the real one, the rest are links.
16544 # The last name is the one that the linker finds with -lNAME.
16545 library_names_spec=$lt_library_names_spec
16547 # The coded name of the library, if different from the real name.
16548 soname_spec=$lt_soname_spec
16550 # Commands used to build and install an old-style archive.
16552 old_archive_cmds=$lt_old_archive_cmds_F77
16553 old_postinstall_cmds=$lt_old_postinstall_cmds
16554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16556 # Create an old-style archive from a shared archive.
16557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16559 # Create a temporary old-style archive to link instead of a shared archive.
16560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16562 # Commands used to build and install a shared archive.
16563 archive_cmds=$lt_archive_cmds_F77
16564 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16565 postinstall_cmds=$lt_postinstall_cmds
16566 postuninstall_cmds=$lt_postuninstall_cmds
16568 # Commands used to build a loadable module (assumed same as above if empty)
16569 module_cmds=$lt_module_cmds_F77
16570 module_expsym_cmds=$lt_module_expsym_cmds_F77
16572 # Commands to strip libraries.
16573 old_striplib=$lt_old_striplib
16574 striplib=$lt_striplib
16576 # Dependencies to place before the objects being linked to create a
16578 predep_objects=$lt_predep_objects_F77
16580 # Dependencies to place after the objects being linked to create a
16582 postdep_objects=$lt_postdep_objects_F77
16584 # Dependencies to place before the objects being linked to create a
16586 predeps=$lt_predeps_F77
16588 # Dependencies to place after the objects being linked to create a
16590 postdeps=$lt_postdeps_F77
16592 # The library search path used internally by the compiler when linking
16593 # a shared library.
16594 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16596 # Method to check whether dependent libraries are shared objects.
16597 deplibs_check_method=$lt_deplibs_check_method
16599 # Command to use when deplibs_check_method == file_magic.
16600 file_magic_cmd=$lt_file_magic_cmd
16602 # Flag that allows shared libraries with undefined symbols to be built.
16603 allow_undefined_flag=$lt_allow_undefined_flag_F77
16605 # Flag that forces no undefined symbols.
16606 no_undefined_flag=$lt_no_undefined_flag_F77
16608 # Commands used to finish a libtool library installation in a directory.
16609 finish_cmds=$lt_finish_cmds
16611 # Same as above, but a single script fragment to be evaled but not shown.
16612 finish_eval=$lt_finish_eval
16614 # Take the output of nm and produce a listing of raw symbols and C names.
16615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16617 # Transform the output of nm in a proper C declaration
16618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16620 # Transform the output of nm in a C name address pair
16621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16623 # This is the shared library runtime path variable.
16624 runpath_var=$runpath_var
16626 # This is the shared library path variable.
16627 shlibpath_var=$shlibpath_var
16629 # Is shlibpath searched before the hard-coded library search path?
16630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16632 # How to hardcode a shared library path into an executable.
16633 hardcode_action=$hardcode_action_F77
16635 # Whether we should hardcode library paths into libraries.
16636 hardcode_into_libs=$hardcode_into_libs
16638 # Flag to hardcode \$libdir into a binary during linking.
16639 # This must work even if \$libdir does not exist.
16640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16642 # If ld is used when linking, flag to hardcode \$libdir into
16643 # a binary during linking. This must work even if \$libdir does
16645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16647 # Whether we need a single -rpath flag with a separated argument.
16648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16651 # resulting binary.
16652 hardcode_direct=$hardcode_direct_F77
16654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16655 # resulting binary.
16656 hardcode_minus_L=$hardcode_minus_L_F77
16658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16659 # the resulting binary.
16660 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16662 # Set to yes if building a shared library automatically hardcodes DIR into the library
16663 # and all subsequent libraries and executables linked against it.
16664 hardcode_automatic=$hardcode_automatic_F77
16666 # Variables whose values should be saved in libtool wrapper scripts and
16667 # restored at relink time.
16668 variables_saved_for_relink="$variables_saved_for_relink"
16670 # Whether libtool must link a program against all its dependency libraries.
16671 link_all_deplibs=$link_all_deplibs_F77
16673 # Compile-time system search path for libraries
16674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16676 # Run-time system search path for libraries
16677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16679 # Fix the shell variable \$srcfile for the compiler.
16680 fix_srcfile_path=$lt_fix_srcfile_path
16682 # Set to yes if exported symbols are required.
16683 always_export_symbols=$always_export_symbols_F77
16685 # The commands to list exported symbols.
16686 export_symbols_cmds=$lt_export_symbols_cmds_F77
16688 # The commands to extract the exported symbol list from a shared archive.
16689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16691 # Symbols that should not be listed in the preloaded symbols.
16692 exclude_expsyms=$lt_exclude_expsyms_F77
16694 # Symbols that must always be exported.
16695 include_expsyms=$lt_include_expsyms_F77
16697 # ### END LIBTOOL TAG CONFIG: $tagname
16703 # If there is no Makefile yet, we rely on a make rule to execute
16704 # `config.status --recheck' to rerun these tests and create the
16705 # libtool script then.
16706 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16707 if test -f "$ltmain_in"; then
16708 test -f Makefile && make "$ltmain"
16714 ac_cpp='$CPP $CPPFLAGS'
16715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16727 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16730 # Source file extension for Java test sources.
16733 # Object file extension for compiled Java test sources.
16737 # Code to be used in simple compile tests
16738 lt_simple_compile_test_code="class foo {}"
16740 # Code to be used in simple link tests
16741 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16743 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16745 # If no C compiler was specified, use CC.
16748 # If no C compiler flags were specified, use CFLAGS.
16749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16751 # Allow CC to be a program name with arguments.
16755 # save warnings/boilerplate of simple test code
16756 ac_outfile=conftest.$ac_objext
16757 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16758 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16759 _lt_compiler_boilerplate=`cat conftest.err`
16762 ac_outfile=conftest.$ac_objext
16763 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16764 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16765 _lt_linker_boilerplate=`cat conftest.err`
16769 # Allow CC to be a program name with arguments.
16774 for cc_temp in $compiler""; do
16776 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16777 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16782 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16785 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16786 archive_cmds_need_lc_GCJ=no
16788 old_archive_cmds_GCJ=$old_archive_cmds
16791 lt_prog_compiler_no_builtin_flag_GCJ=
16793 if test "$GCC" = yes; then
16794 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16797 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16798 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16799 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 lt_cv_prog_compiler_rtti_exceptions=no
16803 ac_outfile=conftest.$ac_objext
16804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16805 lt_compiler_flag="-fno-rtti -fno-exceptions"
16806 # Insert the option either (1) after the last *FLAGS variable, or
16807 # (2) before a word containing "conftest.", or (3) at the end.
16808 # Note that $ac_compile itself does not contain backslashes and begins
16809 # with a dollar sign (not a hyphen), so the echo should work correctly.
16810 # The option is referenced via a variable to avoid confusing sed.
16811 lt_compile=`echo "$ac_compile" | $SED \
16812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16814 -e 's:$: $lt_compiler_flag:'`
16815 (eval echo "\"\$as_me:16815: $lt_compile\"" >&5)
16816 (eval "$lt_compile" 2>conftest.err)
16818 cat conftest.err >&5
16819 echo "$as_me:16819: \$? = $ac_status" >&5
16820 if (exit $ac_status) && test -s "$ac_outfile"; then
16821 # The compiler can only warn and ignore the option if not recognized
16822 # So say no if there are warnings other than the usual output.
16823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16826 lt_cv_prog_compiler_rtti_exceptions=yes
16832 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16833 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16835 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16836 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16843 lt_prog_compiler_wl_GCJ=
16844 lt_prog_compiler_pic_GCJ=
16845 lt_prog_compiler_static_GCJ=
16847 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16848 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16850 if test "$GCC" = yes; then
16851 lt_prog_compiler_wl_GCJ='-Wl,'
16852 lt_prog_compiler_static_GCJ='-static'
16856 # All AIX code is PIC.
16857 if test "$host_cpu" = ia64; then
16858 # AIX 5 now supports IA64 processor
16859 lt_prog_compiler_static_GCJ='-Bstatic'
16864 # FIXME: we need at least 68020 code to build shared libraries, but
16865 # adding the `-m68020' flag to GCC prevents building anything better,
16867 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16870 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16871 # PIC is the default for these OSes.
16874 mingw* | cygwin* | pw32* | os2*)
16875 # This hack is so that the source file can tell whether it is being
16876 # built for inclusion in a dll (and should export symbols for example).
16877 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16878 # (--disable-auto-import) libraries
16879 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16882 darwin* | rhapsody*)
16883 # PIC is the default on this platform
16884 # Common symbols not allowed in MH_DYLIB files
16885 lt_prog_compiler_pic_GCJ='-fno-common'
16889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16890 # Instead, we relocate shared libraries at runtime.
16894 # Just because we use GCC doesn't mean we suddenly get shared libraries
16895 # on systems that don't support them.
16896 lt_prog_compiler_can_build_shared_GCJ=no
16901 if test -d /usr/nec; then
16902 lt_prog_compiler_pic_GCJ=-Kconform_pic
16907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16908 # not for PA HP-UX.
16914 lt_prog_compiler_pic_GCJ='-fPIC'
16920 lt_prog_compiler_pic_GCJ='-fPIC'
16924 # PORTME Check for flag to pass linker flags through the system compiler.
16927 lt_prog_compiler_wl_GCJ='-Wl,'
16928 if test "$host_cpu" = ia64; then
16929 # AIX 5 now supports IA64 processor
16930 lt_prog_compiler_static_GCJ='-Bstatic'
16932 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16936 # PIC is the default on this platform
16937 # Common symbols not allowed in MH_DYLIB files
16938 case $cc_basename in
16940 lt_prog_compiler_pic_GCJ='-qnocommon'
16941 lt_prog_compiler_wl_GCJ='-Wl,'
16946 mingw* | cygwin* | pw32* | os2*)
16947 # This hack is so that the source file can tell whether it is being
16948 # built for inclusion in a dll (and should export symbols for example).
16949 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16952 hpux9* | hpux10* | hpux11*)
16953 lt_prog_compiler_wl_GCJ='-Wl,'
16954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16955 # not for PA HP-UX.
16961 lt_prog_compiler_pic_GCJ='+Z'
16964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16965 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16968 irix5* | irix6* | nonstopux*)
16969 lt_prog_compiler_wl_GCJ='-Wl,'
16970 # PIC (with -KPIC) is the default.
16971 lt_prog_compiler_static_GCJ='-non_shared'
16975 lt_prog_compiler_pic_GCJ='-KPIC'
16976 lt_prog_compiler_static_GCJ='-Bstatic'
16979 linux* | k*bsd*-gnu)
16980 case $cc_basename in
16982 lt_prog_compiler_wl_GCJ='-Wl,'
16983 lt_prog_compiler_pic_GCJ='-KPIC'
16984 lt_prog_compiler_static_GCJ='-static'
16986 pgcc* | pgf77* | pgf90* | pgf95*)
16987 # Portland Group compilers (*not* the Pentium gcc compiler,
16988 # which looks to be a dead project)
16989 lt_prog_compiler_wl_GCJ='-Wl,'
16990 lt_prog_compiler_pic_GCJ='-fpic'
16991 lt_prog_compiler_static_GCJ='-Bstatic'
16994 lt_prog_compiler_wl_GCJ='-Wl,'
16995 # All Alpha code is PIC.
16996 lt_prog_compiler_static_GCJ='-non_shared'
16999 case `$CC -V 2>&1 | sed 5q` in
17002 lt_prog_compiler_pic_GCJ='-KPIC'
17003 lt_prog_compiler_static_GCJ='-Bstatic'
17004 lt_prog_compiler_wl_GCJ='-Wl,'
17007 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17008 lt_prog_compiler_pic_GCJ='-KPIC'
17009 lt_prog_compiler_static_GCJ='-Bstatic'
17010 lt_prog_compiler_wl_GCJ=''
17017 osf3* | osf4* | osf5*)
17018 lt_prog_compiler_wl_GCJ='-Wl,'
17019 # All OSF/1 code is PIC.
17020 lt_prog_compiler_static_GCJ='-non_shared'
17024 lt_prog_compiler_static_GCJ='-non_shared'
17028 lt_prog_compiler_pic_GCJ='-KPIC'
17029 lt_prog_compiler_static_GCJ='-Bstatic'
17030 case $cc_basename in
17031 f77* | f90* | f95*)
17032 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17034 lt_prog_compiler_wl_GCJ='-Wl,';;
17039 lt_prog_compiler_wl_GCJ='-Qoption ld '
17040 lt_prog_compiler_pic_GCJ='-PIC'
17041 lt_prog_compiler_static_GCJ='-Bstatic'
17044 sysv4 | sysv4.2uw2* | sysv4.3*)
17045 lt_prog_compiler_wl_GCJ='-Wl,'
17046 lt_prog_compiler_pic_GCJ='-KPIC'
17047 lt_prog_compiler_static_GCJ='-Bstatic'
17051 if test -d /usr/nec ;then
17052 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17053 lt_prog_compiler_static_GCJ='-Bstatic'
17057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17058 lt_prog_compiler_wl_GCJ='-Wl,'
17059 lt_prog_compiler_pic_GCJ='-KPIC'
17060 lt_prog_compiler_static_GCJ='-Bstatic'
17064 lt_prog_compiler_wl_GCJ='-Wl,'
17065 lt_prog_compiler_can_build_shared_GCJ=no
17069 lt_prog_compiler_pic_GCJ='-pic'
17070 lt_prog_compiler_static_GCJ='-Bstatic'
17074 lt_prog_compiler_can_build_shared_GCJ=no
17079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17080 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17083 # Check to make sure the PIC flag actually works.
17085 if test -n "$lt_prog_compiler_pic_GCJ"; then
17087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17089 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
17092 lt_prog_compiler_pic_works_GCJ=no
17093 ac_outfile=conftest.$ac_objext
17094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17095 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17096 # Insert the option either (1) after the last *FLAGS variable, or
17097 # (2) before a word containing "conftest.", or (3) at the end.
17098 # Note that $ac_compile itself does not contain backslashes and begins
17099 # with a dollar sign (not a hyphen), so the echo should work correctly.
17100 # The option is referenced via a variable to avoid confusing sed.
17101 lt_compile=`echo "$ac_compile" | $SED \
17102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17104 -e 's:$: $lt_compiler_flag:'`
17105 (eval echo "\"\$as_me:17105: $lt_compile\"" >&5)
17106 (eval "$lt_compile" 2>conftest.err)
17108 cat conftest.err >&5
17109 echo "$as_me:17109: \$? = $ac_status" >&5
17110 if (exit $ac_status) && test -s "$ac_outfile"; then
17111 # The compiler can only warn and ignore the option if not recognized
17112 # So say no if there are warnings other than the usual output.
17113 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17116 lt_prog_compiler_pic_works_GCJ=yes
17122 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17123 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17125 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17126 case $lt_prog_compiler_pic_GCJ in
17128 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17131 lt_prog_compiler_pic_GCJ=
17132 lt_prog_compiler_can_build_shared_GCJ=no
17137 # For platforms which do not support PIC, -DPIC is meaningless:
17139 lt_prog_compiler_pic_GCJ=
17142 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17147 # Check to make sure the static flag actually works.
17149 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17150 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17151 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17152 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 lt_prog_compiler_static_works_GCJ=no
17156 save_LDFLAGS="$LDFLAGS"
17157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17158 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17160 # The linker can only warn and ignore the option if not recognized
17161 # So say no if there are warnings
17162 if test -s conftest.err; then
17163 # Append any errors to the config.log.
17164 cat conftest.err 1>&5
17165 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17167 if diff conftest.exp conftest.er2 >/dev/null; then
17168 lt_prog_compiler_static_works_GCJ=yes
17171 lt_prog_compiler_static_works_GCJ=yes
17175 LDFLAGS="$save_LDFLAGS"
17178 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17179 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17181 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17184 lt_prog_compiler_static_GCJ=
17188 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17189 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17190 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17193 lt_cv_prog_compiler_c_o_GCJ=no
17194 $rm -r conftest 2>/dev/null
17198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17200 lt_compiler_flag="-o out/conftest2.$ac_objext"
17201 # Insert the option either (1) after the last *FLAGS variable, or
17202 # (2) before a word containing "conftest.", or (3) at the end.
17203 # Note that $ac_compile itself does not contain backslashes and begins
17204 # with a dollar sign (not a hyphen), so the echo should work correctly.
17205 lt_compile=`echo "$ac_compile" | $SED \
17206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17208 -e 's:$: $lt_compiler_flag:'`
17209 (eval echo "\"\$as_me:17209: $lt_compile\"" >&5)
17210 (eval "$lt_compile" 2>out/conftest.err)
17212 cat out/conftest.err >&5
17213 echo "$as_me:17213: \$? = $ac_status" >&5
17214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17216 # The compiler can only warn and ignore the option if not recognized
17217 # So say no if there are warnings
17218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17221 lt_cv_prog_compiler_c_o_GCJ=yes
17226 # SGI C++ compiler will create directory out/ii_files/ for
17227 # template instantiation
17228 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17229 $rm out/* && rmdir out
17235 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17236 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17239 hard_links="nottested"
17240 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17241 # do not overwrite the value of need_locks provided by the user
17242 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17243 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17248 ln conftest.a conftest.b 2>&5 || hard_links=no
17249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17250 { echo "$as_me:$LINENO: result: $hard_links" >&5
17251 echo "${ECHO_T}$hard_links" >&6; }
17252 if test "$hard_links" = no; then
17253 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17254 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17265 allow_undefined_flag_GCJ=
17266 enable_shared_with_static_runtimes_GCJ=no
17268 archive_expsym_cmds_GCJ=
17269 old_archive_From_new_cmds_GCJ=
17270 old_archive_from_expsyms_cmds_GCJ=
17271 export_dynamic_flag_spec_GCJ=
17272 whole_archive_flag_spec_GCJ=
17273 thread_safe_flag_spec_GCJ=
17274 hardcode_libdir_flag_spec_GCJ=
17275 hardcode_libdir_flag_spec_ld_GCJ=
17276 hardcode_libdir_separator_GCJ=
17277 hardcode_direct_GCJ=no
17278 hardcode_minus_L_GCJ=no
17279 hardcode_shlibpath_var_GCJ=unsupported
17280 link_all_deplibs_GCJ=unknown
17281 hardcode_automatic_GCJ=no
17283 module_expsym_cmds_GCJ=
17284 always_export_symbols_GCJ=no
17285 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17286 # include_expsyms should be a list of space-separated symbols to be *always*
17287 # included in the symbol list
17288 include_expsyms_GCJ=
17289 # exclude_expsyms can be an extended regexp of symbols to exclude
17290 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17291 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17292 # as well as any symbol that contains `d'.
17293 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17294 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17295 # platforms (ab)use it in PIC code, but their linkers get confused if
17296 # the symbol is explicitly referenced. Since portable code cannot
17297 # rely on this symbol name, it's probably fine to never include it in
17298 # preloaded symbol tables.
17299 extract_expsyms_cmds=
17300 # Just being paranoid about ensuring that cc_basename is set.
17301 for cc_temp in $compiler""; do
17303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17309 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17312 cygwin* | mingw* | pw32*)
17313 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17314 # When not using gcc, we currently assume that we are using
17315 # Microsoft Visual C++.
17316 if test "$GCC" != yes; then
17321 # we just hope/assume this is gcc and not c89 (= MSVC++)
17330 if test "$with_gnu_ld" = yes; then
17331 # If archive_cmds runs LD, not CC, wlarc should be empty
17334 # Set some defaults for GNU ld with shared library support. These
17335 # are reset later if shared libraries are not supported. Putting them
17336 # here allows them to be overridden if necessary.
17337 runpath_var=LD_RUN_PATH
17338 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17339 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17340 # ancient GNU ld didn't support --whole-archive et. al.
17341 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17342 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17344 whole_archive_flag_spec_GCJ=
17346 supports_anon_versioning=no
17347 case `$LD -v 2>/dev/null` in
17348 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17349 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17350 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17351 *\ 2.11.*) ;; # other 2.11 versions
17352 *) supports_anon_versioning=yes ;;
17355 # See if GNU ld supports shared libraries.
17357 aix3* | aix4* | aix5*)
17358 # On AIX/PPC, the GNU linker is very broken
17359 if test "$host_cpu" != ia64; then
17363 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17364 *** to be unable to reliably create shared libraries on AIX.
17365 *** Therefore, libtool is disabling shared libraries support. If you
17366 *** really care for shared libraries, you may want to modify your PATH
17367 *** so that a non-GNU linker is found, and then restart.
17374 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17375 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17376 hardcode_minus_L_GCJ=yes
17378 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17379 # that the semantics of dynamic libraries on AmigaOS, at least up
17380 # to version 4, is to share data among multiple programs linked
17381 # with the same dynamic library. Since this doesn't match the
17382 # behavior of shared libraries on other platforms, we can't use
17388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17389 allow_undefined_flag_GCJ=unsupported
17390 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17391 # support --undefined. This deserves some investigation. FIXME
17392 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17398 cygwin* | mingw* | pw32*)
17399 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17400 # as there is no search path for DLLs.
17401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17402 allow_undefined_flag_GCJ=unsupported
17403 always_export_symbols_GCJ=no
17404 enable_shared_with_static_runtimes_GCJ=yes
17405 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17407 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17408 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17409 # If the export-symbols file already is a .def file (1st line
17410 # is EXPORTS), use it as is; otherwise, prepend...
17411 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17412 cp $export_symbols $output_objdir/$soname.def;
17414 echo EXPORTS > $output_objdir/$soname.def;
17415 cat $export_symbols >> $output_objdir/$soname.def;
17417 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17424 hardcode_direct_GCJ=no
17425 hardcode_shlibpath_var_GCJ=no
17426 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17427 export_dynamic_flag_spec_GCJ='${wl}-E'
17428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17429 # Instead, shared libraries are loaded at an image base (0x10000000 by
17430 # default) and relocated if they conflict, which is a slow very memory
17431 # consuming and fragmenting process. To avoid this, we pick a random,
17432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17434 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17435 archive_expsym_cmds_GCJ='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'
17438 gnu* | linux* | k*bsd*-gnu)
17439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17441 case $cc_basename,$host_cpu in
17442 pgcc*) # Portland Group C compiler
17443 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17444 tmp_addflag=' $pic_flag'
17446 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17447 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17448 tmp_addflag=' $pic_flag -Mnomain' ;;
17449 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17450 tmp_addflag=' -i_dynamic' ;;
17451 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17452 tmp_addflag=' -i_dynamic -nofor_main' ;;
17453 ifc* | ifort*) # Intel Fortran compiler
17454 tmp_addflag=' -nofor_main' ;;
17456 case `$CC -V 2>&1 | sed 5q` in
17457 *Sun\ C*) # Sun C 5.9
17458 whole_archive_flag_spec_GCJ='${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'
17459 tmp_sharedflag='-G' ;;
17460 *Sun\ F*) # Sun Fortran 8.3
17461 tmp_sharedflag='-G' ;;
17463 tmp_sharedflag='-shared' ;;
17465 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17467 if test $supports_anon_versioning = yes; then
17468 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17469 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17470 $echo "local: *; };" >> $output_objdir/$libname.ver~
17471 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17473 link_all_deplibs_GCJ=no
17479 netbsd* | netbsdelf*-gnu)
17480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17481 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17490 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17495 *** create shared libraries on Solaris systems. Therefore, libtool
17496 *** is disabling shared libraries support. We urge you to upgrade GNU
17497 *** binutils to release 2.9.1 or newer. Another option is to modify
17498 *** your PATH or compiler configuration so that the native linker is
17499 *** used, and then restart.
17502 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17503 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17504 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17511 case `$LD -v 2>&1` in
17512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17516 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17517 *** reliably create shared libraries on SCO systems. Therefore, libtool
17518 *** is disabling shared libraries support. We urge you to upgrade GNU
17519 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17520 *** your PATH or compiler configuration so that the native linker is
17521 *** used, and then restart.
17526 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17527 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17529 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17538 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17540 hardcode_direct_GCJ=yes
17541 hardcode_shlibpath_var_GCJ=no
17545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17546 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17547 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17554 if test "$ld_shlibs_GCJ" = no; then
17556 hardcode_libdir_flag_spec_GCJ=
17557 export_dynamic_flag_spec_GCJ=
17558 whole_archive_flag_spec_GCJ=
17561 # PORTME fill in a description of your system's linker (not GNU ld)
17564 allow_undefined_flag_GCJ=unsupported
17565 always_export_symbols_GCJ=yes
17566 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17567 # Note: this linker hardcodes the directories in LIBPATH if there
17568 # are no directories specified by -L.
17569 hardcode_minus_L_GCJ=yes
17570 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17571 # Neither direct hardcoding nor static linking is supported with a
17573 hardcode_direct_GCJ=unsupported
17578 if test "$host_cpu" = ia64; then
17579 # On IA64, the linker does run time linking by default, so we don't
17580 # have to do anything special.
17581 aix_use_runtimelinking=no
17582 exp_sym_flag='-Bexport'
17585 # If we're using GNU nm, then we don't want the "-C" option.
17586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17587 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17588 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17590 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17592 aix_use_runtimelinking=no
17594 # Test if we are trying to use run time linking or normal
17595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17596 # need to do runtime linking.
17597 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17598 for ld_flag in $LDFLAGS; do
17599 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17600 aix_use_runtimelinking=yes
17607 exp_sym_flag='-bexport'
17608 no_entry_flag='-bnoentry'
17611 # When large executables or shared objects are built, AIX ld can
17612 # have problems creating the table of contents. If linking a library
17613 # or program results in "error TOC overflow" add -mminimal-toc to
17614 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17615 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17617 archive_cmds_GCJ=''
17618 hardcode_direct_GCJ=yes
17619 hardcode_libdir_separator_GCJ=':'
17620 link_all_deplibs_GCJ=yes
17622 if test "$GCC" = yes; then
17623 case $host_os in aix4.[012]|aix4.[012].*)
17624 # We only want to do this on AIX 4.2 and lower, the check
17625 # below for broken collect2 doesn't work under 4.3+
17626 collect2name=`${CC} -print-prog-name=collect2`
17627 if test -f "$collect2name" && \
17628 strings "$collect2name" | grep resolve_lib_name >/dev/null
17630 # We have reworked collect2
17633 # We have old collect2
17634 hardcode_direct_GCJ=unsupported
17635 # It fails to find uninstalled libraries when the uninstalled
17636 # path is not listed in the libpath. Setting hardcode_minus_L
17637 # to unsupported forces relinking
17638 hardcode_minus_L_GCJ=yes
17639 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17640 hardcode_libdir_separator_GCJ=
17644 shared_flag='-shared'
17645 if test "$aix_use_runtimelinking" = yes; then
17646 shared_flag="$shared_flag "'${wl}-G'
17650 if test "$host_cpu" = ia64; then
17651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17652 # chokes on -Wl,-G. The following line is correct:
17655 if test "$aix_use_runtimelinking" = yes; then
17656 shared_flag='${wl}-G'
17658 shared_flag='${wl}-bM:SRE'
17663 # It seems that -bexpall does not export symbols beginning with
17664 # underscore (_), so it is better to generate a list of symbols to export.
17665 always_export_symbols_GCJ=yes
17666 if test "$aix_use_runtimelinking" = yes; then
17667 # Warning - without using the other runtime loading flags (-brtl),
17668 # -berok will link without error, but may produce a broken library.
17669 allow_undefined_flag_GCJ='-berok'
17670 # Determine the default libpath from the value encoded in an empty executable.
17671 cat >conftest.$ac_ext <<_ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17686 rm -f conftest.$ac_objext conftest$ac_exeext
17687 if { (ac_try="$ac_link"
17688 case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_link") 2>conftest.er1
17695 grep -v '^ *+' conftest.er1 >conftest.err
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } && {
17700 test -z "$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17702 } && test -s conftest$ac_exeext &&
17703 $as_test_x conftest$ac_exeext; then
17705 lt_aix_libpath_sed='
17706 /Import File Strings/,/^$/ {
17712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17713 # Check for a 64-bit object if we didn't find anything.
17714 if test -z "$aix_libpath"; then
17715 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17718 echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.$ac_ext >&5
17724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17725 conftest$ac_exeext conftest.$ac_ext
17726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17728 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17729 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17731 if test "$host_cpu" = ia64; then
17732 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17733 allow_undefined_flag_GCJ="-z nodefs"
17734 archive_expsym_cmds_GCJ="\$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"
17736 # Determine the default libpath from the value encoded in an empty executable.
17737 cat >conftest.$ac_ext <<_ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (ac_try="$ac_link"
17754 case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_link") 2>conftest.er1
17761 grep -v '^ *+' conftest.er1 >conftest.err
17763 cat conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } && {
17766 test -z "$ac_c_werror_flag" ||
17767 test ! -s conftest.err
17768 } && test -s conftest$ac_exeext &&
17769 $as_test_x conftest$ac_exeext; then
17771 lt_aix_libpath_sed='
17772 /Import File Strings/,/^$/ {
17778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17779 # Check for a 64-bit object if we didn't find anything.
17780 if test -z "$aix_libpath"; then
17781 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17784 echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17791 conftest$ac_exeext conftest.$ac_ext
17792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17794 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17795 # Warning - without using the other run time loading flags,
17796 # -berok will link without error, but may produce a broken library.
17797 no_undefined_flag_GCJ=' ${wl}-bernotok'
17798 allow_undefined_flag_GCJ=' ${wl}-berok'
17799 # Exported symbols can be pulled into shared objects from archives
17800 whole_archive_flag_spec_GCJ='$convenience'
17801 archive_cmds_need_lc_GCJ=yes
17802 # This is similar to how AIX traditionally builds its shared libraries.
17803 archive_expsym_cmds_GCJ="\$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'
17809 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17810 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17811 hardcode_minus_L_GCJ=yes
17812 # see comment about different semantics on the GNU ld section
17817 export_dynamic_flag_spec_GCJ=-rdynamic
17820 cygwin* | mingw* | pw32*)
17821 # When not using gcc, we currently assume that we are using
17822 # Microsoft Visual C++.
17823 # hardcode_libdir_flag_spec is actually meaningless, as there is
17824 # no search path for DLLs.
17825 hardcode_libdir_flag_spec_GCJ=' '
17826 allow_undefined_flag_GCJ=unsupported
17827 # Tell ltmain to make .lib files, not .a files.
17829 # Tell ltmain to make .dll files, not .so files.
17831 # FIXME: Setting linknames here is a bad hack.
17832 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17833 # The linker will automatically build a .lib file if we build a DLL.
17834 old_archive_From_new_cmds_GCJ='true'
17835 # FIXME: Should let the user specify the lib program.
17836 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17837 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17838 enable_shared_with_static_runtimes_GCJ=yes
17841 darwin* | rhapsody*)
17843 rhapsody* | darwin1.[012])
17844 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17847 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17848 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17850 case ${MACOSX_DEPLOYMENT_TARGET} in
17852 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17855 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17861 archive_cmds_need_lc_GCJ=no
17862 hardcode_direct_GCJ=no
17863 hardcode_automatic_GCJ=yes
17864 hardcode_shlibpath_var_GCJ=unsupported
17865 whole_archive_flag_spec_GCJ=''
17866 link_all_deplibs_GCJ=yes
17867 if test "$GCC" = yes ; then
17868 output_verbose_link_cmd='echo'
17869 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17870 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17871 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17872 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17873 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17875 case $cc_basename in
17877 output_verbose_link_cmd='echo'
17878 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17879 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17880 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17881 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17882 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17892 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17893 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17894 hardcode_shlibpath_var_GCJ=no
17901 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17902 # support. Future versions do this automatically, but an explicit c++rt0.o
17903 # does not break anything, and helps significantly (at the cost of a little
17906 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17907 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17908 hardcode_direct_GCJ=yes
17909 hardcode_shlibpath_var_GCJ=no
17912 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17914 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17915 hardcode_direct_GCJ=yes
17916 hardcode_minus_L_GCJ=yes
17917 hardcode_shlibpath_var_GCJ=no
17920 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17921 freebsd* | dragonfly*)
17922 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17923 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17924 hardcode_direct_GCJ=yes
17925 hardcode_shlibpath_var_GCJ=no
17929 if test "$GCC" = yes; then
17930 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17932 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17934 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17935 hardcode_libdir_separator_GCJ=:
17936 hardcode_direct_GCJ=yes
17938 # hardcode_minus_L: Not really in the search PATH,
17939 # but as the default location of the library.
17940 hardcode_minus_L_GCJ=yes
17941 export_dynamic_flag_spec_GCJ='${wl}-E'
17945 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17946 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17948 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17950 if test "$with_gnu_ld" = no; then
17951 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17952 hardcode_libdir_separator_GCJ=:
17954 hardcode_direct_GCJ=yes
17955 export_dynamic_flag_spec_GCJ='${wl}-E'
17957 # hardcode_minus_L: Not really in the search PATH,
17958 # but as the default location of the library.
17959 hardcode_minus_L_GCJ=yes
17964 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17967 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17970 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17973 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17979 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17982 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17985 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17989 if test "$with_gnu_ld" = no; then
17990 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17991 hardcode_libdir_separator_GCJ=:
17995 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17996 hardcode_direct_GCJ=no
17997 hardcode_shlibpath_var_GCJ=no
18000 hardcode_direct_GCJ=yes
18001 export_dynamic_flag_spec_GCJ='${wl}-E'
18003 # hardcode_minus_L: Not really in the search PATH,
18004 # but as the default location of the library.
18005 hardcode_minus_L_GCJ=yes
18011 irix5* | irix6* | nonstopux*)
18012 if test "$GCC" = yes; then
18013 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18015 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18016 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18018 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18019 hardcode_libdir_separator_GCJ=:
18020 link_all_deplibs_GCJ=yes
18023 netbsd* | netbsdelf*-gnu)
18024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18025 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18027 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18030 hardcode_direct_GCJ=yes
18031 hardcode_shlibpath_var_GCJ=no
18035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18036 hardcode_direct_GCJ=yes
18037 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18038 hardcode_libdir_separator_GCJ=:
18039 hardcode_shlibpath_var_GCJ=no
18043 if test -f /usr/libexec/ld.so; then
18044 hardcode_direct_GCJ=yes
18045 hardcode_shlibpath_var_GCJ=no
18046 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18047 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18048 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18050 export_dynamic_flag_spec_GCJ='${wl}-E'
18053 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18054 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18055 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18058 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18070 hardcode_minus_L_GCJ=yes
18071 allow_undefined_flag_GCJ=unsupported
18072 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18073 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18077 if test "$GCC" = yes; then
18078 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18079 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18081 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18082 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18084 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18085 hardcode_libdir_separator_GCJ=:
18088 osf4* | osf5*) # as osf3* with the addition of -msym flag
18089 if test "$GCC" = yes; then
18090 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18091 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18094 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18095 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18096 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18097 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18099 # Both c and cxx compiler support -rpath directly
18100 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18102 hardcode_libdir_separator_GCJ=:
18106 no_undefined_flag_GCJ=' -z text'
18107 if test "$GCC" = yes; then
18109 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18110 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18111 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18114 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18115 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18116 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18118 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18119 hardcode_shlibpath_var_GCJ=no
18121 solaris2.[0-5] | solaris2.[0-5].*) ;;
18123 # The compiler driver will combine and reorder linker options,
18124 # but understands `-z linker_flag'. GCC discards it without `$wl',
18125 # but is careful enough not to reorder.
18126 # Supported since Solaris 2.6 (maybe 2.5.1?)
18127 if test "$GCC" = yes; then
18128 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18130 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18134 link_all_deplibs_GCJ=yes
18138 if test "x$host_vendor" = xsequent; then
18139 # Use $CC to link under sequent, because it throws in some extra .o
18140 # files that make .init and .fini sections work.
18141 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18143 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18146 hardcode_direct_GCJ=yes
18147 hardcode_minus_L_GCJ=yes
18148 hardcode_shlibpath_var_GCJ=no
18152 case $host_vendor in
18154 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18155 hardcode_direct_GCJ=yes # is this really true???
18158 ## LD is ld it makes a PLAMLIB
18159 ## CC just makes a GrossModule.
18160 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18161 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18162 hardcode_direct_GCJ=no
18165 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18166 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18169 runpath_var='LD_RUN_PATH'
18170 hardcode_shlibpath_var_GCJ=no
18174 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18175 hardcode_shlibpath_var_GCJ=no
18176 export_dynamic_flag_spec_GCJ='-Bexport'
18180 if test -d /usr/nec; then
18181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18182 hardcode_shlibpath_var_GCJ=no
18183 runpath_var=LD_RUN_PATH
18184 hardcode_runpath_var=yes
18189 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18190 no_undefined_flag_GCJ='${wl}-z,text'
18191 archive_cmds_need_lc_GCJ=no
18192 hardcode_shlibpath_var_GCJ=no
18193 runpath_var='LD_RUN_PATH'
18195 if test "$GCC" = yes; then
18196 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18197 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18199 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18200 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18204 sysv5* | sco3.2v5* | sco5v6*)
18205 # Note: We can NOT use -z defs as we might desire, because we do not
18206 # link with -lc, and that would cause any symbols used from libc to
18207 # always be unresolved, which means just about no library would
18208 # ever link correctly. If we're not using GNU ld we use -z text
18209 # though, which does catch some bad symbols but isn't as heavy-handed
18211 no_undefined_flag_GCJ='${wl}-z,text'
18212 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18213 archive_cmds_need_lc_GCJ=no
18214 hardcode_shlibpath_var_GCJ=no
18215 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18216 hardcode_libdir_separator_GCJ=':'
18217 link_all_deplibs_GCJ=yes
18218 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18219 runpath_var='LD_RUN_PATH'
18221 if test "$GCC" = yes; then
18222 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18223 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18225 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18226 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18231 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18232 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18233 hardcode_shlibpath_var_GCJ=no
18242 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18243 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18244 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18247 # Do we need to explicitly link libc?
18249 case "x$archive_cmds_need_lc_GCJ" in
18251 # Assume -lc should be added
18252 archive_cmds_need_lc_GCJ=yes
18254 if test "$enable_shared" = yes && test "$GCC" = yes; then
18255 case $archive_cmds_GCJ in
18257 # FIXME: we may have to deal with multi-command sequences.
18260 # Test whether the compiler implicitly links with -lc since on some
18261 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18262 # to ld, don't add -lc before -lgcc.
18263 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18264 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269 (eval $ac_compile) 2>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } 2>conftest.err; then
18275 libobjs=conftest.$ac_objext
18277 wl=$lt_prog_compiler_wl_GCJ
18278 pic_flag=$lt_prog_compiler_pic_GCJ
18284 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18285 allow_undefined_flag_GCJ=
18286 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18287 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }
18292 archive_cmds_need_lc_GCJ=no
18294 archive_cmds_need_lc_GCJ=yes
18296 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18298 cat conftest.err 1>&5
18301 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18302 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18309 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18310 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18311 library_names_spec=
18312 libname_spec='lib$name'
18316 postuninstall_cmds=
18320 shlibpath_overrides_runpath=unknown
18322 dynamic_linker="$host_os ld.so"
18323 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18325 need_lib_prefix=unknown
18326 hardcode_into_libs=no
18328 # when you set need_version to no, make sure it does not cause -set_version
18329 # flags to be left without arguments
18330 need_version=unknown
18335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18336 shlibpath_var=LIBPATH
18338 # AIX 3 has no versioning support, so we append a major version to the name.
18339 soname_spec='${libname}${release}${shared_ext}$major'
18346 hardcode_into_libs=yes
18347 if test "$host_cpu" = ia64; then
18348 # AIX 5 supports IA64
18349 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18350 shlibpath_var=LD_LIBRARY_PATH
18352 # With GCC up to 2.95.x, collect2 would create an import file
18353 # for dependence libraries. The import file would start with
18354 # the line `#! .'. This would cause the generated library to
18355 # depend on `.', always an invalid library. This was fixed in
18356 # development snapshots of GCC prior to 3.0.
18358 aix4 | aix4.[01] | aix4.[01].*)
18359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18361 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18364 can_build_shared=no
18368 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18369 # soname into executable. Probably we can add versioning support to
18370 # collect2, so additional links can be useful in future.
18371 if test "$aix_use_runtimelinking" = yes; then
18372 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18373 # instead of lib<name>.a to let people know that these are not
18374 # typical AIX shared libraries.
18375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18377 # We preserve .a as extension for shared libraries through AIX4.2
18378 # and later when we are not doing run time linking.
18379 library_names_spec='${libname}${release}.a $libname.a'
18380 soname_spec='${libname}${release}${shared_ext}$major'
18382 shlibpath_var=LIBPATH
18387 library_names_spec='$libname.ixlibrary $libname.a'
18388 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18389 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'
18393 library_names_spec='${libname}${shared_ext}'
18394 dynamic_linker="$host_os ld.so"
18395 shlibpath_var=LIBRARY_PATH
18401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18402 soname_spec='${libname}${release}${shared_ext}$major'
18403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18404 shlibpath_var=LD_LIBRARY_PATH
18405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18407 # the default ld.so.conf also contains /usr/contrib/lib and
18408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18409 # libtool to hard-code these into programs
18412 cygwin* | mingw* | pw32*)
18413 version_type=windows
18418 case $GCC,$host_os in
18419 yes,cygwin* | yes,mingw* | yes,pw32*)
18420 library_names_spec='$libname.dll.a'
18421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18422 postinstall_cmds='base_file=`basename \${file}`~
18423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18424 dldir=$destdir/`dirname \$dlpath`~
18425 test -d \$dldir || mkdir -p \$dldir~
18426 $install_prog $dir/$dlname \$dldir/$dlname~
18427 chmod a+x \$dldir/$dlname'
18428 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18429 dlpath=$dir/\$dldll~
18431 shlibpath_overrides_runpath=yes
18435 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18436 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18437 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18440 # MinGW DLLs use traditional 'lib' prefix
18441 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18442 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18443 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18444 # It is most probably a Windows format PATH printed by
18445 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18446 # path with ; separators, and with drive letters. We can handle the
18447 # drive letters (cygwin fileutils understands them), so leave them,
18448 # especially as we might pass files found there to a mingw objdump,
18449 # which wouldn't understand a cygwinified path. Ahh.
18450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18456 # pw32 DLLs use 'pw' prefix rather than 'lib'
18457 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18463 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18466 dynamic_linker='Win32 ld.exe'
18467 # FIXME: first we should search . and the directory the executable is in
18471 darwin* | rhapsody*)
18472 dynamic_linker="$host_os dyld"
18473 version_type=darwin
18476 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18477 soname_spec='${libname}${release}${major}$shared_ext'
18478 shlibpath_overrides_runpath=yes
18479 shlibpath_var=DYLD_LIBRARY_PATH
18480 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18482 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18490 soname_spec='${libname}${release}${shared_ext}$major'
18491 shlibpath_var=LD_LIBRARY_PATH
18498 freebsd* | dragonfly*)
18499 # DragonFly does not have aout. When/if they implement a new
18500 # versioning mechanism, adjust this.
18501 if test -x /usr/bin/objformat; then
18502 objformat=`/usr/bin/objformat`
18505 freebsd[123]*) objformat=aout ;;
18506 *) objformat=elf ;;
18509 version_type=freebsd-$objformat
18510 case $version_type in
18512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18521 shlibpath_var=LD_LIBRARY_PATH
18524 shlibpath_overrides_runpath=yes
18526 freebsd3.[01]* | freebsdelf3.[01]*)
18527 shlibpath_overrides_runpath=yes
18528 hardcode_into_libs=yes
18530 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18531 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18532 shlibpath_overrides_runpath=no
18533 hardcode_into_libs=yes
18535 *) # from 4.6 on, and DragonFly
18536 shlibpath_overrides_runpath=yes
18537 hardcode_into_libs=yes
18546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18547 soname_spec='${libname}${release}${shared_ext}$major'
18548 shlibpath_var=LD_LIBRARY_PATH
18549 hardcode_into_libs=yes
18552 hpux9* | hpux10* | hpux11*)
18553 # Give a soname corresponding to the major version so that dld.sl refuses to
18554 # link against other versions.
18561 hardcode_into_libs=yes
18562 dynamic_linker="$host_os dld.so"
18563 shlibpath_var=LD_LIBRARY_PATH
18564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566 soname_spec='${libname}${release}${shared_ext}$major'
18567 if test "X$HPUX_IA64_MODE" = X32; then
18568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18576 hardcode_into_libs=yes
18577 dynamic_linker="$host_os dld.sl"
18578 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581 soname_spec='${libname}${release}${shared_ext}$major'
18582 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18587 dynamic_linker="$host_os dld.sl"
18588 shlibpath_var=SHLIB_PATH
18589 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18591 soname_spec='${libname}${release}${shared_ext}$major'
18594 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18595 postinstall_cmds='chmod 555 $lib'
18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18603 soname_spec='${libname}${release}${shared_ext}$major'
18604 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18605 shlibpath_var=LD_LIBRARY_PATH
18606 shlibpath_overrides_runpath=no
18607 hardcode_into_libs=yes
18610 irix5* | irix6* | nonstopux*)
18612 nonstopux*) version_type=nonstopux ;;
18614 if test "$lt_cv_prog_gnu_ld" = yes; then
18622 soname_spec='${libname}${release}${shared_ext}$major'
18623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18625 irix5* | nonstopux*)
18626 libsuff= shlibsuff=
18629 case $LD in # libtool.m4 will add one of these switches to LD
18630 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18631 libsuff= shlibsuff= libmagic=32-bit;;
18632 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18633 libsuff=32 shlibsuff=N32 libmagic=N32;;
18634 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18635 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18636 *) libsuff= shlibsuff= libmagic=never-match;;
18640 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18641 shlibpath_overrides_runpath=no
18642 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18643 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18644 hardcode_into_libs=yes
18647 # No shared lib support for Linux oldld, aout, or coff.
18648 linux*oldld* | linux*aout* | linux*coff*)
18652 # This must be Linux ELF.
18653 linux* | k*bsd*-gnu)
18657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18658 soname_spec='${libname}${release}${shared_ext}$major'
18659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18660 shlibpath_var=LD_LIBRARY_PATH
18661 shlibpath_overrides_runpath=no
18662 # This implies no fast_install, which is unacceptable.
18663 # Some rework will be needed to allow for fast_install
18664 # before this can be enabled.
18665 hardcode_into_libs=yes
18667 # Append ld.so.conf contents to the search path
18668 if test -f /etc/ld.so.conf; then
18669 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' ' '`
18670 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18673 # We used to test for /lib/ld.so.1 and disable shared libraries on
18674 # powerpc, because MkLinux only supported shared libraries with the
18675 # GNU dynamic linker. Since this was broken with cross compilers,
18676 # most powerpc-linux boxes support dynamic linking these days and
18677 # people can always --disable-shared, the test was removed, and we
18678 # assume the GNU/Linux dynamic linker is in use.
18679 dynamic_linker='GNU/Linux ld.so'
18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18687 soname_spec='${libname}${release}${shared_ext}$major'
18688 shlibpath_var=LD_LIBRARY_PATH
18689 shlibpath_overrides_runpath=no
18690 hardcode_into_libs=yes
18691 dynamic_linker='NetBSD ld.elf_so'
18698 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18701 dynamic_linker='NetBSD (a.out) ld.so'
18703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18704 soname_spec='${libname}${release}${shared_ext}$major'
18705 dynamic_linker='NetBSD ld.elf_so'
18707 shlibpath_var=LD_LIBRARY_PATH
18708 shlibpath_overrides_runpath=yes
18709 hardcode_into_libs=yes
18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18715 shlibpath_var=LD_LIBRARY_PATH
18716 shlibpath_overrides_runpath=yes
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18724 soname_spec='${libname}${release}${shared_ext}$major'
18725 shlibpath_var=LD_LIBRARY_PATH
18726 shlibpath_overrides_runpath=yes
18731 sys_lib_dlsearch_path_spec="/usr/lib"
18733 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18735 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18736 *) need_version=no ;;
18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18740 shlibpath_var=LD_LIBRARY_PATH
18741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18743 openbsd2.[89] | openbsd2.[89].*)
18744 shlibpath_overrides_runpath=no
18747 shlibpath_overrides_runpath=yes
18751 shlibpath_overrides_runpath=yes
18756 libname_spec='$name'
18759 library_names_spec='$libname${shared_ext} $libname.a'
18760 dynamic_linker='OS/2 ld.exe'
18761 shlibpath_var=LIBPATH
18764 osf3* | osf4* | osf5*)
18768 soname_spec='${libname}${release}${shared_ext}$major'
18769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770 shlibpath_var=LD_LIBRARY_PATH
18771 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18772 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18784 soname_spec='${libname}${release}${shared_ext}$major'
18785 shlibpath_var=LD_LIBRARY_PATH
18786 shlibpath_overrides_runpath=yes
18787 hardcode_into_libs=yes
18788 # ldd complains unless libraries are executable
18789 postinstall_cmds='chmod +x $lib'
18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18795 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18796 shlibpath_var=LD_LIBRARY_PATH
18797 shlibpath_overrides_runpath=yes
18798 if test "$with_gnu_ld" = yes; then
18806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18807 soname_spec='${libname}${release}${shared_ext}$major'
18808 shlibpath_var=LD_LIBRARY_PATH
18809 case $host_vendor in
18811 shlibpath_overrides_runpath=no
18813 export_dynamic_flag_spec='${wl}-Blargedynsym'
18814 runpath_var=LD_RUN_PATH
18822 shlibpath_overrides_runpath=no
18823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18829 if test -d /usr/nec ;then
18831 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18832 soname_spec='$libname${shared_ext}.$major'
18833 shlibpath_var=LD_LIBRARY_PATH
18837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18838 version_type=freebsd-elf
18841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18842 soname_spec='${libname}${release}${shared_ext}$major'
18843 shlibpath_var=LD_LIBRARY_PATH
18844 hardcode_into_libs=yes
18845 if test "$with_gnu_ld" = yes; then
18846 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18847 shlibpath_overrides_runpath=no
18849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18850 shlibpath_overrides_runpath=yes
18853 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18857 sys_lib_dlsearch_path_spec='/usr/lib'
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 shlibpath_var=LD_LIBRARY_PATH
18871 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18872 echo "${ECHO_T}$dynamic_linker" >&6; }
18873 test "$dynamic_linker" = no && can_build_shared=no
18875 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18876 if test "$GCC" = yes; then
18877 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18880 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18882 hardcode_action_GCJ=
18883 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18884 test -n "$runpath_var_GCJ" || \
18885 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18887 # We can hardcode non-existant directories.
18888 if test "$hardcode_direct_GCJ" != no &&
18889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18890 # have to relink, otherwise we might link with an installed library
18891 # when we should be linking with a yet-to-be-installed one
18892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18893 test "$hardcode_minus_L_GCJ" != no; then
18894 # Linking always hardcodes the temporary library directory.
18895 hardcode_action_GCJ=relink
18897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18898 hardcode_action_GCJ=immediate
18901 # We cannot hardcode anything, or else we can only hardcode existing
18903 hardcode_action_GCJ=unsupported
18905 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18906 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18908 if test "$hardcode_action_GCJ" = relink; then
18909 # Fast installation is not supported
18910 enable_fast_install=no
18911 elif test "$shlibpath_overrides_runpath" = yes ||
18912 test "$enable_shared" = no; then
18913 # Fast installation is not necessary
18914 enable_fast_install=needless
18918 # The else clause should only fire when bootstrapping the
18919 # libtool distribution, otherwise you forgot to ship ltmain.sh
18920 # with your package, and you will get complaints that there are
18921 # no rules to generate ltmain.sh.
18922 if test -f "$ltmain"; then
18923 # See if we are running on zsh, and set the options which allow our commands through
18924 # without removal of \ escapes.
18925 if test -n "${ZSH_VERSION+set}" ; then
18926 setopt NO_GLOB_SUBST
18928 # Now quote all the things that may contain metacharacters while being
18929 # careful not to overquote the AC_SUBSTed values. We take copies of the
18930 # variables and quote the copies for generation of the libtool script.
18931 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18933 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18934 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18935 deplibs_check_method reload_flag reload_cmds need_locks \
18936 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18937 lt_cv_sys_global_symbol_to_c_name_address \
18938 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18939 old_postinstall_cmds old_postuninstall_cmds \
18943 lt_prog_compiler_wl_GCJ \
18944 lt_prog_compiler_pic_GCJ \
18945 lt_prog_compiler_static_GCJ \
18946 lt_prog_compiler_no_builtin_flag_GCJ \
18947 export_dynamic_flag_spec_GCJ \
18948 thread_safe_flag_spec_GCJ \
18949 whole_archive_flag_spec_GCJ \
18950 enable_shared_with_static_runtimes_GCJ \
18951 old_archive_cmds_GCJ \
18952 old_archive_from_new_cmds_GCJ \
18953 predep_objects_GCJ \
18954 postdep_objects_GCJ \
18957 compiler_lib_search_path_GCJ \
18959 archive_expsym_cmds_GCJ \
18960 postinstall_cmds_GCJ \
18961 postuninstall_cmds_GCJ \
18962 old_archive_from_expsyms_cmds_GCJ \
18963 allow_undefined_flag_GCJ \
18964 no_undefined_flag_GCJ \
18965 export_symbols_cmds_GCJ \
18966 hardcode_libdir_flag_spec_GCJ \
18967 hardcode_libdir_flag_spec_ld_GCJ \
18968 hardcode_libdir_separator_GCJ \
18969 hardcode_automatic_GCJ \
18971 module_expsym_cmds_GCJ \
18972 lt_cv_prog_compiler_c_o_GCJ \
18973 fix_srcfile_path_GCJ \
18974 exclude_expsyms_GCJ \
18975 include_expsyms_GCJ; do
18978 old_archive_cmds_GCJ | \
18979 old_archive_from_new_cmds_GCJ | \
18980 archive_cmds_GCJ | \
18981 archive_expsym_cmds_GCJ | \
18982 module_cmds_GCJ | \
18983 module_expsym_cmds_GCJ | \
18984 old_archive_from_expsyms_cmds_GCJ | \
18985 export_symbols_cmds_GCJ | \
18986 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18987 postinstall_cmds | postuninstall_cmds | \
18988 old_postinstall_cmds | old_postuninstall_cmds | \
18989 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18990 # Double-quote double-evaled strings.
18991 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18994 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19000 *'\$0 --fallback-echo"')
19001 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19007 cat <<__EOF__ >> "$cfgfile"
19008 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19010 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19012 # Shell to use when invoking shell scripts.
19015 # Whether or not to build shared libraries.
19016 build_libtool_libs=$enable_shared
19018 # Whether or not to build static libraries.
19019 build_old_libs=$enable_static
19021 # Whether or not to add -lc for building shared libraries.
19022 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19024 # Whether or not to disallow shared libs when runtime libs are static
19025 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19027 # Whether or not to optimize for fast installation.
19028 fast_install=$enable_fast_install
19031 host_alias=$host_alias
19035 # The build system.
19036 build_alias=$build_alias
19040 # An echo program that does not interpret backslashes.
19045 AR_FLAGS=$lt_AR_FLAGS
19050 # LTCC compiler flags.
19051 LTCFLAGS=$lt_LTCFLAGS
19053 # A language-specific compiler.
19054 CC=$lt_compiler_GCJ
19056 # Is the compiler the GNU C compiler?
19062 # The linker used to build libraries.
19065 # Whether we need hard or soft links.
19068 # A BSD-compatible nm program.
19071 # A symbol stripping program
19074 # Used to examine libraries when file_magic_cmd begins "file"
19075 MAGIC_CMD=$MAGIC_CMD
19077 # Used on cygwin: DLL creation program.
19080 # Used on cygwin: object dumper.
19083 # Used on cygwin: assembler.
19086 # The name of the directory that contains temporary libtool files.
19089 # How to create reloadable object files.
19090 reload_flag=$lt_reload_flag
19091 reload_cmds=$lt_reload_cmds
19093 # How to pass a linker flag through the compiler.
19094 wl=$lt_lt_prog_compiler_wl_GCJ
19096 # Object file suffix (normally "o").
19097 objext="$ac_objext"
19099 # Old archive suffix (normally "a").
19102 # Shared library suffix (normally ".so").
19103 shrext_cmds='$shrext_cmds'
19105 # Executable file suffix (normally "").
19108 # Additional compiler flags for building library objects.
19109 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19112 # What is the maximum length of a command?
19113 max_cmd_len=$lt_cv_sys_max_cmd_len
19115 # Does compiler simultaneously support -c and -o options?
19116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19118 # Must we lock files when doing compilation?
19119 need_locks=$lt_need_locks
19121 # Do we need the lib prefix for modules?
19122 need_lib_prefix=$need_lib_prefix
19124 # Do we need a version for libraries?
19125 need_version=$need_version
19127 # Whether dlopen is supported.
19128 dlopen_support=$enable_dlopen
19130 # Whether dlopen of programs is supported.
19131 dlopen_self=$enable_dlopen_self
19133 # Whether dlopen of statically linked programs is supported.
19134 dlopen_self_static=$enable_dlopen_self_static
19136 # Compiler flag to prevent dynamic linking.
19137 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19139 # Compiler flag to turn off builtin functions.
19140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19142 # Compiler flag to allow reflexive dlopens.
19143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19145 # Compiler flag to generate shared objects directly from archives.
19146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19148 # Compiler flag to generate thread-safe objects.
19149 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19151 # Library versioning type.
19152 version_type=$version_type
19154 # Format of library name prefix.
19155 libname_spec=$lt_libname_spec
19157 # List of archive names. First name is the real one, the rest are links.
19158 # The last name is the one that the linker finds with -lNAME.
19159 library_names_spec=$lt_library_names_spec
19161 # The coded name of the library, if different from the real name.
19162 soname_spec=$lt_soname_spec
19164 # Commands used to build and install an old-style archive.
19166 old_archive_cmds=$lt_old_archive_cmds_GCJ
19167 old_postinstall_cmds=$lt_old_postinstall_cmds
19168 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19170 # Create an old-style archive from a shared archive.
19171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19173 # Create a temporary old-style archive to link instead of a shared archive.
19174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19176 # Commands used to build and install a shared archive.
19177 archive_cmds=$lt_archive_cmds_GCJ
19178 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19179 postinstall_cmds=$lt_postinstall_cmds
19180 postuninstall_cmds=$lt_postuninstall_cmds
19182 # Commands used to build a loadable module (assumed same as above if empty)
19183 module_cmds=$lt_module_cmds_GCJ
19184 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19186 # Commands to strip libraries.
19187 old_striplib=$lt_old_striplib
19188 striplib=$lt_striplib
19190 # Dependencies to place before the objects being linked to create a
19192 predep_objects=$lt_predep_objects_GCJ
19194 # Dependencies to place after the objects being linked to create a
19196 postdep_objects=$lt_postdep_objects_GCJ
19198 # Dependencies to place before the objects being linked to create a
19200 predeps=$lt_predeps_GCJ
19202 # Dependencies to place after the objects being linked to create a
19204 postdeps=$lt_postdeps_GCJ
19206 # The library search path used internally by the compiler when linking
19207 # a shared library.
19208 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19210 # Method to check whether dependent libraries are shared objects.
19211 deplibs_check_method=$lt_deplibs_check_method
19213 # Command to use when deplibs_check_method == file_magic.
19214 file_magic_cmd=$lt_file_magic_cmd
19216 # Flag that allows shared libraries with undefined symbols to be built.
19217 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19219 # Flag that forces no undefined symbols.
19220 no_undefined_flag=$lt_no_undefined_flag_GCJ
19222 # Commands used to finish a libtool library installation in a directory.
19223 finish_cmds=$lt_finish_cmds
19225 # Same as above, but a single script fragment to be evaled but not shown.
19226 finish_eval=$lt_finish_eval
19228 # Take the output of nm and produce a listing of raw symbols and C names.
19229 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19231 # Transform the output of nm in a proper C declaration
19232 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19234 # Transform the output of nm in a C name address pair
19235 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19237 # This is the shared library runtime path variable.
19238 runpath_var=$runpath_var
19240 # This is the shared library path variable.
19241 shlibpath_var=$shlibpath_var
19243 # Is shlibpath searched before the hard-coded library search path?
19244 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19246 # How to hardcode a shared library path into an executable.
19247 hardcode_action=$hardcode_action_GCJ
19249 # Whether we should hardcode library paths into libraries.
19250 hardcode_into_libs=$hardcode_into_libs
19252 # Flag to hardcode \$libdir into a binary during linking.
19253 # This must work even if \$libdir does not exist.
19254 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19256 # If ld is used when linking, flag to hardcode \$libdir into
19257 # a binary during linking. This must work even if \$libdir does
19259 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19261 # Whether we need a single -rpath flag with a separated argument.
19262 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19264 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19265 # resulting binary.
19266 hardcode_direct=$hardcode_direct_GCJ
19268 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19269 # resulting binary.
19270 hardcode_minus_L=$hardcode_minus_L_GCJ
19272 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19273 # the resulting binary.
19274 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19276 # Set to yes if building a shared library automatically hardcodes DIR into the library
19277 # and all subsequent libraries and executables linked against it.
19278 hardcode_automatic=$hardcode_automatic_GCJ
19280 # Variables whose values should be saved in libtool wrapper scripts and
19281 # restored at relink time.
19282 variables_saved_for_relink="$variables_saved_for_relink"
19284 # Whether libtool must link a program against all its dependency libraries.
19285 link_all_deplibs=$link_all_deplibs_GCJ
19287 # Compile-time system search path for libraries
19288 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19290 # Run-time system search path for libraries
19291 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19293 # Fix the shell variable \$srcfile for the compiler.
19294 fix_srcfile_path=$lt_fix_srcfile_path
19296 # Set to yes if exported symbols are required.
19297 always_export_symbols=$always_export_symbols_GCJ
19299 # The commands to list exported symbols.
19300 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19302 # The commands to extract the exported symbol list from a shared archive.
19303 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19305 # Symbols that should not be listed in the preloaded symbols.
19306 exclude_expsyms=$lt_exclude_expsyms_GCJ
19308 # Symbols that must always be exported.
19309 include_expsyms=$lt_include_expsyms_GCJ
19311 # ### END LIBTOOL TAG CONFIG: $tagname
19317 # If there is no Makefile yet, we rely on a make rule to execute
19318 # `config.status --recheck' to rerun these tests and create the
19319 # libtool script then.
19320 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19321 if test -f "$ltmain_in"; then
19322 test -f Makefile && make "$ltmain"
19328 ac_cpp='$CPP $CPPFLAGS'
19329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19343 # Source file extension for RC test sources.
19346 # Object file extension for compiled RC test sources.
19350 # Code to be used in simple compile tests
19351 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19353 # Code to be used in simple link tests
19354 lt_simple_link_test_code="$lt_simple_compile_test_code"
19356 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19358 # If no C compiler was specified, use CC.
19361 # If no C compiler flags were specified, use CFLAGS.
19362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19364 # Allow CC to be a program name with arguments.
19368 # save warnings/boilerplate of simple test code
19369 ac_outfile=conftest.$ac_objext
19370 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19371 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19372 _lt_compiler_boilerplate=`cat conftest.err`
19375 ac_outfile=conftest.$ac_objext
19376 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19377 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19378 _lt_linker_boilerplate=`cat conftest.err`
19382 # Allow CC to be a program name with arguments.
19387 for cc_temp in $compiler""; do
19389 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19390 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19395 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19397 lt_cv_prog_compiler_c_o_RC=yes
19399 # The else clause should only fire when bootstrapping the
19400 # libtool distribution, otherwise you forgot to ship ltmain.sh
19401 # with your package, and you will get complaints that there are
19402 # no rules to generate ltmain.sh.
19403 if test -f "$ltmain"; then
19404 # See if we are running on zsh, and set the options which allow our commands through
19405 # without removal of \ escapes.
19406 if test -n "${ZSH_VERSION+set}" ; then
19407 setopt NO_GLOB_SUBST
19409 # Now quote all the things that may contain metacharacters while being
19410 # careful not to overquote the AC_SUBSTed values. We take copies of the
19411 # variables and quote the copies for generation of the libtool script.
19412 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19414 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19415 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19416 deplibs_check_method reload_flag reload_cmds need_locks \
19417 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19418 lt_cv_sys_global_symbol_to_c_name_address \
19419 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19420 old_postinstall_cmds old_postuninstall_cmds \
19424 lt_prog_compiler_wl_RC \
19425 lt_prog_compiler_pic_RC \
19426 lt_prog_compiler_static_RC \
19427 lt_prog_compiler_no_builtin_flag_RC \
19428 export_dynamic_flag_spec_RC \
19429 thread_safe_flag_spec_RC \
19430 whole_archive_flag_spec_RC \
19431 enable_shared_with_static_runtimes_RC \
19432 old_archive_cmds_RC \
19433 old_archive_from_new_cmds_RC \
19434 predep_objects_RC \
19435 postdep_objects_RC \
19438 compiler_lib_search_path_RC \
19440 archive_expsym_cmds_RC \
19441 postinstall_cmds_RC \
19442 postuninstall_cmds_RC \
19443 old_archive_from_expsyms_cmds_RC \
19444 allow_undefined_flag_RC \
19445 no_undefined_flag_RC \
19446 export_symbols_cmds_RC \
19447 hardcode_libdir_flag_spec_RC \
19448 hardcode_libdir_flag_spec_ld_RC \
19449 hardcode_libdir_separator_RC \
19450 hardcode_automatic_RC \
19452 module_expsym_cmds_RC \
19453 lt_cv_prog_compiler_c_o_RC \
19454 fix_srcfile_path_RC \
19455 exclude_expsyms_RC \
19456 include_expsyms_RC; do
19459 old_archive_cmds_RC | \
19460 old_archive_from_new_cmds_RC | \
19461 archive_cmds_RC | \
19462 archive_expsym_cmds_RC | \
19464 module_expsym_cmds_RC | \
19465 old_archive_from_expsyms_cmds_RC | \
19466 export_symbols_cmds_RC | \
19467 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19468 postinstall_cmds | postuninstall_cmds | \
19469 old_postinstall_cmds | old_postuninstall_cmds | \
19470 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19471 # Double-quote double-evaled strings.
19472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19481 *'\$0 --fallback-echo"')
19482 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19488 cat <<__EOF__ >> "$cfgfile"
19489 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19491 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19493 # Shell to use when invoking shell scripts.
19496 # Whether or not to build shared libraries.
19497 build_libtool_libs=$enable_shared
19499 # Whether or not to build static libraries.
19500 build_old_libs=$enable_static
19502 # Whether or not to add -lc for building shared libraries.
19503 build_libtool_need_lc=$archive_cmds_need_lc_RC
19505 # Whether or not to disallow shared libs when runtime libs are static
19506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19508 # Whether or not to optimize for fast installation.
19509 fast_install=$enable_fast_install
19512 host_alias=$host_alias
19516 # The build system.
19517 build_alias=$build_alias
19521 # An echo program that does not interpret backslashes.
19526 AR_FLAGS=$lt_AR_FLAGS
19531 # LTCC compiler flags.
19532 LTCFLAGS=$lt_LTCFLAGS
19534 # A language-specific compiler.
19537 # Is the compiler the GNU C compiler?
19543 # The linker used to build libraries.
19546 # Whether we need hard or soft links.
19549 # A BSD-compatible nm program.
19552 # A symbol stripping program
19555 # Used to examine libraries when file_magic_cmd begins "file"
19556 MAGIC_CMD=$MAGIC_CMD
19558 # Used on cygwin: DLL creation program.
19561 # Used on cygwin: object dumper.
19564 # Used on cygwin: assembler.
19567 # The name of the directory that contains temporary libtool files.
19570 # How to create reloadable object files.
19571 reload_flag=$lt_reload_flag
19572 reload_cmds=$lt_reload_cmds
19574 # How to pass a linker flag through the compiler.
19575 wl=$lt_lt_prog_compiler_wl_RC
19577 # Object file suffix (normally "o").
19578 objext="$ac_objext"
19580 # Old archive suffix (normally "a").
19583 # Shared library suffix (normally ".so").
19584 shrext_cmds='$shrext_cmds'
19586 # Executable file suffix (normally "").
19589 # Additional compiler flags for building library objects.
19590 pic_flag=$lt_lt_prog_compiler_pic_RC
19593 # What is the maximum length of a command?
19594 max_cmd_len=$lt_cv_sys_max_cmd_len
19596 # Does compiler simultaneously support -c and -o options?
19597 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19599 # Must we lock files when doing compilation?
19600 need_locks=$lt_need_locks
19602 # Do we need the lib prefix for modules?
19603 need_lib_prefix=$need_lib_prefix
19605 # Do we need a version for libraries?
19606 need_version=$need_version
19608 # Whether dlopen is supported.
19609 dlopen_support=$enable_dlopen
19611 # Whether dlopen of programs is supported.
19612 dlopen_self=$enable_dlopen_self
19614 # Whether dlopen of statically linked programs is supported.
19615 dlopen_self_static=$enable_dlopen_self_static
19617 # Compiler flag to prevent dynamic linking.
19618 link_static_flag=$lt_lt_prog_compiler_static_RC
19620 # Compiler flag to turn off builtin functions.
19621 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19623 # Compiler flag to allow reflexive dlopens.
19624 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19626 # Compiler flag to generate shared objects directly from archives.
19627 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19629 # Compiler flag to generate thread-safe objects.
19630 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19632 # Library versioning type.
19633 version_type=$version_type
19635 # Format of library name prefix.
19636 libname_spec=$lt_libname_spec
19638 # List of archive names. First name is the real one, the rest are links.
19639 # The last name is the one that the linker finds with -lNAME.
19640 library_names_spec=$lt_library_names_spec
19642 # The coded name of the library, if different from the real name.
19643 soname_spec=$lt_soname_spec
19645 # Commands used to build and install an old-style archive.
19647 old_archive_cmds=$lt_old_archive_cmds_RC
19648 old_postinstall_cmds=$lt_old_postinstall_cmds
19649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19651 # Create an old-style archive from a shared archive.
19652 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19654 # Create a temporary old-style archive to link instead of a shared archive.
19655 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19657 # Commands used to build and install a shared archive.
19658 archive_cmds=$lt_archive_cmds_RC
19659 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19660 postinstall_cmds=$lt_postinstall_cmds
19661 postuninstall_cmds=$lt_postuninstall_cmds
19663 # Commands used to build a loadable module (assumed same as above if empty)
19664 module_cmds=$lt_module_cmds_RC
19665 module_expsym_cmds=$lt_module_expsym_cmds_RC
19667 # Commands to strip libraries.
19668 old_striplib=$lt_old_striplib
19669 striplib=$lt_striplib
19671 # Dependencies to place before the objects being linked to create a
19673 predep_objects=$lt_predep_objects_RC
19675 # Dependencies to place after the objects being linked to create a
19677 postdep_objects=$lt_postdep_objects_RC
19679 # Dependencies to place before the objects being linked to create a
19681 predeps=$lt_predeps_RC
19683 # Dependencies to place after the objects being linked to create a
19685 postdeps=$lt_postdeps_RC
19687 # The library search path used internally by the compiler when linking
19688 # a shared library.
19689 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19691 # Method to check whether dependent libraries are shared objects.
19692 deplibs_check_method=$lt_deplibs_check_method
19694 # Command to use when deplibs_check_method == file_magic.
19695 file_magic_cmd=$lt_file_magic_cmd
19697 # Flag that allows shared libraries with undefined symbols to be built.
19698 allow_undefined_flag=$lt_allow_undefined_flag_RC
19700 # Flag that forces no undefined symbols.
19701 no_undefined_flag=$lt_no_undefined_flag_RC
19703 # Commands used to finish a libtool library installation in a directory.
19704 finish_cmds=$lt_finish_cmds
19706 # Same as above, but a single script fragment to be evaled but not shown.
19707 finish_eval=$lt_finish_eval
19709 # Take the output of nm and produce a listing of raw symbols and C names.
19710 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19712 # Transform the output of nm in a proper C declaration
19713 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19715 # Transform the output of nm in a C name address pair
19716 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19718 # This is the shared library runtime path variable.
19719 runpath_var=$runpath_var
19721 # This is the shared library path variable.
19722 shlibpath_var=$shlibpath_var
19724 # Is shlibpath searched before the hard-coded library search path?
19725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19727 # How to hardcode a shared library path into an executable.
19728 hardcode_action=$hardcode_action_RC
19730 # Whether we should hardcode library paths into libraries.
19731 hardcode_into_libs=$hardcode_into_libs
19733 # Flag to hardcode \$libdir into a binary during linking.
19734 # This must work even if \$libdir does not exist.
19735 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19737 # If ld is used when linking, flag to hardcode \$libdir into
19738 # a binary during linking. This must work even if \$libdir does
19740 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19742 # Whether we need a single -rpath flag with a separated argument.
19743 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19745 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19746 # resulting binary.
19747 hardcode_direct=$hardcode_direct_RC
19749 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19750 # resulting binary.
19751 hardcode_minus_L=$hardcode_minus_L_RC
19753 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19754 # the resulting binary.
19755 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19757 # Set to yes if building a shared library automatically hardcodes DIR into the library
19758 # and all subsequent libraries and executables linked against it.
19759 hardcode_automatic=$hardcode_automatic_RC
19761 # Variables whose values should be saved in libtool wrapper scripts and
19762 # restored at relink time.
19763 variables_saved_for_relink="$variables_saved_for_relink"
19765 # Whether libtool must link a program against all its dependency libraries.
19766 link_all_deplibs=$link_all_deplibs_RC
19768 # Compile-time system search path for libraries
19769 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19771 # Run-time system search path for libraries
19772 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19774 # Fix the shell variable \$srcfile for the compiler.
19775 fix_srcfile_path=$lt_fix_srcfile_path
19777 # Set to yes if exported symbols are required.
19778 always_export_symbols=$always_export_symbols_RC
19780 # The commands to list exported symbols.
19781 export_symbols_cmds=$lt_export_symbols_cmds_RC
19783 # The commands to extract the exported symbol list from a shared archive.
19784 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19786 # Symbols that should not be listed in the preloaded symbols.
19787 exclude_expsyms=$lt_exclude_expsyms_RC
19789 # Symbols that must always be exported.
19790 include_expsyms=$lt_include_expsyms_RC
19792 # ### END LIBTOOL TAG CONFIG: $tagname
19798 # If there is no Makefile yet, we rely on a make rule to execute
19799 # `config.status --recheck' to rerun these tests and create the
19800 # libtool script then.
19801 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19802 if test -f "$ltmain_in"; then
19803 test -f Makefile && make "$ltmain"
19809 ac_cpp='$CPP $CPPFLAGS'
19810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19819 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19820 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19821 { (exit 1); exit 1; }; }
19825 # Append the new tag name to the list of available tags.
19826 if test -n "$tagname" ; then
19827 available_tags="$available_tags $tagname"
19833 # Now substitute the updated list of available tags.
19834 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19835 mv "${ofile}T" "$ofile"
19839 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19840 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19841 { (exit 1); exit 1; }; }
19847 # This can be used to rebuild libtool when needed
19848 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19850 # Always use our own libtool.
19851 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19853 # Prevent multiple expansion
19877 ######################################################################
19878 # the following interpret 'with' and 'enable' switches.
19879 # some of these switches trigger checks that can be found further
19880 # below in this configure script
19882 # does the user want aggressive optimization?
19883 # Check whether --enable-debug was given.
19884 if test "${enable_debug+set}" = set; then
19885 enableval=$enable_debug; debug=$enableval
19891 # does the user want to build demo applications?
19892 # Check whether --enable-apps was given.
19893 if test "${enable_apps+set}" = set; then
19894 enableval=$enable_apps; enable_apps=$enableval
19899 if test x"$enable_apps" = x"yes"; then
19901 BUILD_APPS_FALSE='#'
19903 BUILD_APPS_TRUE='#'
19909 # the following checks reflect the dependencies of OpenCV on other
19910 # libraries that do the actual work for video I/O or windowing
19911 # subsystem. On some platforms there are ambiguities that a user
19912 # can influence. There is also additional logic to be found in code
19913 # later code lines that tries to do sensible decisions on what to use
19915 # does the user want to compile python modules as well?
19917 # Check whether --with-swig was given.
19918 if test "${with_swig+set}" = set; then
19919 withval=$with_swig; with_swig=$withval
19925 # does the user want to compile python modules as well?
19927 # Check whether --with-python was given.
19928 if test "${with_python+set}" = set; then
19929 withval=$with_python; with_python=$withval
19935 # does the user want to compile octave modules as well?
19937 # Check whether --with-octave was given.
19938 if test "${with_octave+set}" = set; then
19939 withval=$with_octave; with_octave=$withval
19945 # does the user want OpenCV to use xine video libraries?
19947 # Check whether --with-xine was given.
19948 if test "${with_xine+set}" = set; then
19949 withval=$with_xine; with_xine=$withval
19955 # does the user want OpenCV to use the gstreamer multimedia framework?
19957 # Check whether --with-gstreamer was given.
19958 if test "${with_gstreamer+set}" = set; then
19959 withval=$with_gstreamer; with_gstreamer=$withval
19965 # does the user want OpenCV to use ffmpeg video libraries?
19967 # Check whether --with-ffmpeg was given.
19968 if test "${with_ffmpeg+set}" = set; then
19969 withval=$with_ffmpeg; with_ffmpeg=$withval
19975 # does the user want OpenCV to use libraw1394/libdc1394 for video input?
19977 # Check whether --with-1394libs was given.
19978 if test "${with_1394libs+set}" = set; then
19979 withval=$with_1394libs; with_1394libs=$withval
19985 # does the user want OpenCV to use the video4linux kernel module?
19987 # Check whether --with-v4l was given.
19988 if test "${with_v4l+set}" = set; then
19989 withval=$with_v4l; with_v4l=$withval
19995 # does the user want OpenCV to use image libraries from OS X 10.4?
19997 # Check whether --with-imageio was given.
19998 if test "${with_imageio+set}" = set; then
19999 withval=$with_imageio; with_imageio=$withval
20005 # does the user want OpenCV to use QuickTime video libraries?
20007 # Check whether --with-quicktime was given.
20008 if test "${with_quicktime+set}" = set; then
20009 withval=$with_quicktime; with_quicktime=$withval
20015 # does the user want OpenCV to use the Carbon GUI of Mac OS X?
20017 # Check whether --with-carbon was given.
20018 if test "${with_carbon+set}" = set; then
20019 withval=$with_carbon; with_carbon=$withval
20025 # does the user want OpenCV to use GTK+ 2.0 for the GUI?
20027 # Check whether --with-gtk was given.
20028 if test "${with_gtk+set}" = set; then
20029 withval=$with_gtk; with_gtk=$withval
20035 # does the user want OpenCV to use gthread for GTK+ threaded HighGUI?
20037 # Check whether --with-gthread was given.
20038 if test "${with_gthread+set}" = set; then
20039 withval=$with_gthread; with_gthread=$withval
20046 ######################################################################
20047 # getting the code to compile
20049 # cure annoying default arguments for CFLAGS and CXXFLAGS
20050 # that autoconf automatically sets in GNU environments if
20051 # no CFLAGS or CXXFLAGS were manually given
20052 if test x"$CFLAGS" = "x-g -O2" ; then
20055 if test x"$CXXFLAGS" = "x-g -O2" ; then
20059 # set the default c++ flags for all the compilations
20060 # we don't append CXXFLAGS, because it's done at compile time
20061 # see http://www.gnu.org/software/libtool/manual/automake/Flag-Variables-Ordering.html
20062 # for more information
20063 DEFAULT_CXXFLAGS=""
20065 # see if the user wants aggressive optimizations of the code,
20066 # check whether to include debugging code
20067 { echo "$as_me:$LINENO: checking whether to build debug version (no optimization)" >&5
20068 echo $ECHO_N "checking whether to build debug version (no optimization)... $ECHO_C" >&6; }
20069 if test x"$debug" = "xyes"; then
20070 { echo "$as_me:$LINENO: result: yes" >&5
20071 echo "${ECHO_T}yes" >&6; }
20072 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20073 CPPFLAGS="-DDEBUG -D_DEBUG $CPPFLAGS"
20074 DEFAULT_CXXFLAGS="-ggdb -O0 $DEFAULT_CXXFLAGS"
20077 { echo "$as_me:$LINENO: result: no" >&5
20078 echo "${ECHO_T}no" >&6; }
20079 { echo "$as_me:$LINENO: TARGET=$target " >&5
20080 echo "$as_me: TARGET=$target " >&6;}
20083 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20084 # apples g++ fails with '-march=i686' and there are no apple machines older than prescott/core anyway
20085 DEFAULT_CXXFLAGS="-g -march=prescott -ffast-math -fomit-frame-pointer $DEFAULT_CXXFLAGS"
20089 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20090 # default to i686/pentiumpro -- people can override this
20091 DEFAULT_CXXFLAGS="-g -march=i686 -ffast-math -fomit-frame-pointer $DEFAULT_CXXFLAGS"
20095 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20096 # default to G3 processors -- people can override this
20097 DEFAULT_CXXFLAGS="-g -mcpu=G3 -mtune=G5 -fomit-frame-pointer $DEFAULT_CXXFLAGS"
20101 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20102 DEFAULT_CXXFLAGS="-fomit-frame-pointer $DEFAULT_CXXFLAGS"
20107 CPPFLAGS="-DNDEBUG $CPPFLAGS"
20108 DEFAULT_CXXFLAGS="-O3 $DEFAULT_CXXFLAGS"
20111 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20112 PY_CXXFLAGS="-Wall -pipe $DEFAULT_CXXFLAGS"
20113 OCT_CXXFLAGS="-fno-strict-aliasing -Wall -Wno-uninitialized -pipe $DEFAULT_CXXFLAGS"
20114 DEF_CXXFLAGS="-Wall -fno-rtti -pipe $DEFAULT_CXXFLAGS"
20116 PY_CXXFLAGS="$DEFAULT_CXXFLAGS"
20117 OCT_CXXFLAGS="$DEFAULT_CXXFLAGS"
20118 DEF_CXXFLAGS="$DEFAULT_CXXFLAGS"
20124 # add libm because it is used by several libraries and OpenCV itself
20126 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
20127 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
20128 if test "${ac_cv_lib_m_pow+set}" = set; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 ac_check_lib_save_LIBS=$LIBS
20133 cat >conftest.$ac_ext <<_ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20140 /* Override any GCC internal prototype to avoid an error.
20141 Use char because int might match the return type of a GCC
20142 builtin and then its argument prototype would still apply. */
20155 rm -f conftest.$ac_objext conftest$ac_exeext
20156 if { (ac_try="$ac_link"
20157 case "(($ac_try" in
20158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20159 *) ac_try_echo=$ac_try;;
20161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20162 (eval "$ac_link") 2>conftest.er1
20164 grep -v '^ *+' conftest.er1 >conftest.err
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } && {
20169 test -z "$ac_c_werror_flag" ||
20170 test ! -s conftest.err
20171 } && test -s conftest$ac_exeext &&
20172 $as_test_x conftest$ac_exeext; then
20173 ac_cv_lib_m_pow=yes
20175 echo "$as_me: failed program was:" >&5
20176 sed 's/^/| /' conftest.$ac_ext >&5
20181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20182 conftest$ac_exeext conftest.$ac_ext
20183 LIBS=$ac_check_lib_save_LIBS
20185 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20186 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
20187 if test $ac_cv_lib_m_pow = yes; then
20188 cat >>confdefs.h <<_ACEOF
20189 #define HAVE_LIBM 1
20197 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20200 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 ac_check_lib_save_LIBS=$LIBS
20204 cat >conftest.$ac_ext <<_ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20211 /* Override any GCC internal prototype to avoid an error.
20212 Use char because int might match the return type of a GCC
20213 builtin and then its argument prototype would still apply. */
20226 rm -f conftest.$ac_objext conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_link") 2>conftest.er1
20235 grep -v '^ *+' conftest.er1 >conftest.err
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest$ac_exeext &&
20243 $as_test_x conftest$ac_exeext; then
20244 ac_cv_lib_dl_dlopen=yes
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 ac_cv_lib_dl_dlopen=no
20252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20253 conftest$ac_exeext conftest.$ac_ext
20254 LIBS=$ac_check_lib_save_LIBS
20256 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20258 if test $ac_cv_lib_dl_dlopen = yes; then
20259 cat >>confdefs.h <<_ACEOF
20260 #define HAVE_LIBDL 1
20268 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20269 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20270 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20273 ac_check_lib_save_LIBS=$LIBS
20274 LIBS="-lpthread $LIBS"
20275 cat >conftest.$ac_ext <<_ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20282 /* Override any GCC internal prototype to avoid an error.
20283 Use char because int might match the return type of a GCC
20284 builtin and then its argument prototype would still apply. */
20288 char pthread_create ();
20292 return pthread_create ();
20297 rm -f conftest.$ac_objext conftest$ac_exeext
20298 if { (ac_try="$ac_link"
20299 case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_link") 2>conftest.er1
20306 grep -v '^ *+' conftest.er1 >conftest.err
20308 cat conftest.err >&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } && {
20311 test -z "$ac_c_werror_flag" ||
20312 test ! -s conftest.err
20313 } && test -s conftest$ac_exeext &&
20314 $as_test_x conftest$ac_exeext; then
20315 ac_cv_lib_pthread_pthread_create=yes
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ac_cv_lib_pthread_pthread_create=no
20323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20324 conftest$ac_exeext conftest.$ac_ext
20325 LIBS=$ac_check_lib_save_LIBS
20327 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20328 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20329 if test $ac_cv_lib_pthread_pthread_create = yes; then
20330 cat >>confdefs.h <<_ACEOF
20331 #define HAVE_LIBPTHREAD 1
20334 LIBS="-lpthread $LIBS"
20340 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20341 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20342 if test "${ac_cv_c_bigendian+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20345 # See if sys/param.h defines the BYTE_ORDER macro.
20346 cat >conftest.$ac_ext <<_ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20352 #include <sys/types.h>
20353 #include <sys/param.h>
20358 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20359 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20360 bogus endian macros
20367 rm -f conftest.$ac_objext
20368 if { (ac_try="$ac_compile"
20369 case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_compile") 2>conftest.er1
20376 grep -v '^ *+' conftest.er1 >conftest.err
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } && {
20381 test -z "$ac_c_werror_flag" ||
20382 test ! -s conftest.err
20383 } && test -s conftest.$ac_objext; then
20384 # It does; now see whether it defined to BIG_ENDIAN or not.
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20391 #include <sys/types.h>
20392 #include <sys/param.h>
20397 #if BYTE_ORDER != BIG_ENDIAN
20405 rm -f conftest.$ac_objext
20406 if { (ac_try="$ac_compile"
20407 case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_compile") 2>conftest.er1
20414 grep -v '^ *+' conftest.er1 >conftest.err
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } && {
20419 test -z "$ac_c_werror_flag" ||
20420 test ! -s conftest.err
20421 } && test -s conftest.$ac_objext; then
20422 ac_cv_c_bigendian=yes
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_cv_c_bigendian=no
20430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 # It does not; compile a test program.
20436 if test "$cross_compiling" = yes; then
20437 # try to guess the endianness by grepping values into an object file
20438 ac_cv_c_bigendian=unknown
20439 cat >conftest.$ac_ext <<_ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h. */
20445 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20446 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20447 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20448 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20449 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20450 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20454 _ascii (); _ebcdic ();
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_compile") 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } && {
20473 test -z "$ac_c_werror_flag" ||
20474 test ! -s conftest.err
20475 } && test -s conftest.$ac_objext; then
20476 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20477 ac_cv_c_bigendian=yes
20479 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20480 if test "$ac_cv_c_bigendian" = unknown; then
20481 ac_cv_c_bigendian=no
20483 # finding both strings is unlikely to happen, but who knows?
20484 ac_cv_c_bigendian=unknown
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20496 cat >conftest.$ac_ext <<_ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20502 $ac_includes_default
20507 /* Are we little or big endian? From Harbison&Steele. */
20511 char c[sizeof (long int)];
20514 return u.c[sizeof (long int) - 1] == 1;
20520 rm -f conftest$ac_exeext
20521 if { (ac_try="$ac_link"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_link") 2>&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20531 { (case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_try") 2>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; }; then
20540 ac_cv_c_bigendian=no
20542 echo "$as_me: program exited with status $ac_status" >&5
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20546 ( exit $ac_status )
20547 ac_cv_c_bigendian=yes
20549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20557 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20558 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20559 case $ac_cv_c_bigendian in
20562 cat >>confdefs.h <<\_ACEOF
20563 #define WORDS_BIGENDIAN 1
20569 { { echo "$as_me:$LINENO: error: unknown endianness
20570 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20571 echo "$as_me: error: unknown endianness
20572 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20573 { (exit 1); exit 1; }; } ;;
20577 # check for specific functions that might be missing from
20578 # certain standard library implementations
20579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20580 # for constant arguments. Useless!
20581 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
20582 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
20583 if test "${ac_cv_working_alloca_h+set}" = set; then
20584 echo $ECHO_N "(cached) $ECHO_C" >&6
20586 cat >conftest.$ac_ext <<_ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h. */
20592 #include <alloca.h>
20596 char *p = (char *) alloca (2 * sizeof (int));
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_link") 2>conftest.er1
20611 grep -v '^ *+' conftest.er1 >conftest.err
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest$ac_exeext &&
20619 $as_test_x conftest$ac_exeext; then
20620 ac_cv_working_alloca_h=yes
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 ac_cv_working_alloca_h=no
20628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20629 conftest$ac_exeext conftest.$ac_ext
20631 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20632 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
20633 if test $ac_cv_working_alloca_h = yes; then
20635 cat >>confdefs.h <<\_ACEOF
20636 #define HAVE_ALLOCA_H 1
20641 { echo "$as_me:$LINENO: checking for alloca" >&5
20642 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
20643 if test "${ac_cv_func_alloca_works+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20653 # define alloca __builtin_alloca
20656 # include <malloc.h>
20657 # define alloca _alloca
20659 # ifdef HAVE_ALLOCA_H
20660 # include <alloca.h>
20665 # ifndef alloca /* predefined by HP cc +Olibcalls */
20676 char *p = (char *) alloca (1);
20682 rm -f conftest.$ac_objext conftest$ac_exeext
20683 if { (ac_try="$ac_link"
20684 case "(($ac_try" in
20685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686 *) ac_try_echo=$ac_try;;
20688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689 (eval "$ac_link") 2>conftest.er1
20691 grep -v '^ *+' conftest.er1 >conftest.err
20693 cat conftest.err >&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } && {
20696 test -z "$ac_c_werror_flag" ||
20697 test ! -s conftest.err
20698 } && test -s conftest$ac_exeext &&
20699 $as_test_x conftest$ac_exeext; then
20700 ac_cv_func_alloca_works=yes
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20705 ac_cv_func_alloca_works=no
20708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20709 conftest$ac_exeext conftest.$ac_ext
20711 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20712 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
20714 if test $ac_cv_func_alloca_works = yes; then
20716 cat >>confdefs.h <<\_ACEOF
20717 #define HAVE_ALLOCA 1
20721 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20722 # that cause trouble. Some versions do not even contain alloca or
20723 # contain a buggy version. If you still want to use their alloca,
20724 # use ar to extract alloca.o from them instead of compiling alloca.c.
20726 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20728 cat >>confdefs.h <<\_ACEOF
20733 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20734 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
20735 if test "${ac_cv_os_cray+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 #if defined CRAY && ! defined CRAY2
20751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20752 $EGREP "webecray" >/dev/null 2>&1; then
20760 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20761 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
20762 if test $ac_cv_os_cray = yes; then
20763 for ac_func in _getb67 GETB67 getb67; do
20764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 cat >conftest.$ac_ext <<_ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20778 #define $ac_func innocuous_$ac_func
20780 /* System header to define __stub macros and hopefully few prototypes,
20781 which can conflict with char $ac_func (); below.
20782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20783 <limits.h> exists even on freestanding compilers. */
20786 # include <limits.h>
20788 # include <assert.h>
20793 /* Override any GCC internal prototype to avoid an error.
20794 Use char because int might match the return type of a GCC
20795 builtin and then its argument prototype would still apply. */
20800 /* The GNU C library defines this for functions which it implements
20801 to always fail with ENOSYS. Some functions are actually named
20802 something starting with __ and the normal name is an alias. */
20803 #if defined __stub_$ac_func || defined __stub___$ac_func
20810 return $ac_func ();
20815 rm -f conftest.$ac_objext conftest$ac_exeext
20816 if { (ac_try="$ac_link"
20817 case "(($ac_try" in
20818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819 *) ac_try_echo=$ac_try;;
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822 (eval "$ac_link") 2>conftest.er1
20824 grep -v '^ *+' conftest.er1 >conftest.err
20826 cat conftest.err >&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); } && {
20829 test -z "$ac_c_werror_flag" ||
20830 test ! -s conftest.err
20831 } && test -s conftest$ac_exeext &&
20832 $as_test_x conftest$ac_exeext; then
20833 eval "$as_ac_var=yes"
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20838 eval "$as_ac_var=no"
20841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20842 conftest$ac_exeext conftest.$ac_ext
20844 ac_res=`eval echo '${'$as_ac_var'}'`
20845 { echo "$as_me:$LINENO: result: $ac_res" >&5
20846 echo "${ECHO_T}$ac_res" >&6; }
20847 if test `eval echo '${'$as_ac_var'}'` = yes; then
20849 cat >>confdefs.h <<_ACEOF
20850 #define CRAY_STACKSEG_END $ac_func
20859 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20860 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
20861 if test "${ac_cv_c_stack_direction+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 if test "$cross_compiling" = yes; then
20865 ac_cv_c_stack_direction=0
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20875 find_stack_direction ()
20877 static char *addr = 0;
20882 return find_stack_direction ();
20885 return (&dummy > addr) ? 1 : -1;
20891 return find_stack_direction () < 0;
20894 rm -f conftest$ac_exeext
20895 if { (ac_try="$ac_link"
20896 case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_link") 2>&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20905 { (case "(($ac_try" in
20906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907 *) ac_try_echo=$ac_try;;
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910 (eval "$ac_try") 2>&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
20914 ac_cv_c_stack_direction=1
20916 echo "$as_me: program exited with status $ac_status" >&5
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20920 ( exit $ac_status )
20921 ac_cv_c_stack_direction=-1
20923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20928 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20929 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
20931 cat >>confdefs.h <<_ACEOF
20932 #define STACK_DIRECTION $ac_cv_c_stack_direction
20939 for ac_header in malloc.h
20941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 ac_res=`eval echo '${'$as_ac_Header'}'`
20949 { echo "$as_me:$LINENO: result: $ac_res" >&5
20950 echo "${ECHO_T}$ac_res" >&6; }
20952 # Is the header compilable?
20953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 $ac_includes_default
20962 #include <$ac_header>
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_compile") 2>conftest.er1
20973 grep -v '^ *+' conftest.er1 >conftest.err
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } && {
20978 test -z "$ac_c_werror_flag" ||
20979 test ! -s conftest.err
20980 } && test -s conftest.$ac_objext; then
20981 ac_header_compiler=yes
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20986 ac_header_compiler=no
20989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20991 echo "${ECHO_T}$ac_header_compiler" >&6; }
20993 # Is the header present?
20994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002 #include <$ac_header>
21004 if { (ac_try="$ac_cpp conftest.$ac_ext"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21012 grep -v '^ *+' conftest.er1 >conftest.err
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } >/dev/null && {
21017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21020 ac_header_preproc=yes
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ac_header_preproc=no
21028 rm -f conftest.err conftest.$ac_ext
21029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21030 echo "${ECHO_T}$ac_header_preproc" >&6; }
21032 # So? What about this header?
21033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21039 ac_header_preproc=yes
21042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21055 ## -------------------------------------------------------- ##
21056 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21057 ## -------------------------------------------------------- ##
21059 ) | sed "s/^/$as_me: WARNING: /" >&2
21062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 eval "$as_ac_Header=\$ac_header_preproc"
21069 ac_res=`eval echo '${'$as_ac_Header'}'`
21070 { echo "$as_me:$LINENO: result: $ac_res" >&5
21071 echo "${ECHO_T}$ac_res" >&6; }
21074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21075 cat >>confdefs.h <<_ACEOF
21076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21084 for ac_header in assert.h
21086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21091 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 ac_res=`eval echo '${'$as_ac_Header'}'`
21094 { echo "$as_me:$LINENO: result: $ac_res" >&5
21095 echo "${ECHO_T}$ac_res" >&6; }
21097 # Is the header compilable?
21098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21100 cat >conftest.$ac_ext <<_ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21106 $ac_includes_default
21107 #include <$ac_header>
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113 *) ac_try_echo=$ac_try;;
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116 (eval "$ac_compile") 2>conftest.er1
21118 grep -v '^ *+' conftest.er1 >conftest.err
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } && {
21123 test -z "$ac_c_werror_flag" ||
21124 test ! -s conftest.err
21125 } && test -s conftest.$ac_objext; then
21126 ac_header_compiler=yes
21128 echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21131 ac_header_compiler=no
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21136 echo "${ECHO_T}$ac_header_compiler" >&6; }
21138 # Is the header present?
21139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21141 cat >conftest.$ac_ext <<_ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 #include <$ac_header>
21149 if { (ac_try="$ac_cpp conftest.$ac_ext"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21157 grep -v '^ *+' conftest.er1 >conftest.err
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } >/dev/null && {
21162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21163 test ! -s conftest.err
21165 ac_header_preproc=yes
21167 echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21170 ac_header_preproc=no
21173 rm -f conftest.err conftest.$ac_ext
21174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21175 echo "${ECHO_T}$ac_header_preproc" >&6; }
21177 # So? What about this header?
21178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21184 ac_header_preproc=yes
21187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21200 ## -------------------------------------------------------- ##
21201 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21202 ## -------------------------------------------------------- ##
21204 ) | sed "s/^/$as_me: WARNING: /" >&2
21207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21212 eval "$as_ac_Header=\$ac_header_preproc"
21214 ac_res=`eval echo '${'$as_ac_Header'}'`
21215 { echo "$as_me:$LINENO: result: $ac_res" >&5
21216 echo "${ECHO_T}$ac_res" >&6; }
21219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21220 cat >>confdefs.h <<_ACEOF
21221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21229 for ac_func in lrint
21231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21235 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 cat >conftest.$ac_ext <<_ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21245 #define $ac_func innocuous_$ac_func
21247 /* System header to define __stub macros and hopefully few prototypes,
21248 which can conflict with char $ac_func (); below.
21249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21250 <limits.h> exists even on freestanding compilers. */
21253 # include <limits.h>
21255 # include <assert.h>
21260 /* Override any GCC internal prototype to avoid an error.
21261 Use char because int might match the return type of a GCC
21262 builtin and then its argument prototype would still apply. */
21267 /* The GNU C library defines this for functions which it implements
21268 to always fail with ENOSYS. Some functions are actually named
21269 something starting with __ and the normal name is an alias. */
21270 #if defined __stub_$ac_func || defined __stub___$ac_func
21277 return $ac_func ();
21282 rm -f conftest.$ac_objext conftest$ac_exeext
21283 if { (ac_try="$ac_link"
21284 case "(($ac_try" in
21285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286 *) ac_try_echo=$ac_try;;
21288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289 (eval "$ac_link") 2>conftest.er1
21291 grep -v '^ *+' conftest.er1 >conftest.err
21293 cat conftest.err >&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } && {
21296 test -z "$ac_c_werror_flag" ||
21297 test ! -s conftest.err
21298 } && test -s conftest$ac_exeext &&
21299 $as_test_x conftest$ac_exeext; then
21300 eval "$as_ac_var=yes"
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21305 eval "$as_ac_var=no"
21308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21309 conftest$ac_exeext conftest.$ac_ext
21311 ac_res=`eval echo '${'$as_ac_var'}'`
21312 { echo "$as_me:$LINENO: result: $ac_res" >&5
21313 echo "${ECHO_T}$ac_res" >&6; }
21314 if test `eval echo '${'$as_ac_var'}'` = yes; then
21315 cat >>confdefs.h <<_ACEOF
21316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21324 ######################################################################
21325 # HighGUI dependencies for windowing system
21327 # honor user selection,
21328 # if no selection given check for Carbon first
21331 if test x"$with_carbon" = "xyes"; then
21333 # header presence and usability seem to be enough
21334 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21335 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
21336 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
21337 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21340 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
21341 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
21343 # Is the header compilable?
21344 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
21345 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
21346 cat >conftest.$ac_ext <<_ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h. */
21352 $ac_includes_default
21353 #include <Carbon/Carbon.h>
21355 rm -f conftest.$ac_objext
21356 if { (ac_try="$ac_compile"
21357 case "(($ac_try" in
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359 *) ac_try_echo=$ac_try;;
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362 (eval "$ac_compile") 2>conftest.er1
21364 grep -v '^ *+' conftest.er1 >conftest.err
21366 cat conftest.err >&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } && {
21369 test -z "$ac_c_werror_flag" ||
21370 test ! -s conftest.err
21371 } && test -s conftest.$ac_objext; then
21372 ac_header_compiler=yes
21374 echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21377 ac_header_compiler=no
21380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21382 echo "${ECHO_T}$ac_header_compiler" >&6; }
21384 # Is the header present?
21385 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
21386 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
21387 cat >conftest.$ac_ext <<_ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21393 #include <Carbon/Carbon.h>
21395 if { (ac_try="$ac_cpp conftest.$ac_ext"
21396 case "(($ac_try" in
21397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398 *) ac_try_echo=$ac_try;;
21400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21403 grep -v '^ *+' conftest.er1 >conftest.err
21405 cat conftest.err >&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } >/dev/null && {
21408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21409 test ! -s conftest.err
21411 ac_header_preproc=yes
21413 echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21416 ac_header_preproc=no
21419 rm -f conftest.err conftest.$ac_ext
21420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21421 echo "${ECHO_T}$ac_header_preproc" >&6; }
21423 # So? What about this header?
21424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21426 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
21427 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21428 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
21429 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
21430 ac_header_preproc=yes
21433 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
21434 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
21435 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
21436 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
21437 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
21438 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
21440 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
21442 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
21444 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
21446 ## -------------------------------------------------------- ##
21447 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21448 ## -------------------------------------------------------- ##
21450 ) | sed "s/^/$as_me: WARNING: /" >&2
21453 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
21454 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
21455 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
21460 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
21461 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
21464 if test $ac_cv_header_Carbon_Carbon_h = yes; then
21467 cat >>confdefs.h <<\_ACEOF
21468 #define HAVE_CARBON
21471 CARBON_LIBS="-Xlinker -framework -Xlinker Carbon"
21484 if test x"$have_carbon" = "xyes"; then
21486 # if we asked for gtk, this is not ok
21487 if test x"$with_gtk" = "xyes"; then
21488 { { echo "$as_me:$LINENO: error: You cannot specify --with-carbon and --with-gtk at the same time" >&5
21489 echo "$as_me: error: You cannot specify --with-carbon and --with-gtk at the same time" >&2;}
21490 { (exit 1); exit 1; }; }
21493 # don't check alternatives if carbon was found
21494 if test x"$with_gtk" = "xauto"; then
21500 if test ! x"$with_carbon" = "xno"; then
21501 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&5
21502 echo "$as_me: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&2;}
21507 if test x"$have_carbon" = "xyes"; then
21509 BUILD_CARBON_FALSE='#'
21511 BUILD_CARBON_TRUE='#'
21512 BUILD_CARBON_FALSE=
21516 # use GTK+ 2.x (or later) for windowing
21517 # if carbon not present or not wanted (--without-carbon)
21522 if test x"$with_gtk" = "xno"; then
21526 # check if ./configure arguments are valid
21527 if test x"$with_gtk" = "xauto"; then
21530 if test x"$with_gtk" = "xyes"; then
21532 # pkg-config is needed for GTK+
21533 # Extract the first word of "pkg-config", so it can be a program name with args.
21534 set dummy pkg-config; ac_word=$2
21535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 case $PKG_CONFIG in
21542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21546 for as_dir in $PATH
21549 test -z "$as_dir" && as_dir=.
21550 for ac_exec_ext in '' $ac_executable_extensions; do
21551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21560 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21564 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21565 if test -n "$PKG_CONFIG"; then
21566 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21567 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21569 { echo "$as_me:$LINENO: result: no" >&5
21570 echo "${ECHO_T}no" >&6; }
21574 if test x"$PKG_CONFIG" == "xno"; then
21575 { { echo "$as_me:$LINENO: error: You have to install pkg-config to compile OpenCV with GTK+" >&5
21576 echo "$as_me: error: You have to install pkg-config to compile OpenCV with GTK+" >&2;}
21577 { (exit 1); exit 1; }; }
21583 if test -z "$PKG_CONFIG"; then
21584 # Extract the first word of "pkg-config", so it can be a program name with args.
21585 set dummy pkg-config; ac_word=$2
21586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21588 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21589 echo $ECHO_N "(cached) $ECHO_C" >&6
21591 case $PKG_CONFIG in
21593 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21597 for as_dir in $PATH
21600 test -z "$as_dir" && as_dir=.
21601 for ac_exec_ext in '' $ac_executable_extensions; do
21602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21603 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21611 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21615 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21616 if test -n "$PKG_CONFIG"; then
21617 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21618 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21620 { echo "$as_me:$LINENO: result: no" >&5
21621 echo "${ECHO_T}no" >&6; }
21627 if test "$PKG_CONFIG" = "no" ; then
21628 echo "*** The pkg-config script could not be found. Make sure it is"
21629 echo "*** in your path, or set the PKG_CONFIG environment variable"
21630 echo "*** to the full path to pkg-config."
21631 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21633 PKG_CONFIG_MIN_VERSION=0.9.0
21634 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21635 { echo "$as_me:$LINENO: checking for \"gtk+-2.0 gdk-pixbuf-2.0\"" >&5
21636 echo $ECHO_N "checking for \"gtk+-2.0 gdk-pixbuf-2.0\"... $ECHO_C" >&6; }
21638 if $PKG_CONFIG --exists ""gtk+-2.0 gdk-pixbuf-2.0"" ; then
21639 { echo "$as_me:$LINENO: result: yes" >&5
21640 echo "${ECHO_T}yes" >&6; }
21643 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
21644 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
21645 GTK_CFLAGS=`$PKG_CONFIG --cflags ""gtk+-2.0 gdk-pixbuf-2.0""`
21646 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
21647 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
21649 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
21650 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
21651 GTK_LIBS=`$PKG_CONFIG --libs ""gtk+-2.0 gdk-pixbuf-2.0""`
21652 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
21653 echo "${ECHO_T}$GTK_LIBS" >&6; }
21657 ## If we have a custom action on failure, don't print errors, but
21658 ## do set a variable so people can do so.
21659 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gtk+-2.0 gdk-pixbuf-2.0""`
21666 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21667 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21671 if test $succeeded = yes; then
21675 cat >>confdefs.h <<\_ACEOF
21686 # if we get here then --with-gtk was not called with 'yes','no' or 'auto'
21687 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&5
21688 echo "$as_me: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&2;}
21692 if test x"$with_gthread" = "xno"; then
21695 if test x"$have_gtk" = "xyes"; then
21696 if test x"$with_gthread" = "xauto"; then
21700 if test x"$with_gthread" = "xyes"; then
21704 if test -z "$PKG_CONFIG"; then
21705 # Extract the first word of "pkg-config", so it can be a program name with args.
21706 set dummy pkg-config; ac_word=$2
21707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21709 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21712 case $PKG_CONFIG in
21714 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21718 for as_dir in $PATH
21721 test -z "$as_dir" && as_dir=.
21722 for ac_exec_ext in '' $ac_executable_extensions; do
21723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21724 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21732 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21736 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21737 if test -n "$PKG_CONFIG"; then
21738 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21739 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21741 { echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6; }
21748 if test "$PKG_CONFIG" = "no" ; then
21749 echo "*** The pkg-config script could not be found. Make sure it is"
21750 echo "*** in your path, or set the PKG_CONFIG environment variable"
21751 echo "*** to the full path to pkg-config."
21752 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21754 PKG_CONFIG_MIN_VERSION=0.9.0
21755 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21756 { echo "$as_me:$LINENO: checking for \"gthread-2.0\"" >&5
21757 echo $ECHO_N "checking for \"gthread-2.0\"... $ECHO_C" >&6; }
21759 if $PKG_CONFIG --exists ""gthread-2.0"" ; then
21760 { echo "$as_me:$LINENO: result: yes" >&5
21761 echo "${ECHO_T}yes" >&6; }
21764 { echo "$as_me:$LINENO: checking GTHREAD_CFLAGS" >&5
21765 echo $ECHO_N "checking GTHREAD_CFLAGS... $ECHO_C" >&6; }
21766 GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0""`
21767 { echo "$as_me:$LINENO: result: $GTHREAD_CFLAGS" >&5
21768 echo "${ECHO_T}$GTHREAD_CFLAGS" >&6; }
21770 { echo "$as_me:$LINENO: checking GTHREAD_LIBS" >&5
21771 echo $ECHO_N "checking GTHREAD_LIBS... $ECHO_C" >&6; }
21772 GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0""`
21773 { echo "$as_me:$LINENO: result: $GTHREAD_LIBS" >&5
21774 echo "${ECHO_T}$GTHREAD_LIBS" >&6; }
21778 ## If we have a custom action on failure, don't print errors, but
21779 ## do set a variable so people can do so.
21780 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gthread-2.0""`
21787 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21788 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21792 if test $succeeded = yes; then
21796 cat >>confdefs.h <<\_ACEOF
21797 #define HAVE_GTHREAD
21806 # if we get here then --with-gthread was not called with 'yes','no' or 'auto'
21807 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&5
21808 echo "$as_me: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&2;}
21812 # if no gtk+ was detected, looking for gthread does not make any sense
21820 if test x"$have_gtk" = "xyes"; then
21822 BUILD_GTK_FALSE='#'
21830 ######################################################################
21831 # HighGUI dependencies for video I/O
21833 # if QuickTime is present, it will override everything else,
21834 # (unless '--without-quicktime' was given)
21835 if test x"$with_quicktime" = "xyes"; then
21837 # check other ./configure flags
21838 if test x"$with_ffmpeg" = "xyes"; then
21839 { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-ffmpeg at the same time" >&5
21840 echo "$as_me: error: You cannot specify --with-quicktime and --with-ffmpeg at the same time" >&2;}
21841 { (exit 1); exit 1; }; }
21843 if test x"$with_xine" = "xyes"; then
21844 { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-xine at the same time" >&5
21845 echo "$as_me: error: You cannot specify --with-quicktime and --with-xine at the same time" >&2;}
21846 { (exit 1); exit 1; }; }
21848 if test x"$with_1394libs" = "xyes"; then
21849 { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-1394libs at the same time" >&5
21850 echo "$as_me: error: You cannot specify --with-quicktime and --with-1394libs at the same time" >&2;}
21851 { (exit 1); exit 1; }; }
21853 if test x"$with_v4l" = "xyes"; then
21854 { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-v4l at the same time" >&5
21855 echo "$as_me: error: You cannot specify --with-quicktime and --with-v4l at the same time" >&2;}
21856 { (exit 1); exit 1; }; }
21859 # header presence and usability seem to be enough
21860 if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
21861 { echo "$as_me:$LINENO: checking for QuickTime/QuickTime.h" >&5
21862 echo $ECHO_N "checking for QuickTime/QuickTime.h... $ECHO_C" >&6; }
21863 if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
21864 echo $ECHO_N "(cached) $ECHO_C" >&6
21866 { echo "$as_me:$LINENO: result: $ac_cv_header_QuickTime_QuickTime_h" >&5
21867 echo "${ECHO_T}$ac_cv_header_QuickTime_QuickTime_h" >&6; }
21869 # Is the header compilable?
21870 { echo "$as_me:$LINENO: checking QuickTime/QuickTime.h usability" >&5
21871 echo $ECHO_N "checking QuickTime/QuickTime.h usability... $ECHO_C" >&6; }
21872 cat >conftest.$ac_ext <<_ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21878 $ac_includes_default
21879 #include <QuickTime/QuickTime.h>
21881 rm -f conftest.$ac_objext
21882 if { (ac_try="$ac_compile"
21883 case "(($ac_try" in
21884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885 *) ac_try_echo=$ac_try;;
21887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888 (eval "$ac_compile") 2>conftest.er1
21890 grep -v '^ *+' conftest.er1 >conftest.err
21892 cat conftest.err >&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } && {
21895 test -z "$ac_c_werror_flag" ||
21896 test ! -s conftest.err
21897 } && test -s conftest.$ac_objext; then
21898 ac_header_compiler=yes
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 ac_header_compiler=no
21906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21908 echo "${ECHO_T}$ac_header_compiler" >&6; }
21910 # Is the header present?
21911 { echo "$as_me:$LINENO: checking QuickTime/QuickTime.h presence" >&5
21912 echo $ECHO_N "checking QuickTime/QuickTime.h presence... $ECHO_C" >&6; }
21913 cat >conftest.$ac_ext <<_ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21919 #include <QuickTime/QuickTime.h>
21921 if { (ac_try="$ac_cpp conftest.$ac_ext"
21922 case "(($ac_try" in
21923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924 *) ac_try_echo=$ac_try;;
21926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21929 grep -v '^ *+' conftest.er1 >conftest.err
21931 cat conftest.err >&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); } >/dev/null && {
21934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21935 test ! -s conftest.err
21937 ac_header_preproc=yes
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21942 ac_header_preproc=no
21945 rm -f conftest.err conftest.$ac_ext
21946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21947 echo "${ECHO_T}$ac_header_preproc" >&6; }
21949 # So? What about this header?
21950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21952 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: accepted by the compiler, rejected by the preprocessor!" >&5
21953 echo "$as_me: WARNING: QuickTime/QuickTime.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21954 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: proceeding with the compiler's result" >&5
21955 echo "$as_me: WARNING: QuickTime/QuickTime.h: proceeding with the compiler's result" >&2;}
21956 ac_header_preproc=yes
21959 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: present but cannot be compiled" >&5
21960 echo "$as_me: WARNING: QuickTime/QuickTime.h: present but cannot be compiled" >&2;}
21961 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: check for missing prerequisite headers?" >&5
21962 echo "$as_me: WARNING: QuickTime/QuickTime.h: check for missing prerequisite headers?" >&2;}
21963 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: see the Autoconf documentation" >&5
21964 echo "$as_me: WARNING: QuickTime/QuickTime.h: see the Autoconf documentation" >&2;}
21965 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: section \"Present But Cannot Be Compiled\"" >&5
21966 echo "$as_me: WARNING: QuickTime/QuickTime.h: section \"Present But Cannot Be Compiled\"" >&2;}
21967 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: proceeding with the preprocessor's result" >&5
21968 echo "$as_me: WARNING: QuickTime/QuickTime.h: proceeding with the preprocessor's result" >&2;}
21969 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: in the future, the compiler will take precedence" >&5
21970 echo "$as_me: WARNING: QuickTime/QuickTime.h: in the future, the compiler will take precedence" >&2;}
21972 ## -------------------------------------------------------- ##
21973 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21974 ## -------------------------------------------------------- ##
21976 ) | sed "s/^/$as_me: WARNING: /" >&2
21979 { echo "$as_me:$LINENO: checking for QuickTime/QuickTime.h" >&5
21980 echo $ECHO_N "checking for QuickTime/QuickTime.h... $ECHO_C" >&6; }
21981 if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
21982 echo $ECHO_N "(cached) $ECHO_C" >&6
21984 ac_cv_header_QuickTime_QuickTime_h=$ac_header_preproc
21986 { echo "$as_me:$LINENO: result: $ac_cv_header_QuickTime_QuickTime_h" >&5
21987 echo "${ECHO_T}$ac_cv_header_QuickTime_QuickTime_h" >&6; }
21990 if test $ac_cv_header_QuickTime_QuickTime_h = yes; then
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_QUICKTIME
22005 # specify quicktime libraries
22006 if test x"$have_quicktime" = "xyes"; then
22007 QUICKTIME_LIBS="-Xlinker -framework -Xlinker QuickTime -Xlinker -framework -Xlinker QuartzCore"
22009 # don't check alternatives if quicktime was found
22010 if test x"$with_ffmpeg" = "xauto"; then
22013 if test x"$with_xine" = "xauto"; then
22016 if test x"$with_1394libs" = "xauto"; then
22019 if test x"$with_v4l" = "xauto"; then
22024 # check if ./configure arguments are valid
22026 if test ! x"$with_quicktime" = "xno"; then
22027 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&5
22028 echo "$as_me: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&2;}
22033 if test x"$have_quicktime" = "xyes"; then
22034 BUILD_QUICKTIME_TRUE=
22035 BUILD_QUICKTIME_FALSE='#'
22037 BUILD_QUICKTIME_TRUE='#'
22038 BUILD_QUICKTIME_FALSE=
22042 # GStreamer seems to be a nice solution for both reading and writing
22043 # and even supports some cameras
22044 GSTREAMER_CFLAGS=""
22046 if test x"$with_gstreamer" = "xno"; then
22050 if test x"$with_ffmpeg" = "xyes"; then
22051 { { echo "$as_me:$LINENO: error: You cannot specify --with-gstreamer and --with-ffmpeg at the same time" >&5
22052 echo "$as_me: error: You cannot specify --with-gstreamer and --with-ffmpeg at the same time" >&2;}
22053 { (exit 1); exit 1; }; }
22056 # check if ./configure arguments are valid
22057 if test x"$with_gstreamer" = "xauto"; then
22060 if test x"$with_gstreamer" = "xyes"; then
22062 # pkg-config is needed for GTK+
22063 # Extract the first word of "pkg-config", so it can be a program name with args.
22064 set dummy pkg-config; ac_word=$2
22065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22067 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22068 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 case $PKG_CONFIG in
22072 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22076 for as_dir in $PATH
22079 test -z "$as_dir" && as_dir=.
22080 for ac_exec_ext in '' $ac_executable_extensions; do
22081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22082 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22090 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22094 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22095 if test -n "$PKG_CONFIG"; then
22096 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22097 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22099 { echo "$as_me:$LINENO: result: no" >&5
22100 echo "${ECHO_T}no" >&6; }
22104 if test x"$PKG_CONFIG" == "xno"; then
22105 { { echo "$as_me:$LINENO: error: You have to install pkg-config to compile OpenCV with GStreamer" >&5
22106 echo "$as_me: error: You have to install pkg-config to compile OpenCV with GStreamer" >&2;}
22107 { (exit 1); exit 1; }; }
22113 if test -z "$PKG_CONFIG"; then
22114 # Extract the first word of "pkg-config", so it can be a program name with args.
22115 set dummy pkg-config; ac_word=$2
22116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22119 echo $ECHO_N "(cached) $ECHO_C" >&6
22121 case $PKG_CONFIG in
22123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22127 for as_dir in $PATH
22130 test -z "$as_dir" && as_dir=.
22131 for ac_exec_ext in '' $ac_executable_extensions; do
22132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22141 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22145 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22146 if test -n "$PKG_CONFIG"; then
22147 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22148 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22150 { echo "$as_me:$LINENO: result: no" >&5
22151 echo "${ECHO_T}no" >&6; }
22157 if test "$PKG_CONFIG" = "no" ; then
22158 echo "*** The pkg-config script could not be found. Make sure it is"
22159 echo "*** in your path, or set the PKG_CONFIG environment variable"
22160 echo "*** to the full path to pkg-config."
22161 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22163 PKG_CONFIG_MIN_VERSION=0.9.0
22164 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22165 { echo "$as_me:$LINENO: checking for \"gstreamer-0.10\"" >&5
22166 echo $ECHO_N "checking for \"gstreamer-0.10\"... $ECHO_C" >&6; }
22168 if $PKG_CONFIG --exists ""gstreamer-0.10"" ; then
22169 { echo "$as_me:$LINENO: result: yes" >&5
22170 echo "${ECHO_T}yes" >&6; }
22173 { echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
22174 echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6; }
22175 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags ""gstreamer-0.10""`
22176 { echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
22177 echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6; }
22179 { echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
22180 echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6; }
22181 GSTREAMER_LIBS=`$PKG_CONFIG --libs ""gstreamer-0.10""`
22182 { echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
22183 echo "${ECHO_T}$GSTREAMER_LIBS" >&6; }
22185 GSTREAMER_CFLAGS=""
22187 ## If we have a custom action on failure, don't print errors, but
22188 ## do set a variable so people can do so.
22189 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gstreamer-0.10""`
22196 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22197 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22201 if test $succeeded = yes; then
22205 cat >>confdefs.h <<\_ACEOF
22206 #define HAVE_GSTREAMER
22215 if test x"$have_gstreamer" = "xyes"; then
22216 GSTREAMER_LIBS="$GSTREAMER_LIBS -lgstbase-0.10"
22220 # if we get here then --with-gstreamer was not called with 'yes','no' or 'auto'
22221 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-gstreamer, continuing assuming 'no'" >&5
22222 echo "$as_me: WARNING: unexpected arguments for option --with-gstreamer, continuing assuming 'no'" >&2;}
22228 if test x"$have_gstreamer" = "xyes"; then
22229 BUILD_GSTREAMER_TRUE=
22230 BUILD_GSTREAMER_FALSE='#'
22232 BUILD_GSTREAMER_TRUE='#'
22233 BUILD_GSTREAMER_FALSE=
22237 # prefer XINE over FFMPEG for video reading because it is quick, has a cleaner API
22238 # and allows for easy seeking with some formats
22239 if test x"$with_xine" = "xno"; then
22244 # check if ./configure arguments are valid
22245 if test x"$with_xine" = "xauto"; then
22248 if test x"$with_xine" = "xyes"; then
22249 if test "${ac_cv_header_xine_h+set}" = set; then
22250 { echo "$as_me:$LINENO: checking for xine.h" >&5
22251 echo $ECHO_N "checking for xine.h... $ECHO_C" >&6; }
22252 if test "${ac_cv_header_xine_h+set}" = set; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22255 { echo "$as_me:$LINENO: result: $ac_cv_header_xine_h" >&5
22256 echo "${ECHO_T}$ac_cv_header_xine_h" >&6; }
22258 # Is the header compilable?
22259 { echo "$as_me:$LINENO: checking xine.h usability" >&5
22260 echo $ECHO_N "checking xine.h usability... $ECHO_C" >&6; }
22261 cat >conftest.$ac_ext <<_ACEOF
22264 cat confdefs.h >>conftest.$ac_ext
22265 cat >>conftest.$ac_ext <<_ACEOF
22266 /* end confdefs.h. */
22267 $ac_includes_default
22270 rm -f conftest.$ac_objext
22271 if { (ac_try="$ac_compile"
22272 case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_compile") 2>conftest.er1
22279 grep -v '^ *+' conftest.er1 >conftest.err
22281 cat conftest.err >&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest.$ac_objext; then
22287 ac_header_compiler=yes
22289 echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22292 ac_header_compiler=no
22295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22297 echo "${ECHO_T}$ac_header_compiler" >&6; }
22299 # Is the header present?
22300 { echo "$as_me:$LINENO: checking xine.h presence" >&5
22301 echo $ECHO_N "checking xine.h presence... $ECHO_C" >&6; }
22302 cat >conftest.$ac_ext <<_ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22310 if { (ac_try="$ac_cpp conftest.$ac_ext"
22311 case "(($ac_try" in
22312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313 *) ac_try_echo=$ac_try;;
22315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22318 grep -v '^ *+' conftest.er1 >conftest.err
22320 cat conftest.err >&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } >/dev/null && {
22323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22324 test ! -s conftest.err
22326 ac_header_preproc=yes
22328 echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22331 ac_header_preproc=no
22334 rm -f conftest.err conftest.$ac_ext
22335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22336 echo "${ECHO_T}$ac_header_preproc" >&6; }
22338 # So? What about this header?
22339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22341 { echo "$as_me:$LINENO: WARNING: xine.h: accepted by the compiler, rejected by the preprocessor!" >&5
22342 echo "$as_me: WARNING: xine.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22343 { echo "$as_me:$LINENO: WARNING: xine.h: proceeding with the compiler's result" >&5
22344 echo "$as_me: WARNING: xine.h: proceeding with the compiler's result" >&2;}
22345 ac_header_preproc=yes
22348 { echo "$as_me:$LINENO: WARNING: xine.h: present but cannot be compiled" >&5
22349 echo "$as_me: WARNING: xine.h: present but cannot be compiled" >&2;}
22350 { echo "$as_me:$LINENO: WARNING: xine.h: check for missing prerequisite headers?" >&5
22351 echo "$as_me: WARNING: xine.h: check for missing prerequisite headers?" >&2;}
22352 { echo "$as_me:$LINENO: WARNING: xine.h: see the Autoconf documentation" >&5
22353 echo "$as_me: WARNING: xine.h: see the Autoconf documentation" >&2;}
22354 { echo "$as_me:$LINENO: WARNING: xine.h: section \"Present But Cannot Be Compiled\"" >&5
22355 echo "$as_me: WARNING: xine.h: section \"Present But Cannot Be Compiled\"" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: xine.h: proceeding with the preprocessor's result" >&5
22357 echo "$as_me: WARNING: xine.h: proceeding with the preprocessor's result" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: xine.h: in the future, the compiler will take precedence" >&5
22359 echo "$as_me: WARNING: xine.h: in the future, the compiler will take precedence" >&2;}
22361 ## -------------------------------------------------------- ##
22362 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22363 ## -------------------------------------------------------- ##
22365 ) | sed "s/^/$as_me: WARNING: /" >&2
22368 { echo "$as_me:$LINENO: checking for xine.h" >&5
22369 echo $ECHO_N "checking for xine.h... $ECHO_C" >&6; }
22370 if test "${ac_cv_header_xine_h+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 ac_cv_header_xine_h=$ac_header_preproc
22375 { echo "$as_me:$LINENO: result: $ac_cv_header_xine_h" >&5
22376 echo "${ECHO_T}$ac_cv_header_xine_h" >&6; }
22379 if test $ac_cv_header_xine_h = yes; then
22380 { echo "$as_me:$LINENO: checking for xine_init in -lxine" >&5
22381 echo $ECHO_N "checking for xine_init in -lxine... $ECHO_C" >&6; }
22382 if test "${ac_cv_lib_xine_xine_init+set}" = set; then
22383 echo $ECHO_N "(cached) $ECHO_C" >&6
22385 ac_check_lib_save_LIBS=$LIBS
22386 LIBS="-lxine $LIBS"
22387 cat >conftest.$ac_ext <<_ACEOF
22390 cat confdefs.h >>conftest.$ac_ext
22391 cat >>conftest.$ac_ext <<_ACEOF
22392 /* end confdefs.h. */
22394 /* Override any GCC internal prototype to avoid an error.
22395 Use char because int might match the return type of a GCC
22396 builtin and then its argument prototype would still apply. */
22404 return xine_init ();
22409 rm -f conftest.$ac_objext conftest$ac_exeext
22410 if { (ac_try="$ac_link"
22411 case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_link") 2>conftest.er1
22418 grep -v '^ *+' conftest.er1 >conftest.err
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } && {
22423 test -z "$ac_c_werror_flag" ||
22424 test ! -s conftest.err
22425 } && test -s conftest$ac_exeext &&
22426 $as_test_x conftest$ac_exeext; then
22427 ac_cv_lib_xine_xine_init=yes
22429 echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22432 ac_cv_lib_xine_xine_init=no
22435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22436 conftest$ac_exeext conftest.$ac_ext
22437 LIBS=$ac_check_lib_save_LIBS
22439 { echo "$as_me:$LINENO: result: $ac_cv_lib_xine_xine_init" >&5
22440 echo "${ECHO_T}$ac_cv_lib_xine_xine_init" >&6; }
22441 if test $ac_cv_lib_xine_xine_init = yes; then
22445 cat >>confdefs.h <<\_ACEOF
22461 # if we get here then --with-xine was not called with 'yes','no' or 'auto'
22462 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&5
22463 echo "$as_me: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&2;}
22468 if test x"$have_xine" = "xyes"; then
22470 BUILD_XINE_FALSE='#'
22472 BUILD_XINE_TRUE='#'
22477 # unfortunately, xine does not feature video writing,
22478 # so we have to resort to FFMPEG here
22479 if test x"$with_ffmpeg" = "xno"; then
22484 # check if ./configure arguments are valid
22485 if test x"$with_ffmpeg" = "xauto"; then
22488 if test x"$with_ffmpeg" = "xyes"; then
22489 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22490 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
22491 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
22492 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22495 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
22496 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
22498 # Is the header compilable?
22499 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
22500 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
22501 cat >conftest.$ac_ext <<_ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 $ac_includes_default
22508 #include <ffmpeg/avcodec.h>
22510 rm -f conftest.$ac_objext
22511 if { (ac_try="$ac_compile"
22512 case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517 (eval "$ac_compile") 2>conftest.er1
22519 grep -v '^ *+' conftest.er1 >conftest.err
22521 cat conftest.err >&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } && {
22524 test -z "$ac_c_werror_flag" ||
22525 test ! -s conftest.err
22526 } && test -s conftest.$ac_objext; then
22527 ac_header_compiler=yes
22529 echo "$as_me: failed program was:" >&5
22530 sed 's/^/| /' conftest.$ac_ext >&5
22532 ac_header_compiler=no
22535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22537 echo "${ECHO_T}$ac_header_compiler" >&6; }
22539 # Is the header present?
22540 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
22541 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
22542 cat >conftest.$ac_ext <<_ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 #include <ffmpeg/avcodec.h>
22550 if { (ac_try="$ac_cpp conftest.$ac_ext"
22551 case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22558 grep -v '^ *+' conftest.er1 >conftest.err
22560 cat conftest.err >&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } >/dev/null && {
22563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22564 test ! -s conftest.err
22566 ac_header_preproc=yes
22568 echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22571 ac_header_preproc=no
22574 rm -f conftest.err conftest.$ac_ext
22575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22576 echo "${ECHO_T}$ac_header_preproc" >&6; }
22578 # So? What about this header?
22579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22581 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
22582 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22583 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
22584 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
22585 ac_header_preproc=yes
22588 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
22589 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
22590 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
22591 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
22592 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
22593 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
22594 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
22595 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
22596 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
22597 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
22598 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
22599 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
22601 ## -------------------------------------------------------- ##
22602 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22603 ## -------------------------------------------------------- ##
22605 ) | sed "s/^/$as_me: WARNING: /" >&2
22608 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
22609 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
22610 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22611 echo $ECHO_N "(cached) $ECHO_C" >&6
22613 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
22615 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
22616 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
22619 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
22620 { echo "$as_me:$LINENO: checking for library containing avcodec_decode_video" >&5
22621 echo $ECHO_N "checking for library containing avcodec_decode_video... $ECHO_C" >&6; }
22622 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22625 ac_func_search_save_LIBS=$LIBS
22626 cat >conftest.$ac_ext <<_ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h. */
22633 /* Override any GCC internal prototype to avoid an error.
22634 Use char because int might match the return type of a GCC
22635 builtin and then its argument prototype would still apply. */
22639 char avcodec_decode_video ();
22643 return avcodec_decode_video ();
22648 for ac_lib in '' avcodec_pic avcodec; do
22649 if test -z "$ac_lib"; then
22650 ac_res="none required"
22653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22655 rm -f conftest.$ac_objext conftest$ac_exeext
22656 if { (ac_try="$ac_link"
22657 case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662 (eval "$ac_link") 2>conftest.er1
22664 grep -v '^ *+' conftest.er1 >conftest.err
22666 cat conftest.err >&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); } && {
22669 test -z "$ac_c_werror_flag" ||
22670 test ! -s conftest.err
22671 } && test -s conftest$ac_exeext &&
22672 $as_test_x conftest$ac_exeext; then
22673 ac_cv_search_avcodec_decode_video=$ac_res
22675 echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22683 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
22687 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
22690 ac_cv_search_avcodec_decode_video=no
22692 rm conftest.$ac_ext
22693 LIBS=$ac_func_search_save_LIBS
22695 { echo "$as_me:$LINENO: result: $ac_cv_search_avcodec_decode_video" >&5
22696 echo "${ECHO_T}$ac_cv_search_avcodec_decode_video" >&6; }
22697 ac_res=$ac_cv_search_avcodec_decode_video
22698 if test "$ac_res" != no; then
22699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22701 { echo "$as_me:$LINENO: checking for library containing av_open_input_file" >&5
22702 echo $ECHO_N "checking for library containing av_open_input_file... $ECHO_C" >&6; }
22703 if test "${ac_cv_search_av_open_input_file+set}" = set; then
22704 echo $ECHO_N "(cached) $ECHO_C" >&6
22706 ac_func_search_save_LIBS=$LIBS
22707 cat >conftest.$ac_ext <<_ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22714 /* Override any GCC internal prototype to avoid an error.
22715 Use char because int might match the return type of a GCC
22716 builtin and then its argument prototype would still apply. */
22720 char av_open_input_file ();
22724 return av_open_input_file ();
22729 for ac_lib in '' avformat_pic avformat; do
22730 if test -z "$ac_lib"; then
22731 ac_res="none required"
22734 LIBS="-l$ac_lib -lavcodec $ac_func_search_save_LIBS"
22736 rm -f conftest.$ac_objext conftest$ac_exeext
22737 if { (ac_try="$ac_link"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743 (eval "$ac_link") 2>conftest.er1
22745 grep -v '^ *+' conftest.er1 >conftest.err
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } && {
22750 test -z "$ac_c_werror_flag" ||
22751 test ! -s conftest.err
22752 } && test -s conftest$ac_exeext &&
22753 $as_test_x conftest$ac_exeext; then
22754 ac_cv_search_av_open_input_file=$ac_res
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22764 if test "${ac_cv_search_av_open_input_file+set}" = set; then
22768 if test "${ac_cv_search_av_open_input_file+set}" = set; then
22771 ac_cv_search_av_open_input_file=no
22773 rm conftest.$ac_ext
22774 LIBS=$ac_func_search_save_LIBS
22776 { echo "$as_me:$LINENO: result: $ac_cv_search_av_open_input_file" >&5
22777 echo "${ECHO_T}$ac_cv_search_av_open_input_file" >&6; }
22778 ac_res=$ac_cv_search_av_open_input_file
22779 if test "$ac_res" != no; then
22780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22784 cat >>confdefs.h <<\_ACEOF
22785 #define HAVE_FFMPEG
22788 FFMPEGLIBS="-lavcodec -lavformat"
22805 # if we get here then --with-ffmpeg was not called with 'yes','no' or 'auto'
22806 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&5
22807 echo "$as_me: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&2;}
22812 if test x"$have_ffmpeg" = "xyes"; then
22814 BUILD_FFMPEG_FALSE='#'
22816 BUILD_FFMPEG_TRUE='#'
22817 BUILD_FFMPEG_FALSE=
22821 # IEEE1394 / FireWire video video i/o with libdc1394, libraw1394
22822 # (can be managed by QuickTime as well)
22823 if test x"$with_1394libs" = "xno"; then
22829 # check if ./configure arguments are valid
22830 if test x"$with_1394libs" = "xauto"; then
22833 if test x"$with_1394libs" = "xyes"; then
22839 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
22840 { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
22841 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
22842 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
22846 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
22848 # Is the header compilable?
22849 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
22850 echo $ECHO_N "checking libraw1394/raw1394.h usability... $ECHO_C" >&6; }
22851 cat >conftest.$ac_ext <<_ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22857 $ac_includes_default
22858 #include <libraw1394/raw1394.h>
22860 rm -f conftest.$ac_objext
22861 if { (ac_try="$ac_compile"
22862 case "(($ac_try" in
22863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864 *) ac_try_echo=$ac_try;;
22866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22867 (eval "$ac_compile") 2>conftest.er1
22869 grep -v '^ *+' conftest.er1 >conftest.err
22871 cat conftest.err >&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } && {
22874 test -z "$ac_c_werror_flag" ||
22875 test ! -s conftest.err
22876 } && test -s conftest.$ac_objext; then
22877 ac_header_compiler=yes
22879 echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22882 ac_header_compiler=no
22885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22887 echo "${ECHO_T}$ac_header_compiler" >&6; }
22889 # Is the header present?
22890 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
22891 echo $ECHO_N "checking libraw1394/raw1394.h presence... $ECHO_C" >&6; }
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 #include <libraw1394/raw1394.h>
22900 if { (ac_try="$ac_cpp conftest.$ac_ext"
22901 case "(($ac_try" in
22902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22903 *) ac_try_echo=$ac_try;;
22905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22908 grep -v '^ *+' conftest.er1 >conftest.err
22910 cat conftest.err >&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } >/dev/null && {
22913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22914 test ! -s conftest.err
22916 ac_header_preproc=yes
22918 echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22921 ac_header_preproc=no
22924 rm -f conftest.err conftest.$ac_ext
22925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22926 echo "${ECHO_T}$ac_header_preproc" >&6; }
22928 # So? What about this header?
22929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22931 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
22932 echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22933 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
22934 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
22935 ac_header_preproc=yes
22938 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
22939 echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
22940 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&5
22941 echo "$as_me: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&2;}
22942 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
22943 echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
22944 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&5
22945 echo "$as_me: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
22946 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
22947 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
22948 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
22949 echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
22951 ## -------------------------------------------------------- ##
22952 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22953 ## -------------------------------------------------------- ##
22955 ) | sed "s/^/$as_me: WARNING: /" >&2
22958 { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
22959 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
22960 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
22961 echo $ECHO_N "(cached) $ECHO_C" >&6
22963 ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
22965 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
22966 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
22969 if test $ac_cv_header_libraw1394_raw1394_h = yes; then
22970 { echo "$as_me:$LINENO: checking for raw1394_new_handle in -lraw1394" >&5
22971 echo $ECHO_N "checking for raw1394_new_handle in -lraw1394... $ECHO_C" >&6; }
22972 if test "${ac_cv_lib_raw1394_raw1394_new_handle+set}" = set; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22975 ac_check_lib_save_LIBS=$LIBS
22976 LIBS="-lraw1394 $LIBS"
22977 cat >conftest.$ac_ext <<_ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22984 /* Override any GCC internal prototype to avoid an error.
22985 Use char because int might match the return type of a GCC
22986 builtin and then its argument prototype would still apply. */
22990 char raw1394_new_handle ();
22994 return raw1394_new_handle ();
22999 rm -f conftest.$ac_objext conftest$ac_exeext
23000 if { (ac_try="$ac_link"
23001 case "(($ac_try" in
23002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23003 *) ac_try_echo=$ac_try;;
23005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23006 (eval "$ac_link") 2>conftest.er1
23008 grep -v '^ *+' conftest.er1 >conftest.err
23010 cat conftest.err >&5
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } && {
23013 test -z "$ac_c_werror_flag" ||
23014 test ! -s conftest.err
23015 } && test -s conftest$ac_exeext &&
23016 $as_test_x conftest$ac_exeext; then
23017 ac_cv_lib_raw1394_raw1394_new_handle=yes
23019 echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23022 ac_cv_lib_raw1394_raw1394_new_handle=no
23025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23026 conftest$ac_exeext conftest.$ac_ext
23027 LIBS=$ac_check_lib_save_LIBS
23029 { echo "$as_me:$LINENO: result: $ac_cv_lib_raw1394_raw1394_new_handle" >&5
23030 echo "${ECHO_T}$ac_cv_lib_raw1394_raw1394_new_handle" >&6; }
23031 if test $ac_cv_lib_raw1394_raw1394_new_handle = yes; then
23034 LIBS="-lm -lraw1394 $LIBS"
23042 if test x"$have_raw1394" = "xyes"; then
23043 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23044 { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
23045 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
23046 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23049 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
23050 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
23052 # Is the header compilable?
23053 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h usability" >&5
23054 echo $ECHO_N "checking libdc1394/dc1394_control.h usability... $ECHO_C" >&6; }
23055 cat >conftest.$ac_ext <<_ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 $ac_includes_default
23062 #include <libdc1394/dc1394_control.h>
23064 rm -f conftest.$ac_objext
23065 if { (ac_try="$ac_compile"
23066 case "(($ac_try" in
23067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071 (eval "$ac_compile") 2>conftest.er1
23073 grep -v '^ *+' conftest.er1 >conftest.err
23075 cat conftest.err >&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } && {
23078 test -z "$ac_c_werror_flag" ||
23079 test ! -s conftest.err
23080 } && test -s conftest.$ac_objext; then
23081 ac_header_compiler=yes
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_header_compiler=no
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23091 echo "${ECHO_T}$ac_header_compiler" >&6; }
23093 # Is the header present?
23094 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h presence" >&5
23095 echo $ECHO_N "checking libdc1394/dc1394_control.h presence... $ECHO_C" >&6; }
23096 cat >conftest.$ac_ext <<_ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h. */
23102 #include <libdc1394/dc1394_control.h>
23104 if { (ac_try="$ac_cpp conftest.$ac_ext"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23112 grep -v '^ *+' conftest.er1 >conftest.err
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } >/dev/null && {
23117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23118 test ! -s conftest.err
23120 ac_header_preproc=yes
23122 echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23125 ac_header_preproc=no
23128 rm -f conftest.err conftest.$ac_ext
23129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23130 echo "${ECHO_T}$ac_header_preproc" >&6; }
23132 # So? What about this header?
23133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23135 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&5
23136 echo "$as_me: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23137 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&5
23138 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&2;}
23139 ac_header_preproc=yes
23142 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&5
23143 echo "$as_me: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&2;}
23144 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&5
23145 echo "$as_me: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&2;}
23146 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&5
23147 echo "$as_me: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&2;}
23148 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&5
23149 echo "$as_me: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&2;}
23150 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&5
23151 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&2;}
23152 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&5
23153 echo "$as_me: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&2;}
23155 ## -------------------------------------------------------- ##
23156 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23157 ## -------------------------------------------------------- ##
23159 ) | sed "s/^/$as_me: WARNING: /" >&2
23162 { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
23163 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
23164 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23165 echo $ECHO_N "(cached) $ECHO_C" >&6
23167 ac_cv_header_libdc1394_dc1394_control_h=$ac_header_preproc
23169 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
23170 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
23173 if test $ac_cv_header_libdc1394_dc1394_control_h = yes; then
23174 { echo "$as_me:$LINENO: checking for dc1394_camera_on in -ldc1394_control" >&5
23175 echo $ECHO_N "checking for dc1394_camera_on in -ldc1394_control... $ECHO_C" >&6; }
23176 if test "${ac_cv_lib_dc1394_control_dc1394_camera_on+set}" = set; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 ac_check_lib_save_LIBS=$LIBS
23180 LIBS="-ldc1394_control $LIBS"
23181 cat >conftest.$ac_ext <<_ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23188 /* Override any GCC internal prototype to avoid an error.
23189 Use char because int might match the return type of a GCC
23190 builtin and then its argument prototype would still apply. */
23194 char dc1394_camera_on ();
23198 return dc1394_camera_on ();
23203 rm -f conftest.$ac_objext conftest$ac_exeext
23204 if { (ac_try="$ac_link"
23205 case "(($ac_try" in
23206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207 *) ac_try_echo=$ac_try;;
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210 (eval "$ac_link") 2>conftest.er1
23212 grep -v '^ *+' conftest.er1 >conftest.err
23214 cat conftest.err >&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } && {
23217 test -z "$ac_c_werror_flag" ||
23218 test ! -s conftest.err
23219 } && test -s conftest$ac_exeext &&
23220 $as_test_x conftest$ac_exeext; then
23221 ac_cv_lib_dc1394_control_dc1394_camera_on=yes
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 ac_cv_lib_dc1394_control_dc1394_camera_on=no
23229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23230 conftest$ac_exeext conftest.$ac_ext
23231 LIBS=$ac_check_lib_save_LIBS
23233 { echo "$as_me:$LINENO: result: $ac_cv_lib_dc1394_control_dc1394_camera_on" >&5
23234 echo "${ECHO_T}$ac_cv_lib_dc1394_control_dc1394_camera_on" >&6; }
23235 if test $ac_cv_lib_dc1394_control_dc1394_camera_on = yes; then
23239 cat >>confdefs.h <<\_ACEOF
23240 #define HAVE_DC1394
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 #include <libdc1394/dc1394_control.h>
23252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23253 $EGREP "do_extra_buffering" >/dev/null 2>&1; then
23255 cat >>confdefs.h <<\_ACEOF
23256 #define HAVE_DC1394_095
23262 IEEE1394LIBS="-lm -lraw1394 -ldc1394_control"
23273 # if we get here then --with-1394libs was not called with 'yes','no' or 'auto'
23274 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&5
23275 echo "$as_me: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&2;}
23280 if test x"$have_dc1394" = "xyes"; then
23282 BUILD_DC1394_FALSE='#'
23284 BUILD_DC1394_TRUE='#'
23285 BUILD_DC1394_FALSE=
23289 # Video for Linux (V4L)
23290 # we support version 1 and 2 currently
23291 if test x"$with_v4l" = "xno"; then
23296 # check if ./configure arguments are valid
23297 if test x"$with_v4l" = "xauto"; then
23300 if test x"$with_v4l" = "xyes"; then
23301 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23302 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
23303 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
23304 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
23308 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
23310 # Is the header compilable?
23311 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
23312 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
23313 cat >conftest.$ac_ext <<_ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23319 $ac_includes_default
23320 #include <linux/videodev.h>
23322 rm -f conftest.$ac_objext
23323 if { (ac_try="$ac_compile"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_compile") 2>conftest.er1
23331 grep -v '^ *+' conftest.er1 >conftest.err
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest.$ac_objext; then
23339 ac_header_compiler=yes
23341 echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23344 ac_header_compiler=no
23347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23349 echo "${ECHO_T}$ac_header_compiler" >&6; }
23351 # Is the header present?
23352 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
23353 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
23354 cat >conftest.$ac_ext <<_ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h. */
23360 #include <linux/videodev.h>
23362 if { (ac_try="$ac_cpp conftest.$ac_ext"
23363 case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23370 grep -v '^ *+' conftest.er1 >conftest.err
23372 cat conftest.err >&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } >/dev/null && {
23375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23376 test ! -s conftest.err
23378 ac_header_preproc=yes
23380 echo "$as_me: failed program was:" >&5
23381 sed 's/^/| /' conftest.$ac_ext >&5
23383 ac_header_preproc=no
23386 rm -f conftest.err conftest.$ac_ext
23387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23388 echo "${ECHO_T}$ac_header_preproc" >&6; }
23390 # So? What about this header?
23391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23393 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
23394 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23395 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
23396 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
23397 ac_header_preproc=yes
23400 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
23401 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
23402 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
23403 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
23404 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
23405 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
23406 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
23407 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
23408 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
23409 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
23410 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
23411 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
23413 ## -------------------------------------------------------- ##
23414 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23415 ## -------------------------------------------------------- ##
23417 ) | sed "s/^/$as_me: WARNING: /" >&2
23420 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
23421 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
23422 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23425 ac_cv_header_linux_videodev_h=$ac_header_preproc
23427 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
23428 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
23431 if test $ac_cv_header_linux_videodev_h = yes; then
23434 cat >>confdefs.h <<\_ACEOF
23435 #define HAVE_CAMV4L
23449 { echo "$as_me:$LINENO: checking for linux/videodev2.h" >&5
23450 echo $ECHO_N "checking for linux/videodev2.h... $ECHO_C" >&6; }
23451 if test "${ac_cv_header_linux_videodev2_h+set}" = set; then
23452 echo $ECHO_N "(cached) $ECHO_C" >&6
23454 cat >conftest.$ac_ext <<_ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h. */
23461 #include <asm/types.h>
23462 #include <sys/time.h>
23465 #include <linux/videodev2.h>
23467 rm -f conftest.$ac_objext
23468 if { (ac_try="$ac_compile"
23469 case "(($ac_try" in
23470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471 *) ac_try_echo=$ac_try;;
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474 (eval "$ac_compile") 2>conftest.er1
23476 grep -v '^ *+' conftest.er1 >conftest.err
23478 cat conftest.err >&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } && {
23481 test -z "$ac_c_werror_flag" ||
23482 test ! -s conftest.err
23483 } && test -s conftest.$ac_objext; then
23484 ac_cv_header_linux_videodev2_h=yes
23486 echo "$as_me: failed program was:" >&5
23487 sed 's/^/| /' conftest.$ac_ext >&5
23489 ac_cv_header_linux_videodev2_h=no
23492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23494 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev2_h" >&5
23495 echo "${ECHO_T}$ac_cv_header_linux_videodev2_h" >&6; }
23496 if test $ac_cv_header_linux_videodev2_h = yes; then
23499 cat >>confdefs.h <<\_ACEOF
23500 #define HAVE_CAMV4L2
23512 # if we get here then --with-v4l was not called with 'yes','no' or 'auto'
23513 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&5
23514 echo "$as_me: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&2;}
23521 if test x"$have_v4l1or2" = "xyes"; then
23523 BUILD_V4L_FALSE='#'
23531 ######################################################################
23532 # HighGUI dependencies for image I/O
23540 if test x"$with_imageio" = "xauto"; then
23543 if test x"$with_imageio" = "xyes"; then
23544 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
23545 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
23546 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
23547 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
23548 echo $ECHO_N "(cached) $ECHO_C" >&6
23550 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
23551 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
23553 # Is the header compilable?
23554 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
23555 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
23556 cat >conftest.$ac_ext <<_ACEOF
23559 cat confdefs.h >>conftest.$ac_ext
23560 cat >>conftest.$ac_ext <<_ACEOF
23561 /* end confdefs.h. */
23562 $ac_includes_default
23563 #include <ApplicationServices/ApplicationServices.h>
23565 rm -f conftest.$ac_objext
23566 if { (ac_try="$ac_compile"
23567 case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23574 grep -v '^ *+' conftest.er1 >conftest.err
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } && {
23579 test -z "$ac_c_werror_flag" ||
23580 test ! -s conftest.err
23581 } && test -s conftest.$ac_objext; then
23582 ac_header_compiler=yes
23584 echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23587 ac_header_compiler=no
23590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23592 echo "${ECHO_T}$ac_header_compiler" >&6; }
23594 # Is the header present?
23595 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
23596 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
23597 cat >conftest.$ac_ext <<_ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h. */
23603 #include <ApplicationServices/ApplicationServices.h>
23605 if { (ac_try="$ac_cpp conftest.$ac_ext"
23606 case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23613 grep -v '^ *+' conftest.er1 >conftest.err
23615 cat conftest.err >&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } >/dev/null && {
23618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23619 test ! -s conftest.err
23621 ac_header_preproc=yes
23623 echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.$ac_ext >&5
23626 ac_header_preproc=no
23629 rm -f conftest.err conftest.$ac_ext
23630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23631 echo "${ECHO_T}$ac_header_preproc" >&6; }
23633 # So? What about this header?
23634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23636 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
23637 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23638 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
23639 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
23640 ac_header_preproc=yes
23643 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
23644 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
23645 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&5
23646 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&2;}
23647 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
23648 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
23649 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&5
23650 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&2;}
23651 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
23652 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
23653 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
23654 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
23656 ## -------------------------------------------------------- ##
23657 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23658 ## -------------------------------------------------------- ##
23660 ) | sed "s/^/$as_me: WARNING: /" >&2
23663 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
23664 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
23665 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
23666 echo $ECHO_N "(cached) $ECHO_C" >&6
23668 ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
23670 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
23671 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
23674 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
23678 cat >>confdefs.h <<\_ACEOF
23679 #define HAVE_IMAGEIO
23682 IMAGELIBS="$IMAGELIBS -framework ApplicationServices"
23683 LIBS="$LIBS -framework ApplicationServices"
23691 if test x"$have_imageio" = "xyes"; then
23692 BUILD_IMAGEIO_TRUE=
23693 BUILD_IMAGEIO_FALSE='#'
23695 BUILD_IMAGEIO_TRUE='#'
23696 BUILD_IMAGEIO_FALSE=
23706 # there are problems with dependencies of ImageIO to libtiff, etc.
23707 # that we avoid by not linking them ourselves
23708 if test x"$have_imageio" = "xno" ; then
23710 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23711 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23712 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
23713 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23714 echo $ECHO_N "(cached) $ECHO_C" >&6
23716 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23717 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
23719 # Is the header compilable?
23720 { echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
23721 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; }
23722 cat >conftest.$ac_ext <<_ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h. */
23728 $ac_includes_default
23729 #include <jpeglib.h>
23731 rm -f conftest.$ac_objext
23732 if { (ac_try="$ac_compile"
23733 case "(($ac_try" in
23734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23735 *) ac_try_echo=$ac_try;;
23737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23738 (eval "$ac_compile") 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } && {
23745 test -z "$ac_c_werror_flag" ||
23746 test ! -s conftest.err
23747 } && test -s conftest.$ac_objext; then
23748 ac_header_compiler=yes
23750 echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23753 ac_header_compiler=no
23756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23758 echo "${ECHO_T}$ac_header_compiler" >&6; }
23760 # Is the header present?
23761 { echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
23762 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; }
23763 cat >conftest.$ac_ext <<_ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 #include <jpeglib.h>
23771 if { (ac_try="$ac_cpp conftest.$ac_ext"
23772 case "(($ac_try" in
23773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774 *) ac_try_echo=$ac_try;;
23776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23779 grep -v '^ *+' conftest.er1 >conftest.err
23781 cat conftest.err >&5
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); } >/dev/null && {
23784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23785 test ! -s conftest.err
23787 ac_header_preproc=yes
23789 echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23792 ac_header_preproc=no
23795 rm -f conftest.err conftest.$ac_ext
23796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23797 echo "${ECHO_T}$ac_header_preproc" >&6; }
23799 # So? What about this header?
23800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23802 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23803 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23804 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
23805 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
23806 ac_header_preproc=yes
23809 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
23810 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
23811 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
23812 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
23813 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
23814 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
23815 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
23816 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
23817 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
23818 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
23819 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
23820 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
23822 ## -------------------------------------------------------- ##
23823 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23824 ## -------------------------------------------------------- ##
23826 ) | sed "s/^/$as_me: WARNING: /" >&2
23829 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23830 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
23831 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 ac_cv_header_jpeglib_h=$ac_header_preproc
23836 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23837 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
23840 if test $ac_cv_header_jpeglib_h = yes; then
23841 { echo "$as_me:$LINENO: checking for jpeg_destroy_decompress in -ljpeg" >&5
23842 echo $ECHO_N "checking for jpeg_destroy_decompress in -ljpeg... $ECHO_C" >&6; }
23843 if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
23846 ac_check_lib_save_LIBS=$LIBS
23847 LIBS="-ljpeg $LIBS"
23848 cat >conftest.$ac_ext <<_ACEOF
23851 cat confdefs.h >>conftest.$ac_ext
23852 cat >>conftest.$ac_ext <<_ACEOF
23853 /* end confdefs.h. */
23855 /* Override any GCC internal prototype to avoid an error.
23856 Use char because int might match the return type of a GCC
23857 builtin and then its argument prototype would still apply. */
23861 char jpeg_destroy_decompress ();
23865 return jpeg_destroy_decompress ();
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (ac_try="$ac_link"
23872 case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23877 (eval "$ac_link") 2>conftest.er1
23879 grep -v '^ *+' conftest.er1 >conftest.err
23881 cat conftest.err >&5
23882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); } && {
23884 test -z "$ac_c_werror_flag" ||
23885 test ! -s conftest.err
23886 } && test -s conftest$ac_exeext &&
23887 $as_test_x conftest$ac_exeext; then
23888 ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
23890 echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23893 ac_cv_lib_jpeg_jpeg_destroy_decompress=no
23896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23897 conftest$ac_exeext conftest.$ac_ext
23898 LIBS=$ac_check_lib_save_LIBS
23900 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
23901 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
23902 if test $ac_cv_lib_jpeg_jpeg_destroy_decompress = yes; then
23906 cat >>confdefs.h <<\_ACEOF
23910 IMAGELIBS="$IMAGELIBS -ljpeg"
23918 if test "${ac_cv_header_zlib_h+set}" = set; then
23919 { echo "$as_me:$LINENO: checking for zlib.h" >&5
23920 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
23921 if test "${ac_cv_header_zlib_h+set}" = set; then
23922 echo $ECHO_N "(cached) $ECHO_C" >&6
23924 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23925 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
23927 # Is the header compilable?
23928 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
23929 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
23930 cat >conftest.$ac_ext <<_ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h. */
23936 $ac_includes_default
23939 rm -f conftest.$ac_objext
23940 if { (ac_try="$ac_compile"
23941 case "(($ac_try" in
23942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23943 *) ac_try_echo=$ac_try;;
23945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23946 (eval "$ac_compile") 2>conftest.er1
23948 grep -v '^ *+' conftest.er1 >conftest.err
23950 cat conftest.err >&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } && {
23953 test -z "$ac_c_werror_flag" ||
23954 test ! -s conftest.err
23955 } && test -s conftest.$ac_objext; then
23956 ac_header_compiler=yes
23958 echo "$as_me: failed program was:" >&5
23959 sed 's/^/| /' conftest.$ac_ext >&5
23961 ac_header_compiler=no
23964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23966 echo "${ECHO_T}$ac_header_compiler" >&6; }
23968 # Is the header present?
23969 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
23970 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
23971 cat >conftest.$ac_ext <<_ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h. */
23979 if { (ac_try="$ac_cpp conftest.$ac_ext"
23980 case "(($ac_try" in
23981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982 *) ac_try_echo=$ac_try;;
23984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23987 grep -v '^ *+' conftest.er1 >conftest.err
23989 cat conftest.err >&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } >/dev/null && {
23992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23993 test ! -s conftest.err
23995 ac_header_preproc=yes
23997 echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
24000 ac_header_preproc=no
24003 rm -f conftest.err conftest.$ac_ext
24004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24005 echo "${ECHO_T}$ac_header_preproc" >&6; }
24007 # So? What about this header?
24008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24010 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24011 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24012 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24013 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24014 ac_header_preproc=yes
24017 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24018 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
24019 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24020 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24021 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24022 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24023 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24024 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24025 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24026 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
24027 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24028 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
24030 ## -------------------------------------------------------- ##
24031 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24032 ## -------------------------------------------------------- ##
24034 ) | sed "s/^/$as_me: WARNING: /" >&2
24037 { echo "$as_me:$LINENO: checking for zlib.h" >&5
24038 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
24039 if test "${ac_cv_header_zlib_h+set}" = set; then
24040 echo $ECHO_N "(cached) $ECHO_C" >&6
24042 ac_cv_header_zlib_h=$ac_header_preproc
24044 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24045 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
24048 if test $ac_cv_header_zlib_h = yes; then
24049 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
24050 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
24051 if test "${ac_cv_lib_z_gzopen+set}" = set; then
24052 echo $ECHO_N "(cached) $ECHO_C" >&6
24054 ac_check_lib_save_LIBS=$LIBS
24056 cat >conftest.$ac_ext <<_ACEOF
24059 cat confdefs.h >>conftest.$ac_ext
24060 cat >>conftest.$ac_ext <<_ACEOF
24061 /* end confdefs.h. */
24063 /* Override any GCC internal prototype to avoid an error.
24064 Use char because int might match the return type of a GCC
24065 builtin and then its argument prototype would still apply. */
24078 rm -f conftest.$ac_objext conftest$ac_exeext
24079 if { (ac_try="$ac_link"
24080 case "(($ac_try" in
24081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24082 *) ac_try_echo=$ac_try;;
24084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24085 (eval "$ac_link") 2>conftest.er1
24087 grep -v '^ *+' conftest.er1 >conftest.err
24089 cat conftest.err >&5
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } && {
24092 test -z "$ac_c_werror_flag" ||
24093 test ! -s conftest.err
24094 } && test -s conftest$ac_exeext &&
24095 $as_test_x conftest$ac_exeext; then
24096 ac_cv_lib_z_gzopen=yes
24098 echo "$as_me: failed program was:" >&5
24099 sed 's/^/| /' conftest.$ac_ext >&5
24101 ac_cv_lib_z_gzopen=no
24104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24105 conftest$ac_exeext conftest.$ac_ext
24106 LIBS=$ac_check_lib_save_LIBS
24108 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
24109 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
24110 if test $ac_cv_lib_z_gzopen = yes; then
24114 cat >>confdefs.h <<\_ACEOF
24118 IMAGELIBS="$IMAGELIBS -lz -lm"
24119 LIBS="$LIBS -lz -lm"
24127 if test "${ac_cv_header_png_h+set}" = set; then
24128 { echo "$as_me:$LINENO: checking for png.h" >&5
24129 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
24130 if test "${ac_cv_header_png_h+set}" = set; then
24131 echo $ECHO_N "(cached) $ECHO_C" >&6
24133 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24134 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
24136 # Is the header compilable?
24137 { echo "$as_me:$LINENO: checking png.h usability" >&5
24138 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
24139 cat >conftest.$ac_ext <<_ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h. */
24145 $ac_includes_default
24148 rm -f conftest.$ac_objext
24149 if { (ac_try="$ac_compile"
24150 case "(($ac_try" in
24151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152 *) ac_try_echo=$ac_try;;
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24157 grep -v '^ *+' conftest.er1 >conftest.err
24159 cat conftest.err >&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
24165 ac_header_compiler=yes
24167 echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24170 ac_header_compiler=no
24173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24175 echo "${ECHO_T}$ac_header_compiler" >&6; }
24177 # Is the header present?
24178 { echo "$as_me:$LINENO: checking png.h presence" >&5
24179 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
24180 cat >conftest.$ac_ext <<_ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h. */
24188 if { (ac_try="$ac_cpp conftest.$ac_ext"
24189 case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24196 grep -v '^ *+' conftest.er1 >conftest.err
24198 cat conftest.err >&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } >/dev/null && {
24201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24202 test ! -s conftest.err
24204 ac_header_preproc=yes
24206 echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24209 ac_header_preproc=no
24212 rm -f conftest.err conftest.$ac_ext
24213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24214 echo "${ECHO_T}$ac_header_preproc" >&6; }
24216 # So? What about this header?
24217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24219 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24220 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24222 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24223 ac_header_preproc=yes
24226 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24227 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24229 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24231 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24232 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24233 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
24234 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24235 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
24236 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24237 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
24239 ## -------------------------------------------------------- ##
24240 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24241 ## -------------------------------------------------------- ##
24243 ) | sed "s/^/$as_me: WARNING: /" >&2
24246 { echo "$as_me:$LINENO: checking for png.h" >&5
24247 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
24248 if test "${ac_cv_header_png_h+set}" = set; then
24249 echo $ECHO_N "(cached) $ECHO_C" >&6
24251 ac_cv_header_png_h=$ac_header_preproc
24253 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24254 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
24257 if test $ac_cv_header_png_h = yes; then
24260 cat >>confdefs.h <<\_ACEOF
24269 if test "${ac_cv_header_libpng_png_h+set}" = set; then
24270 { echo "$as_me:$LINENO: checking for libpng/png.h" >&5
24271 echo $ECHO_N "checking for libpng/png.h... $ECHO_C" >&6; }
24272 if test "${ac_cv_header_libpng_png_h+set}" = set; then
24273 echo $ECHO_N "(cached) $ECHO_C" >&6
24275 { echo "$as_me:$LINENO: result: $ac_cv_header_libpng_png_h" >&5
24276 echo "${ECHO_T}$ac_cv_header_libpng_png_h" >&6; }
24278 # Is the header compilable?
24279 { echo "$as_me:$LINENO: checking libpng/png.h usability" >&5
24280 echo $ECHO_N "checking libpng/png.h usability... $ECHO_C" >&6; }
24281 cat >conftest.$ac_ext <<_ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h. */
24287 $ac_includes_default
24288 #include <libpng/png.h>
24290 rm -f conftest.$ac_objext
24291 if { (ac_try="$ac_compile"
24292 case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_compile") 2>conftest.er1
24299 grep -v '^ *+' conftest.er1 >conftest.err
24301 cat conftest.err >&5
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } && {
24304 test -z "$ac_c_werror_flag" ||
24305 test ! -s conftest.err
24306 } && test -s conftest.$ac_objext; then
24307 ac_header_compiler=yes
24309 echo "$as_me: failed program was:" >&5
24310 sed 's/^/| /' conftest.$ac_ext >&5
24312 ac_header_compiler=no
24315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24317 echo "${ECHO_T}$ac_header_compiler" >&6; }
24319 # Is the header present?
24320 { echo "$as_me:$LINENO: checking libpng/png.h presence" >&5
24321 echo $ECHO_N "checking libpng/png.h presence... $ECHO_C" >&6; }
24322 cat >conftest.$ac_ext <<_ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h. */
24328 #include <libpng/png.h>
24330 if { (ac_try="$ac_cpp conftest.$ac_ext"
24331 case "(($ac_try" in
24332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333 *) ac_try_echo=$ac_try;;
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24338 grep -v '^ *+' conftest.er1 >conftest.err
24340 cat conftest.err >&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } >/dev/null && {
24343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24344 test ! -s conftest.err
24346 ac_header_preproc=yes
24348 echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24351 ac_header_preproc=no
24354 rm -f conftest.err conftest.$ac_ext
24355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24356 echo "${ECHO_T}$ac_header_preproc" >&6; }
24358 # So? What about this header?
24359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24361 { echo "$as_me:$LINENO: WARNING: libpng/png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24362 echo "$as_me: WARNING: libpng/png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24363 { echo "$as_me:$LINENO: WARNING: libpng/png.h: proceeding with the compiler's result" >&5
24364 echo "$as_me: WARNING: libpng/png.h: proceeding with the compiler's result" >&2;}
24365 ac_header_preproc=yes
24368 { echo "$as_me:$LINENO: WARNING: libpng/png.h: present but cannot be compiled" >&5
24369 echo "$as_me: WARNING: libpng/png.h: present but cannot be compiled" >&2;}
24370 { echo "$as_me:$LINENO: WARNING: libpng/png.h: check for missing prerequisite headers?" >&5
24371 echo "$as_me: WARNING: libpng/png.h: check for missing prerequisite headers?" >&2;}
24372 { echo "$as_me:$LINENO: WARNING: libpng/png.h: see the Autoconf documentation" >&5
24373 echo "$as_me: WARNING: libpng/png.h: see the Autoconf documentation" >&2;}
24374 { echo "$as_me:$LINENO: WARNING: libpng/png.h: section \"Present But Cannot Be Compiled\"" >&5
24375 echo "$as_me: WARNING: libpng/png.h: section \"Present But Cannot Be Compiled\"" >&2;}
24376 { echo "$as_me:$LINENO: WARNING: libpng/png.h: proceeding with the preprocessor's result" >&5
24377 echo "$as_me: WARNING: libpng/png.h: proceeding with the preprocessor's result" >&2;}
24378 { echo "$as_me:$LINENO: WARNING: libpng/png.h: in the future, the compiler will take precedence" >&5
24379 echo "$as_me: WARNING: libpng/png.h: in the future, the compiler will take precedence" >&2;}
24381 ## -------------------------------------------------------- ##
24382 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24383 ## -------------------------------------------------------- ##
24385 ) | sed "s/^/$as_me: WARNING: /" >&2
24388 { echo "$as_me:$LINENO: checking for libpng/png.h" >&5
24389 echo $ECHO_N "checking for libpng/png.h... $ECHO_C" >&6; }
24390 if test "${ac_cv_header_libpng_png_h+set}" = set; then
24391 echo $ECHO_N "(cached) $ECHO_C" >&6
24393 ac_cv_header_libpng_png_h=$ac_header_preproc
24395 { echo "$as_me:$LINENO: result: $ac_cv_header_libpng_png_h" >&5
24396 echo "${ECHO_T}$ac_cv_header_libpng_png_h" >&6; }
24399 if test $ac_cv_header_libpng_png_h = yes; then
24402 cat >>confdefs.h <<\_ACEOF
24403 #define HAVE_LIBPNG_PNG_H
24412 if test x"$have_png" = "xyes"; then
24413 { echo "$as_me:$LINENO: checking for png_read_image in -lpng12" >&5
24414 echo $ECHO_N "checking for png_read_image in -lpng12... $ECHO_C" >&6; }
24415 if test "${ac_cv_lib_png12_png_read_image+set}" = set; then
24416 echo $ECHO_N "(cached) $ECHO_C" >&6
24418 ac_check_lib_save_LIBS=$LIBS
24419 LIBS="-lpng12 $LIBS"
24420 cat >conftest.$ac_ext <<_ACEOF
24423 cat confdefs.h >>conftest.$ac_ext
24424 cat >>conftest.$ac_ext <<_ACEOF
24425 /* end confdefs.h. */
24427 /* Override any GCC internal prototype to avoid an error.
24428 Use char because int might match the return type of a GCC
24429 builtin and then its argument prototype would still apply. */
24433 char png_read_image ();
24437 return png_read_image ();
24442 rm -f conftest.$ac_objext conftest$ac_exeext
24443 if { (ac_try="$ac_link"
24444 case "(($ac_try" in
24445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446 *) ac_try_echo=$ac_try;;
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449 (eval "$ac_link") 2>conftest.er1
24451 grep -v '^ *+' conftest.er1 >conftest.err
24453 cat conftest.err >&5
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); } && {
24456 test -z "$ac_c_werror_flag" ||
24457 test ! -s conftest.err
24458 } && test -s conftest$ac_exeext &&
24459 $as_test_x conftest$ac_exeext; then
24460 ac_cv_lib_png12_png_read_image=yes
24462 echo "$as_me: failed program was:" >&5
24463 sed 's/^/| /' conftest.$ac_ext >&5
24465 ac_cv_lib_png12_png_read_image=no
24468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24469 conftest$ac_exeext conftest.$ac_ext
24470 LIBS=$ac_check_lib_save_LIBS
24472 { echo "$as_me:$LINENO: result: $ac_cv_lib_png12_png_read_image" >&5
24473 echo "${ECHO_T}$ac_cv_lib_png12_png_read_image" >&6; }
24474 if test $ac_cv_lib_png12_png_read_image = yes; then
24478 cat >>confdefs.h <<\_ACEOF
24482 IMAGELIBS="-lpng12 $IMAGELIBS"
24483 LIBS="-lpng12 $LIBS"
24486 for ac_func in png_get_valid png_set_tRNS_to_alpha
24488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24492 echo $ECHO_N "(cached) $ECHO_C" >&6
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24502 #define $ac_func innocuous_$ac_func
24504 /* System header to define __stub macros and hopefully few prototypes,
24505 which can conflict with char $ac_func (); below.
24506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24507 <limits.h> exists even on freestanding compilers. */
24510 # include <limits.h>
24512 # include <assert.h>
24517 /* Override any GCC internal prototype to avoid an error.
24518 Use char because int might match the return type of a GCC
24519 builtin and then its argument prototype would still apply. */
24524 /* The GNU C library defines this for functions which it implements
24525 to always fail with ENOSYS. Some functions are actually named
24526 something starting with __ and the normal name is an alias. */
24527 #if defined __stub_$ac_func || defined __stub___$ac_func
24534 return $ac_func ();
24539 rm -f conftest.$ac_objext conftest$ac_exeext
24540 if { (ac_try="$ac_link"
24541 case "(($ac_try" in
24542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24543 *) ac_try_echo=$ac_try;;
24545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24546 (eval "$ac_link") 2>conftest.er1
24548 grep -v '^ *+' conftest.er1 >conftest.err
24550 cat conftest.err >&5
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); } && {
24553 test -z "$ac_c_werror_flag" ||
24554 test ! -s conftest.err
24555 } && test -s conftest$ac_exeext &&
24556 $as_test_x conftest$ac_exeext; then
24557 eval "$as_ac_var=yes"
24559 echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24562 eval "$as_ac_var=no"
24565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24566 conftest$ac_exeext conftest.$ac_ext
24568 ac_res=`eval echo '${'$as_ac_var'}'`
24569 { echo "$as_me:$LINENO: result: $ac_res" >&5
24570 echo "${ECHO_T}$ac_res" >&6; }
24571 if test `eval echo '${'$as_ac_var'}'` = yes; then
24572 cat >>confdefs.h <<_ACEOF
24573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24586 if test "${ac_cv_header_tiff_h+set}" = set; then
24587 { echo "$as_me:$LINENO: checking for tiff.h" >&5
24588 echo $ECHO_N "checking for tiff.h... $ECHO_C" >&6; }
24589 if test "${ac_cv_header_tiff_h+set}" = set; then
24590 echo $ECHO_N "(cached) $ECHO_C" >&6
24592 { echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
24593 echo "${ECHO_T}$ac_cv_header_tiff_h" >&6; }
24595 # Is the header compilable?
24596 { echo "$as_me:$LINENO: checking tiff.h usability" >&5
24597 echo $ECHO_N "checking tiff.h usability... $ECHO_C" >&6; }
24598 cat >conftest.$ac_ext <<_ACEOF
24601 cat confdefs.h >>conftest.$ac_ext
24602 cat >>conftest.$ac_ext <<_ACEOF
24603 /* end confdefs.h. */
24604 $ac_includes_default
24607 rm -f conftest.$ac_objext
24608 if { (ac_try="$ac_compile"
24609 case "(($ac_try" in
24610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611 *) ac_try_echo=$ac_try;;
24613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614 (eval "$ac_compile") 2>conftest.er1
24616 grep -v '^ *+' conftest.er1 >conftest.err
24618 cat conftest.err >&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } && {
24621 test -z "$ac_c_werror_flag" ||
24622 test ! -s conftest.err
24623 } && test -s conftest.$ac_objext; then
24624 ac_header_compiler=yes
24626 echo "$as_me: failed program was:" >&5
24627 sed 's/^/| /' conftest.$ac_ext >&5
24629 ac_header_compiler=no
24632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24634 echo "${ECHO_T}$ac_header_compiler" >&6; }
24636 # Is the header present?
24637 { echo "$as_me:$LINENO: checking tiff.h presence" >&5
24638 echo $ECHO_N "checking tiff.h presence... $ECHO_C" >&6; }
24639 cat >conftest.$ac_ext <<_ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24647 if { (ac_try="$ac_cpp conftest.$ac_ext"
24648 case "(($ac_try" in
24649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24650 *) ac_try_echo=$ac_try;;
24652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24655 grep -v '^ *+' conftest.er1 >conftest.err
24657 cat conftest.err >&5
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); } >/dev/null && {
24660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24661 test ! -s conftest.err
24663 ac_header_preproc=yes
24665 echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24668 ac_header_preproc=no
24671 rm -f conftest.err conftest.$ac_ext
24672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24673 echo "${ECHO_T}$ac_header_preproc" >&6; }
24675 # So? What about this header?
24676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24678 { echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
24679 echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24680 { echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
24681 echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
24682 ac_header_preproc=yes
24685 { echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
24686 echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
24687 { echo "$as_me:$LINENO: WARNING: tiff.h: check for missing prerequisite headers?" >&5
24688 echo "$as_me: WARNING: tiff.h: check for missing prerequisite headers?" >&2;}
24689 { echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
24690 echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
24691 { echo "$as_me:$LINENO: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&5
24692 echo "$as_me: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&2;}
24693 { echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
24694 echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
24695 { echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
24696 echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
24698 ## -------------------------------------------------------- ##
24699 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24700 ## -------------------------------------------------------- ##
24702 ) | sed "s/^/$as_me: WARNING: /" >&2
24705 { echo "$as_me:$LINENO: checking for tiff.h" >&5
24706 echo $ECHO_N "checking for tiff.h... $ECHO_C" >&6; }
24707 if test "${ac_cv_header_tiff_h+set}" = set; then
24708 echo $ECHO_N "(cached) $ECHO_C" >&6
24710 ac_cv_header_tiff_h=$ac_header_preproc
24712 { echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
24713 echo "${ECHO_T}$ac_cv_header_tiff_h" >&6; }
24716 if test $ac_cv_header_tiff_h = yes; then
24717 { echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
24718 echo $ECHO_N "checking for TIFFReadRGBAStrip in -ltiff... $ECHO_C" >&6; }
24719 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 ac_check_lib_save_LIBS=$LIBS
24723 LIBS="-ltiff $LIBS"
24724 cat >conftest.$ac_ext <<_ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h. */
24731 /* Override any GCC internal prototype to avoid an error.
24732 Use char because int might match the return type of a GCC
24733 builtin and then its argument prototype would still apply. */
24737 char TIFFReadRGBAStrip ();
24741 return TIFFReadRGBAStrip ();
24746 rm -f conftest.$ac_objext conftest$ac_exeext
24747 if { (ac_try="$ac_link"
24748 case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753 (eval "$ac_link") 2>conftest.er1
24755 grep -v '^ *+' conftest.er1 >conftest.err
24757 cat conftest.err >&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } && {
24760 test -z "$ac_c_werror_flag" ||
24761 test ! -s conftest.err
24762 } && test -s conftest$ac_exeext &&
24763 $as_test_x conftest$ac_exeext; then
24764 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
24766 echo "$as_me: failed program was:" >&5
24767 sed 's/^/| /' conftest.$ac_ext >&5
24769 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
24772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24773 conftest$ac_exeext conftest.$ac_ext
24774 LIBS=$ac_check_lib_save_LIBS
24776 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
24777 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
24778 if test $ac_cv_lib_tiff_TIFFReadRGBAStrip = yes; then
24782 cat >>confdefs.h <<\_ACEOF
24786 IMAGELIBS="$IMAGELIBS -ltiff"
24787 LIBS="$LIBS -ltiff"
24797 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
24798 { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
24799 echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
24800 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
24801 echo $ECHO_N "(cached) $ECHO_C" >&6
24803 { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
24804 echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
24806 # Is the header compilable?
24807 { echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
24808 echo $ECHO_N "checking jasper/jasper.h usability... $ECHO_C" >&6; }
24809 cat >conftest.$ac_ext <<_ACEOF
24812 cat confdefs.h >>conftest.$ac_ext
24813 cat >>conftest.$ac_ext <<_ACEOF
24814 /* end confdefs.h. */
24815 $ac_includes_default
24816 #include <jasper/jasper.h>
24818 rm -f conftest.$ac_objext
24819 if { (ac_try="$ac_compile"
24820 case "(($ac_try" in
24821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822 *) ac_try_echo=$ac_try;;
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825 (eval "$ac_compile") 2>conftest.er1
24827 grep -v '^ *+' conftest.er1 >conftest.err
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && {
24832 test -z "$ac_c_werror_flag" ||
24833 test ! -s conftest.err
24834 } && test -s conftest.$ac_objext; then
24835 ac_header_compiler=yes
24837 echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24840 ac_header_compiler=no
24843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24845 echo "${ECHO_T}$ac_header_compiler" >&6; }
24847 # Is the header present?
24848 { echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
24849 echo $ECHO_N "checking jasper/jasper.h presence... $ECHO_C" >&6; }
24850 cat >conftest.$ac_ext <<_ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h. */
24856 #include <jasper/jasper.h>
24858 if { (ac_try="$ac_cpp conftest.$ac_ext"
24859 case "(($ac_try" in
24860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24861 *) ac_try_echo=$ac_try;;
24863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24866 grep -v '^ *+' conftest.er1 >conftest.err
24868 cat conftest.err >&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } >/dev/null && {
24871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24872 test ! -s conftest.err
24874 ac_header_preproc=yes
24876 echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.$ac_ext >&5
24879 ac_header_preproc=no
24882 rm -f conftest.err conftest.$ac_ext
24883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24884 echo "${ECHO_T}$ac_header_preproc" >&6; }
24886 # So? What about this header?
24887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24889 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
24890 echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24891 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
24892 echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
24893 ac_header_preproc=yes
24896 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
24897 echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
24898 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
24899 echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
24900 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
24901 echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
24902 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
24903 echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
24904 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
24905 echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
24906 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
24907 echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
24909 ## -------------------------------------------------------- ##
24910 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24911 ## -------------------------------------------------------- ##
24913 ) | sed "s/^/$as_me: WARNING: /" >&2
24916 { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
24917 echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
24918 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
24919 echo $ECHO_N "(cached) $ECHO_C" >&6
24921 ac_cv_header_jasper_jasper_h=$ac_header_preproc
24923 { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
24924 echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
24927 if test $ac_cv_header_jasper_jasper_h = yes; then
24928 { echo "$as_me:$LINENO: checking for jas_image_readcmpt in -ljasper" >&5
24929 echo $ECHO_N "checking for jas_image_readcmpt in -ljasper... $ECHO_C" >&6; }
24930 if test "${ac_cv_lib_jasper_jas_image_readcmpt+set}" = set; then
24931 echo $ECHO_N "(cached) $ECHO_C" >&6
24933 ac_check_lib_save_LIBS=$LIBS
24934 LIBS="-ljasper $LIBS"
24935 cat >conftest.$ac_ext <<_ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h. */
24942 /* Override any GCC internal prototype to avoid an error.
24943 Use char because int might match the return type of a GCC
24944 builtin and then its argument prototype would still apply. */
24948 char jas_image_readcmpt ();
24952 return jas_image_readcmpt ();
24957 rm -f conftest.$ac_objext conftest$ac_exeext
24958 if { (ac_try="$ac_link"
24959 case "(($ac_try" in
24960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961 *) ac_try_echo=$ac_try;;
24963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24964 (eval "$ac_link") 2>conftest.er1
24966 grep -v '^ *+' conftest.er1 >conftest.err
24968 cat conftest.err >&5
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); } && {
24971 test -z "$ac_c_werror_flag" ||
24972 test ! -s conftest.err
24973 } && test -s conftest$ac_exeext &&
24974 $as_test_x conftest$ac_exeext; then
24975 ac_cv_lib_jasper_jas_image_readcmpt=yes
24977 echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24980 ac_cv_lib_jasper_jas_image_readcmpt=no
24983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24984 conftest$ac_exeext conftest.$ac_ext
24985 LIBS=$ac_check_lib_save_LIBS
24987 { echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_image_readcmpt" >&5
24988 echo "${ECHO_T}$ac_cv_lib_jasper_jas_image_readcmpt" >&6; }
24989 if test $ac_cv_lib_jasper_jas_image_readcmpt = yes; then
24993 cat >>confdefs.h <<\_ACEOF
24994 #define HAVE_JASPER
24997 IMAGELIBS="$IMAGELIBS -ljasper"
24998 LIBS="$LIBS -ljasper"
25007 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25008 { echo "$as_me:$LINENO: checking for ImfCRgbaFile.h" >&5
25009 echo $ECHO_N "checking for ImfCRgbaFile.h... $ECHO_C" >&6; }
25010 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25011 echo $ECHO_N "(cached) $ECHO_C" >&6
25013 { echo "$as_me:$LINENO: result: $ac_cv_header_ImfCRgbaFile_h" >&5
25014 echo "${ECHO_T}$ac_cv_header_ImfCRgbaFile_h" >&6; }
25016 # Is the header compilable?
25017 { echo "$as_me:$LINENO: checking ImfCRgbaFile.h usability" >&5
25018 echo $ECHO_N "checking ImfCRgbaFile.h usability... $ECHO_C" >&6; }
25019 cat >conftest.$ac_ext <<_ACEOF
25022 cat confdefs.h >>conftest.$ac_ext
25023 cat >>conftest.$ac_ext <<_ACEOF
25024 /* end confdefs.h. */
25025 $ac_includes_default
25026 #include <ImfCRgbaFile.h>
25028 rm -f conftest.$ac_objext
25029 if { (ac_try="$ac_compile"
25030 case "(($ac_try" in
25031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032 *) ac_try_echo=$ac_try;;
25034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035 (eval "$ac_compile") 2>conftest.er1
25037 grep -v '^ *+' conftest.er1 >conftest.err
25039 cat conftest.err >&5
25040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 (exit $ac_status); } && {
25042 test -z "$ac_c_werror_flag" ||
25043 test ! -s conftest.err
25044 } && test -s conftest.$ac_objext; then
25045 ac_header_compiler=yes
25047 echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25050 ac_header_compiler=no
25053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25055 echo "${ECHO_T}$ac_header_compiler" >&6; }
25057 # Is the header present?
25058 { echo "$as_me:$LINENO: checking ImfCRgbaFile.h presence" >&5
25059 echo $ECHO_N "checking ImfCRgbaFile.h presence... $ECHO_C" >&6; }
25060 cat >conftest.$ac_ext <<_ACEOF
25063 cat confdefs.h >>conftest.$ac_ext
25064 cat >>conftest.$ac_ext <<_ACEOF
25065 /* end confdefs.h. */
25066 #include <ImfCRgbaFile.h>
25068 if { (ac_try="$ac_cpp conftest.$ac_ext"
25069 case "(($ac_try" in
25070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25071 *) ac_try_echo=$ac_try;;
25073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25076 grep -v '^ *+' conftest.er1 >conftest.err
25078 cat conftest.err >&5
25079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); } >/dev/null && {
25081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25082 test ! -s conftest.err
25084 ac_header_preproc=yes
25086 echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25089 ac_header_preproc=no
25092 rm -f conftest.err conftest.$ac_ext
25093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25094 echo "${ECHO_T}$ac_header_preproc" >&6; }
25096 # So? What about this header?
25097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25099 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: accepted by the compiler, rejected by the preprocessor!" >&5
25100 echo "$as_me: WARNING: ImfCRgbaFile.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25101 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: proceeding with the compiler's result" >&5
25102 echo "$as_me: WARNING: ImfCRgbaFile.h: proceeding with the compiler's result" >&2;}
25103 ac_header_preproc=yes
25106 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: present but cannot be compiled" >&5
25107 echo "$as_me: WARNING: ImfCRgbaFile.h: present but cannot be compiled" >&2;}
25108 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: check for missing prerequisite headers?" >&5
25109 echo "$as_me: WARNING: ImfCRgbaFile.h: check for missing prerequisite headers?" >&2;}
25110 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: see the Autoconf documentation" >&5
25111 echo "$as_me: WARNING: ImfCRgbaFile.h: see the Autoconf documentation" >&2;}
25112 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: section \"Present But Cannot Be Compiled\"" >&5
25113 echo "$as_me: WARNING: ImfCRgbaFile.h: section \"Present But Cannot Be Compiled\"" >&2;}
25114 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: proceeding with the preprocessor's result" >&5
25115 echo "$as_me: WARNING: ImfCRgbaFile.h: proceeding with the preprocessor's result" >&2;}
25116 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: in the future, the compiler will take precedence" >&5
25117 echo "$as_me: WARNING: ImfCRgbaFile.h: in the future, the compiler will take precedence" >&2;}
25119 ## -------------------------------------------------------- ##
25120 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25121 ## -------------------------------------------------------- ##
25123 ) | sed "s/^/$as_me: WARNING: /" >&2
25126 { echo "$as_me:$LINENO: checking for ImfCRgbaFile.h" >&5
25127 echo $ECHO_N "checking for ImfCRgbaFile.h... $ECHO_C" >&6; }
25128 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25129 echo $ECHO_N "(cached) $ECHO_C" >&6
25131 ac_cv_header_ImfCRgbaFile_h=$ac_header_preproc
25133 { echo "$as_me:$LINENO: result: $ac_cv_header_ImfCRgbaFile_h" >&5
25134 echo "${ECHO_T}$ac_cv_header_ImfCRgbaFile_h" >&6; }
25137 if test $ac_cv_header_ImfCRgbaFile_h = yes; then
25138 { echo "$as_me:$LINENO: checking for ImfInputReadPixels in -lIlmImf" >&5
25139 echo $ECHO_N "checking for ImfInputReadPixels in -lIlmImf... $ECHO_C" >&6; }
25140 if test "${ac_cv_lib_IlmImf_ImfInputReadPixels+set}" = set; then
25141 echo $ECHO_N "(cached) $ECHO_C" >&6
25143 ac_check_lib_save_LIBS=$LIBS
25144 LIBS="-lIlmImf -lIex -lHalf $LIBS"
25145 cat >conftest.$ac_ext <<_ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h. */
25152 /* Override any GCC internal prototype to avoid an error.
25153 Use char because int might match the return type of a GCC
25154 builtin and then its argument prototype would still apply. */
25158 char ImfInputReadPixels ();
25162 return ImfInputReadPixels ();
25167 rm -f conftest.$ac_objext conftest$ac_exeext
25168 if { (ac_try="$ac_link"
25169 case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174 (eval "$ac_link") 2>conftest.er1
25176 grep -v '^ *+' conftest.er1 >conftest.err
25178 cat conftest.err >&5
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } && {
25181 test -z "$ac_c_werror_flag" ||
25182 test ! -s conftest.err
25183 } && test -s conftest$ac_exeext &&
25184 $as_test_x conftest$ac_exeext; then
25185 ac_cv_lib_IlmImf_ImfInputReadPixels=yes
25187 echo "$as_me: failed program was:" >&5
25188 sed 's/^/| /' conftest.$ac_ext >&5
25190 ac_cv_lib_IlmImf_ImfInputReadPixels=no
25193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25194 conftest$ac_exeext conftest.$ac_ext
25195 LIBS=$ac_check_lib_save_LIBS
25197 { echo "$as_me:$LINENO: result: $ac_cv_lib_IlmImf_ImfInputReadPixels" >&5
25198 echo "${ECHO_T}$ac_cv_lib_IlmImf_ImfInputReadPixels" >&6; }
25199 if test $ac_cv_lib_IlmImf_ImfInputReadPixels = yes; then
25203 cat >>confdefs.h <<\_ACEOF
25204 #define HAVE_ILMIMF
25207 IMAGELIBS="$IMAGELIBS -lIlmImf -lIex -lHalf"
25208 LIBS="$LIBS -lIlmImf -lIex -lHalf"
25216 # Restore original LIBS settings...
25221 ######################################################################
25224 # each language should have --with-LANGUAGE switch
25227 if test x"$with_python" = "xyes"; then
25228 { echo "$as_me:$LINENO: Checking for necessary tools to build python wrappers" >&5
25229 echo "$as_me: Checking for necessary tools to build python wrappers" >&6;}
25231 # we need Python now
25236 # Find any Python interpreter.
25237 if test -z "$PYTHON"; then
25238 for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
25240 # Extract the first word of "$ac_prog", so it can be a program name with args.
25241 set dummy $ac_prog; ac_word=$2
25242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25244 if test "${ac_cv_path_PYTHON+set}" = set; then
25245 echo $ECHO_N "(cached) $ECHO_C" >&6
25249 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
25252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25253 for as_dir in $PATH
25256 test -z "$as_dir" && as_dir=.
25257 for ac_exec_ext in '' $ac_executable_extensions; do
25258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25259 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
25260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25270 PYTHON=$ac_cv_path_PYTHON
25271 if test -n "$PYTHON"; then
25272 { echo "$as_me:$LINENO: result: $PYTHON" >&5
25273 echo "${ECHO_T}$PYTHON" >&6; }
25275 { echo "$as_me:$LINENO: result: no" >&5
25276 echo "${ECHO_T}no" >&6; }
25280 test -n "$PYTHON" && break
25282 test -n "$PYTHON" || PYTHON=":"
25285 am_display_PYTHON=python
25288 if test "$PYTHON" = :; then
25289 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
25290 echo "$as_me: error: no suitable Python interpreter found" >&2;}
25291 { (exit 1); exit 1; }; }
25295 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
25296 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
25297 if test "${am_cv_python_version+set}" = set; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25300 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
25302 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
25303 echo "${ECHO_T}$am_cv_python_version" >&6; }
25304 PYTHON_VERSION=$am_cv_python_version
25308 PYTHON_PREFIX='${prefix}'
25310 PYTHON_EXEC_PREFIX='${exec_prefix}'
25314 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
25315 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
25316 if test "${am_cv_python_platform+set}" = set; then
25317 echo $ECHO_N "(cached) $ECHO_C" >&6
25319 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
25321 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
25322 echo "${ECHO_T}$am_cv_python_platform" >&6; }
25323 PYTHON_PLATFORM=$am_cv_python_platform
25328 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
25329 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
25330 if test "${am_cv_python_pythondir+set}" = set; then
25331 echo $ECHO_N "(cached) $ECHO_C" >&6
25333 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
25334 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
25336 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
25337 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
25338 pythondir=$am_cv_python_pythondir
25342 pkgpythondir=\${pythondir}/$PACKAGE
25345 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
25346 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
25347 if test "${am_cv_python_pyexecdir+set}" = set; then
25348 echo $ECHO_N "(cached) $ECHO_C" >&6
25350 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
25351 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
25353 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
25354 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
25355 pyexecdir=$am_cv_python_pyexecdir
25359 pkgpyexecdir=\${pyexecdir}/$PACKAGE
25367 # get some info on how to compile and link python modules
25370 if test -n "$PYTHON"
25372 az_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
25373 if test -z "$az_python_prefix"
25375 { { echo "$as_me:$LINENO: error: Python Prefix is not known" >&5
25376 echo "$as_me: error: Python Prefix is not known" >&2;}
25377 { (exit 1); exit 1; }; }
25379 az_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
25380 az_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
25381 az_python_includespec="-I${az_python_prefix}/include/python${az_python_version}"
25382 if test x"$python_prefix" != x"$python_execprefix"; then
25383 az_python_execspec="-I${az_python_execprefix}/include/python${az_python_version}"
25384 az_python_includespec="${az_python_includespec} $az_python_execspec"
25386 az_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"`
25387 az_python_cspec="${az_python_ccshared} ${az_python_includespec}"
25388 PYTHON_CSPEC=${az_python_cspec}
25390 { echo "$as_me:$LINENO: PYTHON_CSPEC=${az_python_cspec}" >&5
25391 echo "$as_me: PYTHON_CSPEC=${az_python_cspec}" >&6;}
25396 if test -n "$PYTHON"
25400 if test -z "$PYTHON"
25402 { { echo "$as_me:$LINENO: error: Python Executable not found" >&5
25403 echo "$as_me: error: Python Executable not found" >&2;}
25404 { (exit 1); exit 1; }; }
25406 cat >conftest.py <<_ACEOF
25409 import distutils.sysconfig
25410 strUseFrameWork = "--enable-framework"
25411 dictConfig = distutils.sysconfig.get_config_vars( )
25412 strConfigArgs = dictConfig.get("CONFIG_ARGS")
25413 strLinkSpec = dictConfig.get('LDFLAGS')
25414 if -1 == strConfigArgs.find(strUseFrameWork):
25415 strLibPL = dictConfig.get("LIBPL")
25416 if strLibPL and (strLibPL != ""):
25417 strLinkSpec += " -L%s" % (strLibPL)
25418 strSys = dictConfig.get("SYSLIBS")
25419 if strSys and (strSys != ""):
25420 strLinkSpec += " %s" % (strSys)
25421 strSHL = dictConfig.get("SHLIBS")
25422 if strSHL and (strSHL != ""):
25423 strLinkSpec += " %s" % (strSHL)
25424 # Construct the Python Library Name.
25425 strTmplte = " -lpython%d.%d"
25426 if (sys.platform == "win32") or (sys.platform == "os2emx"):
25427 strTmplte = " -lpython%d%d"
25428 strWrk = strTmplte % ( (sys.hexversion >> 24),
25429 ((sys.hexversion >> 16) & 0xff))
25430 strLinkSpec += strWrk
25432 # This is not ideal since it changes the search path
25433 # for Frameworks which could have side-effects on
25434 # other included Frameworks. However, it is necessary
25435 # where someone has installed more than one frameworked
25436 # Python. Frameworks are really only used in MacOSX.
25437 strLibFW = dictConfig.get("PYTHONFRAMEWORKPREFIX")
25438 if strLibFW and (strLibFW != ""):
25439 strLinkSpec += " -F%s" % (strLibFW)
25440 strLibPL = dictConfig.get("LIBPL")
25441 if strLibPL and (strLibPL != ""):
25442 strLinkSpec += " -L%s" % (strLibPL)
25443 # Construct the Python Library Name.
25444 strTmplte = " -lpython%d.%d"
25445 if (sys.platform == "win32") or (sys.platform == "os2emx"):
25446 strTmplte = " -lpython%d%d"
25447 strWrk = strTmplte % ( (sys.hexversion >> 24),
25448 ((sys.hexversion >> 16) & 0xff))
25449 strLinkSpec += strWrk
25450 strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED'))
25454 az_python_output=`$PYTHON conftest.py`
25457 if test -f "conftest.pyc"
25463 PYTHON_LSPEC=${az_python_output}
25465 { echo "$as_me:$LINENO: PYTHON_LSPEC=${az_python_output}" >&5
25466 echo "$as_me: PYTHON_LSPEC=${az_python_output}" >&6;}
25470 # if not explicitly forbidden, check for swig also
25471 if test x"$with_swig" = "xauto"; then
25475 ### almost ok... just need to check if we have the Python headers ###
25477 # first, save the CPPFLAGS
25478 OLD_CPPFLAGS=$CPPFLAGS
25480 # then add the PYTHON path founded previously
25481 CPPFLAGS="$CPPFLAGS $PYTHON_CSPEC"
25483 # now, we can check
25484 if test "${ac_cv_header_Python_h+set}" = set; then
25485 { echo "$as_me:$LINENO: checking for Python.h" >&5
25486 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
25487 if test "${ac_cv_header_Python_h+set}" = set; then
25488 echo $ECHO_N "(cached) $ECHO_C" >&6
25490 { echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
25491 echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
25493 # Is the header compilable?
25494 { echo "$as_me:$LINENO: checking Python.h usability" >&5
25495 echo $ECHO_N "checking Python.h usability... $ECHO_C" >&6; }
25496 cat >conftest.$ac_ext <<_ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h. */
25502 $ac_includes_default
25503 #include <Python.h>
25505 rm -f conftest.$ac_objext
25506 if { (ac_try="$ac_compile"
25507 case "(($ac_try" in
25508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509 *) ac_try_echo=$ac_try;;
25511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25512 (eval "$ac_compile") 2>conftest.er1
25514 grep -v '^ *+' conftest.er1 >conftest.err
25516 cat conftest.err >&5
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); } && {
25519 test -z "$ac_c_werror_flag" ||
25520 test ! -s conftest.err
25521 } && test -s conftest.$ac_objext; then
25522 ac_header_compiler=yes
25524 echo "$as_me: failed program was:" >&5
25525 sed 's/^/| /' conftest.$ac_ext >&5
25527 ac_header_compiler=no
25530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25532 echo "${ECHO_T}$ac_header_compiler" >&6; }
25534 # Is the header present?
25535 { echo "$as_me:$LINENO: checking Python.h presence" >&5
25536 echo $ECHO_N "checking Python.h presence... $ECHO_C" >&6; }
25537 cat >conftest.$ac_ext <<_ACEOF
25540 cat confdefs.h >>conftest.$ac_ext
25541 cat >>conftest.$ac_ext <<_ACEOF
25542 /* end confdefs.h. */
25543 #include <Python.h>
25545 if { (ac_try="$ac_cpp conftest.$ac_ext"
25546 case "(($ac_try" in
25547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25548 *) ac_try_echo=$ac_try;;
25550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25553 grep -v '^ *+' conftest.er1 >conftest.err
25555 cat conftest.err >&5
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); } >/dev/null && {
25558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25559 test ! -s conftest.err
25561 ac_header_preproc=yes
25563 echo "$as_me: failed program was:" >&5
25564 sed 's/^/| /' conftest.$ac_ext >&5
25566 ac_header_preproc=no
25569 rm -f conftest.err conftest.$ac_ext
25570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25571 echo "${ECHO_T}$ac_header_preproc" >&6; }
25573 # So? What about this header?
25574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25576 { echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
25577 echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25578 { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
25579 echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
25580 ac_header_preproc=yes
25583 { echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
25584 echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
25585 { echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
25586 echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
25587 { echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
25588 echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
25589 { echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
25590 echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
25591 { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
25592 echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
25593 { echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
25594 echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
25596 ## -------------------------------------------------------- ##
25597 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25598 ## -------------------------------------------------------- ##
25600 ) | sed "s/^/$as_me: WARNING: /" >&2
25603 { echo "$as_me:$LINENO: checking for Python.h" >&5
25604 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
25605 if test "${ac_cv_header_Python_h+set}" = set; then
25606 echo $ECHO_N "(cached) $ECHO_C" >&6
25608 ac_cv_header_Python_h=$ac_header_preproc
25610 { echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
25611 echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
25614 if test $ac_cv_header_Python_h = yes; then
25618 { echo "$as_me:$LINENO: WARNING: Python headers not found, disabling python wrappers" >&5
25619 echo "$as_me: WARNING: Python headers not found, disabling python wrappers" >&2;}
25626 # restore the old CPPFLAGS
25627 CPPFLAGS=$OLD_CPPFLAGS
25630 # check if ./configure arguments are valid
25631 if test x"$with_python" = "xno"; then
25634 # if we get here then --with-python was not called with 'yes','no' or 'auto'
25635 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&5
25636 echo "$as_me: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&2;}
25640 if test x"$have_python" = "xyes"; then
25641 BUILD_PYTHON_WRAPPERS_TRUE=
25642 BUILD_PYTHON_WRAPPERS_FALSE='#'
25644 BUILD_PYTHON_WRAPPERS_TRUE='#'
25645 BUILD_PYTHON_WRAPPERS_FALSE=
25650 if test x"$with_octave" = "xyes"; then
25651 { echo "$as_me:$LINENO: Checking for necessary tools to build octave wrappers" >&5
25652 echo "$as_me: Checking for necessary tools to build octave wrappers" >&6;}
25654 # find octave and mkoctfile
25655 # Extract the first word of "octave", so it can be a program name with args.
25656 set dummy octave; ac_word=$2
25657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25659 if test "${ac_cv_path_OCTAVE+set}" = set; then
25660 echo $ECHO_N "(cached) $ECHO_C" >&6
25664 ac_cv_path_OCTAVE="$OCTAVE" # Let the user override the test with a path.
25667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25668 for as_dir in $PATH
25671 test -z "$as_dir" && as_dir=.
25672 for ac_exec_ext in '' $ac_executable_extensions; do
25673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25674 ac_cv_path_OCTAVE="$as_dir/$ac_word$ac_exec_ext"
25675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25685 OCTAVE=$ac_cv_path_OCTAVE
25686 if test -n "$OCTAVE"; then
25687 { echo "$as_me:$LINENO: result: $OCTAVE" >&5
25688 echo "${ECHO_T}$OCTAVE" >&6; }
25690 { echo "$as_me:$LINENO: result: no" >&5
25691 echo "${ECHO_T}no" >&6; }
25695 # Extract the first word of "mkoctfile", so it can be a program name with args.
25696 set dummy mkoctfile; ac_word=$2
25697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25699 if test "${ac_cv_path_MKOCTFILE+set}" = set; then
25700 echo $ECHO_N "(cached) $ECHO_C" >&6
25704 ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path.
25707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25708 for as_dir in $PATH
25711 test -z "$as_dir" && as_dir=.
25712 for ac_exec_ext in '' $ac_executable_extensions; do
25713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25714 ac_cv_path_MKOCTFILE="$as_dir/$ac_word$ac_exec_ext"
25715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25725 MKOCTFILE=$ac_cv_path_MKOCTFILE
25726 if test -n "$MKOCTFILE"; then
25727 { echo "$as_me:$LINENO: result: $MKOCTFILE" >&5
25728 echo "${ECHO_T}$MKOCTFILE" >&6; }
25730 { echo "$as_me:$LINENO: result: no" >&5
25731 echo "${ECHO_T}no" >&6; }
25736 if test -z "$OCTAVE"; then
25737 { echo "$as_me:$LINENO: WARNING: octave not found, disabling octave wrappers" >&5
25738 echo "$as_me: WARNING: octave not found, disabling octave wrappers" >&2;}
25741 if test -z "$MKOCTFILE"; then
25742 { echo "$as_me:$LINENO: WARNING: mkoctfile not found, disabling octave wrappers" >&5
25743 echo "$as_me: WARNING: mkoctfile not found, disabling octave wrappers" >&2;}
25747 if test x"$with_octave" = "xyes"; then
25748 # check that octave version is at least 2.9.12
25749 cat > conftest.m <<'EOF'
25750 [a,b,c]=sscanf([version()," "],"%i.%i.%i","C");
25751 exit(sum([a,b,c].*[1e5,1e3,1])<209012)
25753 $OCTAVE --no-init-file conftest.m >& /dev/null || with_octave="no";
25756 if test x"$with_octave" = "xno"; then
25757 { echo "$as_me:$LINENO: WARNING: Octave version < 2.9.12, disabling octave wrappers" >&5
25758 echo "$as_me: WARNING: Octave version < 2.9.12, disabling octave wrappers" >&2;}
25761 if test x"$with_octave" = "xyes"; then
25762 # if not explicitly forbidden, check for swig also
25763 if test x"$with_swig" = "xauto"; then
25767 # check that we have octave headers
25768 OLD_CPPFLAGS=$CPPFLAGS
25769 CPPFLAGS="$CPPFLAGS -x c++"
25770 if test "${ac_cv_header_octave_oct_h+set}" = set; then
25771 { echo "$as_me:$LINENO: checking for octave/oct.h" >&5
25772 echo $ECHO_N "checking for octave/oct.h... $ECHO_C" >&6; }
25773 if test "${ac_cv_header_octave_oct_h+set}" = set; then
25774 echo $ECHO_N "(cached) $ECHO_C" >&6
25776 { echo "$as_me:$LINENO: result: $ac_cv_header_octave_oct_h" >&5
25777 echo "${ECHO_T}$ac_cv_header_octave_oct_h" >&6; }
25779 # Is the header compilable?
25780 { echo "$as_me:$LINENO: checking octave/oct.h usability" >&5
25781 echo $ECHO_N "checking octave/oct.h usability... $ECHO_C" >&6; }
25782 cat >conftest.$ac_ext <<_ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h. */
25788 $ac_includes_default
25789 #include <octave/oct.h>
25791 rm -f conftest.$ac_objext
25792 if { (ac_try="$ac_compile"
25793 case "(($ac_try" in
25794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25795 *) ac_try_echo=$ac_try;;
25797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25798 (eval "$ac_compile") 2>conftest.er1
25800 grep -v '^ *+' conftest.er1 >conftest.err
25802 cat conftest.err >&5
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); } && {
25805 test -z "$ac_c_werror_flag" ||
25806 test ! -s conftest.err
25807 } && test -s conftest.$ac_objext; then
25808 ac_header_compiler=yes
25810 echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25813 ac_header_compiler=no
25816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25818 echo "${ECHO_T}$ac_header_compiler" >&6; }
25820 # Is the header present?
25821 { echo "$as_me:$LINENO: checking octave/oct.h presence" >&5
25822 echo $ECHO_N "checking octave/oct.h presence... $ECHO_C" >&6; }
25823 cat >conftest.$ac_ext <<_ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h. */
25829 #include <octave/oct.h>
25831 if { (ac_try="$ac_cpp conftest.$ac_ext"
25832 case "(($ac_try" in
25833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834 *) ac_try_echo=$ac_try;;
25836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25839 grep -v '^ *+' conftest.er1 >conftest.err
25841 cat conftest.err >&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); } >/dev/null && {
25844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25845 test ! -s conftest.err
25847 ac_header_preproc=yes
25849 echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25852 ac_header_preproc=no
25855 rm -f conftest.err conftest.$ac_ext
25856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25857 echo "${ECHO_T}$ac_header_preproc" >&6; }
25859 # So? What about this header?
25860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25862 { echo "$as_me:$LINENO: WARNING: octave/oct.h: accepted by the compiler, rejected by the preprocessor!" >&5
25863 echo "$as_me: WARNING: octave/oct.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25864 { echo "$as_me:$LINENO: WARNING: octave/oct.h: proceeding with the compiler's result" >&5
25865 echo "$as_me: WARNING: octave/oct.h: proceeding with the compiler's result" >&2;}
25866 ac_header_preproc=yes
25869 { echo "$as_me:$LINENO: WARNING: octave/oct.h: present but cannot be compiled" >&5
25870 echo "$as_me: WARNING: octave/oct.h: present but cannot be compiled" >&2;}
25871 { echo "$as_me:$LINENO: WARNING: octave/oct.h: check for missing prerequisite headers?" >&5
25872 echo "$as_me: WARNING: octave/oct.h: check for missing prerequisite headers?" >&2;}
25873 { echo "$as_me:$LINENO: WARNING: octave/oct.h: see the Autoconf documentation" >&5
25874 echo "$as_me: WARNING: octave/oct.h: see the Autoconf documentation" >&2;}
25875 { echo "$as_me:$LINENO: WARNING: octave/oct.h: section \"Present But Cannot Be Compiled\"" >&5
25876 echo "$as_me: WARNING: octave/oct.h: section \"Present But Cannot Be Compiled\"" >&2;}
25877 { echo "$as_me:$LINENO: WARNING: octave/oct.h: proceeding with the preprocessor's result" >&5
25878 echo "$as_me: WARNING: octave/oct.h: proceeding with the preprocessor's result" >&2;}
25879 { echo "$as_me:$LINENO: WARNING: octave/oct.h: in the future, the compiler will take precedence" >&5
25880 echo "$as_me: WARNING: octave/oct.h: in the future, the compiler will take precedence" >&2;}
25882 ## -------------------------------------------------------- ##
25883 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25884 ## -------------------------------------------------------- ##
25886 ) | sed "s/^/$as_me: WARNING: /" >&2
25889 { echo "$as_me:$LINENO: checking for octave/oct.h" >&5
25890 echo $ECHO_N "checking for octave/oct.h... $ECHO_C" >&6; }
25891 if test "${ac_cv_header_octave_oct_h+set}" = set; then
25892 echo $ECHO_N "(cached) $ECHO_C" >&6
25894 ac_cv_header_octave_oct_h=$ac_header_preproc
25896 { echo "$as_me:$LINENO: result: $ac_cv_header_octave_oct_h" >&5
25897 echo "${ECHO_T}$ac_cv_header_octave_oct_h" >&6; }
25900 if test $ac_cv_header_octave_oct_h = yes; then
25904 { echo "$as_me:$LINENO: WARNING: Octave headers not found, disabling octave wrappers" >&5
25905 echo "$as_me: WARNING: Octave headers not found, disabling octave wrappers" >&2;}
25912 # restore the old CPPFLAGS
25913 CPPFLAGS=$OLD_CPPFLAGS
25916 { echo "$as_me:$LINENO: checking for Octave arch" >&5
25917 echo $ECHO_N "checking for Octave arch... $ECHO_C" >&6; }
25918 OCTAVE_ARCH=`$OCTAVE -q --eval 'strcat(octave_config_info("canonical_host_type"), "-", octave_config_info("api_version"))'|sed -e 's/ans = //'`
25919 { echo "$as_me:$LINENO: result: $OCTAVE_ARCH" >&5
25920 echo "${ECHO_T}$OCTAVE_ARCH" >&6; }
25921 OCTAVE_ARCH=$OCTAVE_ARCH
25925 # check if ./configure arguments are valid
25926 if test x"$with_octave" = "xno"; then
25929 # if we get here then --with-octave was not called with 'yes','no' or 'auto'
25930 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-octave, continuing assuming 'no'" >&5
25931 echo "$as_me: WARNING: unexpected arguments for option --with-octave, continuing assuming 'no'" >&2;}
25935 if test x"$have_octave" = "xyes"; then
25936 BUILD_OCTAVE_WRAPPERS_TRUE=
25937 BUILD_OCTAVE_WRAPPERS_FALSE='#'
25939 BUILD_OCTAVE_WRAPPERS_TRUE='#'
25940 BUILD_OCTAVE_WRAPPERS_FALSE=
25944 # check for swig itself
25946 if test x"$with_swig" = "xyes"; then
25947 { echo "$as_me:$LINENO: Checking for SWIG" >&5
25948 echo "$as_me: Checking for SWIG" >&6;}
25950 # Python 2.5 requires SWIG >= 1.3.30
25951 prog="import sys, string
25952 # split strings by '.' and convert to numeric. Append some zeros
25953 # because we need at least 4 digits for the hex conversion.
25954 minver = map(int, string.split('have_python25=yes', '.')) + [0, 0, 0]
25956 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
25957 sys.exit(sys.hexversion < minverhex)"
25958 if { echo "$as_me:$LINENO: 2.5 -c "$prog"" >&5
25959 (2.5 -c "$prog") >&5 2>&5
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); }; then
25966 if test x"$have_python25" = "xyes" ; then
25969 # define SWIG as precious variable
25972 # check where to find the swig executable
25973 # Extract the first word of "swig", so it can be a program name with args.
25974 set dummy swig; ac_word=$2
25975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25977 if test "${ac_cv_path_SWIG+set}" = set; then
25978 echo $ECHO_N "(cached) $ECHO_C" >&6
25982 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
25985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25986 for as_dir in $PATH
25989 test -z "$as_dir" && as_dir=.
25990 for ac_exec_ext in '' $ac_executable_extensions; do
25991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25992 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
25993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26003 SWIG=$ac_cv_path_SWIG
26004 if test -n "$SWIG"; then
26005 { echo "$as_me:$LINENO: result: $SWIG" >&5
26006 echo "${ECHO_T}$SWIG" >&6; }
26008 { echo "$as_me:$LINENO: result: no" >&5
26009 echo "${ECHO_T}no" >&6; }
26013 if test -n "$SWIG"; then
26015 # inquire version number
26016 if test -n "$SWIG"; then
26017 { echo "$as_me:$LINENO: checking for SWIG version" >&5
26018 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
26019 SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
26020 { echo "$as_me:$LINENO: result: $SWIG_VERSION" >&5
26021 echo "${ECHO_T}$SWIG_VERSION" >&6; }
26026 # if a user requested a given number, check for that now
26027 if test -n "1.3.30"; then
26028 if test -n "$SWIG_VERSION"; then
26030 # compare version strings
26032 # check if both parameters were given
26033 if test -n "$SWIG_VERSION"; then
26034 if test -n "1.3.30"; then
26037 { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26038 echo "$as_me: error: no required-version supplied" >&2;}
26039 { (exit 1); exit 1; }; }
26042 { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26043 echo "$as_me: error: no given-version supplied" >&2;}
26044 { (exit 1); exit 1; }; }
26047 # recombine version strings
26048 tmp_both=`echo "1.3.30
26049 $SWIG_VERSION" | sed 's/\.0*/./g'`
26051 echo "$tmp_both" | {
26052 # Use POSIX sort first, falling back on traditional sort.
26053 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26054 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26059 if test "x$tmp_both" = "x$tmp_sorted"; then
26060 ac_version_at_least=yes
26062 ac_version_at_least=no
26065 if test x"$ac_version_at_least" = "xyes"; then
26066 # everything is perfect
26069 # version requirement not fulfilled
26070 # we could stop with an error, but instead we just pretend
26071 # that there is no swig installed
26072 { echo "$as_me:$LINENO: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
26073 echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
26077 # there was no version number available from swig
26078 # and because the user has given requirements, we take
26079 # this for a version mismatch
26080 { echo "$as_me:$LINENO: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
26081 echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
26085 # there was no version number available from swig
26086 # but because no requirement was given, just warn and go on
26087 { echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
26088 echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
26092 # just in case someone wants to link swig libraries,
26093 # we try to determine their path
26094 if test -n "$SWIG" ; then
26095 SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
26096 { echo "$as_me:$LINENO: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
26097 echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
26100 # AC_SUBST([SWIG]) -- already done by AC_PATH_PROG([SWIG],[swig])
26107 # define SWIG as precious variable
26110 # check where to find the swig executable
26111 # Extract the first word of "swig", so it can be a program name with args.
26112 set dummy swig; ac_word=$2
26113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26115 if test "${ac_cv_path_SWIG+set}" = set; then
26116 echo $ECHO_N "(cached) $ECHO_C" >&6
26120 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
26123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26124 for as_dir in $PATH
26127 test -z "$as_dir" && as_dir=.
26128 for ac_exec_ext in '' $ac_executable_extensions; do
26129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26130 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
26131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26141 SWIG=$ac_cv_path_SWIG
26142 if test -n "$SWIG"; then
26143 { echo "$as_me:$LINENO: result: $SWIG" >&5
26144 echo "${ECHO_T}$SWIG" >&6; }
26146 { echo "$as_me:$LINENO: result: no" >&5
26147 echo "${ECHO_T}no" >&6; }
26151 if test -n "$SWIG"; then
26153 # inquire version number
26154 if test -n "$SWIG"; then
26155 { echo "$as_me:$LINENO: checking for SWIG version" >&5
26156 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
26157 SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
26158 { echo "$as_me:$LINENO: result: $SWIG_VERSION" >&5
26159 echo "${ECHO_T}$SWIG_VERSION" >&6; }
26164 # if a user requested a given number, check for that now
26165 if test -n "1.2.24"; then
26166 if test -n "$SWIG_VERSION"; then
26168 # compare version strings
26170 # check if both parameters were given
26171 if test -n "$SWIG_VERSION"; then
26172 if test -n "1.2.24"; then
26175 { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26176 echo "$as_me: error: no required-version supplied" >&2;}
26177 { (exit 1); exit 1; }; }
26180 { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26181 echo "$as_me: error: no given-version supplied" >&2;}
26182 { (exit 1); exit 1; }; }
26185 # recombine version strings
26186 tmp_both=`echo "1.2.24
26187 $SWIG_VERSION" | sed 's/\.0*/./g'`
26189 echo "$tmp_both" | {
26190 # Use POSIX sort first, falling back on traditional sort.
26191 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26192 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26197 if test "x$tmp_both" = "x$tmp_sorted"; then
26198 ac_version_at_least=yes
26200 ac_version_at_least=no
26203 if test x"$ac_version_at_least" = "xyes"; then
26204 # everything is perfect
26207 # version requirement not fulfilled
26208 # we could stop with an error, but instead we just pretend
26209 # that there is no swig installed
26210 { echo "$as_me:$LINENO: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
26211 echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
26215 # there was no version number available from swig
26216 # and because the user has given requirements, we take
26217 # this for a version mismatch
26218 { echo "$as_me:$LINENO: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
26219 echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
26223 # there was no version number available from swig
26224 # but because no requirement was given, just warn and go on
26225 { echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
26226 echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
26230 # just in case someone wants to link swig libraries,
26231 # we try to determine their path
26232 if test -n "$SWIG" ; then
26233 SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
26234 { echo "$as_me:$LINENO: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
26235 echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
26238 # AC_SUBST([SWIG]) -- already done by AC_PATH_PROG([SWIG],[swig])
26245 if test -n "$SWIG"; then
26249 if test -z "$SWIG" ; then
26250 { { echo "$as_me:$LINENO: error: swig not found" >&5
26251 echo "$as_me: error: swig not found" >&2;}
26252 { (exit 1); exit 1; }; }
26258 { echo "$as_me:$LINENO: checking for swig multi module support" >&5
26259 echo $ECHO_N "checking for swig multi module support... $ECHO_C" >&6; }
26261 if test -n "$SWIG_VERSION"; then
26264 # check if both parameters were given
26265 if test -n "$SWIG_VERSION"; then
26266 if test -n "1.3.24"; then
26269 { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26270 echo "$as_me: error: no required-version supplied" >&2;}
26271 { (exit 1); exit 1; }; }
26274 { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26275 echo "$as_me: error: no given-version supplied" >&2;}
26276 { (exit 1); exit 1; }; }
26279 # recombine version strings
26280 tmp_both=`echo "1.3.24
26281 $SWIG_VERSION" | sed 's/\.0*/./g'`
26283 echo "$tmp_both" | {
26284 # Use POSIX sort first, falling back on traditional sort.
26285 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26286 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26291 if test "x$tmp_both" = "x$tmp_sorted"; then
26292 ac_version_at_least=yes
26294 ac_version_at_least=no
26297 if test x"$ac_version_at_least" = "xyes"; then
26299 { echo "$as_me:$LINENO: result: always working (SWIG >= 1.3.24)" >&5
26300 echo "${ECHO_T}always working (SWIG >= 1.3.24)" >&6; }
26303 # there were some older versions that need special treatment
26304 # in form of additional command line flags and/or library
26307 # check if both parameters were given
26308 if test -n "$SWIG_VERSION"; then
26309 if test -n "1.3.20"; then
26312 { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26313 echo "$as_me: error: no required-version supplied" >&2;}
26314 { (exit 1); exit 1; }; }
26317 { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26318 echo "$as_me: error: no given-version supplied" >&2;}
26319 { (exit 1); exit 1; }; }
26322 # recombine version strings
26323 tmp_both=`echo "1.3.20
26324 $SWIG_VERSION" | sed 's/\.0*/./g'`
26326 echo "$tmp_both" | {
26327 # Use POSIX sort first, falling back on traditional sort.
26328 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26329 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26334 if test "x$tmp_both" = "x$tmp_sorted"; then
26335 ac_version_at_least=yes
26337 ac_version_at_least=no
26340 if test x"$ac_version_at_least" = "xyes"; then
26341 SWIG="$SWIG -noruntime"
26342 { echo "$as_me:$LINENO: result: interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&5
26343 echo "${ECHO_T}interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&6; }
26346 { echo "$as_me:$LINENO: result: old syntax (SWIG < 1.3.20)" >&5
26347 echo "${ECHO_T}old syntax (SWIG < 1.3.20)" >&6; }
26351 { { echo "$as_me:$LINENO: error: SWIG version number unknown - cannot set flags for multi module support" >&5
26352 echo "$as_me: error: SWIG version number unknown - cannot set flags for multi module support" >&2;}
26353 { (exit 1); exit 1; }; }
26355 # AC_SUBST([SWIG]) -- already done by AC_PATH_SWIG()
26358 # if octave wrappers are enabled, check that swig supports octave
26359 if test x"$with_octave" = "xyes"; then
26360 { echo "$as_me:$LINENO: checking if SWIG supports Octave" >&5
26361 echo $ECHO_N "checking if SWIG supports Octave... $ECHO_C" >&6; }
26362 cat > conftest.i <<EOF
26365 $SWIG -c++ -octave conftest.i || { { echo "$as_me:$LINENO: error: SWIG doesn't support Octave modules" >&5
26366 echo "$as_me: error: SWIG doesn't support Octave modules" >&2;}
26367 { (exit 1); exit 1; }; }
26368 { echo "$as_me:$LINENO: result: yes" >&5
26369 echo "${ECHO_T}yes" >&6; }
26372 # specify the flags for swig
26373 SWIG_OCTAVE_OPT="-octave"
26378 # check for swig python library
26383 test "x" != "xno" || swig_shadow=" -noproxy"
26385 if test -n "$SWIG_VERSION"; then
26387 # check if both parameters were given
26388 if test -n "$SWIG_VERSION"; then
26389 if test -n "1.3.24"; then
26392 { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26393 echo "$as_me: error: no required-version supplied" >&2;}
26394 { (exit 1); exit 1; }; }
26397 { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26398 echo "$as_me: error: no given-version supplied" >&2;}
26399 { (exit 1); exit 1; }; }
26402 # recombine version strings
26403 tmp_both=`echo "1.3.24
26404 $SWIG_VERSION" | sed 's/\.0*/./g'`
26406 echo "$tmp_both" | {
26407 # Use POSIX sort first, falling back on traditional sort.
26408 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26409 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26414 if test "x$tmp_both" = "x$tmp_sorted"; then
26415 ac_version_at_least=yes
26417 ac_version_at_least=no
26420 if test x"$ac_version_at_least" = "xyes"; then
26421 SWIG_PYTHON_LIBS=""
26423 SWIG_PYTHON_LIBS="$SWIG_RUNTIME_LIBS_DIR -lswigpy"
26426 { { echo "$as_me:$LINENO: error: SWIG version number unknown - cannot set python libs" >&5
26427 echo "$as_me: error: SWIG version number unknown - cannot set python libs" >&2;}
26428 { (exit 1); exit 1; }; }
26431 SWIG_PYTHON_OPT="-python$swig_shadow"
26437 if test x"$have_python25" = "xyes"; then
26438 { echo "$as_me:$LINENO: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&5
26439 echo "$as_me: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&2;}
26444 if test x"$with_swig" = "xno"; then
26447 if test x"$with_swig" = "xauto"; then
26448 # no (python) wrapper will be generated
26449 # we don't need to check for SWIG
26452 # if we get here then --with-swig was not called with 'yes','no' or 'auto'
26453 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&5
26454 echo "$as_me: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&2;}
26459 if test x"$have_swig" = "xyes"; then
26460 UPDATE_SWIG_WRAPPERS_TRUE=
26461 UPDATE_SWIG_WRAPPERS_FALSE='#'
26463 UPDATE_SWIG_WRAPPERS_TRUE='#'
26464 UPDATE_SWIG_WRAPPERS_FALSE=
26469 ######################################################################
26474 #AC_ARG_WITH(openmp, dnl
26475 # [--with-openmp=COMPILER use OpenMP supporting compiler [default=no] ],
26476 # [CXXOPENMP="$withval"],[CXXOPENMP="no"])
26477 #if test "$CXXOPENMP" = "no"; then
26481 #AC_SUBST(CXXOPENMP)
26485 ac_config_files="$ac_config_files Makefile opencv.pc opencv.spec docs/Makefile data/Makefile cxcore/Makefile cxcore/include/Makefile cxcore/src/Makefile cv/Makefile cv/include/Makefile cv/src/Makefile cvaux/Makefile cvaux/include/Makefile cvaux/src/Makefile ml/Makefile ml/include/Makefile ml/src/Makefile otherlibs/Makefile otherlibs/highgui/Makefile apps/Makefile apps/haartraining/Makefile apps/haartraining/include/Makefile apps/haartraining/src/Makefile interfaces/Makefile interfaces/swig/Makefile interfaces/swig/filtered/Makefile interfaces/swig/general/Makefile interfaces/swig/python/Makefile interfaces/swig/octave/Makefile tests/Makefile tests/python/Makefile tests/octave/Makefile tests/cv/Makefile tests/cv/src/Makefile tests/cxts/Makefile tests/cxcore/Makefile tests/cxcore/src/Makefile utils/Makefile samples/Makefile samples/c/Makefile samples/python/Makefile samples/octave/Makefile"
26488 cat >confcache <<\_ACEOF
26489 # This file is a shell script that caches the results of configure
26490 # tests run on this system so they can be shared between configure
26491 # scripts and configure runs, see configure's option --config-cache.
26492 # It is not useful on other systems. If it contains results you don't
26493 # want to keep, you may remove or edit it.
26495 # config.status only pays attention to the cache file if you give it
26496 # the --recheck option to rerun configure.
26498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26500 # following values.
26504 # The following way of writing the cache mishandles newlines in values,
26505 # but we know of no workaround that is simple, portable, and efficient.
26506 # So, we kill variables containing newlines.
26507 # Ultrix sh set writes to stderr and can't be redirected directly,
26508 # and sets the high bit in the cache file unless we assign to the vars.
26510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26511 eval ac_val=\$$ac_var
26515 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26516 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26519 _ | IFS | as_nl) ;; #(
26520 *) $as_unset $ac_var ;;
26526 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26527 *${as_nl}ac_space=\ *)
26528 # `set' does not quote correctly, so add quotes (double-quote
26529 # substitution turns \\\\ into \\, and sed turns \\ into \).
26532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26535 # `set' quotes correctly as required by POSIX, so do not add quotes.
26536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26549 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26550 if test -w "$cache_file"; then
26551 test "x$cache_file" != "x/dev/null" &&
26552 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26553 echo "$as_me: updating cache $cache_file" >&6;}
26554 cat confcache >$cache_file
26556 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26557 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26563 # Let make expand exec_prefix.
26564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26566 DEFS=-DHAVE_CONFIG_H
26570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26571 # 1. Remove the extension, and $U if already installed.
26572 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26573 ac_i=`echo "$ac_i" | sed "$ac_script"`
26574 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26575 # will be set to the directory where LIBOBJS objects are built.
26576 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26577 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26579 LIBOBJS=$ac_libobjs
26581 LTLIBOBJS=$ac_ltlibobjs
26584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26585 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26586 Usually this means the macro was only invoked conditionally." >&5
26587 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26588 Usually this means the macro was only invoked conditionally." >&2;}
26589 { (exit 1); exit 1; }; }
26591 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26592 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26593 Usually this means the macro was only invoked conditionally." >&5
26594 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26595 Usually this means the macro was only invoked conditionally." >&2;}
26596 { (exit 1); exit 1; }; }
26598 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26599 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26600 Usually this means the macro was only invoked conditionally." >&5
26601 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26602 Usually this means the macro was only invoked conditionally." >&2;}
26603 { (exit 1); exit 1; }; }
26605 if test -z "${BUILD_APPS_TRUE}" && test -z "${BUILD_APPS_FALSE}"; then
26606 { { echo "$as_me:$LINENO: error: conditional \"BUILD_APPS\" was never defined.
26607 Usually this means the macro was only invoked conditionally." >&5
26608 echo "$as_me: error: conditional \"BUILD_APPS\" was never defined.
26609 Usually this means the macro was only invoked conditionally." >&2;}
26610 { (exit 1); exit 1; }; }
26612 if test -z "${BUILD_CARBON_TRUE}" && test -z "${BUILD_CARBON_FALSE}"; then
26613 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CARBON\" was never defined.
26614 Usually this means the macro was only invoked conditionally." >&5
26615 echo "$as_me: error: conditional \"BUILD_CARBON\" was never defined.
26616 Usually this means the macro was only invoked conditionally." >&2;}
26617 { (exit 1); exit 1; }; }
26619 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
26620 { { echo "$as_me:$LINENO: error: conditional \"BUILD_GTK\" was never defined.
26621 Usually this means the macro was only invoked conditionally." >&5
26622 echo "$as_me: error: conditional \"BUILD_GTK\" was never defined.
26623 Usually this means the macro was only invoked conditionally." >&2;}
26624 { (exit 1); exit 1; }; }
26626 if test -z "${BUILD_QUICKTIME_TRUE}" && test -z "${BUILD_QUICKTIME_FALSE}"; then
26627 { { echo "$as_me:$LINENO: error: conditional \"BUILD_QUICKTIME\" was never defined.
26628 Usually this means the macro was only invoked conditionally." >&5
26629 echo "$as_me: error: conditional \"BUILD_QUICKTIME\" was never defined.
26630 Usually this means the macro was only invoked conditionally." >&2;}
26631 { (exit 1); exit 1; }; }
26633 if test -z "${BUILD_GSTREAMER_TRUE}" && test -z "${BUILD_GSTREAMER_FALSE}"; then
26634 { { echo "$as_me:$LINENO: error: conditional \"BUILD_GSTREAMER\" was never defined.
26635 Usually this means the macro was only invoked conditionally." >&5
26636 echo "$as_me: error: conditional \"BUILD_GSTREAMER\" was never defined.
26637 Usually this means the macro was only invoked conditionally." >&2;}
26638 { (exit 1); exit 1; }; }
26640 if test -z "${BUILD_XINE_TRUE}" && test -z "${BUILD_XINE_FALSE}"; then
26641 { { echo "$as_me:$LINENO: error: conditional \"BUILD_XINE\" was never defined.
26642 Usually this means the macro was only invoked conditionally." >&5
26643 echo "$as_me: error: conditional \"BUILD_XINE\" was never defined.
26644 Usually this means the macro was only invoked conditionally." >&2;}
26645 { (exit 1); exit 1; }; }
26647 if test -z "${BUILD_FFMPEG_TRUE}" && test -z "${BUILD_FFMPEG_FALSE}"; then
26648 { { echo "$as_me:$LINENO: error: conditional \"BUILD_FFMPEG\" was never defined.
26649 Usually this means the macro was only invoked conditionally." >&5
26650 echo "$as_me: error: conditional \"BUILD_FFMPEG\" was never defined.
26651 Usually this means the macro was only invoked conditionally." >&2;}
26652 { (exit 1); exit 1; }; }
26654 if test -z "${BUILD_DC1394_TRUE}" && test -z "${BUILD_DC1394_FALSE}"; then
26655 { { echo "$as_me:$LINENO: error: conditional \"BUILD_DC1394\" was never defined.
26656 Usually this means the macro was only invoked conditionally." >&5
26657 echo "$as_me: error: conditional \"BUILD_DC1394\" was never defined.
26658 Usually this means the macro was only invoked conditionally." >&2;}
26659 { (exit 1); exit 1; }; }
26661 if test -z "${BUILD_V4L_TRUE}" && test -z "${BUILD_V4L_FALSE}"; then
26662 { { echo "$as_me:$LINENO: error: conditional \"BUILD_V4L\" was never defined.
26663 Usually this means the macro was only invoked conditionally." >&5
26664 echo "$as_me: error: conditional \"BUILD_V4L\" was never defined.
26665 Usually this means the macro was only invoked conditionally." >&2;}
26666 { (exit 1); exit 1; }; }
26668 if test -z "${BUILD_IMAGEIO_TRUE}" && test -z "${BUILD_IMAGEIO_FALSE}"; then
26669 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAGEIO\" was never defined.
26670 Usually this means the macro was only invoked conditionally." >&5
26671 echo "$as_me: error: conditional \"BUILD_IMAGEIO\" was never defined.
26672 Usually this means the macro was only invoked conditionally." >&2;}
26673 { (exit 1); exit 1; }; }
26675 if test -z "${BUILD_PYTHON_WRAPPERS_TRUE}" && test -z "${BUILD_PYTHON_WRAPPERS_FALSE}"; then
26676 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PYTHON_WRAPPERS\" was never defined.
26677 Usually this means the macro was only invoked conditionally." >&5
26678 echo "$as_me: error: conditional \"BUILD_PYTHON_WRAPPERS\" was never defined.
26679 Usually this means the macro was only invoked conditionally." >&2;}
26680 { (exit 1); exit 1; }; }
26682 if test -z "${BUILD_OCTAVE_WRAPPERS_TRUE}" && test -z "${BUILD_OCTAVE_WRAPPERS_FALSE}"; then
26683 { { echo "$as_me:$LINENO: error: conditional \"BUILD_OCTAVE_WRAPPERS\" was never defined.
26684 Usually this means the macro was only invoked conditionally." >&5
26685 echo "$as_me: error: conditional \"BUILD_OCTAVE_WRAPPERS\" was never defined.
26686 Usually this means the macro was only invoked conditionally." >&2;}
26687 { (exit 1); exit 1; }; }
26689 if test -z "${UPDATE_SWIG_WRAPPERS_TRUE}" && test -z "${UPDATE_SWIG_WRAPPERS_FALSE}"; then
26690 { { echo "$as_me:$LINENO: error: conditional \"UPDATE_SWIG_WRAPPERS\" was never defined.
26691 Usually this means the macro was only invoked conditionally." >&5
26692 echo "$as_me: error: conditional \"UPDATE_SWIG_WRAPPERS\" was never defined.
26693 Usually this means the macro was only invoked conditionally." >&2;}
26694 { (exit 1); exit 1; }; }
26697 : ${CONFIG_STATUS=./config.status}
26698 ac_clean_files_save=$ac_clean_files
26699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26700 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26701 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26702 cat >$CONFIG_STATUS <<_ACEOF
26704 # Generated by $as_me.
26705 # Run this file to recreate the current configuration.
26706 # Compiler output produced by configure, useful for debugging
26707 # configure, is in config.log if it exists.
26710 ac_cs_recheck=false
26712 SHELL=\${CONFIG_SHELL-$SHELL}
26715 cat >>$CONFIG_STATUS <<\_ACEOF
26716 ## --------------------- ##
26717 ## M4sh Initialization. ##
26718 ## --------------------- ##
26720 # Be more Bourne compatible
26721 DUALCASE=1; export DUALCASE # for MKS sh
26722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26725 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26726 # is contrary to our usage. Disable this feature.
26727 alias -g '${1+"$@"}'='"$@"'
26728 setopt NO_GLOB_SUBST
26730 case `(set -o) 2>/dev/null` in
26731 *posix*) set -o posix ;;
26740 # Avoid depending upon Character Ranges.
26741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26744 as_cr_digits='0123456789'
26745 as_cr_alnum=$as_cr_Letters$as_cr_digits
26747 # The user is always right.
26748 if test "${PATH_SEPARATOR+set}" != set; then
26749 echo "#! /bin/sh" >conf$$.sh
26750 echo "exit 0" >>conf$$.sh
26752 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26760 # Support unset when possible.
26761 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26769 # We need space, tab and new line, in precisely that order. Quoting is
26770 # there to prevent editors from complaining about space-tab.
26771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26772 # splitting by setting IFS to empty value.)
26777 # Find who we are. Look in the path if we contain no directory separator.
26779 *[\\/]* ) as_myself=$0 ;;
26780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26781 for as_dir in $PATH
26784 test -z "$as_dir" && as_dir=.
26785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26791 # We did not find ourselves, most probably we were run as `sh COMMAND'
26792 # in which case we are not to be found in the path.
26793 if test "x$as_myself" = x; then
26796 if test ! -f "$as_myself"; then
26797 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26798 { (exit 1); exit 1; }
26801 # Work around bugs in pre-3.0 UWIN ksh.
26802 for as_var in ENV MAIL MAILPATH
26803 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26811 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26812 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26813 LC_TELEPHONE LC_TIME
26815 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26816 eval $as_var=C; export $as_var
26818 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26822 # Required to use basename.
26823 if expr a : '\(a\)' >/dev/null 2>&1 &&
26824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26831 as_basename=basename
26837 # Name of the executable.
26838 as_me=`$as_basename -- "$0" ||
26839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26840 X"$0" : 'X\(//\)$' \| \
26841 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26843 sed '/^.*\/\([^/][^/]*\)\/*$/{
26862 as_lineno_1=$LINENO
26863 as_lineno_2=$LINENO
26864 test "x$as_lineno_1" != "x$as_lineno_2" &&
26865 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26867 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26868 # uniformly replaced by the line number. The first 'sed' inserts a
26869 # line-number line after each line using $LINENO; the second 'sed'
26870 # does the real work. The second script uses 'N' to pair each
26871 # line-number line with the line containing $LINENO, and appends
26872 # trailing '-' during substitution so that $LINENO is not a special
26873 # case at line end.
26874 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26875 # scripts with optimization help from Paolo Bonzini. Blame Lee
26876 # E. McMahon (1931-1989) for sed's syntax. :-)
26888 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26891 ' >$as_me.lineno &&
26892 chmod +x "$as_me.lineno" ||
26893 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26894 { (exit 1); exit 1; }; }
26896 # Don't try to exec as it changes $[0], causing all sort of problems
26897 # (the dirname of $[0] is not the place where we might find the
26898 # original and so on. Autoconf is especially sensitive to this).
26899 . "./$as_me.lineno"
26900 # Exit status is that of the last command.
26905 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26911 ECHO_C= ECHO_N= ECHO_T=
26912 case `echo -n x` in
26914 case `echo 'x\c'` in
26915 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26922 if expr a : '\(a\)' >/dev/null 2>&1 &&
26923 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26929 rm -f conf$$ conf$$.exe conf$$.file
26930 if test -d conf$$.dir; then
26931 rm -f conf$$.dir/conf$$.file
26937 if ln -s conf$$.file conf$$ 2>/dev/null; then
26939 # ... but there are two gotchas:
26940 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26941 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26942 # In both cases, we have to default to `cp -p'.
26943 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26945 elif ln conf$$.file conf$$ 2>/dev/null; then
26950 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26951 rmdir conf$$.dir 2>/dev/null
26953 if mkdir -p . 2>/dev/null; then
26956 test -d ./-p && rmdir ./-p
26960 if test -x / >/dev/null 2>&1; then
26961 as_test_x='test -x'
26963 if ls -dL / >/dev/null 2>&1; then
26970 if test -d "$1"; then
26976 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26977 ???[sx]*):;;*)false;;esac;fi
26981 as_executable_p=$as_test_x
26983 # Sed expression to map a string onto a valid CPP name.
26984 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26986 # Sed expression to map a string onto a valid variable name.
26987 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26992 # Save the log message, to keep $[0] and so on meaningful, and to
26993 # report actual input values of CONFIG_FILES etc. instead of their
26994 # values after options handling.
26996 This file was extended by opencv $as_me 1.1.0, which was
26997 generated by GNU Autoconf 2.61. Invocation command line was
26999 CONFIG_FILES = $CONFIG_FILES
27000 CONFIG_HEADERS = $CONFIG_HEADERS
27001 CONFIG_LINKS = $CONFIG_LINKS
27002 CONFIG_COMMANDS = $CONFIG_COMMANDS
27005 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27010 cat >>$CONFIG_STATUS <<_ACEOF
27011 # Files that config.status was made for.
27012 config_files="$ac_config_files"
27013 config_headers="$ac_config_headers"
27014 config_commands="$ac_config_commands"
27018 cat >>$CONFIG_STATUS <<\_ACEOF
27020 \`$as_me' instantiates files from templates according to the
27021 current configuration.
27023 Usage: $0 [OPTIONS] [FILE]...
27025 -h, --help print this help, then exit
27026 -V, --version print version number and configuration settings, then exit
27027 -q, --quiet do not print progress messages
27028 -d, --debug don't remove temporary files
27029 --recheck update $as_me by reconfiguring in the same conditions
27030 --file=FILE[:TEMPLATE]
27031 instantiate the configuration file FILE
27032 --header=FILE[:TEMPLATE]
27033 instantiate the configuration header FILE
27035 Configuration files:
27038 Configuration headers:
27041 Configuration commands:
27044 Report bugs to <bug-autoconf@gnu.org>."
27047 cat >>$CONFIG_STATUS <<_ACEOF
27049 opencv config.status 1.1.0
27050 configured by $0, generated by GNU Autoconf 2.61,
27051 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27053 Copyright (C) 2006 Free Software Foundation, Inc.
27054 This config.status script is free software; the Free Software Foundation
27055 gives unlimited permission to copy, distribute and modify it."
27063 cat >>$CONFIG_STATUS <<\_ACEOF
27064 # If no file are specified by the user, then we need to provide default
27065 # value. By we need to know if files were specified by the user.
27071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27072 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27083 # Handling of the options.
27084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27087 echo "$ac_cs_version"; exit ;;
27088 --debug | --debu | --deb | --de | --d | -d )
27090 --file | --fil | --fi | --f )
27092 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27093 ac_need_defaults=false;;
27094 --header | --heade | --head | --hea )
27096 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27097 ac_need_defaults=false;;
27099 # Conflict between --help and --header
27100 { echo "$as_me: error: ambiguous option: $1
27101 Try \`$0 --help' for more information." >&2
27102 { (exit 1); exit 1; }; };;
27103 --help | --hel | -h )
27104 echo "$ac_cs_usage"; exit ;;
27105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27109 # This is an error.
27110 -*) { echo "$as_me: error: unrecognized option: $1
27111 Try \`$0 --help' for more information." >&2
27112 { (exit 1); exit 1; }; } ;;
27114 *) ac_config_targets="$ac_config_targets $1"
27115 ac_need_defaults=false ;;
27121 ac_configure_extra_args=
27123 if $ac_cs_silent; then
27125 ac_configure_extra_args="$ac_configure_extra_args --silent"
27129 cat >>$CONFIG_STATUS <<_ACEOF
27130 if \$ac_cs_recheck; then
27131 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27132 CONFIG_SHELL=$SHELL
27133 export CONFIG_SHELL
27134 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27138 cat >>$CONFIG_STATUS <<\_ACEOF
27142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27143 ## Running $as_me. ##
27149 cat >>$CONFIG_STATUS <<_ACEOF
27153 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27157 cat >>$CONFIG_STATUS <<\_ACEOF
27159 # Handling of arguments.
27160 for ac_config_target in $ac_config_targets
27162 case $ac_config_target in
27163 "cvconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS cvconfig.h" ;;
27164 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27165 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27166 "opencv.pc") CONFIG_FILES="$CONFIG_FILES opencv.pc" ;;
27167 "opencv.spec") CONFIG_FILES="$CONFIG_FILES opencv.spec" ;;
27168 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
27169 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
27170 "cxcore/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/Makefile" ;;
27171 "cxcore/include/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/include/Makefile" ;;
27172 "cxcore/src/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/src/Makefile" ;;
27173 "cv/Makefile") CONFIG_FILES="$CONFIG_FILES cv/Makefile" ;;
27174 "cv/include/Makefile") CONFIG_FILES="$CONFIG_FILES cv/include/Makefile" ;;
27175 "cv/src/Makefile") CONFIG_FILES="$CONFIG_FILES cv/src/Makefile" ;;
27176 "cvaux/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/Makefile" ;;
27177 "cvaux/include/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/include/Makefile" ;;
27178 "cvaux/src/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/src/Makefile" ;;
27179 "ml/Makefile") CONFIG_FILES="$CONFIG_FILES ml/Makefile" ;;
27180 "ml/include/Makefile") CONFIG_FILES="$CONFIG_FILES ml/include/Makefile" ;;
27181 "ml/src/Makefile") CONFIG_FILES="$CONFIG_FILES ml/src/Makefile" ;;
27182 "otherlibs/Makefile") CONFIG_FILES="$CONFIG_FILES otherlibs/Makefile" ;;
27183 "otherlibs/highgui/Makefile") CONFIG_FILES="$CONFIG_FILES otherlibs/highgui/Makefile" ;;
27184 "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
27185 "apps/haartraining/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/Makefile" ;;
27186 "apps/haartraining/include/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/include/Makefile" ;;
27187 "apps/haartraining/src/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/src/Makefile" ;;
27188 "interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/Makefile" ;;
27189 "interfaces/swig/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/Makefile" ;;
27190 "interfaces/swig/filtered/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/filtered/Makefile" ;;
27191 "interfaces/swig/general/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/general/Makefile" ;;
27192 "interfaces/swig/python/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/python/Makefile" ;;
27193 "interfaces/swig/octave/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/octave/Makefile" ;;
27194 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27195 "tests/python/Makefile") CONFIG_FILES="$CONFIG_FILES tests/python/Makefile" ;;
27196 "tests/octave/Makefile") CONFIG_FILES="$CONFIG_FILES tests/octave/Makefile" ;;
27197 "tests/cv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cv/Makefile" ;;
27198 "tests/cv/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cv/src/Makefile" ;;
27199 "tests/cxts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxts/Makefile" ;;
27200 "tests/cxcore/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxcore/Makefile" ;;
27201 "tests/cxcore/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxcore/src/Makefile" ;;
27202 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27203 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
27204 "samples/c/Makefile") CONFIG_FILES="$CONFIG_FILES samples/c/Makefile" ;;
27205 "samples/python/Makefile") CONFIG_FILES="$CONFIG_FILES samples/python/Makefile" ;;
27206 "samples/octave/Makefile") CONFIG_FILES="$CONFIG_FILES samples/octave/Makefile" ;;
27208 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27209 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27210 { (exit 1); exit 1; }; };;
27215 # If the user did not use the arguments to specify the items to instantiate,
27216 # then the envvar interface is used. Set only those that are not.
27217 # We use the long form for the default assignment because of an extremely
27218 # bizarre bug on SunOS 4.1.3.
27219 if $ac_need_defaults; then
27220 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27221 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27222 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27225 # Have a temporary directory for convenience. Make it in the build tree
27226 # simply because there is no reason against having it here, and in addition,
27227 # creating and moving files from /tmp can sometimes cause problems.
27228 # Hook for its removal unless debugging.
27229 # Note that there is a small window in which the directory will not be cleaned:
27230 # after its creation but before its name has been assigned to `$tmp'.
27234 trap 'exit_status=$?
27235 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27237 trap '{ (exit 1); exit 1; }' 1 2 13 15
27239 # Create a (secure) tmp directory for tmp files.
27242 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27243 test -n "$tmp" && test -d "$tmp"
27246 tmp=./conf$$-$RANDOM
27247 (umask 077 && mkdir "$tmp")
27250 echo "$me: cannot create a temporary directory in ." >&2
27251 { (exit 1); exit 1; }
27255 # Set up the sed scripts for CONFIG_FILES section.
27258 # No need to generate the scripts if there are no CONFIG_FILES.
27259 # This happens for instance when ./config.status config.h
27260 if test -n "$CONFIG_FILES"; then
27267 for ac_last_try in false false false false false :; do
27268 cat >conf$$subs.sed <<_ACEOF
27269 SHELL!$SHELL$ac_delim
27270 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27271 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27272 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27273 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27274 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27275 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27276 exec_prefix!$exec_prefix$ac_delim
27277 prefix!$prefix$ac_delim
27278 program_transform_name!$program_transform_name$ac_delim
27279 bindir!$bindir$ac_delim
27280 sbindir!$sbindir$ac_delim
27281 libexecdir!$libexecdir$ac_delim
27282 datarootdir!$datarootdir$ac_delim
27283 datadir!$datadir$ac_delim
27284 sysconfdir!$sysconfdir$ac_delim
27285 sharedstatedir!$sharedstatedir$ac_delim
27286 localstatedir!$localstatedir$ac_delim
27287 includedir!$includedir$ac_delim
27288 oldincludedir!$oldincludedir$ac_delim
27289 docdir!$docdir$ac_delim
27290 infodir!$infodir$ac_delim
27291 htmldir!$htmldir$ac_delim
27292 dvidir!$dvidir$ac_delim
27293 pdfdir!$pdfdir$ac_delim
27294 psdir!$psdir$ac_delim
27295 libdir!$libdir$ac_delim
27296 localedir!$localedir$ac_delim
27297 mandir!$mandir$ac_delim
27298 DEFS!$DEFS$ac_delim
27299 ECHO_C!$ECHO_C$ac_delim
27300 ECHO_N!$ECHO_N$ac_delim
27301 ECHO_T!$ECHO_T$ac_delim
27302 LIBS!$LIBS$ac_delim
27303 build_alias!$build_alias$ac_delim
27304 host_alias!$host_alias$ac_delim
27305 target_alias!$target_alias$ac_delim
27306 build!$build$ac_delim
27307 build_cpu!$build_cpu$ac_delim
27308 build_vendor!$build_vendor$ac_delim
27309 build_os!$build_os$ac_delim
27310 host!$host$ac_delim
27311 host_cpu!$host_cpu$ac_delim
27312 host_vendor!$host_vendor$ac_delim
27313 host_os!$host_os$ac_delim
27314 target!$target$ac_delim
27315 target_cpu!$target_cpu$ac_delim
27316 target_vendor!$target_vendor$ac_delim
27317 target_os!$target_os$ac_delim
27318 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27319 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27320 INSTALL_DATA!$INSTALL_DATA$ac_delim
27321 am__isrc!$am__isrc$ac_delim
27322 CYGPATH_W!$CYGPATH_W$ac_delim
27323 PACKAGE!$PACKAGE$ac_delim
27324 VERSION!$VERSION$ac_delim
27325 ACLOCAL!$ACLOCAL$ac_delim
27326 AUTOCONF!$AUTOCONF$ac_delim
27327 AUTOMAKE!$AUTOMAKE$ac_delim
27328 AUTOHEADER!$AUTOHEADER$ac_delim
27329 MAKEINFO!$MAKEINFO$ac_delim
27330 install_sh!$install_sh$ac_delim
27331 STRIP!$STRIP$ac_delim
27332 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27333 mkdir_p!$mkdir_p$ac_delim
27335 SET_MAKE!$SET_MAKE$ac_delim
27336 am__leading_dot!$am__leading_dot$ac_delim
27337 AMTAR!$AMTAR$ac_delim
27338 am__tar!$am__tar$ac_delim
27339 am__untar!$am__untar$ac_delim
27340 MMAJOR!$MMAJOR$ac_delim
27341 MMINOR!$MMINOR$ac_delim
27342 MSUBMINOR!$MSUBMINOR$ac_delim
27343 LT_VERSION!$LT_VERSION$ac_delim
27345 CXXFLAGS!$CXXFLAGS$ac_delim
27346 LDFLAGS!$LDFLAGS$ac_delim
27347 CPPFLAGS!$CPPFLAGS$ac_delim
27348 ac_ct_CXX!$ac_ct_CXX$ac_delim
27349 EXEEXT!$EXEEXT$ac_delim
27350 OBJEXT!$OBJEXT$ac_delim
27351 DEPDIR!$DEPDIR$ac_delim
27352 am__include!$am__include$ac_delim
27353 am__quote!$am__quote$ac_delim
27354 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27355 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27356 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27357 CXXDEPMODE!$CXXDEPMODE$ac_delim
27358 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27359 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27361 CFLAGS!$CFLAGS$ac_delim
27362 ac_ct_CC!$ac_ct_CC$ac_delim
27363 CCDEPMODE!$CCDEPMODE$ac_delim
27364 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27365 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27368 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27370 elif $ac_last_try; then
27371 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27372 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27373 { (exit 1); exit 1; }; }
27375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27379 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27380 if test -n "$ac_eof"; then
27381 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27382 ac_eof=`expr $ac_eof + 1`
27385 cat >>$CONFIG_STATUS <<_ACEOF
27386 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27390 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27391 s/^/s,@/; s/!/@,|#_!!_#|/
27394 s/'"$ac_delim"'$/,g/; t
27396 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27397 ' >>$CONFIG_STATUS <conf$$subs.sed
27398 rm -f conf$$subs.sed
27399 cat >>$CONFIG_STATUS <<_ACEOF
27405 for ac_last_try in false false false false false :; do
27406 cat >conf$$subs.sed <<_ACEOF
27409 GREP!$GREP$ac_delim
27410 EGREP!$EGREP$ac_delim
27411 LN_S!$LN_S$ac_delim
27412 ECHO!$ECHO$ac_delim
27414 RANLIB!$RANLIB$ac_delim
27415 DLLTOOL!$DLLTOOL$ac_delim
27417 OBJDUMP!$OBJDUMP$ac_delim
27418 CXXCPP!$CXXCPP$ac_delim
27420 FFLAGS!$FFLAGS$ac_delim
27421 ac_ct_F77!$ac_ct_F77$ac_delim
27422 LIBTOOL!$LIBTOOL$ac_delim
27423 BUILD_APPS_TRUE!$BUILD_APPS_TRUE$ac_delim
27424 BUILD_APPS_FALSE!$BUILD_APPS_FALSE$ac_delim
27425 PY_CXXFLAGS!$PY_CXXFLAGS$ac_delim
27426 OCT_CXXFLAGS!$OCT_CXXFLAGS$ac_delim
27427 DEF_CXXFLAGS!$DEF_CXXFLAGS$ac_delim
27428 ALLOCA!$ALLOCA$ac_delim
27429 CARBON_CFLAGS!$CARBON_CFLAGS$ac_delim
27430 CARBON_LIBS!$CARBON_LIBS$ac_delim
27431 BUILD_CARBON_TRUE!$BUILD_CARBON_TRUE$ac_delim
27432 BUILD_CARBON_FALSE!$BUILD_CARBON_FALSE$ac_delim
27433 PKG_CONFIG!$PKG_CONFIG$ac_delim
27434 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
27435 GTK_LIBS!$GTK_LIBS$ac_delim
27436 GTHREAD_CFLAGS!$GTHREAD_CFLAGS$ac_delim
27437 GTHREAD_LIBS!$GTHREAD_LIBS$ac_delim
27438 BUILD_GTK_TRUE!$BUILD_GTK_TRUE$ac_delim
27439 BUILD_GTK_FALSE!$BUILD_GTK_FALSE$ac_delim
27440 QUICKTIME_CFLAGS!$QUICKTIME_CFLAGS$ac_delim
27441 QUICKTIME_LIBS!$QUICKTIME_LIBS$ac_delim
27442 BUILD_QUICKTIME_TRUE!$BUILD_QUICKTIME_TRUE$ac_delim
27443 BUILD_QUICKTIME_FALSE!$BUILD_QUICKTIME_FALSE$ac_delim
27444 GSTREAMER_CFLAGS!$GSTREAMER_CFLAGS$ac_delim
27445 GSTREAMER_LIBS!$GSTREAMER_LIBS$ac_delim
27446 BUILD_GSTREAMER_TRUE!$BUILD_GSTREAMER_TRUE$ac_delim
27447 BUILD_GSTREAMER_FALSE!$BUILD_GSTREAMER_FALSE$ac_delim
27448 XINE_LIBS!$XINE_LIBS$ac_delim
27449 BUILD_XINE_TRUE!$BUILD_XINE_TRUE$ac_delim
27450 BUILD_XINE_FALSE!$BUILD_XINE_FALSE$ac_delim
27451 FFMPEGLIBS!$FFMPEGLIBS$ac_delim
27452 BUILD_FFMPEG_TRUE!$BUILD_FFMPEG_TRUE$ac_delim
27453 BUILD_FFMPEG_FALSE!$BUILD_FFMPEG_FALSE$ac_delim
27454 IEEE1394LIBS!$IEEE1394LIBS$ac_delim
27455 BUILD_DC1394_TRUE!$BUILD_DC1394_TRUE$ac_delim
27456 BUILD_DC1394_FALSE!$BUILD_DC1394_FALSE$ac_delim
27457 BUILD_V4L_TRUE!$BUILD_V4L_TRUE$ac_delim
27458 BUILD_V4L_FALSE!$BUILD_V4L_FALSE$ac_delim
27459 IMAGELIBS!$IMAGELIBS$ac_delim
27460 BUILD_IMAGEIO_TRUE!$BUILD_IMAGEIO_TRUE$ac_delim
27461 BUILD_IMAGEIO_FALSE!$BUILD_IMAGEIO_FALSE$ac_delim
27462 PYTHON!$PYTHON$ac_delim
27463 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
27464 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
27465 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
27466 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
27467 pythondir!$pythondir$ac_delim
27468 pkgpythondir!$pkgpythondir$ac_delim
27469 pyexecdir!$pyexecdir$ac_delim
27470 pkgpyexecdir!$pkgpyexecdir$ac_delim
27471 PYTHON_CSPEC!$PYTHON_CSPEC$ac_delim
27472 PYTHON_LSPEC!$PYTHON_LSPEC$ac_delim
27473 BUILD_PYTHON_WRAPPERS_TRUE!$BUILD_PYTHON_WRAPPERS_TRUE$ac_delim
27474 BUILD_PYTHON_WRAPPERS_FALSE!$BUILD_PYTHON_WRAPPERS_FALSE$ac_delim
27475 OCTAVE!$OCTAVE$ac_delim
27476 MKOCTFILE!$MKOCTFILE$ac_delim
27477 OCTAVE_ARCH!$OCTAVE_ARCH$ac_delim
27478 BUILD_OCTAVE_WRAPPERS_TRUE!$BUILD_OCTAVE_WRAPPERS_TRUE$ac_delim
27479 BUILD_OCTAVE_WRAPPERS_FALSE!$BUILD_OCTAVE_WRAPPERS_FALSE$ac_delim
27480 SWIG!$SWIG$ac_delim
27481 SWIG_VERSION!$SWIG_VERSION$ac_delim
27482 SWIG_RUNTIME_LIBS_DIR!$SWIG_RUNTIME_LIBS_DIR$ac_delim
27483 SWIG_OCTAVE_OPT!$SWIG_OCTAVE_OPT$ac_delim
27484 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
27485 SWIG_PYTHON_LIBS!$SWIG_PYTHON_LIBS$ac_delim
27486 UPDATE_SWIG_WRAPPERS_TRUE!$UPDATE_SWIG_WRAPPERS_TRUE$ac_delim
27487 UPDATE_SWIG_WRAPPERS_FALSE!$UPDATE_SWIG_WRAPPERS_FALSE$ac_delim
27488 DEBUG!$DEBUG$ac_delim
27489 LIBOBJS!$LIBOBJS$ac_delim
27490 LTLIBOBJS!$LTLIBOBJS$ac_delim
27493 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
27495 elif $ac_last_try; then
27496 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27497 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27498 { (exit 1); exit 1; }; }
27500 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27504 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27505 if test -n "$ac_eof"; then
27506 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27507 ac_eof=`expr $ac_eof + 1`
27510 cat >>$CONFIG_STATUS <<_ACEOF
27511 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27515 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27516 s/^/s,@/; s/!/@,|#_!!_#|/
27519 s/'"$ac_delim"'$/,g/; t
27521 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27522 ' >>$CONFIG_STATUS <conf$$subs.sed
27523 rm -f conf$$subs.sed
27524 cat >>$CONFIG_STATUS <<_ACEOF
27531 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27532 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27533 # trailing colons and then remove the whole line if VPATH becomes empty
27534 # (actually we leave an empty line to preserve line numbers).
27535 if test "x$srcdir" = x.; then
27536 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27537 s/:*\$(srcdir):*/:/
27538 s/:*\${srcdir}:*/:/
27540 s/^\([^=]*=[ ]*\):*/\1/
27546 cat >>$CONFIG_STATUS <<\_ACEOF
27547 fi # test -n "$CONFIG_FILES"
27550 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27553 :[FHLC]) ac_mode=$ac_tag; continue;;
27555 case $ac_mode$ac_tag in
27557 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27558 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27559 { (exit 1); exit 1; }; };;
27560 :[FH]-) ac_tag=-:-;;
27561 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27578 -) ac_f="$tmp/stdin";;
27579 *) # Look for the file first in the build tree, then in the source tree
27580 # (if the path is not absolute). The absolute path cannot be DOS-style,
27581 # because $ac_f cannot contain `:'.
27585 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27587 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27588 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27589 { (exit 1); exit 1; }; };;
27591 ac_file_inputs="$ac_file_inputs $ac_f"
27594 # Let's still pretend it is `configure' which instantiates (i.e., don't
27595 # use $as_me), people would be surprised to read:
27596 # /* config.h. Generated by config.status. */
27597 configure_input="Generated from "`IFS=:
27598 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27599 if test x"$ac_file" != x-; then
27600 configure_input="$ac_file. $configure_input"
27601 { echo "$as_me:$LINENO: creating $ac_file" >&5
27602 echo "$as_me: creating $ac_file" >&6;}
27606 *:-:* | *:-) cat >"$tmp/stdin";;
27611 ac_dir=`$as_dirname -- "$ac_file" ||
27612 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27613 X"$ac_file" : 'X\(//\)[^/]' \| \
27614 X"$ac_file" : 'X\(//\)$' \| \
27615 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27621 /^X\(\/\/\)[^/].*/{
27636 -*) as_dir=./$as_dir;;
27638 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27642 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27643 *) as_qdir=$as_dir;;
27645 as_dirs="'$as_qdir' $as_dirs"
27646 as_dir=`$as_dirname -- "$as_dir" ||
27647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27648 X"$as_dir" : 'X\(//\)[^/]' \| \
27649 X"$as_dir" : 'X\(//\)$' \| \
27650 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27656 /^X\(\/\/\)[^/].*/{
27669 test -d "$as_dir" && break
27671 test -z "$as_dirs" || eval "mkdir $as_dirs"
27672 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27673 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27674 { (exit 1); exit 1; }; }; }
27678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27680 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27681 # A ".." for each directory in $ac_dir_suffix.
27682 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27683 case $ac_top_builddir_sub in
27684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27688 ac_abs_top_builddir=$ac_pwd
27689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27690 # for backward compatibility:
27691 ac_top_builddir=$ac_top_build_prefix
27694 .) # We are building in place.
27696 ac_top_srcdir=$ac_top_builddir_sub
27697 ac_abs_top_srcdir=$ac_pwd ;;
27698 [\\/]* | ?:[\\/]* ) # Absolute name.
27699 ac_srcdir=$srcdir$ac_dir_suffix;
27700 ac_top_srcdir=$srcdir
27701 ac_abs_top_srcdir=$srcdir ;;
27702 *) # Relative name.
27703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27704 ac_top_srcdir=$ac_top_build_prefix$srcdir
27705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27720 ac_MKDIR_P=$MKDIR_P
27722 [\\/$]* | ?:[\\/]* ) ;;
27723 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27727 cat >>$CONFIG_STATUS <<\_ACEOF
27728 # If the template does not know about datarootdir, expand it.
27729 # FIXME: This hack should be removed a few years after 2.60.
27730 ac_datarootdir_hack=; ac_datarootdir_seen=
27732 case `sed -n '/datarootdir/ {
27741 ' $ac_file_inputs` in
27742 *datarootdir*) ac_datarootdir_seen=yes;;
27743 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27744 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27745 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27747 cat >>$CONFIG_STATUS <<_ACEOF
27748 ac_datarootdir_hack='
27749 s&@datadir@&$datadir&g
27750 s&@docdir@&$docdir&g
27751 s&@infodir@&$infodir&g
27752 s&@localedir@&$localedir&g
27753 s&@mandir@&$mandir&g
27754 s&\\\${datarootdir}&$datarootdir&g' ;;
27758 # Neutralize VPATH when `$srcdir' = `.'.
27759 # Shell code in configure.ac might set extrasub.
27760 # FIXME: do we really want to maintain this feature?
27761 cat >>$CONFIG_STATUS <<_ACEOF
27765 cat >>$CONFIG_STATUS <<\_ACEOF
27767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27768 s&@configure_input@&$configure_input&;t t
27769 s&@top_builddir@&$ac_top_builddir_sub&;t t
27770 s&@srcdir@&$ac_srcdir&;t t
27771 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27772 s&@top_srcdir@&$ac_top_srcdir&;t t
27773 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27774 s&@builddir@&$ac_builddir&;t t
27775 s&@abs_builddir@&$ac_abs_builddir&;t t
27776 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27777 s&@INSTALL@&$ac_INSTALL&;t t
27778 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27779 $ac_datarootdir_hack
27780 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27783 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27784 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27785 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27786 which seems to be undefined. Please make sure it is defined." >&5
27787 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27788 which seems to be undefined. Please make sure it is defined." >&2;}
27792 -) cat "$tmp/out"; rm -f "$tmp/out";;
27793 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27802 # Transform confdefs.h into a sed script `conftest.defines', that
27803 # substitutes the proper values into config.h.in to produce config.h.
27804 rm -f conftest.defines conftest.tail
27805 # First, append a space to every undef/define line, to ease matching.
27806 echo 's/$/ /' >conftest.defines
27807 # Then, protect against being on the right side of a sed subst, or in
27808 # an unquoted here document, in config.status. If some macros were
27809 # called several times there might be several #defines for the same
27810 # symbol, which is useless. But do not sort them, since the last
27811 # AC_DEFINE must be honored.
27812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27813 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27814 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27815 # PARAMS is the parameter list in the macro definition--in most cases, it's
27816 # just an empty string.
27817 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27818 ac_dB='\\)[ (].*,\\1define\\2'
27826 s/^[ ]*#[ ]*define[ ][ ]*//
27831 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27832 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27833 ' >>conftest.defines
27835 # Remove the space that was appended to ease matching.
27836 # Then replace #undef with comments. This is necessary, for
27837 # example, in the case of _POSIX_SOURCE, which is predefined and required
27838 # on some systems where configure will not decide to define it.
27839 # (The regexp can be short, since the line contains either #define or #undef.)
27841 s,^[ #]*u.*,/* & */,' >>conftest.defines
27843 # Break up conftest.defines:
27844 ac_max_sed_lines=50
27846 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27847 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27848 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27850 ac_in='$ac_file_inputs'
27851 ac_out='"$tmp/out1"'
27852 ac_nxt='"$tmp/out2"'
27856 # Write a here document:
27857 cat >>$CONFIG_STATUS <<_ACEOF
27858 # First, check the format of the line:
27859 cat >"\$tmp/defines.sed" <<\\CEOF
27860 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27861 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27865 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27867 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27868 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27869 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27870 grep . conftest.tail >/dev/null || break
27871 rm -f conftest.defines
27872 mv conftest.tail conftest.defines
27874 rm -f conftest.defines conftest.tail
27876 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27877 cat >>$CONFIG_STATUS <<\_ACEOF
27878 if test x"$ac_file" != x-; then
27879 echo "/* $configure_input */" >"$tmp/config.h"
27880 cat "$ac_result" >>"$tmp/config.h"
27881 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27882 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27883 echo "$as_me: $ac_file is unchanged" >&6;}
27886 mv "$tmp/config.h" $ac_file
27889 echo "/* $configure_input */"
27893 # Compute $ac_file's index in $config_headers.
27895 for _am_header in $config_headers :; do
27896 case $_am_header in
27897 $ac_file | $ac_file:* )
27900 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27903 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27904 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27905 X$ac_file : 'X\(//\)[^/]' \| \
27906 X$ac_file : 'X\(//\)$' \| \
27907 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27913 /^X\(\/\/\)[^/].*/{
27925 s/.*/./; q'`/stamp-h$_am_stamp_count
27928 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27929 echo "$as_me: executing $ac_file commands" >&6;}
27934 case $ac_file$ac_mode in
27935 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27936 # Strip MF so we end up with the name of the file.
27937 mf=`echo "$mf" | sed -e 's/:.*$//'`
27938 # Check whether this is an Automake generated Makefile or not.
27939 # We used to match only the files named `Makefile.in', but
27940 # some people rename them; so instead we look at the file content.
27941 # Grep'ing the first line is not enough: some people post-process
27942 # each Makefile.in and add a new line on top of each file to say so.
27943 # Grep'ing the whole file is not good either: AIX grep has a line
27944 # limit of 2048, but all sed's we know have understand at least 4000.
27945 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27946 dirpart=`$as_dirname -- "$mf" ||
27947 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27948 X"$mf" : 'X\(//\)[^/]' \| \
27949 X"$mf" : 'X\(//\)$' \| \
27950 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27956 /^X\(\/\/\)[^/].*/{
27972 # Extract the definition of DEPDIR, am__include, and am__quote
27973 # from the Makefile without running `make'.
27974 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27975 test -z "$DEPDIR" && continue
27976 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27977 test -z "am__include" && continue
27978 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27979 # When using ansi2knr, U may be empty or an underscore; expand it
27980 U=`sed -n 's/^U = //p' < "$mf"`
27981 # Find all dependency output files, they are included files with
27982 # $(DEPDIR) in their names. We invoke sed twice because it is the
27983 # simplest approach to changing $(DEPDIR) to its actual value in the
27985 for file in `sed -n "
27986 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27987 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27988 # Make sure the directory exists.
27989 test -f "$dirpart/$file" && continue
27990 fdir=`$as_dirname -- "$file" ||
27991 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27992 X"$file" : 'X\(//\)[^/]' \| \
27993 X"$file" : 'X\(//\)$' \| \
27994 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28000 /^X\(\/\/\)[^/].*/{
28013 { as_dir=$dirpart/$fdir
28015 -*) as_dir=./$as_dir;;
28017 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28021 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28022 *) as_qdir=$as_dir;;
28024 as_dirs="'$as_qdir' $as_dirs"
28025 as_dir=`$as_dirname -- "$as_dir" ||
28026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28027 X"$as_dir" : 'X\(//\)[^/]' \| \
28028 X"$as_dir" : 'X\(//\)$' \| \
28029 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28035 /^X\(\/\/\)[^/].*/{
28048 test -d "$as_dir" && break
28050 test -z "$as_dirs" || eval "mkdir $as_dirs"
28051 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28052 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28053 { (exit 1); exit 1; }; }; }
28054 # echo "creating $dirpart/$file"
28055 echo '# dummy' > "$dirpart/$file"
28064 { (exit 0); exit 0; }
28066 chmod +x $CONFIG_STATUS
28067 ac_clean_files=$ac_clean_files_save
28070 # configure is writing to config.log, and then calls config.status.
28071 # config.status does its own redirection, appending to config.log.
28072 # Unfortunately, on DOS this fails, as config.log is still kept open
28073 # by configure, so config.status won't be able to write to it; its
28074 # output is simply discarded. So we exec the FD to /dev/null,
28075 # effectively closing config.log, so it can be properly (re)opened and
28076 # appended to by config.status. When coming back to configure, we
28077 # need to make the FD available again.
28078 if test "$no_create" != yes; then
28080 ac_config_status_args=
28081 test "$silent" = yes &&
28082 ac_config_status_args="$ac_config_status_args --quiet"
28084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28087 # would make configure fail if this is the last instruction.
28088 $ac_cs_success || { (exit 1); exit 1; }
28092 { echo "$as_me:$LINENO: result:
28093 General configuration ================================================
28095 CXXFLAGS: ${CXXFLAGS}
28096 DEF_CXXFLAGS: ${DEF_CXXFLAGS}
28097 PY_CXXFLAGS: ${PY_CXXFLAGS}
28098 OCT_CXXFLAGS: ${OCT_CXXFLAGS}
28100 Install path: ${prefix}
28102 HighGUI configuration ================================================
28104 Windowing system --------------
28105 Use Carbon / Mac OS X: ${have_carbon}
28106 Use gtk+ 2.x: ${have_gtk}
28107 Use gthread: ${have_gthread}
28109 Image I/O ---------------------
28110 Use ImageIO / Mac OS X: ${have_imageio}
28111 Use libjpeg: ${have_jpeg}
28112 Use zlib: ${have_zlib}
28113 Use libpng: ${have_png}
28114 Use libtiff: ${have_tiff}
28115 Use libjasper: ${have_jasper}
28116 Use libIlmImf: ${have_ilmimf}
28118 Video I/O ---------------------
28119 Use QuickTime / Mac OS X: ${have_quicktime}
28120 Use xine: ${have_xine}
28121 Use gstreamer: ${have_gstreamer}
28122 Use ffmpeg: ${have_ffmpeg}
28123 Use dc1394 & raw1394: ${have_dc1394}
28124 Use v4l: ${have_v4l}
28125 Use v4l2: ${have_v4l2}
28127 Wrappers for other languages =========================================
28129 Python ${have_python}
28130 Octave ${have_octave}
28132 Additional build settings ============================================
28133 Build demo apps ${enable_apps}
28138 General configuration ================================================
28140 CXXFLAGS: ${CXXFLAGS}
28141 DEF_CXXFLAGS: ${DEF_CXXFLAGS}
28142 PY_CXXFLAGS: ${PY_CXXFLAGS}
28143 OCT_CXXFLAGS: ${OCT_CXXFLAGS}
28145 Install path: ${prefix}
28147 HighGUI configuration ================================================
28149 Windowing system --------------
28150 Use Carbon / Mac OS X: ${have_carbon}
28151 Use gtk+ 2.x: ${have_gtk}
28152 Use gthread: ${have_gthread}
28154 Image I/O ---------------------
28155 Use ImageIO / Mac OS X: ${have_imageio}
28156 Use libjpeg: ${have_jpeg}
28157 Use zlib: ${have_zlib}
28158 Use libpng: ${have_png}
28159 Use libtiff: ${have_tiff}
28160 Use libjasper: ${have_jasper}
28161 Use libIlmImf: ${have_ilmimf}
28163 Video I/O ---------------------
28164 Use QuickTime / Mac OS X: ${have_quicktime}
28165 Use xine: ${have_xine}
28166 Use gstreamer: ${have_gstreamer}
28167 Use ffmpeg: ${have_ffmpeg}
28168 Use dc1394 & raw1394: ${have_dc1394}
28169 Use v4l: ${have_v4l}
28170 Use v4l2: ${have_v4l2}
28172 Wrappers for other languages =========================================
28174 Python ${have_python}
28175 Octave ${have_octave}
28177 Additional build settings ============================================
28178 Build demo apps ${enable_apps}
28183 if test x"$have_xine" = "xyes"; then
28184 { echo "$as_me:$LINENO:
28185 ATTENTION: highgui will be built with xine support,
28186 thus it will be a subject to GNU Public License" >&5
28188 ATTENTION: highgui will be built with xine support,
28189 thus it will be a subject to GNU Public License" >&6;}