2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gupnp 0.19.1.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 # Use only awk features that work with 7th edition Unix awk (1978).
572 # My, what an old awk you have, Mr. Solaris!
574 while (length(v1) && length(v2)) {
575 # Set d1 to be the next thing to compare from v1, and likewise for d2.
576 # Normally this is a single character, but if v1 and v2 contain digits,
577 # compare them as integers and fractions as strverscmp does.
578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579 # Split v1 and v2 into their leading digit string components d1 and d2,
580 # and advance v1 and v2 past the leading digit strings.
581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
587 # Compare two fractions.
588 while (d1 ~ /^0/ && d2 ~ /^0/) {
589 d1 = substr(d1, 2); len1--
590 d2 = substr(d2, 2); len2--
592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593 # The two components differ in length, and the common prefix
594 # contains only leading zeros. Consider the longer to be less.
598 # Otherwise, compare as strings.
603 # A fraction is less than an integer.
608 # An integer is greater than a fraction.
611 # Compare two integers.
617 # The normal case, without worrying about digits.
618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625 # which mishandles some comparisons of empty strings to integers.
626 if (length(v2)) exit 1
627 if (length(v1)) exit 2
631 test -n "$DJDIR" || exec 7<&0 </dev/null
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
642 ac_default_prefix=/usr/local
644 ac_config_libobj_dir=.
651 # Identity of this package.
653 PACKAGE_TARNAME='gupnp'
654 PACKAGE_VERSION='0.19.1'
655 PACKAGE_STRING='gupnp 0.19.1'
656 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp'
657 PACKAGE_URL='http://www.gupnp.org/'
659 ac_unique_file="libgupnp/gupnp.h"
661 # Factoring default headers for most tests.
662 ac_includes_default="\
664 #ifdef HAVE_SYS_TYPES_H
665 # include <sys/types.h>
667 #ifdef HAVE_SYS_STAT_H
668 # include <sys/stat.h>
674 # ifdef HAVE_STDLIB_H
679 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
684 #ifdef HAVE_STRINGS_H
685 # include <strings.h>
687 #ifdef HAVE_INTTYPES_H
688 # include <inttypes.h>
697 ac_subst_vars='am__EXEEXT_FALSE
701 GTK_DOC_USE_REBASE_FALSE
702 GTK_DOC_USE_REBASE_TRUE
703 GTK_DOC_USE_LIBTOOL_FALSE
704 GTK_DOC_USE_LIBTOOL_TRUE
705 GTK_DOC_BUILD_PDF_FALSE
706 GTK_DOC_BUILD_PDF_TRUE
707 GTK_DOC_BUILD_HTML_FALSE
708 GTK_DOC_BUILD_HTML_TRUE
720 HAVE_INTROSPECTION_FALSE
721 HAVE_INTROSPECTION_TRUE
722 INTROSPECTION_MAKEFILE
725 INTROSPECTION_TYPELIBDIR
727 INTROSPECTION_GENERATE
728 INTROSPECTION_COMPILER
729 INTROSPECTION_SCANNER
740 USE_NETWORK_MANAGER_FALSE
741 USE_NETWORK_MANAGER_TRUE
800 MAINTAINER_MODE_FALSE
810 INSTALL_STRIP_PROGRAM
864 program_transform_name
877 enable_option_checking
878 enable_maintainer_mode
880 enable_dependency_tracking
897 ac_precious_vars='build_alias
923 # Initialize some variables set by options.
925 ac_init_version=false
926 ac_unrecognized_opts=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
937 program_transform_name=s,x,x,
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962 infodir='${datarootdir}/info'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
977 eval $ac_prev=\$ac_option
983 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988 # Accept the important Cygnus configure options, so we can diagnose typos.
990 case $ac_dashdash$ac_option in
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1014 -datadir | --datadir | --datadi | --datad)
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1026 -disable-* | --disable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1035 "enable_$ac_useropt"
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1040 eval enable_$ac_useropt=no ;;
1042 -docdir | --docdir | --docdi | --doc | --do)
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1052 -enable-* | --enable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1066 eval enable_$ac_useropt=\$ac_optarg ;;
1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070 | --exec | --exe | --ex)
1071 ac_prev=exec_prefix ;;
1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074 | --exec=* | --exe=* | --ex=*)
1075 exec_prefix=$ac_optarg ;;
1077 -gas | --gas | --ga | --g)
1078 # Obsolete; use --with-gas.
1081 -help | --help | --hel | --he | -h)
1082 ac_init_help=long ;;
1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084 ac_init_help=recursive ;;
1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086 ac_init_help=short ;;
1088 -host | --host | --hos | --ho)
1089 ac_prev=host_alias ;;
1090 -host=* | --host=* | --hos=* | --ho=*)
1091 host_alias=$ac_optarg ;;
1093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 htmldir=$ac_optarg ;;
1099 -includedir | --includedir | --includedi | --included | --include \
1100 | --includ | --inclu | --incl | --inc)
1101 ac_prev=includedir ;;
1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103 | --includ=* | --inclu=* | --incl=* | --inc=*)
1104 includedir=$ac_optarg ;;
1106 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109 infodir=$ac_optarg ;;
1111 -libdir | --libdir | --libdi | --libd)
1113 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114 libdir=$ac_optarg ;;
1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117 | --libexe | --libex | --libe)
1118 ac_prev=libexecdir ;;
1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120 | --libexe=* | --libex=* | --libe=*)
1121 libexecdir=$ac_optarg ;;
1123 -localedir | --localedir | --localedi | --localed | --locale)
1124 ac_prev=localedir ;;
1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126 localedir=$ac_optarg ;;
1128 -localstatedir | --localstatedir | --localstatedi | --localstated \
1129 | --localstate | --localstat | --localsta | --localst | --locals)
1130 ac_prev=localstatedir ;;
1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133 localstatedir=$ac_optarg ;;
1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138 mandir=$ac_optarg ;;
1140 -nfp | --nfp | --nf)
1141 # Obsolete; use --without-fp.
1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145 | --no-cr | --no-c | -n)
1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154 | --oldin | --oldi | --old | --ol | --o)
1155 ac_prev=oldincludedir ;;
1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159 oldincludedir=$ac_optarg ;;
1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164 prefix=$ac_optarg ;;
1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167 | --program-pre | --program-pr | --program-p)
1168 ac_prev=program_prefix ;;
1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171 program_prefix=$ac_optarg ;;
1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174 | --program-suf | --program-su | --program-s)
1175 ac_prev=program_suffix ;;
1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178 program_suffix=$ac_optarg ;;
1180 -program-transform-name | --program-transform-name \
1181 | --program-transform-nam | --program-transform-na \
1182 | --program-transform-n | --program-transform- \
1183 | --program-transform | --program-transfor \
1184 | --program-transfo | --program-transf \
1185 | --program-trans | --program-tran \
1186 | --progr-tra | --program-tr | --program-t)
1187 ac_prev=program_transform_name ;;
1188 -program-transform-name=* | --program-transform-name=* \
1189 | --program-transform-nam=* | --program-transform-na=* \
1190 | --program-transform-n=* | --program-transform-=* \
1191 | --program-transform=* | --program-transfor=* \
1192 | --program-transfo=* | --program-transf=* \
1193 | --program-trans=* | --program-tran=* \
1194 | --progr-tra=* | --program-tr=* | --program-t=*)
1195 program_transform_name=$ac_optarg ;;
1197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200 pdfdir=$ac_optarg ;;
1202 -psdir | --psdir | --psdi | --psd | --ps)
1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208 | -silent | --silent | --silen | --sile | --sil)
1211 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215 sbindir=$ac_optarg ;;
1217 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1218 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1219 | --sharedst | --shareds | --shared | --share | --shar \
1221 ac_prev=sharedstatedir ;;
1222 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1223 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1224 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226 sharedstatedir=$ac_optarg ;;
1228 -site | --site | --sit)
1230 -site=* | --site=* | --sit=*)
1233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1236 srcdir=$ac_optarg ;;
1238 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1239 | --syscon | --sysco | --sysc | --sys | --sy)
1240 ac_prev=sysconfdir ;;
1241 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1242 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1243 sysconfdir=$ac_optarg ;;
1245 -target | --target | --targe | --targ | --tar | --ta | --t)
1246 ac_prev=target_alias ;;
1247 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1248 target_alias=$ac_optarg ;;
1250 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253 -version | --version | --versio | --versi | --vers | -V)
1254 ac_init_version=: ;;
1257 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error $? "invalid package name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1270 eval with_$ac_useropt=\$ac_optarg ;;
1272 -without-* | --without-*)
1273 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error $? "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1286 eval with_$ac_useropt=no ;;
1289 # Obsolete; use --with-x.
1292 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293 | --x-incl | --x-inc | --x-in | --x-i)
1294 ac_prev=x_includes ;;
1295 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297 x_includes=$ac_optarg ;;
1299 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301 ac_prev=x_libraries ;;
1302 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304 x_libraries=$ac_optarg ;;
1306 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1307 Try \`$0 --help' for more information"
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 case $ac_envvar in #(
1314 '' | [0-9]* | *[!_$as_cr_alnum]* )
1315 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1317 eval $ac_envvar=\$ac_optarg
1318 export $ac_envvar ;;
1321 # FIXME: should be removed in autoconf 3.0.
1322 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1331 if test -n "$ac_prev"; then
1332 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333 as_fn_error $? "missing argument to $ac_option"
1336 if test -n "$ac_unrecognized_opts"; then
1337 case $enable_option_checking in
1339 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1340 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1344 # Check all directory arguments for consistency.
1345 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1350 eval ac_val=\$$ac_var
1351 # Remove trailing slashes.
1354 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1355 eval $ac_var=\$ac_val;;
1357 # Be sure to have absolute directory names.
1359 [\\/$]* | ?:[\\/]* ) continue;;
1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1370 target=$target_alias
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x; then
1374 if test "x$build_alias" = x; then
1375 cross_compiling=maybe
1376 elif test "x$build_alias" != "x$host_alias"; then
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384 test "$silent" = yes && exec 6>/dev/null
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 as_fn_error $? "working directory cannot be determined"
1391 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 as_fn_error $? "pwd does not report name of working directory"
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$as_myself" ||
1400 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$as_myself" : 'X\(//\)[^/]' \| \
1402 X"$as_myself" : 'X\(//\)$' \| \
1403 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404 $as_echo X"$as_myself" |
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1427 ac_srcdir_defaulted=no
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1461 \`configure' configures gupnp 0.19.1 to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking ...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/gupnp]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1519 --program-prefix=PREFIX prepend PREFIX to installed program names
1520 --program-suffix=SUFFIX append SUFFIX to installed program names
1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1530 if test -n "$ac_init_help"; then
1531 case $ac_init_help in
1532 short | recursive ) echo "Configuration of gupnp 0.19.1:";;
1537 --disable-option-checking ignore unrecognized --enable/--with options
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --disable-maintainer-mode disable make rules and dependencies not useful
1541 (and sometimes confusing) to the casual installer
1542 --enable-silent-rules less verbose build output (undo: `make V=1')
1543 --disable-silent-rules verbose build output (undo: `make V=0')
1544 --disable-dependency-tracking speeds up one-time build
1545 --enable-dependency-tracking do not reject slow dependency extractors
1546 --disable-largefile omit support for large files
1547 --enable-shared[=PKGS] build shared libraries [default=yes]
1548 --enable-static[=PKGS] build static libraries [default=yes]
1549 --enable-fast-install[=PKGS]
1550 optimize for fast installation [default=yes]
1551 --disable-libtool-lock avoid locking (might break parallel builds)
1552 --enable-debug enable debugging
1553 --enable-introspection=[no/auto/yes]
1554 Enable introspection for this build
1555 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1556 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1557 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 --with-sysroot=DIR Search for dependent libraries within DIR
1566 (or the compiler's sysroot if not specified).
1567 --with-context-manager=[network-manager/connman/unix/linux]
1568 Context Manager backend to use
1569 --with-html-dir=PATH path to installed docs
1571 Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
1576 LIBS libraries to pass to the linker, e.g. -l<library>
1577 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
1580 PKG_CONFIG path to pkg-config utility
1582 directories to add to pkg-config's search path
1584 path overriding pkg-config's built-in search path
1586 C compiler flags for GTest, overriding pkg-config
1587 GTest_LIBS linker flags for GTest, overriding pkg-config
1589 C compiler flags for LIBGUPNP, overriding pkg-config
1591 linker flags for LIBGUPNP, overriding pkg-config
1593 C compiler flags for GTHREAD, overriding pkg-config
1595 linker flags for GTHREAD, overriding pkg-config
1596 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1597 GIO_LIBS linker flags for GIO, overriding pkg-config
1599 C compiler flags for CONNMAN, overriding pkg-config
1601 linker flags for CONNMAN, overriding pkg-config
1603 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1605 linker flags for GTKDOC_DEPS, overriding pkg-config
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1610 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
1611 gupnp home page: <http://www.gupnp.org/>.
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1641 .) # We are building in place.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1674 gupnp configure 0.19.1
1675 generated by GNU Autoconf 2.69
1677 Copyright (C) 2012 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_compile
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1743 if ac_fn_c_try_compile "$LINENO"; then :
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 } # ac_fn_c_check_header_compile
1757 # ac_fn_c_try_cpp LINENO
1758 # ----------------------
1759 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_cpp conftest.$ac_ext"
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } > conftest.i && {
1779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1794 # ac_fn_c_try_run LINENO
1795 # ----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1797 # that executables *can* be run.
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_link"
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>&5
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1812 { { case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_try") 2>&5
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; }; }; then :
1824 $as_echo "$as_me: program exited with status $ac_status" >&5
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 ac_retval=$ac_status
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1836 # ac_fn_c_try_link LINENO
1837 # -----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded.
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext conftest$ac_exeext
1843 if { { ac_try="$ac_link"
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>conftest.err
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest$ac_exeext && {
1862 test "$cross_compiling" = yes ||
1863 test -x conftest$ac_exeext
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874 # interfere with the next link command; also delete a directory that is
1875 # left behind by Apple's compiler. We do this before executing the actions.
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1880 } # ac_fn_c_try_link
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1905 # include <limits.h>
1907 # include <assert.h>
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1934 if ac_fn_c_try_link "$LINENO"; then :
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 } # ac_fn_c_check_func
1948 cat >config.log <<_ACEOF
1949 This file contains any messages produced by compilers while
1950 running configure, to aid debugging if configure makes a mistake.
1952 It was created by gupnp $as_me 0.19.1, which was
1953 generated by GNU Autoconf 2.69. Invocation command line was
1965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1972 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1974 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1975 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1977 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1978 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1979 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1980 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 $as_echo "PATH: $as_dir"
2005 # Keep a trace of the command line.
2006 # Strip out --no-create and --no-recursion so they do not pile up.
2007 # Strip out --silent because we don't want to record it for future runs.
2008 # Also quote any args containing shell meta-characters.
2009 # Make two passes to allow for proper duplicate-argument suppression.
2013 ac_must_keep_next=false
2019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021 | -silent | --silent | --silen | --sile | --sil)
2024 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2027 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2029 as_fn_append ac_configure_args1 " '$ac_arg'"
2030 if test $ac_must_keep_next = true; then
2031 ac_must_keep_next=false # Got value, back to normal.
2034 *=* | --config-cache | -C | -disable-* | --disable-* \
2035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037 | -with-* | --with-* | -without-* | --without-* | --x)
2038 case "$ac_configure_args0 " in
2039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2042 -* ) ac_must_keep_next=true ;;
2045 as_fn_append ac_configure_args " '$ac_arg'"
2050 { ac_configure_args0=; unset ac_configure_args0;}
2051 { ac_configure_args1=; unset ac_configure_args1;}
2053 # When interrupted or exit'd, cleanup temporary files, and complete
2054 # config.log. We remove comments because anyway the quotes in there
2055 # would cause problems or look ugly.
2056 # WARNING: Use '\'' to represent an apostrophe within the trap.
2057 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2058 trap 'exit_status=$?
2059 # Save into config.log some information that might help in debugging.
2063 $as_echo "## ---------------- ##
2064 ## Cache variables. ##
2065 ## ---------------- ##"
2067 # The following way of writing the cache mishandles newlines in values,
2069 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2070 eval ac_val=\$$ac_var
2074 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2075 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2078 _ | IFS | as_nl) ;; #(
2079 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2080 *) { eval $ac_var=; unset $ac_var;} ;;
2085 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2086 *${as_nl}ac_space=\ *)
2088 "s/'\''/'\''\\\\'\'''\''/g;
2089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2099 $as_echo "## ----------------- ##
2100 ## Output variables. ##
2101 ## ----------------- ##"
2103 for ac_var in $ac_subst_vars
2105 eval ac_val=\$$ac_var
2107 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109 $as_echo "$ac_var='\''$ac_val'\''"
2113 if test -n "$ac_subst_files"; then
2114 $as_echo "## ------------------- ##
2115 ## File substitutions. ##
2116 ## ------------------- ##"
2118 for ac_var in $ac_subst_files
2120 eval ac_val=\$$ac_var
2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 $as_echo "$ac_var='\''$ac_val'\''"
2129 if test -s confdefs.h; then
2130 $as_echo "## ----------- ##
2137 test "$ac_signal" != 0 &&
2138 $as_echo "$as_me: caught signal $ac_signal"
2139 $as_echo "$as_me: exit $exit_status"
2141 rm -f core *.core core.conftest.* &&
2142 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2145 for ac_signal in 1 2 13 15; do
2146 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2151 rm -f -r conftest* confdefs.h
2153 $as_echo "/* confdefs.h */" > confdefs.h
2155 # Predefined preprocessor variables.
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_NAME "$PACKAGE_NAME"
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_STRING "$PACKAGE_STRING"
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_URL "$PACKAGE_URL"
2182 # Let the site file select an alternate cache file if it wants to.
2183 # Prefer an explicitly selected file to automatically selected ones.
2186 if test -n "$CONFIG_SITE"; then
2187 # We do not want a PATH search for config.site.
2188 case $CONFIG_SITE in #((
2189 -*) ac_site_file1=./$CONFIG_SITE;;
2190 */*) ac_site_file1=$CONFIG_SITE;;
2191 *) ac_site_file1=./$CONFIG_SITE;;
2193 elif test "x$prefix" != xNONE; then
2194 ac_site_file1=$prefix/share/config.site
2195 ac_site_file2=$prefix/etc/config.site
2197 ac_site_file1=$ac_default_prefix/share/config.site
2198 ac_site_file2=$ac_default_prefix/etc/config.site
2200 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2202 test "x$ac_site_file" = xNONE && continue
2203 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2205 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2206 sed 's/^/| /' "$ac_site_file" >&5
2208 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 as_fn_error $? "failed to load site script $ac_site_file
2211 See \`config.log' for more details" "$LINENO" 5; }
2215 if test -r "$cache_file"; then
2216 # Some versions of bash will fail to source /dev/null (special files
2217 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2218 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220 $as_echo "$as_me: loading cache $cache_file" >&6;}
2222 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2223 *) . "./$cache_file";;
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228 $as_echo "$as_me: creating cache $cache_file" >&6;}
2232 as_fn_append ac_header_list " stdlib.h"
2233 as_fn_append ac_header_list " unistd.h"
2234 as_fn_append ac_header_list " sys/param.h"
2235 # Check that the precious variables saved in the cache have kept the same
2237 ac_cache_corrupted=false
2238 for ac_var in $ac_precious_vars; do
2239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2240 eval ac_new_set=\$ac_env_${ac_var}_set
2241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2242 eval ac_new_val=\$ac_env_${ac_var}_value
2243 case $ac_old_set,$ac_new_set in
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2247 ac_cache_corrupted=: ;;
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2254 if test "x$ac_old_val" != "x$ac_new_val"; then
2255 # differences in whitespace do not lead to failure.
2256 ac_old_val_w=`echo x $ac_old_val`
2257 ac_new_val_w=`echo x $ac_new_val`
2258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2261 ac_cache_corrupted=:
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2265 eval $ac_var=\$ac_old_val
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2268 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2270 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2273 # Pass precious variables to config.status.
2274 if test "$ac_new_set" = set; then
2276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 *) ac_arg=$ac_var=$ac_new_val ;;
2279 case " $ac_configure_args " in
2280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2285 if $ac_cache_corrupted; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2290 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2292 ## -------------------- ##
2293 ## Main body of script. ##
2294 ## -------------------- ##
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304 ac_config_headers="$ac_config_headers config.h"
2309 for ac_dir in build-aux "$srcdir"/build-aux; do
2310 if test -f "$ac_dir/install-sh"; then
2312 ac_install_sh="$ac_aux_dir/install-sh -c"
2314 elif test -f "$ac_dir/install.sh"; then
2316 ac_install_sh="$ac_aux_dir/install.sh -c"
2318 elif test -f "$ac_dir/shtool"; then
2320 ac_install_sh="$ac_aux_dir/shtool install -c"
2324 if test -z "$ac_aux_dir"; then
2325 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2328 # These three variables are undocumented and unsupported,
2329 # and are intended to be withdrawn in a future Autoconf release.
2330 # They can cause serious problems if a builder's source tree is in a directory
2331 # whose full name contains unusual characters.
2332 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2333 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2334 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2338 # Make sure we can run config.sub.
2339 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2340 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2343 $as_echo_n "checking build system type... " >&6; }
2344 if ${ac_cv_build+:} false; then :
2345 $as_echo_n "(cached) " >&6
2347 ac_build_alias=$build_alias
2348 test "x$ac_build_alias" = x &&
2349 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2350 test "x$ac_build_alias" = x &&
2351 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2352 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2353 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2357 $as_echo "$ac_cv_build" >&6; }
2358 case $ac_cv_build in
2360 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2363 ac_save_IFS=$IFS; IFS='-'
2369 # Remember, the first character of IFS is used to create $*,
2370 # except with old shells:
2373 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2377 $as_echo_n "checking host system type... " >&6; }
2378 if ${ac_cv_host+:} false; then :
2379 $as_echo_n "(cached) " >&6
2381 if test "x$host_alias" = x; then
2382 ac_cv_host=$ac_cv_build
2384 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2385 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2390 $as_echo "$ac_cv_host" >&6; }
2393 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2396 ac_save_IFS=$IFS; IFS='-'
2402 # Remember, the first character of IFS is used to create $*,
2403 # except with old shells:
2406 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2410 $as_echo_n "checking target system type... " >&6; }
2411 if ${ac_cv_target+:} false; then :
2412 $as_echo_n "(cached) " >&6
2414 if test "x$target_alias" = x; then
2415 ac_cv_target=$ac_cv_host
2417 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2423 $as_echo "$ac_cv_target" >&6; }
2424 case $ac_cv_target in
2426 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2428 target=$ac_cv_target
2429 ac_save_IFS=$IFS; IFS='-'
2435 # Remember, the first character of IFS is used to create $*,
2436 # except with old shells:
2439 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2442 # The aliases save the names the user supplied, while $host etc.
2443 # will get canonicalized.
2444 test -n "$target_alias" &&
2445 test "$program_prefix$program_suffix$program_transform_name" = \
2447 program_prefix=${target_alias}-
2449 am__api_version='1.11'
2451 # Find a good install program. We prefer a C program (faster),
2452 # so one script is as good as another. But avoid the broken or
2453 # incompatible versions:
2454 # SysV /etc/install, /usr/sbin/install
2455 # SunOS /usr/etc/install
2456 # IRIX /sbin/install
2458 # AmigaOS /C/install, which installs bootblocks on floppy discs
2459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2462 # OS/2's system install, which has a completely different semantic
2463 # ./install, which can be erroneously created by make from ./install.sh.
2464 # Reject install programs that cannot install multiple files.
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2466 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2467 if test -z "$INSTALL"; then
2468 if ${ac_cv_path_install+:} false; then :
2469 $as_echo_n "(cached) " >&6
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 # Account for people who put trailing slashes in PATH elements.
2477 case $as_dir/ in #((
2478 ./ | .// | /[cC]/* | \
2479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2480 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2483 # OSF1 and SCO ODT 3.0 have their own names for install.
2484 # Don't use installbsd from OSF since it installs stuff as root
2486 for ac_prog in ginstall scoinst install; do
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2489 if test $ac_prog = install &&
2490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491 # AIX install. It has an incompatible calling convention.
2493 elif test $ac_prog = install &&
2494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2495 # program-specific install script used by HP pwplus--don't use.
2498 rm -rf conftest.one conftest.two conftest.dir
2499 echo one > conftest.one
2500 echo two > conftest.two
2502 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2503 test -s conftest.one && test -s conftest.two &&
2504 test -s conftest.dir/conftest.one &&
2505 test -s conftest.dir/conftest.two
2507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2520 rm -rf conftest.one conftest.two conftest.dir
2523 if test "${ac_cv_path_install+set}" = set; then
2524 INSTALL=$ac_cv_path_install
2526 # As a last resort, use the slow shell script. Don't cache a
2527 # value for INSTALL within a source directory, because that will
2528 # break other packages using the cache if that directory is
2529 # removed, or if the value is a relative name.
2530 INSTALL=$ac_install_sh
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2534 $as_echo "$INSTALL" >&6; }
2536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2537 # It thinks the first close brace ends the variable substitution.
2538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2545 $as_echo_n "checking whether build environment is sane... " >&6; }
2548 echo timestamp > conftest.file
2549 # Reject unsafe characters in $srcdir or the absolute working directory
2550 # name. Accept space and tab only in the latter.
2554 *[\\\"\#\$\&\'\`$am_lf]*)
2555 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2558 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2559 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2562 # Do `set' in a subshell so we don't clobber the current shell's
2563 # arguments. Must try -L first in case configure is actually a
2564 # symlink; some systems play weird games with the mod time of symlinks
2565 # (eg FreeBSD returns the mod time of the symlink's containing
2568 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2569 if test "$*" = "X"; then
2571 set X `ls -t "$srcdir/configure" conftest.file`
2574 if test "$*" != "X $srcdir/configure conftest.file" \
2575 && test "$*" != "X conftest.file $srcdir/configure"; then
2577 # If neither matched, then we have a broken ls. This can happen
2578 # if, for instance, CONFIG_SHELL is bash and it inherits a
2579 # broken ls alias from the environment. This has actually
2580 # happened. Such a system could not be considered "sane".
2581 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2582 alias in your environment" "$LINENO" 5
2585 test "$2" = conftest.file
2591 as_fn_error $? "newly created file is older than distributed files!
2592 Check your system clock" "$LINENO" 5
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2595 $as_echo "yes" >&6; }
2596 test "$program_prefix" != NONE &&
2597 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2598 # Use a double $ so make ignores it.
2599 test "$program_suffix" != NONE &&
2600 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2601 # Double any \ or $.
2602 # By default was `s,x,x', remove it if useless.
2603 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2604 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2606 # expand $ac_aux_dir to an absolute path
2607 am_aux_dir=`cd $ac_aux_dir && pwd`
2609 if test x"${MISSING+set}" != xset; then
2612 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2614 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2617 # Use eval to expand $SHELL
2618 if eval "$MISSING --run true"; then
2619 am_missing_run="$MISSING --run "
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2623 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2626 if test x"${install_sh}" != xset; then
2629 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2631 install_sh="\${SHELL} $am_aux_dir/install-sh"
2635 # Installed binaries are usually stripped using `strip' when the user
2636 # run `make install-strip'. However `strip' might not be the right
2637 # tool to use in cross-compilation environments, therefore Automake
2638 # will honor the `STRIP' environment variable to overrule this program.
2639 if test "$cross_compiling" != no; then
2640 if test -n "$ac_tool_prefix"; then
2641 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2642 set dummy ${ac_tool_prefix}strip; ac_word=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if ${ac_cv_prog_STRIP+:} false; then :
2646 $as_echo_n "(cached) " >&6
2648 if test -n "$STRIP"; then
2649 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 STRIP=$ac_cv_prog_STRIP
2669 if test -n "$STRIP"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2671 $as_echo "$STRIP" >&6; }
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2679 if test -z "$ac_cv_prog_STRIP"; then
2681 # Extract the first word of "strip", so it can be a program name with args.
2682 set dummy strip; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2686 $as_echo_n "(cached) " >&6
2688 if test -n "$ac_ct_STRIP"; then
2689 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698 ac_cv_prog_ac_ct_STRIP="strip"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2709 if test -n "$ac_ct_STRIP"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2711 $as_echo "$ac_ct_STRIP" >&6; }
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2717 if test "x$ac_ct_STRIP" = x; then
2720 case $cross_compiling:$ac_tool_warned in
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2724 ac_tool_warned=yes ;;
2729 STRIP="$ac_cv_prog_STRIP"
2733 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2736 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2737 if test -z "$MKDIR_P"; then
2738 if ${ac_cv_path_mkdir+:} false; then :
2739 $as_echo_n "(cached) " >&6
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2745 test -z "$as_dir" && as_dir=.
2746 for ac_prog in mkdir gmkdir; do
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2749 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2750 'mkdir (GNU coreutils) '* | \
2751 'mkdir (coreutils) '* | \
2752 'mkdir (fileutils) '4.1*)
2753 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2763 test -d ./--version && rmdir ./--version
2764 if test "${ac_cv_path_mkdir+set}" = set; then
2765 MKDIR_P="$ac_cv_path_mkdir -p"
2767 # As a last resort, use the slow shell script. Don't cache a
2768 # value for MKDIR_P within a source directory, because that will
2769 # break other packages using the cache if that directory is
2770 # removed, or if the value is a relative name.
2771 MKDIR_P="$ac_install_sh -d"
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2775 $as_echo "$MKDIR_P" >&6; }
2779 [\\/$]* | ?:[\\/]*) ;;
2780 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2783 for ac_prog in gawk mawk nawk awk
2785 # Extract the first word of "$ac_prog", so it can be a program name with args.
2786 set dummy $ac_prog; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if ${ac_cv_prog_AWK+:} false; then :
2790 $as_echo_n "(cached) " >&6
2792 if test -n "$AWK"; then
2793 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_AWK="$ac_prog"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 if test -n "$AWK"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2815 $as_echo "$AWK" >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2822 test -n "$AWK" && break
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2826 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2828 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2829 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2830 $as_echo_n "(cached) " >&6
2832 cat >conftest.make <<\_ACEOF
2835 @echo '@@@%%%=$(MAKE)=@@@%%%'
2837 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2838 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2840 eval ac_cv_prog_make_${ac_make}_set=yes;;
2842 eval ac_cv_prog_make_${ac_make}_set=no;;
2846 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2848 $as_echo "yes" >&6; }
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2853 SET_MAKE="MAKE=${MAKE-make}"
2856 rm -rf .tst 2>/dev/null
2857 mkdir .tst 2>/dev/null
2858 if test -d .tst; then
2863 rmdir .tst 2>/dev/null
2865 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2866 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2867 # is not polluted with repeated "-I."
2868 am__isrc=' -I$(srcdir)'
2869 # test to see if srcdir already configured
2870 if test -f $srcdir/config.status; then
2871 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2875 # test whether we have cygpath
2876 if test -z "$CYGPATH_W"; then
2877 if (cygpath --version) >/dev/null 2>/dev/null; then
2878 CYGPATH_W='cygpath -w'
2885 # Define the identity of the package.
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE "$PACKAGE"
2895 cat >>confdefs.h <<_ACEOF
2896 #define VERSION "$VERSION"
2899 # Some tools Automake needs.
2901 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2904 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2907 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2910 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2913 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2915 # We need awk for the "check" target. The system "awk" is bad on
2917 # Always define AMTAR for backward compatibility. Yes, it's still used
2918 # in the wild :-( We should find a proper way to deprecate it ...
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2923 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2924 # Loop over all known methods to create a tar archive until one works.
2925 _am_tools='gnutar plaintar pax cpio none'
2926 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2927 # Do not fold the above two line into one, because Tru64 sh and
2928 # Solaris sh will not grok spaces in the rhs of `-'.
2929 for _am_tool in $_am_tools
2933 for _am_tar in tar gnutar gtar;
2935 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2936 ($_am_tar --version) >&5 2>&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && break
2941 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2942 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2943 am__untar="$_am_tar -xf -"
2946 # Must skip GNU tar: if it does not support --format= it doesn't create
2947 # ustar tarball either.
2948 (tar --version) >/dev/null 2>&1 && continue
2949 am__tar='tar chf - "$$tardir"'
2950 am__tar_='tar chf - "$tardir"'
2951 am__untar='tar xf -'
2954 am__tar='pax -L -x ustar -w "$$tardir"'
2955 am__tar_='pax -L -x ustar -w "$tardir"'
2959 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2960 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2961 am__untar='cpio -i -H ustar -d'
2970 # If the value was cached, stop now. We just wanted to have am__tar
2971 # and am__untar set.
2972 test -n "${am_cv_prog_tar_ustar}" && break
2974 # tar/untar a dummy directory, and stop if the command works
2977 echo GrepMe > conftest.dir/file
2978 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2979 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }
2984 if test -s conftest.tar; then
2985 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2986 ($am__untar <conftest.tar) >&5 2>&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }
2990 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2995 if ${am_cv_prog_tar_ustar+:} false; then :
2996 $as_echo_n "(cached) " >&6
2998 am_cv_prog_tar_ustar=$_am_tool
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3002 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3010 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3011 # Check whether --enable-maintainer-mode was given.
3012 if test "${enable_maintainer_mode+set}" = set; then :
3013 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3015 USE_MAINTAINER_MODE=yes
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3019 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3020 if test $USE_MAINTAINER_MODE = yes; then
3021 MAINTAINER_MODE_TRUE=
3022 MAINTAINER_MODE_FALSE='#'
3024 MAINTAINER_MODE_TRUE='#'
3025 MAINTAINER_MODE_FALSE=
3028 MAINT=$MAINTAINER_MODE_TRUE
3032 # Check whether --enable-silent-rules was given.
3033 if test "${enable_silent_rules+set}" = set; then :
3034 enableval=$enable_silent_rules;
3037 case $enable_silent_rules in
3038 yes) AM_DEFAULT_VERBOSITY=0;;
3039 no) AM_DEFAULT_VERBOSITY=1;;
3040 *) AM_DEFAULT_VERBOSITY=0;;
3042 am_make=${MAKE-make}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3044 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3045 if ${am_cv_make_support_nested_variables+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 if $as_echo 'TRUE=$(BAR$(V))
3054 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3055 am_cv_make_support_nested_variables=yes
3057 am_cv_make_support_nested_variables=no
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3061 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3062 if test $am_cv_make_support_nested_variables = yes; then
3064 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3066 AM_V=$AM_DEFAULT_VERBOSITY
3067 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3072 # Check for programs
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078 if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3080 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_CC+:} false; then :
3084 $as_echo_n "(cached) " >&6
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3117 if test -z "$ac_cv_prog_CC"; then
3119 # Extract the first word of "gcc", so it can be a program name with args.
3120 set dummy gcc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3126 if test -n "$ac_ct_CC"; then
3127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_CC="gcc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3147 if test -n "$ac_ct_CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3149 $as_echo "$ac_ct_CC" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3155 if test "x$ac_ct_CC" = x; then
3158 case $cross_compiling:$ac_tool_warned in
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3162 ac_tool_warned=yes ;;
3170 if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}cc; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_CC+:} false; then :
3177 $as_echo_n "(cached) " >&6
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_CC="${ac_tool_prefix}cc"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3211 if test -z "$CC"; then
3212 # Extract the first word of "cc", so it can be a program name with args.
3213 set dummy cc; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3231 ac_prog_rejected=yes
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 if test $ac_prog_rejected = yes; then
3243 # We found a bogon in the path, so make sure we never use it.
3244 set dummy $ac_cv_prog_CC
3246 if test $# != 0; then
3247 # We chose a different compiler from the bogus one.
3248 # However, it has the same basename, so the bogon will be chosen
3249 # first if we set CC to just the basename; use the full file name.
3251 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3257 if test -n "$CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3267 if test -z "$CC"; then
3268 if test -n "$ac_tool_prefix"; then
3269 for ac_prog in cl.exe
3271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3308 test -n "$CC" && break
3311 if test -z "$CC"; then
3313 for ac_prog in cl.exe
3315 # Extract the first word of "$ac_prog", so it can be a program name with args.
3316 set dummy $ac_prog; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3320 $as_echo_n "(cached) " >&6
3322 if test -n "$ac_ct_CC"; then
3323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_CC="$ac_prog"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3343 if test -n "$ac_ct_CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3345 $as_echo "$ac_ct_CC" >&6; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3352 test -n "$ac_ct_CC" && break
3355 if test "x$ac_ct_CC" = x; then
3358 case $cross_compiling:$ac_tool_warned in
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3362 ac_tool_warned=yes ;;
3371 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "no acceptable C compiler found in \$PATH
3374 See \`config.log' for more details" "$LINENO" 5; }
3376 # Provide some information about the compiler.
3377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380 for ac_option in --version -v -V -qversion; do
3381 { { ac_try="$ac_compiler $ac_option >&5"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3390 if test -s conftest.err; then
3392 ... rest of stderr output deleted ...
3393 10q' conftest.err >conftest.er1
3394 cat conftest.er1 >&5
3396 rm -f conftest.er1 conftest.err
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3412 ac_clean_files_save=$ac_clean_files
3413 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3414 # Try to create an executable without -o first, disregard a.out.
3415 # It will help us diagnose broken compilers, and finding out an intuition
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3418 $as_echo_n "checking whether the C compiler works... " >&6; }
3419 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3421 # The possible output files:
3422 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3425 for ac_file in $ac_files
3428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3429 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3434 if { { ac_try="$ac_link_default"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441 (eval "$ac_link_default") 2>&5
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; then :
3445 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3446 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3447 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3448 # so that the user can short-circuit this test for compilers unknown to
3450 for ac_file in $ac_files ''
3452 test -f "$ac_file" || continue
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3457 # We found the default executable, but exeext='' is most
3461 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3463 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465 # We set ac_cv_exeext here because the later test for it is not
3466 # safe: cross compilers may not add the suffix if given an `-o'
3467 # argument, so we may need to know it at that point already.
3468 # Even if this section looks crufty: it has the advantage of
3475 test "$ac_cv_exeext" = no && ac_cv_exeext=
3480 if test -z "$ac_file"; then :
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 $as_echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error 77 "C compiler cannot create executables
3489 See \`config.log' for more details" "$LINENO" 5; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492 $as_echo "yes" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3495 $as_echo_n "checking for C compiler default output file name... " >&6; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3497 $as_echo "$ac_file" >&6; }
3498 ac_exeext=$ac_cv_exeext
3500 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3501 ac_clean_files=$ac_clean_files_save
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3503 $as_echo_n "checking for suffix of executables... " >&6; }
3504 if { { ac_try="$ac_link"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link") 2>&5
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3516 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3517 # work properly (i.e., refer to `conftest.exe'), while it won't with
3519 for ac_file in conftest.exe conftest conftest.*; do
3520 test -f "$ac_file" || continue
3522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3523 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3532 See \`config.log' for more details" "$LINENO" 5; }
3534 rm -f conftest conftest$ac_cv_exeext
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3536 $as_echo "$ac_cv_exeext" >&6; }
3538 rm -f conftest.$ac_ext
3539 EXEEXT=$ac_cv_exeext
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3547 FILE *f = fopen ("conftest.out", "w");
3548 return ferror (f) || fclose (f) != 0;
3554 ac_clean_files="$ac_clean_files conftest.out"
3555 # Check that the compiler produces executables we can run. If not, either
3556 # the compiler is broken, or we cross compile.
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3558 $as_echo_n "checking whether we are cross compiling... " >&6; }
3559 if test "$cross_compiling" != yes; then
3560 { { ac_try="$ac_link"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567 (eval "$ac_link") 2>&5
3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570 test $ac_status = 0; }
3571 if { ac_try='./conftest$ac_cv_exeext'
3572 { { case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_try") 2>&5
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; }; then
3584 if test "$cross_compiling" = maybe; then
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot run C compiled programs.
3590 If you meant to cross compile, use \`--host'.
3591 See \`config.log' for more details" "$LINENO" 5; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3596 $as_echo "$cross_compiling" >&6; }
3598 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3599 ac_clean_files=$ac_clean_files_save
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3601 $as_echo_n "checking for suffix of object files... " >&6; }
3602 if ${ac_cv_objext+:} false; then :
3603 $as_echo_n "(cached) " >&6
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3616 rm -f conftest.o conftest.obj
3617 if { { ac_try="$ac_compile"
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_compile") 2>&5
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }; then :
3628 for ac_file in conftest.o conftest.obj conftest.*; do
3629 test -f "$ac_file" || continue;
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error $? "cannot compute suffix of object files: cannot compile
3643 See \`config.log' for more details" "$LINENO" 5; }
3645 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3648 $as_echo "$ac_cv_objext" >&6; }
3649 OBJEXT=$ac_cv_objext
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3652 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3653 if ${ac_cv_c_compiler_gnu+:} false; then :
3654 $as_echo_n "(cached) " >&6
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3670 if ac_fn_c_try_compile "$LINENO"; then :
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3680 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3681 if test $ac_compiler_gnu = yes; then
3686 ac_test_CFLAGS=${CFLAGS+set}
3687 ac_save_CFLAGS=$CFLAGS
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3689 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3690 if ${ac_cv_prog_cc_g+:} false; then :
3691 $as_echo_n "(cached) " >&6
3693 ac_save_c_werror_flag=$ac_c_werror_flag
3694 ac_c_werror_flag=yes
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3708 if ac_fn_c_try_compile "$LINENO"; then :
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3723 if ac_fn_c_try_compile "$LINENO"; then :
3726 ac_c_werror_flag=$ac_save_c_werror_flag
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3739 if ac_fn_c_try_compile "$LINENO"; then :
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 ac_c_werror_flag=$ac_save_c_werror_flag
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3750 $as_echo "$ac_cv_prog_cc_g" >&6; }
3751 if test "$ac_test_CFLAGS" = set; then
3752 CFLAGS=$ac_save_CFLAGS
3753 elif test $ac_cv_prog_cc_g = yes; then
3754 if test "$GCC" = yes; then
3760 if test "$GCC" = yes; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3767 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3768 if ${ac_cv_prog_cc_c89+:} false; then :
3769 $as_echo_n "(cached) " >&6
3771 ac_cv_prog_cc_c89=no
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3779 struct buf { int x; };
3780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3781 static char *e (p, i)
3787 static char *f (char * (*g) (char **, int), char **p, ...)
3792 s = g (p, va_arg (v,int));
3797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3798 function prototypes and stuff, but not '\xHH' hex character constants.
3799 These don't provoke an error unfortunately, instead are silently treated
3800 as 'x'. The following induces an error, until -std is added to get
3801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3802 array size at least. It's necessary to write '\x00'==0 to get something
3803 that's true only with -std. */
3804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3807 inside strings and character constants. */
3809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3811 int test (int i, double x);
3812 struct s1 {int (*f) (int a);};
3813 struct s2 {int (*f) (double a);};
3814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3828 CC="$ac_save_CC $ac_arg"
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_c89=$ac_arg
3832 rm -f core conftest.err conftest.$ac_objext
3833 test "x$ac_cv_prog_cc_c89" != "xno" && break
3835 rm -f conftest.$ac_ext
3840 case "x$ac_cv_prog_cc_c89" in
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3843 $as_echo "none needed" >&6; } ;;
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3846 $as_echo "unsupported" >&6; } ;;
3848 CC="$CC $ac_cv_prog_cc_c89"
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3852 if test "x$ac_cv_prog_cc_c89" != xno; then :
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861 DEPDIR="${am__leading_dot}deps"
3863 ac_config_commands="$ac_config_commands depfiles"
3866 am_make=${MAKE-make}
3867 cat > confinc << 'END'
3869 @echo this is the am__doit target
3872 # If we don't find an include directive, just comment out the code.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3874 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3878 # First try GNU make style include.
3879 echo "include confinc" > confmf
3880 # Ignore all kinds of additional output from `make'.
3881 case `$am_make -s -f confmf 2> /dev/null` in #(
3882 *the\ am__doit\ target*)
3888 # Now try BSD make style include.
3889 if test "$am__include" = "#"; then
3890 echo '.include "confinc"' > confmf
3891 case `$am_make -s -f confmf 2> /dev/null` in #(
3892 *the\ am__doit\ target*)
3893 am__include=.include
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3902 $as_echo "$_am_result" >&6; }
3903 rm -f confinc confmf
3905 # Check whether --enable-dependency-tracking was given.
3906 if test "${enable_dependency_tracking+set}" = set; then :
3907 enableval=$enable_dependency_tracking;
3910 if test "x$enable_dependency_tracking" != xno; then
3911 am_depcomp="$ac_aux_dir/depcomp"
3915 if test "x$enable_dependency_tracking" != xno; then
3925 depcc="$CC" am_compiler_list=
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3928 $as_echo_n "checking dependency style of $depcc... " >&6; }
3929 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3930 $as_echo_n "(cached) " >&6
3932 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3933 # We make a subdir and do the tests there. Otherwise we can end up
3934 # making bogus files that we don't know about and never remove. For
3935 # instance it was reported that on HP-UX the gcc test will end up
3936 # making a dummy file named `D' -- because `-MD' means `put the output
3940 # Copy depcomp to subdir because otherwise we won't find it if we're
3941 # using a relative directory.
3942 cp "$am_depcomp" conftest.dir
3944 # We will build objects and dependencies in a subdirectory because
3945 # it helps to detect inapplicable dependency modes. For instance
3946 # both Tru64's cc and ICC support -MD to output dependencies as a
3947 # side effect of compilation, but ICC will put the dependencies in
3948 # the current directory while Tru64 will put them in the object
3952 am_cv_CC_dependencies_compiler_type=none
3953 if test "$am_compiler_list" = ""; then
3954 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3957 case " $depcc " in #(
3958 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3961 for depmode in $am_compiler_list; do
3962 # Setup a source with many dependencies, because some compilers
3963 # like to wrap large dependency lists on column 80 (with \), and
3964 # we should not choose a depcomp mode which is confused by this.
3966 # We need to recreate these files for each test, as the compiler may
3967 # overwrite some of them when testing with obscure command lines.
3968 # This happens at least with the AIX C compiler.
3970 for i in 1 2 3 4 5 6; do
3971 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3972 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3973 # Solaris 8's {/usr,}/bin/sh.
3974 touch sub/conftst$i.h
3976 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3978 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3979 # mode. It turns out that the SunPro C++ compiler does not properly
3980 # handle `-M -o', and we need to detect this. Also, some Intel
3981 # versions had trouble with output in subdirs
3982 am__obj=sub/conftest.${OBJEXT-o}
3983 am__minus_obj="-o $am__obj"
3986 # This depmode causes a compiler race in universal mode.
3987 test "$am__universal" = false || continue
3990 # after this tag, mechanisms are not by side-effect, so they'll
3991 # only be used when explicitly requested
3992 if test "x$enable_dependency_tracking" = xyes; then
3998 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3999 # This compiler won't grok `-c -o', but also, the minuso test has
4000 # not run yet. These depmodes are late enough in the game, and
4001 # so weak that their functioning should not be impacted.
4002 am__obj=conftest.${OBJEXT-o}
4007 if depmode=$depmode \
4008 source=sub/conftest.c object=$am__obj \
4009 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4010 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4011 >/dev/null 2>conftest.err &&
4012 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4014 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4016 # icc doesn't choke on unknown options, it will just issue warnings
4017 # or remarks (even with -Werror). So we grep stderr for any message
4018 # that says an option was ignored or not supported.
4019 # When given -MP, icc 7.0 and 7.1 complain thusly:
4020 # icc: Command line warning: ignoring option '-M'; no argument required
4021 # The diagnosis changed in icc 8.0:
4022 # icc: Command line remark: option '-MP' not supported
4023 if (grep 'ignoring option' conftest.err ||
4024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4025 am_cv_CC_dependencies_compiler_type=$depmode
4034 am_cv_CC_dependencies_compiler_type=none
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4039 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4043 test "x$enable_dependency_tracking" != xno \
4044 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4046 am__fastdepCC_FALSE='#'
4048 am__fastdepCC_TRUE='#'
4049 am__fastdepCC_FALSE=
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4060 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4061 # On Suns, sometimes $CPP names a directory.
4062 if test -n "$CPP" && test -d "$CPP"; then
4065 if test -z "$CPP"; then
4066 if ${ac_cv_prog_CPP+:} false; then :
4067 $as_echo_n "(cached) " >&6
4069 # Double quotes because CPP needs to be expanded
4070 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4073 for ac_c_preproc_warn_flag in '' yes
4075 # Use a header file that comes with gcc, so configuring glibc
4076 # with a fresh cross-compiler works.
4077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4078 # <limits.h> exists even on freestanding compilers.
4079 # On the NeXT, cc -E runs the code through the compiler's parser,
4080 # not just through cpp. "Syntax error" is here to catch this case.
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4084 # include <limits.h>
4086 # include <assert.h>
4090 if ac_fn_c_try_cpp "$LINENO"; then :
4093 # Broken: fails on valid input.
4096 rm -f conftest.err conftest.i conftest.$ac_ext
4098 # OK, works on sane cases. Now check whether nonexistent headers
4099 # can be detected and how.
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102 #include <ac_nonexistent.h>
4104 if ac_fn_c_try_cpp "$LINENO"; then :
4105 # Broken: success on invalid input.
4108 # Passes both tests.
4112 rm -f conftest.err conftest.i conftest.$ac_ext
4115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116 rm -f conftest.i conftest.err conftest.$ac_ext
4117 if $ac_preproc_ok; then :
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4130 $as_echo "$CPP" >&6; }
4132 for ac_c_preproc_warn_flag in '' yes
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4143 # include <limits.h>
4145 # include <assert.h>
4149 if ac_fn_c_try_cpp "$LINENO"; then :
4152 # Broken: fails on valid input.
4155 rm -f conftest.err conftest.i conftest.$ac_ext
4157 # OK, works on sane cases. Now check whether nonexistent headers
4158 # can be detected and how.
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #include <ac_nonexistent.h>
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4164 # Broken: success on invalid input.
4167 # Passes both tests.
4171 rm -f conftest.err conftest.i conftest.$ac_ext
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175 rm -f conftest.i conftest.err conftest.$ac_ext
4176 if $ac_preproc_ok; then :
4179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4181 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4182 See \`config.log' for more details" "$LINENO" 5; }
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4193 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4194 if ${ac_cv_path_GREP+:} false; then :
4195 $as_echo_n "(cached) " >&6
4197 if test -z "$GREP"; then
4198 ac_path_GREP_found=false
4199 # Loop through the user's path and test for each of PROGNAME-LIST
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4204 test -z "$as_dir" && as_dir=.
4205 for ac_prog in grep ggrep; do
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4208 as_fn_executable_p "$ac_path_GREP" || continue
4209 # Check for GNU ac_path_GREP and select it if it is found.
4210 # Check for GNU $ac_path_GREP
4211 case `"$ac_path_GREP" --version 2>&1` in
4213 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4216 $as_echo_n 0123456789 >"conftest.in"
4219 cat "conftest.in" "conftest.in" >"conftest.tmp"
4220 mv "conftest.tmp" "conftest.in"
4221 cp "conftest.in" "conftest.nl"
4222 $as_echo 'GREP' >> "conftest.nl"
4223 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225 as_fn_arith $ac_count + 1 && ac_count=$as_val
4226 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4227 # Best one so far, save it but keep looking for a better one
4228 ac_cv_path_GREP="$ac_path_GREP"
4229 ac_path_GREP_max=$ac_count
4231 # 10*(2^10) chars as input seems more than enough
4232 test $ac_count -gt 10 && break
4234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237 $ac_path_GREP_found && break 3
4242 if test -z "$ac_cv_path_GREP"; then
4243 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4246 ac_cv_path_GREP=$GREP
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4251 $as_echo "$ac_cv_path_GREP" >&6; }
4252 GREP="$ac_cv_path_GREP"
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4256 $as_echo_n "checking for egrep... " >&6; }
4257 if ${ac_cv_path_EGREP+:} false; then :
4258 $as_echo_n "(cached) " >&6
4260 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4261 then ac_cv_path_EGREP="$GREP -E"
4263 if test -z "$EGREP"; then
4264 ac_path_EGREP_found=false
4265 # Loop through the user's path and test for each of PROGNAME-LIST
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4270 test -z "$as_dir" && as_dir=.
4271 for ac_prog in egrep; do
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4274 as_fn_executable_p "$ac_path_EGREP" || continue
4275 # Check for GNU ac_path_EGREP and select it if it is found.
4276 # Check for GNU $ac_path_EGREP
4277 case `"$ac_path_EGREP" --version 2>&1` in
4279 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4282 $as_echo_n 0123456789 >"conftest.in"
4285 cat "conftest.in" "conftest.in" >"conftest.tmp"
4286 mv "conftest.tmp" "conftest.in"
4287 cp "conftest.in" "conftest.nl"
4288 $as_echo 'EGREP' >> "conftest.nl"
4289 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4291 as_fn_arith $ac_count + 1 && ac_count=$as_val
4292 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4293 # Best one so far, save it but keep looking for a better one
4294 ac_cv_path_EGREP="$ac_path_EGREP"
4295 ac_path_EGREP_max=$ac_count
4297 # 10*(2^10) chars as input seems more than enough
4298 test $ac_count -gt 10 && break
4300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4303 $ac_path_EGREP_found && break 3
4308 if test -z "$ac_cv_path_EGREP"; then
4309 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4312 ac_cv_path_EGREP=$EGREP
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4318 $as_echo "$ac_cv_path_EGREP" >&6; }
4319 EGREP="$ac_cv_path_EGREP"
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4323 $as_echo_n "checking for ANSI C header files... " >&6; }
4324 if ${ac_cv_header_stdc+:} false; then :
4325 $as_echo_n "(cached) " >&6
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343 ac_cv_header_stdc=yes
4345 ac_cv_header_stdc=no
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 if test $ac_cv_header_stdc = yes; then
4350 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357 $EGREP "memchr" >/dev/null 2>&1; then :
4360 ac_cv_header_stdc=no
4366 if test $ac_cv_header_stdc = yes; then
4367 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4374 $EGREP "free" >/dev/null 2>&1; then :
4377 ac_cv_header_stdc=no
4383 if test $ac_cv_header_stdc = yes; then
4384 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4385 if test "$cross_compiling" = yes; then :
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4392 #if ((' ' & 0x0FF) == 0x020)
4393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4396 # define ISLOWER(c) \
4397 (('a' <= (c) && (c) <= 'i') \
4398 || ('j' <= (c) && (c) <= 'r') \
4399 || ('s' <= (c) && (c) <= 'z'))
4400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4408 for (i = 0; i < 256; i++)
4409 if (XOR (islower (i), ISLOWER (i))
4410 || toupper (i) != TOUPPER (i))
4415 if ac_fn_c_try_run "$LINENO"; then :
4418 ac_cv_header_stdc=no
4420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4421 conftest.$ac_objext conftest.beam conftest.$ac_ext
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4427 $as_echo "$ac_cv_header_stdc" >&6; }
4428 if test $ac_cv_header_stdc = yes; then
4430 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4434 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436 inttypes.h stdint.h unistd.h
4438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4441 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4442 cat >>confdefs.h <<_ACEOF
4443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454 for ac_header in $ac_header_list
4456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4460 cat >>confdefs.h <<_ACEOF
4461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475 for ac_func in getpagesize
4477 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4478 if test "x$ac_cv_func_getpagesize" = xyes; then :
4479 cat >>confdefs.h <<_ACEOF
4480 #define HAVE_GETPAGESIZE 1
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4487 $as_echo_n "checking for working mmap... " >&6; }
4488 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4489 $as_echo_n "(cached) " >&6
4491 if test "$cross_compiling" = yes; then :
4492 ac_cv_func_mmap_fixed_mapped=no
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 $ac_includes_default
4497 /* malloc might have been renamed as rpl_malloc. */
4500 /* Thanks to Mike Haertel and Jim Avera for this test.
4501 Here is a matrix of mmap possibilities:
4502 mmap private not fixed
4503 mmap private fixed at somewhere currently unmapped
4504 mmap private fixed at somewhere already mapped
4505 mmap shared not fixed
4506 mmap shared fixed at somewhere currently unmapped
4507 mmap shared fixed at somewhere already mapped
4508 For private mappings, we should verify that changes cannot be read()
4509 back from the file, nor mmap's back from the file at a different
4510 address. (There have been systems where private was not correctly
4511 implemented like the infamous i386 svr4.0, and systems where the
4512 VM page cache was not coherent with the file system buffer cache
4513 like early versions of FreeBSD and possibly contemporary NetBSD.)
4514 For shared mappings, we should conversely verify that changes get
4515 propagated back to all the places they're supposed to be.
4517 Grep wants private fixed already mapped.
4518 The main things grep needs to know about mmap are:
4519 * does it exist and is it safe to write into the mmap'd area
4520 * how to use it (BSD variants) */
4523 #include <sys/mman.h>
4525 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4529 /* This mess was copied from the GNU getpagesize.h. */
4530 #ifndef HAVE_GETPAGESIZE
4531 # ifdef _SC_PAGESIZE
4532 # define getpagesize() sysconf(_SC_PAGESIZE)
4533 # else /* no _SC_PAGESIZE */
4534 # ifdef HAVE_SYS_PARAM_H
4535 # include <sys/param.h>
4536 # ifdef EXEC_PAGESIZE
4537 # define getpagesize() EXEC_PAGESIZE
4538 # else /* no EXEC_PAGESIZE */
4540 # define getpagesize() NBPG * CLSIZE
4543 # endif /* no CLSIZE */
4544 # else /* no NBPG */
4546 # define getpagesize() NBPC
4547 # else /* no NBPC */
4549 # define getpagesize() PAGESIZE
4550 # endif /* PAGESIZE */
4551 # endif /* no NBPC */
4552 # endif /* no NBPG */
4553 # endif /* no EXEC_PAGESIZE */
4554 # else /* no HAVE_SYS_PARAM_H */
4555 # define getpagesize() 8192 /* punt totally */
4556 # endif /* no HAVE_SYS_PARAM_H */
4557 # endif /* no _SC_PAGESIZE */
4559 #endif /* no HAVE_GETPAGESIZE */
4564 char *data, *data2, *data3;
4569 pagesize = getpagesize ();
4571 /* First, make a file with some known garbage in it. */
4572 data = (char *) malloc (pagesize);
4575 for (i = 0; i < pagesize; ++i)
4576 *(data + i) = rand ();
4578 fd = creat ("conftest.mmap", 0600);
4581 if (write (fd, data, pagesize) != pagesize)
4585 /* Next, check that the tail of a page is zero-filled. File must have
4586 non-zero length, otherwise we risk SIGBUS for entire page. */
4587 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4591 if (write (fd2, cdata2, 1) != 1)
4593 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4594 if (data2 == MAP_FAILED)
4596 for (i = 0; i < pagesize; ++i)
4600 if (munmap (data2, pagesize))
4603 /* Next, try to mmap the file at a fixed address which already has
4604 something else allocated at it. If we can, also make sure that
4605 we see the same garbage. */
4606 fd = open ("conftest.mmap", O_RDWR);
4609 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4610 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4612 for (i = 0; i < pagesize; ++i)
4613 if (*(data + i) != *(data2 + i))
4616 /* Finally, make sure that changes to the mapped area do not
4617 percolate back to the file as seen by read(). (This is a bug on
4618 some variants of i386 svr4.0.) */
4619 for (i = 0; i < pagesize; ++i)
4620 *(data2 + i) = *(data2 + i) + 1;
4621 data3 = (char *) malloc (pagesize);
4624 if (read (fd, data3, pagesize) != pagesize)
4626 for (i = 0; i < pagesize; ++i)
4627 if (*(data + i) != *(data3 + i))
4633 if ac_fn_c_try_run "$LINENO"; then :
4634 ac_cv_func_mmap_fixed_mapped=yes
4636 ac_cv_func_mmap_fixed_mapped=no
4638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4639 conftest.$ac_objext conftest.beam conftest.$ac_ext
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4644 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4645 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4647 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4650 rm -f conftest.mmap conftest.txt
4652 # Check whether --enable-largefile was given.
4653 if test "${enable_largefile+set}" = set; then :
4654 enableval=$enable_largefile;
4657 if test "$enable_largefile" != no; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4660 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4661 if ${ac_cv_sys_largefile_CC+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 ac_cv_sys_largefile_CC=no
4665 if test "$GCC" != yes; then
4668 # IRIX 6.2 and later do not support large files by default,
4669 # so use the C compiler's -n32 option if that helps.
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4672 #include <sys/types.h>
4673 /* Check that off_t can represent 2**63 - 1 correctly.
4674 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4675 since some C++ compilers masquerading as C compilers
4676 incorrectly reject 9223372036854775807. */
4677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4679 && LARGE_OFF_T % 2147483647 == 1)
4689 if ac_fn_c_try_compile "$LINENO"; then :
4692 rm -f core conftest.err conftest.$ac_objext
4694 if ac_fn_c_try_compile "$LINENO"; then :
4695 ac_cv_sys_largefile_CC=' -n32'; break
4697 rm -f core conftest.err conftest.$ac_objext
4701 rm -f conftest.$ac_ext
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4705 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4706 if test "$ac_cv_sys_largefile_CC" != no; then
4707 CC=$CC$ac_cv_sys_largefile_CC
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4711 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4712 if ${ac_cv_sys_file_offset_bits+:} false; then :
4713 $as_echo_n "(cached) " >&6
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718 #include <sys/types.h>
4719 /* Check that off_t can represent 2**63 - 1 correctly.
4720 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4721 since some C++ compilers masquerading as C compilers
4722 incorrectly reject 9223372036854775807. */
4723 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4725 && LARGE_OFF_T % 2147483647 == 1)
4735 if ac_fn_c_try_compile "$LINENO"; then :
4736 ac_cv_sys_file_offset_bits=no; break
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 #define _FILE_OFFSET_BITS 64
4742 #include <sys/types.h>
4743 /* Check that off_t can represent 2**63 - 1 correctly.
4744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4745 since some C++ compilers masquerading as C compilers
4746 incorrectly reject 9223372036854775807. */
4747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4749 && LARGE_OFF_T % 2147483647 == 1)
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760 ac_cv_sys_file_offset_bits=64; break
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 ac_cv_sys_file_offset_bits=unknown
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4768 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4769 case $ac_cv_sys_file_offset_bits in #(
4772 cat >>confdefs.h <<_ACEOF
4773 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4778 if test $ac_cv_sys_file_offset_bits = unknown; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4780 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4781 if ${ac_cv_sys_large_files+:} false; then :
4782 $as_echo_n "(cached) " >&6
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 #include <sys/types.h>
4788 /* Check that off_t can represent 2**63 - 1 correctly.
4789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4790 since some C++ compilers masquerading as C compilers
4791 incorrectly reject 9223372036854775807. */
4792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4794 && LARGE_OFF_T % 2147483647 == 1)
4804 if ac_fn_c_try_compile "$LINENO"; then :
4805 ac_cv_sys_large_files=no; break
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810 #define _LARGE_FILES 1
4811 #include <sys/types.h>
4812 /* Check that off_t can represent 2**63 - 1 correctly.
4813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4814 since some C++ compilers masquerading as C compilers
4815 incorrectly reject 9223372036854775807. */
4816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4818 && LARGE_OFF_T % 2147483647 == 1)
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 ac_cv_sys_large_files=1; break
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 ac_cv_sys_large_files=unknown
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4837 $as_echo "$ac_cv_sys_large_files" >&6; }
4838 case $ac_cv_sys_large_files in #(
4841 cat >>confdefs.h <<_ACEOF
4842 #define _LARGE_FILES $ac_cv_sys_large_files
4853 # Initialize libtool
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4858 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4863 macro_version='2.4.2'
4864 macro_revision='1.3337'
4878 ltmain="$ac_aux_dir/ltmain.sh"
4880 # Backslashify metacharacters that are still active within
4881 # double-quoted strings.
4882 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4884 # Same as above, but do not quote variable references.
4885 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4887 # Sed substitution to delay expansion of an escaped shell variable in a
4888 # double_quote_subst'ed string.
4889 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4891 # Sed substitution to delay expansion of an escaped single quote.
4892 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4894 # Sed substitution to avoid accidental globbing in evaled expressions
4895 no_glob_subst='s/\*/\\\*/g'
4897 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4898 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4899 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4902 $as_echo_n "checking how to print strings... " >&6; }
4903 # Test print first, because it will be a builtin if present.
4904 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4905 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4907 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4910 # Use this function as a fallback that always works.
4911 func_fallback_echo ()
4913 eval 'cat <<_LTECHO_EOF
4917 ECHO='func_fallback_echo'
4920 # func_echo_all arg...
4921 # Invoke $ECHO with all args, space-separated.
4928 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4929 $as_echo "printf" >&6; } ;;
4930 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4931 $as_echo "print -r" >&6; } ;;
4932 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4933 $as_echo "cat" >&6; } ;;
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4950 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4951 if ${ac_cv_path_SED+:} false; then :
4952 $as_echo_n "(cached) " >&6
4954 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4955 for ac_i in 1 2 3 4 5 6 7; do
4956 ac_script="$ac_script$as_nl$ac_script"
4958 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4959 { ac_script=; unset ac_script;}
4960 if test -z "$SED"; then
4961 ac_path_SED_found=false
4962 # Loop through the user's path and test for each of PROGNAME-LIST
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 test -z "$as_dir" && as_dir=.
4968 for ac_prog in sed gsed; do
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4971 as_fn_executable_p "$ac_path_SED" || continue
4972 # Check for GNU ac_path_SED and select it if it is found.
4973 # Check for GNU $ac_path_SED
4974 case `"$ac_path_SED" --version 2>&1` in
4976 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4979 $as_echo_n 0123456789 >"conftest.in"
4982 cat "conftest.in" "conftest.in" >"conftest.tmp"
4983 mv "conftest.tmp" "conftest.in"
4984 cp "conftest.in" "conftest.nl"
4985 $as_echo '' >> "conftest.nl"
4986 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4988 as_fn_arith $ac_count + 1 && ac_count=$as_val
4989 if test $ac_count -gt ${ac_path_SED_max-0}; then
4990 # Best one so far, save it but keep looking for a better one
4991 ac_cv_path_SED="$ac_path_SED"
4992 ac_path_SED_max=$ac_count
4994 # 10*(2^10) chars as input seems more than enough
4995 test $ac_count -gt 10 && break
4997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5000 $ac_path_SED_found && break 3
5005 if test -z "$ac_cv_path_SED"; then
5006 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5014 $as_echo "$ac_cv_path_SED" >&6; }
5015 SED="$ac_cv_path_SED"
5018 test -z "$SED" && SED=sed
5019 Xsed="$SED -e 1s/^X//"
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5032 $as_echo_n "checking for fgrep... " >&6; }
5033 if ${ac_cv_path_FGREP+:} false; then :
5034 $as_echo_n "(cached) " >&6
5036 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5037 then ac_cv_path_FGREP="$GREP -F"
5039 if test -z "$FGREP"; then
5040 ac_path_FGREP_found=false
5041 # Loop through the user's path and test for each of PROGNAME-LIST
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5046 test -z "$as_dir" && as_dir=.
5047 for ac_prog in fgrep; do
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5050 as_fn_executable_p "$ac_path_FGREP" || continue
5051 # Check for GNU ac_path_FGREP and select it if it is found.
5052 # Check for GNU $ac_path_FGREP
5053 case `"$ac_path_FGREP" --version 2>&1` in
5055 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5058 $as_echo_n 0123456789 >"conftest.in"
5061 cat "conftest.in" "conftest.in" >"conftest.tmp"
5062 mv "conftest.tmp" "conftest.in"
5063 cp "conftest.in" "conftest.nl"
5064 $as_echo 'FGREP' >> "conftest.nl"
5065 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5067 as_fn_arith $ac_count + 1 && ac_count=$as_val
5068 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5069 # Best one so far, save it but keep looking for a better one
5070 ac_cv_path_FGREP="$ac_path_FGREP"
5071 ac_path_FGREP_max=$ac_count
5073 # 10*(2^10) chars as input seems more than enough
5074 test $ac_count -gt 10 && break
5076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5079 $ac_path_FGREP_found && break 3
5084 if test -z "$ac_cv_path_FGREP"; then
5085 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5088 ac_cv_path_FGREP=$FGREP
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5094 $as_echo "$ac_cv_path_FGREP" >&6; }
5095 FGREP="$ac_cv_path_FGREP"
5098 test -z "$GREP" && GREP=grep
5118 # Check whether --with-gnu-ld was given.
5119 if test "${with_gnu_ld+set}" = set; then :
5120 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5126 if test "$GCC" = yes; then
5127 # Check if gcc -print-prog-name=ld gives a path.
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5129 $as_echo_n "checking for ld used by $CC... " >&6; }
5132 # gcc leaves a trailing carriage return which upsets mingw
5133 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5135 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5138 # Accept absolute paths.
5140 re_direlt='/[^/][^/]*/\.\./'
5141 # Canonicalize the pathname of ld
5142 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5143 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5144 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5146 test -z "$LD" && LD="$ac_prog"
5149 # If it fails, then pretend we aren't using GCC.
5153 # If it is relative, then search for the first ld in PATH.
5157 elif test "$with_gnu_ld" = yes; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5159 $as_echo_n "checking for GNU ld... " >&6; }
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5162 $as_echo_n "checking for non-GNU ld... " >&6; }
5164 if ${lt_cv_path_LD+:} false; then :
5165 $as_echo_n "(cached) " >&6
5167 if test -z "$LD"; then
5168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5169 for ac_dir in $PATH; do
5171 test -z "$ac_dir" && ac_dir=.
5172 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5173 lt_cv_path_LD="$ac_dir/$ac_prog"
5174 # Check to see if the program is GNU ld. I'd rather use --version,
5175 # but apparently some variants of GNU ld only accept -v.
5176 # Break only if it was the GNU/non-GNU ld that we prefer.
5177 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5178 *GNU* | *'with BFD'*)
5179 test "$with_gnu_ld" != no && break
5182 test "$with_gnu_ld" != yes && break
5189 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5194 if test -n "$LD"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5196 $as_echo "$LD" >&6; }
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5201 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5203 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5204 if ${lt_cv_prog_gnu_ld+:} false; then :
5205 $as_echo_n "(cached) " >&6
5207 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5208 case `$LD -v 2>&1 </dev/null` in
5209 *GNU* | *'with BFD'*)
5210 lt_cv_prog_gnu_ld=yes
5213 lt_cv_prog_gnu_ld=no
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5218 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5219 with_gnu_ld=$lt_cv_prog_gnu_ld
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5230 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5231 if ${lt_cv_path_NM+:} false; then :
5232 $as_echo_n "(cached) " >&6
5234 if test -n "$NM"; then
5235 # Let the user override the test.
5238 lt_nm_to_check="${ac_tool_prefix}nm"
5239 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5240 lt_nm_to_check="$lt_nm_to_check nm"
5242 for lt_tmp_nm in $lt_nm_to_check; do
5243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5244 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5246 test -z "$ac_dir" && ac_dir=.
5247 tmp_nm="$ac_dir/$lt_tmp_nm"
5248 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5249 # Check to see if the nm accepts a BSD-compat flag.
5250 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5251 # nm: unknown option "B" ignored
5252 # Tru64's nm complains that /dev/null is an invalid object file
5253 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5254 */dev/null* | *'Invalid file or object type'*)
5255 lt_cv_path_NM="$tmp_nm -B"
5259 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5261 lt_cv_path_NM="$tmp_nm -p"
5265 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5266 continue # so that we can try to find one that supports BSD flags
5275 : ${lt_cv_path_NM=no}
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5279 $as_echo "$lt_cv_path_NM" >&6; }
5280 if test "$lt_cv_path_NM" != "no"; then
5283 # Didn't find any BSD compatible name lister, look for dumpbin.
5284 if test -n "$DUMPBIN"; then :
5285 # Let the user override the test.
5287 if test -n "$ac_tool_prefix"; then
5288 for ac_prog in dumpbin "link -dump"
5290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_DUMPBIN+:} false; then :
5295 $as_echo_n "(cached) " >&6
5297 if test -n "$DUMPBIN"; then
5298 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 DUMPBIN=$ac_cv_prog_DUMPBIN
5318 if test -n "$DUMPBIN"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5320 $as_echo "$DUMPBIN" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5327 test -n "$DUMPBIN" && break
5330 if test -z "$DUMPBIN"; then
5331 ac_ct_DUMPBIN=$DUMPBIN
5332 for ac_prog in dumpbin "link -dump"
5334 # Extract the first word of "$ac_prog", so it can be a program name with args.
5335 set dummy $ac_prog; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5339 $as_echo_n "(cached) " >&6
5341 if test -n "$ac_ct_DUMPBIN"; then
5342 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5362 if test -n "$ac_ct_DUMPBIN"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5364 $as_echo "$ac_ct_DUMPBIN" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5371 test -n "$ac_ct_DUMPBIN" && break
5374 if test "x$ac_ct_DUMPBIN" = x; then
5377 case $cross_compiling:$ac_tool_warned in
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5383 DUMPBIN=$ac_ct_DUMPBIN
5387 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5389 DUMPBIN="$DUMPBIN -symbols"
5397 if test "$DUMPBIN" != ":"; then
5401 test -z "$NM" && NM=nm
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5409 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5410 if ${lt_cv_nm_interface+:} false; then :
5411 $as_echo_n "(cached) " >&6
5413 lt_cv_nm_interface="BSD nm"
5414 echo "int some_variable = 0;" > conftest.$ac_ext
5415 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5416 (eval "$ac_compile" 2>conftest.err)
5417 cat conftest.err >&5
5418 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5419 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5420 cat conftest.err >&5
5421 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5422 cat conftest.out >&5
5423 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5424 lt_cv_nm_interface="MS dumpbin"
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5429 $as_echo "$lt_cv_nm_interface" >&6; }
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5432 $as_echo_n "checking whether ln -s works... " >&6; }
5434 if test "$LN_S" = "ln -s"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5436 $as_echo "yes" >&6; }
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5439 $as_echo "no, using $LN_S" >&6; }
5442 # find the maximum length of command line arguments
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5444 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5445 if ${lt_cv_sys_max_cmd_len+:} false; then :
5446 $as_echo_n "(cached) " >&6
5453 # On DJGPP, this test can blow up pretty badly due to problems in libc
5454 # (any single argument exceeding 2000 bytes causes a buffer overrun
5455 # during glob expansion). Even if it were fixed, the result of this
5456 # check would be larger than it should be.
5457 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5461 # Under GNU Hurd, this test is not required because there is
5462 # no limit to the length of command line arguments.
5463 # Libtool will interpret -1 as no limit whatsoever
5464 lt_cv_sys_max_cmd_len=-1;
5467 cygwin* | mingw* | cegcc*)
5468 # On Win9x/ME, this test blows up -- it succeeds, but takes
5469 # about 5 minutes as the teststring grows exponentially.
5470 # Worse, since 9x/ME are not pre-emptively multitasking,
5471 # you end up with a "frozen" computer, even though with patience
5472 # the test eventually succeeds (with a max line length of 256k).
5473 # Instead, let's just punt: use the minimum linelength reported by
5474 # all of the supported platforms: 8192 (on NT/2K/XP).
5475 lt_cv_sys_max_cmd_len=8192;
5479 # On MiNT this can take a long time and run out of memory.
5480 lt_cv_sys_max_cmd_len=8192;
5484 # On AmigaOS with pdksh, this test takes hours, literally.
5485 # So we just punt and use a minimum line length of 8192.
5486 lt_cv_sys_max_cmd_len=8192;
5489 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5490 # This has been around since 386BSD, at least. Likely further.
5491 if test -x /sbin/sysctl; then
5492 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5493 elif test -x /usr/sbin/sysctl; then
5494 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5496 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5498 # And add a safety zone
5499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5504 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5505 lt_cv_sys_max_cmd_len=196608
5509 # The test takes a long time on OS/2.
5510 lt_cv_sys_max_cmd_len=8192
5514 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5515 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5516 # nice to cause kernel panics so lets avoid the loop below.
5517 # First set a reasonable default.
5518 lt_cv_sys_max_cmd_len=16384
5520 if test -x /sbin/sysconfig; then
5521 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5522 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5527 lt_cv_sys_max_cmd_len=102400
5529 sysv5* | sco5v6* | sysv4.2uw2*)
5530 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5531 if test -n "$kargmax"; then
5532 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5534 lt_cv_sys_max_cmd_len=32768
5538 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5539 if test -n "$lt_cv_sys_max_cmd_len"; then
5540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5543 # Make teststring a little bigger before we do anything with it.
5544 # a 1K string should be a reasonable start.
5545 for i in 1 2 3 4 5 6 7 8 ; do
5546 teststring=$teststring$teststring
5548 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5549 # If test is not a shell built-in, we'll probably end up computing a
5550 # maximum length that is only half of the actual maximum length, but
5552 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5553 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5554 test $i != 17 # 1/2 MB should be enough
5557 teststring=$teststring$teststring
5559 # Only check the string length outside the loop.
5560 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5562 # Add a significant safety factor because C++ compilers can tack on
5563 # massive amounts of additional arguments before passing them to the
5564 # linker. It appears as though 1/2 is a usable value.
5565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5572 if test -n $lt_cv_sys_max_cmd_len ; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5574 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5577 $as_echo "none" >&6; }
5579 max_cmd_len=$lt_cv_sys_max_cmd_len
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5591 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5592 # Try some XSI features
5595 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5597 && eval 'test $(( 1 + 1 )) -eq 2 \
5598 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5601 $as_echo "$xsi_shell" >&6; }
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5605 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5607 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5609 && lt_shell_append=yes
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5611 $as_echo "$lt_shell_append" >&6; }
5614 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5624 # test EBCDIC or ASCII
5625 case `echo X|tr X '\101'` in
5626 A) # ASCII based system
5627 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5628 lt_SP2NL='tr \040 \012'
5629 lt_NL2SP='tr \015\012 \040\040'
5631 *) # EBCDIC based system
5632 lt_SP2NL='tr \100 \n'
5633 lt_NL2SP='tr \r\n \100\100'
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5646 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5647 if ${lt_cv_to_host_file_cmd+:} false; then :
5648 $as_echo_n "(cached) " >&6
5653 *-*-mingw* ) # actually msys
5654 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5657 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5659 * ) # otherwise, assume *nix
5660 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5666 *-*-mingw* ) # actually msys
5667 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5670 lt_cv_to_host_file_cmd=func_convert_file_noop
5672 * ) # otherwise, assume *nix
5673 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5677 * ) # unhandled hosts (and "normal" native builds)
5678 lt_cv_to_host_file_cmd=func_convert_file_noop
5684 to_host_file_cmd=$lt_cv_to_host_file_cmd
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5686 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5693 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5694 if ${lt_cv_to_tool_file_cmd+:} false; then :
5695 $as_echo_n "(cached) " >&6
5697 #assume ordinary cross tools, or native build.
5698 lt_cv_to_tool_file_cmd=func_convert_file_noop
5702 *-*-mingw* ) # actually msys
5703 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5711 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5713 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5720 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5721 if ${lt_cv_ld_reload_flag+:} false; then :
5722 $as_echo_n "(cached) " >&6
5724 lt_cv_ld_reload_flag='-r'
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5727 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5728 reload_flag=$lt_cv_ld_reload_flag
5729 case $reload_flag in
5731 *) reload_flag=" $reload_flag" ;;
5733 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5735 cygwin* | mingw* | pw32* | cegcc*)
5736 if test "$GCC" != yes; then
5741 if test "$GCC" = yes; then
5742 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5744 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5757 if test -n "$ac_tool_prefix"; then
5758 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5759 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if ${ac_cv_prog_OBJDUMP+:} false; then :
5763 $as_echo_n "(cached) " >&6
5765 if test -n "$OBJDUMP"; then
5766 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 OBJDUMP=$ac_cv_prog_OBJDUMP
5786 if test -n "$OBJDUMP"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5788 $as_echo "$OBJDUMP" >&6; }
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5796 if test -z "$ac_cv_prog_OBJDUMP"; then
5797 ac_ct_OBJDUMP=$OBJDUMP
5798 # Extract the first word of "objdump", so it can be a program name with args.
5799 set dummy objdump; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5803 $as_echo_n "(cached) " >&6
5805 if test -n "$ac_ct_OBJDUMP"; then
5806 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5826 if test -n "$ac_ct_OBJDUMP"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5828 $as_echo "$ac_ct_OBJDUMP" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5834 if test "x$ac_ct_OBJDUMP" = x; then
5837 case $cross_compiling:$ac_tool_warned in
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841 ac_tool_warned=yes ;;
5843 OBJDUMP=$ac_ct_OBJDUMP
5846 OBJDUMP="$ac_cv_prog_OBJDUMP"
5849 test -z "$OBJDUMP" && OBJDUMP=objdump
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5860 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5861 if ${lt_cv_deplibs_check_method+:} false; then :
5862 $as_echo_n "(cached) " >&6
5864 lt_cv_file_magic_cmd='$MAGIC_CMD'
5865 lt_cv_file_magic_test_file=
5866 lt_cv_deplibs_check_method='unknown'
5867 # Need to set the preceding variable on all platforms that support
5868 # interlibrary dependencies.
5869 # 'none' -- dependencies not supported.
5870 # `unknown' -- same as none, but documents that we really don't know.
5871 # 'pass_all' -- all dependencies passed with no checks.
5872 # 'test_compile' -- check by making test program.
5873 # 'file_magic [[regex]]' -- check by looking for files in library path
5874 # which responds to the $file_magic_cmd with a given extended regex.
5875 # If you have `file' or equivalent on your system and you're not sure
5876 # whether `pass_all' will *always* work, you probably want this one.
5880 lt_cv_deplibs_check_method=pass_all
5884 lt_cv_deplibs_check_method=pass_all
5888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5889 lt_cv_file_magic_cmd='/usr/bin/file -L'
5890 lt_cv_file_magic_test_file=/shlib/libc.so
5894 # func_win32_libid is a shell function defined in ltmain.sh
5895 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5896 lt_cv_file_magic_cmd='func_win32_libid'
5900 # Base MSYS/MinGW do not provide the 'file' command needed by
5901 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5902 # unless we find 'file', for example because we are cross-compiling.
5903 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5904 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5905 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5906 lt_cv_file_magic_cmd='func_win32_libid'
5908 # Keep this pattern in sync with the one in func_win32_libid.
5909 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5910 lt_cv_file_magic_cmd='$OBJDUMP -f'
5915 # use the weaker test based on 'objdump'. See mingw*.
5916 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5917 lt_cv_file_magic_cmd='$OBJDUMP -f'
5920 darwin* | rhapsody*)
5921 lt_cv_deplibs_check_method=pass_all
5924 freebsd* | dragonfly*)
5925 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5928 # Not sure whether the presence of OpenBSD here was a mistake.
5929 # Let's accept both of them until this is cleared up.
5930 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5931 lt_cv_file_magic_cmd=/usr/bin/file
5932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5936 lt_cv_deplibs_check_method=pass_all
5941 lt_cv_deplibs_check_method=pass_all
5945 lt_cv_deplibs_check_method=pass_all
5948 hpux10.20* | hpux11*)
5949 lt_cv_file_magic_cmd=/usr/bin/file
5952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5953 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5956 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5957 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5961 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5967 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5971 irix5* | irix6* | nonstopux*)
5973 *-32|*"-32 ") libmagic=32-bit;;
5974 *-n32|*"-n32 ") libmagic=N32;;
5975 *-64|*"-64 ") libmagic=64-bit;;
5976 *) libmagic=never-match;;
5978 lt_cv_deplibs_check_method=pass_all
5981 # This must be glibc/ELF.
5982 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5983 lt_cv_deplibs_check_method=pass_all
5986 netbsd* | netbsdelf*-gnu)
5987 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5996 lt_cv_file_magic_cmd=/usr/bin/file
5997 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6001 lt_cv_deplibs_check_method=pass_all
6005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6012 osf3* | osf4* | osf5*)
6013 lt_cv_deplibs_check_method=pass_all
6017 lt_cv_deplibs_check_method=pass_all
6021 lt_cv_deplibs_check_method=pass_all
6024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6025 lt_cv_deplibs_check_method=pass_all
6029 case $host_vendor in
6031 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]'
6032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6035 lt_cv_deplibs_check_method=pass_all
6038 lt_cv_file_magic_cmd='/bin/file'
6039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6042 lt_cv_file_magic_cmd='/bin/file'
6043 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6044 lt_cv_file_magic_test_file=/lib/libc.so
6047 lt_cv_deplibs_check_method=pass_all
6050 lt_cv_deplibs_check_method=pass_all
6056 lt_cv_deplibs_check_method=pass_all
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6062 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6066 if test "$build" = "$host"; then
6069 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6072 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6078 file_magic_cmd=$lt_cv_file_magic_cmd
6079 deplibs_check_method=$lt_cv_deplibs_check_method
6080 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6103 if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_DLLTOOL+:} false; then :
6109 $as_echo_n "(cached) " >&6
6111 if test -n "$DLLTOOL"; then
6112 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 DLLTOOL=$ac_cv_prog_DLLTOOL
6132 if test -n "$DLLTOOL"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6134 $as_echo "$DLLTOOL" >&6; }
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6142 if test -z "$ac_cv_prog_DLLTOOL"; then
6143 ac_ct_DLLTOOL=$DLLTOOL
6144 # Extract the first word of "dlltool", so it can be a program name with args.
6145 set dummy dlltool; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6149 $as_echo_n "(cached) " >&6
6151 if test -n "$ac_ct_DLLTOOL"; then
6152 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6172 if test -n "$ac_ct_DLLTOOL"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6174 $as_echo "$ac_ct_DLLTOOL" >&6; }
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6180 if test "x$ac_ct_DLLTOOL" = x; then
6183 case $cross_compiling:$ac_tool_warned in
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187 ac_tool_warned=yes ;;
6189 DLLTOOL=$ac_ct_DLLTOOL
6192 DLLTOOL="$ac_cv_prog_DLLTOOL"
6195 test -z "$DLLTOOL" && DLLTOOL=dlltool
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6207 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6208 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6209 $as_echo_n "(cached) " >&6
6211 lt_cv_sharedlib_from_linklib_cmd='unknown'
6214 cygwin* | mingw* | pw32* | cegcc*)
6215 # two different shell functions defined in ltmain.sh
6216 # decide which to use based on capabilities of $DLLTOOL
6217 case `$DLLTOOL --help 2>&1` in
6218 *--identify-strict*)
6219 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6222 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6227 # fallback: assume linklib IS sharedlib
6228 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6234 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6235 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6236 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6244 if test -n "$ac_tool_prefix"; then
6247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if ${ac_cv_prog_AR+:} false; then :
6252 $as_echo_n "(cached) " >&6
6254 if test -n "$AR"; then
6255 ac_cv_prog_AR="$AR" # Let the user override the test.
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 if test -n "$AR"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6277 $as_echo "$AR" >&6; }
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6284 test -n "$AR" && break
6287 if test -z "$AR"; then
6291 # Extract the first word of "$ac_prog", so it can be a program name with args.
6292 set dummy $ac_prog; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6296 $as_echo_n "(cached) " >&6
6298 if test -n "$ac_ct_AR"; then
6299 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308 ac_cv_prog_ac_ct_AR="$ac_prog"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6319 if test -n "$ac_ct_AR"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6321 $as_echo "$ac_ct_AR" >&6; }
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6328 test -n "$ac_ct_AR" && break
6331 if test "x$ac_ct_AR" = x; then
6334 case $cross_compiling:$ac_tool_warned in
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338 ac_tool_warned=yes ;;
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6358 $as_echo_n "checking for archiver @FILE support... " >&6; }
6359 if ${lt_cv_ar_at_file+:} false; then :
6360 $as_echo_n "(cached) " >&6
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 echo conftest.$ac_objext > conftest.lst
6376 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6378 (eval $lt_ar_try) 2>&5
6380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381 test $ac_status = 0; }
6382 if test "$ac_status" -eq 0; then
6383 # Ensure the archiver fails upon bogus file names.
6384 rm -f conftest.$ac_objext libconftest.a
6385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6386 (eval $lt_ar_try) 2>&5
6388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389 test $ac_status = 0; }
6390 if test "$ac_status" -ne 0; then
6394 rm -f conftest.* libconftest.a
6397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6401 $as_echo "$lt_cv_ar_at_file" >&6; }
6403 if test "x$lt_cv_ar_at_file" = xno; then
6406 archiver_list_spec=$lt_cv_ar_at_file
6415 if test -n "$ac_tool_prefix"; then
6416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6417 set dummy ${ac_tool_prefix}strip; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_STRIP+:} false; then :
6421 $as_echo_n "(cached) " >&6
6423 if test -n "$STRIP"; then
6424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 STRIP=$ac_cv_prog_STRIP
6444 if test -n "$STRIP"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6446 $as_echo "$STRIP" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6454 if test -z "$ac_cv_prog_STRIP"; then
6456 # Extract the first word of "strip", so it can be a program name with args.
6457 set dummy strip; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6461 $as_echo_n "(cached) " >&6
6463 if test -n "$ac_ct_STRIP"; then
6464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_ac_ct_STRIP="strip"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6484 if test -n "$ac_ct_STRIP"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6486 $as_echo "$ac_ct_STRIP" >&6; }
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6492 if test "x$ac_ct_STRIP" = x; then
6495 case $cross_compiling:$ac_tool_warned in
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6499 ac_tool_warned=yes ;;
6504 STRIP="$ac_cv_prog_STRIP"
6507 test -z "$STRIP" && STRIP=:
6514 if test -n "$ac_tool_prefix"; then
6515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_prog_RANLIB+:} false; then :
6520 $as_echo_n "(cached) " >&6
6522 if test -n "$RANLIB"; then
6523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 RANLIB=$ac_cv_prog_RANLIB
6543 if test -n "$RANLIB"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6545 $as_echo "$RANLIB" >&6; }
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6553 if test -z "$ac_cv_prog_RANLIB"; then
6554 ac_ct_RANLIB=$RANLIB
6555 # Extract the first word of "ranlib", so it can be a program name with args.
6556 set dummy ranlib; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6560 $as_echo_n "(cached) " >&6
6562 if test -n "$ac_ct_RANLIB"; then
6563 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_ac_ct_RANLIB="ranlib"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6583 if test -n "$ac_ct_RANLIB"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6585 $as_echo "$ac_ct_RANLIB" >&6; }
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6591 if test "x$ac_ct_RANLIB" = x; then
6594 case $cross_compiling:$ac_tool_warned in
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6600 RANLIB=$ac_ct_RANLIB
6603 RANLIB="$ac_cv_prog_RANLIB"
6606 test -z "$RANLIB" && RANLIB=:
6613 # Determine commands to create old-style static archives.
6614 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6615 old_postinstall_cmds='chmod 644 $oldlib'
6616 old_postuninstall_cmds=
6618 if test -n "$RANLIB"; then
6621 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6624 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6627 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6632 lock_old_archive_extraction=yes ;;
6634 lock_old_archive_extraction=no ;;
6675 # If no C compiler was specified, use CC.
6678 # If no C compiler flags were specified, use CFLAGS.
6679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6681 # Allow CC to be a program name with arguments.
6685 # Check for command to grab the raw symbol name followed by C symbol from nm.
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6687 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6688 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6689 $as_echo_n "(cached) " >&6
6692 # These are sane defaults that work on at least a few old systems.
6693 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6695 # Character class describing NM global symbol codes.
6696 symcode='[BCDEGRST]'
6698 # Regexp to match symbols that can be accessed directly from C.
6699 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6701 # Define system-specific variables.
6706 cygwin* | mingw* | pw32* | cegcc*)
6707 symcode='[ABCDGISTW]'
6710 if test "$host_cpu" = ia64; then
6711 symcode='[ABCDEGRST]'
6715 symcode='[BCDEGRST]'
6718 symcode='[BCDEGQRST]'
6729 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6737 # If we're using GNU nm, then use its standard symbol codes.
6738 case `$NM -V 2>&1` in
6739 *GNU* | *'with BFD'*)
6740 symcode='[ABCDGIRSTW]' ;;
6743 # Transform an extracted symbol line into a proper C declaration.
6744 # Some systems (esp. on ia64) link data and code symbols differently,
6745 # so use this general approach.
6746 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6748 # Transform an extracted symbol line into symbol name and symbol address
6749 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6750 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'"
6752 # Handle CRLF in mingw tool chain
6756 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6760 # Try without a prefix underscore, then with it.
6761 for ac_symprfx in "" "_"; do
6763 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6764 symxfrm="\\1 $ac_symprfx\\2 \\2"
6766 # Write the raw and C identifiers.
6767 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6768 # Fake it for dumpbin and say T for any non-static function
6769 # and D for any global variable.
6770 # Also find C++ and __fastcall symbols from MSVC++,
6771 # which start with @ or ?.
6772 lt_cv_sys_global_symbol_pipe="$AWK '"\
6773 " {last_section=section; section=\$ 3};"\
6774 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6775 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6776 " \$ 0!~/External *\|/{next};"\
6777 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6778 " {if(hide[section]) next};"\
6779 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6780 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6781 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6782 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6783 " ' prfx=^$ac_symprfx"
6785 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6787 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6789 # Check to see that the pipe works correctly.
6793 cat > conftest.$ac_ext <<_LT_EOF
6798 void nm_test_func(void);
6799 void nm_test_func(void){}
6803 int main(){nm_test_var='a';nm_test_func();return(0);}
6806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807 (eval $ac_compile) 2>&5
6809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810 test $ac_status = 0; }; then
6811 # Now try to grab the symbols.
6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6814 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817 test $ac_status = 0; } && test -s "$nlist"; then
6818 # Try sorting and uniquifying the output.
6819 if sort "$nlist" | uniq > "$nlist"T; then
6820 mv -f "$nlist"T "$nlist"
6825 # Make sure that we snagged all the symbols we need.
6826 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6827 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6828 cat <<_LT_EOF > conftest.$ac_ext
6829 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6830 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6831 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6832 relocations are performed -- see ld's documentation on pseudo-relocs. */
6833 # define LT_DLSYM_CONST
6834 #elif defined(__osf__)
6835 /* This system does not cope well with relocations in const data. */
6836 # define LT_DLSYM_CONST
6838 # define LT_DLSYM_CONST const
6846 # Now generate the symbol file.
6847 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6849 cat <<_LT_EOF >> conftest.$ac_ext
6851 /* The mapping between symbol names and symbols. */
6852 LT_DLSYM_CONST struct {
6856 lt__PROGRAM__LTX_preloaded_symbols[] =
6858 { "@PROGRAM@", (void *) 0 },
6860 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6861 cat <<\_LT_EOF >> conftest.$ac_ext
6865 /* This works around a problem in FreeBSD linker */
6866 #ifdef FREEBSD_WORKAROUND
6867 static const void *lt_preloaded_setup() {
6868 return lt__PROGRAM__LTX_preloaded_symbols;
6876 # Now try linking the two files.
6877 mv conftest.$ac_objext conftstm.$ac_objext
6878 lt_globsym_save_LIBS=$LIBS
6879 lt_globsym_save_CFLAGS=$CFLAGS
6880 LIBS="conftstm.$ac_objext"
6881 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6883 (eval $ac_link) 2>&5
6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6889 LIBS=$lt_globsym_save_LIBS
6890 CFLAGS=$lt_globsym_save_CFLAGS
6892 echo "cannot find nm_test_func in $nlist" >&5
6895 echo "cannot find nm_test_var in $nlist" >&5
6898 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6901 echo "$progname: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6904 rm -rf conftest* conftst*
6906 # Do not use the global_symbol_pipe unless it works.
6907 if test "$pipe_works" = yes; then
6910 lt_cv_sys_global_symbol_pipe=
6916 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6917 lt_cv_sys_global_symbol_to_cdecl=
6919 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6921 $as_echo "failed" >&6; }
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6924 $as_echo "ok" >&6; }
6927 # Response file support.
6928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6929 nm_file_list_spec='@'
6930 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6931 nm_file_list_spec='@'
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6961 $as_echo_n "checking for sysroot... " >&6; }
6963 # Check whether --with-sysroot was given.
6964 if test "${with_sysroot+set}" = set; then :
6965 withval=$with_sysroot;
6972 case ${with_sysroot} in #(
6974 if test "$GCC" = yes; then
6975 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6979 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6985 $as_echo "${with_sysroot}" >&6; }
6986 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6991 $as_echo "${lt_sysroot:-no}" >&6; }
6997 # Check whether --enable-libtool-lock was given.
6998 if test "${enable_libtool_lock+set}" = set; then :
6999 enableval=$enable_libtool_lock;
7002 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7004 # Some flags need to be propagated to the compiler or linker for good
7008 # Find out which ABI we are using.
7009 echo 'int i;' > conftest.$ac_ext
7010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7011 (eval $ac_compile) 2>&5
7013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014 test $ac_status = 0; }; then
7015 case `/usr/bin/file conftest.$ac_objext` in
7027 # Find out which ABI we are using.
7028 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7030 (eval $ac_compile) 2>&5
7032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033 test $ac_status = 0; }; then
7034 if test "$lt_cv_prog_gnu_ld" = yes; then
7035 case `/usr/bin/file conftest.$ac_objext` in
7037 LD="${LD-ld} -melf32bsmip"
7040 LD="${LD-ld} -melf32bmipn32"
7043 LD="${LD-ld} -melf64bmip"
7047 case `/usr/bin/file conftest.$ac_objext` in
7063 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7064 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7065 # Find out which ABI we are using.
7066 echo 'int i;' > conftest.$ac_ext
7067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7068 (eval $ac_compile) 2>&5
7070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7071 test $ac_status = 0; }; then
7072 case `/usr/bin/file conftest.o` in
7075 x86_64-*kfreebsd*-gnu)
7076 LD="${LD-ld} -m elf_i386_fbsd"
7079 LD="${LD-ld} -m elf_i386"
7081 ppc64-*linux*|powerpc64-*linux*)
7082 LD="${LD-ld} -m elf32ppclinux"
7085 LD="${LD-ld} -m elf_s390"
7088 LD="${LD-ld} -m elf32_sparc"
7094 x86_64-*kfreebsd*-gnu)
7095 LD="${LD-ld} -m elf_x86_64_fbsd"
7098 LD="${LD-ld} -m elf_x86_64"
7100 ppc*-*linux*|powerpc*-*linux*)
7101 LD="${LD-ld} -m elf64ppc"
7103 s390*-*linux*|s390*-*tpf*)
7104 LD="${LD-ld} -m elf64_s390"
7107 LD="${LD-ld} -m elf64_sparc"
7117 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7118 SAVE_CFLAGS="$CFLAGS"
7119 CFLAGS="$CFLAGS -belf"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7121 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7122 if ${lt_cv_cc_needs_belf+:} false; then :
7123 $as_echo_n "(cached) " >&6
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7142 if ac_fn_c_try_link "$LINENO"; then :
7143 lt_cv_cc_needs_belf=yes
7145 lt_cv_cc_needs_belf=no
7147 rm -f core conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7150 ac_cpp='$CPP $CPPFLAGS'
7151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7157 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7158 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7159 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7160 CFLAGS="$SAVE_CFLAGS"
7164 # Find out which ABI we are using.
7165 echo 'int i;' > conftest.$ac_ext
7166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7167 (eval $ac_compile) 2>&5
7169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7170 test $ac_status = 0; }; then
7171 case `/usr/bin/file conftest.o` in
7173 case $lt_cv_prog_gnu_ld in
7177 LD="${LD-ld} -m elf_x86_64"
7180 LD="${LD-ld} -m elf64_sparc"
7183 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7184 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7189 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7201 need_locks="$enable_libtool_lock"
7203 if test -n "$ac_tool_prefix"; then
7204 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7205 set dummy ${ac_tool_prefix}mt; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 if test -n "$MANIFEST_TOOL"; then
7212 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7232 if test -n "$MANIFEST_TOOL"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7234 $as_echo "$MANIFEST_TOOL" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7242 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7243 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7244 # Extract the first word of "mt", so it can be a program name with args.
7245 set dummy mt; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7249 $as_echo_n "(cached) " >&6
7251 if test -n "$ac_ct_MANIFEST_TOOL"; then
7252 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7272 if test -n "$ac_ct_MANIFEST_TOOL"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7274 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7280 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7283 case $cross_compiling:$ac_tool_warned in
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287 ac_tool_warned=yes ;;
7289 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7292 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7295 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7297 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7298 if ${lt_cv_path_mainfest_tool+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 lt_cv_path_mainfest_tool=no
7302 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7303 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7304 cat conftest.err >&5
7305 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7306 lt_cv_path_mainfest_tool=yes
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7311 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7312 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7322 rhapsody* | darwin*)
7323 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7329 $as_echo_n "(cached) " >&6
7331 if test -n "$DSYMUTIL"; then
7332 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7352 if test -n "$DSYMUTIL"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7354 $as_echo "$DSYMUTIL" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7362 if test -z "$ac_cv_prog_DSYMUTIL"; then
7363 ac_ct_DSYMUTIL=$DSYMUTIL
7364 # Extract the first word of "dsymutil", so it can be a program name with args.
7365 set dummy dsymutil; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$ac_ct_DSYMUTIL"; then
7372 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7392 if test -n "$ac_ct_DSYMUTIL"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7394 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7400 if test "x$ac_ct_DSYMUTIL" = x; then
7403 case $cross_compiling:$ac_tool_warned in
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7409 DSYMUTIL=$ac_ct_DSYMUTIL
7412 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7415 if test -n "$ac_tool_prefix"; then
7416 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_prog_NMEDIT+:} false; then :
7421 $as_echo_n "(cached) " >&6
7423 if test -n "$NMEDIT"; then
7424 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 NMEDIT=$ac_cv_prog_NMEDIT
7444 if test -n "$NMEDIT"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7446 $as_echo "$NMEDIT" >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7454 if test -z "$ac_cv_prog_NMEDIT"; then
7455 ac_ct_NMEDIT=$NMEDIT
7456 # Extract the first word of "nmedit", so it can be a program name with args.
7457 set dummy nmedit; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7461 $as_echo_n "(cached) " >&6
7463 if test -n "$ac_ct_NMEDIT"; then
7464 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7484 if test -n "$ac_ct_NMEDIT"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7486 $as_echo "$ac_ct_NMEDIT" >&6; }
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7492 if test "x$ac_ct_NMEDIT" = x; then
7495 case $cross_compiling:$ac_tool_warned in
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7499 ac_tool_warned=yes ;;
7501 NMEDIT=$ac_ct_NMEDIT
7504 NMEDIT="$ac_cv_prog_NMEDIT"
7507 if test -n "$ac_tool_prefix"; then
7508 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_prog_LIPO+:} false; then :
7513 $as_echo_n "(cached) " >&6
7515 if test -n "$LIPO"; then
7516 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7525 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 LIPO=$ac_cv_prog_LIPO
7536 if test -n "$LIPO"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7538 $as_echo "$LIPO" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7546 if test -z "$ac_cv_prog_LIPO"; then
7548 # Extract the first word of "lipo", so it can be a program name with args.
7549 set dummy lipo; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7553 $as_echo_n "(cached) " >&6
7555 if test -n "$ac_ct_LIPO"; then
7556 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_ac_ct_LIPO="lipo"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7576 if test -n "$ac_ct_LIPO"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7578 $as_echo "$ac_ct_LIPO" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7584 if test "x$ac_ct_LIPO" = x; then
7587 case $cross_compiling:$ac_tool_warned in
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591 ac_tool_warned=yes ;;
7596 LIPO="$ac_cv_prog_LIPO"
7599 if test -n "$ac_tool_prefix"; then
7600 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7601 set dummy ${ac_tool_prefix}otool; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_prog_OTOOL+:} false; then :
7605 $as_echo_n "(cached) " >&6
7607 if test -n "$OTOOL"; then
7608 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 OTOOL=$ac_cv_prog_OTOOL
7628 if test -n "$OTOOL"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7630 $as_echo "$OTOOL" >&6; }
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7638 if test -z "$ac_cv_prog_OTOOL"; then
7640 # Extract the first word of "otool", so it can be a program name with args.
7641 set dummy otool; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7645 $as_echo_n "(cached) " >&6
7647 if test -n "$ac_ct_OTOOL"; then
7648 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_ac_ct_OTOOL="otool"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7668 if test -n "$ac_ct_OTOOL"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7670 $as_echo "$ac_ct_OTOOL" >&6; }
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7676 if test "x$ac_ct_OTOOL" = x; then
7679 case $cross_compiling:$ac_tool_warned in
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7683 ac_tool_warned=yes ;;
7688 OTOOL="$ac_cv_prog_OTOOL"
7691 if test -n "$ac_tool_prefix"; then
7692 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_OTOOL64+:} false; then :
7697 $as_echo_n "(cached) " >&6
7699 if test -n "$OTOOL64"; then
7700 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 OTOOL64=$ac_cv_prog_OTOOL64
7720 if test -n "$OTOOL64"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7722 $as_echo "$OTOOL64" >&6; }
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7730 if test -z "$ac_cv_prog_OTOOL64"; then
7731 ac_ct_OTOOL64=$OTOOL64
7732 # Extract the first word of "otool64", so it can be a program name with args.
7733 set dummy otool64; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7737 $as_echo_n "(cached) " >&6
7739 if test -n "$ac_ct_OTOOL64"; then
7740 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749 ac_cv_prog_ac_ct_OTOOL64="otool64"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7760 if test -n "$ac_ct_OTOOL64"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7762 $as_echo "$ac_ct_OTOOL64" >&6; }
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7768 if test "x$ac_ct_OTOOL64" = x; then
7771 case $cross_compiling:$ac_tool_warned in
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7777 OTOOL64=$ac_ct_OTOOL64
7780 OTOOL64="$ac_cv_prog_OTOOL64"
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7810 $as_echo_n "checking for -single_module linker flag... " >&6; }
7811 if ${lt_cv_apple_cc_single_mod+:} false; then :
7812 $as_echo_n "(cached) " >&6
7814 lt_cv_apple_cc_single_mod=no
7815 if test -z "${LT_MULTI_MODULE}"; then
7816 # By default we will add the -single_module flag. You can override
7817 # by either setting the environment variable LT_MULTI_MODULE
7818 # non-empty at configure time, or by adding -multi_module to the
7820 rm -rf libconftest.dylib*
7821 echo "int foo(void){return 1;}" > conftest.c
7822 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7823 -dynamiclib -Wl,-single_module conftest.c" >&5
7824 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7825 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7827 # If there is a non-empty error log, and "single_module"
7828 # appears in it, assume the flag caused a linker warning
7829 if test -s conftest.err && $GREP single_module conftest.err; then
7830 cat conftest.err >&5
7831 # Otherwise, if the output was created with a 0 exit code from
7832 # the compiler, it worked.
7833 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7834 lt_cv_apple_cc_single_mod=yes
7836 cat conftest.err >&5
7838 rm -rf libconftest.dylib*
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7843 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7846 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7847 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7848 $as_echo_n "(cached) " >&6
7850 lt_cv_ld_exported_symbols_list=no
7851 save_LDFLAGS=$LDFLAGS
7852 echo "_main" > conftest.sym
7853 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7865 if ac_fn_c_try_link "$LINENO"; then :
7866 lt_cv_ld_exported_symbols_list=yes
7868 lt_cv_ld_exported_symbols_list=no
7870 rm -f core conftest.err conftest.$ac_objext \
7871 conftest$ac_exeext conftest.$ac_ext
7872 LDFLAGS="$save_LDFLAGS"
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7876 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7879 $as_echo_n "checking for -force_load linker flag... " >&6; }
7880 if ${lt_cv_ld_force_load+:} false; then :
7881 $as_echo_n "(cached) " >&6
7883 lt_cv_ld_force_load=no
7884 cat > conftest.c << _LT_EOF
7885 int forced_loaded() { return 2;}
7887 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7888 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7889 echo "$AR cru libconftest.a conftest.o" >&5
7890 $AR cru libconftest.a conftest.o 2>&5
7891 echo "$RANLIB libconftest.a" >&5
7892 $RANLIB libconftest.a 2>&5
7893 cat > conftest.c << _LT_EOF
7894 int main() { return 0;}
7896 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7897 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7899 if test -s conftest.err && $GREP force_load conftest.err; then
7900 cat conftest.err >&5
7901 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7902 lt_cv_ld_force_load=yes
7904 cat conftest.err >&5
7906 rm -f conftest.err libconftest.a conftest conftest.c
7907 rm -rf conftest.dSYM
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7911 $as_echo "$lt_cv_ld_force_load" >&6; }
7913 rhapsody* | darwin1.[012])
7914 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7916 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7917 darwin*) # darwin 5.x on
7918 # if running on 10.5 or later, the deployment target defaults
7919 # to the OS version, if on x86, and 10.4, the deployment
7920 # target defaults to 10.4. Don't you love it?
7921 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7922 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7923 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7925 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7927 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7931 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7932 _lt_dar_single_mod='$single_module'
7934 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7935 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7937 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7939 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7940 _lt_dsymutil='~$DSYMUTIL $lib || :'
7947 for ac_header in dlfcn.h
7949 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7951 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7952 cat >>confdefs.h <<_ACEOF
7953 #define HAVE_DLFCN_H 1
7974 # Check whether --enable-shared was given.
7975 if test "${enable_shared+set}" = set; then :
7976 enableval=$enable_shared; p=${PACKAGE-default}
7978 yes) enable_shared=yes ;;
7979 no) enable_shared=no ;;
7982 # Look at the argument we got. We use all the common list separators.
7983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7984 for pkg in $enableval; do
7986 if test "X$pkg" = "X$p"; then
8005 # Check whether --enable-static was given.
8006 if test "${enable_static+set}" = set; then :
8007 enableval=$enable_static; p=${PACKAGE-default}
8009 yes) enable_static=yes ;;
8010 no) enable_static=no ;;
8013 # Look at the argument we got. We use all the common list separators.
8014 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8015 for pkg in $enableval; do
8017 if test "X$pkg" = "X$p"; then
8037 # Check whether --with-pic was given.
8038 if test "${with_pic+set}" = set; then :
8039 withval=$with_pic; lt_p=${PACKAGE-default}
8041 yes|no) pic_mode=$withval ;;
8044 # Look at the argument we got. We use all the common list separators.
8045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046 for lt_pkg in $withval; do
8048 if test "X$lt_pkg" = "X$lt_p"; then
8060 test -z "$pic_mode" && pic_mode=default
8068 # Check whether --enable-fast-install was given.
8069 if test "${enable_fast_install+set}" = set; then :
8070 enableval=$enable_fast_install; p=${PACKAGE-default}
8072 yes) enable_fast_install=yes ;;
8073 no) enable_fast_install=no ;;
8075 enable_fast_install=no
8076 # Look at the argument we got. We use all the common list separators.
8077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8078 for pkg in $enableval; do
8080 if test "X$pkg" = "X$p"; then
8081 enable_fast_install=yes
8088 enable_fast_install=yes
8101 # This can be used to rebuild libtool when needed
8102 LIBTOOL_DEPS="$ltmain"
8104 # Always use our own libtool.
8105 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8136 test -z "$LN_S" && LN_S="ln -s"
8151 if test -n "${ZSH_VERSION+set}" ; then
8152 setopt NO_GLOB_SUBST
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8156 $as_echo_n "checking for objdir... " >&6; }
8157 if ${lt_cv_objdir+:} false; then :
8158 $as_echo_n "(cached) " >&6
8160 rm -f .libs 2>/dev/null
8161 mkdir .libs 2>/dev/null
8162 if test -d .libs; then
8165 # MS-DOS does not allow filenames that begin with a dot.
8168 rmdir .libs 2>/dev/null
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8171 $as_echo "$lt_cv_objdir" >&6; }
8172 objdir=$lt_cv_objdir
8178 cat >>confdefs.h <<_ACEOF
8179 #define LT_OBJDIR "$lt_cv_objdir/"
8187 # AIX sometimes has problems with the GCC collect2 program. For some
8188 # reason, if we set the COLLECT_NAMES environment variable, the problems
8189 # vanish in a puff of smoke.
8190 if test "X${COLLECT_NAMES+set}" != Xset; then
8192 export COLLECT_NAMES
8199 can_build_shared=yes
8201 # All known linkers require a `.a' archive for static linking (except MSVC,
8202 # which needs '.lib').
8205 with_gnu_ld="$lt_cv_prog_gnu_ld"
8208 old_CFLAGS="$CFLAGS"
8210 # Set sane defaults for various variables
8211 test -z "$CC" && CC=cc
8212 test -z "$LTCC" && LTCC=$CC
8213 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8214 test -z "$LD" && LD=ld
8215 test -z "$ac_objext" && ac_objext=o
8217 for cc_temp in $compiler""; do
8219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8225 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8228 # Only perform the check for file, if the check method requires it
8229 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8230 case $deplibs_check_method in
8232 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8234 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8235 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8236 $as_echo_n "(cached) " >&6
8240 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8243 lt_save_MAGIC_CMD="$MAGIC_CMD"
8244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8245 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8246 for ac_dir in $ac_dummy; do
8248 test -z "$ac_dir" && ac_dir=.
8249 if test -f $ac_dir/${ac_tool_prefix}file; then
8250 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8251 if test -n "$file_magic_test_file"; then
8252 case $deplibs_check_method in
8254 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8257 $EGREP "$file_magic_regex" > /dev/null; then
8262 *** Warning: the command libtool uses to detect shared libraries,
8263 *** $file_magic_cmd, produces output that libtool cannot recognize.
8264 *** The result is that libtool may fail to recognize shared libraries
8265 *** as such. This will affect the creation of libtool libraries that
8266 *** depend on shared libraries, but programs linked with such libtool
8267 *** libraries will work regardless of this problem. Nevertheless, you
8268 *** may want to report the problem to your system manager and/or to
8269 *** bug-libtool@gnu.org
8279 MAGIC_CMD="$lt_save_MAGIC_CMD"
8284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8285 if test -n "$MAGIC_CMD"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8287 $as_echo "$MAGIC_CMD" >&6; }
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8297 if test -z "$lt_cv_path_MAGIC_CMD"; then
8298 if test -n "$ac_tool_prefix"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8300 $as_echo_n "checking for file... " >&6; }
8301 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8302 $as_echo_n "(cached) " >&6
8306 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8309 lt_save_MAGIC_CMD="$MAGIC_CMD"
8310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8311 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8312 for ac_dir in $ac_dummy; do
8314 test -z "$ac_dir" && ac_dir=.
8315 if test -f $ac_dir/file; then
8316 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8317 if test -n "$file_magic_test_file"; then
8318 case $deplibs_check_method in
8320 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8323 $EGREP "$file_magic_regex" > /dev/null; then
8328 *** Warning: the command libtool uses to detect shared libraries,
8329 *** $file_magic_cmd, produces output that libtool cannot recognize.
8330 *** The result is that libtool may fail to recognize shared libraries
8331 *** as such. This will affect the creation of libtool libraries that
8332 *** depend on shared libraries, but programs linked with such libtool
8333 *** libraries will work regardless of this problem. Nevertheless, you
8334 *** may want to report the problem to your system manager and/or to
8335 *** bug-libtool@gnu.org
8345 MAGIC_CMD="$lt_save_MAGIC_CMD"
8350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8351 if test -n "$MAGIC_CMD"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8353 $as_echo "$MAGIC_CMD" >&6; }
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8369 # Use C for the default configuration in the libtool script
8373 ac_cpp='$CPP $CPPFLAGS'
8374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379 # Source file extension for C test sources.
8382 # Object file extension for compiled C test sources.
8386 # Code to be used in simple compile tests
8387 lt_simple_compile_test_code="int some_variable = 0;"
8389 # Code to be used in simple link tests
8390 lt_simple_link_test_code='int main(){return(0);}'
8398 # If no C compiler was specified, use CC.
8401 # If no C compiler flags were specified, use CFLAGS.
8402 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8404 # Allow CC to be a program name with arguments.
8407 # Save the default compiler, since it gets overwritten when the other
8408 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8409 compiler_DEFAULT=$CC
8411 # save warnings/boilerplate of simple test code
8412 ac_outfile=conftest.$ac_objext
8413 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8414 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8415 _lt_compiler_boilerplate=`cat conftest.err`
8418 ac_outfile=conftest.$ac_objext
8419 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8420 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8421 _lt_linker_boilerplate=`cat conftest.err`
8426 ## There is no encapsulation within the following macros, do not change
8427 ## the running order or otherwise move them around unless you know exactly
8428 ## what you are doing...
8429 if test -n "$compiler"; then
8431 lt_prog_compiler_no_builtin_flag=
8433 if test "$GCC" = yes; then
8434 case $cc_basename in
8436 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8438 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8442 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8443 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8444 $as_echo_n "(cached) " >&6
8446 lt_cv_prog_compiler_rtti_exceptions=no
8447 ac_outfile=conftest.$ac_objext
8448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449 lt_compiler_flag="-fno-rtti -fno-exceptions"
8450 # Insert the option either (1) after the last *FLAGS variable, or
8451 # (2) before a word containing "conftest.", or (3) at the end.
8452 # Note that $ac_compile itself does not contain backslashes and begins
8453 # with a dollar sign (not a hyphen), so the echo should work correctly.
8454 # The option is referenced via a variable to avoid confusing sed.
8455 lt_compile=`echo "$ac_compile" | $SED \
8456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458 -e 's:$: $lt_compiler_flag:'`
8459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8460 (eval "$lt_compile" 2>conftest.err)
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 if (exit $ac_status) && test -s "$ac_outfile"; then
8465 # The compiler can only warn and ignore the option if not recognized
8466 # So say no if there are warnings other than the usual output.
8467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8470 lt_cv_prog_compiler_rtti_exceptions=yes
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8477 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8480 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8492 lt_prog_compiler_wl=
8493 lt_prog_compiler_pic=
8494 lt_prog_compiler_static=
8497 if test "$GCC" = yes; then
8498 lt_prog_compiler_wl='-Wl,'
8499 lt_prog_compiler_static='-static'
8503 # All AIX code is PIC.
8504 if test "$host_cpu" = ia64; then
8505 # AIX 5 now supports IA64 processor
8506 lt_prog_compiler_static='-Bstatic'
8513 # see comment about AmigaOS4 .so support
8514 lt_prog_compiler_pic='-fPIC'
8517 # FIXME: we need at least 68020 code to build shared libraries, but
8518 # adding the `-m68020' flag to GCC prevents building anything better,
8520 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8525 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8526 # PIC is the default for these OSes.
8529 mingw* | cygwin* | pw32* | os2* | cegcc*)
8530 # This hack is so that the source file can tell whether it is being
8531 # built for inclusion in a dll (and should export symbols for example).
8532 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8533 # (--disable-auto-import) libraries
8534 lt_prog_compiler_pic='-DDLL_EXPORT'
8537 darwin* | rhapsody*)
8538 # PIC is the default on this platform
8539 # Common symbols not allowed in MH_DYLIB files
8540 lt_prog_compiler_pic='-fno-common'
8544 # PIC is the default for Haiku.
8545 # The "-static" flag exists, but is broken.
8546 lt_prog_compiler_static=
8550 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8551 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8552 # sets the default TLS model and affects inlining.
8558 lt_prog_compiler_pic='-fPIC'
8564 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8565 # Instead, we relocate shared libraries at runtime.
8569 # Just because we use GCC doesn't mean we suddenly get shared libraries
8570 # on systems that don't support them.
8571 lt_prog_compiler_can_build_shared=no
8576 # QNX uses GNU C++, but need to define -shared option too, otherwise
8578 lt_prog_compiler_pic='-fPIC -shared'
8582 if test -d /usr/nec; then
8583 lt_prog_compiler_pic=-Kconform_pic
8588 lt_prog_compiler_pic='-fPIC'
8592 case $cc_basename in
8593 nvcc*) # Cuda Compiler Driver 2.2
8594 lt_prog_compiler_wl='-Xlinker '
8595 if test -n "$lt_prog_compiler_pic"; then
8596 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8601 # PORTME Check for flag to pass linker flags through the system compiler.
8604 lt_prog_compiler_wl='-Wl,'
8605 if test "$host_cpu" = ia64; then
8606 # AIX 5 now supports IA64 processor
8607 lt_prog_compiler_static='-Bstatic'
8609 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8613 mingw* | cygwin* | pw32* | os2* | cegcc*)
8614 # This hack is so that the source file can tell whether it is being
8615 # built for inclusion in a dll (and should export symbols for example).
8616 lt_prog_compiler_pic='-DDLL_EXPORT'
8619 hpux9* | hpux10* | hpux11*)
8620 lt_prog_compiler_wl='-Wl,'
8621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8628 lt_prog_compiler_pic='+Z'
8631 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8632 lt_prog_compiler_static='${wl}-a ${wl}archive'
8635 irix5* | irix6* | nonstopux*)
8636 lt_prog_compiler_wl='-Wl,'
8637 # PIC (with -KPIC) is the default.
8638 lt_prog_compiler_static='-non_shared'
8641 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8642 case $cc_basename in
8643 # old Intel for x86_64 which still supported -KPIC.
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_pic='-KPIC'
8647 lt_prog_compiler_static='-static'
8649 # icc used to be incompatible with GCC.
8650 # ICC 10 doesn't accept -KPIC any more.
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_pic='-fPIC'
8654 lt_prog_compiler_static='-static'
8656 # Lahey Fortran 8.1.
8658 lt_prog_compiler_wl='-Wl,'
8659 lt_prog_compiler_pic='--shared'
8660 lt_prog_compiler_static='--static'
8663 # NAG Fortran compiler
8664 lt_prog_compiler_wl='-Wl,-Wl,,'
8665 lt_prog_compiler_pic='-PIC'
8666 lt_prog_compiler_static='-Bstatic'
8668 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8669 # Portland Group compilers (*not* the Pentium gcc compiler,
8670 # which looks to be a dead project)
8671 lt_prog_compiler_wl='-Wl,'
8672 lt_prog_compiler_pic='-fpic'
8673 lt_prog_compiler_static='-Bstatic'
8676 lt_prog_compiler_wl='-Wl,'
8677 # All Alpha code is PIC.
8678 lt_prog_compiler_static='-non_shared'
8680 xl* | bgxl* | bgf* | mpixl*)
8681 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8682 lt_prog_compiler_wl='-Wl,'
8683 lt_prog_compiler_pic='-qpic'
8684 lt_prog_compiler_static='-qstaticlink'
8687 case `$CC -V 2>&1 | sed 5q` in
8688 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8689 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-Bstatic'
8692 lt_prog_compiler_wl=''
8694 *Sun\ F* | *Sun*Fortran*)
8695 lt_prog_compiler_pic='-KPIC'
8696 lt_prog_compiler_static='-Bstatic'
8697 lt_prog_compiler_wl='-Qoption ld '
8701 lt_prog_compiler_pic='-KPIC'
8702 lt_prog_compiler_static='-Bstatic'
8703 lt_prog_compiler_wl='-Wl,'
8705 *Intel*\ [CF]*Compiler*)
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_pic='-fPIC'
8708 lt_prog_compiler_static='-static'
8711 lt_prog_compiler_wl='-Wl,'
8712 lt_prog_compiler_pic='-fpic'
8713 lt_prog_compiler_static='-Bstatic'
8721 lt_prog_compiler_pic='-KPIC'
8722 lt_prog_compiler_static='-Bstatic'
8726 # QNX uses GNU C++, but need to define -shared option too, otherwise
8728 lt_prog_compiler_pic='-fPIC -shared'
8731 osf3* | osf4* | osf5*)
8732 lt_prog_compiler_wl='-Wl,'
8733 # All OSF/1 code is PIC.
8734 lt_prog_compiler_static='-non_shared'
8738 lt_prog_compiler_static='-non_shared'
8742 lt_prog_compiler_pic='-KPIC'
8743 lt_prog_compiler_static='-Bstatic'
8744 case $cc_basename in
8745 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8746 lt_prog_compiler_wl='-Qoption ld ';;
8748 lt_prog_compiler_wl='-Wl,';;
8753 lt_prog_compiler_wl='-Qoption ld '
8754 lt_prog_compiler_pic='-PIC'
8755 lt_prog_compiler_static='-Bstatic'
8758 sysv4 | sysv4.2uw2* | sysv4.3*)
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='-KPIC'
8761 lt_prog_compiler_static='-Bstatic'
8765 if test -d /usr/nec ;then
8766 lt_prog_compiler_pic='-Kconform_pic'
8767 lt_prog_compiler_static='-Bstatic'
8771 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8772 lt_prog_compiler_wl='-Wl,'
8773 lt_prog_compiler_pic='-KPIC'
8774 lt_prog_compiler_static='-Bstatic'
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_can_build_shared=no
8783 lt_prog_compiler_pic='-pic'
8784 lt_prog_compiler_static='-Bstatic'
8788 lt_prog_compiler_can_build_shared=no
8794 # For platforms which do not support PIC, -DPIC is meaningless:
8796 lt_prog_compiler_pic=
8799 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8804 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8805 if ${lt_cv_prog_compiler_pic+:} false; then :
8806 $as_echo_n "(cached) " >&6
8808 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8811 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8812 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8815 # Check to make sure the PIC flag actually works.
8817 if test -n "$lt_prog_compiler_pic"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8819 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8820 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8821 $as_echo_n "(cached) " >&6
8823 lt_cv_prog_compiler_pic_works=no
8824 ac_outfile=conftest.$ac_objext
8825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8826 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8827 # Insert the option either (1) after the last *FLAGS variable, or
8828 # (2) before a word containing "conftest.", or (3) at the end.
8829 # Note that $ac_compile itself does not contain backslashes and begins
8830 # with a dollar sign (not a hyphen), so the echo should work correctly.
8831 # The option is referenced via a variable to avoid confusing sed.
8832 lt_compile=`echo "$ac_compile" | $SED \
8833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8835 -e 's:$: $lt_compiler_flag:'`
8836 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8837 (eval "$lt_compile" 2>conftest.err)
8839 cat conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 if (exit $ac_status) && test -s "$ac_outfile"; then
8842 # The compiler can only warn and ignore the option if not recognized
8843 # So say no if there are warnings other than the usual output.
8844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8846 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8847 lt_cv_prog_compiler_pic_works=yes
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8854 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8856 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8857 case $lt_prog_compiler_pic in
8859 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8862 lt_prog_compiler_pic=
8863 lt_prog_compiler_can_build_shared=no
8879 # Check to make sure the static flag actually works.
8881 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8883 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8884 if ${lt_cv_prog_compiler_static_works+:} false; then :
8885 $as_echo_n "(cached) " >&6
8887 lt_cv_prog_compiler_static_works=no
8888 save_LDFLAGS="$LDFLAGS"
8889 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8890 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8892 # The linker can only warn and ignore the option if not recognized
8893 # So say no if there are warnings
8894 if test -s conftest.err; then
8895 # Append any errors to the config.log.
8896 cat conftest.err 1>&5
8897 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8899 if diff conftest.exp conftest.er2 >/dev/null; then
8900 lt_cv_prog_compiler_static_works=yes
8903 lt_cv_prog_compiler_static_works=yes
8907 LDFLAGS="$save_LDFLAGS"
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8911 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8913 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8916 lt_prog_compiler_static=
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8926 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8927 if ${lt_cv_prog_compiler_c_o+:} false; then :
8928 $as_echo_n "(cached) " >&6
8930 lt_cv_prog_compiler_c_o=no
8931 $RM -r conftest 2>/dev/null
8935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8937 lt_compiler_flag="-o out/conftest2.$ac_objext"
8938 # Insert the option either (1) after the last *FLAGS variable, or
8939 # (2) before a word containing "conftest.", or (3) at the end.
8940 # Note that $ac_compile itself does not contain backslashes and begins
8941 # with a dollar sign (not a hyphen), so the echo should work correctly.
8942 lt_compile=`echo "$ac_compile" | $SED \
8943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8945 -e 's:$: $lt_compiler_flag:'`
8946 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8947 (eval "$lt_compile" 2>out/conftest.err)
8949 cat out/conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8953 # The compiler can only warn and ignore the option if not recognized
8954 # So say no if there are warnings
8955 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8956 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8957 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8958 lt_cv_prog_compiler_c_o=yes
8963 # SGI C++ compiler will create directory out/ii_files/ for
8964 # template instantiation
8965 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8966 $RM out/* && rmdir out
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8973 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8981 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8982 if ${lt_cv_prog_compiler_c_o+:} false; then :
8983 $as_echo_n "(cached) " >&6
8985 lt_cv_prog_compiler_c_o=no
8986 $RM -r conftest 2>/dev/null
8990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8992 lt_compiler_flag="-o out/conftest2.$ac_objext"
8993 # Insert the option either (1) after the last *FLAGS variable, or
8994 # (2) before a word containing "conftest.", or (3) at the end.
8995 # Note that $ac_compile itself does not contain backslashes and begins
8996 # with a dollar sign (not a hyphen), so the echo should work correctly.
8997 lt_compile=`echo "$ac_compile" | $SED \
8998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9000 -e 's:$: $lt_compiler_flag:'`
9001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9002 (eval "$lt_compile" 2>out/conftest.err)
9004 cat out/conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9008 # The compiler can only warn and ignore the option if not recognized
9009 # So say no if there are warnings
9010 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9011 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9012 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9013 lt_cv_prog_compiler_c_o=yes
9018 # SGI C++ compiler will create directory out/ii_files/ for
9019 # template instantiation
9020 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9021 $RM out/* && rmdir out
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9028 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9033 hard_links="nottested"
9034 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9035 # do not overwrite the value of need_locks provided by the user
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9037 $as_echo_n "checking if we can lock with hard links... " >&6; }
9040 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9042 ln conftest.a conftest.b 2>&5 || hard_links=no
9043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9045 $as_echo "$hard_links" >&6; }
9046 if test "$hard_links" = no; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9048 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9061 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9064 allow_undefined_flag=
9065 always_export_symbols=no
9067 archive_expsym_cmds=
9068 compiler_needs_object=no
9069 enable_shared_with_static_runtimes=no
9070 export_dynamic_flag_spec=
9071 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9072 hardcode_automatic=no
9074 hardcode_direct_absolute=no
9075 hardcode_libdir_flag_spec=
9076 hardcode_libdir_separator=
9078 hardcode_shlibpath_var=unsupported
9080 link_all_deplibs=unknown
9083 old_archive_from_new_cmds=
9084 old_archive_from_expsyms_cmds=
9085 thread_safe_flag_spec=
9086 whole_archive_flag_spec=
9087 # include_expsyms should be a list of space-separated symbols to be *always*
9088 # included in the symbol list
9090 # exclude_expsyms can be an extended regexp of symbols to exclude
9091 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9092 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9093 # as well as any symbol that contains `d'.
9094 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9095 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9096 # platforms (ab)use it in PIC code, but their linkers get confused if
9097 # the symbol is explicitly referenced. Since portable code cannot
9098 # rely on this symbol name, it's probably fine to never include it in
9099 # preloaded symbol tables.
9100 # Exclude shared library initialization/finalization symbols.
9101 extract_expsyms_cmds=
9104 cygwin* | mingw* | pw32* | cegcc*)
9105 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9106 # When not using gcc, we currently assume that we are using
9107 # Microsoft Visual C++.
9108 if test "$GCC" != yes; then
9113 # we just hope/assume this is gcc and not c89 (= MSVC++)
9119 linux* | k*bsd*-gnu | gnu*)
9126 # On some targets, GNU ld is compatible enough with the native linker
9127 # that we're better off using the native interface for both.
9128 lt_use_gnu_ld_interface=no
9129 if test "$with_gnu_ld" = yes; then
9132 # The AIX port of GNU ld has always aspired to compatibility
9133 # with the native linker. However, as the warning in the GNU ld
9134 # block says, versions before 2.19.5* couldn't really create working
9135 # shared libraries, regardless of the interface used.
9136 case `$LD -v 2>&1` in
9137 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9138 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9139 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9141 lt_use_gnu_ld_interface=yes
9146 lt_use_gnu_ld_interface=yes
9151 if test "$lt_use_gnu_ld_interface" = yes; then
9152 # If archive_cmds runs LD, not CC, wlarc should be empty
9155 # Set some defaults for GNU ld with shared library support. These
9156 # are reset later if shared libraries are not supported. Putting them
9157 # here allows them to be overridden if necessary.
9158 runpath_var=LD_RUN_PATH
9159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9160 export_dynamic_flag_spec='${wl}--export-dynamic'
9161 # ancient GNU ld didn't support --whole-archive et. al.
9162 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9163 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9165 whole_archive_flag_spec=
9167 supports_anon_versioning=no
9168 case `$LD -v 2>&1` in
9169 *GNU\ gold*) supports_anon_versioning=yes ;;
9170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9173 *\ 2.11.*) ;; # other 2.11 versions
9174 *) supports_anon_versioning=yes ;;
9177 # See if GNU ld supports shared libraries.
9180 # On AIX/PPC, the GNU linker is very broken
9181 if test "$host_cpu" != ia64; then
9185 *** Warning: the GNU linker, at least up to release 2.19, is reported
9186 *** to be unable to reliably create shared libraries on AIX.
9187 *** Therefore, libtool is disabling shared libraries support. If you
9188 *** really care for shared libraries, you may want to install binutils
9189 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9190 *** You will then need to restart the configuration process.
9199 # see comment about AmigaOS4 .so support
9200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201 archive_expsym_cmds=''
9204 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)'
9205 hardcode_libdir_flag_spec='-L$libdir'
9206 hardcode_minus_L=yes
9212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9213 allow_undefined_flag=unsupported
9214 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9215 # support --undefined. This deserves some investigation. FIXME
9216 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9222 cygwin* | mingw* | pw32* | cegcc*)
9223 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9224 # as there is no search path for DLLs.
9225 hardcode_libdir_flag_spec='-L$libdir'
9226 export_dynamic_flag_spec='${wl}--export-all-symbols'
9227 allow_undefined_flag=unsupported
9228 always_export_symbols=no
9229 enable_shared_with_static_runtimes=yes
9230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9231 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9235 # If the export-symbols file already is a .def file (1st line
9236 # is EXPORTS), use it as is; otherwise, prepend...
9237 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9238 cp $export_symbols $output_objdir/$soname.def;
9240 echo EXPORTS > $output_objdir/$soname.def;
9241 cat $export_symbols >> $output_objdir/$soname.def;
9243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 link_all_deplibs=yes
9256 hardcode_shlibpath_var=no
9257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9258 export_dynamic_flag_spec='${wl}-E'
9259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9260 # Instead, shared libraries are loaded at an image base (0x10000000 by
9261 # default) and relocated if they conflict, which is a slow very memory
9262 # consuming and fragmenting process. To avoid this, we pick a random,
9263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9266 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'
9269 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9271 if test "$host_os" = linux-dietlibc; then
9272 case $cc_basename in
9273 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9276 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9277 && test "$tmp_diet" = no
9279 tmp_addflag=' $pic_flag'
9280 tmp_sharedflag='-shared'
9281 case $cc_basename,$host_cpu in
9282 pgcc*) # Portland Group C compiler
9283 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9284 tmp_addflag=' $pic_flag'
9286 pgf77* | pgf90* | pgf95* | pgfortran*)
9287 # Portland Group f77 and f90 compilers
9288 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9289 tmp_addflag=' $pic_flag -Mnomain' ;;
9290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9291 tmp_addflag=' -i_dynamic' ;;
9292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9293 tmp_addflag=' -i_dynamic -nofor_main' ;;
9294 ifc* | ifort*) # Intel Fortran compiler
9295 tmp_addflag=' -nofor_main' ;;
9296 lf95*) # Lahey Fortran 8.1
9297 whole_archive_flag_spec=
9298 tmp_sharedflag='--shared' ;;
9299 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9300 tmp_sharedflag='-qmkshrobj'
9302 nvcc*) # Cuda Compiler Driver 2.2
9303 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9304 compiler_needs_object=yes
9307 case `$CC -V 2>&1 | sed 5q` in
9308 *Sun\ C*) # Sun C 5.9
9309 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9310 compiler_needs_object=yes
9311 tmp_sharedflag='-G' ;;
9312 *Sun\ F*) # Sun Fortran 8.3
9313 tmp_sharedflag='-G' ;;
9315 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 if test "x$supports_anon_versioning" = xyes; then
9318 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9320 echo "local: *; };" >> $output_objdir/$libname.ver~
9321 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9324 case $cc_basename in
9325 xlf* | bgf* | bgxlf* | mpixlf*)
9326 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9327 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9329 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9330 if test "x$supports_anon_versioning" = xyes; then
9331 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9333 echo "local: *; };" >> $output_objdir/$libname.ver~
9334 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9343 netbsd* | netbsdelf*-gnu)
9344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9345 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9354 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9358 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9359 *** create shared libraries on Solaris systems. Therefore, libtool
9360 *** is disabling shared libraries support. We urge you to upgrade GNU
9361 *** binutils to release 2.9.1 or newer. Another option is to modify
9362 *** your PATH or compiler configuration so that the native linker is
9363 *** used, and then restart.
9366 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9367 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9375 case `$LD -v 2>&1` in
9376 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9380 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9381 *** reliably create shared libraries on SCO systems. Therefore, libtool
9382 *** is disabling shared libraries support. We urge you to upgrade GNU
9383 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9384 *** your PATH or compiler configuration so that the native linker is
9385 *** used, and then restart.
9390 # For security reasons, it is highly recommended that you always
9391 # use absolute paths for naming shared libraries, and exclude the
9392 # DT_RUNPATH tag from executables and libraries. But doing so
9393 # requires that you compile everything twice, which is a pain.
9394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_shlibpath_var=no
9413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9414 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9415 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9422 if test "$ld_shlibs" = no; then
9424 hardcode_libdir_flag_spec=
9425 export_dynamic_flag_spec=
9426 whole_archive_flag_spec=
9429 # PORTME fill in a description of your system's linker (not GNU ld)
9432 allow_undefined_flag=unsupported
9433 always_export_symbols=yes
9434 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'
9435 # Note: this linker hardcodes the directories in LIBPATH if there
9436 # are no directories specified by -L.
9437 hardcode_minus_L=yes
9438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9439 # Neither direct hardcoding nor static linking is supported with a
9441 hardcode_direct=unsupported
9446 if test "$host_cpu" = ia64; then
9447 # On IA64, the linker does run time linking by default, so we don't
9448 # have to do anything special.
9449 aix_use_runtimelinking=no
9450 exp_sym_flag='-Bexport'
9453 # If we're using GNU nm, then we don't want the "-C" option.
9454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9455 # Also, AIX nm treats weak defined symbols like other global
9456 # defined symbols, whereas GNU nm marks them as "W".
9457 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9458 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9460 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'
9462 aix_use_runtimelinking=no
9464 # Test if we are trying to use run time linking or normal
9465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9466 # need to do runtime linking.
9467 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9468 for ld_flag in $LDFLAGS; do
9469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9470 aix_use_runtimelinking=yes
9477 exp_sym_flag='-bexport'
9478 no_entry_flag='-bnoentry'
9481 # When large executables or shared objects are built, AIX ld can
9482 # have problems creating the table of contents. If linking a library
9483 # or program results in "error TOC overflow" add -mminimal-toc to
9484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9489 hardcode_direct_absolute=yes
9490 hardcode_libdir_separator=':'
9491 link_all_deplibs=yes
9492 file_list_spec='${wl}-f,'
9494 if test "$GCC" = yes; then
9495 case $host_os in aix4.[012]|aix4.[012].*)
9496 # We only want to do this on AIX 4.2 and lower, the check
9497 # below for broken collect2 doesn't work under 4.3+
9498 collect2name=`${CC} -print-prog-name=collect2`
9499 if test -f "$collect2name" &&
9500 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9502 # We have reworked collect2
9505 # We have old collect2
9506 hardcode_direct=unsupported
9507 # It fails to find uninstalled libraries when the uninstalled
9508 # path is not listed in the libpath. Setting hardcode_minus_L
9509 # to unsupported forces relinking
9510 hardcode_minus_L=yes
9511 hardcode_libdir_flag_spec='-L$libdir'
9512 hardcode_libdir_separator=
9516 shared_flag='-shared'
9517 if test "$aix_use_runtimelinking" = yes; then
9518 shared_flag="$shared_flag "'${wl}-G'
9523 if test "$host_cpu" = ia64; then
9524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9525 # chokes on -Wl,-G. The following line is correct:
9528 if test "$aix_use_runtimelinking" = yes; then
9529 shared_flag='${wl}-G'
9531 shared_flag='${wl}-bM:SRE'
9536 export_dynamic_flag_spec='${wl}-bexpall'
9537 # It seems that -bexpall does not export symbols beginning with
9538 # underscore (_), so it is better to generate a list of symbols to export.
9539 always_export_symbols=yes
9540 if test "$aix_use_runtimelinking" = yes; then
9541 # Warning - without using the other runtime loading flags (-brtl),
9542 # -berok will link without error, but may produce a broken library.
9543 allow_undefined_flag='-berok'
9544 # Determine the default libpath from the value encoded in an
9546 if test "${lt_cv_aix_libpath+set}" = set; then
9547 aix_libpath=$lt_cv_aix_libpath
9549 if ${lt_cv_aix_libpath_+:} false; then :
9550 $as_echo_n "(cached) " >&6
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9563 if ac_fn_c_try_link "$LINENO"; then :
9565 lt_aix_libpath_sed='
9566 /Import File Strings/,/^$/ {
9568 s/^0 *\([^ ]*\) *$/\1/
9572 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9573 # Check for a 64-bit object if we didn't find anything.
9574 if test -z "$lt_cv_aix_libpath_"; then
9575 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9578 rm -f core conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9580 if test -z "$lt_cv_aix_libpath_"; then
9581 lt_cv_aix_libpath_="/usr/lib:/lib"
9586 aix_libpath=$lt_cv_aix_libpath_
9589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9590 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9592 if test "$host_cpu" = ia64; then
9593 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9594 allow_undefined_flag="-z nodefs"
9595 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"
9597 # Determine the default libpath from the value encoded in an
9599 if test "${lt_cv_aix_libpath+set}" = set; then
9600 aix_libpath=$lt_cv_aix_libpath
9602 if ${lt_cv_aix_libpath_+:} false; then :
9603 $as_echo_n "(cached) " >&6
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9616 if ac_fn_c_try_link "$LINENO"; then :
9618 lt_aix_libpath_sed='
9619 /Import File Strings/,/^$/ {
9621 s/^0 *\([^ ]*\) *$/\1/
9625 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9626 # Check for a 64-bit object if we didn't find anything.
9627 if test -z "$lt_cv_aix_libpath_"; then
9628 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9631 rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633 if test -z "$lt_cv_aix_libpath_"; then
9634 lt_cv_aix_libpath_="/usr/lib:/lib"
9639 aix_libpath=$lt_cv_aix_libpath_
9642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9643 # Warning - without using the other run time loading flags,
9644 # -berok will link without error, but may produce a broken library.
9645 no_undefined_flag=' ${wl}-bernotok'
9646 allow_undefined_flag=' ${wl}-berok'
9647 if test "$with_gnu_ld" = yes; then
9648 # We only use this code for GNU lds that support --whole-archive.
9649 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9651 # Exported symbols can be pulled into shared objects from archives
9652 whole_archive_flag_spec='$convenience'
9654 archive_cmds_need_lc=yes
9655 # This is similar to how AIX traditionally builds its shared libraries.
9656 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'
9664 # see comment about AmigaOS4 .so support
9665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666 archive_expsym_cmds=''
9669 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)'
9670 hardcode_libdir_flag_spec='-L$libdir'
9671 hardcode_minus_L=yes
9677 export_dynamic_flag_spec=-rdynamic
9680 cygwin* | mingw* | pw32* | cegcc*)
9681 # When not using gcc, we currently assume that we are using
9682 # Microsoft Visual C++.
9683 # hardcode_libdir_flag_spec is actually meaningless, as there is
9684 # no search path for DLLs.
9685 case $cc_basename in
9688 hardcode_libdir_flag_spec=' '
9689 allow_undefined_flag=unsupported
9690 always_export_symbols=yes
9692 # Tell ltmain to make .lib files, not .a files.
9694 # Tell ltmain to make .dll files, not .so files.
9696 # FIXME: Setting linknames here is a bad hack.
9697 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9698 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9699 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9701 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9703 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9705 # The linker will not automatically build a static lib if we build a DLL.
9706 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9707 enable_shared_with_static_runtimes=yes
9708 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9711 old_postinstall_cmds='chmod 644 $oldlib'
9712 postlink_cmds='lt_outputfile="@OUTPUT@"~
9713 lt_tool_outputfile="@TOOL_OUTPUT@"~
9714 case $lt_outputfile in
9717 lt_outputfile="$lt_outputfile.exe"
9718 lt_tool_outputfile="$lt_tool_outputfile.exe"
9721 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9722 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9723 $RM "$lt_outputfile.manifest";
9727 # Assume MSVC wrapper
9728 hardcode_libdir_flag_spec=' '
9729 allow_undefined_flag=unsupported
9730 # Tell ltmain to make .lib files, not .a files.
9732 # Tell ltmain to make .dll files, not .so files.
9734 # FIXME: Setting linknames here is a bad hack.
9735 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9736 # The linker will automatically build a .lib file if we build a DLL.
9737 old_archive_from_new_cmds='true'
9738 # FIXME: Should let the user specify the lib program.
9739 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9740 enable_shared_with_static_runtimes=yes
9745 darwin* | rhapsody*)
9748 archive_cmds_need_lc=no
9750 hardcode_automatic=yes
9751 hardcode_shlibpath_var=unsupported
9752 if test "$lt_cv_ld_force_load" = "yes"; then
9753 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9756 whole_archive_flag_spec=''
9758 link_all_deplibs=yes
9759 allow_undefined_flag="$_lt_dar_allow_undefined"
9760 case $cc_basename in
9761 ifort*) _lt_dar_can_shared=yes ;;
9762 *) _lt_dar_can_shared=$GCC ;;
9764 if test "$_lt_dar_can_shared" = "yes"; then
9765 output_verbose_link_cmd=func_echo_all
9766 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9767 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9768 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}"
9769 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}"
9778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779 hardcode_libdir_flag_spec='-L$libdir'
9780 hardcode_shlibpath_var=no
9783 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9784 # support. Future versions do this automatically, but an explicit c++rt0.o
9785 # does not break anything, and helps significantly (at the cost of a little
9788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9789 hardcode_libdir_flag_spec='-R$libdir'
9791 hardcode_shlibpath_var=no
9794 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_minus_L=yes
9799 hardcode_shlibpath_var=no
9802 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9803 freebsd* | dragonfly*)
9804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9805 hardcode_libdir_flag_spec='-R$libdir'
9807 hardcode_shlibpath_var=no
9811 if test "$GCC" = yes; then
9812 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9814 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'
9816 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9817 hardcode_libdir_separator=:
9820 # hardcode_minus_L: Not really in the search PATH,
9821 # but as the default location of the library.
9822 hardcode_minus_L=yes
9823 export_dynamic_flag_spec='${wl}-E'
9827 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9828 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9832 if test "$with_gnu_ld" = no; then
9833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9834 hardcode_libdir_separator=:
9836 hardcode_direct_absolute=yes
9837 export_dynamic_flag_spec='${wl}-E'
9838 # hardcode_minus_L: Not really in the search PATH,
9839 # but as the default location of the library.
9840 hardcode_minus_L=yes
9845 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9848 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9860 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9867 # Older versions of the 11.00 compiler do not understand -b yet
9868 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9870 $as_echo_n "checking if $CC understands -b... " >&6; }
9871 if ${lt_cv_prog_compiler__b+:} false; then :
9872 $as_echo_n "(cached) " >&6
9874 lt_cv_prog_compiler__b=no
9875 save_LDFLAGS="$LDFLAGS"
9876 LDFLAGS="$LDFLAGS -b"
9877 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9879 # The linker can only warn and ignore the option if not recognized
9880 # So say no if there are warnings
9881 if test -s conftest.err; then
9882 # Append any errors to the config.log.
9883 cat conftest.err 1>&5
9884 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886 if diff conftest.exp conftest.er2 >/dev/null; then
9887 lt_cv_prog_compiler__b=yes
9890 lt_cv_prog_compiler__b=yes
9894 LDFLAGS="$save_LDFLAGS"
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9898 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9900 if test x"$lt_cv_prog_compiler__b" = xyes; then
9901 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9909 if test "$with_gnu_ld" = no; then
9910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911 hardcode_libdir_separator=:
9916 hardcode_shlibpath_var=no
9920 hardcode_direct_absolute=yes
9921 export_dynamic_flag_spec='${wl}-E'
9923 # hardcode_minus_L: Not really in the search PATH,
9924 # but as the default location of the library.
9925 hardcode_minus_L=yes
9931 irix5* | irix6* | nonstopux*)
9932 if test "$GCC" = yes; then
9933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9934 # Try to use the -exported_symbol ld option, if it does not
9935 # work, assume that -exports_file does not work either and
9936 # implicitly export all symbols.
9937 # This should be the same for all languages, so no per-tag cache variable.
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9939 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9940 if ${lt_cv_irix_exported_symbol+:} false; then :
9941 $as_echo_n "(cached) " >&6
9943 save_LDFLAGS="$LDFLAGS"
9944 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946 /* end confdefs.h. */
9947 int foo (void) { return 0; }
9949 if ac_fn_c_try_link "$LINENO"; then :
9950 lt_cv_irix_exported_symbol=yes
9952 lt_cv_irix_exported_symbol=no
9954 rm -f core conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 LDFLAGS="$save_LDFLAGS"
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9959 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9960 if test "$lt_cv_irix_exported_symbol" = yes; then
9961 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9967 archive_cmds_need_lc='no'
9968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969 hardcode_libdir_separator=:
9971 link_all_deplibs=yes
9974 netbsd* | netbsdelf*-gnu)
9975 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9978 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9980 hardcode_libdir_flag_spec='-R$libdir'
9982 hardcode_shlibpath_var=no
9986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9989 hardcode_libdir_separator=:
9990 hardcode_shlibpath_var=no
9997 if test -f /usr/libexec/ld.so; then
9999 hardcode_shlibpath_var=no
10000 hardcode_direct_absolute=yes
10001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10002 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10004 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10005 export_dynamic_flag_spec='${wl}-E'
10008 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10010 hardcode_libdir_flag_spec='-R$libdir'
10013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10014 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10024 hardcode_libdir_flag_spec='-L$libdir'
10025 hardcode_minus_L=yes
10026 allow_undefined_flag=unsupported
10027 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'
10028 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10032 if test "$GCC" = yes; then
10033 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10034 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10036 allow_undefined_flag=' -expect_unresolved \*'
10037 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10039 archive_cmds_need_lc='no'
10040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10041 hardcode_libdir_separator=:
10044 osf4* | osf5*) # as osf3* with the addition of -msym flag
10045 if test "$GCC" = yes; then
10046 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10047 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050 allow_undefined_flag=' -expect_unresolved \*'
10051 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10052 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~
10053 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10055 # Both c and cxx compiler support -rpath directly
10056 hardcode_libdir_flag_spec='-rpath $libdir'
10058 archive_cmds_need_lc='no'
10059 hardcode_libdir_separator=:
10063 no_undefined_flag=' -z defs'
10064 if test "$GCC" = yes; then
10066 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10068 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10070 case `$CC -V 2>&1` in
10073 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10075 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10079 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10081 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10085 hardcode_libdir_flag_spec='-R$libdir'
10086 hardcode_shlibpath_var=no
10088 solaris2.[0-5] | solaris2.[0-5].*) ;;
10090 # The compiler driver will combine and reorder linker options,
10091 # but understands `-z linker_flag'. GCC discards it without `$wl',
10092 # but is careful enough not to reorder.
10093 # Supported since Solaris 2.6 (maybe 2.5.1?)
10094 if test "$GCC" = yes; then
10095 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10097 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10101 link_all_deplibs=yes
10105 if test "x$host_vendor" = xsequent; then
10106 # Use $CC to link under sequent, because it throws in some extra .o
10107 # files that make .init and .fini sections work.
10108 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10112 hardcode_libdir_flag_spec='-L$libdir'
10113 hardcode_direct=yes
10114 hardcode_minus_L=yes
10115 hardcode_shlibpath_var=no
10119 case $host_vendor in
10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_direct=yes # is this really true???
10125 ## LD is ld it makes a PLAMLIB
10126 ## CC just makes a GrossModule.
10127 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10128 reload_cmds='$CC -r -o $output$reload_objs'
10132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10136 runpath_var='LD_RUN_PATH'
10137 hardcode_shlibpath_var=no
10141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142 hardcode_shlibpath_var=no
10143 export_dynamic_flag_spec='-Bexport'
10147 if test -d /usr/nec; then
10148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149 hardcode_shlibpath_var=no
10150 runpath_var=LD_RUN_PATH
10151 hardcode_runpath_var=yes
10156 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10157 no_undefined_flag='${wl}-z,text'
10158 archive_cmds_need_lc=no
10159 hardcode_shlibpath_var=no
10160 runpath_var='LD_RUN_PATH'
10162 if test "$GCC" = yes; then
10163 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171 sysv5* | sco3.2v5* | sco5v6*)
10172 # Note: We can NOT use -z defs as we might desire, because we do not
10173 # link with -lc, and that would cause any symbols used from libc to
10174 # always be unresolved, which means just about no library would
10175 # ever link correctly. If we're not using GNU ld we use -z text
10176 # though, which does catch some bad symbols but isn't as heavy-handed
10178 no_undefined_flag='${wl}-z,text'
10179 allow_undefined_flag='${wl}-z,nodefs'
10180 archive_cmds_need_lc=no
10181 hardcode_shlibpath_var=no
10182 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10183 hardcode_libdir_separator=':'
10184 link_all_deplibs=yes
10185 export_dynamic_flag_spec='${wl}-Bexport'
10186 runpath_var='LD_RUN_PATH'
10188 if test "$GCC" = yes; then
10189 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_libdir_flag_spec='-L$libdir'
10200 hardcode_shlibpath_var=no
10208 if test x$host_vendor = xsni; then
10210 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10211 export_dynamic_flag_spec='${wl}-Blargedynsym'
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10218 $as_echo "$ld_shlibs" >&6; }
10219 test "$ld_shlibs" = no && can_build_shared=no
10221 with_gnu_ld=$with_gnu_ld
10238 # Do we need to explicitly link libc?
10240 case "x$archive_cmds_need_lc" in
10242 # Assume -lc should be added
10243 archive_cmds_need_lc=yes
10245 if test "$enable_shared" = yes && test "$GCC" = yes; then
10246 case $archive_cmds in
10248 # FIXME: we may have to deal with multi-command sequences.
10251 # Test whether the compiler implicitly links with -lc since on some
10252 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10253 # to ld, don't add -lc before -lgcc.
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10255 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10256 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10257 $as_echo_n "(cached) " >&6
10260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10263 (eval $ac_compile) 2>&5
10265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10266 test $ac_status = 0; } 2>conftest.err; then
10269 libobjs=conftest.$ac_objext
10271 wl=$lt_prog_compiler_wl
10272 pic_flag=$lt_prog_compiler_pic
10278 lt_save_allow_undefined_flag=$allow_undefined_flag
10279 allow_undefined_flag=
10280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10281 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10284 test $ac_status = 0; }
10286 lt_cv_archive_cmds_need_lc=no
10288 lt_cv_archive_cmds_need_lc=yes
10290 allow_undefined_flag=$lt_save_allow_undefined_flag
10292 cat conftest.err 1>&5
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10298 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10299 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10458 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10460 if test "$GCC" = yes; then
10462 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10463 *) lt_awk_arg="/^libraries:/" ;;
10466 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10467 *) lt_sed_strip_eq="s,=/,/,g" ;;
10469 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10470 case $lt_search_path_spec in
10472 # if the path contains ";" then we assume it to be the separator
10473 # otherwise default to the standard path separator (i.e. ":") - it is
10474 # assumed that no part of a normal pathname contains ";" but that should
10475 # okay in the real world where ";" in dirpaths is itself problematic.
10476 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10479 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10482 # Ok, now we have the path, separated by spaces, we can step through it
10483 # and add multilib dir if necessary.
10484 lt_tmp_lt_search_path_spec=
10485 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10486 for lt_sys_path in $lt_search_path_spec; do
10487 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10488 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10490 test -d "$lt_sys_path" && \
10491 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10494 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10495 BEGIN {RS=" "; FS="/|\n";} {
10498 for (lt_i = NF; lt_i > 0; lt_i--) {
10499 if ($lt_i != "" && $lt_i != ".") {
10500 if ($lt_i == "..") {
10503 if (lt_count == 0) {
10504 lt_foo="/" $lt_i lt_foo;
10511 if (lt_foo != "") { lt_freq[lt_foo]++; }
10512 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10514 # AWK program above erroneously prepends '/' to C:/dos/paths
10517 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10518 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10520 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10522 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10524 library_names_spec=
10525 libname_spec='lib$name'
10529 postuninstall_cmds=
10533 shlibpath_overrides_runpath=unknown
10535 dynamic_linker="$host_os ld.so"
10536 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10537 need_lib_prefix=unknown
10538 hardcode_into_libs=no
10540 # when you set need_version to no, make sure it does not cause -set_version
10541 # flags to be left without arguments
10542 need_version=unknown
10546 version_type=linux # correct to gnu/linux during the next big refactor
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10548 shlibpath_var=LIBPATH
10550 # AIX 3 has no versioning support, so we append a major version to the name.
10551 soname_spec='${libname}${release}${shared_ext}$major'
10555 version_type=linux # correct to gnu/linux during the next big refactor
10558 hardcode_into_libs=yes
10559 if test "$host_cpu" = ia64; then
10560 # AIX 5 supports IA64
10561 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10562 shlibpath_var=LD_LIBRARY_PATH
10564 # With GCC up to 2.95.x, collect2 would create an import file
10565 # for dependence libraries. The import file would start with
10566 # the line `#! .'. This would cause the generated library to
10567 # depend on `.', always an invalid library. This was fixed in
10568 # development snapshots of GCC prior to 3.0.
10570 aix4 | aix4.[01] | aix4.[01].*)
10571 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10573 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10576 can_build_shared=no
10580 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10581 # soname into executable. Probably we can add versioning support to
10582 # collect2, so additional links can be useful in future.
10583 if test "$aix_use_runtimelinking" = yes; then
10584 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10585 # instead of lib<name>.a to let people know that these are not
10586 # typical AIX shared libraries.
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589 # We preserve .a as extension for shared libraries through AIX4.2
10590 # and later when we are not doing run time linking.
10591 library_names_spec='${libname}${release}.a $libname.a'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LIBPATH
10601 # Since July 2007 AmigaOS4 officially supports .so libraries.
10602 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606 library_names_spec='$libname.ixlibrary $libname.a'
10607 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10608 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10614 library_names_spec='${libname}${shared_ext}'
10615 dynamic_linker="$host_os ld.so"
10616 shlibpath_var=LIBRARY_PATH
10620 version_type=linux # correct to gnu/linux during the next big refactor
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10627 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10628 # the default ld.so.conf also contains /usr/contrib/lib and
10629 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10630 # libtool to hard-code these into programs
10633 cygwin* | mingw* | pw32* | cegcc*)
10634 version_type=windows
10639 case $GCC,$cc_basename in
10642 library_names_spec='$libname.dll.a'
10643 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10644 postinstall_cmds='base_file=`basename \${file}`~
10645 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10646 dldir=$destdir/`dirname \$dlpath`~
10647 test -d \$dldir || mkdir -p \$dldir~
10648 $install_prog $dir/$dlname \$dldir/$dlname~
10649 chmod a+x \$dldir/$dlname~
10650 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10651 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10653 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10654 dlpath=$dir/\$dldll~
10656 shlibpath_overrides_runpath=yes
10660 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10661 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10666 # MinGW DLLs use traditional 'lib' prefix
10667 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10670 # pw32 DLLs use 'pw' prefix rather than 'lib'
10671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10674 dynamic_linker='Win32 ld.exe'
10679 libname_spec='$name'
10680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10681 library_names_spec='${libname}.dll.lib'
10685 sys_lib_search_path_spec=
10688 for lt_path in $LIB
10691 # Let DOS variable expansion print the short 8.3 style file name.
10692 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10693 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10696 # Convert to MSYS style.
10697 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10700 # Convert to unix form, then to dos form, then back to unix form
10701 # but this time dos style (no spaces!) so that the unix form looks
10702 # like /cygdrive/c/PROGRA~1:/cygdr...
10703 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10704 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10705 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10708 sys_lib_search_path_spec="$LIB"
10709 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10710 # It is most probably a Windows format PATH.
10711 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10713 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10715 # FIXME: find the short name or the path components, as spaces are
10716 # common. (e.g. "Program Files" -> "PROGRA~1")
10720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10721 postinstall_cmds='base_file=`basename \${file}`~
10722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10723 dldir=$destdir/`dirname \$dlpath`~
10724 test -d \$dldir || mkdir -p \$dldir~
10725 $install_prog $dir/$dlname \$dldir/$dlname'
10726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10727 dlpath=$dir/\$dldll~
10729 shlibpath_overrides_runpath=yes
10730 dynamic_linker='Win32 link.exe'
10734 # Assume MSVC wrapper
10735 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10736 dynamic_linker='Win32 ld.exe'
10739 # FIXME: first we should search . and the directory the executable is in
10743 darwin* | rhapsody*)
10744 dynamic_linker="$host_os dyld"
10745 version_type=darwin
10748 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10749 soname_spec='${libname}${release}${major}$shared_ext'
10750 shlibpath_overrides_runpath=yes
10751 shlibpath_var=DYLD_LIBRARY_PATH
10752 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10754 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10759 version_type=linux # correct to gnu/linux during the next big refactor
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 shlibpath_var=LD_LIBRARY_PATH
10767 freebsd* | dragonfly*)
10768 # DragonFly does not have aout. When/if they implement a new
10769 # versioning mechanism, adjust this.
10770 if test -x /usr/bin/objformat; then
10771 objformat=`/usr/bin/objformat`
10774 freebsd[23].*) objformat=aout ;;
10775 *) objformat=elf ;;
10778 version_type=freebsd-$objformat
10779 case $version_type in
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10790 shlibpath_var=LD_LIBRARY_PATH
10793 shlibpath_overrides_runpath=yes
10795 freebsd3.[01]* | freebsdelf3.[01]*)
10796 shlibpath_overrides_runpath=yes
10797 hardcode_into_libs=yes
10799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10801 shlibpath_overrides_runpath=no
10802 hardcode_into_libs=yes
10804 *) # from 4.6 on, and DragonFly
10805 shlibpath_overrides_runpath=yes
10806 hardcode_into_libs=yes
10812 version_type=linux # correct to gnu/linux during the next big refactor
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 shlibpath_overrides_runpath=no
10819 hardcode_into_libs=yes
10823 version_type=linux # correct to gnu/linux during the next big refactor
10826 dynamic_linker="$host_os runtime_loader"
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 shlibpath_var=LIBRARY_PATH
10830 shlibpath_overrides_runpath=yes
10831 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10832 hardcode_into_libs=yes
10835 hpux9* | hpux10* | hpux11*)
10836 # Give a soname corresponding to the major version so that dld.sl refuses to
10837 # link against other versions.
10844 hardcode_into_libs=yes
10845 dynamic_linker="$host_os dld.so"
10846 shlibpath_var=LD_LIBRARY_PATH
10847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 if test "X$HPUX_IA64_MODE" = X32; then
10851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10859 hardcode_into_libs=yes
10860 dynamic_linker="$host_os dld.sl"
10861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10870 dynamic_linker="$host_os dld.sl"
10871 shlibpath_var=SHLIB_PATH
10872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10877 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10878 postinstall_cmds='chmod 555 $lib'
10879 # or fails outright, so override atomically:
10880 install_override_mode=555
10884 version_type=linux # correct to gnu/linux during the next big refactor
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=no
10892 hardcode_into_libs=yes
10895 irix5* | irix6* | nonstopux*)
10897 nonstopux*) version_type=nonstopux ;;
10899 if test "$lt_cv_prog_gnu_ld" = yes; then
10900 version_type=linux # correct to gnu/linux during the next big refactor
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10910 irix5* | nonstopux*)
10911 libsuff= shlibsuff=
10914 case $LD in # libtool.m4 will add one of these switches to LD
10915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10916 libsuff= shlibsuff= libmagic=32-bit;;
10917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10918 libsuff=32 shlibsuff=N32 libmagic=N32;;
10919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10920 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10921 *) libsuff= shlibsuff= libmagic=never-match;;
10925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10926 shlibpath_overrides_runpath=no
10927 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10928 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10929 hardcode_into_libs=yes
10932 # No shared lib support for Linux oldld, aout, or coff.
10933 linux*oldld* | linux*aout* | linux*coff*)
10937 # This must be glibc/ELF.
10938 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10939 version_type=linux # correct to gnu/linux during the next big refactor
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=no
10948 # Some binutils ld are patched to set DT_RUNPATH
10949 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10950 $as_echo_n "(cached) " >&6
10952 lt_cv_shlibpath_overrides_runpath=no
10953 save_LDFLAGS=$LDFLAGS
10954 save_libdir=$libdir
10955 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10956 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10970 lt_cv_shlibpath_overrides_runpath=yes
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LDFLAGS=$save_LDFLAGS
10976 libdir=$save_libdir
10980 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10982 # This implies no fast_install, which is unacceptable.
10983 # Some rework will be needed to allow for fast_install
10984 # before this can be enabled.
10985 hardcode_into_libs=yes
10987 # Append ld.so.conf contents to the search path
10988 if test -f /etc/ld.so.conf; then
10989 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;s/"//g;/^$/d' | tr '\n' ' '`
10990 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10993 # We used to test for /lib/ld.so.1 and disable shared libraries on
10994 # powerpc, because MkLinux only supported shared libraries with the
10995 # GNU dynamic linker. Since this was broken with cross compilers,
10996 # most powerpc-linux boxes support dynamic linking these days and
10997 # people can always --disable-shared, the test was removed, and we
10998 # assume the GNU/Linux dynamic linker is in use.
10999 dynamic_linker='GNU/Linux ld.so'
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=no
11010 hardcode_into_libs=yes
11011 dynamic_linker='NetBSD ld.elf_so'
11018 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11021 dynamic_linker='NetBSD (a.out) ld.so'
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 dynamic_linker='NetBSD ld.elf_so'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 shlibpath_overrides_runpath=yes
11029 hardcode_into_libs=yes
11033 version_type=linux # correct to gnu/linux during the next big refactor
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=yes
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=no
11047 hardcode_into_libs=yes
11048 dynamic_linker='ldqnx.so'
11053 sys_lib_dlsearch_path_spec="/usr/lib"
11055 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11057 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11058 *) need_version=no ;;
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11065 openbsd2.[89] | openbsd2.[89].*)
11066 shlibpath_overrides_runpath=no
11069 shlibpath_overrides_runpath=yes
11073 shlibpath_overrides_runpath=yes
11078 libname_spec='$name'
11081 library_names_spec='$libname${shared_ext} $libname.a'
11082 dynamic_linker='OS/2 ld.exe'
11083 shlibpath_var=LIBPATH
11086 osf3* | osf4* | osf5*)
11090 soname_spec='${libname}${release}${shared_ext}$major'
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11094 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11102 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 hardcode_into_libs=yes
11110 # ldd complains unless libraries are executable
11111 postinstall_cmds='chmod +x $lib'
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11117 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 shlibpath_overrides_runpath=yes
11120 if test "$with_gnu_ld" = yes; then
11127 version_type=linux # correct to gnu/linux during the next big refactor
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129 soname_spec='${libname}${release}${shared_ext}$major'
11130 shlibpath_var=LD_LIBRARY_PATH
11131 case $host_vendor in
11133 shlibpath_overrides_runpath=no
11135 runpath_var=LD_RUN_PATH
11143 shlibpath_overrides_runpath=no
11144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11150 if test -d /usr/nec ;then
11151 version_type=linux # correct to gnu/linux during the next big refactor
11152 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11153 soname_spec='$libname${shared_ext}.$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11159 version_type=freebsd-elf
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=yes
11166 hardcode_into_libs=yes
11167 if test "$with_gnu_ld" = yes; then
11168 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11170 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11173 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11177 sys_lib_dlsearch_path_spec='/usr/lib'
11181 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11182 version_type=linux # correct to gnu/linux during the next big refactor
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 shlibpath_overrides_runpath=no
11188 hardcode_into_libs=yes
11192 version_type=linux # correct to gnu/linux during the next big refactor
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 shlibpath_var=LD_LIBRARY_PATH
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11203 $as_echo "$dynamic_linker" >&6; }
11204 test "$dynamic_linker" = no && can_build_shared=no
11206 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11207 if test "$GCC" = yes; then
11208 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11211 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11212 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11214 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11215 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11310 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11312 if test -n "$hardcode_libdir_flag_spec" ||
11313 test -n "$runpath_var" ||
11314 test "X$hardcode_automatic" = "Xyes" ; then
11316 # We can hardcode non-existent directories.
11317 if test "$hardcode_direct" != no &&
11318 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11319 # have to relink, otherwise we might link with an installed library
11320 # when we should be linking with a yet-to-be-installed one
11321 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11322 test "$hardcode_minus_L" != no; then
11323 # Linking always hardcodes the temporary library directory.
11324 hardcode_action=relink
11326 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11327 hardcode_action=immediate
11330 # We cannot hardcode anything, or else we can only hardcode existing
11332 hardcode_action=unsupported
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11335 $as_echo "$hardcode_action" >&6; }
11337 if test "$hardcode_action" = relink ||
11338 test "$inherit_rpath" = yes; then
11339 # Fast installation is not supported
11340 enable_fast_install=no
11341 elif test "$shlibpath_overrides_runpath" = yes ||
11342 test "$enable_shared" = no; then
11343 # Fast installation is not necessary
11344 enable_fast_install=needless
11352 if test "x$enable_dlopen" != xyes; then
11353 enable_dlopen=unknown
11354 enable_dlopen_self=unknown
11355 enable_dlopen_self_static=unknown
11362 lt_cv_dlopen="load_add_on"
11364 lt_cv_dlopen_self=yes
11367 mingw* | pw32* | cegcc*)
11368 lt_cv_dlopen="LoadLibrary"
11373 lt_cv_dlopen="dlopen"
11378 # if libdl is installed we need to link against it
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11380 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11381 if ${ac_cv_lib_dl_dlopen+:} false; then :
11382 $as_echo_n "(cached) " >&6
11384 ac_check_lib_save_LIBS=$LIBS
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11389 /* Override any GCC internal prototype to avoid an error.
11390 Use char because int might match the return type of a GCC
11391 builtin and then its argument prototype would still apply. */
11404 if ac_fn_c_try_link "$LINENO"; then :
11405 ac_cv_lib_dl_dlopen=yes
11407 ac_cv_lib_dl_dlopen=no
11409 rm -f core conftest.err conftest.$ac_objext \
11410 conftest$ac_exeext conftest.$ac_ext
11411 LIBS=$ac_check_lib_save_LIBS
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11414 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11415 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11419 lt_cv_dlopen="dyld"
11421 lt_cv_dlopen_self=yes
11428 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11429 if test "x$ac_cv_func_shl_load" = xyes; then :
11430 lt_cv_dlopen="shl_load"
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11433 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11434 if ${ac_cv_lib_dld_shl_load+:} false; then :
11435 $as_echo_n "(cached) " >&6
11437 ac_check_lib_save_LIBS=$LIBS
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11452 return shl_load ();
11457 if ac_fn_c_try_link "$LINENO"; then :
11458 ac_cv_lib_dld_shl_load=yes
11460 ac_cv_lib_dld_shl_load=no
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11467 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11468 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11469 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11471 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11472 if test "x$ac_cv_func_dlopen" = xyes; then :
11473 lt_cv_dlopen="dlopen"
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11476 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11477 if ${ac_cv_lib_dl_dlopen+:} false; then :
11478 $as_echo_n "(cached) " >&6
11480 ac_check_lib_save_LIBS=$LIBS
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11485 /* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
11500 if ac_fn_c_try_link "$LINENO"; then :
11501 ac_cv_lib_dl_dlopen=yes
11503 ac_cv_lib_dl_dlopen=no
11505 rm -f core conftest.err conftest.$ac_objext \
11506 conftest$ac_exeext conftest.$ac_ext
11507 LIBS=$ac_check_lib_save_LIBS
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11510 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11511 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11512 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11515 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11516 if ${ac_cv_lib_svld_dlopen+:} false; then :
11517 $as_echo_n "(cached) " >&6
11519 ac_check_lib_save_LIBS=$LIBS
11520 LIBS="-lsvld $LIBS"
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11539 if ac_fn_c_try_link "$LINENO"; then :
11540 ac_cv_lib_svld_dlopen=yes
11542 ac_cv_lib_svld_dlopen=no
11544 rm -f core conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext conftest.$ac_ext
11546 LIBS=$ac_check_lib_save_LIBS
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11549 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11550 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11551 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11554 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11555 if ${ac_cv_lib_dld_dld_link+:} false; then :
11556 $as_echo_n "(cached) " >&6
11558 ac_check_lib_save_LIBS=$LIBS
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11563 /* Override any GCC internal prototype to avoid an error.
11564 Use char because int might match the return type of a GCC
11565 builtin and then its argument prototype would still apply. */
11573 return dld_link ();
11578 if ac_fn_c_try_link "$LINENO"; then :
11579 ac_cv_lib_dld_dld_link=yes
11581 ac_cv_lib_dld_dld_link=no
11583 rm -f core conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11588 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11589 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11590 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11611 if test "x$lt_cv_dlopen" != xno; then
11617 case $lt_cv_dlopen in
11619 save_CPPFLAGS="$CPPFLAGS"
11620 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11622 save_LDFLAGS="$LDFLAGS"
11623 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11626 LIBS="$lt_cv_dlopen_libs $LIBS"
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11629 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11630 if ${lt_cv_dlopen_self+:} false; then :
11631 $as_echo_n "(cached) " >&6
11633 if test "$cross_compiling" = yes; then :
11634 lt_cv_dlopen_self=cross
11636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11637 lt_status=$lt_dlunknown
11638 cat > conftest.$ac_ext <<_LT_EOF
11639 #line $LINENO "configure"
11640 #include "confdefs.h"
11649 # define LT_DLGLOBAL RTLD_GLOBAL
11652 # define LT_DLGLOBAL DL_GLOBAL
11654 # define LT_DLGLOBAL 0
11658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11659 find out it does not work in some platform. */
11660 #ifndef LT_DLLAZY_OR_NOW
11662 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11665 # define LT_DLLAZY_OR_NOW DL_LAZY
11668 # define LT_DLLAZY_OR_NOW RTLD_NOW
11671 # define LT_DLLAZY_OR_NOW DL_NOW
11673 # define LT_DLLAZY_OR_NOW 0
11680 /* When -fvisbility=hidden is used, assume the code has been annotated
11681 correspondingly for the symbols needed. */
11682 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11683 int fnord () __attribute__((visibility("default")));
11686 int fnord () { return 42; }
11689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11690 int status = $lt_dlunknown;
11694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11697 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11698 else puts (dlerror ());
11700 /* dlclose (self); */
11708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11709 (eval $ac_link) 2>&5
11711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11712 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11713 (./conftest; exit; ) >&5 2>/dev/null
11715 case x$lt_status in
11716 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11717 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11718 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11721 # compilation failed
11722 lt_cv_dlopen_self=no
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11730 $as_echo "$lt_cv_dlopen_self" >&6; }
11732 if test "x$lt_cv_dlopen_self" = xyes; then
11733 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11735 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11736 if ${lt_cv_dlopen_self_static+:} false; then :
11737 $as_echo_n "(cached) " >&6
11739 if test "$cross_compiling" = yes; then :
11740 lt_cv_dlopen_self_static=cross
11742 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11743 lt_status=$lt_dlunknown
11744 cat > conftest.$ac_ext <<_LT_EOF
11745 #line $LINENO "configure"
11746 #include "confdefs.h"
11755 # define LT_DLGLOBAL RTLD_GLOBAL
11758 # define LT_DLGLOBAL DL_GLOBAL
11760 # define LT_DLGLOBAL 0
11764 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11765 find out it does not work in some platform. */
11766 #ifndef LT_DLLAZY_OR_NOW
11768 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11771 # define LT_DLLAZY_OR_NOW DL_LAZY
11774 # define LT_DLLAZY_OR_NOW RTLD_NOW
11777 # define LT_DLLAZY_OR_NOW DL_NOW
11779 # define LT_DLLAZY_OR_NOW 0
11786 /* When -fvisbility=hidden is used, assume the code has been annotated
11787 correspondingly for the symbols needed. */
11788 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11789 int fnord () __attribute__((visibility("default")));
11792 int fnord () { return 42; }
11795 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11796 int status = $lt_dlunknown;
11800 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11803 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11804 else puts (dlerror ());
11806 /* dlclose (self); */
11814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11815 (eval $ac_link) 2>&5
11817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11818 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11819 (./conftest; exit; ) >&5 2>/dev/null
11821 case x$lt_status in
11822 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11823 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11824 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11827 # compilation failed
11828 lt_cv_dlopen_self_static=no
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11836 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11839 CPPFLAGS="$save_CPPFLAGS"
11840 LDFLAGS="$save_LDFLAGS"
11845 case $lt_cv_dlopen_self in
11846 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11847 *) enable_dlopen_self=unknown ;;
11850 case $lt_cv_dlopen_self_static in
11851 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11852 *) enable_dlopen_self_static=unknown ;;
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11875 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11876 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11877 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11878 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11880 $as_echo "yes" >&6; }
11882 # FIXME - insert some real tests, host_os isn't really good enough
11885 if test -n "$STRIP" ; then
11886 striplib="$STRIP -x"
11887 old_striplib="$STRIP -S"
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889 $as_echo "yes" >&6; }
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11913 # Report which library types will actually be built
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11915 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11917 $as_echo "$can_build_shared" >&6; }
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11920 $as_echo_n "checking whether to build shared libraries... " >&6; }
11921 test "$can_build_shared" = "no" && enable_shared=no
11923 # On AIX, shared libraries and static libraries use the same namespace, and
11924 # are all built from PIC.
11927 test "$enable_shared" = yes && enable_static=no
11928 if test -n "$RANLIB"; then
11929 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11930 postinstall_cmds='$RANLIB $lib'
11935 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11936 test "$enable_shared" = yes && enable_static=no
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11941 $as_echo "$enable_shared" >&6; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11944 $as_echo_n "checking whether to build static libraries... " >&6; }
11945 # Make sure either enable_shared or enable_static is yes.
11946 test "$enable_shared" = yes || enable_static=yes
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11948 $as_echo "$enable_static" >&6; }
11955 ac_cpp='$CPP $CPPFLAGS'
11956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11976 ac_config_commands="$ac_config_commands libtool"
11981 # Only expand once:
11993 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11994 if test -n "$ac_tool_prefix"; then
11995 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11996 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998 $as_echo_n "checking for $ac_word... " >&6; }
11999 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12000 $as_echo_n "(cached) " >&6
12002 case $PKG_CONFIG in
12004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12025 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12026 if test -n "$PKG_CONFIG"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12028 $as_echo "$PKG_CONFIG" >&6; }
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12036 if test -z "$ac_cv_path_PKG_CONFIG"; then
12037 ac_pt_PKG_CONFIG=$PKG_CONFIG
12038 # Extract the first word of "pkg-config", so it can be a program name with args.
12039 set dummy pkg-config; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041 $as_echo_n "checking for $ac_word... " >&6; }
12042 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12043 $as_echo_n "(cached) " >&6
12045 case $ac_pt_PKG_CONFIG in
12047 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12069 if test -n "$ac_pt_PKG_CONFIG"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12071 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12077 if test "x$ac_pt_PKG_CONFIG" = x; then
12080 case $cross_compiling:$ac_tool_warned in
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12084 ac_tool_warned=yes ;;
12086 PKG_CONFIG=$ac_pt_PKG_CONFIG
12089 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12093 if test -n "$PKG_CONFIG"; then
12094 _pkg_min_version=0.9.0
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12096 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12097 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099 $as_echo "yes" >&6; }
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTest" >&5
12109 $as_echo_n "checking for GTest... " >&6; }
12111 if test -n "$GTest_CFLAGS"; then
12112 pkg_cv_GTest_CFLAGS="$GTest_CFLAGS"
12113 elif test -n "$PKG_CONFIG"; then
12114 if test -n "$PKG_CONFIG" && \
12115 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
12116 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
12118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12119 test $ac_status = 0; }; then
12120 pkg_cv_GTest_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
12121 test "x$?" != "x0" && pkg_failed=yes
12128 if test -n "$GTest_LIBS"; then
12129 pkg_cv_GTest_LIBS="$GTest_LIBS"
12130 elif test -n "$PKG_CONFIG"; then
12131 if test -n "$PKG_CONFIG" && \
12132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
12133 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
12135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12136 test $ac_status = 0; }; then
12137 pkg_cv_GTest_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
12138 test "x$?" != "x0" && pkg_failed=yes
12148 if test $pkg_failed = yes; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12152 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12153 _pkg_short_errors_supported=yes
12155 _pkg_short_errors_supported=no
12157 if test $_pkg_short_errors_supported = yes; then
12158 GTest_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
12160 GTest_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
12162 # Put the nasty error message in config.log where it belongs
12163 echo "$GTest_PKG_ERRORS" >&5
12166 elif test $pkg_failed = untried; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12171 GTest_CFLAGS=$pkg_cv_GTest_CFLAGS
12172 GTest_LIBS=$pkg_cv_GTest_LIBS
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12174 $as_echo "yes" >&6; }
12177 if test x$gtest = xyes; then
12179 HAVE_GTEST_FALSE='#'
12181 HAVE_GTEST_TRUE='#'
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
12187 $as_echo_n "checking operating system... " >&6; }
12188 case "$target_os" in
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
12191 $as_echo "Win32" >&6; }
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
12196 $as_echo "Darwin" >&6; }
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
12201 $as_echo "$target_os" >&6; }
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUPNP" >&5
12209 $as_echo_n "checking for LIBGUPNP... " >&6; }
12211 if test -n "$LIBGUPNP_CFLAGS"; then
12212 pkg_cv_LIBGUPNP_CFLAGS="$LIBGUPNP_CFLAGS"
12213 elif test -n "$PKG_CONFIG"; then
12214 if test -n "$PKG_CONFIG" && \
12215 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12218 gssdp-1.0 >= 0.13.0 \\
12219 libsoup-2.4 >= 2.28.2 \\
12222 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12225 gssdp-1.0 >= 0.13.0 \
12226 libsoup-2.4 >= 2.28.2 \
12230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12231 test $ac_status = 0; }; then
12232 pkg_cv_LIBGUPNP_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.0 \
12235 gssdp-1.0 >= 0.13.0 \
12236 libsoup-2.4 >= 2.28.2 \
12238 $UUID" 2>/dev/null`
12239 test "x$?" != "x0" && pkg_failed=yes
12246 if test -n "$LIBGUPNP_LIBS"; then
12247 pkg_cv_LIBGUPNP_LIBS="$LIBGUPNP_LIBS"
12248 elif test -n "$PKG_CONFIG"; then
12249 if test -n "$PKG_CONFIG" && \
12250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12253 gssdp-1.0 >= 0.13.0 \\
12254 libsoup-2.4 >= 2.28.2 \\
12257 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12260 gssdp-1.0 >= 0.13.0 \
12261 libsoup-2.4 >= 2.28.2 \
12265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266 test $ac_status = 0; }; then
12267 pkg_cv_LIBGUPNP_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.0 \
12270 gssdp-1.0 >= 0.13.0 \
12271 libsoup-2.4 >= 2.28.2 \
12273 $UUID" 2>/dev/null`
12274 test "x$?" != "x0" && pkg_failed=yes
12284 if test $pkg_failed = yes; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12288 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12289 _pkg_short_errors_supported=yes
12291 _pkg_short_errors_supported=no
12293 if test $_pkg_short_errors_supported = yes; then
12294 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12297 gssdp-1.0 >= 0.13.0 \
12298 libsoup-2.4 >= 2.28.2 \
12302 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12305 gssdp-1.0 >= 0.13.0 \
12306 libsoup-2.4 >= 2.28.2 \
12310 # Put the nasty error message in config.log where it belongs
12311 echo "$LIBGUPNP_PKG_ERRORS" >&5
12313 as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 \
12316 gssdp-1.0 >= 0.13.0 \
12317 libsoup-2.4 >= 2.28.2 \
12319 $UUID) were not met:
12321 $LIBGUPNP_PKG_ERRORS
12323 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12324 installed software in a non-standard prefix.
12326 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12327 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12328 See the pkg-config man page for more details." "$LINENO" 5
12329 elif test $pkg_failed = untried; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12334 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12335 is in your PATH or set the PKG_CONFIG environment variable to the full
12336 path to pkg-config.
12338 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12339 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12340 See the pkg-config man page for more details.
12342 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12343 See \`config.log' for more details" "$LINENO" 5; }
12345 LIBGUPNP_CFLAGS=$pkg_cv_LIBGUPNP_CFLAGS
12346 LIBGUPNP_LIBS=$pkg_cv_LIBGUPNP_LIBS
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; }
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12355 $as_echo_n "checking for GTHREAD... " >&6; }
12357 if test -n "$GTHREAD_CFLAGS"; then
12358 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12359 elif test -n "$PKG_CONFIG"; then
12360 if test -n "$PKG_CONFIG" && \
12361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12362 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12365 test $ac_status = 0; }; then
12366 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
12367 test "x$?" != "x0" && pkg_failed=yes
12374 if test -n "$GTHREAD_LIBS"; then
12375 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12376 elif test -n "$PKG_CONFIG"; then
12377 if test -n "$PKG_CONFIG" && \
12378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12379 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12382 test $ac_status = 0; }; then
12383 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
12384 test "x$?" != "x0" && pkg_failed=yes
12394 if test $pkg_failed = yes; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12398 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12399 _pkg_short_errors_supported=yes
12401 _pkg_short_errors_supported=no
12403 if test $_pkg_short_errors_supported = yes; then
12404 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
12406 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
12408 # Put the nasty error message in config.log where it belongs
12409 echo "$GTHREAD_PKG_ERRORS" >&5
12411 as_fn_error $? "Package requirements (gthread-2.0) were not met:
12413 $GTHREAD_PKG_ERRORS
12415 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12416 installed software in a non-standard prefix.
12418 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12419 and GTHREAD_LIBS to avoid the need to call pkg-config.
12420 See the pkg-config man page for more details." "$LINENO" 5
12421 elif test $pkg_failed = untried; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12426 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12427 is in your PATH or set the PKG_CONFIG environment variable to the full
12428 path to pkg-config.
12430 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12431 and GTHREAD_LIBS to avoid the need to call pkg-config.
12432 See the pkg-config man page for more details.
12434 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12435 See \`config.log' for more details" "$LINENO" 5; }
12437 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12438 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12440 $as_echo "yes" >&6; }
12445 # Check whether --with-context_manager was given.
12446 if test "${with_context_manager+set}" = set; then :
12447 withval=$with_context_manager;
12449 with_context_manager="none"
12453 if test "x$with_context_manager" = "xnone"; then
12454 case "$target_os" in
12456 with_context_manager="linux"
12459 with_context_manager="unix"
12464 for ac_header in sys/socket.h linux/rtnetlink.h
12466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12467 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " #ifdef HAVE_SYS_SOCKET_H
12468 #include <sys/socket.h>
12472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12473 cat >>confdefs.h <<_ACEOF
12474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12483 if test "x$HAVE_NETLINK" = "xyes"; then
12485 HAVE_NETLINK_FALSE='#'
12487 HAVE_NETLINK_TRUE='#'
12488 HAVE_NETLINK_FALSE=
12493 for ac_header in linux/wireless.h
12495 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" " #ifdef HAVE_SYS_SOCKET_H
12496 #include <sys/socket.h>
12500 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
12501 cat >>confdefs.h <<_ACEOF
12502 #define HAVE_LINUX_WIRELESS_H 1
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Context Manager backend to use" >&5
12511 $as_echo_n "checking Context Manager backend to use... " >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_context_manager}" >&5
12513 $as_echo "${with_context_manager}" >&6; }
12515 if test "x$with_context_manager" = "xnetwork-manager"; then
12516 USE_NETWORK_MANAGER_TRUE=
12517 USE_NETWORK_MANAGER_FALSE='#'
12519 USE_NETWORK_MANAGER_TRUE='#'
12520 USE_NETWORK_MANAGER_FALSE=
12523 if test "x$with_context_manager" = "xnetwork-manager"; then :
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12527 $as_echo_n "checking for GIO... " >&6; }
12529 if test -n "$GIO_CFLAGS"; then
12530 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12531 elif test -n "$PKG_CONFIG"; then
12532 if test -n "$PKG_CONFIG" && \
12533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12534 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12537 test $ac_status = 0; }; then
12538 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
12539 test "x$?" != "x0" && pkg_failed=yes
12546 if test -n "$GIO_LIBS"; then
12547 pkg_cv_GIO_LIBS="$GIO_LIBS"
12548 elif test -n "$PKG_CONFIG"; then
12549 if test -n "$PKG_CONFIG" && \
12550 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12551 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12554 test $ac_status = 0; }; then
12555 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
12556 test "x$?" != "x0" && pkg_failed=yes
12566 if test $pkg_failed = yes; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568 $as_echo "no" >&6; }
12570 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12571 _pkg_short_errors_supported=yes
12573 _pkg_short_errors_supported=no
12575 if test $_pkg_short_errors_supported = yes; then
12576 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12578 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12580 # Put the nasty error message in config.log where it belongs
12581 echo "$GIO_PKG_ERRORS" >&5
12583 as_fn_error $? "Package requirements (gio-2.0 >= 2.26) were not met:
12587 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12588 installed software in a non-standard prefix.
12590 Alternatively, you may set the environment variables GIO_CFLAGS
12591 and GIO_LIBS to avoid the need to call pkg-config.
12592 See the pkg-config man page for more details." "$LINENO" 5
12593 elif test $pkg_failed = untried; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12598 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12599 is in your PATH or set the PKG_CONFIG environment variable to the full
12600 path to pkg-config.
12602 Alternatively, you may set the environment variables GIO_CFLAGS
12603 and GIO_LIBS to avoid the need to call pkg-config.
12604 See the pkg-config man page for more details.
12606 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12607 See \`config.log' for more details" "$LINENO" 5; }
12609 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
12610 GIO_LIBS=$pkg_cv_GIO_LIBS
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12612 $as_echo "yes" >&6; }
12617 if test "x$with_context_manager" = "xconnman"; then
12619 USE_CONNMAN_FALSE='#'
12621 USE_CONNMAN_TRUE='#'
12626 if test "x$with_context_manager" = "xconnman"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONNMAN" >&5
12630 $as_echo_n "checking for CONNMAN... " >&6; }
12632 if test -n "$CONNMAN_CFLAGS"; then
12633 pkg_cv_CONNMAN_CFLAGS="$CONNMAN_CFLAGS"
12634 elif test -n "$PKG_CONFIG"; then
12635 if test -n "$PKG_CONFIG" && \
12636 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12637 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12640 test $ac_status = 0; }; then
12641 pkg_cv_CONNMAN_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12642 test "x$?" != "x0" && pkg_failed=yes
12649 if test -n "$CONNMAN_LIBS"; then
12650 pkg_cv_CONNMAN_LIBS="$CONNMAN_LIBS"
12651 elif test -n "$PKG_CONFIG"; then
12652 if test -n "$PKG_CONFIG" && \
12653 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12654 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12657 test $ac_status = 0; }; then
12658 pkg_cv_CONNMAN_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12659 test "x$?" != "x0" && pkg_failed=yes
12669 if test $pkg_failed = yes; then
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12673 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12674 _pkg_short_errors_supported=yes
12676 _pkg_short_errors_supported=no
12678 if test $_pkg_short_errors_supported = yes; then
12679 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12681 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12683 # Put the nasty error message in config.log where it belongs
12684 echo "$CONNMAN_PKG_ERRORS" >&5
12686 as_fn_error $? "Package requirements (glib-2.0 >= 2.28 connman >= 0.80) were not met:
12688 $CONNMAN_PKG_ERRORS
12690 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12691 installed software in a non-standard prefix.
12693 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12694 and CONNMAN_LIBS to avoid the need to call pkg-config.
12695 See the pkg-config man page for more details." "$LINENO" 5
12696 elif test $pkg_failed = untried; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12701 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12702 is in your PATH or set the PKG_CONFIG environment variable to the full
12703 path to pkg-config.
12705 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12706 and CONNMAN_LIBS to avoid the need to call pkg-config.
12707 See the pkg-config man page for more details.
12709 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12710 See \`config.log' for more details" "$LINENO" 5; }
12712 CONNMAN_CFLAGS=$pkg_cv_CONNMAN_CFLAGS
12713 CONNMAN_LIBS=$pkg_cv_CONNMAN_LIBS
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12715 $as_echo "yes" >&6; }
12721 if test "x$with_context_manager" = "xlinux"; then :
12722 if test "x$HAVE_NETLINK" = "xno"; then :
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: No rtnetlink found, falling back to static context manager" >&5
12724 $as_echo "$as_me: No rtnetlink found, falling back to static context manager" >&6;}
12731 if test "x$USE_NETLINK" = "xyes"; then
12733 USE_NETLINK_FALSE='#'
12735 USE_NETLINK_TRUE='#'
12742 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
12746 # Check whether --enable-debug was given.
12747 if test "${enable_debug+set}" = set; then :
12748 enableval=$enable_debug;
12753 if test "x$enable_debug" = "xyes"; then
12754 CFLAGS="$CFLAGS -g -Wall -Werror"
12760 # Check whether --enable-introspection was given.
12761 if test "${enable_introspection+set}" = set; then :
12762 enableval=$enable_introspection;
12764 enable_introspection=auto
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12769 $as_echo_n "checking for gobject-introspection... " >&6; }
12771 case $enable_introspection in #(
12773 found_introspection="no (disabled, use --enable-introspection to enable)"
12776 if test -n "$PKG_CONFIG" && \
12777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12778 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12781 test $ac_status = 0; }; then
12784 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12786 if test -n "$PKG_CONFIG" && \
12787 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12788 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12791 test $ac_status = 0; }; then
12792 found_introspection=yes
12794 as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build gupnp" "$LINENO" 5
12798 if test -n "$PKG_CONFIG" && \
12799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12800 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12803 test $ac_status = 0; }; then
12804 found_introspection=yes
12806 found_introspection=no
12810 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12814 $as_echo "$found_introspection" >&6; }
12816 INTROSPECTION_SCANNER=
12817 INTROSPECTION_COMPILER=
12818 INTROSPECTION_GENERATE=
12819 INTROSPECTION_GIRDIR=
12820 INTROSPECTION_TYPELIBDIR=
12821 if test "x$found_introspection" = "xyes"; then
12822 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12823 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12824 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12825 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12826 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12827 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
12828 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
12829 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
12840 if test "x$found_introspection" = "xyes"; then
12841 HAVE_INTROSPECTION_TRUE=
12842 HAVE_INTROSPECTION_FALSE='#'
12844 HAVE_INTROSPECTION_TRUE='#'
12845 HAVE_INTROSPECTION_FALSE=
12852 if test "x$found_introspection" = "xyes"; then :
12854 # Extract the first word of "vapigen", so it can be a program name with args.
12855 set dummy vapigen; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857 $as_echo_n "checking for $ac_word... " >&6; }
12858 if ${ac_cv_path_VAPIGEN+:} false; then :
12859 $as_echo_n "(cached) " >&6
12863 ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $PATH
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12873 ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 VAPIGEN=$ac_cv_path_VAPIGEN
12885 if test -n "$VAPIGEN"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
12887 $as_echo "$VAPIGEN" >&6; }
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12894 if test -z "$VAPIGEN"; then :
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&5
12896 $as_echo "$as_me: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&2;}
12898 if test -n "0.14"; then :
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN is at least version 0.14" >&5
12900 $as_echo_n "checking $VAPIGEN is at least version 0.14... " >&6; }
12901 am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator *//'`
12903 as_arg_v2="$am__vapigen_version"
12904 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12908 $as_echo "yes" >&6; } ;; #(
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12911 $as_echo "yes" >&6; } ;; #(
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914 $as_echo "no" >&6; }
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vala API Generator 0.14 not found." >&5
12916 $as_echo "$as_me: WARNING: Vala API Generator 0.14 not found." >&2;} ;; #(
12926 if test "x$VAPIGEN" != "x"; then
12928 HAVE_VAPIGEN_FALSE='#'
12930 HAVE_VAPIGEN_TRUE='#'
12931 HAVE_VAPIGEN_FALSE=
12939 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12940 set dummy gtkdoc-check; ac_word=$2
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942 $as_echo_n "checking for $ac_word... " >&6; }
12943 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12944 $as_echo_n "(cached) " >&6
12946 case $GTKDOC_CHECK in
12948 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952 for as_dir in $PATH
12955 test -z "$as_dir" && as_dir=.
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12958 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12969 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12970 if test -n "$GTKDOC_CHECK"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12972 $as_echo "$GTKDOC_CHECK" >&6; }
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12979 for ac_prog in gtkdoc-rebase
12981 # Extract the first word of "$ac_prog", so it can be a program name with args.
12982 set dummy $ac_prog; ac_word=$2
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984 $as_echo_n "checking for $ac_word... " >&6; }
12985 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12986 $as_echo_n "(cached) " >&6
12988 case $GTKDOC_REBASE in
12990 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994 for as_dir in $PATH
12997 test -z "$as_dir" && as_dir=.
12998 for ac_exec_ext in '' $ac_executable_extensions; do
12999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13000 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13012 if test -n "$GTKDOC_REBASE"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13014 $as_echo "$GTKDOC_REBASE" >&6; }
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13021 test -n "$GTKDOC_REBASE" && break
13023 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13025 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13026 set dummy gtkdoc-mkpdf; ac_word=$2
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028 $as_echo_n "checking for $ac_word... " >&6; }
13029 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13030 $as_echo_n "(cached) " >&6
13032 case $GTKDOC_MKPDF in
13034 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $PATH
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
13043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13044 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13056 if test -n "$GTKDOC_MKPDF"; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13058 $as_echo "$GTKDOC_MKPDF" >&6; }
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 $as_echo "no" >&6; }
13067 # Check whether --with-html-dir was given.
13068 if test "${with_html_dir+set}" = set; then :
13069 withval=$with_html_dir;
13071 with_html_dir='${datadir}/gtk-doc/html'
13074 HTML_DIR="$with_html_dir"
13077 # Check whether --enable-gtk-doc was given.
13078 if test "${enable_gtk_doc+set}" = set; then :
13079 enableval=$enable_gtk_doc;
13085 if test x$enable_gtk_doc = xyes; then
13086 if test -n "$PKG_CONFIG" && \
13087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5
13088 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
13090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13091 test $ac_status = 0; }; then
13094 as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5
13096 if test "x$PACKAGE_NAME" != "xglib"; then
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13100 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13102 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13103 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13104 elif test -n "$PKG_CONFIG"; then
13105 if test -n "$PKG_CONFIG" && \
13106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
13107 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
13109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13110 test $ac_status = 0; }; then
13111 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
13112 test "x$?" != "x0" && pkg_failed=yes
13119 if test -n "$GTKDOC_DEPS_LIBS"; then
13120 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13121 elif test -n "$PKG_CONFIG"; then
13122 if test -n "$PKG_CONFIG" && \
13123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
13124 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
13126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13127 test $ac_status = 0; }; then
13128 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
13129 test "x$?" != "x0" && pkg_failed=yes
13139 if test $pkg_failed = yes; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13143 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13144 _pkg_short_errors_supported=yes
13146 _pkg_short_errors_supported=no
13148 if test $_pkg_short_errors_supported = yes; then
13149 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
13151 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
13153 # Put the nasty error message in config.log where it belongs
13154 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13156 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
13158 $GTKDOC_DEPS_PKG_ERRORS
13160 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13161 installed software in a non-standard prefix.
13163 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13164 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13165 See the pkg-config man page for more details." "$LINENO" 5
13166 elif test $pkg_failed = untried; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13171 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13172 is in your PATH or set the PKG_CONFIG environment variable to the full
13173 path to pkg-config.
13175 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13176 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13177 See the pkg-config man page for more details.
13179 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13180 See \`config.log' for more details" "$LINENO" 5; }
13182 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13183 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185 $as_echo "yes" >&6; }
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13192 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13194 $as_echo "$enable_gtk_doc" >&6; }
13196 # Check whether --enable-gtk-doc-html was given.
13197 if test "${enable_gtk_doc_html+set}" = set; then :
13198 enableval=$enable_gtk_doc_html;
13200 enable_gtk_doc_html=yes
13203 # Check whether --enable-gtk-doc-pdf was given.
13204 if test "${enable_gtk_doc_pdf+set}" = set; then :
13205 enableval=$enable_gtk_doc_pdf;
13207 enable_gtk_doc_pdf=no
13211 if test -z "$GTKDOC_MKPDF"; then
13212 enable_gtk_doc_pdf=no
13216 if test x$enable_gtk_doc = xyes; then
13217 ENABLE_GTK_DOC_TRUE=
13218 ENABLE_GTK_DOC_FALSE='#'
13220 ENABLE_GTK_DOC_TRUE='#'
13221 ENABLE_GTK_DOC_FALSE=
13224 if test x$enable_gtk_doc_html = xyes; then
13225 GTK_DOC_BUILD_HTML_TRUE=
13226 GTK_DOC_BUILD_HTML_FALSE='#'
13228 GTK_DOC_BUILD_HTML_TRUE='#'
13229 GTK_DOC_BUILD_HTML_FALSE=
13232 if test x$enable_gtk_doc_pdf = xyes; then
13233 GTK_DOC_BUILD_PDF_TRUE=
13234 GTK_DOC_BUILD_PDF_FALSE='#'
13236 GTK_DOC_BUILD_PDF_TRUE='#'
13237 GTK_DOC_BUILD_PDF_FALSE=
13240 if test -n "$LIBTOOL"; then
13241 GTK_DOC_USE_LIBTOOL_TRUE=
13242 GTK_DOC_USE_LIBTOOL_FALSE='#'
13244 GTK_DOC_USE_LIBTOOL_TRUE='#'
13245 GTK_DOC_USE_LIBTOOL_FALSE=
13248 if test -n "$GTKDOC_REBASE"; then
13249 GTK_DOC_USE_REBASE_TRUE=
13250 GTK_DOC_USE_REBASE_FALSE='#'
13252 GTK_DOC_USE_REBASE_TRUE='#'
13253 GTK_DOC_USE_REBASE_FALSE=
13258 ac_config_files="$ac_config_files Makefile libgupnp/Makefile examples/Makefile tools/Makefile tests/Makefile tests/gtest/Makefile doc/Makefile doc/version.xml vala/Makefile gupnp-1.0.pc gupnp-1.0-uninstalled.pc"
13260 cat >confcache <<\_ACEOF
13261 # This file is a shell script that caches the results of configure
13262 # tests run on this system so they can be shared between configure
13263 # scripts and configure runs, see configure's option --config-cache.
13264 # It is not useful on other systems. If it contains results you don't
13265 # want to keep, you may remove or edit it.
13267 # config.status only pays attention to the cache file if you give it
13268 # the --recheck option to rerun configure.
13270 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13271 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13272 # following values.
13276 # The following way of writing the cache mishandles newlines in values,
13277 # but we know of no workaround that is simple, portable, and efficient.
13278 # So, we kill variables containing newlines.
13279 # Ultrix sh set writes to stderr and can't be redirected directly,
13280 # and sets the high bit in the cache file unless we assign to the vars.
13282 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13283 eval ac_val=\$$ac_var
13287 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13288 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13291 _ | IFS | as_nl) ;; #(
13292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13293 *) { eval $ac_var=; unset $ac_var;} ;;
13299 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13300 *${as_nl}ac_space=\ *)
13301 # `set' does not quote correctly, so add quotes: double-quote
13302 # substitution turns \\\\ into \\, and sed turns \\ into \.
13305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13308 # `set' quotes correctly as required by POSIX, so do not add quotes.
13309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13318 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13320 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13322 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13323 if test -w "$cache_file"; then
13324 if test "x$cache_file" != "x/dev/null"; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13326 $as_echo "$as_me: updating cache $cache_file" >&6;}
13327 if test ! -f "$cache_file" || test -h "$cache_file"; then
13328 cat confcache >"$cache_file"
13330 case $cache_file in #(
13332 mv -f confcache "$cache_file"$$ &&
13333 mv -f "$cache_file"$$ "$cache_file" ;; #(
13335 mv -f confcache "$cache_file" ;;
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13341 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13346 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13347 # Let make expand exec_prefix.
13348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13350 DEFS=-DHAVE_CONFIG_H
13355 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13356 # 1. Remove the extension, and $U if already installed.
13357 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13358 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13359 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13360 # will be set to the directory where LIBOBJS objects are built.
13361 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13362 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13364 LIBOBJS=$ac_libobjs
13366 LTLIBOBJS=$ac_ltlibobjs
13369 if test -n "$EXEEXT"; then
13371 am__EXEEXT_FALSE='#'
13373 am__EXEEXT_TRUE='#'
13377 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13378 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13381 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13382 as_fn_error $? "conditional \"AMDEP\" was never defined.
13383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13385 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13386 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13389 if test -z "${HAVE_GTEST_TRUE}" && test -z "${HAVE_GTEST_FALSE}"; then
13390 as_fn_error $? "conditional \"HAVE_GTEST\" was never defined.
13391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13393 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
13394 as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
13395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13397 if test -z "${USE_NETWORK_MANAGER_TRUE}" && test -z "${USE_NETWORK_MANAGER_FALSE}"; then
13398 as_fn_error $? "conditional \"USE_NETWORK_MANAGER\" was never defined.
13399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13401 if test -z "${USE_CONNMAN_TRUE}" && test -z "${USE_CONNMAN_FALSE}"; then
13402 as_fn_error $? "conditional \"USE_CONNMAN\" was never defined.
13403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13405 if test -z "${USE_NETLINK_TRUE}" && test -z "${USE_NETLINK_FALSE}"; then
13406 as_fn_error $? "conditional \"USE_NETLINK\" was never defined.
13407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13409 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
13410 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
13411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13413 if test -z "${HAVE_VAPIGEN_TRUE}" && test -z "${HAVE_VAPIGEN_FALSE}"; then
13414 as_fn_error $? "conditional \"HAVE_VAPIGEN\" was never defined.
13415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13417 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13418 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13421 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13422 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13425 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13426 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13429 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13430 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13433 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13434 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13438 : "${CONFIG_STATUS=./config.status}"
13440 ac_clean_files_save=$ac_clean_files
13441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13443 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13445 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13447 # Generated by $as_me.
13448 # Run this file to recreate the current configuration.
13449 # Compiler output produced by configure, useful for debugging
13450 # configure, is in config.log if it exists.
13453 ac_cs_recheck=false
13456 SHELL=\${CONFIG_SHELL-$SHELL}
13459 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13460 ## -------------------- ##
13461 ## M4sh Initialization. ##
13462 ## -------------------- ##
13464 # Be more Bourne compatible
13465 DUALCASE=1; export DUALCASE # for MKS sh
13466 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13469 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13470 # is contrary to our usage. Disable this feature.
13471 alias -g '${1+"$@"}'='"$@"'
13472 setopt NO_GLOB_SUBST
13474 case `(set -o) 2>/dev/null` in #(
13486 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13487 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13488 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13489 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13490 # Prefer a ksh shell builtin over an external printf program on Solaris,
13491 # but without wasting forks for bash or zsh.
13492 if test -z "$BASH_VERSION$ZSH_VERSION" \
13493 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13494 as_echo='print -r --'
13495 as_echo_n='print -rn --'
13496 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13497 as_echo='printf %s\n'
13498 as_echo_n='printf %s'
13500 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13501 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13502 as_echo_n='/usr/ucb/echo -n'
13504 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13505 as_echo_n_body='eval
13509 expr "X$arg" : "X\\(.*\\)$as_nl";
13510 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13512 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13514 export as_echo_n_body
13515 as_echo_n='sh -c $as_echo_n_body as_echo'
13517 export as_echo_body
13518 as_echo='sh -c $as_echo_body as_echo'
13521 # The user is always right.
13522 if test "${PATH_SEPARATOR+set}" != set; then
13524 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13525 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13532 # We need space, tab and new line, in precisely that order. Quoting is
13533 # there to prevent editors from complaining about space-tab.
13534 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13535 # splitting by setting IFS to empty value.)
13538 # Find who we are. Look in the path if we contain no directory separator.
13541 *[\\/]* ) as_myself=$0 ;;
13542 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13546 test -z "$as_dir" && as_dir=.
13547 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13553 # We did not find ourselves, most probably we were run as `sh COMMAND'
13554 # in which case we are not to be found in the path.
13555 if test "x$as_myself" = x; then
13558 if test ! -f "$as_myself"; then
13559 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13563 # Unset variables that we do not need and which cause bugs (e.g. in
13564 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13565 # suppresses any "Segmentation fault" message there. '((' could
13566 # trigger a bug in pdksh 5.2.14.
13567 for as_var in BASH_ENV ENV MAIL MAILPATH
13568 do eval test x\${$as_var+set} = xset \
13569 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13585 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13586 # ----------------------------------------
13587 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13588 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13589 # script with STATUS, using 1 if that was 0.
13592 as_status=$1; test $as_status -eq 0 && as_status=1
13594 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13595 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13597 $as_echo "$as_me: error: $2" >&2
13598 as_fn_exit $as_status
13602 # as_fn_set_status STATUS
13603 # -----------------------
13604 # Set $? to STATUS, without forking.
13605 as_fn_set_status ()
13608 } # as_fn_set_status
13610 # as_fn_exit STATUS
13611 # -----------------
13612 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13616 as_fn_set_status $1
13622 # Portably unset VAR.
13625 { eval $1=; unset $1;}
13627 as_unset=as_fn_unset
13628 # as_fn_append VAR VALUE
13629 # ----------------------
13630 # Append the text in VALUE to the end of the definition contained in VAR. Take
13631 # advantage of any shell optimizations that allow amortized linear growth over
13632 # repeated appends, instead of the typical quadratic growth present in naive
13634 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13635 eval 'as_fn_append ()
13646 # as_fn_arith ARG...
13647 # ------------------
13648 # Perform arithmetic evaluation on the ARGs, and store the result in the
13649 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13650 # must be portable across $(()) and expr.
13651 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13652 eval 'as_fn_arith ()
13659 as_val=`expr "$@" || test $? -eq 1`
13664 if expr a : '\(a\)' >/dev/null 2>&1 &&
13665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13671 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13672 as_basename=basename
13677 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13683 as_me=`$as_basename -- "$0" ||
13684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13685 X"$0" : 'X\(//\)$' \| \
13686 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13688 sed '/^.*\/\([^/][^/]*\)\/*$/{
13702 # Avoid depending upon Character Ranges.
13703 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13704 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13705 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13706 as_cr_digits='0123456789'
13707 as_cr_alnum=$as_cr_Letters$as_cr_digits
13709 ECHO_C= ECHO_N= ECHO_T=
13710 case `echo -n x` in #(((((
13712 case `echo 'xy\c'` in
13713 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13715 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13722 rm -f conf$$ conf$$.exe conf$$.file
13723 if test -d conf$$.dir; then
13724 rm -f conf$$.dir/conf$$.file
13727 mkdir conf$$.dir 2>/dev/null
13729 if (echo >conf$$.file) 2>/dev/null; then
13730 if ln -s conf$$.file conf$$ 2>/dev/null; then
13732 # ... but there are two gotchas:
13733 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13734 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13735 # In both cases, we have to default to `cp -pR'.
13736 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13738 elif ln conf$$.file conf$$ 2>/dev/null; then
13746 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13747 rmdir conf$$.dir 2>/dev/null
13752 # Create "$as_dir" as a directory, including parents if necessary.
13757 -*) as_dir=./$as_dir;;
13759 test -d "$as_dir" || eval $as_mkdir_p || {
13763 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13764 *) as_qdir=$as_dir;;
13766 as_dirs="'$as_qdir' $as_dirs"
13767 as_dir=`$as_dirname -- "$as_dir" ||
13768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13769 X"$as_dir" : 'X\(//\)[^/]' \| \
13770 X"$as_dir" : 'X\(//\)$' \| \
13771 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13772 $as_echo X"$as_dir" |
13773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13777 /^X\(\/\/\)[^/].*/{
13790 test -d "$as_dir" && break
13792 test -z "$as_dirs" || eval "mkdir $as_dirs"
13793 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13797 if mkdir -p . 2>/dev/null; then
13798 as_mkdir_p='mkdir -p "$as_dir"'
13800 test -d ./-p && rmdir ./-p
13805 # as_fn_executable_p FILE
13806 # -----------------------
13807 # Test if FILE is an executable regular file.
13808 as_fn_executable_p ()
13810 test -f "$1" && test -x "$1"
13811 } # as_fn_executable_p
13812 as_test_x='test -x'
13813 as_executable_p=as_fn_executable_p
13815 # Sed expression to map a string onto a valid CPP name.
13816 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13818 # Sed expression to map a string onto a valid variable name.
13819 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13823 ## ----------------------------------- ##
13824 ## Main body of $CONFIG_STATUS script. ##
13825 ## ----------------------------------- ##
13827 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13830 # Save the log message, to keep $0 and so on meaningful, and to
13831 # report actual input values of CONFIG_FILES etc. instead of their
13832 # values after options handling.
13834 This file was extended by gupnp $as_me 0.19.1, which was
13835 generated by GNU Autoconf 2.69. Invocation command line was
13837 CONFIG_FILES = $CONFIG_FILES
13838 CONFIG_HEADERS = $CONFIG_HEADERS
13839 CONFIG_LINKS = $CONFIG_LINKS
13840 CONFIG_COMMANDS = $CONFIG_COMMANDS
13843 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13848 case $ac_config_files in *"
13849 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13852 case $ac_config_headers in *"
13853 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13858 # Files that config.status was made for.
13859 config_files="$ac_config_files"
13860 config_headers="$ac_config_headers"
13861 config_commands="$ac_config_commands"
13865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13867 \`$as_me' instantiates files and other configuration actions
13868 from templates according to the current configuration. Unless the files
13869 and actions are specified as TAGs, all are instantiated by default.
13871 Usage: $0 [OPTION]... [TAG]...
13873 -h, --help print this help, then exit
13874 -V, --version print version number and configuration settings, then exit
13875 --config print configuration, then exit
13876 -q, --quiet, --silent
13877 do not print progress messages
13878 -d, --debug don't remove temporary files
13879 --recheck update $as_me by reconfiguring in the same conditions
13880 --file=FILE[:TEMPLATE]
13881 instantiate the configuration file FILE
13882 --header=FILE[:TEMPLATE]
13883 instantiate the configuration header FILE
13885 Configuration files:
13888 Configuration headers:
13891 Configuration commands:
13894 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
13895 gupnp home page: <http://www.gupnp.org/>."
13898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13899 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13901 gupnp config.status 0.19.1
13902 configured by $0, generated by GNU Autoconf 2.69,
13903 with options \\"\$ac_cs_config\\"
13905 Copyright (C) 2012 Free Software Foundation, Inc.
13906 This config.status script is free software; the Free Software Foundation
13907 gives unlimited permission to copy, distribute and modify it."
13914 test -n "\$AWK" || AWK=awk
13917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13918 # The default lists apply if the user does not specify any file.
13924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13925 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13929 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13941 # Handling of the options.
13942 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13944 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13945 $as_echo "$ac_cs_version"; exit ;;
13946 --config | --confi | --conf | --con | --co | --c )
13947 $as_echo "$ac_cs_config"; exit ;;
13948 --debug | --debu | --deb | --de | --d | -d )
13950 --file | --fil | --fi | --f )
13953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13954 '') as_fn_error $? "missing file argument" ;;
13956 as_fn_append CONFIG_FILES " '$ac_optarg'"
13957 ac_need_defaults=false;;
13958 --header | --heade | --head | --hea )
13961 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13963 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13964 ac_need_defaults=false;;
13966 # Conflict between --help and --header
13967 as_fn_error $? "ambiguous option: \`$1'
13968 Try \`$0 --help' for more information.";;
13969 --help | --hel | -h )
13970 $as_echo "$ac_cs_usage"; exit ;;
13971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13975 # This is an error.
13976 -*) as_fn_error $? "unrecognized option: \`$1'
13977 Try \`$0 --help' for more information." ;;
13979 *) as_fn_append ac_config_targets " $1"
13980 ac_need_defaults=false ;;
13986 ac_configure_extra_args=
13988 if $ac_cs_silent; then
13990 ac_configure_extra_args="$ac_configure_extra_args --silent"
13994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13995 if \$ac_cs_recheck; then
13996 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13998 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13999 CONFIG_SHELL='$SHELL'
14000 export CONFIG_SHELL
14005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14010 ## Running $as_me. ##
14016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14020 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14023 # The HP-UX ksh and POSIX shell print the target directory to stdout
14024 # if CDPATH is set.
14025 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14027 sed_quote_subst='$sed_quote_subst'
14028 double_quote_subst='$double_quote_subst'
14029 delay_variable_subst='$delay_variable_subst'
14030 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14031 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14032 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14033 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14034 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14035 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14036 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14037 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14038 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14039 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14040 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14041 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14042 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14043 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14044 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14045 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14046 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14047 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14048 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14049 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14050 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14051 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14052 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14053 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14054 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14055 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14056 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14057 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14058 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14059 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14060 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14061 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14062 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14063 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14064 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14065 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14066 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14067 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14068 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14069 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14070 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14071 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14072 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14073 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14074 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14075 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14076 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14077 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14078 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14079 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14080 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14081 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14082 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14083 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14084 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14085 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14086 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14087 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14088 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14089 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14090 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14091 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14092 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14093 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14094 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14095 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14096 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14097 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14098 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14099 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14100 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14101 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14102 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14103 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14104 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14105 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14106 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14107 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14108 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14109 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14110 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14111 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14112 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14113 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14114 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14115 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14116 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14117 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14118 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14119 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14120 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14121 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14122 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14123 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14124 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14125 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14126 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14127 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14128 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14129 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14130 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14131 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14132 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14133 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14134 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14135 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14136 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14137 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14138 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14139 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14140 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14141 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14142 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14143 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14144 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14145 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14146 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14147 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14148 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14149 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14150 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14151 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14152 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14153 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14154 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14155 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14156 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14157 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14158 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14159 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14162 LTCFLAGS='$LTCFLAGS'
14163 compiler='$compiler_DEFAULT'
14165 # A function that is used when there is no print builtin or printf.
14166 func_fallback_echo ()
14168 eval 'cat <<_LTECHO_EOF
14173 # Quote evaled strings.
14188 deplibs_check_method \
14193 sharedlib_from_linklib_cmd \
14196 archiver_list_spec \
14202 lt_cv_sys_global_symbol_pipe \
14203 lt_cv_sys_global_symbol_to_cdecl \
14204 lt_cv_sys_global_symbol_to_c_name_address \
14205 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14206 nm_file_list_spec \
14207 lt_prog_compiler_no_builtin_flag \
14208 lt_prog_compiler_pic \
14209 lt_prog_compiler_wl \
14210 lt_prog_compiler_static \
14211 lt_cv_prog_compiler_c_o \
14220 export_dynamic_flag_spec \
14221 whole_archive_flag_spec \
14222 compiler_needs_object \
14224 allow_undefined_flag \
14225 no_undefined_flag \
14226 hardcode_libdir_flag_spec \
14227 hardcode_libdir_separator \
14231 variables_saved_for_relink \
14233 library_names_spec \
14235 install_override_mode \
14239 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14240 *[\\\\\\\`\\"\\\$]*)
14241 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14244 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14249 # Double-quote double-evaled strings.
14250 for var in reload_cmds \
14251 old_postinstall_cmds \
14252 old_postuninstall_cmds \
14254 extract_expsyms_cmds \
14255 old_archive_from_new_cmds \
14256 old_archive_from_expsyms_cmds \
14258 archive_expsym_cmds \
14260 module_expsym_cmds \
14261 export_symbols_cmds \
14265 postuninstall_cmds \
14267 sys_lib_search_path_spec \
14268 sys_lib_dlsearch_path_spec; do
14269 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14270 *[\\\\\\\`\\"\\\$]*)
14271 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14274 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14279 ac_aux_dir='$ac_aux_dir'
14280 xsi_shell='$xsi_shell'
14281 lt_shell_append='$lt_shell_append'
14283 # See if we are running on zsh, and set the options which allow our
14284 # commands through without removal of \ escapes INIT.
14285 if test -n "\${ZSH_VERSION+set}" ; then
14286 setopt NO_GLOB_SUBST
14292 TIMESTAMP='$TIMESTAMP'
14301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14303 # Handling of arguments.
14304 for ac_config_target in $ac_config_targets
14306 case $ac_config_target in
14307 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14308 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14309 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14310 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14311 "libgupnp/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp/Makefile" ;;
14312 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14313 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14314 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14315 "tests/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gtest/Makefile" ;;
14316 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14317 "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
14318 "vala/Makefile") CONFIG_FILES="$CONFIG_FILES vala/Makefile" ;;
14319 "gupnp-1.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0.pc" ;;
14320 "gupnp-1.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0-uninstalled.pc" ;;
14322 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14327 # If the user did not use the arguments to specify the items to instantiate,
14328 # then the envvar interface is used. Set only those that are not.
14329 # We use the long form for the default assignment because of an extremely
14330 # bizarre bug on SunOS 4.1.3.
14331 if $ac_need_defaults; then
14332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14334 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14337 # Have a temporary directory for convenience. Make it in the build tree
14338 # simply because there is no reason against having it here, and in addition,
14339 # creating and moving files from /tmp can sometimes cause problems.
14340 # Hook for its removal unless debugging.
14341 # Note that there is a small window in which the directory will not be cleaned:
14342 # after its creation but before its name has been assigned to `$tmp'.
14346 trap 'exit_status=$?
14347 : "${ac_tmp:=$tmp}"
14348 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14350 trap 'as_fn_exit 1' 1 2 13 15
14352 # Create a (secure) tmp directory for tmp files.
14355 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14359 tmp=./conf$$-$RANDOM
14360 (umask 077 && mkdir "$tmp")
14361 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14364 # Set up the scripts for CONFIG_FILES section.
14365 # No need to generate them if there are no CONFIG_FILES.
14366 # This happens for instance with `./config.status config.h'.
14367 if test -n "$CONFIG_FILES"; then
14370 ac_cr=`echo X | tr X '\015'`
14371 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14372 # But we know of no other shell where ac_cr would be empty at this
14373 # point, so we can use a bashism as a fallback.
14374 if test "x$ac_cr" = x; then
14375 eval ac_cr=\$\'\\r\'
14377 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14378 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14381 ac_cs_awk_cr=$ac_cr
14384 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14389 echo "cat >conf$$subs.awk <<_ACEOF" &&
14390 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14392 } >conf$$subs.sh ||
14393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14394 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14396 for ac_last_try in false false false false false :; do
14397 . ./conf$$subs.sh ||
14398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14400 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14401 if test $ac_delim_n = $ac_delim_num; then
14403 elif $ac_last_try; then
14404 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14409 rm -f conf$$subs.sh
14411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14412 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14416 s/^/S["/; s/!.*/"]=/
14426 s/\(.\{148\}\)..*/\1/
14428 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14440 s/\(.\{148\}\)..*/\1/
14442 s/["\\]/\\&/g; s/^/"/; s/$/"/
14446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14451 ' <conf$$subs.awk | sed '
14456 ' >>$CONFIG_STATUS || ac_write_fail=1
14457 rm -f conf$$subs.awk
14458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14460 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14461 for (key in S) S_is_set[key] = 1
14467 nfields = split(line, field, "@")
14469 len = length(field[1])
14470 for (i = 2; i < nfields; i++) {
14472 keylen = length(key)
14473 if (S_is_set[key]) {
14475 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14476 len += length(value) + length(field[++i])
14487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14488 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14489 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14492 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14493 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14496 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14497 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14498 # trailing colons and then remove the whole line if VPATH becomes empty
14499 # (actually we leave an empty line to preserve line numbers).
14500 if test "x$srcdir" = x.; then
14501 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14520 fi # test -n "$CONFIG_FILES"
14522 # Set up the scripts for CONFIG_HEADERS section.
14523 # No need to generate them if there are no CONFIG_HEADERS.
14524 # This happens for instance with `./config.status Makefile'.
14525 if test -n "$CONFIG_HEADERS"; then
14526 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14530 # Transform confdefs.h into an awk script `defines.awk', embedded as
14531 # here-document in config.status, that substitutes the proper values into
14532 # config.h.in to produce config.h.
14534 # Create a delimiter string that does not exist in confdefs.h, to ease
14535 # handling of long lines.
14537 for ac_last_try in false false :; do
14538 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14539 if test -z "$ac_tt"; then
14541 elif $ac_last_try; then
14542 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14548 # For the awk script, D is an array of macro values keyed by name,
14549 # likewise P contains macro parameters if any. Preserve backslash
14550 # newline sequences.
14552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14554 s/.\{148\}/&'"$ac_delim"'/g
14557 s/^[ ]*#[ ]*define[ ][ ]*/ /
14564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14566 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14571 D["\1"]=" \3\\\\\\n"\\/p
14573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14578 s/.\{148\}/&'"$ac_delim"'/g
14583 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14586 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14588 ' <confdefs.h | sed '
14589 s/'"$ac_delim"'/"\\\
14590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14593 for (key in D) D_is_set[key] = 1
14596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14598 split(line, arg, " ")
14599 if (arg[1] == "#") {
14603 defundef = substr(arg[1], 2)
14606 split(mac1, mac2, "(") #)
14608 prefix = substr(line, 1, index(line, defundef) - 1)
14609 if (D_is_set[macro]) {
14610 # Preserve the white space surrounding the "#".
14611 print prefix "define", macro P[macro] D[macro]
14614 # Replace #undef with comments. This is necessary, for example,
14615 # in the case of _POSIX_SOURCE, which is predefined and required
14616 # on some systems where configure will not decide to define it.
14617 if (defundef == "undef") {
14618 print "/*", prefix defundef, macro, "*/"
14626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14627 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14628 fi # test -n "$CONFIG_HEADERS"
14631 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14636 :[FHLC]) ac_mode=$ac_tag; continue;;
14638 case $ac_mode$ac_tag in
14640 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14641 :[FH]-) ac_tag=-:-;;
14642 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14659 -) ac_f="$ac_tmp/stdin";;
14660 *) # Look for the file first in the build tree, then in the source tree
14661 # (if the path is not absolute). The absolute path cannot be DOS-style,
14662 # because $ac_f cannot contain `:'.
14666 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14668 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14670 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14671 as_fn_append ac_file_inputs " '$ac_f'"
14674 # Let's still pretend it is `configure' which instantiates (i.e., don't
14675 # use $as_me), people would be surprised to read:
14676 # /* config.h. Generated by config.status. */
14677 configure_input='Generated from '`
14678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14680 if test x"$ac_file" != x-; then
14681 configure_input="$ac_file. $configure_input"
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14683 $as_echo "$as_me: creating $ac_file" >&6;}
14685 # Neutralize special characters interpreted by sed in replacement strings.
14686 case $configure_input in #(
14687 *\&* | *\|* | *\\* )
14688 ac_sed_conf_input=`$as_echo "$configure_input" |
14689 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14690 *) ac_sed_conf_input=$configure_input;;
14694 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14700 ac_dir=`$as_dirname -- "$ac_file" ||
14701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14702 X"$ac_file" : 'X\(//\)[^/]' \| \
14703 X"$ac_file" : 'X\(//\)$' \| \
14704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14705 $as_echo X"$ac_file" |
14706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14710 /^X\(\/\/\)[^/].*/{
14723 as_dir="$ac_dir"; as_fn_mkdir_p
14727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14730 # A ".." for each directory in $ac_dir_suffix.
14731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14732 case $ac_top_builddir_sub in
14733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14737 ac_abs_top_builddir=$ac_pwd
14738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14739 # for backward compatibility:
14740 ac_top_builddir=$ac_top_build_prefix
14743 .) # We are building in place.
14745 ac_top_srcdir=$ac_top_builddir_sub
14746 ac_abs_top_srcdir=$ac_pwd ;;
14747 [\\/]* | ?:[\\/]* ) # Absolute name.
14748 ac_srcdir=$srcdir$ac_dir_suffix;
14749 ac_top_srcdir=$srcdir
14750 ac_abs_top_srcdir=$srcdir ;;
14751 *) # Relative name.
14752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14753 ac_top_srcdir=$ac_top_build_prefix$srcdir
14754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14766 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14767 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14769 ac_MKDIR_P=$MKDIR_P
14771 [\\/$]* | ?:[\\/]* ) ;;
14772 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14777 # If the template does not know about datarootdir, expand it.
14778 # FIXME: This hack should be removed a few years after 2.60.
14779 ac_datarootdir_hack=; ac_datarootdir_seen=
14790 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14791 *datarootdir*) ac_datarootdir_seen=yes;;
14792 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14794 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14797 ac_datarootdir_hack='
14798 s&@datadir@&$datadir&g
14799 s&@docdir@&$docdir&g
14800 s&@infodir@&$infodir&g
14801 s&@localedir@&$localedir&g
14802 s&@mandir@&$mandir&g
14803 s&\\\${datarootdir}&$datarootdir&g' ;;
14807 # Neutralize VPATH when `$srcdir' = `.'.
14808 # Shell code in configure.ac might set extrasub.
14809 # FIXME: do we really want to maintain this feature?
14810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14811 ac_sed_extra="$ac_vpsub
14814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14817 s|@configure_input@|$ac_sed_conf_input|;t t
14818 s&@top_builddir@&$ac_top_builddir_sub&;t t
14819 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14820 s&@srcdir@&$ac_srcdir&;t t
14821 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14822 s&@top_srcdir@&$ac_top_srcdir&;t t
14823 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14824 s&@builddir@&$ac_builddir&;t t
14825 s&@abs_builddir@&$ac_abs_builddir&;t t
14826 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14827 s&@INSTALL@&$ac_INSTALL&;t t
14828 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14829 $ac_datarootdir_hack
14831 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14832 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14834 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14835 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14836 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14837 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14839 which seems to be undefined. Please make sure it is defined" >&5
14840 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14841 which seems to be undefined. Please make sure it is defined" >&2;}
14843 rm -f "$ac_tmp/stdin"
14845 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14846 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14854 if test x"$ac_file" != x-; then
14856 $as_echo "/* $configure_input */" \
14857 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14858 } >"$ac_tmp/config.h" \
14859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14860 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14862 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14865 mv "$ac_tmp/config.h" "$ac_file" \
14866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14869 $as_echo "/* $configure_input */" \
14870 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14871 || as_fn_error $? "could not create -" "$LINENO" 5
14873 # Compute "$ac_file"'s index in $config_headers.
14876 for _am_header in $config_headers :; do
14877 case $_am_header in
14878 $_am_arg | $_am_arg:* )
14881 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14884 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14885 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14886 X"$_am_arg" : 'X\(//\)[^/]' \| \
14887 X"$_am_arg" : 'X\(//\)$' \| \
14888 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14889 $as_echo X"$_am_arg" |
14890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14894 /^X\(\/\/\)[^/].*/{
14906 s/.*/./; q'`/stamp-h$_am_stamp_count
14909 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14910 $as_echo "$as_me: executing $ac_file commands" >&6;}
14915 case $ac_file$ac_mode in
14916 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14917 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14918 # are listed without --file. Let's play safe and only enable the eval
14919 # if we detect the quoting.
14920 case $CONFIG_FILES in
14921 *\'*) eval set x "$CONFIG_FILES" ;;
14922 *) set x $CONFIG_FILES ;;
14927 # Strip MF so we end up with the name of the file.
14928 mf=`echo "$mf" | sed -e 's/:.*$//'`
14929 # Check whether this is an Automake generated Makefile or not.
14930 # We used to match only the files named `Makefile.in', but
14931 # some people rename them; so instead we look at the file content.
14932 # Grep'ing the first line is not enough: some people post-process
14933 # each Makefile.in and add a new line on top of each file to say so.
14934 # Grep'ing the whole file is not good either: AIX grep has a line
14935 # limit of 2048, but all sed's we know have understand at least 4000.
14936 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14937 dirpart=`$as_dirname -- "$mf" ||
14938 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14939 X"$mf" : 'X\(//\)[^/]' \| \
14940 X"$mf" : 'X\(//\)$' \| \
14941 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14947 /^X\(\/\/\)[^/].*/{
14963 # Extract the definition of DEPDIR, am__include, and am__quote
14964 # from the Makefile without running `make'.
14965 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14966 test -z "$DEPDIR" && continue
14967 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14968 test -z "am__include" && continue
14969 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14970 # When using ansi2knr, U may be empty or an underscore; expand it
14971 U=`sed -n 's/^U = //p' < "$mf"`
14972 # Find all dependency output files, they are included files with
14973 # $(DEPDIR) in their names. We invoke sed twice because it is the
14974 # simplest approach to changing $(DEPDIR) to its actual value in the
14976 for file in `sed -n "
14977 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14978 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14979 # Make sure the directory exists.
14980 test -f "$dirpart/$file" && continue
14981 fdir=`$as_dirname -- "$file" ||
14982 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14983 X"$file" : 'X\(//\)[^/]' \| \
14984 X"$file" : 'X\(//\)$' \| \
14985 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14986 $as_echo X"$file" |
14987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14991 /^X\(\/\/\)[^/].*/{
15004 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15005 # echo "creating $dirpart/$file"
15006 echo '# dummy' > "$dirpart/$file"
15013 # See if we are running on zsh, and set the options which allow our
15014 # commands through without removal of \ escapes.
15015 if test -n "${ZSH_VERSION+set}" ; then
15016 setopt NO_GLOB_SUBST
15019 cfgfile="${ofile}T"
15020 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15023 cat <<_LT_EOF >> "$cfgfile"
15026 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15027 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15029 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15031 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15032 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15034 # Written by Gordon Matzigkeit, 1996
15036 # This file is part of GNU Libtool.
15038 # GNU Libtool is free software; you can redistribute it and/or
15039 # modify it under the terms of the GNU General Public License as
15040 # published by the Free Software Foundation; either version 2 of
15041 # the License, or (at your option) any later version.
15043 # As a special exception to the GNU General Public License,
15044 # if you distribute this file as part of a program or library that
15045 # is built using GNU Libtool, you may include this file under the
15046 # same distribution terms that you use for the rest of that program.
15048 # GNU Libtool is distributed in the hope that it will be useful,
15049 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15050 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15051 # GNU General Public License for more details.
15053 # You should have received a copy of the GNU General Public License
15054 # along with GNU Libtool; see the file COPYING. If not, a copy
15055 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15056 # obtained by writing to the Free Software Foundation, Inc.,
15057 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15060 # The names of the tagged configurations supported by this script.
15063 # ### BEGIN LIBTOOL CONFIG
15065 # Which release of libtool.m4 was used?
15066 macro_version=$macro_version
15067 macro_revision=$macro_revision
15069 # Whether or not to build shared libraries.
15070 build_libtool_libs=$enable_shared
15072 # Whether or not to build static libraries.
15073 build_old_libs=$enable_static
15075 # What type of objects to build.
15078 # Whether or not to optimize for fast installation.
15079 fast_install=$enable_fast_install
15081 # Shell to use when invoking shell scripts.
15084 # An echo program that protects backslashes.
15087 # The PATH separator for the build system.
15088 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15091 host_alias=$host_alias
15095 # The build system.
15096 build_alias=$build_alias
15100 # A sed program that does not truncate output.
15103 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15104 Xsed="\$SED -e 1s/^X//"
15106 # A grep program that handles long lines.
15112 # A literal string matcher.
15115 # A BSD- or MS-compatible name lister.
15118 # Whether we need soft or hard links.
15121 # What is the maximum length of a command?
15122 max_cmd_len=$max_cmd_len
15124 # Object file suffix (normally "o").
15127 # Executable file suffix (normally "").
15130 # whether the shell understands "unset".
15133 # turn spaces into newlines.
15136 # turn newlines into spaces.
15139 # convert \$build file names to \$host format.
15140 to_host_file_cmd=$lt_cv_to_host_file_cmd
15142 # convert \$build files to toolchain format.
15143 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15145 # An object symbol dumper.
15146 OBJDUMP=$lt_OBJDUMP
15148 # Method to check whether dependent libraries are shared objects.
15149 deplibs_check_method=$lt_deplibs_check_method
15151 # Command to use when deplibs_check_method = "file_magic".
15152 file_magic_cmd=$lt_file_magic_cmd
15154 # How to find potential files when deplibs_check_method = "file_magic".
15155 file_magic_glob=$lt_file_magic_glob
15157 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15158 want_nocaseglob=$lt_want_nocaseglob
15160 # DLL creation program.
15161 DLLTOOL=$lt_DLLTOOL
15163 # Command to associate shared and link libraries.
15164 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15169 # Flags to create an archive.
15170 AR_FLAGS=$lt_AR_FLAGS
15172 # How to feed a file listing to the archiver.
15173 archiver_list_spec=$lt_archiver_list_spec
15175 # A symbol stripping program.
15178 # Commands used to install an old-style archive.
15180 old_postinstall_cmds=$lt_old_postinstall_cmds
15181 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15183 # Whether to use a lock for old archive extraction.
15184 lock_old_archive_extraction=$lock_old_archive_extraction
15189 # LTCC compiler flags.
15190 LTCFLAGS=$lt_CFLAGS
15192 # Take the output of nm and produce a listing of raw symbols and C names.
15193 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15195 # Transform the output of nm in a proper C declaration.
15196 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15198 # Transform the output of nm in a C name address pair.
15199 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15201 # Transform the output of nm in a C name address pair when lib prefix is needed.
15202 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15204 # Specify filename containing input files for \$NM.
15205 nm_file_list_spec=$lt_nm_file_list_spec
15207 # The root where to search for dependent libraries,and in which our libraries should be installed.
15208 lt_sysroot=$lt_sysroot
15210 # The name of the directory that contains temporary libtool files.
15213 # Used to examine libraries when file_magic_cmd begins with "file".
15214 MAGIC_CMD=$MAGIC_CMD
15216 # Must we lock files when doing compilation?
15217 need_locks=$lt_need_locks
15220 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15222 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15223 DSYMUTIL=$lt_DSYMUTIL
15225 # Tool to change global to local symbols on Mac OS X.
15228 # Tool to manipulate fat objects and archives on Mac OS X.
15231 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15234 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15235 OTOOL64=$lt_OTOOL64
15237 # Old archive suffix (normally "a").
15240 # Shared library suffix (normally ".so").
15241 shrext_cmds=$lt_shrext_cmds
15243 # The commands to extract the exported symbol list from a shared archive.
15244 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15246 # Variables whose values should be saved in libtool wrapper scripts and
15247 # restored at link time.
15248 variables_saved_for_relink=$lt_variables_saved_for_relink
15250 # Do we need the "lib" prefix for modules?
15251 need_lib_prefix=$need_lib_prefix
15253 # Do we need a version for libraries?
15254 need_version=$need_version
15256 # Library versioning type.
15257 version_type=$version_type
15259 # Shared library runtime path variable.
15260 runpath_var=$runpath_var
15262 # Shared library path variable.
15263 shlibpath_var=$shlibpath_var
15265 # Is shlibpath searched before the hard-coded library search path?
15266 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15268 # Format of library name prefix.
15269 libname_spec=$lt_libname_spec
15271 # List of archive names. First name is the real one, the rest are links.
15272 # The last name is the one that the linker finds with -lNAME
15273 library_names_spec=$lt_library_names_spec
15275 # The coded name of the library, if different from the real name.
15276 soname_spec=$lt_soname_spec
15278 # Permission mode override for installation of shared libraries.
15279 install_override_mode=$lt_install_override_mode
15281 # Command to use after installation of a shared archive.
15282 postinstall_cmds=$lt_postinstall_cmds
15284 # Command to use after uninstallation of a shared archive.
15285 postuninstall_cmds=$lt_postuninstall_cmds
15287 # Commands used to finish a libtool library installation in a directory.
15288 finish_cmds=$lt_finish_cmds
15290 # As "finish_cmds", except a single script fragment to be evaled but
15292 finish_eval=$lt_finish_eval
15294 # Whether we should hardcode library paths into libraries.
15295 hardcode_into_libs=$hardcode_into_libs
15297 # Compile-time system search path for libraries.
15298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15300 # Run-time system search path for libraries.
15301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15303 # Whether dlopen is supported.
15304 dlopen_support=$enable_dlopen
15306 # Whether dlopen of programs is supported.
15307 dlopen_self=$enable_dlopen_self
15309 # Whether dlopen of statically linked programs is supported.
15310 dlopen_self_static=$enable_dlopen_self_static
15312 # Commands to strip libraries.
15313 old_striplib=$lt_old_striplib
15314 striplib=$lt_striplib
15317 # The linker used to build libraries.
15320 # How to create reloadable object files.
15321 reload_flag=$lt_reload_flag
15322 reload_cmds=$lt_reload_cmds
15324 # Commands used to build an old-style archive.
15325 old_archive_cmds=$lt_old_archive_cmds
15327 # A language specific compiler.
15330 # Is the compiler the GNU compiler?
15333 # Compiler flag to turn off builtin functions.
15334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15336 # Additional compiler flags for building library objects.
15337 pic_flag=$lt_lt_prog_compiler_pic
15339 # How to pass a linker flag through the compiler.
15340 wl=$lt_lt_prog_compiler_wl
15342 # Compiler flag to prevent dynamic linking.
15343 link_static_flag=$lt_lt_prog_compiler_static
15345 # Does compiler simultaneously support -c and -o options?
15346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15348 # Whether or not to add -lc for building shared libraries.
15349 build_libtool_need_lc=$archive_cmds_need_lc
15351 # Whether or not to disallow shared libs when runtime libs are static.
15352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15354 # Compiler flag to allow reflexive dlopens.
15355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15357 # Compiler flag to generate shared objects directly from archives.
15358 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15360 # Whether the compiler copes with passing no objects directly.
15361 compiler_needs_object=$lt_compiler_needs_object
15363 # Create an old-style archive from a shared archive.
15364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15366 # Create a temporary old-style archive to link instead of a shared archive.
15367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15369 # Commands used to build a shared archive.
15370 archive_cmds=$lt_archive_cmds
15371 archive_expsym_cmds=$lt_archive_expsym_cmds
15373 # Commands used to build a loadable module if different from building
15374 # a shared archive.
15375 module_cmds=$lt_module_cmds
15376 module_expsym_cmds=$lt_module_expsym_cmds
15378 # Whether we are building with GNU ld or not.
15379 with_gnu_ld=$lt_with_gnu_ld
15381 # Flag that allows shared libraries with undefined symbols to be built.
15382 allow_undefined_flag=$lt_allow_undefined_flag
15384 # Flag that enforces no undefined symbols.
15385 no_undefined_flag=$lt_no_undefined_flag
15387 # Flag to hardcode \$libdir into a binary during linking.
15388 # This must work even if \$libdir does not exist
15389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15391 # Whether we need a single "-rpath" flag with a separated argument.
15392 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15394 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15395 # DIR into the resulting binary.
15396 hardcode_direct=$hardcode_direct
15398 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15399 # DIR into the resulting binary and the resulting library dependency is
15400 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15401 # library is relocated.
15402 hardcode_direct_absolute=$hardcode_direct_absolute
15404 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15405 # into the resulting binary.
15406 hardcode_minus_L=$hardcode_minus_L
15408 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15409 # into the resulting binary.
15410 hardcode_shlibpath_var=$hardcode_shlibpath_var
15412 # Set to "yes" if building a shared library automatically hardcodes DIR
15413 # into the library and all subsequent libraries and executables linked
15415 hardcode_automatic=$hardcode_automatic
15417 # Set to yes if linker adds runtime paths of dependent libraries
15418 # to runtime path list.
15419 inherit_rpath=$inherit_rpath
15421 # Whether libtool must link a program against all its dependency libraries.
15422 link_all_deplibs=$link_all_deplibs
15424 # Set to "yes" if exported symbols are required.
15425 always_export_symbols=$always_export_symbols
15427 # The commands to list exported symbols.
15428 export_symbols_cmds=$lt_export_symbols_cmds
15430 # Symbols that should not be listed in the preloaded symbols.
15431 exclude_expsyms=$lt_exclude_expsyms
15433 # Symbols that must always be exported.
15434 include_expsyms=$lt_include_expsyms
15436 # Commands necessary for linking programs (against libraries) with templates.
15437 prelink_cmds=$lt_prelink_cmds
15439 # Commands necessary for finishing linking programs.
15440 postlink_cmds=$lt_postlink_cmds
15442 # Specify filename containing input files.
15443 file_list_spec=$lt_file_list_spec
15445 # How to hardcode a shared library path into an executable.
15446 hardcode_action=$hardcode_action
15448 # ### END LIBTOOL CONFIG
15454 cat <<\_LT_EOF >> "$cfgfile"
15455 # AIX sometimes has problems with the GCC collect2 program. For some
15456 # reason, if we set the COLLECT_NAMES environment variable, the problems
15457 # vanish in a puff of smoke.
15458 if test "X${COLLECT_NAMES+set}" != Xset; then
15460 export COLLECT_NAMES
15467 ltmain="$ac_aux_dir/ltmain.sh"
15470 # We use sed instead of cat because bash on DJGPP gets confused if
15471 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15472 # text mode, it properly converts lines to CR/LF. This bash problem
15473 # is reportedly fixed, but why not run on old versions too?
15474 sed '$q' "$ltmain" >> "$cfgfile" \
15475 || (rm -f "$cfgfile"; exit 1)
15477 if test x"$xsi_shell" = xyes; then
15478 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15482 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15483 \ * ) func_dirname_result="${3}" ;;\
15485 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15486 && mv -f "$cfgfile.tmp" "$cfgfile" \
15487 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15488 test 0 -eq $? || _lt_function_replace_fail=:
15491 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15494 \ func_basename_result="${1##*/}"\
15495 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15496 && mv -f "$cfgfile.tmp" "$cfgfile" \
15497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15498 test 0 -eq $? || _lt_function_replace_fail=:
15501 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15502 func_dirname_and_basename ()\
15505 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15506 \ * ) func_dirname_result="${3}" ;;\
15508 \ func_basename_result="${1##*/}"\
15509 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15510 && mv -f "$cfgfile.tmp" "$cfgfile" \
15511 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15512 test 0 -eq $? || _lt_function_replace_fail=:
15515 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15518 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15519 \ # positional parameters, so assign one to ordinary parameter first.\
15520 \ func_stripname_result=${3}\
15521 \ func_stripname_result=${func_stripname_result#"${1}"}\
15522 \ func_stripname_result=${func_stripname_result%"${2}"}\
15523 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15524 && mv -f "$cfgfile.tmp" "$cfgfile" \
15525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15526 test 0 -eq $? || _lt_function_replace_fail=:
15529 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15530 func_split_long_opt ()\
15532 \ func_split_long_opt_name=${1%%=*}\
15533 \ func_split_long_opt_arg=${1#*=}\
15534 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15535 && mv -f "$cfgfile.tmp" "$cfgfile" \
15536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15537 test 0 -eq $? || _lt_function_replace_fail=:
15540 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15541 func_split_short_opt ()\
15543 \ func_split_short_opt_arg=${1#??}\
15544 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15545 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15546 && mv -f "$cfgfile.tmp" "$cfgfile" \
15547 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15548 test 0 -eq $? || _lt_function_replace_fail=:
15551 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15555 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15556 \ *) func_lo2o_result=${1} ;;\
15558 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15559 && mv -f "$cfgfile.tmp" "$cfgfile" \
15560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15561 test 0 -eq $? || _lt_function_replace_fail=:
15564 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15567 func_xform_result=${1%.*}.lo\
15568 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15569 && mv -f "$cfgfile.tmp" "$cfgfile" \
15570 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15571 test 0 -eq $? || _lt_function_replace_fail=:
15574 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15577 func_arith_result=$(( $* ))\
15578 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15579 && mv -f "$cfgfile.tmp" "$cfgfile" \
15580 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15581 test 0 -eq $? || _lt_function_replace_fail=:
15584 sed -e '/^func_len ()$/,/^} # func_len /c\
15587 func_len_result=${#1}\
15588 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15589 && mv -f "$cfgfile.tmp" "$cfgfile" \
15590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15591 test 0 -eq $? || _lt_function_replace_fail=:
15595 if test x"$lt_shell_append" = xyes; then
15596 sed -e '/^func_append ()$/,/^} # func_append /c\
15599 eval "${1}+=\\${2}"\
15600 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15601 && mv -f "$cfgfile.tmp" "$cfgfile" \
15602 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15603 test 0 -eq $? || _lt_function_replace_fail=:
15606 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15607 func_append_quoted ()\
15609 \ func_quote_for_eval "${2}"\
15610 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15611 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15612 && mv -f "$cfgfile.tmp" "$cfgfile" \
15613 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15614 test 0 -eq $? || _lt_function_replace_fail=:
15617 # Save a `func_append' function call where possible by direct use of '+='
15618 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15619 && mv -f "$cfgfile.tmp" "$cfgfile" \
15620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15621 test 0 -eq $? || _lt_function_replace_fail=:
15623 # Save a `func_append' function call even when '+=' is not available
15624 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15625 && mv -f "$cfgfile.tmp" "$cfgfile" \
15626 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15627 test 0 -eq $? || _lt_function_replace_fail=:
15630 if test x"$_lt_function_replace_fail" = x":"; then
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15632 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15636 mv -f "$cfgfile" "$ofile" ||
15637 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15648 ac_clean_files=$ac_clean_files_save
15650 test $ac_write_fail = 0 ||
15651 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15654 # configure is writing to config.log, and then calls config.status.
15655 # config.status does its own redirection, appending to config.log.
15656 # Unfortunately, on DOS this fails, as config.log is still kept open
15657 # by configure, so config.status won't be able to write to it; its
15658 # output is simply discarded. So we exec the FD to /dev/null,
15659 # effectively closing config.log, so it can be properly (re)opened and
15660 # appended to by config.status. When coming back to configure, we
15661 # need to make the FD available again.
15662 if test "$no_create" != yes; then
15664 ac_config_status_args=
15665 test "$silent" = yes &&
15666 ac_config_status_args="$ac_config_status_args --quiet"
15668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15671 # would make configure fail if this is the last instruction.
15672 $ac_cs_success || as_fn_exit 1
15674 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15676 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}