2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for ofono 1.4.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix=/usr/local
735 ac_config_libobj_dir=.
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
745 PACKAGE_TARNAME='ofono'
746 PACKAGE_VERSION='1.4'
747 PACKAGE_STRING='ofono 1.4'
750 ac_default_prefix=/usr/local
751 # Factoring default headers for most tests.
752 ac_includes_default="\
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
764 # ifdef HAVE_STDLIB_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
787 ac_subst_vars='am__EXEEXT_FALSE
877 MAINTAINER_MODE_FALSE
889 INSTALL_STRIP_PROGRAM
931 program_transform_name
943 enable_option_checking
945 enable_maintainer_mode
946 enable_dependency_tracking
973 ac_precious_vars='build_alias
999 # Initialize some variables set by options.
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1013 program_transform_name=s,x,x,
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 includedir='${prefix}/include'
1036 oldincludedir='/usr/include'
1037 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1038 infodir='${datarootdir}/info'
1043 libdir='${exec_prefix}/lib'
1044 localedir='${datarootdir}/locale'
1045 mandir='${datarootdir}/man'
1051 # If the previous option needs an argument, assign it.
1052 if test -n "$ac_prev"; then
1053 eval $ac_prev=\$ac_option
1059 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063 # Accept the important Cygnus configure options, so we can diagnose typos.
1065 case $ac_dashdash$ac_option in
1069 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1071 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072 bindir=$ac_optarg ;;
1074 -build | --build | --buil | --bui | --bu)
1075 ac_prev=build_alias ;;
1076 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077 build_alias=$ac_optarg ;;
1079 -cache-file | --cache-file | --cache-fil | --cache-fi \
1080 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081 ac_prev=cache_file ;;
1082 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084 cache_file=$ac_optarg ;;
1086 --config-cache | -C)
1087 cache_file=config.cache ;;
1089 -datadir | --datadir | --datadi | --datad)
1091 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092 datadir=$ac_optarg ;;
1094 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095 | --dataroo | --dataro | --datar)
1096 ac_prev=datarootdir ;;
1097 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099 datarootdir=$ac_optarg ;;
1101 -disable-* | --disable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_$ac_useropt"
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval enable_$ac_useropt=no ;;
1118 -docdir | --docdir | --docdi | --doc | --do)
1120 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121 docdir=$ac_optarg ;;
1123 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1125 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126 dvidir=$ac_optarg ;;
1128 -enable-* | --enable-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "enable_$ac_useropt"
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval enable_$ac_useropt=\$ac_optarg ;;
1145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1147 | --exec | --exe | --ex)
1148 ac_prev=exec_prefix ;;
1149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1151 | --exec=* | --exe=* | --ex=*)
1152 exec_prefix=$ac_optarg ;;
1154 -gas | --gas | --ga | --g)
1155 # Obsolete; use --with-gas.
1158 -help | --help | --hel | --he | -h)
1159 ac_init_help=long ;;
1160 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1161 ac_init_help=recursive ;;
1162 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1163 ac_init_help=short ;;
1165 -host | --host | --hos | --ho)
1166 ac_prev=host_alias ;;
1167 -host=* | --host=* | --hos=* | --ho=*)
1168 host_alias=$ac_optarg ;;
1170 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1172 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1174 htmldir=$ac_optarg ;;
1176 -includedir | --includedir | --includedi | --included | --include \
1177 | --includ | --inclu | --incl | --inc)
1178 ac_prev=includedir ;;
1179 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1180 | --includ=* | --inclu=* | --incl=* | --inc=*)
1181 includedir=$ac_optarg ;;
1183 -infodir | --infodir | --infodi | --infod | --info | --inf)
1185 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1186 infodir=$ac_optarg ;;
1188 -libdir | --libdir | --libdi | --libd)
1190 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1191 libdir=$ac_optarg ;;
1193 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1194 | --libexe | --libex | --libe)
1195 ac_prev=libexecdir ;;
1196 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1197 | --libexe=* | --libex=* | --libe=*)
1198 libexecdir=$ac_optarg ;;
1200 -localedir | --localedir | --localedi | --localed | --locale)
1201 ac_prev=localedir ;;
1202 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1203 localedir=$ac_optarg ;;
1205 -localstatedir | --localstatedir | --localstatedi | --localstated \
1206 | --localstate | --localstat | --localsta | --localst | --locals)
1207 ac_prev=localstatedir ;;
1208 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1209 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1210 localstatedir=$ac_optarg ;;
1212 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1214 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1215 mandir=$ac_optarg ;;
1217 -nfp | --nfp | --nf)
1218 # Obsolete; use --without-fp.
1221 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1222 | --no-cr | --no-c | -n)
1225 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1226 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1229 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1230 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1231 | --oldin | --oldi | --old | --ol | --o)
1232 ac_prev=oldincludedir ;;
1233 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1234 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1235 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1236 oldincludedir=$ac_optarg ;;
1238 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1240 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1241 prefix=$ac_optarg ;;
1243 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1244 | --program-pre | --program-pr | --program-p)
1245 ac_prev=program_prefix ;;
1246 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1247 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1248 program_prefix=$ac_optarg ;;
1250 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1251 | --program-suf | --program-su | --program-s)
1252 ac_prev=program_suffix ;;
1253 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1254 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1255 program_suffix=$ac_optarg ;;
1257 -program-transform-name | --program-transform-name \
1258 | --program-transform-nam | --program-transform-na \
1259 | --program-transform-n | --program-transform- \
1260 | --program-transform | --program-transfor \
1261 | --program-transfo | --program-transf \
1262 | --program-trans | --program-tran \
1263 | --progr-tra | --program-tr | --program-t)
1264 ac_prev=program_transform_name ;;
1265 -program-transform-name=* | --program-transform-name=* \
1266 | --program-transform-nam=* | --program-transform-na=* \
1267 | --program-transform-n=* | --program-transform-=* \
1268 | --program-transform=* | --program-transfor=* \
1269 | --program-transfo=* | --program-transf=* \
1270 | --program-trans=* | --program-tran=* \
1271 | --progr-tra=* | --program-tr=* | --program-t=*)
1272 program_transform_name=$ac_optarg ;;
1274 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1276 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1277 pdfdir=$ac_optarg ;;
1279 -psdir | --psdir | --psdi | --psd | --ps)
1281 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285 | -silent | --silent | --silen | --sile | --sil)
1288 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1290 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1292 sbindir=$ac_optarg ;;
1294 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296 | --sharedst | --shareds | --shared | --share | --shar \
1298 ac_prev=sharedstatedir ;;
1299 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1303 sharedstatedir=$ac_optarg ;;
1305 -site | --site | --sit)
1307 -site=* | --site=* | --sit=*)
1310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313 srcdir=$ac_optarg ;;
1315 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316 | --syscon | --sysco | --sysc | --sys | --sy)
1317 ac_prev=sysconfdir ;;
1318 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320 sysconfdir=$ac_optarg ;;
1322 -target | --target | --targe | --targ | --tar | --ta | --t)
1323 ac_prev=target_alias ;;
1324 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325 target_alias=$ac_optarg ;;
1327 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330 -version | --version | --versio | --versi | --vers | -V)
1331 ac_init_version=: ;;
1334 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338 { (exit 1); exit 1; }; }
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1348 eval with_$ac_useropt=\$ac_optarg ;;
1350 -without-* | --without-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1355 { (exit 1); exit 1; }; }
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1365 eval with_$ac_useropt=no ;;
1368 # Obsolete; use --with-x.
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1385 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1386 Try \`$0 --help' for more information." >&2
1387 { (exit 1); exit 1; }; }
1391 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1394 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1395 { (exit 1); exit 1; }; }
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1413 { (exit 1); exit 1; }; }
1416 if test -n "$ac_unrecognized_opts"; then
1417 case $enable_option_checking in
1419 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1420 { (exit 1); exit 1; }; } ;;
1421 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1425 # Check all directory arguments for consistency.
1426 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427 datadir sysconfdir sharedstatedir localstatedir includedir \
1428 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429 libdir localedir mandir
1431 eval ac_val=\$$ac_var
1432 # Remove trailing slashes.
1435 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436 eval $ac_var=\$ac_val;;
1438 # Be sure to have absolute directory names.
1440 [\\/$]* | ?:[\\/]* ) continue;;
1441 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1443 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1444 { (exit 1); exit 1; }; }
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1452 target=$target_alias
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x; then
1456 if test "x$build_alias" = x; then
1457 cross_compiling=maybe
1458 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459 If a cross compiler is detected then cross compile mode will be used." >&2
1460 elif test "x$build_alias" != "x$host_alias"; then
1466 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1468 test "$silent" = yes && exec 6>/dev/null
1471 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di=`ls -di .` &&
1473 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1475 { (exit 1); exit 1; }; }
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1478 { (exit 1); exit 1; }; }
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483 ac_srcdir_defaulted=yes
1484 # Try the directory containing this script, then the parent directory.
1485 ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487 X"$as_myself" : 'X\(//\)[^/]' \| \
1488 X"$as_myself" : 'X\(//\)$' \| \
1489 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1513 ac_srcdir_defaulted=no
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1518 { (exit 1); exit 1; }; }
1520 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1522 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1523 { (exit 1); exit 1; }; }
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535 for ac_var in $ac_precious_vars; do
1536 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537 eval ac_env_${ac_var}_value=\$${ac_var}
1538 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1543 # Report the --help message.
1545 if test "$ac_init_help" = "long"; then
1546 # Omit some internal or obsolete options to make the list less imposing.
1547 # This message is too long to be a string in the A/UX 3.1 sh.
1549 \`configure' configures ofono 1.4 to adapt to many kinds of systems.
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE. See below for descriptions of some of the useful variables.
1556 Defaults for the options are specified in brackets.
1559 -h, --help display this help and exit
1560 --help=short display options specific to this package
1561 --help=recursive display the short help of all the included packages
1562 -V, --version display version information and exit
1563 -q, --quiet, --silent do not print \`checking...' messages
1564 --cache-file=FILE cache test results in FILE [disabled]
1565 -C, --config-cache alias for \`--cache-file=config.cache'
1566 -n, --no-create do not create output files
1567 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1569 Installation directories:
1570 --prefix=PREFIX install architecture-independent files in PREFIX
1571 [$ac_default_prefix]
1572 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1580 For better control, use the options below.
1582 Fine tuning of the installation directories:
1583 --bindir=DIR user executables [EPREFIX/bin]
1584 --sbindir=DIR system admin executables [EPREFIX/sbin]
1585 --libexecdir=DIR program executables [EPREFIX/libexec]
1586 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1587 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1588 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1589 --libdir=DIR object code libraries [EPREFIX/lib]
1590 --includedir=DIR C header files [PREFIX/include]
1591 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1592 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1593 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1594 --infodir=DIR info documentation [DATAROOTDIR/info]
1595 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1596 --mandir=DIR man documentation [DATAROOTDIR/man]
1597 --docdir=DIR documentation root [DATAROOTDIR/doc/ofono]
1598 --htmldir=DIR html documentation [DOCDIR]
1599 --dvidir=DIR dvi documentation [DOCDIR]
1600 --pdfdir=DIR pdf documentation [DOCDIR]
1601 --psdir=DIR ps documentation [DOCDIR]
1607 --program-prefix=PREFIX prepend PREFIX to installed program names
1608 --program-suffix=SUFFIX append SUFFIX to installed program names
1609 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1612 --build=BUILD configure for building on BUILD [guessed]
1613 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1617 if test -n "$ac_init_help"; then
1618 case $ac_init_help in
1619 short | recursive ) echo "Configuration of ofono 1.4:";;
1624 --disable-option-checking ignore unrecognized --enable/--with options
1625 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1626 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1627 --enable-silent-rules less verbose build output (undo: `make V=1')
1628 --disable-silent-rules verbose build output (undo: `make V=0')
1629 --enable-maintainer-mode enable make rules and dependencies not useful
1630 (and sometimes confusing) to the casual installer
1631 --disable-dependency-tracking speeds up one-time build
1632 --enable-dependency-tracking do not reject slow dependency extractors
1633 --enable-static[=PKGS] build static libraries [default=no]
1634 --enable-shared[=PKGS] build shared libraries [default=yes]
1635 --enable-fast-install[=PKGS]
1636 optimize for fast installation [default=yes]
1637 --disable-libtool-lock avoid locking (might break parallel builds)
1638 --disable-optimization disable code optimization through compiler
1639 --enable-debug enable compiling with debugging information
1640 --enable-test enable test/example scripts
1641 --enable-pie enable position independent executables flag
1642 --enable-threads enable threading support
1643 --enable-capng enable capabilities support
1644 --disable-udev don't use udev support even if available
1645 --enable-tools enable testing tools
1646 --disable-atmodem disable ETSI AT modem support
1647 --disable-cdmamodem disable CDMA AT modem support
1648 --disable-phonesim disable Phone simulator support
1649 --disable-isimodem disable PhoNet/ISI modem support
1650 --disable-bluetooth disable Bluetooth modem support
1651 --disable-provision disable provisioning suport
1652 --disable-datafiles don't install configuration and data files
1655 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1656 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1657 --with-pic try to use only PIC/non-PIC objects [default=use
1659 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1660 --with-dbusconfdir=PATH path to D-Bus config directory
1661 --with-dbusdatadir=PATH path to D-Bus data directory
1662 --with-systemdunitdir=DIR
1663 path to systemd service directory
1664 --with-provisiondb=FILE location of provision database
1666 Some influential environment variables:
1667 PKG_CONFIG path to pkg-config utility
1668 CC C compiler command
1669 CFLAGS C compiler flags
1670 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1671 nonstandard directory <lib dir>
1672 LIBS libraries to pass to the linker, e.g. -l<library>
1673 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1674 you have headers in a nonstandard directory <include dir>
1676 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1677 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1679 C compiler flags for GTHREAD, overriding pkg-config
1681 linker flags for GTHREAD, overriding pkg-config
1682 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1683 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1685 C compiler flags for CAPNG, overriding pkg-config
1686 CAPNG_LIBS linker flags for CAPNG, overriding pkg-config
1687 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1688 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1689 USB_CFLAGS C compiler flags for USB, overriding pkg-config
1690 USB_LIBS linker flags for USB, overriding pkg-config
1692 C compiler flags for BLUEZ, overriding pkg-config
1693 BLUEZ_LIBS linker flags for BLUEZ, overriding pkg-config
1695 Use these variables to override the choices made by `configure' or to help
1696 it to find libraries and programs with nonstandard names/locations.
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1727 .) # We are building in place.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1761 generated by GNU Autoconf 2.63
1763 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1764 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1770 cat >config.log <<_ACEOF
1771 This file contains any messages produced by compilers while
1772 running configure, to aid debugging if configure makes a mistake.
1774 It was created by ofono $as_me 1.4, which was
1775 generated by GNU Autoconf 2.63. Invocation command line was
1787 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1788 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1789 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1790 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1791 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1793 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1794 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1796 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1797 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1798 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1799 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1800 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1801 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1802 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 test -z "$as_dir" && as_dir=.
1811 $as_echo "PATH: $as_dir"
1827 # Keep a trace of the command line.
1828 # Strip out --no-create and --no-recursion so they do not pile up.
1829 # Strip out --silent because we don't want to record it for future runs.
1830 # Also quote any args containing shell meta-characters.
1831 # Make two passes to allow for proper duplicate-argument suppression.
1835 ac_must_keep_next=false
1841 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1842 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1843 | -silent | --silent | --silen | --sile | --sil)
1846 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1849 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1851 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1852 if test $ac_must_keep_next = true; then
1853 ac_must_keep_next=false # Got value, back to normal.
1856 *=* | --config-cache | -C | -disable-* | --disable-* \
1857 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1858 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1859 | -with-* | --with-* | -without-* | --without-* | --x)
1860 case "$ac_configure_args0 " in
1861 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1864 -* ) ac_must_keep_next=true ;;
1867 ac_configure_args="$ac_configure_args '$ac_arg'"
1872 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1873 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1875 # When interrupted or exit'd, cleanup temporary files, and complete
1876 # config.log. We remove comments because anyway the quotes in there
1877 # would cause problems or look ugly.
1878 # WARNING: Use '\'' to represent an apostrophe within the trap.
1879 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1880 trap 'exit_status=$?
1881 # Save into config.log some information that might help in debugging.
1886 ## ---------------- ##
1887 ## Cache variables. ##
1888 ## ---------------- ##
1891 # The following way of writing the cache mishandles newlines in values,
1893 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1894 eval ac_val=\$$ac_var
1898 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1899 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1902 _ | IFS | as_nl) ;; #(
1903 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1904 *) $as_unset $ac_var ;;
1909 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1910 *${as_nl}ac_space=\ *)
1912 "s/'\''/'\''\\\\'\'''\''/g;
1913 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1916 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1924 ## ----------------- ##
1925 ## Output variables. ##
1926 ## ----------------- ##
1929 for ac_var in $ac_subst_vars
1931 eval ac_val=\$$ac_var
1933 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1935 $as_echo "$ac_var='\''$ac_val'\''"
1939 if test -n "$ac_subst_files"; then
1941 ## ------------------- ##
1942 ## File substitutions. ##
1943 ## ------------------- ##
1946 for ac_var in $ac_subst_files
1948 eval ac_val=\$$ac_var
1950 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952 $as_echo "$ac_var='\''$ac_val'\''"
1957 if test -s confdefs.h; then
1967 test "$ac_signal" != 0 &&
1968 $as_echo "$as_me: caught signal $ac_signal"
1969 $as_echo "$as_me: exit $exit_status"
1971 rm -f core *.core core.conftest.* &&
1972 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1975 for ac_signal in 1 2 13 15; do
1976 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1980 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1981 rm -f -r conftest* confdefs.h
1983 # Predefined preprocessor variables.
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_NAME "$PACKAGE_NAME"
1990 cat >>confdefs.h <<_ACEOF
1991 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_STRING "$PACKAGE_STRING"
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2010 # Let the site file select an alternate cache file if it wants to.
2011 # Prefer an explicitly selected file to automatically selected ones.
2014 if test -n "$CONFIG_SITE"; then
2015 ac_site_file1=$CONFIG_SITE
2016 elif test "x$prefix" != xNONE; then
2017 ac_site_file1=$prefix/share/config.site
2018 ac_site_file2=$prefix/etc/config.site
2020 ac_site_file1=$ac_default_prefix/share/config.site
2021 ac_site_file2=$ac_default_prefix/etc/config.site
2023 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2025 test "x$ac_site_file" = xNONE && continue
2026 if test -r "$ac_site_file"; then
2027 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2028 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2029 sed 's/^/| /' "$ac_site_file" >&5
2034 if test -r "$cache_file"; then
2035 # Some versions of bash will fail to source /dev/null (special
2036 # files actually), so we avoid doing that.
2037 if test -f "$cache_file"; then
2038 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2039 $as_echo "$as_me: loading cache $cache_file" >&6;}
2041 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2042 *) . "./$cache_file";;
2046 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2047 $as_echo "$as_me: creating cache $cache_file" >&6;}
2051 # Check that the precious variables saved in the cache have kept the same
2053 ac_cache_corrupted=false
2054 for ac_var in $ac_precious_vars; do
2055 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2056 eval ac_new_set=\$ac_env_${ac_var}_set
2057 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2058 eval ac_new_val=\$ac_env_${ac_var}_value
2059 case $ac_old_set,$ac_new_set in
2061 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2062 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2063 ac_cache_corrupted=: ;;
2065 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2066 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2067 ac_cache_corrupted=: ;;
2070 if test "x$ac_old_val" != "x$ac_new_val"; then
2071 # differences in whitespace do not lead to failure.
2072 ac_old_val_w=`echo x $ac_old_val`
2073 ac_new_val_w=`echo x $ac_new_val`
2074 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2075 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2076 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2077 ac_cache_corrupted=:
2079 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2080 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2081 eval $ac_var=\$ac_old_val
2083 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2084 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2085 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2086 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2089 # Pass precious variables to config.status.
2090 if test "$ac_new_set" = set; then
2092 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2093 *) ac_arg=$ac_var=$ac_new_val ;;
2095 case " $ac_configure_args " in
2096 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2097 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2101 if $ac_cache_corrupted; then
2102 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2104 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2105 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2106 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2107 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2108 { (exit 1); exit 1; }; }
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143 am__api_version='1.11'
2146 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2147 if test -f "$ac_dir/install-sh"; then
2149 ac_install_sh="$ac_aux_dir/install-sh -c"
2151 elif test -f "$ac_dir/install.sh"; then
2153 ac_install_sh="$ac_aux_dir/install.sh -c"
2155 elif test -f "$ac_dir/shtool"; then
2157 ac_install_sh="$ac_aux_dir/shtool install -c"
2161 if test -z "$ac_aux_dir"; then
2162 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2163 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2164 { (exit 1); exit 1; }; }
2167 # These three variables are undocumented and unsupported,
2168 # and are intended to be withdrawn in a future Autoconf release.
2169 # They can cause serious problems if a builder's source tree is in a directory
2170 # whose full name contains unusual characters.
2171 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2172 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2173 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2176 # Find a good install program. We prefer a C program (faster),
2177 # so one script is as good as another. But avoid the broken or
2178 # incompatible versions:
2179 # SysV /etc/install, /usr/sbin/install
2180 # SunOS /usr/etc/install
2181 # IRIX /sbin/install
2183 # AmigaOS /C/install, which installs bootblocks on floppy discs
2184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2187 # OS/2's system install, which has a completely different semantic
2188 # ./install, which can be erroneously created by make from ./install.sh.
2189 # Reject install programs that cannot install multiple files.
2190 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2191 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2192 if test -z "$INSTALL"; then
2193 if test "${ac_cv_path_install+set}" = set; then
2194 $as_echo_n "(cached) " >&6
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 # Account for people who put trailing slashes in PATH elements.
2203 ./ | .// | /cC/* | \
2204 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2205 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2208 # OSF1 and SCO ODT 3.0 have their own names for install.
2209 # Don't use installbsd from OSF since it installs stuff as root
2211 for ac_prog in ginstall scoinst install; do
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2214 if test $ac_prog = install &&
2215 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2216 # AIX install. It has an incompatible calling convention.
2218 elif test $ac_prog = install &&
2219 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2220 # program-specific install script used by HP pwplus--don't use.
2223 rm -rf conftest.one conftest.two conftest.dir
2224 echo one > conftest.one
2225 echo two > conftest.two
2227 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2228 test -s conftest.one && test -s conftest.two &&
2229 test -s conftest.dir/conftest.one &&
2230 test -s conftest.dir/conftest.two
2232 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2245 rm -rf conftest.one conftest.two conftest.dir
2248 if test "${ac_cv_path_install+set}" = set; then
2249 INSTALL=$ac_cv_path_install
2251 # As a last resort, use the slow shell script. Don't cache a
2252 # value for INSTALL within a source directory, because that will
2253 # break other packages using the cache if that directory is
2254 # removed, or if the value is a relative name.
2255 INSTALL=$ac_install_sh
2258 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2259 $as_echo "$INSTALL" >&6; }
2261 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2262 # It thinks the first close brace ends the variable substitution.
2263 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2265 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2267 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2269 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2270 $as_echo_n "checking whether build environment is sane... " >&6; }
2273 echo timestamp > conftest.file
2274 # Reject unsafe characters in $srcdir or the absolute working directory
2275 # name. Accept space and tab only in the latter.
2279 *[\\\"\#\$\&\'\`$am_lf]*)
2280 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2281 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2282 { (exit 1); exit 1; }; };;
2285 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2286 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2287 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2288 { (exit 1); exit 1; }; };;
2291 # Do `set' in a subshell so we don't clobber the current shell's
2292 # arguments. Must try -L first in case configure is actually a
2293 # symlink; some systems play weird games with the mod time of symlinks
2294 # (eg FreeBSD returns the mod time of the symlink's containing
2297 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2298 if test "$*" = "X"; then
2300 set X `ls -t "$srcdir/configure" conftest.file`
2303 if test "$*" != "X $srcdir/configure conftest.file" \
2304 && test "$*" != "X conftest.file $srcdir/configure"; then
2306 # If neither matched, then we have a broken ls. This can happen
2307 # if, for instance, CONFIG_SHELL is bash and it inherits a
2308 # broken ls alias from the environment. This has actually
2309 # happened. Such a system could not be considered "sane".
2310 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2311 alias in your environment" >&5
2312 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2313 alias in your environment" >&2;}
2314 { (exit 1); exit 1; }; }
2317 test "$2" = conftest.file
2323 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2324 Check your system clock" >&5
2325 $as_echo "$as_me: error: newly created file is older than distributed files!
2326 Check your system clock" >&2;}
2327 { (exit 1); exit 1; }; }
2329 { $as_echo "$as_me:$LINENO: result: yes" >&5
2330 $as_echo "yes" >&6; }
2331 test "$program_prefix" != NONE &&
2332 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333 # Use a double $ so make ignores it.
2334 test "$program_suffix" != NONE &&
2335 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2336 # Double any \ or $.
2337 # By default was `s,x,x', remove it if useless.
2338 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2339 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2341 # expand $ac_aux_dir to an absolute path
2342 am_aux_dir=`cd $ac_aux_dir && pwd`
2344 if test x"${MISSING+set}" != xset; then
2347 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2349 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2352 # Use eval to expand $SHELL
2353 if eval "$MISSING --run true"; then
2354 am_missing_run="$MISSING --run "
2357 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2358 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2361 if test x"${install_sh}" != xset; then
2364 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2366 install_sh="\${SHELL} $am_aux_dir/install-sh"
2370 # Installed binaries are usually stripped using `strip' when the user
2371 # run `make install-strip'. However `strip' might not be the right
2372 # tool to use in cross-compilation environments, therefore Automake
2373 # will honor the `STRIP' environment variable to overrule this program.
2374 if test "$cross_compiling" != no; then
2375 if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2377 set dummy ${ac_tool_prefix}strip; ac_word=$2
2378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if test "${ac_cv_prog_STRIP+set}" = set; then
2381 $as_echo_n "(cached) " >&6
2383 if test -n "$STRIP"; then
2384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 STRIP=$ac_cv_prog_STRIP
2404 if test -n "$STRIP"; then
2405 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2406 $as_echo "$STRIP" >&6; }
2408 { $as_echo "$as_me:$LINENO: result: no" >&5
2409 $as_echo "no" >&6; }
2414 if test -z "$ac_cv_prog_STRIP"; then
2416 # Extract the first word of "strip", so it can be a program name with args.
2417 set dummy strip; ac_word=$2
2418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2421 $as_echo_n "(cached) " >&6
2423 if test -n "$ac_ct_STRIP"; then
2424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433 ac_cv_prog_ac_ct_STRIP="strip"
2434 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2444 if test -n "$ac_ct_STRIP"; then
2445 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2446 $as_echo "$ac_ct_STRIP" >&6; }
2448 { $as_echo "$as_me:$LINENO: result: no" >&5
2449 $as_echo "no" >&6; }
2452 if test "x$ac_ct_STRIP" = x; then
2455 case $cross_compiling:$ac_tool_warned in
2457 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459 ac_tool_warned=yes ;;
2464 STRIP="$ac_cv_prog_STRIP"
2468 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2470 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2471 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2472 if test -z "$MKDIR_P"; then
2473 if test "${ac_cv_path_mkdir+set}" = set; then
2474 $as_echo_n "(cached) " >&6
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2480 test -z "$as_dir" && as_dir=.
2481 for ac_prog in mkdir gmkdir; do
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2484 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2485 'mkdir (GNU coreutils) '* | \
2486 'mkdir (coreutils) '* | \
2487 'mkdir (fileutils) '4.1*)
2488 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2498 if test "${ac_cv_path_mkdir+set}" = set; then
2499 MKDIR_P="$ac_cv_path_mkdir -p"
2501 # As a last resort, use the slow shell script. Don't cache a
2502 # value for MKDIR_P within a source directory, because that will
2503 # break other packages using the cache if that directory is
2504 # removed, or if the value is a relative name.
2505 test -d ./--version && rmdir ./--version
2506 MKDIR_P="$ac_install_sh -d"
2509 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2510 $as_echo "$MKDIR_P" >&6; }
2514 [\\/$]* | ?:[\\/]*) ;;
2515 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2518 for ac_prog in gawk mawk nawk awk
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if test "${ac_cv_prog_AWK+set}" = set; then
2525 $as_echo_n "(cached) " >&6
2527 if test -n "$AWK"; then
2528 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_AWK="$ac_prog"
2538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test -n "$AWK"; then
2549 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2550 $as_echo "$AWK" >&6; }
2552 { $as_echo "$as_me:$LINENO: result: no" >&5
2553 $as_echo "no" >&6; }
2557 test -n "$AWK" && break
2560 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2561 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2563 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2564 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2565 $as_echo_n "(cached) " >&6
2567 cat >conftest.make <<\_ACEOF
2570 @echo '@@@%%%=$(MAKE)=@@@%%%'
2572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2573 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2575 eval ac_cv_prog_make_${ac_make}_set=yes;;
2577 eval ac_cv_prog_make_${ac_make}_set=no;;
2581 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2582 { $as_echo "$as_me:$LINENO: result: yes" >&5
2583 $as_echo "yes" >&6; }
2586 { $as_echo "$as_me:$LINENO: result: no" >&5
2587 $as_echo "no" >&6; }
2588 SET_MAKE="MAKE=${MAKE-make}"
2591 rm -rf .tst 2>/dev/null
2592 mkdir .tst 2>/dev/null
2593 if test -d .tst; then
2598 rmdir .tst 2>/dev/null
2600 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2601 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2602 # is not polluted with repeated "-I."
2603 am__isrc=' -I$(srcdir)'
2604 # test to see if srcdir already configured
2605 if test -f $srcdir/config.status; then
2606 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2607 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2608 { (exit 1); exit 1; }; }
2612 # test whether we have cygpath
2613 if test -z "$CYGPATH_W"; then
2614 if (cygpath --version) >/dev/null 2>/dev/null; then
2615 CYGPATH_W='cygpath -w'
2622 # Define the identity of the package.
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE "$PACKAGE"
2632 cat >>confdefs.h <<_ACEOF
2633 #define VERSION "$VERSION"
2636 # Some tools Automake needs.
2638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2652 # We need awk for the "check" target. The system "awk" is bad on
2654 # Always define AMTAR for backward compatibility.
2656 AMTAR=${AMTAR-"${am_missing_run}tar"}
2658 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2664 ac_config_headers="$ac_config_headers config.h"
2667 # Check whether --enable-silent-rules was given.
2668 if test "${enable_silent_rules+set}" = set; then
2669 enableval=$enable_silent_rules;
2672 case $enable_silent_rules in
2673 yes) AM_DEFAULT_VERBOSITY=0;;
2674 no) AM_DEFAULT_VERBOSITY=1;;
2675 *) AM_DEFAULT_VERBOSITY=0;;
2681 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2682 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2683 # Check whether --enable-maintainer-mode was given.
2684 if test "${enable_maintainer_mode+set}" = set; then
2685 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2687 USE_MAINTAINER_MODE=no
2690 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2691 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2692 if test $USE_MAINTAINER_MODE = yes; then
2693 MAINTAINER_MODE_TRUE=
2694 MAINTAINER_MODE_FALSE='#'
2696 MAINTAINER_MODE_TRUE='#'
2697 MAINTAINER_MODE_FALSE=
2700 MAINT=$MAINTAINER_MODE_TRUE
2708 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2709 if test -n "$ac_tool_prefix"; then
2710 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2711 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2712 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2715 $as_echo_n "(cached) " >&6
2719 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2730 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2741 if test -n "$PKG_CONFIG"; then
2742 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2743 $as_echo "$PKG_CONFIG" >&6; }
2745 { $as_echo "$as_me:$LINENO: result: no" >&5
2746 $as_echo "no" >&6; }
2751 if test -z "$ac_cv_path_PKG_CONFIG"; then
2752 ac_pt_PKG_CONFIG=$PKG_CONFIG
2753 # Extract the first word of "pkg-config", so it can be a program name with args.
2754 set dummy pkg-config; ac_word=$2
2755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2758 $as_echo_n "(cached) " >&6
2760 case $ac_pt_PKG_CONFIG in
2762 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2773 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2784 if test -n "$ac_pt_PKG_CONFIG"; then
2785 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2786 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
2788 { $as_echo "$as_me:$LINENO: result: no" >&5
2789 $as_echo "no" >&6; }
2792 if test "x$ac_pt_PKG_CONFIG" = x; then
2795 case $cross_compiling:$ac_tool_warned in
2797 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2801 PKG_CONFIG=$ac_pt_PKG_CONFIG
2804 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2808 if test -n "$PKG_CONFIG"; then
2809 _pkg_min_version=0.9.0
2810 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
2811 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2812 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2813 { $as_echo "$as_me:$LINENO: result: yes" >&5
2814 $as_echo "yes" >&6; }
2816 { $as_echo "$as_me:$LINENO: result: no" >&5
2817 $as_echo "no" >&6; }
2824 if (test "${CFLAGS}" = ""); then
2825 CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
2827 if (test "$USE_MAINTAINER_MODE" = "yes"); then
2828 CFLAGS="$CFLAGS -Werror -Wextra"
2829 CFLAGS="$CFLAGS -Wno-unused-parameter"
2830 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
2831 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
2832 CFLAGS="$CFLAGS -Wmissing-declarations"
2833 CFLAGS="$CFLAGS -Wredundant-decls"
2834 CFLAGS="$CFLAGS -Wcast-align"
2835 CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846 DEPDIR="${am__leading_dot}deps"
2848 ac_config_commands="$ac_config_commands depfiles"
2851 am_make=${MAKE-make}
2852 cat > confinc << 'END'
2854 @echo this is the am__doit target
2857 # If we don't find an include directive, just comment out the code.
2858 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2859 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2863 # First try GNU make style include.
2864 echo "include confinc" > confmf
2865 # Ignore all kinds of additional output from `make'.
2866 case `$am_make -s -f confmf 2> /dev/null` in #(
2867 *the\ am__doit\ target*)
2873 # Now try BSD make style include.
2874 if test "$am__include" = "#"; then
2875 echo '.include "confinc"' > confmf
2876 case `$am_make -s -f confmf 2> /dev/null` in #(
2877 *the\ am__doit\ target*)
2878 am__include=.include
2886 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2887 $as_echo "$_am_result" >&6; }
2888 rm -f confinc confmf
2890 # Check whether --enable-dependency-tracking was given.
2891 if test "${enable_dependency_tracking+set}" = set; then
2892 enableval=$enable_dependency_tracking;
2895 if test "x$enable_dependency_tracking" != xno; then
2896 am_depcomp="$ac_aux_dir/depcomp"
2899 if test "x$enable_dependency_tracking" != xno; then
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 if test -n "$ac_tool_prefix"; then
2914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_CC+set}" = set; then
2919 $as_echo_n "(cached) " >&6
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2932 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2946 { $as_echo "$as_me:$LINENO: result: no" >&5
2947 $as_echo "no" >&6; }
2952 if test -z "$ac_cv_prog_CC"; then
2954 # Extract the first word of "gcc", so it can be a program name with args.
2955 set dummy gcc; ac_word=$2
2956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2959 $as_echo_n "(cached) " >&6
2961 if test -n "$ac_ct_CC"; then
2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_ac_ct_CC="gcc"
2972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982 if test -n "$ac_ct_CC"; then
2983 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2984 $as_echo "$ac_ct_CC" >&6; }
2986 { $as_echo "$as_me:$LINENO: result: no" >&5
2987 $as_echo "no" >&6; }
2990 if test "x$ac_ct_CC" = x; then
2993 case $cross_compiling:$ac_tool_warned in
2995 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997 ac_tool_warned=yes ;;
3005 if test -z "$CC"; then
3006 if test -n "$ac_tool_prefix"; then
3007 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3008 set dummy ${ac_tool_prefix}cc; ac_word=$2
3009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_CC+set}" = set; then
3012 $as_echo_n "(cached) " >&6
3014 if test -n "$CC"; then
3015 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_CC="${ac_tool_prefix}cc"
3025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 if test -n "$CC"; then
3036 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3037 $as_echo "$CC" >&6; }
3039 { $as_echo "$as_me:$LINENO: result: no" >&5
3040 $as_echo "no" >&6; }
3046 if test -z "$CC"; then
3047 # Extract the first word of "cc", so it can be a program name with args.
3048 set dummy cc; ac_word=$2
3049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_CC+set}" = set; then
3052 $as_echo_n "(cached) " >&6
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3066 ac_prog_rejected=yes
3070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 if test $ac_prog_rejected = yes; then
3078 # We found a bogon in the path, so make sure we never use it.
3079 set dummy $ac_cv_prog_CC
3081 if test $# != 0; then
3082 # We chose a different compiler from the bogus one.
3083 # However, it has the same basename, so the bogon will be chosen
3084 # first if we set CC to just the basename; use the full file name.
3086 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3092 if test -n "$CC"; then
3093 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3096 { $as_echo "$as_me:$LINENO: result: no" >&5
3097 $as_echo "no" >&6; }
3102 if test -z "$CC"; then
3103 if test -n "$ac_tool_prefix"; then
3104 for ac_prog in cl.exe
3106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if test "${ac_cv_prog_CC+set}" = set; then
3111 $as_echo_n "(cached) " >&6
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 if test -n "$CC"; then
3135 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3138 { $as_echo "$as_me:$LINENO: result: no" >&5
3139 $as_echo "no" >&6; }
3143 test -n "$CC" && break
3146 if test -z "$CC"; then
3148 for ac_prog in cl.exe
3150 # Extract the first word of "$ac_prog", so it can be a program name with args.
3151 set dummy $ac_prog; ac_word=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$ac_ct_CC"; then
3158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_ac_ct_CC="$ac_prog"
3168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3178 if test -n "$ac_ct_CC"; then
3179 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3180 $as_echo "$ac_ct_CC" >&6; }
3182 { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3187 test -n "$ac_ct_CC" && break
3190 if test "x$ac_ct_CC" = x; then
3193 case $cross_compiling:$ac_tool_warned in
3195 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197 ac_tool_warned=yes ;;
3206 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3209 See \`config.log' for more details." >&5
3210 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }; }
3214 # Provide some information about the compiler.
3215 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3218 { (ac_try="$ac_compiler --version >&5"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225 (eval "$ac_compiler --version >&5") 2>&5
3227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }
3229 { (ac_try="$ac_compiler -v >&5"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3235 $as_echo "$ac_try_echo") >&5
3236 (eval "$ac_compiler -v >&5") 2>&5
3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }
3240 { (ac_try="$ac_compiler -V >&5"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247 (eval "$ac_compiler -V >&5") 2>&5
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3272 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3273 $as_echo_n "checking for C compiler default output file name... " >&6; }
3274 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3276 # The possible output files:
3277 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3280 for ac_file in $ac_files
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3284 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3289 if { (ac_try="$ac_link_default"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3295 $as_echo "$ac_try_echo") >&5
3296 (eval "$ac_link_default") 2>&5
3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; then
3300 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3301 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3302 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3303 # so that the user can short-circuit this test for compilers unknown to
3305 for ac_file in $ac_files ''
3307 test -f "$ac_file" || continue
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3312 # We found the default executable, but exeext='' is most
3316 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3318 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320 # We set ac_cv_exeext here because the later test for it is not
3321 # safe: cross compilers may not add the suffix if given an `-o'
3322 # argument, so we may need to know it at that point already.
3323 # Even if this section looks crufty: it has the advantage of
3330 test "$ac_cv_exeext" = no && ac_cv_exeext=
3336 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3337 $as_echo "$ac_file" >&6; }
3338 if test -z "$ac_file"; then
3339 $as_echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3345 See \`config.log' for more details." >&5
3346 $as_echo "$as_me: error: C compiler cannot create executables
3347 See \`config.log' for more details." >&2;}
3348 { (exit 77); exit 77; }; }; }
3351 ac_exeext=$ac_cv_exeext
3353 # Check that the compiler produces executables we can run. If not, either
3354 # the compiler is broken, or we cross compile.
3355 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3356 $as_echo_n "checking whether the C compiler works... " >&6; }
3357 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3358 # If not cross compiling, check that we can run a simple program.
3359 if test "$cross_compiling" != yes; then
3360 if { ac_try='./$ac_file'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_try") 2>&5
3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3373 if test "$cross_compiling" = maybe; then
3376 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3379 If you meant to cross compile, use \`--host'.
3380 See \`config.log' for more details." >&5
3381 $as_echo "$as_me: error: cannot run C compiled programs.
3382 If you meant to cross compile, use \`--host'.
3383 See \`config.log' for more details." >&2;}
3384 { (exit 1); exit 1; }; }; }
3388 { $as_echo "$as_me:$LINENO: result: yes" >&5
3389 $as_echo "yes" >&6; }
3391 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3392 ac_clean_files=$ac_clean_files_save
3393 # Check that the compiler produces executables we can run. If not, either
3394 # the compiler is broken, or we cross compile.
3395 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3396 $as_echo_n "checking whether we are cross compiling... " >&6; }
3397 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3398 $as_echo "$cross_compiling" >&6; }
3400 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3401 $as_echo_n "checking for suffix of executables... " >&6; }
3402 if { (ac_try="$ac_link"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409 (eval "$ac_link") 2>&5
3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; then
3413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3414 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3415 # work properly (i.e., refer to `conftest.exe'), while it won't with
3417 for ac_file in conftest.exe conftest conftest.*; do
3418 test -f "$ac_file" || continue
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3430 See \`config.log' for more details." >&5
3431 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3432 See \`config.log' for more details." >&2;}
3433 { (exit 1); exit 1; }; }; }
3436 rm -f conftest$ac_cv_exeext
3437 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3438 $as_echo "$ac_cv_exeext" >&6; }
3440 rm -f conftest.$ac_ext
3441 EXEEXT=$ac_cv_exeext
3443 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3444 $as_echo_n "checking for suffix of object files... " >&6; }
3445 if test "${ac_cv_objext+set}" = set; then
3446 $as_echo_n "(cached) " >&6
3448 cat >conftest.$ac_ext <<_ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3463 rm -f conftest.o conftest.obj
3464 if { (ac_try="$ac_compile"
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3470 $as_echo "$ac_try_echo") >&5
3471 (eval "$ac_compile") 2>&5
3473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; then
3475 for ac_file in conftest.o conftest.obj conftest.*; do
3476 test -f "$ac_file" || continue;
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3479 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3484 $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details." >&5
3491 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3492 See \`config.log' for more details." >&2;}
3493 { (exit 1); exit 1; }; }; }
3496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3498 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3499 $as_echo "$ac_cv_objext" >&6; }
3500 OBJEXT=$ac_cv_objext
3502 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3503 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3504 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3505 $as_echo_n "(cached) " >&6
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3532 $as_echo "$ac_try_echo") >&5
3533 (eval "$ac_compile") 2>conftest.er1
3535 grep -v '^ *+' conftest.er1 >conftest.err
3537 cat conftest.err >&5
3538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } && {
3540 test -z "$ac_c_werror_flag" ||
3541 test ! -s conftest.err
3542 } && test -s conftest.$ac_objext; then
3545 $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3555 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3556 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3557 if test $ac_compiler_gnu = yes; then
3562 ac_test_CFLAGS=${CFLAGS+set}
3563 ac_save_CFLAGS=$CFLAGS
3564 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3565 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3566 if test "${ac_cv_prog_cc_g+set}" = set; then
3567 $as_echo_n "(cached) " >&6
3569 ac_save_c_werror_flag=$ac_c_werror_flag
3570 ac_c_werror_flag=yes
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3595 $as_echo "$ac_try_echo") >&5
3596 (eval "$ac_compile") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } && {
3603 test -z "$ac_c_werror_flag" ||
3604 test ! -s conftest.err
3605 } && test -s conftest.$ac_objext; then
3608 $as_echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3612 cat >conftest.$ac_ext <<_ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3634 $as_echo "$ac_try_echo") >&5
3635 (eval "$ac_compile") 2>conftest.er1
3637 grep -v '^ *+' conftest.er1 >conftest.err
3639 cat conftest.err >&5
3640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } && {
3642 test -z "$ac_c_werror_flag" ||
3643 test ! -s conftest.err
3644 } && test -s conftest.$ac_objext; then
3647 $as_echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3650 ac_c_werror_flag=$ac_save_c_werror_flag
3652 cat >conftest.$ac_ext <<_ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3667 rm -f conftest.$ac_objext
3668 if { (ac_try="$ac_compile"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3674 $as_echo "$ac_try_echo") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.$ac_objext; then
3687 $as_echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3702 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3703 $as_echo "$ac_cv_prog_cc_g" >&6; }
3704 if test "$ac_test_CFLAGS" = set; then
3705 CFLAGS=$ac_save_CFLAGS
3706 elif test $ac_cv_prog_cc_g = yes; then
3707 if test "$GCC" = yes; then
3713 if test "$GCC" = yes; then
3719 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3720 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3721 if test "${ac_cv_prog_cc_c89+set}" = set; then
3722 $as_echo_n "(cached) " >&6
3724 ac_cv_prog_cc_c89=no
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3734 #include <sys/types.h>
3735 #include <sys/stat.h>
3736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3737 struct buf { int x; };
3738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3739 static char *e (p, i)
3745 static char *f (char * (*g) (char **, int), char **p, ...)
3750 s = g (p, va_arg (v,int));
3755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3756 function prototypes and stuff, but not '\xHH' hex character constants.
3757 These don't provoke an error unfortunately, instead are silently treated
3758 as 'x'. The following induces an error, until -std is added to get
3759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3760 array size at least. It's necessary to write '\x00'==0 to get something
3761 that's true only with -std. */
3762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3765 inside strings and character constants. */
3767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3769 int test (int i, double x);
3770 struct s1 {int (*f) (int a);};
3771 struct s2 {int (*f) (double a);};
3772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3786 CC="$ac_save_CC $ac_arg"
3787 rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3794 $as_echo "$ac_try_echo") >&5
3795 (eval "$ac_compile") 2>conftest.er1
3797 grep -v '^ *+' conftest.er1 >conftest.err
3799 cat conftest.err >&5
3800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } && {
3802 test -z "$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3804 } && test -s conftest.$ac_objext; then
3805 ac_cv_prog_cc_c89=$ac_arg
3807 $as_echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3813 rm -f core conftest.err conftest.$ac_objext
3814 test "x$ac_cv_prog_cc_c89" != "xno" && break
3816 rm -f conftest.$ac_ext
3821 case "x$ac_cv_prog_cc_c89" in
3823 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3824 $as_echo "none needed" >&6; } ;;
3826 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3827 $as_echo "unsupported" >&6; } ;;
3829 CC="$CC $ac_cv_prog_cc_c89"
3830 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3831 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 depcc="$CC" am_compiler_list=
3843 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3844 $as_echo_n "checking dependency style of $depcc... " >&6; }
3845 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3846 $as_echo_n "(cached) " >&6
3848 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3849 # We make a subdir and do the tests there. Otherwise we can end up
3850 # making bogus files that we don't know about and never remove. For
3851 # instance it was reported that on HP-UX the gcc test will end up
3852 # making a dummy file named `D' -- because `-MD' means `put the output
3855 # Copy depcomp to subdir because otherwise we won't find it if we're
3856 # using a relative directory.
3857 cp "$am_depcomp" conftest.dir
3859 # We will build objects and dependencies in a subdirectory because
3860 # it helps to detect inapplicable dependency modes. For instance
3861 # both Tru64's cc and ICC support -MD to output dependencies as a
3862 # side effect of compilation, but ICC will put the dependencies in
3863 # the current directory while Tru64 will put them in the object
3867 am_cv_CC_dependencies_compiler_type=none
3868 if test "$am_compiler_list" = ""; then
3869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3872 case " $depcc " in #(
3873 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3876 for depmode in $am_compiler_list; do
3877 # Setup a source with many dependencies, because some compilers
3878 # like to wrap large dependency lists on column 80 (with \), and
3879 # we should not choose a depcomp mode which is confused by this.
3881 # We need to recreate these files for each test, as the compiler may
3882 # overwrite some of them when testing with obscure command lines.
3883 # This happens at least with the AIX C compiler.
3885 for i in 1 2 3 4 5 6; do
3886 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3888 # Solaris 8's {/usr,}/bin/sh.
3889 touch sub/conftst$i.h
3891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3893 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3894 # mode. It turns out that the SunPro C++ compiler does not properly
3895 # handle `-M -o', and we need to detect this. Also, some Intel
3896 # versions had trouble with output in subdirs
3897 am__obj=sub/conftest.${OBJEXT-o}
3898 am__minus_obj="-o $am__obj"
3901 # This depmode causes a compiler race in universal mode.
3902 test "$am__universal" = false || continue
3905 # after this tag, mechanisms are not by side-effect, so they'll
3906 # only be used when explicitly requested
3907 if test "x$enable_dependency_tracking" = xyes; then
3913 msvisualcpp | msvcmsys)
3914 # This compiler won't grok `-c -o', but also, the minuso test has
3915 # not run yet. These depmodes are late enough in the game, and
3916 # so weak that their functioning should not be impacted.
3917 am__obj=conftest.${OBJEXT-o}
3922 if depmode=$depmode \
3923 source=sub/conftest.c object=$am__obj \
3924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3925 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3926 >/dev/null 2>conftest.err &&
3927 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3928 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3929 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3930 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3931 # icc doesn't choke on unknown options, it will just issue warnings
3932 # or remarks (even with -Werror). So we grep stderr for any message
3933 # that says an option was ignored or not supported.
3934 # When given -MP, icc 7.0 and 7.1 complain thusly:
3935 # icc: Command line warning: ignoring option '-M'; no argument required
3936 # The diagnosis changed in icc 8.0:
3937 # icc: Command line remark: option '-MP' not supported
3938 if (grep 'ignoring option' conftest.err ||
3939 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3940 am_cv_CC_dependencies_compiler_type=$depmode
3949 am_cv_CC_dependencies_compiler_type=none
3953 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3954 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3955 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3958 test "x$enable_dependency_tracking" != xno \
3959 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3961 am__fastdepCC_FALSE='#'
3963 am__fastdepCC_TRUE='#'
3964 am__fastdepCC_FALSE=
3969 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
3970 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
3971 if test "${ac_cv_c_restrict+set}" = set; then
3972 $as_echo_n "(cached) " >&6
3975 # The order here caters to the fact that C++ does not require restrict.
3976 for ac_kw in __restrict __restrict__ _Restrict restrict; do
3977 cat >conftest.$ac_ext <<_ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 typedef int * int_ptr;
3984 int foo (int_ptr $ac_kw ip) {
3998 rm -f conftest.$ac_objext
3999 if { (ac_try="$ac_compile"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4005 $as_echo "$ac_try_echo") >&5
4006 (eval "$ac_compile") 2>conftest.er1
4008 grep -v '^ *+' conftest.er1 >conftest.err
4010 cat conftest.err >&5
4011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && {
4013 test -z "$ac_c_werror_flag" ||
4014 test ! -s conftest.err
4015 } && test -s conftest.$ac_objext; then
4016 ac_cv_c_restrict=$ac_kw
4018 $as_echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 test "$ac_cv_c_restrict" != no && break
4029 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4030 $as_echo "$ac_cv_c_restrict" >&6; }
4033 case $ac_cv_c_restrict in
4035 no) cat >>confdefs.h <<\_ACEOF
4036 #define restrict /**/
4039 *) cat >>confdefs.h <<_ACEOF
4040 #define restrict $ac_cv_c_restrict
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 if test -n "$ac_tool_prefix"; then
4052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_prog_CC+set}" = set; then
4057 $as_echo_n "(cached) " >&6
4059 if test -n "$CC"; then
4060 ac_cv_prog_CC="$CC" # Let the user override the test.
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 if test -n "$CC"; then
4081 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4082 $as_echo "$CC" >&6; }
4084 { $as_echo "$as_me:$LINENO: result: no" >&5
4085 $as_echo "no" >&6; }
4090 if test -z "$ac_cv_prog_CC"; then
4092 # Extract the first word of "gcc", so it can be a program name with args.
4093 set dummy gcc; ac_word=$2
4094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4097 $as_echo_n "(cached) " >&6
4099 if test -n "$ac_ct_CC"; then
4100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_ac_ct_CC="gcc"
4110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4120 if test -n "$ac_ct_CC"; then
4121 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4122 $as_echo "$ac_ct_CC" >&6; }
4124 { $as_echo "$as_me:$LINENO: result: no" >&5
4125 $as_echo "no" >&6; }
4128 if test "x$ac_ct_CC" = x; then
4131 case $cross_compiling:$ac_tool_warned in
4133 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4135 ac_tool_warned=yes ;;
4143 if test -z "$CC"; then
4144 if test -n "$ac_tool_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4146 set dummy ${ac_tool_prefix}cc; ac_word=$2
4147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if test "${ac_cv_prog_CC+set}" = set; then
4150 $as_echo_n "(cached) " >&6
4152 if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_CC="${ac_tool_prefix}cc"
4163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 if test -n "$CC"; then
4174 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4175 $as_echo "$CC" >&6; }
4177 { $as_echo "$as_me:$LINENO: result: no" >&5
4178 $as_echo "no" >&6; }
4184 if test -z "$CC"; then
4185 # Extract the first word of "cc", so it can be a program name with args.
4186 set dummy cc; ac_word=$2
4187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_prog_CC+set}" = set; then
4190 $as_echo_n "(cached) " >&6
4192 if test -n "$CC"; then
4193 ac_cv_prog_CC="$CC" # Let the user override the test.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4204 ac_prog_rejected=yes
4208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 if test $ac_prog_rejected = yes; then
4216 # We found a bogon in the path, so make sure we never use it.
4217 set dummy $ac_cv_prog_CC
4219 if test $# != 0; then
4220 # We chose a different compiler from the bogus one.
4221 # However, it has the same basename, so the bogon will be chosen
4222 # first if we set CC to just the basename; use the full file name.
4224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4230 if test -n "$CC"; then
4231 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4232 $as_echo "$CC" >&6; }
4234 { $as_echo "$as_me:$LINENO: result: no" >&5
4235 $as_echo "no" >&6; }
4240 if test -z "$CC"; then
4241 if test -n "$ac_tool_prefix"; then
4242 for ac_prog in cl.exe
4244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if test "${ac_cv_prog_CC+set}" = set; then
4249 $as_echo_n "(cached) " >&6
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 if test -n "$CC"; then
4273 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4276 { $as_echo "$as_me:$LINENO: result: no" >&5
4277 $as_echo "no" >&6; }
4281 test -n "$CC" && break
4284 if test -z "$CC"; then
4286 for ac_prog in cl.exe
4288 # Extract the first word of "$ac_prog", so it can be a program name with args.
4289 set dummy $ac_prog; ac_word=$2
4290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4293 $as_echo_n "(cached) " >&6
4295 if test -n "$ac_ct_CC"; then
4296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305 ac_cv_prog_ac_ct_CC="$ac_prog"
4306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4316 if test -n "$ac_ct_CC"; then
4317 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4318 $as_echo "$ac_ct_CC" >&6; }
4320 { $as_echo "$as_me:$LINENO: result: no" >&5
4321 $as_echo "no" >&6; }
4325 test -n "$ac_ct_CC" && break
4328 if test "x$ac_ct_CC" = x; then
4331 case $cross_compiling:$ac_tool_warned in
4333 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4335 ac_tool_warned=yes ;;
4344 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4346 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4347 See \`config.log' for more details." >&5
4348 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4349 See \`config.log' for more details." >&2;}
4350 { (exit 1); exit 1; }; }; }
4352 # Provide some information about the compiler.
4353 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4356 { (ac_try="$ac_compiler --version >&5"
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4362 $as_echo "$ac_try_echo") >&5
4363 (eval "$ac_compiler --version >&5") 2>&5
4365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }
4367 { (ac_try="$ac_compiler -v >&5"
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4373 $as_echo "$ac_try_echo") >&5
4374 (eval "$ac_compiler -v >&5") 2>&5
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }
4378 { (ac_try="$ac_compiler -V >&5"
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4384 $as_echo "$ac_try_echo") >&5
4385 (eval "$ac_compiler -V >&5") 2>&5
4387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }
4390 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4391 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4392 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4393 $as_echo_n "(cached) " >&6
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4413 rm -f conftest.$ac_objext
4414 if { (ac_try="$ac_compile"
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4420 $as_echo "$ac_try_echo") >&5
4421 (eval "$ac_compile") 2>conftest.er1
4423 grep -v '^ *+' conftest.er1 >conftest.err
4425 cat conftest.err >&5
4426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } && {
4428 test -z "$ac_c_werror_flag" ||
4429 test ! -s conftest.err
4430 } && test -s conftest.$ac_objext; then
4433 $as_echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4443 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4444 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4445 if test $ac_compiler_gnu = yes; then
4450 ac_test_CFLAGS=${CFLAGS+set}
4451 ac_save_CFLAGS=$CFLAGS
4452 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4453 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4454 if test "${ac_cv_prog_cc_g+set}" = set; then
4455 $as_echo_n "(cached) " >&6
4457 ac_save_c_werror_flag=$ac_c_werror_flag
4458 ac_c_werror_flag=yes
4461 cat >conftest.$ac_ext <<_ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4476 rm -f conftest.$ac_objext
4477 if { (ac_try="$ac_compile"
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484 (eval "$ac_compile") 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && {
4491 test -z "$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 } && test -s conftest.$ac_objext; then
4496 $as_echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4515 rm -f conftest.$ac_objext
4516 if { (ac_try="$ac_compile"
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4522 $as_echo "$ac_try_echo") >&5
4523 (eval "$ac_compile") 2>conftest.er1
4525 grep -v '^ *+' conftest.er1 >conftest.err
4527 cat conftest.err >&5
4528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } && {
4530 test -z "$ac_c_werror_flag" ||
4531 test ! -s conftest.err
4532 } && test -s conftest.$ac_objext; then
4535 $as_echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 ac_c_werror_flag=$ac_save_c_werror_flag
4540 cat >conftest.$ac_ext <<_ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563 (eval "$ac_compile") 2>conftest.er1
4565 grep -v '^ *+' conftest.er1 >conftest.err
4567 cat conftest.err >&5
4568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } && {
4570 test -z "$ac_c_werror_flag" ||
4571 test ! -s conftest.err
4572 } && test -s conftest.$ac_objext; then
4575 $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 ac_c_werror_flag=$ac_save_c_werror_flag
4590 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4591 $as_echo "$ac_cv_prog_cc_g" >&6; }
4592 if test "$ac_test_CFLAGS" = set; then
4593 CFLAGS=$ac_save_CFLAGS
4594 elif test $ac_cv_prog_cc_g = yes; then
4595 if test "$GCC" = yes; then
4601 if test "$GCC" = yes; then
4607 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4609 if test "${ac_cv_prog_cc_c89+set}" = set; then
4610 $as_echo_n "(cached) " >&6
4612 ac_cv_prog_cc_c89=no
4614 cat >conftest.$ac_ext <<_ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4622 #include <sys/types.h>
4623 #include <sys/stat.h>
4624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4625 struct buf { int x; };
4626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4627 static char *e (p, i)
4633 static char *f (char * (*g) (char **, int), char **p, ...)
4638 s = g (p, va_arg (v,int));
4643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4644 function prototypes and stuff, but not '\xHH' hex character constants.
4645 These don't provoke an error unfortunately, instead are silently treated
4646 as 'x'. The following induces an error, until -std is added to get
4647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4648 array size at least. It's necessary to write '\x00'==0 to get something
4649 that's true only with -std. */
4650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4653 inside strings and character constants. */
4655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4657 int test (int i, double x);
4658 struct s1 {int (*f) (int a);};
4659 struct s2 {int (*f) (double a);};
4660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4666 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4674 CC="$ac_save_CC $ac_arg"
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683 (eval "$ac_compile") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1 >conftest.err
4687 cat conftest.err >&5
4688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && {
4690 test -z "$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest.$ac_objext; then
4693 ac_cv_prog_cc_c89=$ac_arg
4695 $as_echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4701 rm -f core conftest.err conftest.$ac_objext
4702 test "x$ac_cv_prog_cc_c89" != "xno" && break
4704 rm -f conftest.$ac_ext
4709 case "x$ac_cv_prog_cc_c89" in
4711 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4712 $as_echo "none needed" >&6; } ;;
4714 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4715 $as_echo "unsupported" >&6; } ;;
4717 CC="$CC $ac_cv_prog_cc_c89"
4718 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4719 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4724 ac_cpp='$CPP $CPPFLAGS'
4725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4729 depcc="$CC" am_compiler_list=
4731 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4732 $as_echo_n "checking dependency style of $depcc... " >&6; }
4733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4734 $as_echo_n "(cached) " >&6
4736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4737 # We make a subdir and do the tests there. Otherwise we can end up
4738 # making bogus files that we don't know about and never remove. For
4739 # instance it was reported that on HP-UX the gcc test will end up
4740 # making a dummy file named `D' -- because `-MD' means `put the output
4743 # Copy depcomp to subdir because otherwise we won't find it if we're
4744 # using a relative directory.
4745 cp "$am_depcomp" conftest.dir
4747 # We will build objects and dependencies in a subdirectory because
4748 # it helps to detect inapplicable dependency modes. For instance
4749 # both Tru64's cc and ICC support -MD to output dependencies as a
4750 # side effect of compilation, but ICC will put the dependencies in
4751 # the current directory while Tru64 will put them in the object
4755 am_cv_CC_dependencies_compiler_type=none
4756 if test "$am_compiler_list" = ""; then
4757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4760 case " $depcc " in #(
4761 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4764 for depmode in $am_compiler_list; do
4765 # Setup a source with many dependencies, because some compilers
4766 # like to wrap large dependency lists on column 80 (with \), and
4767 # we should not choose a depcomp mode which is confused by this.
4769 # We need to recreate these files for each test, as the compiler may
4770 # overwrite some of them when testing with obscure command lines.
4771 # This happens at least with the AIX C compiler.
4773 for i in 1 2 3 4 5 6; do
4774 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4775 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4776 # Solaris 8's {/usr,}/bin/sh.
4777 touch sub/conftst$i.h
4779 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4781 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4782 # mode. It turns out that the SunPro C++ compiler does not properly
4783 # handle `-M -o', and we need to detect this. Also, some Intel
4784 # versions had trouble with output in subdirs
4785 am__obj=sub/conftest.${OBJEXT-o}
4786 am__minus_obj="-o $am__obj"
4789 # This depmode causes a compiler race in universal mode.
4790 test "$am__universal" = false || continue
4793 # after this tag, mechanisms are not by side-effect, so they'll
4794 # only be used when explicitly requested
4795 if test "x$enable_dependency_tracking" = xyes; then
4801 msvisualcpp | msvcmsys)
4802 # This compiler won't grok `-c -o', but also, the minuso test has
4803 # not run yet. These depmodes are late enough in the game, and
4804 # so weak that their functioning should not be impacted.
4805 am__obj=conftest.${OBJEXT-o}
4810 if depmode=$depmode \
4811 source=sub/conftest.c object=$am__obj \
4812 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4813 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4814 >/dev/null 2>conftest.err &&
4815 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4816 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4817 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4818 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4819 # icc doesn't choke on unknown options, it will just issue warnings
4820 # or remarks (even with -Werror). So we grep stderr for any message
4821 # that says an option was ignored or not supported.
4822 # When given -MP, icc 7.0 and 7.1 complain thusly:
4823 # icc: Command line warning: ignoring option '-M'; no argument required
4824 # The diagnosis changed in icc 8.0:
4825 # icc: Command line remark: option '-MP' not supported
4826 if (grep 'ignoring option' conftest.err ||
4827 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4828 am_cv_CC_dependencies_compiler_type=$depmode
4837 am_cv_CC_dependencies_compiler_type=none
4841 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4842 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4843 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4846 test "x$enable_dependency_tracking" != xno \
4847 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4849 am__fastdepCC_FALSE='#'
4851 am__fastdepCC_TRUE='#'
4852 am__fastdepCC_FALSE=
4856 if test "x$CC" != xcc; then
4857 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4858 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4860 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4861 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4863 set dummy $CC; ac_cc=`$as_echo "$2" |
4864 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4865 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4866 $as_echo_n "(cached) " >&6
4868 cat >conftest.$ac_ext <<_ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4883 # Make sure it works both with $CC and with simple cc.
4884 # We do the test twice because some compilers refuse to overwrite an
4885 # existing .o file with -o, though they will create one.
4886 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4888 if { (case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4893 $as_echo "$ac_try_echo") >&5
4894 (eval "$ac_try") 2>&5
4896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4903 $as_echo "$ac_try_echo") >&5
4904 (eval "$ac_try") 2>&5
4906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); };
4909 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4910 if test "x$CC" != xcc; then
4911 # Test first that cc exists at all.
4912 if { ac_try='cc -c conftest.$ac_ext >&5'
4913 { (case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4918 $as_echo "$ac_try_echo") >&5
4919 (eval "$ac_try") 2>&5
4921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4925 if { (case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4930 $as_echo "$ac_try_echo") >&5
4931 (eval "$ac_try") 2>&5
4933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941 (eval "$ac_try") 2>&5
4943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); };
4949 # cc exists but doesn't like -o.
4950 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4955 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4957 rm -f core conftest*
4960 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4961 { $as_echo "$as_me:$LINENO: result: yes" >&5
4962 $as_echo "yes" >&6; }
4964 { $as_echo "$as_me:$LINENO: result: no" >&5
4965 $as_echo "no" >&6; }
4967 cat >>confdefs.h <<\_ACEOF
4968 #define NO_MINUS_C_MINUS_O 1
4973 # FIXME: we rely on the cache variable name because
4974 # there is no other way.
4976 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4977 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4978 if test "$am_t" != yes; then
4979 # Losing compiler, so override with the script.
4980 # FIXME: It is wrong to rewrite CC.
4981 # But if we don't then we get into trouble of one sort or another.
4982 # A longer-term fix would be to have automake use am__CC in this case,
4983 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4984 CC="$am_aux_dir/compile $CC"
4989 { $as_echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fPIE" >&5
4990 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4991 if test "${ac_cv_prog_cc_pie+set}" = set; then
4992 $as_echo_n "(cached) " >&6
4995 echo 'void f(){}' > conftest.c
4996 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4997 ac_cv_prog_cc_pie=yes
4999 ac_cv_prog_cc_pie=no
5004 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_pie" >&5
5005 $as_echo "$ac_cv_prog_cc_pie" >&6; }
5007 # Find a good install program. We prefer a C program (faster),
5008 # so one script is as good as another. But avoid the broken or
5009 # incompatible versions:
5010 # SysV /etc/install, /usr/sbin/install
5011 # SunOS /usr/etc/install
5012 # IRIX /sbin/install
5014 # AmigaOS /C/install, which installs bootblocks on floppy discs
5015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5018 # OS/2's system install, which has a completely different semantic
5019 # ./install, which can be erroneously created by make from ./install.sh.
5020 # Reject install programs that cannot install multiple files.
5021 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5022 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5023 if test -z "$INSTALL"; then
5024 if test "${ac_cv_path_install+set}" = set; then
5025 $as_echo_n "(cached) " >&6
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir=.
5032 # Account for people who put trailing slashes in PATH elements.
5034 ./ | .// | /cC/* | \
5035 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5036 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5039 # OSF1 and SCO ODT 3.0 have their own names for install.
5040 # Don't use installbsd from OSF since it installs stuff as root
5042 for ac_prog in ginstall scoinst install; do
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5045 if test $ac_prog = install &&
5046 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5047 # AIX install. It has an incompatible calling convention.
5049 elif test $ac_prog = install &&
5050 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5051 # program-specific install script used by HP pwplus--don't use.
5054 rm -rf conftest.one conftest.two conftest.dir
5055 echo one > conftest.one
5056 echo two > conftest.two
5058 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5059 test -s conftest.one && test -s conftest.two &&
5060 test -s conftest.dir/conftest.one &&
5061 test -s conftest.dir/conftest.two
5063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5076 rm -rf conftest.one conftest.two conftest.dir
5079 if test "${ac_cv_path_install+set}" = set; then
5080 INSTALL=$ac_cv_path_install
5082 # As a last resort, use the slow shell script. Don't cache a
5083 # value for INSTALL within a source directory, because that will
5084 # break other packages using the cache if that directory is
5085 # removed, or if the value is a relative name.
5086 INSTALL=$ac_install_sh
5089 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5090 $as_echo "$INSTALL" >&6; }
5092 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5093 # It thinks the first close brace ends the variable substitution.
5094 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5096 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5098 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5102 [\\/$]* | ?:[\\/]*) ;;
5103 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5110 # Check whether --enable-static was given.
5111 if test "${enable_static+set}" = set; then
5112 enableval=$enable_static; p=${PACKAGE-default}
5114 yes) enable_static=yes ;;
5115 no) enable_static=no ;;
5118 # Look at the argument we got. We use all the common list separators.
5119 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5120 for pkg in $enableval; do
5122 if test "X$pkg" = "X$p"; then
5143 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5144 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5149 macro_version='2.2.6b'
5150 macro_revision='1.3017'
5164 ltmain="$ac_aux_dir/ltmain.sh"
5166 # Make sure we can run config.sub.
5167 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5168 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5169 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5170 { (exit 1); exit 1; }; }
5172 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5173 $as_echo_n "checking build system type... " >&6; }
5174 if test "${ac_cv_build+set}" = set; then
5175 $as_echo_n "(cached) " >&6
5177 ac_build_alias=$build_alias
5178 test "x$ac_build_alias" = x &&
5179 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5180 test "x$ac_build_alias" = x &&
5181 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5182 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5183 { (exit 1); exit 1; }; }
5184 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5185 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5186 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5187 { (exit 1); exit 1; }; }
5190 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5191 $as_echo "$ac_cv_build" >&6; }
5192 case $ac_cv_build in
5194 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5195 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5196 { (exit 1); exit 1; }; };;
5199 ac_save_IFS=$IFS; IFS='-'
5205 # Remember, the first character of IFS is used to create $*,
5206 # except with old shells:
5209 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5212 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5213 $as_echo_n "checking host system type... " >&6; }
5214 if test "${ac_cv_host+set}" = set; then
5215 $as_echo_n "(cached) " >&6
5217 if test "x$host_alias" = x; then
5218 ac_cv_host=$ac_cv_build
5220 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5221 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5222 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5223 { (exit 1); exit 1; }; }
5227 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5228 $as_echo "$ac_cv_host" >&6; }
5231 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5232 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5233 { (exit 1); exit 1; }; };;
5236 ac_save_IFS=$IFS; IFS='-'
5242 # Remember, the first character of IFS is used to create $*,
5243 # except with old shells:
5246 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5249 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5250 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5251 if test "${ac_cv_path_SED+set}" = set; then
5252 $as_echo_n "(cached) " >&6
5254 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5255 for ac_i in 1 2 3 4 5 6 7; do
5256 ac_script="$ac_script$as_nl$ac_script"
5258 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5259 $as_unset ac_script || ac_script=
5260 if test -z "$SED"; then
5261 ac_path_SED_found=false
5262 # Loop through the user's path and test for each of PROGNAME-LIST
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 test -z "$as_dir" && as_dir=.
5268 for ac_prog in sed gsed; do
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5271 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5272 # Check for GNU ac_path_SED and select it if it is found.
5273 # Check for GNU $ac_path_SED
5274 case `"$ac_path_SED" --version 2>&1` in
5276 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5279 $as_echo_n 0123456789 >"conftest.in"
5282 cat "conftest.in" "conftest.in" >"conftest.tmp"
5283 mv "conftest.tmp" "conftest.in"
5284 cp "conftest.in" "conftest.nl"
5285 $as_echo '' >> "conftest.nl"
5286 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5288 ac_count=`expr $ac_count + 1`
5289 if test $ac_count -gt ${ac_path_SED_max-0}; then
5290 # Best one so far, save it but keep looking for a better one
5291 ac_cv_path_SED="$ac_path_SED"
5292 ac_path_SED_max=$ac_count
5294 # 10*(2^10) chars as input seems more than enough
5295 test $ac_count -gt 10 && break
5297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5300 $ac_path_SED_found && break 3
5305 if test -z "$ac_cv_path_SED"; then
5306 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5307 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5308 { (exit 1); exit 1; }; }
5315 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5316 $as_echo "$ac_cv_path_SED" >&6; }
5317 SED="$ac_cv_path_SED"
5320 test -z "$SED" && SED=sed
5321 Xsed="$SED -e 1s/^X//"
5333 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5334 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5335 if test "${ac_cv_path_GREP+set}" = set; then
5336 $as_echo_n "(cached) " >&6
5338 if test -z "$GREP"; then
5339 ac_path_GREP_found=false
5340 # Loop through the user's path and test for each of PROGNAME-LIST
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5345 test -z "$as_dir" && as_dir=.
5346 for ac_prog in grep ggrep; do
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5349 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5350 # Check for GNU ac_path_GREP and select it if it is found.
5351 # Check for GNU $ac_path_GREP
5352 case `"$ac_path_GREP" --version 2>&1` in
5354 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5357 $as_echo_n 0123456789 >"conftest.in"
5360 cat "conftest.in" "conftest.in" >"conftest.tmp"
5361 mv "conftest.tmp" "conftest.in"
5362 cp "conftest.in" "conftest.nl"
5363 $as_echo 'GREP' >> "conftest.nl"
5364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5366 ac_count=`expr $ac_count + 1`
5367 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5368 # Best one so far, save it but keep looking for a better one
5369 ac_cv_path_GREP="$ac_path_GREP"
5370 ac_path_GREP_max=$ac_count
5372 # 10*(2^10) chars as input seems more than enough
5373 test $ac_count -gt 10 && break
5375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5378 $ac_path_GREP_found && break 3
5383 if test -z "$ac_cv_path_GREP"; then
5384 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5385 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5386 { (exit 1); exit 1; }; }
5389 ac_cv_path_GREP=$GREP
5393 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5394 $as_echo "$ac_cv_path_GREP" >&6; }
5395 GREP="$ac_cv_path_GREP"
5398 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5399 $as_echo_n "checking for egrep... " >&6; }
5400 if test "${ac_cv_path_EGREP+set}" = set; then
5401 $as_echo_n "(cached) " >&6
5403 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5404 then ac_cv_path_EGREP="$GREP -E"
5406 if test -z "$EGREP"; then
5407 ac_path_EGREP_found=false
5408 # Loop through the user's path and test for each of PROGNAME-LIST
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5413 test -z "$as_dir" && as_dir=.
5414 for ac_prog in egrep; do
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5417 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5418 # Check for GNU ac_path_EGREP and select it if it is found.
5419 # Check for GNU $ac_path_EGREP
5420 case `"$ac_path_EGREP" --version 2>&1` in
5422 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5425 $as_echo_n 0123456789 >"conftest.in"
5428 cat "conftest.in" "conftest.in" >"conftest.tmp"
5429 mv "conftest.tmp" "conftest.in"
5430 cp "conftest.in" "conftest.nl"
5431 $as_echo 'EGREP' >> "conftest.nl"
5432 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5433 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5434 ac_count=`expr $ac_count + 1`
5435 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5436 # Best one so far, save it but keep looking for a better one
5437 ac_cv_path_EGREP="$ac_path_EGREP"
5438 ac_path_EGREP_max=$ac_count
5440 # 10*(2^10) chars as input seems more than enough
5441 test $ac_count -gt 10 && break
5443 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5446 $ac_path_EGREP_found && break 3
5451 if test -z "$ac_cv_path_EGREP"; then
5452 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5453 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5454 { (exit 1); exit 1; }; }
5457 ac_cv_path_EGREP=$EGREP
5462 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5463 $as_echo "$ac_cv_path_EGREP" >&6; }
5464 EGREP="$ac_cv_path_EGREP"
5467 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5468 $as_echo_n "checking for fgrep... " >&6; }
5469 if test "${ac_cv_path_FGREP+set}" = set; then
5470 $as_echo_n "(cached) " >&6
5472 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5473 then ac_cv_path_FGREP="$GREP -F"
5475 if test -z "$FGREP"; then
5476 ac_path_FGREP_found=false
5477 # Loop through the user's path and test for each of PROGNAME-LIST
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5482 test -z "$as_dir" && as_dir=.
5483 for ac_prog in fgrep; do
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5486 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5487 # Check for GNU ac_path_FGREP and select it if it is found.
5488 # Check for GNU $ac_path_FGREP
5489 case `"$ac_path_FGREP" --version 2>&1` in
5491 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5494 $as_echo_n 0123456789 >"conftest.in"
5497 cat "conftest.in" "conftest.in" >"conftest.tmp"
5498 mv "conftest.tmp" "conftest.in"
5499 cp "conftest.in" "conftest.nl"
5500 $as_echo 'FGREP' >> "conftest.nl"
5501 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5503 ac_count=`expr $ac_count + 1`
5504 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5505 # Best one so far, save it but keep looking for a better one
5506 ac_cv_path_FGREP="$ac_path_FGREP"
5507 ac_path_FGREP_max=$ac_count
5509 # 10*(2^10) chars as input seems more than enough
5510 test $ac_count -gt 10 && break
5512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5515 $ac_path_FGREP_found && break 3
5520 if test -z "$ac_cv_path_FGREP"; then
5521 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5522 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5523 { (exit 1); exit 1; }; }
5526 ac_cv_path_FGREP=$FGREP
5531 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5532 $as_echo "$ac_cv_path_FGREP" >&6; }
5533 FGREP="$ac_cv_path_FGREP"
5536 test -z "$GREP" && GREP=grep
5556 # Check whether --with-gnu-ld was given.
5557 if test "${with_gnu_ld+set}" = set; then
5558 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5564 if test "$GCC" = yes; then
5565 # Check if gcc -print-prog-name=ld gives a path.
5566 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5567 $as_echo_n "checking for ld used by $CC... " >&6; }
5570 # gcc leaves a trailing carriage return which upsets mingw
5571 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5573 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5576 # Accept absolute paths.
5578 re_direlt='/[^/][^/]*/\.\./'
5579 # Canonicalize the pathname of ld
5580 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5581 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5582 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5584 test -z "$LD" && LD="$ac_prog"
5587 # If it fails, then pretend we aren't using GCC.
5591 # If it is relative, then search for the first ld in PATH.
5595 elif test "$with_gnu_ld" = yes; then
5596 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5597 $as_echo_n "checking for GNU ld... " >&6; }
5599 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5600 $as_echo_n "checking for non-GNU ld... " >&6; }
5602 if test "${lt_cv_path_LD+set}" = set; then
5603 $as_echo_n "(cached) " >&6
5605 if test -z "$LD"; then
5606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5607 for ac_dir in $PATH; do
5609 test -z "$ac_dir" && ac_dir=.
5610 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5611 lt_cv_path_LD="$ac_dir/$ac_prog"
5612 # Check to see if the program is GNU ld. I'd rather use --version,
5613 # but apparently some variants of GNU ld only accept -v.
5614 # Break only if it was the GNU/non-GNU ld that we prefer.
5615 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5616 *GNU* | *'with BFD'*)
5617 test "$with_gnu_ld" != no && break
5620 test "$with_gnu_ld" != yes && break
5627 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5632 if test -n "$LD"; then
5633 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5634 $as_echo "$LD" >&6; }
5636 { $as_echo "$as_me:$LINENO: result: no" >&5
5637 $as_echo "no" >&6; }
5639 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5640 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5641 { (exit 1); exit 1; }; }
5642 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5643 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5644 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5645 $as_echo_n "(cached) " >&6
5647 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5648 case `$LD -v 2>&1 </dev/null` in
5649 *GNU* | *'with BFD'*)
5650 lt_cv_prog_gnu_ld=yes
5653 lt_cv_prog_gnu_ld=no
5657 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5658 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5659 with_gnu_ld=$lt_cv_prog_gnu_ld
5669 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5670 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5671 if test "${lt_cv_path_NM+set}" = set; then
5672 $as_echo_n "(cached) " >&6
5674 if test -n "$NM"; then
5675 # Let the user override the test.
5678 lt_nm_to_check="${ac_tool_prefix}nm"
5679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5680 lt_nm_to_check="$lt_nm_to_check nm"
5682 for lt_tmp_nm in $lt_nm_to_check; do
5683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5686 test -z "$ac_dir" && ac_dir=.
5687 tmp_nm="$ac_dir/$lt_tmp_nm"
5688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5689 # Check to see if the nm accepts a BSD-compat flag.
5690 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5691 # nm: unknown option "B" ignored
5692 # Tru64's nm complains that /dev/null is an invalid object file
5693 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5694 */dev/null* | *'Invalid file or object type'*)
5695 lt_cv_path_NM="$tmp_nm -B"
5699 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5701 lt_cv_path_NM="$tmp_nm -p"
5705 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5706 continue # so that we can try to find one that supports BSD flags
5715 : ${lt_cv_path_NM=no}
5718 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5719 $as_echo "$lt_cv_path_NM" >&6; }
5720 if test "$lt_cv_path_NM" != "no"; then
5723 # Didn't find any BSD compatible name lister, look for dumpbin.
5724 if test -n "$ac_tool_prefix"; then
5725 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5732 $as_echo_n "(cached) " >&6
5734 if test -n "$DUMPBIN"; then
5735 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 DUMPBIN=$ac_cv_prog_DUMPBIN
5755 if test -n "$DUMPBIN"; then
5756 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5757 $as_echo "$DUMPBIN" >&6; }
5759 { $as_echo "$as_me:$LINENO: result: no" >&5
5760 $as_echo "no" >&6; }
5764 test -n "$DUMPBIN" && break
5767 if test -z "$DUMPBIN"; then
5768 ac_ct_DUMPBIN=$DUMPBIN
5769 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5771 # Extract the first word of "$ac_prog", so it can be a program name with args.
5772 set dummy $ac_prog; ac_word=$2
5773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5776 $as_echo_n "(cached) " >&6
5778 if test -n "$ac_ct_DUMPBIN"; then
5779 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5799 if test -n "$ac_ct_DUMPBIN"; then
5800 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5801 $as_echo "$ac_ct_DUMPBIN" >&6; }
5803 { $as_echo "$as_me:$LINENO: result: no" >&5
5804 $as_echo "no" >&6; }
5808 test -n "$ac_ct_DUMPBIN" && break
5811 if test "x$ac_ct_DUMPBIN" = x; then
5814 case $cross_compiling:$ac_tool_warned in
5816 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5818 ac_tool_warned=yes ;;
5820 DUMPBIN=$ac_ct_DUMPBIN
5825 if test "$DUMPBIN" != ":"; then
5829 test -z "$NM" && NM=nm
5836 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5837 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5838 if test "${lt_cv_nm_interface+set}" = set; then
5839 $as_echo_n "(cached) " >&6
5841 lt_cv_nm_interface="BSD nm"
5842 echo "int some_variable = 0;" > conftest.$ac_ext
5843 (eval echo "\"\$as_me:5843: $ac_compile\"" >&5)
5844 (eval "$ac_compile" 2>conftest.err)
5845 cat conftest.err >&5
5846 (eval echo "\"\$as_me:5846: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5847 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5848 cat conftest.err >&5
5849 (eval echo "\"\$as_me:5849: output\"" >&5)
5850 cat conftest.out >&5
5851 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5852 lt_cv_nm_interface="MS dumpbin"
5856 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5857 $as_echo "$lt_cv_nm_interface" >&6; }
5859 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5860 $as_echo_n "checking whether ln -s works... " >&6; }
5862 if test "$LN_S" = "ln -s"; then
5863 { $as_echo "$as_me:$LINENO: result: yes" >&5
5864 $as_echo "yes" >&6; }
5866 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5867 $as_echo "no, using $LN_S" >&6; }
5870 # find the maximum length of command line arguments
5871 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5872 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5873 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5874 $as_echo_n "(cached) " >&6
5881 # On DJGPP, this test can blow up pretty badly due to problems in libc
5882 # (any single argument exceeding 2000 bytes causes a buffer overrun
5883 # during glob expansion). Even if it were fixed, the result of this
5884 # check would be larger than it should be.
5885 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5889 # Under GNU Hurd, this test is not required because there is
5890 # no limit to the length of command line arguments.
5891 # Libtool will interpret -1 as no limit whatsoever
5892 lt_cv_sys_max_cmd_len=-1;
5895 cygwin* | mingw* | cegcc*)
5896 # On Win9x/ME, this test blows up -- it succeeds, but takes
5897 # about 5 minutes as the teststring grows exponentially.
5898 # Worse, since 9x/ME are not pre-emptively multitasking,
5899 # you end up with a "frozen" computer, even though with patience
5900 # the test eventually succeeds (with a max line length of 256k).
5901 # Instead, let's just punt: use the minimum linelength reported by
5902 # all of the supported platforms: 8192 (on NT/2K/XP).
5903 lt_cv_sys_max_cmd_len=8192;
5907 # On AmigaOS with pdksh, this test takes hours, literally.
5908 # So we just punt and use a minimum line length of 8192.
5909 lt_cv_sys_max_cmd_len=8192;
5912 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5913 # This has been around since 386BSD, at least. Likely further.
5914 if test -x /sbin/sysctl; then
5915 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5916 elif test -x /usr/sbin/sysctl; then
5917 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5919 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5921 # And add a safety zone
5922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5927 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5928 lt_cv_sys_max_cmd_len=196608
5932 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5933 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5934 # nice to cause kernel panics so lets avoid the loop below.
5935 # First set a reasonable default.
5936 lt_cv_sys_max_cmd_len=16384
5938 if test -x /sbin/sysconfig; then
5939 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5940 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5945 lt_cv_sys_max_cmd_len=102400
5947 sysv5* | sco5v6* | sysv4.2uw2*)
5948 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5949 if test -n "$kargmax"; then
5950 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5952 lt_cv_sys_max_cmd_len=32768
5956 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5957 if test -n "$lt_cv_sys_max_cmd_len"; then
5958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5961 # Make teststring a little bigger before we do anything with it.
5962 # a 1K string should be a reasonable start.
5963 for i in 1 2 3 4 5 6 7 8 ; do
5964 teststring=$teststring$teststring
5966 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5967 # If test is not a shell built-in, we'll probably end up computing a
5968 # maximum length that is only half of the actual maximum length, but
5970 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5971 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5972 test $i != 17 # 1/2 MB should be enough
5975 teststring=$teststring$teststring
5977 # Only check the string length outside the loop.
5978 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5980 # Add a significant safety factor because C++ compilers can tack on
5981 # massive amounts of additional arguments before passing them to the
5982 # linker. It appears as though 1/2 is a usable value.
5983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5990 if test -n $lt_cv_sys_max_cmd_len ; then
5991 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5992 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5994 { $as_echo "$as_me:$LINENO: result: none" >&5
5995 $as_echo "none" >&6; }
5997 max_cmd_len=$lt_cv_sys_max_cmd_len
6008 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6009 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6010 # Try some XSI features
6013 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6015 && eval 'test $(( 1 + 1 )) -eq 2 \
6016 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6018 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6019 $as_echo "$xsi_shell" >&6; }
6022 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6023 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6025 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6027 && lt_shell_append=yes
6028 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6029 $as_echo "$lt_shell_append" >&6; }
6032 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6042 # test EBCDIC or ASCII
6043 case `echo X|tr X '\101'` in
6044 A) # ASCII based system
6045 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6046 lt_SP2NL='tr \040 \012'
6047 lt_NL2SP='tr \015\012 \040\040'
6049 *) # EBCDIC based system
6050 lt_SP2NL='tr \100 \n'
6051 lt_NL2SP='tr \r\n \100\100'
6063 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6064 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6065 if test "${lt_cv_ld_reload_flag+set}" = set; then
6066 $as_echo_n "(cached) " >&6
6068 lt_cv_ld_reload_flag='-r'
6070 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6071 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6072 reload_flag=$lt_cv_ld_reload_flag
6073 case $reload_flag in
6075 *) reload_flag=" $reload_flag" ;;
6077 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6080 if test "$GCC" = yes; then
6081 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6083 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6096 if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6099 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6102 $as_echo_n "(cached) " >&6
6104 if test -n "$OBJDUMP"; then
6105 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 OBJDUMP=$ac_cv_prog_OBJDUMP
6125 if test -n "$OBJDUMP"; then
6126 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6127 $as_echo "$OBJDUMP" >&6; }
6129 { $as_echo "$as_me:$LINENO: result: no" >&5
6130 $as_echo "no" >&6; }
6135 if test -z "$ac_cv_prog_OBJDUMP"; then
6136 ac_ct_OBJDUMP=$OBJDUMP
6137 # Extract the first word of "objdump", so it can be a program name with args.
6138 set dummy objdump; ac_word=$2
6139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6142 $as_echo_n "(cached) " >&6
6144 if test -n "$ac_ct_OBJDUMP"; then
6145 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6165 if test -n "$ac_ct_OBJDUMP"; then
6166 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6167 $as_echo "$ac_ct_OBJDUMP" >&6; }
6169 { $as_echo "$as_me:$LINENO: result: no" >&5
6170 $as_echo "no" >&6; }
6173 if test "x$ac_ct_OBJDUMP" = x; then
6176 case $cross_compiling:$ac_tool_warned in
6178 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6182 OBJDUMP=$ac_ct_OBJDUMP
6185 OBJDUMP="$ac_cv_prog_OBJDUMP"
6188 test -z "$OBJDUMP" && OBJDUMP=objdump
6198 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6199 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6200 if test "${lt_cv_deplibs_check_method+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6203 lt_cv_file_magic_cmd='$MAGIC_CMD'
6204 lt_cv_file_magic_test_file=
6205 lt_cv_deplibs_check_method='unknown'
6206 # Need to set the preceding variable on all platforms that support
6207 # interlibrary dependencies.
6208 # 'none' -- dependencies not supported.
6209 # `unknown' -- same as none, but documents that we really don't know.
6210 # 'pass_all' -- all dependencies passed with no checks.
6211 # 'test_compile' -- check by making test program.
6212 # 'file_magic [[regex]]' -- check by looking for files in library path
6213 # which responds to the $file_magic_cmd with a given extended regex.
6214 # If you have `file' or equivalent on your system and you're not sure
6215 # whether `pass_all' will *always* work, you probably want this one.
6219 lt_cv_deplibs_check_method=pass_all
6223 lt_cv_deplibs_check_method=pass_all
6227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6228 lt_cv_file_magic_cmd='/usr/bin/file -L'
6229 lt_cv_file_magic_test_file=/shlib/libc.so
6233 # func_win32_libid is a shell function defined in ltmain.sh
6234 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6235 lt_cv_file_magic_cmd='func_win32_libid'
6239 # Base MSYS/MinGW do not provide the 'file' command needed by
6240 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6241 # unless we find 'file', for example because we are cross-compiling.
6242 if ( file / ) >/dev/null 2>&1; then
6243 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6244 lt_cv_file_magic_cmd='func_win32_libid'
6246 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6247 lt_cv_file_magic_cmd='$OBJDUMP -f'
6252 # use the weaker test based on 'objdump'. See mingw*.
6253 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6254 lt_cv_file_magic_cmd='$OBJDUMP -f'
6257 darwin* | rhapsody*)
6258 lt_cv_deplibs_check_method=pass_all
6261 freebsd* | dragonfly*)
6262 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6265 # Not sure whether the presence of OpenBSD here was a mistake.
6266 # Let's accept both of them until this is cleared up.
6267 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6268 lt_cv_file_magic_cmd=/usr/bin/file
6269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6273 lt_cv_deplibs_check_method=pass_all
6278 lt_cv_deplibs_check_method=pass_all
6281 hpux10.20* | hpux11*)
6282 lt_cv_file_magic_cmd=/usr/bin/file
6285 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6286 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6289 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]'
6290 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6294 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6300 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6304 irix5* | irix6* | nonstopux*)
6306 *-32|*"-32 ") libmagic=32-bit;;
6307 *-n32|*"-n32 ") libmagic=N32;;
6308 *-64|*"-64 ") libmagic=64-bit;;
6309 *) libmagic=never-match;;
6311 lt_cv_deplibs_check_method=pass_all
6314 # This must be Linux ELF.
6315 linux* | k*bsd*-gnu)
6316 lt_cv_deplibs_check_method=pass_all
6320 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6329 lt_cv_file_magic_cmd=/usr/bin/file
6330 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6334 lt_cv_deplibs_check_method=pass_all
6338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6345 osf3* | osf4* | osf5*)
6346 lt_cv_deplibs_check_method=pass_all
6350 lt_cv_deplibs_check_method=pass_all
6354 lt_cv_deplibs_check_method=pass_all
6357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6358 lt_cv_deplibs_check_method=pass_all
6362 case $host_vendor in
6364 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]'
6365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6368 lt_cv_deplibs_check_method=pass_all
6371 lt_cv_file_magic_cmd='/bin/file'
6372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6375 lt_cv_file_magic_cmd='/bin/file'
6376 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6377 lt_cv_file_magic_test_file=/lib/libc.so
6380 lt_cv_deplibs_check_method=pass_all
6383 lt_cv_deplibs_check_method=pass_all
6389 lt_cv_deplibs_check_method=pass_all
6394 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6395 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6396 file_magic_cmd=$lt_cv_file_magic_cmd
6397 deplibs_check_method=$lt_cv_deplibs_check_method
6398 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6411 if test -n "$ac_tool_prefix"; then
6412 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6413 set dummy ${ac_tool_prefix}ar; ac_word=$2
6414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if test "${ac_cv_prog_AR+set}" = set; then
6417 $as_echo_n "(cached) " >&6
6419 if test -n "$AR"; then
6420 ac_cv_prog_AR="$AR" # Let the user override the test.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_prog_AR="${ac_tool_prefix}ar"
6430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 if test -n "$AR"; then
6441 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6442 $as_echo "$AR" >&6; }
6444 { $as_echo "$as_me:$LINENO: result: no" >&5
6445 $as_echo "no" >&6; }
6450 if test -z "$ac_cv_prog_AR"; then
6452 # Extract the first word of "ar", so it can be a program name with args.
6453 set dummy ar; ac_word=$2
6454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6457 $as_echo_n "(cached) " >&6
6459 if test -n "$ac_ct_AR"; then
6460 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_ac_ct_AR="ar"
6470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6480 if test -n "$ac_ct_AR"; then
6481 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6482 $as_echo "$ac_ct_AR" >&6; }
6484 { $as_echo "$as_me:$LINENO: result: no" >&5
6485 $as_echo "no" >&6; }
6488 if test "x$ac_ct_AR" = x; then
6491 case $cross_compiling:$ac_tool_warned in
6493 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495 ac_tool_warned=yes ;;
6503 test -z "$AR" && AR=ar
6504 test -z "$AR_FLAGS" && AR_FLAGS=cru
6516 if test -n "$ac_tool_prefix"; then
6517 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6518 set dummy ${ac_tool_prefix}strip; ac_word=$2
6519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if test "${ac_cv_prog_STRIP+set}" = set; then
6522 $as_echo_n "(cached) " >&6
6524 if test -n "$STRIP"; then
6525 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 STRIP=$ac_cv_prog_STRIP
6545 if test -n "$STRIP"; then
6546 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6547 $as_echo "$STRIP" >&6; }
6549 { $as_echo "$as_me:$LINENO: result: no" >&5
6550 $as_echo "no" >&6; }
6555 if test -z "$ac_cv_prog_STRIP"; then
6557 # Extract the first word of "strip", so it can be a program name with args.
6558 set dummy strip; ac_word=$2
6559 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 $as_echo_n "checking for $ac_word... " >&6; }
6561 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6562 $as_echo_n "(cached) " >&6
6564 if test -n "$ac_ct_STRIP"; then
6565 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574 ac_cv_prog_ac_ct_STRIP="strip"
6575 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6585 if test -n "$ac_ct_STRIP"; then
6586 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6587 $as_echo "$ac_ct_STRIP" >&6; }
6589 { $as_echo "$as_me:$LINENO: result: no" >&5
6590 $as_echo "no" >&6; }
6593 if test "x$ac_ct_STRIP" = x; then
6596 case $cross_compiling:$ac_tool_warned in
6598 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600 ac_tool_warned=yes ;;
6605 STRIP="$ac_cv_prog_STRIP"
6608 test -z "$STRIP" && STRIP=:
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if test "${ac_cv_prog_RANLIB+set}" = set; then
6621 $as_echo_n "(cached) " >&6
6623 if test -n "$RANLIB"; then
6624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 RANLIB=$ac_cv_prog_RANLIB
6644 if test -n "$RANLIB"; then
6645 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6646 $as_echo "$RANLIB" >&6; }
6648 { $as_echo "$as_me:$LINENO: result: no" >&5
6649 $as_echo "no" >&6; }
6654 if test -z "$ac_cv_prog_RANLIB"; then
6655 ac_ct_RANLIB=$RANLIB
6656 # Extract the first word of "ranlib", so it can be a program name with args.
6657 set dummy ranlib; ac_word=$2
6658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6661 $as_echo_n "(cached) " >&6
6663 if test -n "$ac_ct_RANLIB"; then
6664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_ac_ct_RANLIB="ranlib"
6674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6684 if test -n "$ac_ct_RANLIB"; then
6685 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6686 $as_echo "$ac_ct_RANLIB" >&6; }
6688 { $as_echo "$as_me:$LINENO: result: no" >&5
6689 $as_echo "no" >&6; }
6692 if test "x$ac_ct_RANLIB" = x; then
6695 case $cross_compiling:$ac_tool_warned in
6697 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699 ac_tool_warned=yes ;;
6701 RANLIB=$ac_ct_RANLIB
6704 RANLIB="$ac_cv_prog_RANLIB"
6707 test -z "$RANLIB" && RANLIB=:
6714 # Determine commands to create old-style static archives.
6715 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6716 old_postinstall_cmds='chmod 644 $oldlib'
6717 old_postuninstall_cmds=
6719 if test -n "$RANLIB"; then
6722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6725 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6728 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6764 # If no C compiler was specified, use CC.
6767 # If no C compiler flags were specified, use CFLAGS.
6768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6770 # Allow CC to be a program name with arguments.
6774 # Check for command to grab the raw symbol name followed by C symbol from nm.
6775 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6776 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6777 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6778 $as_echo_n "(cached) " >&6
6781 # These are sane defaults that work on at least a few old systems.
6782 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6784 # Character class describing NM global symbol codes.
6785 symcode='[BCDEGRST]'
6787 # Regexp to match symbols that can be accessed directly from C.
6788 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6790 # Define system-specific variables.
6795 cygwin* | mingw* | pw32* | cegcc*)
6796 symcode='[ABCDGISTW]'
6799 if test "$host_cpu" = ia64; then
6800 symcode='[ABCDEGRST]'
6804 symcode='[BCDEGRST]'
6807 symcode='[BCDEGQRST]'
6818 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6826 # If we're using GNU nm, then use its standard symbol codes.
6827 case `$NM -V 2>&1` in
6828 *GNU* | *'with BFD'*)
6829 symcode='[ABCDGIRSTW]' ;;
6832 # Transform an extracted symbol line into a proper C declaration.
6833 # Some systems (esp. on ia64) link data and code symbols differently,
6834 # so use this general approach.
6835 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6837 # Transform an extracted symbol line into symbol name and symbol address
6838 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6839 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6841 # Handle CRLF in mingw tool chain
6845 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6849 # Try without a prefix underscore, then with it.
6850 for ac_symprfx in "" "_"; do
6852 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6853 symxfrm="\\1 $ac_symprfx\\2 \\2"
6855 # Write the raw and C identifiers.
6856 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6857 # Fake it for dumpbin and say T for any non-static function
6858 # and D for any global variable.
6859 # Also find C++ and __fastcall symbols from MSVC++,
6860 # which start with @ or ?.
6861 lt_cv_sys_global_symbol_pipe="$AWK '"\
6862 " {last_section=section; section=\$ 3};"\
6863 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6864 " \$ 0!~/External *\|/{next};"\
6865 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6866 " {if(hide[section]) next};"\
6867 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6868 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6869 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6870 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6871 " ' prfx=^$ac_symprfx"
6873 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6876 # Check to see that the pipe works correctly.
6880 cat > conftest.$ac_ext <<_LT_EOF
6885 void nm_test_func(void);
6886 void nm_test_func(void){}
6890 int main(){nm_test_var='a';nm_test_func();return(0);}
6893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894 (eval $ac_compile) 2>&5
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; then
6898 # Now try to grab the symbols.
6900 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6901 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } && test -s "$nlist"; then
6905 # Try sorting and uniquifying the output.
6906 if sort "$nlist" | uniq > "$nlist"T; then
6907 mv -f "$nlist"T "$nlist"
6912 # Make sure that we snagged all the symbols we need.
6913 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6914 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6915 cat <<_LT_EOF > conftest.$ac_ext
6921 # Now generate the symbol file.
6922 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6924 cat <<_LT_EOF >> conftest.$ac_ext
6926 /* The mapping between symbol names and symbols. */
6931 lt__PROGRAM__LTX_preloaded_symbols[] =
6933 { "@PROGRAM@", (void *) 0 },
6935 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6936 cat <<\_LT_EOF >> conftest.$ac_ext
6940 /* This works around a problem in FreeBSD linker */
6941 #ifdef FREEBSD_WORKAROUND
6942 static const void *lt_preloaded_setup() {
6943 return lt__PROGRAM__LTX_preloaded_symbols;
6951 # Now try linking the two files.
6952 mv conftest.$ac_objext conftstm.$ac_objext
6953 lt_save_LIBS="$LIBS"
6954 lt_save_CFLAGS="$CFLAGS"
6955 LIBS="conftstm.$ac_objext"
6956 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>&5
6960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6964 LIBS="$lt_save_LIBS"
6965 CFLAGS="$lt_save_CFLAGS"
6967 echo "cannot find nm_test_func in $nlist" >&5
6970 echo "cannot find nm_test_var in $nlist" >&5
6973 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6976 echo "$progname: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6979 rm -rf conftest* conftst*
6981 # Do not use the global_symbol_pipe unless it works.
6982 if test "$pipe_works" = yes; then
6985 lt_cv_sys_global_symbol_pipe=
6991 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6992 lt_cv_sys_global_symbol_to_cdecl=
6994 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6995 { $as_echo "$as_me:$LINENO: result: failed" >&5
6996 $as_echo "failed" >&6; }
6998 { $as_echo "$as_me:$LINENO: result: ok" >&5
6999 $as_echo "ok" >&6; }
7023 # Check whether --enable-libtool-lock was given.
7024 if test "${enable_libtool_lock+set}" = set; then
7025 enableval=$enable_libtool_lock;
7028 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7030 # Some flags need to be propagated to the compiler or linker for good
7034 # Find out which ABI we are using.
7035 echo 'int i;' > conftest.$ac_ext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>&5
7039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; then
7041 case `/usr/bin/file conftest.$ac_objext` in
7053 # Find out which ABI we are using.
7054 echo '#line 7054 "configure"' > conftest.$ac_ext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>&5
7058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; then
7060 if test "$lt_cv_prog_gnu_ld" = yes; then
7061 case `/usr/bin/file conftest.$ac_objext` in
7063 LD="${LD-ld} -melf32bsmip"
7066 LD="${LD-ld} -melf32bmipn32"
7069 LD="${LD-ld} -melf64bmip"
7073 case `/usr/bin/file conftest.$ac_objext` in
7089 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7090 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7091 # Find out which ABI we are using.
7092 echo 'int i;' > conftest.$ac_ext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094 (eval $ac_compile) 2>&5
7096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; then
7098 case `/usr/bin/file conftest.o` in
7101 x86_64-*kfreebsd*-gnu)
7102 LD="${LD-ld} -m elf_i386_fbsd"
7105 LD="${LD-ld} -m elf_i386"
7107 ppc64-*linux*|powerpc64-*linux*)
7108 LD="${LD-ld} -m elf32ppclinux"
7111 LD="${LD-ld} -m elf_s390"
7114 LD="${LD-ld} -m elf32_sparc"
7120 x86_64-*kfreebsd*-gnu)
7121 LD="${LD-ld} -m elf_x86_64_fbsd"
7124 LD="${LD-ld} -m elf_x86_64"
7126 ppc*-*linux*|powerpc*-*linux*)
7127 LD="${LD-ld} -m elf64ppc"
7129 s390*-*linux*|s390*-*tpf*)
7130 LD="${LD-ld} -m elf64_s390"
7133 LD="${LD-ld} -m elf64_sparc"
7143 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7144 SAVE_CFLAGS="$CFLAGS"
7145 CFLAGS="$CFLAGS -belf"
7146 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7147 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7148 if test "${lt_cv_cc_needs_belf+set}" = set; then
7149 $as_echo_n "(cached) " >&6
7152 ac_cpp='$CPP $CPPFLAGS'
7153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7157 cat >conftest.$ac_ext <<_ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (ac_try="$ac_link"
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7179 $as_echo "$ac_try_echo") >&5
7180 (eval "$ac_link") 2>conftest.er1
7182 grep -v '^ *+' conftest.er1 >conftest.err
7184 cat conftest.err >&5
7185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } && {
7187 test -z "$ac_c_werror_flag" ||
7188 test ! -s conftest.err
7189 } && test -s conftest$ac_exeext && {
7190 test "$cross_compiling" = yes ||
7191 $as_test_x conftest$ac_exeext
7193 lt_cv_cc_needs_belf=yes
7195 $as_echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 lt_cv_cc_needs_belf=no
7201 rm -rf conftest.dSYM
7202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7203 conftest$ac_exeext conftest.$ac_ext
7205 ac_cpp='$CPP $CPPFLAGS'
7206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7211 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7212 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7213 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7215 CFLAGS="$SAVE_CFLAGS"
7219 # Find out which ABI we are using.
7220 echo 'int i;' > conftest.$ac_ext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222 (eval $ac_compile) 2>&5
7224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; then
7226 case `/usr/bin/file conftest.o` in
7228 case $lt_cv_prog_gnu_ld in
7229 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7231 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7243 need_locks="$enable_libtool_lock"
7247 rhapsody* | darwin*)
7248 if test -n "$ac_tool_prefix"; then
7249 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7254 $as_echo_n "(cached) " >&6
7256 if test -n "$DSYMUTIL"; then
7257 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7277 if test -n "$DSYMUTIL"; then
7278 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7279 $as_echo "$DSYMUTIL" >&6; }
7281 { $as_echo "$as_me:$LINENO: result: no" >&5
7282 $as_echo "no" >&6; }
7287 if test -z "$ac_cv_prog_DSYMUTIL"; then
7288 ac_ct_DSYMUTIL=$DSYMUTIL
7289 # Extract the first word of "dsymutil", so it can be a program name with args.
7290 set dummy dsymutil; ac_word=$2
7291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7294 $as_echo_n "(cached) " >&6
7296 if test -n "$ac_ct_DSYMUTIL"; then
7297 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7317 if test -n "$ac_ct_DSYMUTIL"; then
7318 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7319 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7321 { $as_echo "$as_me:$LINENO: result: no" >&5
7322 $as_echo "no" >&6; }
7325 if test "x$ac_ct_DSYMUTIL" = x; then
7328 case $cross_compiling:$ac_tool_warned in
7330 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7334 DSYMUTIL=$ac_ct_DSYMUTIL
7337 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7346 $as_echo_n "(cached) " >&6
7348 if test -n "$NMEDIT"; then
7349 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 NMEDIT=$ac_cv_prog_NMEDIT
7369 if test -n "$NMEDIT"; then
7370 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7371 $as_echo "$NMEDIT" >&6; }
7373 { $as_echo "$as_me:$LINENO: result: no" >&5
7374 $as_echo "no" >&6; }
7379 if test -z "$ac_cv_prog_NMEDIT"; then
7380 ac_ct_NMEDIT=$NMEDIT
7381 # Extract the first word of "nmedit", so it can be a program name with args.
7382 set dummy nmedit; ac_word=$2
7383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7386 $as_echo_n "(cached) " >&6
7388 if test -n "$ac_ct_NMEDIT"; then
7389 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7409 if test -n "$ac_ct_NMEDIT"; then
7410 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7411 $as_echo "$ac_ct_NMEDIT" >&6; }
7413 { $as_echo "$as_me:$LINENO: result: no" >&5
7414 $as_echo "no" >&6; }
7417 if test "x$ac_ct_NMEDIT" = x; then
7420 case $cross_compiling:$ac_tool_warned in
7422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7426 NMEDIT=$ac_ct_NMEDIT
7429 NMEDIT="$ac_cv_prog_NMEDIT"
7432 if test -n "$ac_tool_prefix"; then
7433 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if test "${ac_cv_prog_LIPO+set}" = set; then
7438 $as_echo_n "(cached) " >&6
7440 if test -n "$LIPO"; then
7441 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 LIPO=$ac_cv_prog_LIPO
7461 if test -n "$LIPO"; then
7462 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7463 $as_echo "$LIPO" >&6; }
7465 { $as_echo "$as_me:$LINENO: result: no" >&5
7466 $as_echo "no" >&6; }
7471 if test -z "$ac_cv_prog_LIPO"; then
7473 # Extract the first word of "lipo", so it can be a program name with args.
7474 set dummy lipo; ac_word=$2
7475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7478 $as_echo_n "(cached) " >&6
7480 if test -n "$ac_ct_LIPO"; then
7481 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_prog_ac_ct_LIPO="lipo"
7491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7501 if test -n "$ac_ct_LIPO"; then
7502 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7503 $as_echo "$ac_ct_LIPO" >&6; }
7505 { $as_echo "$as_me:$LINENO: result: no" >&5
7506 $as_echo "no" >&6; }
7509 if test "x$ac_ct_LIPO" = x; then
7512 case $cross_compiling:$ac_tool_warned in
7514 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7521 LIPO="$ac_cv_prog_LIPO"
7524 if test -n "$ac_tool_prefix"; then
7525 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}otool; ac_word=$2
7527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if test "${ac_cv_prog_OTOOL+set}" = set; then
7530 $as_echo_n "(cached) " >&6
7532 if test -n "$OTOOL"; then
7533 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 OTOOL=$ac_cv_prog_OTOOL
7553 if test -n "$OTOOL"; then
7554 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7555 $as_echo "$OTOOL" >&6; }
7557 { $as_echo "$as_me:$LINENO: result: no" >&5
7558 $as_echo "no" >&6; }
7563 if test -z "$ac_cv_prog_OTOOL"; then
7565 # Extract the first word of "otool", so it can be a program name with args.
7566 set dummy otool; ac_word=$2
7567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7570 $as_echo_n "(cached) " >&6
7572 if test -n "$ac_ct_OTOOL"; then
7573 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_prog_ac_ct_OTOOL="otool"
7583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7593 if test -n "$ac_ct_OTOOL"; then
7594 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7595 $as_echo "$ac_ct_OTOOL" >&6; }
7597 { $as_echo "$as_me:$LINENO: result: no" >&5
7598 $as_echo "no" >&6; }
7601 if test "x$ac_ct_OTOOL" = x; then
7604 case $cross_compiling:$ac_tool_warned in
7606 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7613 OTOOL="$ac_cv_prog_OTOOL"
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7622 $as_echo_n "(cached) " >&6
7624 if test -n "$OTOOL64"; then
7625 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 OTOOL64=$ac_cv_prog_OTOOL64
7645 if test -n "$OTOOL64"; then
7646 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7647 $as_echo "$OTOOL64" >&6; }
7649 { $as_echo "$as_me:$LINENO: result: no" >&5
7650 $as_echo "no" >&6; }
7655 if test -z "$ac_cv_prog_OTOOL64"; then
7656 ac_ct_OTOOL64=$OTOOL64
7657 # Extract the first word of "otool64", so it can be a program name with args.
7658 set dummy otool64; ac_word=$2
7659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7662 $as_echo_n "(cached) " >&6
7664 if test -n "$ac_ct_OTOOL64"; then
7665 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_prog_ac_ct_OTOOL64="otool64"
7675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7685 if test -n "$ac_ct_OTOOL64"; then
7686 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7687 $as_echo "$ac_ct_OTOOL64" >&6; }
7689 { $as_echo "$as_me:$LINENO: result: no" >&5
7690 $as_echo "no" >&6; }
7693 if test "x$ac_ct_OTOOL64" = x; then
7696 case $cross_compiling:$ac_tool_warned in
7698 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7702 OTOOL64=$ac_ct_OTOOL64
7705 OTOOL64="$ac_cv_prog_OTOOL64"
7734 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7735 $as_echo_n "checking for -single_module linker flag... " >&6; }
7736 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7737 $as_echo_n "(cached) " >&6
7739 lt_cv_apple_cc_single_mod=no
7740 if test -z "${LT_MULTI_MODULE}"; then
7741 # By default we will add the -single_module flag. You can override
7742 # by either setting the environment variable LT_MULTI_MODULE
7743 # non-empty at configure time, or by adding -multi_module to the
7745 rm -rf libconftest.dylib*
7746 echo "int foo(void){return 1;}" > conftest.c
7747 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7748 -dynamiclib -Wl,-single_module conftest.c" >&5
7749 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7750 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7752 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7753 lt_cv_apple_cc_single_mod=yes
7755 cat conftest.err >&5
7757 rm -rf libconftest.dylib*
7761 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7762 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7763 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7764 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7765 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7766 $as_echo_n "(cached) " >&6
7768 lt_cv_ld_exported_symbols_list=no
7769 save_LDFLAGS=$LDFLAGS
7770 echo "_main" > conftest.sym
7771 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7772 cat >conftest.$ac_ext <<_ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7787 rm -f conftest.$ac_objext conftest$ac_exeext
7788 if { (ac_try="$ac_link"
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7794 $as_echo "$ac_try_echo") >&5
7795 (eval "$ac_link") 2>conftest.er1
7797 grep -v '^ *+' conftest.er1 >conftest.err
7799 cat conftest.err >&5
7800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest$ac_exeext && {
7805 test "$cross_compiling" = yes ||
7806 $as_test_x conftest$ac_exeext
7808 lt_cv_ld_exported_symbols_list=yes
7810 $as_echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 lt_cv_ld_exported_symbols_list=no
7816 rm -rf conftest.dSYM
7817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7818 conftest$ac_exeext conftest.$ac_ext
7819 LDFLAGS="$save_LDFLAGS"
7822 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7823 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7825 rhapsody* | darwin1.[012])
7826 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7828 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7829 darwin*) # darwin 5.x on
7830 # if running on 10.5 or later, the deployment target defaults
7831 # to the OS version, if on x86, and 10.4, the deployment
7832 # target defaults to 10.4. Don't you love it?
7833 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7834 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7835 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7837 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7839 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7843 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7844 _lt_dar_single_mod='$single_module'
7846 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7847 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7849 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7851 if test "$DSYMUTIL" != ":"; then
7852 _lt_dsymutil='~$DSYMUTIL $lib || :'
7860 ac_cpp='$CPP $CPPFLAGS'
7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7864 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7865 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7866 # On Suns, sometimes $CPP names a directory.
7867 if test -n "$CPP" && test -d "$CPP"; then
7870 if test -z "$CPP"; then
7871 if test "${ac_cv_prog_CPP+set}" = set; then
7872 $as_echo_n "(cached) " >&6
7874 # Double quotes because CPP needs to be expanded
7875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7878 for ac_c_preproc_warn_flag in '' yes
7880 # Use a header file that comes with gcc, so configuring glibc
7881 # with a fresh cross-compiler works.
7882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7883 # <limits.h> exists even on freestanding compilers.
7884 # On the NeXT, cc -E runs the code through the compiler's parser,
7885 # not just through cpp. "Syntax error" is here to catch this case.
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7893 # include <limits.h>
7895 # include <assert.h>
7899 if { (ac_try="$ac_cpp conftest.$ac_ext"
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7905 $as_echo "$ac_try_echo") >&5
7906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7908 grep -v '^ *+' conftest.er1 >conftest.err
7910 cat conftest.err >&5
7911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } >/dev/null && {
7913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7914 test ! -s conftest.err
7918 $as_echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7921 # Broken: fails on valid input.
7925 rm -f conftest.err conftest.$ac_ext
7927 # OK, works on sane cases. Now check whether nonexistent headers
7928 # can be detected and how.
7929 cat >conftest.$ac_ext <<_ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7935 #include <ac_nonexistent.h>
7937 if { (ac_try="$ac_cpp conftest.$ac_ext"
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7943 $as_echo "$ac_try_echo") >&5
7944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7946 grep -v '^ *+' conftest.er1 >conftest.err
7948 cat conftest.err >&5
7949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } >/dev/null && {
7951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7952 test ! -s conftest.err
7954 # Broken: success on invalid input.
7957 $as_echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 # Passes both tests.
7965 rm -f conftest.err conftest.$ac_ext
7968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7969 rm -f conftest.err conftest.$ac_ext
7970 if $ac_preproc_ok; then
7982 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7983 $as_echo "$CPP" >&6; }
7985 for ac_c_preproc_warn_flag in '' yes
7987 # Use a header file that comes with gcc, so configuring glibc
7988 # with a fresh cross-compiler works.
7989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7990 # <limits.h> exists even on freestanding compilers.
7991 # On the NeXT, cc -E runs the code through the compiler's parser,
7992 # not just through cpp. "Syntax error" is here to catch this case.
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8000 # include <limits.h>
8002 # include <assert.h>
8006 if { (ac_try="$ac_cpp conftest.$ac_ext"
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8012 $as_echo "$ac_try_echo") >&5
8013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8015 grep -v '^ *+' conftest.er1 >conftest.err
8017 cat conftest.err >&5
8018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } >/dev/null && {
8020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8025 $as_echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 # Broken: fails on valid input.
8032 rm -f conftest.err conftest.$ac_ext
8034 # OK, works on sane cases. Now check whether nonexistent headers
8035 # can be detected and how.
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 #include <ac_nonexistent.h>
8044 if { (ac_try="$ac_cpp conftest.$ac_ext"
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8050 $as_echo "$ac_try_echo") >&5
8051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1 >conftest.err
8055 cat conftest.err >&5
8056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } >/dev/null && {
8058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8061 # Broken: success on invalid input.
8064 $as_echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 # Passes both tests.
8072 rm -f conftest.err conftest.$ac_ext
8075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8076 rm -f conftest.err conftest.$ac_ext
8077 if $ac_preproc_ok; then
8080 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8082 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8083 See \`config.log' for more details." >&5
8084 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8085 See \`config.log' for more details." >&2;}
8086 { (exit 1); exit 1; }; }; }
8090 ac_cpp='$CPP $CPPFLAGS'
8091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8096 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8097 $as_echo_n "checking for ANSI C header files... " >&6; }
8098 if test "${ac_cv_header_stdc+set}" = set; then
8099 $as_echo_n "(cached) " >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8120 rm -f conftest.$ac_objext
8121 if { (ac_try="$ac_compile"
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128 (eval "$ac_compile") 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest.$ac_objext; then
8138 ac_cv_header_stdc=yes
8140 $as_echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8143 ac_cv_header_stdc=no
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 if test $ac_cv_header_stdc = yes; then
8149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8150 cat >conftest.$ac_ext <<_ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8160 $EGREP "memchr" >/dev/null 2>&1; then
8163 ac_cv_header_stdc=no
8169 if test $ac_cv_header_stdc = yes; then
8170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8181 $EGREP "free" >/dev/null 2>&1; then
8184 ac_cv_header_stdc=no
8190 if test $ac_cv_header_stdc = yes; then
8191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8192 if test "$cross_compiling" = yes; then
8195 cat >conftest.$ac_ext <<_ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8203 #if ((' ' & 0x0FF) == 0x020)
8204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8207 # define ISLOWER(c) \
8208 (('a' <= (c) && (c) <= 'i') \
8209 || ('j' <= (c) && (c) <= 'r') \
8210 || ('s' <= (c) && (c) <= 'z'))
8211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8219 for (i = 0; i < 256; i++)
8220 if (XOR (islower (i), ISLOWER (i))
8221 || toupper (i) != TOUPPER (i))
8226 rm -f conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8233 $as_echo "$ac_try_echo") >&5
8234 (eval "$ac_link") 2>&5
8236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8238 { (case "(($ac_try" in
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8243 $as_echo "$ac_try_echo") >&5
8244 (eval "$ac_try") 2>&5
8246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8250 $as_echo "$as_me: program exited with status $ac_status" >&5
8251 $as_echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8255 ac_cv_header_stdc=no
8257 rm -rf conftest.dSYM
8258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8265 $as_echo "$ac_cv_header_stdc" >&6; }
8266 if test $ac_cv_header_stdc = yes; then
8268 cat >>confdefs.h <<\_ACEOF
8269 #define STDC_HEADERS 1
8274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8285 inttypes.h stdint.h unistd.h
8287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8289 $as_echo_n "checking for $ac_header... " >&6; }
8290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8291 $as_echo_n "(cached) " >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 $ac_includes_default
8301 #include <$ac_header>
8303 rm -f conftest.$ac_objext
8304 if { (ac_try="$ac_compile"
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310 $as_echo "$ac_try_echo") >&5
8311 (eval "$ac_compile") 2>conftest.er1
8313 grep -v '^ *+' conftest.er1 >conftest.err
8315 cat conftest.err >&5
8316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 } && test -s conftest.$ac_objext; then
8321 eval "$as_ac_Header=yes"
8323 $as_echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 eval "$as_ac_Header=no"
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 ac_res=`eval 'as_val=${'$as_ac_Header'}
8332 $as_echo "$as_val"'`
8333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8334 $as_echo "$ac_res" >&6; }
8335 as_val=`eval 'as_val=${'$as_ac_Header'}
8336 $as_echo "$as_val"'`
8337 if test "x$as_val" = x""yes; then
8338 cat >>confdefs.h <<_ACEOF
8339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8348 for ac_header in dlfcn.h
8350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8352 $as_echo_n "checking for $ac_header... " >&6; }
8353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8354 $as_echo_n "(cached) " >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 $ac_includes_default
8364 #include <$ac_header>
8366 rm -f conftest.$ac_objext
8367 if { (ac_try="$ac_compile"
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8373 $as_echo "$ac_try_echo") >&5
8374 (eval "$ac_compile") 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } && {
8381 test -z "$ac_c_werror_flag" ||
8382 test ! -s conftest.err
8383 } && test -s conftest.$ac_objext; then
8384 eval "$as_ac_Header=yes"
8386 $as_echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8389 eval "$as_ac_Header=no"
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 ac_res=`eval 'as_val=${'$as_ac_Header'}
8395 $as_echo "$as_val"'`
8396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8397 $as_echo "$ac_res" >&6; }
8398 as_val=`eval 'as_val=${'$as_ac_Header'}
8399 $as_echo "$as_val"'`
8400 if test "x$as_val" = x""yes; then
8401 cat >>confdefs.h <<_ACEOF
8402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8421 # Check whether --enable-shared was given.
8422 if test "${enable_shared+set}" = set; then
8423 enableval=$enable_shared; p=${PACKAGE-default}
8425 yes) enable_shared=yes ;;
8426 no) enable_shared=no ;;
8429 # Look at the argument we got. We use all the common list separators.
8430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8431 for pkg in $enableval; do
8433 if test "X$pkg" = "X$p"; then
8454 # Check whether --with-pic was given.
8455 if test "${with_pic+set}" = set; then
8456 withval=$with_pic; pic_mode="$withval"
8462 test -z "$pic_mode" && pic_mode=default
8470 # Check whether --enable-fast-install was given.
8471 if test "${enable_fast_install+set}" = set; then
8472 enableval=$enable_fast_install; p=${PACKAGE-default}
8474 yes) enable_fast_install=yes ;;
8475 no) enable_fast_install=no ;;
8477 enable_fast_install=no
8478 # Look at the argument we got. We use all the common list separators.
8479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8480 for pkg in $enableval; do
8482 if test "X$pkg" = "X$p"; then
8483 enable_fast_install=yes
8490 enable_fast_install=yes
8503 # This can be used to rebuild libtool when needed
8504 LIBTOOL_DEPS="$ltmain"
8506 # Always use our own libtool.
8507 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8533 test -z "$LN_S" && LN_S="ln -s"
8548 if test -n "${ZSH_VERSION+set}" ; then
8549 setopt NO_GLOB_SUBST
8552 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8553 $as_echo_n "checking for objdir... " >&6; }
8554 if test "${lt_cv_objdir+set}" = set; then
8555 $as_echo_n "(cached) " >&6
8557 rm -f .libs 2>/dev/null
8558 mkdir .libs 2>/dev/null
8559 if test -d .libs; then
8562 # MS-DOS does not allow filenames that begin with a dot.
8565 rmdir .libs 2>/dev/null
8567 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8568 $as_echo "$lt_cv_objdir" >&6; }
8569 objdir=$lt_cv_objdir
8575 cat >>confdefs.h <<_ACEOF
8576 #define LT_OBJDIR "$lt_cv_objdir/"
8597 # AIX sometimes has problems with the GCC collect2 program. For some
8598 # reason, if we set the COLLECT_NAMES environment variable, the problems
8599 # vanish in a puff of smoke.
8600 if test "X${COLLECT_NAMES+set}" != Xset; then
8602 export COLLECT_NAMES
8607 # Sed substitution that helps us do robust quoting. It backslashifies
8608 # metacharacters that are still active within double-quoted strings.
8609 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8611 # Same as above, but do not quote variable references.
8612 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8614 # Sed substitution to delay expansion of an escaped shell variable in a
8615 # double_quote_subst'ed string.
8616 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8618 # Sed substitution to delay expansion of an escaped single quote.
8619 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8621 # Sed substitution to avoid accidental globbing in evaled expressions
8622 no_glob_subst='s/\*/\\\*/g'
8626 can_build_shared=yes
8628 # All known linkers require a `.a' archive for static linking (except MSVC,
8629 # which needs '.lib').
8632 with_gnu_ld="$lt_cv_prog_gnu_ld"
8635 old_CFLAGS="$CFLAGS"
8637 # Set sane defaults for various variables
8638 test -z "$CC" && CC=cc
8639 test -z "$LTCC" && LTCC=$CC
8640 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8641 test -z "$LD" && LD=ld
8642 test -z "$ac_objext" && ac_objext=o
8644 for cc_temp in $compiler""; do
8646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8652 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8655 # Only perform the check for file, if the check method requires it
8656 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8657 case $deplibs_check_method in
8659 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8660 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8661 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8662 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8663 $as_echo_n "(cached) " >&6
8667 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8670 lt_save_MAGIC_CMD="$MAGIC_CMD"
8671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8672 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8673 for ac_dir in $ac_dummy; do
8675 test -z "$ac_dir" && ac_dir=.
8676 if test -f $ac_dir/${ac_tool_prefix}file; then
8677 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8678 if test -n "$file_magic_test_file"; then
8679 case $deplibs_check_method in
8681 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8683 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8684 $EGREP "$file_magic_regex" > /dev/null; then
8689 *** Warning: the command libtool uses to detect shared libraries,
8690 *** $file_magic_cmd, produces output that libtool cannot recognize.
8691 *** The result is that libtool may fail to recognize shared libraries
8692 *** as such. This will affect the creation of libtool libraries that
8693 *** depend on shared libraries, but programs linked with such libtool
8694 *** libraries will work regardless of this problem. Nevertheless, you
8695 *** may want to report the problem to your system manager and/or to
8696 *** bug-libtool@gnu.org
8706 MAGIC_CMD="$lt_save_MAGIC_CMD"
8711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8712 if test -n "$MAGIC_CMD"; then
8713 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8714 $as_echo "$MAGIC_CMD" >&6; }
8716 { $as_echo "$as_me:$LINENO: result: no" >&5
8717 $as_echo "no" >&6; }
8724 if test -z "$lt_cv_path_MAGIC_CMD"; then
8725 if test -n "$ac_tool_prefix"; then
8726 { $as_echo "$as_me:$LINENO: checking for file" >&5
8727 $as_echo_n "checking for file... " >&6; }
8728 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8729 $as_echo_n "(cached) " >&6
8733 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8736 lt_save_MAGIC_CMD="$MAGIC_CMD"
8737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8738 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8739 for ac_dir in $ac_dummy; do
8741 test -z "$ac_dir" && ac_dir=.
8742 if test -f $ac_dir/file; then
8743 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8744 if test -n "$file_magic_test_file"; then
8745 case $deplibs_check_method in
8747 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8749 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8750 $EGREP "$file_magic_regex" > /dev/null; then
8755 *** Warning: the command libtool uses to detect shared libraries,
8756 *** $file_magic_cmd, produces output that libtool cannot recognize.
8757 *** The result is that libtool may fail to recognize shared libraries
8758 *** as such. This will affect the creation of libtool libraries that
8759 *** depend on shared libraries, but programs linked with such libtool
8760 *** libraries will work regardless of this problem. Nevertheless, you
8761 *** may want to report the problem to your system manager and/or to
8762 *** bug-libtool@gnu.org
8772 MAGIC_CMD="$lt_save_MAGIC_CMD"
8777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8778 if test -n "$MAGIC_CMD"; then
8779 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8780 $as_echo "$MAGIC_CMD" >&6; }
8782 { $as_echo "$as_me:$LINENO: result: no" >&5
8783 $as_echo "no" >&6; }
8796 # Use C for the default configuration in the libtool script
8800 ac_cpp='$CPP $CPPFLAGS'
8801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8806 # Source file extension for C test sources.
8809 # Object file extension for compiled C test sources.
8813 # Code to be used in simple compile tests
8814 lt_simple_compile_test_code="int some_variable = 0;"
8816 # Code to be used in simple link tests
8817 lt_simple_link_test_code='int main(){return(0);}'
8825 # If no C compiler was specified, use CC.
8828 # If no C compiler flags were specified, use CFLAGS.
8829 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8831 # Allow CC to be a program name with arguments.
8834 # Save the default compiler, since it gets overwritten when the other
8835 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8836 compiler_DEFAULT=$CC
8838 # save warnings/boilerplate of simple test code
8839 ac_outfile=conftest.$ac_objext
8840 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8841 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8842 _lt_compiler_boilerplate=`cat conftest.err`
8845 ac_outfile=conftest.$ac_objext
8846 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8847 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8848 _lt_linker_boilerplate=`cat conftest.err`
8852 if test -n "$compiler"; then
8854 lt_prog_compiler_no_builtin_flag=
8856 if test "$GCC" = yes; then
8857 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8859 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8860 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8861 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8862 $as_echo_n "(cached) " >&6
8864 lt_cv_prog_compiler_rtti_exceptions=no
8865 ac_outfile=conftest.$ac_objext
8866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8867 lt_compiler_flag="-fno-rtti -fno-exceptions"
8868 # Insert the option either (1) after the last *FLAGS variable, or
8869 # (2) before a word containing "conftest.", or (3) at the end.
8870 # Note that $ac_compile itself does not contain backslashes and begins
8871 # with a dollar sign (not a hyphen), so the echo should work correctly.
8872 # The option is referenced via a variable to avoid confusing sed.
8873 lt_compile=`echo "$ac_compile" | $SED \
8874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8876 -e 's:$: $lt_compiler_flag:'`
8877 (eval echo "\"\$as_me:8877: $lt_compile\"" >&5)
8878 (eval "$lt_compile" 2>conftest.err)
8880 cat conftest.err >&5
8881 echo "$as_me:8881: \$? = $ac_status" >&5
8882 if (exit $ac_status) && test -s "$ac_outfile"; then
8883 # The compiler can only warn and ignore the option if not recognized
8884 # So say no if there are warnings other than the usual output.
8885 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8888 lt_cv_prog_compiler_rtti_exceptions=yes
8894 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8895 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8897 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8898 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8910 lt_prog_compiler_wl=
8911 lt_prog_compiler_pic=
8912 lt_prog_compiler_static=
8914 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8915 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8917 if test "$GCC" = yes; then
8918 lt_prog_compiler_wl='-Wl,'
8919 lt_prog_compiler_static='-static'
8923 # All AIX code is PIC.
8924 if test "$host_cpu" = ia64; then
8925 # AIX 5 now supports IA64 processor
8926 lt_prog_compiler_static='-Bstatic'
8933 # see comment about AmigaOS4 .so support
8934 lt_prog_compiler_pic='-fPIC'
8937 # FIXME: we need at least 68020 code to build shared libraries, but
8938 # adding the `-m68020' flag to GCC prevents building anything better,
8940 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8945 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8946 # PIC is the default for these OSes.
8949 mingw* | cygwin* | pw32* | os2* | cegcc*)
8950 # This hack is so that the source file can tell whether it is being
8951 # built for inclusion in a dll (and should export symbols for example).
8952 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8953 # (--disable-auto-import) libraries
8954 lt_prog_compiler_pic='-DDLL_EXPORT'
8957 darwin* | rhapsody*)
8958 # PIC is the default on this platform
8959 # Common symbols not allowed in MH_DYLIB files
8960 lt_prog_compiler_pic='-fno-common'
8964 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8965 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8966 # sets the default TLS model and affects inlining.
8972 lt_prog_compiler_pic='-fPIC'
8978 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8979 # Instead, we relocate shared libraries at runtime.
8983 # Just because we use GCC doesn't mean we suddenly get shared libraries
8984 # on systems that don't support them.
8985 lt_prog_compiler_can_build_shared=no
8990 # QNX uses GNU C++, but need to define -shared option too, otherwise
8992 lt_prog_compiler_pic='-fPIC -shared'
8996 if test -d /usr/nec; then
8997 lt_prog_compiler_pic=-Kconform_pic
9002 lt_prog_compiler_pic='-fPIC'
9006 # PORTME Check for flag to pass linker flags through the system compiler.
9009 lt_prog_compiler_wl='-Wl,'
9010 if test "$host_cpu" = ia64; then
9011 # AIX 5 now supports IA64 processor
9012 lt_prog_compiler_static='-Bstatic'
9014 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9018 mingw* | cygwin* | pw32* | os2* | cegcc*)
9019 # This hack is so that the source file can tell whether it is being
9020 # built for inclusion in a dll (and should export symbols for example).
9021 lt_prog_compiler_pic='-DDLL_EXPORT'
9024 hpux9* | hpux10* | hpux11*)
9025 lt_prog_compiler_wl='-Wl,'
9026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9033 lt_prog_compiler_pic='+Z'
9036 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9037 lt_prog_compiler_static='${wl}-a ${wl}archive'
9040 irix5* | irix6* | nonstopux*)
9041 lt_prog_compiler_wl='-Wl,'
9042 # PIC (with -KPIC) is the default.
9043 lt_prog_compiler_static='-non_shared'
9046 linux* | k*bsd*-gnu)
9047 case $cc_basename in
9048 # old Intel for x86_64 which still supported -KPIC.
9050 lt_prog_compiler_wl='-Wl,'
9051 lt_prog_compiler_pic='-KPIC'
9052 lt_prog_compiler_static='-static'
9054 # icc used to be incompatible with GCC.
9055 # ICC 10 doesn't accept -KPIC any more.
9057 lt_prog_compiler_wl='-Wl,'
9058 lt_prog_compiler_pic='-fPIC'
9059 lt_prog_compiler_static='-static'
9061 # Lahey Fortran 8.1.
9063 lt_prog_compiler_wl='-Wl,'
9064 lt_prog_compiler_pic='--shared'
9065 lt_prog_compiler_static='--static'
9067 pgcc* | pgf77* | pgf90* | pgf95*)
9068 # Portland Group compilers (*not* the Pentium gcc compiler,
9069 # which looks to be a dead project)
9070 lt_prog_compiler_wl='-Wl,'
9071 lt_prog_compiler_pic='-fpic'
9072 lt_prog_compiler_static='-Bstatic'
9075 lt_prog_compiler_wl='-Wl,'
9076 # All Alpha code is PIC.
9077 lt_prog_compiler_static='-non_shared'
9080 # IBM XL C 8.0/Fortran 10.1 on PPC
9081 lt_prog_compiler_wl='-Wl,'
9082 lt_prog_compiler_pic='-qpic'
9083 lt_prog_compiler_static='-qstaticlink'
9086 case `$CC -V 2>&1 | sed 5q` in
9089 lt_prog_compiler_pic='-KPIC'
9090 lt_prog_compiler_static='-Bstatic'
9091 lt_prog_compiler_wl='-Wl,'
9094 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9095 lt_prog_compiler_pic='-KPIC'
9096 lt_prog_compiler_static='-Bstatic'
9097 lt_prog_compiler_wl=''
9105 lt_prog_compiler_pic='-KPIC'
9106 lt_prog_compiler_static='-Bstatic'
9110 # QNX uses GNU C++, but need to define -shared option too, otherwise
9112 lt_prog_compiler_pic='-fPIC -shared'
9115 osf3* | osf4* | osf5*)
9116 lt_prog_compiler_wl='-Wl,'
9117 # All OSF/1 code is PIC.
9118 lt_prog_compiler_static='-non_shared'
9122 lt_prog_compiler_static='-non_shared'
9126 lt_prog_compiler_pic='-KPIC'
9127 lt_prog_compiler_static='-Bstatic'
9128 case $cc_basename in
9130 lt_prog_compiler_wl='-Qoption ld ';;
9132 lt_prog_compiler_wl='-Wl,';;
9137 lt_prog_compiler_wl='-Qoption ld '
9138 lt_prog_compiler_pic='-PIC'
9139 lt_prog_compiler_static='-Bstatic'
9142 sysv4 | sysv4.2uw2* | sysv4.3*)
9143 lt_prog_compiler_wl='-Wl,'
9144 lt_prog_compiler_pic='-KPIC'
9145 lt_prog_compiler_static='-Bstatic'
9149 if test -d /usr/nec ;then
9150 lt_prog_compiler_pic='-Kconform_pic'
9151 lt_prog_compiler_static='-Bstatic'
9155 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9156 lt_prog_compiler_wl='-Wl,'
9157 lt_prog_compiler_pic='-KPIC'
9158 lt_prog_compiler_static='-Bstatic'
9162 lt_prog_compiler_wl='-Wl,'
9163 lt_prog_compiler_can_build_shared=no
9167 lt_prog_compiler_pic='-pic'
9168 lt_prog_compiler_static='-Bstatic'
9172 lt_prog_compiler_can_build_shared=no
9178 # For platforms which do not support PIC, -DPIC is meaningless:
9180 lt_prog_compiler_pic=
9183 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9186 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9187 $as_echo "$lt_prog_compiler_pic" >&6; }
9195 # Check to make sure the PIC flag actually works.
9197 if test -n "$lt_prog_compiler_pic"; then
9198 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9199 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9200 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9201 $as_echo_n "(cached) " >&6
9203 lt_cv_prog_compiler_pic_works=no
9204 ac_outfile=conftest.$ac_objext
9205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9206 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9207 # Insert the option either (1) after the last *FLAGS variable, or
9208 # (2) before a word containing "conftest.", or (3) at the end.
9209 # Note that $ac_compile itself does not contain backslashes and begins
9210 # with a dollar sign (not a hyphen), so the echo should work correctly.
9211 # The option is referenced via a variable to avoid confusing sed.
9212 lt_compile=`echo "$ac_compile" | $SED \
9213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9215 -e 's:$: $lt_compiler_flag:'`
9216 (eval echo "\"\$as_me:9216: $lt_compile\"" >&5)
9217 (eval "$lt_compile" 2>conftest.err)
9219 cat conftest.err >&5
9220 echo "$as_me:9220: \$? = $ac_status" >&5
9221 if (exit $ac_status) && test -s "$ac_outfile"; then
9222 # The compiler can only warn and ignore the option if not recognized
9223 # So say no if there are warnings other than the usual output.
9224 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9227 lt_cv_prog_compiler_pic_works=yes
9233 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9234 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9236 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9237 case $lt_prog_compiler_pic in
9239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9242 lt_prog_compiler_pic=
9243 lt_prog_compiler_can_build_shared=no
9254 # Check to make sure the static flag actually works.
9256 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9257 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9258 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9259 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9260 $as_echo_n "(cached) " >&6
9262 lt_cv_prog_compiler_static_works=no
9263 save_LDFLAGS="$LDFLAGS"
9264 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9265 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9266 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9267 # The linker can only warn and ignore the option if not recognized
9268 # So say no if there are warnings
9269 if test -s conftest.err; then
9270 # Append any errors to the config.log.
9271 cat conftest.err 1>&5
9272 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9274 if diff conftest.exp conftest.er2 >/dev/null; then
9275 lt_cv_prog_compiler_static_works=yes
9278 lt_cv_prog_compiler_static_works=yes
9282 LDFLAGS="$save_LDFLAGS"
9285 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9286 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9288 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9291 lt_prog_compiler_static=
9300 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9301 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9302 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9303 $as_echo_n "(cached) " >&6
9305 lt_cv_prog_compiler_c_o=no
9306 $RM -r conftest 2>/dev/null
9310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9312 lt_compiler_flag="-o out/conftest2.$ac_objext"
9313 # Insert the option either (1) after the last *FLAGS variable, or
9314 # (2) before a word containing "conftest.", or (3) at the end.
9315 # Note that $ac_compile itself does not contain backslashes and begins
9316 # with a dollar sign (not a hyphen), so the echo should work correctly.
9317 lt_compile=`echo "$ac_compile" | $SED \
9318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9320 -e 's:$: $lt_compiler_flag:'`
9321 (eval echo "\"\$as_me:9321: $lt_compile\"" >&5)
9322 (eval "$lt_compile" 2>out/conftest.err)
9324 cat out/conftest.err >&5
9325 echo "$as_me:9325: \$? = $ac_status" >&5
9326 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9328 # The compiler can only warn and ignore the option if not recognized
9329 # So say no if there are warnings
9330 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9333 lt_cv_prog_compiler_c_o=yes
9338 # SGI C++ compiler will create directory out/ii_files/ for
9339 # template instantiation
9340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9341 $RM out/* && rmdir out
9347 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9348 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9355 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9357 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9358 $as_echo_n "(cached) " >&6
9360 lt_cv_prog_compiler_c_o=no
9361 $RM -r conftest 2>/dev/null
9365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9367 lt_compiler_flag="-o out/conftest2.$ac_objext"
9368 # Insert the option either (1) after the last *FLAGS variable, or
9369 # (2) before a word containing "conftest.", or (3) at the end.
9370 # Note that $ac_compile itself does not contain backslashes and begins
9371 # with a dollar sign (not a hyphen), so the echo should work correctly.
9372 lt_compile=`echo "$ac_compile" | $SED \
9373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375 -e 's:$: $lt_compiler_flag:'`
9376 (eval echo "\"\$as_me:9376: $lt_compile\"" >&5)
9377 (eval "$lt_compile" 2>out/conftest.err)
9379 cat out/conftest.err >&5
9380 echo "$as_me:9380: \$? = $ac_status" >&5
9381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9383 # The compiler can only warn and ignore the option if not recognized
9384 # So say no if there are warnings
9385 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9388 lt_cv_prog_compiler_c_o=yes
9393 # SGI C++ compiler will create directory out/ii_files/ for
9394 # template instantiation
9395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9396 $RM out/* && rmdir out
9402 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9408 hard_links="nottested"
9409 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9410 # do not overwrite the value of need_locks provided by the user
9411 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9412 $as_echo_n "checking if we can lock with hard links... " >&6; }
9415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9417 ln conftest.a conftest.b 2>&5 || hard_links=no
9418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9419 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9420 $as_echo "$hard_links" >&6; }
9421 if test "$hard_links" = no; then
9422 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9423 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9435 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9436 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9439 allow_undefined_flag=
9440 always_export_symbols=no
9442 archive_expsym_cmds=
9443 compiler_needs_object=no
9444 enable_shared_with_static_runtimes=no
9445 export_dynamic_flag_spec=
9446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9447 hardcode_automatic=no
9449 hardcode_direct_absolute=no
9450 hardcode_libdir_flag_spec=
9451 hardcode_libdir_flag_spec_ld=
9452 hardcode_libdir_separator=
9454 hardcode_shlibpath_var=unsupported
9456 link_all_deplibs=unknown
9459 old_archive_from_new_cmds=
9460 old_archive_from_expsyms_cmds=
9461 thread_safe_flag_spec=
9462 whole_archive_flag_spec=
9463 # include_expsyms should be a list of space-separated symbols to be *always*
9464 # included in the symbol list
9466 # exclude_expsyms can be an extended regexp of symbols to exclude
9467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9469 # as well as any symbol that contains `d'.
9470 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9472 # platforms (ab)use it in PIC code, but their linkers get confused if
9473 # the symbol is explicitly referenced. Since portable code cannot
9474 # rely on this symbol name, it's probably fine to never include it in
9475 # preloaded symbol tables.
9476 # Exclude shared library initialization/finalization symbols.
9477 extract_expsyms_cmds=
9480 cygwin* | mingw* | pw32* | cegcc*)
9481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9482 # When not using gcc, we currently assume that we are using
9483 # Microsoft Visual C++.
9484 if test "$GCC" != yes; then
9489 # we just hope/assume this is gcc and not c89 (= MSVC++)
9498 if test "$with_gnu_ld" = yes; then
9499 # If archive_cmds runs LD, not CC, wlarc should be empty
9502 # Set some defaults for GNU ld with shared library support. These
9503 # are reset later if shared libraries are not supported. Putting them
9504 # here allows them to be overridden if necessary.
9505 runpath_var=LD_RUN_PATH
9506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9507 export_dynamic_flag_spec='${wl}--export-dynamic'
9508 # ancient GNU ld didn't support --whole-archive et. al.
9509 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9510 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9512 whole_archive_flag_spec=
9514 supports_anon_versioning=no
9515 case `$LD -v 2>&1` in
9516 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9517 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9518 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9519 *\ 2.11.*) ;; # other 2.11 versions
9520 *) supports_anon_versioning=yes ;;
9523 # See if GNU ld supports shared libraries.
9526 # On AIX/PPC, the GNU linker is very broken
9527 if test "$host_cpu" != ia64; then
9531 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9532 *** to be unable to reliably create shared libraries on AIX.
9533 *** Therefore, libtool is disabling shared libraries support. If you
9534 *** really care for shared libraries, you may want to modify your PATH
9535 *** so that a non-GNU linker is found, and then restart.
9544 # see comment about AmigaOS4 .so support
9545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546 archive_expsym_cmds=''
9549 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)'
9550 hardcode_libdir_flag_spec='-L$libdir'
9551 hardcode_minus_L=yes
9557 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9558 allow_undefined_flag=unsupported
9559 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9560 # support --undefined. This deserves some investigation. FIXME
9561 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9567 cygwin* | mingw* | pw32* | cegcc*)
9568 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9569 # as there is no search path for DLLs.
9570 hardcode_libdir_flag_spec='-L$libdir'
9571 allow_undefined_flag=unsupported
9572 always_export_symbols=no
9573 enable_shared_with_static_runtimes=yes
9574 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9576 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9578 # If the export-symbols file already is a .def file (1st line
9579 # is EXPORTS), use it as is; otherwise, prepend...
9580 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9581 cp $export_symbols $output_objdir/$soname.def;
9583 echo EXPORTS > $output_objdir/$soname.def;
9584 cat $export_symbols >> $output_objdir/$soname.def;
9586 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9594 hardcode_shlibpath_var=no
9595 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9596 export_dynamic_flag_spec='${wl}-E'
9597 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9598 # Instead, shared libraries are loaded at an image base (0x10000000 by
9599 # default) and relocated if they conflict, which is a slow very memory
9600 # consuming and fragmenting process. To avoid this, we pick a random,
9601 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9602 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9604 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'
9607 gnu* | linux* | tpf* | k*bsd*-gnu)
9609 if test "$host_os" = linux-dietlibc; then
9610 case $cc_basename in
9611 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9614 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9615 && test "$tmp_diet" = no
9618 tmp_sharedflag='-shared'
9619 case $cc_basename,$host_cpu in
9620 pgcc*) # Portland Group C compiler
9621 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'
9622 tmp_addflag=' $pic_flag'
9624 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9625 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'
9626 tmp_addflag=' $pic_flag -Mnomain' ;;
9627 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9628 tmp_addflag=' -i_dynamic' ;;
9629 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9630 tmp_addflag=' -i_dynamic -nofor_main' ;;
9631 ifc* | ifort*) # Intel Fortran compiler
9632 tmp_addflag=' -nofor_main' ;;
9633 lf95*) # Lahey Fortran 8.1
9634 whole_archive_flag_spec=
9635 tmp_sharedflag='--shared' ;;
9636 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9637 tmp_sharedflag='-qmkshrobj'
9640 case `$CC -V 2>&1 | sed 5q` in
9641 *Sun\ C*) # Sun C 5.9
9642 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'
9643 compiler_needs_object=yes
9644 tmp_sharedflag='-G' ;;
9645 *Sun\ F*) # Sun Fortran 8.3
9646 tmp_sharedflag='-G' ;;
9648 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650 if test "x$supports_anon_versioning" = xyes; then
9651 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9652 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9653 echo "local: *; };" >> $output_objdir/$libname.ver~
9654 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9657 case $cc_basename in
9659 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9660 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9661 hardcode_libdir_flag_spec=
9662 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9663 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9664 if test "x$supports_anon_versioning" = xyes; then
9665 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9666 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9667 echo "local: *; };" >> $output_objdir/$libname.ver~
9668 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9679 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9688 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9692 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9693 *** create shared libraries on Solaris systems. Therefore, libtool
9694 *** is disabling shared libraries support. We urge you to upgrade GNU
9695 *** binutils to release 2.9.1 or newer. Another option is to modify
9696 *** your PATH or compiler configuration so that the native linker is
9697 *** used, and then restart.
9700 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9709 case `$LD -v 2>&1` in
9710 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9714 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9715 *** reliably create shared libraries on SCO systems. Therefore, libtool
9716 *** is disabling shared libraries support. We urge you to upgrade GNU
9717 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9718 *** your PATH or compiler configuration so that the native linker is
9719 *** used, and then restart.
9724 # For security reasons, it is highly recommended that you always
9725 # use absolute paths for naming shared libraries, and exclude the
9726 # DT_RUNPATH tag from executables and libraries. But doing so
9727 # requires that you compile everything twice, which is a pain.
9728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9740 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_shlibpath_var=no
9747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9756 if test "$ld_shlibs" = no; then
9758 hardcode_libdir_flag_spec=
9759 export_dynamic_flag_spec=
9760 whole_archive_flag_spec=
9763 # PORTME fill in a description of your system's linker (not GNU ld)
9766 allow_undefined_flag=unsupported
9767 always_export_symbols=yes
9768 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'
9769 # Note: this linker hardcodes the directories in LIBPATH if there
9770 # are no directories specified by -L.
9771 hardcode_minus_L=yes
9772 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9773 # Neither direct hardcoding nor static linking is supported with a
9775 hardcode_direct=unsupported
9780 if test "$host_cpu" = ia64; then
9781 # On IA64, the linker does run time linking by default, so we don't
9782 # have to do anything special.
9783 aix_use_runtimelinking=no
9784 exp_sym_flag='-Bexport'
9787 # If we're using GNU nm, then we don't want the "-C" option.
9788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9789 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9790 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'
9792 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'
9794 aix_use_runtimelinking=no
9796 # Test if we are trying to use run time linking or normal
9797 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9798 # need to do runtime linking.
9799 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9800 for ld_flag in $LDFLAGS; do
9801 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9802 aix_use_runtimelinking=yes
9809 exp_sym_flag='-bexport'
9810 no_entry_flag='-bnoentry'
9813 # When large executables or shared objects are built, AIX ld can
9814 # have problems creating the table of contents. If linking a library
9815 # or program results in "error TOC overflow" add -mminimal-toc to
9816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9821 hardcode_direct_absolute=yes
9822 hardcode_libdir_separator=':'
9823 link_all_deplibs=yes
9824 file_list_spec='${wl}-f,'
9826 if test "$GCC" = yes; then
9827 case $host_os in aix4.[012]|aix4.[012].*)
9828 # We only want to do this on AIX 4.2 and lower, the check
9829 # below for broken collect2 doesn't work under 4.3+
9830 collect2name=`${CC} -print-prog-name=collect2`
9831 if test -f "$collect2name" &&
9832 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9834 # We have reworked collect2
9837 # We have old collect2
9838 hardcode_direct=unsupported
9839 # It fails to find uninstalled libraries when the uninstalled
9840 # path is not listed in the libpath. Setting hardcode_minus_L
9841 # to unsupported forces relinking
9842 hardcode_minus_L=yes
9843 hardcode_libdir_flag_spec='-L$libdir'
9844 hardcode_libdir_separator=
9848 shared_flag='-shared'
9849 if test "$aix_use_runtimelinking" = yes; then
9850 shared_flag="$shared_flag "'${wl}-G'
9854 if test "$host_cpu" = ia64; then
9855 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9856 # chokes on -Wl,-G. The following line is correct:
9859 if test "$aix_use_runtimelinking" = yes; then
9860 shared_flag='${wl}-G'
9862 shared_flag='${wl}-bM:SRE'
9867 export_dynamic_flag_spec='${wl}-bexpall'
9868 # It seems that -bexpall does not export symbols beginning with
9869 # underscore (_), so it is better to generate a list of symbols to export.
9870 always_export_symbols=yes
9871 if test "$aix_use_runtimelinking" = yes; then
9872 # Warning - without using the other runtime loading flags (-brtl),
9873 # -berok will link without error, but may produce a broken library.
9874 allow_undefined_flag='-berok'
9875 # Determine the default libpath from the value encoded in an
9877 cat >conftest.$ac_ext <<_ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9899 $as_echo "$ac_try_echo") >&5
9900 (eval "$ac_link") 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && {
9907 test -z "$ac_c_werror_flag" ||
9908 test ! -s conftest.err
9909 } && test -s conftest$ac_exeext && {
9910 test "$cross_compiling" = yes ||
9911 $as_test_x conftest$ac_exeext
9914 lt_aix_libpath_sed='
9915 /Import File Strings/,/^$/ {
9921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9922 # Check for a 64-bit object if we didn't find anything.
9923 if test -z "$aix_libpath"; then
9924 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9927 $as_echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9933 rm -rf conftest.dSYM
9934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9935 conftest$ac_exeext conftest.$ac_ext
9936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9938 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9939 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9941 if test "$host_cpu" = ia64; then
9942 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9943 allow_undefined_flag="-z nodefs"
9944 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"
9946 # Determine the default libpath from the value encoded in an
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9970 $as_echo "$ac_try_echo") >&5
9971 (eval "$ac_link") 2>conftest.er1
9973 grep -v '^ *+' conftest.er1 >conftest.err
9975 cat conftest.err >&5
9976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest$ac_exeext && {
9981 test "$cross_compiling" = yes ||
9982 $as_test_x conftest$ac_exeext
9985 lt_aix_libpath_sed='
9986 /Import File Strings/,/^$/ {
9992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9993 # Check for a 64-bit object if we didn't find anything.
9994 if test -z "$aix_libpath"; then
9995 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9998 $as_echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10004 rm -rf conftest.dSYM
10005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10006 conftest$ac_exeext conftest.$ac_ext
10007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10009 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10010 # Warning - without using the other run time loading flags,
10011 # -berok will link without error, but may produce a broken library.
10012 no_undefined_flag=' ${wl}-bernotok'
10013 allow_undefined_flag=' ${wl}-berok'
10014 # Exported symbols can be pulled into shared objects from archives
10015 whole_archive_flag_spec='$convenience'
10016 archive_cmds_need_lc=yes
10017 # This is similar to how AIX traditionally builds its shared libraries.
10018 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'
10026 # see comment about AmigaOS4 .so support
10027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10028 archive_expsym_cmds=''
10031 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)'
10032 hardcode_libdir_flag_spec='-L$libdir'
10033 hardcode_minus_L=yes
10039 export_dynamic_flag_spec=-rdynamic
10042 cygwin* | mingw* | pw32* | cegcc*)
10043 # When not using gcc, we currently assume that we are using
10044 # Microsoft Visual C++.
10045 # hardcode_libdir_flag_spec is actually meaningless, as there is
10046 # no search path for DLLs.
10047 hardcode_libdir_flag_spec=' '
10048 allow_undefined_flag=unsupported
10049 # Tell ltmain to make .lib files, not .a files.
10051 # Tell ltmain to make .dll files, not .so files.
10053 # FIXME: Setting linknames here is a bad hack.
10054 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10055 # The linker will automatically build a .lib file if we build a DLL.
10056 old_archive_from_new_cmds='true'
10057 # FIXME: Should let the user specify the lib program.
10058 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10059 fix_srcfile_path='`cygpath -w "$srcfile"`'
10060 enable_shared_with_static_runtimes=yes
10063 darwin* | rhapsody*)
10066 archive_cmds_need_lc=no
10068 hardcode_automatic=yes
10069 hardcode_shlibpath_var=unsupported
10070 whole_archive_flag_spec=''
10071 link_all_deplibs=yes
10072 allow_undefined_flag="$_lt_dar_allow_undefined"
10073 case $cc_basename in
10074 ifort*) _lt_dar_can_shared=yes ;;
10075 *) _lt_dar_can_shared=$GCC ;;
10077 if test "$_lt_dar_can_shared" = "yes"; then
10078 output_verbose_link_cmd=echo
10079 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10080 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10081 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10082 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_libdir_flag_spec='-L$libdir'
10093 hardcode_shlibpath_var=no
10100 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10101 # support. Future versions do this automatically, but an explicit c++rt0.o
10102 # does not break anything, and helps significantly (at the cost of a little
10105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10106 hardcode_libdir_flag_spec='-R$libdir'
10107 hardcode_direct=yes
10108 hardcode_shlibpath_var=no
10111 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10114 hardcode_direct=yes
10115 hardcode_minus_L=yes
10116 hardcode_shlibpath_var=no
10119 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10120 freebsd* | dragonfly*)
10121 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10122 hardcode_libdir_flag_spec='-R$libdir'
10123 hardcode_direct=yes
10124 hardcode_shlibpath_var=no
10128 if test "$GCC" = yes; then
10129 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'
10131 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'
10133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10134 hardcode_libdir_separator=:
10135 hardcode_direct=yes
10137 # hardcode_minus_L: Not really in the search PATH,
10138 # but as the default location of the library.
10139 hardcode_minus_L=yes
10140 export_dynamic_flag_spec='${wl}-E'
10144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10149 if test "$with_gnu_ld" = no; then
10150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10151 hardcode_libdir_flag_spec_ld='+b $libdir'
10152 hardcode_libdir_separator=:
10153 hardcode_direct=yes
10154 hardcode_direct_absolute=yes
10155 export_dynamic_flag_spec='${wl}-E'
10156 # hardcode_minus_L: Not really in the search PATH,
10157 # but as the default location of the library.
10158 hardcode_minus_L=yes
10163 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10166 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10184 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10188 if test "$with_gnu_ld" = no; then
10189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10190 hardcode_libdir_separator=:
10195 hardcode_shlibpath_var=no
10198 hardcode_direct=yes
10199 hardcode_direct_absolute=yes
10200 export_dynamic_flag_spec='${wl}-E'
10202 # hardcode_minus_L: Not really in the search PATH,
10203 # but as the default location of the library.
10204 hardcode_minus_L=yes
10210 irix5* | irix6* | nonstopux*)
10211 if test "$GCC" = yes; then
10212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10213 # Try to use the -exported_symbol ld option, if it does not
10214 # work, assume that -exports_file does not work either and
10215 # implicitly export all symbols.
10216 save_LDFLAGS="$LDFLAGS"
10217 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10218 cat >conftest.$ac_ext <<_ACEOF
10221 rm -f conftest.$ac_objext conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228 $as_echo "$ac_try_echo") >&5
10229 (eval "$ac_link") 2>conftest.er1
10231 grep -v '^ *+' conftest.er1 >conftest.err
10233 cat conftest.err >&5
10234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && {
10236 test -z "$ac_c_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest$ac_exeext && {
10239 test "$cross_compiling" = yes ||
10240 $as_test_x conftest$ac_exeext
10242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10245 $as_echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10251 rm -rf conftest.dSYM
10252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LDFLAGS="$save_LDFLAGS"
10256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10259 archive_cmds_need_lc='no'
10260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10261 hardcode_libdir_separator=:
10263 link_all_deplibs=yes
10267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10270 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10272 hardcode_libdir_flag_spec='-R$libdir'
10273 hardcode_direct=yes
10274 hardcode_shlibpath_var=no
10278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279 hardcode_direct=yes
10280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10281 hardcode_libdir_separator=:
10282 hardcode_shlibpath_var=no
10289 if test -f /usr/libexec/ld.so; then
10290 hardcode_direct=yes
10291 hardcode_shlibpath_var=no
10292 hardcode_direct_absolute=yes
10293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10297 export_dynamic_flag_spec='${wl}-E'
10300 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_libdir_flag_spec='-R$libdir'
10305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10316 hardcode_libdir_flag_spec='-L$libdir'
10317 hardcode_minus_L=yes
10318 allow_undefined_flag=unsupported
10319 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'
10320 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10324 if test "$GCC" = yes; then
10325 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10326 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10328 allow_undefined_flag=' -expect_unresolved \*'
10329 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10331 archive_cmds_need_lc='no'
10332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10333 hardcode_libdir_separator=:
10336 osf4* | osf5*) # as osf3* with the addition of -msym flag
10337 if test "$GCC" = yes; then
10338 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10339 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10342 allow_undefined_flag=' -expect_unresolved \*'
10343 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10344 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10345 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10347 # Both c and cxx compiler support -rpath directly
10348 hardcode_libdir_flag_spec='-rpath $libdir'
10350 archive_cmds_need_lc='no'
10351 hardcode_libdir_separator=:
10355 no_undefined_flag=' -z defs'
10356 if test "$GCC" = yes; then
10358 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10359 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10360 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10362 case `$CC -V 2>&1` in
10365 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10371 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10373 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10377 hardcode_libdir_flag_spec='-R$libdir'
10378 hardcode_shlibpath_var=no
10380 solaris2.[0-5] | solaris2.[0-5].*) ;;
10382 # The compiler driver will combine and reorder linker options,
10383 # but understands `-z linker_flag'. GCC discards it without `$wl',
10384 # but is careful enough not to reorder.
10385 # Supported since Solaris 2.6 (maybe 2.5.1?)
10386 if test "$GCC" = yes; then
10387 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10389 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10393 link_all_deplibs=yes
10397 if test "x$host_vendor" = xsequent; then
10398 # Use $CC to link under sequent, because it throws in some extra .o
10399 # files that make .init and .fini sections work.
10400 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10402 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10404 hardcode_libdir_flag_spec='-L$libdir'
10405 hardcode_direct=yes
10406 hardcode_minus_L=yes
10407 hardcode_shlibpath_var=no
10411 case $host_vendor in
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_direct=yes # is this really true???
10417 ## LD is ld it makes a PLAMLIB
10418 ## CC just makes a GrossModule.
10419 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10420 reload_cmds='$CC -r -o $output$reload_objs'
10424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10428 runpath_var='LD_RUN_PATH'
10429 hardcode_shlibpath_var=no
10433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434 hardcode_shlibpath_var=no
10435 export_dynamic_flag_spec='-Bexport'
10439 if test -d /usr/nec; then
10440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10441 hardcode_shlibpath_var=no
10442 runpath_var=LD_RUN_PATH
10443 hardcode_runpath_var=yes
10448 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10449 no_undefined_flag='${wl}-z,text'
10450 archive_cmds_need_lc=no
10451 hardcode_shlibpath_var=no
10452 runpath_var='LD_RUN_PATH'
10454 if test "$GCC" = yes; then
10455 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10463 sysv5* | sco3.2v5* | sco5v6*)
10464 # Note: We can NOT use -z defs as we might desire, because we do not
10465 # link with -lc, and that would cause any symbols used from libc to
10466 # always be unresolved, which means just about no library would
10467 # ever link correctly. If we're not using GNU ld we use -z text
10468 # though, which does catch some bad symbols but isn't as heavy-handed
10470 no_undefined_flag='${wl}-z,text'
10471 allow_undefined_flag='${wl}-z,nodefs'
10472 archive_cmds_need_lc=no
10473 hardcode_shlibpath_var=no
10474 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10475 hardcode_libdir_separator=':'
10476 link_all_deplibs=yes
10477 export_dynamic_flag_spec='${wl}-Bexport'
10478 runpath_var='LD_RUN_PATH'
10480 if test "$GCC" = yes; then
10481 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10491 hardcode_libdir_flag_spec='-L$libdir'
10492 hardcode_shlibpath_var=no
10500 if test x$host_vendor = xsni; then
10502 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10503 export_dynamic_flag_spec='${wl}-Blargedynsym'
10509 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10510 $as_echo "$ld_shlibs" >&6; }
10511 test "$ld_shlibs" = no && can_build_shared=no
10513 with_gnu_ld=$with_gnu_ld
10530 # Do we need to explicitly link libc?
10532 case "x$archive_cmds_need_lc" in
10534 # Assume -lc should be added
10535 archive_cmds_need_lc=yes
10537 if test "$enable_shared" = yes && test "$GCC" = yes; then
10538 case $archive_cmds in
10540 # FIXME: we may have to deal with multi-command sequences.
10543 # Test whether the compiler implicitly links with -lc since on some
10544 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10545 # to ld, don't add -lc before -lgcc.
10546 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10547 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10552 (eval $ac_compile) 2>&5
10554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } 2>conftest.err; then
10558 libobjs=conftest.$ac_objext
10560 wl=$lt_prog_compiler_wl
10561 pic_flag=$lt_prog_compiler_pic
10567 lt_save_allow_undefined_flag=$allow_undefined_flag
10568 allow_undefined_flag=
10569 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10570 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }
10575 archive_cmds_need_lc=no
10577 archive_cmds_need_lc=yes
10579 allow_undefined_flag=$lt_save_allow_undefined_flag
10581 cat conftest.err 1>&5
10584 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10585 $as_echo "$archive_cmds_need_lc" >&6; }
10748 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10751 if test "$GCC" = yes; then
10753 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10754 *) lt_awk_arg="/^libraries:/" ;;
10756 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10757 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10758 # if the path contains ";" then we assume it to be the separator
10759 # otherwise default to the standard path separator (i.e. ":") - it is
10760 # assumed that no part of a normal pathname contains ";" but that should
10761 # okay in the real world where ";" in dirpaths is itself problematic.
10762 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10764 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10766 # Ok, now we have the path, separated by spaces, we can step through it
10767 # and add multilib dir if necessary.
10768 lt_tmp_lt_search_path_spec=
10769 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10770 for lt_sys_path in $lt_search_path_spec; do
10771 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10772 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10774 test -d "$lt_sys_path" && \
10775 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10778 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10779 BEGIN {RS=" "; FS="/|\n";} {
10782 for (lt_i = NF; lt_i > 0; lt_i--) {
10783 if ($lt_i != "" && $lt_i != ".") {
10784 if ($lt_i == "..") {
10787 if (lt_count == 0) {
10788 lt_foo="/" $lt_i lt_foo;
10795 if (lt_foo != "") { lt_freq[lt_foo]++; }
10796 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10798 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10802 library_names_spec=
10803 libname_spec='lib$name'
10807 postuninstall_cmds=
10811 shlibpath_overrides_runpath=unknown
10813 dynamic_linker="$host_os ld.so"
10814 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10815 need_lib_prefix=unknown
10816 hardcode_into_libs=no
10818 # when you set need_version to no, make sure it does not cause -set_version
10819 # flags to be left without arguments
10820 need_version=unknown
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10826 shlibpath_var=LIBPATH
10828 # AIX 3 has no versioning support, so we append a major version to the name.
10829 soname_spec='${libname}${release}${shared_ext}$major'
10836 hardcode_into_libs=yes
10837 if test "$host_cpu" = ia64; then
10838 # AIX 5 supports IA64
10839 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10840 shlibpath_var=LD_LIBRARY_PATH
10842 # With GCC up to 2.95.x, collect2 would create an import file
10843 # for dependence libraries. The import file would start with
10844 # the line `#! .'. This would cause the generated library to
10845 # depend on `.', always an invalid library. This was fixed in
10846 # development snapshots of GCC prior to 3.0.
10848 aix4 | aix4.[01] | aix4.[01].*)
10849 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10851 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10854 can_build_shared=no
10858 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10859 # soname into executable. Probably we can add versioning support to
10860 # collect2, so additional links can be useful in future.
10861 if test "$aix_use_runtimelinking" = yes; then
10862 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10863 # instead of lib<name>.a to let people know that these are not
10864 # typical AIX shared libraries.
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867 # We preserve .a as extension for shared libraries through AIX4.2
10868 # and later when we are not doing run time linking.
10869 library_names_spec='${libname}${release}.a $libname.a'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10872 shlibpath_var=LIBPATH
10879 # Since July 2007 AmigaOS4 officially supports .so libraries.
10880 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 library_names_spec='$libname.ixlibrary $libname.a'
10885 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10886 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'
10892 library_names_spec='${libname}${shared_ext}'
10893 dynamic_linker="$host_os ld.so"
10894 shlibpath_var=LIBRARY_PATH
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10905 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10906 # the default ld.so.conf also contains /usr/contrib/lib and
10907 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10908 # libtool to hard-code these into programs
10911 cygwin* | mingw* | pw32* | cegcc*)
10912 version_type=windows
10917 case $GCC,$host_os in
10918 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10919 library_names_spec='$libname.dll.a'
10920 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10921 postinstall_cmds='base_file=`basename \${file}`~
10922 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10923 dldir=$destdir/`dirname \$dlpath`~
10924 test -d \$dldir || mkdir -p \$dldir~
10925 $install_prog $dir/$dlname \$dldir/$dlname~
10926 chmod a+x \$dldir/$dlname~
10927 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10928 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10931 dlpath=$dir/\$dldll~
10933 shlibpath_overrides_runpath=yes
10937 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10938 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10939 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10942 # MinGW DLLs use traditional 'lib' prefix
10943 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10944 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10945 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10946 # It is most probably a Windows format PATH printed by
10947 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10948 # path with ; separators, and with drive letters. We can handle the
10949 # drive letters (cygwin fileutils understands them), so leave them,
10950 # especially as we might pass files found there to a mingw objdump,
10951 # which wouldn't understand a cygwinified path. Ahh.
10952 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10954 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10958 # pw32 DLLs use 'pw' prefix rather than 'lib'
10959 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10965 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10968 dynamic_linker='Win32 ld.exe'
10969 # FIXME: first we should search . and the directory the executable is in
10973 darwin* | rhapsody*)
10974 dynamic_linker="$host_os dyld"
10975 version_type=darwin
10978 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10979 soname_spec='${libname}${release}${major}$shared_ext'
10980 shlibpath_overrides_runpath=yes
10981 shlibpath_var=DYLD_LIBRARY_PATH
10982 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10984 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10985 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 shlibpath_var=LD_LIBRARY_PATH
11001 freebsd* | dragonfly*)
11002 # DragonFly does not have aout. When/if they implement a new
11003 # versioning mechanism, adjust this.
11004 if test -x /usr/bin/objformat; then
11005 objformat=`/usr/bin/objformat`
11008 freebsd[123]*) objformat=aout ;;
11009 *) objformat=elf ;;
11012 version_type=freebsd-$objformat
11013 case $version_type in
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11024 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=yes
11029 freebsd3.[01]* | freebsdelf3.[01]*)
11030 shlibpath_overrides_runpath=yes
11031 hardcode_into_libs=yes
11033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11035 shlibpath_overrides_runpath=no
11036 hardcode_into_libs=yes
11038 *) # from 4.6 on, and DragonFly
11039 shlibpath_overrides_runpath=yes
11040 hardcode_into_libs=yes
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 hardcode_into_libs=yes
11055 hpux9* | hpux10* | hpux11*)
11056 # Give a soname corresponding to the major version so that dld.sl refuses to
11057 # link against other versions.
11064 hardcode_into_libs=yes
11065 dynamic_linker="$host_os dld.so"
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 if test "X$HPUX_IA64_MODE" = X32; then
11071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11079 hardcode_into_libs=yes
11080 dynamic_linker="$host_os dld.sl"
11081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11090 dynamic_linker="$host_os dld.sl"
11091 shlibpath_var=SHLIB_PATH
11092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11097 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11098 postinstall_cmds='chmod 555 $lib'
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=no
11110 hardcode_into_libs=yes
11113 irix5* | irix6* | nonstopux*)
11115 nonstopux*) version_type=nonstopux ;;
11117 if test "$lt_cv_prog_gnu_ld" = yes; then
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11128 irix5* | nonstopux*)
11129 libsuff= shlibsuff=
11132 case $LD in # libtool.m4 will add one of these switches to LD
11133 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11134 libsuff= shlibsuff= libmagic=32-bit;;
11135 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11136 libsuff=32 shlibsuff=N32 libmagic=N32;;
11137 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11138 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11139 *) libsuff= shlibsuff= libmagic=never-match;;
11143 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11144 shlibpath_overrides_runpath=no
11145 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11146 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11147 hardcode_into_libs=yes
11150 # No shared lib support for Linux oldld, aout, or coff.
11151 linux*oldld* | linux*aout* | linux*coff*)
11155 # This must be Linux ELF.
11156 linux* | k*bsd*-gnu)
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath=no
11165 # Some binutils ld are patched to set DT_RUNPATH
11166 save_LDFLAGS=$LDFLAGS
11167 save_libdir=$libdir
11168 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11169 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11170 cat >conftest.$ac_ext <<_ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (ac_try="$ac_link"
11187 case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11192 $as_echo "$ac_try_echo") >&5
11193 (eval "$ac_link") 2>conftest.er1
11195 grep -v '^ *+' conftest.er1 >conftest.err
11197 cat conftest.err >&5
11198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && {
11200 test -z "$ac_c_werror_flag" ||
11201 test ! -s conftest.err
11202 } && test -s conftest$ac_exeext && {
11203 test "$cross_compiling" = yes ||
11204 $as_test_x conftest$ac_exeext
11206 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11207 shlibpath_overrides_runpath=yes
11211 $as_echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11217 rm -rf conftest.dSYM
11218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11219 conftest$ac_exeext conftest.$ac_ext
11220 LDFLAGS=$save_LDFLAGS
11221 libdir=$save_libdir
11223 # This implies no fast_install, which is unacceptable.
11224 # Some rework will be needed to allow for fast_install
11225 # before this can be enabled.
11226 hardcode_into_libs=yes
11228 # Add ABI-specific directories to the system library path.
11229 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11231 # Append ld.so.conf contents to the search path
11232 if test -f /etc/ld.so.conf; then
11233 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' ' '`
11234 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11237 # We used to test for /lib/ld.so.1 and disable shared libraries on
11238 # powerpc, because MkLinux only supported shared libraries with the
11239 # GNU dynamic linker. Since this was broken with cross compilers,
11240 # most powerpc-linux boxes support dynamic linking these days and
11241 # people can always --disable-shared, the test was removed, and we
11242 # assume the GNU/Linux dynamic linker is in use.
11243 dynamic_linker='GNU/Linux ld.so'
11250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11253 dynamic_linker='NetBSD (a.out) ld.so'
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11256 soname_spec='${libname}${release}${shared_ext}$major'
11257 dynamic_linker='NetBSD ld.elf_so'
11259 shlibpath_var=LD_LIBRARY_PATH
11260 shlibpath_overrides_runpath=yes
11261 hardcode_into_libs=yes
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 shlibpath_overrides_runpath=yes
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 shlibpath_overrides_runpath=no
11279 hardcode_into_libs=yes
11280 dynamic_linker='ldqnx.so'
11285 sys_lib_dlsearch_path_spec="/usr/lib"
11287 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11289 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11290 *) need_version=no ;;
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11297 openbsd2.[89] | openbsd2.[89].*)
11298 shlibpath_overrides_runpath=no
11301 shlibpath_overrides_runpath=yes
11305 shlibpath_overrides_runpath=yes
11310 libname_spec='$name'
11313 library_names_spec='$libname${shared_ext} $libname.a'
11314 dynamic_linker='OS/2 ld.exe'
11315 shlibpath_var=LIBPATH
11318 osf3* | osf4* | osf5*)
11322 soname_spec='${libname}${release}${shared_ext}$major'
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 shlibpath_var=LD_LIBRARY_PATH
11325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11326 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338 soname_spec='${libname}${release}${shared_ext}$major'
11339 shlibpath_var=LD_LIBRARY_PATH
11340 shlibpath_overrides_runpath=yes
11341 hardcode_into_libs=yes
11342 # ldd complains unless libraries are executable
11343 postinstall_cmds='chmod +x $lib'
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11350 shlibpath_var=LD_LIBRARY_PATH
11351 shlibpath_overrides_runpath=yes
11352 if test "$with_gnu_ld" = yes; then
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 case $host_vendor in
11365 shlibpath_overrides_runpath=no
11367 runpath_var=LD_RUN_PATH
11375 shlibpath_overrides_runpath=no
11376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11382 if test -d /usr/nec ;then
11384 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11385 soname_spec='$libname${shared_ext}.$major'
11386 shlibpath_var=LD_LIBRARY_PATH
11390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11391 version_type=freebsd-elf
11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11395 soname_spec='${libname}${release}${shared_ext}$major'
11396 shlibpath_var=LD_LIBRARY_PATH
11397 shlibpath_overrides_runpath=yes
11398 hardcode_into_libs=yes
11399 if test "$with_gnu_ld" = yes; then
11400 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11402 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11405 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11409 sys_lib_dlsearch_path_spec='/usr/lib'
11413 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 shlibpath_var=LD_LIBRARY_PATH
11419 shlibpath_overrides_runpath=no
11420 hardcode_into_libs=yes
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426 soname_spec='${libname}${release}${shared_ext}$major'
11427 shlibpath_var=LD_LIBRARY_PATH
11434 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11435 $as_echo "$dynamic_linker" >&6; }
11436 test "$dynamic_linker" = no && can_build_shared=no
11438 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11439 if test "$GCC" = yes; then
11440 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11443 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11444 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11446 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11447 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11536 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11537 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11539 if test -n "$hardcode_libdir_flag_spec" ||
11540 test -n "$runpath_var" ||
11541 test "X$hardcode_automatic" = "Xyes" ; then
11543 # We can hardcode non-existent directories.
11544 if test "$hardcode_direct" != no &&
11545 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11546 # have to relink, otherwise we might link with an installed library
11547 # when we should be linking with a yet-to-be-installed one
11548 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11549 test "$hardcode_minus_L" != no; then
11550 # Linking always hardcodes the temporary library directory.
11551 hardcode_action=relink
11553 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11554 hardcode_action=immediate
11557 # We cannot hardcode anything, or else we can only hardcode existing
11559 hardcode_action=unsupported
11561 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11562 $as_echo "$hardcode_action" >&6; }
11564 if test "$hardcode_action" = relink ||
11565 test "$inherit_rpath" = yes; then
11566 # Fast installation is not supported
11567 enable_fast_install=no
11568 elif test "$shlibpath_overrides_runpath" = yes ||
11569 test "$enable_shared" = no; then
11570 # Fast installation is not necessary
11571 enable_fast_install=needless
11579 if test "x$enable_dlopen" != xyes; then
11580 enable_dlopen=unknown
11581 enable_dlopen_self=unknown
11582 enable_dlopen_self_static=unknown
11589 lt_cv_dlopen="load_add_on"
11591 lt_cv_dlopen_self=yes
11594 mingw* | pw32* | cegcc*)
11595 lt_cv_dlopen="LoadLibrary"
11600 lt_cv_dlopen="dlopen"
11605 # if libdl is installed we need to link against it
11606 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11607 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11608 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11609 $as_echo_n "(cached) " >&6
11611 ac_check_lib_save_LIBS=$LIBS
11613 cat >conftest.$ac_ext <<_ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11635 rm -f conftest.$ac_objext conftest$ac_exeext
11636 if { (ac_try="$ac_link"
11637 case "(($ac_try" in
11638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11639 *) ac_try_echo=$ac_try;;
11641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11642 $as_echo "$ac_try_echo") >&5
11643 (eval "$ac_link") 2>conftest.er1
11645 grep -v '^ *+' conftest.er1 >conftest.err
11647 cat conftest.err >&5
11648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && {
11650 test -z "$ac_c_werror_flag" ||
11651 test ! -s conftest.err
11652 } && test -s conftest$ac_exeext && {
11653 test "$cross_compiling" = yes ||
11654 $as_test_x conftest$ac_exeext
11656 ac_cv_lib_dl_dlopen=yes
11658 $as_echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11661 ac_cv_lib_dl_dlopen=no
11664 rm -rf conftest.dSYM
11665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11669 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11671 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11672 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11675 lt_cv_dlopen="dyld"
11677 lt_cv_dlopen_self=yes
11684 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11685 $as_echo_n "checking for shl_load... " >&6; }
11686 if test "${ac_cv_func_shl_load+set}" = set; then
11687 $as_echo_n "(cached) " >&6
11689 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11697 #define shl_load innocuous_shl_load
11699 /* System header to define __stub macros and hopefully few prototypes,
11700 which can conflict with char shl_load (); below.
11701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11702 <limits.h> exists even on freestanding compilers. */
11705 # include <limits.h>
11707 # include <assert.h>
11712 /* Override any GCC internal prototype to avoid an error.
11713 Use char because int might match the return type of a GCC
11714 builtin and then its argument prototype would still apply. */
11719 /* The GNU C library defines this for functions which it implements
11720 to always fail with ENOSYS. Some functions are actually named
11721 something starting with __ and the normal name is an alias. */
11722 #if defined __stub_shl_load || defined __stub___shl_load
11729 return shl_load ();
11734 rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (ac_try="$ac_link"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11741 $as_echo "$ac_try_echo") >&5
11742 (eval "$ac_link") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } && {
11749 test -z "$ac_c_werror_flag" ||
11750 test ! -s conftest.err
11751 } && test -s conftest$ac_exeext && {
11752 test "$cross_compiling" = yes ||
11753 $as_test_x conftest$ac_exeext
11755 ac_cv_func_shl_load=yes
11757 $as_echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 ac_cv_func_shl_load=no
11763 rm -rf conftest.dSYM
11764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11765 conftest$ac_exeext conftest.$ac_ext
11767 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11768 $as_echo "$ac_cv_func_shl_load" >&6; }
11769 if test "x$ac_cv_func_shl_load" = x""yes; then
11770 lt_cv_dlopen="shl_load"
11772 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11773 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11774 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11775 $as_echo_n "(cached) " >&6
11777 ac_check_lib_save_LIBS=$LIBS
11779 cat >conftest.$ac_ext <<_ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11786 /* Override any GCC internal prototype to avoid an error.
11787 Use char because int might match the return type of a GCC
11788 builtin and then its argument prototype would still apply. */
11796 return shl_load ();
11801 rm -f conftest.$ac_objext conftest$ac_exeext
11802 if { (ac_try="$ac_link"
11803 case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11808 $as_echo "$ac_try_echo") >&5
11809 (eval "$ac_link") 2>conftest.er1
11811 grep -v '^ *+' conftest.er1 >conftest.err
11813 cat conftest.err >&5
11814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && {
11816 test -z "$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 } && test -s conftest$ac_exeext && {
11819 test "$cross_compiling" = yes ||
11820 $as_test_x conftest$ac_exeext
11822 ac_cv_lib_dld_shl_load=yes
11824 $as_echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 ac_cv_lib_dld_shl_load=no
11830 rm -rf conftest.dSYM
11831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11832 conftest$ac_exeext conftest.$ac_ext
11833 LIBS=$ac_check_lib_save_LIBS
11835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11836 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11837 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11838 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11840 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11841 $as_echo_n "checking for dlopen... " >&6; }
11842 if test "${ac_cv_func_dlopen+set}" = set; then
11843 $as_echo_n "(cached) " >&6
11845 cat >conftest.$ac_ext <<_ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11853 #define dlopen innocuous_dlopen
11855 /* System header to define __stub macros and hopefully few prototypes,
11856 which can conflict with char dlopen (); below.
11857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11858 <limits.h> exists even on freestanding compilers. */
11861 # include <limits.h>
11863 # include <assert.h>
11868 /* Override any GCC internal prototype to avoid an error.
11869 Use char because int might match the return type of a GCC
11870 builtin and then its argument prototype would still apply. */
11875 /* The GNU C library defines this for functions which it implements
11876 to always fail with ENOSYS. Some functions are actually named
11877 something starting with __ and the normal name is an alias. */
11878 #if defined __stub_dlopen || defined __stub___dlopen
11890 rm -f conftest.$ac_objext conftest$ac_exeext
11891 if { (ac_try="$ac_link"
11892 case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11897 $as_echo "$ac_try_echo") >&5
11898 (eval "$ac_link") 2>conftest.er1
11900 grep -v '^ *+' conftest.er1 >conftest.err
11902 cat conftest.err >&5
11903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } && {
11905 test -z "$ac_c_werror_flag" ||
11906 test ! -s conftest.err
11907 } && test -s conftest$ac_exeext && {
11908 test "$cross_compiling" = yes ||
11909 $as_test_x conftest$ac_exeext
11911 ac_cv_func_dlopen=yes
11913 $as_echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_cv_func_dlopen=no
11919 rm -rf conftest.dSYM
11920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11921 conftest$ac_exeext conftest.$ac_ext
11923 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11924 $as_echo "$ac_cv_func_dlopen" >&6; }
11925 if test "x$ac_cv_func_dlopen" = x""yes; then
11926 lt_cv_dlopen="dlopen"
11928 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11929 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11930 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11931 $as_echo_n "(cached) " >&6
11933 ac_check_lib_save_LIBS=$LIBS
11935 cat >conftest.$ac_ext <<_ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (ac_try="$ac_link"
11959 case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11964 $as_echo "$ac_try_echo") >&5
11965 (eval "$ac_link") 2>conftest.er1
11967 grep -v '^ *+' conftest.er1 >conftest.err
11969 cat conftest.err >&5
11970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && {
11972 test -z "$ac_c_werror_flag" ||
11973 test ! -s conftest.err
11974 } && test -s conftest$ac_exeext && {
11975 test "$cross_compiling" = yes ||
11976 $as_test_x conftest$ac_exeext
11978 ac_cv_lib_dl_dlopen=yes
11980 $as_echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 ac_cv_lib_dl_dlopen=no
11986 rm -rf conftest.dSYM
11987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11988 conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11991 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11992 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11993 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11994 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11996 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11997 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11998 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11999 $as_echo_n "(cached) " >&6
12001 ac_check_lib_save_LIBS=$LIBS
12002 LIBS="-lsvld $LIBS"
12003 cat >conftest.$ac_ext <<_ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (ac_try="$ac_link"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12032 $as_echo "$ac_try_echo") >&5
12033 (eval "$ac_link") 2>conftest.er1
12035 grep -v '^ *+' conftest.er1 >conftest.err
12037 cat conftest.err >&5
12038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && {
12040 test -z "$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12042 } && test -s conftest$ac_exeext && {
12043 test "$cross_compiling" = yes ||
12044 $as_test_x conftest$ac_exeext
12046 ac_cv_lib_svld_dlopen=yes
12048 $as_echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 ac_cv_lib_svld_dlopen=no
12054 rm -rf conftest.dSYM
12055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12056 conftest$ac_exeext conftest.$ac_ext
12057 LIBS=$ac_check_lib_save_LIBS
12059 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12060 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12061 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12064 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12065 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12066 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12067 $as_echo_n "(cached) " >&6
12069 ac_check_lib_save_LIBS=$LIBS
12071 cat >conftest.$ac_ext <<_ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12078 /* Override any GCC internal prototype to avoid an error.
12079 Use char because int might match the return type of a GCC
12080 builtin and then its argument prototype would still apply. */
12088 return dld_link ();
12093 rm -f conftest.$ac_objext conftest$ac_exeext
12094 if { (ac_try="$ac_link"
12095 case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12100 $as_echo "$ac_try_echo") >&5
12101 (eval "$ac_link") 2>conftest.er1
12103 grep -v '^ *+' conftest.er1 >conftest.err
12105 cat conftest.err >&5
12106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && {
12108 test -z "$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12110 } && test -s conftest$ac_exeext && {
12111 test "$cross_compiling" = yes ||
12112 $as_test_x conftest$ac_exeext
12114 ac_cv_lib_dld_dld_link=yes
12116 $as_echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 ac_cv_lib_dld_dld_link=no
12122 rm -rf conftest.dSYM
12123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12124 conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12127 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12128 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12129 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12130 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12151 if test "x$lt_cv_dlopen" != xno; then
12157 case $lt_cv_dlopen in
12159 save_CPPFLAGS="$CPPFLAGS"
12160 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12162 save_LDFLAGS="$LDFLAGS"
12163 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12166 LIBS="$lt_cv_dlopen_libs $LIBS"
12168 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12169 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12170 if test "${lt_cv_dlopen_self+set}" = set; then
12171 $as_echo_n "(cached) " >&6
12173 if test "$cross_compiling" = yes; then :
12174 lt_cv_dlopen_self=cross
12176 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12177 lt_status=$lt_dlunknown
12178 cat > conftest.$ac_ext <<_LT_EOF
12179 #line 12179 "configure"
12180 #include "confdefs.h"
12189 # define LT_DLGLOBAL RTLD_GLOBAL
12192 # define LT_DLGLOBAL DL_GLOBAL
12194 # define LT_DLGLOBAL 0
12198 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12199 find out it does not work in some platform. */
12200 #ifndef LT_DLLAZY_OR_NOW
12202 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12205 # define LT_DLLAZY_OR_NOW DL_LAZY
12208 # define LT_DLLAZY_OR_NOW RTLD_NOW
12211 # define LT_DLLAZY_OR_NOW DL_NOW
12213 # define LT_DLLAZY_OR_NOW 0
12220 void fnord() { int i=42;}
12223 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12224 int status = $lt_dlunknown;
12228 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12229 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12230 /* dlclose (self); */
12238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12239 (eval $ac_link) 2>&5
12241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12243 (./conftest; exit; ) >&5 2>/dev/null
12245 case x$lt_status in
12246 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12247 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12248 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12251 # compilation failed
12252 lt_cv_dlopen_self=no
12259 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12260 $as_echo "$lt_cv_dlopen_self" >&6; }
12262 if test "x$lt_cv_dlopen_self" = xyes; then
12263 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12264 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12265 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12266 if test "${lt_cv_dlopen_self_static+set}" = set; then
12267 $as_echo_n "(cached) " >&6
12269 if test "$cross_compiling" = yes; then :
12270 lt_cv_dlopen_self_static=cross
12272 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12273 lt_status=$lt_dlunknown
12274 cat > conftest.$ac_ext <<_LT_EOF
12275 #line 12275 "configure"
12276 #include "confdefs.h"
12285 # define LT_DLGLOBAL RTLD_GLOBAL
12288 # define LT_DLGLOBAL DL_GLOBAL
12290 # define LT_DLGLOBAL 0
12294 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12295 find out it does not work in some platform. */
12296 #ifndef LT_DLLAZY_OR_NOW
12298 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12301 # define LT_DLLAZY_OR_NOW DL_LAZY
12304 # define LT_DLLAZY_OR_NOW RTLD_NOW
12307 # define LT_DLLAZY_OR_NOW DL_NOW
12309 # define LT_DLLAZY_OR_NOW 0
12316 void fnord() { int i=42;}
12319 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12320 int status = $lt_dlunknown;
12324 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12325 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12326 /* dlclose (self); */
12334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335 (eval $ac_link) 2>&5
12337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12339 (./conftest; exit; ) >&5 2>/dev/null
12341 case x$lt_status in
12342 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12343 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12344 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12347 # compilation failed
12348 lt_cv_dlopen_self_static=no
12355 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12356 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12359 CPPFLAGS="$save_CPPFLAGS"
12360 LDFLAGS="$save_LDFLAGS"
12365 case $lt_cv_dlopen_self in
12366 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12367 *) enable_dlopen_self=unknown ;;
12370 case $lt_cv_dlopen_self_static in
12371 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12372 *) enable_dlopen_self_static=unknown ;;
12394 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12395 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12396 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12397 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12398 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12399 { $as_echo "$as_me:$LINENO: result: yes" >&5
12400 $as_echo "yes" >&6; }
12402 # FIXME - insert some real tests, host_os isn't really good enough
12405 if test -n "$STRIP" ; then
12406 striplib="$STRIP -x"
12407 old_striplib="$STRIP -S"
12408 { $as_echo "$as_me:$LINENO: result: yes" >&5
12409 $as_echo "yes" >&6; }
12411 { $as_echo "$as_me:$LINENO: result: no" >&5
12412 $as_echo "no" >&6; }
12416 { $as_echo "$as_me:$LINENO: result: no" >&5
12417 $as_echo "no" >&6; }
12433 # Report which library types will actually be built
12434 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12435 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12436 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12437 $as_echo "$can_build_shared" >&6; }
12439 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12440 $as_echo_n "checking whether to build shared libraries... " >&6; }
12441 test "$can_build_shared" = "no" && enable_shared=no
12443 # On AIX, shared libraries and static libraries use the same namespace, and
12444 # are all built from PIC.
12447 test "$enable_shared" = yes && enable_static=no
12448 if test -n "$RANLIB"; then
12449 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12450 postinstall_cmds='$RANLIB $lib'
12455 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12456 test "$enable_shared" = yes && enable_static=no
12460 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12461 $as_echo "$enable_shared" >&6; }
12463 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12464 $as_echo_n "checking whether to build static libraries... " >&6; }
12465 # Make sure either enable_shared or enable_static is yes.
12466 test "$enable_shared" = yes || enable_static=yes
12467 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12468 $as_echo "$enable_static" >&6; }
12475 ac_cpp='$CPP $CPPFLAGS'
12476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12494 ac_config_commands="$ac_config_commands libtool"
12499 # Only expand once:
12503 # Check whether --enable-optimization was given.
12504 if test "${enable_optimization+set}" = set; then
12505 enableval=$enable_optimization;
12506 if (test "${enableval}" = "no"); then
12507 CFLAGS="$CFLAGS -O0"
12513 # Check whether --enable-debug was given.
12514 if test "${enable_debug+set}" = set; then
12515 enableval=$enable_debug;
12516 if (test "${enableval}" = "yes" &&
12517 test "${ac_cv_prog_cc_g}" = "yes"); then
12518 CFLAGS="$CFLAGS -g"
12524 # Check whether --enable-test was given.
12525 if test "${enable_test+set}" = set; then
12526 enableval=$enable_test; enable_test=${enableval}
12529 if test "${enable_test}" = "yes"; then
12538 # Check whether --enable-pie was given.
12539 if test "${enable_pie+set}" = set; then
12540 enableval=$enable_pie;
12541 if (test "${enableval}" = "yes" &&
12542 test "${ac_cv_prog_cc_pie}" = "yes"); then
12543 CFLAGS="$CFLAGS -fPIE"
12544 LDFLAGS="$LDFLAGS -pie"
12550 # Check whether --enable-threads was given.
12551 if test "${enable_threads+set}" = set; then
12552 enableval=$enable_threads; enable_threads=${enableval}
12556 { $as_echo "$as_me:$LINENO: checking for signalfd" >&5
12557 $as_echo_n "checking for signalfd... " >&6; }
12558 if test "${ac_cv_func_signalfd+set}" = set; then
12559 $as_echo_n "(cached) " >&6
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 /* Define signalfd to an innocuous variant, in case <limits.h> declares signalfd.
12568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12569 #define signalfd innocuous_signalfd
12571 /* System header to define __stub macros and hopefully few prototypes,
12572 which can conflict with char signalfd (); below.
12573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12574 <limits.h> exists even on freestanding compilers. */
12577 # include <limits.h>
12579 # include <assert.h>
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12591 /* The GNU C library defines this for functions which it implements
12592 to always fail with ENOSYS. Some functions are actually named
12593 something starting with __ and the normal name is an alias. */
12594 #if defined __stub_signalfd || defined __stub___signalfd
12601 return signalfd ();
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12613 $as_echo "$ac_try_echo") >&5
12614 (eval "$ac_link") 2>conftest.er1
12616 grep -v '^ *+' conftest.er1 >conftest.err
12618 cat conftest.err >&5
12619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && {
12621 test -z "$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 } && test -s conftest$ac_exeext && {
12624 test "$cross_compiling" = yes ||
12625 $as_test_x conftest$ac_exeext
12627 ac_cv_func_signalfd=yes
12629 $as_echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 ac_cv_func_signalfd=no
12635 rm -rf conftest.dSYM
12636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12637 conftest$ac_exeext conftest.$ac_ext
12639 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_signalfd" >&5
12640 $as_echo "$ac_cv_func_signalfd" >&6; }
12641 if test "x$ac_cv_func_signalfd" = x""yes; then
12644 { { $as_echo "$as_me:$LINENO: error: signalfd support is required" >&5
12645 $as_echo "$as_me: error: signalfd support is required" >&2;}
12646 { (exit 1); exit 1; }; }
12650 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12651 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12653 $as_echo_n "(cached) " >&6
12655 ac_check_lib_save_LIBS=$LIBS
12657 cat >conftest.$ac_ext <<_ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12664 /* Override any GCC internal prototype to avoid an error.
12665 Use char because int might match the return type of a GCC
12666 builtin and then its argument prototype would still apply. */
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (ac_try="$ac_link"
12681 case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12686 $as_echo "$ac_try_echo") >&5
12687 (eval "$ac_link") 2>conftest.er1
12689 grep -v '^ *+' conftest.er1 >conftest.err
12691 cat conftest.err >&5
12692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest$ac_exeext && {
12697 test "$cross_compiling" = yes ||
12698 $as_test_x conftest$ac_exeext
12700 ac_cv_lib_dl_dlopen=yes
12702 $as_echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 ac_cv_lib_dl_dlopen=no
12708 rm -rf conftest.dSYM
12709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12710 conftest$ac_exeext conftest.$ac_ext
12711 LIBS=$ac_check_lib_save_LIBS
12713 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12714 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12715 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12718 { { $as_echo "$as_me:$LINENO: error: dynamic linking loader is required" >&5
12719 $as_echo "$as_me: error: dynamic linking loader is required" >&2;}
12720 { (exit 1); exit 1; }; }
12726 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
12727 $as_echo_n "checking for GLIB... " >&6; }
12729 if test -n "$GLIB_CFLAGS"; then
12730 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12731 elif test -n "$PKG_CONFIG"; then
12732 if test -n "$PKG_CONFIG" && \
12733 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.22\"") >&5
12734 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.22") 2>&5
12736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; then
12738 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.22" 2>/dev/null`
12745 if test -n "$GLIB_LIBS"; then
12746 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12747 elif test -n "$PKG_CONFIG"; then
12748 if test -n "$PKG_CONFIG" && \
12749 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.22\"") >&5
12750 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.22") 2>&5
12752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; then
12754 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.22" 2>/dev/null`
12764 if test $pkg_failed = yes; then
12766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12767 _pkg_short_errors_supported=yes
12769 _pkg_short_errors_supported=no
12771 if test $_pkg_short_errors_supported = yes; then
12772 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.22" 2>&1`
12774 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.22" 2>&1`
12776 # Put the nasty error message in config.log where it belongs
12777 echo "$GLIB_PKG_ERRORS" >&5
12779 { $as_echo "$as_me:$LINENO: result: no" >&5
12780 $as_echo "no" >&6; }
12781 { { $as_echo "$as_me:$LINENO: error: GLib >= 2.22 is required" >&5
12782 $as_echo "$as_me: error: GLib >= 2.22 is required" >&2;}
12783 { (exit 1); exit 1; }; }
12784 elif test $pkg_failed = untried; then
12785 { { $as_echo "$as_me:$LINENO: error: GLib >= 2.22 is required" >&5
12786 $as_echo "$as_me: error: GLib >= 2.22 is required" >&2;}
12787 { (exit 1); exit 1; }; }
12789 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12790 GLIB_LIBS=$pkg_cv_GLIB_LIBS
12791 { $as_echo "$as_me:$LINENO: result: yes" >&5
12792 $as_echo "yes" >&6; }
12798 if (test "${enable_threads}" = "yes"); then
12800 cat >>confdefs.h <<\_ACEOF
12801 #define NEED_THREADS 1
12806 { $as_echo "$as_me:$LINENO: checking for GTHREAD" >&5
12807 $as_echo_n "checking for GTHREAD... " >&6; }
12809 if test -n "$GTHREAD_CFLAGS"; then
12810 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12811 elif test -n "$PKG_CONFIG"; then
12812 if test -n "$PKG_CONFIG" && \
12813 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\"") >&5
12814 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; then
12818 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.16" 2>/dev/null`
12825 if test -n "$GTHREAD_LIBS"; then
12826 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12827 elif test -n "$PKG_CONFIG"; then
12828 if test -n "$PKG_CONFIG" && \
12829 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\"") >&5
12830 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; then
12834 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.16" 2>/dev/null`
12844 if test $pkg_failed = yes; then
12846 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12847 _pkg_short_errors_supported=yes
12849 _pkg_short_errors_supported=no
12851 if test $_pkg_short_errors_supported = yes; then
12852 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0 >= 2.16" 2>&1`
12854 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0 >= 2.16" 2>&1`
12856 # Put the nasty error message in config.log where it belongs
12857 echo "$GTHREAD_PKG_ERRORS" >&5
12859 { $as_echo "$as_me:$LINENO: result: no" >&5
12860 $as_echo "no" >&6; }
12861 { { $as_echo "$as_me:$LINENO: error: GThread >= 2.16 is required" >&5
12862 $as_echo "$as_me: error: GThread >= 2.16 is required" >&2;}
12863 { (exit 1); exit 1; }; }
12864 elif test $pkg_failed = untried; then
12865 { { $as_echo "$as_me:$LINENO: error: GThread >= 2.16 is required" >&5
12866 $as_echo "$as_me: error: GThread >= 2.16 is required" >&2;}
12867 { (exit 1); exit 1; }; }
12869 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12870 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12871 { $as_echo "$as_me:$LINENO: result: yes" >&5
12872 $as_echo "yes" >&6; }
12875 GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
12876 GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
12881 { $as_echo "$as_me:$LINENO: checking for DBUS" >&5
12882 $as_echo_n "checking for DBUS... " >&6; }
12884 if test -n "$DBUS_CFLAGS"; then
12885 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12886 elif test -n "$PKG_CONFIG"; then
12887 if test -n "$PKG_CONFIG" && \
12888 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.0\"") >&5
12889 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0") 2>&5
12891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; then
12893 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>/dev/null`
12900 if test -n "$DBUS_LIBS"; then
12901 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12902 elif test -n "$PKG_CONFIG"; then
12903 if test -n "$PKG_CONFIG" && \
12904 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.0\"") >&5
12905 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0") 2>&5
12907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; then
12909 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>/dev/null`
12919 if test $pkg_failed = yes; then
12921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12922 _pkg_short_errors_supported=yes
12924 _pkg_short_errors_supported=no
12926 if test $_pkg_short_errors_supported = yes; then
12927 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 1.0" 2>&1`
12929 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 1.0" 2>&1`
12931 # Put the nasty error message in config.log where it belongs
12932 echo "$DBUS_PKG_ERRORS" >&5
12934 { $as_echo "$as_me:$LINENO: result: no" >&5
12935 $as_echo "no" >&6; }
12936 { { $as_echo "$as_me:$LINENO: error: D-Bus >= 1.0 is required" >&5
12937 $as_echo "$as_me: error: D-Bus >= 1.0 is required" >&2;}
12938 { (exit 1); exit 1; }; }
12939 elif test $pkg_failed = untried; then
12940 { { $as_echo "$as_me:$LINENO: error: D-Bus >= 1.0 is required" >&5
12941 $as_echo "$as_me: error: D-Bus >= 1.0 is required" >&2;}
12942 { (exit 1); exit 1; }; }
12944 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12945 DBUS_LIBS=$pkg_cv_DBUS_LIBS
12946 { $as_echo "$as_me:$LINENO: result: yes" >&5
12947 $as_echo "yes" >&6; }
12950 saved_CFLAGS="$CFLAGS"
12952 CFLAGS="$CFLAGS $DBUS_CFLAGS"
12953 LIBS="$LIBS $DBUS_LIBS"
12954 { $as_echo "$as_me:$LINENO: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
12955 $as_echo_n "checking for dbus_watch_get_unix_fd in -ldbus-1... " >&6; }
12956 if test "${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+set}" = set; then
12957 $as_echo_n "(cached) " >&6
12959 ac_check_lib_save_LIBS=$LIBS
12960 LIBS="-ldbus-1 $LIBS"
12961 cat >conftest.$ac_ext <<_ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12968 /* Override any GCC internal prototype to avoid an error.
12969 Use char because int might match the return type of a GCC
12970 builtin and then its argument prototype would still apply. */
12974 char dbus_watch_get_unix_fd ();
12978 return dbus_watch_get_unix_fd ();
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12990 $as_echo "$ac_try_echo") >&5
12991 (eval "$ac_link") 2>conftest.er1
12993 grep -v '^ *+' conftest.er1 >conftest.err
12995 cat conftest.err >&5
12996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } && {
12998 test -z "$ac_c_werror_flag" ||
12999 test ! -s conftest.err
13000 } && test -s conftest$ac_exeext && {
13001 test "$cross_compiling" = yes ||
13002 $as_test_x conftest$ac_exeext
13004 ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
13006 $as_echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
13012 rm -rf conftest.dSYM
13013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13014 conftest$ac_exeext conftest.$ac_ext
13015 LIBS=$ac_check_lib_save_LIBS
13017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
13018 $as_echo "$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
13019 if test "x$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" = x""yes; then
13023 cat >>confdefs.h <<\_ACEOF
13024 #define NEED_DBUS_WATCH_GET_UNIX_FD 1
13029 { $as_echo "$as_me:$LINENO: checking for dbus_connection_can_send_type in -ldbus-1" >&5
13030 $as_echo_n "checking for dbus_connection_can_send_type in -ldbus-1... " >&6; }
13031 if test "${ac_cv_lib_dbus_1_dbus_connection_can_send_type+set}" = set; then
13032 $as_echo_n "(cached) " >&6
13034 ac_check_lib_save_LIBS=$LIBS
13035 LIBS="-ldbus-1 $LIBS"
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13043 /* Override any GCC internal prototype to avoid an error.
13044 Use char because int might match the return type of a GCC
13045 builtin and then its argument prototype would still apply. */
13049 char dbus_connection_can_send_type ();
13053 return dbus_connection_can_send_type ();
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (ac_try="$ac_link"
13060 case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13065 $as_echo "$ac_try_echo") >&5
13066 (eval "$ac_link") 2>conftest.er1
13068 grep -v '^ *+' conftest.er1 >conftest.err
13070 cat conftest.err >&5
13071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } && {
13073 test -z "$ac_c_werror_flag" ||
13074 test ! -s conftest.err
13075 } && test -s conftest$ac_exeext && {
13076 test "$cross_compiling" = yes ||
13077 $as_test_x conftest$ac_exeext
13079 ac_cv_lib_dbus_1_dbus_connection_can_send_type=yes
13081 $as_echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13084 ac_cv_lib_dbus_1_dbus_connection_can_send_type=no
13087 rm -rf conftest.dSYM
13088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13089 conftest$ac_exeext conftest.$ac_ext
13090 LIBS=$ac_check_lib_save_LIBS
13092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_can_send_type" >&5
13093 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_can_send_type" >&6; }
13094 if test "x$ac_cv_lib_dbus_1_dbus_connection_can_send_type" = x""yes; then
13098 cat >>confdefs.h <<\_ACEOF
13099 #define NEED_DBUS_CONNECTION_CAN_SEND_TYPE 1
13104 CFLAGS="$saved_CFLAGS"
13110 # Check whether --with-dbusconfdir was given.
13111 if test "${with_dbusconfdir+set}" = set; then
13112 withval=$with_dbusconfdir; path_dbusconf=${withval}
13114 path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
13117 if (test -z "${path_dbusconf}"); then
13118 DBUS_CONFDIR="${sysconfdir}/dbus-1/system.d"
13120 DBUS_CONFDIR="${path_dbusconf}/dbus-1/system.d"
13125 # Check whether --with-dbusdatadir was given.
13126 if test "${with_dbusdatadir+set}" = set; then
13127 withval=$with_dbusdatadir; path_dbusdata=${withval}
13129 path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"
13132 if (test -z "${path_dbusdata}"); then
13133 DBUS_DATADIR="${datadir}/dbus-1/system-services"
13135 DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
13140 # Check whether --with-systemdunitdir was given.
13141 if test "${with_systemdunitdir+set}" = set; then
13142 withval=$with_systemdunitdir; path_systemdunit=${withval}
13144 path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
13147 if (test -n "${path_systemdunit}"); then
13148 SYSTEMD_UNITDIR="${path_systemdunit}"
13151 if test -n "${path_systemdunit}"; then
13160 # Check whether --enable-capng was given.
13161 if test "${enable_capng+set}" = set; then
13162 enableval=$enable_capng; enable_capng=${enableval}
13165 if (test "${enable_capng}" = "yes"); then
13168 { $as_echo "$as_me:$LINENO: checking for CAPNG" >&5
13169 $as_echo_n "checking for CAPNG... " >&6; }
13171 if test -n "$CAPNG_CFLAGS"; then
13172 pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS"
13173 elif test -n "$PKG_CONFIG"; then
13174 if test -n "$PKG_CONFIG" && \
13175 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcap-ng\"") >&5
13176 ($PKG_CONFIG --exists --print-errors "libcap-ng") 2>&5
13178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; then
13180 pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng" 2>/dev/null`
13187 if test -n "$CAPNG_LIBS"; then
13188 pkg_cv_CAPNG_LIBS="$CAPNG_LIBS"
13189 elif test -n "$PKG_CONFIG"; then
13190 if test -n "$PKG_CONFIG" && \
13191 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcap-ng\"") >&5
13192 ($PKG_CONFIG --exists --print-errors "libcap-ng") 2>&5
13194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; then
13196 pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng" 2>/dev/null`
13206 if test $pkg_failed = yes; then
13208 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13209 _pkg_short_errors_supported=yes
13211 _pkg_short_errors_supported=no
13213 if test $_pkg_short_errors_supported = yes; then
13214 CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcap-ng" 2>&1`
13216 CAPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcap-ng" 2>&1`
13218 # Put the nasty error message in config.log where it belongs
13219 echo "$CAPNG_PKG_ERRORS" >&5
13221 { $as_echo "$as_me:$LINENO: result: no" >&5
13222 $as_echo "no" >&6; }
13223 { { $as_echo "$as_me:$LINENO: error: Capabilities library is required" >&5
13224 $as_echo "$as_me: error: Capabilities library is required" >&2;}
13225 { (exit 1); exit 1; }; }
13226 elif test $pkg_failed = untried; then
13227 { { $as_echo "$as_me:$LINENO: error: Capabilities library is required" >&5
13228 $as_echo "$as_me: error: Capabilities library is required" >&2;}
13229 { (exit 1); exit 1; }; }
13231 CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS
13232 CAPNG_LIBS=$pkg_cv_CAPNG_LIBS
13233 { $as_echo "$as_me:$LINENO: result: yes" >&5
13234 $as_echo "yes" >&6; }
13240 cat >>confdefs.h <<\_ACEOF
13241 #define HAVE_CAPNG 1
13246 # Check whether --enable-udev was given.
13247 if test "${enable_udev+set}" = set; then
13248 enableval=$enable_udev; enable_udev=${enableval}
13251 if (test "${enable_udev}" != "no"); then
13254 { $as_echo "$as_me:$LINENO: checking for UDEV" >&5
13255 $as_echo_n "checking for UDEV... " >&6; }
13257 if test -n "$UDEV_CFLAGS"; then
13258 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
13259 elif test -n "$PKG_CONFIG"; then
13260 if test -n "$PKG_CONFIG" && \
13261 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\"") >&5
13262 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; then
13266 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
13273 if test -n "$UDEV_LIBS"; then
13274 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
13275 elif test -n "$PKG_CONFIG"; then
13276 if test -n "$PKG_CONFIG" && \
13277 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\"") >&5
13278 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; then
13282 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
13292 if test $pkg_failed = yes; then
13294 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13295 _pkg_short_errors_supported=yes
13297 _pkg_short_errors_supported=no
13299 if test $_pkg_short_errors_supported = yes; then
13300 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
13302 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
13304 # Put the nasty error message in config.log where it belongs
13305 echo "$UDEV_PKG_ERRORS" >&5
13307 { $as_echo "$as_me:$LINENO: result: no" >&5
13308 $as_echo "no" >&6; }
13309 { { $as_echo "$as_me:$LINENO: error: libudev >= 143 is required" >&5
13310 $as_echo "$as_me: error: libudev >= 143 is required" >&2;}
13311 { (exit 1); exit 1; }; }
13312 elif test $pkg_failed = untried; then
13313 { { $as_echo "$as_me:$LINENO: error: libudev >= 143 is required" >&5
13314 $as_echo "$as_me: error: libudev >= 143 is required" >&2;}
13315 { (exit 1); exit 1; }; }
13317 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
13318 UDEV_LIBS=$pkg_cv_UDEV_LIBS
13319 { $as_echo "$as_me:$LINENO: result: yes" >&5
13320 $as_echo "yes" >&6; }
13323 UDEV_DATADIR="`$PKG_CONFIG --variable=udevdir udev`"
13324 if (test -z "${UDEV_DATADIR}"); then
13325 UDEV_DATADIR="${sysconfdir}/udev/rules.d"
13327 UDEV_DATADIR="${UDEV_DATADIR}/rules.d"
13333 if test "${enable_udev}" = "yes"; then
13342 # Check whether --enable-tools was given.
13343 if test "${enable_tools+set}" = set; then
13344 enableval=$enable_tools; enable_tools=${enableval}
13347 if (test "${enable_tools}" = "yes"); then
13350 { $as_echo "$as_me:$LINENO: checking for USB" >&5
13351 $as_echo_n "checking for USB... " >&6; }
13353 if test -n "$USB_CFLAGS"; then
13354 pkg_cv_USB_CFLAGS="$USB_CFLAGS"
13355 elif test -n "$PKG_CONFIG"; then
13356 if test -n "$PKG_CONFIG" && \
13357 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\"") >&5
13358 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; then
13362 pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
13369 if test -n "$USB_LIBS"; then
13370 pkg_cv_USB_LIBS="$USB_LIBS"
13371 elif test -n "$PKG_CONFIG"; then
13372 if test -n "$PKG_CONFIG" && \
13373 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\"") >&5
13374 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; then
13378 pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
13388 if test $pkg_failed = yes; then
13390 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13391 _pkg_short_errors_supported=yes
13393 _pkg_short_errors_supported=no
13395 if test $_pkg_short_errors_supported = yes; then
13396 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
13398 USB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
13400 # Put the nasty error message in config.log where it belongs
13401 echo "$USB_PKG_ERRORS" >&5
13403 { $as_echo "$as_me:$LINENO: result: no" >&5
13404 $as_echo "no" >&6; }
13405 { { $as_echo "$as_me:$LINENO: error: USB library is required" >&5
13406 $as_echo "$as_me: error: USB library is required" >&2;}
13407 { (exit 1); exit 1; }; }
13408 elif test $pkg_failed = untried; then
13409 { { $as_echo "$as_me:$LINENO: error: USB library is required" >&5
13410 $as_echo "$as_me: error: USB library is required" >&2;}
13411 { (exit 1); exit 1; }; }
13413 USB_CFLAGS=$pkg_cv_USB_CFLAGS
13414 USB_LIBS=$pkg_cv_USB_LIBS
13415 { $as_echo "$as_me:$LINENO: result: yes" >&5
13416 $as_echo "yes" >&6; }
13422 if test "${enable_tools}" = "yes"; then
13431 # Check whether --enable-atmodem was given.
13432 if test "${enable_atmodem+set}" = set; then
13433 enableval=$enable_atmodem; enable_atmodem=${enableval}
13436 if test "${enable_atmodem}" != "no"; then
13445 # Check whether --enable-cdmamodem was given.
13446 if test "${enable_cdmamodem+set}" = set; then
13447 enableval=$enable_cdmamodem; enable_cdmamodem=${enableval}
13450 if test "${enable_cdmamodem}" != "no"; then
13452 CDMAMODEM_FALSE='#'
13459 # Check whether --enable-phonesim was given.
13460 if test "${enable_phonesim+set}" = set; then
13461 enableval=$enable_phonesim; enable_phonesim=${enableval}
13464 if test "${enable_phonesim}" != "no" &&
13465 test "${enable_atmodem}" != "no"; then
13474 # Check whether --enable-isimodem was given.
13475 if test "${enable_isimodem+set}" = set; then
13476 enableval=$enable_isimodem; enable_isimodem=${enableval}
13479 if test "${enable_isimodem}" != "no"; then
13488 # Check whether --enable-bluetooth was given.
13489 if test "${enable_bluetooth+set}" = set; then
13490 enableval=$enable_bluetooth; enable_bluetooth=${enableval}
13493 if (test "${enable_bluetooth}" != "no"); then
13496 { $as_echo "$as_me:$LINENO: checking for BLUEZ" >&5
13497 $as_echo_n "checking for BLUEZ... " >&6; }
13499 if test -n "$BLUEZ_CFLAGS"; then
13500 pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
13501 elif test -n "$PKG_CONFIG"; then
13502 if test -n "$PKG_CONFIG" && \
13503 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.30\"") >&5
13504 ($PKG_CONFIG --exists --print-errors "bluez >= 4.30") 2>&5
13506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; then
13508 pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez >= 4.30" 2>/dev/null`
13515 if test -n "$BLUEZ_LIBS"; then
13516 pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
13517 elif test -n "$PKG_CONFIG"; then
13518 if test -n "$PKG_CONFIG" && \
13519 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.30\"") >&5
13520 ($PKG_CONFIG --exists --print-errors "bluez >= 4.30") 2>&5
13522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; then
13524 pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez >= 4.30" 2>/dev/null`
13534 if test $pkg_failed = yes; then
13536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13537 _pkg_short_errors_supported=yes
13539 _pkg_short_errors_supported=no
13541 if test $_pkg_short_errors_supported = yes; then
13542 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bluez >= 4.30" 2>&1`
13544 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --print-errors "bluez >= 4.30" 2>&1`
13546 # Put the nasty error message in config.log where it belongs
13547 echo "$BLUEZ_PKG_ERRORS" >&5
13549 { $as_echo "$as_me:$LINENO: result: no" >&5
13550 $as_echo "no" >&6; }
13551 { { $as_echo "$as_me:$LINENO: error: Bluetooth library >= 4.30 is required" >&5
13552 $as_echo "$as_me: error: Bluetooth library >= 4.30 is required" >&2;}
13553 { (exit 1); exit 1; }; }
13554 elif test $pkg_failed = untried; then
13555 { { $as_echo "$as_me:$LINENO: error: Bluetooth library >= 4.30 is required" >&5
13556 $as_echo "$as_me: error: Bluetooth library >= 4.30 is required" >&2;}
13557 { (exit 1); exit 1; }; }
13559 BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
13560 BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
13561 { $as_echo "$as_me:$LINENO: result: yes" >&5
13562 $as_echo "yes" >&6; }
13568 if test "${enable_bluetooth}" != "no"; then
13570 BLUETOOTH_FALSE='#'
13578 # Check whether --with-provisiondb was given.
13579 if test "${with_provisiondb+set}" = set; then
13580 withval=$with_provisiondb; path_provisiondb=${withval}
13584 # Check whether --enable-provision was given.
13585 if test "${enable_provision+set}" = set; then
13586 enableval=$enable_provision; enable_provision=${enableval}
13589 if (test "${enable_provision}" != "no"); then
13590 if (test -n "${path_provisiondb}"); then
13592 cat >>confdefs.h <<_ACEOF
13593 #define PROVIDER_DATABASE "${path_provisiondb}"
13597 { $as_echo "$as_me:$LINENO: checking for mobile-broadband-provider-info" >&5
13598 $as_echo_n "checking for mobile-broadband-provider-info... " >&6; }
13599 if test -n "$PKG_CONFIG" && \
13600 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\"") >&5
13601 ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; then
13605 if test -n "$PROVIDER_DATABASE"; then
13606 pkg_cv_PROVIDER_DATABASE="$PROVIDER_DATABASE"
13607 elif test -n "$PKG_CONFIG"; then
13608 if test -n "$PKG_CONFIG" && \
13609 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\"") >&5
13610 ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; then
13614 pkg_cv_PROVIDER_DATABASE=`$PKG_CONFIG --variable=database "mobile-broadband-provider-info" 2>/dev/null`
13622 cat >>confdefs.h <<_ACEOF
13623 #define PROVIDER_DATABASE "$pkg_cv_PROVIDER_DATABASE"
13626 { $as_echo "$as_me:$LINENO: result: yes" >&5
13627 $as_echo "yes" >&6; }
13629 { { $as_echo "$as_me:$LINENO: error: Mobile broadband provider database is required" >&5
13630 $as_echo "$as_me: error: Mobile broadband provider database is required" >&2;}
13631 { (exit 1); exit 1; }; }
13635 if test "${enable_provision}" != "no"; then
13637 PROVISION_FALSE='#'
13644 # Check whether --enable-datafiles was given.
13645 if test "${enable_datafiles+set}" = set; then
13646 enableval=$enable_datafiles; enable_datafiles=${enableval}
13649 if test "${enable_datafiles}" != "no"; then
13651 DATAFILES_FALSE='#'
13658 if (test "${prefix}" = "NONE"); then
13659 if (test "$localstatedir" = '${prefix}/var'); then
13660 localstatedir='/var'
13664 prefix="${ac_default_prefix}"
13667 if (test "$localstatedir" = '${prefix}/var'); then
13668 storagedir="${prefix}/var/lib/ofono"
13670 storagedir="${localstatedir}/lib/ofono"
13673 cat >>confdefs.h <<_ACEOF
13674 #define STORAGEDIR "${storagedir}"
13678 if (test "$sysconfdir" = '${prefix}/etc'); then
13679 configdir="${prefix}/etc/ofono"
13681 configdir="${sysconfdir}/ofono"
13684 cat >>confdefs.h <<_ACEOF
13685 #define CONFIGDIR "${configdir}"
13689 ac_config_files="$ac_config_files Makefile include/version.h src/ofono.service ofono.pc"
13691 cat >confcache <<\_ACEOF
13692 # This file is a shell script that caches the results of configure
13693 # tests run on this system so they can be shared between configure
13694 # scripts and configure runs, see configure's option --config-cache.
13695 # It is not useful on other systems. If it contains results you don't
13696 # want to keep, you may remove or edit it.
13698 # config.status only pays attention to the cache file if you give it
13699 # the --recheck option to rerun configure.
13701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13703 # following values.
13707 # The following way of writing the cache mishandles newlines in values,
13708 # but we know of no workaround that is simple, portable, and efficient.
13709 # So, we kill variables containing newlines.
13710 # Ultrix sh set writes to stderr and can't be redirected directly,
13711 # and sets the high bit in the cache file unless we assign to the vars.
13713 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13714 eval ac_val=\$$ac_var
13718 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13719 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13722 _ | IFS | as_nl) ;; #(
13723 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13724 *) $as_unset $ac_var ;;
13730 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13731 *${as_nl}ac_space=\ *)
13732 # `set' does not quote correctly, so add quotes (double-quote
13733 # substitution turns \\\\ into \\, and sed turns \\ into \).
13736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13739 # `set' quotes correctly as required by POSIX, so do not add quotes.
13740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13749 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13751 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13753 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13754 if test -w "$cache_file"; then
13755 test "x$cache_file" != "x/dev/null" &&
13756 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13757 $as_echo "$as_me: updating cache $cache_file" >&6;}
13758 cat confcache >$cache_file
13760 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13761 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13767 # Let make expand exec_prefix.
13768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13770 DEFS=-DHAVE_CONFIG_H
13774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13775 # 1. Remove the extension, and $U if already installed.
13776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13779 # will be set to the directory where LIBOBJS objects are built.
13780 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13781 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13783 LIBOBJS=$ac_libobjs
13785 LTLIBOBJS=$ac_ltlibobjs
13788 if test -n "$EXEEXT"; then
13790 am__EXEEXT_FALSE='#'
13792 am__EXEEXT_TRUE='#'
13796 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13797 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13798 Usually this means the macro was only invoked conditionally." >&5
13799 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13800 Usually this means the macro was only invoked conditionally." >&2;}
13801 { (exit 1); exit 1; }; }
13803 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13804 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13805 Usually this means the macro was only invoked conditionally." >&5
13806 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13807 Usually this means the macro was only invoked conditionally." >&2;}
13808 { (exit 1); exit 1; }; }
13810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13811 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13812 Usually this means the macro was only invoked conditionally." >&5
13813 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13814 Usually this means the macro was only invoked conditionally." >&2;}
13815 { (exit 1); exit 1; }; }
13817 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13818 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13819 Usually this means the macro was only invoked conditionally." >&5
13820 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13821 Usually this means the macro was only invoked conditionally." >&2;}
13822 { (exit 1); exit 1; }; }
13824 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13825 { { $as_echo "$as_me:$LINENO: error: conditional \"TEST\" was never defined.
13826 Usually this means the macro was only invoked conditionally." >&5
13827 $as_echo "$as_me: error: conditional \"TEST\" was never defined.
13828 Usually this means the macro was only invoked conditionally." >&2;}
13829 { (exit 1); exit 1; }; }
13831 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13832 { { $as_echo "$as_me:$LINENO: error: conditional \"SYSTEMD\" was never defined.
13833 Usually this means the macro was only invoked conditionally." >&5
13834 $as_echo "$as_me: error: conditional \"SYSTEMD\" was never defined.
13835 Usually this means the macro was only invoked conditionally." >&2;}
13836 { (exit 1); exit 1; }; }
13838 if test -z "${UDEV_TRUE}" && test -z "${UDEV_FALSE}"; then
13839 { { $as_echo "$as_me:$LINENO: error: conditional \"UDEV\" was never defined.
13840 Usually this means the macro was only invoked conditionally." >&5
13841 $as_echo "$as_me: error: conditional \"UDEV\" was never defined.
13842 Usually this means the macro was only invoked conditionally." >&2;}
13843 { (exit 1); exit 1; }; }
13845 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13846 { { $as_echo "$as_me:$LINENO: error: conditional \"TOOLS\" was never defined.
13847 Usually this means the macro was only invoked conditionally." >&5
13848 $as_echo "$as_me: error: conditional \"TOOLS\" was never defined.
13849 Usually this means the macro was only invoked conditionally." >&2;}
13850 { (exit 1); exit 1; }; }
13852 if test -z "${ATMODEM_TRUE}" && test -z "${ATMODEM_FALSE}"; then
13853 { { $as_echo "$as_me:$LINENO: error: conditional \"ATMODEM\" was never defined.
13854 Usually this means the macro was only invoked conditionally." >&5
13855 $as_echo "$as_me: error: conditional \"ATMODEM\" was never defined.
13856 Usually this means the macro was only invoked conditionally." >&2;}
13857 { (exit 1); exit 1; }; }
13859 if test -z "${CDMAMODEM_TRUE}" && test -z "${CDMAMODEM_FALSE}"; then
13860 { { $as_echo "$as_me:$LINENO: error: conditional \"CDMAMODEM\" was never defined.
13861 Usually this means the macro was only invoked conditionally." >&5
13862 $as_echo "$as_me: error: conditional \"CDMAMODEM\" was never defined.
13863 Usually this means the macro was only invoked conditionally." >&2;}
13864 { (exit 1); exit 1; }; }
13866 if test -z "${PHONESIM_TRUE}" && test -z "${PHONESIM_FALSE}"; then
13867 { { $as_echo "$as_me:$LINENO: error: conditional \"PHONESIM\" was never defined.
13868 Usually this means the macro was only invoked conditionally." >&5
13869 $as_echo "$as_me: error: conditional \"PHONESIM\" was never defined.
13870 Usually this means the macro was only invoked conditionally." >&2;}
13871 { (exit 1); exit 1; }; }
13873 if test -z "${ISIMODEM_TRUE}" && test -z "${ISIMODEM_FALSE}"; then
13874 { { $as_echo "$as_me:$LINENO: error: conditional \"ISIMODEM\" was never defined.
13875 Usually this means the macro was only invoked conditionally." >&5
13876 $as_echo "$as_me: error: conditional \"ISIMODEM\" was never defined.
13877 Usually this means the macro was only invoked conditionally." >&2;}
13878 { (exit 1); exit 1; }; }
13880 if test -z "${BLUETOOTH_TRUE}" && test -z "${BLUETOOTH_FALSE}"; then
13881 { { $as_echo "$as_me:$LINENO: error: conditional \"BLUETOOTH\" was never defined.
13882 Usually this means the macro was only invoked conditionally." >&5
13883 $as_echo "$as_me: error: conditional \"BLUETOOTH\" was never defined.
13884 Usually this means the macro was only invoked conditionally." >&2;}
13885 { (exit 1); exit 1; }; }
13887 if test -z "${PROVISION_TRUE}" && test -z "${PROVISION_FALSE}"; then
13888 { { $as_echo "$as_me:$LINENO: error: conditional \"PROVISION\" was never defined.
13889 Usually this means the macro was only invoked conditionally." >&5
13890 $as_echo "$as_me: error: conditional \"PROVISION\" was never defined.
13891 Usually this means the macro was only invoked conditionally." >&2;}
13892 { (exit 1); exit 1; }; }
13894 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13895 { { $as_echo "$as_me:$LINENO: error: conditional \"DATAFILES\" was never defined.
13896 Usually this means the macro was only invoked conditionally." >&5
13897 $as_echo "$as_me: error: conditional \"DATAFILES\" was never defined.
13898 Usually this means the macro was only invoked conditionally." >&2;}
13899 { (exit 1); exit 1; }; }
13902 : ${CONFIG_STATUS=./config.status}
13904 ac_clean_files_save=$ac_clean_files
13905 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13906 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13907 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13908 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13910 # Generated by $as_me.
13911 # Run this file to recreate the current configuration.
13912 # Compiler output produced by configure, useful for debugging
13913 # configure, is in config.log if it exists.
13916 ac_cs_recheck=false
13918 SHELL=\${CONFIG_SHELL-$SHELL}
13921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13922 ## --------------------- ##
13923 ## M4sh Initialization. ##
13924 ## --------------------- ##
13926 # Be more Bourne compatible
13927 DUALCASE=1; export DUALCASE # for MKS sh
13928 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13931 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13932 # is contrary to our usage. Disable this feature.
13933 alias -g '${1+"$@"}'='"$@"'
13934 setopt NO_GLOB_SUBST
13936 case `(set -o) 2>/dev/null` in
13937 *posix*) set -o posix ;;
13946 # Avoid depending upon Character Ranges.
13947 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13948 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13949 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13950 as_cr_digits='0123456789'
13951 as_cr_alnum=$as_cr_Letters$as_cr_digits
13956 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13957 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13958 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13959 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13960 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13961 as_echo='printf %s\n'
13962 as_echo_n='printf %s'
13964 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13965 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13966 as_echo_n='/usr/ucb/echo -n'
13968 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13969 as_echo_n_body='eval
13973 expr "X$arg" : "X\\(.*\\)$as_nl";
13974 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13976 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13978 export as_echo_n_body
13979 as_echo_n='sh -c $as_echo_n_body as_echo'
13981 export as_echo_body
13982 as_echo='sh -c $as_echo_body as_echo'
13985 # The user is always right.
13986 if test "${PATH_SEPARATOR+set}" != set; then
13988 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13989 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13994 # Support unset when possible.
13995 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14003 # We need space, tab and new line, in precisely that order. Quoting is
14004 # there to prevent editors from complaining about space-tab.
14005 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14006 # splitting by setting IFS to empty value.)
14009 # Find who we are. Look in the path if we contain no directory separator.
14011 *[\\/]* ) as_myself=$0 ;;
14012 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14016 test -z "$as_dir" && as_dir=.
14017 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14023 # We did not find ourselves, most probably we were run as `sh COMMAND'
14024 # in which case we are not to be found in the path.
14025 if test "x$as_myself" = x; then
14028 if test ! -f "$as_myself"; then
14029 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14030 { (exit 1); exit 1; }
14033 # Work around bugs in pre-3.0 UWIN ksh.
14034 for as_var in ENV MAIL MAILPATH
14035 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14047 # Required to use basename.
14048 if expr a : '\(a\)' >/dev/null 2>&1 &&
14049 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14055 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14056 as_basename=basename
14062 # Name of the executable.
14063 as_me=`$as_basename -- "$0" ||
14064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14065 X"$0" : 'X\(//\)$' \| \
14066 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14068 sed '/^.*\/\([^/][^/]*\)\/*$/{
14087 as_lineno_1=$LINENO
14088 as_lineno_2=$LINENO
14089 test "x$as_lineno_1" != "x$as_lineno_2" &&
14090 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14092 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14093 # uniformly replaced by the line number. The first 'sed' inserts a
14094 # line-number line after each line using $LINENO; the second 'sed'
14095 # does the real work. The second script uses 'N' to pair each
14096 # line-number line with the line containing $LINENO, and appends
14097 # trailing '-' during substitution so that $LINENO is not a special
14098 # case at line end.
14099 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14100 # scripts with optimization help from Paolo Bonzini. Blame Lee
14101 # E. McMahon (1931-1989) for sed's syntax. :-)
14113 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14116 ' >$as_me.lineno &&
14117 chmod +x "$as_me.lineno" ||
14118 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14119 { (exit 1); exit 1; }; }
14121 # Don't try to exec as it changes $[0], causing all sort of problems
14122 # (the dirname of $[0] is not the place where we might find the
14123 # original and so on. Autoconf is especially sensitive to this).
14124 . "./$as_me.lineno"
14125 # Exit status is that of the last command.
14130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14136 ECHO_C= ECHO_N= ECHO_T=
14137 case `echo -n x` in
14139 case `echo 'x\c'` in
14140 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14146 if expr a : '\(a\)' >/dev/null 2>&1 &&
14147 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14153 rm -f conf$$ conf$$.exe conf$$.file
14154 if test -d conf$$.dir; then
14155 rm -f conf$$.dir/conf$$.file
14158 mkdir conf$$.dir 2>/dev/null
14160 if (echo >conf$$.file) 2>/dev/null; then
14161 if ln -s conf$$.file conf$$ 2>/dev/null; then
14163 # ... but there are two gotchas:
14164 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14165 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14166 # In both cases, we have to default to `cp -p'.
14167 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14169 elif ln conf$$.file conf$$ 2>/dev/null; then
14177 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14178 rmdir conf$$.dir 2>/dev/null
14180 if mkdir -p . 2>/dev/null; then
14183 test -d ./-p && rmdir ./-p
14187 if test -x / >/dev/null 2>&1; then
14188 as_test_x='test -x'
14190 if ls -dL / >/dev/null 2>&1; then
14197 if test -d "$1"; then
14203 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14204 ???[sx]*):;;*)false;;esac;fi
14208 as_executable_p=$as_test_x
14210 # Sed expression to map a string onto a valid CPP name.
14211 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14213 # Sed expression to map a string onto a valid variable name.
14214 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14219 # Save the log message, to keep $[0] and so on meaningful, and to
14220 # report actual input values of CONFIG_FILES etc. instead of their
14221 # values after options handling.
14223 This file was extended by ofono $as_me 1.4, which was
14224 generated by GNU Autoconf 2.63. Invocation command line was
14226 CONFIG_FILES = $CONFIG_FILES
14227 CONFIG_HEADERS = $CONFIG_HEADERS
14228 CONFIG_LINKS = $CONFIG_LINKS
14229 CONFIG_COMMANDS = $CONFIG_COMMANDS
14232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14237 case $ac_config_files in *"
14238 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14241 case $ac_config_headers in *"
14242 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14247 # Files that config.status was made for.
14248 config_files="$ac_config_files"
14249 config_headers="$ac_config_headers"
14250 config_commands="$ac_config_commands"
14254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14256 \`$as_me' instantiates files from templates according to the
14257 current configuration.
14259 Usage: $0 [OPTION]... [FILE]...
14261 -h, --help print this help, then exit
14262 -V, --version print version number and configuration settings, then exit
14263 -q, --quiet, --silent
14264 do not print progress messages
14265 -d, --debug don't remove temporary files
14266 --recheck update $as_me by reconfiguring in the same conditions
14267 --file=FILE[:TEMPLATE]
14268 instantiate the configuration file FILE
14269 --header=FILE[:TEMPLATE]
14270 instantiate the configuration header FILE
14272 Configuration files:
14275 Configuration headers:
14278 Configuration commands:
14281 Report bugs to <bug-autoconf@gnu.org>."
14284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14286 ofono config.status 1.4
14287 configured by $0, generated by GNU Autoconf 2.63,
14288 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14290 Copyright (C) 2008 Free Software Foundation, Inc.
14291 This config.status script is free software; the Free Software Foundation
14292 gives unlimited permission to copy, distribute and modify it."
14299 test -n "\$AWK" || AWK=awk
14302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14303 # The default lists apply if the user does not specify any file.
14309 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14310 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14321 # Handling of the options.
14322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14324 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14325 $as_echo "$ac_cs_version"; exit ;;
14326 --debug | --debu | --deb | --de | --d | -d )
14328 --file | --fil | --fi | --f )
14331 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14333 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14334 ac_need_defaults=false;;
14335 --header | --heade | --head | --hea )
14338 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14340 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14341 ac_need_defaults=false;;
14343 # Conflict between --help and --header
14344 { $as_echo "$as_me: error: ambiguous option: $1
14345 Try \`$0 --help' for more information." >&2
14346 { (exit 1); exit 1; }; };;
14347 --help | --hel | -h )
14348 $as_echo "$ac_cs_usage"; exit ;;
14349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14350 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14353 # This is an error.
14354 -*) { $as_echo "$as_me: error: unrecognized option: $1
14355 Try \`$0 --help' for more information." >&2
14356 { (exit 1); exit 1; }; } ;;
14358 *) ac_config_targets="$ac_config_targets $1"
14359 ac_need_defaults=false ;;
14365 ac_configure_extra_args=
14367 if $ac_cs_silent; then
14369 ac_configure_extra_args="$ac_configure_extra_args --silent"
14373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14374 if \$ac_cs_recheck; then
14375 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14377 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14378 CONFIG_SHELL='$SHELL'
14379 export CONFIG_SHELL
14384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14389 ## Running $as_me. ##
14395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14399 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14402 # The HP-UX ksh and POSIX shell print the target directory to stdout
14403 # if CDPATH is set.
14404 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14406 sed_quote_subst='$sed_quote_subst'
14407 double_quote_subst='$double_quote_subst'
14408 delay_variable_subst='$delay_variable_subst'
14409 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14410 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14411 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14412 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14413 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14414 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14415 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14416 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14417 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14418 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14419 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14420 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14421 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14422 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14423 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14424 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14425 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14426 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14427 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14428 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14429 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14430 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14431 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14432 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14433 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14434 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14435 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14436 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14437 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14438 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14439 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14440 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14441 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14442 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14443 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14444 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14445 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14446 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14447 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14448 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14449 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14450 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14451 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14452 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14453 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14454 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14455 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14456 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14457 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14458 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14459 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14460 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14461 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14462 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14463 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14464 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14465 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14466 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14467 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14468 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14469 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14470 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14471 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14472 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14473 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14474 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14475 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14476 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14477 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14478 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14479 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14480 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14481 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14482 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14483 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14484 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14485 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14486 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14487 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14488 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14489 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14490 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14491 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14492 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14493 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14494 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14495 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14496 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14497 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14498 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14499 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14500 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14501 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14502 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14503 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14504 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14505 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14506 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14507 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14508 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14509 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14510 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14511 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14512 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14513 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14514 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14515 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14516 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14517 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14518 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14519 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14520 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14521 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14522 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14523 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14524 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14525 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14526 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14529 LTCFLAGS='$LTCFLAGS'
14530 compiler='$compiler_DEFAULT'
14532 # Quote evaled strings.
14544 deplibs_check_method \
14553 lt_cv_sys_global_symbol_pipe \
14554 lt_cv_sys_global_symbol_to_cdecl \
14555 lt_cv_sys_global_symbol_to_c_name_address \
14556 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14559 lt_prog_compiler_no_builtin_flag \
14560 lt_prog_compiler_wl \
14561 lt_prog_compiler_pic \
14562 lt_prog_compiler_static \
14563 lt_cv_prog_compiler_c_o \
14571 export_dynamic_flag_spec \
14572 whole_archive_flag_spec \
14573 compiler_needs_object \
14575 allow_undefined_flag \
14576 no_undefined_flag \
14577 hardcode_libdir_flag_spec \
14578 hardcode_libdir_flag_spec_ld \
14579 hardcode_libdir_separator \
14584 variables_saved_for_relink \
14586 library_names_spec \
14591 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14592 *[\\\\\\\`\\"\\\$]*)
14593 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14596 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14601 # Double-quote double-evaled strings.
14602 for var in reload_cmds \
14603 old_postinstall_cmds \
14604 old_postuninstall_cmds \
14606 extract_expsyms_cmds \
14607 old_archive_from_new_cmds \
14608 old_archive_from_expsyms_cmds \
14610 archive_expsym_cmds \
14612 module_expsym_cmds \
14613 export_symbols_cmds \
14616 postuninstall_cmds \
14618 sys_lib_search_path_spec \
14619 sys_lib_dlsearch_path_spec; do
14620 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14621 *[\\\\\\\`\\"\\\$]*)
14622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14630 # Fix-up fallback echo if it was mangled by the above quoting rules.
14632 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14636 ac_aux_dir='$ac_aux_dir'
14637 xsi_shell='$xsi_shell'
14638 lt_shell_append='$lt_shell_append'
14640 # See if we are running on zsh, and set the options which allow our
14641 # commands through without removal of \ escapes INIT.
14642 if test -n "\${ZSH_VERSION+set}" ; then
14643 setopt NO_GLOB_SUBST
14649 TIMESTAMP='$TIMESTAMP'
14658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14660 # Handling of arguments.
14661 for ac_config_target in $ac_config_targets
14663 case $ac_config_target in
14664 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14665 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14666 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14667 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14668 "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
14669 "src/ofono.service") CONFIG_FILES="$CONFIG_FILES src/ofono.service" ;;
14670 "ofono.pc") CONFIG_FILES="$CONFIG_FILES ofono.pc" ;;
14672 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14673 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14674 { (exit 1); exit 1; }; };;
14679 # If the user did not use the arguments to specify the items to instantiate,
14680 # then the envvar interface is used. Set only those that are not.
14681 # We use the long form for the default assignment because of an extremely
14682 # bizarre bug on SunOS 4.1.3.
14683 if $ac_need_defaults; then
14684 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14685 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14686 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14689 # Have a temporary directory for convenience. Make it in the build tree
14690 # simply because there is no reason against having it here, and in addition,
14691 # creating and moving files from /tmp can sometimes cause problems.
14692 # Hook for its removal unless debugging.
14693 # Note that there is a small window in which the directory will not be cleaned:
14694 # after its creation but before its name has been assigned to `$tmp'.
14698 trap 'exit_status=$?
14699 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14701 trap '{ (exit 1); exit 1; }' 1 2 13 15
14703 # Create a (secure) tmp directory for tmp files.
14706 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14707 test -n "$tmp" && test -d "$tmp"
14710 tmp=./conf$$-$RANDOM
14711 (umask 077 && mkdir "$tmp")
14714 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14715 { (exit 1); exit 1; }
14718 # Set up the scripts for CONFIG_FILES section.
14719 # No need to generate them if there are no CONFIG_FILES.
14720 # This happens for instance with `./config.status config.h'.
14721 if test -n "$CONFIG_FILES"; then
14725 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14726 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14729 ac_cs_awk_cr=$ac_cr
14732 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14737 echo "cat >conf$$subs.awk <<_ACEOF" &&
14738 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14740 } >conf$$subs.sh ||
14741 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14742 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14743 { (exit 1); exit 1; }; }
14744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14746 for ac_last_try in false false false false false :; do
14747 . ./conf$$subs.sh ||
14748 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14749 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14750 { (exit 1); exit 1; }; }
14752 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14753 if test $ac_delim_n = $ac_delim_num; then
14755 elif $ac_last_try; then
14756 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14757 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14758 { (exit 1); exit 1; }; }
14760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14763 rm -f conf$$subs.sh
14765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14766 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14770 s/^/S["/; s/!.*/"]=/
14780 s/\(.\{148\}\).*/\1/
14782 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14787 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14794 s/\(.\{148\}\).*/\1/
14796 s/["\\]/\\&/g; s/^/"/; s/$/"/
14800 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14805 ' <conf$$subs.awk | sed '
14810 ' >>$CONFIG_STATUS || ac_write_fail=1
14811 rm -f conf$$subs.awk
14812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14814 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14815 for (key in S) S_is_set[key] = 1
14821 nfields = split(line, field, "@")
14823 len = length(field[1])
14824 for (i = 2; i < nfields; i++) {
14826 keylen = length(key)
14827 if (S_is_set[key]) {
14829 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14830 len += length(value) + length(field[++i])
14841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14842 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14843 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14846 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14847 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14848 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14849 { (exit 1); exit 1; }; }
14852 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14853 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14854 # trailing colons and then remove the whole line if VPATH becomes empty
14855 # (actually we leave an empty line to preserve line numbers).
14856 if test "x$srcdir" = x.; then
14857 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14858 s/:*\$(srcdir):*/:/
14859 s/:*\${srcdir}:*/:/
14861 s/^\([^=]*=[ ]*\):*/\1/
14867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14868 fi # test -n "$CONFIG_FILES"
14870 # Set up the scripts for CONFIG_HEADERS section.
14871 # No need to generate them if there are no CONFIG_HEADERS.
14872 # This happens for instance with `./config.status Makefile'.
14873 if test -n "$CONFIG_HEADERS"; then
14874 cat >"$tmp/defines.awk" <<\_ACAWK ||
14878 # Transform confdefs.h into an awk script `defines.awk', embedded as
14879 # here-document in config.status, that substitutes the proper values into
14880 # config.h.in to produce config.h.
14882 # Create a delimiter string that does not exist in confdefs.h, to ease
14883 # handling of long lines.
14885 for ac_last_try in false false :; do
14886 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14887 if test -z "$ac_t"; then
14889 elif $ac_last_try; then
14890 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14891 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14892 { (exit 1); exit 1; }; }
14894 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14898 # For the awk script, D is an array of macro values keyed by name,
14899 # likewise P contains macro parameters if any. Preserve backslash
14900 # newline sequences.
14902 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14904 s/.\{148\}/&'"$ac_delim"'/g
14907 s/^[ ]*#[ ]*define[ ][ ]*/ /
14914 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14916 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14920 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14921 D["\1"]=" \3\\\\\\n"\\/p
14923 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14928 s/.\{148\}/&'"$ac_delim"'/g
14933 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14936 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14938 ' <confdefs.h | sed '
14939 s/'"$ac_delim"'/"\\\
14940 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943 for (key in D) D_is_set[key] = 1
14946 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14948 split(line, arg, " ")
14949 if (arg[1] == "#") {
14953 defundef = substr(arg[1], 2)
14956 split(mac1, mac2, "(") #)
14958 prefix = substr(line, 1, index(line, defundef) - 1)
14959 if (D_is_set[macro]) {
14960 # Preserve the white space surrounding the "#".
14961 print prefix "define", macro P[macro] D[macro]
14964 # Replace #undef with comments. This is necessary, for example,
14965 # in the case of _POSIX_SOURCE, which is predefined and required
14966 # on some systems where configure will not decide to define it.
14967 if (defundef == "undef") {
14968 print "/*", prefix defundef, macro, "*/"
14976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14977 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14978 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14979 { (exit 1); exit 1; }; }
14980 fi # test -n "$CONFIG_HEADERS"
14983 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14988 :[FHLC]) ac_mode=$ac_tag; continue;;
14990 case $ac_mode$ac_tag in
14992 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14993 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14994 { (exit 1); exit 1; }; };;
14995 :[FH]-) ac_tag=-:-;;
14996 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15013 -) ac_f="$tmp/stdin";;
15014 *) # Look for the file first in the build tree, then in the source tree
15015 # (if the path is not absolute). The absolute path cannot be DOS-style,
15016 # because $ac_f cannot contain `:'.
15020 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15022 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15023 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15024 { (exit 1); exit 1; }; };;
15026 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15027 ac_file_inputs="$ac_file_inputs '$ac_f'"
15030 # Let's still pretend it is `configure' which instantiates (i.e., don't
15031 # use $as_me), people would be surprised to read:
15032 # /* config.h. Generated by config.status. */
15033 configure_input='Generated from '`
15034 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15036 if test x"$ac_file" != x-; then
15037 configure_input="$ac_file. $configure_input"
15038 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15039 $as_echo "$as_me: creating $ac_file" >&6;}
15041 # Neutralize special characters interpreted by sed in replacement strings.
15042 case $configure_input in #(
15043 *\&* | *\|* | *\\* )
15044 ac_sed_conf_input=`$as_echo "$configure_input" |
15045 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15046 *) ac_sed_conf_input=$configure_input;;
15050 *:-:* | *:-) cat >"$tmp/stdin" \
15051 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15052 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15053 { (exit 1); exit 1; }; } ;;
15058 ac_dir=`$as_dirname -- "$ac_file" ||
15059 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15060 X"$ac_file" : 'X\(//\)[^/]' \| \
15061 X"$ac_file" : 'X\(//\)$' \| \
15062 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15063 $as_echo X"$ac_file" |
15064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15068 /^X\(\/\/\)[^/].*/{
15083 -*) as_dir=./$as_dir;;
15085 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15089 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15090 *) as_qdir=$as_dir;;
15092 as_dirs="'$as_qdir' $as_dirs"
15093 as_dir=`$as_dirname -- "$as_dir" ||
15094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15095 X"$as_dir" : 'X\(//\)[^/]' \| \
15096 X"$as_dir" : 'X\(//\)$' \| \
15097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15098 $as_echo X"$as_dir" |
15099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15103 /^X\(\/\/\)[^/].*/{
15116 test -d "$as_dir" && break
15118 test -z "$as_dirs" || eval "mkdir $as_dirs"
15119 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15120 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15121 { (exit 1); exit 1; }; }; }
15125 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15127 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15128 # A ".." for each directory in $ac_dir_suffix.
15129 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15130 case $ac_top_builddir_sub in
15131 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15132 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15135 ac_abs_top_builddir=$ac_pwd
15136 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15137 # for backward compatibility:
15138 ac_top_builddir=$ac_top_build_prefix
15141 .) # We are building in place.
15143 ac_top_srcdir=$ac_top_builddir_sub
15144 ac_abs_top_srcdir=$ac_pwd ;;
15145 [\\/]* | ?:[\\/]* ) # Absolute name.
15146 ac_srcdir=$srcdir$ac_dir_suffix;
15147 ac_top_srcdir=$srcdir
15148 ac_abs_top_srcdir=$srcdir ;;
15149 *) # Relative name.
15150 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15151 ac_top_srcdir=$ac_top_build_prefix$srcdir
15152 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15154 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15164 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15165 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15167 ac_MKDIR_P=$MKDIR_P
15169 [\\/$]* | ?:[\\/]* ) ;;
15170 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15175 # If the template does not know about datarootdir, expand it.
15176 # FIXME: This hack should be removed a few years after 2.60.
15177 ac_datarootdir_hack=; ac_datarootdir_seen=
15190 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15191 *datarootdir*) ac_datarootdir_seen=yes;;
15192 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15193 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15194 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15197 ac_datarootdir_hack='
15198 s&@datadir@&$datadir&g
15199 s&@docdir@&$docdir&g
15200 s&@infodir@&$infodir&g
15201 s&@localedir@&$localedir&g
15202 s&@mandir@&$mandir&g
15203 s&\\\${datarootdir}&$datarootdir&g' ;;
15207 # Neutralize VPATH when `$srcdir' = `.'.
15208 # Shell code in configure.ac might set extrasub.
15209 # FIXME: do we really want to maintain this feature?
15210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15211 ac_sed_extra="$ac_vpsub
15214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15217 s|@configure_input@|$ac_sed_conf_input|;t t
15218 s&@top_builddir@&$ac_top_builddir_sub&;t t
15219 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15220 s&@srcdir@&$ac_srcdir&;t t
15221 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15222 s&@top_srcdir@&$ac_top_srcdir&;t t
15223 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15224 s&@builddir@&$ac_builddir&;t t
15225 s&@abs_builddir@&$ac_abs_builddir&;t t
15226 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15227 s&@INSTALL@&$ac_INSTALL&;t t
15228 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15229 $ac_datarootdir_hack
15231 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15232 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15233 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15234 { (exit 1); exit 1; }; }
15236 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15237 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15238 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15239 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15240 which seems to be undefined. Please make sure it is defined." >&5
15241 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15242 which seems to be undefined. Please make sure it is defined." >&2;}
15246 -) cat "$tmp/out" && rm -f "$tmp/out";;
15247 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15249 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15250 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15251 { (exit 1); exit 1; }; }
15257 if test x"$ac_file" != x-; then
15259 $as_echo "/* $configure_input */" \
15260 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15261 } >"$tmp/config.h" \
15262 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15263 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15264 { (exit 1); exit 1; }; }
15265 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15266 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15267 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15270 mv "$tmp/config.h" "$ac_file" \
15271 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15272 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15273 { (exit 1); exit 1; }; }
15276 $as_echo "/* $configure_input */" \
15277 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15278 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15279 $as_echo "$as_me: error: could not create -" >&2;}
15280 { (exit 1); exit 1; }; }
15282 # Compute "$ac_file"'s index in $config_headers.
15285 for _am_header in $config_headers :; do
15286 case $_am_header in
15287 $_am_arg | $_am_arg:* )
15290 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15293 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15294 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15295 X"$_am_arg" : 'X\(//\)[^/]' \| \
15296 X"$_am_arg" : 'X\(//\)$' \| \
15297 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15298 $as_echo X"$_am_arg" |
15299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15303 /^X\(\/\/\)[^/].*/{
15315 s/.*/./; q'`/stamp-h$_am_stamp_count
15318 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15319 $as_echo "$as_me: executing $ac_file commands" >&6;}
15324 case $ac_file$ac_mode in
15325 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15326 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15327 # are listed without --file. Let's play safe and only enable the eval
15328 # if we detect the quoting.
15329 case $CONFIG_FILES in
15330 *\'*) eval set x "$CONFIG_FILES" ;;
15331 *) set x $CONFIG_FILES ;;
15336 # Strip MF so we end up with the name of the file.
15337 mf=`echo "$mf" | sed -e 's/:.*$//'`
15338 # Check whether this is an Automake generated Makefile or not.
15339 # We used to match only the files named `Makefile.in', but
15340 # some people rename them; so instead we look at the file content.
15341 # Grep'ing the first line is not enough: some people post-process
15342 # each Makefile.in and add a new line on top of each file to say so.
15343 # Grep'ing the whole file is not good either: AIX grep has a line
15344 # limit of 2048, but all sed's we know have understand at least 4000.
15345 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15346 dirpart=`$as_dirname -- "$mf" ||
15347 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15348 X"$mf" : 'X\(//\)[^/]' \| \
15349 X"$mf" : 'X\(//\)$' \| \
15350 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15356 /^X\(\/\/\)[^/].*/{
15372 # Extract the definition of DEPDIR, am__include, and am__quote
15373 # from the Makefile without running `make'.
15374 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15375 test -z "$DEPDIR" && continue
15376 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15377 test -z "am__include" && continue
15378 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15379 # When using ansi2knr, U may be empty or an underscore; expand it
15380 U=`sed -n 's/^U = //p' < "$mf"`
15381 # Find all dependency output files, they are included files with
15382 # $(DEPDIR) in their names. We invoke sed twice because it is the
15383 # simplest approach to changing $(DEPDIR) to its actual value in the
15385 for file in `sed -n "
15386 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15387 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15388 # Make sure the directory exists.
15389 test -f "$dirpart/$file" && continue
15390 fdir=`$as_dirname -- "$file" ||
15391 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15392 X"$file" : 'X\(//\)[^/]' \| \
15393 X"$file" : 'X\(//\)$' \| \
15394 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15395 $as_echo X"$file" |
15396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15400 /^X\(\/\/\)[^/].*/{
15413 { as_dir=$dirpart/$fdir
15415 -*) as_dir=./$as_dir;;
15417 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15421 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15422 *) as_qdir=$as_dir;;
15424 as_dirs="'$as_qdir' $as_dirs"
15425 as_dir=`$as_dirname -- "$as_dir" ||
15426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15427 X"$as_dir" : 'X\(//\)[^/]' \| \
15428 X"$as_dir" : 'X\(//\)$' \| \
15429 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15430 $as_echo X"$as_dir" |
15431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15435 /^X\(\/\/\)[^/].*/{
15448 test -d "$as_dir" && break
15450 test -z "$as_dirs" || eval "mkdir $as_dirs"
15451 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15452 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15453 { (exit 1); exit 1; }; }; }
15454 # echo "creating $dirpart/$file"
15455 echo '# dummy' > "$dirpart/$file"
15462 # See if we are running on zsh, and set the options which allow our
15463 # commands through without removal of \ escapes.
15464 if test -n "${ZSH_VERSION+set}" ; then
15465 setopt NO_GLOB_SUBST
15468 cfgfile="${ofile}T"
15469 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15472 cat <<_LT_EOF >> "$cfgfile"
15475 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15476 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15477 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15478 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15480 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15481 # 2006, 2007, 2008 Free Software Foundation, Inc.
15482 # Written by Gordon Matzigkeit, 1996
15484 # This file is part of GNU Libtool.
15486 # GNU Libtool is free software; you can redistribute it and/or
15487 # modify it under the terms of the GNU General Public License as
15488 # published by the Free Software Foundation; either version 2 of
15489 # the License, or (at your option) any later version.
15491 # As a special exception to the GNU General Public License,
15492 # if you distribute this file as part of a program or library that
15493 # is built using GNU Libtool, you may include this file under the
15494 # same distribution terms that you use for the rest of that program.
15496 # GNU Libtool is distributed in the hope that it will be useful,
15497 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15498 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15499 # GNU General Public License for more details.
15501 # You should have received a copy of the GNU General Public License
15502 # along with GNU Libtool; see the file COPYING. If not, a copy
15503 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15504 # obtained by writing to the Free Software Foundation, Inc.,
15505 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15508 # The names of the tagged configurations supported by this script.
15511 # ### BEGIN LIBTOOL CONFIG
15513 # Whether or not to build static libraries.
15514 build_old_libs=$enable_static
15516 # Which release of libtool.m4 was used?
15517 macro_version=$macro_version
15518 macro_revision=$macro_revision
15520 # Whether or not to build shared libraries.
15521 build_libtool_libs=$enable_shared
15523 # What type of objects to build.
15526 # Whether or not to optimize for fast installation.
15527 fast_install=$enable_fast_install
15530 host_alias=$host_alias
15534 # The build system.
15535 build_alias=$build_alias
15539 # A sed program that does not truncate output.
15542 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15543 Xsed="\$SED -e 1s/^X//"
15545 # A grep program that handles long lines.
15551 # A literal string matcher.
15554 # A BSD- or MS-compatible name lister.
15557 # Whether we need soft or hard links.
15560 # What is the maximum length of a command?
15561 max_cmd_len=$max_cmd_len
15563 # Object file suffix (normally "o").
15566 # Executable file suffix (normally "").
15569 # whether the shell understands "unset".
15572 # turn spaces into newlines.
15575 # turn newlines into spaces.
15578 # How to create reloadable object files.
15579 reload_flag=$lt_reload_flag
15580 reload_cmds=$lt_reload_cmds
15582 # An object symbol dumper.
15583 OBJDUMP=$lt_OBJDUMP
15585 # Method to check whether dependent libraries are shared objects.
15586 deplibs_check_method=$lt_deplibs_check_method
15588 # Command to use when deplibs_check_method == "file_magic".
15589 file_magic_cmd=$lt_file_magic_cmd
15593 AR_FLAGS=$lt_AR_FLAGS
15595 # A symbol stripping program.
15598 # Commands used to install an old-style archive.
15600 old_postinstall_cmds=$lt_old_postinstall_cmds
15601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15606 # LTCC compiler flags.
15607 LTCFLAGS=$lt_CFLAGS
15609 # Take the output of nm and produce a listing of raw symbols and C names.
15610 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15612 # Transform the output of nm in a proper C declaration.
15613 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15615 # Transform the output of nm in a C name address pair.
15616 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15618 # Transform the output of nm in a C name address pair when lib prefix is needed.
15619 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15621 # The name of the directory that contains temporary libtool files.
15624 # Shell to use when invoking shell scripts.
15627 # An echo program that does not interpret backslashes.
15630 # Used to examine libraries when file_magic_cmd begins with "file".
15631 MAGIC_CMD=$MAGIC_CMD
15633 # Must we lock files when doing compilation?
15634 need_locks=$lt_need_locks
15636 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15637 DSYMUTIL=$lt_DSYMUTIL
15639 # Tool to change global to local symbols on Mac OS X.
15642 # Tool to manipulate fat objects and archives on Mac OS X.
15645 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15648 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15649 OTOOL64=$lt_OTOOL64
15651 # Old archive suffix (normally "a").
15654 # Shared library suffix (normally ".so").
15655 shrext_cmds=$lt_shrext_cmds
15657 # The commands to extract the exported symbol list from a shared archive.
15658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15660 # Variables whose values should be saved in libtool wrapper scripts and
15661 # restored at link time.
15662 variables_saved_for_relink=$lt_variables_saved_for_relink
15664 # Do we need the "lib" prefix for modules?
15665 need_lib_prefix=$need_lib_prefix
15667 # Do we need a version for libraries?
15668 need_version=$need_version
15670 # Library versioning type.
15671 version_type=$version_type
15673 # Shared library runtime path variable.
15674 runpath_var=$runpath_var
15676 # Shared library path variable.
15677 shlibpath_var=$shlibpath_var
15679 # Is shlibpath searched before the hard-coded library search path?
15680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15682 # Format of library name prefix.
15683 libname_spec=$lt_libname_spec
15685 # List of archive names. First name is the real one, the rest are links.
15686 # The last name is the one that the linker finds with -lNAME
15687 library_names_spec=$lt_library_names_spec
15689 # The coded name of the library, if different from the real name.
15690 soname_spec=$lt_soname_spec
15692 # Command to use after installation of a shared archive.
15693 postinstall_cmds=$lt_postinstall_cmds
15695 # Command to use after uninstallation of a shared archive.
15696 postuninstall_cmds=$lt_postuninstall_cmds
15698 # Commands used to finish a libtool library installation in a directory.
15699 finish_cmds=$lt_finish_cmds
15701 # As "finish_cmds", except a single script fragment to be evaled but
15703 finish_eval=$lt_finish_eval
15705 # Whether we should hardcode library paths into libraries.
15706 hardcode_into_libs=$hardcode_into_libs
15708 # Compile-time system search path for libraries.
15709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15711 # Run-time system search path for libraries.
15712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15714 # Whether dlopen is supported.
15715 dlopen_support=$enable_dlopen
15717 # Whether dlopen of programs is supported.
15718 dlopen_self=$enable_dlopen_self
15720 # Whether dlopen of statically linked programs is supported.
15721 dlopen_self_static=$enable_dlopen_self_static
15723 # Commands to strip libraries.
15724 old_striplib=$lt_old_striplib
15725 striplib=$lt_striplib
15728 # The linker used to build libraries.
15731 # Commands used to build an old-style archive.
15732 old_archive_cmds=$lt_old_archive_cmds
15734 # A language specific compiler.
15737 # Is the compiler the GNU compiler?
15740 # Compiler flag to turn off builtin functions.
15741 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15743 # How to pass a linker flag through the compiler.
15744 wl=$lt_lt_prog_compiler_wl
15746 # Additional compiler flags for building library objects.
15747 pic_flag=$lt_lt_prog_compiler_pic
15749 # Compiler flag to prevent dynamic linking.
15750 link_static_flag=$lt_lt_prog_compiler_static
15752 # Does compiler simultaneously support -c and -o options?
15753 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15755 # Whether or not to add -lc for building shared libraries.
15756 build_libtool_need_lc=$archive_cmds_need_lc
15758 # Whether or not to disallow shared libs when runtime libs are static.
15759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15761 # Compiler flag to allow reflexive dlopens.
15762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15764 # Compiler flag to generate shared objects directly from archives.
15765 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15767 # Whether the compiler copes with passing no objects directly.
15768 compiler_needs_object=$lt_compiler_needs_object
15770 # Create an old-style archive from a shared archive.
15771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15773 # Create a temporary old-style archive to link instead of a shared archive.
15774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15776 # Commands used to build a shared archive.
15777 archive_cmds=$lt_archive_cmds
15778 archive_expsym_cmds=$lt_archive_expsym_cmds
15780 # Commands used to build a loadable module if different from building
15781 # a shared archive.
15782 module_cmds=$lt_module_cmds
15783 module_expsym_cmds=$lt_module_expsym_cmds
15785 # Whether we are building with GNU ld or not.
15786 with_gnu_ld=$lt_with_gnu_ld
15788 # Flag that allows shared libraries with undefined symbols to be built.
15789 allow_undefined_flag=$lt_allow_undefined_flag
15791 # Flag that enforces no undefined symbols.
15792 no_undefined_flag=$lt_no_undefined_flag
15794 # Flag to hardcode \$libdir into a binary during linking.
15795 # This must work even if \$libdir does not exist
15796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15798 # If ld is used when linking, flag to hardcode \$libdir into a binary
15799 # during linking. This must work even if \$libdir does not exist.
15800 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15802 # Whether we need a single "-rpath" flag with a separated argument.
15803 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15805 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15806 # DIR into the resulting binary.
15807 hardcode_direct=$hardcode_direct
15809 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15810 # DIR into the resulting binary and the resulting library dependency is
15811 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15812 # library is relocated.
15813 hardcode_direct_absolute=$hardcode_direct_absolute
15815 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15816 # into the resulting binary.
15817 hardcode_minus_L=$hardcode_minus_L
15819 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15820 # into the resulting binary.
15821 hardcode_shlibpath_var=$hardcode_shlibpath_var
15823 # Set to "yes" if building a shared library automatically hardcodes DIR
15824 # into the library and all subsequent libraries and executables linked
15826 hardcode_automatic=$hardcode_automatic
15828 # Set to yes if linker adds runtime paths of dependent libraries
15829 # to runtime path list.
15830 inherit_rpath=$inherit_rpath
15832 # Whether libtool must link a program against all its dependency libraries.
15833 link_all_deplibs=$link_all_deplibs
15835 # Fix the shell variable \$srcfile for the compiler.
15836 fix_srcfile_path=$lt_fix_srcfile_path
15838 # Set to "yes" if exported symbols are required.
15839 always_export_symbols=$always_export_symbols
15841 # The commands to list exported symbols.
15842 export_symbols_cmds=$lt_export_symbols_cmds
15844 # Symbols that should not be listed in the preloaded symbols.
15845 exclude_expsyms=$lt_exclude_expsyms
15847 # Symbols that must always be exported.
15848 include_expsyms=$lt_include_expsyms
15850 # Commands necessary for linking programs (against libraries) with templates.
15851 prelink_cmds=$lt_prelink_cmds
15853 # Specify filename containing input files.
15854 file_list_spec=$lt_file_list_spec
15856 # How to hardcode a shared library path into an executable.
15857 hardcode_action=$hardcode_action
15859 # ### END LIBTOOL CONFIG
15865 cat <<\_LT_EOF >> "$cfgfile"
15866 # AIX sometimes has problems with the GCC collect2 program. For some
15867 # reason, if we set the COLLECT_NAMES environment variable, the problems
15868 # vanish in a puff of smoke.
15869 if test "X${COLLECT_NAMES+set}" != Xset; then
15871 export COLLECT_NAMES
15878 ltmain="$ac_aux_dir/ltmain.sh"
15881 # We use sed instead of cat because bash on DJGPP gets confused if
15882 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15883 # text mode, it properly converts lines to CR/LF. This bash problem
15884 # is reportedly fixed, but why not run on old versions too?
15885 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15886 || (rm -f "$cfgfile"; exit 1)
15890 cat << \_LT_EOF >> "$cfgfile"
15892 # func_dirname file append nondir_replacement
15893 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15894 # otherwise set result to NONDIR_REPLACEMENT.
15898 */*) func_dirname_result="${1%/*}${2}" ;;
15899 * ) func_dirname_result="${3}" ;;
15903 # func_basename file
15906 func_basename_result="${1##*/}"
15909 # func_dirname_and_basename file append nondir_replacement
15910 # perform func_basename and func_dirname in a single function
15912 # dirname: Compute the dirname of FILE. If nonempty,
15913 # add APPEND to the result, otherwise set result
15914 # to NONDIR_REPLACEMENT.
15915 # value returned in "$func_dirname_result"
15916 # basename: Compute filename of FILE.
15917 # value retuned in "$func_basename_result"
15918 # Implementation must be kept synchronized with func_dirname
15919 # and func_basename. For efficiency, we do not delegate to
15920 # those functions but instead duplicate the functionality here.
15921 func_dirname_and_basename ()
15924 */*) func_dirname_result="${1%/*}${2}" ;;
15925 * ) func_dirname_result="${3}" ;;
15927 func_basename_result="${1##*/}"
15930 # func_stripname prefix suffix name
15931 # strip PREFIX and SUFFIX off of NAME.
15932 # PREFIX and SUFFIX must not contain globbing or regex special
15933 # characters, hashes, percent signs, but SUFFIX may contain a leading
15934 # dot (in which case that matches only a dot).
15937 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15938 # positional parameters, so assign one to ordinary parameter first.
15939 func_stripname_result=${3}
15940 func_stripname_result=${func_stripname_result#"${1}"}
15941 func_stripname_result=${func_stripname_result%"${2}"}
15947 func_opt_split_opt=${1%%=*}
15948 func_opt_split_arg=${1#*=}
15955 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15956 *) func_lo2o_result=${1} ;;
15960 # func_xform libobj-or-source
15963 func_xform_result=${1%.*}.lo
15966 # func_arith arithmetic-term...
15969 func_arith_result=$(( $* ))
15973 # STRING may not start with a hyphen.
15976 func_len_result=${#1}
15981 *) # Bourne compatible functions.
15982 cat << \_LT_EOF >> "$cfgfile"
15984 # func_dirname file append nondir_replacement
15985 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15986 # otherwise set result to NONDIR_REPLACEMENT.
15989 # Extract subdirectory from the argument.
15990 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15991 if test "X$func_dirname_result" = "X${1}"; then
15992 func_dirname_result="${3}"
15994 func_dirname_result="$func_dirname_result${2}"
15998 # func_basename file
16001 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16005 # func_stripname prefix suffix name
16006 # strip PREFIX and SUFFIX off of NAME.
16007 # PREFIX and SUFFIX must not contain globbing or regex special
16008 # characters, hashes, percent signs, but SUFFIX may contain a leading
16009 # dot (in which case that matches only a dot).
16010 # func_strip_suffix prefix name
16014 .*) func_stripname_result=`$ECHO "X${3}" \
16015 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16016 *) func_stripname_result=`$ECHO "X${3}" \
16017 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16022 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16023 my_sed_long_arg='1s/^-[^=]*=//'
16028 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16029 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16035 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16038 # func_xform libobj-or-source
16041 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16044 # func_arith arithmetic-term...
16047 func_arith_result=`expr "$@"`
16051 # STRING may not start with a hyphen.
16054 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16060 case $lt_shell_append in
16062 cat << \_LT_EOF >> "$cfgfile"
16064 # func_append var value
16065 # Append VALUE to the end of shell variable VAR.
16073 cat << \_LT_EOF >> "$cfgfile"
16075 # func_append var value
16076 # Append VALUE to the end of shell variable VAR.
16087 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16088 || (rm -f "$cfgfile"; exit 1)
16090 mv -f "$cfgfile" "$ofile" ||
16091 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16100 { (exit 0); exit 0; }
16102 chmod +x $CONFIG_STATUS
16103 ac_clean_files=$ac_clean_files_save
16105 test $ac_write_fail = 0 ||
16106 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16107 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16108 { (exit 1); exit 1; }; }
16111 # configure is writing to config.log, and then calls config.status.
16112 # config.status does its own redirection, appending to config.log.
16113 # Unfortunately, on DOS this fails, as config.log is still kept open
16114 # by configure, so config.status won't be able to write to it; its
16115 # output is simply discarded. So we exec the FD to /dev/null,
16116 # effectively closing config.log, so it can be properly (re)opened and
16117 # appended to by config.status. When coming back to configure, we
16118 # need to make the FD available again.
16119 if test "$no_create" != yes; then
16121 ac_config_status_args=
16122 test "$silent" = yes &&
16123 ac_config_status_args="$ac_config_status_args --quiet"
16125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16128 # would make configure fail if this is the last instruction.
16129 $ac_cs_success || { (exit 1); exit 1; }
16131 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16132 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16133 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}